From 5b123e7a1874e3f6a75c2e802470676a36d41fb5 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 2 May 2018 23:16:53 -0700 Subject: [PATCH] feat: add typing for request params (#1141) --- src/apis/abusiveexperiencereport/v1.ts | 114 +- src/apis/acceleratedmobilepageurl/v1.ts | 74 +- src/apis/adexchangebuyer/v1.2.ts | 411 +- src/apis/adexchangebuyer/v1.3.ts | 1305 +- src/apis/adexchangebuyer/v1.4.ts | 2683 +- src/apis/adexchangebuyer2/v2beta1.ts | 3613 +- src/apis/adexchangeseller/v1.1.ts | 1112 +- src/apis/adexchangeseller/v1.ts | 775 +- src/apis/adexchangeseller/v2.0.ts | 976 +- src/apis/adexperiencereport/v1.ts | 120 +- src/apis/admin/datatransfer_v1.ts | 310 +- src/apis/admin/directory_v1.ts | 7089 ++- src/apis/admin/reports_v1.ts | 499 +- src/apis/adsense/v1.4.ts | 2506 +- src/apis/adsensehost/v4.1.ts | 1637 +- src/apis/analytics/v2.4.ts | 394 +- src/apis/analytics/v3.ts | 6481 +- src/apis/analyticsreporting/v4.ts | 282 +- src/apis/androiddeviceprovisioning/v1.ts | 1487 +- src/apis/androidenterprise/v1.ts | 5115 +- src/apis/androidmanagement/v1.ts | 1680 +- src/apis/androidpublisher/v1.1.ts | 193 +- src/apis/androidpublisher/v1.ts | 121 +- src/apis/androidpublisher/v2.ts | 3701 +- src/apis/appengine/v1.ts | 2790 +- src/apis/appengine/v1alpha.ts | 1062 +- src/apis/appengine/v1beta.ts | 2822 +- src/apis/appengine/v1beta4.ts | 1632 +- src/apis/appengine/v1beta5.ts | 1628 +- src/apis/appsactivity/v1.ts | 153 +- src/apis/appstate/v1.ts | 272 +- src/apis/bigquery/v2.ts | 1947 +- src/apis/bigquerydatatransfer/v1.ts | 1860 +- src/apis/blogger/v2.ts | 601 +- src/apis/blogger/v3.ts | 2223 +- src/apis/books/v1.ts | 3808 +- src/apis/calendar/v3.ts | 2848 +- src/apis/chat/v1.ts | 588 +- src/apis/civicinfo/v2.ts | 665 +- src/apis/classroom/v1.ts | 3395 +- src/apis/cloudbilling/v1.ts | 826 +- src/apis/cloudbuild/v1.ts | 960 +- src/apis/clouddebugger/v2.ts | 660 +- src/apis/clouderrorreporting/v1beta1.ts | 515 +- src/apis/cloudfunctions/v1.ts | 735 +- src/apis/cloudfunctions/v1beta2.ts | 740 +- src/apis/cloudiot/v1.ts | 2175 +- src/apis/cloudkms/v1.ts | 1514 +- src/apis/cloudresourcemanager/v1.ts | 2194 +- src/apis/cloudresourcemanager/v1beta1.ts | 967 +- src/apis/cloudresourcemanager/v2.ts | 669 +- src/apis/cloudresourcemanager/v2beta1.ts | 669 +- src/apis/cloudshell/v1.ts | 252 +- src/apis/cloudshell/v1alpha1.ts | 320 +- src/apis/cloudtasks/v2beta2.ts | 1422 +- src/apis/cloudtrace/v1.ts | 246 +- src/apis/cloudtrace/v2.ts | 229 +- src/apis/composer/v1beta1.ts | 1255 + src/apis/compute/alpha.ts | 48924 ++++++++++++---- src/apis/compute/beta.ts | 33988 ++++++++--- src/apis/compute/v1.ts | 26577 +++++++-- src/apis/container/v1.ts | 5738 +- src/apis/container/v1beta1.ts | 5516 +- src/apis/content/v2.ts | 6638 ++- src/apis/content/v2sandbox.ts | 1916 +- src/apis/customsearch/v1.ts | 505 +- src/apis/dataflow/v1b3.ts | 2837 +- src/apis/dataproc/v1.ts | 1342 +- src/apis/dataproc/v1beta2.ts | 3206 +- src/apis/datastore/v1.ts | 991 +- src/apis/datastore/v1beta1.ts | 205 +- src/apis/datastore/v1beta3.ts | 652 +- src/apis/deploymentmanager/alpha.ts | 2966 +- src/apis/deploymentmanager/v2.ts | 1498 +- src/apis/deploymentmanager/v2beta.ts | 2681 +- src/apis/dfareporting/v2.8.ts | 15051 +++-- src/apis/dfareporting/v3.0.ts | 15269 +++-- src/apis/dialogflow/v2.ts | 2816 +- src/apis/dialogflow/v2beta1.ts | 3698 +- src/apis/digitalassetlinks/v1.ts | 279 +- src/apis/discovery/v1.ts | 245 +- src/apis/dlp/v2.ts | 3731 +- src/apis/dlp/v2beta1.ts | 3119 - src/apis/dlp/v2beta2.ts | 5726 -- src/apis/dns/v1.ts | 1141 +- src/apis/dns/v1beta2.ts | 1138 +- src/apis/dns/v2beta1.ts | 1141 +- src/apis/doubleclickbidmanager/v1.ts | 581 +- src/apis/doubleclicksearch/v2.ts | 700 +- src/apis/drive/v2.ts | 4772 +- src/apis/drive/v3.ts | 2740 +- src/apis/firebasedynamiclinks/v1.ts | 415 +- src/apis/firebaserules/v1.ts | 721 +- src/apis/firestore/v1beta1.ts | 1332 +- src/apis/fitness/v1.ts | 1035 +- src/apis/fusiontables/v1.ts | 1898 +- src/apis/fusiontables/v2.ts | 2048 +- src/apis/games/v1.ts | 3990 +- .../gamesConfiguration/v1configuration.ts | 811 +- src/apis/gamesManagement/v1management.ts | 1310 +- src/apis/genomics/v1.ts | 3456 +- src/apis/genomics/v1alpha2.ts | 766 +- src/apis/genomics/v2alpha1.ts | 528 +- src/apis/gmail/v1.ts | 3817 +- src/apis/groupsmigration/v1.ts | 69 +- src/apis/groupssettings/v1.ts | 212 +- src/apis/iam/v1.ts | 1903 +- src/apis/identitytoolkit/v3.ts | 1560 +- src/apis/index.ts | 1466 +- src/apis/kgsearch/v1.ts | 86 +- src/apis/language/v1.ts | 458 +- src/apis/language/v1beta1.ts | 333 +- src/apis/language/v1beta2.ts | 458 +- src/apis/licensing/v1.ts | 456 +- src/apis/logging/v2.ts | 4812 +- src/apis/logging/v2beta1.ts | 1451 +- src/apis/manufacturers/v1.ts | 409 +- src/apis/mirror/v1.ts | 1394 +- src/apis/ml/v1.ts | 1899 +- src/apis/monitoring/v3.ts | 2683 +- src/apis/oauth2/v1.ts | 408 +- src/apis/oauth2/v2.ts | 227 +- src/apis/oslogin/v1.ts | 360 +- src/apis/oslogin/v1alpha.ts | 365 +- src/apis/oslogin/v1beta.ts | 360 +- src/apis/pagespeedonline/v1.ts | 97 +- src/apis/pagespeedonline/v2.ts | 113 +- src/apis/pagespeedonline/v4.ts | 134 +- src/apis/partners/v2.ts | 1951 +- src/apis/people/v1.ts | 1189 +- src/apis/playcustomapp/v1.ts | 79 +- src/apis/plus/v1.ts | 729 +- src/apis/plusDomains/v1.ts | 1399 +- src/apis/poly/v1.ts | 398 +- src/apis/prediction/v1.2.ts | 441 - src/apis/prediction/v1.3.ts | 485 - src/apis/prediction/v1.4.ts | 505 - src/apis/prediction/v1.5.ts | 667 - src/apis/prediction/v1.6.ts | 1176 - src/apis/proximitybeacon/v1beta1.ts | 1176 +- src/apis/pubsub/v1.ts | 1822 +- src/apis/pubsub/v1beta1a.ts | 822 +- src/apis/pubsub/v1beta2.ts | 1176 +- src/apis/replicapool/v1beta1.ts | 753 +- src/apis/replicapool/v1beta2.ts | 852 +- src/apis/replicapoolupdater/v1beta1.ts | 717 +- src/apis/reseller/v1.ts | 1113 +- src/apis/resourceviews/v1beta1.ts | 874 +- src/apis/resourceviews/v1beta2.ts | 801 +- src/apis/runtimeconfig/v1.ts | 180 +- src/apis/runtimeconfig/v1beta1.ts | 1320 +- src/apis/safebrowsing/v4.ts | 516 +- src/apis/script/v1.ts | 1148 +- src/apis/searchconsole/v1.ts | 84 +- src/apis/servicebroker/v1.ts | 454 + src/apis/servicebroker/v1alpha1.ts | 2508 + src/apis/servicebroker/v1beta1.ts | 2984 + src/apis/serviceconsumermanagement/v1.ts | 1074 +- src/apis/servicecontrol/v1.ts | 616 +- src/apis/servicemanagement/v1.ts | 1891 +- src/apis/serviceusage/v1beta1.ts | 871 +- src/apis/serviceuser/v1.ts | 688 +- src/apis/sheets/v4.ts | 2310 +- src/apis/siteVerification/v1.ts | 368 +- src/apis/slides/v1.ts | 1144 +- src/apis/sourcerepo/v1.ts | 417 +- src/apis/spanner/v1.ts | 2636 +- src/apis/spectrum/v1explorer.ts | 539 +- src/apis/speech/v1.ts | 225 +- src/apis/speech/v1beta1.ts | 203 +- src/apis/sqladmin/v1beta3.ts | 1619 +- src/apis/sqladmin/v1beta4.ts | 2697 +- src/apis/storage/v1.ts | 3828 +- src/apis/storage/v1beta1.ts | 1459 +- src/apis/storage/v1beta2.ts | 2361 +- src/apis/storagetransfer/v1.ts | 750 +- src/apis/streetviewpublish/v1.ts | 565 +- src/apis/surveys/v2.ts | 695 +- src/apis/tagmanager/v1.ts | 3264 +- src/apis/tagmanager/v2.ts | 4533 +- src/apis/taskqueue/v1beta1.ts | 441 - src/apis/taskqueue/v1beta2.ts | 622 - src/apis/tasks/v1.ts | 800 +- src/apis/testing/v1.ts | 603 +- src/apis/texttospeech/v1beta1.ts | 147 +- src/apis/toolresults/v1beta3.ts | 1924 +- src/apis/tpu/v1alpha1.ts | 1085 +- src/apis/translate/v2.ts | 305 +- src/apis/urlshortener/v1.ts | 189 +- src/apis/vault/v1.ts | 1039 +- src/apis/videointelligence/v1.ts | 575 +- src/apis/videointelligence/v1beta1.ts | 362 +- src/apis/videointelligence/v1beta2.ts | 368 +- src/apis/vision/v1.ts | 858 +- src/apis/vision/v1p1beta1.ts | 599 +- src/apis/vision/v1p2beta1.ts | 448 +- src/apis/webfonts/v1.ts | 71 +- src/apis/webmasters/v3.ts | 791 +- src/apis/websecurityscanner/v1alpha.ts | 877 +- src/apis/youtube/v3.ts | 7770 ++- src/apis/youtubeAnalytics/v1.ts | 590 +- src/apis/youtubeAnalytics/v1beta1.ts | 590 +- src/apis/youtubeAnalytics/v2.ts | 656 +- src/apis/youtubereporting/v1.ts | 648 +- src/index.ts | 13 +- src/lib/api.ts | 17 +- src/lib/apirequest.ts | 4 +- src/lib/discovery.ts | 4 +- src/lib/endpoint.ts | 16 +- src/scripts/generator.ts | 10 +- src/templates/api-endpoint.njk | 57 +- src/templates/index.njk | 11 +- src/templates/method-partial.njk | 49 +- src/templates/resource-partial.njk | 45 +- test/fixtures/kitchen/src/index.ts | 2 +- test/test.apikey.ts | 6 +- test/test.clients.ts | 13 +- test/test.drive.v2.ts | 10 +- test/test.media.ts | 2 +- test/test.options.ts | 8 +- 220 files changed, 308117 insertions(+), 117067 deletions(-) create mode 100644 src/apis/composer/v1beta1.ts delete mode 100644 src/apis/dlp/v2beta1.ts delete mode 100644 src/apis/dlp/v2beta2.ts delete mode 100644 src/apis/prediction/v1.2.ts delete mode 100644 src/apis/prediction/v1.3.ts delete mode 100644 src/apis/prediction/v1.4.ts delete mode 100644 src/apis/prediction/v1.5.ts delete mode 100644 src/apis/prediction/v1.6.ts create mode 100644 src/apis/servicebroker/v1.ts create mode 100644 src/apis/servicebroker/v1alpha1.ts create mode 100644 src/apis/servicebroker/v1beta1.ts delete mode 100644 src/apis/taskqueue/v1beta1.ts delete mode 100644 src/apis/taskqueue/v1beta2.ts diff --git a/src/apis/abusiveexperiencereport/v1.ts b/src/apis/abusiveexperiencereport/v1.ts index ef771d5a160..7c811446ae3 100644 --- a/src/apis/abusiveexperiencereport/v1.ts +++ b/src/apis/abusiveexperiencereport/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace abusiveexperiencereport_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Abusive Experience Report API * @@ -76,31 +79,31 @@ export namespace abusiveexperiencereport_v1 { /** * The status of the site reviewed for the abusive experiences. */ - abusiveStatus: string; + abusiveStatus?: string; /** * The date on which enforcement begins. */ - enforcementTime: string; + enforcementTime?: string; /** * The abusive experience enforcement status of the site. */ - filterStatus: string; + filterStatus?: string; /** * The last time that the site changed status. */ - lastChangeTime: string; + lastChangeTime?: string; /** * A link that leads to a full abusive experience report. */ - reportUrl: string; + reportUrl?: string; /** * The name of the site reviewed. */ - reviewedSite: string; + reviewedSite?: string; /** * Whether the site is currently under review. */ - underReview: boolean; + underReview?: boolean; } /** * Response message for ListViolatingSites. @@ -109,9 +112,10 @@ export namespace abusiveexperiencereport_v1 { /** * A list of summaries of violating sites. */ - violatingSites: Schema$SiteSummaryResponse[]; + violatingSites?: Schema$SiteSummaryResponse[]; } + export class Resource$Sites { root: Abusiveexperiencereport; constructor(root: Abusiveexperiencereport) { @@ -136,26 +140,34 @@ export namespace abusiveexperiencereport_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Sites$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Sites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sites$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; const parameters = { @@ -178,6 +190,26 @@ export namespace abusiveexperiencereport_v1 { } } + export interface Params$Resource$Sites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The required site name. This is the site property whose abusive + * experiences have been reviewed, and it must be URL-encoded. For example, + * sites/https%3A%2F%2Fwww.google.com. The server will return an error of + * BAD_REQUEST if this field is not filled in. Note that if the site + * property is not yet verified in Search Console, the reportUrl field + * returned by the API will lead to the verification page, prompting the + * user to go through that process before they can gain access to the + * Abusive Experience Report. + */ + name?: string; + } + + export class Resource$Violatingsites { root: Abusiveexperiencereport; constructor(root: Abusiveexperiencereport) { @@ -201,28 +233,39 @@ export namespace abusiveexperiencereport_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Violatingsites$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Violatingsites$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Violatingsites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Violatingsites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Violatingsites$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; const parameters = { @@ -245,4 +288,11 @@ export namespace abusiveexperiencereport_v1 { } } } + + export interface Params$Resource$Violatingsites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/acceleratedmobilepageurl/v1.ts b/src/apis/acceleratedmobilepageurl/v1.ts index 79619da529a..3cb56cb1133 100644 --- a/src/apis/acceleratedmobilepageurl/v1.ts +++ b/src/apis/acceleratedmobilepageurl/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace acceleratedmobilepageurl_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Accelerated Mobile Pages (AMP) URL API * @@ -73,16 +76,16 @@ export namespace acceleratedmobilepageurl_v1 { /** * The AMP URL pointing to the publisher's web server. */ - ampUrl: string; + ampUrl?: string; /** * The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to * the cached document in the Google AMP Cache. */ - cdnAmpUrl: string; + cdnAmpUrl?: string; /** * The original non-AMP URL. */ - originalUrl: string; + originalUrl?: string; } /** * AMP URL Error resource for a requested URL that couldn't be found. @@ -91,15 +94,15 @@ export namespace acceleratedmobilepageurl_v1 { /** * The error code of an API call. */ - errorCode: string; + errorCode?: string; /** * An optional descriptive error message. */ - errorMessage: string; + errorMessage?: string; /** * The original non-AMP URL. */ - originalUrl: string; + originalUrl?: string; } /** * AMP URL request for a batch of URLs. @@ -108,13 +111,13 @@ export namespace acceleratedmobilepageurl_v1 { /** * The lookup_strategy being requested. */ - lookupStrategy: string; + lookupStrategy?: string; /** * List of URLs to look up for the paired AMP URLs. The URLs are * case-sensitive. Up to 50 URLs per lookup (see [Usage * Limits](/amp/cache/reference/limits)). */ - urls: string[]; + urls?: string[]; } /** * Batch AMP URL response. @@ -126,13 +129,14 @@ export namespace acceleratedmobilepageurl_v1 { * BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated only * once. */ - ampUrls: Schema$AmpUrl[]; + ampUrls?: Schema$AmpUrl[]; /** * The errors for requested URLs that have no AMP URL. */ - urlErrors: Schema$AmpUrlError[]; + urlErrors?: Schema$AmpUrlError[]; } + export class Resource$Ampurls { root: Acceleratedmobilepageurl; constructor(root: Acceleratedmobilepageurl) { @@ -158,28 +162,40 @@ export namespace acceleratedmobilepageurl_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGet(params?: any, options?: MethodOptions): - AxiosPromise; batchGet( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Ampurls$Batchget, + options?: MethodOptions): AxiosPromise; + batchGet( + params: Params$Resource$Ampurls$Batchget, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + batchGet( + params: Params$Resource$Ampurls$Batchget, + callback: BodyResponseCallback): void; + batchGet(callback: BodyResponseCallback): + void; batchGet( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Ampurls$Batchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ampurls$Batchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ampurls$Batchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/'; const parameters = { @@ -202,4 +218,16 @@ export namespace acceleratedmobilepageurl_v1 { } } } + + export interface Params$Resource$Ampurls$Batchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$BatchGetAmpUrlsRequest; + } } diff --git a/src/apis/adexchangebuyer/v1.2.ts b/src/apis/adexchangebuyer/v1.2.ts index 7d44967a675..c38e3d58d39 100644 --- a/src/apis/adexchangebuyer/v1.2.ts +++ b/src/apis/adexchangebuyer/v1.2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangebuyer_v1_2 { + export interface Options extends GlobalOptions { version: 'v1_2'; } + /** * Ad Exchange Buyer API * @@ -76,40 +79,40 @@ export namespace adexchangebuyer_v1_2 { /** * Your bidder locations that have distinct URLs. */ - bidderLocation: any[]; + bidderLocation?: any[]; /** * The nid parameter value used in cookie match requests. Please contact * your technical account manager if you need to change this. */ - cookieMatchingNid: string; + cookieMatchingNid?: string; /** * The base URL used in cookie match requests. */ - cookieMatchingUrl: string; + cookieMatchingUrl?: string; /** * Account id. */ - id: number; + id?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * The maximum number of active creatives that an account can have, where a * creative is active if it was inserted or bid with in the last 30 days. * Please contact your technical account manager if you need to change this. */ - maximumActiveCreatives: number; + maximumActiveCreatives?: number; /** * The sum of all bidderLocation.maximumQps values cannot exceed this. * Please contact your technical account manager if you need to change this. */ - maximumTotalQps: number; + maximumTotalQps?: number; /** * The number of creatives that this account inserted or bid with in the * last 30 days. */ - numberActiveCreatives: number; + numberActiveCreatives?: number; } /** * An account feed lists Ad Exchange buyer accounts that the user has access @@ -119,11 +122,11 @@ export namespace adexchangebuyer_v1_2 { /** * A list of accounts. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * A creative and its classification data. @@ -132,43 +135,43 @@ export namespace adexchangebuyer_v1_2 { /** * Account id. */ - accountId: number; + accountId?: number; /** * Detected advertiser id, if any. Read-only. This field should not be set * in requests. */ - advertiserId: string[]; + advertiserId?: string[]; /** * The name of the company being advertised in the creative. */ - advertiserName: string; + advertiserName?: string; /** * The agency id for this creative. */ - agencyId: string; + agencyId?: string; /** * The last upload timestamp of this creative if it was uploaded via API. * Read-only. The value of this field is generated, and will be ignored for * uploads. (formatted RFC 3339 timestamp). */ - apiUploadTimestamp: string; + apiUploadTimestamp?: string; /** * All attributes for the ads that may be shown from this snippet. */ - attribute: number[]; + attribute?: number[]; /** * A buyer-specific id identifying the creative in this ad. */ - buyerCreativeId: string; + buyerCreativeId?: string; /** * The set of destination urls for the snippet. */ - clickThroughUrl: string[]; + clickThroughUrl?: string[]; /** * Shows any corrections that were applied to this creative. Read-only. This * field should not be set in requests. */ - corrections: any[]; + corrections?: any[]; /** * The reasons for disapproval, if any. Note that not all disapproval * reasons may be categorized, so it is possible for the creative to have a @@ -176,66 +179,66 @@ export namespace adexchangebuyer_v1_2 { * case, please reach out to your TAM to help debug the issue. Read-only. * This field should not be set in requests. */ - disapprovalReasons: any[]; + disapprovalReasons?: any[]; /** * The filtering reasons for the creative. Read-only. This field should not * be set in requests. */ - filteringReasons: any; + filteringReasons?: any; /** * Ad height. */ - height: number; + height?: number; /** * The HTML snippet that displays the ad when inserted in the web page. If * set, videoURL should not be set. */ - HTMLSnippet: string; + HTMLSnippet?: string; /** * The set of urls to be called to record an impression. */ - impressionTrackingUrl: string[]; + impressionTrackingUrl?: string[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Detected product categories, if any. Read-only. This field should not be * set in requests. */ - productCategories: number[]; + productCategories?: number[]; /** * All restricted categories for the ads that may be shown from this * snippet. */ - restrictedCategories: number[]; + restrictedCategories?: number[]; /** * Detected sensitive categories, if any. Read-only. This field should not * be set in requests. */ - sensitiveCategories: number[]; + sensitiveCategories?: number[]; /** * Creative serving status. Read-only. This field should not be set in * requests. */ - status: string; + status?: string; /** * All vendor types for the ads that may be shown from this snippet. */ - vendorType: number[]; + vendorType?: number[]; /** * The version for this creative. Read-only. This field should not be set in * requests. */ - version: number; + version?: number; /** * The url to fetch a video ad. If set, HTMLSnippet should not be set. */ - videoURL: string; + videoURL?: string; /** * Ad width. */ - width: number; + width?: number; } /** * The creatives feed lists the active creatives for the Ad Exchange buyer @@ -246,19 +249,20 @@ export namespace adexchangebuyer_v1_2 { /** * A list of creatives. */ - items: Schema$Creative[]; + items?: Schema$Creative[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Continuation token used to page through creatives. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Accounts { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -283,23 +287,33 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -333,26 +347,37 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -388,25 +413,36 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Accounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -442,25 +478,36 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -483,6 +530,55 @@ export namespace adexchangebuyer_v1_2 { } } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Accounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Creatives { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -509,23 +605,33 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Creatives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Creatives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creatives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creatives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -562,26 +668,36 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creatives$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -619,26 +735,37 @@ export namespace adexchangebuyer_v1_2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creatives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Creatives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -660,4 +787,48 @@ export namespace adexchangebuyer_v1_2 { } } } + + export interface Params$Resource$Creatives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the account that will serve this creative. + */ + accountId?: number; + /** + * The buyer-specific id for this creative. + */ + buyerCreativeId?: string; + } + export interface Params$Resource$Creatives$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of entries returned on one result page. If not set, the + * default is 100. Optional. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. Optional. + */ + pageToken?: string; + /** + * When specified, only creatives having the given status are returned. + */ + statusFilter?: string; + } } diff --git a/src/apis/adexchangebuyer/v1.3.ts b/src/apis/adexchangebuyer/v1.3.ts index a5791671379..6a844a8d26d 100644 --- a/src/apis/adexchangebuyer/v1.3.ts +++ b/src/apis/adexchangebuyer/v1.3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangebuyer_v1_3 { + export interface Options extends GlobalOptions { version: 'v1_3'; } + /** * Ad Exchange Buyer API * @@ -86,40 +89,40 @@ export namespace adexchangebuyer_v1_3 { /** * Your bidder locations that have distinct URLs. */ - bidderLocation: any[]; + bidderLocation?: any[]; /** * The nid parameter value used in cookie match requests. Please contact * your technical account manager if you need to change this. */ - cookieMatchingNid: string; + cookieMatchingNid?: string; /** * The base URL used in cookie match requests. */ - cookieMatchingUrl: string; + cookieMatchingUrl?: string; /** * Account id. */ - id: number; + id?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * The maximum number of active creatives that an account can have, where a * creative is active if it was inserted or bid with in the last 30 days. * Please contact your technical account manager if you need to change this. */ - maximumActiveCreatives: number; + maximumActiveCreatives?: number; /** * The sum of all bidderLocation.maximumQps values cannot exceed this. * Please contact your technical account manager if you need to change this. */ - maximumTotalQps: number; + maximumTotalQps?: number; /** * The number of creatives that this account inserted or bid with in the * last 30 days. */ - numberActiveCreatives: number; + numberActiveCreatives?: number; } /** * An account feed lists Ad Exchange buyer accounts that the user has access @@ -129,11 +132,11 @@ export namespace adexchangebuyer_v1_3 { /** * A list of accounts. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * The configuration data for an Ad Exchange billing info. @@ -142,21 +145,21 @@ export namespace adexchangebuyer_v1_3 { /** * Account id. */ - accountId: number; + accountId?: number; /** * Account name. */ - accountName: string; + accountName?: string; /** * A list of adgroup IDs associated with this particular account. These IDs * may show up as part of a realtime bidding BidRequest, which indicates a * bid request for this account. */ - billingId: string[]; + billingId?: string[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * A billing info feed lists Billing Info the Ad Exchange buyer account has @@ -166,11 +169,11 @@ export namespace adexchangebuyer_v1_3 { /** * A list of billing info relevant for your account. */ - items: Schema$BillingInfo[]; + items?: Schema$BillingInfo[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * The configuration data for Ad Exchange RTB - Budget API. @@ -179,29 +182,29 @@ export namespace adexchangebuyer_v1_3 { /** * The id of the account. This is required for get and update requests. */ - accountId: string; + accountId?: string; /** * The billing id to determine which adgroup to provide budget information * for. This is required for get and update requests. */ - billingId: string; + billingId?: string; /** * The daily budget amount in unit amount of the account currency to apply * for the billingId provided. This is required for update requests. */ - budgetAmount: string; + budgetAmount?: string; /** * The currency code for the buyer. This cannot be altered here. */ - currencyCode: string; + currencyCode?: string; /** * The unique id that describes this item. */ - id: string; + id?: string; /** * The kind of the resource, i.e. "adexchangebuyer#budget". */ - kind: string; + kind?: string; } /** * A creative and its classification data. @@ -210,43 +213,43 @@ export namespace adexchangebuyer_v1_3 { /** * Account id. */ - accountId: number; + accountId?: number; /** * Detected advertiser id, if any. Read-only. This field should not be set * in requests. */ - advertiserId: string[]; + advertiserId?: string[]; /** * The name of the company being advertised in the creative. */ - advertiserName: string; + advertiserName?: string; /** * The agency id for this creative. */ - agencyId: string; + agencyId?: string; /** * The last upload timestamp of this creative if it was uploaded via API. * Read-only. The value of this field is generated, and will be ignored for * uploads. (formatted RFC 3339 timestamp). */ - apiUploadTimestamp: string; + apiUploadTimestamp?: string; /** * All attributes for the ads that may be shown from this snippet. */ - attribute: number[]; + attribute?: number[]; /** * A buyer-specific id identifying the creative in this ad. */ - buyerCreativeId: string; + buyerCreativeId?: string; /** * The set of destination urls for the snippet. */ - clickThroughUrl: string[]; + clickThroughUrl?: string[]; /** * Shows any corrections that were applied to this creative. Read-only. This * field should not be set in requests. */ - corrections: any[]; + corrections?: any[]; /** * The reasons for disapproval, if any. Note that not all disapproval * reasons may be categorized, so it is possible for the creative to have a @@ -254,71 +257,71 @@ export namespace adexchangebuyer_v1_3 { * case, please reach out to your TAM to help debug the issue. Read-only. * This field should not be set in requests. */ - disapprovalReasons: any[]; + disapprovalReasons?: any[]; /** * The filtering reasons for the creative. Read-only. This field should not * be set in requests. */ - filteringReasons: any; + filteringReasons?: any; /** * Ad height. */ - height: number; + height?: number; /** * The HTML snippet that displays the ad when inserted in the web page. If * set, videoURL should not be set. */ - HTMLSnippet: string; + HTMLSnippet?: string; /** * The set of urls to be called to record an impression. */ - impressionTrackingUrl: string[]; + impressionTrackingUrl?: string[]; /** * Resource type. */ - kind: string; + kind?: string; /** * If nativeAd is set, HTMLSnippet and videoURL should not be set. */ - nativeAd: any; + nativeAd?: any; /** * Detected product categories, if any. Read-only. This field should not be * set in requests. */ - productCategories: number[]; + productCategories?: number[]; /** * All restricted categories for the ads that may be shown from this * snippet. */ - restrictedCategories: number[]; + restrictedCategories?: number[]; /** * Detected sensitive categories, if any. Read-only. This field should not * be set in requests. */ - sensitiveCategories: number[]; + sensitiveCategories?: number[]; /** * Creative serving status. Read-only. This field should not be set in * requests. */ - status: string; + status?: string; /** * All vendor types for the ads that may be shown from this snippet. */ - vendorType: number[]; + vendorType?: number[]; /** * The version for this creative. Read-only. This field should not be set in * requests. */ - version: number; + version?: number; /** * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should * not be set. */ - videoURL: string; + videoURL?: string; /** * Ad width. */ - width: number; + width?: number; } /** * The creatives feed lists the active creatives for the Ad Exchange buyer @@ -329,17 +332,17 @@ export namespace adexchangebuyer_v1_3 { /** * A list of creatives. */ - items: Schema$Creative[]; + items?: Schema$Creative[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Continuation token used to page through creatives. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } /** * The configuration data for an Ad Exchange direct deal. @@ -348,75 +351,75 @@ export namespace adexchangebuyer_v1_3 { /** * The account id of the buyer this deal is for. */ - accountId: number; + accountId?: number; /** * The name of the advertiser this deal is for. */ - advertiser: string; + advertiser?: string; /** * Whether the publisher for this deal is eligible for alcohol ads. */ - allowsAlcohol: boolean; + allowsAlcohol?: boolean; /** * The account id that this deal was negotiated for. It is either the buyer * or the client that this deal was negotiated on behalf of. */ - buyerAccountId: string; + buyerAccountId?: string; /** * The currency code that applies to the fixed_cpm value. If not set then * assumed to be USD. */ - currencyCode: string; + currencyCode?: string; /** * The deal type such as programmatic reservation or fixed price and so on. */ - dealTier: string; + dealTier?: string; /** * End time for when this deal stops being active. If not set then this deal * is valid until manually disabled by the publisher. In seconds since the * epoch. */ - endTime: string; + endTime?: string; /** * The fixed price for this direct deal. In cpm micros of currency according * to currency_code. If set, then this deal is eligible for the fixed price * tier of buying (highest priority, pay exactly the configured fixed * price). */ - fixedCpm: string; + fixedCpm?: string; /** * Deal id. */ - id: string; + id?: string; /** * Resource type. */ - kind: string; + kind?: string; /** * Deal name. */ - name: string; + name?: string; /** * The minimum price for this direct deal. In cpm micros of currency * according to currency_code. If set, then this deal is eligible for the * private exchange tier of buying (below fixed price priority, run as a * second price auction). */ - privateExchangeMinCpm: string; + privateExchangeMinCpm?: string; /** * If true, the publisher has opted to have their blocks ignored when a * creative is bid with for this deal. */ - publisherBlocksOverriden: boolean; + publisherBlocksOverriden?: boolean; /** * The name of the publisher offering this direct deal. */ - sellerNetwork: string; + sellerNetwork?: string; /** * Start time for when this deal becomes active. If not set then this deal * is active immediately upon creation. In seconds since the epoch. */ - startTime: string; + startTime?: string; } /** * A direct deals feed lists Direct Deals the Ad Exchange buyer account has @@ -427,11 +430,11 @@ export namespace adexchangebuyer_v1_3 { /** * A list of direct deals relevant for your account. */ - directDeals: Schema$DirectDeal[]; + directDeals?: Schema$DirectDeal[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * The configuration data for an Ad Exchange performance report list. @@ -440,99 +443,99 @@ export namespace adexchangebuyer_v1_3 { /** * The number of bid responses with an ad. */ - bidRate: number; + bidRate?: number; /** * The number of bid requests sent to your bidder. */ - bidRequestRate: number; + bidRequestRate?: number; /** * Rate of various prefiltering statuses per match. Please refer to the * callout-status-codes.txt file for different statuses. */ - calloutStatusRate: any[]; + calloutStatusRate?: any[]; /** * Average QPS for cookie matcher operations. */ - cookieMatcherStatusRate: any[]; + cookieMatcherStatusRate?: any[]; /** * Rate of ads with a given status. Please refer to the * creative-status-codes.txt file for different statuses. */ - creativeStatusRate: any[]; + creativeStatusRate?: any[]; /** * The number of bid responses that were filtered due to a policy violation * or other errors. */ - filteredBidRate: number; + filteredBidRate?: number; /** * Average QPS for hosted match operations. */ - hostedMatchStatusRate: any[]; + hostedMatchStatusRate?: any[]; /** * The number of potential queries based on your pretargeting settings. */ - inventoryMatchRate: number; + inventoryMatchRate?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * The 50th percentile round trip latency(ms) as perceived from Google * servers for the duration period covered by the report. */ - latency50thPercentile: number; + latency50thPercentile?: number; /** * The 85th percentile round trip latency(ms) as perceived from Google * servers for the duration period covered by the report. */ - latency85thPercentile: number; + latency85thPercentile?: number; /** * The 95th percentile round trip latency(ms) as perceived from Google * servers for the duration period covered by the report. */ - latency95thPercentile: number; + latency95thPercentile?: number; /** * Rate of various quota account statuses per quota check. */ - noQuotaInRegion: number; + noQuotaInRegion?: number; /** * Rate of various quota account statuses per quota check. */ - outOfQuota: number; + outOfQuota?: number; /** * Average QPS for pixel match requests from clients. */ - pixelMatchRequests: number; + pixelMatchRequests?: number; /** * Average QPS for pixel match responses from clients. */ - pixelMatchResponses: number; + pixelMatchResponses?: number; /** * The configured quota limits for this account. */ - quotaConfiguredLimit: number; + quotaConfiguredLimit?: number; /** * The throttled quota limits for this account. */ - quotaThrottledLimit: number; + quotaThrottledLimit?: number; /** * The trading location of this data. */ - region: string; + region?: string; /** * The number of properly formed bid responses received by our servers * within the deadline. */ - successfulRequestRate: number; + successfulRequestRate?: number; /** * The unix timestamp of the starting time of this performance data. */ - timestamp: string; + timestamp?: string; /** * The number of bid responses that were unsuccessful due to timeouts, * incorrect formatting, etc. */ - unsuccessfulRequestRate: number; + unsuccessfulRequestRate?: number; } /** * The configuration data for an Ad Exchange performance report list. @@ -541,133 +544,134 @@ export namespace adexchangebuyer_v1_3 { /** * Resource type. */ - kind: string; + kind?: string; /** * A list of performance reports relevant for the account. */ - performanceReport: Schema$PerformanceReport[]; + performanceReport?: Schema$PerformanceReport[]; } export interface Schema$PretargetingConfig { /** * The id for billing purposes, provided for reference. Leave this field * blank for insert requests; the id will be generated automatically. */ - billingId: string; + billingId?: string; /** * The config id; generated automatically. Leave this field blank for insert * requests. */ - configId: string; + configId?: string; /** * The name of the config. Must be unique. Required for all requests. */ - configName: string; + configName?: string; /** * List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or * PRETARGETING_CREATIVE_TYPE_VIDEO. */ - creativeType: string[]; + creativeType?: string[]; /** * Requests which allow one of these (width, height) pairs will match. All * pairs must be supported ad dimensions. */ - dimensions: any[]; + dimensions?: any[]; /** * Requests with any of these content labels will not match. Values are from * content-labels.txt in the downloadable files section. */ - excludedContentLabels: string[]; + excludedContentLabels?: string[]; /** * Requests containing any of these geo criteria ids will not match. */ - excludedGeoCriteriaIds: string[]; + excludedGeoCriteriaIds?: string[]; /** * Requests containing any of these placements will not match. */ - excludedPlacements: any[]; + excludedPlacements?: any[]; /** * Requests containing any of these users list ids will not match. */ - excludedUserLists: string[]; + excludedUserLists?: string[]; /** * Requests containing any of these vertical ids will not match. Values are * from the publisher-verticals.txt file in the downloadable files section. */ - excludedVerticals: string[]; + excludedVerticals?: string[]; /** * Requests containing any of these geo criteria ids will match. */ - geoCriteriaIds: string[]; + geoCriteriaIds?: string[]; /** * Whether this config is active. Required for all requests. */ - isActive: boolean; + isActive?: boolean; /** * The kind of the resource, i.e. * "adexchangebuyer#pretargetingConfig". */ - kind: string; + kind?: string; /** * Request containing any of these language codes will match. */ - languages: string[]; + languages?: string[]; /** * Requests containing any of these mobile carrier ids will match. Values * are from mobile-carriers.csv in the downloadable files section. */ - mobileCarriers: string[]; + mobileCarriers?: string[]; /** * Requests containing any of these mobile device ids will match. Values are * from mobile-devices.csv in the downloadable files section. */ - mobileDevices: string[]; + mobileDevices?: string[]; /** * Requests containing any of these mobile operating system version ids will * match. Values are from mobile-os.csv in the downloadable files section. */ - mobileOperatingSystemVersions: string[]; + mobileOperatingSystemVersions?: string[]; /** * Requests containing any of these placements will match. */ - placements: any[]; + placements?: any[]; /** * Requests matching any of these platforms will match. Possible values are * PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and * PRETARGETING_PLATFORM_TABLET. */ - platforms: string[]; + platforms?: string[]; /** * Creative attributes should be declared here if all creatives * corresponding to this pretargeting configuration have that creative * attribute. Values are from pretargetable-creative-attributes.txt in the * downloadable files section. */ - supportedCreativeAttributes: string[]; + supportedCreativeAttributes?: string[]; /** * Requests containing any of these user list ids will match. */ - userLists: string[]; + userLists?: string[]; /** * Requests that allow any of these vendor ids will match. Values are from * vendors.txt in the downloadable files section. */ - vendorTypes: string[]; + vendorTypes?: string[]; /** * Requests containing any of these vertical ids will match. */ - verticals: string[]; + verticals?: string[]; } export interface Schema$PretargetingConfigList { /** * A list of pretargeting configs */ - items: Schema$PretargetingConfig[]; + items?: Schema$PretargetingConfig[]; /** * Resource type. */ - kind: string; + kind?: string; } + export class Resource$Accounts { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -692,23 +696,33 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -742,26 +756,37 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -797,25 +822,36 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Accounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -851,25 +887,36 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -892,6 +939,55 @@ export namespace adexchangebuyer_v1_3 { } } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Accounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Billinginfo { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -917,24 +1013,34 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Billinginfo$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Billinginfo$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Billinginfo$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Billinginfo$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Billinginfo$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billinginfo$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -969,26 +1075,37 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Billinginfo$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Billinginfo$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billinginfo$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Billinginfo$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Billinginfo$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billinginfo$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1011,6 +1128,25 @@ export namespace adexchangebuyer_v1_3 { } } + export interface Params$Resource$Billinginfo$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id. + */ + accountId?: number; + } + export interface Params$Resource$Billinginfo$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Budget { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -1037,23 +1173,33 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Budget$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Budget$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Budget$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Budget$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Budget$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Budget$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1093,25 +1239,36 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Budget$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Budget$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Budget$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Budget$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Budget$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Budget$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1150,25 +1307,36 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Budget$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Budget$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Budget$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Budget$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Budget$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Budget$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1192,6 +1360,61 @@ export namespace adexchangebuyer_v1_3 { } } + export interface Params$Resource$Budget$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the budget information for. + */ + accountId?: string; + /** + * The billing id to get the budget information for. + */ + billingId?: string; + } + export interface Params$Resource$Budget$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id associated with the budget being updated. + */ + accountId?: string; + /** + * The billing id associated with the budget being updated. + */ + billingId?: string; + /** + * Request body metadata + */ + resource?: Schema$Budget; + } + export interface Params$Resource$Budget$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id associated with the budget being updated. + */ + accountId?: string; + /** + * The billing id associated with the budget being updated. + */ + billingId?: string; + /** + * Request body metadata + */ + resource?: Schema$Budget; + } + + export class Resource$Creatives { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -1218,23 +1441,33 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Creatives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Creatives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creatives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creatives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1271,26 +1504,36 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creatives$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1330,26 +1573,37 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creatives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Creatives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1372,6 +1626,60 @@ export namespace adexchangebuyer_v1_3 { } } + export interface Params$Resource$Creatives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the account that will serve this creative. + */ + accountId?: number; + /** + * The buyer-specific id for this creative. + */ + buyerCreativeId?: string; + } + export interface Params$Resource$Creatives$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When specified, only creatives for the given account ids are returned. + */ + accountId?: number; + /** + * When specified, only creatives for the given buyer creative ids are + * returned. + */ + buyerCreativeId?: string; + /** + * Maximum number of entries returned on one result page. If not set, the + * default is 100. Optional. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. Optional. + */ + pageToken?: string; + /** + * When specified, only creatives having the given status are returned. + */ + statusFilter?: string; + } + + export class Resource$Directdeals { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -1396,23 +1704,34 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Directdeals$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Directdeals$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Directdeals$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Directdeals$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Directdeals$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directdeals$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1446,26 +1765,37 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Directdeals$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Directdeals$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Directdeals$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Directdeals$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Directdeals$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directdeals$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1488,6 +1818,25 @@ export namespace adexchangebuyer_v1_3 { } } + export interface Params$Resource$Directdeals$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The direct deal id + */ + id?: string; + } + export interface Params$Resource$Directdeals$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Performancereport { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -1516,28 +1865,40 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Performancereport$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Performancereport$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Performancereport$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Performancereport$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Performancereport$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Performancereport$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1560,6 +1921,38 @@ export namespace adexchangebuyer_v1_3 { } } + export interface Params$Resource$Performancereport$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the reports. + */ + accountId?: string; + /** + * The end time of the report in ISO 8601 timestamp format using UTC. + */ + endDateTime?: string; + /** + * Maximum number of entries returned on one result page. If not set, the + * default is 100. Optional. + */ + maxResults?: number; + /** + * A continuation token, used to page through performance reports. To + * retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. Optional. + */ + pageToken?: string; + /** + * The start time of the report in ISO 8601 timestamp format using UTC. + */ + startDateTime?: string; + } + + export class Resource$Pretargetingconfig { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -1585,22 +1978,37 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Pretargetingconfig$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pretargetingconfig$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Pretargetingconfig$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1638,24 +2046,35 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Pretargetingconfig$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Pretargetingconfig$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pretargetingconfig$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pretargetingconfig$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1693,26 +2112,39 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Pretargetingconfig$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pretargetingconfig$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Pretargetingconfig$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1749,28 +2181,40 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Pretargetingconfig$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Pretargetingconfig$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pretargetingconfig$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Pretargetingconfig$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1809,26 +2253,39 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Pretargetingconfig$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Pretargetingconfig$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pretargetingconfig$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1867,26 +2324,39 @@ export namespace adexchangebuyer_v1_3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pretargetingconfig$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Pretargetingconfig$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Pretargetingconfig$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1910,4 +2380,99 @@ export namespace adexchangebuyer_v1_3 { } } } + + export interface Params$Resource$Pretargetingconfig$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to delete the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to delete. + */ + configId?: string; + } + export interface Params$Resource$Pretargetingconfig$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to retrieve. + */ + configId?: string; + } + export interface Params$Resource$Pretargetingconfig$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to insert the pretargeting config for. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$PretargetingConfig; + } + export interface Params$Resource$Pretargetingconfig$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the pretargeting configs for. + */ + accountId?: string; + } + export interface Params$Resource$Pretargetingconfig$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to update the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to update. + */ + configId?: string; + /** + * Request body metadata + */ + resource?: Schema$PretargetingConfig; + } + export interface Params$Resource$Pretargetingconfig$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to update the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to update. + */ + configId?: string; + /** + * Request body metadata + */ + resource?: Schema$PretargetingConfig; + } } diff --git a/src/apis/adexchangebuyer/v1.4.ts b/src/apis/adexchangebuyer/v1.4.ts index 5aae7ddd9b3..065d8f792bd 100644 --- a/src/apis/adexchangebuyer/v1.4.ts +++ b/src/apis/adexchangebuyer/v1.4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangebuyer_v1_4 { + export interface Options extends GlobalOptions { version: 'v1_4'; } + /** * Ad Exchange Buyer API * @@ -101,44 +104,44 @@ export namespace adexchangebuyer_v1_4 { * preferred deals. Programmatic Guaranteed deals (when enabled) are always * sent to your bidder. */ - applyPretargetingToNonGuaranteedDeals: boolean; + applyPretargetingToNonGuaranteedDeals?: boolean; /** * Your bidder locations that have distinct URLs. */ - bidderLocation: any[]; + bidderLocation?: any[]; /** * The nid parameter value used in cookie match requests. Please contact * your technical account manager if you need to change this. */ - cookieMatchingNid: string; + cookieMatchingNid?: string; /** * The base URL used in cookie match requests. */ - cookieMatchingUrl: string; + cookieMatchingUrl?: string; /** * Account id. */ - id: number; + id?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * The maximum number of active creatives that an account can have, where a * creative is active if it was inserted or bid with in the last 30 days. * Please contact your technical account manager if you need to change this. */ - maximumActiveCreatives: number; + maximumActiveCreatives?: number; /** * The sum of all bidderLocation.maximumQps values cannot exceed this. * Please contact your technical account manager if you need to change this. */ - maximumTotalQps: number; + maximumTotalQps?: number; /** * The number of creatives that this account inserted or bid with in the * last 30 days. */ - numberActiveCreatives: number; + numberActiveCreatives?: number; } /** * An account feed lists Ad Exchange buyer accounts that the user has access @@ -148,44 +151,44 @@ export namespace adexchangebuyer_v1_4 { /** * A list of accounts. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$AddOrderDealsRequest { /** * The list of deals to add */ - deals: Schema$MarketplaceDeal[]; + deals?: Schema$MarketplaceDeal[]; /** * The last known proposal revision number. */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; /** * Indicates an optional action to take on the proposal */ - updateAction: string; + updateAction?: string; } export interface Schema$AddOrderDealsResponse { /** * List of deals added (in the same proposal as passed in the request) */ - deals: Schema$MarketplaceDeal[]; + deals?: Schema$MarketplaceDeal[]; /** * The updated revision number for the proposal. */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; } export interface Schema$AddOrderNotesRequest { /** * The list of notes to add. */ - notes: Schema$MarketplaceNote[]; + notes?: Schema$MarketplaceNote[]; } export interface Schema$AddOrderNotesResponse { - notes: Schema$MarketplaceNote[]; + notes?: Schema$MarketplaceNote[]; } /** * The configuration data for an Ad Exchange billing info. @@ -194,21 +197,21 @@ export namespace adexchangebuyer_v1_4 { /** * Account id. */ - accountId: number; + accountId?: number; /** * Account name. */ - accountName: string; + accountName?: string; /** * A list of adgroup IDs associated with this particular account. These IDs * may show up as part of a realtime bidding BidRequest, which indicates a * bid request for this account. */ - billingId: string[]; + billingId?: string[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * A billing info feed lists Billing Info the Ad Exchange buyer account has @@ -218,11 +221,11 @@ export namespace adexchangebuyer_v1_4 { /** * A list of billing info relevant for your account. */ - items: Schema$BillingInfo[]; + items?: Schema$BillingInfo[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * The configuration data for Ad Exchange RTB - Budget API. @@ -231,61 +234,61 @@ export namespace adexchangebuyer_v1_4 { /** * The id of the account. This is required for get and update requests. */ - accountId: string; + accountId?: string; /** * The billing id to determine which adgroup to provide budget information * for. This is required for get and update requests. */ - billingId: string; + billingId?: string; /** * The daily budget amount in unit amount of the account currency to apply * for the billingId provided. This is required for update requests. */ - budgetAmount: string; + budgetAmount?: string; /** * The currency code for the buyer. This cannot be altered here. */ - currencyCode: string; + currencyCode?: string; /** * The unique id that describes this item. */ - id: string; + id?: string; /** * The kind of the resource, i.e. "adexchangebuyer#budget". */ - kind: string; + kind?: string; } export interface Schema$Buyer { /** * Adx account id of the buyer. */ - accountId: string; + accountId?: string; } export interface Schema$ContactInformation { /** * Email address of the contact. */ - email: string; + email?: string; /** * The name of the contact. */ - name: string; + name?: string; } export interface Schema$CreateOrdersRequest { /** * The list of proposals to create. */ - proposals: Schema$Proposal[]; + proposals?: Schema$Proposal[]; /** * Web property id of the seller creating these orders */ - webPropertyCode: string; + webPropertyCode?: string; } export interface Schema$CreateOrdersResponse { /** * The list of proposals successfully created. */ - proposals: Schema$Proposal[]; + proposals?: Schema$Proposal[]; } /** * A creative and its classification data. @@ -294,51 +297,51 @@ export namespace adexchangebuyer_v1_4 { /** * Account id. */ - accountId: number; + accountId?: number; /** * The link to the Ad Preferences page. This is only supported for native * ads. */ - adChoicesDestinationUrl: string; + adChoicesDestinationUrl?: string; /** * Detected advertiser id, if any. Read-only. This field should not be set * in requests. */ - advertiserId: string[]; + advertiserId?: string[]; /** * The name of the company being advertised in the creative. The value * provided must exist in the advertisers.txt file. */ - advertiserName: string; + advertiserName?: string; /** * The agency id for this creative. */ - agencyId: string; + agencyId?: string; /** * The last upload timestamp of this creative if it was uploaded via API. * Read-only. The value of this field is generated, and will be ignored for * uploads. (formatted RFC 3339 timestamp). */ - apiUploadTimestamp: string; + apiUploadTimestamp?: string; /** * List of buyer selectable attributes for the ads that may be shown from * this snippet. Each attribute is represented by an integer as defined in * buyer-declarable-creative-attributes.txt. */ - attribute: number[]; + attribute?: number[]; /** * A buyer-specific id identifying the creative in this ad. */ - buyerCreativeId: string; + buyerCreativeId?: string; /** * The set of destination urls for the snippet. */ - clickThroughUrl: string[]; + clickThroughUrl?: string[]; /** * Shows any corrections that were applied to this creative. Read-only. This * field should not be set in requests. */ - corrections: any[]; + corrections?: any[]; /** * Top-level deals status. Read-only. This field should not be set in * requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) @@ -346,44 +349,44 @@ export namespace adexchangebuyer_v1_4 { * with other contextual restrictions, in which case it may be preferable to * read from servingRestrictions directly. */ - dealsStatus: string; + dealsStatus?: string; /** * Detected domains for this creative. Read-only. This field should not be * set in requests. */ - detectedDomains: string[]; + detectedDomains?: string[]; /** * The filtering reasons for the creative. Read-only. This field should not * be set in requests. */ - filteringReasons: any; + filteringReasons?: any; /** * Ad height. */ - height: number; + height?: number; /** * The HTML snippet that displays the ad when inserted in the web page. If * set, videoURL, videoVastXML, and nativeAd should not be set. */ - HTMLSnippet: string; + HTMLSnippet?: string; /** * The set of urls to be called to record an impression. */ - impressionTrackingUrl: string[]; + impressionTrackingUrl?: string[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Detected languages for this creative. Read-only. This field should not be * set in requests. */ - languages: string[]; + languages?: string[]; /** * If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside * of nativeAd should not be set. (The videoURL inside nativeAd can be set.) */ - nativeAd: any; + nativeAd?: any; /** * Top-level open auction status. Read-only. This field should not be set in * requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) @@ -391,25 +394,25 @@ export namespace adexchangebuyer_v1_4 { * with other contextual restrictions, in which case it may be preferable to * read from ServingRestrictions directly. */ - openAuctionStatus: string; + openAuctionStatus?: string; /** * Detected product categories, if any. Each category is represented by an * integer as defined in ad-product-categories.txt. Read-only. This field * should not be set in requests. */ - productCategories: number[]; + productCategories?: number[]; /** * All restricted categories for the ads that may be shown from this * snippet. Each category is represented by an integer as defined in the * ad-restricted-categories.txt. */ - restrictedCategories: number[]; + restrictedCategories?: number[]; /** * Detected sensitive categories, if any. Each category is represented by an * integer as defined in ad-sensitive-categories.txt. Read-only. This field * should not be set in requests. */ - sensitiveCategories: number[]; + sensitiveCategories?: number[]; /** * The granular status of this ad in specific contexts. A context here * relates to where something ultimately serves (for example, a physical @@ -417,33 +420,33 @@ export namespace adexchangebuyer_v1_4 { * Read-only. This field should not be set in requests. See the examples in * the Creatives guide for more details. */ - servingRestrictions: any[]; + servingRestrictions?: any[]; /** * List of vendor types for the ads that may be shown from this snippet. * Each vendor type is represented by an integer as defined in vendors.txt. */ - vendorType: number[]; + vendorType?: number[]; /** * The version for this creative. Read-only. This field should not be set in * requests. */ - version: number; + version?: number; /** * The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and * nativeAd should not be set. Note, this is different from * resource.native_ad.video_url above. */ - videoURL: string; + videoURL?: string; /** * The contents of a VAST document for a video ad. This document should * conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, * and nativeAd and should not be set. */ - videoVastXML: string; + videoVastXML?: string; /** * Ad width. */ - width: number; + width?: number; } /** * The external deal ids associated with a creative. @@ -452,11 +455,11 @@ export namespace adexchangebuyer_v1_4 { /** * A list of external deal ids and ARC approval status. */ - dealStatuses: any[]; + dealStatuses?: any[]; /** * Resource type. */ - kind: string; + kind?: string; } /** * The creatives feed lists the active creatives for the Ad Exchange buyer @@ -467,17 +470,17 @@ export namespace adexchangebuyer_v1_4 { /** * A list of creatives. */ - items: Schema$Creative[]; + items?: Schema$Creative[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Continuation token used to page through creatives. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$DealServingMetadata { /** @@ -485,12 +488,12 @@ export namespace adexchangebuyer_v1_4 { * only populated when querying for finalized orders using the method * GetFinalizedOrderDeals */ - alcoholAdsAllowed: boolean; + alcoholAdsAllowed?: boolean; /** * Tracks which parties (if any) have paused a deal. (readonly, except via * PauseResumeOrderDeals action) */ - dealPauseStatus: Schema$DealServingMetadataDealPauseStatus; + dealPauseStatus?: Schema$DealServingMetadataDealPauseStatus; } /** * Tracks which parties (if any) have paused a deal. The deal is considered @@ -498,87 +501,87 @@ export namespace adexchangebuyer_v1_4 { * has_buyer_paused or the has_seller_paused bits can be set independently. */ export interface Schema$DealServingMetadataDealPauseStatus { - buyerPauseReason: string; + buyerPauseReason?: string; /** * If the deal is paused, records which party paused the deal first. */ - firstPausedBy: string; - hasBuyerPaused: boolean; - hasSellerPaused: boolean; - sellerPauseReason: string; + firstPausedBy?: string; + hasBuyerPaused?: boolean; + hasSellerPaused?: boolean; + sellerPauseReason?: string; } export interface Schema$DealTerms { /** * Visibilty of the URL in bid requests. */ - brandingType: string; + brandingType?: string; /** * Indicates that this ExternalDealId exists under at least two different * AdxInventoryDeals. Currently, the only case that the same ExternalDealId * will exist is programmatic cross sell case. */ - crossListedExternalDealIdType: string; + crossListedExternalDealIdType?: string; /** * Description for the proposed terms of the deal. */ - description: string; + description?: string; /** * Non-binding estimate of the estimated gross spend for this deal Can be * set by buyer or seller. */ - estimatedGrossSpend: Schema$Price; + estimatedGrossSpend?: Schema$Price; /** * Non-binding estimate of the impressions served per day Can be set by * buyer or seller. */ - estimatedImpressionsPerDay: string; + estimatedImpressionsPerDay?: string; /** * The terms for guaranteed fixed price deals. */ - guaranteedFixedPriceTerms: Schema$DealTermsGuaranteedFixedPriceTerms; + guaranteedFixedPriceTerms?: Schema$DealTermsGuaranteedFixedPriceTerms; /** * The terms for non-guaranteed auction deals. */ - nonGuaranteedAuctionTerms: Schema$DealTermsNonGuaranteedAuctionTerms; + nonGuaranteedAuctionTerms?: Schema$DealTermsNonGuaranteedAuctionTerms; /** * The terms for non-guaranteed fixed price deals. */ - nonGuaranteedFixedPriceTerms: Schema$DealTermsNonGuaranteedFixedPriceTerms; + nonGuaranteedFixedPriceTerms?: Schema$DealTermsNonGuaranteedFixedPriceTerms; /** * The terms for rubicon non-guaranteed deals. */ - rubiconNonGuaranteedTerms: Schema$DealTermsRubiconNonGuaranteedTerms; + rubiconNonGuaranteedTerms?: Schema$DealTermsRubiconNonGuaranteedTerms; /** * For deals with Cost Per Day billing, defines the timezone used to mark * the boundaries of a day (buyer-readonly) */ - sellerTimeZone: string; + sellerTimeZone?: string; } export interface Schema$DealTermsGuaranteedFixedPriceTerms { /** * External billing info for this Deal. This field is relevant when external * billing info such as price has a different currency code than DFP/AdX. */ - billingInfo: Schema$DealTermsGuaranteedFixedPriceTermsBillingInfo; + billingInfo?: Schema$DealTermsGuaranteedFixedPriceTermsBillingInfo; /** * Fixed price for the specified buyer. */ - fixedPrices: Schema$PricePerBuyer[]; + fixedPrices?: Schema$PricePerBuyer[]; /** * Guaranteed impressions as a percentage. This is the percentage of * guaranteed looks that the buyer is guaranteeing to buy. */ - guaranteedImpressions: string; + guaranteedImpressions?: string; /** * Count of guaranteed looks. Required for deal, optional for product. For * CPD deals, buyer changes to guaranteed_looks will be ignored. */ - guaranteedLooks: string; + guaranteedLooks?: string; /** * Count of minimum daily looks for a CPD deal. For CPD deals, buyer should * negotiate on this field instead of guaranteed_looks. */ - minimumDailyLooks: string; + minimumDailyLooks?: string; } export interface Schema$DealTermsGuaranteedFixedPriceTermsBillingInfo { /** @@ -586,12 +589,12 @@ export namespace adexchangebuyer_v1_4 { * the deal was first converted to DFP currency. This is used to convert the * contracted price into buyer's currency without discrepancy. */ - currencyConversionTimeMs: string; + currencyConversionTimeMs?: string; /** * The DFP line item id associated with this deal. For features like CPD, * buyers can retrieve the DFP line item for billing reconciliation. */ - dfpLineItemId: string; + dfpLineItemId?: string; /** * The original contracted quantity (# impressions) for this deal. To ensure * delivery, sometimes the publisher will book the deal with a impression @@ -599,73 +602,73 @@ export namespace adexchangebuyer_v1_4 { * quantity. However clients are billed using the original contracted * quantity. */ - originalContractedQuantity: string; + originalContractedQuantity?: string; /** * The original reservation price for the deal, if the currency code is * different from the one used in negotiation. */ - price: Schema$Price; + price?: Schema$Price; } export interface Schema$DealTermsNonGuaranteedAuctionTerms { /** * True if open auction buyers are allowed to compete with invited buyers in * this private auction (buyer-readonly). */ - autoOptimizePrivateAuction: boolean; + autoOptimizePrivateAuction?: boolean; /** * Reserve price for the specified buyer. */ - reservePricePerBuyers: Schema$PricePerBuyer[]; + reservePricePerBuyers?: Schema$PricePerBuyer[]; } export interface Schema$DealTermsNonGuaranteedFixedPriceTerms { /** * Fixed price for the specified buyer. */ - fixedPrices: Schema$PricePerBuyer[]; + fixedPrices?: Schema$PricePerBuyer[]; } export interface Schema$DealTermsRubiconNonGuaranteedTerms { /** * Optional price for Rubicon priority access in the auction. */ - priorityPrice: Schema$Price; + priorityPrice?: Schema$Price; /** * Optional price for Rubicon standard access in the auction. */ - standardPrice: Schema$Price; + standardPrice?: Schema$Price; } export interface Schema$DeleteOrderDealsRequest { /** * List of deals to delete for a given proposal */ - dealIds: string[]; + dealIds?: string[]; /** * The last known proposal revision number. */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; /** * Indicates an optional action to take on the proposal */ - updateAction: string; + updateAction?: string; } export interface Schema$DeleteOrderDealsResponse { /** * List of deals deleted (in the same proposal as passed in the request) */ - deals: Schema$MarketplaceDeal[]; + deals?: Schema$MarketplaceDeal[]; /** * The updated revision number for the proposal. */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; } export interface Schema$DeliveryControl { - creativeBlockingLevel: string; - deliveryRateType: string; - frequencyCaps: Schema$DeliveryControlFrequencyCap[]; + creativeBlockingLevel?: string; + deliveryRateType?: string; + frequencyCaps?: Schema$DeliveryControlFrequencyCap[]; } export interface Schema$DeliveryControlFrequencyCap { - maxImpressions: number; - numTimeUnits: number; - timeUnitType: string; + maxImpressions?: number; + numTimeUnits?: number; + timeUnitType?: string; } /** * This message carries publisher provided breakdown. E.g. {dimension_type: @@ -673,8 +676,8 @@ export namespace adexchangebuyer_v1_4 { * {dimension_value: {id: 2, name: 'UK'}}]} */ export interface Schema$Dimension { - dimensionType: string; - dimensionValues: Schema$DimensionDimensionValue[]; + dimensionType?: string; + dimensionValues?: Schema$DimensionDimensionValue[]; } /** * Value of the dimension. @@ -683,19 +686,19 @@ export namespace adexchangebuyer_v1_4 { /** * Id of the dimension. */ - id: number; + id?: number; /** * Name of the dimension mainly for debugging purposes, except for the case * of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids. */ - name: string; + name?: string; /** * Percent of total impressions for a dimension type. e.g. {dimension_type: * 'GENDER', [{dimension_value: {id: 1, name: 'MALE', * percentage: 60}}]} Gender MALE is 60% of all impressions which have * gender. */ - percentage: number; + percentage?: number; } export interface Schema$EditAllOrderDealsRequest { /** @@ -711,43 +714,43 @@ export namespace adexchangebuyer_v1_4 { * proposal is not present in this list, the service will delete that deal * from the proposal. Validation will follow DeleteOrderDealsRequest. */ - deals: Schema$MarketplaceDeal[]; + deals?: Schema$MarketplaceDeal[]; /** * If specified, also updates the proposal in the batch transaction. This is * useful when the proposal and the deals need to be updated in one * transaction. */ - proposal: Schema$Proposal; + proposal?: Schema$Proposal; /** * The last known revision number for the proposal. */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; /** * Indicates an optional action to take on the proposal */ - updateAction: string; + updateAction?: string; } export interface Schema$EditAllOrderDealsResponse { /** * List of all deals in the proposal after edit. */ - deals: Schema$MarketplaceDeal[]; + deals?: Schema$MarketplaceDeal[]; /** * The latest revision number after the update has been applied. */ - orderRevisionNumber: string; + orderRevisionNumber?: string; } export interface Schema$GetOffersResponse { /** * The returned list of products. */ - products: Schema$Product[]; + products?: Schema$Product[]; } export interface Schema$GetOrderDealsResponse { /** * List of deals for the proposal */ - deals: Schema$MarketplaceDeal[]; + deals?: Schema$MarketplaceDeal[]; } export interface Schema$GetOrderNotesResponse { /** @@ -756,19 +759,19 @@ export namespace adexchangebuyer_v1_4 { * grouped by proposal, with the notes for the most recently modified * proposal appearing first. */ - notes: Schema$MarketplaceNote[]; + notes?: Schema$MarketplaceNote[]; } export interface Schema$GetOrdersResponse { /** * The list of matching proposals. */ - proposals: Schema$Proposal[]; + proposals?: Schema$Proposal[]; } export interface Schema$GetPublisherProfilesByAccountIdResponse { /** * Profiles for the requested publisher */ - profiles: Schema$PublisherProfileApiProto[]; + profiles?: Schema$PublisherProfileApiProto[]; } /** * A proposal can contain multiple deals. A deal contains the terms and @@ -778,143 +781,143 @@ export namespace adexchangebuyer_v1_4 { /** * Buyer private data (hidden from seller). */ - buyerPrivateData: Schema$PrivateData; + buyerPrivateData?: Schema$PrivateData; /** * The time (ms since epoch) of the deal creation. (readonly) */ - creationTimeMs: string; + creationTimeMs?: string; /** * Specifies the creative pre-approval policy (buyer-readonly) */ - creativePreApprovalPolicy: string; + creativePreApprovalPolicy?: string; /** * Specifies whether the creative is safeFrame compatible (buyer-readonly) */ - creativeSafeFrameCompatibility: string; + creativeSafeFrameCompatibility?: string; /** * A unique deal-id for the deal (readonly). */ - dealId: string; + dealId?: string; /** * Metadata about the serving status of this deal (readonly, writes via * custom actions) */ - dealServingMetadata: Schema$DealServingMetadata; + dealServingMetadata?: Schema$DealServingMetadata; /** * The set of fields around delivery control that are interesting for a * buyer to see but are non-negotiable. These are set by the publisher. This * message is assigned an id of 100 since some day we would want to model * this as a protobuf extension. */ - deliveryControl: Schema$DeliveryControl; + deliveryControl?: Schema$DeliveryControl; /** * The external deal id assigned to this deal once the deal is finalized. * This is the deal-id that shows up in serving/reporting etc. (readonly) */ - externalDealId: string; + externalDealId?: string; /** * Proposed flight end time of the deal (ms since epoch) This will generally * be stored in a granularity of a second. (updatable) */ - flightEndTimeMs: string; + flightEndTimeMs?: string; /** * Proposed flight start time of the deal (ms since epoch) This will * generally be stored in a granularity of a second. (updatable) */ - flightStartTimeMs: string; + flightStartTimeMs?: string; /** * Description for the deal terms. (buyer-readonly) */ - inventoryDescription: string; + inventoryDescription?: string; /** * Indicates whether the current deal is a RFP template. RFP template is * created by buyer and not based on seller created products. */ - isRfpTemplate: boolean; + isRfpTemplate?: boolean; /** * True, if the buyside inventory setup is complete for this deal. * (readonly, except via OrderSetupCompleted action) */ - isSetupComplete: boolean; + isSetupComplete?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "adexchangebuyer#marketplaceDeal". */ - kind: string; + kind?: string; /** * The time (ms since epoch) when the deal was last updated. (readonly) */ - lastUpdateTimeMs: string; + lastUpdateTimeMs?: string; /** * The name of the deal. (updatable) */ - name: string; + name?: string; /** * The product-id from which this deal was created. (readonly, except on * create) */ - productId: string; + productId?: string; /** * The revision number of the product that the deal was created from * (readonly, except on create) */ - productRevisionNumber: string; + productRevisionNumber?: string; /** * Specifies the creative source for programmatic deals, PUBLISHER means * creative is provided by seller and ADVERTISR means creative is provided * by buyer. (buyer-readonly) */ - programmaticCreativeSource: string; - proposalId: string; + programmaticCreativeSource?: string; + proposalId?: string; /** * Optional Seller contact information for the deal (buyer-readonly) */ - sellerContacts: Schema$ContactInformation[]; + sellerContacts?: Schema$ContactInformation[]; /** * The shared targeting visible to buyers and sellers. Each shared targeting * entity is AND'd together. (updatable) */ - sharedTargetings: Schema$SharedTargeting[]; + sharedTargetings?: Schema$SharedTargeting[]; /** * The syndication product associated with the deal. (readonly, except on * create) */ - syndicationProduct: string; + syndicationProduct?: string; /** * The negotiable terms of the deal. (updatable) */ - terms: Schema$DealTerms; - webPropertyCode: string; + terms?: Schema$DealTerms; + webPropertyCode?: string; } export interface Schema$MarketplaceDealParty { /** * The buyer/seller associated with the deal. One of buyer/seller is * specified for a deal-party. */ - buyer: Schema$Buyer; + buyer?: Schema$Buyer; /** * The buyer/seller associated with the deal. One of buyer/seller is * specified for a deal party. */ - seller: Schema$Seller; + seller?: Schema$Seller; } export interface Schema$MarketplaceLabel { /** * The accountId of the party that created the label. */ - accountId: string; + accountId?: string; /** * The creation time (in ms since epoch) for the label. */ - createTimeMs: string; + createTimeMs?: string; /** * Information about the party that created the label. */ - deprecatedMarketplaceDealParty: Schema$MarketplaceDealParty; + deprecatedMarketplaceDealParty?: Schema$MarketplaceDealParty; /** * The label to use. */ - label: string; + label?: string; } /** * A proposal is associated with a bunch of notes which may optionally be @@ -924,38 +927,38 @@ export namespace adexchangebuyer_v1_4 { /** * The role of the person (buyer/seller) creating the note. (readonly) */ - creatorRole: string; + creatorRole?: string; /** * Notes can optionally be associated with a deal. (readonly, except on * create) */ - dealId: string; + dealId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "adexchangebuyer#marketplaceNote". */ - kind: string; + kind?: string; /** * The actual note to attach. (readonly, except on create) */ - note: string; + note?: string; /** * The unique id for the note. (readonly) */ - noteId: string; + noteId?: string; /** * The proposalId that a note is attached to. (readonly) */ - proposalId: string; + proposalId?: string; /** * If the note is associated with a proposal revision number, then store * that here. (readonly, except on create) */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; /** * The timestamp (ms since epoch) that this note was created. (readonly) */ - timestampMs: string; + timestampMs?: string; } /** * The configuration data for an Ad Exchange performance report list. @@ -964,99 +967,99 @@ export namespace adexchangebuyer_v1_4 { /** * The number of bid responses with an ad. */ - bidRate: number; + bidRate?: number; /** * The number of bid requests sent to your bidder. */ - bidRequestRate: number; + bidRequestRate?: number; /** * Rate of various prefiltering statuses per match. Please refer to the * callout-status-codes.txt file for different statuses. */ - calloutStatusRate: any[]; + calloutStatusRate?: any[]; /** * Average QPS for cookie matcher operations. */ - cookieMatcherStatusRate: any[]; + cookieMatcherStatusRate?: any[]; /** * Rate of ads with a given status. Please refer to the * creative-status-codes.txt file for different statuses. */ - creativeStatusRate: any[]; + creativeStatusRate?: any[]; /** * The number of bid responses that were filtered due to a policy violation * or other errors. */ - filteredBidRate: number; + filteredBidRate?: number; /** * Average QPS for hosted match operations. */ - hostedMatchStatusRate: any[]; + hostedMatchStatusRate?: any[]; /** * The number of potential queries based on your pretargeting settings. */ - inventoryMatchRate: number; + inventoryMatchRate?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * The 50th percentile round trip latency(ms) as perceived from Google * servers for the duration period covered by the report. */ - latency50thPercentile: number; + latency50thPercentile?: number; /** * The 85th percentile round trip latency(ms) as perceived from Google * servers for the duration period covered by the report. */ - latency85thPercentile: number; + latency85thPercentile?: number; /** * The 95th percentile round trip latency(ms) as perceived from Google * servers for the duration period covered by the report. */ - latency95thPercentile: number; + latency95thPercentile?: number; /** * Rate of various quota account statuses per quota check. */ - noQuotaInRegion: number; + noQuotaInRegion?: number; /** * Rate of various quota account statuses per quota check. */ - outOfQuota: number; + outOfQuota?: number; /** * Average QPS for pixel match requests from clients. */ - pixelMatchRequests: number; + pixelMatchRequests?: number; /** * Average QPS for pixel match responses from clients. */ - pixelMatchResponses: number; + pixelMatchResponses?: number; /** * The configured quota limits for this account. */ - quotaConfiguredLimit: number; + quotaConfiguredLimit?: number; /** * The throttled quota limits for this account. */ - quotaThrottledLimit: number; + quotaThrottledLimit?: number; /** * The trading location of this data. */ - region: string; + region?: string; /** * The number of properly formed bid responses received by our servers * within the deadline. */ - successfulRequestRate: number; + successfulRequestRate?: number; /** * The unix timestamp of the starting time of this performance data. */ - timestamp: string; + timestamp?: string; /** * The number of bid responses that were unsuccessful due to timeouts, * incorrect formatting, etc. */ - unsuccessfulRequestRate: number; + unsuccessfulRequestRate?: number; } /** * The configuration data for an Ad Exchange performance report list. @@ -1065,115 +1068,115 @@ export namespace adexchangebuyer_v1_4 { /** * Resource type. */ - kind: string; + kind?: string; /** * A list of performance reports relevant for the account. */ - performanceReport: Schema$PerformanceReport[]; + performanceReport?: Schema$PerformanceReport[]; } export interface Schema$PretargetingConfig { /** * The id for billing purposes, provided for reference. Leave this field * blank for insert requests; the id will be generated automatically. */ - billingId: string; + billingId?: string; /** * The config id; generated automatically. Leave this field blank for insert * requests. */ - configId: string; + configId?: string; /** * The name of the config. Must be unique. Required for all requests. */ - configName: string; + configName?: string; /** * List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or * PRETARGETING_CREATIVE_TYPE_VIDEO. */ - creativeType: string[]; + creativeType?: string[]; /** * Requests which allow one of these (width, height) pairs will match. All * pairs must be supported ad dimensions. */ - dimensions: any[]; + dimensions?: any[]; /** * Requests with any of these content labels will not match. Values are from * content-labels.txt in the downloadable files section. */ - excludedContentLabels: string[]; + excludedContentLabels?: string[]; /** * Requests containing any of these geo criteria ids will not match. */ - excludedGeoCriteriaIds: string[]; + excludedGeoCriteriaIds?: string[]; /** * Requests containing any of these placements will not match. */ - excludedPlacements: any[]; + excludedPlacements?: any[]; /** * Requests containing any of these users list ids will not match. */ - excludedUserLists: string[]; + excludedUserLists?: string[]; /** * Requests containing any of these vertical ids will not match. Values are * from the publisher-verticals.txt file in the downloadable files section. */ - excludedVerticals: string[]; + excludedVerticals?: string[]; /** * Requests containing any of these geo criteria ids will match. */ - geoCriteriaIds: string[]; + geoCriteriaIds?: string[]; /** * Whether this config is active. Required for all requests. */ - isActive: boolean; + isActive?: boolean; /** * The kind of the resource, i.e. * "adexchangebuyer#pretargetingConfig". */ - kind: string; + kind?: string; /** * Request containing any of these language codes will match. */ - languages: string[]; + languages?: string[]; /** * Requests where the predicted viewability is below the specified decile * will not match. E.g. if the buyer sets this value to 5, requests from * slots where the predicted viewability is below 50% will not match. If the * predicted viewability is unknown this field will be ignored. */ - minimumViewabilityDecile: number; + minimumViewabilityDecile?: number; /** * Requests containing any of these mobile carrier ids will match. Values * are from mobile-carriers.csv in the downloadable files section. */ - mobileCarriers: string[]; + mobileCarriers?: string[]; /** * Requests containing any of these mobile device ids will match. Values are * from mobile-devices.csv in the downloadable files section. */ - mobileDevices: string[]; + mobileDevices?: string[]; /** * Requests containing any of these mobile operating system version ids will * match. Values are from mobile-os.csv in the downloadable files section. */ - mobileOperatingSystemVersions: string[]; + mobileOperatingSystemVersions?: string[]; /** * Requests containing any of these placements will match. */ - placements: any[]; + placements?: any[]; /** * Requests matching any of these platforms will match. Possible values are * PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and * PRETARGETING_PLATFORM_TABLET. */ - platforms: string[]; + platforms?: string[]; /** * Creative attributes should be declared here if all creatives * corresponding to this pretargeting configuration have that creative * attribute. Values are from pretargetable-creative-attributes.txt in the * downloadable files section. */ - supportedCreativeAttributes: string[]; + supportedCreativeAttributes?: string[]; /** * Requests containing the specified type of user data will match. Possible * values are HOSTED_MATCH_DATA, which means the request is @@ -1181,53 +1184,53 @@ export namespace adexchangebuyer_v1_4 { * and COOKIE_OR_IDFA, which means the request has either a targetable * cookie or an iOS IDFA. */ - userIdentifierDataRequired: string[]; + userIdentifierDataRequired?: string[]; /** * Requests containing any of these user list ids will match. */ - userLists: string[]; + userLists?: string[]; /** * Requests that allow any of these vendor ids will match. Values are from * vendors.txt in the downloadable files section. */ - vendorTypes: string[]; + vendorTypes?: string[]; /** * Requests containing any of these vertical ids will match. */ - verticals: string[]; + verticals?: string[]; /** * Video requests satisfying any of these player size constraints will * match. */ - videoPlayerSizes: any[]; + videoPlayerSizes?: any[]; } export interface Schema$PretargetingConfigList { /** * A list of pretargeting configs */ - items: Schema$PretargetingConfig[]; + items?: Schema$PretargetingConfig[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$Price { /** * The price value in micros. */ - amountMicros: number; + amountMicros?: number; /** * The currency code for the price. */ - currencyCode: string; + currencyCode?: string; /** * In case of CPD deals, the expected CPM in micros. */ - expectedCpmMicros: number; + expectedCpmMicros?: number; /** * The pricing type for the deal/product. */ - pricingType: string; + pricingType?: string; } /** * Used to specify pricing rules for buyers. Each PricePerBuyer in a product @@ -1240,25 +1243,25 @@ export namespace adexchangebuyer_v1_4 { /** * Optional access type for this buyer. */ - auctionTier: string; + auctionTier?: string; /** * Reference to the buyer that will get billed. */ - billedBuyer: Schema$Buyer; + billedBuyer?: Schema$Buyer; /** * The buyer who will pay this price. If unset, all buyers can pay this * price (if the advertisers match, and there's no more specific rule * matching the buyer). */ - buyer: Schema$Buyer; + buyer?: Schema$Buyer; /** * The specified price */ - price: Schema$Price; + price?: Schema$Price; } export interface Schema$PrivateData { - referenceId: string; - referencePayload: string; + referenceId?: string; + referencePayload?: string; } /** * A product is segment of inventory that a seller wishes to sell. It is @@ -1274,132 +1277,132 @@ export namespace adexchangebuyer_v1_4 { * The billed buyer corresponding to the buyer that created the offer. * (readonly, except on create) */ - billedBuyer: Schema$Buyer; + billedBuyer?: Schema$Buyer; /** * The buyer that created the offer if this is a buyer initiated offer * (readonly, except on create) */ - buyer: Schema$Buyer; + buyer?: Schema$Buyer; /** * Creation time in ms. since epoch (readonly) */ - creationTimeMs: string; + creationTimeMs?: string; /** * Optional contact information for the creator of this product. * (buyer-readonly) */ - creatorContacts: Schema$ContactInformation[]; + creatorContacts?: Schema$ContactInformation[]; /** * The role that created the offer. Set to BUYER for buyer initiated offers. */ - creatorRole: string; + creatorRole?: string; /** * The set of fields around delivery control that are interesting for a * buyer to see but are non-negotiable. These are set by the publisher. This * message is assigned an id of 100 since some day we would want to model * this as a protobuf extension. */ - deliveryControl: Schema$DeliveryControl; + deliveryControl?: Schema$DeliveryControl; /** * The proposed end time for the deal (ms since epoch) (buyer-readonly) */ - flightEndTimeMs: string; + flightEndTimeMs?: string; /** * Inventory availability dates. (times are in ms since epoch) The * granularity is generally in the order of seconds. (buyer-readonly) */ - flightStartTimeMs: string; + flightStartTimeMs?: string; /** * If the creator has already signed off on the product, then the buyer can * finalize the deal by accepting the product as is. When copying to a * proposal, if any of the terms are changed, then auto_finalize is * automatically set to false. */ - hasCreatorSignedOff: boolean; + hasCreatorSignedOff?: boolean; /** * What exchange will provide this inventory (readonly, except on create). */ - inventorySource: string; + inventorySource?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "adexchangebuyer#product". */ - kind: string; + kind?: string; /** * Optional List of labels for the product (optional, buyer-readonly). */ - labels: Schema$MarketplaceLabel[]; + labels?: Schema$MarketplaceLabel[]; /** * Time of last update in ms. since epoch (readonly) */ - lastUpdateTimeMs: string; + lastUpdateTimeMs?: string; /** * Optional legacy offer id if this offer is a preferred deal offer. */ - legacyOfferId: string; + legacyOfferId?: string; /** * Marketplace publisher profile Id. This Id differs from the regular * publisher_profile_id in that 1. This is a new id, the old Id will be * deprecated in 2017. 2. This id uniquely identifies a publisher profile by * itself. */ - marketplacePublisherProfileId: string; + marketplacePublisherProfileId?: string; /** * The name for this product as set by the seller. (buyer-readonly) */ - name: string; + name?: string; /** * Optional private auction id if this offer is a private auction offer. */ - privateAuctionId: string; + privateAuctionId?: string; /** * The unique id for the product (readonly) */ - productId: string; + productId?: string; /** * Id of the publisher profile for a given seller. A (seller.account_id, * publisher_profile_id) pair uniquely identifies a publisher profile. * Buyers can call the PublisherProfiles::List endpoint to get a list of * publisher profiles for a given seller. */ - publisherProfileId: string; + publisherProfileId?: string; /** * Publisher self-provided forecast information. */ - publisherProvidedForecast: Schema$PublisherProvidedForecast; + publisherProvidedForecast?: Schema$PublisherProvidedForecast; /** * The revision number of the product. (readonly) */ - revisionNumber: string; + revisionNumber?: string; /** * Information about the seller that created this product (readonly, except * on create) */ - seller: Schema$Seller; + seller?: Schema$Seller; /** * Targeting that is shared between the buyer and the seller. Each targeting * criteria has a specified key and for each key there is a list of * inclusion value or exclusion values. (buyer-readonly) */ - sharedTargetings: Schema$SharedTargeting[]; + sharedTargetings?: Schema$SharedTargeting[]; /** * The state of the product. (buyer-readonly) */ - state: string; + state?: string; /** * The syndication product associated with the deal. (readonly, except on * create) */ - syndicationProduct: string; + syndicationProduct?: string; /** * The negotiable terms of the deal (buyer-readonly) */ - terms: Schema$DealTerms; + terms?: Schema$DealTerms; /** * The web property code for the seller. This field is meant to be copied * over as is when creating deals. */ - webPropertyCode: string; + webPropertyCode?: string; } /** * Represents a proposal in the marketplace. A proposal is the unit of @@ -1414,199 +1417,199 @@ export namespace adexchangebuyer_v1_4 { /** * Reference to the buyer that will get billed for this proposal. (readonly) */ - billedBuyer: Schema$Buyer; + billedBuyer?: Schema$Buyer; /** * Reference to the buyer on the proposal. (readonly, except on create) */ - buyer: Schema$Buyer; + buyer?: Schema$Buyer; /** * Optional contact information of the buyer. (seller-readonly) */ - buyerContacts: Schema$ContactInformation[]; + buyerContacts?: Schema$ContactInformation[]; /** * Private data for buyer. (hidden from seller). */ - buyerPrivateData: Schema$PrivateData; + buyerPrivateData?: Schema$PrivateData; /** * IDs of DBM advertisers permission to this proposal. */ - dbmAdvertiserIds: string[]; + dbmAdvertiserIds?: string[]; /** * When an proposal is in an accepted state, indicates whether the buyer has * signed off. Once both sides have signed off on a deal, the proposal can * be finalized by the seller. (seller-readonly) */ - hasBuyerSignedOff: boolean; + hasBuyerSignedOff?: boolean; /** * When an proposal is in an accepted state, indicates whether the buyer has * signed off Once both sides have signed off on a deal, the proposal can be * finalized by the seller. (buyer-readonly) */ - hasSellerSignedOff: boolean; + hasSellerSignedOff?: boolean; /** * What exchange will provide this inventory (readonly, except on create). */ - inventorySource: string; + inventorySource?: string; /** * True if the proposal is being renegotiated (readonly). */ - isRenegotiating: boolean; + isRenegotiating?: boolean; /** * True, if the buyside inventory setup is complete for this proposal. * (readonly, except via OrderSetupCompleted action) Deprecated in favor of * deal level setup complete flag. */ - isSetupComplete: boolean; + isSetupComplete?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "adexchangebuyer#proposal". */ - kind: string; + kind?: string; /** * List of labels associated with the proposal. (readonly) */ - labels: Schema$MarketplaceLabel[]; + labels?: Schema$MarketplaceLabel[]; /** * The role of the last user that either updated the proposal or left a * comment. (readonly) */ - lastUpdaterOrCommentorRole: string; + lastUpdaterOrCommentorRole?: string; /** * The name for the proposal (updatable) */ - name: string; + name?: string; /** * Optional negotiation id if this proposal is a preferred deal proposal. */ - negotiationId: string; + negotiationId?: string; /** * Indicates whether the buyer/seller created the proposal.(readonly) */ - originatorRole: string; + originatorRole?: string; /** * Optional private auction id if this proposal is a private auction * proposal. */ - privateAuctionId: string; + privateAuctionId?: string; /** * The unique id of the proposal. (readonly). */ - proposalId: string; + proposalId?: string; /** * The current state of the proposal. (readonly) */ - proposalState: string; + proposalState?: string; /** * The revision number for the proposal (readonly). */ - revisionNumber: string; + revisionNumber?: string; /** * The time (ms since epoch) when the proposal was last revised (readonly). */ - revisionTimeMs: string; + revisionTimeMs?: string; /** * Reference to the seller on the proposal. (readonly, except on create) */ - seller: Schema$Seller; + seller?: Schema$Seller; /** * Optional contact information of the seller (buyer-readonly). */ - sellerContacts: Schema$ContactInformation[]; + sellerContacts?: Schema$ContactInformation[]; } export interface Schema$PublisherProfileApiProto { /** * Deprecated: use the seller.account_id. The account id of the seller. */ - accountId: string; + accountId?: string; /** * Publisher provided info on its audience. */ - audience: string; + audience?: string; /** * A pitch statement for the buyer */ - buyerPitchStatement: string; + buyerPitchStatement?: string; /** * Direct contact for the publisher profile. */ - directContact: string; + directContact?: string; /** * Exchange where this publisher profile is from. E.g. AdX, Rubicon etc... */ - exchange: string; + exchange?: string; /** * Link to publisher's Google+ page. */ - googlePlusLink: string; + googlePlusLink?: string; /** * True, if this is the parent profile, which represents all domains owned * by the publisher. */ - isParent: boolean; + isParent?: boolean; /** * True, if this profile is published. Deprecated for state. */ - isPublished: boolean; + isPublished?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "adexchangebuyer#publisherProfileApiProto". */ - kind: string; + kind?: string; /** * The url to the logo for the publisher. */ - logoUrl: string; + logoUrl?: string; /** * The url for additional marketing and sales materials. */ - mediaKitLink: string; - name: string; + mediaKitLink?: string; + name?: string; /** * Publisher provided overview. */ - overview: string; + overview?: string; /** * The pair of (seller.account_id, profile_id) uniquely identifies a * publisher profile for a given publisher. */ - profileId: number; + profileId?: number; /** * Programmatic contact for the publisher profile. */ - programmaticContact: string; + programmaticContact?: string; /** * The list of domains represented in this publisher profile. Empty if this * is a parent profile. */ - publisherDomains: string[]; + publisherDomains?: string[]; /** * Unique Id for publisher profile. */ - publisherProfileId: string; + publisherProfileId?: string; /** * Publisher provided forecasting information. */ - publisherProvidedForecast: Schema$PublisherProvidedForecast; + publisherProvidedForecast?: Schema$PublisherProvidedForecast; /** * Link to publisher rate card */ - rateCardInfoLink: string; + rateCardInfoLink?: string; /** * Link for a sample content page. */ - samplePageLink: string; + samplePageLink?: string; /** * Seller of the publisher profile. */ - seller: Schema$Seller; + seller?: Schema$Seller; /** * State of the publisher profile. */ - state: string; + state?: string; /** * Publisher provided key metrics and rankings. */ - topHeadlines: string[]; + topHeadlines?: string[]; } /** * This message carries publisher provided forecasting information. @@ -1615,63 +1618,63 @@ export namespace adexchangebuyer_v1_4 { /** * Publisher provided dimensions. E.g. geo, sizes etc... */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * Publisher provided weekly impressions. */ - weeklyImpressions: string; + weeklyImpressions?: string; /** * Publisher provided weekly uniques. */ - weeklyUniques: string; + weeklyUniques?: string; } export interface Schema$Seller { /** * The unique id for the seller. The seller fills in this field. The seller * account id is then available to buyer in the product. */ - accountId: string; + accountId?: string; /** * Optional sub-account id for the seller. */ - subAccountId: string; + subAccountId?: string; } export interface Schema$SharedTargeting { /** * The list of values to exclude from targeting. Each value is AND'd * together. */ - exclusions: Schema$TargetingValue[]; + exclusions?: Schema$TargetingValue[]; /** * The list of value to include as part of the targeting. Each value is * OR'd together. */ - inclusions: Schema$TargetingValue[]; + inclusions?: Schema$TargetingValue[]; /** * The key representing the shared targeting criterion. */ - key: string; + key?: string; } export interface Schema$TargetingValue { /** * The creative size value to exclude/include. */ - creativeSizeValue: Schema$TargetingValueCreativeSize; + creativeSizeValue?: Schema$TargetingValueCreativeSize; /** * The daypart targeting to include / exclude. Filled in when the key is * GOOG_DAYPART_TARGETING. */ - dayPartTargetingValue: Schema$TargetingValueDayPartTargeting; - demogAgeCriteriaValue: Schema$TargetingValueDemogAgeCriteria; - demogGenderCriteriaValue: Schema$TargetingValueDemogGenderCriteria; + dayPartTargetingValue?: Schema$TargetingValueDayPartTargeting; + demogAgeCriteriaValue?: Schema$TargetingValueDemogAgeCriteria; + demogGenderCriteriaValue?: Schema$TargetingValueDemogGenderCriteria; /** * The long value to exclude/include. */ - longValue: string; + longValue?: string; /** * The string value to exclude/include. */ - stringValue: string; + stringValue?: string; } /** * Next Id: 7 @@ -1680,75 +1683,76 @@ export namespace adexchangebuyer_v1_4 { /** * The formats allowed by the publisher. */ - allowedFormats: string[]; + allowedFormats?: string[]; /** * For video size type, the list of companion sizes. */ - companionSizes: Schema$TargetingValueSize[]; + companionSizes?: Schema$TargetingValueSize[]; /** * The Creative size type. */ - creativeSizeType: string; + creativeSizeType?: string; /** * The native template for native ad. */ - nativeTemplate: string; + nativeTemplate?: string; /** * For regular or video creative size type, specifies the size of the * creative. */ - size: Schema$TargetingValueSize; + size?: Schema$TargetingValueSize; /** * The skippable ad type for video size. */ - skippableAdType: string; + skippableAdType?: string; } export interface Schema$TargetingValueDayPartTargeting { - dayParts: Schema$TargetingValueDayPartTargetingDayPart[]; - timeZoneType: string; + dayParts?: Schema$TargetingValueDayPartTargetingDayPart[]; + timeZoneType?: string; } export interface Schema$TargetingValueDayPartTargetingDayPart { - dayOfWeek: string; - endHour: number; - endMinute: number; - startHour: number; - startMinute: number; + dayOfWeek?: string; + endHour?: number; + endMinute?: number; + startHour?: number; + startMinute?: number; } export interface Schema$TargetingValueDemogAgeCriteria { - demogAgeCriteriaIds: string[]; + demogAgeCriteriaIds?: string[]; } export interface Schema$TargetingValueDemogGenderCriteria { - demogGenderCriteriaIds: string[]; + demogGenderCriteriaIds?: string[]; } export interface Schema$TargetingValueSize { /** * The height of the creative. */ - height: number; + height?: number; /** * The width of the creative. */ - width: number; + width?: number; } export interface Schema$UpdatePrivateAuctionProposalRequest { /** * The externalDealId of the deal to be updated. */ - externalDealId: string; + externalDealId?: string; /** * Optional note to be added. */ - note: Schema$MarketplaceNote; + note?: Schema$MarketplaceNote; /** * The current revision number of the proposal to be updated. */ - proposalRevisionNumber: string; + proposalRevisionNumber?: string; /** * The proposed action on the private auction proposal. */ - updateAction: string; + updateAction?: string; } + export class Resource$Accounts { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -1773,23 +1777,33 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1823,26 +1837,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1879,25 +1904,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Accounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1934,25 +1970,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1975,6 +2022,63 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id + */ + id?: number; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Accounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Confirmation for erasing bidder and cookie matching urls. + */ + confirmUnsafeAccountChange?: boolean; + /** + * The account id + */ + id?: number; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Confirmation for erasing bidder and cookie matching urls. + */ + confirmUnsafeAccountChange?: boolean; + /** + * The account id + */ + id?: number; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Billinginfo { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -2000,24 +2104,34 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Billinginfo$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Billinginfo$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Billinginfo$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Billinginfo$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Billinginfo$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billinginfo$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2052,26 +2166,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Billinginfo$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Billinginfo$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billinginfo$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Billinginfo$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Billinginfo$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billinginfo$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2094,6 +2219,25 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Billinginfo$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id. + */ + accountId?: number; + } + export interface Params$Resource$Billinginfo$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Budget { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -2120,23 +2264,33 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Budget$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Budget$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Budget$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Budget$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Budget$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Budget$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2176,25 +2330,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Budget$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Budget$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Budget$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Budget$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Budget$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Budget$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2233,25 +2398,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Budget$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Budget$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Budget$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Budget$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Budget$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Budget$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2275,6 +2451,61 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Budget$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the budget information for. + */ + accountId?: string; + /** + * The billing id to get the budget information for. + */ + billingId?: string; + } + export interface Params$Resource$Budget$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id associated with the budget being updated. + */ + accountId?: string; + /** + * The billing id associated with the budget being updated. + */ + billingId?: string; + /** + * Request body metadata + */ + resource?: Schema$Budget; + } + export interface Params$Resource$Budget$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id associated with the budget being updated. + */ + accountId?: string; + /** + * The billing id associated with the budget being updated. + */ + billingId?: string; + /** + * Request body metadata + */ + resource?: Schema$Budget; + } + + export class Resource$Creatives { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -2301,22 +2532,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addDeal(params?: any, options?: MethodOptions): AxiosPromise; addDeal( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creatives$Adddeal, + options?: MethodOptions): AxiosPromise; addDeal( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Adddeal, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addDeal( + params: Params$Resource$Creatives$Adddeal, + callback: BodyResponseCallback): void; + addDeal(callback: BodyResponseCallback): void; + addDeal( + paramsOrCallback?: Params$Resource$Creatives$Adddeal| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creatives$Adddeal; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Adddeal; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2355,23 +2601,33 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Creatives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Creatives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creatives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creatives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2408,26 +2664,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Creatives$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2468,26 +2734,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creatives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Creatives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2523,26 +2800,39 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listDeals(params?: any, options?: MethodOptions): - AxiosPromise; listDeals( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creatives$Listdeals, + options?: MethodOptions): AxiosPromise; listDeals( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Listdeals, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listDeals( + params: Params$Resource$Creatives$Listdeals, + callback: BodyResponseCallback): void; + listDeals(callback: BodyResponseCallback): void; + listDeals( + paramsOrCallback?: Params$Resource$Creatives$Listdeals| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creatives$Listdeals; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Listdeals; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2581,22 +2871,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeDeal(params?: any, options?: MethodOptions): AxiosPromise; removeDeal( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creatives$Removedeal, + options?: MethodOptions): AxiosPromise; + removeDeal( + params: Params$Resource$Creatives$Removedeal, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeDeal( + params: Params$Resource$Creatives$Removedeal, + callback: BodyResponseCallback): void; + removeDeal(callback: BodyResponseCallback): void; removeDeal( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$Removedeal| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creatives$Removedeal; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Removedeal; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2621,6 +2926,119 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Creatives$Adddeal { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the account that will serve this creative. + */ + accountId?: number; + /** + * The buyer-specific id for this creative. + */ + buyerCreativeId?: string; + /** + * The id of the deal id to associate with this creative. + */ + dealId?: string; + } + export interface Params$Resource$Creatives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the account that will serve this creative. + */ + accountId?: number; + /** + * The buyer-specific id for this creative. + */ + buyerCreativeId?: string; + } + export interface Params$Resource$Creatives$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When specified, only creatives for the given account ids are returned. + */ + accountId?: number; + /** + * When specified, only creatives for the given buyer creative ids are + * returned. + */ + buyerCreativeId?: string; + /** + * When specified, only creatives having the given deals status are + * returned. + */ + dealsStatusFilter?: string; + /** + * Maximum number of entries returned on one result page. If not set, the + * default is 100. Optional. + */ + maxResults?: number; + /** + * When specified, only creatives having the given open auction status are + * returned. + */ + openAuctionStatusFilter?: string; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. Optional. + */ + pageToken?: string; + } + export interface Params$Resource$Creatives$Listdeals { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the account that will serve this creative. + */ + accountId?: number; + /** + * The buyer-specific id for this creative. + */ + buyerCreativeId?: string; + } + export interface Params$Resource$Creatives$Removedeal { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the account that will serve this creative. + */ + accountId?: number; + /** + * The buyer-specific id for this creative. + */ + buyerCreativeId?: string; + /** + * The id of the deal id to disassociate with this creative. + */ + dealId?: string; + } + + export class Resource$Marketplacedeals { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -2646,28 +3064,41 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Marketplacedeals$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Marketplacedeals$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Marketplacedeals$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): + void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Marketplacedeals$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Marketplacedeals$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplacedeals$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2704,28 +3135,40 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Marketplacedeals$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Marketplacedeals$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Marketplacedeals$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Marketplacedeals$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Marketplacedeals$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplacedeals$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2762,28 +3205,40 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Marketplacedeals$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Marketplacedeals$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Marketplacedeals$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Marketplacedeals$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Marketplacedeals$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplacedeals$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2820,29 +3275,42 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update( + params?: Params$Resource$Marketplacedeals$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Marketplacedeals$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Marketplacedeals$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Marketplacedeals$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Marketplacedeals$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplacedeals$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2867,21 +3335,84 @@ export namespace adexchangebuyer_v1_4 { } } - export class Resource$Marketplacenotes { - root: Adexchangebuyer; - constructor(root: Adexchangebuyer) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Marketplacedeals$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The proposalId to delete deals from. + */ + proposalId?: string; + /** + * Request body metadata + */ + resource?: Schema$DeleteOrderDealsRequest; + } + export interface Params$Resource$Marketplacedeals$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * adexchangebuyer.marketplacenotes.insert - * @desc Add notes to the proposal + * proposalId for which deals need to be added. + */ + proposalId?: string; + /** + * Request body metadata + */ + resource?: Schema$AddOrderDealsRequest; + } + export interface Params$Resource$Marketplacedeals$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query string to retrieve specific deals. + */ + pqlQuery?: string; + /** + * The proposalId to get deals for. To search across all proposals specify + * order_id = '-' as part of the URL. + */ + proposalId?: string; + } + export interface Params$Resource$Marketplacedeals$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The proposalId to edit deals on. + */ + proposalId?: string; + /** + * Request body metadata + */ + resource?: Schema$EditAllOrderDealsRequest; + } + + + export class Resource$Marketplacenotes { + root: Adexchangebuyer; + constructor(root: Adexchangebuyer) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * adexchangebuyer.marketplacenotes.insert + * @desc Add notes to the proposal * @alias adexchangebuyer.marketplacenotes.insert * @memberOf! () * @@ -2892,28 +3423,40 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Marketplacenotes$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Marketplacenotes$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Marketplacenotes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Marketplacenotes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Marketplacenotes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplacenotes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2950,28 +3493,40 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Marketplacenotes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Marketplacenotes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Marketplacenotes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Marketplacenotes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Marketplacenotes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplacenotes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2995,6 +3550,41 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Marketplacenotes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The proposalId to add notes for. + */ + proposalId?: string; + /** + * Request body metadata + */ + resource?: Schema$AddOrderNotesRequest; + } + export interface Params$Resource$Marketplacenotes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query string to retrieve specific notes. To search the text contents of + * notes, please use syntax like "WHERE note.note = "foo" or "WHERE + * note.note LIKE "%bar%" + */ + pqlQuery?: string; + /** + * The proposalId to get notes for. To search across all proposals specify + * order_id = '-' as part of the URL. + */ + proposalId?: string; + } + + export class Resource$Marketplaceprivateauction { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -3020,22 +3610,38 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateproposal(params?: any, options?: MethodOptions): AxiosPromise; updateproposal( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Marketplaceprivateauction$Updateproposal, + options?: MethodOptions): AxiosPromise; + updateproposal( + params: Params$Resource$Marketplaceprivateauction$Updateproposal, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; updateproposal( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Marketplaceprivateauction$Updateproposal, + callback: BodyResponseCallback): void; + updateproposal(callback: BodyResponseCallback): void; + updateproposal( + paramsOrCallback?: + Params$Resource$Marketplaceprivateauction$Updateproposal| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Marketplaceprivateauction$Updateproposal; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Marketplaceprivateauction$Updateproposal; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3060,6 +3666,23 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Marketplaceprivateauction$Updateproposal { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The private auction id to be updated. + */ + privateAuctionId?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdatePrivateAuctionProposalRequest; + } + + export class Resource$Performancereport { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -3088,28 +3711,40 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Performancereport$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Performancereport$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Performancereport$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Performancereport$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Performancereport$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Performancereport$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3132,6 +3767,38 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Performancereport$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the reports. + */ + accountId?: string; + /** + * The end time of the report in ISO 8601 timestamp format using UTC. + */ + endDateTime?: string; + /** + * Maximum number of entries returned on one result page. If not set, the + * default is 100. Optional. + */ + maxResults?: number; + /** + * A continuation token, used to page through performance reports. To + * retrieve the next page, set this parameter to the value of + * "nextPageToken" from the previous response. Optional. + */ + pageToken?: string; + /** + * The start time of the report in ISO 8601 timestamp format using UTC. + */ + startDateTime?: string; + } + + export class Resource$Pretargetingconfig { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -3157,22 +3824,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Pretargetingconfig$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pretargetingconfig$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Pretargetingconfig$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3210,24 +3892,35 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Pretargetingconfig$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Pretargetingconfig$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pretargetingconfig$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pretargetingconfig$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3265,26 +3958,39 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pretargetingconfig$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Pretargetingconfig$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Pretargetingconfig$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3321,28 +4027,40 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Pretargetingconfig$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Pretargetingconfig$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Pretargetingconfig$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Pretargetingconfig$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3381,26 +4099,39 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Pretargetingconfig$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pretargetingconfig$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Pretargetingconfig$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3439,26 +4170,39 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pretargetingconfig$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Pretargetingconfig$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Pretargetingconfig$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pretargetingconfig$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pretargetingconfig$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pretargetingconfig$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3483,6 +4227,102 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Pretargetingconfig$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to delete the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to delete. + */ + configId?: string; + } + export interface Params$Resource$Pretargetingconfig$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to retrieve. + */ + configId?: string; + } + export interface Params$Resource$Pretargetingconfig$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to insert the pretargeting config for. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$PretargetingConfig; + } + export interface Params$Resource$Pretargetingconfig$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to get the pretargeting configs for. + */ + accountId?: string; + } + export interface Params$Resource$Pretargetingconfig$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to update the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to update. + */ + configId?: string; + /** + * Request body metadata + */ + resource?: Schema$PretargetingConfig; + } + export interface Params$Resource$Pretargetingconfig$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account id to update the pretargeting config for. + */ + accountId?: string; + /** + * The specific id of the configuration to update. + */ + configId?: string; + /** + * Request body metadata + */ + resource?: Schema$PretargetingConfig; + } + + export class Resource$Products { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -3507,23 +4347,33 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Products$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Products$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Products$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Products$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3558,26 +4408,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Products$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Products$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Products$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Products$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3600,6 +4461,30 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Products$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id for the product to get the head revision for. + */ + productId?: string; + } + export interface Params$Resource$Products$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The pql query used to query for products. + */ + pqlQuery?: string; + } + + export class Resource$Proposals { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -3624,23 +4509,33 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Proposals$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Proposals$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Proposals$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Proposals$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Proposals$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Proposals$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3675,28 +4570,38 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Proposals$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Proposals$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Proposals$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Proposals$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Proposals$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Proposals$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3734,25 +4639,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Proposals$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Proposals$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Proposals$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Proposals$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Proposals$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Proposals$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3789,26 +4705,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Proposals$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Proposals$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Proposals$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$Proposals$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Proposals$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Proposals$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3844,22 +4771,37 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setupcomplete(params?: any, options?: MethodOptions): AxiosPromise; setupcomplete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Proposals$Setupcomplete, + options?: MethodOptions): AxiosPromise; setupcomplete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Proposals$Setupcomplete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setupcomplete( + params: Params$Resource$Proposals$Setupcomplete, + callback: BodyResponseCallback): void; + setupcomplete(callback: BodyResponseCallback): void; + setupcomplete( + paramsOrCallback?: Params$Resource$Proposals$Setupcomplete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Proposals$Setupcomplete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Proposals$Setupcomplete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3899,26 +4841,36 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Proposals$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Proposals$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Proposals$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Proposals$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Proposals$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Proposals$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3943,6 +4895,101 @@ export namespace adexchangebuyer_v1_4 { } } + export interface Params$Resource$Proposals$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Id of the proposal to retrieve. + */ + proposalId?: string; + } + export interface Params$Resource$Proposals$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Proposals$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The proposal id to update. + */ + proposalId?: string; + /** + * The last known revision number to update. If the head revision in the + * marketplace database has since changed, an error will be thrown. The + * caller should then fetch the latest proposal at head revision and retry + * the update at that revision. + */ + revisionNumber?: string; + /** + * The proposed action to take on the proposal. This field is required and + * it must be set when updating a proposal. + */ + updateAction?: string; + /** + * Request body metadata + */ + resource?: Schema$Proposal; + } + export interface Params$Resource$Proposals$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query string to retrieve specific proposals. + */ + pqlQuery?: string; + } + export interface Params$Resource$Proposals$Setupcomplete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The proposal id for which the setup is complete + */ + proposalId?: string; + } + export interface Params$Resource$Proposals$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The proposal id to update. + */ + proposalId?: string; + /** + * The last known revision number to update. If the head revision in the + * marketplace database has since changed, an error will be thrown. The + * caller should then fetch the latest proposal at head revision and retry + * the update at that revision. + */ + revisionNumber?: string; + /** + * The proposed action to take on the proposal. This field is required and + * it must be set when updating a proposal. + */ + updateAction?: string; + /** + * Request body metadata + */ + resource?: Schema$Proposal; + } + + export class Resource$Pubprofiles { root: Adexchangebuyer; constructor(root: Adexchangebuyer) { @@ -3967,30 +5014,42 @@ export namespace adexchangebuyer_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Pubprofiles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pubprofiles$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GetPublisherProfilesByAccountIdResponse>): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pubprofiles$List, + callback: BodyResponseCallback< + Schema$GetPublisherProfilesByAccountIdResponse>): void; + list(callback: BodyResponseCallback< + Schema$GetPublisherProfilesByAccountIdResponse>): void; + list( + paramsOrCallback?: Params$Resource$Pubprofiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GetPublisherProfilesByAccountIdResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pubprofiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pubprofiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4015,4 +5074,16 @@ export namespace adexchangebuyer_v1_4 { } } } + + export interface Params$Resource$Pubprofiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The accountId of the publisher to get profiles for. + */ + accountId?: number; + } } diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts index a0f55c8a0fd..eb5c47d2856 100644 --- a/src/apis/adexchangebuyer2/v2beta1.ts +++ b/src/apis/adexchangebuyer2/v2beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangebuyer2_v2beta1 { + export interface Options extends GlobalOptions { version: 'v2beta1'; } + /** * Ad Exchange Buyer API II * @@ -81,12 +84,12 @@ export namespace adexchangebuyer2_v2beta1 { * The end date of the range (inclusive). Must be within the 30 days leading * up to current date, and must be equal to or after start_date. */ - endDate: Schema$Date; + endDate?: Schema$Date; /** * The start date of the range (inclusive). Must be within the 30 days * leading up to current date, and must be equal to or before end_date. */ - startDate: Schema$Date; + startDate?: Schema$Date; } /** * A request for associating a deal and a creative. @@ -95,7 +98,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The association between a creative and a deal that should be added. */ - association: Schema$CreativeDealAssociation; + association?: Schema$CreativeDealAssociation; } /** * @OutputOnly The app type the restriction applies to for mobile device. @@ -104,7 +107,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The app types this restriction applies to. */ - appTypes: string[]; + appTypes?: string[]; } /** * @OutputOnly The auction type the restriction applies to. @@ -113,7 +116,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The auction types this restriction applies to. */ - auctionTypes: string[]; + auctionTypes?: string[]; } /** * The set of metrics that are measured in numbers of bids, representing how @@ -124,33 +127,33 @@ export namespace adexchangebuyer2_v2beta1 { /** * The number of bids that Ad Exchange received from the buyer. */ - bids: Schema$MetricValue; + bids?: Schema$MetricValue; /** * The number of bids that were permitted to compete in the auction. */ - bidsInAuction: Schema$MetricValue; + bidsInAuction?: Schema$MetricValue; /** * The number of bids for which the buyer was billed. */ - billedImpressions: Schema$MetricValue; + billedImpressions?: Schema$MetricValue; /** * The number of bids that won an impression. */ - impressionsWon: Schema$MetricValue; + impressionsWon?: Schema$MetricValue; /** * The number of bids for which the corresponding impression was measurable * for viewability (as defined by Active View). */ - measurableImpressions: Schema$MetricValue; + measurableImpressions?: Schema$MetricValue; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; /** * The number of bids for which the corresponding impression was viewable * (as defined by Active View). */ - viewableImpressions: Schema$MetricValue; + viewableImpressions?: Schema$MetricValue; } /** * The number of impressions with the specified dimension values that were @@ -162,16 +165,16 @@ export namespace adexchangebuyer2_v2beta1 { * The number of impressions for which there was a bid response with the * specified status. */ - impressionCount: Schema$MetricValue; + impressionCount?: Schema$MetricValue; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; /** * The status specifying why the bid responses were considered to have no * applicable bids. */ - status: string; + status?: string; } /** * The number of impressions with the specified dimension values where the @@ -183,16 +186,16 @@ export namespace adexchangebuyer2_v2beta1 { * The ID of the callout status. See * [callout-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/callout-status-codes). */ - calloutStatusId: number; + calloutStatusId?: number; /** * The number of impressions for which there was a bid request or bid * response with the specified callout status. */ - impressionCount: Schema$MetricValue; + impressionCount?: Schema$MetricValue; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; } /** * A client resource represents a client buyer&mdash;an agency, a brand, @@ -207,14 +210,14 @@ export namespace adexchangebuyer2_v2beta1 { * The globally-unique numerical ID of the client. The value of this field * is ignored in create and update operations. */ - clientAccountId: string; + clientAccountId?: string; /** * Name used to represent this client to publishers. You may have multiple * clients that map to the same entity, but for each client the combination * of `clientName` and entity must be unique. You can specify this field as * empty. */ - clientName: string; + clientName?: string; /** * Numerical identifier of the client entity. The entity can be an * advertiser, a brand, or an agency. This identifier is unique among all @@ -229,17 +232,17 @@ export namespace adexchangebuyer2_v2beta1 { * [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries/agencies.txt) * file. */ - entityId: string; + entityId?: string; /** * The name of the entity. This field is automatically fetched based on the * type and ID. The value of this field is ignored in create and update * operations. */ - entityName: string; + entityName?: string; /** * The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`. */ - entityType: string; + entityType?: string; /** * Optional arbitrary unique identifier of this client buyer from the * standpoint of its Ad Exchange sponsor buyer. This field can be used to @@ -249,21 +252,21 @@ export namespace adexchangebuyer2_v2beta1 { * present, must be unique among all the client buyers for its Ad Exchange * sponsor buyer. */ - partnerClientId: string; + partnerClientId?: string; /** * The role which is assigned to the client buyer. Each role implies a set * of permissions granted to the client. Must be one of * `CLIENT_DEAL_VIEWER`, `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. */ - role: string; + role?: string; /** * The status of the client buyer. */ - status: string; + status?: string; /** * Whether the client buyer will be visible to sellers. */ - visibleToSeller: boolean; + visibleToSeller?: boolean; } /** * A client user is created under a client buyer and has restricted access to @@ -279,21 +282,21 @@ export namespace adexchangebuyer2_v2beta1 { * associated; the buyer must be a client of the current sponsor buyer. The * value of this field is ignored in an update operation. */ - clientAccountId: string; + clientAccountId?: string; /** * User's email address. The value of this field is ignored in an update * operation. */ - email: string; + email?: string; /** * The status of the client user. */ - status: string; + status?: string; /** * The unique numerical ID of the client user that has accepted an * invitation. The value of this field is ignored in an update operation. */ - userId: string; + userId?: string; } /** * An invitation for a new client user to get access to the Ad Exchange Buyer @@ -304,17 +307,17 @@ export namespace adexchangebuyer2_v2beta1 { * Numerical account ID of the client buyer that the invited user is * associated with. The value of this field is ignored in create operations. */ - clientAccountId: string; + clientAccountId?: string; /** * The email address to which the invitation is sent. Email addresses should * be unique among all client users under each sponsor buyer. */ - email: string; + email?: string; /** * The unique numerical ID of the invitation that is sent to the user. The * value of this field is ignored in create operations. */ - invitationId: string; + invitationId?: string; } /** * @OutputOnly Shows any corrections that were applied to this creative. @@ -323,15 +326,15 @@ export namespace adexchangebuyer2_v2beta1 { /** * The contexts for the correction. */ - contexts: Schema$ServingContext[]; + contexts?: Schema$ServingContext[]; /** * Additional details about what was corrected. */ - details: string[]; + details?: string[]; /** * The type of correction that was applied to the creative. */ - type: string; + type?: string; } /** * A creative and its classification data. Next ID: 35 @@ -341,41 +344,41 @@ export namespace adexchangebuyer2_v2beta1 { * The account that this creative belongs to. Can be used to filter the * response of the creatives.list method. */ - accountId: string; + accountId?: string; /** * The link to AdChoices destination page. */ - adChoicesDestinationUrl: string; + adChoicesDestinationUrl?: string; /** * The name of the company being advertised in the creative. */ - advertiserName: string; + advertiserName?: string; /** * The agency ID for this creative. */ - agencyId: string; + agencyId?: string; /** * @OutputOnly The last update timestamp of the creative via API. */ - apiUpdateTime: string; + apiUpdateTime?: string; /** * All attributes for the ads that may be shown from this creative. Can be * used to filter the response of the creatives.list method. */ - attributes: string[]; + attributes?: string[]; /** * The set of destination URLs for the creative. */ - clickThroughUrls: string[]; + clickThroughUrls?: string[]; /** * @OutputOnly Shows any corrections that were applied to this creative. */ - corrections: Schema$Correction[]; + corrections?: Schema$Correction[]; /** * The buyer-defined creative ID of this creative. Can be used to filter the * response of the creatives.list method. */ - creativeId: string; + creativeId?: string; /** * @OutputOnly The top-level deals status of this creative. If disapproved, * an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in @@ -384,50 +387,50 @@ export namespace adexchangebuyer2_v2beta1 { * read from serving_restrictions directly. Can be used to filter the * response of the creatives.list method. */ - dealsStatus: string; + dealsStatus?: string; /** * @OutputOnly Detected advertiser IDs, if any. */ - detectedAdvertiserIds: string[]; + detectedAdvertiserIds?: string[]; /** * @OutputOnly The detected domains for this creative. */ - detectedDomains: string[]; + detectedDomains?: string[]; /** * @OutputOnly The detected languages for this creative. The order is * arbitrary. The codes are 2 or 5 characters and are documented at * https://developers.google.com/adwords/api/docs/appendix/languagecodes. */ - detectedLanguages: string[]; + detectedLanguages?: string[]; /** * @OutputOnly Detected product categories, if any. See the * ad-product-categories.txt file in the technical documentation for a list * of IDs. */ - detectedProductCategories: number[]; + detectedProductCategories?: number[]; /** * @OutputOnly Detected sensitive categories, if any. See the * ad-sensitive-categories.txt file in the technical documentation for a * list of IDs. You should use these IDs along with the * excluded-sensitive-category field in the bid request to filter your bids. */ - detectedSensitiveCategories: number[]; + detectedSensitiveCategories?: number[]; /** * @OutputOnly The filtering stats for this creative. */ - filteringStats: Schema$FilteringStats; + filteringStats?: Schema$FilteringStats; /** * An HTML creative. */ - html: Schema$HtmlContent; + html?: Schema$HtmlContent; /** * The set of URLs to be called to record an impression. */ - impressionTrackingUrls: string[]; + impressionTrackingUrls?: string[]; /** * A native creative. */ - native: Schema$NativeContent; + native?: Schema$NativeContent; /** * @OutputOnly The top-level open auction status of this creative. If * disapproved, an entry for 'auctionType = OPEN_AUCTION' (or @@ -436,33 +439,33 @@ export namespace adexchangebuyer2_v2beta1 { * be preferable to read from serving_restrictions directly. Can be used to * filter the response of the creatives.list method. */ - openAuctionStatus: string; + openAuctionStatus?: string; /** * All restricted categories for the ads that may be shown from this * creative. */ - restrictedCategories: string[]; + restrictedCategories?: string[]; /** * @OutputOnly The granular status of this ad in specific contexts. A * context here relates to where something ultimately serves (for example, a * physical location, a platform, an HTTPS vs HTTP request, or the type of * auction). */ - servingRestrictions: Schema$ServingRestriction[]; + servingRestrictions?: Schema$ServingRestriction[]; /** * All vendor IDs for the ads that may be shown from this creative. See * https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for * possible values. */ - vendorIds: number[]; + vendorIds?: number[]; /** * @OutputOnly The version of this creative. */ - version: number; + version?: number; /** * A video creative. */ - video: Schema$VideoContent; + video?: Schema$VideoContent; } /** * The association between a creative and a deal. @@ -471,15 +474,15 @@ export namespace adexchangebuyer2_v2beta1 { /** * The account the creative belongs to. */ - accountId: string; + accountId?: string; /** * The ID of the creative associated with the deal. */ - creativeId: string; + creativeId?: string; /** * The externalDealId for the deal associated with the creative. */ - dealsId: string; + dealsId?: string; } /** * The number of bids with the specified dimension values that did not win the @@ -490,16 +493,16 @@ export namespace adexchangebuyer2_v2beta1 { /** * The number of bids with the specified status. */ - bidCount: Schema$MetricValue; + bidCount?: Schema$MetricValue; /** * The ID of the creative status. See * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). */ - creativeStatusId: number; + creativeStatusId?: number; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -515,17 +518,17 @@ export namespace adexchangebuyer2_v2beta1 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * @OutputOnly The reason and details for a disapproval. @@ -534,11 +537,11 @@ export namespace adexchangebuyer2_v2beta1 { /** * Additional details about the reason for disapproval. */ - details: string[]; + details?: string[]; /** * The categorized reason for disapproval. */ - reason: string; + reason?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -556,15 +559,15 @@ export namespace adexchangebuyer2_v2beta1 { /** * The number of bids with the specified creative. */ - bidCount: Schema$MetricValue; + bidCount?: Schema$MetricValue; /** * The ID of the creative. */ - creativeId: string; + creativeId?: string; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; } /** * The number of filtered bids with the specified dimension values, among @@ -575,16 +578,16 @@ export namespace adexchangebuyer2_v2beta1 { /** * The number of bids with the specified detail. */ - bidCount: Schema$MetricValue; + bidCount?: Schema$MetricValue; /** * The ID of the detail. The associated value can be looked up in the * dictionary file corresponding to the DetailType in the response message. */ - detailId: number; + detailId?: number; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; } /** * @OutputOnly Filtering reasons for this creative during a period of a single @@ -596,11 +599,11 @@ export namespace adexchangebuyer2_v2beta1 { * 00:00:00 to 23:59:59 PT. During switches from PST to PDT and back, the * day may contain 23 or 25 hours of data instead of the usual 24. */ - date: Schema$Date; + date?: Schema$Date; /** * The set of filtering reasons for this date. */ - reasons: Schema$Reason[]; + reasons?: Schema$Reason[]; } /** * A set of filters that is applied to a request for data. Within a filter @@ -614,31 +617,31 @@ export namespace adexchangebuyer2_v2beta1 { * An absolute date range, defined by a start date and an end date. * Interpreted relative to Pacific time zone. */ - absoluteDateRange: Schema$AbsoluteDateRange; + absoluteDateRange?: Schema$AbsoluteDateRange; /** * The ID of the creative on which to filter; optional. This field may be * set only for a filter set that accesses account-level troubleshooting * data, i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x * pattern. */ - creativeId: string; + creativeId?: string; /** * The ID of the deal on which to filter; optional. This field may be set * only for a filter set that accesses account-level troubleshooting data, * i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x * pattern. */ - dealId: string; + dealId?: string; /** * The environment on which to filter; optional. */ - environment: string; + environment?: string; /** * The list of formats on which to filter; may be empty. The filters * represented by multiple formats are ORed together (i.e. if non-empty, * results must match any one of the formats). */ - formats: string[]; + formats?: string[]; /** * A user-defined name of the filter set. Filter set names must be unique * globally and match one of the patterns: - `bidders/x/filterSets/x (for @@ -646,29 +649,29 @@ export namespace adexchangebuyer2_v2beta1 { * `bidders/x/accounts/x/filterSets/x (for accessing account-level * troubleshooting data) This field is required in create operations. */ - name: string; + name?: string; /** * The list of platforms on which to filter; may be empty. The filters * represented by multiple platforms are ORed together (i.e. if non-empty, * results must match any one of the platforms). */ - platforms: string[]; + platforms?: string[]; /** * For Exchange Bidding buyers only. The list of publisher identifiers on * which to filter; may be empty. The filters represented by multiple * publisher identifiers are ORed together. */ - publisherIdentifiers: string[]; + publisherIdentifiers?: string[]; /** * An open-ended realtime time range, defined by the aggregation start * timestamp. */ - realtimeTimeRange: Schema$RealtimeTimeRange; + realtimeTimeRange?: Schema$RealtimeTimeRange; /** * A relative date range, defined by an offset from today and a duration. * Interpreted relative to Pacific time zone. */ - relativeDateRange: Schema$RelativeDateRange; + relativeDateRange?: Schema$RelativeDateRange; /** * For Ad Exchange buyers only. The list of IDs of the seller (publisher) * networks on which to filter; may be empty. The filters represented by @@ -677,12 +680,12 @@ export namespace adexchangebuyer2_v2beta1 { * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/downloads/seller-network-ids) * file for the set of existing seller network IDs. */ - sellerNetworkIds: number[]; + sellerNetworkIds?: number[]; /** * The granularity of time intervals if a time series breakdown is desired; * optional. */ - timeSeriesGranularity: string; + timeSeriesGranularity?: string; } /** * HTML content for a creative. @@ -691,15 +694,15 @@ export namespace adexchangebuyer2_v2beta1 { /** * The height of the HTML snippet in pixels. */ - height: number; + height?: number; /** * The HTML snippet that displays the ad when inserted in the web page. */ - snippet: string; + snippet?: string; /** * The width of the HTML snippet in pixels. */ - width: number; + width?: number; } /** * An image resource. You may provide a larger image than was requested, so @@ -709,15 +712,15 @@ export namespace adexchangebuyer2_v2beta1 { /** * Image height in pixels. */ - height: number; + height?: number; /** * The URL of the image. */ - url: string; + url?: string; /** * Image width in pixels. */ - width: number; + width?: number; } /** * The set of metrics that are measured in numbers of impressions, @@ -729,31 +732,31 @@ export namespace adexchangebuyer2_v2beta1 { * The number of impressions available to the buyer on Ad Exchange. In some * cases this value may be unavailable. */ - availableImpressions: Schema$MetricValue; + availableImpressions?: Schema$MetricValue; /** * The number of impressions for which Ad Exchange sent the buyer a bid * request. */ - bidRequests: Schema$MetricValue; + bidRequests?: Schema$MetricValue; /** * The number of impressions that match the buyer's inventory * pretargeting. */ - inventoryMatches: Schema$MetricValue; + inventoryMatches?: Schema$MetricValue; /** * The number of impressions for which Ad Exchange received a response from * the buyer that contained at least one applicable bid. */ - responsesWithBids: Schema$MetricValue; + responsesWithBids?: Schema$MetricValue; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; /** * The number of impressions for which the buyer successfully sent a * response to Ad Exchange. */ - successfulResponses: Schema$MetricValue; + successfulResponses?: Schema$MetricValue; } /** * Response message for listing the metrics that are measured in number of @@ -763,13 +766,13 @@ export namespace adexchangebuyer2_v2beta1 { /** * List of rows, each containing a set of bid metrics. */ - bidMetricsRows: Schema$BidMetricsRow[]; + bidMetricsRows?: Schema$BidMetricsRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListBidMetricsRequest.pageToken field in the subsequent call to the * bidMetrics.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all reasons that bid responses resulted in an @@ -779,13 +782,13 @@ export namespace adexchangebuyer2_v2beta1 { /** * List of rows, with counts of bid responses aggregated by callout status. */ - calloutStatusRows: Schema$CalloutStatusRow[]; + calloutStatusRows?: Schema$CalloutStatusRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListBidResponseErrorsRequest.pageToken field in the subsequent call to * the bidResponseErrors.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all reasons that bid responses were considered @@ -796,39 +799,39 @@ export namespace adexchangebuyer2_v2beta1 { * List of rows, with counts of bid responses without bids aggregated by * status. */ - bidResponseWithoutBidsStatusRows: Schema$BidResponseWithoutBidsStatusRow[]; + bidResponseWithoutBidsStatusRows?: Schema$BidResponseWithoutBidsStatusRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListBidResponsesWithoutBidsRequest.pageToken field in the subsequent call * to the bidResponsesWithoutBids.list method to retrieve the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListClientsResponse { /** * The returned list of clients. */ - clients: Schema$Client[]; + clients?: Schema$Client[]; /** * A token to retrieve the next page of results. Pass this value in the * ListClientsRequest.pageToken field in the subsequent call to the * accounts.clients.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListClientUserInvitationsResponse { /** * The returned list of client users. */ - invitations: Schema$ClientUserInvitation[]; + invitations?: Schema$ClientUserInvitation[]; /** * A token to retrieve the next page of results. Pass this value in the * ListClientUserInvitationsRequest.pageToken field in the subsequent call * to the clients.invitations.list method to retrieve the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListClientUsersResponse { /** @@ -836,11 +839,11 @@ export namespace adexchangebuyer2_v2beta1 { * ListClientUsersRequest.pageToken field in the subsequent call to the * clients.invitations.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The returned list of client users. */ - users: Schema$ClientUser[]; + users?: Schema$ClientUser[]; } /** * A response for listing creatives. @@ -849,13 +852,13 @@ export namespace adexchangebuyer2_v2beta1 { /** * The list of creatives. */ - creatives: Schema$Creative[]; + creatives?: Schema$Creative[]; /** * A token to retrieve the next page of results. Pass this value in the * ListCreativesRequest.page_token field in the subsequent call to * `ListCreatives` method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all creatives associated with a given filtered @@ -866,14 +869,14 @@ export namespace adexchangebuyer2_v2beta1 { * List of rows, with counts of bids with a given creative status aggregated * by creative. */ - filteredBidCreativeRows: Schema$FilteredBidCreativeRow[]; + filteredBidCreativeRows?: Schema$FilteredBidCreativeRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListCreativeStatusBreakdownByCreativeRequest.pageToken field in the * subsequent call to the filteredBids.creatives.list method to retrieve the * next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all details associated with a given filtered @@ -883,19 +886,19 @@ export namespace adexchangebuyer2_v2beta1 { /** * The type of detail that the detail IDs represent. */ - detailType: string; + detailType?: string; /** * List of rows, with counts of bids with a given creative status aggregated * by detail. */ - filteredBidDetailRows: Schema$FilteredBidDetailRow[]; + filteredBidDetailRows?: Schema$FilteredBidDetailRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListCreativeStatusBreakdownByDetailRequest.pageToken field in the * subsequent call to the filteredBids.details.list method to retrieve the * next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * A response for listing creative and deal associations @@ -904,14 +907,14 @@ export namespace adexchangebuyer2_v2beta1 { /** * The list of associations. */ - associations: Schema$CreativeDealAssociation[]; + associations?: Schema$CreativeDealAssociation[]; /** * A token to retrieve the next page of results. Pass this value in the * ListDealAssociationsRequest.page_token field in the subsequent call to * 'ListDealAssociation' method to retrieve the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all reasons that bid requests were filtered @@ -922,13 +925,13 @@ export namespace adexchangebuyer2_v2beta1 { * List of rows, with counts of filtered bid requests aggregated by callout * status. */ - calloutStatusRows: Schema$CalloutStatusRow[]; + calloutStatusRows?: Schema$CalloutStatusRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListFilteredBidRequestsRequest.pageToken field in the subsequent call to * the filteredBidRequests.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all reasons that bids were filtered from the @@ -939,13 +942,13 @@ export namespace adexchangebuyer2_v2beta1 { * List of rows, with counts of filtered bids aggregated by filtering reason * (i.e. creative status). */ - creativeStatusRows: Schema$CreativeStatusRow[]; + creativeStatusRows?: Schema$CreativeStatusRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListFilteredBidsRequest.pageToken field in the subsequent call to the * filteredBids.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing filter sets. @@ -954,13 +957,13 @@ export namespace adexchangebuyer2_v2beta1 { /** * The filter sets belonging to the buyer. */ - filterSets: Schema$FilterSet[]; + filterSets?: Schema$FilterSet[]; /** * A token to retrieve the next page of results. Pass this value in the * ListFilterSetsRequest.pageToken field in the subsequent call to the * accounts.filterSets.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing the metrics that are measured in number of @@ -970,13 +973,13 @@ export namespace adexchangebuyer2_v2beta1 { /** * List of rows, each containing a set of impression metrics. */ - impressionMetricsRows: Schema$ImpressionMetricsRow[]; + impressionMetricsRows?: Schema$ImpressionMetricsRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListImpressionMetricsRequest.pageToken field in the subsequent call to * the impressionMetrics.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all reasons that bids lost in the auction. @@ -986,13 +989,13 @@ export namespace adexchangebuyer2_v2beta1 { * List of rows, with counts of losing bids aggregated by loss reason (i.e. * creative status). */ - creativeStatusRows: Schema$CreativeStatusRow[]; + creativeStatusRows?: Schema$CreativeStatusRow[]; /** * A token to retrieve the next page of results. Pass this value in the * ListLosingBidsRequest.pageToken field in the subsequent call to the * losingBids.list method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for listing all reasons for which a buyer was not billed @@ -1005,11 +1008,11 @@ export namespace adexchangebuyer2_v2beta1 { * to the nonBillableWinningBids.list method to retrieve the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * List of rows, with counts of bids not billed aggregated by reason. */ - nonBillableWinningBidStatusRows: Schema$NonBillableWinningBidStatusRow[]; + nonBillableWinningBidStatusRows?: Schema$NonBillableWinningBidStatusRow[]; } /** * Response message for listing publishers that had recent inventory matches @@ -1019,7 +1022,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * List of publishers. */ - publisher: Schema$Publisher[]; + publisher?: Schema$Publisher[]; } /** * @OutputOnly The Geo criteria the restriction applies to. @@ -1030,7 +1033,7 @@ export namespace adexchangebuyer2_v2beta1 { * [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.csv) * file for different geo criteria IDs. */ - geoCriteriaIds: number[]; + geoCriteriaIds?: number[]; } /** * A metric value, with an expected value and a variance; represents a count @@ -1040,7 +1043,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The expected value of the metric. */ - value: string; + value?: string; /** * The variance (i.e. square of the standard deviation) of the metric value. * If value is exact, variance is 0. Can be used to calculate margin of @@ -1049,7 +1052,7 @@ export namespace adexchangebuyer2_v2beta1 { * interval (e.g. for 90% confidence interval, use Z = 1.645): marginOfError * = 100 * Z * sqrt(variance) / value */ - variance: string; + variance?: string; } /** * Native content for a creative. @@ -1059,55 +1062,55 @@ export namespace adexchangebuyer2_v2beta1 { * The name of the advertiser or sponsor, to be displayed in the ad * creative. */ - advertiserName: string; + advertiserName?: string; /** * The app icon, for app download ads. */ - appIcon: Schema$Image; + appIcon?: Schema$Image; /** * A long description of the ad. */ - body: string; + body?: string; /** * A label for the button that the user is supposed to click. */ - callToAction: string; + callToAction?: string; /** * The URL that the browser/SDK will load when the user clicks the ad. */ - clickLinkUrl: string; + clickLinkUrl?: string; /** * The URL to use for click tracking. */ - clickTrackingUrl: string; + clickTrackingUrl?: string; /** * A short title for the ad. */ - headline: string; + headline?: string; /** * A large image. */ - image: Schema$Image; + image?: Schema$Image; /** * A smaller image, for the advertiser's logo. */ - logo: Schema$Image; + logo?: Schema$Image; /** * The price of the promoted app including currency info. */ - priceDisplayText: string; + priceDisplayText?: string; /** * The app rating in the app store. Must be in the range [0-5]. */ - starRating: number; + starRating?: number; /** * The URL to the app store to purchase/download the promoted app. */ - storeUrl: string; + storeUrl?: string; /** * The URL to fetch a native video ad. */ - videoUrl: string; + videoUrl?: string; } /** * The number of winning bids with the specified dimension values for which @@ -1117,15 +1120,15 @@ export namespace adexchangebuyer2_v2beta1 { /** * The number of bids with the specified status. */ - bidCount: Schema$MetricValue; + bidCount?: Schema$MetricValue; /** * The values of all dimensions associated with metric values in this row. */ - rowDimensions: Schema$RowDimensions; + rowDimensions?: Schema$RowDimensions; /** * The status specifying why the winning bids were not billed. */ - status: string; + status?: string; } /** * @OutputOnly The type of platform the restriction applies to. @@ -1134,7 +1137,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The platforms this restriction applies to. */ - platforms: string[]; + platforms?: string[]; } /** * The publisher ID and name contain values relevant to the requesting buyer @@ -1146,7 +1149,7 @@ export namespace adexchangebuyer2_v2beta1 { * is an Ad Exchange buyer. - DFP network name or AdMob publisher code when * the requesting buyer is an Exchange Bidding buyer. */ - publisherDisplayName: string; + publisherDisplayName?: string; /** * Publisher ID contains: - Seller network ID when the requesting buyer is * an Ad Exchange buyer. See @@ -1154,7 +1157,7 @@ export namespace adexchangebuyer2_v2beta1 { * - DFP network code or AdMob publisher code when the requesting buyer is * an Exchange Bidding buyer. */ - publisherId: string; + publisherId?: string; } /** * An open-ended realtime time range specified by the start timestamp. For @@ -1165,7 +1168,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The start timestamp of the real-time RTB metrics aggregation. */ - startTimestamp: string; + startTimestamp?: string; } /** * A specific filtering status and how many times it occurred. @@ -1175,13 +1178,13 @@ export namespace adexchangebuyer2_v2beta1 { * The number of times the creative was filtered for the status. The count * is aggregated across all publishers on the exchange. */ - count: string; + count?: string; /** * The filtering status code. Please refer to the * [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-dictionaries/creative-status-codes.txt) * file for different statuses. */ - status: number; + status?: number; } /** * A relative date range, specified by an offset and a duration. The supported @@ -1194,12 +1197,12 @@ export namespace adexchangebuyer2_v2beta1 { * The number of days in the requested date range. E.g. for a range spanning * today, 1. For a range spanning the last 7 days, 7. */ - durationDays: number; + durationDays?: number; /** * The end date of the filter set, specified as the number of days before * today. E.g. for a range where the last date is today, 0. */ - offsetDays: number; + offsetDays?: number; } /** * A request for removing the association between a deal and a creative. @@ -1208,7 +1211,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The association between a creative and a deal that should be removed. */ - association: Schema$CreativeDealAssociation; + association?: Schema$CreativeDealAssociation; } /** * A response may include multiple rows, breaking down along various @@ -1218,7 +1221,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The time interval that this row represents. */ - timeInterval: Schema$TimeInterval; + timeInterval?: Schema$TimeInterval; } /** * @OutputOnly A security context. @@ -1227,7 +1230,7 @@ export namespace adexchangebuyer2_v2beta1 { /** * The security types in this context. */ - securities: string[]; + securities?: string[]; } /** * The serving context for this restriction. @@ -1236,28 +1239,28 @@ export namespace adexchangebuyer2_v2beta1 { /** * Matches all contexts. */ - all: string; + all?: string; /** * Matches impressions for a particular app type. */ - appType: Schema$AppContext; + appType?: Schema$AppContext; /** * Matches impressions for a particular auction type. */ - auctionType: Schema$AuctionContext; + auctionType?: Schema$AuctionContext; /** * Matches impressions coming from users *or* publishers in a specific * location. */ - location: Schema$LocationContext; + location?: Schema$LocationContext; /** * Matches impressions coming from a particular platform. */ - platform: Schema$PlatformContext; + platform?: Schema$PlatformContext; /** * Matches impressions for a particular security type. */ - securityType: Schema$SecurityContext; + securityType?: Schema$SecurityContext; } /** * @OutputOnly A representation of the status of an ad in a specific context. @@ -1269,18 +1272,18 @@ export namespace adexchangebuyer2_v2beta1 { /** * The contexts for the restriction. */ - contexts: Schema$ServingContext[]; + contexts?: Schema$ServingContext[]; /** * Any disapprovals bound to this restriction. Only present if * status=DISAPPROVED. Can be used to filter the response of the * creatives.list method. */ - disapprovalReasons: Schema$Disapproval[]; + disapprovalReasons?: Schema$Disapproval[]; /** * The status of the creative in this context (for example, it has been * explicitly disapproved or is pending review). */ - status: string; + status?: string; } /** * A request for stopping notifications for changes to creative Status. @@ -1294,12 +1297,12 @@ export namespace adexchangebuyer2_v2beta1 { * The timestamp marking the end of the range (exclusive) for which data is * included. */ - endTime: string; + endTime?: string; /** * The timestamp marking the start of the range (inclusive) for which data * is included. */ - startTime: string; + startTime?: string; } /** * Video content for a creative. @@ -1308,12 +1311,12 @@ export namespace adexchangebuyer2_v2beta1 { /** * The URL to fetch a video ad. */ - videoUrl: string; + videoUrl?: string; /** * The contents of a VAST document for a video ad. This document should * conform to the VAST 2.0 or 3.0 standard. */ - videoVastXml: string; + videoVastXml?: string; } /** * A request for watching changes to creative Status. @@ -1325,9 +1328,10 @@ export namespace adexchangebuyer2_v2beta1 { * to write to the topic. This should be the full resource name in * "projects/{project_id}/topics/{topic_id}" format. */ - topic: string; + topic?: string; } + export class Resource$Accounts { root: Adexchangebuyer2; clients: Resource$Accounts$Clients; @@ -1345,6 +1349,8 @@ export namespace adexchangebuyer2_v2beta1 { return this.root; } } + + export class Resource$Accounts$Clients { root: Adexchangebuyer2; invitations: Resource$Accounts$Clients$Invitations; @@ -1374,25 +1380,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Clients$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Clients$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Clients$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$Clients$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Clients$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1429,23 +1448,34 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Clients$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Clients$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Clients$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Clients$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Clients$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1485,28 +1515,39 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Clients$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Clients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Clients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Clients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Clients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1544,25 +1585,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Clients$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Clients$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Clients$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Clients$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Clients$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1586,6 +1640,87 @@ export namespace adexchangebuyer2_v2beta1 { } } } + + export interface Params$Resource$Accounts$Clients$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique numerical account ID for the buyer of which the client buyer is a + * customer; the sponsor buyer to create a client for. (required) + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$Client; + } + export interface Params$Resource$Accounts$Clients$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the client's sponsor buyer. (required) + */ + accountId?: string; + /** + * Numerical account ID of the client buyer to retrieve. (required) + */ + clientAccountId?: string; + } + export interface Params$Resource$Accounts$Clients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique numerical account ID of the sponsor buyer to list the clients for. + */ + accountId?: string; + /** + * Requested page size. The server may return fewer clients than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListClientsResponse.nextPageToken + * returned from the previous call to the accounts.clients.list method. + */ + pageToken?: string; + /** + * Optional unique identifier (from the standpoint of an Ad Exchange sponsor + * buyer partner) of the client to return. If specified, at most one client + * will be returned in the response. + */ + partnerClientId?: string; + } + export interface Params$Resource$Accounts$Clients$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique numerical account ID for the buyer of which the client buyer is a + * customer; the sponsor buyer to update a client for. (required) + */ + accountId?: string; + /** + * Unique numerical account ID of the client to update. (required) + */ + clientAccountId?: string; + /** + * Request body metadata + */ + resource?: Schema$Client; + } + export class Resource$Accounts$Clients$Invitations { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -1613,28 +1748,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Clients$Invitations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Clients$Invitations$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Clients$Invitations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$Clients$Invitations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Clients$Invitations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Invitations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1674,26 +1821,36 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Clients$Invitations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Accounts$Clients$Invitations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Clients$Invitations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Clients$Invitations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Clients$Invitations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Invitations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1735,31 +1892,48 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accounts$Clients$Invitations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Clients$Invitations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Accounts$Clients$Invitations$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Clients$Invitations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Clients$Invitations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Invitations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1787,6 +1961,78 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Accounts$Clients$Invitations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the client's sponsor buyer. (required) + */ + accountId?: string; + /** + * Numerical account ID of the client buyer that the user should be + * associated with. (required) + */ + clientAccountId?: string; + /** + * Request body metadata + */ + resource?: Schema$ClientUserInvitation; + } + export interface Params$Resource$Accounts$Clients$Invitations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the client's sponsor buyer. (required) + */ + accountId?: string; + /** + * Numerical account ID of the client buyer that the user invitation to be + * retrieved is associated with. (required) + */ + clientAccountId?: string; + /** + * Numerical identifier of the user invitation to retrieve. (required) + */ + invitationId?: string; + } + export interface Params$Resource$Accounts$Clients$Invitations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the client's sponsor buyer. (required) + */ + accountId?: string; + /** + * Numerical account ID of the client buyer to list invitations for. + * (required) You must either specify a string representation of a numerical + * account identifier or the `-` character to list all the invitations for + * all the clients of a given sponsor buyer. + */ + clientAccountId?: string; + /** + * Requested page size. Server may return fewer clients than requested. If + * unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListClientUserInvitationsResponse.nextPageToken returned from the + * previous call to the clients.invitations.list method. + */ + pageToken?: string; + } + + export class Resource$Accounts$Clients$Users { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -1813,23 +2059,35 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Clients$Users$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Clients$Users$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Clients$Users$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Clients$Users$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Clients$Users$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Users$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1871,28 +2129,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Clients$Users$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Clients$Users$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Clients$Users$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Clients$Users$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Clients$Users$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Users$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1934,26 +2204,39 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Clients$Users$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Clients$Users$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Clients$Users$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Clients$Users$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Clients$Users$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Clients$Users$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -1979,6 +2262,83 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Accounts$Clients$Users$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the client's sponsor buyer. (required) + */ + accountId?: string; + /** + * Numerical account ID of the client buyer that the user to be retrieved is + * associated with. (required) + */ + clientAccountId?: string; + /** + * Numerical identifier of the user to retrieve. (required) + */ + userId?: string; + } + export interface Params$Resource$Accounts$Clients$Users$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the sponsor buyer of the client to list users + * for. (required) + */ + accountId?: string; + /** + * The account ID of the client buyer to list users for. (required) You must + * specify either a string representation of a numerical account identifier + * or the `-` character to list all the client users for all the clients of + * a given sponsor buyer. + */ + clientAccountId?: string; + /** + * Requested page size. The server may return fewer clients than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListClientUsersResponse.nextPageToken + * returned from the previous call to the accounts.clients.users.list + * method. + */ + pageToken?: string; + } + export interface Params$Resource$Accounts$Clients$Users$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numerical account ID of the client's sponsor buyer. (required) + */ + accountId?: string; + /** + * Numerical account ID of the client buyer that the user to be retrieved is + * associated with. (required) + */ + clientAccountId?: string; + /** + * Numerical identifier of the user to retrieve. (required) + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ClientUser; + } + + export class Resource$Accounts$Creatives { root: Adexchangebuyer2; @@ -2009,26 +2369,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Creatives$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Creatives$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Creatives$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$Creatives$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Creatives$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2065,23 +2437,34 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Creatives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Creatives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Creatives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Creatives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Creatives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2121,28 +2504,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Creatives$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Creatives$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Creatives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Creatives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2181,26 +2576,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stopWatching(params?: any, options?: MethodOptions): - AxiosPromise; stopWatching( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Creatives$Stopwatching, + options?: MethodOptions): AxiosPromise; stopWatching( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Creatives$Stopwatching, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + stopWatching( + params: Params$Resource$Accounts$Creatives$Stopwatching, + callback: BodyResponseCallback): void; + stopWatching(callback: BodyResponseCallback): void; + stopWatching( + paramsOrCallback?: Params$Resource$Accounts$Creatives$Stopwatching| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Creatives$Stopwatching; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Stopwatching; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2240,26 +2647,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Creatives$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Creatives$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Creatives$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Creatives$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Creatives$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2299,25 +2718,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Creatives$Watch, + options?: MethodOptions): AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Creatives$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + watch( + params: Params$Resource$Accounts$Creatives$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Accounts$Creatives$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Creatives$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2342,51 +2774,202 @@ export namespace adexchangebuyer2_v2beta1 { } } } - export class Resource$Accounts$Creatives$Dealassociations { - root: Adexchangebuyer2; - constructor(root: Adexchangebuyer2) { - this.root = root; - this.getRoot.bind(this); - } - getRoot() { - return this.root; - } + export interface Params$Resource$Accounts$Creatives$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The account that this creative belongs to. Can be used to filter the + * response of the creatives.list method. + */ + accountId?: string; + /** + * Indicates if multiple creatives can share an ID or not. Default is + * NO_DUPLICATES (one ID per creative). + */ + duplicateIdMode?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + export interface Params$Resource$Accounts$Creatives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * adexchangebuyer2.accounts.creatives.dealAssociations.add - * @desc Associate an existing deal with a creative. - * @alias adexchangebuyer2.accounts.creatives.dealAssociations.add - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.accountId The account the creative belongs to. - * @param {string} params.creativeId The ID of the creative associated with the deal. - * @param {().AddDealAssociationRequest} 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 + * The account the creative belongs to. */ - add(params?: any, options?: MethodOptions): AxiosPromise; - add(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - add(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://adexchangebuyer.googleapis.com/'; + accountId?: string; + /** + * The ID of the creative to retrieve. + */ + creativeId?: string; + } + export interface Params$Resource$Accounts$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account to list the creatives from. Specify "-" to list all creatives + * the current user has access to. + */ + accountId?: string; + /** + * Requested page size. The server may return fewer creatives than requested + * (due to timeout constraint) even if more are available via another call. + * If unspecified, server will pick an appropriate default. Acceptable + * values are 1 to 1000, inclusive. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListCreativesResponse.next_page_token + * returned from the previous call to 'ListCreatives' method. + */ + pageToken?: string; + /** + * An optional query string to filter creatives. If no filter is specified, + * all active creatives will be returned. Supported queries are:
    + *
  • accountId=account_id_string + *
  • creativeId=creative_id_string
  • dealsStatus: {approved, + * conditionally_approved, disapproved, not_checked} + *
  • openAuctionStatus: {approved, conditionally_approved, disapproved, + * not_checked}
  • attribute: {a numeric attribute from the list of + * attributes}
  • disapprovalReason: {a reason from DisapprovalReason} + *
Example: 'accountId=12345 AND (dealsStatus:disapproved AND + * disapprovalReason:unacceptable_content) OR attribute:47' + */ + query?: string; + } + export interface Params$Resource$Accounts$Creatives$Stopwatching { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account of the creative to stop notifications for. + */ + accountId?: string; + /** + * The creative ID of the creative to stop notifications for. Specify "-" to + * specify stopping account level notifications. + */ + creativeId?: string; + /** + * Request body metadata + */ + resource?: Schema$StopWatchingCreativeRequest; + } + export interface Params$Resource$Accounts$Creatives$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account that this creative belongs to. Can be used to filter the + * response of the creatives.list method. + */ + accountId?: string; + /** + * The buyer-defined creative ID of this creative. Can be used to filter the + * response of the creatives.list method. + */ + creativeId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + export interface Params$Resource$Accounts$Creatives$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account of the creative to watch. + */ + accountId?: string; + /** + * The creative ID to watch for status changes. Specify "-" to watch all + * creatives under the above account. If both creative-level and + * account-level notifications are sent, only a single notification will be + * sent to the creative-level notification topic. + */ + creativeId?: string; + /** + * Request body metadata + */ + resource?: Schema$WatchCreativeRequest; + } + + export class Resource$Accounts$Creatives$Dealassociations { + root: Adexchangebuyer2; + constructor(root: Adexchangebuyer2) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * adexchangebuyer2.accounts.creatives.dealAssociations.add + * @desc Associate an existing deal with a creative. + * @alias adexchangebuyer2.accounts.creatives.dealAssociations.add + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.accountId The account the creative belongs to. + * @param {string} params.creativeId The ID of the creative associated with the deal. + * @param {().AddDealAssociationRequest} 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 + */ + add(params?: Params$Resource$Accounts$Creatives$Dealassociations$Add, + options?: MethodOptions): AxiosPromise; + add(params: Params$Resource$Accounts$Creatives$Dealassociations$Add, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + add(params: Params$Resource$Accounts$Creatives$Dealassociations$Add, + callback: BodyResponseCallback): void; + add(callback: BodyResponseCallback): void; + add(paramsOrCallback?: + Params$Resource$Accounts$Creatives$Dealassociations$Add| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Creatives$Dealassociations$Add; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Dealassociations$Add; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2426,29 +3009,45 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accounts$Creatives$Dealassociations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Creatives$Dealassociations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accounts$Creatives$Dealassociations$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Creatives$Dealassociations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Creatives$Dealassociations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Creatives$Dealassociations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2490,25 +3089,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - remove(params?: any, options?: MethodOptions): AxiosPromise; remove( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Creatives$Dealassociations$Remove, + options?: MethodOptions): AxiosPromise; remove( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Creatives$Dealassociations$Remove, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + remove( + params: Params$Resource$Accounts$Creatives$Dealassociations$Remove, + callback: BodyResponseCallback): void; + remove(callback: BodyResponseCallback): void; + remove( + paramsOrCallback?: + Params$Resource$Accounts$Creatives$Dealassociations$Remove| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Creatives$Dealassociations$Remove; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Creatives$Dealassociations$Remove; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2534,6 +3148,86 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Accounts$Creatives$Dealassociations$Add { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account the creative belongs to. + */ + accountId?: string; + /** + * The ID of the creative associated with the deal. + */ + creativeId?: string; + /** + * Request body metadata + */ + resource?: Schema$AddDealAssociationRequest; + } + export interface Params$Resource$Accounts$Creatives$Dealassociations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account to list the associations from. Specify "-" to list all + * creatives the current user has access to. + */ + accountId?: string; + /** + * The creative ID to list the associations from. Specify "-" to list all + * creatives under the above account. + */ + creativeId?: string; + /** + * Requested page size. Server may return fewer associations than requested. + * If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListDealAssociationsResponse.next_page_token returned from the previous + * call to 'ListDealAssociations' method. + */ + pageToken?: string; + /** + * An optional query string to filter deal associations. If no filter is + * specified, all associations will be returned. Supported queries are:
    + *
  • accountId=account_id_string + *
  • creativeId=creative_id_string + *
  • dealsId=deals_id_string
  • dealsStatus:{approved, + * conditionally_approved, disapproved, not_checked} + *
  • openAuctionStatus:{approved, conditionally_approved, disapproved, + * not_checked}
Example: 'dealsId=12345 AND dealsStatus:disapproved' + */ + query?: string; + } + export interface Params$Resource$Accounts$Creatives$Dealassociations$Remove { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account the creative belongs to. + */ + accountId?: string; + /** + * The ID of the creative associated with the deal. + */ + creativeId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemoveDealAssociationRequest; + } + + export class Resource$Accounts$Publishers { root: Adexchangebuyer2; @@ -2561,28 +3255,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Publishers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Publishers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Publishers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Publishers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Publishers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Publishers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2606,6 +3312,25 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Accounts$Publishers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID of the requesting buyer. + */ + accountId?: string; + /** + * Optional environment (WEB, APP) for which to return publishers. If + * specified, response will only include publishers that had recent + * inventory matches with the requesting buyer on the specified platform. + */ + environment?: string; + } + + export class Resource$Bidders { root: Adexchangebuyer2; @@ -2622,6 +3347,8 @@ export namespace adexchangebuyer2_v2beta1 { return this.root; } } + + export class Resource$Bidders$Accounts { root: Adexchangebuyer2; filterSets: Resource$Bidders$Accounts$Filtersets; @@ -2635,6 +3362,8 @@ export namespace adexchangebuyer2_v2beta1 { return this.root; } } + + export class Resource$Bidders$Accounts$Filtersets { root: Adexchangebuyer2; bidMetrics: Resource$Bidders$Accounts$Filtersets$Bidmetrics; @@ -2690,26 +3419,39 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bidders$Accounts$Filtersets$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Bidders$Accounts$Filtersets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Bidders$Accounts$Filtersets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Bidders$Accounts$Filtersets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Accounts$Filtersets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2746,25 +3488,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bidders$Accounts$Filtersets$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Bidders$Accounts$Filtersets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Bidders$Accounts$Filtersets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Bidders$Accounts$Filtersets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Accounts$Filtersets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2800,23 +3555,35 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Bidders$Accounts$Filtersets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Bidders$Accounts$Filtersets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bidders$Accounts$Filtersets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bidders$Accounts$Filtersets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Accounts$Filtersets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2853,28 +3620,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Accounts$Filtersets$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Accounts$Filtersets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Bidders$Accounts$Filtersets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bidders$Accounts$Filtersets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Accounts$Filtersets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2897,6 +3676,93 @@ export namespace adexchangebuyer2_v2beta1 { } } } + + export interface Params$Resource$Bidders$Accounts$Filtersets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the filter set is transient, or should be persisted indefinitely. + * By default, filter sets are not transient. If transient, it will be + * available for at least 1 hour after creation. + */ + isTransient?: boolean; + /** + * Name of the owner (bidder or account) of the filter set to be created. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123` - For an account-level filter set for the buyer account + * representing bidder 123: `bidders/123/accounts/123` - For an + * account-level filter set for the child seat buyer account 456 whose + * bidder is 123: `bidders/123/accounts/456` + */ + ownerName?: string; + /** + * Request body metadata + */ + resource?: Schema$FilterSet; + } + export interface Params$Resource$Bidders$Accounts$Filtersets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Full name of the resource to delete. For example: - For a bidder-level + * filter set for bidder 123: `bidders/123/filterSets/abc` - For an + * account-level filter set for the buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + name?: string; + } + export interface Params$Resource$Bidders$Accounts$Filtersets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Full name of the resource being requested. For example: - For a + * bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - + * For an account-level filter set for the buyer account representing bidder + * 123: `bidders/123/accounts/123/filterSets/abc` - For an account-level + * filter set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + name?: string; + } + export interface Params$Resource$Bidders$Accounts$Filtersets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the owner (bidder or account) of the filter sets to be listed. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123` - For an account-level filter set for the buyer account + * representing bidder 123: `bidders/123/accounts/123` - For an + * account-level filter set for the child seat buyer account 456 whose + * bidder is 123: `bidders/123/accounts/456` + */ + ownerName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListFilterSetsResponse.nextPageToken + * returned from the previous call to the accounts.filterSets.list method. + */ + pageToken?: string; + } + export class Resource$Bidders$Accounts$Filtersets$Bidmetrics { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -2923,28 +3789,42 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -2968,6 +3848,36 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Bidmetrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListBidMetricsResponse.nextPageToken + * returned from the previous call to the bidMetrics.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -2996,29 +3906,49 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3044,6 +3974,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Bidresponseerrors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListBidResponseErrorsResponse.nextPageToken returned from the previous + * call to the bidResponseErrors.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3073,31 +4034,53 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3124,6 +4107,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListBidResponsesWithoutBidsResponse.nextPageToken returned from the + * previous call to the bidResponsesWithoutBids.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3152,30 +4166,51 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3201,6 +4236,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Filteredbidrequests$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListFilteredBidRequestsResponse.nextPageToken returned from the previous + * call to the filteredBidRequests.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Filteredbids { root: Adexchangebuyer2; creatives: Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives; @@ -3234,28 +4300,42 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3278,6 +4358,36 @@ export namespace adexchangebuyer2_v2beta1 { } } } + + export interface Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListFilteredBidsResponse.nextPageToken + * returned from the previous call to the filteredBids.list method. + */ + pageToken?: string; + } + export class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3307,30 +4417,51 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List, + options: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List, + callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByCreativeResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByCreativeResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List| + BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByCreativeResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>, callback?: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3358,6 +4489,43 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the creative status for which to retrieve a breakdown by + * creative. See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + */ + creativeStatusId?: number; + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from + * the previous call to the filteredBids.creatives.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3387,30 +4555,51 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List, + options: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List, + callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByDetailResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByDetailResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List| + BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByDetailResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>, callback?: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3438,6 +4627,45 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Filteredbids$Details$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the creative status for which to retrieve a breakdown by + * detail. See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + * Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, + * and 87. + */ + creativeStatusId?: number; + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from + * the previous call to the filteredBids.details.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Impressionmetrics { root: Adexchangebuyer2; @@ -3467,29 +4695,49 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3515,6 +4763,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Impressionmetrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListImpressionMetricsResponse.nextPageToken returned from the previous + * call to the impressionMetrics.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Losingbids { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3542,28 +4821,42 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3587,6 +4880,36 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Losingbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListLosingBidsResponse.nextPageToken + * returned from the previous call to the losingBids.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3615,31 +4938,53 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: + Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3666,6 +5011,36 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListNonBillableWinningBidsResponse.nextPageToken returned from the + * previous call to the nonBillableWinningBids.list method. + */ + pageToken?: string; + } + export class Resource$Bidders$Filtersets { @@ -3717,26 +5092,39 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bidders$Filtersets$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Bidders$Filtersets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Bidders$Filtersets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Bidders$Filtersets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bidders$Filtersets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3773,25 +5161,38 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bidders$Filtersets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Bidders$Filtersets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Bidders$Filtersets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Bidders$Filtersets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bidders$Filtersets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3827,23 +5228,35 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Bidders$Filtersets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Bidders$Filtersets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bidders$Filtersets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bidders$Filtersets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bidders$Filtersets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3880,28 +5293,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Filtersets$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Filtersets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Bidders$Filtersets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bidders$Filtersets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3924,6 +5349,93 @@ export namespace adexchangebuyer2_v2beta1 { } } } + + export interface Params$Resource$Bidders$Filtersets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the filter set is transient, or should be persisted indefinitely. + * By default, filter sets are not transient. If transient, it will be + * available for at least 1 hour after creation. + */ + isTransient?: boolean; + /** + * Name of the owner (bidder or account) of the filter set to be created. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123` - For an account-level filter set for the buyer account + * representing bidder 123: `bidders/123/accounts/123` - For an + * account-level filter set for the child seat buyer account 456 whose + * bidder is 123: `bidders/123/accounts/456` + */ + ownerName?: string; + /** + * Request body metadata + */ + resource?: Schema$FilterSet; + } + export interface Params$Resource$Bidders$Filtersets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Full name of the resource to delete. For example: - For a bidder-level + * filter set for bidder 123: `bidders/123/filterSets/abc` - For an + * account-level filter set for the buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + name?: string; + } + export interface Params$Resource$Bidders$Filtersets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Full name of the resource being requested. For example: - For a + * bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - + * For an account-level filter set for the buyer account representing bidder + * 123: `bidders/123/accounts/123/filterSets/abc` - For an account-level + * filter set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + name?: string; + } + export interface Params$Resource$Bidders$Filtersets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the owner (bidder or account) of the filter sets to be listed. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123` - For an account-level filter set for the buyer account + * representing bidder 123: `bidders/123/accounts/123` - For an + * account-level filter set for the child seat buyer account 456 whose + * bidder is 123: `bidders/123/accounts/456` + */ + ownerName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListFilterSetsResponse.nextPageToken + * returned from the previous call to the accounts.filterSets.list method. + */ + pageToken?: string; + } + export class Resource$Bidders$Filtersets$Bidmetrics { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -3950,28 +5462,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Filtersets$Bidmetrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Filtersets$Bidmetrics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Bidders$Filtersets$Bidmetrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bidders$Filtersets$Bidmetrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Bidmetrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$Bidmetrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -3995,6 +5519,36 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Bidmetrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListBidMetricsResponse.nextPageToken + * returned from the previous call to the bidMetrics.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Bidresponseerrors { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4022,29 +5576,46 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Bidders$Filtersets$Bidresponseerrors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$Bidresponseerrors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Bidders$Filtersets$Bidresponseerrors$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Bidresponseerrors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Bidresponseerrors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Bidresponseerrors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4070,6 +5641,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Bidresponseerrors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListBidResponseErrorsResponse.nextPageToken returned from the previous + * call to the bidResponseErrors.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Bidresponseswithoutbids { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4098,31 +5700,51 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4149,6 +5771,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Bidresponseswithoutbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListBidResponsesWithoutBidsResponse.nextPageToken returned from the + * previous call to the bidResponsesWithoutBids.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Filteredbidrequests { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4176,30 +5829,48 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Bidders$Filtersets$Filteredbidrequests$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$Filteredbidrequests$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Bidders$Filtersets$Filteredbidrequests$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Filteredbidrequests$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Filteredbidrequests$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Filteredbidrequests$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4225,6 +5896,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Filteredbidrequests$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListFilteredBidRequestsResponse.nextPageToken returned from the previous + * call to the filteredBidRequests.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Filteredbids { root: Adexchangebuyer2; creatives: Resource$Bidders$Filtersets$Filteredbids$Creatives; @@ -4257,28 +5959,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Filtersets$Filteredbids$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Filtersets$Filteredbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Bidders$Filtersets$Filteredbids$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bidders$Filtersets$Filteredbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Filteredbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$Filteredbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4301,6 +6015,36 @@ export namespace adexchangebuyer2_v2beta1 { } } } + + export interface Params$Resource$Bidders$Filtersets$Filteredbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListFilteredBidsResponse.nextPageToken + * returned from the previous call to the filteredBids.list method. + */ + pageToken?: string; + } + export class Resource$Bidders$Filtersets$Filteredbids$Creatives { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4329,30 +6073,48 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List, + options: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByCreativeResponse>): void; + list( + params: Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List, + callback: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByCreativeResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List| + BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByCreativeResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>, callback?: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByCreativeResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4380,6 +6142,43 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Filteredbids$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the creative status for which to retrieve a breakdown by + * creative. See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + */ + creativeStatusId?: number; + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from + * the previous call to the filteredBids.creatives.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Filteredbids$Details { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4408,30 +6207,48 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Bidders$Filtersets$Filteredbids$Details$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Bidders$Filtersets$Filteredbids$Details$List, + options: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByDetailResponse>): void; + list( + params: Params$Resource$Bidders$Filtersets$Filteredbids$Details$List, + callback: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByDetailResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Filteredbids$Details$List| + BodyResponseCallback< + Schema$ListCreativeStatusBreakdownByDetailResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>, callback?: BodyResponseCallback< Schema$ListCreativeStatusBreakdownByDetailResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Filteredbids$Details$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Filteredbids$Details$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4459,6 +6276,45 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Filteredbids$Details$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the creative status for which to retrieve a breakdown by + * detail. See + * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + * Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, + * and 87. + */ + creativeStatusId?: number; + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from + * the previous call to the filteredBids.details.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Impressionmetrics { root: Adexchangebuyer2; @@ -4487,29 +6343,46 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Bidders$Filtersets$Impressionmetrics$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$Impressionmetrics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Bidders$Filtersets$Impressionmetrics$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Impressionmetrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Impressionmetrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Impressionmetrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4535,6 +6408,37 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Impressionmetrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListImpressionMetricsResponse.nextPageToken returned from the previous + * call to the impressionMetrics.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Losingbids { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4562,28 +6466,40 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bidders$Filtersets$Losingbids$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bidders$Filtersets$Losingbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Bidders$Filtersets$Losingbids$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bidders$Filtersets$Losingbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Losingbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bidders$Filtersets$Losingbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4607,6 +6523,36 @@ export namespace adexchangebuyer2_v2beta1 { } } + export interface Params$Resource$Bidders$Filtersets$Losingbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListLosingBidsResponse.nextPageToken + * returned from the previous call to the losingBids.list method. + */ + pageToken?: string; + } + + export class Resource$Bidders$Filtersets$Nonbillablewinningbids { root: Adexchangebuyer2; constructor(root: Adexchangebuyer2) { @@ -4634,31 +6580,50 @@ export namespace adexchangebuyer2_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; const parameters = { @@ -4684,4 +6649,34 @@ export namespace adexchangebuyer2_v2beta1 { } } } + + export interface Params$Resource$Bidders$Filtersets$Nonbillablewinningbids$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the filter set that should be applied to the requested metrics. + * For example: - For a bidder-level filter set for bidder 123: + * `bidders/123/filterSets/abc` - For an account-level filter set for the + * buyer account representing bidder 123: + * `bidders/123/accounts/123/filterSets/abc` - For an account-level filter + * set for the child seat buyer account 456 whose bidder is 123: + * `bidders/123/accounts/456/filterSets/abc` + */ + filterSetName?: string; + /** + * Requested page size. The server may return fewer results than requested. + * If unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of + * ListNonBillableWinningBidsResponse.nextPageToken returned from the + * previous call to the nonBillableWinningBids.list method. + */ + pageToken?: string; + } } diff --git a/src/apis/adexchangeseller/v1.1.ts b/src/apis/adexchangeseller/v1.1.ts index ef1d33fd59e..bf4a906eddf 100644 --- a/src/apis/adexchangeseller/v1.1.ts +++ b/src/apis/adexchangeseller/v1.1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangeseller_v1_1 { + export interface Options extends GlobalOptions { version: 'v1_1'; } + /** * Ad Exchange Seller API * @@ -85,77 +88,77 @@ export namespace adexchangeseller_v1_1 { /** * Unique identifier of this account. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#account. */ - kind: string; + kind?: string; /** * Name of this account. */ - name: string; + name?: string; } export interface Schema$AdClient { /** * Whether this ad client is opted in to ARC. */ - arcOptIn: boolean; + arcOptIn?: boolean; /** * Unique identifier of this ad client. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#adClient. */ - kind: string; + kind?: string; /** * This ad client's product code, which corresponds to the PRODUCT_CODE * report dimension. */ - productCode: string; + productCode?: string; /** * Whether this ad client supports being reported on. */ - supportsReporting: boolean; + supportsReporting?: boolean; } export interface Schema$AdClients { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad clients returned in this list response. */ - items: Schema$AdClient[]; + items?: Schema$AdClient[]; /** * Kind of list this is, in this case adexchangeseller#adClients. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad clients. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AdUnit { /** * Identity code of this ad unit, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this ad unit. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#adUnit. */ - kind: string; + kind?: string; /** * Name of this ad unit. */ - name: string; + name?: string; /** * Status of this ad unit. Possible values are: NEW: Indicates that the ad * unit was created within the last seven days and does not yet have any @@ -163,203 +166,203 @@ export namespace adexchangeseller_v1_1 { * activity on this ad unit in the last seven days. INACTIVE: Indicates * that there has been no activity on this ad unit in the last seven days. */ - status: string; + status?: string; } export interface Schema$AdUnits { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad units returned in this list response. */ - items: Schema$AdUnit[]; + items?: Schema$AdUnit[]; /** * Kind of list this is, in this case adexchangeseller#adUnits. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad units. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Alert { /** * Unique identifier of this alert. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#alert. */ - kind: string; + kind?: string; /** * The localized alert message. */ - message: string; + message?: string; /** * Severity of this alert. Possible values: INFO, WARNING, SEVERE. */ - severity: string; + severity?: string; /** * Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, * ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, * GRAYLISTED_PUBLISHER, API_HOLD. */ - type: string; + type?: string; } export interface Schema$Alerts { /** * The alerts returned in this list response. */ - items: Schema$Alert[]; + items?: Schema$Alert[]; /** * Kind of list this is, in this case adexchangeseller#alerts. */ - kind: string; + kind?: string; } export interface Schema$CustomChannel { /** * Code of this custom channel, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this custom channel. This should be considered an * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#customChannel. */ - kind: string; + kind?: string; /** * Name of this custom channel. */ - name: string; + name?: string; /** * The targeting information of this custom channel, if activated. */ - targetingInfo: any; + targetingInfo?: any; } export interface Schema$CustomChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The custom channels returned in this list response. */ - items: Schema$CustomChannel[]; + items?: Schema$CustomChannel[]; /** * Kind of list this is, in this case adexchangeseller#customChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through custom channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Metadata { - items: Schema$ReportingMetadataEntry[]; + items?: Schema$ReportingMetadataEntry[]; /** * Kind of list this is, in this case adexchangeseller#metadata. */ - kind: string; + kind?: string; } export interface Schema$PreferredDeal { /** * The name of the advertiser this deal is for. */ - advertiserName: string; + advertiserName?: string; /** * The name of the buyer network this deal is for. */ - buyerNetworkName: string; + buyerNetworkName?: string; /** * The currency code that applies to the fixed_cpm value. If not set then * assumed to be USD. */ - currencyCode: string; + currencyCode?: string; /** * Time when this deal stops being active in seconds since the epoch (GMT). * If not set then this deal is valid until manually disabled by the * publisher. */ - endTime: string; + endTime?: string; /** * The fixed price for this preferred deal. In cpm micros of currency * according to currencyCode. If set, then this preferred deal is eligible * for the fixed price tier of buying (highest priority, pay exactly the * configured fixed price). */ - fixedCpm: string; + fixedCpm?: string; /** * Unique identifier of this preferred deal. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#preferredDeal. */ - kind: string; + kind?: string; /** * Time when this deal becomes active in seconds since the epoch (GMT). If * not set then this deal is active immediately upon creation. */ - startTime: string; + startTime?: string; } export interface Schema$PreferredDeals { /** * The preferred deals returned in this list response. */ - items: Schema$PreferredDeal[]; + items?: Schema$PreferredDeal[]; /** * Kind of list this is, in this case adexchangeseller#preferredDeals. */ - kind: string; + kind?: string; } export interface Schema$Report { /** * The averages of the report. This is the same length as any other row in * the report; cells corresponding to dimension columns are empty. */ - averages: string[]; + averages?: string[]; /** * The header information of the columns requested in the report. This is a * list of headers; one for each dimension in the request, followed by one * for each metric in the request. */ - headers: any[]; + headers?: any[]; /** * Kind this is, in this case adexchangeseller#report. */ - kind: string; + kind?: string; /** * The output rows of the report. Each row is a list of cells; one for each * dimension in the request, followed by one for each metric in the request. * The dimension cells contain strings, and the metric cells contain * numbers. */ - rows: string[][]; + rows?: string[][]; /** * The total number of rows matched by the report request. Fewer rows may be * returned in the response due to being limited by the row count requested * or the report row limit. */ - totalMatchedRows: string; + totalMatchedRows?: string; /** * The totals of the report. This is the same length as any other row in the * report; cells corresponding to dimension columns are empty. */ - totals: string[]; + totals?: string[]; /** * Any warnings associated with generation of the report. */ - warnings: string[]; + warnings?: string[]; } export interface Schema$ReportingMetadataEntry { /** @@ -367,75 +370,75 @@ export namespace adexchangeseller_v1_1 { * compatible with, for dimensions it is a list of compatibility groups the * dimension belongs to. */ - compatibleDimensions: string[]; + compatibleDimensions?: string[]; /** * The names of the metrics the dimension or metric this reporting metadata * entry describes is compatible with. */ - compatibleMetrics: string[]; + compatibleMetrics?: string[]; /** * Unique identifier of this reporting metadata entry, corresponding to the * name of the appropriate dimension or metric. */ - id: string; + id?: string; /** * Kind of resource this is, in this case * adexchangeseller#reportingMetadataEntry. */ - kind: string; + kind?: string; /** * The names of the dimensions which the dimension or metric this reporting * metadata entry describes requires to also be present in order for the * report to be valid. Omitting these will not cause an error or warning, * but may result in data which cannot be correctly interpreted. */ - requiredDimensions: string[]; + requiredDimensions?: string[]; /** * The names of the metrics which the dimension or metric this reporting * metadata entry describes requires to also be present in order for the * report to be valid. Omitting these will not cause an error or warning, * but may result in data which cannot be correctly interpreted. */ - requiredMetrics: string[]; + requiredMetrics?: string[]; /** * The codes of the projects supported by the dimension or metric this * reporting metadata entry describes. */ - supportedProducts: string[]; + supportedProducts?: string[]; } export interface Schema$SavedReport { /** * Unique identifier of this saved report. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#savedReport. */ - kind: string; + kind?: string; /** * This saved report's name. */ - name: string; + name?: string; } export interface Schema$SavedReports { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The saved reports returned in this list response. */ - items: Schema$SavedReport[]; + items?: Schema$SavedReport[]; /** * Kind of list this is, in this case adexchangeseller#savedReports. */ - kind: string; + kind?: string; /** * Continuation token used to page through saved reports. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$UrlChannel { /** @@ -443,38 +446,39 @@ export namespace adexchangeseller_v1_1 { * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#urlChannel. */ - kind: string; + kind?: string; /** * URL Pattern of this URL channel. Does not include "http://" or * "https://". Example: www.example.com/home */ - urlPattern: string; + urlPattern?: string; } export interface Schema$UrlChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The URL channels returned in this list response. */ - items: Schema$UrlChannel[]; + items?: Schema$UrlChannel[]; /** * Kind of list this is, in this case adexchangeseller#urlChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through URL channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Accounts { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -499,23 +503,33 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -538,6 +552,19 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to get information about. Tip: 'myaccount' is a valid ID. + */ + accountId?: string; + } + + export class Resource$Adclients { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -563,25 +590,37 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adclients$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -604,6 +643,26 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Adunits { root: Adexchangeseller; customchannels: Resource$Adunits$Customchannels; @@ -631,23 +690,33 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Adunits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Adunits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Adunits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Adunits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adunits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -688,25 +757,36 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adunits$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -729,6 +809,49 @@ export namespace adexchangeseller_v1_1 { } } } + + export interface Params$Resource$Adunits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to get the ad unit. + */ + adClientId?: string; + /** + * Ad unit to retrieve. + */ + adUnitId?: string; + } + export interface Params$Resource$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list ad units. + */ + adClientId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export class Resource$Adunits$Customchannels { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -756,26 +879,39 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Adunits$Customchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Adunits$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Adunits$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adunits$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Adunits$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -800,6 +936,34 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Adunits$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit for which to list custom channels. + */ + adUnitId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Alerts { root: Adexchangeseller; @@ -825,25 +989,36 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Alerts$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Alerts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Alerts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Alerts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Alerts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Alerts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -866,6 +1041,21 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Alerts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The locale to use for translating alert messages. The account locale will + * be used if this is not supplied. The AdSense default (English) will be + * used if the supplied locale is invalid or unsupported. + */ + locale?: string; + } + + export class Resource$Customchannels { root: Adexchangeseller; adunits: Resource$Customchannels$Adunits; @@ -893,24 +1083,35 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Customchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Customchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customchannels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -950,26 +1151,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Customchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -993,6 +1206,45 @@ export namespace adexchangeseller_v1_1 { } } } + + export interface Params$Resource$Customchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel to retrieve. + */ + customChannelId?: string; + } + export interface Params$Resource$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list custom channels. + */ + adClientId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + export class Resource$Customchannels$Adunits { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -1021,25 +1273,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Adunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Customchannels$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customchannels$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Customchannels$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customchannels$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1064,6 +1329,38 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Customchannels$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel for which to list ad units. + */ + customChannelId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Metadata { root: Adexchangeseller; @@ -1080,6 +1377,8 @@ export namespace adexchangeseller_v1_1 { return this.root; } } + + export class Resource$Metadata$Dimensions { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -1104,25 +1403,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Metadata$Dimensions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Metadata$Dimensions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Metadata$Dimensions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Metadata$Dimensions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Metadata$Dimensions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metadata$Dimensions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1145,6 +1457,14 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Metadata$Dimensions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Metadata$Metrics { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -1169,25 +1489,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Metadata$Metrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Metadata$Metrics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Metadata$Metrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Metadata$Metrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Metadata$Metrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metadata$Metrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1210,6 +1543,14 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Metadata$Metrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Preferreddeals { root: Adexchangeseller; @@ -1235,24 +1576,35 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Preferreddeals$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Preferreddeals$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Preferreddeals$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Preferreddeals$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Preferreddeals$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Preferreddeals$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1286,26 +1638,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Preferreddeals$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Preferreddeals$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Preferreddeals$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Preferreddeals$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Preferreddeals$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Preferreddeals$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1328,6 +1692,25 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Preferreddeals$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Preferred deal to get information about. + */ + dealId?: string; + } + export interface Params$Resource$Preferreddeals$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Reports { root: Adexchangeseller; saved: Resource$Reports$Saved; @@ -1364,26 +1747,37 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Generate, + options?: MethodOptions): AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generate( + params: Params$Resource$Reports$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1405,6 +1799,54 @@ export namespace adexchangeseller_v1_1 { } } } + + export interface Params$Resource$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export class Resource$Reports$Saved { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -1433,26 +1875,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Saved$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Reports$Saved$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generate( + params: Params$Resource$Reports$Saved$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Saved$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Saved$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Saved$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1488,26 +1942,38 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reports$Saved$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Saved$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Saved$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Reports$Saved$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Saved$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Saved$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1530,6 +1996,50 @@ export namespace adexchangeseller_v1_1 { } } + export interface Params$Resource$Reports$Saved$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * The saved report to retrieve. + */ + savedReportId?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export interface Params$Resource$Reports$Saved$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of saved reports to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved reports. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Urlchannels { root: Adexchangeseller; @@ -1558,26 +2068,37 @@ export namespace adexchangeseller_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Urlchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1600,4 +2121,27 @@ export namespace adexchangeseller_v1_1 { } } } + + export interface Params$Resource$Urlchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list URL channels. + */ + adClientId?: string; + /** + * The maximum number of URL channels to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through URL channels. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } } diff --git a/src/apis/adexchangeseller/v1.ts b/src/apis/adexchangeseller/v1.ts index 06ed7345ffe..3272521e343 100644 --- a/src/apis/adexchangeseller/v1.ts +++ b/src/apis/adexchangeseller/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangeseller_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Ad Exchange Seller API * @@ -77,63 +80,63 @@ export namespace adexchangeseller_v1 { /** * Whether this ad client is opted in to ARC. */ - arcOptIn: boolean; + arcOptIn?: boolean; /** * Unique identifier of this ad client. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#adClient. */ - kind: string; + kind?: string; /** * This ad client's product code, which corresponds to the PRODUCT_CODE * report dimension. */ - productCode: string; + productCode?: string; /** * Whether this ad client supports being reported on. */ - supportsReporting: boolean; + supportsReporting?: boolean; } export interface Schema$AdClients { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad clients returned in this list response. */ - items: Schema$AdClient[]; + items?: Schema$AdClient[]; /** * Kind of list this is, in this case adexchangeseller#adClients. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad clients. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AdUnit { /** * Identity code of this ad unit, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this ad unit. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#adUnit. */ - kind: string; + kind?: string; /** * Name of this ad unit. */ - name: string; + name?: string; /** * Status of this ad unit. Possible values are: NEW: Indicates that the ad * unit was created within the last seven days and does not yet have any @@ -141,144 +144,144 @@ export namespace adexchangeseller_v1 { * activity on this ad unit in the last seven days. INACTIVE: Indicates * that there has been no activity on this ad unit in the last seven days. */ - status: string; + status?: string; } export interface Schema$AdUnits { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad units returned in this list response. */ - items: Schema$AdUnit[]; + items?: Schema$AdUnit[]; /** * Kind of list this is, in this case adexchangeseller#adUnits. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad units. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$CustomChannel { /** * Code of this custom channel, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this custom channel. This should be considered an * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#customChannel. */ - kind: string; + kind?: string; /** * Name of this custom channel. */ - name: string; + name?: string; /** * The targeting information of this custom channel, if activated. */ - targetingInfo: any; + targetingInfo?: any; } export interface Schema$CustomChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The custom channels returned in this list response. */ - items: Schema$CustomChannel[]; + items?: Schema$CustomChannel[]; /** * Kind of list this is, in this case adexchangeseller#customChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through custom channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Report { /** * The averages of the report. This is the same length as any other row in * the report; cells corresponding to dimension columns are empty. */ - averages: string[]; + averages?: string[]; /** * The header information of the columns requested in the report. This is a * list of headers; one for each dimension in the request, followed by one * for each metric in the request. */ - headers: any[]; + headers?: any[]; /** * Kind this is, in this case adexchangeseller#report. */ - kind: string; + kind?: string; /** * The output rows of the report. Each row is a list of cells; one for each * dimension in the request, followed by one for each metric in the request. * The dimension cells contain strings, and the metric cells contain * numbers. */ - rows: string[][]; + rows?: string[][]; /** * The total number of rows matched by the report request. Fewer rows may be * returned in the response due to being limited by the row count requested * or the report row limit. */ - totalMatchedRows: string; + totalMatchedRows?: string; /** * The totals of the report. This is the same length as any other row in the * report; cells corresponding to dimension columns are empty. */ - totals: string[]; + totals?: string[]; /** * Any warnings associated with generation of the report. */ - warnings: string[]; + warnings?: string[]; } export interface Schema$SavedReport { /** * Unique identifier of this saved report. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#savedReport. */ - kind: string; + kind?: string; /** * This saved report's name. */ - name: string; + name?: string; } export interface Schema$SavedReports { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The saved reports returned in this list response. */ - items: Schema$SavedReport[]; + items?: Schema$SavedReport[]; /** * Kind of list this is, in this case adexchangeseller#savedReports. */ - kind: string; + kind?: string; /** * Continuation token used to page through saved reports. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$UrlChannel { /** @@ -286,38 +289,39 @@ export namespace adexchangeseller_v1 { * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#urlChannel. */ - kind: string; + kind?: string; /** * URL Pattern of this URL channel. Does not include "http://" or * "https://". Example: www.example.com/home */ - urlPattern: string; + urlPattern?: string; } export interface Schema$UrlChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The URL channels returned in this list response. */ - items: Schema$UrlChannel[]; + items?: Schema$UrlChannel[]; /** * Kind of list this is, in this case adexchangeseller#urlChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through URL channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Adclients { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -343,25 +347,37 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adclients$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -384,6 +400,26 @@ export namespace adexchangeseller_v1 { } } + export interface Params$Resource$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Adunits { root: Adexchangeseller; customchannels: Resource$Adunits$Customchannels; @@ -411,23 +447,33 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Adunits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Adunits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Adunits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Adunits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adunits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -468,25 +514,36 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adunits$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -509,6 +566,49 @@ export namespace adexchangeseller_v1 { } } } + + export interface Params$Resource$Adunits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to get the ad unit. + */ + adClientId?: string; + /** + * Ad unit to retrieve. + */ + adUnitId?: string; + } + export interface Params$Resource$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list ad units. + */ + adClientId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export class Resource$Adunits$Customchannels { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -536,26 +636,39 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Adunits$Customchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Adunits$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Adunits$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Adunits$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Adunits$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -580,6 +693,34 @@ export namespace adexchangeseller_v1 { } } + export interface Params$Resource$Adunits$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit for which to list custom channels. + */ + adUnitId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Customchannels { root: Adexchangeseller; @@ -608,24 +749,35 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Customchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Customchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customchannels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -665,26 +817,38 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Customchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -708,6 +872,45 @@ export namespace adexchangeseller_v1 { } } } + + export interface Params$Resource$Customchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel to retrieve. + */ + customChannelId?: string; + } + export interface Params$Resource$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list custom channels. + */ + adClientId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + export class Resource$Customchannels$Adunits { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -736,25 +939,38 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Adunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Customchannels$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Customchannels$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customchannels$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customchannels$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -779,6 +995,38 @@ export namespace adexchangeseller_v1 { } } + export interface Params$Resource$Customchannels$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel for which to list ad units. + */ + customChannelId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Reports { root: Adexchangeseller; @@ -816,26 +1064,37 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Reports$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generate( + params: Params$Resource$Reports$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -857,6 +1116,54 @@ export namespace adexchangeseller_v1 { } } } + + export interface Params$Resource$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export class Resource$Reports$Saved { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -885,26 +1192,38 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Saved$Generate, + options?: MethodOptions): AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Saved$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generate( + params: Params$Resource$Reports$Saved$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Reports$Saved$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Saved$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Saved$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -940,26 +1259,38 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reports$Saved$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Saved$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Reports$Saved$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Saved$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Saved$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Saved$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -982,6 +1313,50 @@ export namespace adexchangeseller_v1 { } } + export interface Params$Resource$Reports$Saved$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * The saved report to retrieve. + */ + savedReportId?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export interface Params$Resource$Reports$Saved$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of saved reports to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved reports. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Urlchannels { root: Adexchangeseller; @@ -1010,26 +1385,37 @@ export namespace adexchangeseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Urlchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1052,4 +1438,27 @@ export namespace adexchangeseller_v1 { } } } + + export interface Params$Resource$Urlchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list URL channels. + */ + adClientId?: string; + /** + * The maximum number of URL channels to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through URL channels. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } } diff --git a/src/apis/adexchangeseller/v2.0.ts b/src/apis/adexchangeseller/v2.0.ts index 683cbc3abbd..7886930c9e8 100644 --- a/src/apis/adexchangeseller/v2.0.ts +++ b/src/apis/adexchangeseller/v2.0.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexchangeseller_v2_0 { + export interface Options extends GlobalOptions { version: 'v2_0'; } + /** * Ad Exchange Seller API * @@ -69,254 +72,254 @@ export namespace adexchangeseller_v2_0 { /** * Unique identifier of this account. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#account. */ - kind: string; + kind?: string; /** * Name of this account. */ - name: string; + name?: string; } export interface Schema$Accounts { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The accounts returned in this list response. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * Kind of list this is, in this case adexchangeseller#accounts. */ - kind: string; + kind?: string; /** * Continuation token used to page through accounts. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AdClient { /** * Whether this ad client is opted in to ARC. */ - arcOptIn: boolean; + arcOptIn?: boolean; /** * Unique identifier of this ad client. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#adClient. */ - kind: string; + kind?: string; /** * This ad client's product code, which corresponds to the PRODUCT_CODE * report dimension. */ - productCode: string; + productCode?: string; /** * Whether this ad client supports being reported on. */ - supportsReporting: boolean; + supportsReporting?: boolean; } export interface Schema$AdClients { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad clients returned in this list response. */ - items: Schema$AdClient[]; + items?: Schema$AdClient[]; /** * Kind of list this is, in this case adexchangeseller#adClients. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad clients. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Alert { /** * Unique identifier of this alert. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#alert. */ - kind: string; + kind?: string; /** * The localized alert message. */ - message: string; + message?: string; /** * Severity of this alert. Possible values: INFO, WARNING, SEVERE. */ - severity: string; + severity?: string; /** * Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, * ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, * GRAYLISTED_PUBLISHER, API_HOLD. */ - type: string; + type?: string; } export interface Schema$Alerts { /** * The alerts returned in this list response. */ - items: Schema$Alert[]; + items?: Schema$Alert[]; /** * Kind of list this is, in this case adexchangeseller#alerts. */ - kind: string; + kind?: string; } export interface Schema$CustomChannel { /** * Code of this custom channel, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this custom channel. This should be considered an * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#customChannel. */ - kind: string; + kind?: string; /** * Name of this custom channel. */ - name: string; + name?: string; /** * The targeting information of this custom channel, if activated. */ - targetingInfo: any; + targetingInfo?: any; } export interface Schema$CustomChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The custom channels returned in this list response. */ - items: Schema$CustomChannel[]; + items?: Schema$CustomChannel[]; /** * Kind of list this is, in this case adexchangeseller#customChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through custom channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Metadata { - items: Schema$ReportingMetadataEntry[]; + items?: Schema$ReportingMetadataEntry[]; /** * Kind of list this is, in this case adexchangeseller#metadata. */ - kind: string; + kind?: string; } export interface Schema$PreferredDeal { /** * The name of the advertiser this deal is for. */ - advertiserName: string; + advertiserName?: string; /** * The name of the buyer network this deal is for. */ - buyerNetworkName: string; + buyerNetworkName?: string; /** * The currency code that applies to the fixed_cpm value. If not set then * assumed to be USD. */ - currencyCode: string; + currencyCode?: string; /** * Time when this deal stops being active in seconds since the epoch (GMT). * If not set then this deal is valid until manually disabled by the * publisher. */ - endTime: string; + endTime?: string; /** * The fixed price for this preferred deal. In cpm micros of currency * according to currencyCode. If set, then this preferred deal is eligible * for the fixed price tier of buying (highest priority, pay exactly the * configured fixed price). */ - fixedCpm: string; + fixedCpm?: string; /** * Unique identifier of this preferred deal. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#preferredDeal. */ - kind: string; + kind?: string; /** * Time when this deal becomes active in seconds since the epoch (GMT). If * not set then this deal is active immediately upon creation. */ - startTime: string; + startTime?: string; } export interface Schema$PreferredDeals { /** * The preferred deals returned in this list response. */ - items: Schema$PreferredDeal[]; + items?: Schema$PreferredDeal[]; /** * Kind of list this is, in this case adexchangeseller#preferredDeals. */ - kind: string; + kind?: string; } export interface Schema$Report { /** * The averages of the report. This is the same length as any other row in * the report; cells corresponding to dimension columns are empty. */ - averages: string[]; + averages?: string[]; /** * The header information of the columns requested in the report. This is a * list of headers; one for each dimension in the request, followed by one * for each metric in the request. */ - headers: any[]; + headers?: any[]; /** * Kind this is, in this case adexchangeseller#report. */ - kind: string; + kind?: string; /** * The output rows of the report. Each row is a list of cells; one for each * dimension in the request, followed by one for each metric in the request. * The dimension cells contain strings, and the metric cells contain * numbers. */ - rows: string[][]; + rows?: string[][]; /** * The total number of rows matched by the report request. Fewer rows may be * returned in the response due to being limited by the row count requested * or the report row limit. */ - totalMatchedRows: string; + totalMatchedRows?: string; /** * The totals of the report. This is the same length as any other row in the * report; cells corresponding to dimension columns are empty. */ - totals: string[]; + totals?: string[]; /** * Any warnings associated with generation of the report. */ - warnings: string[]; + warnings?: string[]; } export interface Schema$ReportingMetadataEntry { /** @@ -324,75 +327,75 @@ export namespace adexchangeseller_v2_0 { * compatible with, for dimensions it is a list of compatibility groups the * dimension belongs to. */ - compatibleDimensions: string[]; + compatibleDimensions?: string[]; /** * The names of the metrics the dimension or metric this reporting metadata * entry describes is compatible with. */ - compatibleMetrics: string[]; + compatibleMetrics?: string[]; /** * Unique identifier of this reporting metadata entry, corresponding to the * name of the appropriate dimension or metric. */ - id: string; + id?: string; /** * Kind of resource this is, in this case * adexchangeseller#reportingMetadataEntry. */ - kind: string; + kind?: string; /** * The names of the dimensions which the dimension or metric this reporting * metadata entry describes requires to also be present in order for the * report to be valid. Omitting these will not cause an error or warning, * but may result in data which cannot be correctly interpreted. */ - requiredDimensions: string[]; + requiredDimensions?: string[]; /** * The names of the metrics which the dimension or metric this reporting * metadata entry describes requires to also be present in order for the * report to be valid. Omitting these will not cause an error or warning, * but may result in data which cannot be correctly interpreted. */ - requiredMetrics: string[]; + requiredMetrics?: string[]; /** * The codes of the projects supported by the dimension or metric this * reporting metadata entry describes. */ - supportedProducts: string[]; + supportedProducts?: string[]; } export interface Schema$SavedReport { /** * Unique identifier of this saved report. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#savedReport. */ - kind: string; + kind?: string; /** * This saved report's name. */ - name: string; + name?: string; } export interface Schema$SavedReports { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The saved reports returned in this list response. */ - items: Schema$SavedReport[]; + items?: Schema$SavedReport[]; /** * Kind of list this is, in this case adexchangeseller#savedReports. */ - kind: string; + kind?: string; /** * Continuation token used to page through saved reports. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$UrlChannel { /** @@ -400,38 +403,39 @@ export namespace adexchangeseller_v2_0 { * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adexchangeseller#urlChannel. */ - kind: string; + kind?: string; /** * URL Pattern of this URL channel. Does not include "http://" or * "https://". Example: www.example.com/home */ - urlPattern: string; + urlPattern?: string; } export interface Schema$UrlChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The URL channels returned in this list response. */ - items: Schema$UrlChannel[]; + items?: Schema$UrlChannel[]; /** * Kind of list this is, in this case adexchangeseller#urlChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through URL channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Accounts { root: Adexchangeseller; adclients: Resource$Accounts$Adclients; @@ -470,23 +474,33 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -522,25 +536,36 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -562,6 +587,37 @@ export namespace adexchangeseller_v2_0 { } } } + + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to get information about. Tip: 'myaccount' is a valid ID. + */ + accountId?: string; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of accounts to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through accounts. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export class Resource$Accounts$Adclients { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -588,25 +644,39 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adclients$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -630,6 +700,30 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Alerts { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -655,25 +749,38 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Alerts$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Alerts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Alerts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Alerts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Alerts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Alerts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -697,6 +804,25 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Alerts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account owning the alerts. + */ + accountId?: string; + /** + * The locale to use for translating alert messages. The account locale will + * be used if this is not supplied. The AdSense default (English) will be + * used if the supplied locale is invalid or unsupported. + */ + locale?: string; + } + + export class Resource$Accounts$Customchannels { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -723,24 +849,35 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Customchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Customchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Customchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Customchannels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Customchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Customchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -781,26 +918,39 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Customchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -825,6 +975,53 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Customchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel to retrieve. + */ + customChannelId?: string; + } + export interface Params$Resource$Accounts$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client for which to list custom channels. + */ + adClientId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Metadata { root: Adexchangeseller; dimensions: Resource$Accounts$Metadata$Dimensions; @@ -840,6 +1037,8 @@ export namespace adexchangeseller_v2_0 { return this.root; } } + + export class Resource$Accounts$Metadata$Dimensions { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -865,25 +1064,38 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Metadata$Dimensions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Metadata$Dimensions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Metadata$Dimensions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Metadata$Dimensions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Metadata$Dimensions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Metadata$Dimensions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -908,6 +1120,19 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Metadata$Dimensions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account with visibility to the dimensions. + */ + accountId?: string; + } + + export class Resource$Accounts$Metadata$Metrics { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -933,25 +1158,38 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Metadata$Metrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Metadata$Metrics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Metadata$Metrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Metadata$Metrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Metadata$Metrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Metadata$Metrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -976,6 +1214,19 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Metadata$Metrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account with visibility to the metrics. + */ + accountId?: string; + } + + export class Resource$Accounts$Preferreddeals { root: Adexchangeseller; @@ -1002,24 +1253,35 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Preferreddeals$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Preferreddeals$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Preferreddeals$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Preferreddeals$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Preferreddeals$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Preferreddeals$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1056,26 +1318,39 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Preferreddeals$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Preferreddeals$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Preferreddeals$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Preferreddeals$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Preferreddeals$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Preferreddeals$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1100,6 +1375,34 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Preferreddeals$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account owning the deal. + */ + accountId?: string; + /** + * Preferred deal to get information about. + */ + dealId?: string; + } + export interface Params$Resource$Accounts$Preferreddeals$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account owning the deals. + */ + accountId?: string; + } + + export class Resource$Accounts$Reports { root: Adexchangeseller; saved: Resource$Accounts$Reports$Saved; @@ -1137,26 +1440,38 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Reports$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Accounts$Reports$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Reports$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Accounts$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1179,6 +1494,58 @@ export namespace adexchangeseller_v2_0 { } } } + + export interface Params$Resource$Accounts$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which owns the generated report. + */ + accountId?: string; + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export class Resource$Accounts$Reports$Saved { root: Adexchangeseller; constructor(root: Adexchangeseller) { @@ -1208,26 +1575,38 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Reports$Saved$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Accounts$Reports$Saved$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Reports$Saved$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Accounts$Reports$Saved$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Reports$Saved$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Saved$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1266,26 +1645,39 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Reports$Saved$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Reports$Saved$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Reports$Saved$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Reports$Saved$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Reports$Saved$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Saved$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1309,6 +1701,58 @@ export namespace adexchangeseller_v2_0 { } } + export interface Params$Resource$Accounts$Reports$Saved$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account owning the saved report. + */ + accountId?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * The saved report to retrieve. + */ + savedReportId?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export interface Params$Resource$Accounts$Reports$Saved$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account owning the saved reports. + */ + accountId?: string; + /** + * The maximum number of saved reports to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved reports. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Urlchannels { root: Adexchangeseller; @@ -1338,26 +1782,39 @@ export namespace adexchangeseller_v2_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Urlchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Urlchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Urlchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Urlchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Urlchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Urlchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1381,4 +1838,31 @@ export namespace adexchangeseller_v2_0 { } } } + + export interface Params$Resource$Accounts$Urlchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client for which to list URL channels. + */ + adClientId?: string; + /** + * The maximum number of URL channels to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through URL channels. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } } diff --git a/src/apis/adexperiencereport/v1.ts b/src/apis/adexperiencereport/v1.ts index 8933618a925..b8c8b225066 100644 --- a/src/apis/adexperiencereport/v1.ts +++ b/src/apis/adexperiencereport/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adexperiencereport_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Ad Experience Report API * @@ -75,31 +78,31 @@ export namespace adexperiencereport_v1 { /** * The status of the site reviewed for the Better Ads Standards. */ - betterAdsStatus: string; + betterAdsStatus?: string; /** * The date on which ad filtering begins. */ - enforcementTime: string; + enforcementTime?: string; /** * The ad filtering status of the site. */ - filterStatus: string; + filterStatus?: string; /** * The last time that the site changed status. */ - lastChangeTime: string; + lastChangeTime?: string; /** * The assigned regions for the site and platform. */ - region: string[]; + region?: string[]; /** * A link that leads to a full ad experience report. */ - reportUrl: string; + reportUrl?: string; /** * Whether the site is currently under review. */ - underReview: boolean; + underReview?: boolean; } /** * Response message for GetSiteSummary. Do not confuse with same message in @@ -109,15 +112,15 @@ export namespace adexperiencereport_v1 { /** * Summary for the desktop review of the site. */ - desktopSummary: Schema$PlatformSummary; + desktopSummary?: Schema$PlatformSummary; /** * Summary for the mobile review of the site. */ - mobileSummary: Schema$PlatformSummary; + mobileSummary?: Schema$PlatformSummary; /** * The name of the site reviewed. */ - reviewedSite: string; + reviewedSite?: string; } /** * Response message for ListViolatingSites. @@ -126,9 +129,10 @@ export namespace adexperiencereport_v1 { /** * A list of summaries of violating sites. */ - violatingSites: Schema$SiteSummaryResponse[]; + violatingSites?: Schema$SiteSummaryResponse[]; } + export class Resource$Sites { root: Adexperiencereport; constructor(root: Adexperiencereport) { @@ -153,26 +157,34 @@ export namespace adexperiencereport_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Sites$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Sites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sites$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; const parameters = { @@ -195,6 +207,26 @@ export namespace adexperiencereport_v1 { } } + export interface Params$Resource$Sites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The required site name. It should be the site property whose ad + * experiences may have been reviewed, and it should be URL-encoded. For + * example, sites/https%3A%2F%2Fwww.google.com. The server will return an + * error of BAD_REQUEST if this field is not filled in. Note that if the + * site property is not yet verified in Search Console, the reportUrl field + * returned by the API will lead to the verification page, prompting the + * user to go through that process before they can gain access to the Ad + * Experience Report. + */ + name?: string; + } + + export class Resource$Violatingsites { root: Adexperiencereport; constructor(root: Adexperiencereport) { @@ -219,28 +251,39 @@ export namespace adexperiencereport_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Violatingsites$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Violatingsites$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Violatingsites$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Violatingsites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Violatingsites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Violatingsites$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; const parameters = { @@ -263,4 +306,11 @@ export namespace adexperiencereport_v1 { } } } + + export interface Params$Resource$Violatingsites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/admin/datatransfer_v1.ts b/src/apis/admin/datatransfer_v1.ts index ccf19d9474e..9b0a8beffdc 100644 --- a/src/apis/admin/datatransfer_v1.ts +++ b/src/apis/admin/datatransfer_v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace admin_datatransfer_v1 { + export interface Options extends GlobalOptions { version: 'datatransfer_v1'; } + /** * Admin Data Transfer API * @@ -74,25 +77,25 @@ export namespace admin_datatransfer_v1 { /** * Etag of the resource. */ - etag: string; + etag?: string; /** * The application's ID. */ - id: string; + id?: string; /** * Identifies the resource as a DataTransfer Application Resource. */ - kind: string; + kind?: string; /** * The application's name. */ - name: string; + name?: string; /** * The list of all possible transfer parameters for this application. These * parameters can be used to select the data of the user in this application * to be transfered. */ - transferParams: Schema$ApplicationTransferParam[]; + transferParams?: Schema$ApplicationTransferParam[]; } /** * Template to map fields of ApplicationDataTransfer resource. @@ -101,16 +104,16 @@ export namespace admin_datatransfer_v1 { /** * The application's ID. */ - applicationId: string; + applicationId?: string; /** * The transfer parameters for the application. These parameters are used to * select the data which will get transfered in context of this application. */ - applicationTransferParams: Schema$ApplicationTransferParam[]; + applicationTransferParams?: Schema$ApplicationTransferParam[]; /** * Current status of transfer for this application. (Read-only) */ - applicationTransferStatus: string; + applicationTransferStatus?: string; } /** * Template for a collection of Applications. @@ -120,19 +123,19 @@ export namespace admin_datatransfer_v1 { * List of applications that support data transfer and are also installed * for the customer. */ - applications: Schema$Application[]; + applications?: Schema$Application[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Identifies the resource as a collection of Applications. */ - kind: string; + kind?: string; /** * Continuation token which will be used to specify next page in list API. */ - nextPageToken: string; + nextPageToken?: string; } /** * Template for application transfer parameters. @@ -141,12 +144,12 @@ export namespace admin_datatransfer_v1 { /** * The type of the transfer parameter. eg: 'PRIVACY_LEVEL' */ - key: string; + key?: string; /** * The value of the coressponding transfer parameter. eg: 'PRIVATE' * or 'SHARED' */ - value: string[]; + value?: string[]; } /** * The JSON template for a DataTransfer resource. @@ -159,35 +162,35 @@ export namespace admin_datatransfer_v1 { * for which data transfer has to be done at the time of the transfer * resource creation. */ - applicationDataTransfers: Schema$ApplicationDataTransfer[]; + applicationDataTransfers?: Schema$ApplicationDataTransfer[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The transfer's ID (Read-only). */ - id: string; + id?: string; /** * Identifies the resource as a DataTransfer request. */ - kind: string; + kind?: string; /** * ID of the user to whom the data is being transfered. */ - newOwnerUserId: string; + newOwnerUserId?: string; /** * ID of the user whose data is being transfered. */ - oldOwnerUserId: string; + oldOwnerUserId?: string; /** * Overall transfer status (Read-only). */ - overallTransferStatusCode: string; + overallTransferStatusCode?: string; /** * The time at which the data transfer was requested (Read-only). */ - requestTime: string; + requestTime?: string; } /** * Template for a collection of DataTransfer resources. @@ -196,21 +199,22 @@ export namespace admin_datatransfer_v1 { /** * List of data transfer requests. */ - dataTransfers: Schema$DataTransfer[]; + dataTransfers?: Schema$DataTransfer[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Identifies the resource as a collection of data transfer requests. */ - kind: string; + kind?: string; /** * Continuation token which will be used to specify next page in list API. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Applications { root: Admin; constructor(root: Admin) { @@ -236,24 +240,34 @@ export namespace admin_datatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Applications$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Applications$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Applications$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Applications$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Applications$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applications$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -291,28 +305,39 @@ export namespace admin_datatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Applications$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Applications$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Applications$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Applications$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Applications$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applications$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -335,6 +360,38 @@ export namespace admin_datatransfer_v1 { } } + export interface Params$Resource$Applications$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the application resource to be retrieved. + */ + applicationId?: string; + } + export interface Params$Resource$Applications$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the Google Apps account. + */ + customerId?: string; + /** + * Maximum number of results to return. Default is 100. + */ + maxResults?: number; + /** + * Token to specify next page in the list. + */ + pageToken?: string; + } + + export class Resource$Transfers { root: Admin; constructor(root: Admin) { @@ -359,24 +416,34 @@ export namespace admin_datatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Transfers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Transfers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Transfers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Transfers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Transfers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transfers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -412,26 +479,37 @@ export namespace admin_datatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Transfers$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Transfers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transfers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Transfers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Transfers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transfers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -472,29 +550,39 @@ export namespace admin_datatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Transfers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Transfers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Transfers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Transfers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Transfers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transfers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -517,4 +605,54 @@ export namespace admin_datatransfer_v1 { } } } + + export interface Params$Resource$Transfers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the resource to be retrieved. This is returned in the response from + * the insert method. + */ + dataTransferId?: string; + } + export interface Params$Resource$Transfers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Transfers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the Google Apps account. + */ + customerId?: string; + /** + * Maximum number of results to return. Default is 100. + */ + maxResults?: number; + /** + * Destination user's profile ID. + */ + newOwnerUserId?: string; + /** + * Source user's profile ID. + */ + oldOwnerUserId?: string; + /** + * Token to specify the next page in the list. + */ + pageToken?: string; + /** + * Status of the transfer. + */ + status?: string; + } } diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index 499eed12bb9..40564056d6b 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace admin_directory_v1 { + export interface Options extends GlobalOptions { version: 'directory_v1'; } + /** * Admin Directory API * @@ -113,24 +116,24 @@ export namespace admin_directory_v1 { /** * A alias email */ - alias: string; + alias?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Unique id of the group (Read-only) Unique id of the user (Read-only) */ - id: string; + id?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Group's primary email (Read-only) User's primary email * (Read-only) */ - primaryEmail: string; + primaryEmail?: string; } /** * JSON response template to list aliases in Directory API. @@ -139,15 +142,15 @@ export namespace admin_directory_v1 { /** * List of alias objects. */ - aliases: any[]; + aliases?: any[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; } /** * JSON template for App Access Collections Resource object in Directory API. @@ -156,39 +159,39 @@ export namespace admin_directory_v1 { /** * List of blocked api access buckets. */ - blockedApiAccessBuckets: string[]; + blockedApiAccessBuckets?: string[]; /** * Boolean to indicate whether to enforce app access settings on Android * Drive or not. */ - enforceSettingsForAndroidDrive: boolean; + enforceSettingsForAndroidDrive?: boolean; /** * Error message provided by the Admin that will be shown to the user when * an app is blocked. */ - errorMessage: string; + errorMessage?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Identifies the resource as an app access collection. Value: * admin#directory#appaccesscollection */ - kind: string; + kind?: string; /** * Unique ID of app access collection. (Readonly) */ - resourceId: string; + resourceId?: string; /** * Resource name given by the customer while creating/updating. Should be * unique under given customer. */ - resourceName: string; + resourceName?: string; /** * Boolean that indicates whether to trust domain owned apps. */ - trustDomainOwnedApps: boolean; + trustDomainOwnedApps?: boolean; } /** * The template that returns individual ASP (Access Code) data. @@ -197,46 +200,46 @@ export namespace admin_directory_v1 { /** * The unique ID of the ASP. */ - codeId: number; + codeId?: number; /** * The time when the ASP was created. Expressed in Unix time format. */ - creationTime: string; + creationTime?: string; /** * ETag of the ASP. */ - etag: string; + etag?: string; /** * The type of the API resource. This is always admin#directory#asp. */ - kind: string; + kind?: string; /** * The time when the ASP was last used. Expressed in Unix time format. */ - lastTimeUsed: string; + lastTimeUsed?: string; /** * The name of the application that the user, represented by their userId, * entered when the ASP was created. */ - name: string; + name?: string; /** * The unique ID of the user who issued the ASP. */ - userKey: string; + userKey?: string; } export interface Schema$Asps { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * A list of ASP resources. */ - items: Schema$Asp[]; + items?: Schema$Asp[]; /** * The type of the API resource. This is always admin#directory#aspList. */ - kind: string; + kind?: string; } /** * JSON template for Building object in Directory API. @@ -245,27 +248,27 @@ export namespace admin_directory_v1 { /** * Unique identifier for the building. The maximum length is 100 characters. */ - buildingId: string; + buildingId?: string; /** * The building name as seen by users in Calendar. Must be unique for the * customer. For example, "NYC-CHEL". The maximum length is 100 * characters. */ - buildingName: string; + buildingName?: string; /** * The geographic coordinates of the center of the building, expressed as * latitude and longitude in decimal degrees. */ - coordinates: Schema$BuildingCoordinates; + coordinates?: Schema$BuildingCoordinates; /** * A brief description of the building. For example, "Chelsea * Market". */ - description: string; + description?: string; /** * ETag of the resource. */ - etags: string; + etags?: string; /** * The display names for all floors in this building. The floors are * expected to be sorted in ascending order, from lowest floor to highest @@ -273,11 +276,11 @@ export namespace admin_directory_v1 { * "1", "2", "2M", "3", * "PH"] Must contain at least one entry. */ - floorNames: string[]; + floorNames?: string[]; /** * Kind of resource this is. */ - kind: string; + kind?: string; } /** * JSON template for coordinates of a building in Directory API. @@ -286,11 +289,11 @@ export namespace admin_directory_v1 { /** * Latitude in decimal degrees. */ - latitude: number; + latitude?: number; /** * Longitude in decimal degrees. */ - longitude: number; + longitude?: number; } /** * JSON template for Building List Response object in Directory API. @@ -299,20 +302,20 @@ export namespace admin_directory_v1 { /** * The Buildings in this page of results. */ - buildings: Schema$Building[]; + buildings?: Schema$Building[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * JSON template for Calendar Resource object in Directory API. @@ -321,66 +324,66 @@ export namespace admin_directory_v1 { /** * Unique ID for the building a resource is located in. */ - buildingId: string; + buildingId?: string; /** * Capacity of a resource, number of seats in a room. */ - capacity: number; + capacity?: number; /** * ETag of the resource. */ - etags: string; - featureInstances: any; + etags?: string; + featureInstances?: any; /** * Name of the floor a resource is located on. */ - floorName: string; + floorName?: string; /** * Name of the section within a floor a resource is located in. */ - floorSection: string; + floorSection?: string; /** * The read-only auto-generated name of the calendar resource which includes * metadata about the resource such as building name, floor, capacity, etc. * For example, "NYC-2-Training Room 1A (16)". */ - generatedResourceName: string; + generatedResourceName?: string; /** * The type of the resource. For calendar resources, the value is * admin#directory#resources#calendars#CalendarResource. */ - kind: string; + kind?: string; /** * The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. * Legacy data is set to CATEGORY_UNKNOWN. */ - resourceCategory: string; + resourceCategory?: string; /** * Description of the resource, visible only to admins. */ - resourceDescription: string; + resourceDescription?: string; /** * The read-only email for the calendar resource. Generated as part of * creating a new calendar resource. */ - resourceEmail: string; + resourceEmail?: string; /** * The unique ID for the calendar resource. */ - resourceId: string; + resourceId?: string; /** * The name of the calendar resource. For example, "Training Room * 1A". */ - resourceName: string; + resourceName?: string; /** * The type of the calendar resource, intended for non-room resources. */ - resourceType: string; + resourceType?: string; /** * Description of the resource, visible to users and admins. */ - userVisibleDescription: string; + userVisibleDescription?: string; } /** * JSON template for Calendar Resource List Response object in Directory API. @@ -389,21 +392,21 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The CalendarResources in this page of results. */ - items: Schema$CalendarResource[]; + items?: Schema$CalendarResource[]; /** * Identifies this as a collection of CalendarResources. This is always * admin#directory#resources#calendars#calendarResourcesList. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * An notification channel used to watch for resource changes. @@ -412,47 +415,47 @@ export namespace admin_directory_v1 { /** * The address where notifications are delivered for this channel. */ - address: string; + address?: string; /** * Date and time of notification channel expiration, expressed as a Unix * timestamp, in milliseconds. Optional. */ - expiration: string; + expiration?: string; /** * A UUID or similar unique string that identifies this channel. */ - id: string; + id?: string; /** * Identifies this as a notification channel used to watch for changes to a * resource. Value: the fixed string "api#channel". */ - kind: string; + kind?: string; /** * Additional parameters controlling delivery channel behavior. Optional. */ - params: any; + params?: any; /** * A Boolean value to indicate whether payload is wanted. Optional. */ - payload: boolean; + payload?: boolean; /** * An opaque ID that identifies the resource being watched on this channel. * Stable across different API versions. */ - resourceId: string; + resourceId?: string; /** * A version-specific identifier for the watched resource. */ - resourceUri: string; + resourceUri?: string; /** * An arbitrary string delivered to the target address with each * notification delivered over this channel. Optional. */ - token: string; + token?: string; /** * The type of delivery mechanism used for this channel. */ - type: string; + type?: string; } /** * JSON template for Chrome Os Device resource in Directory API. @@ -461,114 +464,114 @@ export namespace admin_directory_v1 { /** * List of active time ranges (Read-only) */ - activeTimeRanges: any[]; + activeTimeRanges?: any[]; /** * AssetId specified during enrollment or through later annotation */ - annotatedAssetId: string; + annotatedAssetId?: string; /** * Address or location of the device as noted by the administrator */ - annotatedLocation: string; + annotatedLocation?: string; /** * User of the device */ - annotatedUser: string; + annotatedUser?: string; /** * Chromebook boot mode (Read-only) */ - bootMode: string; + bootMode?: string; /** * List of device files to download (Read-only) */ - deviceFiles: any[]; + deviceFiles?: any[]; /** * Unique identifier of Chrome OS Device (Read-only) */ - deviceId: string; + deviceId?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Chromebook Mac Address on ethernet network interface (Read-only) */ - ethernetMacAddress: string; + ethernetMacAddress?: string; /** * Chromebook firmware version (Read-only) */ - firmwareVersion: string; + firmwareVersion?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Date and time the device was last enrolled (Read-only) */ - lastEnrollmentTime: string; + lastEnrollmentTime?: string; /** * Date and time the device was last synchronized with the policy settings * in the G Suite administrator control panel (Read-only) */ - lastSync: string; + lastSync?: string; /** * Chromebook Mac Address on wifi network interface (Read-only) */ - macAddress: string; + macAddress?: string; /** * Mobile Equipment identifier for the 3G mobile card in the Chromebook * (Read-only) */ - meid: string; + meid?: string; /** * Chromebook Model (Read-only) */ - model: string; + model?: string; /** * Notes added by the administrator */ - notes: string; + notes?: string; /** * Chromebook order number (Read-only) */ - orderNumber: string; + orderNumber?: string; /** * OrgUnit of the device */ - orgUnitPath: string; + orgUnitPath?: string; /** * Chromebook Os Version (Read-only) */ - osVersion: string; + osVersion?: string; /** * Chromebook platform version (Read-only) */ - platformVersion: string; + platformVersion?: string; /** * List of recent device users, in descending order by last login time * (Read-only) */ - recentUsers: any[]; + recentUsers?: any[]; /** * Chromebook serial number (Read-only) */ - serialNumber: string; + serialNumber?: string; /** * status of the device (Read-only) */ - status: string; + status?: string; /** * Final date the device will be supported (Read-only) */ - supportEndDate: string; + supportEndDate?: string; /** * Trusted Platform Module (TPM) (Read-only) */ - tpmVersionInfo: any; + tpmVersionInfo?: any; /** * Will Chromebook auto renew after support end date (Read-only) */ - willAutoRenew: boolean; + willAutoRenew?: boolean; } /** * JSON request template for firing actions on ChromeOs Device in Directory @@ -578,8 +581,8 @@ export namespace admin_directory_v1 { /** * Action to be taken on the ChromeOs Device */ - action: string; - deprovisionReason: string; + action?: string; + deprovisionReason?: string; } /** * JSON response template for List Chrome OS Devices operation in Directory @@ -589,19 +592,19 @@ export namespace admin_directory_v1 { /** * List of Chrome OS Device objects. */ - chromeosdevices: Schema$ChromeOsDevice[]; + chromeosdevices?: Schema$ChromeOsDevice[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Token used to access next page of this result. */ - nextPageToken: string; + nextPageToken?: string; } /** * JSON request template for moving ChromeOs Device to given OU in Directory @@ -611,7 +614,7 @@ export namespace admin_directory_v1 { /** * ChromeOs Devices to be moved to OU */ - deviceIds: string[]; + deviceIds?: string[]; } /** * JSON template for Customer Resource object in Directory API. @@ -621,40 +624,40 @@ export namespace admin_directory_v1 { * The customer's secondary contact email address. This email address * cannot be on the same domain as the customerDomain */ - alternateEmail: string; + alternateEmail?: string; /** * The customer's creation time (Readonly) */ - customerCreationTime: string; + customerCreationTime?: string; /** * The customer's primary domain name string. Do not include the www * prefix when creating a new customer. */ - customerDomain: string; + customerDomain?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The unique ID for the customer's G Suite account. (Readonly) */ - id: string; + id?: string; /** * Identifies the resource as a customer. Value: admin#directory#customer */ - kind: string; + kind?: string; /** * The customer's ISO 639-2 language code. The default value is en-US */ - language: string; + language?: string; /** * The customer's contact phone number in E.164 format. */ - phoneNumber: string; + phoneNumber?: string; /** * The customer's postal address information. */ - postalAddress: Schema$CustomerPostalAddress; + postalAddress?: Schema$CustomerPostalAddress; } /** * JSON template for postal address of a customer. @@ -664,44 +667,44 @@ export namespace admin_directory_v1 { * A customer's physical address. The address can be composed of one to * three lines. */ - addressLine1: string; + addressLine1?: string; /** * Address line 2 of the address. */ - addressLine2: string; + addressLine2?: string; /** * Address line 3 of the address. */ - addressLine3: string; + addressLine3?: string; /** * The customer contact's name. */ - contactName: string; + contactName?: string; /** * This is a required property. For countryCode information see the ISO 3166 * country code elements. */ - countryCode: string; + countryCode?: string; /** * Name of the locality. An example of a locality value is the city of San * Francisco. */ - locality: string; + locality?: string; /** * The company or company division name. */ - organizationName: string; + organizationName?: string; /** * The postal code. A postalCode example is a postal zip code such as 10009. * This is in accordance with - * http://portablecontacts.net/draft-spec.html#address_element. */ - postalCode: string; + postalCode?: string; /** * Name of the region. An example of a region value is NY for the state of * New York. */ - region: string; + region?: string; } /** * JSON template for Domain Alias object in Directory API. @@ -710,28 +713,28 @@ export namespace admin_directory_v1 { /** * The creation time of the domain alias. (Read-only). */ - creationTime: string; + creationTime?: string; /** * The domain alias name. */ - domainAliasName: string; + domainAliasName?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * The parent domain name that the domain alias is associated with. This can * either be a primary or secondary domain name within a customer. */ - parentDomainName: string; + parentDomainName?: string; /** * Indicates the verification state of a domain alias. (Read-only) */ - verified: boolean; + verified?: boolean; } /** * JSON response template to list domain aliases in Directory API. @@ -740,15 +743,15 @@ export namespace admin_directory_v1 { /** * List of domain alias objects. */ - domainAliases: Schema$DomainAlias[]; + domainAliases?: Schema$DomainAlias[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; } /** * JSON template for Domain object in Directory API. @@ -757,31 +760,31 @@ export namespace admin_directory_v1 { /** * Creation time of the domain. (Read-only). */ - creationTime: string; + creationTime?: string; /** * List of domain alias objects. (Read-only) */ - domainAliases: Schema$DomainAlias[]; + domainAliases?: Schema$DomainAlias[]; /** * The domain name of the customer. */ - domainName: string; + domainName?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Indicates if the domain is a primary domain (Read-only). */ - isPrimary: boolean; + isPrimary?: boolean; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Indicates the verification state of a domain. (Read-only). */ - verified: boolean; + verified?: boolean; } /** * JSON response template to list Domains in Directory API. @@ -790,15 +793,15 @@ export namespace admin_directory_v1 { /** * List of domain objects. */ - domains: Schema$Domains[]; + domains?: Schema$Domains[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; } /** * JSON template for Feature object in Directory API. @@ -807,15 +810,15 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etags: string; + etags?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * The name of the feature. */ - name: string; + name?: string; } /** * JSON template for a "feature instance". @@ -825,7 +828,7 @@ export namespace admin_directory_v1 { * The feature that this is an instance of. A calendar resource may have * multiple instances of a feature. */ - feature: Schema$Feature; + feature?: Schema$Feature; } /** * JSON request template for renaming a feature. @@ -834,7 +837,7 @@ export namespace admin_directory_v1 { /** * New name of the feature. */ - newName: string; + newName?: string; } /** * JSON template for Feature List Response object in Directory API. @@ -843,20 +846,20 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The Features in this page of results. */ - features: Schema$Feature[]; + features?: Schema$Feature[]; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * JSON template for Group resource in Directory API. @@ -865,43 +868,43 @@ export namespace admin_directory_v1 { /** * Is the group created by admin (Read-only) * */ - adminCreated: boolean; + adminCreated?: boolean; /** * List of aliases (Read-only) */ - aliases: string[]; + aliases?: string[]; /** * Description of the group */ - description: string; + description?: string; /** * Group direct members count */ - directMembersCount: string; + directMembersCount?: string; /** * Email of Group */ - email: string; + email?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Unique identifier of Group (Read-only) */ - id: string; + id?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Group name */ - name: string; + name?: string; /** * List of non editable aliases (Read-only) */ - nonEditableAliases: string[]; + nonEditableAliases?: string[]; } /** * JSON response template for List Groups operation in Directory API. @@ -910,19 +913,19 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * List of group objects. */ - groups: Schema$Group[]; + groups?: Schema$Group[]; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Token used to access next page of this result. */ - nextPageToken: string; + nextPageToken?: string; } /** * JSON template for Member resource in Directory API. @@ -931,32 +934,32 @@ export namespace admin_directory_v1 { /** * Email of member (Read-only) */ - email: string; + email?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Unique identifier of customer member (Read-only) Unique identifier of * group (Read-only) Unique identifier of member (Read-only) */ - id: string; + id?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Role of member */ - role: string; + role?: string; /** * Status of member (Immutable) */ - status: string; + status?: string; /** * Type of member (Immutable) */ - type: string; + type?: string; } /** * JSON response template for List Members operation in Directory API. @@ -965,19 +968,19 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * List of member objects. */ - members: Schema$Member[]; + members?: Schema$Member[]; /** * Token used to access next page of this result. */ - nextPageToken: string; + nextPageToken?: string; } /** * JSON template for Has Member response in Directory API. @@ -987,7 +990,7 @@ export namespace admin_directory_v1 { * Identifies whether the given user is a member of the group. Membership * can be direct or nested. */ - isMember: boolean; + isMember?: boolean; } /** * JSON template for Mobile Device resource in Directory API. @@ -996,166 +999,166 @@ export namespace admin_directory_v1 { /** * Adb (USB debugging) enabled or disabled on device (Read-only) */ - adbStatus: boolean; + adbStatus?: boolean; /** * List of applications installed on Mobile Device */ - applications: any[]; + applications?: any[]; /** * Mobile Device Baseband version (Read-only) */ - basebandVersion: string; + basebandVersion?: string; /** * Mobile Device Bootloader version (Read-only) */ - bootloaderVersion: string; + bootloaderVersion?: string; /** * Mobile Device Brand (Read-only) */ - brand: string; + brand?: string; /** * Mobile Device Build number (Read-only) */ - buildNumber: string; + buildNumber?: string; /** * The default locale used on the Mobile Device (Read-only) */ - defaultLanguage: string; + defaultLanguage?: string; /** * Developer options enabled or disabled on device (Read-only) */ - developerOptionsStatus: boolean; + developerOptionsStatus?: boolean; /** * Mobile Device compromised status (Read-only) */ - deviceCompromisedStatus: string; + deviceCompromisedStatus?: string; /** * Mobile Device serial number (Read-only) */ - deviceId: string; + deviceId?: string; /** * DevicePasswordStatus (Read-only) */ - devicePasswordStatus: string; + devicePasswordStatus?: string; /** * List of owner user's email addresses (Read-only) */ - email: string[]; + email?: string[]; /** * Mobile Device Encryption Status (Read-only) */ - encryptionStatus: string; + encryptionStatus?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Date and time the device was first synchronized with the policy settings * in the G Suite administrator control panel (Read-only) */ - firstSync: string; + firstSync?: string; /** * Mobile Device Hardware (Read-only) */ - hardware: string; + hardware?: string; /** * Mobile Device Hardware Id (Read-only) */ - hardwareId: string; + hardwareId?: string; /** * Mobile Device IMEI number (Read-only) */ - imei: string; + imei?: string; /** * Mobile Device Kernel version (Read-only) */ - kernelVersion: string; + kernelVersion?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Date and time the device was last synchronized with the policy settings * in the G Suite administrator control panel (Read-only) */ - lastSync: string; + lastSync?: string; /** * Boolean indicating if this account is on owner/primary profile or not * (Read-only) */ - managedAccountIsOnOwnerProfile: boolean; + managedAccountIsOnOwnerProfile?: boolean; /** * Mobile Device manufacturer (Read-only) */ - manufacturer: string; + manufacturer?: string; /** * Mobile Device MEID number (Read-only) */ - meid: string; + meid?: string; /** * Name of the model of the device */ - model: string; + model?: string; /** * List of owner user's names (Read-only) */ - name: string[]; + name?: string[]; /** * Mobile Device mobile or network operator (if available) (Read-only) */ - networkOperator: string; + networkOperator?: string; /** * Name of the mobile operating system */ - os: string; + os?: string; /** * List of accounts added on device (Read-only) */ - otherAccountsInfo: string[]; + otherAccountsInfo?: string[]; /** * DMAgentPermission (Read-only) */ - privilege: string; + privilege?: string; /** * Mobile Device release version version (Read-only) */ - releaseVersion: string; + releaseVersion?: string; /** * Unique identifier of Mobile Device (Read-only) */ - resourceId: string; + resourceId?: string; /** * Mobile Device Security patch level (Read-only) */ - securityPatchLevel: string; + securityPatchLevel?: string; /** * Mobile Device SSN or Serial Number (Read-only) */ - serialNumber: string; + serialNumber?: string; /** * Status of the device (Read-only) */ - status: string; + status?: string; /** * Work profile supported on device (Read-only) */ - supportsWorkProfile: boolean; + supportsWorkProfile?: boolean; /** * The type of device (Read-only) */ - type: string; + type?: string; /** * Unknown sources enabled or disabled on device (Read-only) */ - unknownSourcesStatus: boolean; + unknownSourcesStatus?: boolean; /** * Mobile Device user agent */ - userAgent: string; + userAgent?: string; /** * Mobile Device WiFi MAC address (Read-only) */ - wifiMacAddress: string; + wifiMacAddress?: string; } /** * JSON request template for firing commands on Mobile Device in Directory @@ -1165,7 +1168,7 @@ export namespace admin_directory_v1 { /** * Action to be taken on the Mobile Device */ - action: string; + action?: string; } /** * JSON response template for List Mobile Devices operation in Directory API. @@ -1174,19 +1177,19 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * List of Mobile Device objects. */ - mobiledevices: Schema$MobileDevice[]; + mobiledevices?: Schema$MobileDevice[]; /** * Token used to access next page of this result. */ - nextPageToken: string; + nextPageToken?: string; } /** * Template for a notification resource. @@ -1195,32 +1198,32 @@ export namespace admin_directory_v1 { /** * Body of the notification (Read-only) */ - body: string; + body?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Address from which the notification is received (Read-only) */ - fromAddress: string; + fromAddress?: string; /** * Boolean indicating whether the notification is unread or not. */ - isUnread: boolean; + isUnread?: boolean; /** * The type of the resource. */ - kind: string; - notificationId: string; + kind?: string; + notificationId?: string; /** * Time at which notification was sent (Read-only) */ - sendTime: string; + sendTime?: string; /** * Subject of the notification (Read-only) */ - subject: string; + subject?: string; } /** * Template for notifications list response. @@ -1229,23 +1232,23 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * List of notifications in this page. */ - items: Schema$Notification[]; + items?: Schema$Notification[]; /** * The type of the resource. */ - kind: string; + kind?: string; /** * Token for fetching the next page of notifications. */ - nextPageToken: string; + nextPageToken?: string; /** * Number of unread notification for the domain. */ - unreadNotificationsCount: number; + unreadNotificationsCount?: number; } /** * JSON template for Org Unit resource in Directory API. @@ -1254,39 +1257,39 @@ export namespace admin_directory_v1 { /** * Should block inheritance */ - blockInheritance: boolean; + blockInheritance?: boolean; /** * Description of OrgUnit */ - description: string; + description?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Name of OrgUnit */ - name: string; + name?: string; /** * Id of OrgUnit */ - orgUnitId: string; + orgUnitId?: string; /** * Path of OrgUnit */ - orgUnitPath: string; + orgUnitPath?: string; /** * Id of parent OrgUnit */ - parentOrgUnitId: string; + parentOrgUnitId?: string; /** * Path of parent OrgUnit */ - parentOrgUnitPath: string; + parentOrgUnitPath?: string; } /** * JSON response template for List Organization Units operation in Directory @@ -1296,15 +1299,15 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * List of user objects. */ - organizationUnits: Schema$OrgUnit[]; + organizationUnits?: Schema$OrgUnit[]; } /** * JSON template for privilege resource in Directory API. @@ -1315,31 +1318,31 @@ export namespace admin_directory_v1 { * privilege can have a list of child privileges; this list is empty for a * leaf privilege. */ - childPrivileges: Schema$Privilege[]; + childPrivileges?: Schema$Privilege[]; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * If the privilege can be restricted to an organization unit. */ - isOuScopable: boolean; + isOuScopable?: boolean; /** * The type of the API resource. This is always admin#directory#privilege. */ - kind: string; + kind?: string; /** * The name of the privilege. */ - privilegeName: string; + privilegeName?: string; /** * The obfuscated ID of the service this privilege is for. */ - serviceId: string; + serviceId?: string; /** * The name of the service this privilege is for. */ - serviceName: string; + serviceName?: string; } /** * JSON response template for List privileges operation in Directory API. @@ -1348,15 +1351,15 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * A list of Privilege resources. */ - items: Schema$Privilege[]; + items?: Schema$Privilege[]; /** * The type of the API resource. This is always admin#directory#privileges. */ - kind: string; + kind?: string; } /** * JSON template for role resource in Directory API. @@ -1365,35 +1368,35 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Returns true if the role is a super admin role. */ - isSuperAdminRole: boolean; + isSuperAdminRole?: boolean; /** * Returns true if this is a pre-defined system role. */ - isSystemRole: boolean; + isSystemRole?: boolean; /** * The type of the API resource. This is always admin#directory#role. */ - kind: string; + kind?: string; /** * A short description of the role. */ - roleDescription: string; + roleDescription?: string; /** * ID of the role. */ - roleId: string; + roleId?: string; /** * Name of the role. */ - roleName: string; + roleName?: string; /** * The set of privileges that are granted to this role. */ - rolePrivileges: any[]; + rolePrivileges?: any[]; } /** * JSON template for roleAssignment resource in Directory API. @@ -1402,34 +1405,34 @@ export namespace admin_directory_v1 { /** * The unique ID of the user this role is assigned to. */ - assignedTo: string; + assignedTo?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The type of the API resource. This is always * admin#directory#roleAssignment. */ - kind: string; + kind?: string; /** * If the role is restricted to an organization unit, this contains the ID * for the organization unit the exercise of this role is restricted to. */ - orgUnitId: string; + orgUnitId?: string; /** * ID of this roleAssignment. */ - roleAssignmentId: string; + roleAssignmentId?: string; /** * The ID of the role that is assigned. */ - roleId: string; + roleId?: string; /** * The scope in which this role is assigned. Possible values are: - * CUSTOMER - ORG_UNIT */ - scopeType: string; + scopeType?: string; } /** * JSON response template for List roleAssignments operation in Directory API. @@ -1438,17 +1441,17 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * A list of RoleAssignment resources. */ - items: Schema$RoleAssignment[]; + items?: Schema$RoleAssignment[]; /** * The type of the API resource. This is always * admin#directory#roleAssignments. */ - kind: string; - nextPageToken: string; + kind?: string; + nextPageToken?: string; } /** * JSON response template for List roles operation in Directory API. @@ -1457,16 +1460,16 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * A list of Role resources. */ - items: Schema$Role[]; + items?: Schema$Role[]; /** * The type of the API resource. This is always admin#directory#roles. */ - kind: string; - nextPageToken: string; + kind?: string; + nextPageToken?: string; } /** * JSON template for Schema resource in Directory API. @@ -1475,23 +1478,23 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Fields of Schema */ - fields: Schema$SchemaFieldSpec[]; + fields?: Schema$SchemaFieldSpec[]; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Unique identifier of Schema (Read-only) */ - schemaId: string; + schemaId?: string; /** * Schema name */ - schemaName: string; + schemaName?: string; } /** * JSON template for FieldSpec resource for Schemas in Directory API. @@ -1500,43 +1503,43 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Unique identifier of Field (Read-only) */ - fieldId: string; + fieldId?: string; /** * Name of the field. */ - fieldName: string; + fieldName?: string; /** * Type of the field. */ - fieldType: string; + fieldType?: string; /** * Boolean specifying whether the field is indexed or not. */ - indexed: boolean; + indexed?: boolean; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Boolean specifying whether this is a multi-valued field or not. */ - multiValued: boolean; + multiValued?: boolean; /** * Indexing spec for a numeric field. By default, only exact match queries * will be supported for numeric fields. Setting the numericIndexingSpec * allows range queries to be supported. */ - numericIndexingSpec: any; + numericIndexingSpec?: any; /** * Read ACLs on the field specifying who can view values of this field. * Valid values are "ALL_DOMAIN_USERS" and * "ADMINS_AND_SELF". */ - readAccessType: string; + readAccessType?: string; } /** * JSON response template for List Schema operation in Directory API. @@ -1545,15 +1548,15 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * List of UserSchema objects. */ - schemas: Schema$Schema[]; + schemas?: Schema$Schema[]; } /** * JSON template for token resource in Directory API. @@ -1563,36 +1566,36 @@ export namespace admin_directory_v1 { * Whether the application is registered with Google. The value is true if * the application has an anonymous Client ID. */ - anonymous: boolean; + anonymous?: boolean; /** * The Client ID of the application the token is issued to. */ - clientId: string; + clientId?: string; /** * The displayable name of the application the token is issued to. */ - displayText: string; + displayText?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The type of the API resource. This is always admin#directory#token. */ - kind: string; + kind?: string; /** * Whether the token is issued to an installed application. The value is * true if the application is installed to a desktop or mobile device. */ - nativeApp: boolean; + nativeApp?: boolean; /** * A list of authorization scopes the application is granted. */ - scopes: string[]; + scopes?: string[]; /** * The unique ID of the user that issued the token. */ - userKey: string; + userKey?: string; } /** * JSON response template for List tokens operation in Directory API. @@ -1601,15 +1604,15 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * A list of Token resources. */ - items: Schema$Token[]; + items?: Schema$Token[]; /** * The type of the API resource. This is always admin#directory#tokenList. */ - kind: string; + kind?: string; } /** * JSON template for Trusted App Ids Resource object in Directory API. @@ -1618,20 +1621,20 @@ export namespace admin_directory_v1 { /** * Android package name. */ - androidPackageName: string; + androidPackageName?: string; /** * SHA1 signature of the app certificate. */ - certificateHashSHA1: string; + certificateHashSHA1?: string; /** * SHA256 signature of the app certificate. */ - certificateHashSHA256: string; - etag: string; + certificateHashSHA256?: string; + etag?: string; /** * Identifies the resource as a trusted AppId. */ - kind: string; + kind?: string; } /** * JSON template for Trusted Apps response object of a user in Directory API. @@ -1640,145 +1643,145 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Identifies the resource as trusted apps response. */ - kind: string; - nextPageToken: string; + kind?: string; + nextPageToken?: string; /** * Trusted Apps list. */ - trustedApps: Schema$TrustedAppId[]; + trustedApps?: Schema$TrustedAppId[]; } /** * JSON template for User object in Directory API. */ export interface Schema$User { - addresses: any; + addresses?: any; /** * Indicates if user has agreed to terms (Read-only) */ - agreedToTerms: boolean; + agreedToTerms?: boolean; /** * List of aliases (Read-only) */ - aliases: string[]; + aliases?: string[]; /** * Boolean indicating if the user should change password in next login */ - changePasswordAtNextLogin: boolean; + changePasswordAtNextLogin?: boolean; /** * User's G Suite account creation time. (Read-only) */ - creationTime: string; + creationTime?: string; /** * CustomerId of User (Read-only) */ - customerId: string; + customerId?: string; /** * Custom fields of the user. */ - customSchemas: any; - deletionTime: string; - emails: any; + customSchemas?: any; + deletionTime?: string; + emails?: any; /** * ETag of the resource. */ - etag: string; - externalIds: any; - gender: any; + etag?: string; + externalIds?: any; + gender?: any; /** * Hash function name for password. Supported are MD5, SHA-1 and crypt */ - hashFunction: string; + hashFunction?: string; /** * Unique identifier of User (Read-only) */ - id: string; - ims: any; + id?: string; + ims?: any; /** * Boolean indicating if user is included in Global Address List */ - includeInGlobalAddressList: boolean; + includeInGlobalAddressList?: boolean; /** * Boolean indicating if ip is whitelisted */ - ipWhitelisted: boolean; + ipWhitelisted?: boolean; /** * Boolean indicating if the user is admin (Read-only) */ - isAdmin: boolean; + isAdmin?: boolean; /** * Boolean indicating if the user is delegated admin (Read-only) */ - isDelegatedAdmin: boolean; + isDelegatedAdmin?: boolean; /** * Is 2-step verification enforced (Read-only) */ - isEnforcedIn2Sv: boolean; + isEnforcedIn2Sv?: boolean; /** * Is enrolled in 2-step verification (Read-only) */ - isEnrolledIn2Sv: boolean; + isEnrolledIn2Sv?: boolean; /** * Is mailbox setup (Read-only) */ - isMailboxSetup: boolean; - keywords: any; + isMailboxSetup?: boolean; + keywords?: any; /** * Kind of resource this is. */ - kind: string; - languages: any; + kind?: string; + languages?: any; /** * User's last login time. (Read-only) */ - lastLoginTime: string; - locations: any; + lastLoginTime?: string; + locations?: any; /** * User's name */ - name: Schema$UserName; + name?: Schema$UserName; /** * List of non editable aliases (Read-only) */ - nonEditableAliases: string[]; - notes: any; - organizations: any; + nonEditableAliases?: string[]; + notes?: any; + organizations?: any; /** * OrgUnit of User */ - orgUnitPath: string; + orgUnitPath?: string; /** * User's password */ - password: string; - phones: any; - posixAccounts: any; + password?: string; + phones?: any; + posixAccounts?: any; /** * username of User */ - primaryEmail: string; - relations: any; - sshPublicKeys: any; + primaryEmail?: string; + relations?: any; + sshPublicKeys?: any; /** * Indicates if user is suspended */ - suspended: boolean; + suspended?: boolean; /** * Suspension reason if user is suspended (Read-only) */ - suspensionReason: string; + suspensionReason?: string; /** * ETag of the user's photo (Read-only) */ - thumbnailPhotoEtag: string; + thumbnailPhotoEtag?: string; /** * Photo Url of the user (Read-only) */ - thumbnailPhotoUrl: string; - websites: any; + thumbnailPhotoUrl?: string; + websites?: any; } /** * JSON template for About (notes) of a user in Directory API. @@ -1789,11 +1792,11 @@ export namespace admin_directory_v1 { * either be plain or html. By default, notes contents are assumed to * contain plain text. */ - contentType: string; + contentType?: string; /** * Actual value of notes. */ - value: string; + value?: string; } /** * JSON template for address. @@ -1802,54 +1805,54 @@ export namespace admin_directory_v1 { /** * Country. */ - country: string; + country?: string; /** * Country code. */ - countryCode: string; + countryCode?: string; /** * Custom type. */ - customType: string; + customType?: string; /** * Extended Address. */ - extendedAddress: string; + extendedAddress?: string; /** * Formatted address. */ - formatted: string; + formatted?: string; /** * Locality. */ - locality: string; + locality?: string; /** * Other parts of address. */ - poBox: string; + poBox?: string; /** * Postal code. */ - postalCode: string; + postalCode?: string; /** * If this is user's primary address. Only one entry could be marked as * primary. */ - primary: boolean; + primary?: boolean; /** * Region. */ - region: string; + region?: string; /** * User supplied address was structured. Structured addresses are NOT * supported at this time. You might be able to write structured addresses, * but any values will eventually be clobbered. */ - sourceIsStructured: boolean; + sourceIsStructured?: boolean; /** * Street. */ - streetAddress: string; + streetAddress?: string; /** * Each entry can have a type which indicates standard values of that entry. * For example address could be of home, work etc. In addition to the @@ -1857,7 +1860,7 @@ export namespace admin_directory_v1 { * Such type should have the CUSTOM value as type and also have a customType * value. */ - type: string; + type?: string; } /** * JSON template for a set of custom properties (i.e. all fields in a @@ -1871,23 +1874,23 @@ export namespace admin_directory_v1 { /** * Email id of the user. */ - address: string; + address?: string; /** * Custom Type. */ - customType: string; + customType?: string; /** * If this is user's primary email. Only one entry could be marked as * primary. */ - primary: boolean; + primary?: boolean; /** * Each entry can have a type which indicates standard types of that entry. * For example email could be of home, work etc. In addition to the standard * type, an entry can have a custom type and can take any value Such types * should have the CUSTOM value as type and also have a customType value. */ - type: string; + type?: string; } /** * JSON template for an externalId entry. @@ -1896,15 +1899,15 @@ export namespace admin_directory_v1 { /** * Custom type. */ - customType: string; + customType?: string; /** * The type of the Id. */ - type: string; + type?: string; /** * The value of the id. */ - value: string; + value?: string; } export interface Schema$UserGender { /** @@ -1912,15 +1915,15 @@ export namespace admin_directory_v1 { * to the profile owner by humans, for example "he/him/his" or * "they/them/their". */ - addressMeAs: string; + addressMeAs?: string; /** * Custom gender. */ - customGender: string; + customGender?: string; /** * Gender. */ - type: string; + type?: string; } /** * JSON template for instant messenger of an user. @@ -1929,26 +1932,26 @@ export namespace admin_directory_v1 { /** * Custom protocol. */ - customProtocol: string; + customProtocol?: string; /** * Custom type. */ - customType: string; + customType?: string; /** * Instant messenger id. */ - im: string; + im?: string; /** * If this is user's primary im. Only one entry could be marked as * primary. */ - primary: boolean; + primary?: boolean; /** * Protocol used in the instant messenger. It should be one of the values * from ImProtocolTypes map. Similar to type, it can take a CUSTOM value and * specify the custom name in customProtocol field. */ - protocol: string; + protocol?: string; /** * Each entry can have a type which indicates standard types of that entry. * For example instant messengers could be of home, work etc. In addition to @@ -1956,7 +1959,7 @@ export namespace admin_directory_v1 { * value. Such types should have the CUSTOM value as type and also have a * customType value. */ - type: string; + type?: string; } /** * JSON template for a keyword entry. @@ -1965,7 +1968,7 @@ export namespace admin_directory_v1 { /** * Custom Type. */ - customType: string; + customType?: string; /** * Each entry can have a type which indicates standard type of that entry. * For example, keyword could be of type occupation or outlook. In addition @@ -1973,11 +1976,11 @@ export namespace admin_directory_v1 { * name. Such types should have the CUSTOM value as type and also have a * customType value. */ - type: string; + type?: string; /** * Keyword. */ - value: string; + value?: string; } /** * JSON template for a language entry. @@ -1988,12 +1991,12 @@ export namespace admin_directory_v1 { * corresponding Google III language code. If this is set LanguageCode * can't be set */ - customLanguage: string; + customLanguage?: string; /** * Language Code. Should be used for storing Google III LanguageCode string * representation for language. Illegal values cause SchemaException. */ - languageCode: string; + languageCode?: string; } /** * JSON template for a location entry. @@ -2004,29 +2007,29 @@ export namespace admin_directory_v1 { * describe the location. For example, "Mountain View, CA", * "Near Seattle", "US-NYC-9TH 9A209A". */ - area: string; + area?: string; /** * Building Identifier. */ - buildingId: string; + buildingId?: string; /** * Custom Type. */ - customType: string; + customType?: string; /** * Most specific textual code of individual desk location. */ - deskCode: string; + deskCode?: string; /** * Floor name/number. */ - floorName: string; + floorName?: string; /** * Floor section. More specific location within the floor. For example, if a * floor is divided into sections "A", "B", and * "C", this field would identify one of those values. */ - floorSection: string; + floorSection?: string; /** * Each entry can have a type which indicates standard types of that entry. * For example location could be of types default and desk. In addition to @@ -2034,7 +2037,7 @@ export namespace admin_directory_v1 { * Such types should have "custom" as type and also have a * customType value. */ - type: string; + type?: string; } /** * JSON request template for setting/revoking admin status of a user in @@ -2044,7 +2047,7 @@ export namespace admin_directory_v1 { /** * Boolean indicating new admin status of the user */ - status: boolean; + status?: boolean; } /** * JSON template for name of a user in Directory API. @@ -2053,15 +2056,15 @@ export namespace admin_directory_v1 { /** * Last Name */ - familyName: string; + familyName?: string; /** * Full Name */ - fullName: string; + fullName?: string; /** * First Name */ - givenName: string; + givenName?: string; } /** * JSON template for an organization entry. @@ -2070,47 +2073,47 @@ export namespace admin_directory_v1 { /** * The cost center of the users department. */ - costCenter: string; + costCenter?: string; /** * Custom type. */ - customType: string; + customType?: string; /** * Department within the organization. */ - department: string; + department?: string; /** * Description of the organization. */ - description: string; + description?: string; /** * The domain to which the organization belongs to. */ - domain: string; + domain?: string; /** * The full-time equivalent percent within the organization (100000 = 100%). */ - fullTimeEquivalent: number; + fullTimeEquivalent?: number; /** * Location of the organization. This need not be fully qualified address. */ - location: string; + location?: string; /** * Name of the organization */ - name: string; + name?: string; /** * If it user's primary organization. */ - primary: boolean; + primary?: boolean; /** * Symbol of the organization. */ - symbol: string; + symbol?: string; /** * Title (designation) of the user in the organization. */ - title: string; + title?: string; /** * Each entry can have a type which indicates standard types of that entry. * For example organization could be of school, work etc. In addition to the @@ -2118,7 +2121,7 @@ export namespace admin_directory_v1 { * Such types should have the CUSTOM value as type and also have a * CustomType value. */ - type: string; + type?: string; } /** * JSON template for a phone entry. @@ -2127,11 +2130,11 @@ export namespace admin_directory_v1 { /** * Custom Type. */ - customType: string; + customType?: string; /** * If this is user's primary phone or not. */ - primary: boolean; + primary?: boolean; /** * Each entry can have a type which indicates standard types of that entry. * For example phone could be of home_fax, work, mobile etc. In addition to @@ -2139,11 +2142,11 @@ export namespace admin_directory_v1 { * name. Such types should have the CUSTOM value as type and also have a * customType value. */ - type: string; + type?: string; /** * Phone number. */ - value: string; + value?: string; } /** * JSON template for Photo object in Directory API. @@ -2152,35 +2155,35 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Height in pixels of the photo */ - height: number; + height?: number; /** * Unique identifier of User (Read-only) */ - id: string; + id?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Mime Type of the photo */ - mimeType: string; + mimeType?: string; /** * Base64 encoded photo data */ - photoData: string; + photoData?: string; /** * Primary email of User (Read-only) */ - primaryEmail: string; + primaryEmail?: string; /** * Width in pixels of the photo */ - width: number; + width?: number; } /** * JSON template for a POSIX account entry. Description of the field family: @@ -2190,39 +2193,39 @@ export namespace admin_directory_v1 { /** * A POSIX account field identifier. (Read-only) */ - accountId: string; + accountId?: string; /** * The GECOS (user information) for this account. */ - gecos: string; + gecos?: string; /** * The default group ID. */ - gid: string; + gid?: string; /** * The path to the home directory for this account. */ - homeDirectory: string; + homeDirectory?: string; /** * If this is user's primary account within the SystemId. */ - primary: boolean; + primary?: boolean; /** * The path to the login shell for this account. */ - shell: string; + shell?: string; /** * System identifier for which account Username or Uid apply to. */ - systemId: string; + systemId?: string; /** * The POSIX compliant user ID. */ - uid: string; + uid?: string; /** * The username of the account. */ - username: string; + username?: string; } /** * JSON template for a relation entry. @@ -2231,16 +2234,16 @@ export namespace admin_directory_v1 { /** * Custom Type. */ - customType: string; + customType?: string; /** * The relation of the user. Some of the possible values are mother, father, * sister, brother, manager, assistant, partner. */ - type: string; + type?: string; /** * The name of the relation. */ - value: string; + value?: string; } /** * JSON response template for List Users operation in Apps Directory API. @@ -2249,23 +2252,23 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Token used to access next page of this result. */ - nextPageToken: string; + nextPageToken?: string; /** * Event that triggered this response (only used in case of Push Response) */ - trigger_event: string; + trigger_event?: string; /** * List of user objects. */ - users: Schema$User[]; + users?: Schema$User[]; } /** * JSON template for a POSIX account entry. @@ -2274,15 +2277,15 @@ export namespace admin_directory_v1 { /** * An expiration time in microseconds since epoch. */ - expirationTimeUsec: string; + expirationTimeUsec?: string; /** * A SHA-256 fingerprint of the SSH public key. (Read-only) */ - fingerprint: string; + fingerprint?: string; /** * An SSH public key. */ - key: string; + key?: string; } /** * JSON request template to undelete a user in Directory API. @@ -2291,7 +2294,7 @@ export namespace admin_directory_v1 { /** * OrgUnit of User */ - orgUnitPath: string; + orgUnitPath?: string; } /** * JSON template for a website entry. @@ -2300,11 +2303,11 @@ export namespace admin_directory_v1 { /** * Custom Type. */ - customType: string; + customType?: string; /** * If this is user's primary website or not. */ - primary: boolean; + primary?: boolean; /** * Each entry can have a type which indicates standard types of that entry. * For example website could be of home, work, blog etc. In addition to the @@ -2312,11 +2315,11 @@ export namespace admin_directory_v1 { * Such types should have the CUSTOM value as type and also have a * customType value. */ - type: string; + type?: string; /** * Website. */ - value: string; + value?: string; } /** * JSON template for verification codes in Directory API. @@ -2325,21 +2328,21 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The type of the resource. This is always * admin#directory#verificationCode. */ - kind: string; + kind?: string; /** * The obfuscated unique ID of the user. */ - userId: string; + userId?: string; /** * A current verification code for the user. Invalidated or used * verification codes are not returned as part of the result. */ - verificationCode: string; + verificationCode?: string; } /** * JSON response template for List verification codes operation in Directory @@ -2349,18 +2352,19 @@ export namespace admin_directory_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * A list of verification code resources. */ - items: Schema$VerificationCode[]; + items?: Schema$VerificationCode[]; /** * The type of the resource. This is always * admin#directory#verificationCodesList. */ - kind: string; + kind?: string; } + export class Resource$Asps { root: Admin; constructor(root: Admin) { @@ -2386,22 +2390,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Asps$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Asps$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Asps$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Asps$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Asps$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Asps$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2438,21 +2455,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Asps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Asps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Asps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Asps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Asps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Asps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2488,23 +2517,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Asps$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Asps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Asps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Asps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Asps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Asps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2527,6 +2569,52 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Asps$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID of the ASP to be deleted. + */ + codeId?: number; + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } + export interface Params$Resource$Asps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID of the ASP. + */ + codeId?: number; + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } + export interface Params$Resource$Asps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } + + export class Resource$Channels { root: Admin; constructor(root: Admin) { @@ -2551,22 +2639,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2590,6 +2691,14 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Chromeosdevices { root: Admin; constructor(root: Admin) { @@ -2616,22 +2725,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - action(params?: any, options?: MethodOptions): AxiosPromise; action( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Chromeosdevices$Action, + options?: MethodOptions): AxiosPromise; + action( + params: Params$Resource$Chromeosdevices$Action, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; action( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Chromeosdevices$Action, + callback: BodyResponseCallback): void; + action(callback: BodyResponseCallback): void; + action( + paramsOrCallback?: Params$Resource$Chromeosdevices$Action| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Chromeosdevices$Action; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Chromeosdevices$Action; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2670,24 +2794,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Chromeosdevices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Chromeosdevices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Chromeosdevices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Chromeosdevices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Chromeosdevices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Chromeosdevices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2731,26 +2866,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Chromeosdevices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Chromeosdevices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Chromeosdevices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Chromeosdevices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Chromeosdevices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Chromeosdevices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2789,22 +2937,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveDevicesToOu(params?: any, options?: MethodOptions): AxiosPromise; moveDevicesToOu( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Chromeosdevices$Movedevicestoou, + options?: MethodOptions): AxiosPromise; + moveDevicesToOu( + params: Params$Resource$Chromeosdevices$Movedevicestoou, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; moveDevicesToOu( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Chromeosdevices$Movedevicestoou, + callback: BodyResponseCallback): void; + moveDevicesToOu(callback: BodyResponseCallback): void; + moveDevicesToOu( + paramsOrCallback?: Params$Resource$Chromeosdevices$Movedevicestoou| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Chromeosdevices$Movedevicestoou; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Chromeosdevices$Movedevicestoou; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2844,26 +3007,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Chromeosdevices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Chromeosdevices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Chromeosdevices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Chromeosdevices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Chromeosdevices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Chromeosdevices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2903,26 +3079,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Chromeosdevices$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Chromeosdevices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Chromeosdevices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Chromeosdevices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Chromeosdevices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Chromeosdevices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2947,6 +3136,152 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Chromeosdevices$Action { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Immutable ID of Chrome OS Device + */ + resourceId?: string; + /** + * Request body metadata + */ + resource?: Schema$ChromeOsDeviceAction; + } + export interface Params$Resource$Chromeosdevices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Immutable ID of Chrome OS Device + */ + deviceId?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + } + export interface Params$Resource$Chromeosdevices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Maximum number of results to return. Default is 100 + */ + maxResults?: number; + /** + * Column to use for sorting results + */ + orderBy?: string; + /** + * Full path of the organizational unit or its ID + */ + orgUnitPath?: string; + /** + * Token to specify next page in the list + */ + pageToken?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Search string in the format given at + * http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333 + */ + query?: string; + /** + * Whether to return results in ascending or descending order. Only of use + * when orderBy is also used + */ + sortOrder?: string; + } + export interface Params$Resource$Chromeosdevices$Movedevicestoou { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Full path of the target organizational unit or its ID + */ + orgUnitPath?: string; + /** + * Request body metadata + */ + resource?: Schema$ChromeOsMoveDevicesToOu; + } + export interface Params$Resource$Chromeosdevices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Immutable ID of Chrome OS Device + */ + deviceId?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$ChromeOsDevice; + } + export interface Params$Resource$Chromeosdevices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Immutable ID of Chrome OS Device + */ + deviceId?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$ChromeOsDevice; + } + + export class Resource$Customers { root: Admin; constructor(root: Admin) { @@ -2971,23 +3306,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Customers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Customers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3023,25 +3368,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Customers$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Customers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3077,26 +3433,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Customers$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Customers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3119,6 +3485,49 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Customers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Id of the customer to be retrieved + */ + customerKey?: string; + } + export interface Params$Resource$Customers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Id of the customer to be updated + */ + customerKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Customer; + } + export interface Params$Resource$Customers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Id of the customer to be updated + */ + customerKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Customer; + } + + export class Resource$Domainaliases { root: Admin; constructor(root: Admin) { @@ -3144,22 +3553,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Domainaliases$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Domainaliases$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Domainaliases$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Domainaliases$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Domainaliases$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domainaliases$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3197,24 +3621,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Domainaliases$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Domainaliases$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Domainaliases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Domainaliases$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Domainaliases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domainaliases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3252,26 +3687,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Domainaliases$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Domainaliases$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Domainaliases$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Domainaliases$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Domainaliases$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domainaliases$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3308,26 +3756,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Domainaliases$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Domainaliases$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Domainaliases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Domainaliases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Domainaliases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domainaliases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3351,47 +3811,122 @@ export namespace admin_directory_v1 { } } - export class Resource$Domains { - root: Admin; - constructor(root: Admin) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Domainaliases$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Name of domain alias to be retrieved. + */ + domainAliasName?: string; + } + export interface Params$Resource$Domainaliases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * directory.domains.delete - * @desc Deletes a domain of the customer. - * @alias directory.domains.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.customer Immutable ID of the G Suite account. - * @param {string} params.domainName Name of domain to be deleted - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * Immutable ID of the G Suite account. */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + customer?: string; + /** + * Name of domain alias to be retrieved. + */ + domainAliasName?: string; + } + export interface Params$Resource$Domainaliases$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainAlias; + } + export interface Params$Resource$Domainaliases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Name of the parent domain for which domain aliases are to be fetched. + */ + parentDomainName?: string; + } + + + export class Resource$Domains { + root: Admin; + constructor(root: Admin) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * directory.domains.delete + * @desc Deletes a domain of the customer. + * @alias directory.domains.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.customer Immutable ID of the G Suite account. + * @param {string} params.domainName Name of domain to be deleted + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete(params?: Params$Resource$Domains$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Domains$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Domains$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Domains$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Domains$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domains$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3429,23 +3964,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Domains$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Domains$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Domains$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Domains$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Domains$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domains$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3483,25 +4028,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Domains$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Domains$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Domains$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Domains$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Domains$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domains$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3536,25 +4092,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Domains$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Domains$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Domains$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Domains$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Domains$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Domains$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3577,6 +4144,64 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Domains$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Name of domain to be deleted + */ + domainName?: string; + } + export interface Params$Resource$Domains$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Name of domain to be retrieved + */ + domainName?: string; + } + export interface Params$Resource$Domains$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$Domains; + } + export interface Params$Resource$Domains$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + } + + export class Resource$Groups { root: Admin; aliases: Resource$Groups$Aliases; @@ -3603,22 +4228,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Groups$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Groups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3653,23 +4291,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Groups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Groups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Groups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Groups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3704,25 +4352,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Groups$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3761,25 +4420,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Groups$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Groups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3815,25 +4485,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Groups$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Groups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3869,25 +4550,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Groups$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3909,6 +4601,99 @@ export namespace admin_directory_v1 { } } } + + export interface Params$Resource$Groups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + } + export interface Params$Resource$Groups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + } + export interface Params$Resource$Groups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Groups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. In case of multi-domain, to fetch + * all groups for a customer, fill this field instead of domain. + */ + customer?: string; + /** + * Name of the domain. Fill this field to get groups from only this domain. + * To return all groups in a multi-domain fill customer field instead. + */ + domain?: string; + /** + * Maximum number of results to return. Default is 200 + */ + maxResults?: number; + /** + * Token to specify next page in the list + */ + pageToken?: string; + /** + * Email or immutable ID of the user if only those groups are to be listed, + * the given user is a member of. If ID, it should match with id of user + * object + */ + userKey?: string; + } + export interface Params$Resource$Groups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group. If ID, it should match with id of + * group object + */ + groupKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export interface Params$Resource$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group. If ID, it should match with id of + * group object + */ + groupKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export class Resource$Groups$Aliases { root: Admin; constructor(root: Admin) { @@ -3934,22 +4719,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Groups$Aliases$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Groups$Aliases$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Aliases$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Groups$Aliases$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groups$Aliases$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Aliases$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3986,25 +4786,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Groups$Aliases$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Groups$Aliases$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Aliases$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groups$Aliases$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groups$Aliases$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Aliases$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4039,25 +4852,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Groups$Aliases$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Groups$Aliases$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Aliases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Aliases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groups$Aliases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Aliases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4080,6 +4905,49 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Groups$Aliases$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The alias to be removed + */ + alias?: string; + /** + * Email or immutable ID of the group + */ + groupKey?: string; + } + export interface Params$Resource$Groups$Aliases$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Alias; + } + export interface Params$Resource$Groups$Aliases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + } + + export class Resource$Members { root: Admin; @@ -4106,22 +4974,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Members$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Members$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Members$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Members$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Members$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4158,23 +5039,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Members$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Members$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Members$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Members$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Members$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4212,26 +5103,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - hasMember(params?: any, options?: MethodOptions): - AxiosPromise; hasMember( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Members$Hasmember, + options?: MethodOptions): AxiosPromise; + hasMember( + params: Params$Resource$Members$Hasmember, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; hasMember( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Members$Hasmember, + callback: BodyResponseCallback): void; + hasMember(callback: BodyResponseCallback): void; + hasMember( + paramsOrCallback?: Params$Resource$Members$Hasmember| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Members$Hasmember; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$Hasmember; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4269,25 +5173,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Members$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Members$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Members$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Members$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Members$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4325,25 +5240,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Members$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Members$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Members$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Members$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Members$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4381,25 +5307,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Members$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Members$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Members$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Members$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Members$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4437,25 +5374,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Members$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Members$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Members$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Members$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Members$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Members$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4479,11 +5427,140 @@ export namespace admin_directory_v1 { } } - export class Resource$Mobiledevices { - root: Admin; - constructor(root: Admin) { - this.root = root; - this.getRoot.bind(this); + export interface Params$Resource$Members$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + /** + * Email or immutable ID of the member + */ + memberKey?: string; + } + export interface Params$Resource$Members$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + /** + * Email or immutable ID of the member + */ + memberKey?: string; + } + export interface Params$Resource$Members$Hasmember { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the group in the API request. The value can be the group's + * email address, group alias, or the unique group ID. + */ + groupKey?: string; + /** + * Identifies the user member in the API request. The value can be the + * user's primary email address, alias, or unique ID. + */ + memberKey?: string; + } + export interface Params$Resource$Members$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Member; + } + export interface Params$Resource$Members$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group + */ + groupKey?: string; + /** + * Maximum number of results to return. Default is 200 + */ + maxResults?: number; + /** + * Token to specify next page in the list + */ + pageToken?: string; + /** + * Comma separated role values to filter list results on. + */ + roles?: string; + } + export interface Params$Resource$Members$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group. If ID, it should match with id of + * group object + */ + groupKey?: string; + /** + * Email or immutable ID of the user. If ID, it should match with id of + * member object + */ + memberKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Member; + } + export interface Params$Resource$Members$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the group. If ID, it should match with id of + * group object + */ + groupKey?: string; + /** + * Email or immutable ID of the user. If ID, it should match with id of + * member object + */ + memberKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Member; + } + + + export class Resource$Mobiledevices { + root: Admin; + constructor(root: Admin) { + this.root = root; + this.getRoot.bind(this); } getRoot() { @@ -4505,22 +5582,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - action(params?: any, options?: MethodOptions): AxiosPromise; action( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mobiledevices$Action, + options?: MethodOptions): AxiosPromise; + action( + params: Params$Resource$Mobiledevices$Action, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; action( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mobiledevices$Action, + callback: BodyResponseCallback): void; + action(callback: BodyResponseCallback): void; + action( + paramsOrCallback?: Params$Resource$Mobiledevices$Action| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobiledevices$Action; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobiledevices$Action; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4558,22 +5650,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mobiledevices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Mobiledevices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mobiledevices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Mobiledevices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobiledevices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobiledevices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4612,24 +5719,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Mobiledevices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Mobiledevices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Mobiledevices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Mobiledevices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobiledevices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobiledevices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4672,26 +5790,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Mobiledevices$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Mobiledevices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Mobiledevices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Mobiledevices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobiledevices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobiledevices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4715,6 +5845,98 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Mobiledevices$Action { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Immutable ID of Mobile Device + */ + resourceId?: string; + /** + * Request body metadata + */ + resource?: Schema$MobileDeviceAction; + } + export interface Params$Resource$Mobiledevices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Immutable ID of Mobile Device + */ + resourceId?: string; + } + export interface Params$Resource$Mobiledevices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Immutable ID of Mobile Device + */ + resourceId?: string; + } + export interface Params$Resource$Mobiledevices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Maximum number of results to return. Default is 100 + */ + maxResults?: number; + /** + * Column to use for sorting results + */ + orderBy?: string; + /** + * Token to specify next page in the list + */ + pageToken?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Search string in the format given at + * http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search + */ + query?: string; + /** + * Whether to return results in ascending or descending order. Only of use + * when orderBy is also used + */ + sortOrder?: string; + } + + export class Resource$Notifications { root: Admin; constructor(root: Admin) { @@ -4740,22 +5962,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Notifications$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Notifications$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Notifications$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Notifications$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4793,24 +6030,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Notifications$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Notifications$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Notifications$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Notifications$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4850,26 +6098,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Notifications$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Notifications$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Notifications$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Notifications$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4907,26 +6167,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Notifications$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Notifications$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Notifications$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Notifications$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4965,26 +6238,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Notifications$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Notifications$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Notifications$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Notifications$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5009,6 +6295,102 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Notifications$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. The customerId is also + * returned as part of the Users resource. + */ + customer?: string; + /** + * The unique ID of the notification. + */ + notificationId?: string; + } + export interface Params$Resource$Notifications$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. The customerId is also + * returned as part of the Users resource. + */ + customer?: string; + /** + * The unique ID of the notification. + */ + notificationId?: string; + } + export interface Params$Resource$Notifications$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. + */ + customer?: string; + /** + * The ISO 639-1 code of the language notifications are returned in. The + * default is English (en). + */ + language?: string; + /** + * Maximum number of notifications to return per page. The default is 100. + */ + maxResults?: number; + /** + * The token to specify the page of results to retrieve. + */ + pageToken?: string; + } + export interface Params$Resource$Notifications$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. + */ + customer?: string; + /** + * The unique ID of the notification. + */ + notificationId?: string; + /** + * Request body metadata + */ + resource?: Schema$Notification; + } + export interface Params$Resource$Notifications$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. + */ + customer?: string; + /** + * The unique ID of the notification. + */ + notificationId?: string; + /** + * Request body metadata + */ + resource?: Schema$Notification; + } + + export class Resource$Orgunits { root: Admin; constructor(root: Admin) { @@ -5034,22 +6416,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Orgunits$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Orgunits$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orgunits$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Orgunits$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orgunits$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orgunits$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5087,23 +6482,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Orgunits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Orgunits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orgunits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orgunits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orgunits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orgunits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5141,25 +6546,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Orgunits$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orgunits$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Orgunits$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Orgunits$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orgunits$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orgunits$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5197,25 +6613,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Orgunits$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Orgunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orgunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Orgunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orgunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orgunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5253,25 +6680,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Orgunits$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orgunits$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Orgunits$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Orgunits$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orgunits$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orgunits$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5310,25 +6748,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Orgunits$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Orgunits$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orgunits$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Orgunits$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orgunits$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orgunits$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5353,12 +6802,116 @@ export namespace admin_directory_v1 { } } - export class Resource$Privileges { - root: Admin; - constructor(root: Admin) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Orgunits$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Full path of the organizational unit or its ID + */ + orgUnitPath?: string; + } + export interface Params$Resource$Orgunits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Full path of the organizational unit or its ID + */ + orgUnitPath?: string; + } + export interface Params$Resource$Orgunits$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrgUnit; + } + export interface Params$Resource$Orgunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * the URL-encoded organizational unit's path or its ID + */ + orgUnitPath?: string; + /** + * Whether to return all sub-organizations or just immediate children + */ + type?: string; + } + export interface Params$Resource$Orgunits$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Full path of the organizational unit or its ID + */ + orgUnitPath?: string; + /** + * Request body metadata + */ + resource?: Schema$OrgUnit; + } + export interface Params$Resource$Orgunits$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Full path of the organizational unit or its ID + */ + orgUnitPath?: string; + /** + * Request body metadata + */ + resource?: Schema$OrgUnit; + } + + + export class Resource$Privileges { + root: Admin; + constructor(root: Admin) { + this.root = root; + this.getRoot.bind(this); + } getRoot() { return this.root; @@ -5377,26 +6930,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Privileges$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Privileges$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Privileges$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Privileges$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Privileges$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Privileges$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5421,6 +6985,19 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Privileges$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + } + + export class Resource$Resolvedappaccesssettings { root: Admin; constructor(root: Admin) { @@ -5444,28 +7021,42 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - GetSettings(params?: any, options?: MethodOptions): - AxiosPromise; GetSettings( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Resolvedappaccesssettings$Getsettings, + options?: MethodOptions): AxiosPromise; + GetSettings( + params: Params$Resource$Resolvedappaccesssettings$Getsettings, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; GetSettings( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resolvedappaccesssettings$Getsettings, + callback: BodyResponseCallback): void; + GetSettings(callback: BodyResponseCallback): + void; + GetSettings( + paramsOrCallback?: + Params$Resource$Resolvedappaccesssettings$Getsettings| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resolvedappaccesssettings$Getsettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resolvedappaccesssettings$Getsettings; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5500,26 +7091,41 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - ListTrustedApps(params?: any, options?: MethodOptions): - AxiosPromise; ListTrustedApps( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resolvedappaccesssettings$Listtrustedapps, + options?: MethodOptions): AxiosPromise; ListTrustedApps( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resolvedappaccesssettings$Listtrustedapps, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + ListTrustedApps( + params: Params$Resource$Resolvedappaccesssettings$Listtrustedapps, + callback: BodyResponseCallback): void; + ListTrustedApps(callback: BodyResponseCallback): void; + ListTrustedApps( + paramsOrCallback?: + Params$Resource$Resolvedappaccesssettings$Listtrustedapps| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resolvedappaccesssettings$Listtrustedapps; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Resolvedappaccesssettings$Listtrustedapps; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5542,6 +7148,20 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Resolvedappaccesssettings$Getsettings { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Resolvedappaccesssettings$Listtrustedapps { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Resources { root: Admin; buildings: Resource$Resources$Buildings; @@ -5559,6 +7179,8 @@ export namespace admin_directory_v1 { return this.root; } } + + export class Resource$Resources$Buildings { root: Admin; constructor(root: Admin) { @@ -5584,22 +7206,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Buildings$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Resources$Buildings$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Buildings$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Resources$Buildings$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resources$Buildings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Buildings$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5637,23 +7274,34 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Resources$Buildings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Resources$Buildings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resources$Buildings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resources$Buildings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Buildings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Buildings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5691,26 +7339,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Buildings$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Resources$Buildings$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Buildings$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Resources$Buildings$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resources$Buildings$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Buildings$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5749,25 +7409,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Buildings$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Resources$Buildings$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Buildings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Resources$Buildings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Buildings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Buildings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5806,25 +7480,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Buildings$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Resources$Buildings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Buildings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Resources$Buildings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Buildings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Buildings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5863,26 +7550,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Buildings$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Resources$Buildings$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Buildings$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Resources$Buildings$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resources$Buildings$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Buildings$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5907,6 +7606,122 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Resources$Buildings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the building to delete. + */ + buildingId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + } + export interface Params$Resource$Resources$Buildings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID of the building to retrieve. + */ + buildingId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + } + export interface Params$Resource$Resources$Buildings$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$Building; + } + export interface Params$Resource$Resources$Buildings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Token to specify the next page in the list. + */ + pageToken?: string; + } + export interface Params$Resource$Resources$Buildings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the building to update. + */ + buildingId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$Building; + } + export interface Params$Resource$Resources$Buildings$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the building to update. + */ + buildingId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$Building; + } + + export class Resource$Resources$Calendars { root: Admin; constructor(root: Admin) { @@ -5932,22 +7747,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Calendars$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Resources$Calendars$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Calendars$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Resources$Calendars$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resources$Calendars$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Calendars$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5985,24 +7815,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Resources$Calendars$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Resources$Calendars$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resources$Calendars$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resources$Calendars$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Calendars$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Calendars$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6040,26 +7881,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Calendars$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Resources$Calendars$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Resources$Calendars$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resources$Calendars$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resources$Calendars$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Calendars$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6100,26 +7954,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Calendars$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Resources$Calendars$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Resources$Calendars$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resources$Calendars$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Calendars$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Calendars$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6161,26 +8028,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Calendars$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Resources$Calendars$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Calendars$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Resources$Calendars$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Calendars$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Calendars$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6221,26 +8101,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Calendars$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Resources$Calendars$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Resources$Calendars$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resources$Calendars$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resources$Calendars$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Calendars$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6265,47 +8158,198 @@ export namespace admin_directory_v1 { } } - export class Resource$Resources$Features { - root: Admin; - constructor(root: Admin) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Resources$Calendars$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The unique ID of the calendar resource to delete. + */ + calendarResourceId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + } + export interface Params$Resource$Resources$Calendars$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * directory.resources.features.delete - * @desc Deletes a feature. - * @alias directory.resources.features.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. - * @param {string} params.featureKey The unique ID of the feature to delete. - * @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 + * The unique ID of the calendar resource to retrieve. */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; + calendarResourceId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + } + export interface Params$Resource$Resources$Calendars$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$CalendarResource; + } + export interface Params$Resource$Resources$Calendars$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Field(s) to sort results by in either ascending or descending order. + * Supported fields include resourceId, resourceName, capacity, buildingId, + * and floorName. If no order is specified, defaults to ascending. Should be + * of the form "field [asc|desc], field [asc|desc], ...". For example + * buildingId, capacity desc would return results sorted first by buildingId + * in ascending order then by capacity in descending order. + */ + orderBy?: string; + /** + * Token to specify the next page in the list. + */ + pageToken?: string; + /** + * String query used to filter results. Should be of the form "field + * operator value" where field can be any of supported fields and operators + * can be any of supported operations. Operators include '=' for exact match + * and ':' for prefix match or HAS match where applicable. For prefix match, + * the value should always be followed by a *. Supported fields include + * generatedResourceName, name, buildingId, featureInstances.feature.name. + * For example buildingId=US-NYC-9TH AND + * featureInstances.feature.name:Phone. + */ + query?: string; + } + export interface Params$Resource$Resources$Calendars$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID of the calendar resource to update. + */ + calendarResourceId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$CalendarResource; + } + export interface Params$Resource$Resources$Calendars$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID of the calendar resource to update. + */ + calendarResourceId?: string; + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$CalendarResource; + } + + + export class Resource$Resources$Features { + root: Admin; + constructor(root: Admin) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * directory.resources.features.delete + * @desc Deletes a feature. + * @alias directory.resources.features.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.customer The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID. + * @param {string} params.featureKey The unique ID of the feature to delete. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Resources$Features$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Resources$Features$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Resources$Features$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Resources$Features$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$Delete; + options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6343,23 +8387,34 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Resources$Features$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Resources$Features$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resources$Features$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resources$Features$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6397,25 +8452,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Features$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Resources$Features$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Resources$Features$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resources$Features$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6454,25 +8522,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Features$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Features$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Resources$Features$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Resources$Features$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6511,25 +8592,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Features$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Resources$Features$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Resources$Features$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resources$Features$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6568,22 +8662,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rename(params?: any, options?: MethodOptions): AxiosPromise; rename( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Features$Rename, + options?: MethodOptions): AxiosPromise; rename( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Resources$Features$Rename, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rename( + params: Params$Resource$Resources$Features$Rename, + callback: BodyResponseCallback): void; + rename(callback: BodyResponseCallback): void; + rename( + paramsOrCallback?: Params$Resource$Resources$Features$Rename| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$Rename; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$Rename; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6622,25 +8731,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resources$Features$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Resources$Features$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Resources$Features$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resources$Features$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resources$Features$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Features$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6665,6 +8787,143 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Resources$Features$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * The unique ID of the feature to delete. + */ + featureKey?: string; + } + export interface Params$Resource$Resources$Features$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * The unique ID of the feature to retrieve. + */ + featureKey?: string; + } + export interface Params$Resource$Resources$Features$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$Feature; + } + export interface Params$Resource$Resources$Features$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Token to specify the next page in the list. + */ + pageToken?: string; + } + export interface Params$Resource$Resources$Features$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * The unique ID of the feature to update. + */ + featureKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Feature; + } + export interface Params$Resource$Resources$Features$Rename { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * The unique ID of the feature to rename. + */ + oldName?: string; + /** + * Request body metadata + */ + resource?: Schema$FeatureRename; + } + export interface Params$Resource$Resources$Features$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the customer's G Suite account. As an account + * administrator, you can also use the my_customer alias to represent your + * account's customer ID. + */ + customer?: string; + /** + * The unique ID of the feature to update. + */ + featureKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Feature; + } + + export class Resource$Roleassignments { root: Admin; @@ -6691,22 +8950,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Roleassignments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Roleassignments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Roleassignments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Roleassignments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Roleassignments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roleassignments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6744,24 +9018,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Roleassignments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Roleassignments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Roleassignments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Roleassignments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Roleassignments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roleassignments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6799,26 +9084,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Roleassignments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Roleassignments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Roleassignments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Roleassignments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Roleassignments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roleassignments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6858,26 +9156,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Roleassignments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Roleassignments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Roleassignments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Roleassignments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Roleassignments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roleassignments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6901,6 +9212,82 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Roleassignments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Immutable ID of the role assignment. + */ + roleAssignmentId?: string; + } + export interface Params$Resource$Roleassignments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Immutable ID of the role assignment. + */ + roleAssignmentId?: string; + } + export interface Params$Resource$Roleassignments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$RoleAssignment; + } + export interface Params$Resource$Roleassignments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Token to specify the next page in the list. + */ + pageToken?: string; + /** + * Immutable ID of a role. If included in the request, returns only role + * assignments containing this role ID. + */ + roleId?: string; + /** + * The user's primary email address, alias email address, or unique user ID. + * If included in the request, returns role assignments only for this user. + */ + userKey?: string; + } + + export class Resource$Roles { root: Admin; constructor(root: Admin) { @@ -6926,22 +9313,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Roles$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Roles$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Roles$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Roles$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6978,21 +9378,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Roles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Roles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Roles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Roles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7029,23 +9441,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Roles$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Roles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Roles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Roles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7082,25 +9507,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Roles$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Roles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Roles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Roles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7137,23 +9573,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Roles$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Roles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Roles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Roles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7191,23 +9640,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Roles$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Roles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Roles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Roles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7231,6 +9693,110 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Roles$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Immutable ID of the role. + */ + roleId?: string; + } + export interface Params$Resource$Roles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Immutable ID of the role. + */ + roleId?: string; + } + export interface Params$Resource$Roles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Request body metadata + */ + resource?: Schema$Role; + } + export interface Params$Resource$Roles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Token to specify the next page in the list. + */ + pageToken?: string; + } + export interface Params$Resource$Roles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Immutable ID of the role. + */ + roleId?: string; + /** + * Request body metadata + */ + resource?: Schema$Role; + } + export interface Params$Resource$Roles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. + */ + customer?: string; + /** + * Immutable ID of the role. + */ + roleId?: string; + /** + * Request body metadata + */ + resource?: Schema$Role; + } + + export class Resource$Schemas { root: Admin; constructor(root: Admin) { @@ -7256,22 +9822,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Schemas$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Schemas$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Schemas$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Schemas$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Schemas$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Schemas$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7309,23 +9888,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Schemas$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Schemas$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Schemas$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Schemas$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Schemas$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Schemas$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7363,25 +9952,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Schemas$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Schemas$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Schemas$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Schemas$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Schemas$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Schemas$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7417,25 +10017,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Schemas$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Schemas$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Schemas$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Schemas$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Schemas$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Schemas$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7473,25 +10084,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Schemas$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Schemas$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Schemas$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Schemas$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Schemas$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Schemas$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7530,25 +10152,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Schemas$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Schemas$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Schemas$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Schemas$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Schemas$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Schemas$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7573,6 +10206,102 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Schemas$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Name or immutable ID of the schema + */ + schemaKey?: string; + } + export interface Params$Resource$Schemas$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Name or immutable ID of the schema + */ + schemaKey?: string; + } + export interface Params$Resource$Schemas$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Schema; + } + export interface Params$Resource$Schemas$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + } + export interface Params$Resource$Schemas$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Name or immutable ID of the schema. + */ + schemaKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Schema; + } + export interface Params$Resource$Schemas$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account + */ + customerId?: string; + /** + * Name or immutable ID of the schema. + */ + schemaKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Schema; + } + + export class Resource$Tokens { root: Admin; constructor(root: Admin) { @@ -7598,22 +10327,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Tokens$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Tokens$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tokens$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tokens$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tokens$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tokens$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7650,23 +10392,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Tokens$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Tokens$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Tokens$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Tokens$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tokens$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tokens$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7703,25 +10455,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Tokens$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tokens$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tokens$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Tokens$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tokens$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tokens$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7744,6 +10507,52 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Tokens$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Client ID of the application the token is issued to. + */ + clientId?: string; + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } + export interface Params$Resource$Tokens$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Client ID of the application the token is issued to. + */ + clientId?: string; + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } + export interface Params$Resource$Tokens$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } + + export class Resource$Users { root: Admin; aliases: Resource$Users$Aliases; @@ -7772,22 +10581,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Users$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7825,21 +10647,33 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7874,23 +10708,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Users$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Users$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7936,25 +10783,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Users$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7990,22 +10848,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - makeAdmin(params?: any, options?: MethodOptions): AxiosPromise; makeAdmin( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Makeadmin, + options?: MethodOptions): AxiosPromise; + makeAdmin( + params: Params$Resource$Users$Makeadmin, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; makeAdmin( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Makeadmin, + callback: BodyResponseCallback): void; + makeAdmin(callback: BodyResponseCallback): void; + makeAdmin( + paramsOrCallback?: Params$Resource$Users$Makeadmin| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Makeadmin; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Makeadmin; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8041,23 +10913,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Users$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8093,22 +10978,35 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): AxiosPromise; + undelete(params?: Params$Resource$Users$Undelete, options?: MethodOptions): + AxiosPromise; + undelete( + params: Params$Resource$Users$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; undelete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8144,23 +11042,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Users$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8207,25 +11118,36 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Users$Watch, options?: MethodOptions): + AxiosPromise; + watch( + params: Params$Resource$Users$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8247,6 +11169,235 @@ export namespace admin_directory_v1 { } } } + + export interface Params$Resource$Users$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Users$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Comma-separated list of schema names. All fields from these schemas are + * fetched. This should only be set when projection=custom. + */ + customFieldMask?: string; + /** + * What subset of fields to fetch for this user. + */ + projection?: string; + /** + * Email or immutable ID of the user + */ + userKey?: string; + /** + * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. + */ + viewType?: string; + } + export interface Params$Resource$Users$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Users$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. In case of multi-domain, to fetch + * all users for a customer, fill this field instead of domain. + */ + customer?: string; + /** + * Comma-separated list of schema names. All fields from these schemas are + * fetched. This should only be set when projection=custom. + */ + customFieldMask?: string; + /** + * Name of the domain. Fill this field to get users from only this domain. + * To return all users in a multi-domain fill customer field instead. + */ + domain?: string; + /** + * Event on which subscription is intended (if subscribing) + */ + event?: string; + /** + * Maximum number of results to return. Default is 100. Max allowed is 500 + */ + maxResults?: number; + /** + * Column to use for sorting results + */ + orderBy?: string; + /** + * Token to specify next page in the list + */ + pageToken?: string; + /** + * What subset of fields to fetch for this user. + */ + projection?: string; + /** + * Query string search. Should be of the form "". Complete documentation is + * at + * https://developers.google.com/admin-sdk/directory/v1/guides/search-users + */ + query?: string; + /** + * If set to true retrieves the list of deleted users. Default is false + */ + showDeleted?: string; + /** + * Whether to return results in ascending or descending order. + */ + sortOrder?: string; + /** + * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. + */ + viewType?: string; + } + export interface Params$Resource$Users$Makeadmin { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user as admin + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$UserMakeAdmin; + } + export interface Params$Resource$Users$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user. If ID, it should match with id of user + * object + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$User; + } + export interface Params$Resource$Users$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The immutable id of the user + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$UserUndelete; + } + export interface Params$Resource$Users$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user. If ID, it should match with id of user + * object + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$User; + } + export interface Params$Resource$Users$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Immutable ID of the G Suite account. In case of multi-domain, to fetch + * all users for a customer, fill this field instead of domain. + */ + customer?: string; + /** + * Comma-separated list of schema names. All fields from these schemas are + * fetched. This should only be set when projection=custom. + */ + customFieldMask?: string; + /** + * Name of the domain. Fill this field to get users from only this domain. + * To return all users in a multi-domain fill customer field instead. + */ + domain?: string; + /** + * Event on which subscription is intended (if subscribing) + */ + event?: string; + /** + * Maximum number of results to return. Default is 100. Max allowed is 500 + */ + maxResults?: number; + /** + * Column to use for sorting results + */ + orderBy?: string; + /** + * Token to specify next page in the list + */ + pageToken?: string; + /** + * What subset of fields to fetch for this user. + */ + projection?: string; + /** + * Query string search. Should be of the form "". Complete documentation is + * at + * https://developers.google.com/admin-sdk/directory/v1/guides/search-users + */ + query?: string; + /** + * If set to true retrieves the list of deleted users. Default is false + */ + showDeleted?: string; + /** + * Whether to return results in ascending or descending order. + */ + sortOrder?: string; + /** + * Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user. + */ + viewType?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + export class Resource$Users$Aliases { root: Admin; constructor(root: Admin) { @@ -8272,22 +11423,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Aliases$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Aliases$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Aliases$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Aliases$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Aliases$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Aliases$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8324,25 +11490,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Aliases$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Users$Aliases$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Users$Aliases$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Aliases$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Aliases$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Aliases$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8378,25 +11557,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Users$Aliases$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Aliases$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Aliases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Aliases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Aliases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Aliases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8433,25 +11624,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Aliases$Watch, + options?: MethodOptions): AxiosPromise; + watch( + params: Params$Resource$Users$Aliases$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Aliases$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Users$Aliases$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Aliases$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Aliases$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8475,6 +11679,72 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Users$Aliases$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The alias to be removed + */ + alias?: string; + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Users$Aliases$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Alias; + } + export interface Params$Resource$Users$Aliases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event on which subscription is intended (if subscribing) + */ + event?: string; + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Users$Aliases$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event on which subscription is intended (if subscribing) + */ + event?: string; + /** + * Email or immutable ID of the user + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Users$Photos { root: Admin; constructor(root: Admin) { @@ -8499,22 +11769,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Photos$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Photos$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Photos$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Photos$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Photos$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Photos$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8550,23 +11835,34 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Photos$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Photos$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Photos$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Photos$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Photos$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Photos$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8603,26 +11899,38 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Users$Photos$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Photos$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Photos$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Photos$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Photos$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Photos$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8659,26 +11967,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Photos$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Photos$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Users$Photos$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Photos$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Photos$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Photos$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8702,6 +12023,60 @@ export namespace admin_directory_v1 { } } + export interface Params$Resource$Users$Photos$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Users$Photos$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Users$Photos$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$UserPhoto; + } + export interface Params$Resource$Users$Photos$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$UserPhoto; + } + + export class Resource$Verificationcodes { root: Admin; @@ -8727,22 +12102,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): AxiosPromise; generate( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Verificationcodes$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Verificationcodes$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; generate( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Verificationcodes$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Verificationcodes$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Verificationcodes$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Verificationcodes$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8779,22 +12169,37 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - invalidate(params?: any, options?: MethodOptions): AxiosPromise; invalidate( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Verificationcodes$Invalidate, + options?: MethodOptions): AxiosPromise; invalidate( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Verificationcodes$Invalidate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + invalidate( + params: Params$Resource$Verificationcodes$Invalidate, + callback: BodyResponseCallback): void; + invalidate(callback: BodyResponseCallback): void; + invalidate( + paramsOrCallback?: Params$Resource$Verificationcodes$Invalidate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Verificationcodes$Invalidate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Verificationcodes$Invalidate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8832,26 +12237,39 @@ export namespace admin_directory_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Verificationcodes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Verificationcodes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Verificationcodes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Verificationcodes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Verificationcodes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Verificationcodes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8874,4 +12292,39 @@ export namespace admin_directory_v1 { } } } + + export interface Params$Resource$Verificationcodes$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Verificationcodes$Invalidate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Email or immutable ID of the user + */ + userKey?: string; + } + export interface Params$Resource$Verificationcodes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the user in the API request. The value can be the user's + * primary email address, alias email address, or unique user ID. + */ + userKey?: string; + } } diff --git a/src/apis/admin/reports_v1.ts b/src/apis/admin/reports_v1.ts index dd9356ad506..b9110f53021 100644 --- a/src/apis/admin/reports_v1.ts +++ b/src/apis/admin/reports_v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace admin_reports_v1 { + export interface Options extends GlobalOptions { version: 'reports_v1'; } + /** * Admin Reports API * @@ -81,19 +84,19 @@ export namespace admin_reports_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Each record in read response. */ - items: Schema$Activity[]; + items?: Schema$Activity[]; /** * Kind of list response this is. */ - kind: string; + kind?: string; /** * Token for retrieving the next page */ - nextPageToken: string; + nextPageToken?: string; } /** * JSON template for the activity resource. @@ -102,31 +105,31 @@ export namespace admin_reports_v1 { /** * User doing the action. */ - actor: any; + actor?: any; /** * ETag of the entry. */ - etag: string; + etag?: string; /** * Activity events. */ - events: any[]; + events?: any[]; /** * Unique identifier for each activity record. */ - id: any; + id?: any; /** * IP Address of the user doing the action. */ - ipAddress: string; + ipAddress?: string; /** * Kind of resource this is. */ - kind: string; + kind?: string; /** * Domain of source customer. */ - ownerDomain: string; + ownerDomain?: string; } /** * An notification channel used to watch for resource changes. @@ -135,47 +138,47 @@ export namespace admin_reports_v1 { /** * The address where notifications are delivered for this channel. */ - address: string; + address?: string; /** * Date and time of notification channel expiration, expressed as a Unix * timestamp, in milliseconds. Optional. */ - expiration: string; + expiration?: string; /** * A UUID or similar unique string that identifies this channel. */ - id: string; + id?: string; /** * Identifies this as a notification channel used to watch for changes to a * resource. Value: the fixed string "api#channel". */ - kind: string; + kind?: string; /** * Additional parameters controlling delivery channel behavior. Optional. */ - params: any; + params?: any; /** * A Boolean value to indicate whether payload is wanted. Optional. */ - payload: boolean; + payload?: boolean; /** * An opaque ID that identifies the resource being watched on this channel. * Stable across different API versions. */ - resourceId: string; + resourceId?: string; /** * A version-specific identifier for the watched resource. */ - resourceUri: string; + resourceUri?: string; /** * An arbitrary string delivered to the target address with each * notification delivered over this channel. Optional. */ - token: string; + token?: string; /** * The type of delivery mechanism used for this channel. */ - type: string; + type?: string; } /** * JSON template for a usage report. @@ -184,23 +187,23 @@ export namespace admin_reports_v1 { /** * The date to which the record belongs. */ - date: string; + date?: string; /** * Information about the type of the item. */ - entity: any; + entity?: any; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The kind of object. */ - kind: string; + kind?: string; /** * Parameter value pairs for various applications. */ - parameters: any[]; + parameters?: any[]; } /** * JSON template for a collection of usage reports. @@ -209,25 +212,26 @@ export namespace admin_reports_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The kind of object. */ - kind: string; + kind?: string; /** * Token for retrieving the next page */ - nextPageToken: string; + nextPageToken?: string; /** * Various application parameter records. */ - usageReports: Schema$UsageReport[]; + usageReports?: Schema$UsageReport[]; /** * Warnings if any. */ - warnings: any[]; + warnings?: any[]; } + export class Resource$Activities { root: Admin; constructor(root: Admin) { @@ -262,26 +266,37 @@ export namespace admin_reports_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Activities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Activities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Activities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -328,25 +343,36 @@ export namespace admin_reports_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Activities$Watch, options?: MethodOptions): + AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Activities$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Activities$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -371,6 +397,114 @@ export namespace admin_reports_v1 { } } + export interface Params$Resource$Activities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * IP Address of host where the event was performed. Supports both IPv4 and + * IPv6 addresses. + */ + actorIpAddress?: string; + /** + * Application name for which the events are to be retrieved. + */ + applicationName?: string; + /** + * Represents the customer for which the data is to be fetched. + */ + customerId?: string; + /** + * Return events which occurred at or before this time. + */ + endTime?: string; + /** + * Name of the event being queried. + */ + eventName?: string; + /** + * Event parameters in the form [parameter1 name][operator][parameter1 + * value],[parameter2 name][operator][parameter2 value],... + */ + filters?: string; + /** + * Number of activity records to be shown in each page. + */ + maxResults?: number; + /** + * Token to specify next page. + */ + pageToken?: string; + /** + * Return events which occurred at or after this time. + */ + startTime?: string; + /** + * Represents the profile id or the user email for which the data should be + * filtered. When 'all' is specified as the userKey, it returns usageReports + * for all users. + */ + userKey?: string; + } + export interface Params$Resource$Activities$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * IP Address of host where the event was performed. Supports both IPv4 and + * IPv6 addresses. + */ + actorIpAddress?: string; + /** + * Application name for which the events are to be retrieved. + */ + applicationName?: string; + /** + * Represents the customer for which the data is to be fetched. + */ + customerId?: string; + /** + * Return events which occurred at or before this time. + */ + endTime?: string; + /** + * Name of the event being queried. + */ + eventName?: string; + /** + * Event parameters in the form [parameter1 name][operator][parameter1 + * value],[parameter2 name][operator][parameter2 value],... + */ + filters?: string; + /** + * Number of activity records to be shown in each page. + */ + maxResults?: number; + /** + * Token to specify next page. + */ + pageToken?: string; + /** + * Return events which occurred at or after this time. + */ + startTime?: string; + /** + * Represents the profile id or the user email for which the data should be + * filtered. When 'all' is specified as the userKey, it returns usageReports + * for all users. + */ + userKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Channels { root: Admin; constructor(root: Admin) { @@ -395,22 +529,35 @@ export namespace admin_reports_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -434,6 +581,14 @@ export namespace admin_reports_v1 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Customerusagereports { root: Admin; constructor(root: Admin) { @@ -462,24 +617,35 @@ export namespace admin_reports_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Customerusagereports$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Customerusagereports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customerusagereports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customerusagereports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customerusagereports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customerusagereports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -502,6 +668,33 @@ export namespace admin_reports_v1 { } } + export interface Params$Resource$Customerusagereports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Represents the customer for which the data is to be fetched. + */ + customerId?: string; + /** + * Represents the date in yyyy-mm-dd format for which the data is to be + * fetched. + */ + date?: string; + /** + * Token to specify next page. + */ + pageToken?: string; + /** + * Represents the application name, parameter name pairs to fetch in csv as + * app_name1:param_name1, app_name2:param_name2. + */ + parameters?: string; + } + + export class Resource$Entityusagereports { root: Admin; constructor(root: Admin) { @@ -534,24 +727,35 @@ export namespace admin_reports_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Entityusagereports$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Entityusagereports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Entityusagereports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Entityusagereports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Entityusagereports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entityusagereports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -576,6 +780,49 @@ export namespace admin_reports_v1 { } } + export interface Params$Resource$Entityusagereports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Represents the customer for which the data is to be fetched. + */ + customerId?: string; + /** + * Represents the date in yyyy-mm-dd format for which the data is to be + * fetched. + */ + date?: string; + /** + * Represents the key of object for which the data should be filtered. + */ + entityKey?: string; + /** + * Type of object. Should be one of - gplus_communities. + */ + entityType?: string; + /** + * Represents the set of filters including parameter operator value. + */ + filters?: string; + /** + * Maximum number of results to return. Maximum allowed is 1000 + */ + maxResults?: number; + /** + * Token to specify next page. + */ + pageToken?: string; + /** + * Represents the application name, parameter name pairs to fetch in csv as + * app_name1:param_name1, app_name2:param_name2. + */ + parameters?: string; + } + + export class Resource$Userusagereport { root: Admin; constructor(root: Admin) { @@ -607,24 +854,35 @@ export namespace admin_reports_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userusagereport$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userusagereport$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userusagereport$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userusagereport$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userusagereport$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userusagereport$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -647,4 +905,43 @@ export namespace admin_reports_v1 { } } } + + export interface Params$Resource$Userusagereport$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Represents the customer for which the data is to be fetched. + */ + customerId?: string; + /** + * Represents the date in yyyy-mm-dd format for which the data is to be + * fetched. + */ + date?: string; + /** + * Represents the set of filters including parameter operator value. + */ + filters?: string; + /** + * Maximum number of results to return. Maximum allowed is 1000 + */ + maxResults?: number; + /** + * Token to specify next page. + */ + pageToken?: string; + /** + * Represents the application name, parameter name pairs to fetch in csv as + * app_name1:param_name1, app_name2:param_name2. + */ + parameters?: string; + /** + * Represents the profile id or the user email for which the data should be + * filtered. + */ + userKey?: string; + } } diff --git a/src/apis/adsense/v1.4.ts b/src/apis/adsense/v1.4.ts index 5cc07665eee..b4920fc05ca 100644 --- a/src/apis/adsense/v1.4.ts +++ b/src/apis/adsense/v1.4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adsense_v1_4 { + export interface Options extends GlobalOptions { version: 'v1_4'; } + /** * AdSense Management API * @@ -85,151 +88,151 @@ export namespace adsense_v1_4 { } export interface Schema$Account { - creation_time: string; + creation_time?: string; /** * Unique identifier of this account. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#account. */ - kind: string; + kind?: string; /** * Name of this account. */ - name: string; + name?: string; /** * Whether this account is premium. */ - premium: boolean; + premium?: boolean; /** * Sub accounts of the this account. */ - subAccounts: Schema$Account[]; + subAccounts?: Schema$Account[]; /** * AdSense timezone of this account. */ - timezone: string; + timezone?: string; } export interface Schema$Accounts { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The accounts returned in this list response. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * Kind of list this is, in this case adsense#accounts. */ - kind: string; + kind?: string; /** * Continuation token used to page through accounts. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AdClient { /** * Whether this ad client is opted in to ARC. */ - arcOptIn: boolean; + arcOptIn?: boolean; /** * Unique identifier of this ad client. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#adClient. */ - kind: string; + kind?: string; /** * This ad client's product code, which corresponds to the PRODUCT_CODE * report dimension. */ - productCode: string; + productCode?: string; /** * Whether this ad client supports being reported on. */ - supportsReporting: boolean; + supportsReporting?: boolean; } export interface Schema$AdClients { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad clients returned in this list response. */ - items: Schema$AdClient[]; + items?: Schema$AdClient[]; /** * Kind of list this is, in this case adsense#adClients. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad clients. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AdCode { /** * The ad code snippet. */ - adCode: string; + adCode?: string; /** * Kind this is, in this case adsense#adCode. */ - kind: string; + kind?: string; } export interface Schema$AdsenseReportsGenerateResponse { /** * The averages of the report. This is the same length as any other row in * the report; cells corresponding to dimension columns are empty. */ - averages: string[]; + averages?: string[]; /** * The requested end date in yyyy-mm-dd format. */ - endDate: string; + endDate?: string; /** * The header information of the columns requested in the report. This is a * list of headers; one for each dimension in the request, followed by one * for each metric in the request. */ - headers: any[]; + headers?: any[]; /** * Kind this is, in this case adsense#report. */ - kind: string; + kind?: string; /** * The output rows of the report. Each row is a list of cells; one for each * dimension in the request, followed by one for each metric in the request. * The dimension cells contain strings, and the metric cells contain * numbers. */ - rows: string[][]; + rows?: string[][]; /** * The requested start date in yyyy-mm-dd format. */ - startDate: string; + startDate?: string; /** * The total number of rows matched by the report request. Fewer rows may be * returned in the response due to being limited by the row count requested * or the report row limit. */ - totalMatchedRows: string; + totalMatchedRows?: string; /** * The totals of the report. This is the same length as any other row in the * report; cells corresponding to dimension columns are empty. */ - totals: string[]; + totals?: string[]; /** * Any warnings associated with generation of the report. */ - warnings: string[]; + warnings?: string[]; } export interface Schema$AdStyle { /** @@ -237,61 +240,61 @@ export namespace adsense_v1_4 { * hexadecimal characters, similar to HTML color codes, but without the * leading hash. */ - colors: any; + colors?: any; /** * The style of the corners in the ad (deprecated: never populated, * ignored). */ - corners: string; + corners?: string; /** * The font which is included in the style. */ - font: any; + font?: any; /** * Kind this is, in this case adsense#adStyle. */ - kind: string; + kind?: string; } export interface Schema$AdUnit { /** * Identity code of this ad unit, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Settings specific to content ads (AFC) and highend mobile content ads * (AFMC - deprecated). */ - contentAdsSettings: any; + contentAdsSettings?: any; /** * Custom style information specific to this ad unit. */ - customStyle: Schema$AdStyle; + customStyle?: Schema$AdStyle; /** * Settings specific to feed ads (AFF) - deprecated. */ - feedAdsSettings: any; + feedAdsSettings?: any; /** * Unique identifier of this ad unit. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#adUnit. */ - kind: string; + kind?: string; /** * Settings specific to WAP mobile content ads (AFMC) - deprecated. */ - mobileContentAdsSettings: any; + mobileContentAdsSettings?: any; /** * Name of this ad unit. */ - name: string; + name?: string; /** * ID of the saved ad style which holds this ad unit's style * information. */ - savedStyleId: string; + savedStyleId?: string; /** * Status of this ad unit. Possible values are: NEW: Indicates that the ad * unit was created within the last seven days and does not yet have any @@ -299,151 +302,151 @@ export namespace adsense_v1_4 { * activity on this ad unit in the last seven days. INACTIVE: Indicates * that there has been no activity on this ad unit in the last seven days. */ - status: string; + status?: string; } export interface Schema$AdUnits { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad units returned in this list response. */ - items: Schema$AdUnit[]; + items?: Schema$AdUnit[]; /** * Kind of list this is, in this case adsense#adUnits. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad units. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Alert { /** * Unique identifier of this alert. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Whether this alert can be dismissed. */ - isDismissible: boolean; + isDismissible?: boolean; /** * Kind of resource this is, in this case adsense#alert. */ - kind: string; + kind?: string; /** * The localized alert message. */ - message: string; + message?: string; /** * Severity of this alert. Possible values: INFO, WARNING, SEVERE. */ - severity: string; + severity?: string; /** * Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, * ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, * GRAYLISTED_PUBLISHER, API_HOLD. */ - type: string; + type?: string; } export interface Schema$Alerts { /** * The alerts returned in this list response. */ - items: Schema$Alert[]; + items?: Schema$Alert[]; /** * Kind of list this is, in this case adsense#alerts. */ - kind: string; + kind?: string; } export interface Schema$CustomChannel { /** * Code of this custom channel, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this custom channel. This should be considered an * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#customChannel. */ - kind: string; + kind?: string; /** * Name of this custom channel. */ - name: string; + name?: string; /** * The targeting information of this custom channel, if activated. */ - targetingInfo: any; + targetingInfo?: any; } export interface Schema$CustomChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The custom channels returned in this list response. */ - items: Schema$CustomChannel[]; + items?: Schema$CustomChannel[]; /** * Kind of list this is, in this case adsense#customChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through custom channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Metadata { - items: Schema$ReportingMetadataEntry[]; + items?: Schema$ReportingMetadataEntry[]; /** * Kind of list this is, in this case adsense#metadata. */ - kind: string; + kind?: string; } export interface Schema$Payment { /** * Unique identifier of this Payment. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#payment. */ - kind: string; + kind?: string; /** * The amount to be paid. */ - paymentAmount: string; + paymentAmount?: string; /** * The currency code for the amount to be paid. */ - paymentAmountCurrencyCode: string; + paymentAmountCurrencyCode?: string; /** * The date this payment was/will be credited to the user, or none if the * payment threshold has not been met. */ - paymentDate: string; + paymentDate?: string; } export interface Schema$Payments { /** * The list of Payments for the account. One or both of a) the account's * most recent payment; and b) the account's upcoming payment. */ - items: Schema$Payment[]; + items?: Schema$Payment[]; /** * Kind of list this is, in this case adsense#payments. */ - kind: string; + kind?: string; } export interface Schema$ReportingMetadataEntry { /** @@ -451,114 +454,114 @@ export namespace adsense_v1_4 { * compatible with, for dimensions it is a list of compatibility groups the * dimension belongs to. */ - compatibleDimensions: string[]; + compatibleDimensions?: string[]; /** * The names of the metrics the dimension or metric this reporting metadata * entry describes is compatible with. */ - compatibleMetrics: string[]; + compatibleMetrics?: string[]; /** * Unique identifier of this reporting metadata entry, corresponding to the * name of the appropriate dimension or metric. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#reportingMetadataEntry. */ - kind: string; + kind?: string; /** * The names of the dimensions which the dimension or metric this reporting * metadata entry describes requires to also be present in order for the * report to be valid. Omitting these will not cause an error or warning, * but may result in data which cannot be correctly interpreted. */ - requiredDimensions: string[]; + requiredDimensions?: string[]; /** * The names of the metrics which the dimension or metric this reporting * metadata entry describes requires to also be present in order for the * report to be valid. Omitting these will not cause an error or warning, * but may result in data which cannot be correctly interpreted. */ - requiredMetrics: string[]; + requiredMetrics?: string[]; /** * The codes of the projects supported by the dimension or metric this * reporting metadata entry describes. */ - supportedProducts: string[]; + supportedProducts?: string[]; } export interface Schema$SavedAdStyle { /** * The AdStyle itself. */ - adStyle: Schema$AdStyle; + adStyle?: Schema$AdStyle; /** * Unique identifier of this saved ad style. This should be considered an * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#savedAdStyle. */ - kind: string; + kind?: string; /** * The user selected name of this SavedAdStyle. */ - name: string; + name?: string; } export interface Schema$SavedAdStyles { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The saved ad styles returned in this list response. */ - items: Schema$SavedAdStyle[]; + items?: Schema$SavedAdStyle[]; /** * Kind of list this is, in this case adsense#savedAdStyles. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad units. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$SavedReport { /** * Unique identifier of this saved report. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#savedReport. */ - kind: string; + kind?: string; /** * This saved report's name. */ - name: string; + name?: string; } export interface Schema$SavedReports { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The saved reports returned in this list response. */ - items: Schema$SavedReport[]; + items?: Schema$SavedReport[]; /** * Kind of list this is, in this case adsense#savedReports. */ - kind: string; + kind?: string; /** * Continuation token used to page through saved reports. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$UrlChannel { /** @@ -566,38 +569,39 @@ export namespace adsense_v1_4 { * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsense#urlChannel. */ - kind: string; + kind?: string; /** * URL Pattern of this URL channel. Does not include "http://" or * "https://". Example: www.example.com/home */ - urlPattern: string; + urlPattern?: string; } export interface Schema$UrlChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The URL channels returned in this list response. */ - items: Schema$UrlChannel[]; + items?: Schema$UrlChannel[]; /** * Kind of list this is, in this case adsense#urlChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through URL channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Accounts { root: Adsense; adclients: Resource$Accounts$Adclients; @@ -639,23 +643,33 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -691,25 +705,36 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -731,6 +756,41 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to get information about. + */ + accountId?: string; + /** + * Whether the tree of sub accounts should be returned. + */ + tree?: boolean; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of accounts to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through accounts. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export class Resource$Accounts$Adclients { root: Adsense; constructor(root: Adsense) { @@ -757,25 +817,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adclients$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -798,6 +872,30 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account for which to list ad clients. + */ + accountId?: string; + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Adunits { root: Adsense; customchannels: Resource$Accounts$Adunits$Customchannels; @@ -827,23 +925,34 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Adunits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Adunits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Adunits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Adunits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -882,26 +991,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAdCode(params?: any, options?: MethodOptions): - AxiosPromise; getAdCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Getadcode, + options?: MethodOptions): AxiosPromise; + getAdCode( + params: Params$Resource$Accounts$Adunits$Getadcode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getAdCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$Getadcode, + callback: BodyResponseCallback): void; + getAdCode(callback: BodyResponseCallback): void; + getAdCode( + paramsOrCallback?: Params$Resource$Accounts$Adunits$Getadcode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Adunits$Getadcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Getadcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -943,25 +1064,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -985,6 +1119,76 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Accounts$Adunits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client for which to get the ad unit. + */ + adClientId?: string; + /** + * Ad unit to retrieve. + */ + adUnitId?: string; + } + export interface Params$Resource$Accounts$Adunits$Getadcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad client. + */ + accountId?: string; + /** + * Ad client with contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit to get the code for. + */ + adUnitId?: string; + } + export interface Params$Resource$Accounts$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client for which to list ad units. + */ + adClientId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export class Resource$Accounts$Adunits$Customchannels { root: Adsense; constructor(root: Adsense) { @@ -1013,26 +1217,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Customchannels$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Adunits$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Adunits$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Adunits$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1057,6 +1274,38 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Adunits$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client which contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit for which to list custom channels. + */ + adUnitId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Alerts { root: Adsense; @@ -1084,22 +1333,37 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Alerts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Alerts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Alerts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Alerts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Alerts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Alerts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1136,25 +1400,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Alerts$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Alerts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Alerts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Alerts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Alerts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Alerts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1177,6 +1454,40 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Alerts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad unit. + */ + accountId?: string; + /** + * Alert to delete. + */ + alertId?: string; + } + export interface Params$Resource$Accounts$Alerts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account for which to retrieve the alerts. + */ + accountId?: string; + /** + * The locale to use for translating alert messages. The account locale will + * be used if this is not supplied. The AdSense default (English) will be + * used if the supplied locale is invalid or unsupported. + */ + locale?: string; + } + + export class Resource$Accounts$Customchannels { root: Adsense; adunits: Resource$Accounts$Customchannels$Adunits; @@ -1206,24 +1517,35 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Customchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Customchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Customchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Customchannels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Customchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Customchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1264,26 +1586,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Customchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1307,6 +1642,53 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Accounts$Customchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel to retrieve. + */ + customChannelId?: string; + } + export interface Params$Resource$Accounts$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client for which to list custom channels. + */ + adClientId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + export class Resource$Accounts$Customchannels$Adunits { root: Adsense; constructor(root: Adsense) { @@ -1336,25 +1718,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Customchannels$Adunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Customchannels$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Customchannels$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Customchannels$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Customchannels$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Customchannels$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1379,6 +1774,42 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Customchannels$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel for which to list ad units. + */ + customChannelId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Payments { root: Adsense; @@ -1404,25 +1835,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Payments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Payments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Payments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Payments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Payments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Payments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1445,6 +1889,19 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Payments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account for which to retrieve the payments. + */ + accountId?: string; + } + + export class Resource$Accounts$Reports { root: Adsense; saved: Resource$Accounts$Reports$Saved; @@ -1484,29 +1941,45 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): + generate( + params?: Params$Resource$Accounts$Reports$Generate, + options?: MethodOptions): AxiosPromise; generate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Reports$Generate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generate( + params: Params$Resource$Accounts$Reports$Generate, + callback: BodyResponseCallback): + void; + generate(callback: + BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1530,28 +2003,90 @@ export namespace adsense_v1_4 { } } } - export class Resource$Accounts$Reports$Saved { - root: Adsense; - constructor(root: Adsense) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Accounts$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * adsense.accounts.reports.saved.generate - * @desc Generate an AdSense report based on the saved report ID sent in the - * query parameters. - * @alias adsense.accounts.reports.saved.generate - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.accountId Account to which the saved reports belong. - * @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified. + * Account upon which to report. + */ + accountId?: string; + /** + * Optional currency to use when reporting on monetary metrics. Defaults to + * the account's currency if not set. + */ + currency?: string; + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + /** + * Whether the report should be generated in the AdSense account's local + * timezone. If false default PST/PDT timezone will be used. + */ + useTimezoneReporting?: boolean; + } + + export class Resource$Accounts$Reports$Saved { + root: Adsense; + constructor(root: Adsense) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * adsense.accounts.reports.saved.generate + * @desc Generate an AdSense report based on the saved report ID sent in the + * query parameters. + * @alias adsense.accounts.reports.saved.generate + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.accountId Account to which the saved reports belong. + * @param {string=} params.locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified. * @param {integer=} params.maxResults The maximum number of rows of report data to return. * @param {string} params.savedReportId The saved report to retrieve. * @param {integer=} params.startIndex Index of the first row of report data to return. @@ -1559,29 +2094,45 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): + generate( + params?: Params$Resource$Accounts$Reports$Saved$Generate, + options?: MethodOptions): AxiosPromise; generate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Reports$Saved$Generate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generate( + params: Params$Resource$Accounts$Reports$Saved$Generate, + callback: BodyResponseCallback): + void; + generate(callback: + BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Reports$Saved$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Reports$Saved$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Saved$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1622,26 +2173,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Reports$Saved$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Reports$Saved$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Reports$Saved$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Reports$Saved$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Reports$Saved$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Saved$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1665,6 +2229,58 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Reports$Saved$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the saved reports belong. + */ + accountId?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * The saved report to retrieve. + */ + savedReportId?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export interface Params$Resource$Accounts$Reports$Saved$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the saved reports belong. + */ + accountId?: string; + /** + * The maximum number of saved reports to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved reports. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Savedadstyles { root: Adsense; @@ -1691,24 +2307,35 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Savedadstyles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Savedadstyles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Savedadstyles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Savedadstyles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Savedadstyles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Savedadstyles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1747,26 +2374,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Savedadstyles$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Savedadstyles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Savedadstyles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Savedadstyles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Savedadstyles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Savedadstyles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1790,6 +2430,45 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Savedadstyles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account for which to get the saved ad style. + */ + accountId?: string; + /** + * Saved ad style to retrieve. + */ + savedAdStyleId?: string; + } + export interface Params$Resource$Accounts$Savedadstyles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account for which to list saved ad styles. + */ + accountId?: string; + /** + * The maximum number of saved ad styles to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved ad styles. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Urlchannels { root: Adsense; constructor(root: Adsense) { @@ -1818,26 +2497,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Urlchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Urlchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Urlchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Urlchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Urlchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Urlchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1862,6 +2554,34 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Accounts$Urlchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to which the ad client belongs. + */ + accountId?: string; + /** + * Ad client for which to list URL channels. + */ + adClientId?: string; + /** + * The maximum number of URL channels to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through URL channels. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Adclients { root: Adsense; @@ -1888,25 +2608,37 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adclients$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1929,6 +2661,26 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Adunits { root: Adsense; customchannels: Resource$Adunits$Customchannels; @@ -1956,23 +2708,33 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Adunits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Adunits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Adunits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Adunits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adunits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2009,26 +2771,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAdCode(params?: any, options?: MethodOptions): - AxiosPromise; getAdCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Adunits$Getadcode, + options?: MethodOptions): AxiosPromise; + getAdCode( + params: Params$Resource$Adunits$Getadcode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getAdCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Adunits$Getadcode, + callback: BodyResponseCallback): void; + getAdCode(callback: BodyResponseCallback): void; + getAdCode( + paramsOrCallback?: Params$Resource$Adunits$Getadcode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Adunits$Getadcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Getadcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2069,25 +2843,36 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adunits$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2109,6 +2894,64 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Adunits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to get the ad unit. + */ + adClientId?: string; + /** + * Ad unit to retrieve. + */ + adUnitId?: string; + } + export interface Params$Resource$Adunits$Getadcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client with contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit to get the code for. + */ + adUnitId?: string; + } + export interface Params$Resource$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list ad units. + */ + adClientId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export class Resource$Adunits$Customchannels { root: Adsense; constructor(root: Adsense) { @@ -2136,26 +2979,39 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Adunits$Customchannels$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Adunits$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Adunits$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Adunits$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Adunits$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adunits$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2180,6 +3036,34 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Adunits$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit for which to list custom channels. + */ + adUnitId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Alerts { root: Adsense; @@ -2206,22 +3090,35 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Alerts$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Alerts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Alerts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Alerts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Alerts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Alerts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2256,25 +3153,36 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Alerts$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Alerts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Alerts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Alerts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Alerts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Alerts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2297,6 +3205,32 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Alerts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Alert to delete. + */ + alertId?: string; + } + export interface Params$Resource$Alerts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The locale to use for translating alert messages. The account locale will + * be used if this is not supplied. The AdSense default (English) will be + * used if the supplied locale is invalid or unsupported. + */ + locale?: string; + } + + export class Resource$Customchannels { root: Adsense; adunits: Resource$Customchannels$Adunits; @@ -2324,24 +3258,35 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Customchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Customchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customchannels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2381,26 +3326,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Customchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2423,6 +3380,45 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Customchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel to retrieve. + */ + customChannelId?: string; + } + export interface Params$Resource$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list custom channels. + */ + adClientId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + export class Resource$Customchannels$Adunits { root: Adsense; constructor(root: Adsense) { @@ -2451,25 +3447,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Adunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Customchannels$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customchannels$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Customchannels$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customchannels$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2494,6 +3503,38 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Customchannels$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client which contains the custom channel. + */ + adClientId?: string; + /** + * Custom channel for which to list ad units. + */ + customChannelId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Metadata { root: Adsense; @@ -2510,6 +3551,8 @@ export namespace adsense_v1_4 { return this.root; } } + + export class Resource$Metadata$Dimensions { root: Adsense; constructor(root: Adsense) { @@ -2534,25 +3577,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Metadata$Dimensions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Metadata$Dimensions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Metadata$Dimensions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Metadata$Dimensions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Metadata$Dimensions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metadata$Dimensions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2575,6 +3631,14 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Metadata$Dimensions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Metadata$Metrics { root: Adsense; constructor(root: Adsense) { @@ -2599,25 +3663,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Metadata$Metrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Metadata$Metrics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Metadata$Metrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Metadata$Metrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Metadata$Metrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metadata$Metrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2640,6 +3717,14 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Metadata$Metrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Payments { root: Adsense; @@ -2664,25 +3749,36 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Payments$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Payments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Payments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Payments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Payments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Payments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2705,6 +3801,14 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Payments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Reports { root: Adsense; saved: Resource$Reports$Saved; @@ -2744,29 +3848,43 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): + generate( + params?: Params$Resource$Reports$Generate, options?: MethodOptions): AxiosPromise; generate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Reports$Generate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Reports$Generate, + callback: BodyResponseCallback): + void; + generate(callback: + BodyResponseCallback): + void; + generate( + paramsOrCallback?: Params$Resource$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2790,6 +3908,68 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Accounts upon which to report. + */ + accountId?: string; + /** + * Optional currency to use when reporting on monetary metrics. Defaults to + * the account's currency if not set. + */ + currency?: string; + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + /** + * Whether the report should be generated in the AdSense account's local + * timezone. If false default PST/PDT timezone will be used. + */ + useTimezoneReporting?: boolean; + } + export class Resource$Reports$Saved { root: Adsense; constructor(root: Adsense) { @@ -2818,29 +3998,45 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): + generate( + params?: Params$Resource$Reports$Saved$Generate, + options?: MethodOptions): AxiosPromise; generate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Reports$Saved$Generate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generate( + params: Params$Resource$Reports$Saved$Generate, + callback: BodyResponseCallback): + void; + generate(callback: + BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Reports$Saved$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Saved$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Saved$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2878,26 +4074,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reports$Saved$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Saved$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Saved$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Reports$Saved$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Saved$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Saved$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2920,6 +4128,50 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Reports$Saved$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * The saved report to retrieve. + */ + savedReportId?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + export interface Params$Resource$Reports$Saved$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of saved reports to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved reports. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Savedadstyles { root: Adsense; @@ -2945,24 +4197,35 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Savedadstyles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Savedadstyles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Savedadstyles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Savedadstyles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Savedadstyles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Savedadstyles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2998,26 +4261,38 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Savedadstyles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Savedadstyles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Savedadstyles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Savedadstyles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Savedadstyles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Savedadstyles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3040,6 +4315,37 @@ export namespace adsense_v1_4 { } } + export interface Params$Resource$Savedadstyles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Saved ad style to retrieve. + */ + savedAdStyleId?: string; + } + export interface Params$Resource$Savedadstyles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of saved ad styles to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through saved ad styles. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + + export class Resource$Urlchannels { root: Adsense; constructor(root: Adsense) { @@ -3067,26 +4373,37 @@ export namespace adsense_v1_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Urlchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3109,4 +4426,27 @@ export namespace adsense_v1_4 { } } } + + export interface Params$Resource$Urlchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list URL channels. + */ + adClientId?: string; + /** + * The maximum number of URL channels to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through URL channels. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } } diff --git a/src/apis/adsensehost/v4.1.ts b/src/apis/adsensehost/v4.1.ts index d6db2468a72..26c2949edb1 100644 --- a/src/apis/adsensehost/v4.1.ts +++ b/src/apis/adsensehost/v4.1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace adsensehost_v4_1 { + export interface Options extends GlobalOptions { version: 'v4_1'; } + /** * AdSense Host API * @@ -80,86 +83,86 @@ export namespace adsensehost_v4_1 { /** * Unique identifier of this account. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsensehost#account. */ - kind: string; + kind?: string; /** * Name of this account. */ - name: string; + name?: string; /** * Approval status of this account. One of: PENDING, APPROVED, DISABLED. */ - status: string; + status?: string; } export interface Schema$Accounts { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The accounts returned in this list response. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * Kind of list this is, in this case adsensehost#accounts. */ - kind: string; + kind?: string; } export interface Schema$AdClient { /** * Whether this ad client is opted in to ARC. */ - arcOptIn: boolean; + arcOptIn?: boolean; /** * Unique identifier of this ad client. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsensehost#adClient. */ - kind: string; + kind?: string; /** * This ad client's product code, which corresponds to the PRODUCT_CODE * report dimension. */ - productCode: string; + productCode?: string; /** * Whether this ad client supports being reported on. */ - supportsReporting: boolean; + supportsReporting?: boolean; } export interface Schema$AdClients { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad clients returned in this list response. */ - items: Schema$AdClient[]; + items?: Schema$AdClient[]; /** * Kind of list this is, in this case adsensehost#adClients. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad clients. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AdCode { /** * The ad code snippet. */ - adCode: string; + adCode?: string; /** * Kind this is, in this case adsensehost#adCode. */ - kind: string; + kind?: string; } export interface Schema$AdStyle { /** @@ -167,52 +170,52 @@ export namespace adsensehost_v4_1 { * hexadecimal characters, similar to HTML color codes, but without the * leading hash. */ - colors: any; + colors?: any; /** * The style of the corners in the ad (deprecated: never populated, * ignored). */ - corners: string; + corners?: string; /** * The font which is included in the style. */ - font: any; + font?: any; /** * Kind this is, in this case adsensehost#adStyle. */ - kind: string; + kind?: string; } export interface Schema$AdUnit { /** * Identity code of this ad unit, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Settings specific to content ads (AFC) and highend mobile content ads * (AFMC - deprecated). */ - contentAdsSettings: any; + contentAdsSettings?: any; /** * Custom style information specific to this ad unit. */ - customStyle: Schema$AdStyle; + customStyle?: Schema$AdStyle; /** * Unique identifier of this ad unit. This should be considered an opaque * identifier; it is not safe to rely on it being in any particular format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsensehost#adUnit. */ - kind: string; + kind?: string; /** * Settings specific to WAP mobile content ads (AFMC - deprecated). */ - mobileContentAdsSettings: any; + mobileContentAdsSettings?: any; /** * Name of this ad unit. */ - name: string; + name?: string; /** * Status of this ad unit. Possible values are: NEW: Indicates that the ad * unit was created within the last seven days and does not yet have any @@ -220,149 +223,149 @@ export namespace adsensehost_v4_1 { * activity on this ad unit in the last seven days. INACTIVE: Indicates * that there has been no activity on this ad unit in the last seven days. */ - status: string; + status?: string; } export interface Schema$AdUnits { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ad units returned in this list response. */ - items: Schema$AdUnit[]; + items?: Schema$AdUnit[]; /** * Kind of list this is, in this case adsensehost#adUnits. */ - kind: string; + kind?: string; /** * Continuation token used to page through ad units. To retrieve the next * page of results, set the next request's "pageToken" value * to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$AssociationSession { /** * Hosted account id of the associated publisher after association. Present * if status is ACCEPTED. */ - accountId: string; + accountId?: string; /** * Unique identifier of this association session. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsensehost#associationSession. */ - kind: string; + kind?: string; /** * The products to associate with the user. Options: AFC, AFG, AFV, AFS * (deprecated), AFMC (deprecated) */ - productCodes: string[]; + productCodes?: string[]; /** * Redirect URL of this association session. Used to redirect users into the * AdSense association flow. */ - redirectUrl: string; + redirectUrl?: string; /** * Status of the completed association, available once the association * callback token has been verified. One of ACCEPTED, REJECTED, or ERROR. */ - status: string; + status?: string; /** * The preferred locale of the user themselves when going through the * AdSense association flow. */ - userLocale: string; + userLocale?: string; /** * The locale of the user's hosted website. */ - websiteLocale: string; + websiteLocale?: string; /** * The URL of the user's hosted website. */ - websiteUrl: string; + websiteUrl?: string; } export interface Schema$CustomChannel { /** * Code of this custom channel, not necessarily unique across ad clients. */ - code: string; + code?: string; /** * Unique identifier of this custom channel. This should be considered an * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsensehost#customChannel. */ - kind: string; + kind?: string; /** * Name of this custom channel. */ - name: string; + name?: string; } export interface Schema$CustomChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The custom channels returned in this list response. */ - items: Schema$CustomChannel[]; + items?: Schema$CustomChannel[]; /** * Kind of list this is, in this case adsensehost#customChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through custom channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Report { /** * The averages of the report. This is the same length as any other row in * the report; cells corresponding to dimension columns are empty. */ - averages: string[]; + averages?: string[]; /** * The header information of the columns requested in the report. This is a * list of headers; one for each dimension in the request, followed by one * for each metric in the request. */ - headers: any[]; + headers?: any[]; /** * Kind this is, in this case adsensehost#report. */ - kind: string; + kind?: string; /** * The output rows of the report. Each row is a list of cells; one for each * dimension in the request, followed by one for each metric in the request. * The dimension cells contain strings, and the metric cells contain * numbers. */ - rows: string[][]; + rows?: string[][]; /** * The total number of rows matched by the report request. Fewer rows may be * returned in the response due to being limited by the row count requested * or the report row limit. */ - totalMatchedRows: string; + totalMatchedRows?: string; /** * The totals of the report. This is the same length as any other row in the * report; cells corresponding to dimension columns are empty. */ - totals: string[]; + totals?: string[]; /** * Any warnings associated with generation of the report. */ - warnings: string[]; + warnings?: string[]; } export interface Schema$UrlChannel { /** @@ -370,38 +373,39 @@ export namespace adsensehost_v4_1 { * opaque identifier; it is not safe to rely on it being in any particular * format. */ - id: string; + id?: string; /** * Kind of resource this is, in this case adsensehost#urlChannel. */ - kind: string; + kind?: string; /** * URL Pattern of this URL channel. Does not include "http://" or * "https://". Example: www.example.com/home */ - urlPattern: string; + urlPattern?: string; } export interface Schema$UrlChannels { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The URL channels returned in this list response. */ - items: Schema$UrlChannel[]; + items?: Schema$UrlChannel[]; /** * Kind of list this is, in this case adsensehost#urlChannels. */ - kind: string; + kind?: string; /** * Continuation token used to page through URL channels. To retrieve the * next page of results, set the next request's "pageToken" * value to this. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Accounts { root: Adsensehost; adclients: Resource$Accounts$Adclients; @@ -432,23 +436,33 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -484,25 +498,36 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -524,6 +549,30 @@ export namespace adsensehost_v4_1 { } } } + + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account to get information about. + */ + accountId?: string; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad clients to list accounts for. + */ + filterAdClientId?: string; + } + export class Resource$Accounts$Adclients { root: Adsensehost; constructor(root: Adsensehost) { @@ -550,23 +599,34 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Adclients$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Adclients$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Adclients$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Adclients$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adclients$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adclients$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -605,25 +665,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adclients$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -647,6 +721,45 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Accounts$Adclients$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad client. + */ + accountId?: string; + /** + * Ad client to get. + */ + adClientId?: string; + } + export interface Params$Resource$Accounts$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account for which to list ad clients. + */ + accountId?: string; + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Accounts$Adunits { root: Adsensehost; constructor(root: Adsensehost) { @@ -674,25 +787,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Adunits$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Adunits$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -731,23 +857,34 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Adunits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Adunits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Adunits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Adunits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -788,26 +925,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAdCode(params?: any, options?: MethodOptions): - AxiosPromise; getAdCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Getadcode, + options?: MethodOptions): AxiosPromise; getAdCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$Getadcode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getAdCode( + params: Params$Resource$Accounts$Adunits$Getadcode, + callback: BodyResponseCallback): void; + getAdCode(callback: BodyResponseCallback): void; + getAdCode( + paramsOrCallback?: Params$Resource$Accounts$Adunits$Getadcode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Adunits$Getadcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Getadcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -847,25 +996,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Accounts$Adunits$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Accounts$Adunits$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -906,25 +1068,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Adunits$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Adunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -965,25 +1140,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Accounts$Adunits$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Accounts$Adunits$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Adunits$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1023,25 +1211,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Adunits$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Adunits$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Adunits$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Adunits$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Adunits$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Adunits$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1066,6 +1267,160 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Accounts$Adunits$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad unit. + */ + accountId?: string; + /** + * Ad client for which to get ad unit. + */ + adClientId?: string; + /** + * Ad unit to delete. + */ + adUnitId?: string; + } + export interface Params$Resource$Accounts$Adunits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad unit. + */ + accountId?: string; + /** + * Ad client for which to get ad unit. + */ + adClientId?: string; + /** + * Ad unit to get. + */ + adUnitId?: string; + } + export interface Params$Resource$Accounts$Adunits$Getadcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad client. + */ + accountId?: string; + /** + * Ad client with contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit to get the code for. + */ + adUnitId?: string; + /** + * Host custom channel to attach to the ad code. + */ + hostCustomChannelId?: string; + } + export interface Params$Resource$Accounts$Adunits$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which will contain the ad unit. + */ + accountId?: string; + /** + * Ad client into which to insert the ad unit. + */ + adClientId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdUnit; + } + export interface Params$Resource$Accounts$Adunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad client. + */ + accountId?: string; + /** + * Ad client for which to list ad units. + */ + adClientId?: string; + /** + * Whether to include inactive ad units. Default: true. + */ + includeInactive?: boolean; + /** + * The maximum number of ad units to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad units. To retrieve the next + * page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + export interface Params$Resource$Accounts$Adunits$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad client. + */ + accountId?: string; + /** + * Ad client which contains the ad unit. + */ + adClientId?: string; + /** + * Ad unit to get. + */ + adUnitId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdUnit; + } + export interface Params$Resource$Accounts$Adunits$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account which contains the ad client. + */ + accountId?: string; + /** + * Ad client which contains the ad unit. + */ + adClientId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdUnit; + } + + export class Resource$Accounts$Reports { root: Adsensehost; constructor(root: Adsensehost) { @@ -1101,26 +1456,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Reports$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Accounts$Reports$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Reports$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Accounts$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1143,6 +1510,58 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Accounts$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Hosted account upon which to report. + */ + accountId?: string; + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + + export class Resource$Adclients { root: Adsensehost; @@ -1169,23 +1588,33 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Adclients$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Adclients$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Adclients$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Adclients$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adclients$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adclients$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1221,25 +1650,37 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Adclients$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Adclients$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Adclients$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Adclients$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Adclients$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Adclients$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1262,6 +1703,37 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Adclients$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client to get. + */ + adClientId?: string; + } + export interface Params$Resource$Adclients$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of ad clients to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through ad clients. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } + + export class Resource$Associationsessions { root: Adsensehost; constructor(root: Adsensehost) { @@ -1290,26 +1762,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - start(params?: any, options?: MethodOptions): - AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Associationsessions$Start, + options?: MethodOptions): AxiosPromise; + start( + params: Params$Resource$Associationsessions$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Associationsessions$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: Params$Resource$Associationsessions$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Associationsessions$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Associationsessions$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1345,26 +1830,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verify(params?: any, options?: MethodOptions): - AxiosPromise; verify( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Associationsessions$Verify, + options?: MethodOptions): AxiosPromise; + verify( + params: Params$Resource$Associationsessions$Verify, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; verify( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Associationsessions$Verify, + callback: BodyResponseCallback): void; + verify(callback: BodyResponseCallback): void; + verify( + paramsOrCallback?: Params$Resource$Associationsessions$Verify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Associationsessions$Verify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Associationsessions$Verify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1387,6 +1885,42 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Associationsessions$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Products to associate with the user. + */ + productCode?: string; + /** + * The preferred locale of the user. + */ + userLocale?: string; + /** + * The locale of the user's hosted website. + */ + websiteLocale?: string; + /** + * The URL of the user's hosted website. + */ + websiteUrl?: string; + } + export interface Params$Resource$Associationsessions$Verify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The token returned to the association callback URL. + */ + token?: string; + } + + export class Resource$Customchannels { root: Adsensehost; constructor(root: Adsensehost) { @@ -1412,26 +1946,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Customchannels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customchannels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Customchannels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1469,24 +2016,35 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Customchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Customchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customchannels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1524,26 +2082,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Customchannels$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Customchannels$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customchannels$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1581,26 +2152,38 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Customchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Customchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1639,26 +2222,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Customchannels$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Customchannels$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customchannels$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1695,26 +2291,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customchannels$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Customchannels$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customchannels$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Customchannels$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customchannels$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customchannels$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1738,6 +2347,109 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Customchannels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client from which to delete the custom channel. + */ + adClientId?: string; + /** + * Custom channel to delete. + */ + customChannelId?: string; + } + export interface Params$Resource$Customchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client from which to get the custom channel. + */ + adClientId?: string; + /** + * Custom channel to get. + */ + customChannelId?: string; + } + export interface Params$Resource$Customchannels$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client to which the new custom channel will be added. + */ + adClientId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomChannel; + } + export interface Params$Resource$Customchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list custom channels. + */ + adClientId?: string; + /** + * The maximum number of custom channels to include in the response, used + * for paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through custom channels. To retrieve + * the next page, set this parameter to the value of "nextPageToken" from + * the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$Customchannels$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client in which the custom channel will be updated. + */ + adClientId?: string; + /** + * Custom channel to get. + */ + customChannelId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomChannel; + } + export interface Params$Resource$Customchannels$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client in which the custom channel will be updated. + */ + adClientId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomChannel; + } + + export class Resource$Reports { root: Adsensehost; constructor(root: Adsensehost) { @@ -1772,26 +2484,37 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Reports$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1814,6 +2537,54 @@ export namespace adsensehost_v4_1 { } } + export interface Params$Resource$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dimensions to base the report on. + */ + dimension?: string; + /** + * End of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + endDate?: string; + /** + * Filters to be run on the report. + */ + filter?: string; + /** + * Optional locale to use for translating report output to a local language. + * Defaults to "en_US" if not specified. + */ + locale?: string; + /** + * The maximum number of rows of report data to return. + */ + maxResults?: number; + /** + * Numeric columns to include in the report. + */ + metric?: string; + /** + * The name of a dimension or metric to sort the resulting report on, + * optionally prefixed with "+" to sort ascending or "-" to sort descending. + * If no prefix is specified, the column is sorted ascending. + */ + sort?: string; + /** + * Start of the date range to report on in "YYYY-MM-DD" format, inclusive. + */ + startDate?: string; + /** + * Index of the first row of report data to return. + */ + startIndex?: number; + } + + export class Resource$Urlchannels { root: Adsensehost; constructor(root: Adsensehost) { @@ -1839,26 +2610,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Urlchannels$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Urlchannels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Urlchannels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlchannels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Urlchannels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlchannels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1896,26 +2680,39 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Urlchannels$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Urlchannels$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlchannels$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Urlchannels$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Urlchannels$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlchannels$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1953,26 +2750,37 @@ export namespace adsensehost_v4_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlchannels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlchannels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlchannels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Urlchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1995,4 +2803,57 @@ export namespace adsensehost_v4_1 { } } } + + export interface Params$Resource$Urlchannels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client from which to delete the URL channel. + */ + adClientId?: string; + /** + * URL channel to delete. + */ + urlChannelId?: string; + } + export interface Params$Resource$Urlchannels$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client to which the new URL channel will be added. + */ + adClientId?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlChannel; + } + export interface Params$Resource$Urlchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad client for which to list URL channels. + */ + adClientId?: string; + /** + * The maximum number of URL channels to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * A continuation token, used to page through URL channels. To retrieve the + * next page, set this parameter to the value of "nextPageToken" from the + * previous response. + */ + pageToken?: string; + } } diff --git a/src/apis/analytics/v2.4.ts b/src/apis/analytics/v2.4.ts index 9b83011674c..15fc2f26840 100644 --- a/src/apis/analytics/v2.4.ts +++ b/src/apis/analytics/v2.4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace analytics_v2_4 { + export interface Options extends GlobalOptions { version: 'v2_4'; } + /** * Google Analytics API * @@ -68,6 +71,7 @@ export namespace analytics_v2_4 { } + export class Resource$Data { root: Analytics; constructor(root: Analytics) { @@ -101,20 +105,31 @@ export namespace analytics_v2_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Data$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Data$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Data$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Data$Get|BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Data$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Data$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -137,6 +152,64 @@ export namespace analytics_v2_4 { } } + export interface Params$Resource$Data$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A comma-separated list of Analytics dimensions. E.g., + * 'ga:browser,ga:city'. + */ + dimensions?: string; + /** + * End date for fetching report data. All requests should specify an end + * date formatted as YYYY-MM-DD. + */ + 'end-date'?: string; + /** + * A comma-separated list of dimension or metric filters to be applied to + * the report data. + */ + filters?: string; + /** + * Unique table ID for retrieving report data. Table ID is of the form + * ga:XXXX, where XXXX is the Analytics view (profile) ID. + */ + ids?: string; + /** + * The maximum number of entries to include in this feed. + */ + 'max-results'?: number; + /** + * A comma-separated list of Analytics metrics. E.g., + * 'ga:sessions,ga:pageviews'. At least one metric must be specified to + * retrieve a valid Analytics report. + */ + metrics?: string; + /** + * An Analytics advanced segment to be applied to the report data. + */ + segment?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for the report data. + */ + sort?: string; + /** + * Start date for fetching report data. All requests should specify a start + * date formatted as YYYY-MM-DD. + */ + 'start-date'?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Management { root: Analytics; accounts: Resource$Management$Accounts; @@ -158,6 +231,8 @@ export namespace analytics_v2_4 { return this.root; } } + + export class Resource$Management$Accounts { root: Analytics; constructor(root: Analytics) { @@ -183,22 +258,37 @@ export namespace analytics_v2_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accounts$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -221,6 +311,24 @@ export namespace analytics_v2_4 { } } + export interface Params$Resource$Management$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of accounts to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first account to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Management$Goals { root: Analytics; constructor(root: Analytics) { @@ -249,22 +357,37 @@ export namespace analytics_v2_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Goals$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Goals$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Goals$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Goals$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Goals$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Goals$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -289,6 +412,41 @@ export namespace analytics_v2_4 { } } + export interface Params$Resource$Management$Goals$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve goals for. Can either be a specific account ID or + * '~all', which refers to all the accounts that user has access to. + */ + accountId?: string; + /** + * The maximum number of goals to include in this response. + */ + 'max-results'?: number; + /** + * View (Profile) ID to retrieve goals for. Can either be a specific view + * (profile) ID or '~all', which refers to all the views (profiles) that + * user has access to. + */ + profileId?: string; + /** + * An index of the first goal to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID to retrieve goals for. Can either be a specific web + * property ID or '~all', which refers to all the web properties that user + * has access to. + */ + webPropertyId?: string; + } + + export class Resource$Management$Profiles { root: Analytics; constructor(root: Analytics) { @@ -316,22 +474,37 @@ export namespace analytics_v2_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profiles$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Profiles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profiles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Profiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Profiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -356,6 +529,36 @@ export namespace analytics_v2_4 { } } + export interface Params$Resource$Management$Profiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the views (profiles) to retrieve. Can either be a specific + * account ID or '~all', which refers to all the accounts to which the user + * has access. + */ + accountId?: string; + /** + * The maximum number of views (profiles) to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID for the views (profiles) to retrieve. Can either be a + * specific web property ID or '~all', which refers to all the web + * properties to which the user has access. + */ + webPropertyId?: string; + } + + export class Resource$Management$Segments { root: Analytics; constructor(root: Analytics) { @@ -381,22 +584,37 @@ export namespace analytics_v2_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Segments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Segments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Segments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Segments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Segments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Segments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -419,6 +637,24 @@ export namespace analytics_v2_4 { } } + export interface Params$Resource$Management$Segments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of advanced segments to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first advanced segment to retrieve. Use this parameter as + * a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Management$Webproperties { root: Analytics; constructor(root: Analytics) { @@ -445,22 +681,37 @@ export namespace analytics_v2_4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webproperties$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Webproperties$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Webproperties$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Webproperties$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webproperties$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webproperties$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -484,4 +735,27 @@ export namespace analytics_v2_4 { } } } + + export interface Params$Resource$Management$Webproperties$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve web properties for. Can either be a specific + * account ID or '~all', which refers to all the accounts that user has + * access to. + */ + accountId?: string; + /** + * The maximum number of web properties to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } } diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts index 5f2af4ca5de..5903c4c36c3 100644 --- a/src/apis/analytics/v3.ts +++ b/src/apis/analytics/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace analytics_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Google Analytics API * @@ -79,39 +82,39 @@ export namespace analytics_v3 { * Child link for an account entry. Points to the list of web properties for * this account. */ - childLink: any; + childLink?: any; /** * Time the account was created. */ - created: string; + created?: string; /** * Account ID. */ - id: string; + id?: string; /** * Resource type for Analytics account. */ - kind: string; + kind?: string; /** * Account name. */ - name: string; + name?: string; /** * Permissions the user has for this account. */ - permissions: any; + permissions?: any; /** * Link for this account. */ - selfLink: string; + selfLink?: string; /** * Indicates whether this account is starred or not. */ - starred: boolean; + starred?: boolean; /** * Time the account was last modified. */ - updated: string; + updated?: string; } /** * JSON template for a linked account. @@ -120,19 +123,19 @@ export namespace analytics_v3 { /** * Link for this account. */ - href: string; + href?: string; /** * Account ID. */ - id: string; + id?: string; /** * Analytics account reference. */ - kind: string; + kind?: string; /** * Account name. */ - name: string; + name?: string; } /** * An account collection provides a list of Analytics accounts to which a user @@ -144,40 +147,40 @@ export namespace analytics_v3 { /** * A list of accounts. */ - items: Schema$Account[]; + items?: Schema$Account[]; /** * The maximum number of entries the response can contain, regardless of the * actual number of entries returned. Its value ranges from 1 to 1000 with a * value of 1000 by default, or otherwise specified by the max-results query * parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Next link for this account collection. */ - nextLink: string; + nextLink?: string; /** * Previous link for this account collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the entries, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * An AccountSummary collection lists a summary of accounts, properties and @@ -188,40 +191,40 @@ export namespace analytics_v3 { /** * A list of AccountSummaries. */ - items: Schema$AccountSummary[]; + items?: Schema$AccountSummary[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this AccountSummary collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this AccountSummary collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for an Analytics AccountSummary. An AccountSummary is a @@ -231,23 +234,23 @@ export namespace analytics_v3 { /** * Account ID. */ - id: string; + id?: string; /** * Resource type for Analytics AccountSummary. */ - kind: string; + kind?: string; /** * Account name. */ - name: string; + name?: string; /** * Indicates whether this account is starred or not. */ - starred: boolean; + starred?: boolean; /** * List of web properties under this account. */ - webProperties: Schema$WebPropertySummary[]; + webProperties?: Schema$WebPropertySummary[]; } /** * JSON template for an Analytics account ticket. The account ticket consists @@ -258,28 +261,28 @@ export namespace analytics_v3 { /** * Account for this ticket. */ - account: Schema$Account; + account?: Schema$Account; /** * Account ticket ID used to access the account ticket. */ - id: string; + id?: string; /** * Resource type for account ticket. */ - kind: string; + kind?: string; /** * View (Profile) for the account. */ - profile: Schema$Profile; + profile?: Schema$Profile; /** * Redirect URI where the user will be sent after accepting Terms of * Service. Must be configured in APIs console as a callback URL. */ - redirectUri: string; + redirectUri?: string; /** * Web property for the account. */ - webproperty: Schema$Webproperty; + webproperty?: Schema$Webproperty; } /** * JSON template for an Analytics account tree requests. The account tree @@ -288,16 +291,16 @@ export namespace analytics_v3 { * fields. */ export interface Schema$AccountTreeRequest { - accountName: string; - accountSettings: any; + accountName?: string; + accountSettings?: any; /** * Resource type for account ticket. */ - kind: string; - profileName: string; - timezone: string; - webpropertyName: string; - websiteUrl: string; + kind?: string; + profileName?: string; + timezone?: string; + webpropertyName?: string; + websiteUrl?: string; } /** * JSON template for an Analytics account tree response. The account tree @@ -308,20 +311,20 @@ export namespace analytics_v3 { /** * The account created. */ - account: Schema$Account; - accountSettings: any; + account?: Schema$Account; + accountSettings?: any; /** * Resource type for account ticket. */ - kind: string; + kind?: string; /** * View (Profile) for the account. */ - profile: Schema$Profile; + profile?: Schema$Profile; /** * Web property for the account. */ - webproperty: Schema$Webproperty; + webproperty?: Schema$Webproperty; } /** * JSON template for an AdWords account. @@ -331,15 +334,15 @@ export namespace analytics_v3 { * True if auto-tagging is enabled on the AdWords account. Read-only after * the insert operation. */ - autoTaggingEnabled: boolean; + autoTaggingEnabled?: boolean; /** * Customer ID. This field is required when creating an AdWords link. */ - customerId: string; + customerId?: string; /** * Resource type for AdWords account. */ - kind: string; + kind?: string; } /** * Request template for the delete upload data request. @@ -348,7 +351,7 @@ export namespace analytics_v3 { /** * A list of upload UIDs. */ - customDataImportUids: string[]; + customDataImportUids?: string[]; } /** * JSON template for a metadata column. @@ -357,15 +360,15 @@ export namespace analytics_v3 { /** * Map of attribute name and value for this column. */ - attributes: any; + attributes?: any; /** * Column id. */ - id: string; + id?: string; /** * Resource type for Analytics column. */ - kind: string; + kind?: string; } /** * Lists columns (dimensions and metrics) for a particular report type. @@ -374,24 +377,24 @@ export namespace analytics_v3 { /** * List of attributes names returned by columns. */ - attributeNames: string[]; + attributeNames?: string[]; /** * Etag of collection. This etag can be compared with the last response etag * to check if response has changed. */ - etag: string; + etag?: string; /** * List of columns for a report type. */ - items: Schema$Column[]; + items?: Schema$Column[]; /** * Collection type. */ - kind: string; + kind?: string; /** * Total number of columns returned in the response. */ - totalResults: number; + totalResults?: number; } /** * JSON template for an Analytics custom data source. @@ -400,63 +403,63 @@ export namespace analytics_v3 { /** * Account ID to which this custom data source belongs. */ - accountId: string; - childLink: any; + accountId?: string; + childLink?: any; /** * Time this custom data source was created. */ - created: string; + created?: string; /** * Description of custom data source. */ - description: string; + description?: string; /** * Custom data source ID. */ - id: string; - importBehavior: string; + id?: string; + importBehavior?: string; /** * Resource type for Analytics custom data source. */ - kind: string; + kind?: string; /** * Name of this custom data source. */ - name: string; + name?: string; /** * Parent link for this custom data source. Points to the web property to * which this custom data source belongs. */ - parentLink: any; + parentLink?: any; /** * IDs of views (profiles) linked to the custom data source. */ - profilesLinked: string[]; + profilesLinked?: string[]; /** * Collection of schema headers of the custom data source. */ - schema: string[]; + schema?: string[]; /** * Link for this Analytics custom data source. */ - selfLink: string; + selfLink?: string; /** * Type of the custom data source. */ - type: string; + type?: string; /** * Time this custom data source was last modified. */ - updated: string; + updated?: string; /** * Upload type of the custom data source. */ - uploadType: string; + uploadType?: string; /** * Web property ID of the form UA-XXXXX-YY to which this custom data source * belongs. */ - webPropertyId: string; + webPropertyId?: string; } /** * Lists Analytics custom data sources to which the user has access. Each @@ -467,40 +470,40 @@ export namespace analytics_v3 { /** * Collection of custom data sources. */ - items: Schema$CustomDataSource[]; + items?: Schema$CustomDataSource[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this custom data source collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this custom data source collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for Analytics Custom Dimension. @@ -509,53 +512,53 @@ export namespace analytics_v3 { /** * Account ID. */ - accountId: string; + accountId?: string; /** * Boolean indicating whether the custom dimension is active. */ - active: boolean; + active?: boolean; /** * Time the custom dimension was created. */ - created: string; + created?: string; /** * Custom dimension ID. */ - id: string; + id?: string; /** * Index of the custom dimension. */ - index: number; + index?: number; /** * Kind value for a custom dimension. Set to * "analytics#customDimension". It is a read-only field. */ - kind: string; + kind?: string; /** * Name of the custom dimension. */ - name: string; + name?: string; /** * Parent link for the custom dimension. Points to the property to which the * custom dimension belongs. */ - parentLink: any; + parentLink?: any; /** * Scope of the custom dimension: HIT, SESSION, USER or PRODUCT. */ - scope: string; + scope?: string; /** * Link for the custom dimension */ - selfLink: string; + selfLink?: string; /** * Time the custom dimension was last modified. */ - updated: string; + updated?: string; /** * Property ID. */ - webPropertyId: string; + webPropertyId?: string; } /** * A custom dimension collection lists Analytics custom dimensions to which @@ -566,40 +569,40 @@ export namespace analytics_v3 { /** * Collection of custom dimensions. */ - items: Schema$CustomDimension[]; + items?: Schema$CustomDimension[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this custom dimension collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this custom dimension collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for Analytics Custom Metric. @@ -608,65 +611,65 @@ export namespace analytics_v3 { /** * Account ID. */ - accountId: string; + accountId?: string; /** * Boolean indicating whether the custom metric is active. */ - active: boolean; + active?: boolean; /** * Time the custom metric was created. */ - created: string; + created?: string; /** * Custom metric ID. */ - id: string; + id?: string; /** * Index of the custom metric. */ - index: number; + index?: number; /** * Kind value for a custom metric. Set to * "analytics#customMetric". It is a read-only field. */ - kind: string; + kind?: string; /** * Max value of custom metric. */ - max_value: string; + max_value?: string; /** * Min value of custom metric. */ - min_value: string; + min_value?: string; /** * Name of the custom metric. */ - name: string; + name?: string; /** * Parent link for the custom metric. Points to the property to which the * custom metric belongs. */ - parentLink: any; + parentLink?: any; /** * Scope of the custom metric: HIT or PRODUCT. */ - scope: string; + scope?: string; /** * Link for the custom metric */ - selfLink: string; + selfLink?: string; /** * Data type of custom metric. */ - type: string; + type?: string; /** * Time the custom metric was last modified. */ - updated: string; + updated?: string; /** * Property ID. */ - webPropertyId: string; + webPropertyId?: string; } /** * A custom metric collection lists Analytics custom metrics to which the user @@ -677,40 +680,40 @@ export namespace analytics_v3 { /** * Collection of custom metrics. */ - items: Schema$CustomMetric[]; + items?: Schema$CustomMetric[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this custom metric collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this custom metric collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for Analytics Entity AdWords Link. @@ -720,31 +723,31 @@ export namespace analytics_v3 { * A list of AdWords client accounts. These cannot be MCC accounts. This * field is required when creating an AdWords link. It cannot be empty. */ - adWordsAccounts: Schema$AdWordsAccount[]; + adWordsAccounts?: Schema$AdWordsAccount[]; /** * Web property being linked. */ - entity: any; + entity?: any; /** * Entity AdWords link ID */ - id: string; + id?: string; /** * Resource type for entity AdWords link. */ - kind: string; + kind?: string; /** * Name of the link. This field is required when creating an AdWords link. */ - name: string; + name?: string; /** * IDs of linked Views (Profiles) represented as strings. */ - profileIds: string[]; + profileIds?: string[]; /** * URL link for this Google Analytics - Google AdWords link. */ - selfLink: string; + selfLink?: string; } /** * An entity AdWords link collection provides a list of GA-AdWords links Each @@ -754,36 +757,36 @@ export namespace analytics_v3 { /** * A list of entity AdWords links. */ - items: Schema$EntityAdWordsLink[]; + items?: Schema$EntityAdWordsLink[]; /** * The maximum number of entries the response can contain, regardless of the * actual number of entries returned. Its value ranges from 1 to 1000 with a * value of 1000 by default, or otherwise specified by the max-results query * parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Next link for this AdWords link collection. */ - nextLink: string; + nextLink?: string; /** * Previous link for this AdWords link collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the entries, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; } /** * JSON template for an Analytics Entity-User Link. Returns permissions that a @@ -794,27 +797,27 @@ export namespace analytics_v3 { * Entity for this link. It can be an account, a web property, or a view * (profile). */ - entity: any; + entity?: any; /** * Entity user link ID */ - id: string; + id?: string; /** * Resource type for entity user link. */ - kind: string; + kind?: string; /** * Permissions the user has for this entity. */ - permissions: any; + permissions?: any; /** * Self link for this resource. */ - selfLink: string; + selfLink?: string; /** * User reference. */ - userRef: Schema$UserRef; + userRef?: Schema$UserRef; } /** * An entity user link collection provides a list of Analytics ACL links Each @@ -824,36 +827,36 @@ export namespace analytics_v3 { /** * A list of entity user links. */ - items: Schema$EntityUserLink[]; + items?: Schema$EntityUserLink[]; /** * The maximum number of entries the response can contain, regardless of the * actual number of entries returned. Its value ranges from 1 to 1000 with a * value of 1000 by default, or otherwise specified by the max-results query * parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Next link for this account collection. */ - nextLink: string; + nextLink?: string; /** * Previous link for this account collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the entries, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; } /** * JSON template for Analytics experiment resource. @@ -862,26 +865,26 @@ export namespace analytics_v3 { /** * Account ID to which this experiment belongs. This field is read-only. */ - accountId: string; + accountId?: string; /** * Time the experiment was created. This field is read-only. */ - created: string; + created?: string; /** * Notes about this experiment. */ - description: string; + description?: string; /** * If true, the end user will be able to edit the experiment via the Google * Analytics user interface. */ - editableInGaUi: boolean; + editableInGaUi?: boolean; /** * The ending time of the experiment (the time the status changed from * RUNNING to ENDED). This field is present only if the experiment has * ended. This field is read-only. */ - endTime: string; + endTime?: string; /** * Boolean specifying whether to distribute traffic evenly across all * variations. If the value is False, content experiments follows the @@ -889,31 +892,31 @@ export namespace analytics_v3 { * performance. Optional -- defaults to False. This field may not be changed * for an experiment whose status is ENDED. */ - equalWeighting: boolean; + equalWeighting?: boolean; /** * Experiment ID. Required for patch and update. Disallowed for create. */ - id: string; + id?: string; /** * Internal ID for the web property to which this experiment belongs. This * field is read-only. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Resource type for an Analytics experiment. This field is read-only. */ - kind: string; + kind?: string; /** * An integer number in [3, 90]. Specifies the minimum length of the * experiment. Can be changed for a running experiment. This field may not * be changed for an experiments whose status is ENDED. */ - minimumExperimentLengthInDays: number; + minimumExperimentLengthInDays?: number; /** * Experiment name. This field may not be changed for an experiment whose * status is ENDED. This field is required when creating an experiment. */ - name: string; + name?: string; /** * The metric that the experiment is optimizing. Valid values: * "ga:goal(n)Completions", "ga:adsenseAdsClicks", @@ -924,24 +927,24 @@ export namespace analytics_v3 { * "RUNNING" and servingFramework is one of "REDIRECT" * or "API". */ - objectiveMetric: string; + objectiveMetric?: string; /** * Whether the objectiveMetric should be minimized or maximized. Possible * values: "MAXIMUM", "MINIMUM". Optional--defaults to * "MAXIMUM". Cannot be specified without objectiveMetric. Cannot * be modified when status is "RUNNING" or "ENDED". */ - optimizationType: string; + optimizationType?: string; /** * Parent link for an experiment. Points to the view (profile) to which this * experiment belongs. */ - parentLink: any; + parentLink?: any; /** * View (Profile) ID to which this experiment belongs. This field is * read-only. */ - profileId: string; + profileId?: string; /** * Why the experiment ended. Possible values: "STOPPED_BY_USER", * "WINNER_FOUND", "EXPERIMENT_EXPIRED", @@ -951,17 +954,17 @@ export namespace analytics_v3 { * is changed via the API to ENDED this field is set to STOPPED_BY_USER. * This field is read-only. */ - reasonExperimentEnded: string; + reasonExperimentEnded?: string; /** * Boolean specifying whether variations URLS are rewritten to match those * of the original. This field may not be changed for an experiments whose * status is ENDED. */ - rewriteVariationUrlsAsOriginal: boolean; + rewriteVariationUrlsAsOriginal?: boolean; /** * Link for this experiment. This field is read-only. */ - selfLink: string; + selfLink?: string; /** * The framework used to serve the experiment variations and evaluate the * results. One of: - REDIRECT: Google Analytics redirects traffic to @@ -973,18 +976,18 @@ export namespace analytics_v3 { * caller is responsible for serving the selected variation and evaluating * the results. */ - servingFramework: string; + servingFramework?: string; /** * The snippet of code to include on the control page(s). This field is * read-only. */ - snippet: string; + snippet?: string; /** * The starting time of the experiment (the time the status changed from * READY_TO_RUN to RUNNING). This field is present only if the experiment * has started. This field is read-only. */ - startTime: string; + startTime?: string; /** * Experiment status. Possible values: "DRAFT", * "READY_TO_RUN", "RUNNING", "ENDED". @@ -992,41 +995,41 @@ export namespace analytics_v3 { * "READY_TO_RUN" or "RUNNING" state. This field is * required when creating an experiment. */ - status: string; + status?: string; /** * A floating-point number in (0, 1]. Specifies the fraction of the traffic * that participates in the experiment. Can be changed for a running * experiment. This field may not be changed for an experiments whose status * is ENDED. */ - trafficCoverage: number; + trafficCoverage?: number; /** * Time the experiment was last modified. This field is read-only. */ - updated: string; + updated?: string; /** * Array of variations. The first variation in the array is the original. * The number of variations may not change once an experiment is in the * RUNNING state. At least two variations are required before status can be * set to RUNNING. */ - variations: any[]; + variations?: any[]; /** * Web property ID to which this experiment belongs. The web property ID is * of the form UA-XXXXX-YY. This field is read-only. */ - webPropertyId: string; + webPropertyId?: string; /** * A floating-point number in (0, 1). Specifies the necessary confidence * level to choose a winner. This field may not be changed for an * experiments whose status is ENDED. */ - winnerConfidenceLevel: number; + winnerConfidenceLevel?: number; /** * Boolean specifying whether a winner has been found for this experiment. * This field is read-only. */ - winnerFound: boolean; + winnerFound?: boolean; } /** * An experiment collection lists Analytics experiments to which the user has @@ -1037,40 +1040,40 @@ export namespace analytics_v3 { /** * A list of experiments. */ - items: Schema$Experiment[]; + items?: Schema$Experiment[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this experiment collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this experiment collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * resources in the result. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for an Analytics account filter. @@ -1079,65 +1082,65 @@ export namespace analytics_v3 { /** * Account ID to which this filter belongs. */ - accountId: string; + accountId?: string; /** * Details for the filter of the type ADVANCED. */ - advancedDetails: any; + advancedDetails?: any; /** * Time this filter was created. */ - created: string; + created?: string; /** * Details for the filter of the type EXCLUDE. */ - excludeDetails: Schema$FilterExpression; + excludeDetails?: Schema$FilterExpression; /** * Filter ID. */ - id: string; + id?: string; /** * Details for the filter of the type INCLUDE. */ - includeDetails: Schema$FilterExpression; + includeDetails?: Schema$FilterExpression; /** * Resource type for Analytics filter. */ - kind: string; + kind?: string; /** * Details for the filter of the type LOWER. */ - lowercaseDetails: any; + lowercaseDetails?: any; /** * Name of this filter. */ - name: string; + name?: string; /** * Parent link for this filter. Points to the account to which this filter * belongs. */ - parentLink: any; + parentLink?: any; /** * Details for the filter of the type SEARCH_AND_REPLACE. */ - searchAndReplaceDetails: any; + searchAndReplaceDetails?: any; /** * Link for this filter. */ - selfLink: string; + selfLink?: string; /** * Type of this filter. Possible values are INCLUDE, EXCLUDE, LOWERCASE, * UPPERCASE, SEARCH_AND_REPLACE and ADVANCED. */ - type: string; + type?: string; /** * Time this filter was last modified. */ - updated: string; + updated?: string; /** * Details for the filter of the type UPPER. */ - uppercaseDetails: any; + uppercaseDetails?: any; } /** * JSON template for an Analytics filter expression. @@ -1146,11 +1149,11 @@ export namespace analytics_v3 { /** * Determines if the filter is case sensitive. */ - caseSensitive: boolean; + caseSensitive?: boolean; /** * Filter expression value */ - expressionValue: string; + expressionValue?: string; /** * Field to filter. Possible values: - Content and Traffic - * PAGE_REQUEST_URI, - PAGE_HOSTNAME, - PAGE_TITLE, - REFERRAL, - @@ -1184,23 +1187,23 @@ export namespace analytics_v3 { * - Social - SOCIAL_NETWORK, - SOCIAL_ACTION, - SOCIAL_ACTION_TARGET, * - Custom dimension - CUSTOM_DIMENSION (See accompanying field index), */ - field: string; + field?: string; /** * The Index of the custom dimension. Set only if the field is a is * CUSTOM_DIMENSION. */ - fieldIndex: number; + fieldIndex?: number; /** * Kind value for filter expression */ - kind: string; + kind?: string; /** * Match type for this filter. Possible values are BEGINS_WITH, EQUAL, * ENDS_WITH, CONTAINS, or MATCHES. GEO_DOMAIN, GEO_IP_ADDRESS, * PAGE_REQUEST_URI, or PAGE_HOSTNAME filters can use any match type; all * other filters must use MATCHES. */ - matchType: string; + matchType?: string; } /** * JSON template for a profile filter link. @@ -1209,23 +1212,23 @@ export namespace analytics_v3 { /** * Account ID to which this filter belongs. */ - accountId: string; + accountId?: string; /** * Link for this filter. */ - href: string; + href?: string; /** * Filter ID. */ - id: string; + id?: string; /** * Kind value for filter reference. */ - kind: string; + kind?: string; /** * Name of this filter. */ - name: string; + name?: string; } /** * A filter collection lists filters created by users in an Analytics account. @@ -1235,40 +1238,40 @@ export namespace analytics_v3 { /** * A list of filters. */ - items: Schema$Filter[]; + items?: Schema$Filter[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1,000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this filter collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this filter collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * Analytics data for a given view (profile). @@ -1278,77 +1281,77 @@ export namespace analytics_v3 { * Column headers that list dimension names followed by the metric names. * The order of dimensions and metrics is same as specified in the request. */ - columnHeaders: any[]; + columnHeaders?: any[]; /** * Determines if Analytics data contains samples. */ - containsSampledData: boolean; + containsSampledData?: boolean; /** * The last refreshed time in seconds for Analytics data. */ - dataLastRefreshed: string; - dataTable: any; + dataLastRefreshed?: string; + dataTable?: any; /** * Unique ID for this data response. */ - id: string; + id?: string; /** * The maximum number of rows the response can contain, regardless of the * actual number of rows returned. Its value ranges from 1 to 10,000 with a * value of 1000 by default, or otherwise specified by the max-results query * parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * Link to next page for this Analytics data query. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this Analytics data query. */ - previousLink: string; + previousLink?: string; /** * Information for the view (profile), for which the Analytics data was * requested. */ - profileInfo: any; + profileInfo?: any; /** * Analytics data request query parameters. */ - query: any; + query?: any; /** * Analytics data rows, where each row contains a list of dimension values * followed by the metric values. The order of dimensions and metrics is * same as specified in the request. */ - rows: string[][]; + rows?: string[][]; /** * The number of samples used to calculate the result. */ - sampleSize: string; + sampleSize?: string; /** * Total size of the sample space from which the samples were selected. */ - sampleSpace: string; + sampleSpace?: string; /** * Link to this page. */ - selfLink: string; + selfLink?: string; /** * The total number of rows for the query, regardless of the number of rows * in the response. */ - totalResults: number; + totalResults?: number; /** * Total values for the requested metrics over all the results, not just the * results returned in this response. The order of the metric totals is same * as the metric order specified in the request. */ - totalsForAllResults: any; + totalsForAllResults?: any; } /** * JSON template for Analytics goal resource. @@ -1357,78 +1360,78 @@ export namespace analytics_v3 { /** * Account ID to which this goal belongs. */ - accountId: string; + accountId?: string; /** * Determines whether this goal is active. */ - active: boolean; + active?: boolean; /** * Time this goal was created. */ - created: string; + created?: string; /** * Details for the goal of the type EVENT. */ - eventDetails: any; + eventDetails?: any; /** * Goal ID. */ - id: string; + id?: string; /** * Internal ID for the web property to which this goal belongs. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Resource type for an Analytics goal. */ - kind: string; + kind?: string; /** * Goal name. */ - name: string; + name?: string; /** * Parent link for a goal. Points to the view (profile) to which this goal * belongs. */ - parentLink: any; + parentLink?: any; /** * View (Profile) ID to which this goal belongs. */ - profileId: string; + profileId?: string; /** * Link for this goal. */ - selfLink: string; + selfLink?: string; /** * Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, * VISIT_NUM_PAGES, AND EVENT. */ - type: string; + type?: string; /** * Time this goal was last modified. */ - updated: string; + updated?: string; /** * Details for the goal of the type URL_DESTINATION. */ - urlDestinationDetails: any; + urlDestinationDetails?: any; /** * Goal value. */ - value: number; + value?: number; /** * Details for the goal of the type VISIT_NUM_PAGES. */ - visitNumPagesDetails: any; + visitNumPagesDetails?: any; /** * Details for the goal of the type VISIT_TIME_ON_SITE. */ - visitTimeOnSiteDetails: any; + visitTimeOnSiteDetails?: any; /** * Web property ID to which this goal belongs. The web property ID is of the * form UA-XXXXX-YY. */ - webPropertyId: string; + webPropertyId?: string; } /** * A goal collection lists Analytics goals to which the user has access. Each @@ -1439,40 +1442,40 @@ export namespace analytics_v3 { /** * A list of goals. */ - items: Schema$Goal[]; + items?: Schema$Goal[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this goal collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this goal collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * resources in the result. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for an Analytics Remarketing Include Conditions. @@ -1486,24 +1489,24 @@ export namespace analytics_v3 { * Asia whose cumulative transactions exceed 2 during the last 14 days is * added to the audience. */ - daysToLookBack: number; + daysToLookBack?: number; /** * Boolean indicating whether this segment is a smart list. * https://support.google.com/analytics/answer/4628577 */ - isSmartList: boolean; + isSmartList?: boolean; /** * Resource type for include conditions. */ - kind: string; + kind?: string; /** * Number of days (in the range 1 to 540) a user remains in the audience. */ - membershipDurationDays: number; + membershipDurationDays?: number; /** * The segment condition that will cause a user to be added to an audience. */ - segment: string; + segment?: string; } /** * JSON template for an Analytics Remarketing Audience Foreign Link. @@ -1512,47 +1515,47 @@ export namespace analytics_v3 { /** * Account ID to which this linked foreign account belongs. */ - accountId: string; + accountId?: string; /** * Boolean indicating whether this is eligible for search. */ - eligibleForSearch: boolean; + eligibleForSearch?: boolean; /** * Entity ad account link ID. */ - id: string; + id?: string; /** * Internal ID for the web property to which this linked foreign account * belongs. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Resource type for linked foreign account. */ - kind: string; + kind?: string; /** * The foreign account ID. For example the an AdWords `linkedAccountId` has * the following format XXX-XXX-XXXX. */ - linkedAccountId: string; + linkedAccountId?: string; /** * Remarketing audience ID to which this linked foreign account belongs. */ - remarketingAudienceId: string; + remarketingAudienceId?: string; /** * The status of this foreign account link. */ - status: string; + status?: string; /** * The type of the foreign account. For example, `ADWORDS_LINKS`, * `DBM_LINKS`, `MCC_LINKS` or `OPTIMIZE`. */ - type: string; + type?: string; /** * Web property ID of the form UA-XXXXX-YY to which this linked foreign * account belongs. */ - webPropertyId: string; + webPropertyId?: string; } /** * Multi-Channel Funnels data for a given view (profile). @@ -1562,72 +1565,72 @@ export namespace analytics_v3 { * Column headers that list dimension names followed by the metric names. * The order of dimensions and metrics is same as specified in the request. */ - columnHeaders: any[]; + columnHeaders?: any[]; /** * Determines if the Analytics data contains sampled data. */ - containsSampledData: boolean; + containsSampledData?: boolean; /** * Unique ID for this data response. */ - id: string; + id?: string; /** * The maximum number of rows the response can contain, regardless of the * actual number of rows returned. Its value ranges from 1 to 10,000 with a * value of 1000 by default, or otherwise specified by the max-results query * parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Resource type. */ - kind: string; + kind?: string; /** * Link to next page for this Analytics data query. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this Analytics data query. */ - previousLink: string; + previousLink?: string; /** * Information for the view (profile), for which the Analytics data was * requested. */ - profileInfo: any; + profileInfo?: any; /** * Analytics data request query parameters. */ - query: any; + query?: any; /** * Analytics data rows, where each row contains a list of dimension values * followed by the metric values. The order of dimensions and metrics is * same as specified in the request. */ - rows: any[][]; + rows?: any[][]; /** * The number of samples used to calculate the result. */ - sampleSize: string; + sampleSize?: string; /** * Total size of the sample space from which the samples were selected. */ - sampleSpace: string; + sampleSpace?: string; /** * Link to this page. */ - selfLink: string; + selfLink?: string; /** * The total number of rows for the query, regardless of the number of rows * in the response. */ - totalResults: number; + totalResults?: number; /** * Total values for the requested metrics over all the results, not just the * results returned in this response. The order of the metric totals is same * as the metric order specified in the request. */ - totalsForAllResults: any; + totalsForAllResults?: any; } /** * JSON template for an Analytics view (profile). @@ -1636,20 +1639,20 @@ export namespace analytics_v3 { /** * Account ID to which this view (profile) belongs. */ - accountId: string; + accountId?: string; /** * Indicates whether bot filtering is enabled for this view (profile). */ - botFilteringEnabled: boolean; + botFilteringEnabled?: boolean; /** * Child link for this view (profile). Points to the list of goals for this * view (profile). */ - childLink: any; + childLink?: any; /** * Time this view (profile) was created. */ - created: string; + created?: string; /** * The currency type associated with this view (profile), defaults to USD. * The supported values are: USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, @@ -1657,98 +1660,98 @@ export namespace analytics_v3 { * CHF, CAD, CZK, NZD, HUF, BGN, LTL, ZAR, UAH, AED, BOB, CLP, COP, EGP, * HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, SAR, SGD, VEF, LVL */ - currency: string; + currency?: string; /** * Default page for this view (profile). */ - defaultPage: string; + defaultPage?: string; /** * Indicates whether ecommerce tracking is enabled for this view (profile). */ - eCommerceTracking: boolean; + eCommerceTracking?: boolean; /** * Indicates whether enhanced ecommerce tracking is enabled for this view * (profile). This property can only be enabled if ecommerce tracking is * enabled. */ - enhancedECommerceTracking: boolean; + enhancedECommerceTracking?: boolean; /** * The query parameters that are excluded from this view (profile). */ - excludeQueryParameters: string; + excludeQueryParameters?: string; /** * View (Profile) ID. */ - id: string; + id?: string; /** * Internal ID for the web property to which this view (profile) belongs. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Resource type for Analytics view (profile). */ - kind: string; + kind?: string; /** * Name of this view (profile). */ - name: string; + name?: string; /** * Parent link for this view (profile). Points to the web property to which * this view (profile) belongs. */ - parentLink: any; + parentLink?: any; /** * Permissions the user has for this view (profile). */ - permissions: any; + permissions?: any; /** * Link for this view (profile). */ - selfLink: string; + selfLink?: string; /** * Site search category parameters for this view (profile). */ - siteSearchCategoryParameters: string; + siteSearchCategoryParameters?: string; /** * The site search query parameters for this view (profile). */ - siteSearchQueryParameters: string; + siteSearchQueryParameters?: string; /** * Indicates whether this view (profile) is starred or not. */ - starred: boolean; + starred?: boolean; /** * Whether or not Analytics will strip search category parameters from the * URLs in your reports. */ - stripSiteSearchCategoryParameters: boolean; + stripSiteSearchCategoryParameters?: boolean; /** * Whether or not Analytics will strip search query parameters from the URLs * in your reports. */ - stripSiteSearchQueryParameters: boolean; + stripSiteSearchQueryParameters?: boolean; /** * Time zone for which this view (profile) has been configured. Time zones * are identified by strings from the TZ database. */ - timezone: string; + timezone?: string; /** * View (Profile) type. Supported types: WEB or APP. */ - type: string; + type?: string; /** * Time this view (profile) was last modified. */ - updated: string; + updated?: string; /** * Web property ID of the form UA-XXXXX-YY to which this view (profile) * belongs. */ - webPropertyId: string; + webPropertyId?: string; /** * Website URL for this view (profile). */ - websiteUrl: string; + websiteUrl?: string; } /** * JSON template for an Analytics profile filter link. @@ -1757,19 +1760,19 @@ export namespace analytics_v3 { /** * Filter for this link. */ - filterRef: Schema$FilterRef; + filterRef?: Schema$FilterRef; /** * Profile filter link ID. */ - id: string; + id?: string; /** * Resource type for Analytics filter. */ - kind: string; + kind?: string; /** * View (Profile) for this link. */ - profileRef: Schema$ProfileRef; + profileRef?: Schema$ProfileRef; /** * The rank of this profile filter link relative to the other filters linked * to the same profile. For readonly (i.e., list and get) operations, the @@ -1783,11 +1786,11 @@ export namespace analytics_v3 { * link is inserted/updated/deleted all profile filter links will be * renumbered starting at 1. */ - rank: number; + rank?: number; /** * Link for this profile filter link. */ - selfLink: string; + selfLink?: string; } /** * A profile filter link collection lists profile filter links between @@ -1798,40 +1801,40 @@ export namespace analytics_v3 { /** * A list of profile filter links. */ - items: Schema$ProfileFilterLink[]; + items?: Schema$ProfileFilterLink[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1,000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this profile filter link collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this profile filter link collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for a linked view (profile). @@ -1840,32 +1843,32 @@ export namespace analytics_v3 { /** * Account ID to which this view (profile) belongs. */ - accountId: string; + accountId?: string; /** * Link for this view (profile). */ - href: string; + href?: string; /** * View (Profile) ID. */ - id: string; + id?: string; /** * Internal ID for the web property to which this view (profile) belongs. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Analytics view (profile) reference. */ - kind: string; + kind?: string; /** * Name of this view (profile). */ - name: string; + name?: string; /** * Web property ID of the form UA-XXXXX-YY to which this view (profile) * belongs. */ - webPropertyId: string; + webPropertyId?: string; } /** * A view (profile) collection lists Analytics views (profiles) to which the @@ -1876,40 +1879,40 @@ export namespace analytics_v3 { /** * A list of views (profiles). */ - items: Schema$Profile[]; + items?: Schema$Profile[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this view (profile) collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this view (profile) collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for an Analytics ProfileSummary. ProfileSummary returns basic @@ -1919,23 +1922,23 @@ export namespace analytics_v3 { /** * View (profile) ID. */ - id: string; + id?: string; /** * Resource type for Analytics ProfileSummary. */ - kind: string; + kind?: string; /** * View (profile) name. */ - name: string; + name?: string; /** * Indicates whether this view (profile) is starred or not. */ - starred: boolean; + starred?: boolean; /** * View (Profile) type. Supported types: WEB or APP. */ - type: string; + type?: string; } /** * Real time data for a given view (profile). @@ -1945,45 +1948,45 @@ export namespace analytics_v3 { * Column headers that list dimension names followed by the metric names. * The order of dimensions and metrics is same as specified in the request. */ - columnHeaders: any[]; + columnHeaders?: any[]; /** * Unique ID for this data response. */ - id: string; + id?: string; /** * Resource type. */ - kind: string; + kind?: string; /** * Information for the view (profile), for which the real time data was * requested. */ - profileInfo: any; + profileInfo?: any; /** * Real time data request query parameters. */ - query: any; + query?: any; /** * Real time data rows, where each row contains a list of dimension values * followed by the metric values. The order of dimensions and metrics is * same as specified in the request. */ - rows: string[][]; + rows?: string[][]; /** * Link to this page. */ - selfLink: string; + selfLink?: string; /** * The total number of rows for the query, regardless of the number of rows * in the response. */ - totalResults: number; + totalResults?: number; /** * Total values for the requested metrics over all the results, not just the * results returned in this response. The order of the metric totals is same * as the metric order specified in the request. */ - totalsForAllResults: any; + totalsForAllResults?: any; } /** * JSON template for an Analytics remarketing audience. @@ -1992,64 +1995,64 @@ export namespace analytics_v3 { /** * Account ID to which this remarketing audience belongs. */ - accountId: string; + accountId?: string; /** * The simple audience definition that will cause a user to be added to an * audience. */ - audienceDefinition: any; + audienceDefinition?: any; /** * The type of audience, either SIMPLE or STATE_BASED. */ - audienceType: string; + audienceType?: string; /** * Time this remarketing audience was created. */ - created: string; + created?: string; /** * The description of this remarketing audience. */ - description: string; + description?: string; /** * Remarketing Audience ID. */ - id: string; + id?: string; /** * Internal ID for the web property to which this remarketing audience * belongs. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Collection type. */ - kind: string; + kind?: string; /** * The linked ad accounts associated with this remarketing audience. A * remarketing audience can have only one linkedAdAccount currently. */ - linkedAdAccounts: Schema$LinkedForeignAccount[]; + linkedAdAccounts?: Schema$LinkedForeignAccount[]; /** * The views (profiles) that this remarketing audience is linked to. */ - linkedViews: string[]; + linkedViews?: string[]; /** * The name of this remarketing audience. */ - name: string; + name?: string; /** * A state based audience definition that will cause a user to be added or * removed from an audience. */ - stateBasedAudienceDefinition: any; + stateBasedAudienceDefinition?: any; /** * Time this remarketing audience was last modified. */ - updated: string; + updated?: string; /** * Web property ID of the form UA-XXXXX-YY to which this remarketing * audience belongs. */ - webPropertyId: string; + webPropertyId?: string; } /** * A remarketing audience collection lists Analytics remarketing audiences to @@ -2060,40 +2063,40 @@ export namespace analytics_v3 { /** * A list of remarketing audiences. */ - items: Schema$RemarketingAudience[]; + items?: Schema$RemarketingAudience[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this remarketing audience collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this view (profile) collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for an Analytics segment. @@ -2102,41 +2105,41 @@ export namespace analytics_v3 { /** * Time the segment was created. */ - created: string; + created?: string; /** * Segment definition. */ - definition: string; + definition?: string; /** * Segment ID. */ - id: string; + id?: string; /** * Resource type for Analytics segment. */ - kind: string; + kind?: string; /** * Segment name. */ - name: string; + name?: string; /** * Segment ID. Can be used with the 'segment' parameter in Core * Reporting API. */ - segmentId: string; + segmentId?: string; /** * Link for this segment. */ - selfLink: string; + selfLink?: string; /** * Type for a segment. Possible values are "BUILT_IN" or * "CUSTOM". */ - type: string; + type?: string; /** * Time the segment was last modified. */ - updated: string; + updated?: string; } /** * An segment collection lists Analytics segments that the user has access to. @@ -2146,40 +2149,40 @@ export namespace analytics_v3 { /** * A list of segments. */ - items: Schema$Segment[]; + items?: Schema$Segment[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type for segments. */ - kind: string; + kind?: string; /** * Link to next page for this segment collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this segment collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for Analytics unsampled report resource. @@ -2188,84 +2191,84 @@ export namespace analytics_v3 { /** * Account ID to which this unsampled report belongs. */ - accountId: string; + accountId?: string; /** * Download details for a file stored in Google Cloud Storage. */ - cloudStorageDownloadDetails: any; + cloudStorageDownloadDetails?: any; /** * Time this unsampled report was created. */ - created: string; + created?: string; /** * The dimensions for the unsampled report. */ - dimensions: string; + dimensions?: string; /** * The type of download you need to use for the report data file. Possible * values include `GOOGLE_DRIVE` and `GOOGLE_CLOUD_STORAGE`. If the value is * `GOOGLE_DRIVE`, see the `driveDownloadDetails` field. If the value is * `GOOGLE_CLOUD_STORAGE`, see the `cloudStorageDownloadDetails` field. */ - downloadType: string; + downloadType?: string; /** * Download details for a file stored in Google Drive. */ - driveDownloadDetails: any; + driveDownloadDetails?: any; /** * The end date for the unsampled report. */ - enddate: string; + 'end-date'?: string; /** * The filters for the unsampled report. */ - filters: string; + filters?: string; /** * Unsampled report ID. */ - id: string; + id?: string; /** * Resource type for an Analytics unsampled report. */ - kind: string; + kind?: string; /** * The metrics for the unsampled report. */ - metrics: string; + metrics?: string; /** * View (Profile) ID to which this unsampled report belongs. */ - profileId: string; + profileId?: string; /** * The segment for the unsampled report. */ - segment: string; + segment?: string; /** * Link for this unsampled report. */ - selfLink: string; + selfLink?: string; /** * The start date for the unsampled report. */ - startdate: string; + 'start-date'?: string; /** * Status of this unsampled report. Possible values are PENDING, COMPLETED, * or FAILED. */ - status: string; + status?: string; /** * Title of the unsampled report. */ - title: string; + title?: string; /** * Time this unsampled report was last modified. */ - updated: string; + updated?: string; /** * Web property ID to which this unsampled report belongs. The web property * ID is of the form UA-XXXXX-YY. */ - webPropertyId: string; + webPropertyId?: string; } /** * An unsampled report collection lists Analytics unsampled reports to which @@ -2277,40 +2280,40 @@ export namespace analytics_v3 { /** * A list of unsampled reports. */ - items: Schema$UnsampledReport[]; + items?: Schema$UnsampledReport[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this unsampled report collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this unsampled report collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * resources in the result. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * Metadata returned for an upload operation. @@ -2319,32 +2322,32 @@ export namespace analytics_v3 { /** * Account Id to which this upload belongs. */ - accountId: string; + accountId?: string; /** * Custom data source Id to which this data import belongs. */ - customDataSourceId: string; + customDataSourceId?: string; /** * Data import errors collection. */ - errors: string[]; + errors?: string[]; /** * A unique ID for this upload. */ - id: string; + id?: string; /** * Resource type for Analytics upload. */ - kind: string; + kind?: string; /** * Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, * DELETED. */ - status: string; + status?: string; /** * Time this file is uploaded. */ - uploadTime: string; + uploadTime?: string; } /** * Upload collection lists Analytics uploads to which the user has access. @@ -2355,36 +2358,36 @@ export namespace analytics_v3 { /** * A list of uploads. */ - items: Schema$Upload[]; + items?: Schema$Upload[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this upload collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this upload collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * resources in the result. */ - totalResults: number; + totalResults?: number; } /** * JSON template for a user reference. @@ -2393,12 +2396,12 @@ export namespace analytics_v3 { /** * Email ID of this user. */ - email: string; + email?: string; /** * User ID. */ - id: string; - kind: string; + id?: string; + kind?: string; } /** * A web property collection lists Analytics web properties to which the user @@ -2409,40 +2412,40 @@ export namespace analytics_v3 { /** * A list of web properties. */ - items: Schema$Webproperty[]; + items?: Schema$Webproperty[]; /** * The maximum number of resources the response can contain, regardless of * the actual number of resources returned. Its value ranges from 1 to 1000 * with a value of 1000 by default, or otherwise specified by the * max-results query parameter. */ - itemsPerPage: number; + itemsPerPage?: number; /** * Collection type. */ - kind: string; + kind?: string; /** * Link to next page for this web property collection. */ - nextLink: string; + nextLink?: string; /** * Link to previous page for this web property collection. */ - previousLink: string; + previousLink?: string; /** * The starting index of the resources, which is 1 by default or otherwise * specified by the start-index query parameter. */ - startIndex: number; + startIndex?: number; /** * The total number of results for the query, regardless of the number of * results in the response. */ - totalResults: number; + totalResults?: number; /** * Email ID of the authenticated user */ - username: string; + username?: string; } /** * JSON template for an Analytics web property. @@ -2451,73 +2454,73 @@ export namespace analytics_v3 { /** * Account ID to which this web property belongs. */ - accountId: string; + accountId?: string; /** * Child link for this web property. Points to the list of views (profiles) * for this web property. */ - childLink: any; + childLink?: any; /** * Time this web property was created. */ - created: string; + created?: string; /** * Default view (profile) ID. */ - defaultProfileId: string; + defaultProfileId?: string; /** * Web property ID of the form UA-XXXXX-YY. */ - id: string; + id?: string; /** * The industry vertical/category selected for this web property. */ - industryVertical: string; + industryVertical?: string; /** * Internal ID for this web property. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Resource type for Analytics WebProperty. */ - kind: string; + kind?: string; /** * Level for this web property. Possible values are STANDARD or PREMIUM. */ - level: string; + level?: string; /** * Name of this web property. */ - name: string; + name?: string; /** * Parent link for this web property. Points to the account to which this * web property belongs. */ - parentLink: any; + parentLink?: any; /** * Permissions the user has for this web property. */ - permissions: any; + permissions?: any; /** * View (Profile) count for this web property. */ - profileCount: number; + profileCount?: number; /** * Link for this web property. */ - selfLink: string; + selfLink?: string; /** * Indicates whether this web property is starred or not. */ - starred: boolean; + starred?: boolean; /** * Time this web property was last modified. */ - updated: string; + updated?: string; /** * Website url for this web property. */ - websiteUrl: string; + websiteUrl?: string; } /** * JSON template for a web property reference. @@ -2526,27 +2529,27 @@ export namespace analytics_v3 { /** * Account ID to which this web property belongs. */ - accountId: string; + accountId?: string; /** * Link for this web property. */ - href: string; + href?: string; /** * Web property ID of the form UA-XXXXX-YY. */ - id: string; + id?: string; /** * Internal ID for this web property. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Analytics web property reference. */ - kind: string; + kind?: string; /** * Name of this web property. */ - name: string; + name?: string; } /** * JSON template for an Analytics WebPropertySummary. WebPropertySummary @@ -2556,37 +2559,38 @@ export namespace analytics_v3 { /** * Web property ID of the form UA-XXXXX-YY. */ - id: string; + id?: string; /** * Internal ID for this web property. */ - internalWebPropertyId: string; + internalWebPropertyId?: string; /** * Resource type for Analytics WebPropertySummary. */ - kind: string; + kind?: string; /** * Level for this web property. Possible values are STANDARD or PREMIUM. */ - level: string; + level?: string; /** * Web property name. */ - name: string; + name?: string; /** * List of profiles under this web property. */ - profiles: Schema$ProfileSummary[]; + profiles?: Schema$ProfileSummary[]; /** * Indicates whether this web property is starred or not. */ - starred: boolean; + starred?: boolean; /** * Website url for this web property. */ - websiteUrl: string; + websiteUrl?: string; } + export class Resource$Data { root: Analytics; ga: Resource$Data$Ga; @@ -2604,6 +2608,8 @@ export namespace analytics_v3 { return this.root; } } + + export class Resource$Data$Ga { root: Analytics; constructor(root: Analytics) { @@ -2640,23 +2646,33 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Data$Ga$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Data$Ga$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Data$Ga$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Data$Ga$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Data$Ga$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Data$Ga$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2679,6 +2695,78 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Data$Ga$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A comma-separated list of Analytics dimensions. E.g., + * 'ga:browser,ga:city'. + */ + dimensions?: string; + /** + * End date for fetching Analytics data. Request can should specify an end + * date formatted as YYYY-MM-DD, or as a relative date (e.g., today, + * yesterday, or 7daysAgo). The default value is yesterday. + */ + 'end-date'?: string; + /** + * A comma-separated list of dimension or metric filters to be applied to + * Analytics data. + */ + filters?: string; + /** + * Unique table ID for retrieving Analytics data. Table ID is of the form + * ga:XXXX, where XXXX is the Analytics view (profile) ID. + */ + ids?: string; + /** + * The response will include empty rows if this parameter is set to true, + * the default is true + */ + 'include-empty-rows'?: boolean; + /** + * The maximum number of entries to include in this feed. + */ + 'max-results'?: number; + /** + * A comma-separated list of Analytics metrics. E.g., + * 'ga:sessions,ga:pageviews'. At least one metric must be specified. + */ + metrics?: string; + /** + * The selected format for the response. Default format is JSON. + */ + output?: string; + /** + * The desired sampling level. + */ + samplingLevel?: string; + /** + * An Analytics segment to be applied to data. + */ + segment?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for Analytics data. + */ + sort?: string; + /** + * Start date for fetching Analytics data. Requests can specify a start date + * formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, + * or 7daysAgo). The default value is 7daysAgo. + */ + 'start-date'?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Data$Mcf { root: Analytics; constructor(root: Analytics) { @@ -2712,23 +2800,33 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Data$Mcf$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Data$Mcf$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Data$Mcf$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Data$Mcf$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Data$Mcf$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Data$Mcf$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2751,6 +2849,66 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Data$Mcf$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A comma-separated list of Multi-Channel Funnels dimensions. E.g., + * 'mcf:source,mcf:medium'. + */ + dimensions?: string; + /** + * End date for fetching Analytics data. Requests can specify a start date + * formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, + * or 7daysAgo). The default value is 7daysAgo. + */ + 'end-date'?: string; + /** + * A comma-separated list of dimension or metric filters to be applied to + * the Analytics data. + */ + filters?: string; + /** + * Unique table ID for retrieving Analytics data. Table ID is of the form + * ga:XXXX, where XXXX is the Analytics view (profile) ID. + */ + ids?: string; + /** + * The maximum number of entries to include in this feed. + */ + 'max-results'?: number; + /** + * A comma-separated list of Multi-Channel Funnels metrics. E.g., + * 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must + * be specified. + */ + metrics?: string; + /** + * The desired sampling level. + */ + samplingLevel?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for the Analytics data. + */ + sort?: string; + /** + * Start date for fetching Analytics data. Requests can specify a start date + * formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, + * or 7daysAgo). The default value is 7daysAgo. + */ + 'start-date'?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Data$Realtime { root: Analytics; constructor(root: Analytics) { @@ -2780,24 +2938,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Data$Realtime$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Data$Realtime$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Data$Realtime$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Data$Realtime$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Data$Realtime$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Data$Realtime$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2820,6 +2989,44 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Data$Realtime$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A comma-separated list of real time dimensions. E.g., + * 'rt:medium,rt:city'. + */ + dimensions?: string; + /** + * A comma-separated list of dimension or metric filters to be applied to + * real time data. + */ + filters?: string; + /** + * Unique table ID for retrieving real time data. Table ID is of the form + * ga:XXXX, where XXXX is the Analytics view (profile) ID. + */ + ids?: string; + /** + * The maximum number of entries to include in this feed. + */ + 'max-results'?: number; + /** + * A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At + * least one metric must be specified. + */ + metrics?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for real time data. + */ + sort?: string; + } + + export class Resource$Management { root: Analytics; @@ -2874,6 +3081,8 @@ export namespace analytics_v3 { return this.root; } } + + export class Resource$Management$Accounts { root: Analytics; constructor(root: Analytics) { @@ -2899,25 +3108,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accounts$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Accounts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2940,6 +3162,24 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of accounts to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first account to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Management$Accountsummaries { root: Analytics; constructor(root: Analytics) { @@ -2966,26 +3206,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accountsummaries$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Accountsummaries$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Accountsummaries$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Accountsummaries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Accountsummaries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accountsummaries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3008,6 +3261,25 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Accountsummaries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of account summaries to include in this response, + * where the largest acceptable value is 1000. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Management$Accountuserlinks { root: Analytics; constructor(root: Analytics) { @@ -3033,22 +3305,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accountuserlinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Management$Accountuserlinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Accountuserlinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Accountuserlinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Accountuserlinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accountuserlinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3086,26 +3373,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accountuserlinks$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Accountuserlinks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Accountuserlinks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Accountuserlinks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Accountuserlinks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accountuserlinks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3144,26 +3444,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accountuserlinks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Accountuserlinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Accountuserlinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Accountuserlinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Accountuserlinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accountuserlinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3202,26 +3515,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Accountuserlinks$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Accountuserlinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Accountuserlinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Accountuserlinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Accountuserlinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Accountuserlinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3246,6 +3572,77 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Accountuserlinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to delete the user link for. + */ + accountId?: string; + /** + * Link ID to delete the user link for. + */ + linkId?: string; + } + export interface Params$Resource$Management$Accountuserlinks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the user link for. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityUserLink; + } + export interface Params$Resource$Management$Accountuserlinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve the user links for. + */ + accountId?: string; + /** + * The maximum number of account-user links to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first account-user link to retrieve. Use this parameter + * as a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + export interface Params$Resource$Management$Accountuserlinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to update the account-user link for. + */ + accountId?: string; + /** + * Link ID to update the account-user link for. + */ + linkId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityUserLink; + } + + export class Resource$Management$Customdatasources { root: Analytics; constructor(root: Analytics) { @@ -3273,26 +3670,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Customdatasources$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Customdatasources$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Customdatasources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Customdatasources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Customdatasources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Customdatasources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3317,6 +3727,32 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Customdatasources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account Id for the custom data sources to retrieve. + */ + accountId?: string; + /** + * The maximum number of custom data sources to include in this response. + */ + 'max-results'?: number; + /** + * A 1-based index of the first custom data source to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property Id for the custom data sources to retrieve. + */ + webPropertyId?: string; + } + + export class Resource$Management$Customdimensions { root: Analytics; constructor(root: Analytics) { @@ -3343,24 +3779,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Customdimensions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Management$Customdimensions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Customdimensions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Customdimensions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Customdimensions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Customdimensions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3399,26 +3846,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Customdimensions$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Customdimensions$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Customdimensions$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Customdimensions$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Customdimensions$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Customdimensions$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3458,26 +3918,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Customdimensions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Customdimensions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Customdimensions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Customdimensions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Customdimensions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Customdimensions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3519,26 +3992,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Customdimensions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Customdimensions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Customdimensions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Customdimensions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Customdimensions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Customdimensions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3579,26 +4065,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Customdimensions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Customdimensions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Customdimensions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Customdimensions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Customdimensions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Customdimensions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3623,23 +4122,143 @@ export namespace analytics_v3 { } } - export class Resource$Management$Custommetrics { - root: Analytics; - constructor(root: Analytics) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Management$Customdimensions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * analytics.management.customMetrics.get - * @desc Get a custom metric to which the user has access. - * @alias analytics.management.customMetrics.get - * @memberOf! () + * Account ID for the custom dimension to retrieve. + */ + accountId?: string; + /** + * The ID of the custom dimension to retrieve. + */ + customDimensionId?: string; + /** + * Web property ID for the custom dimension to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Customdimensions$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom dimension to create. + */ + accountId?: string; + /** + * Web property ID for the custom dimension to create. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomDimension; + } + export interface Params$Resource$Management$Customdimensions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom dimensions to retrieve. + */ + accountId?: string; + /** + * The maximum number of custom dimensions to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID for the custom dimensions to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Customdimensions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom dimension to update. + */ + accountId?: string; + /** + * Custom dimension ID for the custom dimension to update. + */ + customDimensionId?: string; + /** + * Force the update and ignore any warnings related to the custom dimension + * being linked to a custom data source / data set. + */ + ignoreCustomDataSourceLinks?: boolean; + /** + * Web property ID for the custom dimension to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomDimension; + } + export interface Params$Resource$Management$Customdimensions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom dimension to update. + */ + accountId?: string; + /** + * Custom dimension ID for the custom dimension to update. + */ + customDimensionId?: string; + /** + * Force the update and ignore any warnings related to the custom dimension + * being linked to a custom data source / data set. + */ + ignoreCustomDataSourceLinks?: boolean; + /** + * Web property ID for the custom dimension to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomDimension; + } + + + export class Resource$Management$Custommetrics { + root: Analytics; + constructor(root: Analytics) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * analytics.management.customMetrics.get + * @desc Get a custom metric to which the user has access. + * @alias analytics.management.customMetrics.get + * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId Account ID for the custom metric to retrieve. @@ -3649,24 +4268,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Custommetrics$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Management$Custommetrics$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Custommetrics$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Custommetrics$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Custommetrics$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Custommetrics$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3705,26 +4335,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Custommetrics$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Custommetrics$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Custommetrics$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Custommetrics$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Custommetrics$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Custommetrics$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3764,26 +4407,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Custommetrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Custommetrics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Custommetrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Custommetrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Custommetrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Custommetrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3825,26 +4481,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Custommetrics$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Custommetrics$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Custommetrics$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Management$Custommetrics$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Custommetrics$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Custommetrics$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3885,26 +4554,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Custommetrics$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Custommetrics$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Custommetrics$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Custommetrics$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Custommetrics$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Custommetrics$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3929,6 +4611,126 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Custommetrics$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom metric to retrieve. + */ + accountId?: string; + /** + * The ID of the custom metric to retrieve. + */ + customMetricId?: string; + /** + * Web property ID for the custom metric to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Custommetrics$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom metric to create. + */ + accountId?: string; + /** + * Web property ID for the custom dimension to create. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomMetric; + } + export interface Params$Resource$Management$Custommetrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom metrics to retrieve. + */ + accountId?: string; + /** + * The maximum number of custom metrics to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID for the custom metrics to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Custommetrics$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom metric to update. + */ + accountId?: string; + /** + * Custom metric ID for the custom metric to update. + */ + customMetricId?: string; + /** + * Force the update and ignore any warnings related to the custom metric + * being linked to a custom data source / data set. + */ + ignoreCustomDataSourceLinks?: boolean; + /** + * Web property ID for the custom metric to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomMetric; + } + export interface Params$Resource$Management$Custommetrics$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the custom metric to update. + */ + accountId?: string; + /** + * Custom metric ID for the custom metric to update. + */ + customMetricId?: string; + /** + * Force the update and ignore any warnings related to the custom metric + * being linked to a custom data source / data set. + */ + ignoreCustomDataSourceLinks?: boolean; + /** + * Web property ID for the custom metric to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomMetric; + } + + export class Resource$Management$Experiments { root: Analytics; constructor(root: Analytics) { @@ -3956,22 +4758,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Experiments$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Experiments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Experiments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Management$Experiments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Experiments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Experiments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4012,23 +4829,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Management$Experiments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Management$Experiments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Experiments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Experiments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Experiments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Experiments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4069,26 +4898,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Experiments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Experiments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Experiments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Experiments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Experiments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Experiments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4129,26 +4971,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Experiments$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Experiments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Experiments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Experiments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Experiments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Experiments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4190,26 +5045,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Experiments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Experiments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Experiments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Experiments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Experiments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Experiments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4251,26 +5119,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Experiments$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Experiments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Experiments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Experiments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Experiments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Experiments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4296,53 +5177,219 @@ export namespace analytics_v3 { } } - export class Resource$Management$Filters { - root: Analytics; - constructor(root: Analytics) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Management$Experiments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * Account ID to which the experiment belongs + */ + accountId?: string; + /** + * ID of the experiment to delete + */ + experimentId?: string; + /** + * View (Profile) ID to which the experiment belongs + */ + profileId?: string; + /** + * Web property ID to which the experiment belongs + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Experiments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Account ID to retrieve the experiment for. + */ + accountId?: string; + /** + * Experiment ID to retrieve the experiment for. + */ + experimentId?: string; + /** + * View (Profile) ID to retrieve the experiment for. + */ + profileId?: string; + /** + * Web property ID to retrieve the experiment for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Experiments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * analytics.management.filters.delete - * @desc Delete a filter. - * @alias analytics.management.filters.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.accountId Account ID to delete the filter for. - * @param {string} params.filterId ID of the filter to be deleted. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * Account ID to create the experiment for. */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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( + accountId?: string; + /** + * View (Profile) ID to create the experiment for. + */ + profileId?: string; + /** + * Web property ID to create the experiment for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Experiment; + } + export interface Params$Resource$Management$Experiments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve experiments for. + */ + accountId?: string; + /** + * The maximum number of experiments to include in this response. + */ + 'max-results'?: number; + /** + * View (Profile) ID to retrieve experiments for. + */ + profileId?: string; + /** + * An index of the first experiment to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID to retrieve experiments for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Experiments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID of the experiment to update. + */ + accountId?: string; + /** + * Experiment ID of the experiment to update. + */ + experimentId?: string; + /** + * View (Profile) ID of the experiment to update. + */ + profileId?: string; + /** + * Web property ID of the experiment to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Experiment; + } + export interface Params$Resource$Management$Experiments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID of the experiment to update. + */ + accountId?: string; + /** + * Experiment ID of the experiment to update. + */ + experimentId?: string; + /** + * View (Profile) ID of the experiment to update. + */ + profileId?: string; + /** + * Web property ID of the experiment to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Experiment; + } + + + export class Resource$Management$Filters { + root: Analytics; + constructor(root: Analytics) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * analytics.management.filters.delete + * @desc Delete a filter. + * @alias analytics.management.filters.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.accountId Account ID to delete the filter for. + * @param {string} params.filterId ID of the filter to be deleted. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Management$Filters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Management$Filters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Filters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Management$Filters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Filters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Filters$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( { url: (rootUrl + @@ -4377,23 +5424,34 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Management$Filters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Management$Filters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Filters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Filters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Filters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Filters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4431,25 +5489,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Filters$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Filters$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Filters$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Filters$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Filters$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Filters$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4487,25 +5558,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Filters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Filters$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Filters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Filters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Filters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Filters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4543,25 +5627,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Filters$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Filters$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Filters$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Management$Filters$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Filters$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Filters$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4600,25 +5697,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Filters$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Filters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Filters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Filters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Filters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Filters$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4643,6 +5753,111 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Filters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to delete the filter for. + */ + accountId?: string; + /** + * ID of the filter to be deleted. + */ + filterId?: string; + } + export interface Params$Resource$Management$Filters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve filters for. + */ + accountId?: string; + /** + * Filter ID to retrieve filters for. + */ + filterId?: string; + } + export interface Params$Resource$Management$Filters$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create filter for. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$Filter; + } + export interface Params$Resource$Management$Filters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve filters for. + */ + accountId?: string; + /** + * The maximum number of filters to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + export interface Params$Resource$Management$Filters$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the filter belongs. + */ + accountId?: string; + /** + * ID of the filter to be updated. + */ + filterId?: string; + /** + * Request body metadata + */ + resource?: Schema$Filter; + } + export interface Params$Resource$Management$Filters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the filter belongs. + */ + accountId?: string; + /** + * ID of the filter to be updated. + */ + filterId?: string; + /** + * Request body metadata + */ + resource?: Schema$Filter; + } + + export class Resource$Management$Goals { root: Analytics; constructor(root: Analytics) { @@ -4670,21 +5885,34 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Management$Goals$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Management$Goals$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Goals$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Goals$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Goals$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Goals$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4724,23 +5952,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Goals$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Goals$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Goals$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Goals$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Goals$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Goals$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4781,25 +6024,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Goals$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Goals$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Goals$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Goals$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Goals$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Goals$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4840,23 +6096,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Goals$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Goals$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Goals$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Management$Goals$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Goals$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Goals$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4897,23 +6168,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Goals$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Goals$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Goals$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Goals$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Goals$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Goals$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4938,6 +6224,141 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Goals$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve the goal for. + */ + accountId?: string; + /** + * Goal ID to retrieve the goal for. + */ + goalId?: string; + /** + * View (Profile) ID to retrieve the goal for. + */ + profileId?: string; + /** + * Web property ID to retrieve the goal for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Goals$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the goal for. + */ + accountId?: string; + /** + * View (Profile) ID to create the goal for. + */ + profileId?: string; + /** + * Web property ID to create the goal for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Goal; + } + export interface Params$Resource$Management$Goals$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve goals for. Can either be a specific account ID or + * '~all', which refers to all the accounts that user has access to. + */ + accountId?: string; + /** + * The maximum number of goals to include in this response. + */ + 'max-results'?: number; + /** + * View (Profile) ID to retrieve goals for. Can either be a specific view + * (profile) ID or '~all', which refers to all the views (profiles) that + * user has access to. + */ + profileId?: string; + /** + * An index of the first goal to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID to retrieve goals for. Can either be a specific web + * property ID or '~all', which refers to all the web properties that user + * has access to. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Goals$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to update the goal. + */ + accountId?: string; + /** + * Index of the goal to be updated. + */ + goalId?: string; + /** + * View (Profile) ID to update the goal. + */ + profileId?: string; + /** + * Web property ID to update the goal. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Goal; + } + export interface Params$Resource$Management$Goals$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to update the goal. + */ + accountId?: string; + /** + * Index of the goal to be updated. + */ + goalId?: string; + /** + * View (Profile) ID to update the goal. + */ + profileId?: string; + /** + * Web property ID to update the goal. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Goal; + } + + export class Resource$Management$Profilefilterlinks { root: Analytics; constructor(root: Analytics) { @@ -4965,22 +6386,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profilefilterlinks$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profilefilterlinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Profilefilterlinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Management$Profilefilterlinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profilefilterlinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profilefilterlinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5020,24 +6456,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Profilefilterlinks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Management$Profilefilterlinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Profilefilterlinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Profilefilterlinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profilefilterlinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profilefilterlinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5077,26 +6524,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profilefilterlinks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Profilefilterlinks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profilefilterlinks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Profilefilterlinks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profilefilterlinks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profilefilterlinks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5137,26 +6597,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profilefilterlinks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Profilefilterlinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profilefilterlinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Profilefilterlinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profilefilterlinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profilefilterlinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5198,26 +6671,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profilefilterlinks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Profilefilterlinks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Profilefilterlinks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Profilefilterlinks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profilefilterlinks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profilefilterlinks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5258,26 +6744,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profilefilterlinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Profilefilterlinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profilefilterlinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Profilefilterlinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profilefilterlinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profilefilterlinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5302,6 +6801,162 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Profilefilterlinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the profile filter link belongs. + */ + accountId?: string; + /** + * ID of the profile filter link to delete. + */ + linkId?: string; + /** + * Profile ID to which the filter link belongs. + */ + profileId?: string; + /** + * Web property Id to which the profile filter link belongs. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profilefilterlinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve profile filter link for. + */ + accountId?: string; + /** + * ID of the profile filter link. + */ + linkId?: string; + /** + * Profile ID to retrieve filter link for. + */ + profileId?: string; + /** + * Web property Id to retrieve profile filter link for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profilefilterlinks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create profile filter link for. + */ + accountId?: string; + /** + * Profile ID to create filter link for. + */ + profileId?: string; + /** + * Web property Id to create profile filter link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProfileFilterLink; + } + export interface Params$Resource$Management$Profilefilterlinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve profile filter links for. + */ + accountId?: string; + /** + * The maximum number of profile filter links to include in this response. + */ + 'max-results'?: number; + /** + * Profile ID to retrieve filter links for. Can either be a specific profile + * ID or '~all', which refers to all the profiles that user has access to. + */ + profileId?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property Id for profile filter links for. Can either be a specific + * web property ID or '~all', which refers to all the web properties that + * user has access to. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profilefilterlinks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which profile filter link belongs. + */ + accountId?: string; + /** + * ID of the profile filter link to be updated. + */ + linkId?: string; + /** + * Profile ID to which filter link belongs + */ + profileId?: string; + /** + * Web property Id to which profile filter link belongs + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProfileFilterLink; + } + export interface Params$Resource$Management$Profilefilterlinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which profile filter link belongs. + */ + accountId?: string; + /** + * ID of the profile filter link to be updated. + */ + linkId?: string; + /** + * Profile ID to which filter link belongs + */ + profileId?: string; + /** + * Web property Id to which profile filter link belongs + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProfileFilterLink; + } + + export class Resource$Management$Profiles { root: Analytics; constructor(root: Analytics) { @@ -5328,22 +6983,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profiles$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Management$Profiles$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profiles$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Management$Profiles$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profiles$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5382,23 +7052,34 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Management$Profiles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Management$Profiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Profiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Profiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Profiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5437,25 +7118,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profiles$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Profiles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profiles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Profiles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profiles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5495,25 +7189,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profiles$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Profiles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profiles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Profiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Profiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5554,25 +7261,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profiles$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Profiles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profiles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Management$Profiles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Profiles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5612,49 +7332,195 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['accountId', 'webPropertyId', 'profileId'], - pathParams: ['accountId', 'profileId', 'webPropertyId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + update( + params?: Params$Resource$Management$Profiles$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Profiles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Profiles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Profiles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profiles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profiles$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Management$Profiles$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to delete the view (profile) for. + */ + accountId?: string; + /** + * ID of the view (profile) to be deleted. + */ + profileId?: string; + /** + * Web property ID to delete the view (profile) for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve the view (profile) for. + */ + accountId?: string; + /** + * View (Profile) ID to retrieve the view (profile) for. + */ + profileId?: string; + /** + * Web property ID to retrieve the view (profile) for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profiles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the view (profile) for. + */ + accountId?: string; + /** + * Web property ID to create the view (profile) for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Profile; + } + export interface Params$Resource$Management$Profiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID for the view (profiles) to retrieve. Can either be a specific + * account ID or '~all', which refers to all the accounts to which the user + * has access. + */ + accountId?: string; + /** + * The maximum number of views (profiles) to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID for the views (profiles) to retrieve. Can either be a + * specific web property ID or '~all', which refers to all the web + * properties to which the user has access. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profiles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the view (profile) belongs + */ + accountId?: string; + /** + * ID of the view (profile) to be updated. + */ + profileId?: string; + /** + * Web property ID to which the view (profile) belongs + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Profile; + } + export interface Params$Resource$Management$Profiles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the view (profile) belongs + */ + accountId?: string; + /** + * ID of the view (profile) to be updated. + */ + profileId?: string; + /** + * Web property ID to which the view (profile) belongs + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Profile; } + export class Resource$Management$Profileuserlinks { root: Analytics; constructor(root: Analytics) { @@ -5682,22 +7548,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profileuserlinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Management$Profileuserlinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Profileuserlinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Profileuserlinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profileuserlinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profileuserlinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5737,26 +7618,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profileuserlinks$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profileuserlinks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Profileuserlinks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Management$Profileuserlinks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profileuserlinks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profileuserlinks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5797,26 +7691,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profileuserlinks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Profileuserlinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Profileuserlinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Profileuserlinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profileuserlinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profileuserlinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5858,26 +7765,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Profileuserlinks$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Profileuserlinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Profileuserlinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Profileuserlinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Profileuserlinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Profileuserlinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5902,6 +7822,113 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Profileuserlinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to delete the user link for. + */ + accountId?: string; + /** + * Link ID to delete the user link for. + */ + linkId?: string; + /** + * View (Profile) ID to delete the user link for. + */ + profileId?: string; + /** + * Web Property ID to delete the user link for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profileuserlinks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the user link for. + */ + accountId?: string; + /** + * View (Profile) ID to create the user link for. + */ + profileId?: string; + /** + * Web Property ID to create the user link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityUserLink; + } + export interface Params$Resource$Management$Profileuserlinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID which the given view (profile) belongs to. + */ + accountId?: string; + /** + * The maximum number of profile-user links to include in this response. + */ + 'max-results'?: number; + /** + * View (Profile) ID to retrieve the profile-user links for. Can either be a + * specific profile ID or '~all', which refers to all the profiles that user + * has access to. + */ + profileId?: string; + /** + * An index of the first profile-user link to retrieve. Use this parameter + * as a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web Property ID which the given view (profile) belongs to. Can either be + * a specific web property ID or '~all', which refers to all the web + * properties that user has access to. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Profileuserlinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to update the user link for. + */ + accountId?: string; + /** + * Link ID to update the user link for. + */ + linkId?: string; + /** + * View (Profile ID) to update the user link for. + */ + profileId?: string; + /** + * Web Property ID to update the user link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityUserLink; + } + + export class Resource$Management$Remarketingaudience { root: Analytics; constructor(root: Analytics) { @@ -5928,22 +7955,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Remarketingaudience$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Remarketingaudience$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Remarketingaudience$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Management$Remarketingaudience$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Remarketingaudience$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Remarketingaudience$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5982,26 +8025,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Remarketingaudience$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Management$Remarketingaudience$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Remarketingaudience$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Remarketingaudience$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Remarketingaudience$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Remarketingaudience$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6040,28 +8092,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Remarketingaudience$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Management$Remarketingaudience$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Remarketingaudience$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: + Params$Resource$Management$Remarketingaudience$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Remarketingaudience$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Remarketingaudience$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6102,28 +8166,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Management$Remarketingaudience$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Remarketingaudience$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Management$Remarketingaudience$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Remarketingaudience$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Remarketingaudience$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Remarketingaudience$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6164,28 +8240,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Remarketingaudience$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Management$Remarketingaudience$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Remarketingaudience$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Management$Remarketingaudience$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Remarketingaudience$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Remarketingaudience$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6225,28 +8312,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Remarketingaudience$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Remarketingaudience$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Management$Remarketingaudience$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Management$Remarketingaudience$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Remarketingaudience$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Remarketingaudience$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6271,6 +8370,139 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Remarketingaudience$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the remarketing audience belongs. + */ + accountId?: string; + /** + * The ID of the remarketing audience to delete. + */ + remarketingAudienceId?: string; + /** + * Web property ID to which the remarketing audience belongs. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Remarketingaudience$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account ID of the remarketing audience to retrieve. + */ + accountId?: string; + /** + * The ID of the remarketing audience to retrieve. + */ + remarketingAudienceId?: string; + /** + * The web property ID of the remarketing audience to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Remarketingaudience$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account ID for which to create the remarketing audience. + */ + accountId?: string; + /** + * Web property ID for which to create the remarketing audience. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingAudience; + } + export interface Params$Resource$Management$Remarketingaudience$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account ID of the remarketing audiences to retrieve. + */ + accountId?: string; + /** + * The maximum number of remarketing audiences to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * + */ + type?: string; + /** + * The web property ID of the remarketing audiences to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Remarketingaudience$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account ID of the remarketing audience to update. + */ + accountId?: string; + /** + * The ID of the remarketing audience to update. + */ + remarketingAudienceId?: string; + /** + * The web property ID of the remarketing audience to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingAudience; + } + export interface Params$Resource$Management$Remarketingaudience$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The account ID of the remarketing audience to update. + */ + accountId?: string; + /** + * The ID of the remarketing audience to update. + */ + remarketingAudienceId?: string; + /** + * The web property ID of the remarketing audience to update. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingAudience; + } + + export class Resource$Management$Segments { root: Analytics; constructor(root: Analytics) { @@ -6296,25 +8528,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Segments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Segments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Segments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Segments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Segments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Segments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6337,6 +8582,24 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Segments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of segments to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first segment to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + + export class Resource$Management$Unsampledreports { root: Analytics; constructor(root: Analytics) { @@ -6364,22 +8627,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Unsampledreports$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Management$Unsampledreports$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Unsampledreports$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Management$Unsampledreports$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Unsampledreports$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Unsampledreports$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6421,24 +8699,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Unsampledreports$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Management$Unsampledreports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Unsampledreports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Unsampledreports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Unsampledreports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Unsampledreports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6480,26 +8769,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Unsampledreports$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Unsampledreports$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Unsampledreports$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Unsampledreports$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Unsampledreports$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Unsampledreports$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6540,26 +8842,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Unsampledreports$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Unsampledreports$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Unsampledreports$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Unsampledreports$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Unsampledreports$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Unsampledreports$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6584,6 +8899,108 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Unsampledreports$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to delete the unsampled report for. + */ + accountId?: string; + /** + * View (Profile) ID to delete the unsampled report for. + */ + profileId?: string; + /** + * ID of the unsampled report to be deleted. + */ + unsampledReportId?: string; + /** + * Web property ID to delete the unsampled reports for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Unsampledreports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve unsampled report for. + */ + accountId?: string; + /** + * View (Profile) ID to retrieve unsampled report for. + */ + profileId?: string; + /** + * ID of the unsampled report to retrieve. + */ + unsampledReportId?: string; + /** + * Web property ID to retrieve unsampled reports for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Unsampledreports$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the unsampled report for. + */ + accountId?: string; + /** + * View (Profile) ID to create the unsampled report for. + */ + profileId?: string; + /** + * Web property ID to create the unsampled report for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$UnsampledReport; + } + export interface Params$Resource$Management$Unsampledreports$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve unsampled reports for. Must be a specific account + * ID, ~all is not supported. + */ + accountId?: string; + /** + * The maximum number of unsampled reports to include in this response. + */ + 'max-results'?: number; + /** + * View (Profile) ID to retrieve unsampled reports for. Must be a specific + * view (profile) ID, ~all is not supported. + */ + profileId?: string; + /** + * An index of the first unsampled report to retrieve. Use this parameter as + * a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID to retrieve unsampled reports for. Must be a specific web + * property ID, ~all is not supported. + */ + webPropertyId?: string; + } + + export class Resource$Management$Uploads { root: Analytics; constructor(root: Analytics) { @@ -6611,22 +9028,37 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteUploadData(params?: any, options?: MethodOptions): AxiosPromise; deleteUploadData( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Uploads$Deleteuploaddata, + options?: MethodOptions): AxiosPromise; + deleteUploadData( + params: Params$Resource$Management$Uploads$Deleteuploaddata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteUploadData( + params: Params$Resource$Management$Uploads$Deleteuploaddata, + callback: BodyResponseCallback): void; + deleteUploadData(callback: BodyResponseCallback): void; deleteUploadData( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Uploads$Deleteuploaddata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Uploads$Deleteuploaddata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Uploads$Deleteuploaddata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6666,23 +9098,34 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Management$Uploads$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Management$Uploads$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Uploads$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Uploads$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Uploads$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Uploads$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6725,25 +9168,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Uploads$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Uploads$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Uploads$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Uploads$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Management$Uploads$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Uploads$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6785,26 +9241,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - uploadData(params?: any, options?: MethodOptions): - AxiosPromise; uploadData( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Uploads$Uploaddata, + options?: MethodOptions): AxiosPromise; + uploadData( + params: Params$Resource$Management$Uploads$Uploaddata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + uploadData( + params: Params$Resource$Management$Uploads$Uploaddata, + callback: BodyResponseCallback): void; + uploadData(callback: BodyResponseCallback): void; uploadData( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Uploads$Uploaddata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Uploads$Uploaddata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Uploads$Uploaddata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6833,6 +9301,115 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Uploads$Deleteuploaddata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account Id for the uploads to be deleted. + */ + accountId?: string; + /** + * Custom data source Id for the uploads to be deleted. + */ + customDataSourceId?: string; + /** + * Web property Id for the uploads to be deleted. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$AnalyticsDataimportDeleteUploadDataRequest; + } + export interface Params$Resource$Management$Uploads$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account Id for the upload to retrieve. + */ + accountId?: string; + /** + * Custom data source Id for upload to retrieve. + */ + customDataSourceId?: string; + /** + * Upload Id to retrieve. + */ + uploadId?: string; + /** + * Web property Id for the upload to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Uploads$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account Id for the uploads to retrieve. + */ + accountId?: string; + /** + * Custom data source Id for uploads to retrieve. + */ + customDataSourceId?: string; + /** + * The maximum number of uploads to include in this response. + */ + 'max-results'?: number; + /** + * A 1-based index of the first upload to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property Id for the uploads to retrieve. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Uploads$Uploaddata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account Id associated with the upload. + */ + accountId?: string; + /** + * Custom data source Id to which the data being uploaded belongs. + */ + customDataSourceId?: string; + /** + * Web property UA-string associated with the upload. + */ + webPropertyId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Management$Webproperties { root: Analytics; constructor(root: Analytics) { @@ -6858,24 +9435,35 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Webproperties$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Management$Webproperties$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Webproperties$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Management$Webproperties$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webproperties$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webproperties$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6915,26 +9503,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webproperties$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Webproperties$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Webproperties$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Management$Webproperties$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webproperties$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webproperties$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6973,26 +9574,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webproperties$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Webproperties$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Webproperties$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Webproperties$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webproperties$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webproperties$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7032,26 +9646,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webproperties$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Webproperties$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Webproperties$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Management$Webproperties$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webproperties$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webproperties$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7077,63 +9704,168 @@ export namespace analytics_v3 { /** - * analytics.management.webproperties.update - * @desc Updates an existing web property. - * @alias analytics.management.webproperties.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.accountId Account ID to which the web property belongs - * @param {string} params.webPropertyId Web property ID - * @param {().Webproperty} 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 + * analytics.management.webproperties.update + * @desc Updates an existing web property. + * @alias analytics.management.webproperties.update + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.accountId Account ID to which the web property belongs + * @param {string} params.webPropertyId Web property ID + * @param {().Webproperty} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + update( + params?: Params$Resource$Management$Webproperties$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Webproperties$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Webproperties$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Management$Webproperties$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webproperties$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webproperties$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Management$Webproperties$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve the web property for. + */ + accountId?: string; + /** + * ID to retrieve the web property for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Webproperties$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the web property for. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$Webproperty; + } + export interface Params$Resource$Management$Webproperties$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to retrieve web properties for. Can either be a specific + * account ID or '~all', which refers to all the accounts that user has + * access to. + */ + accountId?: string; + /** + * The maximum number of web properties to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + } + export interface Params$Resource$Management$Webproperties$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the web property belongs + */ + accountId?: string; + /** + * Web property ID + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Webproperty; + } + export interface Params$Resource$Management$Webproperties$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to which the web property belongs */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['accountId', 'webPropertyId'], - pathParams: ['accountId', 'webPropertyId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + accountId?: string; + /** + * Web property ID + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Webproperty; } + export class Resource$Management$Webpropertyadwordslinks { root: Analytics; constructor(root: Analytics) { @@ -7160,22 +9892,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyadwordslinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Management$Webpropertyadwordslinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Webpropertyadwordslinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Management$Webpropertyadwordslinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyadwordslinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Management$Webpropertyadwordslinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7215,24 +9964,36 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Management$Webpropertyadwordslinks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Management$Webpropertyadwordslinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Management$Webpropertyadwordslinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Management$Webpropertyadwordslinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyadwordslinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyadwordslinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7272,26 +10033,41 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyadwordslinks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Webpropertyadwordslinks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Webpropertyadwordslinks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Management$Webpropertyadwordslinks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyadwordslinks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Management$Webpropertyadwordslinks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7331,26 +10107,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyadwordslinks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Management$Webpropertyadwordslinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Webpropertyadwordslinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Management$Webpropertyadwordslinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyadwordslinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyadwordslinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7391,26 +10181,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyadwordslinks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Management$Webpropertyadwordslinks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Management$Webpropertyadwordslinks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Management$Webpropertyadwordslinks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyadwordslinks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyadwordslinks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7451,26 +10255,41 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyadwordslinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Webpropertyadwordslinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Webpropertyadwordslinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Management$Webpropertyadwordslinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyadwordslinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Management$Webpropertyadwordslinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7496,6 +10315,136 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Webpropertyadwordslinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the account which the given web property belongs to. + */ + accountId?: string; + /** + * Web property AdWords link ID. + */ + webPropertyAdWordsLinkId?: string; + /** + * Web property ID to delete the AdWords link for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Webpropertyadwordslinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the account which the given web property belongs to. + */ + accountId?: string; + /** + * Web property-AdWords link ID. + */ + webPropertyAdWordsLinkId?: string; + /** + * Web property ID to retrieve the AdWords link for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Webpropertyadwordslinks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the Google Analytics account to create the link for. + */ + accountId?: string; + /** + * Web property ID to create the link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityAdWordsLink; + } + export interface Params$Resource$Management$Webpropertyadwordslinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the account which the given web property belongs to. + */ + accountId?: string; + /** + * The maximum number of webProperty-AdWords links to include in this + * response. + */ + 'max-results'?: number; + /** + * An index of the first webProperty-AdWords link to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web property ID to retrieve the AdWords links for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Webpropertyadwordslinks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the account which the given web property belongs to. + */ + accountId?: string; + /** + * Web property-AdWords link ID. + */ + webPropertyAdWordsLinkId?: string; + /** + * Web property ID to retrieve the AdWords link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityAdWordsLink; + } + export interface Params$Resource$Management$Webpropertyadwordslinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the account which the given web property belongs to. + */ + accountId?: string; + /** + * Web property-AdWords link ID. + */ + webPropertyAdWordsLinkId?: string; + /** + * Web property ID to retrieve the AdWords link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityAdWordsLink; + } + + export class Resource$Management$Webpropertyuserlinks { root: Analytics; constructor(root: Analytics) { @@ -7522,22 +10471,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyuserlinks$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Webpropertyuserlinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Management$Webpropertyuserlinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Management$Webpropertyuserlinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyuserlinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyuserlinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7576,26 +10541,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyuserlinks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Management$Webpropertyuserlinks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Management$Webpropertyuserlinks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Management$Webpropertyuserlinks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyuserlinks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyuserlinks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7635,26 +10614,39 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyuserlinks$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Management$Webpropertyuserlinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Management$Webpropertyuserlinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Management$Webpropertyuserlinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyuserlinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyuserlinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7694,26 +10686,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Management$Webpropertyuserlinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Management$Webpropertyuserlinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Management$Webpropertyuserlinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Management$Webpropertyuserlinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Management$Webpropertyuserlinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Management$Webpropertyuserlinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7738,6 +10744,95 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Management$Webpropertyuserlinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to delete the user link for. + */ + accountId?: string; + /** + * Link ID to delete the user link for. + */ + linkId?: string; + /** + * Web Property ID to delete the user link for. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Webpropertyuserlinks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to create the user link for. + */ + accountId?: string; + /** + * Web Property ID to create the user link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityUserLink; + } + export interface Params$Resource$Management$Webpropertyuserlinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID which the given web property belongs to. + */ + accountId?: string; + /** + * The maximum number of webProperty-user Links to include in this response. + */ + 'max-results'?: number; + /** + * An index of the first webProperty-user link to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + */ + 'start-index'?: number; + /** + * Web Property ID for the webProperty-user links to retrieve. Can either be + * a specific web property ID or '~all', which refers to all the web + * properties that user has access to. + */ + webPropertyId?: string; + } + export interface Params$Resource$Management$Webpropertyuserlinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID to update the account-user link for. + */ + accountId?: string; + /** + * Link ID to update the account-user link for. + */ + linkId?: string; + /** + * Web property ID to update the account-user link for. + */ + webPropertyId?: string; + /** + * Request body metadata + */ + resource?: Schema$EntityUserLink; + } + + export class Resource$Metadata { root: Analytics; @@ -7752,6 +10847,8 @@ export namespace analytics_v3 { return this.root; } } + + export class Resource$Metadata$Columns { root: Analytics; constructor(root: Analytics) { @@ -7776,25 +10873,38 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Metadata$Columns$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Metadata$Columns$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Metadata$Columns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Metadata$Columns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Metadata$Columns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metadata$Columns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7817,6 +10927,20 @@ export namespace analytics_v3 { } } + export interface Params$Resource$Metadata$Columns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core + * Reporting API + */ + reportType?: string; + } + + export class Resource$Provisioning { root: Analytics; @@ -7842,26 +10966,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createAccountTicket(params?: any, options?: MethodOptions): - AxiosPromise; createAccountTicket( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Provisioning$Createaccountticket, + options?: MethodOptions): AxiosPromise; + createAccountTicket( + params: Params$Resource$Provisioning$Createaccountticket, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createAccountTicket( + params: Params$Resource$Provisioning$Createaccountticket, + callback: BodyResponseCallback): void; + createAccountTicket(callback: BodyResponseCallback): + void; createAccountTicket( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Provisioning$Createaccountticket| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Provisioning$Createaccountticket; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Provisioning$Createaccountticket; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7896,28 +11034,40 @@ export namespace analytics_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createAccountTree(params?: any, options?: MethodOptions): - AxiosPromise; createAccountTree( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Provisioning$Createaccounttree, + options?: MethodOptions): AxiosPromise; + createAccountTree( + params: Params$Resource$Provisioning$Createaccounttree, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createAccountTree( + params: Params$Resource$Provisioning$Createaccounttree, + callback: BodyResponseCallback): void; + createAccountTree( + callback: BodyResponseCallback): void; createAccountTree( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Provisioning$Createaccounttree| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Provisioning$Createaccounttree; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Provisioning$Createaccounttree; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7939,4 +11089,17 @@ export namespace analytics_v3 { } } } + + export interface Params$Resource$Provisioning$Createaccountticket { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Provisioning$Createaccounttree { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index a578b883f24..0ccaf75d41e 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace analyticsreporting_v4 { + export interface Options extends GlobalOptions { version: 'v4'; } + /** * Google Analytics Reporting API * @@ -83,18 +86,18 @@ export namespace analyticsreporting_v4 { * You do not need to supply a date range for the * `reportsRequest.dateRanges` field. */ - dateRange: Schema$DateRange; + dateRange?: Schema$DateRange; /** * A unique name for the cohort. If not defined name will be auto-generated * with values cohort_[1234...]. */ - name: string; + name?: string; /** * Type of the cohort. The only supported type as of now is * `FIRST_VISIT_DATE`. If this field is unspecified the cohort is treated as * `FIRST_VISIT_DATE` type cohort. */ - type: string; + type?: string; } /** * Defines a cohort group. For example: "cohortGroup": { @@ -110,7 +113,7 @@ export namespace analyticsreporting_v4 { /** * The definition for the cohort. */ - cohorts: Schema$Cohort[]; + cohorts?: Schema$Cohort[]; /** * Enable Life Time Value (LTV). LTV measures lifetime value for users * acquired through different channels. Please see: [Cohort @@ -133,7 +136,7 @@ export namespace analyticsreporting_v4 { * The `viewId` must be an [app view * ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews) */ - lifetimeValue: boolean; + lifetimeValue?: boolean; } /** * Column headers. @@ -142,11 +145,11 @@ export namespace analyticsreporting_v4 { /** * The dimension names in the response. */ - dimensions: string[]; + dimensions?: string[]; /** * Metric headers for the metrics in the response. */ - metricHeader: Schema$MetricHeader; + metricHeader?: Schema$MetricHeader; } /** * A contiguous set of days: startDate, startDate + 1 day, ..., endDate. The @@ -157,11 +160,11 @@ export namespace analyticsreporting_v4 { /** * The end date for the query in the format `YYYY-MM-DD`. */ - endDate: string; + endDate?: string; /** * The start date for the query in the format `YYYY-MM-DD`. */ - startDate: string; + startDate?: string; } /** * Used to return a list of metrics for a single DateRange / dimension @@ -171,11 +174,11 @@ export namespace analyticsreporting_v4 { /** * The values of each pivot region. */ - pivotValueRegions: Schema$PivotValueRegion[]; + pivotValueRegions?: Schema$PivotValueRegion[]; /** * Each value corresponds to each Metric in the request. */ - values: string[]; + values?: string[]; } /** * [Dimensions](https://support.google.com/analytics/answer/1033861) are @@ -210,11 +213,11 @@ export namespace analyticsreporting_v4 { * has to explicitly request `"orderType": * "HISTOGRAM_BUCKET"` for a histogram-mutated dimension. */ - histogramBuckets: string[]; + histogramBuckets?: string[]; /** * Name of the dimension to fetch, for example `ga:browser`. */ - name: string; + name?: string; } /** * Dimension filter specifies the filtering options on a dimension. @@ -223,27 +226,27 @@ export namespace analyticsreporting_v4 { /** * Should the match be case sensitive? Default is false. */ - caseSensitive: boolean; + caseSensitive?: boolean; /** * The dimension to filter on. A DimensionFilter must contain a dimension. */ - dimensionName: string; + dimensionName?: string; /** * Strings or regular expression to match against. Only the first value of * the list is used for comparison unless the operator is `IN_LIST`. If * `IN_LIST` operator, then the entire list is used to filter the dimensions * as explained in the description of the `IN_LIST` operator. */ - expressions: string[]; + expressions?: string[]; /** * Logical `NOT` operator. If this boolean is set to true, then the matching * dimension values will be excluded in the report. The default is false. */ - not: boolean; + not?: boolean; /** * How to match the dimension to the expression. The default is REGEXP. */ - operator: string; + operator?: string; } /** * A group of dimension filters. Set the operator value to specify how the @@ -254,12 +257,12 @@ export namespace analyticsreporting_v4 { * The repeated set of filters. They are logically combined based on the * operator specified. */ - filters: Schema$DimensionFilter[]; + filters?: Schema$DimensionFilter[]; /** * The operator for combining multiple dimension filters. If unspecified, it * is treated as an `OR`. */ - operator: string; + operator?: string; } /** * Dynamic segment definition for defining the segment within the request. A @@ -269,15 +272,15 @@ export namespace analyticsreporting_v4 { /** * The name of the dynamic segment. */ - name: string; + name?: string; /** * Session Segment to select sessions to include in the segment. */ - sessionSegment: Schema$SegmentDefinition; + sessionSegment?: Schema$SegmentDefinition; /** * User Segment to select users to include in the segment. */ - userSegment: Schema$SegmentDefinition; + userSegment?: Schema$SegmentDefinition; } /** * The batch request containing multiple report request. @@ -288,7 +291,7 @@ export namespace analyticsreporting_v4 { * maximum of 5 requests. All requests should have the same `dateRanges`, * `viewId`, `segments`, `samplingLevel`, and `cohortGroup`. */ - reportRequests: Schema$ReportRequest[]; + reportRequests?: Schema$ReportRequest[]; /** * Enables [resource based * quotas](/analytics/devguides/reporting/core/v4/limits-quotas#analytics_reporting_api_v4), @@ -299,7 +302,7 @@ export namespace analyticsreporting_v4 { * documentation](/analytics/devguides/reporting/core/v4/limits-quotas#analytics_reporting_api_v4) * for details. */ - useResourceQuotas: boolean; + useResourceQuotas?: boolean; } /** * The main response class which holds the reports from the Reporting API @@ -310,15 +313,15 @@ export namespace analyticsreporting_v4 { * The amount of resource quota tokens deducted to execute the query. * Includes all responses. */ - queryCost: number; + queryCost?: number; /** * Responses corresponding to each of the request. */ - reports: Schema$Report[]; + reports?: Schema$Report[]; /** * The amount of resource quota remaining for the property. */ - resourceQuotasRemaining: Schema$ResourceQuotasRemaining; + resourceQuotasRemaining?: Schema$ResourceQuotasRemaining; } /** * [Metrics](https://support.google.com/analytics/answer/1033861) are the @@ -333,7 +336,7 @@ export namespace analyticsreporting_v4 { * complex expression which cannot be used in filtering and sorting. The * alias is also used in the response column header. */ - alias: string; + alias?: string; /** * A metric expression in the request. An expression is constructed from one * or more metrics and numbers. Accepted operators include: Plus (+), Minus @@ -344,12 +347,12 @@ export namespace analyticsreporting_v4 { * mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics will result * in unexpected results. */ - expression: string; + expression?: string; /** * Specifies how the metric expression should be formatted, for example * `INTEGER`. */ - formattingType: string; + formattingType?: string; } /** * MetricFilter specifies the filter on a metric. @@ -358,24 +361,24 @@ export namespace analyticsreporting_v4 { /** * The value to compare against. */ - comparisonValue: string; + comparisonValue?: string; /** * The metric that will be filtered on. A metricFilter must contain a metric * name. A metric name can be an alias earlier defined as a metric or it can * also be a metric expression. */ - metricName: string; + metricName?: string; /** * Logical `NOT` operator. If this boolean is set to true, then the matching * metric values will be excluded in the report. The default is false. */ - not: boolean; + not?: boolean; /** * Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, * the default is `EQUAL`. If the operator is `IS_MISSING`, checks if the * metric is missing and would ignore the comparisonValue. */ - operator: string; + operator?: string; } /** * Represents a group of metric filters. Set the operator value to specify how @@ -386,12 +389,12 @@ export namespace analyticsreporting_v4 { * The repeated set of filters. They are logically combined based on the * operator specified. */ - filters: Schema$MetricFilter[]; + filters?: Schema$MetricFilter[]; /** * The operator for combining multiple metric filters. If unspecified, it is * treated as an `OR`. */ - operator: string; + operator?: string; } /** * The headers for the metrics. @@ -400,11 +403,11 @@ export namespace analyticsreporting_v4 { /** * Headers for the metrics in the response. */ - metricHeaderEntries: Schema$MetricHeaderEntry[]; + metricHeaderEntries?: Schema$MetricHeaderEntry[]; /** * Headers for the pivots in the response. */ - pivotHeaders: Schema$PivotHeader[]; + pivotHeaders?: Schema$PivotHeader[]; } /** * Header for the metrics. @@ -413,11 +416,11 @@ export namespace analyticsreporting_v4 { /** * The name of the header. */ - name: string; + name?: string; /** * The type of the metric, for example `INTEGER`. */ - type: string; + type?: string; } /** * Specifies the sorting options. @@ -428,15 +431,15 @@ export namespace analyticsreporting_v4 { * `ga:browser`. Note, that you can only specify one field for sort here. * For example, `ga:browser, ga:city` is not valid. */ - fieldName: string; + fieldName?: string; /** * The order type. The default orderType is `VALUE`. */ - orderType: string; + orderType?: string; /** * The sorting order for the field. */ - sortOrder: string; + sortOrder?: string; } /** * A list of segment filters in the `OR` group are combined with the logical @@ -446,7 +449,7 @@ export namespace analyticsreporting_v4 { /** * List of segment filters to be combined with a `OR` operator. */ - segmentFilterClauses: Schema$SegmentFilterClause[]; + segmentFilterClauses?: Schema$SegmentFilterClause[]; } /** * The Pivot describes the pivot section in the request. The Pivot helps @@ -464,23 +467,23 @@ export namespace analyticsreporting_v4 { * or "Firefox", then only those two browsers would show up as * columns. */ - dimensionFilterClauses: Schema$DimensionFilterClause[]; + dimensionFilterClauses?: Schema$DimensionFilterClause[]; /** * A list of dimensions to show as pivot columns. A Pivot can have a maximum * of 4 dimensions. Pivot dimensions are part of the restriction on the * total number of dimensions allowed in the request. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * Specifies the maximum number of groups to return. The default value is * 10, also the maximum value is 1,000. */ - maxGroupCount: number; + maxGroupCount?: number; /** * The pivot metrics. Pivot metrics are part of the restriction on total * number of metrics allowed in the request. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * If k metrics were requested, then the response will contain some * data-dependent multiple of k columns in the report. E.g., if you pivoted @@ -495,7 +498,7 @@ export namespace analyticsreporting_v4 { * Firefox, IE. The following let you choose which of the groups of k * columns are included in the response. */ - startGroup: number; + startGroup?: number; } /** * The headers for each of the pivot sections defined in the request. @@ -504,11 +507,11 @@ export namespace analyticsreporting_v4 { /** * A single pivot section header. */ - pivotHeaderEntries: Schema$PivotHeaderEntry[]; + pivotHeaderEntries?: Schema$PivotHeaderEntry[]; /** * The total number of groups for this pivot. */ - totalPivotGroupsCount: number; + totalPivotGroupsCount?: number; } /** * The headers for the each of the metric column corresponding to the metrics @@ -518,15 +521,15 @@ export namespace analyticsreporting_v4 { /** * The name of the dimensions in the pivot response. */ - dimensionNames: string[]; + dimensionNames?: string[]; /** * The values for the dimensions in the pivot. */ - dimensionValues: string[]; + dimensionValues?: string[]; /** * The metric header for the metric in the pivot. */ - metric: Schema$MetricHeaderEntry; + metric?: Schema$MetricHeaderEntry; } /** * The metric values in the pivot region. @@ -535,7 +538,7 @@ export namespace analyticsreporting_v4 { /** * The values of the metrics in each of the pivot regions. */ - values: string[]; + values?: string[]; } /** * The data response corresponding to the request. @@ -544,15 +547,15 @@ export namespace analyticsreporting_v4 { /** * The column headers. */ - columnHeader: Schema$ColumnHeader; + columnHeader?: Schema$ColumnHeader; /** * Response data. */ - data: Schema$ReportData; + data?: Schema$ReportData; /** * Page token to retrieve the next page of results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * The data part of the report. @@ -562,33 +565,33 @@ export namespace analyticsreporting_v4 { * The last time the data in the report was refreshed. All the hits received * before this timestamp are included in the calculation of the report. */ - dataLastRefreshed: string; + dataLastRefreshed?: string; /** * Indicates if response to this request is golden or not. Data is golden * when the exact same request will not produce any new results if asked at * a later point in time. */ - isDataGolden: boolean; + isDataGolden?: boolean; /** * Minimum and maximum values seen over all matching rows. These are both * empty when `hideValueRanges` in the request is false, or when rowCount is * zero. */ - maximums: Schema$DateRangeValues[]; + maximums?: Schema$DateRangeValues[]; /** * Minimum and maximum values seen over all matching rows. These are both * empty when `hideValueRanges` in the request is false, or when rowCount is * zero. */ - minimums: Schema$DateRangeValues[]; + minimums?: Schema$DateRangeValues[]; /** * Total number of matching rows for this query. */ - rowCount: number; + rowCount?: number; /** * There's one ReportRow for every unique combination of dimensions. */ - rows: Schema$ReportRow[]; + rows?: Schema$ReportRow[]; /** * If the results are * [sampled](https://support.google.com/analytics/answer/2637192), this @@ -597,7 +600,7 @@ export namespace analyticsreporting_v4 { * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) * for details. */ - samplesReadCounts: string[]; + samplesReadCounts?: string[]; /** * If the results are * [sampled](https://support.google.com/analytics/answer/2637192), this @@ -606,7 +609,7 @@ export namespace analyticsreporting_v4 { * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) * for details. */ - samplingSpaceSizes: string[]; + samplingSpaceSizes?: string[]; /** * For each requested date range, for the set of all rows that match the * query, every requested value format gets a total. The total for a value @@ -616,7 +619,7 @@ export namespace analyticsreporting_v4 { * of all relevant ga:sessions) + 2)`. Totals are computed before * pagination. */ - totals: Schema$DateRangeValues[]; + totals?: Schema$DateRangeValues[]; } /** * The main request class which specifies the Reporting API request. @@ -628,7 +631,7 @@ export namespace analyticsreporting_v4 { * [ReportRequest](#ReportRequest) within a `batchGet` method must contain * the same `cohortGroup` definition. */ - cohortGroup: Schema$CohortGroup; + cohortGroup?: Schema$CohortGroup; /** * Date ranges in the request. The request can have a maximum of 2 date * ranges. The response will contain a set of metric values for each @@ -641,18 +644,18 @@ export namespace analyticsreporting_v4 { * 1 day). Every [ReportRequest](#ReportRequest) within a `batchGet` method * must contain the same `dateRanges` definition. */ - dateRanges: Schema$DateRange[]; + dateRanges?: Schema$DateRange[]; /** * The dimension filter clauses for filtering Dimension Values. They are * logically combined with the `AND` operator. Note that filtering occurs * before any dimensions are aggregated, so that the returned metrics * represent the total for only the relevant dimensions. */ - dimensionFilterClauses: Schema$DimensionFilterClause[]; + dimensionFilterClauses?: Schema$DimensionFilterClause[]; /** * The dimensions requested. Requests can have a total of 7 dimensions. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * Dimension or metric filters that restrict the data returned for your * request. To use the `filtersExpression`, supply a dimension or metric on @@ -662,41 +665,41 @@ export namespace analyticsreporting_v4 { * metric filters, see [Filters * reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters). */ - filtersExpression: string; + filtersExpression?: string; /** * If set to true, hides the total of all metrics for all the matching rows, * for every date range. The default false and will return the totals. */ - hideTotals: boolean; + hideTotals?: boolean; /** * If set to true, hides the minimum and maximum across all matching rows. * The default is false and the value ranges are returned. */ - hideValueRanges: boolean; + hideValueRanges?: boolean; /** * If set to false, the response does not include rows if all the retrieved * metrics are equal to zero. The default is false which will exclude these * rows. */ - includeEmptyRows: boolean; + includeEmptyRows?: boolean; /** * The metric filter clauses. They are logically combined with the `AND` * operator. Metric filters look at only the first date range and not the * comparing date range. Note that filtering on metrics occurs after the * metrics are aggregated. */ - metricFilterClauses: Schema$MetricFilterClause[]; + metricFilterClauses?: Schema$MetricFilterClause[]; /** * The metrics requested. Requests must specify at least one metric. * Requests can have a total of 10 metrics. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Sort order on output rows. To compare two rows, the elements of the * following are applied in order until a difference is found. All date * ranges in the output get the same row order. */ - orderBys: Schema$OrderBy[]; + orderBys?: Schema$OrderBy[]; /** * Page size is for paging and specifies the maximum number of returned * rows. Page size should be >= 0. A query returns the default of 1,000 @@ -707,18 +710,18 @@ export namespace analyticsreporting_v4 { * `ga:country`, so when segmenting only by country, you can't get more * than 300 rows, even if you set `pageSize` to a higher value. */ - pageSize: number; + pageSize?: number; /** * A continuation token to get the next page of the results. Adding this to * the request will return the rows after the pageToken. The pageToken * should be the value returned in the nextPageToken parameter in the * response to the GetReports request. */ - pageToken: string; + pageToken?: string; /** * The pivot definitions. Requests can have a maximum of 2 pivots. */ - pivots: Schema$Pivot[]; + pivots?: Schema$Pivot[]; /** * The desired report * [sample](https://support.google.com/analytics/answer/2637192) size. If @@ -728,7 +731,7 @@ export namespace analyticsreporting_v4 { * guide](/analytics/devguides/reporting/core/v4/basics#sampling) for * details. */ - samplingLevel: string; + samplingLevel?: string; /** * Segment the data returned for the request. A segment definition helps * look at a subset of the segment request. A request can contain up to four @@ -736,14 +739,14 @@ export namespace analyticsreporting_v4 { * method must contain the same `segments` definition. Requests with * segments must have the `ga:segment` dimension. */ - segments: Schema$Segment[]; + segments?: Schema$Segment[]; /** * The Analytics [view * ID](https://support.google.com/analytics/answer/1009618) from which to * retrieve data. Every [ReportRequest](#ReportRequest) within a `batchGet` * method must contain the same `viewId`. */ - viewId: string; + viewId?: string; } /** * A row in the report. @@ -752,11 +755,11 @@ export namespace analyticsreporting_v4 { /** * List of requested dimensions. */ - dimensions: string[]; + dimensions?: string[]; /** * List of metrics for each requested DateRange. */ - metrics: Schema$DateRangeValues[]; + metrics?: Schema$DateRangeValues[]; } /** * The resource quota tokens remaining for the property after the request is @@ -766,11 +769,11 @@ export namespace analyticsreporting_v4 { /** * Daily resource quota remaining remaining. */ - dailyQuotaTokensRemaining: number; + dailyQuotaTokensRemaining?: number; /** * Hourly resource quota tokens remaining. */ - hourlyQuotaTokensRemaining: number; + hourlyQuotaTokensRemaining?: number; } /** * The segment definition, if the report needs to be segmented. A Segment is a @@ -781,11 +784,11 @@ export namespace analyticsreporting_v4 { /** * A dynamic segment definition in the request. */ - dynamicSegment: Schema$DynamicSegment; + dynamicSegment?: Schema$DynamicSegment; /** * The segment ID of a built-in or custom segment, for example `gaid::-3`. */ - segmentId: string; + segmentId?: string; } /** * SegmentDefinition defines the segment to be a set of SegmentFilters which @@ -796,7 +799,7 @@ export namespace analyticsreporting_v4 { * A segment is defined by a set of segment filters which are combined * together with a logical `AND` operation. */ - segmentFilters: Schema$SegmentFilter[]; + segmentFilters?: Schema$SegmentFilter[]; } /** * Dimension filter specifies the filtering options on a dimension. @@ -805,27 +808,27 @@ export namespace analyticsreporting_v4 { /** * Should the match be case sensitive, ignored for `IN_LIST` operator. */ - caseSensitive: boolean; + caseSensitive?: boolean; /** * Name of the dimension for which the filter is being applied. */ - dimensionName: string; + dimensionName?: string; /** * The list of expressions, only the first element is used for all operators */ - expressions: string[]; + expressions?: string[]; /** * Maximum comparison values for `BETWEEN` match type. */ - maxComparisonValue: string; + maxComparisonValue?: string; /** * Minimum comparison values for `BETWEEN` match type. */ - minComparisonValue: string; + minComparisonValue?: string; /** * The operator to use to match the dimension with the expressions. */ - operator: string; + operator?: string; } /** * SegmentFilter defines the segment to be either a simple or a sequence @@ -845,18 +848,18 @@ export namespace analyticsreporting_v4 { * ["New York"] } }] }] * }, "not": "True" }] }, */ - not: boolean; + not?: boolean; /** * Sequence conditions consist of one or more steps, where each step is * defined by one or more dimension/metric conditions. Multiple steps can be * combined with special sequence operators. */ - sequenceSegment: Schema$SequenceSegment; + sequenceSegment?: Schema$SequenceSegment; /** * A Simple segment conditions consist of one or more dimension/metric * conditions that can be combined */ - simpleSegment: Schema$SimpleSegment; + simpleSegment?: Schema$SimpleSegment; } /** * Filter Clause to be used in a segment definition, can be wither a metric or @@ -866,15 +869,15 @@ export namespace analyticsreporting_v4 { /** * Dimension Filter for the segment definition. */ - dimensionFilter: Schema$SegmentDimensionFilter; + dimensionFilter?: Schema$SegmentDimensionFilter; /** * Metric Filter for the segment definition. */ - metricFilter: Schema$SegmentMetricFilter; + metricFilter?: Schema$SegmentMetricFilter; /** * Matches the complement (`!`) of the filter. */ - not: boolean; + not?: boolean; } /** * Metric filter to be used in a segment filter clause. @@ -884,28 +887,28 @@ export namespace analyticsreporting_v4 { * The value to compare against. If the operator is `BETWEEN`, this value is * treated as minimum comparison value. */ - comparisonValue: string; + comparisonValue?: string; /** * Max comparison value is only used for `BETWEEN` operator. */ - maxComparisonValue: string; + maxComparisonValue?: string; /** * The metric that will be filtered on. A `metricFilter` must contain a * metric name. */ - metricName: string; + metricName?: string; /** * Specifies is the operation to perform to compare the metric. The default * is `EQUAL`. */ - operator: string; + operator?: string; /** * Scope for a metric defines the level at which that metric is defined. The * specified metric scope must be equal to or greater than its primary scope * as defined in the data model. The primary scope is defined by if the * segment is selecting users or sessions. */ - scope: string; + scope?: string; } /** * A segment sequence definition. @@ -915,12 +918,12 @@ export namespace analyticsreporting_v4 { * Specifies if the step immediately precedes or can be any time before the * next step. */ - matchType: string; + matchType?: string; /** * A sequence is specified with a list of Or grouped filters which are * combined with `AND` operator. */ - orFiltersForSegment: Schema$OrFiltersForSegment[]; + orFiltersForSegment?: Schema$OrFiltersForSegment[]; } /** * Sequence conditions consist of one or more steps, where each step is @@ -932,11 +935,11 @@ export namespace analyticsreporting_v4 { * If set, first step condition must match the first hit of the visitor (in * the date range). */ - firstStepShouldMatchFirstHit: boolean; + firstStepShouldMatchFirstHit?: boolean; /** * The list of steps in the sequence. */ - segmentSequenceSteps: Schema$SegmentSequenceStep[]; + segmentSequenceSteps?: Schema$SegmentSequenceStep[]; } /** * A Simple segment conditions consist of one or more dimension/metric @@ -947,9 +950,10 @@ export namespace analyticsreporting_v4 { * A list of segment filters groups which are combined with logical `AND` * operator. */ - orFiltersForSegment: Schema$OrFiltersForSegment[]; + orFiltersForSegment?: Schema$OrFiltersForSegment[]; } + export class Resource$Reports { root: Analyticsreporting; constructor(root: Analyticsreporting) { @@ -974,26 +978,38 @@ export namespace analyticsreporting_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGet(params?: any, options?: MethodOptions): - AxiosPromise; batchGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Batchget, + options?: MethodOptions): AxiosPromise; + batchGet( + params: Params$Resource$Reports$Batchget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + batchGet( + params: Params$Resource$Reports$Batchget, + callback: BodyResponseCallback): void; + batchGet(callback: BodyResponseCallback): void; batchGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Batchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Batchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Batchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; const parameters = { @@ -1016,4 +1032,16 @@ export namespace analyticsreporting_v4 { } } } + + export interface Params$Resource$Reports$Batchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GetReportsRequest; + } } diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts index 9eb1f78d2d2..f972ecca869 100644 --- a/src/apis/androiddeviceprovisioning/v1.ts +++ b/src/apis/androiddeviceprovisioning/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace androiddeviceprovisioning_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Android Device Provisioning Partner API * @@ -77,15 +80,15 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The ID of the customer for whom the device is being claimed. */ - customerId: string; + customerId?: string; /** * Required. The device identifier of the device to claim. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * Required. The section type of the device's provisioning record. */ - sectionType: string; + sectionType?: string; } /** * Response message containing device id of the claim. @@ -94,12 +97,12 @@ export namespace androiddeviceprovisioning_v1 { /** * The device ID of the claimed device. */ - deviceId: string; + deviceId?: string; /** * The resource name of the device in the format * `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. */ - deviceName: string; + deviceName?: string; } /** * Request to claim devices asynchronously in batch. Claiming a device adds @@ -110,7 +113,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. A list of device claims. */ - claims: Schema$PartnerClaim[]; + claims?: Schema$PartnerClaim[]; } /** * A customer resource in the zero-touch enrollment API. @@ -120,29 +123,29 @@ export namespace androiddeviceprovisioning_v1 { * Input only. Optional. Email address of customer's users in the admin * role. Each email address must be associated with a Google Account. */ - adminEmails: string[]; + adminEmails?: string[]; /** * Output only. The ID of the company. Assigned by the server. */ - companyId: string; + companyId?: string; /** * Required. The name of the company. For example _XYZ Corp_. Characters * allowed are: Latin letters, numerals, hyphens, and spaces. Displayed to * the customer's employees in the zero-touch enrollment portal. */ - companyName: string; + companyName?: string; /** * Output only. The API resource name of the company in the format * `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]`. Assigned by the server. */ - name: string; + name?: string; /** * Input only. Email address of customer's users in the owner role. At * least one `owner_email` is required. Each email address must be * associated with a Google Account. Owners share the same access as admins * but can also add, delete, and edit your organization's portal users. */ - ownerEmails: string[]; + ownerEmails?: string[]; } /** * A configuration collects the provisioning options for Android devices. Each @@ -158,47 +161,47 @@ export namespace androiddeviceprovisioning_v1 { * Required. The name of the organization. Zero-touch enrollment shows this * organization name to device users during device provisioning. */ - companyName: string; + companyName?: string; /** * Output only. The ID of the configuration. Assigned by the server. */ - configurationId: string; + configurationId?: string; /** * Required. A short name that describes the configuration's purpose. * For example, _Sales team_ or _Temporary employees_. The zero-touch * enrollment portal displays this name to IT admins. */ - configurationName: string; + configurationName?: string; /** * Required. The email address that device users can contact to get help. * Zero-touch enrollment shows this email address to device users before * device provisioning. The value is validated on input. */ - contactEmail: string; + contactEmail?: string; /** * Required. The telephone number that device users can call, using another * device, to get help. Zero-touch enrollment shows this number to device * users before device provisioning. Accepts numerals, spaces, the plus * sign, hyphens, and parentheses. */ - contactPhone: string; + contactPhone?: string; /** * A message, containing one or two sentences, to help device users get help * or give them more details about what’s happening to their device. * Zero-touch enrollment shows this message before the device is * provisioned. */ - customMessage: string; + customMessage?: string; /** * The JSON-formatted EMM provisioning extras that are passed to the DPC. */ - dpcExtras: string; + dpcExtras?: string; /** * Required. The resource name of the selected DPC (device policy * controller) in the format `customers/[CUSTOMER_ID]/dpcs/x. To list the * supported DPCs, call `customers.dpcs.list`. */ - dpcResourcePath: string; + dpcResourcePath?: string; /** * Required. Whether this is the default configuration that zero-touch * enrollment applies to any new devices the organization purchases in the @@ -206,13 +209,13 @@ export namespace androiddeviceprovisioning_v1 { * value to `true`, changes the previous default configuration's * `isDefault` value to `false`. */ - isDefault: boolean; + isDefault?: boolean; /** * Output only. The API resource name in the format * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by * the server. */ - name: string; + name?: string; } /** * Request message to create a customer. @@ -224,7 +227,7 @@ export namespace androiddeviceprovisioning_v1 { * associated with a Google Account. The values for `companyId` and `name` * must be empty. */ - customer: Schema$Company; + customer?: Schema$Company; } /** * Request message for customer to assign a configuration to device. @@ -234,11 +237,11 @@ export namespace androiddeviceprovisioning_v1 { * Required. The configuration applied to the device in the format * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. */ - configuration: string; + configuration?: string; /** * Required. The device the configuration is applied to. */ - device: Schema$DeviceReference; + device?: Schema$DeviceReference; } /** * Response message of customer's listing configuration. @@ -247,7 +250,7 @@ export namespace androiddeviceprovisioning_v1 { /** * The configurations. */ - configurations: Schema$Configuration[]; + configurations?: Schema$Configuration[]; } /** * Response message for listing my customers. @@ -256,12 +259,12 @@ export namespace androiddeviceprovisioning_v1 { /** * The customer accounts the calling user is a member of. */ - customers: Schema$Company[]; + customers?: Schema$Company[]; /** * A token used to access the next page of results. Omitted if no further * results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message of customer's liting devices. @@ -270,12 +273,12 @@ export namespace androiddeviceprovisioning_v1 { /** * The customer's devices. */ - devices: Schema$Device[]; + devices?: Schema$Device[]; /** * A token used to access the next page of results. Omitted if no further * results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message of customer's listing DPCs. @@ -285,7 +288,7 @@ export namespace androiddeviceprovisioning_v1 { * The list of DPCs available to the customer that support zero-touch * enrollment. */ - dpcs: Schema$Dpc[]; + dpcs?: Schema$Dpc[]; } /** * Request message for customer to remove the configuration from device. @@ -294,7 +297,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The device to remove the configuration from. */ - device: Schema$DeviceReference; + device?: Schema$DeviceReference; } /** * Request message for customer to unclaim a device. @@ -303,7 +306,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The device to unclaim. */ - device: Schema$DeviceReference; + device?: Schema$DeviceReference; } /** * An Android device registered for zero-touch enrollment. @@ -316,30 +319,30 @@ export namespace androiddeviceprovisioning_v1 { * `partners.devices.unclaimAsync` to remove the device from zero-touch * enrollment. */ - claims: Schema$DeviceClaim[]; + claims?: Schema$DeviceClaim[]; /** * Not available to resellers. */ - configuration: string; + configuration?: string; /** * Output only. The ID of the device. Assigned by the server. */ - deviceId: string; + deviceId?: string; /** * The hardware IDs that identify a manufactured device. To learn more, read * [Identifiers](/zero-touch/guides/identifiers). */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * The metadata attached to the device. Structured as key-value pairs. To * learn more, read [Device metadata](/zero-touch/guides/metadata). */ - deviceMetadata: Schema$DeviceMetadata; + deviceMetadata?: Schema$DeviceMetadata; /** * Output only. The API resource name in the format * `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server. */ - name: string; + name?: string; } /** * A record of a device claimed by a reseller for a customer. Devices claimed @@ -351,11 +354,11 @@ export namespace androiddeviceprovisioning_v1 { /** * The ID of the Customer that purchased the device. */ - ownerCompanyId: string; + ownerCompanyId?: string; /** * Output only. The type of claim made on the device. */ - sectionType: string; + sectionType?: string; } /** * Encapsulates hardware and product IDs to identify a manufactured device. To @@ -365,23 +368,23 @@ export namespace androiddeviceprovisioning_v1 { /** * The device’s IMEI number. Validated on input. */ - imei: string; + imei?: string; /** * Required. The device manufacturer’s name. Matches the device's * built-in value returned from `android.os.Build.MANUFACTURER`. Allowed * values are listed in [manufacturer * names](/zero-touch/resources/manufacturer-names). */ - manufacturer: string; + manufacturer?: string; /** * The device’s MEID number. */ - meid: string; + meid?: string; /** * The manufacturer's serial number for the device. This value might not * be unique. */ - serialNumber: string; + serialNumber?: string; } /** * Metadata entries that can be attached to a `Device`. To learn more, read @@ -391,7 +394,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Metadata entries recorded as key-value pairs. */ - entries: any; + entries?: any; } /** * A `DeviceReference` is an API abstraction that lets you supply a _device_ @@ -406,11 +409,11 @@ export namespace androiddeviceprovisioning_v1 { /** * The ID of the device. */ - deviceId: string; + deviceId?: string; /** * The hardware IDs of the device. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; } /** * Tracks the status of a long-running operation to asynchronously update a @@ -424,17 +427,17 @@ export namespace androiddeviceprovisioning_v1 { * from the number of updates in the request if the API can't parse some * of the updates. */ - devicesCount: number; + devicesCount?: number; /** * The processing status of the operation. */ - processingStatus: string; + processingStatus?: string; /** * The processing progress of the operation. Measured as a number from 0 to * 100. A value of 10O doesnt always mean the operation completed—check for * the inclusion of a `done` field. */ - progress: number; + progress?: number; } /** * Tracks the status of a long-running operation to claim, unclaim, or attach @@ -447,12 +450,12 @@ export namespace androiddeviceprovisioning_v1 { * `PerDeviceStatus` per device. The list order matches the items in the * original request. */ - perDeviceStatus: Schema$OperationPerDevice[]; + perDeviceStatus?: Schema$OperationPerDevice[]; /** * A summary of how many items in the operation the server processed * successfully. Updated as the operation progresses. */ - successCount: number; + successCount?: number; } /** * An EMM's DPC ([device policy @@ -467,20 +470,20 @@ export namespace androiddeviceprovisioning_v1 { * _Google Apps Device Policy_. Useful in an application's user * interface. */ - dpcName: string; + dpcName?: string; /** * Output only. The API resource name in the format * `customers/[CUSTOMER_ID]/dpcs/[DPC_ID]`. Assigned by the server. To * maintain a reference to a DPC across customer accounts, persist and match * the last path component (`DPC_ID`). */ - name: string; + name?: string; /** * Output only. The DPC's Android application ID that looks like a Java * package name. Zero-touch enrollment installs the DPC app onto a device * using this identifier. */ - packageName: string; + packageName?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -497,16 +500,16 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The device identifier to search for. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * Required. The maximum number of devices to show in a page of results. * Must be between 1 and 100 inclusive. */ - limit: string; + limit?: string; /** * A token specifying which result page to return. */ - pageToken: string; + pageToken?: string; } /** * Response containing found devices. @@ -515,12 +518,12 @@ export namespace androiddeviceprovisioning_v1 { /** * Found devices. */ - devices: Schema$Device[]; + devices?: Schema$Device[]; /** * A token used to access the next page of results. Omitted if no further * results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Request to find devices by customers. @@ -529,20 +532,20 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The list of customer IDs to search for. */ - customerId: string[]; + customerId?: string[]; /** * Required. The maximum number of devices to show in a page of results. * Must be between 1 and 100 inclusive. */ - limit: string; + limit?: string; /** * A token specifying which result page to return. */ - pageToken: string; + pageToken?: string; /** * Required. The section type of the device's provisioning record. */ - sectionType: string; + sectionType?: string; } /** * Response containing found devices. @@ -551,12 +554,12 @@ export namespace androiddeviceprovisioning_v1 { /** * The customer's devices. */ - devices: Schema$Device[]; + devices?: Schema$Device[]; /** * A token used to access the next page of results. Omitted if no further * results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message of all customers related to this partner. @@ -565,7 +568,7 @@ export namespace androiddeviceprovisioning_v1 { /** * List of customers related to this reseller partner. */ - customers: Schema$Company[]; + customers?: Schema$Company[]; } /** * This resource represents a long-running operation that is the result of a @@ -577,32 +580,32 @@ export namespace androiddeviceprovisioning_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * This field will always be not set if the operation is created by * `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, * error information for each device is set in * `response.perDeviceStatus.result.status`. */ - error: Schema$Status; + error?: Schema$Status; /** * This field will contain a `DevicesLongRunningOperationMetadata` object if * the operation is created by `claimAsync`, `unclaimAsync`, or * `updateMetadataAsync`. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * This field will contain a `DevicesLongRunningOperationResponse` object if * the operation is created by `claimAsync`, `unclaimAsync`, or * `updateMetadataAsync`. */ - response: any; + response?: any; } /** * A task for each device in the operation. Corresponds to each device change @@ -612,19 +615,19 @@ export namespace androiddeviceprovisioning_v1 { /** * A copy of the original device-claim request received by the server. */ - claim: Schema$PartnerClaim; + claim?: Schema$PartnerClaim; /** * The processing result for each device. */ - result: Schema$PerDeviceStatusInBatch; + result?: Schema$PerDeviceStatusInBatch; /** * A copy of the original device-unclaim request received by the server. */ - unclaim: Schema$PartnerUnclaim; + unclaim?: Schema$PartnerUnclaim; /** * A copy of the original metadata-update request received by the server. */ - updateMetadata: Schema$UpdateMetadataArguments; + updateMetadata?: Schema$UpdateMetadataArguments; } /** * Identifies one claim request. @@ -633,19 +636,19 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The ID of the customer for whom the device is being claimed. */ - customerId: string; + customerId?: string; /** * Required. Device identifier of the device. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * Required. The metadata to attach to the device at claim. */ - deviceMetadata: Schema$DeviceMetadata; + deviceMetadata?: Schema$DeviceMetadata; /** * Required. The section type of the device's provisioning record. */ - sectionType: string; + sectionType?: string; } /** * Identifies one unclaim request. @@ -654,15 +657,15 @@ export namespace androiddeviceprovisioning_v1 { /** * Device ID of the device. */ - deviceId: string; + deviceId?: string; /** * Device identifier of the device. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * Required. The section type of the device's provisioning record. */ - sectionType: string; + sectionType?: string; } /** * Captures the processing status for each device in the operation. @@ -671,19 +674,19 @@ export namespace androiddeviceprovisioning_v1 { /** * If processing succeeds, the device ID of the device. */ - deviceId: string; + deviceId?: string; /** * If processing fails, the error type. */ - errorIdentifier: string; + errorIdentifier?: string; /** * If processing fails, a developer message explaining what went wrong. */ - errorMessage: string; + errorMessage?: string; /** * The result status of the device after processing. */ - status: string; + status?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -725,18 +728,18 @@ export namespace androiddeviceprovisioning_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message to unclaim a device. @@ -745,15 +748,15 @@ export namespace androiddeviceprovisioning_v1 { /** * The device ID returned by `ClaimDevice`. */ - deviceId: string; + deviceId?: string; /** * The device identifier you used when you claimed this device. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * Required. The section type of the device's provisioning record. */ - sectionType: string; + sectionType?: string; } /** * Request to unclaim devices asynchronously in batch. @@ -762,7 +765,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The list of devices to unclaim. */ - unclaims: Schema$PartnerUnclaim[]; + unclaims?: Schema$PartnerUnclaim[]; } /** * Request to update device metadata in batch. @@ -771,7 +774,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The list of metadata updates. */ - updates: Schema$UpdateMetadataArguments[]; + updates?: Schema$UpdateMetadataArguments[]; } /** * Request to set metadata for a device. @@ -780,7 +783,7 @@ export namespace androiddeviceprovisioning_v1 { /** * Required. The metdata to attach to the device. */ - deviceMetadata: Schema$DeviceMetadata; + deviceMetadata?: Schema$DeviceMetadata; } /** * Identifies metdata updates to one device. @@ -789,17 +792,18 @@ export namespace androiddeviceprovisioning_v1 { /** * Device ID of the device. */ - deviceId: string; + deviceId?: string; /** * Device identifier. */ - deviceIdentifier: Schema$DeviceIdentifier; + deviceIdentifier?: Schema$DeviceIdentifier; /** * Required. The metadata to update. */ - deviceMetadata: Schema$DeviceMetadata; + deviceMetadata?: Schema$DeviceMetadata; } + export class Resource$Customers { root: Androiddeviceprovisioning; configurations: Resource$Customers$Configurations; @@ -831,29 +835,41 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Customers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Customers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Customers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -877,6 +893,24 @@ export namespace androiddeviceprovisioning_v1 { } } } + + export interface Params$Resource$Customers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of customers to show in a page of results. A number + * between 1 and 100 (inclusive). + */ + pageSize?: number; + /** + * A token specifying which result page to return. + */ + pageToken?: string; + } + export class Resource$Customers$Configurations { root: Androiddeviceprovisioning; constructor(root: Androiddeviceprovisioning) { @@ -903,26 +937,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customers$Configurations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Customers$Configurations$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Configurations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Customers$Configurations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Configurations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Configurations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -959,25 +1006,38 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customers$Configurations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Customers$Configurations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Configurations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Customers$Configurations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Configurations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Configurations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1012,24 +1072,35 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Customers$Configurations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Customers$Configurations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customers$Configurations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customers$Configurations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Configurations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Configurations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1064,31 +1135,48 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Customers$Configurations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$Configurations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$Configurations$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Customers$Configurations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Configurations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Configurations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1128,26 +1216,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customers$Configurations$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Customers$Configurations$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Customers$Configurations$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customers$Configurations$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Configurations$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Configurations$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1170,6 +1271,85 @@ export namespace androiddeviceprovisioning_v1 { } } + export interface Params$Resource$Customers$Configurations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The customer that manages the configuration. An API resource + * name in the format `customers/[CUSTOMER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Configuration; + } + export interface Params$Resource$Customers$Configurations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The configuration to delete. An API resource name in the format + * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the + * configuration is applied to any devices, the API call fails. + */ + name?: string; + } + export interface Params$Resource$Customers$Configurations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The configuration to get. An API resource name in the format + * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. + */ + name?: string; + } + export interface Params$Resource$Customers$Configurations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The customer that manages the listed configurations. An API + * resource name in the format `customers/[CUSTOMER_ID]`. + */ + parent?: string; + } + export interface Params$Resource$Customers$Configurations$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The API resource name in the format + * `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by + * the server. + */ + name?: string; + /** + * Required. The field mask applied to the target `Configuration` before + * updating the fields. To learn more about using field masks, read + * [FieldMask](/protocol-buffers/docs/reference/google.protobuf#fieldmask) + * in the Protocol Buffers documentation. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Configuration; + } + + export class Resource$Customers$Devices { root: Androiddeviceprovisioning; constructor(root: Androiddeviceprovisioning) { @@ -1198,26 +1378,38 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - applyConfiguration(params?: any, options?: MethodOptions): - AxiosPromise; applyConfiguration( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customers$Devices$Applyconfiguration, + options?: MethodOptions): AxiosPromise; applyConfiguration( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Devices$Applyconfiguration, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + applyConfiguration( + params: Params$Resource$Customers$Devices$Applyconfiguration, + callback: BodyResponseCallback): void; + applyConfiguration(callback: BodyResponseCallback): void; + applyConfiguration( + paramsOrCallback?: Params$Resource$Customers$Devices$Applyconfiguration| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Devices$Applyconfiguration; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Devices$Applyconfiguration; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1253,23 +1445,34 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Customers$Devices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Customers$Devices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customers$Devices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customers$Devices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customers$Devices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Devices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1306,29 +1509,44 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Customers$Devices$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$Devices$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$Devices$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Customers$Devices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customers$Devices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Devices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1366,26 +1584,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeConfiguration(params?: any, options?: MethodOptions): - AxiosPromise; removeConfiguration( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customers$Devices$Removeconfiguration, + options?: MethodOptions): AxiosPromise; removeConfiguration( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Devices$Removeconfiguration, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeConfiguration( + params: Params$Resource$Customers$Devices$Removeconfiguration, + callback: BodyResponseCallback): void; + removeConfiguration(callback: BodyResponseCallback): void; + removeConfiguration( + paramsOrCallback?: + Params$Resource$Customers$Devices$Removeconfiguration| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Customers$Devices$Removeconfiguration; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Devices$Removeconfiguration; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1424,25 +1655,38 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unclaim(params?: any, options?: MethodOptions): AxiosPromise; unclaim( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Customers$Devices$Unclaim, + options?: MethodOptions): AxiosPromise; unclaim( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Devices$Unclaim, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + unclaim( + params: Params$Resource$Customers$Devices$Unclaim, + callback: BodyResponseCallback): void; + unclaim(callback: BodyResponseCallback): void; + unclaim( + paramsOrCallback?: Params$Resource$Customers$Devices$Unclaim| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customers$Devices$Unclaim; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Devices$Unclaim; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1466,6 +1710,89 @@ export namespace androiddeviceprovisioning_v1 { } } + export interface Params$Resource$Customers$Devices$Applyconfiguration { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The customer managing the device. An API resource name in the + * format `customers/[CUSTOMER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomerApplyConfigurationRequest; + } + export interface Params$Resource$Customers$Devices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The device to get. An API resource name in the format + * `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`. + */ + name?: string; + } + export interface Params$Resource$Customers$Devices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of devices to show in a page of results. Must be + * between 1 and 100 inclusive. + */ + pageSize?: string; + /** + * A token specifying which result page to return. + */ + pageToken?: string; + /** + * Required. The customer managing the devices. An API resource name in the + * format `customers/[CUSTOMER_ID]`. + */ + parent?: string; + } + export interface Params$Resource$Customers$Devices$Removeconfiguration { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The customer managing the device in the format + * `customers/[CUSTOMER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomerRemoveConfigurationRequest; + } + export interface Params$Resource$Customers$Devices$Unclaim { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The customer managing the device. An API resource name in the + * format `customers/[CUSTOMER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomerUnclaimDeviceRequest; + } + + export class Resource$Customers$Dpcs { root: Androiddeviceprovisioning; constructor(root: Androiddeviceprovisioning) { @@ -1491,28 +1818,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Customers$Dpcs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$Dpcs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Customers$Dpcs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Customers$Dpcs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Customers$Dpcs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Dpcs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1536,6 +1874,20 @@ export namespace androiddeviceprovisioning_v1 { } } + export interface Params$Resource$Customers$Dpcs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The customer that can use the DPCs in configurations. An API + * resource name in the format `customers/[CUSTOMER_ID]`. + */ + parent?: string; + } + + export class Resource$Operations { root: Androiddeviceprovisioning; @@ -1563,23 +1915,34 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1602,6 +1965,19 @@ export namespace androiddeviceprovisioning_v1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Partners { root: Androiddeviceprovisioning; customers: Resource$Partners$Customers; @@ -1617,6 +1993,8 @@ export namespace androiddeviceprovisioning_v1 { return this.root; } } + + export class Resource$Partners$Customers { root: Androiddeviceprovisioning; constructor(root: Androiddeviceprovisioning) { @@ -1645,25 +2023,38 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Customers$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Partners$Customers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Partners$Customers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Partners$Customers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Partners$Customers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Customers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1701,28 +2092,40 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Partners$Customers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Partners$Customers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Partners$Customers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Partners$Customers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Partners$Customers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Customers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1746,6 +2149,35 @@ export namespace androiddeviceprovisioning_v1 { } } + export interface Params$Resource$Partners$Customers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource ID in the format `partners/[PARTNER_ID]` + * that identifies the reseller. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateCustomerRequest; + } + export interface Params$Resource$Partners$Customers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + partnerId?: string; + } + + export class Resource$Partners$Devices { root: Androiddeviceprovisioning; constructor(root: Androiddeviceprovisioning) { @@ -1773,28 +2205,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - claim(params?: any, options?: MethodOptions): - AxiosPromise; claim( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Devices$Claim, + options?: MethodOptions): AxiosPromise; claim( - params?: any, - options?: MethodOptions| + params: Params$Resource$Partners$Devices$Claim, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + claim( + params: Params$Resource$Partners$Devices$Claim, + callback: BodyResponseCallback): void; + claim(callback: BodyResponseCallback): void; + claim( + paramsOrCallback?: Params$Resource$Partners$Devices$Claim| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Partners$Devices$Claim; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Claim; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1833,26 +2276,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - claimAsync(params?: any, options?: MethodOptions): - AxiosPromise; claimAsync( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Devices$Claimasync, + options?: MethodOptions): AxiosPromise; + claimAsync( + params: Params$Resource$Partners$Devices$Claimasync, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + claimAsync( + params: Params$Resource$Partners$Devices$Claimasync, + callback: BodyResponseCallback): void; + claimAsync(callback: BodyResponseCallback): void; claimAsync( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Partners$Devices$Claimasync| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Partners$Devices$Claimasync; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Claimasync; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1889,31 +2345,49 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - findByIdentifier(params?: any, options?: MethodOptions): + findByIdentifier( + params?: Params$Resource$Partners$Devices$Findbyidentifier, + options?: MethodOptions): AxiosPromise; findByIdentifier( - params?: any, - options?: MethodOptions| + params: Params$Resource$Partners$Devices$Findbyidentifier, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + findByIdentifier( + params: Params$Resource$Partners$Devices$Findbyidentifier, + callback: BodyResponseCallback): void; findByIdentifier( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + findByIdentifier( + paramsOrCallback?: Params$Resource$Partners$Devices$Findbyidentifier| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Partners$Devices$Findbyidentifier; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Findbyidentifier; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -1956,29 +2430,45 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - findByOwner(params?: any, options?: MethodOptions): + findByOwner( + params?: Params$Resource$Partners$Devices$Findbyowner, + options?: MethodOptions): AxiosPromise; findByOwner( - params?: any, - options?: MethodOptions| + params: Params$Resource$Partners$Devices$Findbyowner, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + findByOwner( + params: Params$Resource$Partners$Devices$Findbyowner, + callback: BodyResponseCallback): + void; + findByOwner(callback: + BodyResponseCallback): void; findByOwner( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Partners$Devices$Findbyowner| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Partners$Devices$Findbyowner; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Findbyowner; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -2015,23 +2505,34 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Partners$Devices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Partners$Devices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Partners$Devices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Partners$Devices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Partners$Devices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -2068,26 +2569,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - metadata(params?: any, options?: MethodOptions): - AxiosPromise; metadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Devices$Metadata, + options?: MethodOptions): AxiosPromise; + metadata( + params: Params$Resource$Partners$Devices$Metadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; metadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Partners$Devices$Metadata, + callback: BodyResponseCallback): void; + metadata(callback: BodyResponseCallback): void; + metadata( + paramsOrCallback?: Params$Resource$Partners$Devices$Metadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Partners$Devices$Metadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Metadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -2127,25 +2641,38 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unclaim(params?: any, options?: MethodOptions): AxiosPromise; unclaim( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Devices$Unclaim, + options?: MethodOptions): AxiosPromise; unclaim( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Partners$Devices$Unclaim, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + unclaim( + params: Params$Resource$Partners$Devices$Unclaim, + callback: BodyResponseCallback): void; + unclaim(callback: BodyResponseCallback): void; + unclaim( + paramsOrCallback?: Params$Resource$Partners$Devices$Unclaim| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Partners$Devices$Unclaim; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Unclaim; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -2184,26 +2711,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unclaimAsync(params?: any, options?: MethodOptions): - AxiosPromise; unclaimAsync( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Devices$Unclaimasync, + options?: MethodOptions): AxiosPromise; unclaimAsync( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Partners$Devices$Unclaimasync, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + unclaimAsync( + params: Params$Resource$Partners$Devices$Unclaimasync, + callback: BodyResponseCallback): void; + unclaimAsync(callback: BodyResponseCallback): void; + unclaimAsync( + paramsOrCallback?: Params$Resource$Partners$Devices$Unclaimasync| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Partners$Devices$Unclaimasync; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Unclaimasync; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -2243,26 +2783,39 @@ export namespace androiddeviceprovisioning_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateMetadataAsync(params?: any, options?: MethodOptions): - AxiosPromise; updateMetadataAsync( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Partners$Devices$Updatemetadataasync, + options?: MethodOptions): AxiosPromise; updateMetadataAsync( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Partners$Devices$Updatemetadataasync, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateMetadataAsync( + params: Params$Resource$Partners$Devices$Updatemetadataasync, + callback: BodyResponseCallback): void; + updateMetadataAsync(callback: BodyResponseCallback): void; + updateMetadataAsync( + paramsOrCallback?: Params$Resource$Partners$Devices$Updatemetadataasync| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Partners$Devices$Updatemetadataasync; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Partners$Devices$Updatemetadataasync; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; const parameters = { @@ -2286,4 +2839,142 @@ export namespace androiddeviceprovisioning_v1 { } } } + + export interface Params$Resource$Partners$Devices$Claim { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$ClaimDeviceRequest; + } + export interface Params$Resource$Partners$Devices$Claimasync { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$ClaimDevicesRequest; + } + export interface Params$Resource$Partners$Devices$Findbyidentifier { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$FindDevicesByDeviceIdentifierRequest; + } + export interface Params$Resource$Partners$Devices$Findbyowner { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$FindDevicesByOwnerRequest; + } + export interface Params$Resource$Partners$Devices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The device API resource name in the format + * `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. + */ + name?: string; + } + export interface Params$Resource$Partners$Devices$Metadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + deviceId?: string; + /** + * Required. The owner of the newly set metadata. Set this to the partner + * ID. + */ + metadataOwnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateDeviceMetadataRequest; + } + export interface Params$Resource$Partners$Devices$Unclaim { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the reseller partner. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$UnclaimDeviceRequest; + } + export interface Params$Resource$Partners$Devices$Unclaimasync { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The reseller partner ID. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$UnclaimDevicesRequest; + } + export interface Params$Resource$Partners$Devices$Updatemetadataasync { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The reseller partner ID. + */ + partnerId?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateDeviceMetadataInBatchRequest; + } } diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index 06a9516232b..f48ef95fe66 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace androidenterprise_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Play EMM API * @@ -104,7 +107,7 @@ export namespace androidenterprise_v1 { /** * The admin's email address. */ - email: string; + email?: string; } /** * A token authorizing an admin to access an iframe. @@ -114,11 +117,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#administratorWebToken". */ - kind: string; + kind?: string; /** * An opaque token to be passed to the Play front-end to generate an iframe. */ - token: string; + token?: string; } /** * Specification for a token used to generate iframes. The token specifies @@ -130,12 +133,12 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#administratorWebTokenSpec". */ - kind: string; + kind?: string; /** * The URI of the parent frame hosting the iframe. To prevent XSS, the * iframe may not be hosted at other URIs. This URI must be https. */ - parent: string; + parent?: string; /** * The list of permissions the admin is granted within the iframe. The admin * will only be allowed to view an iframe if they have all of the @@ -143,24 +146,21 @@ export namespace androidenterprise_v1 { * "approveApps" that will allow the admin to access the iframe in * "approve" mode. */ - permission: string[]; + permission?: string[]; } /** - * The Android Device Policy configuration of an enterprise. + * Deprecated and unused. */ export interface Schema$AndroidDevicePolicyConfig { /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#androidDevicePolicyConfig". */ - kind: string; + kind?: string; /** - * The state of Android Device Policy. "enabled" indicates that - * Android Device Policy is enabled for the enterprise and the EMM is - * allowed to manage devices with Android Device Policy, while - * "disabled" means that it cannot. + * Deprecated and unused. */ - state: string; + state?: string; } /** * Represents the list of app restrictions available to be pre-configured for @@ -171,11 +171,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#appRestrictionsSchema". */ - kind: string; + kind?: string; /** * The set of restrictions that make up this schema. */ - restrictions: Schema$AppRestrictionsSchemaRestriction[]; + restrictions?: Schema$AppRestrictionsSchemaRestriction[]; } /** * An event generated when a new app version is uploaded to Google Play and @@ -188,7 +188,7 @@ export namespace androidenterprise_v1 { * which the app restriction schema changed. This field will always be * present. */ - productId: string; + productId?: string; } /** * A restriction in the App Restriction Schema represents a piece of @@ -199,43 +199,43 @@ export namespace androidenterprise_v1 { * The default value of the restriction. bundle and bundleArray restrictions * never have a default value. */ - defaultValue: Schema$AppRestrictionsSchemaRestrictionRestrictionValue; + defaultValue?: Schema$AppRestrictionsSchemaRestrictionRestrictionValue; /** * A longer description of the restriction, giving more detail of what it * affects. */ - description: string; + description?: string; /** * For choice or multiselect restrictions, the list of possible entries' * human-readable names. */ - entry: string[]; + entry?: string[]; /** * For choice or multiselect restrictions, the list of possible entries' * machine-readable values. These values should be used in the * configuration, either as a single string value for a choice restriction * or in a stringArray for a multiselect restriction. */ - entryValue: string[]; + entryValue?: string[]; /** * The unique key that the product uses to identify the restriction, e.g. * "com.google.android.gm.fieldname". */ - key: string; + key?: string; /** * For bundle or bundleArray restrictions, the list of nested restrictions. * A bundle restriction is always nested within a bundleArray restriction, * and a bundleArray restriction is at most two levels deep. */ - nestedRestriction: Schema$AppRestrictionsSchemaRestriction[]; + nestedRestriction?: Schema$AppRestrictionsSchemaRestriction[]; /** * The type of the restriction. */ - restrictionType: string; + restrictionType?: string; /** * The name of the restriction. */ - title: string; + title?: string; } /** * A typed value for the restriction. @@ -244,25 +244,25 @@ export namespace androidenterprise_v1 { /** * The type of the value being provided. */ - type: string; + type?: string; /** * The boolean value - this will only be present if type is bool. */ - valueBool: boolean; + valueBool?: boolean; /** * The integer value - this will only be present if type is integer. */ - valueInteger: number; + valueInteger?: number; /** * The list of string values - this will only be present if type is * multiselect. */ - valueMultiselect: string[]; + valueMultiselect?: string[]; /** * The string value - this will be present for types string, choice and * hidden. */ - valueString: string; + valueString?: string; } /** * Information on an approval URL. @@ -272,12 +272,12 @@ export namespace androidenterprise_v1 { * A URL that displays a product's permissions and that can also be used * to approve the product with the Products.approve call. */ - approvalUrl: string; + approvalUrl?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#approvalUrlInfo". */ - kind: string; + kind?: string; } /** * An event generated when a new version of an app is uploaded to Google Play. @@ -290,7 +290,7 @@ export namespace androidenterprise_v1 { * The id of the product (e.g. "app:com.google.android.gm") that * was updated. This field will always be present. */ - productId: string; + productId?: string; } /** * This represents a single version of the app. @@ -300,17 +300,17 @@ export namespace androidenterprise_v1 { * The track that this app was published in. For example if track is * "alpha", this is an alpha version of the app. */ - track: string; + track?: string; /** * Unique increasing identifier for the app version. */ - versionCode: number; + versionCode?: number; /** * The string used in the Play store by the app developer to identify the * version. The string is not necessarily unique or localized (for example, * the string could be "1.4"). */ - versionString: string; + versionString?: string; } /** * An AuthenticationToken is used by the EMM's device policy client on a @@ -321,13 +321,13 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#authenticationToken". */ - kind: string; + kind?: string; /** * The authentication token to be passed to the device policy client on the * device where it can be used to provision the account for which this token * was generated. */ - token: string; + token?: string; } /** * A configuration variables resource contains the managed configuration @@ -340,15 +340,15 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#configurationVariables". */ - kind: string; + kind?: string; /** * The ID of the managed configurations settings. */ - mcmId: string; + mcmId?: string; /** * The variable set that is attributed to the user. */ - variableSet: Schema$VariableSet[]; + variableSet?: Schema$VariableSet[]; } /** * A Devices resource represents a mobile device managed by the EMM and @@ -359,12 +359,12 @@ export namespace androidenterprise_v1 { * The Google Play Services Android ID for the device encoded as a lowercase * hex string. For example, "123456789abcdef0". */ - androidId: string; + androidId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#device". */ - kind: string; + kind?: string; /** * Identifies the extent to which the device is controlled by a managed * Google Play EMM in various deployment configurations. Possible values @@ -378,11 +378,11 @@ export namespace androidenterprise_v1 { * enable the privilege) to use managed Google Play, but the profile is * itself not owned by a DPC. */ - managementType: string; + managementType?: string; /** * The policy enforced on the device. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * The device resources for the user. @@ -391,12 +391,12 @@ export namespace androidenterprise_v1 { /** * A managed device. */ - device: Schema$Device[]; + device?: Schema$Device[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#devicesListResponse". */ - kind: string; + kind?: string; } /** * The state of a user's device, as accessed by the getState and setState @@ -410,12 +410,12 @@ export namespace androidenterprise_v1 { * that it cannot. A new device is initially in the "disabled" * state. */ - accountState: string; + accountState?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#deviceState". */ - kind: string; + kind?: string; } /** * An Enterprises resource represents the binding between an EMM and a @@ -436,24 +436,24 @@ export namespace androidenterprise_v1 { * Admins of the enterprise. This is only supported for enterprises created * via the EMM-initiated flow. */ - administrator: Schema$Administrator[]; + administrator?: Schema$Administrator[]; /** * The unique ID for the enterprise. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#enterprise". */ - kind: string; + kind?: string; /** * The name of the enterprise, for example, "Example, Inc". */ - name: string; + name?: string; /** * The enterprise's primary domain, such as "example.com". */ - primaryDomain: string; + primaryDomain?: string; } /** * A service account that can be used to authenticate as the enterprise to API @@ -463,12 +463,12 @@ export namespace androidenterprise_v1 { /** * The email address of the service account. */ - accountEmail: string; + accountEmail?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#enterpriseAccount". */ - kind: string; + kind?: string; } /** * The matching enterprise resources. @@ -477,23 +477,23 @@ export namespace androidenterprise_v1 { /** * An enterprise. */ - enterprise: Schema$Enterprise[]; + enterprise?: Schema$Enterprise[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#enterprisesListResponse". */ - kind: string; + kind?: string; } export interface Schema$EnterprisesSendTestPushNotificationResponse { /** * The message ID of the test push notification that was sent. */ - messageId: string; + messageId?: string; /** * The name of the Cloud Pub/Sub topic to which notifications for this * enterprise's enrolled account will be sent. */ - topicName: string; + topicName?: string; } /** * The presence of an Entitlements resource indicates that a user has the @@ -521,18 +521,18 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#entitlement". */ - kind: string; + kind?: string; /** * The ID of the product that the entitlement is for. For example, * "app:com.google.android.gm". */ - productId: string; + productId?: string; /** * The reason for the entitlement. For example, "free" for free * apps. This property is temporary: it will be replaced by the acquisition * kind field of group licenses. */ - reason: string; + reason?: string; } /** * The entitlement resources for the user. @@ -543,12 +543,12 @@ export namespace androidenterprise_v1 { * app that they have installed, or a paid app that they have been allocated * a license to. */ - entitlement: Schema$Entitlement[]; + entitlement?: Schema$Entitlement[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#entitlementsListResponse". */ - kind: string; + kind?: string; } /** * Group license objects allow you to keep track of licenses (called @@ -572,7 +572,7 @@ export namespace androidenterprise_v1 { * licenses for this product; otherwise, the value is "free" (for * free products). */ - acquisitionKind: string; + acquisitionKind?: string; /** * Whether the product to which this group license relates is currently * approved by the enterprise. Products are approved when a group license is @@ -580,24 +580,24 @@ export namespace androidenterprise_v1 { * via Google Play. Unapproved products will not be visible to end users in * collections, and new entitlements to them should not normally be created. */ - approval: string; + approval?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#groupLicense". */ - kind: string; + kind?: string; /** * The total number of provisioned licenses for this product. Returned by * read operations, but ignored in write operations. */ - numProvisioned: number; + numProvisioned?: number; /** * The number of purchased licenses (possibly in multiple purchases). If * this field is omitted, then there is no limit on the number of licenses * that can be provisioned (for example, if the acquisition kind is * "free"). */ - numPurchased: number; + numPurchased?: number; /** * The permission approval status of the product. This field is only set if * the product is approved. Possible states are: - @@ -611,12 +611,12 @@ export namespace androidenterprise_v1 { * permissions are approved and any future permission updates will be * automatically approved without administrator review. */ - permissions: string; + permissions?: string; /** * The ID of the product that the license is for. For example, * "app:com.google.android.gm". */ - productId: string; + productId?: string; } /** * The grouplicense resources for the enterprise. @@ -625,12 +625,12 @@ export namespace androidenterprise_v1 { /** * A group license for a product approved for use in the enterprise. */ - groupLicense: Schema$GroupLicense[]; + groupLicense?: Schema$GroupLicense[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#groupLicensesListResponse". */ - kind: string; + kind?: string; } /** * The user resources for the group license. @@ -640,11 +640,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#groupLicenseUsersListResponse". */ - kind: string; + kind?: string; /** * A user of an enterprise. */ - user: Schema$User[]; + user?: Schema$User[]; } /** * The existence of an Installs resource indicates that an app is installed on @@ -673,22 +673,22 @@ export namespace androidenterprise_v1 { * The state "installed" means that the app has been installed. * This field is read-only. */ - installState: string; + installState?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#install". */ - kind: string; + kind?: string; /** * The ID of the product that the install is for. For example, * "app:com.google.android.gm". */ - productId: string; + productId?: string; /** * The version of the installed product. Guaranteed to be set only if the * install state is "installed". */ - versionCode: number; + versionCode?: number; } /** * An event generated when an app installation failed on a device @@ -697,26 +697,26 @@ export namespace androidenterprise_v1 { /** * The Android ID of the device. This field will always be present. */ - deviceId: string; + deviceId?: string; /** * Additional details on the failure if applicable. */ - failureDetails: string; + failureDetails?: string; /** * The reason for the installation failure. This field will always be * present. */ - failureReason: string; + failureReason?: string; /** * The id of the product (e.g. "app:com.google.android.gm") for * which the install failure event occured. This field will always be * present. */ - productId: string; + productId?: string; /** * The ID of the user. This field will always be present. */ - userId: string; + userId?: string; } /** * The install resources for the device. @@ -726,12 +726,12 @@ export namespace androidenterprise_v1 { * An installation of an app for a user on a specific device. The existence * of an install implies that the user must have an entitlement to the app. */ - install: Schema$Install[]; + install?: Schema$Install[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#installsListResponse". */ - kind: string; + kind?: string; } /** * A localized string with its locale. @@ -740,11 +740,11 @@ export namespace androidenterprise_v1 { /** * The BCP47 tag for a locale. (e.g. "en-US", "de"). */ - locale: string; + locale?: string; /** * The text localized in the associated locale. */ - text: string; + text?: string; } /** * Maintenance window for managed Google Play Accounts. This allows Play store @@ -755,12 +755,12 @@ export namespace androidenterprise_v1 { * Duration of the maintenance window, in milliseconds. The duration must be * between 30 minutes and 24 hours (inclusive). */ - durationMs: string; + durationMs?: string; /** * Start time of the maintenance window, in milliseconds after midnight on * the device. Windows can span midnight. */ - startTimeAfterMidnightMs: string; + startTimeAfterMidnightMs?: string; } /** * A managed configuration resource contains the set of managed properties @@ -772,21 +772,21 @@ export namespace androidenterprise_v1 { * Contains the ID of the managed configuration profile and the set of * configuration variables (if any) defined for the user. */ - configurationVariables: Schema$ConfigurationVariables; + configurationVariables?: Schema$ConfigurationVariables; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#managedConfiguration". */ - kind: string; + kind?: string; /** * The set of managed properties for this configuration. */ - managedProperty: Schema$ManagedProperty[]; + managedProperty?: Schema$ManagedProperty[]; /** * The ID of the product that the managed configuration is for, e.g. * "app:com.google.android.gm". */ - productId: string; + productId?: string; } /** * The managed configuration resources for the device. @@ -796,11 +796,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#managedConfigurationsForDeviceListResponse". */ - kind: string; + kind?: string; /** * A managed configuration for an app on a specific device. */ - managedConfigurationForDevice: Schema$ManagedConfiguration[]; + managedConfigurationForDevice?: Schema$ManagedConfiguration[]; } /** * The managed configuration resources for the user. @@ -810,11 +810,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#managedConfigurationsForUserListResponse". */ - kind: string; + kind?: string; /** * A managed configuration for an app for a specific user. */ - managedConfigurationForUser: Schema$ManagedConfiguration[]; + managedConfigurationForUser?: Schema$ManagedConfiguration[]; } /** * A managed configurations settings resource contains the set of managed @@ -827,24 +827,24 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#managedConfigurationsSettings". */ - kind: string; + kind?: string; /** * The last updated time of the managed configuration settings in * milliseconds since 1970-01-01T00:00:00Z. */ - lastUpdatedTimestampMillis: string; + lastUpdatedTimestampMillis?: string; /** * The set of managed properties for this configuration. */ - managedProperty: Schema$ManagedProperty[]; + managedProperty?: Schema$ManagedProperty[]; /** * The ID of the managed configurations settings. */ - mcmId: string; + mcmId?: string; /** * The name of the managed configurations settings. */ - name: string; + name?: string; } /** * The managed configurations settings for a product. @@ -854,12 +854,12 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#managedConfigurationsSettingsListResponse". */ - kind: string; + kind?: string; /** * A managed configurations settings for an app that may be assigned to a * group of users in an enterprise. */ - managedConfigurationsSettings: Schema$ManagedConfigurationsSettings[]; + managedConfigurationsSettings?: Schema$ManagedConfigurationsSettings[]; } /** * A managed property of a managed configuration. The property must match one @@ -871,37 +871,37 @@ export namespace androidenterprise_v1 { /** * The unique key that identifies the property. */ - key: string; + key?: string; /** * The boolean value - this will only be present if type of the property is * bool. */ - valueBool: boolean; + valueBool?: boolean; /** * The bundle of managed properties - this will only be present if type of * the property is bundle. */ - valueBundle: Schema$ManagedPropertyBundle; + valueBundle?: Schema$ManagedPropertyBundle; /** * The list of bundles of properties - this will only be present if type of * the property is bundle_array. */ - valueBundleArray: Schema$ManagedPropertyBundle[]; + valueBundleArray?: Schema$ManagedPropertyBundle[]; /** * The integer value - this will only be present if type of the property is * integer. */ - valueInteger: number; + valueInteger?: number; /** * The string value - this will only be present if type of the property is * string, choice or hidden. */ - valueString: string; + valueString?: string; /** * The list of string values - this will only be present if type of the * property is multiselect. */ - valueStringArray: string[]; + valueStringArray?: string[]; } /** * A bundle of managed properties. @@ -910,7 +910,7 @@ export namespace androidenterprise_v1 { /** * The list of managed properties. */ - managedProperty: Schema$ManagedProperty[]; + managedProperty?: Schema$ManagedProperty[]; } /** * An event generated when a new device is ready to be managed. @@ -919,11 +919,11 @@ export namespace androidenterprise_v1 { /** * The Android ID of the device. This field will always be present. */ - deviceId: string; + deviceId?: string; /** * Policy app on the device. */ - dpcPackageName: string; + dpcPackageName?: string; /** * Identifies the extent to which the device is controlled by an Android EMM * in various deployment configurations. Possible values include: - @@ -931,11 +931,11 @@ export namespace androidenterprise_v1 { * - "managedProfile", a device where the DPC is set as profile * owner. */ - managementType: string; + managementType?: string; /** * The ID of the user. This field will always be present. */ - userId: string; + userId?: string; } /** * An event generated when new permissions are added to an app. @@ -946,18 +946,18 @@ export namespace androidenterprise_v1 { * this application. Use Permissions.Get on the EMM API to retrieve details * about these permissions. */ - approvedPermissions: string[]; + approvedPermissions?: string[]; /** * The id of the product (e.g. "app:com.google.android.gm") for * which new permissions were added. This field will always be present. */ - productId: string; + productId?: string; /** * The set of permissions that the app is currently requesting. Use * Permissions.Get on the EMM API to retrieve details about these * permissions. */ - requestedPermissions: string[]; + requestedPermissions?: string[]; } /** * A notification of one event relating to an enterprise. @@ -966,45 +966,45 @@ export namespace androidenterprise_v1 { /** * Notifications about new app restrictions schema changes. */ - appRestrictionsSchemaChangeEvent: Schema$AppRestrictionsSchemaChangeEvent; + appRestrictionsSchemaChangeEvent?: Schema$AppRestrictionsSchemaChangeEvent; /** * Notifications about app updates. */ - appUpdateEvent: Schema$AppUpdateEvent; + appUpdateEvent?: Schema$AppUpdateEvent; /** * The ID of the enterprise for which the notification is sent. This will * always be present. */ - enterpriseId: string; + enterpriseId?: string; /** * Notifications about an app installation failure. */ - installFailureEvent: Schema$InstallFailureEvent; + installFailureEvent?: Schema$InstallFailureEvent; /** * Notifications about new devices. */ - newDeviceEvent: Schema$NewDeviceEvent; + newDeviceEvent?: Schema$NewDeviceEvent; /** * Notifications about new app permissions. */ - newPermissionsEvent: Schema$NewPermissionsEvent; + newPermissionsEvent?: Schema$NewPermissionsEvent; /** * Type of the notification. */ - notificationType: string; + notificationType?: string; /** * Notifications about changes to a product's approval status. */ - productApprovalEvent: Schema$ProductApprovalEvent; + productApprovalEvent?: Schema$ProductApprovalEvent; /** * Notifications about product availability changes. */ - productAvailabilityChangeEvent: Schema$ProductAvailabilityChangeEvent; + productAvailabilityChangeEvent?: Schema$ProductAvailabilityChangeEvent; /** * The time when the notification was published in milliseconds since * 1970-01-01T00:00:00Z. This will always be present. */ - timestampMillis: string; + timestampMillis?: string; } /** * A resource returned by the PullNotificationSet API, which contains a @@ -1016,22 +1016,22 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#notificationSet". */ - kind: string; + kind?: string; /** * The notifications received, or empty if no notifications are present. */ - notification: Schema$Notification[]; + notification?: Schema$Notification[]; /** * The notification set ID, required to mark the notification as received * with the Enterprises.AcknowledgeNotification API. This will be omitted if * no notifications are present. */ - notificationSetId: string; + notificationSetId?: string; } export interface Schema$PageInfo { - resultPerPage: number; - startIndex: number; - totalResults: number; + resultPerPage?: number; + startIndex?: number; + totalResults?: number; } /** * A Permissions resource represents some extra capability, to be granted to @@ -1047,20 +1047,20 @@ export namespace androidenterprise_v1 { * A longer description of the Permissions resource, giving more details of * what it affects. */ - description: string; + description?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#permission". */ - kind: string; + kind?: string; /** * The name of the permission. */ - name: string; + name?: string; /** * An opaque string uniquely identifying the permission. */ - permissionId: string; + permissionId?: string; } /** * The device policy for a given managed device. @@ -1073,12 +1073,12 @@ export namespace androidenterprise_v1 { * "never" disables auto updates. "wifiOnly" enables * auto updates only when the device is connected to wifi. */ - autoUpdatePolicy: string; + autoUpdatePolicy?: string; /** * The maintenance window defining when apps running in the foreground * should be updated. */ - maintenanceWindow: Schema$MaintenanceWindow; + maintenanceWindow?: Schema$MaintenanceWindow; /** * The availability granted to the device for the specified products. * "all" gives the device access to all products, regardless of @@ -1092,11 +1092,11 @@ export namespace androidenterprise_v1 { * can be whitelisted. If no value is provided, the availability set at the * user level is applied by default. */ - productAvailabilityPolicy: string; + productAvailabilityPolicy?: string; /** * The list of product policies. */ - productPolicy: Schema$ProductPolicy[]; + productPolicy?: Schema$ProductPolicy[]; } /** * A Products resource represents an app in the Google Play store that is @@ -1111,35 +1111,35 @@ export namespace androidenterprise_v1 { /** * App versions currently available for this product. */ - appVersion: Schema$AppVersion[]; + appVersion?: Schema$AppVersion[]; /** * The name of the author of the product (for example, the app developer). */ - authorName: string; + authorName?: string; /** * The countries which this app is available in. */ - availableCountries: string[]; + availableCountries?: string[]; /** * The tracks that are visible to the enterprise. */ - availableTracks: string[]; + availableTracks?: string[]; /** * The app category (e.g. RACING, SOCIAL, etc.) */ - category: string; + category?: string; /** * The content rating for this app. */ - contentRating: string; + contentRating?: string; /** * The localized promotional description, if available. */ - description: string; + description?: string; /** * A link to the (consumer) Google Play details page for the product. */ - detailsUrl: string; + detailsUrl?: string; /** * How and to whom the package is made available. The value * publicGoogleHosted means that the package is available through the Play @@ -1149,71 +1149,71 @@ export namespace androidenterprise_v1 { * that the package is a private app (restricted to an enterprise) and is * privately hosted. */ - distributionChannel: string; + distributionChannel?: string; /** * A link to an image that can be used as an icon for the product. This * image is suitable for use at up to 512px x 512px. */ - iconUrl: string; + iconUrl?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#product". */ - kind: string; + kind?: string; /** * The approximate time (within 7 days) the app was last published, * expressed in milliseconds since epoch. */ - lastUpdatedTimestampMillis: string; + lastUpdatedTimestampMillis?: string; /** * The minimum Android SDK necessary to run the app. */ - minAndroidSdkVersion: number; + minAndroidSdkVersion?: number; /** * A list of permissions required by the app. */ - permissions: Schema$ProductPermission[]; + permissions?: Schema$ProductPermission[]; /** * A string of the form app:<package name>. For example, * app:com.google.android.gm represents the Gmail app. */ - productId: string; + productId?: string; /** * Whether this product is free, free with in-app purchases, or paid. If the * pricing is unknown, this means the product is not generally available * anymore (even though it might still be available to people who own it). */ - productPricing: string; + productPricing?: string; /** * A description of the recent changes made to the app. */ - recentChanges: string; + recentChanges?: string; /** * Deprecated. */ - requiresContainerApp: boolean; + requiresContainerApp?: boolean; /** * A list of screenshot links representing the app. */ - screenshotUrls: string[]; + screenshotUrls?: string[]; /** * The certificate used to sign this product. */ - signingCertificate: Schema$ProductSigningCertificate; + signingCertificate?: Schema$ProductSigningCertificate; /** * A link to a smaller image that can be used as an icon for the product. * This image is suitable for use at up to 128px x 128px. */ - smallIconUrl: string; + smallIconUrl?: string; /** * The name of the product. */ - title: string; + title?: string; /** * A link to the managed Google Play details page for the product, for use * by an Enterprise admin. */ - workDetailsUrl: string; + workDetailsUrl?: string; } /** * An event generated when a product's approval status is changed. @@ -1223,12 +1223,12 @@ export namespace androidenterprise_v1 { * Whether the product was approved or unapproved. This field will always be * present. */ - approved: string; + approved?: string; /** * The id of the product (e.g. "app:com.google.android.gm") for * which the approval status has changed. This field will always be present. */ - productId: string; + productId?: string; } /** * An event generated whenever a product's availability changes. @@ -1237,13 +1237,13 @@ export namespace androidenterprise_v1 { /** * The new state of the product. This field will always be present. */ - availabilityStatus: string; + availabilityStatus?: string; /** * The id of the product (e.g. "app:com.google.android.gm") for * which the product availability changed. This field will always be * present. */ - productId: string; + productId?: string; } /** * A product permissions resource represents the set of permissions required @@ -1255,11 +1255,11 @@ export namespace androidenterprise_v1 { /** * An opaque string uniquely identifying the permission. */ - permissionId: string; + permissionId?: string; /** * Whether the permission has been accepted or not. */ - state: string; + state?: string; } /** * Information about the permissions required by a specific app and whether @@ -1270,16 +1270,16 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#productPermissions". */ - kind: string; + kind?: string; /** * The permissions required by the app. */ - permission: Schema$ProductPermission[]; + permission?: Schema$ProductPermission[]; /** * The ID of the app that the permissions relate to, e.g. * "app:com.google.android.gm". */ - productId: string; + productId?: string; } /** * The policy for a product. @@ -1289,7 +1289,7 @@ export namespace androidenterprise_v1 { * The ID of the product. For example, * "app:com.google.android.gm". */ - productId: string; + productId?: string; /** * Grants visibility to the specified track(s) of the product to the device. * The track available to the device is based on the following order of @@ -1307,7 +1307,7 @@ export namespace androidenterprise_v1 { * "beta", "production"} The order of elements is not * relevant. Any other set of tracks will be rejected with an error. */ - tracks: string[]; + tracks?: string[]; } export interface Schema$ProductsApproveRequest { /** @@ -1318,7 +1318,7 @@ export namespace androidenterprise_v1 { * not include new permissions if the product was updated since the URL was * generated. */ - approvalUrlInfo: Schema$ApprovalUrlInfo; + approvalUrlInfo?: Schema$ApprovalUrlInfo; /** * Sets how new permission requests for the product are handled. * "allPermissions" automatically approves all current and future @@ -1327,7 +1327,7 @@ export namespace androidenterprise_v1 { * permissions added through updates will require manual reapproval. If not * specified, only the current set of permissions will be approved. */ - approvedPermissions: string; + approvedPermissions?: string; } /** * A set of products. @@ -1337,11 +1337,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#productSet". */ - kind: string; + kind?: string; /** * The list of product IDs making up the set of products. */ - productId: string[]; + productId?: string[]; /** * The interpretation of this product set. "unknown" should never * be sent and is ignored if received. "whitelist" means that the @@ -1358,7 +1358,7 @@ export namespace androidenterprise_v1 { * Android app. Use ProductVisibility to enable "alpha" or * "beta" tracks per user. */ - productSetBehavior: string; + productSetBehavior?: string; /** * Additional list of product IDs making up the product set. Unlike the * productID array, in this list It's possible to specify which tracks @@ -1367,7 +1367,7 @@ export namespace androidenterprise_v1 { * same product ID both here and in the productId array is not allowed and * it will result in an error. */ - productVisibility: Schema$ProductVisibility[]; + productVisibility?: Schema$ProductVisibility[]; } export interface Schema$ProductsGenerateApprovalUrlResponse { /** @@ -1380,7 +1380,7 @@ export namespace androidenterprise_v1 { * was last approved, and the URL will only display those new permissions * that have not yet been accepted. */ - url: string; + url?: string; } export interface Schema$ProductSigningCertificate { /** @@ -1388,11 +1388,11 @@ export namespace androidenterprise_v1 { * deprecated in favor of SHA2-256. It should not be used and may be removed * at any time.) */ - certificateHashSha1: string; + certificateHashSha1?: string; /** * The base64 urlsafe encoded SHA2-256 hash of the certificate. */ - certificateHashSha256: string; + certificateHashSha256?: string; } /** * The matching products. @@ -1402,20 +1402,20 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#productsListResponse". */ - kind: string; + kind?: string; /** * General pagination information. */ - pageInfo: Schema$PageInfo; + pageInfo?: Schema$PageInfo; /** * Information about a product (e.g. an app) in the Google Play store, for * display to an enterprise admin. */ - product: Schema$Product[]; + product?: Schema$Product[]; /** * Pagination information for token pagination. */ - tokenPagination: Schema$TokenPagination; + tokenPagination?: Schema$TokenPagination; } /** * A product to be made visible to a user. @@ -1425,7 +1425,7 @@ export namespace androidenterprise_v1 { * The product ID to make visible to the user. Required for each item in the * productVisibility list. */ - productId: string; + productId?: string; /** * Grants visibility to the specified track(s) of the product to the user. * The track available to the user is based on the following order of @@ -1444,7 +1444,7 @@ export namespace androidenterprise_v1 { * of elements is not relevant. Any other set of tracks will be rejected * with an error. */ - tracks: string[]; + tracks?: string[]; } /** * A service account identity, including the name and credentials that can be @@ -1454,17 +1454,17 @@ export namespace androidenterprise_v1 { /** * Credentials that can be used to authenticate as this ServiceAccount. */ - key: Schema$ServiceAccountKey; + key?: Schema$ServiceAccountKey; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#serviceAccount". */ - kind: string; + kind?: string; /** * The account name of the service account, in the form of an email address. * Assigned by the server. */ - name: string; + name?: string; } /** * Credentials that can be used to authenticate as a service account. @@ -1475,34 +1475,34 @@ export namespace androidenterprise_v1 { * only populated when the ServiceAccountKey is created, and is not stored * by Google. */ - data: string; + data?: string; /** * An opaque, unique identifier for this ServiceAccountKey. Assigned by the * server. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#serviceAccountKey". */ - kind: string; + kind?: string; /** * Public key data for the credentials file. This is an X.509 cert. If you * are using the googleCredentials key type, this is identical to the cert * that can be retrieved by using the X.509 cert url inside of the * credentials file. */ - publicData: string; + publicData?: string; /** * The file format of the generated key data. */ - type: string; + type?: string; } export interface Schema$ServiceAccountKeysListResponse { /** * The service account credentials. */ - serviceAccountKey: Schema$ServiceAccountKey[]; + serviceAccountKey?: Schema$ServiceAccountKey[]; } /** * A resource returned by the GenerateSignupUrl API, which contains the Signup @@ -1513,17 +1513,17 @@ export namespace androidenterprise_v1 { * An opaque token that will be required, along with the Enterprise Token, * for obtaining the enterprise resource from CompleteSignup. */ - completionToken: string; + completionToken?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#signupInfo". */ - kind: string; + kind?: string; /** * A URL under which the Admin can sign up for an enterprise. The page * pointed to cannot be rendered in an iframe. */ - url: string; + url?: string; } /** * Definition of a managed Google Play store cluster, a list of products @@ -1534,18 +1534,18 @@ export namespace androidenterprise_v1 { * Unique ID of this cluster. Assigned by the server. Immutable once * assigned. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#storeCluster". */ - kind: string; + kind?: string; /** * Ordered list of localized strings giving the name of this page. The text * displayed is the one that best matches the user locale, or the first * entry if there is no good match. There needs to be at least one entry. */ - name: Schema$LocalizedText[]; + name?: Schema$LocalizedText[]; /** * String (US-ASCII only) used to determine order of this cluster within the * parent page's elements. Page elements are sorted in lexicographic @@ -1554,12 +1554,12 @@ export namespace androidenterprise_v1 { * never visible to a user, it is used solely for the purpose of defining an * ordering. Maximum length is 256 characters. */ - orderInPage: string; + orderInPage?: string; /** * List of products in the order they are displayed in the cluster. There * should not be duplicates within a cluster. */ - productId: string[]; + productId?: string[]; } /** * General setting for the managed Google Play store layout, currently only @@ -1572,19 +1572,19 @@ export namespace androidenterprise_v1 { * homepage is equivalent to setting the store layout type to * "basic". */ - homepageId: string; + homepageId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#storeLayout". */ - kind: string; + kind?: string; /** * The store layout type. By default, this value is set to "basic" * if the homepageId field is not set, and to "custom" otherwise. * If set to "basic", the layout will consist of all approved apps * that have been whitelisted for the user. */ - storeLayoutType: string; + storeLayoutType?: string; } /** * The store page resources for the enterprise. @@ -1593,12 +1593,12 @@ export namespace androidenterprise_v1 { /** * A store cluster of an enterprise. */ - cluster: Schema$StoreCluster[]; + cluster?: Schema$StoreCluster[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#storeLayoutClustersListResponse". */ - kind: string; + kind?: string; } /** * The store page resources for the enterprise. @@ -1608,11 +1608,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#storeLayoutPagesListResponse". */ - kind: string; + kind?: string; /** * A store page of an enterprise. */ - page: Schema$StorePage[]; + page?: Schema$StorePage[]; } /** * Definition of a managed Google Play store page, made of a localized name @@ -1623,12 +1623,12 @@ export namespace androidenterprise_v1 { /** * Unique ID of this page. Assigned by the server. Immutable once assigned. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#storePage". */ - kind: string; + kind?: string; /** * Ordered list of pages a user should be able to reach from this page. The * pages must exist, must not be this page, and once a link is created the @@ -1637,17 +1637,17 @@ export namespace androidenterprise_v1 { * links between pages. No attempt is made to verify that all pages are * reachable from the homepage. */ - link: string[]; + link?: string[]; /** * Ordered list of localized strings giving the name of this page. The text * displayed is the one that best matches the user locale, or the first * entry if there is no good match. There needs to be at least one entry. */ - name: Schema$LocalizedText[]; + name?: Schema$LocalizedText[]; } export interface Schema$TokenPagination { - nextPageToken: string; - previousPageToken: string; + nextPageToken?: string; + previousPageToken?: string; } /** * A Users resource represents an account associated with an enterprise. The @@ -1667,7 +1667,7 @@ export namespace androidenterprise_v1 { * information (PII) for this property. Must always be set for EMM-managed * users. Not set for Google-managed users. */ - accountIdentifier: string; + accountIdentifier?: string; /** * The type of account that this user represents. A userAccount can be * installed on multiple devices, but a deviceAccount is specific to a @@ -1675,7 +1675,7 @@ export namespace androidenterprise_v1 { * (userAccount, deviceAccount), but a Google-managed user (googleManaged) * is always a userAccount. */ - accountType: string; + accountType?: string; /** * The name that will appear in user interfaces. Setting this property is * optional when creating EMM-managed users. If you do set this property, @@ -1683,28 +1683,28 @@ export namespace androidenterprise_v1 { * Inc.") or your name (as EMM). Not used for Google-managed user * accounts. */ - displayName: string; + displayName?: string; /** * The unique ID for the user. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#user". */ - kind: string; + kind?: string; /** * The entity that manages the user. With googleManaged users, the source of * truth is Google so EMMs have to make sure a Google Account exists for the * user. With emmManaged users, the EMM is in charge. */ - managementType: string; + managementType?: string; /** * The user's primary email address, for example, * "jsmith@example.com". Will always be set for Google managed * users and not set for EMM managed users. */ - primaryEmail: string; + primaryEmail?: string; } /** * The matching user resources. @@ -1714,11 +1714,11 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#usersListResponse". */ - kind: string; + kind?: string; /** * A user of an enterprise. */ - user: Schema$User[]; + user?: Schema$User[]; } /** * A UserToken is used by a user when setting up a managed device or profile @@ -1731,16 +1731,16 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#userToken". */ - kind: string; + kind?: string; /** * The token (activation code) to be entered by the user. This consists of a * sequence of decimal digits. Note that the leading digit may be 0. */ - token: string; + token?: string; /** * The unique ID for the user. */ - userId: string; + userId?: string; } /** * A variable set is a key-value pair of EMM-provided placeholders and its @@ -1753,17 +1753,18 @@ export namespace androidenterprise_v1 { * Identifies what kind of resource this is. Value: the fixed string * "androidenterprise#variableSet". */ - kind: string; + kind?: string; /** * The placeholder string; defined by EMM. */ - placeholder: string; + placeholder?: string; /** * The value of the placeholder, specific to the user. */ - userValue: string; + userValue?: string; } + export class Resource$Devices { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -1790,23 +1791,33 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Devices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Devices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Devices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Devices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Devices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Devices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1849,26 +1860,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getState(params?: any, options?: MethodOptions): - AxiosPromise; getState( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Devices$Getstate, + options?: MethodOptions): AxiosPromise; + getState( + params: Params$Resource$Devices$Getstate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getState( + params: Params$Resource$Devices$Getstate, + callback: BodyResponseCallback): void; + getState(callback: BodyResponseCallback): void; getState( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Devices$Getstate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Devices$Getstate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Devices$Getstate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1906,28 +1929,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Devices$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Devices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Devices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Devices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Devices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Devices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1968,25 +2000,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Devices$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Devices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Devices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Devices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Devices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Devices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2030,26 +2073,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setState(params?: any, options?: MethodOptions): - AxiosPromise; setState( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Devices$Setstate, + options?: MethodOptions): AxiosPromise; setState( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Devices$Setstate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setState( + params: Params$Resource$Devices$Setstate, + callback: BodyResponseCallback): void; + setState(callback: BodyResponseCallback): void; + setState( + paramsOrCallback?: Params$Resource$Devices$Setstate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Devices$Setstate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Devices$Setstate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2090,25 +2145,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Devices$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Devices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Devices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Devices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Devices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Devices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2133,6 +2199,142 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Devices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Devices$Getstate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Devices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Devices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Mask that identifies which fields to update. If not set, all modifiable + * fields will be modified. When set in a query parameter, this field + * should be specified as updateMask=,,... + */ + updateMask?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Device; + } + export interface Params$Resource$Devices$Setstate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$DeviceState; + } + export interface Params$Resource$Devices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Mask that identifies which fields to update. If not set, all modifiable + * fields will be modified. When set in a query parameter, this field + * should be specified as updateMask=,,... + */ + updateMask?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Device; + } + + export class Resource$Enterprises { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -2159,23 +2361,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledgeNotificationSet(params?: any, options?: MethodOptions): - AxiosPromise; acknowledgeNotificationSet( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Acknowledgenotificationset, + options?: MethodOptions): AxiosPromise; + acknowledgeNotificationSet( + params: Params$Resource$Enterprises$Acknowledgenotificationset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + acknowledgeNotificationSet( + params: Params$Resource$Enterprises$Acknowledgenotificationset, + callback: BodyResponseCallback): void; + acknowledgeNotificationSet(callback: BodyResponseCallback): void; acknowledgeNotificationSet( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Enterprises$Acknowledgenotificationset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Acknowledgenotificationset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Acknowledgenotificationset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2215,26 +2432,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - completeSignup(params?: any, options?: MethodOptions): - AxiosPromise; completeSignup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Completesignup, + options?: MethodOptions): AxiosPromise; completeSignup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Completesignup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + completeSignup( + params: Params$Resource$Enterprises$Completesignup, + callback: BodyResponseCallback): void; + completeSignup(callback: BodyResponseCallback): void; + completeSignup( + paramsOrCallback?: Params$Resource$Enterprises$Completesignup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Completesignup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Completesignup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2274,28 +2504,41 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createWebToken(params?: any, options?: MethodOptions): - AxiosPromise; createWebToken( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Enterprises$Createwebtoken, + options?: MethodOptions): AxiosPromise; + createWebToken( + params: Params$Resource$Enterprises$Createwebtoken, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + createWebToken( + params: Params$Resource$Enterprises$Createwebtoken, + callback: BodyResponseCallback): void; createWebToken( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + createWebToken( + paramsOrCallback?: Params$Resource$Enterprises$Createwebtoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Createwebtoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Createwebtoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2335,22 +2578,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Enterprises$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Enterprises$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2387,26 +2645,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enroll(params?: any, options?: MethodOptions): - AxiosPromise; enroll( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Enroll, + options?: MethodOptions): AxiosPromise; enroll( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Enroll, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enroll( + params: Params$Resource$Enterprises$Enroll, + callback: BodyResponseCallback): void; + enroll(callback: BodyResponseCallback): void; + enroll( + paramsOrCallback?: Params$Resource$Enterprises$Enroll| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Enroll; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Enroll; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2441,26 +2712,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateSignupUrl(params?: any, options?: MethodOptions): - AxiosPromise; generateSignupUrl( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Generatesignupurl, + options?: MethodOptions): AxiosPromise; + generateSignupUrl( + params: Params$Resource$Enterprises$Generatesignupurl, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generateSignupUrl( + params: Params$Resource$Enterprises$Generatesignupurl, + callback: BodyResponseCallback): void; + generateSignupUrl(callback: BodyResponseCallback): void; generateSignupUrl( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Generatesignupurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Generatesignupurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Generatesignupurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2495,23 +2779,34 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Enterprises$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Enterprises$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Enterprises$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Enterprises$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Enterprises$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2537,7 +2832,7 @@ export namespace androidenterprise_v1 { /** * androidenterprise.enterprises.getAndroidDevicePolicyConfig - * @desc Returns the Android Device Policy config resource. + * @desc Deprecated and unused. * @alias androidenterprise.enterprises.getAndroidDevicePolicyConfig * @memberOf! () * @@ -2547,29 +2842,43 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAndroidDevicePolicyConfig(params?: any, options?: MethodOptions): + getAndroidDevicePolicyConfig( + params?: Params$Resource$Enterprises$Getandroiddevicepolicyconfig, + options?: MethodOptions): AxiosPromise; getAndroidDevicePolicyConfig( - params?: any, - options?: MethodOptions| + params: Params$Resource$Enterprises$Getandroiddevicepolicyconfig, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + getAndroidDevicePolicyConfig( + params: Params$Resource$Enterprises$Getandroiddevicepolicyconfig, + callback: BodyResponseCallback): void; getAndroidDevicePolicyConfig( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getAndroidDevicePolicyConfig( + paramsOrCallback?: + Params$Resource$Enterprises$Getandroiddevicepolicyconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Getandroiddevicepolicyconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Getandroiddevicepolicyconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2618,26 +2927,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getServiceAccount(params?: any, options?: MethodOptions): - AxiosPromise; getServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Getserviceaccount, + options?: MethodOptions): AxiosPromise; + getServiceAccount( + params: Params$Resource$Enterprises$Getserviceaccount, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getServiceAccount( + params: Params$Resource$Enterprises$Getserviceaccount, + callback: BodyResponseCallback): void; + getServiceAccount(callback: BodyResponseCallback): + void; getServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Getserviceaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Getserviceaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Getserviceaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2676,26 +2999,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getStoreLayout(params?: any, options?: MethodOptions): - AxiosPromise; getStoreLayout( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Getstorelayout, + options?: MethodOptions): AxiosPromise; + getStoreLayout( + params: Params$Resource$Enterprises$Getstorelayout, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getStoreLayout( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Getstorelayout, + callback: BodyResponseCallback): void; + getStoreLayout(callback: BodyResponseCallback): void; + getStoreLayout( + paramsOrCallback?: Params$Resource$Enterprises$Getstorelayout| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Getstorelayout; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Getstorelayout; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2734,26 +3070,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Enterprises$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Enterprises$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2792,28 +3141,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Enterprises$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Enterprises$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Enterprises$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Enterprises$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Enterprises$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2861,26 +3220,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pullNotificationSet(params?: any, options?: MethodOptions): - AxiosPromise; pullNotificationSet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Pullnotificationset, + options?: MethodOptions): AxiosPromise; + pullNotificationSet( + params: Params$Resource$Enterprises$Pullnotificationset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; pullNotificationSet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Pullnotificationset, + callback: BodyResponseCallback): void; + pullNotificationSet(callback: BodyResponseCallback): + void; + pullNotificationSet( + paramsOrCallback?: Params$Resource$Enterprises$Pullnotificationset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Pullnotificationset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Pullnotificationset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2917,30 +3290,47 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sendTestPushNotification(params?: any, options?: MethodOptions): + sendTestPushNotification( + params?: Params$Resource$Enterprises$Sendtestpushnotification, + options?: MethodOptions): AxiosPromise; sendTestPushNotification( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Enterprises$Sendtestpushnotification, + options: MethodOptions|BodyResponseCallback< Schema$EnterprisesSendTestPushNotificationResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$EnterprisesSendTestPushNotificationResponse>): void; sendTestPushNotification( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Enterprises$Sendtestpushnotification, + callback: BodyResponseCallback< + Schema$EnterprisesSendTestPushNotificationResponse>): void; + sendTestPushNotification( + callback: BodyResponseCallback< + Schema$EnterprisesSendTestPushNotificationResponse>): void; + sendTestPushNotification( + paramsOrCallback?: Params$Resource$Enterprises$Sendtestpushnotification| + BodyResponseCallback< + Schema$EnterprisesSendTestPushNotificationResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$EnterprisesSendTestPushNotificationResponse>, callback?: BodyResponseCallback< Schema$EnterprisesSendTestPushNotificationResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Sendtestpushnotification; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Sendtestpushnotification; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2981,26 +3371,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAccount(params?: any, options?: MethodOptions): - AxiosPromise; setAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Setaccount, + options?: MethodOptions): AxiosPromise; + setAccount( + params: Params$Resource$Enterprises$Setaccount, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Setaccount, + callback: BodyResponseCallback): void; + setAccount(callback: BodyResponseCallback): void; + setAccount( + paramsOrCallback?: Params$Resource$Enterprises$Setaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Setaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Setaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3026,10 +3429,7 @@ export namespace androidenterprise_v1 { /** * androidenterprise.enterprises.setAndroidDevicePolicyConfig - * @desc Sets the Android Device Policy config resource. EMM may use this - * method to enable or disable Android Device Policy support for the - * specified enterprise. To learn more about managing devices and apps with - * Android Device Policy, see the Android Management API. + * @desc Deprecated and unused. * @alias androidenterprise.enterprises.setAndroidDevicePolicyConfig * @memberOf! () * @@ -3040,29 +3440,43 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAndroidDevicePolicyConfig(params?: any, options?: MethodOptions): + setAndroidDevicePolicyConfig( + params?: Params$Resource$Enterprises$Setandroiddevicepolicyconfig, + options?: MethodOptions): AxiosPromise; setAndroidDevicePolicyConfig( - params?: any, - options?: MethodOptions| + params: Params$Resource$Enterprises$Setandroiddevicepolicyconfig, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + setAndroidDevicePolicyConfig( + params: Params$Resource$Enterprises$Setandroiddevicepolicyconfig, + callback: BodyResponseCallback): void; + setAndroidDevicePolicyConfig( + callback: BodyResponseCallback): void; setAndroidDevicePolicyConfig( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Enterprises$Setandroiddevicepolicyconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Setandroiddevicepolicyconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Setandroiddevicepolicyconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3108,26 +3522,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setStoreLayout(params?: any, options?: MethodOptions): - AxiosPromise; setStoreLayout( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Setstorelayout, + options?: MethodOptions): AxiosPromise; + setStoreLayout( + params: Params$Resource$Enterprises$Setstorelayout, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setStoreLayout( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Setstorelayout, + callback: BodyResponseCallback): void; + setStoreLayout(callback: BodyResponseCallback): void; + setStoreLayout( + paramsOrCallback?: Params$Resource$Enterprises$Setstorelayout| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Setstorelayout; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Setstorelayout; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3164,22 +3591,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unenroll(params?: any, options?: MethodOptions): AxiosPromise; unenroll( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Unenroll, + options?: MethodOptions): AxiosPromise; + unenroll( + params: Params$Resource$Enterprises$Unenroll, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; unenroll( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Unenroll, + callback: BodyResponseCallback): void; + unenroll(callback: BodyResponseCallback): void; + unenroll( + paramsOrCallback?: Params$Resource$Enterprises$Unenroll| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Unenroll; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Unenroll; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3203,23 +3645,268 @@ export namespace androidenterprise_v1 { } } - export class Resource$Entitlements { - root: Androidenterprise; - constructor(root: Androidenterprise) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Enterprises$Acknowledgenotificationset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * The notification set ID as returned by Enterprises.PullNotificationSet. + * This must be provided. + */ + notificationSetId?: string; + } + export interface Params$Resource$Enterprises$Completesignup { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The Completion token initially returned by GenerateSignupUrl. + */ + completionToken?: string; + /** + * The Enterprise token appended to the Callback URL. + */ + enterpriseToken?: string; + } + export interface Params$Resource$Enterprises$Createwebtoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * androidenterprise.entitlements.delete - * @desc Removes an entitlement to an app for a user. - * @alias androidenterprise.entitlements.delete - * @memberOf! () + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdministratorWebTokenSpec; + } + export interface Params$Resource$Enterprises$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Enterprises$Enroll { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The token provided by the enterprise to register the EMM. + */ + token?: string; + /** + * Request body metadata + */ + resource?: Schema$Enterprise; + } + export interface Params$Resource$Enterprises$Generatesignupurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The callback URL to which the Admin will be redirected after successfully + * creating an enterprise. Before redirecting there the system will add a + * single query parameter to this URL named "enterpriseToken" which will + * contain an opaque token to be used for the CompleteSignup request. Beware + * that this means that the URL will be parsed, the parameter added and then + * a new URL formatted, i.e. there may be some minor formatting changes and, + * more importantly, the URL must be well-formed so that it can be parsed. + */ + callbackUrl?: string; + } + export interface Params$Resource$Enterprises$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Enterprises$Getandroiddevicepolicyconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Enterprises$Getserviceaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The type of credential to return with the service account. Required. + */ + keyType?: string; + } + export interface Params$Resource$Enterprises$Getstorelayout { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Enterprises$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The token provided by the enterprise to register the EMM. + */ + token?: string; + /** + * Request body metadata + */ + resource?: Schema$Enterprise; + } + export interface Params$Resource$Enterprises$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The exact primary domain name of the enterprise to look up. + */ + domain?: string; + } + export interface Params$Resource$Enterprises$Pullnotificationset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The request mode for pulling notifications. Specifying + * waitForNotifications will cause the request to block and wait until one + * or more notifications are present, or return an empty notification list + * if no notifications are present after some time. Speciying + * returnImmediately will cause the request to immediately return the + * pending notifications, or an empty list if no notifications are present. + * If omitted, defaults to waitForNotifications. + */ + requestMode?: string; + } + export interface Params$Resource$Enterprises$Sendtestpushnotification { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Enterprises$Setaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$EnterpriseAccount; + } + export interface Params$Resource$Enterprises$Setandroiddevicepolicyconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$AndroidDevicePolicyConfig; + } + export interface Params$Resource$Enterprises$Setstorelayout { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$StoreLayout; + } + export interface Params$Resource$Enterprises$Unenroll { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + + + export class Resource$Entitlements { + root: Androidenterprise; + constructor(root: Androidenterprise) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * androidenterprise.entitlements.delete + * @desc Removes an entitlement to an app for a user. + * @alias androidenterprise.entitlements.delete + * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.enterpriseId The ID of the enterprise. @@ -3229,22 +3916,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Entitlements$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Entitlements$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Entitlements$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Entitlements$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Entitlements$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entitlements$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3283,24 +3985,34 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Entitlements$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Entitlements$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Entitlements$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Entitlements$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Entitlements$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entitlements$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3338,28 +4050,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Entitlements$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entitlements$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Entitlements$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Entitlements$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Entitlements$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entitlements$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3401,26 +4124,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Entitlements$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Entitlements$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Entitlements$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Entitlements$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Entitlements$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entitlements$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3461,26 +4196,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Entitlements$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Entitlements$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Entitlements$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Entitlements$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Entitlements$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entitlements$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3505,6 +4253,125 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Entitlements$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the entitlement (a product ID), e.g. + * "app:com.google.android.gm". + */ + entitlementId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Entitlements$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the entitlement (a product ID), e.g. + * "app:com.google.android.gm". + */ + entitlementId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Entitlements$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Entitlements$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the entitlement (a product ID), e.g. + * "app:com.google.android.gm". + */ + entitlementId?: string; + /** + * Set to true to also install the product on all the user's devices where + * possible. Failure to install on one or more devices will not prevent this + * operation from returning successfully, as long as the entitlement was + * successfully assigned to the user. + */ + install?: boolean; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Entitlement; + } + export interface Params$Resource$Entitlements$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the entitlement (a product ID), e.g. + * "app:com.google.android.gm". + */ + entitlementId?: string; + /** + * Set to true to also install the product on all the user's devices where + * possible. Failure to install on one or more devices will not prevent this + * operation from returning successfully, as long as the entitlement was + * successfully assigned to the user. + */ + install?: boolean; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Entitlement; + } + + export class Resource$Grouplicenses { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -3530,24 +4397,35 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Grouplicenses$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Grouplicenses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Grouplicenses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Grouplicenses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Grouplicenses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Grouplicenses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3585,29 +4463,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Grouplicenses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Grouplicenses$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Grouplicenses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Grouplicenses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Grouplicenses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Grouplicenses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3633,6 +4522,35 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Grouplicenses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product the group license is for, e.g. + * "app:com.google.android.gm". + */ + groupLicenseId?: string; + } + export interface Params$Resource$Grouplicenses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + + export class Resource$Grouplicenseusers { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -3659,29 +4577,44 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Grouplicenseusers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Grouplicenseusers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Grouplicenseusers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Grouplicenseusers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Grouplicenseusers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Grouplicenseusers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3708,6 +4641,24 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Grouplicenseusers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product the group license is for, e.g. + * "app:com.google.android.gm". + */ + groupLicenseId?: string; + } + + export class Resource$Installs { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -3737,22 +4688,35 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Installs$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Installs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Installs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Installs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Installs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Installs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3792,23 +4756,33 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Installs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Installs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Installs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Installs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Installs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Installs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3848,28 +4822,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Installs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Installs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Installs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Installs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Installs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Installs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3912,25 +4896,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Installs$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Installs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Installs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Installs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Installs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Installs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3973,25 +4968,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Installs$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Installs$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Installs$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Installs$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Installs$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Installs$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4016,6 +5022,131 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Installs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product represented by the install, e.g. + * "app:com.google.android.gm". + */ + installId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Installs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product represented by the install, e.g. + * "app:com.google.android.gm". + */ + installId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Installs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Installs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product represented by the install, e.g. + * "app:com.google.android.gm". + */ + installId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Install; + } + export interface Params$Resource$Installs$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product represented by the install, e.g. + * "app:com.google.android.gm". + */ + installId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Install; + } + + export class Resource$Managedconfigurationsfordevice { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -4044,22 +5175,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedconfigurationsfordevice$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Managedconfigurationsfordevice$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Managedconfigurationsfordevice$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Managedconfigurationsfordevice$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsfordevice$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsfordevice$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4105,26 +5252,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Managedconfigurationsfordevice$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Managedconfigurationsfordevice$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedconfigurationsfordevice$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedconfigurationsfordevice$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsfordevice$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsfordevice$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4170,30 +5327,45 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Managedconfigurationsfordevice$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationsfordevice$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ManagedConfigurationsForDeviceListResponse>): void; + list( + params: Params$Resource$Managedconfigurationsfordevice$List, + callback: BodyResponseCallback< Schema$ManagedConfigurationsForDeviceListResponse>): void; + list(callback: BodyResponseCallback< + Schema$ManagedConfigurationsForDeviceListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedconfigurationsfordevice$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ManagedConfigurationsForDeviceListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsfordevice$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsfordevice$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4237,28 +5409,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Managedconfigurationsfordevice$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Managedconfigurationsfordevice$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationsfordevice$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Managedconfigurationsfordevice$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsfordevice$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsfordevice$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4306,28 +5490,41 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Managedconfigurationsfordevice$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Managedconfigurationsfordevice$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationsfordevice$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Managedconfigurationsfordevice$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsfordevice$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsfordevice$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4358,6 +5555,131 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Managedconfigurationsfordevice$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForDeviceId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Managedconfigurationsfordevice$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForDeviceId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Managedconfigurationsfordevice$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Managedconfigurationsfordevice$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForDeviceId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedConfiguration; + } + export interface Params$Resource$Managedconfigurationsfordevice$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Android ID of the device. + */ + deviceId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForDeviceId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedConfiguration; + } + + export class Resource$Managedconfigurationsforuser { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -4385,22 +5707,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedconfigurationsforuser$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Managedconfigurationsforuser$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Managedconfigurationsforuser$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedconfigurationsforuser$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsforuser$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsforuser$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4441,26 +5778,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Managedconfigurationsforuser$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Managedconfigurationsforuser$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedconfigurationsforuser$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedconfigurationsforuser$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsforuser$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsforuser$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4500,30 +5847,45 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Managedconfigurationsforuser$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationsforuser$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ManagedConfigurationsForUserListResponse>): void; + list( + params: Params$Resource$Managedconfigurationsforuser$List, + callback: BodyResponseCallback< Schema$ManagedConfigurationsForUserListResponse>): void; + list(callback: BodyResponseCallback< + Schema$ManagedConfigurationsForUserListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedconfigurationsforuser$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ManagedConfigurationsForUserListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsforuser$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsforuser$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4570,28 +5932,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Managedconfigurationsforuser$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Managedconfigurationsforuser$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationsforuser$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Managedconfigurationsforuser$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsforuser$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsforuser$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4637,28 +6011,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Managedconfigurationsforuser$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Managedconfigurationsforuser$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationsforuser$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Managedconfigurationsforuser$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationsforuser$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationsforuser$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4684,6 +6070,111 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Managedconfigurationsforuser$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForUserId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Managedconfigurationsforuser$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForUserId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Managedconfigurationsforuser$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Managedconfigurationsforuser$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForUserId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedConfiguration; + } + export interface Params$Resource$Managedconfigurationsforuser$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the managed configuration (a product ID), e.g. + * "app:com.google.android.gm". + */ + managedConfigurationForUserId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedConfiguration; + } + + export class Resource$Managedconfigurationssettings { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -4710,30 +6201,45 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Managedconfigurationssettings$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedconfigurationssettings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ManagedConfigurationsSettingsListResponse>): void; + list( + params: Params$Resource$Managedconfigurationssettings$List, + callback: BodyResponseCallback< Schema$ManagedConfigurationsSettingsListResponse>): void; + list(callback: BodyResponseCallback< + Schema$ManagedConfigurationsSettingsListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedconfigurationssettings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ManagedConfigurationsSettingsListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedconfigurationssettings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedconfigurationssettings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4760,6 +6266,24 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Managedconfigurationssettings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product for which the managed configurations settings + * applies to. + */ + productId?: string; + } + + export class Resource$Permissions { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -4786,23 +6310,34 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Permissions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Permissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Permissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Permissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Permissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4826,6 +6361,23 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Permissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The BCP47 tag for the user's preferred language (e.g. "en-US", "de") + */ + language?: string; + /** + * The ID of the permission. + */ + permissionId?: string; + } + + export class Resource$Products { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -4856,22 +6408,35 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - approve(params?: any, options?: MethodOptions): AxiosPromise; + approve(params?: Params$Resource$Products$Approve, options?: MethodOptions): + AxiosPromise; approve( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Products$Approve, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; approve( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Products$Approve, + callback: BodyResponseCallback): void; + approve(callback: BodyResponseCallback): void; + approve( + paramsOrCallback?: Params$Resource$Products$Approve| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Approve; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Approve; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4917,31 +6482,49 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateApprovalUrl(params?: any, options?: MethodOptions): + generateApprovalUrl( + params?: Params$Resource$Products$Generateapprovalurl, + options?: MethodOptions): AxiosPromise; generateApprovalUrl( - params?: any, - options?: MethodOptions| + params: Params$Resource$Products$Generateapprovalurl, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + generateApprovalUrl( + params: Params$Resource$Products$Generateapprovalurl, + callback: BodyResponseCallback): void; generateApprovalUrl( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + generateApprovalUrl( + paramsOrCallback?: Params$Resource$Products$Generateapprovalurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Products$Generateapprovalurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Generateapprovalurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4982,23 +6565,33 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Products$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Products$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Products$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Products$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5042,28 +6635,41 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAppRestrictionsSchema(params?: any, options?: MethodOptions): - AxiosPromise; getAppRestrictionsSchema( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Products$Getapprestrictionsschema, + options?: MethodOptions): AxiosPromise; + getAppRestrictionsSchema( + params: Params$Resource$Products$Getapprestrictionsschema, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getAppRestrictionsSchema( + params: Params$Resource$Products$Getapprestrictionsschema, + callback: BodyResponseCallback): void; getAppRestrictionsSchema( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getAppRestrictionsSchema( + paramsOrCallback?: Params$Resource$Products$Getapprestrictionsschema| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Products$Getapprestrictionsschema; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Getapprestrictionsschema; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5101,26 +6707,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getPermissions(params?: any, options?: MethodOptions): - AxiosPromise; getPermissions( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Products$Getpermissions, + options?: MethodOptions): AxiosPromise; + getPermissions( + params: Params$Resource$Products$Getpermissions, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getPermissions( + params: Params$Resource$Products$Getpermissions, + callback: BodyResponseCallback): void; + getPermissions(callback: BodyResponseCallback): + void; getPermissions( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Products$Getpermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Products$Getpermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Getpermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5163,28 +6783,38 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Products$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Products$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Products$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Products$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5222,22 +6852,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unapprove(params?: any, options?: MethodOptions): AxiosPromise; unapprove( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Products$Unapprove, + options?: MethodOptions): AxiosPromise; + unapprove( + params: Params$Resource$Products$Unapprove, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; unapprove( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Products$Unapprove, + callback: BodyResponseCallback): void; + unapprove(callback: BodyResponseCallback): void; + unapprove( + paramsOrCallback?: Params$Resource$Products$Unapprove| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Products$Unapprove; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Unapprove; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5262,6 +6907,158 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Products$Approve { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product. + */ + productId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProductsApproveRequest; + } + export interface Params$Resource$Products$Generateapprovalurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The BCP 47 language code used for permission names and descriptions in + * the returned iframe, for instance "en-US". + */ + languageCode?: string; + /** + * The ID of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). + */ + language?: string; + /** + * The ID of the product, e.g. "app:com.google.android.gm". + */ + productId?: string; + } + export interface Params$Resource$Products$Getapprestrictionsschema { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). + */ + language?: string; + /** + * The ID of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$Getpermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies whether to search among all products (false) or among only + * products that have been approved (true). Only "true" is supported, and + * should be specified. + */ + approved?: boolean; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). + * Results are returned in the language best matching the preferred + * language. + */ + language?: string; + /** + * Specifies the maximum number of products that can be returned per + * request. If not specified, uses a default value of 100, which is also the + * maximum retrievable within a single response. + */ + maxResults?: number; + /** + * The search query as typed in the Google Play store search box. If + * omitted, all approved apps will be returned (using the pagination + * parameters), including apps that are not available in the store (e.g. + * unpublished apps). + */ + query?: string; + /** + * A pagination token is contained in a request''s response when there are + * more products. The token can be used in a subsequent request to obtain + * more products, and so forth. This parameter cannot be used in the initial + * request. + */ + token?: string; + } + export interface Params$Resource$Products$Unapprove { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the product. + */ + productId?: string; + } + + export class Resource$Serviceaccountkeys { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -5291,22 +7088,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Serviceaccountkeys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Serviceaccountkeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Serviceaccountkeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Serviceaccountkeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Serviceaccountkeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Serviceaccountkeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5348,26 +7160,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Serviceaccountkeys$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Serviceaccountkeys$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Serviceaccountkeys$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Serviceaccountkeys$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Serviceaccountkeys$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Serviceaccountkeys$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5408,29 +7233,44 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Serviceaccountkeys$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Serviceaccountkeys$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Serviceaccountkeys$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Serviceaccountkeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Serviceaccountkeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Serviceaccountkeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5457,6 +7297,49 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Serviceaccountkeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the key. + */ + keyId?: string; + } + export interface Params$Resource$Serviceaccountkeys$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$ServiceAccountKey; + } + export interface Params$Resource$Serviceaccountkeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + + export class Resource$Storelayoutclusters { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -5483,22 +7366,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutclusters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Storelayoutclusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Storelayoutclusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Storelayoutclusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Storelayoutclusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutclusters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5537,24 +7435,35 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Storelayoutclusters$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Storelayoutclusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Storelayoutclusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Storelayoutclusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutclusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutclusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5593,26 +7502,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutclusters$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Storelayoutclusters$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Storelayoutclusters$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Storelayoutclusters$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Storelayoutclusters$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutclusters$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5650,30 +7572,46 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Storelayoutclusters$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Storelayoutclusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Storelayoutclusters$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Storelayoutclusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutclusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutclusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5715,26 +7653,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutclusters$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Storelayoutclusters$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Storelayoutclusters$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Storelayoutclusters$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutclusters$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutclusters$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5774,26 +7725,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutclusters$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Storelayoutclusters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Storelayoutclusters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Storelayoutclusters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Storelayoutclusters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutclusters$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5818,6 +7782,126 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Storelayoutclusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the cluster. + */ + clusterId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Storelayoutclusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the cluster. + */ + clusterId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Storelayoutclusters$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + /** + * Request body metadata + */ + resource?: Schema$StoreCluster; + } + export interface Params$Resource$Storelayoutclusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Storelayoutclusters$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the cluster. + */ + clusterId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + /** + * Request body metadata + */ + resource?: Schema$StoreCluster; + } + export interface Params$Resource$Storelayoutclusters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the cluster. + */ + clusterId?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + /** + * Request body metadata + */ + resource?: Schema$StoreCluster; + } + + export class Resource$Storelayoutpages { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -5843,22 +7927,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutpages$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Storelayoutpages$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Storelayoutpages$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Storelayoutpages$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutpages$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutpages$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5896,23 +7995,35 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Storelayoutpages$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Storelayoutpages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Storelayoutpages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Storelayoutpages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutpages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutpages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5950,26 +8061,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutpages$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Storelayoutpages$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Storelayoutpages$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Storelayoutpages$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutpages$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutpages$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6006,29 +8130,44 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Storelayoutpages$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Storelayoutpages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Storelayoutpages$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Storelayoutpages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutpages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutpages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6070,26 +8209,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutpages$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Storelayoutpages$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Storelayoutpages$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Storelayoutpages$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutpages$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutpages$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6128,26 +8280,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Storelayoutpages$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Storelayoutpages$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Storelayoutpages$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Storelayoutpages$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Storelayoutpages$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Storelayoutpages$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6172,6 +8337,102 @@ export namespace androidenterprise_v1 { } } + export interface Params$Resource$Storelayoutpages$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Storelayoutpages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Storelayoutpages$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$StorePage; + } + export interface Params$Resource$Storelayoutpages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Storelayoutpages$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + /** + * Request body metadata + */ + resource?: Schema$StorePage; + } + export interface Params$Resource$Storelayoutpages$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the page. + */ + pageId?: string; + /** + * Request body metadata + */ + resource?: Schema$StorePage; + } + + export class Resource$Users { root: Androidenterprise; constructor(root: Androidenterprise) { @@ -6197,22 +8458,35 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Users$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6253,28 +8527,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateAuthenticationToken(params?: any, options?: MethodOptions): - AxiosPromise; generateAuthenticationToken( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Generateauthenticationtoken, + options?: MethodOptions): AxiosPromise; generateAuthenticationToken( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Generateauthenticationtoken, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generateAuthenticationToken( + params: Params$Resource$Users$Generateauthenticationtoken, + callback: BodyResponseCallback): void; + generateAuthenticationToken( + callback: BodyResponseCallback): void; + generateAuthenticationToken( + paramsOrCallback?: Params$Resource$Users$Generateauthenticationtoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Generateauthenticationtoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Generateauthenticationtoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6314,26 +8600,39 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateToken(params?: any, options?: MethodOptions): - AxiosPromise; generateToken( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Generatetoken, + options?: MethodOptions): AxiosPromise; generateToken( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Generatetoken, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generateToken( + params: Params$Resource$Users$Generatetoken, + callback: BodyResponseCallback): void; + generateToken(callback: BodyResponseCallback): void; + generateToken( + paramsOrCallback?: Params$Resource$Users$Generatetoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Generatetoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Generatetoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6371,21 +8670,33 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6423,26 +8734,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAvailableProductSet(params?: any, options?: MethodOptions): - AxiosPromise; getAvailableProductSet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Getavailableproductset, + options?: MethodOptions): AxiosPromise; + getAvailableProductSet( + params: Params$Resource$Users$Getavailableproductset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getAvailableProductSet( + params: Params$Resource$Users$Getavailableproductset, + callback: BodyResponseCallback): void; + getAvailableProductSet(callback: BodyResponseCallback): + void; getAvailableProductSet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Getavailableproductset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Getavailableproductset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Getavailableproductset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6484,23 +8809,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Users$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Users$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6540,26 +8878,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Users$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6601,23 +8950,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Users$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Users$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6657,23 +9019,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revokeDeviceAccess(params?: any, options?: MethodOptions): - AxiosPromise; revokeDeviceAccess( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Revokedeviceaccess, + options?: MethodOptions): AxiosPromise; + revokeDeviceAccess( + params: Params$Resource$Users$Revokedeviceaccess, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; revokeDeviceAccess( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Revokedeviceaccess, + callback: BodyResponseCallback): void; + revokeDeviceAccess(callback: BodyResponseCallback): void; + revokeDeviceAccess( + paramsOrCallback?: Params$Resource$Users$Revokedeviceaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Revokedeviceaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Revokedeviceaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6712,22 +9088,37 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revokeToken(params?: any, options?: MethodOptions): AxiosPromise; revokeToken( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Revoketoken, + options?: MethodOptions): AxiosPromise; + revokeToken( + params: Params$Resource$Users$Revoketoken, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; revokeToken( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Revoketoken, + callback: BodyResponseCallback): void; + revokeToken(callback: BodyResponseCallback): void; + revokeToken( + paramsOrCallback?: Params$Resource$Users$Revoketoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Revoketoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Revoketoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6769,26 +9160,40 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAvailableProductSet(params?: any, options?: MethodOptions): - AxiosPromise; setAvailableProductSet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Setavailableproductset, + options?: MethodOptions): AxiosPromise; + setAvailableProductSet( + params: Params$Resource$Users$Setavailableproductset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAvailableProductSet( + params: Params$Resource$Users$Setavailableproductset, + callback: BodyResponseCallback): void; + setAvailableProductSet(callback: BodyResponseCallback): + void; setAvailableProductSet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Setavailableproductset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Setavailableproductset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Setavailableproductset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6831,23 +9236,36 @@ export namespace androidenterprise_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Users$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6871,4 +9289,197 @@ export namespace androidenterprise_v1 { } } } + + export interface Params$Resource$Users$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Generateauthenticationtoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Generatetoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Getavailableproductset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * Request body metadata + */ + resource?: Schema$User; + } + export interface Params$Resource$Users$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The exact primary email address of the user to look up. + */ + email?: string; + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + } + export interface Params$Resource$Users$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$User; + } + export interface Params$Resource$Users$Revokedeviceaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Revoketoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + } + export interface Params$Resource$Users$Setavailableproductset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProductSet; + } + export interface Params$Resource$Users$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the enterprise. + */ + enterpriseId?: string; + /** + * The ID of the user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$User; + } } diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index 693675167d7..fab804c5008 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace androidmanagement_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Android Management API * @@ -75,11 +78,11 @@ export namespace androidmanagement_v1 { /** * Disallows networking when the VPN is not connected. */ - lockdownEnabled: boolean; + lockdownEnabled?: boolean; /** * The package name of the VPN app. */ - packageName: string; + packageName?: string; } /** * A compliance rule condition which is satisfied if the Android Framework API @@ -92,7 +95,7 @@ export namespace androidmanagement_v1 { * doesn't meet the minimum requirement, this condition is satisfied. * Must be greater than zero. */ - minApiLevel: number; + minApiLevel?: number; } /** * Information about an app. @@ -101,20 +104,20 @@ export namespace androidmanagement_v1 { /** * The set of managed properties available to be pre-configured for the app. */ - managedProperties: Schema$ManagedProperty[]; + managedProperties?: Schema$ManagedProperty[]; /** * The name of the app in the form * enterprises/{enterpriseId}/applications/{package_name}. */ - name: string; + name?: string; /** * The permissions required by the app. */ - permissions: Schema$ApplicationPermission[]; + permissions?: Schema$ApplicationPermission[]; /** * The title of the app. Localized. */ - title: string; + title?: string; } /** * A permission required by the app. @@ -124,15 +127,15 @@ export namespace androidmanagement_v1 { * A longer description of the permission, providing more detail on what it * affects. Localized. */ - description: string; + description?: string; /** * The name of the permission. Localized. */ - name: string; + name?: string; /** * An opaque string uniquely identifying the permission. Not localized. */ - permissionId: string; + permissionId?: string; } /** * Policy for an individual app. @@ -144,19 +147,19 @@ export namespace androidmanagement_v1 { * which applies to all apps. It does not override the permission_grants * which applies to all apps. */ - defaultPermissionPolicy: string; + defaultPermissionPolicy?: string; /** * The scopes delegated to the app from Android Device Policy. */ - delegatedScopes: string[]; + delegatedScopes?: string[]; /** * The type of installation to perform. */ - installType: string; + installType?: string; /** * Whether the app is allowed to lock itself in full-screen mode. */ - lockTaskAllowed: boolean; + lockTaskAllowed?: boolean; /** * Managed configuration applied to the app. The format for the * configuration is dictated by the ManagedProperty values supported by the @@ -176,7 +179,7 @@ export namespace androidmanagement_v1 { * <tr><td>BUNDLE_ARRAY</td><td>array of * objects</td></tr> </table> */ - managedConfiguration: any; + managedConfiguration?: any; /** * The minimum version of the app that runs on the device. If set, the * device attempts to update the app to at least this version code. If the @@ -186,18 +189,18 @@ export namespace androidmanagement_v1 { * this value. At most 20 apps may specify a minimum version code per * policy. */ - minimumVersionCode: number; + minimumVersionCode?: number; /** * The package name of the app. For example, com.google.android.youtube for * the YouTube app. */ - packageName: string; + packageName?: string; /** * Explicit permission grants or denials for the app. These values override * the default_permission_policy and permission_grants which apply to all * apps. */ - permissionGrants: Schema$PermissionGrant[]; + permissionGrants?: Schema$PermissionGrant[]; } /** * A command. @@ -207,37 +210,37 @@ export namespace androidmanagement_v1 { * The timestamp at which the command was created. The timestamp is * automatically generated by the server. */ - createTime: string; + createTime?: string; /** * The duration for which the command is valid. The command will expire if * not executed by the device during this time. The default duration if * unspecified is ten minutes. There is no maximum duration. */ - duration: string; + duration?: string; /** * If the command failed, an error code explaining the failure. This is not * set when the command is cancelled by the caller. */ - errorCode: string; + errorCode?: string; /** * For commands of type RESET_PASSWORD, optionally specifies the new * password. */ - newPassword: string; + newPassword?: string; /** * For commands of type RESET_PASSWORD, optionally specifies flags. */ - resetPasswordFlags: string[]; + resetPasswordFlags?: string[]; /** * The type of the command. */ - type: string; + type?: string; /** * The resource name of the user that owns the device in the form * enterprises/{enterpriseId}/users/{userId}. This is automatically * generated by the server based on the device the command is sent to. */ - userName: string; + userName?: string; } /** * A rule declaring which mitigating actions to take when a device is not @@ -252,19 +255,19 @@ export namespace androidmanagement_v1 { * A condition which is satisfied if the Android Framework API level on the * device doesn't meet a minimum requirement. */ - apiLevelCondition: Schema$ApiLevelCondition; + apiLevelCondition?: Schema$ApiLevelCondition; /** * If set to true, the rule includes a mitigating action to disable apps so * that the device is effectively disabled, but app data is preserved. If * the device is running an app in locked task mode, the app will be closed * and a UI showing the reason for non-compliance will be displayed. */ - disableApps: boolean; + disableApps?: boolean; /** * A condition which is satisfied if there exists any matching * NonComplianceDetail for the device. */ - nonComplianceDetailCondition: Schema$NonComplianceDetailCondition; + nonComplianceDetailCondition?: Schema$NonComplianceDetailCondition; } /** * A device owned by an enterprise. Unless otherwise noted, all fields are @@ -274,99 +277,99 @@ export namespace androidmanagement_v1 { /** * The API level of the Android platform version running on the device. */ - apiLevel: number; + apiLevel?: number; /** * The name of the policy currently applied to the device. */ - appliedPolicyName: string; + appliedPolicyName?: string; /** * The version of the policy currently applied to the device. */ - appliedPolicyVersion: string; + appliedPolicyVersion?: string; /** * The state currently applied to the device. */ - appliedState: string; + appliedState?: string; /** * Device settings information. This information is only available if * deviceSettingsEnabled is true in the device's policy. */ - deviceSettings: Schema$DeviceSettings; + deviceSettings?: Schema$DeviceSettings; /** * If the device state is DISABLED, an optional message that is displayed on * the device indicating the reason the device is disabled. This field can * be modified by a patch request. */ - disabledReason: Schema$UserFacingMessage; + disabledReason?: Schema$UserFacingMessage; /** * Detailed information about displays on the device. This information is * only available if displayInfoEnabled is true in the device's policy. */ - displays: Schema$Display[]; + displays?: Schema$Display[]; /** * The time of device enrollment. */ - enrollmentTime: string; + enrollmentTime?: string; /** * If the device was enrolled with an enrollment token with additional data * provided, this field contains that data. */ - enrollmentTokenData: string; + enrollmentTokenData?: string; /** * If the device was enrolled with an enrollment token, this field contains * the name of the token. */ - enrollmentTokenName: string; + enrollmentTokenName?: string; /** * Detailed information about the device hardware. */ - hardwareInfo: Schema$HardwareInfo; + hardwareInfo?: Schema$HardwareInfo; /** * Hardware status samples in chronological order. This information is only * available if hardwareStatusEnabled is true in the device's policy. */ - hardwareStatusSamples: Schema$HardwareStatus[]; + hardwareStatusSamples?: Schema$HardwareStatus[]; /** * The last time the device sent a policy compliance report. */ - lastPolicyComplianceReportTime: string; + lastPolicyComplianceReportTime?: string; /** * The last time the device fetched its policy. */ - lastPolicySyncTime: string; + lastPolicySyncTime?: string; /** * The last time the device sent a status report. */ - lastStatusReportTime: string; + lastStatusReportTime?: string; /** * Events related to memory and storage measurements in chronological order. * This information is only available if memoryInfoEnabled is true in the * device's policy. */ - memoryEvents: Schema$MemoryEvent[]; + memoryEvents?: Schema$MemoryEvent[]; /** * Memory information. This information is only available if * memoryInfoEnabled is true in the device's policy. */ - memoryInfo: Schema$MemoryInfo; + memoryInfo?: Schema$MemoryInfo; /** * The name of the device in the form * enterprises/{enterpriseId}/devices/{deviceId}. */ - name: string; + name?: string; /** * Device network information. This information is only available if * networkInfoEnabled is true in the device's policy. */ - networkInfo: Schema$NetworkInfo; + networkInfo?: Schema$NetworkInfo; /** * Details about policy settings that the device is not compliant with. */ - nonComplianceDetails: Schema$NonComplianceDetail[]; + nonComplianceDetails?: Schema$NonComplianceDetail[]; /** * Whether the device is compliant with its policy. */ - policyCompliant: boolean; + policyCompliant?: boolean; /** * The name of the policy applied to the device, in the form * enterprises/{enterpriseId}/policies/{policyId}. If not specified, the @@ -375,37 +378,37 @@ export namespace androidmanagement_v1 { * calling enterprises.devices.patch, as long as the policyId doesn’t * contain any slashes. The rest of the policy name is inferred. */ - policyName: string; + policyName?: string; /** * Power management events on the device in chronological order. This * information is only available if powerManagementEventsEnabled is true in * the device's policy. */ - powerManagementEvents: Schema$PowerManagementEvent[]; + powerManagementEvents?: Schema$PowerManagementEvent[]; /** * If the same physical device has been enrolled multiple times, this field * contains its previous device names. The serial number is used as the * unique identifier to determine if the same physical device has enrolled * previously. The names are in chronological order. */ - previousDeviceNames: string[]; + previousDeviceNames?: string[]; /** * Detailed information about the device software. This information is only * available if softwareInfoEnabled is true in the device's policy. */ - softwareInfo: Schema$SoftwareInfo; + softwareInfo?: Schema$SoftwareInfo; /** * The state to be applied to the device. This field can be modified by a * patch request. Note that when calling enterprises.devices.patch, ACTIVE * and DISABLED are the only allowable values. To enter the device into a * DELETED state, call enterprises.devices.delete. */ - state: string; + state?: string; /** * The resource name of the user that owns this device in the form * enterprises/{enterpriseId}/users/{userId}. */ - userName: string; + userName?: string; } /** * Information about security related device settings on device. @@ -415,33 +418,33 @@ export namespace androidmanagement_v1 { * Whether ADB (https://developer.android.com/studio/command-line/adb.html) * is enabled on the device. */ - adbEnabled: boolean; + adbEnabled?: boolean; /** * Whether developer mode is enabled on the device. */ - developmentSettingsEnabled: boolean; + developmentSettingsEnabled?: boolean; /** * Encryption status from DevicePolicyManager. */ - encryptionStatus: string; + encryptionStatus?: string; /** * Whether the device is secured with PIN/password. */ - isDeviceSecure: boolean; + isDeviceSecure?: boolean; /** * Whether the storage encryption is enabled. */ - isEncrypted: boolean; + isEncrypted?: boolean; /** * Whether installing apps from unknown sources is enabled. */ - unknownSourcesEnabled: boolean; + unknownSourcesEnabled?: boolean; /** * Whether Verify Apps (Google Play Protect * (https://support.google.com/googleplay/answer/2812853)) is enabled on the * device. */ - verifyAppsEnabled: boolean; + verifyAppsEnabled?: boolean; } /** * Device display information. @@ -450,31 +453,31 @@ export namespace androidmanagement_v1 { /** * Display density expressed as dots-per-inch. */ - density: number; + density?: number; /** * Unique display id. */ - displayId: number; + displayId?: number; /** * Display height in pixels. */ - height: number; + height?: number; /** * Name of the display. */ - name: string; + name?: string; /** * Refresh rate of the display in frames per second. */ - refreshRate: number; + refreshRate?: number; /** * State of the display. */ - state: string; + state?: string; /** * Display width in pixels. */ - width: number; + width?: number; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -496,23 +499,23 @@ export namespace androidmanagement_v1 { * data must be 1024 characters or less; otherwise, the creation request * will fail. */ - additionalData: string; + additionalData?: string; /** * The length of time the enrollment token is valid, ranging from 1 minute * to 30 days. If not specified, the default duration is 1 hour. */ - duration: string; + duration?: string; /** * The expiration time of the token. This is a read-only field generated by * the server. */ - expirationTimestamp: string; + expirationTimestamp?: string; /** * The name of the enrollment token, which is generated by the server during * creation, in the form * enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. */ - name: string; + name?: string; /** * The name of the policy initially applied to the enrolled device, in the * form enterprises/{enterpriseId}/policies/{policyId}. If not specified, @@ -522,68 +525,66 @@ export namespace androidmanagement_v1 { * long as the policyId doesn’t contain any slashes. The rest of the policy * name will be inferred. */ - policyName: string; + policyName?: string; /** * A JSON string whose UTF-8 representation can be used to generate a QR * code to enroll a device with this enrollment token. To enroll a device * using NFC, the NFC record must contain a serialized java.util.Properties * representation of the properties in the JSON. */ - qrCode: string; + qrCode?: string; /** * The token value that's passed to the device and authorizes the device * to enroll. This is a read-only field generated by the server. */ - value: string; + value?: string; } /** * The configuration applied to an enterprise. */ export interface Schema$Enterprise { /** - * Whether permissions for apps installed via policy are automatically - * approved. If enabled, you must display an app's permissions to the - * enterprise admin before setting the app to be installed in a policy. + * Deprecated and unused. */ - appAutoApprovalEnabled: boolean; + appAutoApprovalEnabled?: boolean; /** * The types of Google Pub/Sub notifications enabled for the enterprise. */ - enabledNotificationTypes: string[]; + enabledNotificationTypes?: string[]; /** * The name of the enterprise displayed to users. */ - enterpriseDisplayName: string; + enterpriseDisplayName?: string; /** * An image displayed as a logo during device provisioning. Supported types * are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, * image/webp, image/vnd.wap.wbmp, image/x-adobe-dng. */ - logo: Schema$ExternalData; + logo?: Schema$ExternalData; /** * The name of the enterprise which is generated by the server during * creation, in the form enterprises/{enterpriseId}. */ - name: string; + name?: string; /** * A color in RGB format that indicates the predominant color to display in * the device management app UI. The color components are stored as follows: * (red << 16) | (green << 8) | blue, where the value of each * component is between 0 and 255, inclusive. */ - primaryColor: number; + primaryColor?: number; /** * The topic that Cloud Pub/Sub notifications are published to, in the form * projects/{project}/topics/{topic}. This field is only required if Pub/Sub * notifications are enabled. */ - pubsubTopic: string; + pubsubTopic?: string; /** * Terms and conditions that must be accepted when provisioning a device for * this enterprise. A page of terms is generated for each value in this * list. */ - termsAndConditions: Schema$TermsAndConditions[]; + termsAndConditions?: Schema$TermsAndConditions[]; } /** * Data hosted at an external location. The data is to be downloaded by @@ -595,7 +596,7 @@ export namespace androidmanagement_v1 { * content doesn't match this hash, Android Device Policy won't use * the data. */ - sha256Hash: string; + sha256Hash?: string; /** * The absolute URL to the data, which must use either the http or https * scheme. Android Device Policy doesn't provide any credentials in the @@ -603,7 +604,7 @@ export namespace androidmanagement_v1 { * random component in the URL may be used to prevent attackers from * discovering the URL. */ - url: string; + url?: string; } /** * Information about device hardware. The fields related to temperature @@ -615,64 +616,64 @@ export namespace androidmanagement_v1 { * Battery shutdown temperature thresholds in Celsius for each battery on * the device. */ - batteryShutdownTemperatures: number[]; + batteryShutdownTemperatures?: number[]; /** * Battery throttling temperature thresholds in Celsius for each battery on * the device. */ - batteryThrottlingTemperatures: number[]; + batteryThrottlingTemperatures?: number[]; /** * Brand of the device. For example, Google. */ - brand: string; + brand?: string; /** * CPU shutdown temperature thresholds in Celsius for each CPU on the * device. */ - cpuShutdownTemperatures: number[]; + cpuShutdownTemperatures?: number[]; /** * CPU throttling temperature thresholds in Celsius for each CPU on the * device. */ - cpuThrottlingTemperatures: number[]; + cpuThrottlingTemperatures?: number[]; /** * Baseband version. For example, MDM9625_104662.22.05.34p. */ - deviceBasebandVersion: string; + deviceBasebandVersion?: string; /** * GPU shutdown temperature thresholds in Celsius for each GPU on the * device. */ - gpuShutdownTemperatures: number[]; + gpuShutdownTemperatures?: number[]; /** * GPU throttling temperature thresholds in Celsius for each GPU on the * device. */ - gpuThrottlingTemperatures: number[]; + gpuThrottlingTemperatures?: number[]; /** * Name of the hardware. For example, Angler. */ - hardware: string; + hardware?: string; /** * Manufacturer. For example, Motorola. */ - manufacturer: string; + manufacturer?: string; /** * The model of the device. For example, Asus Nexus 7. */ - model: string; + model?: string; /** * The device serial number. */ - serialNumber: string; + serialNumber?: string; /** * Device skin shutdown temperature thresholds in Celsius. */ - skinShutdownTemperatures: number[]; + skinShutdownTemperatures?: number[]; /** * Device skin throttling temperature thresholds in Celsius. */ - skinThrottlingTemperatures: number[]; + skinThrottlingTemperatures?: number[]; } /** * Hardware status. Temperatures may be compared to the temperature thresholds @@ -682,34 +683,34 @@ export namespace androidmanagement_v1 { /** * Current battery temperatures in Celsius for each battery on the device. */ - batteryTemperatures: number[]; + batteryTemperatures?: number[]; /** * Current CPU temperatures in Celsius for each CPU on the device. */ - cpuTemperatures: number[]; + cpuTemperatures?: number[]; /** * CPU usages in percentage for each core available on the device. Usage is * 0 for each unplugged core. Empty array implies that CPU usage is not * supported in the system. */ - cpuUsages: number[]; + cpuUsages?: number[]; /** * The time the measurements were taken. */ - createTime: string; + createTime?: string; /** * Fan speeds in RPM for each fan on the device. Empty array means that * there are no fans or fan speed is not supported on the system. */ - fanSpeeds: number[]; + fanSpeeds?: number[]; /** * Current GPU temperatures in Celsius for each GPU on the device. */ - gpuTemperatures: number[]; + gpuTemperatures?: number[]; /** * Current device skin temperatures in Celsius. */ - skinTemperatures: number[]; + skinTemperatures?: number[]; } /** * Response to a request to list devices for a given enterprise. @@ -718,11 +719,11 @@ export namespace androidmanagement_v1 { /** * The list of devices. */ - devices: Schema$Device[]; + devices?: Schema$Device[]; /** * If there are more results, a token to retrieve next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -731,11 +732,11 @@ export namespace androidmanagement_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response to a request to list policies for a given enterprise. @@ -744,11 +745,11 @@ export namespace androidmanagement_v1 { /** * If there are more results, a token to retrieve next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of policies. */ - policies: Schema$Policy[]; + policies?: Schema$Policy[]; } /** * Managed property. @@ -758,34 +759,34 @@ export namespace androidmanagement_v1 { * The default value of the property. BUNDLE_ARRAY properties don't have * a default value. */ - defaultValue: any; + defaultValue?: any; /** * A longer description of the property, providing more detail of what it * affects. Localized. */ - description: string; + description?: string; /** * For CHOICE or MULTISELECT properties, the list of possible entries. */ - entries: Schema$ManagedPropertyEntry[]; + entries?: Schema$ManagedPropertyEntry[]; /** * The unique key that the app uses to identify the property, e.g. * "com.google.android.gm.fieldname". */ - key: string; + key?: string; /** * For BUNDLE_ARRAY properties, the list of nested properties. A * BUNDLE_ARRAY property is at most two levels deep. */ - nestedProperties: Schema$ManagedProperty[]; + nestedProperties?: Schema$ManagedProperty[]; /** * The name of the property. Localized. */ - title: string; + title?: string; /** * The type of the property. */ - type: string; + type?: string; } /** * An entry of a managed property. @@ -794,12 +795,12 @@ export namespace androidmanagement_v1 { /** * The human-readable name of the value. Localized. */ - name: string; + name?: string; /** * The machine-readable value of the entry, which should be used in the * configuration. Not localized. */ - value: string; + value?: string; } /** * An event related to memory and storage measurements. @@ -809,15 +810,15 @@ export namespace androidmanagement_v1 { * The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, * the total capacity in bytes of the storage medium. */ - byteCount: string; + byteCount?: string; /** * The creation time of the event. */ - createTime: string; + createTime?: string; /** * Event type. */ - eventType: string; + eventType?: string; } /** * Information about device memory and storage. @@ -826,11 +827,11 @@ export namespace androidmanagement_v1 { /** * Total internal storage on device in bytes. */ - totalInternalStorage: string; + totalInternalStorage?: string; /** * Total RAM on device in bytes. */ - totalRam: string; + totalRam?: string; } /** * Device network info. @@ -839,19 +840,19 @@ export namespace androidmanagement_v1 { /** * IMEI number of the GSM device. For example, A1000031212. */ - imei: string; + imei?: string; /** * MEID number of the CDMA device. For example, A00000292788E1. */ - meid: string; + meid?: string; /** * Alphabetic name of current registered operator. For example, Vodafone. */ - networkOperatorName: string; + networkOperatorName?: string; /** * Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11. */ - wifiMacAddress: string; + wifiMacAddress?: string; } /** * Provides detail about non-compliance with a policy setting. @@ -861,7 +862,7 @@ export namespace androidmanagement_v1 { * If the policy setting could not be applied, the current value of the * setting on the device. */ - currentValue: any; + currentValue?: any; /** * For settings with nested fields, if a particular nested field is out of * compliance, this specifies the full path to the offending field. The path @@ -873,27 +874,27 @@ export namespace androidmanagement_v1 { * field in the 3rd application, the path would be * applications[2].externalData.url */ - fieldPath: string; + fieldPath?: string; /** * If package_name is set and the non-compliance reason is APP_NOT_INSTALLED * or APP_NOT_UPDATED, the detailed reason the app can't be installed or * updated. */ - installationFailureReason: string; + installationFailureReason?: string; /** * The reason the device is not in compliance with the setting. */ - nonComplianceReason: string; + nonComplianceReason?: string; /** * The package name indicating which app is out of compliance, if * applicable. */ - packageName: string; + packageName?: string; /** * The name of the policy setting. This is the JSON field name of a * top-level Policy field. */ - settingName: string; + settingName?: string; } /** * A compliance rule condition which is satisfied if there exists any matching @@ -907,18 +908,18 @@ export namespace androidmanagement_v1 { * The reason the device is not in compliance with the setting. If not set, * then this condition matches any reason. */ - nonComplianceReason: string; + nonComplianceReason?: string; /** * The package name of the app that's out of compliance. If not set, * then this condition matches any package name. */ - packageName: string; + packageName?: string; /** * The name of the policy setting. This is the JSON field name of a * top-level Policy field. If not set, then this condition matches any * setting name. */ - settingName: string; + settingName?: string; } /** * This resource represents a long-running operation that is the result of a @@ -930,24 +931,24 @@ export namespace androidmanagement_v1 { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -957,7 +958,7 @@ export namespace androidmanagement_v1 { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * A list of package names. @@ -966,7 +967,7 @@ export namespace androidmanagement_v1 { /** * A list of package names. */ - packageNames: string[]; + packageNames?: string[]; } /** * Requirements for the password used to unlock a device. @@ -976,57 +977,57 @@ export namespace androidmanagement_v1 { * Number of incorrect device-unlock passwords that can be entered before a * device is wiped. A value of 0 means there is no restriction. */ - maximumFailedPasswordsForWipe: number; + maximumFailedPasswordsForWipe?: number; /** * Password expiration timeout. */ - passwordExpirationTimeout: string; + passwordExpirationTimeout?: string; /** * The length of the password history. After setting this field, the user * won't be able to enter a new password that is the same as any * password in the history. A value of 0 means there is no restriction. */ - passwordHistoryLength: number; + passwordHistoryLength?: number; /** * The minimum allowed password length. A value of 0 means there is no * restriction. Only enforced when password_quality is NUMERIC, * NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. */ - passwordMinimumLength: number; + passwordMinimumLength?: number; /** * Minimum number of letters required in the password. Only enforced when * password_quality is COMPLEX. */ - passwordMinimumLetters: number; + passwordMinimumLetters?: number; /** * Minimum number of lower case letters required in the password. Only * enforced when password_quality is COMPLEX. */ - passwordMinimumLowerCase: number; + passwordMinimumLowerCase?: number; /** * Minimum number of non-letter characters (numerical digits or symbols) * required in the password. Only enforced when password_quality is COMPLEX. */ - passwordMinimumNonLetter: number; + passwordMinimumNonLetter?: number; /** * Minimum number of numerical digits required in the password. Only * enforced when password_quality is COMPLEX. */ - passwordMinimumNumeric: number; + passwordMinimumNumeric?: number; /** * Minimum number of symbols required in the password. Only enforced when * password_quality is COMPLEX. */ - passwordMinimumSymbols: number; + passwordMinimumSymbols?: number; /** * Minimum number of upper case letters required in the password. Only * enforced when password_quality is COMPLEX. */ - passwordMinimumUpperCase: number; + passwordMinimumUpperCase?: number; /** * The required password quality. */ - passwordQuality: string; + passwordQuality?: string; } /** * Configuration for an Android permission and its grant state. @@ -1035,11 +1036,11 @@ export namespace androidmanagement_v1 { /** * The android permission, e.g. android.permission.READ_CALENDAR. */ - permission: string; + permission?: string; /** * The policy for granting the permission. */ - policy: string; + policy?: string; } /** * A default activity for handling intents that match a particular intent @@ -1051,14 +1052,14 @@ export namespace androidmanagement_v1 { * the filter, then an intent's action must be one of those values for * it to match. If no actions are included, the intent action is ignored. */ - actions: string[]; + actions?: string[]; /** * The intent categories to match in the filter. An intent includes the * categories that it requires, all of which must be included in the filter * in order to match. In other words, adding a category to the filter has no * impact on matching unless that category is specified in the intent. */ - categories: string[]; + categories?: string[]; /** * The activity that should be the default intent handler. This should be an * Android component name, e.g. com.android.enterprise.app/.MainActivity. @@ -1066,7 +1067,7 @@ export namespace androidmanagement_v1 { * Android Device Policy to choose an appropriate activity from the app to * handle the intent. */ - receiverActivity: string; + receiverActivity?: string; } /** * A policy resources represents a group settings that govern the behavior of @@ -1076,112 +1077,112 @@ export namespace androidmanagement_v1 { /** * Account types that can't be managed by the user. */ - accountTypesWithManagementDisabled: string[]; + accountTypesWithManagementDisabled?: string[]; /** * Whether adding new users and profiles is disabled. */ - addUserDisabled: boolean; + addUserDisabled?: boolean; /** * Whether adjusting the master volume is disabled. */ - adjustVolumeDisabled: boolean; + adjustVolumeDisabled?: boolean; /** * Configuration for an always-on VPN connection. Use with * vpn_config_disabled to prevent modification of this setting. */ - alwaysOnVpnPackage: Schema$AlwaysOnVpnPackage; + alwaysOnVpnPackage?: Schema$AlwaysOnVpnPackage; /** * The app tracks for Android Device Policy the device can access. The * device receives the latest version among all accessible tracks. If no * tracks are specified, then the device only uses the production track. */ - androidDevicePolicyTracks: string[]; + androidDevicePolicyTracks?: string[]; /** * The app auto update policy, which controls when automatic app updates can * be applied. */ - appAutoUpdatePolicy: string; + appAutoUpdatePolicy?: string; /** * Policy applied to apps. */ - applications: Schema$ApplicationPolicy[]; + applications?: Schema$ApplicationPolicy[]; /** * Whether auto time is required, which prevents the user from manually * setting the date and time. */ - autoTimeRequired: boolean; + autoTimeRequired?: boolean; /** * Whether applications other than the ones configured in applications are * blocked from being installed. When set, applications that were installed * under a previous policy but no longer appear in the policy are * automatically uninstalled. */ - blockApplicationsEnabled: boolean; + blockApplicationsEnabled?: boolean; /** * Whether configuring bluetooth is disabled. */ - bluetoothConfigDisabled: boolean; + bluetoothConfigDisabled?: boolean; /** * Whether bluetooth contact sharing is disabled. */ - bluetoothContactSharingDisabled: boolean; + bluetoothContactSharingDisabled?: boolean; /** * Whether bluetooth is disabled. Prefer this setting over * bluetooth_config_disabled because bluetooth_config_disabled can be * bypassed by the user. */ - bluetoothDisabled: boolean; + bluetoothDisabled?: boolean; /** * Whether all cameras on the device are disabled. */ - cameraDisabled: boolean; + cameraDisabled?: boolean; /** * Whether configuring cell broadcast is disabled. */ - cellBroadcastsConfigDisabled: boolean; + cellBroadcastsConfigDisabled?: boolean; /** * Rules declaring which mitigating actions to take when a device is not * compliant with its policy. When the conditions for multiple rules are * satisfied, all of the mitigating actions for the rules are taken. There * is a maximum limit of 100 rules. */ - complianceRules: Schema$ComplianceRule[]; + complianceRules?: Schema$ComplianceRule[]; /** * Whether creating windows besides app windows is disabled. */ - createWindowsDisabled: boolean; + createWindowsDisabled?: boolean; /** * Whether configuring user credentials is disabled. */ - credentialsConfigDisabled: boolean; + credentialsConfigDisabled?: boolean; /** * Whether roaming data services are disabled. */ - dataRoamingDisabled: boolean; + dataRoamingDisabled?: boolean; /** * Whether the user is allowed to enable debugging features. */ - debuggingFeaturesAllowed: boolean; + debuggingFeaturesAllowed?: boolean; /** * The default permission policy for runtime permission requests. */ - defaultPermissionPolicy: string; + defaultPermissionPolicy?: string; /** * The device owner information to be shown on the lock screen. */ - deviceOwnerLockScreenInfo: Schema$UserFacingMessage; + deviceOwnerLockScreenInfo?: Schema$UserFacingMessage; /** * Whether encryption is enabled */ - encryptionPolicy: string; + encryptionPolicy?: string; /** * Whether app verification is force-enabled. */ - ensureVerifyAppsEnabled: boolean; + ensureVerifyAppsEnabled?: boolean; /** * Whether factory resetting from settings is disabled. */ - factoryResetDisabled: boolean; + factoryResetDisabled?: boolean; /** * Email addresses of device administrators for factory reset protection. * When the device is factory reset, it will require one of these admins to @@ -1189,29 +1190,29 @@ export namespace androidmanagement_v1 { * If no admins are specified, the device won't provide factory reset * protection. */ - frpAdminEmails: string[]; + frpAdminEmails?: string[]; /** * Whether the user is allowed to have fun. Controls whether the Easter egg * game in Settings is disabled. */ - funDisabled: boolean; + funDisabled?: boolean; /** * Whether user installation of apps is disabled. */ - installAppsDisabled: boolean; + installAppsDisabled?: boolean; /** * Whether the user is allowed to enable the "Unknown Sources" * setting, which allows installation of apps from unknown sources. */ - installUnknownSourcesAllowed: boolean; + installUnknownSourcesAllowed?: boolean; /** * Whether the keyguard is disabled. */ - keyguardDisabled: boolean; + keyguardDisabled?: boolean; /** * Disabled keyguard customizations, such as widgets. */ - keyguardDisabledFeatures: string[]; + keyguardDisabledFeatures?: string[]; /** * Whether the kiosk custom launcher is enabled. This replaces the home * screen with a launcher that locks down the device to the apps installed @@ -1219,39 +1220,39 @@ export namespace androidmanagement_v1 { * alphabetical order. It is recommended to also use status_bar_disabled to * block access to device settings. */ - kioskCustomLauncherEnabled: boolean; + kioskCustomLauncherEnabled?: boolean; /** * The degree of location detection enabled. The user may change the value * unless the user is otherwise blocked from accessing device settings. */ - locationMode: string; + locationMode?: string; /** * A message displayed to the user in the device administators settings * screen. */ - longSupportMessage: Schema$UserFacingMessage; + longSupportMessage?: Schema$UserFacingMessage; /** * Maximum time in milliseconds for user activity until the device locks. A * value of 0 means there is no restriction. */ - maximumTimeToLock: string; + maximumTimeToLock?: string; /** * Whether configuring mobile networks is disabled. */ - mobileNetworksConfigDisabled: boolean; + mobileNetworksConfigDisabled?: boolean; /** * Whether adding or removing accounts is disabled. */ - modifyAccountsDisabled: boolean; + modifyAccountsDisabled?: boolean; /** * Whether the user mounting physical external media is disabled. */ - mountPhysicalMediaDisabled: boolean; + mountPhysicalMediaDisabled?: boolean; /** * The name of the policy in the form * enterprises/{enterpriseId}/policies/{policyId}. */ - name: string; + name?: string; /** * Whether the network escape hatch is enabled. If a network connection * can't be made at boot time, the escape hatch prompts the user to @@ -1262,38 +1263,38 @@ export namespace androidmanagement_v1 { * boots into an app in lock task mode, or the user is otherwise unable to * reach device settings. */ - networkEscapeHatchEnabled: boolean; + networkEscapeHatchEnabled?: boolean; /** * Whether resetting network settings is disabled. */ - networkResetDisabled: boolean; + networkResetDisabled?: boolean; /** * Network configuration for the device. See configure networks for more * information. */ - openNetworkConfiguration: any; + openNetworkConfiguration?: any; /** * Whether using NFC to beam data from apps is disabled. */ - outgoingBeamDisabled: boolean; + outgoingBeamDisabled?: boolean; /** * Whether outgoing calls are disabled. */ - outgoingCallsDisabled: boolean; + outgoingCallsDisabled?: boolean; /** * Password requirements. */ - passwordRequirements: Schema$PasswordRequirements; + passwordRequirements?: Schema$PasswordRequirements; /** * If present, only the input methods provided by packages in this list are * permitted. If this field is present, but the list is empty, then only * system input methods are permitted. */ - permittedInputMethods: Schema$PackageNameList; + permittedInputMethods?: Schema$PackageNameList; /** * Default intent handler activities. */ - persistentPreferredActivities: Schema$PersistentPreferredActivity[]; + persistentPreferredActivities?: Schema$PersistentPreferredActivity[]; /** * The network-independent global HTTP proxy. Typically proxies should be * configured per-network in open_network_configuration. However for unusual @@ -1301,108 +1302,108 @@ export namespace androidmanagement_v1 { * useful. If the proxy is not accessible, network access may break. The * global proxy is only a recommendation and some apps may ignore it. */ - recommendedGlobalProxy: Schema$ProxyInfo; + recommendedGlobalProxy?: Schema$ProxyInfo; /** * Whether removing other users is disabled. */ - removeUserDisabled: boolean; + removeUserDisabled?: boolean; /** * Whether rebooting the device into safe boot is disabled. */ - safeBootDisabled: boolean; + safeBootDisabled?: boolean; /** * Whether screen capture is disabled. */ - screenCaptureDisabled: boolean; + screenCaptureDisabled?: boolean; /** * Whether changing the user icon is disabled. */ - setUserIconDisabled: boolean; + setUserIconDisabled?: boolean; /** * Whether changing the wallpaper is disabled. */ - setWallpaperDisabled: boolean; + setWallpaperDisabled?: boolean; /** * Whether location sharing is disabled. */ - shareLocationDisabled: boolean; + shareLocationDisabled?: boolean; /** * A message displayed to the user in the settings screen wherever * functionality has been disabled by the admin. */ - shortSupportMessage: Schema$UserFacingMessage; + shortSupportMessage?: Schema$UserFacingMessage; /** * Flag to skip hints on the first use. Enterprise admin can enable the * system recommendation for apps to skip their user tutorial and other * introductory hints on first start-up. */ - skipFirstUseHintsEnabled: boolean; + skipFirstUseHintsEnabled?: boolean; /** * Whether sending and receiving SMS messages is disabled. */ - smsDisabled: boolean; + smsDisabled?: boolean; /** * Whether the status bar is disabled. This disables notifications, quick * settings, and other screen overlays that allow escape from full-screen * mode. */ - statusBarDisabled: boolean; + statusBarDisabled?: boolean; /** * Status reporting settings */ - statusReportingSettings: Schema$StatusReportingSettings; + statusReportingSettings?: Schema$StatusReportingSettings; /** * The battery plugged in modes for which the device stays on. When using * this setting, it is recommended to clear maximum_time_to_lock so that the * device doesn't lock itself while it stays on. */ - stayOnPluggedModes: string[]; + stayOnPluggedModes?: string[]; /** * The system update policy, which controls how OS updates are applied. If * the update type is WINDOWED, the update window will automatically apply * to Play app updates as well. */ - systemUpdate: Schema$SystemUpdate; + systemUpdate?: Schema$SystemUpdate; /** * Whether configuring tethering and portable hotspots is disabled. */ - tetheringConfigDisabled: boolean; + tetheringConfigDisabled?: boolean; /** * Whether user uninstallation of applications is disabled. */ - uninstallAppsDisabled: boolean; + uninstallAppsDisabled?: boolean; /** * Whether the microphone is muted and adjusting microphone volume is * disabled. */ - unmuteMicrophoneDisabled: boolean; + unmuteMicrophoneDisabled?: boolean; /** * Whether transferring files over USB is disabled. */ - usbFileTransferDisabled: boolean; + usbFileTransferDisabled?: boolean; /** * Allows admins to toggle whether USB storge is enabled or disabled on * user's devices. */ - usbMassStorageEnabled: boolean; + usbMassStorageEnabled?: boolean; /** * The version of the policy. This is a read-only field. The version is * incremented each time the policy is updated. */ - version: string; + version?: string; /** * Whether configuring VPN is disabled. */ - vpnConfigDisabled: boolean; + vpnConfigDisabled?: boolean; /** * Whether configuring Wi-Fi access points is disabled. */ - wifiConfigDisabled: boolean; + wifiConfigDisabled?: boolean; /** * Whether Wi-Fi networks defined in Open Network Configuration are locked * so they can't be edited by the user. */ - wifiConfigsLockdownEnabled: boolean; + wifiConfigsLockdownEnabled?: boolean; } /** * A power management event. @@ -1411,15 +1412,15 @@ export namespace androidmanagement_v1 { /** * For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage. */ - batteryLevel: number; + batteryLevel?: number; /** * The creation time of the event. */ - createTime: string; + createTime?: string; /** * Event type. */ - eventType: string; + eventType?: string; } /** * Configuration info for an HTTP proxy. For a direct proxy, set the host, @@ -1431,19 +1432,19 @@ export namespace androidmanagement_v1 { * For a direct proxy, the hosts for which the proxy is bypassed. The host * names may contain wildcards such as *.example.com. */ - excludedHosts: string[]; + excludedHosts?: string[]; /** * The host of the direct proxy. */ - host: string; + host?: string; /** * The URI of the PAC script used to configure the proxy. */ - pacUri: string; + pacUri?: string; /** * The port of the direct proxy. */ - port: number; + port?: number; } /** * An enterprise signup URL. @@ -1453,12 +1454,12 @@ export namespace androidmanagement_v1 { * The name of the resource. Use this value in the signupUrl field when * calling enterprises.create to complete the enterprise signup flow. */ - name: string; + name?: string; /** * A URL where an enterprise admin can register their enterprise. The page * can't be rendered in an iframe. */ - url: string; + url?: string; } /** * Information about device software. @@ -1468,42 +1469,42 @@ export namespace androidmanagement_v1 { * Android build ID string meant for displaying to the user. For example, * shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys. */ - androidBuildNumber: string; + androidBuildNumber?: string; /** * Build time. */ - androidBuildTime: string; + androidBuildTime?: string; /** * The Android Device Policy app version code. */ - androidDevicePolicyVersionCode: number; + androidDevicePolicyVersionCode?: number; /** * The Android Device Policy app version as displayed to the user. */ - androidDevicePolicyVersionName: string; + androidDevicePolicyVersionName?: string; /** * The user-visible Android version string. For example, 6.0.1. */ - androidVersion: string; + androidVersion?: string; /** * The system bootloader version number, e.g. 0.6.7. */ - bootloaderVersion: string; + bootloaderVersion?: string; /** * SHA-256 hash of android.content.pm.Signature * (https://developer.android.com/reference/android/content/pm/Signature.html) * associated with the system package, which can be used to verify that the * system build hasn't been modified. */ - deviceBuildSignature: string; + deviceBuildSignature?: string; /** * Kernel version, for example, 2.6.32.9-g103d848. */ - deviceKernelVersion: string; + deviceKernelVersion?: string; /** * Security patch level, e.g. 2016-05-01. */ - securityPatchLevel: string; + securityPatchLevel?: string; } /** * The Status type defines a logical error model that is suitable for @@ -1544,18 +1545,18 @@ export namespace androidmanagement_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Settings controlling the behavior of status reports. @@ -1564,31 +1565,31 @@ export namespace androidmanagement_v1 { /** * Whether device settings reporting is enabled. */ - deviceSettingsEnabled: boolean; + deviceSettingsEnabled?: boolean; /** * Whether displays reporting is enabled. */ - displayInfoEnabled: boolean; + displayInfoEnabled?: boolean; /** * Whether hardware status reporting is enabled. */ - hardwareStatusEnabled: boolean; + hardwareStatusEnabled?: boolean; /** * Whether memory info reporting is enabled. */ - memoryInfoEnabled: boolean; + memoryInfoEnabled?: boolean; /** * Whether network info reporting is enabled. */ - networkInfoEnabled: boolean; + networkInfoEnabled?: boolean; /** * Whether power management event reporting is enabled. */ - powerManagementEventsEnabled: boolean; + powerManagementEventsEnabled?: boolean; /** * Whether software info reporting is enabled. */ - softwareInfoEnabled: boolean; + softwareInfoEnabled?: boolean; } /** * Configuration for managing system updates @@ -1602,17 +1603,17 @@ export namespace androidmanagement_v1 { * maintenance window specified is smaller than 30 minutes, the actual * window is extended to 30 minutes beyond the start time. */ - endMinutes: number; + endMinutes?: number; /** * If the type is WINDOWED, the start of the maintenance window, measured as * the number of minutes after midnight in the device's local time. This * value must be between 0 and 1439, inclusive. */ - startMinutes: number; + startMinutes?: number; /** * The type of system update to configure. */ - type: string; + type?: string; } /** * A terms and conditions page to be accepted during provisioning. @@ -1622,11 +1623,11 @@ export namespace androidmanagement_v1 { * A well-formatted HTML string. It will be parsed on the client with * android.text.Html#fromHtml. */ - content: Schema$UserFacingMessage; + content?: Schema$UserFacingMessage; /** * A short header which appears above the HTML content. */ - header: Schema$UserFacingMessage; + header?: Schema$UserFacingMessage; } /** * Provides a user-facing message with locale info. The maximum message length @@ -1638,14 +1639,14 @@ export namespace androidmanagement_v1 { * user's locale doesn't match with any of the localized messages. A * default message must be provided if any localized messages are provided. */ - defaultMessage: string; + defaultMessage?: string; /** * A map containing <locale, message> pairs, where locale is a * well-formed BCP 47 language * (https://www.w3.org/International/articles/language-tags/) code, such as * en-US, es-ES, or fr. */ - localizedMessages: any; + localizedMessages?: any; } /** * A web token used to access the managed Google Play iframe. @@ -1655,25 +1656,26 @@ export namespace androidmanagement_v1 { * The name of the web token, which is generated by the server during * creation in the form enterprises/{enterpriseId}/webTokens/{webTokenId}. */ - name: string; + name?: string; /** * The URL of the parent frame hosting the iframe with the embedded UI. To * prevent XSS, the iframe may not be hosted at other URLs. The URL must use * the https scheme. */ - parentFrameUrl: string; + parentFrameUrl?: string; /** * Permissions available to an admin in the embedded UI. An admin must have * all of these permissions in order to view the UI. */ - permissions: string[]; + permissions?: string[]; /** * The token value which is used in the hosting page to generate the iframe * with the embedded UI. This is a read-only field generated by the server. */ - value: string; + value?: string; } + export class Resource$Enterprises { root: Androidmanagement; applications: Resource$Enterprises$Applications; @@ -1712,26 +1714,39 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Enterprises$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Enterprises$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -1766,23 +1781,34 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Enterprises$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Enterprises$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Enterprises$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Enterprises$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Enterprises$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -1819,26 +1845,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Enterprises$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Enterprises$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Enterprises$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -1860,6 +1898,63 @@ export namespace androidmanagement_v1 { } } } + + export interface Params$Resource$Enterprises$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The enterprise token appended to the callback URL. + */ + enterpriseToken?: string; + /** + * The ID of the Google Cloud Platform project which will own the + * enterprise. + */ + projectId?: string; + /** + * The name of the SignupUrl used to sign up for the enterprise. + */ + signupUrlName?: string; + /** + * Request body metadata + */ + resource?: Schema$Enterprise; + } + export interface Params$Resource$Enterprises$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the enterprise in the form enterprises/{enterpriseId}. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the enterprise in the form enterprises/{enterpriseId}. + */ + name?: string; + /** + * The field mask indicating the fields to update. If not set, all + * modifiable fields will be modified. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Enterprise; + } + export class Resource$Enterprises$Applications { root: Androidmanagement; constructor(root: Androidmanagement) { @@ -1885,24 +1980,35 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Enterprises$Applications$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Enterprises$Applications$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Enterprises$Applications$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Enterprises$Applications$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Applications$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Applications$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -1925,6 +2031,26 @@ export namespace androidmanagement_v1 { } } + export interface Params$Resource$Enterprises$Applications$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language for localized application info, as a BCP47 tag + * (e.g. "en-US", "de"). If not specified the default language of the + * application will be used. + */ + languageCode?: string; + /** + * The name of the application in the form + * enterprises/{enterpriseId}/applications/{package_name}. + */ + name?: string; + } + + export class Resource$Enterprises$Devices { root: Androidmanagement; operations: Resource$Enterprises$Devices$Operations; @@ -1951,25 +2077,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Devices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Enterprises$Devices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Enterprises$Devices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Devices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Devices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2004,23 +2143,34 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Enterprises$Devices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Enterprises$Devices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Enterprises$Devices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Enterprises$Devices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Devices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2058,26 +2208,39 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - issueCommand(params?: any, options?: MethodOptions): - AxiosPromise; issueCommand( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Devices$Issuecommand, + options?: MethodOptions): AxiosPromise; + issueCommand( + params: Params$Resource$Enterprises$Devices$Issuecommand, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + issueCommand( + params: Params$Resource$Enterprises$Devices$Issuecommand, + callback: BodyResponseCallback): void; + issueCommand(callback: BodyResponseCallback): void; issueCommand( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Devices$Issuecommand| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Devices$Issuecommand; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Issuecommand; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2115,28 +2278,39 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Devices$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Enterprises$Devices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Enterprises$Devices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Enterprises$Devices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Devices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2174,25 +2348,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Devices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Enterprises$Devices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Devices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Enterprises$Devices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Devices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2214,6 +2401,89 @@ export namespace androidmanagement_v1 { } } } + + export interface Params$Resource$Enterprises$Devices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device in the form + * enterprises/{enterpriseId}/devices/{deviceId}. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Devices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device in the form + * enterprises/{enterpriseId}/devices/{deviceId}. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Devices$Issuecommand { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device in the form + * enterprises/{enterpriseId}/devices/{deviceId}. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Command; + } + export interface Params$Resource$Enterprises$Devices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The requested page size. The actual page size may be fixed to a min or + * max value. + */ + pageSize?: number; + /** + * A token identifying a page of results returned by the server. + */ + pageToken?: string; + /** + * The name of the enterprise in the form enterprises/{enterpriseId}. + */ + parent?: string; + } + export interface Params$Resource$Enterprises$Devices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device in the form + * enterprises/{enterpriseId}/devices/{deviceId}. + */ + name?: string; + /** + * The field mask indicating the fields to update. If not set, all + * modifiable fields will be modified. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Device; + } + export class Resource$Enterprises$Devices$Operations { root: Androidmanagement; constructor(root: Androidmanagement) { @@ -2246,25 +2516,39 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Devices$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Enterprises$Devices$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Enterprises$Devices$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Enterprises$Devices$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Devices$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2303,25 +2587,39 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Devices$Operations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Enterprises$Devices$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Devices$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Enterprises$Devices$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Devices$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2358,23 +2656,35 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Enterprises$Devices$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Enterprises$Devices$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Enterprises$Devices$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Enterprises$Devices$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Devices$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2420,28 +2730,40 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Enterprises$Devices$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Enterprises$Devices$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Enterprises$Devices$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Enterprises$Devices$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Devices$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Devices$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2464,6 +2786,64 @@ export namespace androidmanagement_v1 { } } + export interface Params$Resource$Enterprises$Devices$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Devices$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Devices$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Devices$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Enterprises$Enrollmenttokens { root: Androidmanagement; @@ -2490,26 +2870,39 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Enrollmenttokens$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Enterprises$Enrollmenttokens$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Enterprises$Enrollmenttokens$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Enterprises$Enrollmenttokens$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Enrollmenttokens$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Enrollmenttokens$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2546,25 +2939,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Enrollmenttokens$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Enterprises$Enrollmenttokens$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Enrollmenttokens$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Enterprises$Enrollmenttokens$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Enrollmenttokens$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Enrollmenttokens$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2587,6 +2993,35 @@ export namespace androidmanagement_v1 { } } + export interface Params$Resource$Enterprises$Enrollmenttokens$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the enterprise in the form enterprises/{enterpriseId}. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$EnrollmentToken; + } + export interface Params$Resource$Enterprises$Enrollmenttokens$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the enrollment token in the form + * enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. + */ + name?: string; + } + + export class Resource$Enterprises$Policies { root: Androidmanagement; constructor(root: Androidmanagement) { @@ -2612,25 +3047,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Policies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Enterprises$Policies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Policies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Enterprises$Policies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Policies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Policies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2665,23 +3113,34 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Enterprises$Policies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Enterprises$Policies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Enterprises$Policies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Enterprises$Policies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Policies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Policies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2718,28 +3177,40 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Enterprises$Policies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Enterprises$Policies$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Enterprises$Policies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Enterprises$Policies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Enterprises$Policies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Policies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2777,25 +3248,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Policies$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Enterprises$Policies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Policies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Enterprises$Policies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Policies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Policies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2818,6 +3302,73 @@ export namespace androidmanagement_v1 { } } + export interface Params$Resource$Enterprises$Policies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the policy in the form + * enterprises/{enterpriseId}/policies/{policyId}. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Policies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the policy in the form + * enterprises/{enterpriseId}/policies/{policyId}. + */ + name?: string; + } + export interface Params$Resource$Enterprises$Policies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The requested page size. The actual page size may be fixed to a min or + * max value. + */ + pageSize?: number; + /** + * A token identifying a page of results returned by the server. + */ + pageToken?: string; + /** + * The name of the enterprise in the form enterprises/{enterpriseId}. + */ + parent?: string; + } + export interface Params$Resource$Enterprises$Policies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the policy in the form + * enterprises/{enterpriseId}/policies/{policyId}. + */ + name?: string; + /** + * The field mask indicating the fields to update. If not set, all + * modifiable fields will be modified. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Policy; + } + + export class Resource$Enterprises$Webtokens { root: Androidmanagement; constructor(root: Androidmanagement) { @@ -2844,26 +3395,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Enterprises$Webtokens$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Enterprises$Webtokens$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Enterprises$Webtokens$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Enterprises$Webtokens$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Enterprises$Webtokens$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Enterprises$Webtokens$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2887,6 +3450,23 @@ export namespace androidmanagement_v1 { } } + export interface Params$Resource$Enterprises$Webtokens$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the enterprise in the form enterprises/{enterpriseId}. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$WebToken; + } + + export class Resource$Signupurls { root: Androidmanagement; @@ -2913,26 +3493,38 @@ export namespace androidmanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Signupurls$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Signupurls$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Signupurls$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Signupurls$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Signupurls$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Signupurls$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; const parameters = { @@ -2954,4 +3546,26 @@ export namespace androidmanagement_v1 { } } } + + export interface Params$Resource$Signupurls$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The callback URL that the admin will be redirected to after successfully + * creating an enterprise. Before redirecting there the system will add a + * query parameter to this URL named enterpriseToken which will contain an + * opaque token to be used for the create enterprise request. The URL will + * be parsed then reformatted in order to add the enterpriseToken parameter, + * so there may be some minor formatting changes. + */ + callbackUrl?: string; + /** + * The ID of the Google Cloud Platform project which will own the + * enterprise. + */ + projectId?: string; + } } diff --git a/src/apis/androidpublisher/v1.1.ts b/src/apis/androidpublisher/v1.1.ts index 0974b865e01..5e54c8d8116 100644 --- a/src/apis/androidpublisher/v1.1.ts +++ b/src/apis/androidpublisher/v1.1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace androidpublisher_v1_1 { + export interface Options extends GlobalOptions { version: 'v1_1'; } + /** * Google Play Developer API * @@ -76,38 +79,38 @@ export namespace androidpublisher_v1_1 { * The consumption state of the inapp product. Possible values are: - Yet * to be consumed - Consumed */ - consumptionState: number; + consumptionState?: number; /** * A developer-specified string that contains supplemental information about * an order. */ - developerPayload: string; + developerPayload?: string; /** * This kind represents an inappPurchase object in the androidpublisher * service. */ - kind: string; + kind?: string; /** * The order id associated with the purchase of the inapp product. */ - orderId: string; + orderId?: string; /** * The purchase state of the order. Possible values are: - Purchased - * Canceled */ - purchaseState: number; + purchaseState?: number; /** * The time the product was purchased, in milliseconds since the epoch (Jan * 1, 1970). */ - purchaseTime: string; + purchaseTime?: string; /** * The type of purchase of the inapp product. This field is only set if this * purchase was not made using the standard in-app billing flow. Possible * values are: - Test (i.e. purchased from a license testing account) - * Promo (i.e. purchased using a promo code) */ - purchaseType: number; + purchaseType?: number; } /** * A SubscriptionPurchase resource indicates the status of a user's @@ -118,24 +121,25 @@ export namespace androidpublisher_v1_1 { * Whether the subscription will automatically be renewed when it reaches * its current expiry time. */ - autoRenewing: boolean; + autoRenewing?: boolean; /** * Time at which the subscription was granted, in milliseconds since the * Epoch. */ - initiationTimestampMsec: string; + initiationTimestampMsec?: string; /** * This kind represents a subscriptionPurchase object in the * androidpublisher service. */ - kind: string; + kind?: string; /** * Time at which the subscription will expire, in milliseconds since the * Epoch. */ - validUntilTimestampMsec: string; + validUntilTimestampMsec?: string; } + export class Resource$Inapppurchases { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -162,24 +166,35 @@ export namespace androidpublisher_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Inapppurchases$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Inapppurchases$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Inapppurchases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Inapppurchases$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inapppurchases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inapppurchases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -204,6 +219,29 @@ export namespace androidpublisher_v1_1 { } } + export interface Params$Resource$Inapppurchases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application the inapp product was sold in (for + * example, 'com.some.thing'). + */ + packageName?: string; + /** + * The inapp product SKU (for example, 'com.some.thing.inapp1'). + */ + productId?: string; + /** + * The token provided to the user's device when the inapp product was + * purchased. + */ + token?: string; + } + + export class Resource$Purchases { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -231,22 +269,35 @@ export namespace androidpublisher_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Purchases$Cancel, options?: MethodOptions): + AxiosPromise; + cancel( + params: Params$Resource$Purchases$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Purchases$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Purchases$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Purchases$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -286,26 +337,35 @@ export namespace androidpublisher_v1_1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Purchases$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Purchases$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Purchases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Purchases$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Purchases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -329,4 +389,47 @@ export namespace androidpublisher_v1_1 { } } } + + export interface Params$Resource$Purchases$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } + export interface Params$Resource$Purchases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } } diff --git a/src/apis/androidpublisher/v1.ts b/src/apis/androidpublisher/v1.ts index 615ba654ff9..adb26b6c674 100644 --- a/src/apis/androidpublisher/v1.ts +++ b/src/apis/androidpublisher/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace androidpublisher_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Play Developer API * @@ -74,24 +77,25 @@ export namespace androidpublisher_v1 { * Whether the subscription will automatically be renewed when it reaches * its current expiry time. */ - autoRenewing: boolean; + autoRenewing?: boolean; /** * Time at which the subscription was granted, in milliseconds since the * Epoch. */ - initiationTimestampMsec: string; + initiationTimestampMsec?: string; /** * This kind represents a subscriptionPurchase object in the * androidpublisher service. */ - kind: string; + kind?: string; /** * Time at which the subscription will expire, in milliseconds since the * Epoch. */ - validUntilTimestampMsec: string; + validUntilTimestampMsec?: string; } + export class Resource$Purchases { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -119,22 +123,35 @@ export namespace androidpublisher_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Purchases$Cancel, options?: MethodOptions): + AxiosPromise; + cancel( + params: Params$Resource$Purchases$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Purchases$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Purchases$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Purchases$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -174,26 +191,35 @@ export namespace androidpublisher_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Purchases$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Purchases$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Purchases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Purchases$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Purchases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -217,4 +243,47 @@ export namespace androidpublisher_v1 { } } } + + export interface Params$Resource$Purchases$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } + export interface Params$Resource$Purchases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } } diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index b80d0da9eb2..29de40cf1f3 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace androidpublisher_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Google Play Developer API * @@ -75,11 +78,11 @@ export namespace androidpublisher_v2 { /** * Information about the binary payload of this APK. */ - binary: Schema$ApkBinary; + binary?: Schema$ApkBinary; /** * The version code of the APK, as specified in the APK's manifest file. */ - versionCode: number; + versionCode?: number; } /** * Represents the binary payload of an APK. @@ -89,68 +92,68 @@ export namespace androidpublisher_v2 { * A sha1 hash of the APK payload, encoded as a hex string and matching the * output of the sha1sum command. */ - sha1: string; + sha1?: string; /** * A sha256 hash of the APK payload, encoded as a hex string and matching * the output of the sha256sum command. */ - sha256: string; + sha256?: string; } export interface Schema$ApkListing { /** * The language code, in BCP 47 format (eg "en-US"). */ - language: string; + language?: string; /** * Describe what's new in your APK. */ - recentChanges: string; + recentChanges?: string; } export interface Schema$ApkListingsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "androidpublisher#apkListingsListResponse". */ - kind: string; - listings: Schema$ApkListing[]; + kind?: string; + listings?: Schema$ApkListing[]; } export interface Schema$ApksAddExternallyHostedRequest { /** * The definition of the externally-hosted APK and where it is located. */ - externallyHostedApk: Schema$ExternallyHostedApk; + externallyHostedApk?: Schema$ExternallyHostedApk; } export interface Schema$ApksAddExternallyHostedResponse { /** * The definition of the externally-hosted APK and where it is located. */ - externallyHostedApk: Schema$ExternallyHostedApk; + externallyHostedApk?: Schema$ExternallyHostedApk; } export interface Schema$ApksListResponse { - apks: Schema$Apk[]; + apks?: Schema$Apk[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidpublisher#apksListResponse". */ - kind: string; + kind?: string; } export interface Schema$AppDetails { /** * The user-visible support email for this app. */ - contactEmail: string; + contactEmail?: string; /** * The user-visible support telephone number for this app. */ - contactPhone: string; + contactPhone?: string; /** * The user-visible website for this app. */ - contactWebsite: string; + contactWebsite?: string; /** * Default language code, in BCP 47 format (eg "en-US"). */ - defaultLanguage: string; + defaultLanguage?: string; } /** * Represents an edit of an app. An edit allows clients to make multiple @@ -161,21 +164,21 @@ export namespace androidpublisher_v2 { * The time at which the edit will expire and will be no longer valid for * use in any subsequent API calls (encoded as seconds since the Epoch). */ - expiryTimeSeconds: string; + expiryTimeSeconds?: string; /** * The ID of the edit that can be used in subsequent API calls. */ - id: string; + id?: string; } export interface Schema$Comment { /** * A comment from a developer. */ - developerComment: Schema$DeveloperComment; + developerComment?: Schema$DeveloperComment; /** * A comment from a user. */ - userComment: Schema$UserComment; + userComment?: Schema$UserComment; } /** * Represents a deobfuscation file. @@ -184,67 +187,67 @@ export namespace androidpublisher_v2 { /** * The type of the deobfuscation file. */ - symbolType: string; + symbolType?: string; } export interface Schema$DeobfuscationFilesUploadResponse { - deobfuscationFile: Schema$DeobfuscationFile; + deobfuscationFile?: Schema$DeobfuscationFile; } export interface Schema$DeveloperComment { /** * The last time at which this comment was updated. */ - lastModified: Schema$Timestamp; + lastModified?: Schema$Timestamp; /** * The content of the comment, i.e. reply body. */ - text: string; + text?: string; } export interface Schema$DeviceMetadata { /** * Device CPU make e.g. "Qualcomm" */ - cpuMake: string; + cpuMake?: string; /** * Device CPU model e.g. "MSM8974" */ - cpuModel: string; + cpuModel?: string; /** * Device class (e.g. tablet) */ - deviceClass: string; + deviceClass?: string; /** * OpenGL version */ - glEsVersion: number; + glEsVersion?: number; /** * Device manufacturer (e.g. Motorola) */ - manufacturer: string; + manufacturer?: string; /** * Comma separated list of native platforms (e.g. "arm", * "arm7") */ - nativePlatform: string; + nativePlatform?: string; /** * Device model name (e.g. Droid) */ - productName: string; + productName?: string; /** * Device RAM in Megabytes e.g. "2048" */ - ramMb: number; + ramMb?: number; /** * Screen density in DPI */ - screenDensityDpi: number; + screenDensityDpi?: number; /** * Screen height in pixels */ - screenHeightPx: number; + screenHeightPx?: number; /** * Screen width in pixels */ - screenWidthPx: number; + screenWidthPx?: number; } export interface Schema$ExpansionFile { /** @@ -252,15 +255,15 @@ export namespace androidpublisher_v2 { * to it: this APK does not reference another APK's Expansion File. The * field's value is the size of the uploaded Expansion File in bytes. */ - fileSize: string; + fileSize?: string; /** * If set this APK's Expansion File references another APK's * Expansion File. The file_size field will not be set. */ - referencesVersion: number; + referencesVersion?: number; } export interface Schema$ExpansionFilesUploadResponse { - expansionFile: Schema$ExpansionFile; + expansionFile?: Schema$ExpansionFile; } /** * Defines an APK available for this application that is hosted externally and @@ -272,66 +275,66 @@ export namespace androidpublisher_v2 { /** * The application label. */ - applicationLabel: string; + applicationLabel?: string; /** * A certificate (or array of certificates if a certificate-chain is used) * used to signed this APK, represented as a base64 encoded byte array. */ - certificateBase64s: string[]; + certificateBase64s?: string[]; /** * The URL at which the APK is hosted. This must be an https URL. */ - externallyHostedUrl: string; + externallyHostedUrl?: string; /** * The SHA1 checksum of this APK, represented as a base64 encoded byte * array. */ - fileSha1Base64: string; + fileSha1Base64?: string; /** * The SHA256 checksum of this APK, represented as a base64 encoded byte * array. */ - fileSha256Base64: string; + fileSha256Base64?: string; /** * The file size in bytes of this APK. */ - fileSize: string; + fileSize?: string; /** * The icon image from the APK, as a base64 encoded byte array. */ - iconBase64: string; + iconBase64?: string; /** * The maximum SDK supported by this APK (optional). */ - maximumSdk: number; + maximumSdk?: number; /** * The minimum SDK targeted by this APK. */ - minimumSdk: number; + minimumSdk?: number; /** * The native code environments supported by this APK (optional). */ - nativeCodes: string[]; + nativeCodes?: string[]; /** * The package name. */ - packageName: string; + packageName?: string; /** * The features required by this APK (optional). */ - usesFeatures: string[]; + usesFeatures?: string[]; /** * The permissions requested by this APK. */ - usesPermissions: Schema$ExternallyHostedApkUsesPermission[]; + usesPermissions?: Schema$ExternallyHostedApkUsesPermission[]; /** * The version code of this APK. */ - versionCode: number; + versionCode?: number; /** * The version name of this APK. */ - versionName: string; + versionName?: string; } /** * A permission used by this APK. @@ -340,153 +343,153 @@ export namespace androidpublisher_v2 { /** * Optionally, the maximum SDK version for which the permission is required. */ - maxSdkVersion: number; + maxSdkVersion?: number; /** * The name of the permission requested. */ - name: string; + name?: string; } export interface Schema$Image { /** * A unique id representing this image. */ - id: string; + id?: string; /** * A sha1 hash of the image that was uploaded. */ - sha1: string; + sha1?: string; /** * A URL that will serve a preview of the image. */ - url: string; + url?: string; } - export interface Schema$ImagesDeleteAllResponse { deleted: Schema$Image[]; } - export interface Schema$ImagesListResponse { images: Schema$Image[]; } - export interface Schema$ImagesUploadResponse { image: Schema$Image; } + export interface Schema$ImagesDeleteAllResponse { deleted?: Schema$Image[]; } + export interface Schema$ImagesListResponse { images?: Schema$Image[]; } + export interface Schema$ImagesUploadResponse { image?: Schema$Image; } export interface Schema$InAppProduct { /** * The default language of the localized data, as defined by BCP 47. e.g. * "en-US", "en-GB". */ - defaultLanguage: string; + defaultLanguage?: string; /** * Default price cannot be zero. In-app products can never be free. Default * price is always in the developer's Checkout merchant currency. */ - defaultPrice: Schema$Price; + defaultPrice?: Schema$Price; /** * List of localized title and description data. */ - listings: any; + listings?: any; /** * The package name of the parent app. */ - packageName: string; + packageName?: string; /** * Prices per buyer region. None of these prices should be zero. In-app * products can never be free. */ - prices: any; + prices?: any; /** * Purchase type enum value. Unmodifiable after creation. */ - purchaseType: string; + purchaseType?: string; /** * Definition of a season for a seasonal subscription. Can be defined only * for yearly subscriptions. */ - season: Schema$Season; + season?: Schema$Season; /** * The stock-keeping-unit (SKU) of the product, unique within an app. */ - sku: string; - status: string; + sku?: string; + status?: string; /** * Subscription period, specified in ISO 8601 format. Acceptable values are * "P1W" (one week), "P1M" (one month), "P3M" * (three months), "P6M" (six months), and "P1Y" (one * year). */ - subscriptionPeriod: string; + subscriptionPeriod?: string; /** * Trial period, specified in ISO 8601 format. Acceptable values are * anything between "P7D" (seven days) and "P999D" (999 * days). Seasonal subscriptions cannot have a trial period. */ - trialPeriod: string; + trialPeriod?: string; } export interface Schema$InAppProductListing { - description: string; - title: string; + description?: string; + title?: string; } export interface Schema$InappproductsListResponse { - inappproduct: Schema$InAppProduct[]; + inappproduct?: Schema$InAppProduct[]; /** * Identifies what kind of resource this is. Value: the fixed string * "androidpublisher#inappproductsListResponse". */ - kind: string; - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; + kind?: string; + pageInfo?: Schema$PageInfo; + tokenPagination?: Schema$TokenPagination; } export interface Schema$Listing { /** * Full description of the app; this may be up to 4000 characters in length. */ - fullDescription: string; + fullDescription?: string; /** * Language localization code (for example, "de-AT" for Austrian * German). */ - language: string; + language?: string; /** * Short description of the app (previously known as promo text); this may * be up to 80 characters in length. */ - shortDescription: string; + shortDescription?: string; /** * App's localized title. */ - title: string; + title?: string; /** * URL of a promotional YouTube video for the app. */ - video: string; + video?: string; } export interface Schema$ListingsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "androidpublisher#listingsListResponse". */ - kind: string; - listings: Schema$Listing[]; + kind?: string; + listings?: Schema$Listing[]; } export interface Schema$MonthDay { /** * Day of a month, value in [1, 31] range. Valid range depends on the * specified month. */ - day: number; + day?: number; /** * Month of a year. e.g. 1 = JAN, 2 = FEB etc. */ - month: number; + month?: number; } export interface Schema$PageInfo { - resultPerPage: number; - startIndex: number; - totalResults: number; + resultPerPage?: number; + startIndex?: number; + totalResults?: number; } export interface Schema$Price { /** * 3 letter Currency code, as defined by ISO 4217. */ - currency: string; + currency?: string; /** * The price in millionths of the currency base unit represented as a * string. */ - priceMicros: string; + priceMicros?: string; } /** * A ProductPurchase resource indicates the status of a user's inapp @@ -497,38 +500,38 @@ export namespace androidpublisher_v2 { * The consumption state of the inapp product. Possible values are: - Yet * to be consumed - Consumed */ - consumptionState: number; + consumptionState?: number; /** * A developer-specified string that contains supplemental information about * an order. */ - developerPayload: string; + developerPayload?: string; /** * This kind represents an inappPurchase object in the androidpublisher * service. */ - kind: string; + kind?: string; /** * The order id associated with the purchase of the inapp product. */ - orderId: string; + orderId?: string; /** * The purchase state of the order. Possible values are: - Purchased - * Canceled */ - purchaseState: number; + purchaseState?: number; /** * The time the product was purchased, in milliseconds since the epoch (Jan * 1, 1970). */ - purchaseTimeMillis: string; + purchaseTimeMillis?: string; /** * The type of purchase of the inapp product. This field is only set if this * purchase was not made using the standard in-app billing flow. Possible * values are: - Test (i.e. purchased from a license testing account) - * Promo (i.e. purchased using a promo code) */ - purchaseType: number; + purchaseType?: number; } export interface Schema$Prorate { /** @@ -537,67 +540,84 @@ export namespace androidpublisher_v2 { * currency. Targeted countries have their prices set automatically based on * the default_price. */ - defaultPrice: Schema$Price; + defaultPrice?: Schema$Price; /** * Defines the first day on which the price takes effect. */ - start: Schema$MonthDay; + start?: Schema$MonthDay; } export interface Schema$Review { /** * The name of the user who wrote the review. */ - authorName: string; + authorName?: string; /** * A repeated field containing comments for the review. */ - comments: Schema$Comment[]; + comments?: Schema$Comment[]; /** * Unique identifier for this review. */ - reviewId: string; + reviewId?: string; } export interface Schema$ReviewReplyResult { /** * The time at which the reply took effect. */ - lastEdited: Schema$Timestamp; + lastEdited?: Schema$Timestamp; /** * The reply text that was applied. */ - replyText: string; + replyText?: string; } export interface Schema$ReviewsListResponse { - pageInfo: Schema$PageInfo; - reviews: Schema$Review[]; - tokenPagination: Schema$TokenPagination; + pageInfo?: Schema$PageInfo; + reviews?: Schema$Review[]; + tokenPagination?: Schema$TokenPagination; } export interface Schema$ReviewsReplyRequest { /** * The text to set as the reply. Replies of more than approximately 350 * characters will be rejected. HTML tags will be stripped. */ - replyText: string; + replyText?: string; } export interface Schema$ReviewsReplyResponse { - result: Schema$ReviewReplyResult; + result?: Schema$ReviewReplyResult; } export interface Schema$Season { /** * Inclusive end date of the recurrence period. */ - end: Schema$MonthDay; + end?: Schema$MonthDay; /** * Optionally present list of prorations for the season. Each proration is a * one-off discounted entry into a subscription. Each proration contains the * first date on which the discount is available and the new pricing * information. */ - prorations: Schema$Prorate[]; + prorations?: Schema$Prorate[]; /** * Inclusive start date of the recurrence period. */ - start: Schema$MonthDay; + start?: Schema$MonthDay; + } + /** + * Information provided by the user when they complete the subscription + * cancellation flow (cancellation reason survey). + */ + export interface Schema$SubscriptionCancelSurveyResult { + /** + * The cancellation reason the user chose in the survey. Possible values + * are: - Other - I don't use this service enough - Technical issues + * - Cost-related reasons - I found a better app + */ + cancelSurveyReason?: number; + /** + * The customized input cancel reason from the user. Only present when + * cancelReason is 0. + */ + userInputCancelReason?: string; } /** * A SubscriptionDeferralInfo contains the data needed to defer a subscription @@ -609,13 +629,13 @@ export namespace androidpublisher_v2 { * milliseconds since the Epoch. The given time must be later/greater than * the current expiry time for the subscription. */ - desiredExpiryTimeMillis: string; + desiredExpiryTimeMillis?: string; /** * The expected expiry time for the subscription. If the current expiry time * for the subscription is not the value specified here, the deferral will * not occur. */ - expectedExpiryTimeMillis: string; + expectedExpiryTimeMillis?: string; } /** * A SubscriptionPurchase resource indicates the status of a user's @@ -626,7 +646,7 @@ export namespace androidpublisher_v2 { * Whether the subscription will automatically be renewed when it reaches * its current expiry time. */ - autoRenewing: boolean; + autoRenewing?: boolean; /** * The reason why a subscription was canceled or is not auto-renewing. * Possible values are: - User canceled the subscription - Subscription @@ -634,42 +654,47 @@ export namespace androidpublisher_v2 { * Subscription was replaced with a new subscription - Subscription was * canceled by the developer */ - cancelReason: number; + cancelReason?: number; + /** + * Information provided by the user when they complete the subscription + * cancellation flow (cancellation reason survey). + */ + cancelSurveyResult?: Schema$SubscriptionCancelSurveyResult; /** * ISO 3166-1 alpha-2 billing country/region code of the user at the time * the subscription was granted. */ - countryCode: string; + countryCode?: string; /** * A developer-specified string that contains supplemental information about * an order. */ - developerPayload: string; + developerPayload?: string; /** * The email address of the user when the subscription was purchased. Only * present for purchases made with 'Subscribe with Google'. */ - emailAddress: string; + emailAddress?: string; /** * Time at which the subscription will expire, in milliseconds since the * Epoch. */ - expiryTimeMillis: string; + expiryTimeMillis?: string; /** * The family name of the user when the subscription was purchased. Only * present for purchases made with 'Subscribe with Google'. */ - familyName: string; + familyName?: string; /** * The given name of the user when the subscription was purchased. Only * present for purchases made with 'Subscribe with Google'. */ - givenName: string; + givenName?: string; /** * This kind represents a subscriptionPurchase object in the * androidpublisher service. */ - kind: string; + kind?: string; /** * The purchase token of the originating purchase if this subscription is * one of the following: - Re-signup of a canceled but non-lapsed @@ -682,156 +707,156 @@ export namespace androidpublisher_v2 { * you call this API with purchase token Y, this field will be set to X. If * you call this API with purchase token X, this field will not be set. */ - linkedPurchaseToken: string; + linkedPurchaseToken?: string; /** * The order id of the latest recurring order associated with the purchase * of the subscription. */ - orderId: string; + orderId?: string; /** * The payment state of the subscription. Possible values are: - Payment * pending - Payment received - Free trial */ - paymentState: number; + paymentState?: number; /** * Price of the subscription, not including tax. Price is expressed in * micro-units, where 1,000,000 micro-units represents one unit of the * currency. For example, if the subscription price is €1.99, * price_amount_micros is 1990000. */ - priceAmountMicros: string; + priceAmountMicros?: string; /** * ISO 4217 currency code for the subscription price. For example, if the * price is specified in British pounds sterling, price_currency_code is * "GBP". */ - priceCurrencyCode: string; + priceCurrencyCode?: string; /** * The profile id of the user when the subscription was purchased. Only * present for purchases made with 'Subscribe with Google'. */ - profileId: string; + profileId?: string; /** * The profile name of the user when the subscription was purchased. Only * present for purchases made with 'Subscribe with Google'. */ - profileName: string; + profileName?: string; /** * The type of purchase of the subscription. This field is only set if this * purchase was not made using the standard in-app billing flow. Possible * values are: - Test (i.e. purchased from a license testing account) */ - purchaseType: number; + purchaseType?: number; /** * Time at which the subscription was granted, in milliseconds since the * Epoch. */ - startTimeMillis: string; + startTimeMillis?: string; /** * The time at which the subscription was canceled by the user, in * milliseconds since the epoch. Only present if cancelReason is 0. */ - userCancellationTimeMillis: string; + userCancellationTimeMillis?: string; } export interface Schema$SubscriptionPurchasesDeferRequest { /** * The information about the new desired expiry time for the subscription. */ - deferralInfo: Schema$SubscriptionDeferralInfo; + deferralInfo?: Schema$SubscriptionDeferralInfo; } export interface Schema$SubscriptionPurchasesDeferResponse { /** * The new expiry time for the subscription in milliseconds since the Epoch. */ - newExpiryTimeMillis: string; + newExpiryTimeMillis?: string; } export interface Schema$Testers { - googleGroups: string[]; - googlePlusCommunities: string[]; + googleGroups?: string[]; + googlePlusCommunities?: string[]; } export interface Schema$Timestamp { - nanos: number; - seconds: string; + nanos?: number; + seconds?: string; } export interface Schema$TokenPagination { - nextPageToken: string; - previousPageToken: string; + nextPageToken?: string; + previousPageToken?: string; } export interface Schema$Track { /** * Identifier for this track. One of "alpha", "beta", * "production", "rollout" or "internal". */ - track: string; - userFraction: number; - versionCodes: number[]; + track?: string; + userFraction?: number; + versionCodes?: number[]; } export interface Schema$TracksListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "androidpublisher#tracksListResponse". */ - kind: string; - tracks: Schema$Track[]; + kind?: string; + tracks?: Schema$Track[]; } export interface Schema$UserComment { /** * Integer Android SDK version of the user's device at the time the * review was written, e.g. 23 is Marshmallow. May be absent. */ - androidOsVersion: number; + androidOsVersion?: number; /** * Integer version code of the app as installed at the time the review was * written. May be absent. */ - appVersionCode: number; + appVersionCode?: number; /** * String version name of the app as installed at the time the review was * written. May be absent. */ - appVersionName: string; + appVersionName?: string; /** * Codename for the reviewer's device, e.g. klte, flounder. May be * absent. */ - device: string; + device?: string; /** * Some information about the characteristics of the user's device */ - deviceMetadata: Schema$DeviceMetadata; + deviceMetadata?: Schema$DeviceMetadata; /** * The last time at which this comment was updated. */ - lastModified: Schema$Timestamp; + lastModified?: Schema$Timestamp; /** * Untranslated text of the review, in the case where the review has been * translated. If the review has not been translated this is left blank. */ - originalText: string; + originalText?: string; /** * Language code for the reviewer. This is taken from the device settings so * is not guaranteed to match the language the review is written in. May be * absent. */ - reviewerLanguage: string; + reviewerLanguage?: string; /** * The star rating associated with the review, from 1 to 5. */ - starRating: number; + starRating?: number; /** * The content of the comment, i.e. review body. In some cases users have * been able to write a review with separate title and body; in those cases * the title and body are concatenated and separated by a tab character. */ - text: string; + text?: string; /** * Number of users who have given this review a thumbs down */ - thumbsDownCount: number; + thumbsDownCount?: number; /** * Number of users who have given this review a thumbs up */ - thumbsUpCount: number; + thumbsUpCount?: number; } /** * A VoidedPurchase resource indicates a purchase that was either @@ -842,29 +867,30 @@ export namespace androidpublisher_v2 { * This kind represents a voided purchase object in the androidpublisher * service. */ - kind: string; + kind?: string; /** * The time at which the purchase was made, in milliseconds since the epoch * (Jan 1, 1970). */ - purchaseTimeMillis: string; + purchaseTimeMillis?: string; /** * The token that was generated when a purchase was made. This uniquely * identifies a purchase. */ - purchaseToken: string; + purchaseToken?: string; /** * The time at which the purchase was canceled/refunded/charged-back, in * milliseconds since the epoch (Jan 1, 1970). */ - voidedTimeMillis: string; + voidedTimeMillis?: string; } export interface Schema$VoidedPurchasesListResponse { - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; - voidedPurchases: Schema$VoidedPurchase[]; + pageInfo?: Schema$PageInfo; + tokenPagination?: Schema$TokenPagination; + voidedPurchases?: Schema$VoidedPurchase[]; } + export class Resource$Edits { root: Androidpublisher; apklistings: Resource$Edits$Apklistings; @@ -908,25 +934,36 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - commit(params?: any, options?: MethodOptions): AxiosPromise; + commit(params?: Params$Resource$Edits$Commit, options?: MethodOptions): + AxiosPromise; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Commit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Commit, + callback: BodyResponseCallback): void; + commit(callback: BodyResponseCallback): void; + commit( + paramsOrCallback?: Params$Resource$Edits$Commit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Commit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Commit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -966,22 +1003,35 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Edits$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Edits$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1021,23 +1071,33 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Edits$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Edits$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1076,25 +1136,36 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Edits$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Edits$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1132,26 +1203,36 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - validate(params?: any, options?: MethodOptions): + validate(params?: Params$Resource$Edits$Validate, options?: MethodOptions): AxiosPromise; validate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Validate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; validate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Validate, + callback: BodyResponseCallback): void; + validate(callback: BodyResponseCallback): void; + validate( + paramsOrCallback?: Params$Resource$Edits$Validate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Validate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Validate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1175,6 +1256,88 @@ export namespace androidpublisher_v2 { } } } + + export interface Params$Resource$Edits$Commit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$AppEdit; + } + export interface Params$Resource$Edits$Validate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export class Resource$Edits$Apklistings { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -1203,22 +1366,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Apklistings$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Edits$Apklistings$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Apklistings$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Edits$Apklistings$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Apklistings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apklistings$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1258,22 +1436,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteall(params?: any, options?: MethodOptions): AxiosPromise; deleteall( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Apklistings$Deleteall, + options?: MethodOptions): AxiosPromise; + deleteall( + params: Params$Resource$Edits$Apklistings$Deleteall, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteall( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Apklistings$Deleteall, + callback: BodyResponseCallback): void; + deleteall(callback: BodyResponseCallback): void; + deleteall( + paramsOrCallback?: Params$Resource$Edits$Apklistings$Deleteall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Edits$Apklistings$Deleteall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apklistings$Deleteall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1314,23 +1507,35 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Edits$Apklistings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Edits$Apklistings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Apklistings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Apklistings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Apklistings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apklistings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1369,28 +1574,40 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Edits$Apklistings$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Edits$Apklistings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Apklistings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Edits$Apklistings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Apklistings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apklistings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1432,26 +1649,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Apklistings$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Edits$Apklistings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Edits$Apklistings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Apklistings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Apklistings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apklistings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1493,26 +1723,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Apklistings$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Apklistings$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Edits$Apklistings$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Edits$Apklistings$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Apklistings$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apklistings$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1537,6 +1780,166 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Apklistings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The APK version code whose APK-specific listings should be read or + * modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the APK-specific localized + * listing to read or modify. For example, to select Austrian German, pass + * "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Apklistings$Deleteall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The APK version code whose APK-specific listings should be read or + * modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Apklistings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The APK version code whose APK-specific listings should be read or + * modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the APK-specific localized + * listing to read or modify. For example, to select Austrian German, pass + * "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Apklistings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The APK version code whose APK-specific listings should be read or + * modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Apklistings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The APK version code whose APK-specific listings should be read or + * modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the APK-specific localized + * listing to read or modify. For example, to select Austrian German, pass + * "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$ApkListing; + } + export interface Params$Resource$Edits$Apklistings$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The APK version code whose APK-specific listings should be read or + * modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the APK-specific localized + * listing to read or modify. For example, to select Austrian German, pass + * "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$ApkListing; + } + + export class Resource$Edits$Apks { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -1566,30 +1969,46 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addexternallyhosted(params?: any, options?: MethodOptions): + addexternallyhosted( + params?: Params$Resource$Edits$Apks$Addexternallyhosted, + options?: MethodOptions): AxiosPromise; addexternallyhosted( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Apks$Addexternallyhosted, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + addexternallyhosted( + params: Params$Resource$Edits$Apks$Addexternallyhosted, + callback: BodyResponseCallback): + void; + addexternallyhosted( + callback: BodyResponseCallback): + void; addexternallyhosted( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Edits$Apks$Addexternallyhosted| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Edits$Apks$Addexternallyhosted; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apks$Addexternallyhosted; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1628,26 +2047,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Edits$Apks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Apks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Apks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Edits$Apks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Apks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1687,23 +2117,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - upload(params?: any, options?: MethodOptions): AxiosPromise; + upload(params?: Params$Resource$Edits$Apks$Upload, options?: MethodOptions): + AxiosPromise; + upload( + params: Params$Resource$Edits$Apks$Upload, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; upload( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Apks$Upload, + callback: BodyResponseCallback): void; + upload(callback: BodyResponseCallback): void; upload( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Apks$Upload| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Apks$Upload; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Apks$Upload; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1732,6 +2176,74 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Apks$Addexternallyhosted { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$ApksAddExternallyHostedRequest; + } + export interface Params$Resource$Edits$Apks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Apks$Upload { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Edits$Deobfuscationfiles { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -1763,31 +2275,48 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - upload(params?: any, options?: MethodOptions): + upload( + params?: Params$Resource$Edits$Deobfuscationfiles$Upload, + options?: MethodOptions): AxiosPromise; upload( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Deobfuscationfiles$Upload, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + upload( + params: Params$Resource$Edits$Deobfuscationfiles$Upload, + callback: BodyResponseCallback): void; + upload(callback: + BodyResponseCallback): + void; upload( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Edits$Deobfuscationfiles$Upload| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Edits$Deobfuscationfiles$Upload; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Deobfuscationfiles$Upload; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1822,10 +2351,50 @@ export namespace androidpublisher_v2 { } } - export class Resource$Edits$Details { - root: Androidpublisher; - constructor(root: Androidpublisher) { - this.root = root; + export interface Params$Resource$Edits$Deobfuscationfiles$Upload { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version code of the APK whose deobfuscation file is being uploaded. + */ + apkVersionCode?: number; + /** + * + */ + deobfuscationFileType?: string; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier of the Android app for which the deobfuscatiuon files + * are being uploaded; for example, "com.spiffygame". + */ + packageName?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + + export class Resource$Edits$Details { + root: Androidpublisher; + constructor(root: Androidpublisher) { + this.root = root; this.getRoot.bind(this); } @@ -1848,23 +2417,35 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Edits$Details$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Edits$Details$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Details$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Details$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Details$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Details$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1904,26 +2485,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Details$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Edits$Details$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Edits$Details$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Details$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Details$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Details$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1962,26 +2556,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Details$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Details$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Edits$Details$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Edits$Details$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Details$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Details$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2006,6 +2613,64 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Details$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Details$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$AppDetails; + } + export interface Params$Resource$Edits$Details$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$AppDetails; + } + + export class Resource$Edits$Expansionfiles { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -2033,24 +2698,35 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Edits$Expansionfiles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Edits$Expansionfiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Expansionfiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Expansionfiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Expansionfiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Expansionfiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2095,26 +2771,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Expansionfiles$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Edits$Expansionfiles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Expansionfiles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Edits$Expansionfiles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Edits$Expansionfiles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Expansionfiles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2158,26 +2847,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Expansionfiles$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Edits$Expansionfiles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Edits$Expansionfiles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Expansionfiles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Edits$Expansionfiles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Expansionfiles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2222,29 +2924,44 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - upload(params?: any, options?: MethodOptions): + upload( + params?: Params$Resource$Edits$Expansionfiles$Upload, + options?: MethodOptions): AxiosPromise; upload( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Expansionfiles$Upload, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; upload( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Expansionfiles$Upload, + callback: BodyResponseCallback): + void; + upload(callback: BodyResponseCallback): + void; + upload( + paramsOrCallback?: Params$Resource$Edits$Expansionfiles$Upload| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Edits$Expansionfiles$Upload; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Expansionfiles$Upload; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2277,6 +2994,130 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Expansionfiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version code of the APK whose Expansion File configuration is being + * read or modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + expansionFileType?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Expansionfiles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version code of the APK whose Expansion File configuration is being + * read or modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + expansionFileType?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$ExpansionFile; + } + export interface Params$Resource$Edits$Expansionfiles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version code of the APK whose Expansion File configuration is being + * read or modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + expansionFileType?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$ExpansionFile; + } + export interface Params$Resource$Edits$Expansionfiles$Upload { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version code of the APK whose Expansion File configuration is being + * read or modified. + */ + apkVersionCode?: number; + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + expansionFileType?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Edits$Images { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -2305,22 +3146,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Images$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Edits$Images$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Images$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Edits$Images$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Images$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Images$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2362,28 +3218,41 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteall(params?: any, options?: MethodOptions): - AxiosPromise; deleteall( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Edits$Images$Deleteall, + options?: MethodOptions): AxiosPromise; + deleteall( + params: Params$Resource$Edits$Images$Deleteall, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; deleteall( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Images$Deleteall, + callback: BodyResponseCallback): void; + deleteall(callback: BodyResponseCallback): + void; + deleteall( + paramsOrCallback?: Params$Resource$Edits$Images$Deleteall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Images$Deleteall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Images$Deleteall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2423,26 +3292,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Edits$Images$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Images$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Edits$Images$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Images$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Images$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Images$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2486,28 +3367,40 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - upload(params?: any, options?: MethodOptions): - AxiosPromise; upload( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Edits$Images$Upload, + options?: MethodOptions): AxiosPromise; + upload( + params: Params$Resource$Edits$Images$Upload, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + upload( + params: Params$Resource$Edits$Images$Upload, + callback: BodyResponseCallback): void; + upload(callback: BodyResponseCallback): void; upload( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Edits$Images$Upload| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Images$Upload; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Images$Upload; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2536,6 +3429,131 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Images$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier an image within the set of images attached to this + * edit. + */ + imageId?: string; + /** + * + */ + imageType?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing whose + * images are to read or modified. For example, to select Austrian German, + * pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Images$Deleteall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + imageType?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing whose + * images are to read or modified. For example, to select Austrian German, + * pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Images$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + imageType?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing whose + * images are to read or modified. For example, to select Austrian German, + * pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Images$Upload { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * + */ + imageType?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing whose + * images are to read or modified. For example, to select Austrian German, + * pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Edits$Listings { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -2562,22 +3580,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Listings$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Edits$Listings$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Edits$Listings$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Listings$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Listings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Listings$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2615,22 +3648,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteall(params?: any, options?: MethodOptions): AxiosPromise; deleteall( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Listings$Deleteall, + options?: MethodOptions): AxiosPromise; deleteall( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Listings$Deleteall, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteall( + params: Params$Resource$Edits$Listings$Deleteall, + callback: BodyResponseCallback): void; + deleteall(callback: BodyResponseCallback): void; + deleteall( + paramsOrCallback?: Params$Resource$Edits$Listings$Deleteall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Listings$Deleteall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Listings$Deleteall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2669,23 +3717,34 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Edits$Listings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Edits$Listings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Listings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Listings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Listings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Listings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2723,28 +3782,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Edits$Listings$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Listings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Edits$Listings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Edits$Listings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Listings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Listings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2785,25 +3855,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Listings$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Edits$Listings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Edits$Listings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Listings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Listings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Listings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2843,25 +3926,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Listings$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Listings$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Edits$Listings$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Edits$Listings$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Listings$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Listings$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2886,6 +3982,132 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Listings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing to + * read or modify. For example, to select Austrian German, pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Listings$Deleteall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Listings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing to + * read or modify. For example, to select Austrian German, pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Listings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Listings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing to + * read or modify. For example, to select Austrian German, pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$Listing; + } + export interface Params$Resource$Edits$Listings$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * The language code (a BCP-47 language tag) of the localized listing to + * read or modify. For example, to select Austrian German, pass "de-AT". + */ + language?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$Listing; + } + + export class Resource$Edits$Testers { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -2911,23 +4133,34 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Edits$Testers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Edits$Testers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Testers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Testers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Testers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Testers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2966,25 +4199,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Testers$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Testers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Edits$Testers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Edits$Testers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Testers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Testers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3023,25 +4269,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Testers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Edits$Testers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Edits$Testers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Testers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Testers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Testers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3066,6 +4325,79 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Testers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * The track to read or modify. Acceptable values are: "alpha", "beta", + * "production", "rollout" or "internal". + */ + track?: string; + } + export interface Params$Resource$Edits$Testers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * The track to read or modify. Acceptable values are: "alpha", "beta", + * "production", "rollout" or "internal". + */ + track?: string; + /** + * Request body metadata + */ + resource?: Schema$Testers; + } + export interface Params$Resource$Edits$Testers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * The track to read or modify. Acceptable values are: "alpha", "beta", + * "production", "rollout" or "internal". + */ + track?: string; + /** + * Request body metadata + */ + resource?: Schema$Testers; + } + + export class Resource$Edits$Tracks { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -3088,28 +4420,38 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {string} params.track The track to read or modify. Acceptable values are: "alpha", "beta", "production", "rollout" or "internal". + * @param {string} params.track The track to read or modify. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Edits$Tracks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Edits$Tracks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Edits$Tracks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Edits$Tracks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Edits$Tracks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Tracks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3147,26 +4489,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Edits$Tracks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Tracks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Tracks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Edits$Tracks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Tracks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Tracks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3203,31 +4557,43 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {string} params.track The track to read or modify. Acceptable values are: "alpha", "beta", "production", "rollout" or "internal". + * @param {string} params.track The track to read or modify. * @param {().Track} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Edits$Tracks$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Edits$Tracks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Edits$Tracks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Edits$Tracks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Tracks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Tracks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3263,31 +4629,44 @@ export namespace androidpublisher_v2 { * @param {object} params Parameters for request * @param {string} params.editId Unique identifier for this edit. * @param {string} params.packageName Unique identifier for the Android app that is being updated; for example, "com.spiffygame". - * @param {string} params.track The track to read or modify. Acceptable values are: "alpha", "beta", "production", "rollout" or "internal". + * @param {string} params.track The track to read or modify. * @param {().Track} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Edits$Tracks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Edits$Tracks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Edits$Tracks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Edits$Tracks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Edits$Tracks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Edits$Tracks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3312,6 +4691,92 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Edits$Tracks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * The track to read or modify. + */ + track?: string; + } + export interface Params$Resource$Edits$Tracks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + } + export interface Params$Resource$Edits$Tracks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * The track to read or modify. + */ + track?: string; + /** + * Request body metadata + */ + resource?: Schema$Track; + } + export interface Params$Resource$Edits$Tracks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for this edit. + */ + editId?: string; + /** + * Unique identifier for the Android app that is being updated; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * The track to read or modify. + */ + track?: string; + /** + * Request body metadata + */ + resource?: Schema$Track; + } + + export class Resource$Inappproducts { root: Androidpublisher; @@ -3338,22 +4803,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Inappproducts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Inappproducts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Inappproducts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Inappproducts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inappproducts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inappproducts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3391,24 +4871,35 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Inappproducts$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Inappproducts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Inappproducts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Inappproducts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inappproducts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inappproducts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3447,26 +4938,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Inappproducts$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Inappproducts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Inappproducts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Inappproducts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inappproducts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inappproducts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3507,29 +5011,40 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Inappproducts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inappproducts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Inappproducts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Inappproducts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inappproducts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inappproducts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3571,26 +5086,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Inappproducts$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Inappproducts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Inappproducts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Inappproducts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inappproducts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inappproducts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3630,26 +5158,39 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Inappproducts$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Inappproducts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Inappproducts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Inappproducts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inappproducts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inappproducts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3674,6 +5215,136 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Inappproducts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for the Android app with the in-app product; for + * example, "com.spiffygame". + */ + packageName?: string; + /** + * Unique identifier for the in-app product. + */ + sku?: string; + } + export interface Params$Resource$Inappproducts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + packageName?: string; + /** + * Unique identifier for the in-app product. + */ + sku?: string; + } + export interface Params$Resource$Inappproducts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If true the prices for all regions targeted by the parent app that don't + * have a price specified for this in-app product will be auto converted to + * the target currency based on the default price. Defaults to false. + */ + autoConvertMissingPrices?: boolean; + /** + * Unique identifier for the Android app; for example, "com.spiffygame". + */ + packageName?: string; + /** + * Request body metadata + */ + resource?: Schema$InAppProduct; + } + export interface Params$Resource$Inappproducts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + maxResults?: number; + /** + * Unique identifier for the Android app with in-app products; for example, + * "com.spiffygame". + */ + packageName?: string; + /** + * + */ + startIndex?: number; + /** + * + */ + token?: string; + } + export interface Params$Resource$Inappproducts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If true the prices for all regions targeted by the parent app that don't + * have a price specified for this in-app product will be auto converted to + * the target currency based on the default price. Defaults to false. + */ + autoConvertMissingPrices?: boolean; + /** + * Unique identifier for the Android app with the in-app product; for + * example, "com.spiffygame". + */ + packageName?: string; + /** + * Unique identifier for the in-app product. + */ + sku?: string; + /** + * Request body metadata + */ + resource?: Schema$InAppProduct; + } + export interface Params$Resource$Inappproducts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If true the prices for all regions targeted by the parent app that don't + * have a price specified for this in-app product will be auto converted to + * the target currency based on the default price. Defaults to false. + */ + autoConvertMissingPrices?: boolean; + /** + * Unique identifier for the Android app with the in-app product; for + * example, "com.spiffygame". + */ + packageName?: string; + /** + * Unique identifier for the in-app product. + */ + sku?: string; + /** + * Request body metadata + */ + resource?: Schema$InAppProduct; + } + + export class Resource$Purchases { root: Androidpublisher; products: Resource$Purchases$Products; @@ -3691,6 +5362,8 @@ export namespace androidpublisher_v2 { return this.root; } } + + export class Resource$Purchases$Products { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -3717,24 +5390,35 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Purchases$Products$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Purchases$Products$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Purchases$Products$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Purchases$Products$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Purchases$Products$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Products$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3759,6 +5443,29 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Purchases$Products$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application the inapp product was sold in (for + * example, 'com.some.thing'). + */ + packageName?: string; + /** + * The inapp product SKU (for example, 'com.some.thing.inapp1'). + */ + productId?: string; + /** + * The token provided to the user's device when the inapp product was + * purchased. + */ + token?: string; + } + + export class Resource$Purchases$Subscriptions { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -3786,22 +5493,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Purchases$Subscriptions$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Purchases$Subscriptions$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Purchases$Subscriptions$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Purchases$Subscriptions$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Purchases$Subscriptions$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Subscriptions$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3842,31 +5564,48 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - defer(params?: any, options?: MethodOptions): + defer( + params?: Params$Resource$Purchases$Subscriptions$Defer, + options?: MethodOptions): AxiosPromise; defer( - params?: any, - options?: MethodOptions| + params: Params$Resource$Purchases$Subscriptions$Defer, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + defer( + params: Params$Resource$Purchases$Subscriptions$Defer, + callback: BodyResponseCallback): void; + defer(callback: + BodyResponseCallback): + void; defer( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Purchases$Subscriptions$Defer| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Purchases$Subscriptions$Defer; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Subscriptions$Defer; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3908,26 +5647,36 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Purchases$Subscriptions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Purchases$Subscriptions$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Purchases$Subscriptions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Purchases$Subscriptions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Purchases$Subscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Subscriptions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3967,22 +5716,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - refund(params?: any, options?: MethodOptions): AxiosPromise; refund( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Purchases$Subscriptions$Refund, + options?: MethodOptions): AxiosPromise; + refund( + params: Params$Resource$Purchases$Subscriptions$Refund, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; refund( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Purchases$Subscriptions$Refund, + callback: BodyResponseCallback): void; + refund(callback: BodyResponseCallback): void; + refund( + paramsOrCallback?: Params$Resource$Purchases$Subscriptions$Refund| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Purchases$Subscriptions$Refund; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Subscriptions$Refund; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4023,22 +5787,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revoke(params?: any, options?: MethodOptions): AxiosPromise; revoke( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Purchases$Subscriptions$Revoke, + options?: MethodOptions): AxiosPromise; + revoke( + params: Params$Resource$Purchases$Subscriptions$Revoke, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; revoke( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Purchases$Subscriptions$Revoke, + callback: BodyResponseCallback): void; + revoke(callback: BodyResponseCallback): void; + revoke( + paramsOrCallback?: Params$Resource$Purchases$Subscriptions$Revoke| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Purchases$Subscriptions$Revoke; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Subscriptions$Revoke; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4063,6 +5842,117 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Purchases$Subscriptions$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } + export interface Params$Resource$Purchases$Subscriptions$Defer { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + /** + * Request body metadata + */ + resource?: Schema$SubscriptionPurchasesDeferRequest; + } + export interface Params$Resource$Purchases$Subscriptions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } + export interface Params$Resource$Purchases$Subscriptions$Refund { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } + export interface Params$Resource$Purchases$Subscriptions$Revoke { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The package name of the application for which this subscription was + * purchased (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * The purchased subscription ID (for example, 'monthly001'). + */ + subscriptionId?: string; + /** + * The token provided to the user's device when the subscription was + * purchased. + */ + token?: string; + } + + export class Resource$Purchases$Voidedpurchases { root: Androidpublisher; constructor(root: Androidpublisher) { @@ -4092,29 +5982,44 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Purchases$Voidedpurchases$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Purchases$Voidedpurchases$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Purchases$Voidedpurchases$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Purchases$Voidedpurchases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Purchases$Voidedpurchases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Purchases$Voidedpurchases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4140,6 +6045,50 @@ export namespace androidpublisher_v2 { } } + export interface Params$Resource$Purchases$Voidedpurchases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The time, in milliseconds since the Epoch, of the newest voided in-app + * product purchase that you want to see in the response. The value of this + * parameter cannot be greater than the current time and is ignored if a + * pagination token is set. Default value is current time. Note: This filter + * is applied on the time at which the record is seen as voided by our + * systems and not the actual voided time returned in the response. + */ + endTime?: string; + /** + * + */ + maxResults?: number; + /** + * The package name of the application for which voided purchases need to be + * returned (for example, 'com.some.thing'). + */ + packageName?: string; + /** + * + */ + startIndex?: number; + /** + * The time, in milliseconds since the Epoch, of the oldest voided in-app + * product purchase that you want to see in the response. The value of this + * parameter cannot be older than 30 days and is ignored if a pagination + * token is set. Default value is current time minus 30 days. Note: This + * filter is applied on the time at which the record is seen as voided by + * our systems and not the actual voided time returned in the response. + */ + startTime?: string; + /** + * + */ + token?: string; + } + + export class Resource$Reviews { root: Androidpublisher; @@ -4167,23 +6116,33 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Reviews$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Reviews$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Reviews$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Reviews$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reviews$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reviews$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4225,28 +6184,37 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reviews$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reviews$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Reviews$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Reviews$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reviews$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reviews$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4284,28 +6252,38 @@ export namespace androidpublisher_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reply(params?: any, options?: MethodOptions): + reply(params?: Params$Resource$Reviews$Reply, options?: MethodOptions): AxiosPromise; reply( - params?: any, - options?: MethodOptions| + params: Params$Resource$Reviews$Reply, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + reply( + params: Params$Resource$Reviews$Reply, + callback: BodyResponseCallback): void; + reply(callback: BodyResponseCallback): void; reply( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Reviews$Reply| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reviews$Reply; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reviews$Reply; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4329,4 +6307,73 @@ export namespace androidpublisher_v2 { } } } + + export interface Params$Resource$Reviews$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for the Android app for which we want reviews; for + * example, "com.spiffygame". + */ + packageName?: string; + /** + * + */ + reviewId?: string; + /** + * + */ + translationLanguage?: string; + } + export interface Params$Resource$Reviews$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + maxResults?: number; + /** + * Unique identifier for the Android app for which we want reviews; for + * example, "com.spiffygame". + */ + packageName?: string; + /** + * + */ + startIndex?: number; + /** + * + */ + token?: string; + /** + * + */ + translationLanguage?: string; + } + export interface Params$Resource$Reviews$Reply { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Unique identifier for the Android app for which we want reviews; for + * example, "com.spiffygame". + */ + packageName?: string; + /** + * + */ + reviewId?: string; + /** + * Request body metadata + */ + resource?: Schema$ReviewsReplyRequest; + } } diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index cc56f5e53c3..db3baa4206b 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appengine_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * App Engine Admin API * @@ -76,23 +79,23 @@ export namespace appengine_v1 { * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. Defaults to optional. */ - login: string; + login?: string; /** * Path to the script from the application root directory. */ - script: string; + script?: string; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * URL to serve the endpoint at. */ - url: string; + url?: string; } /** * Uses Google Cloud Endpoints to handle requests. @@ -101,7 +104,7 @@ export namespace appengine_v1 { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * An Application resource contains the top-level configuration of an App @@ -112,49 +115,49 @@ export namespace appengine_v1 { * Google Apps authentication domain that controls which users can access * this application.Defaults to open access for any Google Account. */ - authDomain: string; + authDomain?: string; /** * Google Cloud Storage bucket that can be used for storing files associated * with this application. This bucket is associated with the application and * can be used by the gcloud deployment commands.@OutputOnly */ - codeBucket: string; + codeBucket?: string; /** * Google Cloud Storage bucket that can be used by this application to store * content.@OutputOnly */ - defaultBucket: string; + defaultBucket?: string; /** * Cookie expiration policy for this application. */ - defaultCookieExpiration: string; + defaultCookieExpiration?: string; /** * Hostname used to reach this application, as resolved by App * Engine.@OutputOnly */ - defaultHostname: string; + defaultHostname?: string; /** * HTTP path dispatch rules for requests to the application that do not * explicitly target a service or version. Rules are order-dependent. Up to * 20 dispatch rules can be supported.@OutputOnly */ - dispatchRules: Schema$UrlDispatchRule[]; + dispatchRules?: Schema$UrlDispatchRule[]; /** * The feature specific settings to be used in the application. */ - featureSettings: Schema$FeatureSettings; + featureSettings?: Schema$FeatureSettings; /** * The Google Container Registry domain used for storing managed build * docker images for this application. */ - gcrDomain: string; - iap: Schema$IdentityAwareProxy; + gcrDomain?: string; + iap?: Schema$IdentityAwareProxy; /** * Identifier of the Application resource. This identifier is equivalent to * the project ID of the Google Cloud Platform project where you want to * deploy your application. Example: myapp. */ - id: string; + id?: string; /** * Location from which this application runs. Application instances run out * of the data centers in the specified location, which is also where all of @@ -162,16 +165,16 @@ export namespace appengine_v1 { * us-central.View the list of supported locations * (https://cloud.google.com/appengine/docs/locations). */ - locationId: string; + locationId?: string; /** * Full path to the Application resource in the API. Example: * apps/myapp.@OutputOnly */ - name: string; + name?: string; /** * Serving status of this application. */ - servingStatus: string; + servingStatus?: string; } /** * An SSL certificate that a user has been authorized to administer. A user is @@ -183,40 +186,40 @@ export namespace appengine_v1 { * The SSL certificate serving the AuthorizedCertificate resource. This must * be obtained independently from a certificate authority. */ - certificateRawData: Schema$CertificateRawData; + certificateRawData?: Schema$CertificateRawData; /** * The user-specified display name of the certificate. This is not * guaranteed to be unique. Example: My Certificate. */ - displayName: string; + displayName?: string; /** * Aggregate count of the domain mappings with this certificate mapped. This * count includes domain mappings on applications for which the user does * not have VIEWER permissions.Only returned by GET or LIST requests when * specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly */ - domainMappingsCount: number; + domainMappingsCount?: number; /** * Topmost applicable domains of this certificate. This certificate applies * to these domains and their subdomains. Example: example.com.@OutputOnly */ - domainNames: string[]; + domainNames?: string[]; /** * The time when this certificate expires. To update the renewal time on * this certificate, upload an SSL certificate with a different expiration * time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly */ - expireTime: string; + expireTime?: string; /** * Relative name of the certificate. This is a unique value autogenerated on * AuthorizedCertificate resource creation. Example: 12345.@OutputOnly */ - id: string; + id?: string; /** * Full path to the AuthorizedCertificate resource in the API. Example: * apps/myapp/authorizedCertificates/12345.@OutputOnly */ - name: string; + name?: string; /** * The full paths to user visible Domain Mapping resources that have this * certificate mapped. Example: apps/myapp/domainMappings/example.com.This @@ -226,7 +229,7 @@ export namespace appengine_v1 { * count.Only returned by GET or LIST requests when specifically requested * by the view=FULL_CERTIFICATE option.@OutputOnly */ - visibleDomainMappings: string[]; + visibleDomainMappings?: string[]; } /** * A domain that a user has been authorized to administer. To authorize use of @@ -238,12 +241,12 @@ export namespace appengine_v1 { * Fully qualified domain name of the domain authorized for use. Example: * example.com. */ - id: string; + id?: string; /** * Full path to the AuthorizedDomain resource in the API. Example: * apps/myapp/authorizedDomains/example.com.@OutputOnly */ - name: string; + name?: string; } /** * Automatic scaling is based on request rate, response latencies, and other @@ -256,63 +259,63 @@ export namespace appengine_v1 { * changes to the number of virtual machines. Only applicable in the App * Engine flexible environment. */ - coolDownPeriod: string; + coolDownPeriod?: string; /** * Target scaling by CPU usage. */ - cpuUtilization: Schema$CpuUtilization; + cpuUtilization?: Schema$CpuUtilization; /** * Target scaling by disk usage. */ - diskUtilization: Schema$DiskUtilization; + diskUtilization?: Schema$DiskUtilization; /** * Number of concurrent requests an automatic scaling instance can accept * before the scheduler spawns a new instance.Defaults to a runtime-specific * value. */ - maxConcurrentRequests: number; + maxConcurrentRequests?: number; /** * Maximum number of idle instances that should be maintained for this * version. */ - maxIdleInstances: number; + maxIdleInstances?: number; /** * Maximum amount of time that a request should wait in the pending queue * before starting a new instance to handle it. */ - maxPendingLatency: string; + maxPendingLatency?: string; /** * Maximum number of instances that should be started to handle requests for * this version. */ - maxTotalInstances: number; + maxTotalInstances?: number; /** * Minimum number of idle instances that should be maintained for this * version. Only applicable for the default version of a service. */ - minIdleInstances: number; + minIdleInstances?: number; /** * Minimum amount of time a request should wait in the pending queue before * starting a new instance to handle it. */ - minPendingLatency: string; + minPendingLatency?: string; /** * Minimum number of running instances that should be maintained for this * version. */ - minTotalInstances: number; + minTotalInstances?: number; /** * Target scaling by network usage. */ - networkUtilization: Schema$NetworkUtilization; + networkUtilization?: Schema$NetworkUtilization; /** * Target scaling by request utilization. */ - requestUtilization: Schema$RequestUtilization; + requestUtilization?: Schema$RequestUtilization; /** * Scheduler settings for standard environment. */ - standardSchedulerSettings: Schema$StandardSchedulerSettings; + standardSchedulerSettings?: Schema$StandardSchedulerSettings; } /** * A service with basic scaling will create an instance when the application @@ -325,11 +328,11 @@ export namespace appengine_v1 { * Duration of time after the last request that an instance must wait before * the instance is shut down. */ - idleTimeout: string; + idleTimeout?: string; /** * Maximum number of instances to create for this version. */ - maxInstances: number; + maxInstances?: number; } /** * Request message for Firewall.BatchUpdateIngressRules. @@ -338,7 +341,7 @@ export namespace appengine_v1 { /** * A list of FirewallRules to replace the existing set. */ - ingressRules: Schema$FirewallRule[]; + ingressRules?: Schema$FirewallRule[]; } /** * Response message for Firewall.UpdateAllIngressRules. @@ -347,7 +350,7 @@ export namespace appengine_v1 { /** * The full list of ingress FirewallRules for this application. */ - ingressRules: Schema$FirewallRule[]; + ingressRules?: Schema$FirewallRule[]; } /** * An SSL certificate obtained from a certificate authority. @@ -360,14 +363,14 @@ export namespace appengine_v1 { * -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END * RSA PRIVATE KEY----- </pre> @InputOnly */ - privateKey: string; + privateKey?: string; /** * PEM encoded x.509 public key certificate. This field is set once on * certificate creation. Must include the header and footer. Example: * <pre> -----BEGIN CERTIFICATE----- <certificate_value> * -----END CERTIFICATE----- </pre> */ - publicCertificate: string; + publicCertificate?: string; } /** * Options for the build operations performed as a part of the version @@ -381,12 +384,12 @@ export namespace appengine_v1 { * https://cloud.google.com/appengine/docs/standard/python/config/appref for * more details. */ - appYamlPath: string; + appYamlPath?: string; /** * The Cloud Build timeout used as part of any dependent builds performed by * version creation. Defaults to 10 minutes. */ - cloudBuildTimeout: string; + cloudBuildTimeout?: string; } /** * Docker image that is used to create a container and start a VM instance for @@ -400,7 +403,7 @@ export namespace appengine_v1 { * "gcr.io/my-project/image:tag" or * "gcr.io/my-project/image@digest" */ - image: string; + image?: string; } /** * Target scaling by CPU usage. @@ -409,12 +412,12 @@ export namespace appengine_v1 { /** * Period of time over which CPU utilization is calculated. */ - aggregationWindowLength: string; + aggregationWindowLength?: string; /** * Target CPU utilization ratio to maintain when scaling. Must be between 0 * and 1. */ - targetUtilization: number; + targetUtilization?: number; } /** * Metadata for the given google.longrunning.Operation during a @@ -425,7 +428,7 @@ export namespace appengine_v1 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -436,7 +439,7 @@ export namespace appengine_v1 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -447,7 +450,7 @@ export namespace appengine_v1 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Request message for Instances.DebugInstance. @@ -460,7 +463,7 @@ export namespace appengine_v1 { * more information, see Adding and Removing SSH Keys * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). */ - sshKey: string; + sshKey?: string; } /** * Code and application artifacts used to deploy a version to App Engine. @@ -473,22 +476,22 @@ export namespace appengine_v1 { * options will only be used if a new build is created, such as when * deploying to the App Engine flexible environment using files or zip. */ - cloudBuildOptions: Schema$CloudBuildOptions; + cloudBuildOptions?: Schema$CloudBuildOptions; /** * The Docker image for the container that runs the version. Only applicable * for instances running in the App Engine flexible environment. */ - container: Schema$ContainerInfo; + container?: Schema$ContainerInfo; /** * Manifest of the files stored in Google Cloud Storage that are included as * part of this version. All files must be readable using the credentials * supplied with this call. */ - files: any; + files?: any; /** * The zip file for this deployment, if this is a zip deployment. */ - zip: Schema$ZipInfo; + zip?: Schema$ZipInfo; } /** * Target scaling by disk usage. Only applicable in the App Engine flexible @@ -498,19 +501,19 @@ export namespace appengine_v1 { /** * Target bytes read per second. */ - targetReadBytesPerSecond: number; + targetReadBytesPerSecond?: number; /** * Target ops read per seconds. */ - targetReadOpsPerSecond: number; + targetReadOpsPerSecond?: number; /** * Target bytes written per second. */ - targetWriteBytesPerSecond: number; + targetWriteBytesPerSecond?: number; /** * Target ops written per second. */ - targetWriteOpsPerSecond: number; + targetWriteOpsPerSecond?: number; } /** * A domain serving an App Engine application. @@ -520,23 +523,23 @@ export namespace appengine_v1 { * Relative name of the domain serving the application. Example: * example.com. */ - id: string; + id?: string; /** * Full path to the DomainMapping resource in the API. Example: * apps/myapp/domainMapping/example.com.@OutputOnly */ - name: string; + name?: string; /** * The resource records required to configure this domain mapping. These * records must be added to the domain's DNS configuration in order to * serve the application via this domain mapping.@OutputOnly */ - resourceRecords: Schema$ResourceRecord[]; + resourceRecords?: Schema$ResourceRecord[]; /** * SSL configuration for this domain. If unconfigured, this domain will not * serve with SSL. */ - sslSettings: Schema$SslSettings; + sslSettings?: Schema$SslSettings; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -559,13 +562,13 @@ export namespace appengine_v1 { * Endpoints service configuration id as specified by the Service Management * API. For example "2016-09-19r1" */ - configId: string; + configId?: string; /** * Endpoints service name which is the name of the "service" * resource in the Service Management API. For example * "myapi.endpoints.myproject.cloud.goog" */ - name: string; + name?: string; } /** * Custom static error page to be served when an error occurs. @@ -574,15 +577,15 @@ export namespace appengine_v1 { /** * Error condition this handler applies to. */ - errorCode: string; + errorCode?: string; /** * MIME type of file. Defaults to text/html. */ - mimeType: string; + mimeType?: string; /** * Static file content to be served for this error. */ - staticFile: string; + staticFile?: string; } /** * The feature specific settings to be used in the application. These define @@ -597,7 +600,7 @@ export namespace appengine_v1 { * behavior is deprecated, and this value is always true, this setting can * be removed. */ - splitHealthChecks: boolean; + splitHealthChecks?: boolean; } /** * Single source file that is part of the version to be deployed. Each source @@ -608,17 +611,17 @@ export namespace appengine_v1 { * The MIME type of the file.Defaults to the value from Google Cloud * Storage. */ - mimeType: string; + mimeType?: string; /** * The SHA1 hash of the file, in hex. */ - sha1Sum: string; + sha1Sum?: string; /** * URL source to use to fetch this file. Must be a URL to a resource in * Google Cloud Storage in the form * 'http(s)://storage.googleapis.com/<bucket>/<object>'. */ - sourceUrl: string; + sourceUrl?: string; } /** * A single firewall rule that is evaluated against incoming traffic and @@ -628,12 +631,12 @@ export namespace appengine_v1 { /** * The action to take on matched requests. */ - action: string; + action?: string; /** * An optional string description of this rule. This field has a maximum * length of 100 characters. */ - description: string; + description?: string; /** * A positive integer between 1, Int32.MaxValue-1 that defines the order of * rule evaluation. Rules with the lowest priority are evaluated first.A @@ -641,7 +644,7 @@ export namespace appengine_v1 { * when no previous rule matches. Only the action of this rule can be * modified by the user. */ - priority: number; + priority?: number; /** * IP address or range, defined using CIDR notation, of requests that this * rule applies to. You can use the wildcard character "*" to @@ -653,7 +656,7 @@ export namespace appengine_v1 { * Similarly, for IPv6, 2001:db8::1/32 is accepted as the same address as * 2001:db8::/32. */ - sourceRange: string; + sourceRange?: string; } /** * Health checking configuration for VM instances. Unhealthy instances are @@ -664,35 +667,35 @@ export namespace appengine_v1 { /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Whether to explicitly disable health checks for this instance. */ - disableHealthCheck: boolean; + disableHealthCheck?: boolean; /** * Number of consecutive successful health checks required before receiving * traffic. */ - healthyThreshold: number; + healthyThreshold?: number; /** * Host header to send when performing an HTTP health check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * Number of consecutive failed health checks required before an instance is * restarted. */ - restartThreshold: number; + restartThreshold?: number; /** * Time before the health check is considered failed. */ - timeout: string; + timeout?: string; /** * Number of consecutive failed health checks required before removing * traffic. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Identity-Aware Proxy @@ -703,22 +706,22 @@ export namespace appengine_v1 { * incoming requests.If true, the oauth2_client_id and oauth2_client_secret * fields must be non-empty. */ - enabled: boolean; + enabled?: boolean; /** * OAuth2 client ID to use for the authentication flow. */ - oauth2ClientId: string; + oauth2ClientId?: string; /** * OAuth2 client secret to use for the authentication flow.For security * reasons, this value cannot be retrieved via the API. Instead, the SHA-256 * hash of the value is returned in the oauth2_client_secret_sha256 * field.@InputOnly */ - oauth2ClientSecret: string; + oauth2ClientSecret?: string; /** * Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * An Instance resource is the computing unit that App Engine uses to @@ -728,75 +731,75 @@ export namespace appengine_v1 { /** * App Engine release this instance is running on.@OutputOnly */ - appEngineRelease: string; + appEngineRelease?: string; /** * Availability of the instance.@OutputOnly */ - availability: string; + availability?: string; /** * Average latency (ms) over the last minute.@OutputOnly */ - averageLatency: number; + averageLatency?: number; /** * Number of errors since this instance was started.@OutputOnly */ - errors: number; + errors?: number; /** * Relative name of the instance within the version. Example: * instance-1.@OutputOnly */ - id: string; + id?: string; /** * Total memory in use (bytes).@OutputOnly */ - memoryUsage: string; + memoryUsage?: string; /** * Full path to the Instance resource in the API. Example: * apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly */ - name: string; + name?: string; /** * Average queries per second (QPS) over the last minute.@OutputOnly */ - qps: number; + qps?: number; /** * Number of requests since this instance was started.@OutputOnly */ - requests: number; + requests?: number; /** * Time that this instance was started.@OutputOnly */ - startTime: string; + startTime?: string; /** * Whether this instance is in debug mode. Only applicable for instances in * App Engine flexible environment.@OutputOnly */ - vmDebugEnabled: boolean; + vmDebugEnabled?: boolean; /** * Virtual machine ID of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmId: string; + vmId?: string; /** * The IP address of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmIp: string; + vmIp?: string; /** * Name of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmName: string; + vmName?: string; /** * Status of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmStatus: string; + vmStatus?: string; /** * Zone where the virtual machine is located. Only applicable for instances * in App Engine flexible environment.@OutputOnly */ - vmZoneName: string; + vmZoneName?: string; } /** * Third-party Python runtime library that is required by the application. @@ -805,11 +808,11 @@ export namespace appengine_v1 { /** * Name of the library. Example: "django". */ - name: string; + name?: string; /** * Version of the library to select, or "latest". */ - version: string; + version?: string; } /** * Response message for AuthorizedCertificates.ListAuthorizedCertificates. @@ -818,11 +821,11 @@ export namespace appengine_v1 { /** * The SSL certificates the user is authorized to administer. */ - certificates: Schema$AuthorizedCertificate[]; + certificates?: Schema$AuthorizedCertificate[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for AuthorizedDomains.ListAuthorizedDomains. @@ -831,11 +834,11 @@ export namespace appengine_v1 { /** * The authorized domains belonging to the user. */ - domains: Schema$AuthorizedDomain[]; + domains?: Schema$AuthorizedDomain[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for DomainMappings.ListDomainMappings. @@ -844,11 +847,11 @@ export namespace appengine_v1 { /** * The domain mappings for the application. */ - domainMappings: Schema$DomainMapping[]; + domainMappings?: Schema$DomainMapping[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for Firewall.ListIngressRules. @@ -857,11 +860,11 @@ export namespace appengine_v1 { /** * The ingress FirewallRules for this application. */ - ingressRules: Schema$FirewallRule[]; + ingressRules?: Schema$FirewallRule[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for Instances.ListInstances. @@ -870,11 +873,11 @@ export namespace appengine_v1 { /** * The instances belonging to the requested version. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -883,11 +886,11 @@ export namespace appengine_v1 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -896,11 +899,11 @@ export namespace appengine_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response message for Services.ListServices. @@ -909,11 +912,11 @@ export namespace appengine_v1 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The services belonging to the requested application. */ - services: Schema$Service[]; + services?: Schema$Service[]; } /** * Response message for Versions.ListVersions. @@ -922,11 +925,11 @@ export namespace appengine_v1 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The versions belonging to the requested service. */ - versions: Schema$Version[]; + versions?: Schema$Version[]; } /** * Health checking configuration for VM instances. Unhealthy instances are @@ -936,34 +939,34 @@ export namespace appengine_v1 { /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Number of consecutive failed checks required before considering the VM * unhealthy. */ - failureThreshold: number; + failureThreshold?: number; /** * Host header to send when performing a HTTP Liveness check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * The initial delay before starting to execute the checks. */ - initialDelay: string; + initialDelay?: string; /** * The request path. */ - path: string; + path?: string; /** * Number of consecutive successful checks required before considering the * VM healthy. */ - successThreshold: number; + successThreshold?: number; /** * Time before the check is considered failed. */ - timeout: string; + timeout?: string; } /** * A resource that represents Google Cloud Platform location. @@ -973,26 +976,26 @@ export namespace appengine_v1 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: "us-east1". */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: "projects/example-project/locations/us-east1" */ - name: string; + name?: string; } /** * Metadata for the given google.cloud.location.Location. @@ -1002,12 +1005,12 @@ export namespace appengine_v1 { * App Engine flexible environment is available in the given * location.@OutputOnly */ - flexibleEnvironmentAvailable: boolean; + flexibleEnvironmentAvailable?: boolean; /** * App Engine standard environment is available in the given * location.@OutputOnly */ - standardEnvironmentAvailable: boolean; + standardEnvironmentAvailable?: boolean; } /** * A service with manual scaling runs continuously, allowing you to perform @@ -1020,7 +1023,7 @@ export namespace appengine_v1 { * (https://cloud.google.com/appengine/docs/python/modules/functions) * set_num_instances() function. */ - instances: number; + instances?: number; } /** * Extra network settings. Only applicable in the App Engine flexible @@ -1032,17 +1035,17 @@ export namespace appengine_v1 { * application container. Only applicable in the App Engine flexible * environment. */ - forwardedPorts: string[]; + forwardedPorts?: string[]; /** * Tag to apply to the instance during creation. Only applicable in the App * Engine flexible environment. */ - instanceTag: string; + instanceTag?: string; /** * Google Compute Engine network where the virtual machines are created. * Specify the short name, not the resource path.Defaults to default. */ - name: string; + name?: string; /** * Google Cloud Platform sub-network where the virtual machines are created. * Specify the short name, not the resource path.If a subnetwork name is @@ -1059,7 +1062,7 @@ export namespace appengine_v1 { * exist in the same region as the App Engine flexible environment * application. */ - subnetworkName: string; + subnetworkName?: string; } /** * Target scaling by network usage. Only applicable in the App Engine flexible @@ -1069,19 +1072,19 @@ export namespace appengine_v1 { /** * Target bytes received per second. */ - targetReceivedBytesPerSecond: number; + targetReceivedBytesPerSecond?: number; /** * Target packets received per second. */ - targetReceivedPacketsPerSecond: number; + targetReceivedPacketsPerSecond?: number; /** * Target bytes sent per second. */ - targetSentBytesPerSecond: number; + targetSentBytesPerSecond?: number; /** * Target packets sent per second. */ - targetSentPacketsPerSecond: number; + targetSentPacketsPerSecond?: number; } /** * This resource represents a long-running operation that is the result of a @@ -1093,24 +1096,24 @@ export namespace appengine_v1 { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -1120,7 +1123,7 @@ export namespace appengine_v1 { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * Metadata for the given google.longrunning.Operation. @@ -1129,141 +1132,141 @@ export namespace appengine_v1 { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Type of this operation. Deprecated, use method field instead. Example: * "create_version".@OutputOnly */ - operationType: string; + operationType?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/modules/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1 { - createVersionMetadata: Schema$CreateVersionMetadataV1; + createVersionMetadata?: Schema$CreateVersionMetadataV1; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Alpha { - createVersionMetadata: Schema$CreateVersionMetadataV1Alpha; + createVersionMetadata?: Schema$CreateVersionMetadataV1Alpha; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Beta { - createVersionMetadata: Schema$CreateVersionMetadataV1Beta; + createVersionMetadata?: Schema$CreateVersionMetadataV1Beta; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. @@ -1272,25 +1275,25 @@ export namespace appengine_v1 { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method name that initiated this operation. Example: * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Readiness checking configuration for VM instances. Unhealthy instances are @@ -1302,33 +1305,33 @@ export namespace appengine_v1 { * the application successfully replies to a healthcheck until it is ready * to serve traffic. */ - appStartTimeout: string; + appStartTimeout?: string; /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Number of consecutive failed checks required before removing traffic. */ - failureThreshold: number; + failureThreshold?: number; /** * Host header to send when performing a HTTP Readiness check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * The request path. */ - path: string; + path?: string; /** * Number of consecutive successful checks required before receiving * traffic. */ - successThreshold: number; + successThreshold?: number; /** * Time before the check is considered failed. */ - timeout: string; + timeout?: string; } /** * Request message for 'Applications.RepairApplication'. @@ -1342,11 +1345,11 @@ export namespace appengine_v1 { /** * Target number of concurrent requests. */ - targetConcurrentRequests: number; + targetConcurrentRequests?: number; /** * Target requests per second. */ - targetRequestCountPerSecond: number; + targetRequestCountPerSecond?: number; } /** * A DNS resource record. @@ -1356,16 +1359,16 @@ export namespace appengine_v1 { * Relative name of the object affected by this record. Only applicable for * CNAME records. Example: 'www'. */ - name: string; + name?: string; /** * Data for this record. Values vary by record type, as defined in RFC 1035 * (section 5) and RFC 1034 (section 3.6.1). */ - rrdata: string; + rrdata?: string; /** * Resource record type. Example: AAAA. */ - type: string; + type?: string; } /** * Machine resources for a version. @@ -1374,19 +1377,19 @@ export namespace appengine_v1 { /** * Number of CPU cores needed. */ - cpu: number; + cpu?: number; /** * Disk size (GB) needed. */ - diskGb: number; + diskGb?: number; /** * Memory (GB) needed. */ - memoryGb: number; + memoryGb?: number; /** * User specified volumes. */ - volumes: Schema$Volume[]; + volumes?: Schema$Volume[]; } /** * Executes a script to handle the request that matches the URL pattern. @@ -1395,7 +1398,7 @@ export namespace appengine_v1 { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * A Service resource is a logical component of an application that can share @@ -1410,17 +1413,17 @@ export namespace appengine_v1 { * Relative name of the service within the application. Example: * default.@OutputOnly */ - id: string; + id?: string; /** * Full path to the Service resource in the API. Example: * apps/myapp/services/default.@OutputOnly */ - name: string; + name?: string; /** * Mapping that defines fractional HTTP traffic diversion to different * versions within the service. */ - split: Schema$TrafficSplit; + split?: Schema$TrafficSplit; } /** * SSL configuration for a DomainMapping resource. @@ -1430,7 +1433,7 @@ export namespace appengine_v1 { * ID of the AuthorizedCertificate resource configuring SSL for the * application. Clearing this field will remove SSL support. Example: 12345. */ - certificateId: string; + certificateId?: string; } /** * Scheduler settings for standard environment. @@ -1440,20 +1443,20 @@ export namespace appengine_v1 { * Maximum number of instances to run for this version. Set to zero to * disable max_instances configuration. */ - maxInstances: number; + maxInstances?: number; /** * Minimum number of instances to run for this version. Set to zero to * disable min_instances configuration. */ - minInstances: number; + minInstances?: number; /** * Target CPU utilization ratio to maintain when scaling. */ - targetCpuUtilization: number; + targetCpuUtilization?: number; /** * Target throughput utilization ratio to maintain when scaling */ - targetThroughputUtilization: number; + targetThroughputUtilization?: number; } /** * Files served directly to the user for a given URL, such as images, CSS @@ -1469,38 +1472,38 @@ export namespace appengine_v1 { * uploads are charged against both your code and static data storage * resource quotas. */ - applicationReadable: boolean; + applicationReadable?: boolean; /** * Time a static file served by this handler should be cached by web proxies * and browsers. */ - expiration: string; + expiration?: string; /** * HTTP headers to use for all responses from these URLs. */ - httpHeaders: any; + httpHeaders?: any; /** * MIME type used to serve all files served by this handler.Defaults to * file-specific MIME types, which are derived from each file's filename * extension. */ - mimeType: string; + mimeType?: string; /** * Path to the static files matched by the URL pattern, from the application * root directory. The path can refer to text matched in groupings in the * URL pattern. */ - path: string; + path?: string; /** * Whether this handler should match the request if the file referenced by * the handler does not exist. */ - requireMatchingFile: boolean; + requireMatchingFile?: boolean; /** * Regular expression that matches the file paths for all files that should * be referenced by this handler. */ - uploadPathRegex: string; + uploadPathRegex?: string; } /** * The Status type defines a logical error model that is suitable for @@ -1541,18 +1544,18 @@ export namespace appengine_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Traffic routing configuration for versions within a single service. Traffic @@ -1569,13 +1572,13 @@ export namespace appengine_v1 { * for IP-based splits and up to three decimal places is supported for * cookie-based splits. */ - allocations: any; + allocations?: any; /** * Mechanism used to determine which version a request is sent to. The * traffic selection algorithm will be stable for either type until * allocations are changed. */ - shardBy: string; + shardBy?: string; } /** * Rules to match an HTTP request and dispatch that request to a service. @@ -1586,18 +1589,18 @@ export namespace appengine_v1 { * specified before a period: "*.".Defaults to matching all * domains: "*". */ - domain: string; + domain?: string; /** * Pathname within the host. Must start with a "/". A single * "*" can be included at the end of the path.The sum of the * lengths of the domain and path may not exceed 100 characters. */ - path: string; + path?: string; /** * Resource ID of a service in this application that should serve the * matched request. The service must already exist. Example: default. */ - service: string; + service?: string; } /** * URL pattern and description of how the URL should be handled. App Engine @@ -1608,40 +1611,40 @@ export namespace appengine_v1 { /** * Uses API Endpoints to handle requests. */ - apiEndpoint: Schema$ApiEndpointHandler; + apiEndpoint?: Schema$ApiEndpointHandler; /** * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. */ - login: string; + login?: string; /** * 30x code to use when performing redirects for the secure field. Defaults * to 302. */ - redirectHttpResponseCode: string; + redirectHttpResponseCode?: string; /** * Executes a script to handle the request that matches this URL pattern. */ - script: Schema$ScriptHandler; + script?: Schema$ScriptHandler; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * Returns the contents of a file, such as an image, as the response. */ - staticFiles: Schema$StaticFilesHandler; + staticFiles?: Schema$StaticFilesHandler; /** * URL prefix. Uses regular expression syntax, which means regexp special * characters must be escaped, but should not contain groupings. All URLs * that begin with this prefix are handled by this handler, using the * portion of the URL after the prefix as part of the file path. */ - urlRegex: string; + urlRegex?: string; } /** * A Version resource is a specific set of source code and configuration files @@ -1653,32 +1656,32 @@ export namespace appengine_v1 { * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned * in GET requests if view=FULL is set. */ - apiConfig: Schema$ApiConfigHandler; + apiConfig?: Schema$ApiConfigHandler; /** * Automatic scaling is based on request rate, response latencies, and other * application metrics. */ - automaticScaling: Schema$AutomaticScaling; + automaticScaling?: Schema$AutomaticScaling; /** * A service with basic scaling will create an instance when the application * receives a request. The instance will be turned down when the app becomes * idle. Basic scaling is ideal for work that is intermittent or driven by * user activity. */ - basicScaling: Schema$BasicScaling; + basicScaling?: Schema$BasicScaling; /** * Metadata settings that are supplied to this version to enable beta * runtime features. */ - betaSettings: any; + betaSettings?: any; /** * Email address of the user who created this version.@OutputOnly */ - createdBy: string; + createdBy?: string; /** * Time that this version was created.@OutputOnly */ - createTime: string; + createTime?: string; /** * Duration that static files should be cached by web proxies and browsers. * Only applicable if the corresponding StaticFilesHandler @@ -1686,151 +1689,151 @@ export namespace appengine_v1 { * does not specify its own expiration time.Only returned in GET requests if * view=FULL is set. */ - defaultExpiration: string; + defaultExpiration?: string; /** * Code and application artifacts that make up this version.Only returned in * GET requests if view=FULL is set. */ - deployment: Schema$Deployment; + deployment?: Schema$Deployment; /** * Total size in bytes of all the files that are included in this version * and currently hosted on the App Engine disk.@OutputOnly */ - diskUsageBytes: string; + diskUsageBytes?: string; /** * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud * Endpoints Extensible Service Proxy will be provided to serve the API * implemented by the app. */ - endpointsApiService: Schema$EndpointsApiService; + endpointsApiService?: Schema$EndpointsApiService; /** * App Engine execution environment for this version.Defaults to standard. */ - env: string; + env?: string; /** * Environment variables available to the application.Only returned in GET * requests if view=FULL is set. */ - envVariables: any; + envVariables?: any; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET * requests if view=FULL is set. */ - errorHandlers: Schema$ErrorHandler[]; + errorHandlers?: Schema$ErrorHandler[]; /** * An ordered list of URL-matching patterns that should be applied to * incoming requests. The first matching URL handles the request and other * request handlers are not attempted.Only returned in GET requests if * view=FULL is set. */ - handlers: Schema$UrlMap[]; + handlers?: Schema$UrlMap[]; /** * Configures health checking for instances. Unhealthy instances are stopped * and replaced with new instances. Only applicable in the App Engine * flexible environment.Only returned in GET requests if view=FULL is set. */ - healthCheck: Schema$HealthCheck; + healthCheck?: Schema$HealthCheck; /** * Relative name of the version within the service. Example: v1. Version * names can contain only lowercase letters, numbers, or hyphens. Reserved * names: "default", "latest", and any name with the * prefix "ah-". */ - id: string; + id?: string; /** * Before an application can receive email or XMPP messages, the application * must be configured to enable the service. */ - inboundServices: string[]; + inboundServices?: string[]; /** * Instance class that is used to run this version. Valid values are: * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, * B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for * ManualScaling or BasicScaling. */ - instanceClass: string; + instanceClass?: string; /** * Configuration for third-party Python runtime libraries that are required * by the application.Only returned in GET requests if view=FULL is set. */ - libraries: Schema$Library[]; + libraries?: Schema$Library[]; /** * Configures liveness health checking for instances. Unhealthy instances * are stopped and replaced with new instancesOnly returned in GET requests * if view=FULL is set. */ - livenessCheck: Schema$LivenessCheck; + livenessCheck?: Schema$LivenessCheck; /** * A service with manual scaling runs continuously, allowing you to perform * complex initialization and rely on the state of its memory over time. */ - manualScaling: Schema$ManualScaling; + manualScaling?: Schema$ManualScaling; /** * Full path to the Version resource in the API. Example: * apps/myapp/services/default/versions/v1.@OutputOnly */ - name: string; + name?: string; /** * Extra network settings. Only applicable in the App Engine flexible * environment. */ - network: Schema$Network; + network?: Schema$Network; /** * Files that match this pattern will not be built into this version. Only * applicable for Go runtimes.Only returned in GET requests if view=FULL is * set. */ - nobuildFilesRegex: string; + nobuildFilesRegex?: string; /** * Configures readiness health checking for instances. Unhealthy instances * are not put into the backend traffic rotation.Only returned in GET * requests if view=FULL is set. */ - readinessCheck: Schema$ReadinessCheck; + readinessCheck?: Schema$ReadinessCheck; /** * Machine resources for this version. Only applicable in the App Engine * flexible environment. */ - resources: Schema$Resources; + resources?: Schema$Resources; /** * Desired runtime. Example: python27. */ - runtime: string; + runtime?: string; /** * The version of the API in the given runtime environment. Please see the * app.yaml reference for valid values at * https://cloud.google.com/appengine/docs/standard/<language>/config/appref */ - runtimeApiVersion: string; + runtimeApiVersion?: string; /** * The channel of the runtime to use. Only available for some runtimes. * Defaults to the default channel. */ - runtimeChannel: string; + runtimeChannel?: string; /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is * an invalid value. Defaults to SERVING. */ - servingStatus: string; + servingStatus?: string; /** * Whether multiple requests can be dispatched to this version at once. */ - threadsafe: boolean; + threadsafe?: boolean; /** * Serving URL for this version. Example: * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly */ - versionUrl: string; + versionUrl?: string; /** * Whether to deploy this version in a container on a virtual machine. */ - vm: boolean; + vm?: boolean; /** * The Google Compute Engine zones that are supported by this version in the * App Engine flexible environment. */ - zones: string[]; + zones?: string[]; } /** * Volumes mounted within the app container. Only applicable in the App Engine @@ -1840,15 +1843,15 @@ export namespace appengine_v1 { /** * Unique name for the volume. */ - name: string; + name?: string; /** * Volume size in gigabytes. */ - sizeGb: number; + sizeGb?: number; /** * Underlying volume type, e.g. 'tmpfs'. */ - volumeType: string; + volumeType?: string; } /** * The zip file information for a zip deployment. @@ -1859,15 +1862,16 @@ export namespace appengine_v1 { * must be greater than or equal to the actual number of files. Used for * optimizing performance; if not provided, deployment may be slow. */ - filesCount: number; + filesCount?: number; /** * URL of the zip file to deploy from. Must be a URL to a resource in Google * Cloud Storage in the form * 'http(s)://storage.googleapis.com/<bucket>/<object>'. */ - sourceUrl: string; + sourceUrl?: string; } + export class Resource$Apps { root: Appengine; authorizedCertificates: Resource$Apps$Authorizedcertificates; @@ -1913,26 +1917,37 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Apps$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1966,24 +1981,34 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2023,26 +2048,37 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Apps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2082,26 +2118,37 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - repair(params?: any, options?: MethodOptions): + repair(params?: Params$Resource$Apps$Repair, options?: MethodOptions): AxiosPromise; repair( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Repair, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; repair( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Repair, + callback: BodyResponseCallback): void; + repair(callback: BodyResponseCallback): void; + repair( + paramsOrCallback?: Params$Resource$Apps$Repair| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Repair; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Repair; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2123,6 +2170,66 @@ export namespace appengine_v1 { } } } + + export interface Params$Resource$Apps$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export interface Params$Resource$Apps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Application resource to get. Example: + * apps/myapp. + */ + appsId?: string; + } + export interface Params$Resource$Apps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Application resource to update. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export interface Params$Resource$Apps$Repair { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the application to repair. Example: apps/myapp + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$RepairApplicationRequest; + } + export class Resource$Apps$Authorizedcertificates { root: Appengine; constructor(root: Appengine) { @@ -2148,28 +2255,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Authorizedcertificates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Authorizedcertificates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Authorizedcertificates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2205,25 +2324,38 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Authorizedcertificates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Authorizedcertificates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Authorizedcertificates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2262,26 +2394,36 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Authorizedcertificates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Apps$Authorizedcertificates$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Authorizedcertificates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2321,31 +2463,48 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Authorizedcertificates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizedcertificates$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Authorizedcertificates$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2389,28 +2548,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Authorizedcertificates$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Authorizedcertificates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Authorizedcertificates$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2435,6 +2606,109 @@ export namespace appengine_v1 { } } + export interface Params$Resource$Apps$Authorizedcertificates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$AuthorizedCertificate; + } + export interface Params$Resource$Apps$Authorizedcertificates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to delete. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + /** + * Controls the set of fields returned in the GET response. + */ + view?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Controls the set of fields returned in the LIST response. + */ + view?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + /** + * Standard field mask for the set of fields to be updated. Updates are only + * supported on the certificate_raw_data and display_name fields. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$AuthorizedCertificate; + } + + export class Resource$Apps$Authorizeddomains { root: Appengine; constructor(root: Appengine) { @@ -2461,29 +2735,44 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Authorizeddomains$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizeddomains$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Authorizeddomains$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizeddomains$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizeddomains$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizeddomains$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2508,6 +2797,28 @@ export namespace appengine_v1 { } } + export interface Params$Resource$Apps$Authorizeddomains$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + + export class Resource$Apps$Domainmappings { root: Appengine; constructor(root: Appengine) { @@ -2537,26 +2848,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Domainmappings$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Domainmappings$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2594,26 +2918,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Domainmappings$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Domainmappings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2650,24 +2987,35 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Domainmappings$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Domainmappings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Domainmappings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Domainmappings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2705,29 +3053,44 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Domainmappings$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Domainmappings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Domainmappings$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Domainmappings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2769,26 +3132,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Domainmappings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2812,6 +3188,105 @@ export namespace appengine_v1 { } } + export interface Params$Resource$Apps$Domainmappings$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Whether the domain creation should override any existing mappings for + * this domain. By default, overrides are rejected. + */ + overrideStrategy?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainMapping; + } + export interface Params$Resource$Apps$Domainmappings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to delete. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + } + export interface Params$Resource$Apps$Domainmappings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + } + export interface Params$Resource$Apps$Domainmappings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Domainmappings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainMapping; + } + + export class Resource$Apps$Firewall { root: Appengine; ingressRules: Resource$Apps$Firewall$Ingressrules; @@ -2825,6 +3300,8 @@ export namespace appengine_v1 { return this.root; } } + + export class Resource$Apps$Firewall$Ingressrules { root: Appengine; constructor(root: Appengine) { @@ -2854,30 +3331,47 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdate(params?: any, options?: MethodOptions): + batchUpdate( + params?: Params$Resource$Apps$Firewall$Ingressrules$Batchupdate, + options?: MethodOptions): AxiosPromise; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Firewall$Ingressrules$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Apps$Firewall$Ingressrules$Batchupdate, + callback: BodyResponseCallback): + void; batchUpdate( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: + Params$Resource$Apps$Firewall$Ingressrules$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2916,26 +3410,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Firewall$Ingressrules$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Firewall$Ingressrules$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Firewall$Ingressrules$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2971,25 +3478,38 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Firewall$Ingressrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Firewall$Ingressrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Firewall$Ingressrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3026,24 +3546,35 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Firewall$Ingressrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Firewall$Ingressrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Firewall$Ingressrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3082,28 +3613,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Firewall$Ingressrules$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Firewall$Ingressrules$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Firewall$Ingressrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3141,26 +3684,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Firewall$Ingressrules$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Firewall$Ingressrules$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Firewall$Ingressrules$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3184,6 +3740,122 @@ export namespace appengine_v1 { } } + export interface Params$Resource$Apps$Firewall$Ingressrules$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall collection to set. Example: + * apps/myapp/firewall/ingressRules. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchUpdateIngressRulesRequest; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Firewall collection in which to + * create a new rule. Example: apps/myapp/firewall/ingressRules. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$FirewallRule; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall resource to delete. Example: + * apps/myapp/firewall/ingressRules/100. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + ingressRulesId?: string; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall resource to retrieve. Example: + * apps/myapp/firewall/ingressRules/100. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + ingressRulesId?: string; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the Firewall collection to retrieve. Example: + * apps/myapp/firewall/ingressRules. + */ + appsId?: string; + /** + * A valid IP Address. If set, only rules matching this address will be + * returned. The first returned rule will be the rule that fires on requests + * from this IP. + */ + matchingAddress?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall resource to update. Example: + * apps/myapp/firewall/ingressRules/100. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + ingressRulesId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$FirewallRule; + } + + export class Resource$Apps$Locations { root: Appengine; @@ -3210,23 +3882,34 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3264,28 +3947,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Locations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3308,6 +4002,47 @@ export namespace appengine_v1 { } } + export interface Params$Resource$Apps$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Resource name for the location. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + locationsId?: string; + } + export interface Params$Resource$Apps$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The resource that owns the locations collection, if + * applicable. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Operations { root: Appengine; constructor(root: Appengine) { @@ -3335,23 +4070,35 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3397,28 +4144,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3441,6 +4200,46 @@ export namespace appengine_v1 { } } + export interface Params$Resource$Apps$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation resource. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + operationsId?: string; + } + export interface Params$Resource$Apps$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation's parent resource. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Services { root: Appengine; versions: Resource$Apps$Services$Versions; @@ -3468,26 +4267,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Services$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3523,23 +4335,34 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3576,28 +4399,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Services$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Services$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3636,26 +4470,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Services$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Services$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Services$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3677,6 +4524,100 @@ export namespace appengine_v1 { } } } + + export interface Params$Resource$Apps$Services$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + } + export interface Params$Resource$Apps$Services$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + } + export interface Params$Resource$Apps$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Services$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Set to true to gradually shift traffic to one or more versions that you + * specify. By default, traffic is shifted immediately. For gradual traffic + * migration, the target versions must be located within instances that are + * configured for both warmup requests + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype) + * and automatic scaling + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling). + * You must specify the shardBy + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby) + * field in the Service resource. Gradual traffic migration is not supported + * in the App Engine flexible environment. For examples, see Migrating and + * Splitting Traffic + * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). + */ + migrateTraffic?: boolean; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Service; + } + export class Resource$Apps$Services$Versions { root: Appengine; instances: Resource$Apps$Services$Versions$Instances; @@ -3705,26 +4646,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Services$Versions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3762,26 +4716,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Versions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Services$Versions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3823,23 +4790,34 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Versions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3880,28 +4858,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Services$Versions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Services$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Services$Versions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3968,26 +4958,39 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Services$Versions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4011,6 +5014,128 @@ export namespace appengine_v1 { } } } + + export interface Params$Resource$Apps$Services$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent resource to create this version + * under. Example: apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export interface Params$Resource$Apps$Services$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Controls the set of fields returned in the Get response. + */ + view?: string; + } + export interface Params$Resource$Apps$Services$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Service resource. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Controls the set of fields returned in the List response. + */ + view?: string; + } + export interface Params$Resource$Apps$Services$Versions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/services/default/versions/1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export class Resource$Apps$Services$Versions$Instances { root: Appengine; constructor(root: Appengine) { @@ -4044,26 +5169,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - debug(params?: any, options?: MethodOptions): - AxiosPromise; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Instances$Debug, + options?: MethodOptions): AxiosPromise; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Instances$Debug, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + debug( + params: Params$Resource$Apps$Services$Versions$Instances$Debug, + callback: BodyResponseCallback): void; + debug(callback: BodyResponseCallback): void; + debug( + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$Debug| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Debug; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Debug; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4103,26 +5242,40 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Instances$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Services$Versions$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4162,23 +5315,34 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Versions$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Versions$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Versions$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Versions$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4221,28 +5385,41 @@ export namespace appengine_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Services$Versions$Instances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Services$Versions$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Services$Versions$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4266,4 +5443,109 @@ export namespace appengine_v1 { } } } + + export interface Params$Resource$Apps$Services$Versions$Instances$Debug { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$DebugInstanceRequest; + } + export interface Params$Resource$Apps$Services$Versions$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Version resource. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + versionsId?: string; + } } diff --git a/src/apis/appengine/v1alpha.ts b/src/apis/appengine/v1alpha.ts index c4e34a7dfbe..e9358bb93e6 100644 --- a/src/apis/appengine/v1alpha.ts +++ b/src/apis/appengine/v1alpha.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appengine_v1alpha { + export interface Options extends GlobalOptions { version: 'v1alpha'; } + /** * App Engine Admin API * @@ -76,35 +79,35 @@ export namespace appengine_v1alpha { * The SSL certificate serving the AuthorizedCertificate resource. This must * be obtained independently from a certificate authority. */ - certificateRawData: Schema$CertificateRawData; + certificateRawData?: Schema$CertificateRawData; /** * The user-specified display name of the certificate. This is not * guaranteed to be unique. Example: My Certificate. */ - displayName: string; + displayName?: string; /** * Aggregate count of the domain mappings with this certificate mapped. This * count includes domain mappings on applications for which the user does * not have VIEWER permissions.Only returned by GET or LIST requests when * specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly */ - domainMappingsCount: number; + domainMappingsCount?: number; /** * Topmost applicable domains of this certificate. This certificate applies * to these domains and their subdomains. Example: example.com.@OutputOnly */ - domainNames: string[]; + domainNames?: string[]; /** * The time when this certificate expires. To update the renewal time on * this certificate, upload an SSL certificate with a different expiration * time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly */ - expireTime: string; + expireTime?: string; /** * Relative name of the certificate. This is a unique value autogenerated on * AuthorizedCertificate resource creation. Example: 12345.@OutputOnly */ - id: string; + id?: string; /** * Only applicable if this certificate is managed by App Engine. Managed * certificates are tied to the lifecycle of a DomainMapping and cannot be @@ -112,12 +115,12 @@ export namespace appengine_v1alpha { * certificate is manually administered by the user, this field will be * empty.@OutputOnly */ - managedCertificate: Schema$ManagedCertificate; + managedCertificate?: Schema$ManagedCertificate; /** * Full path to the AuthorizedCertificate resource in the API. Example: * apps/myapp/authorizedCertificates/12345.@OutputOnly */ - name: string; + name?: string; /** * The full paths to user visible Domain Mapping resources that have this * certificate mapped. Example: apps/myapp/domainMappings/example.com.This @@ -127,7 +130,7 @@ export namespace appengine_v1alpha { * count.Only returned by GET or LIST requests when specifically requested * by the view=FULL_CERTIFICATE option.@OutputOnly */ - visibleDomainMappings: string[]; + visibleDomainMappings?: string[]; } /** * A domain that a user has been authorized to administer. To authorize use of @@ -139,12 +142,12 @@ export namespace appengine_v1alpha { * Fully qualified domain name of the domain authorized for use. Example: * example.com. */ - id: string; + id?: string; /** * Full path to the AuthorizedDomain resource in the API. Example: * apps/myapp/authorizedDomains/example.com.@OutputOnly */ - name: string; + name?: string; } /** * An SSL certificate obtained from a certificate authority. @@ -157,14 +160,14 @@ export namespace appengine_v1alpha { * -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END * RSA PRIVATE KEY----- </pre> @InputOnly */ - privateKey: string; + privateKey?: string; /** * PEM encoded x.509 public key certificate. This field is set once on * certificate creation. Must include the header and footer. Example: * <pre> -----BEGIN CERTIFICATE----- <certificate_value> * -----END CERTIFICATE----- </pre> */ - publicCertificate: string; + publicCertificate?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -175,7 +178,7 @@ export namespace appengine_v1alpha { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -186,7 +189,7 @@ export namespace appengine_v1alpha { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -197,7 +200,7 @@ export namespace appengine_v1alpha { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * A domain serving an App Engine application. @@ -207,23 +210,23 @@ export namespace appengine_v1alpha { * Relative name of the domain serving the application. Example: * example.com. */ - id: string; + id?: string; /** * Full path to the DomainMapping resource in the API. Example: * apps/myapp/domainMapping/example.com.@OutputOnly */ - name: string; + name?: string; /** * The resource records required to configure this domain mapping. These * records must be added to the domain's DNS configuration in order to * serve the application via this domain mapping.@OutputOnly */ - resourceRecords: Schema$ResourceRecord[]; + resourceRecords?: Schema$ResourceRecord[]; /** * SSL configuration for this domain. If unconfigured, this domain will not * serve with SSL. */ - sslSettings: Schema$SslSettings; + sslSettings?: Schema$SslSettings; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -240,11 +243,11 @@ export namespace appengine_v1alpha { /** * The SSL certificates the user is authorized to administer. */ - certificates: Schema$AuthorizedCertificate[]; + certificates?: Schema$AuthorizedCertificate[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for AuthorizedDomains.ListAuthorizedDomains. @@ -253,11 +256,11 @@ export namespace appengine_v1alpha { /** * The authorized domains belonging to the user. */ - domains: Schema$AuthorizedDomain[]; + domains?: Schema$AuthorizedDomain[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for DomainMappings.ListDomainMappings. @@ -266,11 +269,11 @@ export namespace appengine_v1alpha { /** * The domain mappings for the application. */ - domainMappings: Schema$DomainMapping[]; + domainMappings?: Schema$DomainMapping[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -279,11 +282,11 @@ export namespace appengine_v1alpha { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -292,11 +295,11 @@ export namespace appengine_v1alpha { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * A resource that represents Google Cloud Platform location. @@ -306,26 +309,26 @@ export namespace appengine_v1alpha { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: "us-east1". */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: "projects/example-project/locations/us-east1" */ - name: string; + name?: string; } /** * Metadata for the given google.cloud.location.Location. @@ -335,12 +338,12 @@ export namespace appengine_v1alpha { * App Engine flexible environment is available in the given * location.@OutputOnly */ - flexibleEnvironmentAvailable: boolean; + flexibleEnvironmentAvailable?: boolean; /** * App Engine standard environment is available in the given * location.@OutputOnly */ - standardEnvironmentAvailable: boolean; + standardEnvironmentAvailable?: boolean; } /** * A certificate managed by App Engine. @@ -352,12 +355,12 @@ export namespace appengine_v1alpha { * certificate expires. Renewal errors can be tracked via * ManagementStatus.@OutputOnly */ - lastRenewalTime: string; + lastRenewalTime?: string; /** * Status of certificate management. Refers to the most recent certificate * acquisition or renewal attempt.@OutputOnly */ - status: string; + status?: string; } /** * This resource represents a long-running operation that is the result of a @@ -369,24 +372,24 @@ export namespace appengine_v1alpha { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -396,7 +399,7 @@ export namespace appengine_v1alpha { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * Metadata for the given google.longrunning.Operation. @@ -405,141 +408,141 @@ export namespace appengine_v1alpha { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Type of this operation. Deprecated, use method field instead. Example: * "create_version".@OutputOnly */ - operationType: string; + operationType?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/modules/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1 { - createVersionMetadata: Schema$CreateVersionMetadataV1; + createVersionMetadata?: Schema$CreateVersionMetadataV1; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Alpha { - createVersionMetadata: Schema$CreateVersionMetadataV1Alpha; + createVersionMetadata?: Schema$CreateVersionMetadataV1Alpha; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Beta { - createVersionMetadata: Schema$CreateVersionMetadataV1Beta; + createVersionMetadata?: Schema$CreateVersionMetadataV1Beta; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. @@ -548,25 +551,25 @@ export namespace appengine_v1alpha { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method name that initiated this operation. Example: * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * A DNS resource record. @@ -576,16 +579,16 @@ export namespace appengine_v1alpha { * Relative name of the object affected by this record. Only applicable for * CNAME records. Example: 'www'. */ - name: string; + name?: string; /** * Data for this record. Values vary by record type, as defined in RFC 1035 * (section 5) and RFC 1034 (section 3.6.1). */ - rrdata: string; + rrdata?: string; /** * Resource record type. Example: AAAA. */ - type: string; + type?: string; } /** * SSL configuration for a DomainMapping resource. @@ -600,14 +603,14 @@ export namespace appengine_v1alpha { * authorized to administer the AuthorizedCertificate resource to manually * map it to a DomainMapping resource. Example: 12345. */ - certificateId: string; + certificateId?: string; /** * Whether the mapped certificate is an App Engine managed certificate. * Managed certificates are created by default with a domain mapping. To opt * out, specify no_managed_certificate on a CREATE or UPDATE * request.@OutputOnly */ - isManagedCertificate: boolean; + isManagedCertificate?: boolean; } /** * The Status type defines a logical error model that is suitable for @@ -648,20 +651,21 @@ export namespace appengine_v1alpha { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Apps { root: Appengine; authorizedCertificates: Resource$Apps$Authorizedcertificates; @@ -684,6 +688,8 @@ export namespace appengine_v1alpha { return this.root; } } + + export class Resource$Apps$Authorizedcertificates { root: Appengine; constructor(root: Appengine) { @@ -709,28 +715,40 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Authorizedcertificates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Authorizedcertificates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Authorizedcertificates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -766,25 +784,38 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Authorizedcertificates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Authorizedcertificates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Authorizedcertificates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -823,26 +854,36 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Authorizedcertificates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Apps$Authorizedcertificates$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Authorizedcertificates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -882,31 +923,48 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Authorizedcertificates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizedcertificates$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizedcertificates$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -950,28 +1008,40 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Authorizedcertificates$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Authorizedcertificates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Authorizedcertificates$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -996,6 +1066,109 @@ export namespace appengine_v1alpha { } } + export interface Params$Resource$Apps$Authorizedcertificates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$AuthorizedCertificate; + } + export interface Params$Resource$Apps$Authorizedcertificates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to delete. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + /** + * Controls the set of fields returned in the GET response. + */ + view?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Controls the set of fields returned in the LIST response. + */ + view?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + /** + * Standard field mask for the set of fields to be updated. Updates are only + * supported on the certificate_raw_data and display_name fields. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$AuthorizedCertificate; + } + + export class Resource$Apps$Authorizeddomains { root: Appengine; constructor(root: Appengine) { @@ -1022,29 +1195,44 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Authorizeddomains$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizeddomains$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Authorizeddomains$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizeddomains$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizeddomains$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizeddomains$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1069,6 +1257,28 @@ export namespace appengine_v1alpha { } } + export interface Params$Resource$Apps$Authorizeddomains$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + + export class Resource$Apps$Domainmappings { root: Appengine; constructor(root: Appengine) { @@ -1099,26 +1309,39 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Domainmappings$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Domainmappings$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1156,26 +1379,39 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Domainmappings$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Domainmappings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1212,24 +1448,35 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Domainmappings$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Domainmappings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Domainmappings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Domainmappings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1267,29 +1514,44 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Domainmappings$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Domainmappings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Domainmappings$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1332,26 +1594,39 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Domainmappings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1375,6 +1650,121 @@ export namespace appengine_v1alpha { } } + export interface Params$Resource$Apps$Domainmappings$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Whether a managed certificate should be provided by App Engine. If true, + * a certificate ID must be manaually set in the DomainMapping resource to + * configure SSL for this domain. If false, a managed certificate will be + * provisioned and a certificate ID will be automatically populated. + */ + noManagedCertificate?: boolean; + /** + * Whether the domain creation should override any existing mappings for + * this domain. By default, overrides are rejected. + */ + overrideStrategy?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainMapping; + } + export interface Params$Resource$Apps$Domainmappings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to delete. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + } + export interface Params$Resource$Apps$Domainmappings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + } + export interface Params$Resource$Apps$Domainmappings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Domainmappings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + /** + * Whether a managed certificate should be provided by App Engine. If true, + * a certificate ID must be manually set in the DomainMapping resource to + * configure SSL for this domain. If false, a managed certificate will be + * provisioned and a certificate ID will be automatically populated. Only + * applicable if ssl_settings.certificate_id is specified in the update + * mask. + */ + noManagedCertificate?: boolean; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainMapping; + } + + export class Resource$Apps$Locations { root: Appengine; constructor(root: Appengine) { @@ -1400,23 +1790,34 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1454,28 +1855,39 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Locations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1498,6 +1910,47 @@ export namespace appengine_v1alpha { } } + export interface Params$Resource$Apps$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Resource name for the location. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + locationsId?: string; + } + export interface Params$Resource$Apps$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The resource that owns the locations collection, if + * applicable. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Operations { root: Appengine; constructor(root: Appengine) { @@ -1525,23 +1978,35 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1588,28 +2053,40 @@ export namespace appengine_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1631,4 +2108,43 @@ export namespace appengine_v1alpha { } } } + + export interface Params$Resource$Apps$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation resource. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + operationsId?: string; + } + export interface Params$Resource$Apps$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation's parent resource. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index 983ab507389..63bf3df1b29 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appengine_v1beta { + export interface Options extends GlobalOptions { version: 'v1beta'; } + /** * App Engine Admin API * @@ -76,23 +79,23 @@ export namespace appengine_v1beta { * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. Defaults to optional. */ - login: string; + login?: string; /** * Path to the script from the application root directory. */ - script: string; + script?: string; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * URL to serve the endpoint at. */ - url: string; + url?: string; } /** * Uses Google Cloud Endpoints to handle requests. @@ -101,7 +104,7 @@ export namespace appengine_v1beta { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * An Application resource contains the top-level configuration of an App @@ -112,49 +115,49 @@ export namespace appengine_v1beta { * Google Apps authentication domain that controls which users can access * this application.Defaults to open access for any Google Account. */ - authDomain: string; + authDomain?: string; /** * Google Cloud Storage bucket that can be used for storing files associated * with this application. This bucket is associated with the application and * can be used by the gcloud deployment commands.@OutputOnly */ - codeBucket: string; + codeBucket?: string; /** * Google Cloud Storage bucket that can be used by this application to store * content.@OutputOnly */ - defaultBucket: string; + defaultBucket?: string; /** * Cookie expiration policy for this application. */ - defaultCookieExpiration: string; + defaultCookieExpiration?: string; /** * Hostname used to reach this application, as resolved by App * Engine.@OutputOnly */ - defaultHostname: string; + defaultHostname?: string; /** * HTTP path dispatch rules for requests to the application that do not * explicitly target a service or version. Rules are order-dependent. Up to * 20 dispatch rules can be supported.@OutputOnly */ - dispatchRules: Schema$UrlDispatchRule[]; + dispatchRules?: Schema$UrlDispatchRule[]; /** * The feature specific settings to be used in the application. */ - featureSettings: Schema$FeatureSettings; + featureSettings?: Schema$FeatureSettings; /** * The Google Container Registry domain used for storing managed build * docker images for this application. */ - gcrDomain: string; - iap: Schema$IdentityAwareProxy; + gcrDomain?: string; + iap?: Schema$IdentityAwareProxy; /** * Identifier of the Application resource. This identifier is equivalent to * the project ID of the Google Cloud Platform project where you want to * deploy your application. Example: myapp. */ - id: string; + id?: string; /** * Location from which this application runs. Application instances run out * of the data centers in the specified location, which is also where all of @@ -162,16 +165,16 @@ export namespace appengine_v1beta { * us-central.View the list of supported locations * (https://cloud.google.com/appengine/docs/locations). */ - locationId: string; + locationId?: string; /** * Full path to the Application resource in the API. Example: * apps/myapp.@OutputOnly */ - name: string; + name?: string; /** * Serving status of this application. */ - servingStatus: string; + servingStatus?: string; } /** * An SSL certificate that a user has been authorized to administer. A user is @@ -183,35 +186,35 @@ export namespace appengine_v1beta { * The SSL certificate serving the AuthorizedCertificate resource. This must * be obtained independently from a certificate authority. */ - certificateRawData: Schema$CertificateRawData; + certificateRawData?: Schema$CertificateRawData; /** * The user-specified display name of the certificate. This is not * guaranteed to be unique. Example: My Certificate. */ - displayName: string; + displayName?: string; /** * Aggregate count of the domain mappings with this certificate mapped. This * count includes domain mappings on applications for which the user does * not have VIEWER permissions.Only returned by GET or LIST requests when * specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly */ - domainMappingsCount: number; + domainMappingsCount?: number; /** * Topmost applicable domains of this certificate. This certificate applies * to these domains and their subdomains. Example: example.com.@OutputOnly */ - domainNames: string[]; + domainNames?: string[]; /** * The time when this certificate expires. To update the renewal time on * this certificate, upload an SSL certificate with a different expiration * time using AuthorizedCertificates.UpdateAuthorizedCertificate.@OutputOnly */ - expireTime: string; + expireTime?: string; /** * Relative name of the certificate. This is a unique value autogenerated on * AuthorizedCertificate resource creation. Example: 12345.@OutputOnly */ - id: string; + id?: string; /** * Only applicable if this certificate is managed by App Engine. Managed * certificates are tied to the lifecycle of a DomainMapping and cannot be @@ -219,12 +222,12 @@ export namespace appengine_v1beta { * certificate is manually administered by the user, this field will be * empty.@OutputOnly */ - managedCertificate: Schema$ManagedCertificate; + managedCertificate?: Schema$ManagedCertificate; /** * Full path to the AuthorizedCertificate resource in the API. Example: * apps/myapp/authorizedCertificates/12345.@OutputOnly */ - name: string; + name?: string; /** * The full paths to user visible Domain Mapping resources that have this * certificate mapped. Example: apps/myapp/domainMappings/example.com.This @@ -234,7 +237,7 @@ export namespace appengine_v1beta { * count.Only returned by GET or LIST requests when specifically requested * by the view=FULL_CERTIFICATE option.@OutputOnly */ - visibleDomainMappings: string[]; + visibleDomainMappings?: string[]; } /** * A domain that a user has been authorized to administer. To authorize use of @@ -246,12 +249,12 @@ export namespace appengine_v1beta { * Fully qualified domain name of the domain authorized for use. Example: * example.com. */ - id: string; + id?: string; /** * Full path to the AuthorizedDomain resource in the API. Example: * apps/myapp/authorizedDomains/example.com.@OutputOnly */ - name: string; + name?: string; } /** * Automatic scaling is based on request rate, response latencies, and other @@ -264,67 +267,67 @@ export namespace appengine_v1beta { * changes to the number of virtual machines. Only applicable in the App * Engine flexible environment. */ - coolDownPeriod: string; + coolDownPeriod?: string; /** * Target scaling by CPU usage. */ - cpuUtilization: Schema$CpuUtilization; + cpuUtilization?: Schema$CpuUtilization; /** * Target scaling by user-provided metrics. */ - customMetrics: Schema$CustomMetric[]; + customMetrics?: Schema$CustomMetric[]; /** * Target scaling by disk usage. */ - diskUtilization: Schema$DiskUtilization; + diskUtilization?: Schema$DiskUtilization; /** * Number of concurrent requests an automatic scaling instance can accept * before the scheduler spawns a new instance.Defaults to a runtime-specific * value. */ - maxConcurrentRequests: number; + maxConcurrentRequests?: number; /** * Maximum number of idle instances that should be maintained for this * version. */ - maxIdleInstances: number; + maxIdleInstances?: number; /** * Maximum amount of time that a request should wait in the pending queue * before starting a new instance to handle it. */ - maxPendingLatency: string; + maxPendingLatency?: string; /** * Maximum number of instances that should be started to handle requests for * this version. */ - maxTotalInstances: number; + maxTotalInstances?: number; /** * Minimum number of idle instances that should be maintained for this * version. Only applicable for the default version of a service. */ - minIdleInstances: number; + minIdleInstances?: number; /** * Minimum amount of time a request should wait in the pending queue before * starting a new instance to handle it. */ - minPendingLatency: string; + minPendingLatency?: string; /** * Minimum number of running instances that should be maintained for this * version. */ - minTotalInstances: number; + minTotalInstances?: number; /** * Target scaling by network usage. */ - networkUtilization: Schema$NetworkUtilization; + networkUtilization?: Schema$NetworkUtilization; /** * Target scaling by request utilization. */ - requestUtilization: Schema$RequestUtilization; + requestUtilization?: Schema$RequestUtilization; /** * Scheduler settings for standard environment. */ - standardSchedulerSettings: Schema$StandardSchedulerSettings; + standardSchedulerSettings?: Schema$StandardSchedulerSettings; } /** * A service with basic scaling will create an instance when the application @@ -337,11 +340,11 @@ export namespace appengine_v1beta { * Duration of time after the last request that an instance must wait before * the instance is shut down. */ - idleTimeout: string; + idleTimeout?: string; /** * Maximum number of instances to create for this version. */ - maxInstances: number; + maxInstances?: number; } /** * Request message for Firewall.BatchUpdateIngressRules. @@ -350,7 +353,7 @@ export namespace appengine_v1beta { /** * A list of FirewallRules to replace the existing set. */ - ingressRules: Schema$FirewallRule[]; + ingressRules?: Schema$FirewallRule[]; } /** * Response message for Firewall.UpdateAllIngressRules. @@ -359,7 +362,7 @@ export namespace appengine_v1beta { /** * The full list of ingress FirewallRules for this application. */ - ingressRules: Schema$FirewallRule[]; + ingressRules?: Schema$FirewallRule[]; } /** * Google Cloud Container Builder build information. @@ -369,7 +372,7 @@ export namespace appengine_v1beta { * The Google Cloud Container Builder build id. Example: * "f966068f-08b2-42c8-bdfe-74137dff2bf9" */ - cloudBuildId: string; + cloudBuildId?: string; } /** * An SSL certificate obtained from a certificate authority. @@ -382,14 +385,14 @@ export namespace appengine_v1beta { * -----BEGIN RSA PRIVATE KEY----- <unencrypted_key_value> -----END * RSA PRIVATE KEY----- </pre> @InputOnly */ - privateKey: string; + privateKey?: string; /** * PEM encoded x.509 public key certificate. This field is set once on * certificate creation. Must include the header and footer. Example: * <pre> -----BEGIN CERTIFICATE----- <certificate_value> * -----END CERTIFICATE----- </pre> */ - publicCertificate: string; + publicCertificate?: string; } /** * Options for the build operations performed as a part of the version @@ -403,12 +406,12 @@ export namespace appengine_v1beta { * https://cloud.google.com/appengine/docs/standard/python/config/appref for * more details. */ - appYamlPath: string; + appYamlPath?: string; /** * The Cloud Build timeout used as part of any dependent builds performed by * version creation. Defaults to 10 minutes. */ - cloudBuildTimeout: string; + cloudBuildTimeout?: string; } /** * Docker image that is used to create a container and start a VM instance for @@ -422,7 +425,7 @@ export namespace appengine_v1beta { * "gcr.io/my-project/image:tag" or * "gcr.io/my-project/image@digest" */ - image: string; + image?: string; } /** * Target scaling by CPU usage. @@ -431,12 +434,12 @@ export namespace appengine_v1beta { /** * Period of time over which CPU utilization is calculated. */ - aggregationWindowLength: string; + aggregationWindowLength?: string; /** * Target CPU utilization ratio to maintain when scaling. Must be between 0 * and 1. */ - targetUtilization: number; + targetUtilization?: number; } /** * Metadata for the given google.longrunning.Operation during a @@ -447,7 +450,7 @@ export namespace appengine_v1beta { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -458,7 +461,7 @@ export namespace appengine_v1beta { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -469,7 +472,7 @@ export namespace appengine_v1beta { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Allows autoscaling based on Stackdriver metrics. @@ -478,11 +481,11 @@ export namespace appengine_v1beta { /** * Allows filtering on the metric's fields. */ - filter: string; + filter?: string; /** * The name of the metric. */ - metricName: string; + metricName?: string; /** * May be used instead of target_utilization when an instance can handle a * specific amount of work/resources and the metric value is equal to the @@ -490,16 +493,16 @@ export namespace appengine_v1beta { * number of instances equal to the metric value divided by * single_instance_assignment. */ - singleInstanceAssignment: number; + singleInstanceAssignment?: number; /** * The type of the metric. Must be a string representing a Stackdriver * metric type e.g. GAGUE, DELTA_PER_SECOND, etc. */ - targetType: string; + targetType?: string; /** * The target value for the metric. */ - targetUtilization: number; + targetUtilization?: number; } /** * Request message for Instances.DebugInstance. @@ -512,7 +515,7 @@ export namespace appengine_v1beta { * more information, see Adding and Removing SSH Keys * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). */ - sshKey: string; + sshKey?: string; } /** * Code and application artifacts used to deploy a version to App Engine. @@ -522,7 +525,7 @@ export namespace appengine_v1beta { * Google Cloud Container Builder build information. Only applicable for * instances running in the App Engine flexible environment. */ - build: Schema$BuildInfo; + build?: Schema$BuildInfo; /** * Options for any Google Cloud Container Builder builds created as a part * of this deployment.Note that this is orthogonal to the build parameter, @@ -530,22 +533,22 @@ export namespace appengine_v1beta { * options will only be used if a new build is created, such as when * deploying to the App Engine flexible environment using files or zip. */ - cloudBuildOptions: Schema$CloudBuildOptions; + cloudBuildOptions?: Schema$CloudBuildOptions; /** * The Docker image for the container that runs the version. Only applicable * for instances running in the App Engine flexible environment. */ - container: Schema$ContainerInfo; + container?: Schema$ContainerInfo; /** * Manifest of the files stored in Google Cloud Storage that are included as * part of this version. All files must be readable using the credentials * supplied with this call. */ - files: any; + files?: any; /** * The zip file for this deployment, if this is a zip deployment. */ - zip: Schema$ZipInfo; + zip?: Schema$ZipInfo; } /** * Target scaling by disk usage. Only applicable in the App Engine flexible @@ -555,19 +558,19 @@ export namespace appengine_v1beta { /** * Target bytes read per second. */ - targetReadBytesPerSecond: number; + targetReadBytesPerSecond?: number; /** * Target ops read per seconds. */ - targetReadOpsPerSecond: number; + targetReadOpsPerSecond?: number; /** * Target bytes written per second. */ - targetWriteBytesPerSecond: number; + targetWriteBytesPerSecond?: number; /** * Target ops written per second. */ - targetWriteOpsPerSecond: number; + targetWriteOpsPerSecond?: number; } /** * A domain serving an App Engine application. @@ -577,23 +580,23 @@ export namespace appengine_v1beta { * Relative name of the domain serving the application. Example: * example.com. */ - id: string; + id?: string; /** * Full path to the DomainMapping resource in the API. Example: * apps/myapp/domainMapping/example.com.@OutputOnly */ - name: string; + name?: string; /** * The resource records required to configure this domain mapping. These * records must be added to the domain's DNS configuration in order to * serve the application via this domain mapping.@OutputOnly */ - resourceRecords: Schema$ResourceRecord[]; + resourceRecords?: Schema$ResourceRecord[]; /** * SSL configuration for this domain. If unconfigured, this domain will not * serve with SSL. */ - sslSettings: Schema$SslSettings; + sslSettings?: Schema$SslSettings; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -619,18 +622,18 @@ export namespace appengine_v1beta { * keep the Endpoints service configuration id updated with each rollout, * specify RolloutStrategy.MANAGED and omit config_id. */ - configId: string; + configId?: string; /** * Endpoints service name which is the name of the "service" * resource in the Service Management API. For example * "myapi.endpoints.myproject.cloud.goog" */ - name: string; + name?: string; /** * Endpoints rollout strategy. If FIXED, config_id must be specified. If * MANAGED, config_id must be omitted. */ - rolloutStrategy: string; + rolloutStrategy?: string; } /** * Custom static error page to be served when an error occurs. @@ -639,15 +642,15 @@ export namespace appengine_v1beta { /** * Error condition this handler applies to. */ - errorCode: string; + errorCode?: string; /** * MIME type of file. Defaults to text/html. */ - mimeType: string; + mimeType?: string; /** * Static file content to be served for this error. */ - staticFile: string; + staticFile?: string; } /** * The feature specific settings to be used in the application. These define @@ -662,13 +665,13 @@ export namespace appengine_v1beta { * behavior is deprecated, and this value is always true, this setting can * be removed. */ - splitHealthChecks: boolean; + splitHealthChecks?: boolean; /** * If true, use Container-Optimized OS * (https://cloud.google.com/container-optimized-os/) base image for VMs, * rather than a base Debian image. */ - useContainerOptimizedOs: boolean; + useContainerOptimizedOs?: boolean; } /** * Single source file that is part of the version to be deployed. Each source @@ -679,17 +682,17 @@ export namespace appengine_v1beta { * The MIME type of the file.Defaults to the value from Google Cloud * Storage. */ - mimeType: string; + mimeType?: string; /** * The SHA1 hash of the file, in hex. */ - sha1Sum: string; + sha1Sum?: string; /** * URL source to use to fetch this file. Must be a URL to a resource in * Google Cloud Storage in the form * 'http(s)://storage.googleapis.com/<bucket>/<object>'. */ - sourceUrl: string; + sourceUrl?: string; } /** * A single firewall rule that is evaluated against incoming traffic and @@ -699,12 +702,12 @@ export namespace appengine_v1beta { /** * The action to take on matched requests. */ - action: string; + action?: string; /** * An optional string description of this rule. This field has a maximum * length of 100 characters. */ - description: string; + description?: string; /** * A positive integer between 1, Int32.MaxValue-1 that defines the order of * rule evaluation. Rules with the lowest priority are evaluated first.A @@ -712,7 +715,7 @@ export namespace appengine_v1beta { * when no previous rule matches. Only the action of this rule can be * modified by the user. */ - priority: number; + priority?: number; /** * IP address or range, defined using CIDR notation, of requests that this * rule applies to. You can use the wildcard character "*" to @@ -724,7 +727,7 @@ export namespace appengine_v1beta { * Similarly, for IPv6, 2001:db8::1/32 is accepted as the same address as * 2001:db8::/32. */ - sourceRange: string; + sourceRange?: string; } /** * Health checking configuration for VM instances. Unhealthy instances are @@ -735,35 +738,35 @@ export namespace appengine_v1beta { /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Whether to explicitly disable health checks for this instance. */ - disableHealthCheck: boolean; + disableHealthCheck?: boolean; /** * Number of consecutive successful health checks required before receiving * traffic. */ - healthyThreshold: number; + healthyThreshold?: number; /** * Host header to send when performing an HTTP health check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * Number of consecutive failed health checks required before an instance is * restarted. */ - restartThreshold: number; + restartThreshold?: number; /** * Time before the health check is considered failed. */ - timeout: string; + timeout?: string; /** * Number of consecutive failed health checks required before removing * traffic. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Identity-Aware Proxy @@ -774,22 +777,22 @@ export namespace appengine_v1beta { * incoming requests.If true, the oauth2_client_id and oauth2_client_secret * fields must be non-empty. */ - enabled: boolean; + enabled?: boolean; /** * OAuth2 client ID to use for the authentication flow. */ - oauth2ClientId: string; + oauth2ClientId?: string; /** * OAuth2 client secret to use for the authentication flow.For security * reasons, this value cannot be retrieved via the API. Instead, the SHA-256 * hash of the value is returned in the oauth2_client_secret_sha256 * field.@InputOnly */ - oauth2ClientSecret: string; + oauth2ClientSecret?: string; /** * Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * An Instance resource is the computing unit that App Engine uses to @@ -799,75 +802,75 @@ export namespace appengine_v1beta { /** * App Engine release this instance is running on.@OutputOnly */ - appEngineRelease: string; + appEngineRelease?: string; /** * Availability of the instance.@OutputOnly */ - availability: string; + availability?: string; /** * Average latency (ms) over the last minute.@OutputOnly */ - averageLatency: number; + averageLatency?: number; /** * Number of errors since this instance was started.@OutputOnly */ - errors: number; + errors?: number; /** * Relative name of the instance within the version. Example: * instance-1.@OutputOnly */ - id: string; + id?: string; /** * Total memory in use (bytes).@OutputOnly */ - memoryUsage: string; + memoryUsage?: string; /** * Full path to the Instance resource in the API. Example: * apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly */ - name: string; + name?: string; /** * Average queries per second (QPS) over the last minute.@OutputOnly */ - qps: number; + qps?: number; /** * Number of requests since this instance was started.@OutputOnly */ - requests: number; + requests?: number; /** * Time that this instance was started.@OutputOnly */ - startTime: string; + startTime?: string; /** * Whether this instance is in debug mode. Only applicable for instances in * App Engine flexible environment.@OutputOnly */ - vmDebugEnabled: boolean; + vmDebugEnabled?: boolean; /** * Virtual machine ID of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmId: string; + vmId?: string; /** * The IP address of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmIp: string; + vmIp?: string; /** * Name of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmName: string; + vmName?: string; /** * Status of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmStatus: string; + vmStatus?: string; /** * Zone where the virtual machine is located. Only applicable for instances * in App Engine flexible environment.@OutputOnly */ - vmZoneName: string; + vmZoneName?: string; } /** * Third-party Python runtime library that is required by the application. @@ -876,11 +879,11 @@ export namespace appengine_v1beta { /** * Name of the library. Example: "django". */ - name: string; + name?: string; /** * Version of the library to select, or "latest". */ - version: string; + version?: string; } /** * Response message for AuthorizedCertificates.ListAuthorizedCertificates. @@ -889,11 +892,11 @@ export namespace appengine_v1beta { /** * The SSL certificates the user is authorized to administer. */ - certificates: Schema$AuthorizedCertificate[]; + certificates?: Schema$AuthorizedCertificate[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for AuthorizedDomains.ListAuthorizedDomains. @@ -902,11 +905,11 @@ export namespace appengine_v1beta { /** * The authorized domains belonging to the user. */ - domains: Schema$AuthorizedDomain[]; + domains?: Schema$AuthorizedDomain[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for DomainMappings.ListDomainMappings. @@ -915,11 +918,11 @@ export namespace appengine_v1beta { /** * The domain mappings for the application. */ - domainMappings: Schema$DomainMapping[]; + domainMappings?: Schema$DomainMapping[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for Firewall.ListIngressRules. @@ -928,11 +931,11 @@ export namespace appengine_v1beta { /** * The ingress FirewallRules for this application. */ - ingressRules: Schema$FirewallRule[]; + ingressRules?: Schema$FirewallRule[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for Instances.ListInstances. @@ -941,11 +944,11 @@ export namespace appengine_v1beta { /** * The instances belonging to the requested version. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -954,11 +957,11 @@ export namespace appengine_v1beta { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -967,11 +970,11 @@ export namespace appengine_v1beta { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response message for Services.ListServices. @@ -980,11 +983,11 @@ export namespace appengine_v1beta { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The services belonging to the requested application. */ - services: Schema$Service[]; + services?: Schema$Service[]; } /** * Response message for Versions.ListVersions. @@ -993,11 +996,11 @@ export namespace appengine_v1beta { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The versions belonging to the requested service. */ - versions: Schema$Version[]; + versions?: Schema$Version[]; } /** * Health checking configuration for VM instances. Unhealthy instances are @@ -1007,34 +1010,34 @@ export namespace appengine_v1beta { /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Number of consecutive failed checks required before considering the VM * unhealthy. */ - failureThreshold: number; + failureThreshold?: number; /** * Host header to send when performing a HTTP Liveness check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * The initial delay before starting to execute the checks. */ - initialDelay: string; + initialDelay?: string; /** * The request path. */ - path: string; + path?: string; /** * Number of consecutive successful checks required before considering the * VM healthy. */ - successThreshold: number; + successThreshold?: number; /** * Time before the check is considered failed. */ - timeout: string; + timeout?: string; } /** * A resource that represents Google Cloud Platform location. @@ -1044,26 +1047,26 @@ export namespace appengine_v1beta { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: "us-east1". */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: "projects/example-project/locations/us-east1" */ - name: string; + name?: string; } /** * Metadata for the given google.cloud.location.Location. @@ -1073,12 +1076,12 @@ export namespace appengine_v1beta { * App Engine flexible environment is available in the given * location.@OutputOnly */ - flexibleEnvironmentAvailable: boolean; + flexibleEnvironmentAvailable?: boolean; /** * App Engine standard environment is available in the given * location.@OutputOnly */ - standardEnvironmentAvailable: boolean; + standardEnvironmentAvailable?: boolean; } /** * A certificate managed by App Engine. @@ -1090,12 +1093,12 @@ export namespace appengine_v1beta { * certificate expires. Renewal errors can be tracked via * ManagementStatus.@OutputOnly */ - lastRenewalTime: string; + lastRenewalTime?: string; /** * Status of certificate management. Refers to the most recent certificate * acquisition or renewal attempt.@OutputOnly */ - status: string; + status?: string; } /** * A service with manual scaling runs continuously, allowing you to perform @@ -1108,7 +1111,7 @@ export namespace appengine_v1beta { * (https://cloud.google.com/appengine/docs/python/modules/functions) * set_num_instances() function. */ - instances: number; + instances?: number; } /** * Extra network settings. Only applicable in the App Engine flexible @@ -1120,21 +1123,21 @@ export namespace appengine_v1beta { * application container. Only applicable in the App Engine flexible * environment. */ - forwardedPorts: string[]; + forwardedPorts?: string[]; /** * Tag to apply to the instance during creation. Only applicable in the App * Engine flexible environment. */ - instanceTag: string; + instanceTag?: string; /** * Google Compute Engine network where the virtual machines are created. * Specify the short name, not the resource path.Defaults to default. */ - name: string; + name?: string; /** * Enable session affinity. */ - sessionAffinity: boolean; + sessionAffinity?: boolean; /** * Google Cloud Platform sub-network where the virtual machines are created. * Specify the short name, not the resource path.If a subnetwork name is @@ -1151,7 +1154,7 @@ export namespace appengine_v1beta { * exist in the same region as the App Engine flexible environment * application. */ - subnetworkName: string; + subnetworkName?: string; } /** * Target scaling by network usage. Only applicable in the App Engine flexible @@ -1161,19 +1164,19 @@ export namespace appengine_v1beta { /** * Target bytes received per second. */ - targetReceivedBytesPerSecond: number; + targetReceivedBytesPerSecond?: number; /** * Target packets received per second. */ - targetReceivedPacketsPerSecond: number; + targetReceivedPacketsPerSecond?: number; /** * Target bytes sent per second. */ - targetSentBytesPerSecond: number; + targetSentBytesPerSecond?: number; /** * Target packets sent per second. */ - targetSentPacketsPerSecond: number; + targetSentPacketsPerSecond?: number; } /** * This resource represents a long-running operation that is the result of a @@ -1185,24 +1188,24 @@ export namespace appengine_v1beta { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -1212,7 +1215,7 @@ export namespace appengine_v1beta { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * Metadata for the given google.longrunning.Operation. @@ -1221,141 +1224,141 @@ export namespace appengine_v1beta { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Type of this operation. Deprecated, use method field instead. Example: * "create_version".@OutputOnly */ - operationType: string; + operationType?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/modules/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1 { - createVersionMetadata: Schema$CreateVersionMetadataV1; + createVersionMetadata?: Schema$CreateVersionMetadataV1; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Alpha { - createVersionMetadata: Schema$CreateVersionMetadataV1Alpha; + createVersionMetadata?: Schema$CreateVersionMetadataV1Alpha; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Beta { - createVersionMetadata: Schema$CreateVersionMetadataV1Beta; + createVersionMetadata?: Schema$CreateVersionMetadataV1Beta; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. @@ -1364,25 +1367,25 @@ export namespace appengine_v1beta { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method name that initiated this operation. Example: * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Readiness checking configuration for VM instances. Unhealthy instances are @@ -1394,33 +1397,33 @@ export namespace appengine_v1beta { * the application successfully replies to a healthcheck until it is ready * to serve traffic. */ - appStartTimeout: string; + appStartTimeout?: string; /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Number of consecutive failed checks required before removing traffic. */ - failureThreshold: number; + failureThreshold?: number; /** * Host header to send when performing a HTTP Readiness check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * The request path. */ - path: string; + path?: string; /** * Number of consecutive successful checks required before receiving * traffic. */ - successThreshold: number; + successThreshold?: number; /** * Time before the check is considered failed. */ - timeout: string; + timeout?: string; } /** * Request message for 'Applications.RepairApplication'. @@ -1434,11 +1437,11 @@ export namespace appengine_v1beta { /** * Target number of concurrent requests. */ - targetConcurrentRequests: number; + targetConcurrentRequests?: number; /** * Target requests per second. */ - targetRequestCountPerSecond: number; + targetRequestCountPerSecond?: number; } /** * A DNS resource record. @@ -1448,16 +1451,16 @@ export namespace appengine_v1beta { * Relative name of the object affected by this record. Only applicable for * CNAME records. Example: 'www'. */ - name: string; + name?: string; /** * Data for this record. Values vary by record type, as defined in RFC 1035 * (section 5) and RFC 1034 (section 3.6.1). */ - rrdata: string; + rrdata?: string; /** * Resource record type. Example: AAAA. */ - type: string; + type?: string; } /** * Machine resources for a version. @@ -1466,19 +1469,19 @@ export namespace appengine_v1beta { /** * Number of CPU cores needed. */ - cpu: number; + cpu?: number; /** * Disk size (GB) needed. */ - diskGb: number; + diskGb?: number; /** * Memory (GB) needed. */ - memoryGb: number; + memoryGb?: number; /** * User specified volumes. */ - volumes: Schema$Volume[]; + volumes?: Schema$Volume[]; } /** * Executes a script to handle the request that matches the URL pattern. @@ -1487,7 +1490,7 @@ export namespace appengine_v1beta { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * A Service resource is a logical component of an application that can share @@ -1502,17 +1505,17 @@ export namespace appengine_v1beta { * Relative name of the service within the application. Example: * default.@OutputOnly */ - id: string; + id?: string; /** * Full path to the Service resource in the API. Example: * apps/myapp/services/default.@OutputOnly */ - name: string; + name?: string; /** * Mapping that defines fractional HTTP traffic diversion to different * versions within the service. */ - split: Schema$TrafficSplit; + split?: Schema$TrafficSplit; } /** * SSL configuration for a DomainMapping resource. @@ -1527,7 +1530,7 @@ export namespace appengine_v1beta { * authorized to administer the AuthorizedCertificate resource to manually * map it to a DomainMapping resource. Example: 12345. */ - certificateId: string; + certificateId?: string; /** * ID of the managed AuthorizedCertificate resource currently being * provisioned, if applicable. Until the new managed certificate has been @@ -1537,13 +1540,13 @@ export namespace appengine_v1beta { * SSL support while there is still a pending managed certificate, clear the * certificate_id field with an UpdateDomainMappingRequest.@OutputOnly */ - pendingManagedCertificateId: string; + pendingManagedCertificateId?: string; /** * SSL management type for this domain. If AUTOMATIC, a managed certificate * is automatically provisioned. If MANUAL, certificate_id must be manually * specified in order to configure SSL for this domain. */ - sslManagementType: string; + sslManagementType?: string; } /** * Scheduler settings for standard environment. @@ -1553,20 +1556,20 @@ export namespace appengine_v1beta { * Maximum number of instances to run for this version. Set to zero to * disable max_instances configuration. */ - maxInstances: number; + maxInstances?: number; /** * Minimum number of instances to run for this version. Set to zero to * disable min_instances configuration. */ - minInstances: number; + minInstances?: number; /** * Target CPU utilization ratio to maintain when scaling. */ - targetCpuUtilization: number; + targetCpuUtilization?: number; /** * Target throughput utilization ratio to maintain when scaling */ - targetThroughputUtilization: number; + targetThroughputUtilization?: number; } /** * Files served directly to the user for a given URL, such as images, CSS @@ -1582,38 +1585,38 @@ export namespace appengine_v1beta { * uploads are charged against both your code and static data storage * resource quotas. */ - applicationReadable: boolean; + applicationReadable?: boolean; /** * Time a static file served by this handler should be cached by web proxies * and browsers. */ - expiration: string; + expiration?: string; /** * HTTP headers to use for all responses from these URLs. */ - httpHeaders: any; + httpHeaders?: any; /** * MIME type used to serve all files served by this handler.Defaults to * file-specific MIME types, which are derived from each file's filename * extension. */ - mimeType: string; + mimeType?: string; /** * Path to the static files matched by the URL pattern, from the application * root directory. The path can refer to text matched in groupings in the * URL pattern. */ - path: string; + path?: string; /** * Whether this handler should match the request if the file referenced by * the handler does not exist. */ - requireMatchingFile: boolean; + requireMatchingFile?: boolean; /** * Regular expression that matches the file paths for all files that should * be referenced by this handler. */ - uploadPathRegex: string; + uploadPathRegex?: string; } /** * The Status type defines a logical error model that is suitable for @@ -1654,18 +1657,18 @@ export namespace appengine_v1beta { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Traffic routing configuration for versions within a single service. Traffic @@ -1682,13 +1685,13 @@ export namespace appengine_v1beta { * for IP-based splits and up to three decimal places is supported for * cookie-based splits. */ - allocations: any; + allocations?: any; /** * Mechanism used to determine which version a request is sent to. The * traffic selection algorithm will be stable for either type until * allocations are changed. */ - shardBy: string; + shardBy?: string; } /** * Rules to match an HTTP request and dispatch that request to a service. @@ -1699,18 +1702,18 @@ export namespace appengine_v1beta { * specified before a period: "*.".Defaults to matching all * domains: "*". */ - domain: string; + domain?: string; /** * Pathname within the host. Must start with a "/". A single * "*" can be included at the end of the path.The sum of the * lengths of the domain and path may not exceed 100 characters. */ - path: string; + path?: string; /** * Resource ID of a service in this application that should serve the * matched request. The service must already exist. Example: default. */ - service: string; + service?: string; } /** * URL pattern and description of how the URL should be handled. App Engine @@ -1721,40 +1724,40 @@ export namespace appengine_v1beta { /** * Uses API Endpoints to handle requests. */ - apiEndpoint: Schema$ApiEndpointHandler; + apiEndpoint?: Schema$ApiEndpointHandler; /** * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. */ - login: string; + login?: string; /** * 30x code to use when performing redirects for the secure field. Defaults * to 302. */ - redirectHttpResponseCode: string; + redirectHttpResponseCode?: string; /** * Executes a script to handle the request that matches this URL pattern. */ - script: Schema$ScriptHandler; + script?: Schema$ScriptHandler; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * Returns the contents of a file, such as an image, as the response. */ - staticFiles: Schema$StaticFilesHandler; + staticFiles?: Schema$StaticFilesHandler; /** * URL prefix. Uses regular expression syntax, which means regexp special * characters must be escaped, but should not contain groupings. All URLs * that begin with this prefix are handled by this handler, using the * portion of the URL after the prefix as part of the file path. */ - urlRegex: string; + urlRegex?: string; } /** * A Version resource is a specific set of source code and configuration files @@ -1766,32 +1769,32 @@ export namespace appengine_v1beta { * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned * in GET requests if view=FULL is set. */ - apiConfig: Schema$ApiConfigHandler; + apiConfig?: Schema$ApiConfigHandler; /** * Automatic scaling is based on request rate, response latencies, and other * application metrics. */ - automaticScaling: Schema$AutomaticScaling; + automaticScaling?: Schema$AutomaticScaling; /** * A service with basic scaling will create an instance when the application * receives a request. The instance will be turned down when the app becomes * idle. Basic scaling is ideal for work that is intermittent or driven by * user activity. */ - basicScaling: Schema$BasicScaling; + basicScaling?: Schema$BasicScaling; /** * Metadata settings that are supplied to this version to enable beta * runtime features. */ - betaSettings: any; + betaSettings?: any; /** * Email address of the user who created this version.@OutputOnly */ - createdBy: string; + createdBy?: string; /** * Time that this version was created.@OutputOnly */ - createTime: string; + createTime?: string; /** * Duration that static files should be cached by web proxies and browsers. * Only applicable if the corresponding StaticFilesHandler @@ -1799,151 +1802,151 @@ export namespace appengine_v1beta { * does not specify its own expiration time.Only returned in GET requests if * view=FULL is set. */ - defaultExpiration: string; + defaultExpiration?: string; /** * Code and application artifacts that make up this version.Only returned in * GET requests if view=FULL is set. */ - deployment: Schema$Deployment; + deployment?: Schema$Deployment; /** * Total size in bytes of all the files that are included in this version * and currently hosted on the App Engine disk.@OutputOnly */ - diskUsageBytes: string; + diskUsageBytes?: string; /** * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud * Endpoints Extensible Service Proxy will be provided to serve the API * implemented by the app. */ - endpointsApiService: Schema$EndpointsApiService; + endpointsApiService?: Schema$EndpointsApiService; /** * App Engine execution environment for this version.Defaults to standard. */ - env: string; + env?: string; /** * Environment variables available to the application.Only returned in GET * requests if view=FULL is set. */ - envVariables: any; + envVariables?: any; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET * requests if view=FULL is set. */ - errorHandlers: Schema$ErrorHandler[]; + errorHandlers?: Schema$ErrorHandler[]; /** * An ordered list of URL-matching patterns that should be applied to * incoming requests. The first matching URL handles the request and other * request handlers are not attempted.Only returned in GET requests if * view=FULL is set. */ - handlers: Schema$UrlMap[]; + handlers?: Schema$UrlMap[]; /** * Configures health checking for instances. Unhealthy instances are stopped * and replaced with new instances. Only applicable in the App Engine * flexible environment.Only returned in GET requests if view=FULL is set. */ - healthCheck: Schema$HealthCheck; + healthCheck?: Schema$HealthCheck; /** * Relative name of the version within the service. Example: v1. Version * names can contain only lowercase letters, numbers, or hyphens. Reserved * names: "default", "latest", and any name with the * prefix "ah-". */ - id: string; + id?: string; /** * Before an application can receive email or XMPP messages, the application * must be configured to enable the service. */ - inboundServices: string[]; + inboundServices?: string[]; /** * Instance class that is used to run this version. Valid values are: * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, * B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for * ManualScaling or BasicScaling. */ - instanceClass: string; + instanceClass?: string; /** * Configuration for third-party Python runtime libraries that are required * by the application.Only returned in GET requests if view=FULL is set. */ - libraries: Schema$Library[]; + libraries?: Schema$Library[]; /** * Configures liveness health checking for instances. Unhealthy instances * are stopped and replaced with new instancesOnly returned in GET requests * if view=FULL is set. */ - livenessCheck: Schema$LivenessCheck; + livenessCheck?: Schema$LivenessCheck; /** * A service with manual scaling runs continuously, allowing you to perform * complex initialization and rely on the state of its memory over time. */ - manualScaling: Schema$ManualScaling; + manualScaling?: Schema$ManualScaling; /** * Full path to the Version resource in the API. Example: * apps/myapp/services/default/versions/v1.@OutputOnly */ - name: string; + name?: string; /** * Extra network settings. Only applicable in the App Engine flexible * environment. */ - network: Schema$Network; + network?: Schema$Network; /** * Files that match this pattern will not be built into this version. Only * applicable for Go runtimes.Only returned in GET requests if view=FULL is * set. */ - nobuildFilesRegex: string; + nobuildFilesRegex?: string; /** * Configures readiness health checking for instances. Unhealthy instances * are not put into the backend traffic rotation.Only returned in GET * requests if view=FULL is set. */ - readinessCheck: Schema$ReadinessCheck; + readinessCheck?: Schema$ReadinessCheck; /** * Machine resources for this version. Only applicable in the App Engine * flexible environment. */ - resources: Schema$Resources; + resources?: Schema$Resources; /** * Desired runtime. Example: python27. */ - runtime: string; + runtime?: string; /** * The version of the API in the given runtime environment. Please see the * app.yaml reference for valid values at * https://cloud.google.com/appengine/docs/standard/<language>/config/appref */ - runtimeApiVersion: string; + runtimeApiVersion?: string; /** * The channel of the runtime to use. Only available for some runtimes. * Defaults to the default channel. */ - runtimeChannel: string; + runtimeChannel?: string; /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is * an invalid value. Defaults to SERVING. */ - servingStatus: string; + servingStatus?: string; /** * Whether multiple requests can be dispatched to this version at once. */ - threadsafe: boolean; + threadsafe?: boolean; /** * Serving URL for this version. Example: * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly */ - versionUrl: string; + versionUrl?: string; /** * Whether to deploy this version in a container on a virtual machine. */ - vm: boolean; + vm?: boolean; /** * The Google Compute Engine zones that are supported by this version in the * App Engine flexible environment. */ - zones: string[]; + zones?: string[]; } /** * Volumes mounted within the app container. Only applicable in the App Engine @@ -1953,15 +1956,15 @@ export namespace appengine_v1beta { /** * Unique name for the volume. */ - name: string; + name?: string; /** * Volume size in gigabytes. */ - sizeGb: number; + sizeGb?: number; /** * Underlying volume type, e.g. 'tmpfs'. */ - volumeType: string; + volumeType?: string; } /** * The zip file information for a zip deployment. @@ -1972,15 +1975,16 @@ export namespace appengine_v1beta { * must be greater than or equal to the actual number of files. Used for * optimizing performance; if not provided, deployment may be slow. */ - filesCount: number; + filesCount?: number; /** * URL of the zip file to deploy from. Must be a URL to a resource in Google * Cloud Storage in the form * 'http(s)://storage.googleapis.com/<bucket>/<object>'. */ - sourceUrl: string; + sourceUrl?: string; } + export class Resource$Apps { root: Appengine; authorizedCertificates: Resource$Apps$Authorizedcertificates; @@ -2026,26 +2030,37 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Apps$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2079,24 +2094,34 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2136,26 +2161,37 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Apps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2195,26 +2231,37 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - repair(params?: any, options?: MethodOptions): + repair(params?: Params$Resource$Apps$Repair, options?: MethodOptions): AxiosPromise; repair( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Repair, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; repair( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Repair, + callback: BodyResponseCallback): void; + repair(callback: BodyResponseCallback): void; + repair( + paramsOrCallback?: Params$Resource$Apps$Repair| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Repair; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Repair; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2236,6 +2283,66 @@ export namespace appengine_v1beta { } } } + + export interface Params$Resource$Apps$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export interface Params$Resource$Apps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Application resource to get. Example: + * apps/myapp. + */ + appsId?: string; + } + export interface Params$Resource$Apps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Application resource to update. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export interface Params$Resource$Apps$Repair { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the application to repair. Example: apps/myapp + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$RepairApplicationRequest; + } + export class Resource$Apps$Authorizedcertificates { root: Appengine; constructor(root: Appengine) { @@ -2261,28 +2368,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Authorizedcertificates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Authorizedcertificates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Authorizedcertificates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2318,25 +2437,38 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Authorizedcertificates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Authorizedcertificates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Authorizedcertificates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2375,26 +2507,36 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Authorizedcertificates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Apps$Authorizedcertificates$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Authorizedcertificates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2434,31 +2576,48 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Authorizedcertificates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizedcertificates$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Authorizedcertificates$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2502,28 +2661,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Authorizedcertificates$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Authorizedcertificates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Authorizedcertificates$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizedcertificates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizedcertificates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizedcertificates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2548,6 +2719,109 @@ export namespace appengine_v1beta { } } + export interface Params$Resource$Apps$Authorizedcertificates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$AuthorizedCertificate; + } + export interface Params$Resource$Apps$Authorizedcertificates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to delete. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + /** + * Controls the set of fields returned in the GET response. + */ + view?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Controls the set of fields returned in the LIST response. + */ + view?: string; + } + export interface Params$Resource$Apps$Authorizedcertificates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/authorizedCertificates/12345. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + authorizedCertificatesId?: string; + /** + * Standard field mask for the set of fields to be updated. Updates are only + * supported on the certificate_raw_data and display_name fields. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$AuthorizedCertificate; + } + + export class Resource$Apps$Authorizeddomains { root: Appengine; constructor(root: Appengine) { @@ -2574,29 +2848,44 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Authorizeddomains$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Authorizeddomains$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Authorizeddomains$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Authorizeddomains$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Authorizeddomains$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Authorizeddomains$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2621,6 +2910,28 @@ export namespace appengine_v1beta { } } + export interface Params$Resource$Apps$Authorizeddomains$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + + export class Resource$Apps$Domainmappings { root: Appengine; constructor(root: Appengine) { @@ -2650,26 +2961,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Domainmappings$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Domainmappings$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2707,26 +3031,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Domainmappings$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Domainmappings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2763,24 +3100,35 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Domainmappings$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Domainmappings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Domainmappings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Domainmappings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2818,29 +3166,44 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Apps$Domainmappings$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Domainmappings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Apps$Domainmappings$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Domainmappings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2882,26 +3245,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Domainmappings$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Domainmappings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Domainmappings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Domainmappings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Domainmappings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Domainmappings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2925,6 +3301,105 @@ export namespace appengine_v1beta { } } + export interface Params$Resource$Apps$Domainmappings$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Whether the domain creation should override any existing mappings for + * this domain. By default, overrides are rejected. + */ + overrideStrategy?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainMapping; + } + export interface Params$Resource$Apps$Domainmappings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to delete. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + } + export interface Params$Resource$Apps$Domainmappings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + } + export interface Params$Resource$Apps$Domainmappings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Domainmappings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/domainMappings/example.com. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + domainMappingsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$DomainMapping; + } + + export class Resource$Apps$Firewall { root: Appengine; ingressRules: Resource$Apps$Firewall$Ingressrules; @@ -2938,6 +3413,8 @@ export namespace appengine_v1beta { return this.root; } } + + export class Resource$Apps$Firewall$Ingressrules { root: Appengine; constructor(root: Appengine) { @@ -2967,30 +3444,47 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdate(params?: any, options?: MethodOptions): + batchUpdate( + params?: Params$Resource$Apps$Firewall$Ingressrules$Batchupdate, + options?: MethodOptions): AxiosPromise; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Firewall$Ingressrules$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Apps$Firewall$Ingressrules$Batchupdate, + callback: BodyResponseCallback): + void; batchUpdate( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: + Params$Resource$Apps$Firewall$Ingressrules$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3029,26 +3523,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Firewall$Ingressrules$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Firewall$Ingressrules$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Firewall$Ingressrules$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3084,25 +3591,38 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Firewall$Ingressrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Firewall$Ingressrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Firewall$Ingressrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3140,24 +3660,35 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Firewall$Ingressrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Firewall$Ingressrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Firewall$Ingressrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3197,28 +3728,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Firewall$Ingressrules$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Firewall$Ingressrules$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Firewall$Ingressrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3256,26 +3799,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Firewall$Ingressrules$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Firewall$Ingressrules$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Firewall$Ingressrules$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Firewall$Ingressrules$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Firewall$Ingressrules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Firewall$Ingressrules$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3300,6 +3856,122 @@ export namespace appengine_v1beta { } } + export interface Params$Resource$Apps$Firewall$Ingressrules$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall collection to set. Example: + * apps/myapp/firewall/ingressRules. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchUpdateIngressRulesRequest; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Firewall collection in which to + * create a new rule. Example: apps/myapp/firewall/ingressRules. + */ + appsId?: string; + /** + * Request body metadata + */ + resource?: Schema$FirewallRule; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall resource to delete. Example: + * apps/myapp/firewall/ingressRules/100. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + ingressRulesId?: string; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall resource to retrieve. Example: + * apps/myapp/firewall/ingressRules/100. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + ingressRulesId?: string; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the Firewall collection to retrieve. Example: + * apps/myapp/firewall/ingressRules. + */ + appsId?: string; + /** + * A valid IP Address. If set, only rules matching this address will be + * returned. The first returned rule will be the rule that fires on requests + * from this IP. + */ + matchingAddress?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Firewall$Ingressrules$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Firewall resource to update. Example: + * apps/myapp/firewall/ingressRules/100. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + ingressRulesId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$FirewallRule; + } + + export class Resource$Apps$Locations { root: Appengine; @@ -3326,23 +3998,34 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3380,28 +4063,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Locations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3424,6 +4118,47 @@ export namespace appengine_v1beta { } } + export interface Params$Resource$Apps$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Resource name for the location. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + locationsId?: string; + } + export interface Params$Resource$Apps$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The resource that owns the locations collection, if + * applicable. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Operations { root: Appengine; constructor(root: Appengine) { @@ -3451,23 +4186,35 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3513,28 +4260,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3557,6 +4316,46 @@ export namespace appengine_v1beta { } } + export interface Params$Resource$Apps$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation resource. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + operationsId?: string; + } + export interface Params$Resource$Apps$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation's parent resource. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Services { root: Appengine; versions: Resource$Apps$Services$Versions; @@ -3584,26 +4383,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Services$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3639,23 +4451,34 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3692,28 +4515,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Services$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Services$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3752,26 +4586,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Services$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Services$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Services$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3793,6 +4640,100 @@ export namespace appengine_v1beta { } } } + + export interface Params$Resource$Apps$Services$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + } + export interface Params$Resource$Apps$Services$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + } + export interface Params$Resource$Apps$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Application resource. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Services$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Set to true to gradually shift traffic to one or more versions that you + * specify. By default, traffic is shifted immediately. For gradual traffic + * migration, the target versions must be located within instances that are + * configured for both warmup requests + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#inboundservicetype) + * and automatic scaling + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#automaticscaling). + * You must specify the shardBy + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services#shardby) + * field in the Service resource. Gradual traffic migration is not supported + * in the App Engine flexible environment. For examples, see Migrating and + * Splitting Traffic + * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). + */ + migrateTraffic?: boolean; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Service; + } + export class Resource$Apps$Services$Versions { root: Appengine; instances: Resource$Apps$Services$Versions$Instances; @@ -3821,26 +4762,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Services$Versions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3878,26 +4832,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Versions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Services$Versions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3939,23 +4906,34 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Versions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -3996,28 +4974,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Services$Versions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Services$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Services$Versions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4084,26 +5074,39 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Services$Versions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4127,6 +5130,128 @@ export namespace appengine_v1beta { } } } + + export interface Params$Resource$Apps$Services$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent resource to create this version + * under. Example: apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export interface Params$Resource$Apps$Services$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Controls the set of fields returned in the Get response. + */ + view?: string; + } + export interface Params$Resource$Apps$Services$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Service resource. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Controls the set of fields returned in the List response. + */ + view?: string; + } + export interface Params$Resource$Apps$Services$Versions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/services/default/versions/1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + updateMask?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export class Resource$Apps$Services$Versions$Instances { root: Appengine; constructor(root: Appengine) { @@ -4160,26 +5285,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - debug(params?: any, options?: MethodOptions): - AxiosPromise; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Instances$Debug, + options?: MethodOptions): AxiosPromise; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Instances$Debug, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + debug( + params: Params$Resource$Apps$Services$Versions$Instances$Debug, + callback: BodyResponseCallback): void; + debug(callback: BodyResponseCallback): void; + debug( + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$Debug| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Debug; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Debug; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4219,26 +5358,40 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Instances$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Services$Versions$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4278,23 +5431,34 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Versions$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Versions$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Versions$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Versions$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4337,28 +5501,41 @@ export namespace appengine_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Services$Versions$Instances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Services$Versions$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Services$Versions$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -4382,4 +5559,109 @@ export namespace appengine_v1beta { } } } + + export interface Params$Resource$Apps$Services$Versions$Instances$Debug { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$DebugInstanceRequest; + } + export interface Params$Resource$Apps$Services$Versions$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `parent`. Name of the parent Version resource. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `parent`. See documentation of `appsId`. + */ + versionsId?: string; + } } diff --git a/src/apis/appengine/v1beta4.ts b/src/apis/appengine/v1beta4.ts index 4540119defc..06cce23904f 100644 --- a/src/apis/appengine/v1beta4.ts +++ b/src/apis/appengine/v1beta4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appengine_v1beta4 { + export interface Options extends GlobalOptions { version: 'v1beta4'; } + /** * App Engine Admin API * @@ -76,23 +79,23 @@ export namespace appengine_v1beta4 { * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. Defaults to optional. */ - login: string; + login?: string; /** * Path to the script from the application root directory. */ - script: string; + script?: string; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * URL to serve the endpoint at. */ - url: string; + url?: string; } /** * Uses Google Cloud Endpoints to handle requests. @@ -101,7 +104,7 @@ export namespace appengine_v1beta4 { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * An Application resource contains the top-level configuration of an App @@ -112,40 +115,40 @@ export namespace appengine_v1beta4 { * Google Apps authentication domain that controls which users can access * this application.Defaults to open access for any Google Account. */ - authDomain: string; + authDomain?: string; /** * Google Cloud Storage bucket that can be used for storing files associated * with this application. This bucket is associated with the application and * can be used by the gcloud deployment commands.@OutputOnly */ - codeBucket: string; + codeBucket?: string; /** * Google Cloud Storage bucket that can be used by this application to store * content.@OutputOnly */ - defaultBucket: string; + defaultBucket?: string; /** * Cookie expiration policy for this application. */ - defaultCookieExpiration: string; + defaultCookieExpiration?: string; /** * Hostname used to reach the application, as resolved by App * Engine.@OutputOnly */ - defaultHostname: string; + defaultHostname?: string; /** * HTTP path dispatch rules for requests to the application that do not * explicitly target a module or version. Rules are * order-dependent.@OutputOnly */ - dispatchRules: Schema$UrlDispatchRule[]; - iap: Schema$IdentityAwareProxy; + dispatchRules?: Schema$UrlDispatchRule[]; + iap?: Schema$IdentityAwareProxy; /** * Identifier of the Application resource. This identifier is equivalent to * the project ID of the Google Cloud Platform project where you want to * deploy your application. Example: myapp. */ - id: string; + id?: string; /** * Location from which this application will be run. Application instances * will run out of data centers in the chosen location, which is also where @@ -153,12 +156,12 @@ export namespace appengine_v1beta4 { * us-central.Options are:us-central - Central USeurope-west - Western * Europeus-east1 - Eastern US */ - location: string; + location?: string; /** * Full path to the Application resource in the API. Example: * apps/myapp.@OutputOnly */ - name: string; + name?: string; } /** * Automatic scaling is based on request rate, response latencies, and other @@ -171,57 +174,57 @@ export namespace appengine_v1beta4 { * changes to the number of virtual machines. Only applicable for VM * runtimes. */ - coolDownPeriod: string; + coolDownPeriod?: string; /** * Target scaling by CPU usage. */ - cpuUtilization: Schema$CpuUtilization; + cpuUtilization?: Schema$CpuUtilization; /** * Target scaling by disk usage. */ - diskUtilization: Schema$DiskUtilization; + diskUtilization?: Schema$DiskUtilization; /** * Number of concurrent requests an automatic scaling instance can accept * before the scheduler spawns a new instance.Defaults to a runtime-specific * value. */ - maxConcurrentRequests: number; + maxConcurrentRequests?: number; /** * Maximum number of idle instances that should be maintained for this * version. */ - maxIdleInstances: number; + maxIdleInstances?: number; /** * Maximum amount of time that a request should wait in the pending queue * before starting a new instance to handle it. */ - maxPendingLatency: string; + maxPendingLatency?: string; /** * Maximum number of instances that should be started to handle requests. */ - maxTotalInstances: number; + maxTotalInstances?: number; /** * Minimum number of idle instances that should be maintained for this * version. Only applicable for the default version of a module. */ - minIdleInstances: number; + minIdleInstances?: number; /** * Minimum amount of time a request should wait in the pending queue before * starting a new instance to handle it. */ - minPendingLatency: string; + minPendingLatency?: string; /** * Minimum number of instances that should be maintained for this version. */ - minTotalInstances: number; + minTotalInstances?: number; /** * Target scaling by network usage. */ - networkUtilization: Schema$NetworkUtilization; + networkUtilization?: Schema$NetworkUtilization; /** * Target scaling by request utilization. */ - requestUtilization: Schema$RequestUtilization; + requestUtilization?: Schema$RequestUtilization; } /** * A module with basic scaling will create an instance when the application @@ -234,11 +237,11 @@ export namespace appengine_v1beta4 { * Duration of time after the last request that an instance must wait before * the instance is shut down. */ - idleTimeout: string; + idleTimeout?: string; /** * Maximum number of instances to create for this version. */ - maxInstances: number; + maxInstances?: number; } /** * Docker image that is used to create a container and start a VM instance for @@ -252,7 +255,7 @@ export namespace appengine_v1beta4 { * "gcr.io/my-project/image:tag" or * "gcr.io/my-project/image@digest" */ - image: string; + image?: string; } /** * Target scaling by CPU usage. @@ -261,12 +264,12 @@ export namespace appengine_v1beta4 { /** * Period of time over which CPU utilization is calculated. */ - aggregationWindowLength: string; + aggregationWindowLength?: string; /** * Target CPU utilization ratio to maintain when scaling. Must be between 0 * and 1. */ - targetUtilization: number; + targetUtilization?: number; } /** * Metadata for the given google.longrunning.Operation during a @@ -277,7 +280,7 @@ export namespace appengine_v1beta4 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -288,7 +291,7 @@ export namespace appengine_v1beta4 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -299,7 +302,7 @@ export namespace appengine_v1beta4 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Request message for Instances.DebugInstance. @@ -312,7 +315,7 @@ export namespace appengine_v1beta4 { * more information, see Adding and Removing SSH Keys * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). */ - sshKey: string; + sshKey?: string; } /** * Code and application artifacts used to deploy a version to App Engine. @@ -322,19 +325,19 @@ export namespace appengine_v1beta4 { * The Docker image for the container that runs the version. Only applicable * for instances running in the App Engine flexible environment. */ - container: Schema$ContainerInfo; + container?: Schema$ContainerInfo; /** * Manifest of the files stored in Google Cloud Storage that are included as * part of this version. All files must be readable using the credentials * supplied with this call. */ - files: any; + files?: any; /** * Origin of the source code for this deployment. There can be more than one * source reference per version if source code is distributed among multiple * repositories. */ - sourceReferences: Schema$SourceReference[]; + sourceReferences?: Schema$SourceReference[]; } /** * Target scaling by disk usage. Only applicable for VM runtimes. @@ -343,19 +346,19 @@ export namespace appengine_v1beta4 { /** * Target bytes read per second. */ - targetReadBytesPerSec: number; + targetReadBytesPerSec?: number; /** * Target ops read per second. */ - targetReadOpsPerSec: number; + targetReadOpsPerSec?: number; /** * Target bytes written per second. */ - targetWriteBytesPerSec: number; + targetWriteBytesPerSec?: number; /** * Target ops written per second. */ - targetWriteOpsPerSec: number; + targetWriteOpsPerSec?: number; } /** * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The @@ -373,18 +376,18 @@ export namespace appengine_v1beta4 { * keep the Endpoints service configuration id updated with each rollout, * specify RolloutStrategy.MANAGED and omit config_id. */ - configId: string; + configId?: string; /** * Endpoints service name which is the name of the "service" * resource in the Service Management API. For example * "myapi.endpoints.myproject.cloud.goog" */ - name: string; + name?: string; /** * Endpoints rollout strategy. If FIXED, config_id must be specified. If * MANAGED, config_id must be omitted. */ - rolloutStrategy: string; + rolloutStrategy?: string; } /** * Custom static error page to be served when an error occurs. @@ -393,15 +396,15 @@ export namespace appengine_v1beta4 { /** * Error condition this handler applies to. */ - errorCode: string; + errorCode?: string; /** * MIME type of file. Defaults to text/html. */ - mimeType: string; + mimeType?: string; /** * Static file content to be served for this error. */ - staticFile: string; + staticFile?: string; } /** * Single source file that is part of the version to be deployed. Each source @@ -412,17 +415,17 @@ export namespace appengine_v1beta4 { * The MIME type of the file.Defaults to the value from Google Cloud * Storage. */ - mimeType: string; + mimeType?: string; /** * The SHA1 hash of the file, in hex. */ - sha1Sum: string; + sha1Sum?: string; /** * URL source to use to fetch this file. Must be a URL to a resource in * Google Cloud Storage in the form * 'http(s)://storage.googleapis.com/<bucket>/<object>'. */ - sourceUrl: string; + sourceUrl?: string; } /** * Health checking configuration for VM instances. Unhealthy instances are @@ -433,35 +436,35 @@ export namespace appengine_v1beta4 { /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Whether to explicitly disable health checks for this instance. */ - disableHealthCheck: boolean; + disableHealthCheck?: boolean; /** * Number of consecutive successful health checks required before receiving * traffic. */ - healthyThreshold: number; + healthyThreshold?: number; /** * Host header to send when performing an HTTP health check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * Number of consecutive failed health checks required before an instance is * restarted. */ - restartThreshold: number; + restartThreshold?: number; /** * Time before the health check is considered failed. */ - timeout: string; + timeout?: string; /** * Number of consecutive failed health checks required before removing * traffic. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Identity-Aware Proxy @@ -472,21 +475,21 @@ export namespace appengine_v1beta4 { * incoming requests.If true, the oauth2_client_id and oauth2_client_secret * fields must be non-empty. */ - enabled: boolean; + enabled?: boolean; /** * OAuth2 client ID to use for the authentication flow. */ - oauth2ClientId: string; + oauth2ClientId?: string; /** * For security reasons, this value cannot be retrieved via the API. * Instead, the SHA-256 hash of the value is returned in the * oauth2_client_secret_sha256 field.@InputOnly */ - oauth2ClientSecret: string; + oauth2ClientSecret?: string; /** * Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * An Instance resource is the computing unit that App Engine uses to @@ -496,75 +499,75 @@ export namespace appengine_v1beta4 { /** * App Engine release this instance is running on.@OutputOnly */ - appEngineRelease: string; + appEngineRelease?: string; /** * Availability of the instance.@OutputOnly */ - availability: string; + availability?: string; /** * Average latency (ms) over the last minute.@OutputOnly */ - averageLatency: number; + averageLatency?: number; /** * Number of errors since this instance was started.@OutputOnly */ - errors: number; + errors?: number; /** * Relative name of the instance within the version. Example: * instance-1.@OutputOnly */ - id: string; + id?: string; /** * Total memory in use (bytes).@OutputOnly */ - memoryUsage: string; + memoryUsage?: string; /** * Full path to the Instance resource in the API. Example: * apps/myapp/modules/default/versions/v1/instances/instance-1.@OutputOnly */ - name: string; + name?: string; /** * Average queries per second (QPS) over the last minute.@OutputOnly */ - qps: number; + qps?: number; /** * Number of requests since this instance was started.@OutputOnly */ - requests: number; + requests?: number; /** * Time that this instance was started.@OutputOnly */ - startTimestamp: string; + startTimestamp?: string; /** * Virtual machine ID of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmId: string; + vmId?: string; /** * The IP address of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmIp: string; + vmIp?: string; /** * Name of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmName: string; + vmName?: string; /** * Status of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmStatus: string; + vmStatus?: string; /** * Whether this instance is in debug mode. Only applicable for instances in * App Engine flexible environment.@OutputOnly */ - vmUnlocked: boolean; + vmUnlocked?: boolean; /** * Zone where the virtual machine is located. Only applicable for instances * in App Engine flexible environment.@OutputOnly */ - vmZoneName: string; + vmZoneName?: string; } /** * Third-party Python runtime library that is required by the application. @@ -573,11 +576,11 @@ export namespace appengine_v1beta4 { /** * Name of the library. Example: "django". */ - name: string; + name?: string; /** * Version of the library to select, or "latest". */ - version: string; + version?: string; } /** * Response message for Instances.ListInstances. @@ -586,11 +589,11 @@ export namespace appengine_v1beta4 { /** * The instances belonging to the requested version. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -599,11 +602,11 @@ export namespace appengine_v1beta4 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for Modules.ListModules. @@ -612,11 +615,11 @@ export namespace appengine_v1beta4 { /** * The modules belonging to the requested application. */ - modules: Schema$Module[]; + modules?: Schema$Module[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -625,11 +628,11 @@ export namespace appengine_v1beta4 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response message for Versions.ListVersions. @@ -638,11 +641,11 @@ export namespace appengine_v1beta4 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The versions belonging to the requested module. */ - versions: Schema$Version[]; + versions?: Schema$Version[]; } /** * A resource that represents Google Cloud Platform location. @@ -652,26 +655,26 @@ export namespace appengine_v1beta4 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: "us-east1". */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: "projects/example-project/locations/us-east1" */ - name: string; + name?: string; } /** * Metadata for the given google.cloud.location.Location. @@ -681,12 +684,12 @@ export namespace appengine_v1beta4 { * App Engine flexible environment is available in the given * location.@OutputOnly */ - flexibleEnvironmentAvailable: boolean; + flexibleEnvironmentAvailable?: boolean; /** * App Engine standard environment is available in the given * location.@OutputOnly */ - standardEnvironmentAvailable: boolean; + standardEnvironmentAvailable?: boolean; } /** * A module with manual scaling runs continuously, allowing you to perform @@ -699,7 +702,7 @@ export namespace appengine_v1beta4 { * (https://cloud.google.com/appengine/docs/python/modules/functions) * set_num_instances() function. */ - instances: number; + instances?: number; } /** * A Module resource is a logical component of an application that can share @@ -714,17 +717,17 @@ export namespace appengine_v1beta4 { * Relative name of the module within the application. Example: * default.@OutputOnly */ - id: string; + id?: string; /** * Full path to the Module resource in the API. Example: * apps/myapp/modules/default.@OutputOnly */ - name: string; + name?: string; /** * Mapping that defines fractional HTTP traffic diversion to different * versions within the module. */ - split: Schema$TrafficSplit; + split?: Schema$TrafficSplit; } /** * Extra network settings. Only applicable for VM runtimes. @@ -734,16 +737,16 @@ export namespace appengine_v1beta4 { * List of ports, or port pairs, to forward from the virtual machine to the * application container. */ - forwardedPorts: string[]; + forwardedPorts?: string[]; /** * Tag to apply to the VM instance during creation. */ - instanceTag: string; + instanceTag?: string; /** * Google Cloud Platform network where the virtual machines are created. * Specify the short name, not the resource path.Defaults to default. */ - name: string; + name?: string; } /** * Target scaling by network usage. Only applicable for VM runtimes. @@ -752,19 +755,19 @@ export namespace appengine_v1beta4 { /** * Target bytes received per second. */ - targetReceivedBytesPerSec: number; + targetReceivedBytesPerSec?: number; /** * Target packets received per second. */ - targetReceivedPacketsPerSec: number; + targetReceivedPacketsPerSec?: number; /** * Target bytes sent per second. */ - targetSentBytesPerSec: number; + targetSentBytesPerSec?: number; /** * Target packets sent per second. */ - targetSentPacketsPerSec: number; + targetSentPacketsPerSec?: number; } /** * This resource represents a long-running operation that is the result of a @@ -776,24 +779,24 @@ export namespace appengine_v1beta4 { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -803,7 +806,7 @@ export namespace appengine_v1beta4 { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * Metadata for the given google.longrunning.Operation. @@ -812,141 +815,141 @@ export namespace appengine_v1beta4 { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Type of this operation. Deprecated, use method field instead. Example: * "create_version".@OutputOnly */ - operationType: string; + operationType?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/modules/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1 { - createVersionMetadata: Schema$CreateVersionMetadataV1; + createVersionMetadata?: Schema$CreateVersionMetadataV1; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Alpha { - createVersionMetadata: Schema$CreateVersionMetadataV1Alpha; + createVersionMetadata?: Schema$CreateVersionMetadataV1Alpha; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Beta { - createVersionMetadata: Schema$CreateVersionMetadataV1Beta; + createVersionMetadata?: Schema$CreateVersionMetadataV1Beta; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. @@ -955,25 +958,25 @@ export namespace appengine_v1beta4 { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method name that initiated this operation. Example: * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Target scaling by request utilization. Only applicable for VM runtimes. @@ -982,11 +985,11 @@ export namespace appengine_v1beta4 { /** * Target number of concurrent requests. */ - targetConcurrentRequests: number; + targetConcurrentRequests?: number; /** * Target requests per second. */ - targetRequestCountPerSec: number; + targetRequestCountPerSec?: number; } /** * Machine resources for a version. @@ -995,19 +998,19 @@ export namespace appengine_v1beta4 { /** * Number of CPU cores needed. */ - cpu: number; + cpu?: number; /** * Disk size (GB) needed. */ - diskGb: number; + diskGb?: number; /** * Memory (GB) needed. */ - memoryGb: number; + memoryGb?: number; /** * User specified volumes. */ - volumes: Schema$Volume[]; + volumes?: Schema$Volume[]; } /** * Executes a script to handle the request that matches the URL pattern. @@ -1016,7 +1019,7 @@ export namespace appengine_v1beta4 { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * Reference to a particular snapshot of the source tree used to build and @@ -1027,13 +1030,13 @@ export namespace appengine_v1beta4 { * URI string identifying the repository. Example: * "https://source.developers.google.com/p/app-123/r/default" */ - repository: string; + repository?: string; /** * The canonical, persistent identifier of the deployed revision. Aliases * that include tags or branch names are not allowed. Example (git): * "2198322f89e0bb2e25021667c2ed489d1fd34e6b" */ - revisionId: string; + revisionId?: string; } /** * Files served directly to the user for a given URL, such as images, CSS @@ -1048,32 +1051,32 @@ export namespace appengine_v1beta4 { * enabled, uploads are charged against both your code and static data * storage resource quotas. */ - applicationReadable: boolean; + applicationReadable?: boolean; /** * Path to the directory containing the static files from the application * root directory. Everything after the end of the matched URL pattern is * appended to static_dir to form the full path to the requested file. */ - directory: string; + directory?: string; /** * Time a static file served by this handler should be cached. */ - expiration: string; + expiration?: string; /** * HTTP headers to use for all responses from these URLs. */ - httpHeaders: any; + httpHeaders?: any; /** * MIME type used to serve all files served by this handler. Defaults to * file-specific MIME types, which are direved from each file's filename * extension. */ - mimeType: string; + mimeType?: string; /** * Whether this handler should match the request if the file referenced by * the handler does not exist. */ - requireMatchingFile: boolean; + requireMatchingFile?: boolean; } /** * Files served directly to the user for a given URL, such as images, CSS @@ -1089,37 +1092,37 @@ export namespace appengine_v1beta4 { * uploads are charged against both your code and static data storage * resource quotas. */ - applicationReadable: boolean; + applicationReadable?: boolean; /** * Time a static file served by this handler should be cached. */ - expiration: string; + expiration?: string; /** * HTTP headers to use for all responses from these URLs. */ - httpHeaders: any; + httpHeaders?: any; /** * MIME type used to serve all files served by this handler. Defaults to * file-specific MIME types, which are derived from each file's filename * extension. */ - mimeType: string; + mimeType?: string; /** * Path to the static files matched by the URL pattern, from the application * root directory. The path can refer to text matched in groupings in the * URL pattern. */ - path: string; + path?: string; /** * Whether this handler should match the request if the file referenced by * the handler does not exist. */ - requireMatchingFile: boolean; + requireMatchingFile?: boolean; /** * Regular expression that matches the file paths for all files that should * be referenced by this handler. */ - uploadPathRegex: string; + uploadPathRegex?: string; } /** * The Status type defines a logical error model that is suitable for @@ -1160,18 +1163,18 @@ export namespace appengine_v1beta4 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Traffic routing configuration for versions within a single module. Traffic @@ -1188,13 +1191,13 @@ export namespace appengine_v1beta4 { * for IP-based splits and up to three decimal places is supported for * cookie-based splits. */ - allocations: any; + allocations?: any; /** * Mechanism used to determine which version a request is sent to. The * traffic selection algorithm will be stable for either type until * allocations are changed. */ - shardBy: string; + shardBy?: string; } /** * Rules to match an HTTP request and dispatch that request to a module. @@ -1205,18 +1208,18 @@ export namespace appengine_v1beta4 { * specified before a period: "*.".Defaults to matching all * domains: "*". */ - domain: string; + domain?: string; /** * Resource ID of a module in this application that should serve the matched * request. The module must already exist. Example: default. */ - module: string; + module?: string; /** * Pathname within the host. Must start with a "/". A single * "*" can be included at the end of the path. The sum of the * lengths of the domain and path may not exceed 100 characters. */ - path: string; + path?: string; } /** * URL pattern and description of how the URL should be handled. App Engine @@ -1227,46 +1230,46 @@ export namespace appengine_v1beta4 { /** * Uses API Endpoints to handle requests. */ - apiEndpoint: Schema$ApiEndpointHandler; + apiEndpoint?: Schema$ApiEndpointHandler; /** * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. */ - login: string; + login?: string; /** * 30x code to use when performing redirects for the secure field. Defaults * to 302. */ - redirectHttpResponseCode: string; + redirectHttpResponseCode?: string; /** * Executes a script to handle the request that matches this URL pattern. */ - script: Schema$ScriptHandler; + script?: Schema$ScriptHandler; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * Serves the entire contents of a directory as static files.This attribute * is deprecated. You can mimic the behavior of static directories using * static files. */ - staticDirectory: Schema$StaticDirectoryHandler; + staticDirectory?: Schema$StaticDirectoryHandler; /** * Returns the contents of a file, such as an image, as the response. */ - staticFiles: Schema$StaticFilesHandler; + staticFiles?: Schema$StaticFilesHandler; /** * A URL prefix. Uses regular expression syntax, which means regexp special * characters must be escaped, but should not contain groupings. All URLs * that begin with this prefix are handled by this handler, using the * portion of the URL after the prefix as part of the file path. */ - urlRegex: string; + urlRegex?: string; } /** * A Version resource is a specific set of source code and configuration files @@ -1278,28 +1281,28 @@ export namespace appengine_v1beta4 { * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned * in GET requests if view=FULL is set. */ - apiConfig: Schema$ApiConfigHandler; + apiConfig?: Schema$ApiConfigHandler; /** * Automatic scaling is based on request rate, response latencies, and other * application metrics. */ - automaticScaling: Schema$AutomaticScaling; + automaticScaling?: Schema$AutomaticScaling; /** * A module with basic scaling will create an instance when the application * receives a request. The instance will be turned down when the app becomes * idle. Basic scaling is ideal for work that is intermittent or driven by * user activity. */ - basicScaling: Schema$BasicScaling; + basicScaling?: Schema$BasicScaling; /** * Metadata settings that are supplied to this version to enable beta * runtime features. */ - betaSettings: any; + betaSettings?: any; /** * Time that this version was created.@OutputOnly */ - creationTime: string; + creationTime?: string; /** * Duration that static files should be cached by web proxies and browsers. * Only applicable if the corresponding StaticFilesHandler @@ -1307,121 +1310,121 @@ export namespace appengine_v1beta4 { * does not specify its own expiration time.Only returned in GET requests if * view=FULL is set. */ - defaultExpiration: string; + defaultExpiration?: string; /** * Email address of the user who created this version.@OutputOnly */ - deployer: string; + deployer?: string; /** * Code and application artifacts that make up this version.Only returned in * GET requests if view=FULL is set. */ - deployment: Schema$Deployment; + deployment?: Schema$Deployment; /** * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud * Endpoints Extensible Service Proxy will be provided to serve the API * implemented by the app. */ - endpointsApiService: Schema$EndpointsApiService; + endpointsApiService?: Schema$EndpointsApiService; /** * App Engine execution environment to use for this version.Defaults to 1. */ - env: string; + env?: string; /** * Environment variables made available to the application.Only returned in * GET requests if view=FULL is set. */ - envVariables: any; + envVariables?: any; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET * requests if view=FULL is set. */ - errorHandlers: Schema$ErrorHandler[]; + errorHandlers?: Schema$ErrorHandler[]; /** * An ordered list of URL-matching patterns that should be applied to * incoming requests. The first matching URL handles the request and other * request handlers are not attempted.Only returned in GET requests if * view=FULL is set. */ - handlers: Schema$UrlMap[]; + handlers?: Schema$UrlMap[]; /** * Configures health checking for VM instances. Unhealthy instances are * stopped and replaced with new instances. Only applicable for VM * runtimes.Only returned in GET requests if view=FULL is set. */ - healthCheck: Schema$HealthCheck; + healthCheck?: Schema$HealthCheck; /** * Relative name of the version within the module. Example: v1. Version * names can contain only lowercase letters, numbers, or hyphens. Reserved * names: "default", "latest", and any name with the * prefix "ah-". */ - id: string; + id?: string; /** * Before an application can receive email or XMPP messages, the application * must be configured to enable the service. */ - inboundServices: string[]; + inboundServices?: string[]; /** * Instance class that is used to run this version. Valid values are: * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, * B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for * ManualScaling or BasicScaling. */ - instanceClass: string; + instanceClass?: string; /** * Configuration for third-party Python runtime libraries required by the * application.Only returned in GET requests if view=FULL is set. */ - libraries: Schema$Library[]; + libraries?: Schema$Library[]; /** * A module with manual scaling runs continuously, allowing you to perform * complex initialization and rely on the state of its memory over time. */ - manualScaling: Schema$ManualScaling; + manualScaling?: Schema$ManualScaling; /** * Full path to the Version resource in the API. Example: * apps/myapp/modules/default/versions/v1.@OutputOnly */ - name: string; + name?: string; /** * Extra network settings. Only applicable for VM runtimes. */ - network: Schema$Network; + network?: Schema$Network; /** * Files that match this pattern will not be built into this version. Only * applicable for Go runtimes.Only returned in GET requests if view=FULL is * set. */ - nobuildFilesRegex: string; + nobuildFilesRegex?: string; /** * Machine resources for this version. Only applicable for VM runtimes. */ - resources: Schema$Resources; + resources?: Schema$Resources; /** * Desired runtime. Example: python27. */ - runtime: string; + runtime?: string; /** * The version of the API in the given runtime environment. Please see the * app.yaml reference for valid values at * https://cloud.google.com/appengine/docs/standard/<language>/config/appref */ - runtimeApiVersion: string; + runtimeApiVersion?: string; /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is * an invalid value. Defaults to SERVING. */ - servingStatus: string; + servingStatus?: string; /** * Whether multiple requests can be dispatched to this version at once. */ - threadsafe: boolean; + threadsafe?: boolean; /** * Whether to deploy this version in a container on a virtual machine. */ - vm: boolean; + vm?: boolean; } /** * Volumes mounted within the app container. Only applicable for VM runtimes. @@ -1430,17 +1433,18 @@ export namespace appengine_v1beta4 { /** * Unique name for the volume. */ - name: string; + name?: string; /** * Volume size in gigabytes. */ - sizeGb: number; + sizeGb?: number; /** * Underlying volume type, e.g. 'tmpfs'. */ - volumeType: string; + volumeType?: string; } + export class Resource$Apps { root: Appengine; locations: Resource$Apps$Locations; @@ -1477,26 +1481,37 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Apps$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1531,24 +1546,34 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1589,26 +1614,37 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Apps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1630,6 +1666,58 @@ export namespace appengine_v1beta4 { } } } + + export interface Params$Resource$Apps$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export interface Params$Resource$Apps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the application to get. Example: apps/myapp. + */ + appsId?: string; + /** + * Certain resources associated with an application are created on-demand. + * Controls whether these resources should be created when performing the + * GET operation. If specified and any resources could not be created, the + * request will fail with an error code. Additionally, this parameter can + * cause the request to take longer to complete. + */ + ensureResourcesExist?: boolean; + } + export interface Params$Resource$Apps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Application resource to update. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + mask?: string; + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export class Resource$Apps$Locations { root: Appengine; constructor(root: Appengine) { @@ -1655,23 +1743,34 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1709,28 +1808,39 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Locations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1753,6 +1863,47 @@ export namespace appengine_v1beta4 { } } + export interface Params$Resource$Apps$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Resource name for the location. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + locationsId?: string; + } + export interface Params$Resource$Apps$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The resource that owns the locations collection, if + * applicable. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Modules { root: Appengine; versions: Resource$Apps$Modules$Versions; @@ -1780,26 +1931,39 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Modules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Modules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Modules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Modules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Modules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1835,23 +1999,33 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Modules$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Modules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Modules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Modules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Modules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1888,28 +2062,38 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Modules$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Modules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Modules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Modules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Modules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1948,26 +2132,38 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Apps$Modules$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Modules$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Modules$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Modules$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Modules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1989,6 +2185,99 @@ export namespace appengine_v1beta4 { } } } + + export interface Params$Resource$Apps$Modules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + } + export interface Params$Resource$Apps$Modules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + } + export interface Params$Resource$Apps$Modules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Modules$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/modules/default. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + mask?: string; + /** + * Set to true to gradually shift traffic to one or more versions that you + * specify. By default, traffic is shifted immediately. For gradual traffic + * migration, the target versions must be located within instances that are + * configured for both warmup requests + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#inboundservicetype) + * and automatic scaling + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#automaticscaling). + * You must specify the shardBy + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules#shardby) + * field in the Module resource. Gradual traffic migration is not supported + * in the App Engine flexible environment. For examples, see Migrating and + * Splitting Traffic + * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). + */ + migrateTraffic?: boolean; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Request body metadata + */ + resource?: Schema$Module; + } + export class Resource$Apps$Modules$Versions { root: Appengine; instances: Resource$Apps$Modules$Versions$Instances; @@ -2017,26 +2306,39 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Modules$Versions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Modules$Versions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Modules$Versions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Apps$Modules$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2074,26 +2376,39 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Modules$Versions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Modules$Versions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Modules$Versions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Modules$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2135,23 +2450,34 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Modules$Versions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Modules$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Modules$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Modules$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Modules$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2192,28 +2518,40 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Modules$Versions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Modules$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Modules$Versions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Modules$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2267,26 +2605,39 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Modules$Versions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Modules$Versions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Modules$Versions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Modules$Versions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2310,6 +2661,128 @@ export namespace appengine_v1beta4 { } } } + + export interface Params$Resource$Apps$Modules$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/modules/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export interface Params$Resource$Apps$Modules$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Modules$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Controls the set of fields returned in the Get response. + */ + view?: string; + } + export interface Params$Resource$Apps$Modules$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Controls the set of fields returned in the List response. + */ + view?: string; + } + export interface Params$Resource$Apps$Modules$Versions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/modules/default/versions/1. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + mask?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export class Resource$Apps$Modules$Versions$Instances { root: Appengine; constructor(root: Appengine) { @@ -2343,26 +2816,40 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - debug(params?: any, options?: MethodOptions): - AxiosPromise; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Modules$Versions$Instances$Debug, + options?: MethodOptions): AxiosPromise; + debug( + params: Params$Resource$Apps$Modules$Versions$Instances$Debug, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Modules$Versions$Instances$Debug, + callback: BodyResponseCallback): void; + debug(callback: BodyResponseCallback): void; + debug( + paramsOrCallback?: + Params$Resource$Apps$Modules$Versions$Instances$Debug| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Instances$Debug; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Instances$Debug; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2402,26 +2889,40 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Modules$Versions$Instances$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Modules$Versions$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Apps$Modules$Versions$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Apps$Modules$Versions$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2461,23 +2962,34 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Modules$Versions$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Modules$Versions$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Modules$Versions$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Modules$Versions$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2520,28 +3032,40 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Modules$Versions$Instances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Modules$Versions$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Modules$Versions$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Modules$Versions$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Modules$Versions$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Modules$Versions$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2566,6 +3090,111 @@ export namespace appengine_v1beta4 { } } + export interface Params$Resource$Apps$Modules$Versions$Instances$Debug { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$DebugInstanceRequest; + } + export interface Params$Resource$Apps$Modules$Versions$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Modules$Versions$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Modules$Versions$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/modules/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + modulesId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export class Resource$Apps$Operations { @@ -2595,23 +3224,35 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2658,28 +3299,40 @@ export namespace appengine_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2701,4 +3354,43 @@ export namespace appengine_v1beta4 { } } } + + export interface Params$Resource$Apps$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation resource. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + operationsId?: string; + } + export interface Params$Resource$Apps$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation's parent resource. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/appengine/v1beta5.ts b/src/apis/appengine/v1beta5.ts index 4b7517f1d58..41a16e234c2 100644 --- a/src/apis/appengine/v1beta5.ts +++ b/src/apis/appengine/v1beta5.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appengine_v1beta5 { + export interface Options extends GlobalOptions { version: 'v1beta5'; } + /** * App Engine Admin API * @@ -76,23 +79,23 @@ export namespace appengine_v1beta5 { * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. Defaults to optional. */ - login: string; + login?: string; /** * Path to the script from the application root directory. */ - script: string; + script?: string; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * URL to serve the endpoint at. */ - url: string; + url?: string; } /** * Uses Google Cloud Endpoints to handle requests. @@ -101,7 +104,7 @@ export namespace appengine_v1beta5 { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * An Application resource contains the top-level configuration of an App @@ -112,40 +115,40 @@ export namespace appengine_v1beta5 { * Google Apps authentication domain that controls which users can access * this application.Defaults to open access for any Google Account. */ - authDomain: string; + authDomain?: string; /** * A Google Cloud Storage bucket that can be used for storing files * associated with this application. This bucket is associated with the * application and can be used by the gcloud deployment commands.@OutputOnly */ - codeBucket: string; + codeBucket?: string; /** * A Google Cloud Storage bucket that can be used by the application to * store content.@OutputOnly */ - defaultBucket: string; + defaultBucket?: string; /** * Cookie expiration policy for this application. */ - defaultCookieExpiration: string; + defaultCookieExpiration?: string; /** * Hostname used to reach the application, as resolved by App * Engine.@OutputOnly */ - defaultHostname: string; + defaultHostname?: string; /** * HTTP path dispatch rules for requests to the application that do not * explicitly target a service or version. Rules are * order-dependent.@OutputOnly */ - dispatchRules: Schema$UrlDispatchRule[]; - iap: Schema$IdentityAwareProxy; + dispatchRules?: Schema$UrlDispatchRule[]; + iap?: Schema$IdentityAwareProxy; /** * Identifier of the Application resource. This identifier is equivalent to * the project ID of the Google Cloud Platform project where you want to * deploy your application. Example: myapp. */ - id: string; + id?: string; /** * Location from which this application will be run. Application instances * will run out of data centers in the chosen location, which is also where @@ -153,12 +156,12 @@ export namespace appengine_v1beta5 { * us-central.Options are:us-central - Central USeurope-west - Western * Europeus-east1 - Eastern US */ - location: string; + location?: string; /** * Full path to the Application resource in the API. Example: * apps/myapp.@OutputOnly */ - name: string; + name?: string; } /** * Automatic scaling is based on request rate, response latencies, and other @@ -171,57 +174,57 @@ export namespace appengine_v1beta5 { * changes to the number of virtual machines. Only applicable for VM * runtimes. */ - coolDownPeriod: string; + coolDownPeriod?: string; /** * Target scaling by CPU usage. */ - cpuUtilization: Schema$CpuUtilization; + cpuUtilization?: Schema$CpuUtilization; /** * Target scaling by disk usage. */ - diskUtilization: Schema$DiskUtilization; + diskUtilization?: Schema$DiskUtilization; /** * Number of concurrent requests an automatic scaling instance can accept * before the scheduler spawns a new instance.Defaults to a runtime-specific * value. */ - maxConcurrentRequests: number; + maxConcurrentRequests?: number; /** * Maximum number of idle instances that should be maintained for this * version. */ - maxIdleInstances: number; + maxIdleInstances?: number; /** * Maximum amount of time that a request should wait in the pending queue * before starting a new instance to handle it. */ - maxPendingLatency: string; + maxPendingLatency?: string; /** * Maximum number of instances that should be started to handle requests. */ - maxTotalInstances: number; + maxTotalInstances?: number; /** * Minimum number of idle instances that should be maintained for this * version. Only applicable for the default version of a module. */ - minIdleInstances: number; + minIdleInstances?: number; /** * Minimum amount of time a request should wait in the pending queue before * starting a new instance to handle it. */ - minPendingLatency: string; + minPendingLatency?: string; /** * Minimum number of instances that should be maintained for this version. */ - minTotalInstances: number; + minTotalInstances?: number; /** * Target scaling by network usage. */ - networkUtilization: Schema$NetworkUtilization; + networkUtilization?: Schema$NetworkUtilization; /** * Target scaling by request utilization. */ - requestUtilization: Schema$RequestUtilization; + requestUtilization?: Schema$RequestUtilization; } /** * A service with basic scaling will create an instance when the application @@ -234,11 +237,11 @@ export namespace appengine_v1beta5 { * Duration of time after the last request that an instance must wait before * the instance is shut down. */ - idleTimeout: string; + idleTimeout?: string; /** * Maximum number of instances to create for this version. */ - maxInstances: number; + maxInstances?: number; } /** * Docker image that is used to create a container and start a VM instance for @@ -252,7 +255,7 @@ export namespace appengine_v1beta5 { * "gcr.io/my-project/image:tag" or * "gcr.io/my-project/image@digest" */ - image: string; + image?: string; } /** * Target scaling by CPU usage. @@ -261,12 +264,12 @@ export namespace appengine_v1beta5 { /** * Period of time over which CPU utilization is calculated. */ - aggregationWindowLength: string; + aggregationWindowLength?: string; /** * Target CPU utilization ratio to maintain when scaling. Must be between 0 * and 1. */ - targetUtilization: number; + targetUtilization?: number; } /** * Metadata for the given google.longrunning.Operation during a @@ -277,7 +280,7 @@ export namespace appengine_v1beta5 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -288,7 +291,7 @@ export namespace appengine_v1beta5 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Metadata for the given google.longrunning.Operation during a @@ -299,7 +302,7 @@ export namespace appengine_v1beta5 { * The Cloud Build ID if one was created as part of the version create. * @OutputOnly */ - cloudBuildId: string; + cloudBuildId?: string; } /** * Request message for Instances.DebugInstance. @@ -312,7 +315,7 @@ export namespace appengine_v1beta5 { * more information, see Adding and Removing SSH Keys * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). */ - sshKey: string; + sshKey?: string; } /** * Code and application artifacts used to deploy a version to App Engine. @@ -322,19 +325,19 @@ export namespace appengine_v1beta5 { * The Docker image for the container that runs the version. Only applicable * for instances running in the App Engine flexible environment. */ - container: Schema$ContainerInfo; + container?: Schema$ContainerInfo; /** * Manifest of the files stored in Google Cloud Storage that are included as * part of this version. All files must be readable using the credentials * supplied with this call. */ - files: any; + files?: any; /** * Origin of the source code for this deployment. There can be more than one * source reference per version if source code is distributed among multiple * repositories. */ - sourceReferences: Schema$SourceReference[]; + sourceReferences?: Schema$SourceReference[]; } /** * Target scaling by disk usage. Only applicable for VM runtimes. @@ -343,19 +346,19 @@ export namespace appengine_v1beta5 { /** * Target bytes read per second. */ - targetReadBytesPerSec: number; + targetReadBytesPerSec?: number; /** * Target ops read per second. */ - targetReadOpsPerSec: number; + targetReadOpsPerSec?: number; /** * Target bytes written per second. */ - targetWriteBytesPerSec: number; + targetWriteBytesPerSec?: number; /** * Target ops written per second. */ - targetWriteOpsPerSec: number; + targetWriteOpsPerSec?: number; } /** * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The @@ -373,18 +376,18 @@ export namespace appengine_v1beta5 { * keep the Endpoints service configuration id updated with each rollout, * specify RolloutStrategy.MANAGED and omit config_id. */ - configId: string; + configId?: string; /** * Endpoints service name which is the name of the "service" * resource in the Service Management API. For example * "myapi.endpoints.myproject.cloud.goog" */ - name: string; + name?: string; /** * Endpoints rollout strategy. If FIXED, config_id must be specified. If * MANAGED, config_id must be omitted. */ - rolloutStrategy: string; + rolloutStrategy?: string; } /** * Custom static error page to be served when an error occurs. @@ -393,15 +396,15 @@ export namespace appengine_v1beta5 { /** * Error condition this handler applies to. */ - errorCode: string; + errorCode?: string; /** * MIME type of file. Defaults to text/html. */ - mimeType: string; + mimeType?: string; /** * Static file content to be served for this error. */ - staticFile: string; + staticFile?: string; } /** * Single source file that is part of the version to be deployed. Each source @@ -412,17 +415,17 @@ export namespace appengine_v1beta5 { * The MIME type of the file.Defaults to the value from Google Cloud * Storage. */ - mimeType: string; + mimeType?: string; /** * The SHA1 hash of the file, in hex. */ - sha1Sum: string; + sha1Sum?: string; /** * URL source to use to fetch this file. Must be a URL to a resource in * Google Cloud Storage in the form * 'http(s)://storage.googleapis.com/<bucket>/<object>'. */ - sourceUrl: string; + sourceUrl?: string; } /** * Health checking configuration for VM instances. Unhealthy instances are @@ -433,35 +436,35 @@ export namespace appengine_v1beta5 { /** * Interval between health checks. */ - checkInterval: string; + checkInterval?: string; /** * Whether to explicitly disable health checks for this instance. */ - disableHealthCheck: boolean; + disableHealthCheck?: boolean; /** * Number of consecutive successful health checks required before receiving * traffic. */ - healthyThreshold: number; + healthyThreshold?: number; /** * Host header to send when performing an HTTP health check. Example: * "myapp.appspot.com" */ - host: string; + host?: string; /** * Number of consecutive failed health checks required before an instance is * restarted. */ - restartThreshold: number; + restartThreshold?: number; /** * Time before the health check is considered failed. */ - timeout: string; + timeout?: string; /** * Number of consecutive failed health checks required before removing * traffic. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Identity-Aware Proxy @@ -472,21 +475,21 @@ export namespace appengine_v1beta5 { * incoming requests.If true, the oauth2_client_id and oauth2_client_secret * fields must be non-empty. */ - enabled: boolean; + enabled?: boolean; /** * OAuth2 client ID to use for the authentication flow. */ - oauth2ClientId: string; + oauth2ClientId?: string; /** * For security reasons, this value cannot be retrieved via the API. * Instead, the SHA-256 hash of the value is returned in the * oauth2_client_secret_sha256 field.@InputOnly */ - oauth2ClientSecret: string; + oauth2ClientSecret?: string; /** * Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * An Instance resource is the computing unit that App Engine uses to @@ -496,75 +499,75 @@ export namespace appengine_v1beta5 { /** * App Engine release this instance is running on.@OutputOnly */ - appEngineRelease: string; + appEngineRelease?: string; /** * Availability of the instance.@OutputOnly */ - availability: string; + availability?: string; /** * Average latency (ms) over the last minute.@OutputOnly */ - averageLatency: number; + averageLatency?: number; /** * Number of errors since this instance was started.@OutputOnly */ - errors: number; + errors?: number; /** * Relative name of the instance within the version. Example: * instance-1.@OutputOnly */ - id: string; + id?: string; /** * Total memory in use (bytes).@OutputOnly */ - memoryUsage: string; + memoryUsage?: string; /** * Full path to the Instance resource in the API. Example: * apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly */ - name: string; + name?: string; /** * Average queries per second (QPS) over the last minute.@OutputOnly */ - qps: number; + qps?: number; /** * Number of requests since this instance was started.@OutputOnly */ - requests: number; + requests?: number; /** * Time that this instance was started.@OutputOnly */ - startTimestamp: string; + startTimestamp?: string; /** * Virtual machine ID of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmId: string; + vmId?: string; /** * The IP address of this instance. Only applicable for instances in App * Engine flexible environment.@OutputOnly */ - vmIp: string; + vmIp?: string; /** * Name of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmName: string; + vmName?: string; /** * Status of the virtual machine where this instance lives. Only applicable * for instances in App Engine flexible environment.@OutputOnly */ - vmStatus: string; + vmStatus?: string; /** * Whether this instance is in debug mode. Only applicable for instances in * App Engine flexible environment.@OutputOnly */ - vmUnlocked: boolean; + vmUnlocked?: boolean; /** * Zone where the virtual machine is located. Only applicable for instances * in App Engine flexible environment.@OutputOnly */ - vmZoneName: string; + vmZoneName?: string; } /** * Third-party Python runtime library that is required by the application. @@ -573,11 +576,11 @@ export namespace appengine_v1beta5 { /** * Name of the library. Example: "django". */ - name: string; + name?: string; /** * Version of the library to select, or "latest". */ - version: string; + version?: string; } /** * Response message for Instances.ListInstances. @@ -586,11 +589,11 @@ export namespace appengine_v1beta5 { /** * The instances belonging to the requested version. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -599,11 +602,11 @@ export namespace appengine_v1beta5 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -612,11 +615,11 @@ export namespace appengine_v1beta5 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response message for Services.ListServices. @@ -625,11 +628,11 @@ export namespace appengine_v1beta5 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The services belonging to the requested application. */ - services: Schema$Service[]; + services?: Schema$Service[]; } /** * Response message for Versions.ListVersions. @@ -638,11 +641,11 @@ export namespace appengine_v1beta5 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The versions belonging to the requested service. */ - versions: Schema$Version[]; + versions?: Schema$Version[]; } /** * A resource that represents Google Cloud Platform location. @@ -652,26 +655,26 @@ export namespace appengine_v1beta5 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: "us-east1". */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: "projects/example-project/locations/us-east1" */ - name: string; + name?: string; } /** * Metadata for the given google.cloud.location.Location. @@ -681,12 +684,12 @@ export namespace appengine_v1beta5 { * App Engine flexible environment is available in the given * location.@OutputOnly */ - flexibleEnvironmentAvailable: boolean; + flexibleEnvironmentAvailable?: boolean; /** * App Engine standard environment is available in the given * location.@OutputOnly */ - standardEnvironmentAvailable: boolean; + standardEnvironmentAvailable?: boolean; } /** * A service with manual scaling runs continuously, allowing you to perform @@ -699,7 +702,7 @@ export namespace appengine_v1beta5 { * (https://cloud.google.com/appengine/docs/python/modules/functions) * set_num_instances() function. */ - instances: number; + instances?: number; } /** * Extra network settings. Only applicable for VM runtimes. @@ -709,16 +712,16 @@ export namespace appengine_v1beta5 { * List of ports, or port pairs, to forward from the virtual machine to the * application container. */ - forwardedPorts: string[]; + forwardedPorts?: string[]; /** * Tag to apply to the VM instance during creation. */ - instanceTag: string; + instanceTag?: string; /** * Google Cloud Platform network where the virtual machines are created. * Specify the short name, not the resource path.Defaults to default. */ - name: string; + name?: string; /** * Google Cloud Platform sub-network where the virtual machines are created. * Specify the short name, not the resource path.If a subnetwork name is @@ -734,7 +737,7 @@ export namespace appengine_v1beta5 { * the IPCidrRange of the subnetwork.If specified, the subnetwork must exist * in the same region as the Flex app. */ - subnetworkName: string; + subnetworkName?: string; } /** * Target scaling by network usage. Only applicable for VM runtimes. @@ -743,19 +746,19 @@ export namespace appengine_v1beta5 { /** * Target bytes received per second. */ - targetReceivedBytesPerSec: number; + targetReceivedBytesPerSec?: number; /** * Target packets received per second. */ - targetReceivedPacketsPerSec: number; + targetReceivedPacketsPerSec?: number; /** * Target bytes sent per second. */ - targetSentBytesPerSec: number; + targetSentBytesPerSec?: number; /** * Target packets sent per second. */ - targetSentPacketsPerSec: number; + targetSentPacketsPerSec?: number; } /** * This resource represents a long-running operation that is the result of a @@ -767,24 +770,24 @@ export namespace appengine_v1beta5 { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -794,7 +797,7 @@ export namespace appengine_v1beta5 { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * Metadata for the given google.longrunning.Operation. @@ -803,141 +806,141 @@ export namespace appengine_v1beta5 { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Type of this operation. Deprecated, use method field instead. Example: * "create_version".@OutputOnly */ - operationType: string; + operationType?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/modules/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1 { - createVersionMetadata: Schema$CreateVersionMetadataV1; + createVersionMetadata?: Schema$CreateVersionMetadataV1; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Alpha { - createVersionMetadata: Schema$CreateVersionMetadataV1Alpha; + createVersionMetadata?: Schema$CreateVersionMetadataV1Alpha; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. */ export interface Schema$OperationMetadataV1Beta { - createVersionMetadata: Schema$CreateVersionMetadataV1Beta; + createVersionMetadata?: Schema$CreateVersionMetadataV1Beta; /** * Time that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Ephemeral message that may change every time the operation is polled. * @OutputOnly */ - ephemeralMessage: string; + ephemeralMessage?: string; /** * Time that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method that initiated this operation. Example: * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; /** * Durable messages that persist on every operation poll. @OutputOnly */ - warning: string[]; + warning?: string[]; } /** * Metadata for the given google.longrunning.Operation. @@ -946,25 +949,25 @@ export namespace appengine_v1beta5 { /** * Timestamp that this operation completed.@OutputOnly */ - endTime: string; + endTime?: string; /** * Timestamp that this operation was created.@OutputOnly */ - insertTime: string; + insertTime?: string; /** * API method name that initiated this operation. Example: * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly */ - method: string; + method?: string; /** * Name of the resource that this operation is acting on. Example: * apps/myapp/services/default.@OutputOnly */ - target: string; + target?: string; /** * User who requested this operation.@OutputOnly */ - user: string; + user?: string; } /** * Target scaling by request utilization. Only applicable for VM runtimes. @@ -973,11 +976,11 @@ export namespace appengine_v1beta5 { /** * Target number of concurrent requests. */ - targetConcurrentRequests: number; + targetConcurrentRequests?: number; /** * Target requests per second. */ - targetRequestCountPerSec: number; + targetRequestCountPerSec?: number; } /** * Machine resources for a version. @@ -986,19 +989,19 @@ export namespace appengine_v1beta5 { /** * Number of CPU cores needed. */ - cpu: number; + cpu?: number; /** * Disk size (GB) needed. */ - diskGb: number; + diskGb?: number; /** * Memory (GB) needed. */ - memoryGb: number; + memoryGb?: number; /** * Volumes mounted within the app container. */ - volumes: Schema$Volume[]; + volumes?: Schema$Volume[]; } /** * Executes a script to handle the request that matches the URL pattern. @@ -1007,7 +1010,7 @@ export namespace appengine_v1beta5 { /** * Path to the script from the application root directory. */ - scriptPath: string; + scriptPath?: string; } /** * A Service resource is a logical component of an application that can share @@ -1023,17 +1026,17 @@ export namespace appengine_v1beta5 { * Relative name of the service within the application. Example: * default.@OutputOnly */ - id: string; + id?: string; /** * Full path to the Service resource in the API. Example: * apps/myapp/services/default.@OutputOnly */ - name: string; + name?: string; /** * Mapping that defines fractional HTTP traffic diversion to different * versions within the service. */ - split: Schema$TrafficSplit; + split?: Schema$TrafficSplit; } /** * Reference to a particular snapshot of the source tree used to build and @@ -1044,13 +1047,13 @@ export namespace appengine_v1beta5 { * URI string identifying the repository. Example: * "https://source.developers.google.com/p/app-123/r/default" */ - repository: string; + repository?: string; /** * The canonical, persistent identifier of the deployed revision. Aliases * that include tags or branch names are not allowed. Example (git): * "2198322f89e0bb2e25021667c2ed489d1fd34e6b" */ - revisionId: string; + revisionId?: string; } /** * Files served directly to the user for a given URL, such as images, CSS @@ -1066,37 +1069,37 @@ export namespace appengine_v1beta5 { * uploads are charged against both your code and static data storage * resource quotas. */ - applicationReadable: boolean; + applicationReadable?: boolean; /** * Time a static file served by this handler should be cached. */ - expiration: string; + expiration?: string; /** * HTTP headers to use for all responses from these URLs. */ - httpHeaders: any; + httpHeaders?: any; /** * MIME type used to serve all files served by this handler. Defaults to * file-specific MIME types, which are derived from each file's filename * extension. */ - mimeType: string; + mimeType?: string; /** * Path to the static files matched by the URL pattern, from the application * root directory. The path can refer to text matched in groupings in the * URL pattern. */ - path: string; + path?: string; /** * Whether this handler should match the request if the file referenced by * the handler does not exist. */ - requireMatchingFile: boolean; + requireMatchingFile?: boolean; /** * Regular expression that matches the file paths for all files that should * be referenced by this handler. */ - uploadPathRegex: string; + uploadPathRegex?: string; } /** * The Status type defines a logical error model that is suitable for @@ -1137,18 +1140,18 @@ export namespace appengine_v1beta5 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Traffic routing configuration for versions within a single service. Traffic @@ -1165,13 +1168,13 @@ export namespace appengine_v1beta5 { * for IP-based splits and up to three decimal places is supported for * cookie-based splits. */ - allocations: any; + allocations?: any; /** * Mechanism used to determine which version a request is sent to. The * traffic selection algorithm will be stable for either type until * allocations are changed. */ - shardBy: string; + shardBy?: string; } /** * Rules to match an HTTP request and dispatch that request to a service. @@ -1182,18 +1185,18 @@ export namespace appengine_v1beta5 { * specified before a period: "*.".Defaults to matching all * domains: "*". */ - domain: string; + domain?: string; /** * Pathname within the host. Must start with a "/". A single * "*" can be included at the end of the path. The sum of the * lengths of the domain and path may not exceed 100 characters. */ - path: string; + path?: string; /** * Resource id of a service in this application that should serve the * matched request. The service must already exist. Example: default. */ - service: string; + service?: string; } /** * URL pattern and description of how the URL should be handled. App Engine @@ -1204,40 +1207,40 @@ export namespace appengine_v1beta5 { /** * Uses API Endpoints to handle requests. */ - apiEndpoint: Schema$ApiEndpointHandler; + apiEndpoint?: Schema$ApiEndpointHandler; /** * Action to take when users access resources that require authentication. * Defaults to redirect. */ - authFailAction: string; + authFailAction?: string; /** * Level of login required to access this resource. */ - login: string; + login?: string; /** * 30x code to use when performing redirects for the secure field. Defaults * to 302. */ - redirectHttpResponseCode: string; + redirectHttpResponseCode?: string; /** * Executes a script to handle the request that matches this URL pattern. */ - script: Schema$ScriptHandler; + script?: Schema$ScriptHandler; /** * Security (HTTPS) enforcement for this URL. */ - securityLevel: string; + securityLevel?: string; /** * Returns the contents of a file, such as an image, as the response. */ - staticFiles: Schema$StaticFilesHandler; + staticFiles?: Schema$StaticFilesHandler; /** * A URL prefix. Uses regular expression syntax, which means regexp special * characters must be escaped, but should not contain groupings. All URLs * that begin with this prefix are handled by this handler, using the * portion of the URL after the prefix as part of the file path. */ - urlRegex: string; + urlRegex?: string; } /** * A Version resource is a specific set of source code and configuration files @@ -1249,28 +1252,28 @@ export namespace appengine_v1beta5 { * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned * in GET requests if view=FULL is set. */ - apiConfig: Schema$ApiConfigHandler; + apiConfig?: Schema$ApiConfigHandler; /** * Automatic scaling is based on request rate, response latencies, and other * application metrics. */ - automaticScaling: Schema$AutomaticScaling; + automaticScaling?: Schema$AutomaticScaling; /** * A service with basic scaling will create an instance when the application * receives a request. The instance will be turned down when the app becomes * idle. Basic scaling is ideal for work that is intermittent or driven by * user activity. */ - basicScaling: Schema$BasicScaling; + basicScaling?: Schema$BasicScaling; /** * Metadata settings that are supplied to this version to enable beta * runtime features. */ - betaSettings: any; + betaSettings?: any; /** * Time that this version was created.@OutputOnly */ - creationTime: string; + creationTime?: string; /** * Duration that static files should be cached by web proxies and browsers. * Only applicable if the corresponding StaticFilesHandler @@ -1278,126 +1281,126 @@ export namespace appengine_v1beta5 { * does not specify its own expiration time.Only returned in GET requests if * view=FULL is set. */ - defaultExpiration: string; + defaultExpiration?: string; /** * Email address of the user who created this version.@OutputOnly */ - deployer: string; + deployer?: string; /** * Code and application artifacts that make up this version.Only returned in * GET requests if view=FULL is set. */ - deployment: Schema$Deployment; + deployment?: Schema$Deployment; /** * Total size of version files hosted on App Engine disk in * bytes.@OutputOnly */ - diskUsageBytes: string; + diskUsageBytes?: string; /** * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud * Endpoints Extensible Service Proxy will be provided to serve the API * implemented by the app. */ - endpointsApiService: Schema$EndpointsApiService; + endpointsApiService?: Schema$EndpointsApiService; /** * App Engine execution environment to use for this version.Defaults to 1. */ - env: string; + env?: string; /** * Environment variables made available to the application.Only returned in * GET requests if view=FULL is set. */ - envVariables: any; + envVariables?: any; /** * Custom static error pages. Limited to 10KB per page.Only returned in GET * requests if view=FULL is set. */ - errorHandlers: Schema$ErrorHandler[]; + errorHandlers?: Schema$ErrorHandler[]; /** * An ordered list of URL-matching patterns that should be applied to * incoming requests. The first matching URL handles the request and other * request handlers are not attempted.Only returned in GET requests if * view=FULL is set. */ - handlers: Schema$UrlMap[]; + handlers?: Schema$UrlMap[]; /** * Configures health checking for VM instances. Unhealthy instances are be * stopped and replaced with new instances. Only applicable for VM * runtimes.Only returned in GET requests if view=FULL is set. */ - healthCheck: Schema$HealthCheck; + healthCheck?: Schema$HealthCheck; /** * Relative name of the version within the module. Example: v1. Version * names can contain only lowercase letters, numbers, or hyphens. Reserved * names: "default", "latest", and any name with the * prefix "ah-". */ - id: string; + id?: string; /** * Before an application can receive email or XMPP messages, the application * must be configured to enable the service. */ - inboundServices: string[]; + inboundServices?: string[]; /** * Instance class that is used to run this version. Valid values are: * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, * B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for * ManualScaling or BasicScaling. */ - instanceClass: string; + instanceClass?: string; /** * Configuration for third-party Python runtime libraries required by the * application.Only returned in GET requests if view=FULL is set. */ - libraries: Schema$Library[]; + libraries?: Schema$Library[]; /** * A service with manual scaling runs continuously, allowing you to perform * complex initialization and rely on the state of its memory over time. */ - manualScaling: Schema$ManualScaling; + manualScaling?: Schema$ManualScaling; /** * Full path to the Version resource in the API. Example: * apps/myapp/services/default/versions/v1.@OutputOnly */ - name: string; + name?: string; /** * Extra network settings. Only applicable for VM runtimes. */ - network: Schema$Network; + network?: Schema$Network; /** * Files that match this pattern will not be built into this version. Only * applicable for Go runtimes.Only returned in GET requests if view=FULL is * set. */ - nobuildFilesRegex: string; + nobuildFilesRegex?: string; /** * Machine resources for this version. Only applicable for VM runtimes. */ - resources: Schema$Resources; + resources?: Schema$Resources; /** * Desired runtime. Example: python27. */ - runtime: string; + runtime?: string; /** * The version of the API in the given runtime environment. Please see the * app.yaml reference for valid values at * https://cloud.google.com/appengine/docs/standard/<language>/config/appref */ - runtimeApiVersion: string; + runtimeApiVersion?: string; /** * Current serving status of this version. Only the versions with a SERVING * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is * an invalid value. Defaults to SERVING. */ - servingStatus: string; + servingStatus?: string; /** * Whether multiple requests can be dispatched to this version at once. */ - threadsafe: boolean; + threadsafe?: boolean; /** * Whether to deploy this version in a container on a virtual machine. */ - vm: boolean; + vm?: boolean; } /** * Volumes mounted within the app container. Only applicable for VM runtimes. @@ -1406,17 +1409,18 @@ export namespace appengine_v1beta5 { /** * Unique name for the volume. */ - name: string; + name?: string; /** * Volume size in gigabytes. */ - sizeGb: number; + sizeGb?: number; /** * Underlying volume type, e.g. 'tmpfs'. */ - volumeType: string; + volumeType?: string; } + export class Resource$Apps { root: Appengine; locations: Resource$Apps$Locations; @@ -1453,26 +1457,37 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Apps$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1507,24 +1522,34 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Apps$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Apps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1565,26 +1590,37 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Apps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1606,6 +1642,59 @@ export namespace appengine_v1beta5 { } } } + + export interface Params$Resource$Apps$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export interface Params$Resource$Apps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the application to get. Example: apps/myapp. + */ + appsId?: string; + /** + * Certain resources associated with an application are created on-demand. + * Controls whether these resources should be created when performing the + * GET operation. If specified and any resources could not be created, the + * request will fail with an error code. Additionally, this parameter can + * cause the request to take longer to complete. Note: This parameter will + * be deprecated in a future version of the API. + */ + ensureResourcesExist?: boolean; + } + export interface Params$Resource$Apps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the Application resource to update. Example: + * apps/myapp. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + mask?: string; + /** + * Request body metadata + */ + resource?: Schema$Application; + } + export class Resource$Apps$Locations { root: Appengine; constructor(root: Appengine) { @@ -1631,23 +1720,34 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1685,28 +1785,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Locations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1729,6 +1840,47 @@ export namespace appengine_v1beta5 { } } + export interface Params$Resource$Apps$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Resource name for the location. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + locationsId?: string; + } + export interface Params$Resource$Apps$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The resource that owns the locations collection, if + * applicable. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Operations { root: Appengine; constructor(root: Appengine) { @@ -1756,23 +1908,35 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1819,28 +1983,40 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1863,6 +2039,46 @@ export namespace appengine_v1beta5 { } } + export interface Params$Resource$Apps$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation resource. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + operationsId?: string; + } + export interface Params$Resource$Apps$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. The name of the operation's parent resource. + */ + appsId?: string; + /** + * The standard list filter. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Apps$Services { root: Appengine; versions: Resource$Apps$Services$Versions; @@ -1890,26 +2106,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Services$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1945,23 +2174,34 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -1998,28 +2238,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apps$Services$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Apps$Services$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2058,26 +2309,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Services$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Apps$Services$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Apps$Services$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2099,6 +2363,99 @@ export namespace appengine_v1beta5 { } } } + + export interface Params$Resource$Apps$Services$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + } + export interface Params$Resource$Apps$Services$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + } + export interface Params$Resource$Apps$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: apps/myapp. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Apps$Services$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + mask?: string; + /** + * Set to true to gradually shift traffic to one or more versions that you + * specify. By default, traffic is shifted immediately. For gradual traffic + * migration, the target versions must be located within instances that are + * configured for both warmup requests + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#inboundservicetype) + * and automatic scaling + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#automaticscaling). + * You must specify the shardBy + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services#shardby) + * field in the Service resource. Gradual traffic migration is not supported + * in the App Engine flexible environment. For examples, see Migrating and + * Splitting Traffic + * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). + */ + migrateTraffic?: boolean; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Request body metadata + */ + resource?: Schema$Service; + } + export class Resource$Apps$Services$Versions { root: Appengine; instances: Resource$Apps$Services$Versions$Instances; @@ -2127,26 +2484,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Apps$Services$Versions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Apps$Services$Versions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2184,26 +2554,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Versions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2245,23 +2628,34 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Versions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2302,28 +2696,40 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Services$Versions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Services$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Services$Versions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Apps$Services$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2377,26 +2783,39 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Apps$Services$Versions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Apps$Services$Versions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apps$Services$Versions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2420,6 +2839,128 @@ export namespace appengine_v1beta5 { } } } + + export interface Params$Resource$Apps$Services$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. For example: + * "apps/myapp/services/default". + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export interface Params$Resource$Apps$Services$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Controls the set of fields returned in the Get response. + */ + view?: string; + } + export interface Params$Resource$Apps$Services$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Controls the set of fields returned in the List response. + */ + view?: string; + } + export interface Params$Resource$Apps$Services$Versions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource to update. Example: + * apps/myapp/services/default/versions/1. + */ + appsId?: string; + /** + * Standard field mask for the set of fields to be updated. + */ + mask?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export class Resource$Apps$Services$Versions$Instances { root: Appengine; constructor(root: Appengine) { @@ -2453,26 +2994,40 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - debug(params?: any, options?: MethodOptions): - AxiosPromise; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Instances$Debug, + options?: MethodOptions): AxiosPromise; + debug( + params: Params$Resource$Apps$Services$Versions$Instances$Debug, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + debug( + params: Params$Resource$Apps$Services$Versions$Instances$Debug, + callback: BodyResponseCallback): void; + debug(callback: BodyResponseCallback): void; debug( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$Debug| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Debug; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Debug; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2512,26 +3067,40 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Apps$Services$Versions$Instances$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Apps$Services$Versions$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$Services$Versions$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2571,23 +3140,34 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Services$Versions$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Services$Versions$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Services$Versions$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Services$Versions$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2630,28 +3210,41 @@ export namespace appengine_v1beta5 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Apps$Services$Versions$Instances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Apps$Services$Versions$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apps$Services$Versions$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Apps$Services$Versions$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Apps$Services$Versions$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Services$Versions$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; const parameters = { options: Object.assign( @@ -2675,4 +3268,109 @@ export namespace appengine_v1beta5 { } } } + + export interface Params$Resource$Apps$Services$Versions$Instances$Debug { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + /** + * Request body metadata + */ + resource?: Schema$DebugInstanceRequest; + } + export interface Params$Resource$Apps$Services$Versions$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. For example: + * "apps/myapp/services/default/versions/v1/instances/instance-1". + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1/instances/instance-1. + */ + appsId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + instancesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } + export interface Params$Resource$Apps$Services$Versions$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Part of `name`. Name of the resource requested. Example: + * apps/myapp/services/default/versions/v1. + */ + appsId?: string; + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + servicesId?: string; + /** + * Part of `name`. See documentation of `appsId`. + */ + versionsId?: string; + } } diff --git a/src/apis/appsactivity/v1.ts b/src/apis/appsactivity/v1.ts index ddd548294de..ae09c05857f 100644 --- a/src/apis/appsactivity/v1.ts +++ b/src/apis/appsactivity/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appsactivity_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * G Suite Activity API * @@ -74,11 +77,11 @@ export namespace appsactivity_v1 { /** * The fields common to all of the singleEvents that make up the Activity. */ - combinedEvent: Schema$Event; + combinedEvent?: Schema$Event; /** * A list of all the Events that make up the Activity. */ - singleEvents: Schema$Event[]; + singleEvents?: Schema$Event[]; } /** * Represents the changes associated with an action taken by a user. @@ -89,42 +92,42 @@ export namespace appsactivity_v1 { * actions are part of a single event. For example, creating a document, * renaming it, and sharing it may be part of a single file-creation event. */ - additionalEventTypes: string[]; + additionalEventTypes?: string[]; /** * The time at which the event occurred formatted as Unix time in * milliseconds. */ - eventTimeMillis: string; + eventTimeMillis?: string; /** * Whether this event is caused by a user being deleted. */ - fromUserDeletion: boolean; + fromUserDeletion?: boolean; /** * Extra information for move type events, such as changes in an * object's parents. */ - move: Schema$Move; + move?: Schema$Move; /** * Extra information for permissionChange type events, such as the user or * group the new permission applies to. */ - permissionChanges: Schema$PermissionChange[]; + permissionChanges?: Schema$PermissionChange[]; /** * The main type of event that occurred. */ - primaryEventType: string; + primaryEventType?: string; /** * Extra information for rename type events, such as the old and new names. */ - rename: Schema$Rename; + rename?: Schema$Rename; /** * Information specific to the Target object modified by the event. */ - target: Schema$Target; + target?: Schema$Target; /** * Represents the user responsible for the event. */ - user: Schema$User; + user?: Schema$User; } /** * The response from the list request. Contains a list of activities and a @@ -134,11 +137,11 @@ export namespace appsactivity_v1 { /** * List of activities. */ - activities: Schema$Activity[]; + activities?: Schema$Activity[]; /** * Token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains information about changes in an object's parents as a result @@ -148,11 +151,11 @@ export namespace appsactivity_v1 { /** * The added parent(s). */ - addedParents: Schema$Parent[]; + addedParents?: Schema$Parent[]; /** * The removed parent(s). */ - removedParents: Schema$Parent[]; + removedParents?: Schema$Parent[]; } /** * Contains information about a parent object. For example, a folder in Drive @@ -162,15 +165,15 @@ export namespace appsactivity_v1 { /** * The parent's ID. */ - id: string; + id?: string; /** * Whether this is the root folder. */ - isRoot: boolean; + isRoot?: boolean; /** * The parent's title. */ - title: string; + title?: string; } /** * Contains information about the permissions and type of access allowed with @@ -181,29 +184,29 @@ export namespace appsactivity_v1 { /** * The name of the user or group the permission applies to. */ - name: string; + name?: string; /** * The ID for this permission. Corresponds to the Drive API's permission * ID returned as part of the Drive Permissions resource. */ - permissionId: string; + permissionId?: string; /** * Indicates the Google Drive permissions role. The role determines a * user's ability to read, write, or comment on the file. */ - role: string; + role?: string; /** * Indicates how widely permissions are granted. */ - type: string; + type?: string; /** * The user's information if the type is USER. */ - user: Schema$User; + user?: Schema$User; /** * Whether the permission requires a link to the file. */ - withLink: boolean; + withLink?: boolean; } /** * Contains information about a Drive object's permissions that changed as @@ -213,11 +216,11 @@ export namespace appsactivity_v1 { /** * Lists all Permission objects added. */ - addedPermissions: Schema$Permission[]; + addedPermissions?: Schema$Permission[]; /** * Lists all Permission objects removed. */ - removedPermissions: Schema$Permission[]; + removedPermissions?: Schema$Permission[]; } /** * Photo information for a user. @@ -226,7 +229,7 @@ export namespace appsactivity_v1 { /** * The URL of the photo. */ - url: string; + url?: string; } /** * Contains information about a renametype event. @@ -235,11 +238,11 @@ export namespace appsactivity_v1 { /** * The new title. */ - newTitle: string; + newTitle?: string; /** * The old title. */ - oldTitle: string; + oldTitle?: string; } /** * Information about the object modified by the event. @@ -249,16 +252,16 @@ export namespace appsactivity_v1 { * The ID of the target. For example, in Google Drive, this is the file or * folder ID. */ - id: string; + id?: string; /** * The MIME type of the target. */ - mimeType: string; + mimeType?: string; /** * The name of the target. For example, in Google Drive, this is the title * of the file. */ - name: string; + name?: string; } /** * A representation of a user. @@ -268,28 +271,29 @@ export namespace appsactivity_v1 { * A boolean which indicates whether the specified User was deleted. If * true, name, photo and permission_id will be omitted. */ - isDeleted: boolean; + isDeleted?: boolean; /** * Whether the user is the authenticated user. */ - isMe: boolean; + isMe?: boolean; /** * The displayable name of the user. */ - name: string; + name?: string; /** * The permission ID associated with this user. Equivalent to the Drive * API's permission ID for this user, returned as part of the Drive * Permissions resource. */ - permissionId: string; + permissionId?: string; /** * The profile photo of the user. Not present if the user has no profile * photo. */ - photo: Schema$Photo; + photo?: Schema$Photo; } + export class Resource$Activities { root: Appsactivity; constructor(root: Appsactivity) { @@ -325,28 +329,38 @@ export namespace appsactivity_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Activities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Activities$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Activities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Activities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -368,4 +382,45 @@ export namespace appsactivity_v1 { } } } + + export interface Params$Resource$Activities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the Drive folder containing the items for which to return + * activities. + */ + 'drive.ancestorId'?: string; + /** + * Identifies the Drive item to return activities for. + */ + 'drive.fileId'?: string; + /** + * Indicates the strategy to use when grouping singleEvents items in the + * associated combinedEvent object. + */ + groupingStrategy?: string; + /** + * The maximum number of events to return on a page. The response includes a + * continuation token if there are more events. + */ + pageSize?: number; + /** + * A token to retrieve a specific page of results. + */ + pageToken?: string; + /** + * The Google service from which to return activities. Possible values of + * source are: - drive.google.com + */ + source?: string; + /** + * Indicates the user to return activity for. Use the special value me to + * indicate the currently authenticated user. + */ + userId?: string; + } } diff --git a/src/apis/appstate/v1.ts b/src/apis/appstate/v1.ts index 0ea569ee9a4..fc92ebc6e75 100644 --- a/src/apis/appstate/v1.ts +++ b/src/apis/appstate/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace appstate_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google App State API * @@ -72,20 +75,20 @@ export namespace appstate_v1 { /** * The current app state version. */ - currentStateVersion: string; + currentStateVersion?: string; /** * The requested data. */ - data: string; + data?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string appstate#getResponse. */ - kind: string; + kind?: string; /** * The key for the data. */ - stateKey: number; + stateKey?: number; } /** * This is a JSON template to convert a list-response for app state. @@ -94,16 +97,16 @@ export namespace appstate_v1 { /** * The app state data. */ - items: Schema$GetResponse[]; + items?: Schema$GetResponse[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string appstate#listResponse. */ - kind: string; + kind?: string; /** * The maximum number of keys allowed for this user. */ - maximumKeyCount: number; + maximumKeyCount?: number; } /** * This is a JSON template for a requests which update app state @@ -112,12 +115,12 @@ export namespace appstate_v1 { /** * The new app state data that your application is trying to update with. */ - data: string; + data?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string appstate#updateRequest. */ - kind: string; + kind?: string; } /** * This is a JSON template for an app state write result. @@ -126,18 +129,19 @@ export namespace appstate_v1 { /** * The version of the data for this key on the server. */ - currentStateVersion: string; + currentStateVersion?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string appstate#writeResult. */ - kind: string; + kind?: string; /** * The written key. */ - stateKey: number; + stateKey?: number; } + export class Resource$States { root: Appstate; constructor(root: Appstate) { @@ -165,26 +169,37 @@ export namespace appstate_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clear(params?: any, options?: MethodOptions): + clear(params?: Params$Resource$States$Clear, options?: MethodOptions): AxiosPromise; clear( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$States$Clear, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; clear( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$States$Clear, + callback: BodyResponseCallback): void; + clear(callback: BodyResponseCallback): void; + clear( + paramsOrCallback?: Params$Resource$States$Clear| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$States$Clear; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$States$Clear; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -223,22 +238,35 @@ export namespace appstate_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$States$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$States$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$States$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$States$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$States$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$States$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -274,24 +302,34 @@ export namespace appstate_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$States$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$States$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$States$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$States$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$States$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$States$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -326,26 +364,37 @@ export namespace appstate_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$States$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$States$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$States$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$States$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$States$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$States$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -384,26 +433,37 @@ export namespace appstate_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$States$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$States$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$States$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$States$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$States$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$States$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -425,4 +485,76 @@ export namespace appstate_v1 { } } } + + export interface Params$Resource$States$Clear { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version of the data to be cleared. Version strings are returned by + * the server. + */ + currentDataVersion?: string; + /** + * The key for the data to be retrieved. + */ + stateKey?: number; + } + export interface Params$Resource$States$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The key for the data to be retrieved. + */ + stateKey?: number; + } + export interface Params$Resource$States$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The key for the data to be retrieved. + */ + stateKey?: number; + } + export interface Params$Resource$States$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to include the full data in addition to the version number + */ + includeData?: boolean; + } + export interface Params$Resource$States$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The version of the app state your application is attempting to update. If + * this does not match the current version, this method will return a + * conflict error. If there is no data stored on the server for this key, + * the update will succeed irrespective of the value of this parameter. + */ + currentStateVersion?: string; + /** + * The key for the data to be retrieved. + */ + stateKey?: number; + /** + * Request body metadata + */ + resource?: Schema$UpdateRequest; + } } diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index 0841fd68987..141ef5c5862 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace bigquery_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * BigQuery API * @@ -82,20 +85,20 @@ export namespace bigquery_v2 { * the column family level. However, the setting at this level takes * precedence if 'encoding' is set at both levels. */ - encoding: string; + encoding?: string; /** * [Optional] If the qualifier is not a valid BigQuery field identifier i.e. * does not match [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided * as the column field name and is used as field name in queries. */ - fieldName: string; + fieldName?: string; /** * [Optional] If this is set, only the latest version of value in this * column are exposed. 'onlyReadLatest' can also be set at the * column family level. However, the setting at this level takes precedence * if 'onlyReadLatest' is set at both levels. */ - onlyReadLatest: boolean; + onlyReadLatest?: boolean; /** * [Required] Qualifier of the column. Columns in the parent column family * that has this exact qualifier are exposed as . field. If the qualifier is @@ -105,8 +108,8 @@ export namespace bigquery_v2 { * qualifier is not a valid BigQuery field identifier i.e. does not match * [a-zA-Z][a-zA-Z0-9_]*, a valid identifier must be provided as field_name. */ - qualifierEncoded: string; - qualifierString: string; + qualifierEncoded?: string; + qualifierString?: string; /** * [Optional] The type to convert the value in cells of this column. The * values are expected to be encoded using HBase Bytes.toBytes function when @@ -116,7 +119,7 @@ export namespace bigquery_v2 { * However, the setting at this level takes precedence if 'type' is * set at both levels. */ - type: string; + type?: string; } export interface Schema$BigtableColumnFamily { /** @@ -125,7 +128,7 @@ export namespace bigquery_v2 { * qualifier matches a qualifier in this list can be accessed as .. Other * columns can be accessed as a list through .Column field. */ - columns: Schema$BigtableColumn[]; + columns?: Schema$BigtableColumn[]; /** * [Optional] The encoding of the values when the type is not STRING. * Acceptable encoding values are: TEXT - indicates values are alphanumeric @@ -134,18 +137,18 @@ export namespace bigquery_v2 { * column by listing that column in 'columns' and specifying an * encoding for it. */ - encoding: string; + encoding?: string; /** * Identifier of the column family. */ - familyId: string; + familyId?: string; /** * [Optional] If this is set only the latest version of value are exposed * for all columns in this column family. This can be overridden for a * specific column by listing that column in 'columns' and * specifying a different setting for that column. */ - onlyReadLatest: boolean; + onlyReadLatest?: boolean; /** * [Optional] The type to convert the value in cells of this column family. * The values are expected to be encoded using HBase Bytes.toBytes function @@ -154,7 +157,7 @@ export namespace bigquery_v2 { * type is BYTES. This can be overridden for a specific column by listing * that column in 'columns' and specifying a type for it. */ - type: string; + type?: string; } export interface Schema$BigtableOptions { /** @@ -166,21 +169,21 @@ export namespace bigquery_v2 { * the table schema and their values are read as BYTES. During a query only * the column families referenced in that query are read from Bigtable. */ - columnFamilies: Schema$BigtableColumnFamily[]; + columnFamilies?: Schema$BigtableColumnFamily[]; /** * [Optional] If field is true, then the column families that are not * specified in columnFamilies list are not exposed in the table schema. * Otherwise, they are read with BYTES type values. The default value is * false. */ - ignoreUnspecifiedColumnFamilies: boolean; + ignoreUnspecifiedColumnFamilies?: boolean; /** * [Optional] If field is true, then the rowkey column families will be read * and converted to string. Otherwise they are read with BYTES type values * and users need to manually cast them with CAST if necessary. The default * value is false. */ - readRowkeyAsString: boolean; + readRowkeyAsString?: boolean; } export interface Schema$Clustering { /** @@ -189,7 +192,7 @@ export namespace bigquery_v2 { * the fields will determine how clusters will be generated, so it is * important. */ - fields: string[]; + fields?: string[]; } export interface Schema$CsvOptions { /** @@ -199,19 +202,19 @@ export namespace bigquery_v2 { * are treated as bad records, and if there are too many bad records, an * invalid error is returned in the job result. The default value is false. */ - allowJaggedRows: boolean; + allowJaggedRows?: boolean; /** * [Optional] Indicates if BigQuery should allow quoted data sections that * contain newline characters in a CSV file. The default value is false. */ - allowQuotedNewlines: boolean; + allowQuotedNewlines?: boolean; /** * [Optional] The character encoding of the data. The supported values are * UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the * data after the raw, binary data has been split using the values of the * quote and fieldDelimiter properties. */ - encoding: string; + encoding?: string; /** * [Optional] The separator for fields in a CSV file. BigQuery converts the * string to ISO-8859-1 encoding, and then uses the first byte of the @@ -219,7 +222,7 @@ export namespace bigquery_v2 { * supports the escape sequence "\t" to specify a tab separator. * The default value is a comma (','). */ - fieldDelimiter: string; + fieldDelimiter?: string; /** * [Optional] The value that is used to quote data sections in a CSV file. * BigQuery converts the string to ISO-8859-1 encoding, and then uses the @@ -229,13 +232,13 @@ export namespace bigquery_v2 { * string. If your data contains quoted newline characters, you must also * set the allowQuotedNewlines property to true. */ - quote: string; + quote?: string; /** * [Optional] The number of rows at the top of a CSV file that BigQuery will * skip when reading the data. The default value is 0. This property is * useful if you have header rows in the file that should be skipped. */ - skipLeadingRows: string; + skipLeadingRows?: string; } export interface Schema$Dataset { /** @@ -248,16 +251,16 @@ export namespace bigquery_v2 { * access.specialGroup: projectOwners; access.role: OWNER; * access.userByEmail: [dataset creator email]; access.role: OWNER; */ - access: any[]; + access?: any[]; /** * [Output-only] The time when this dataset was created, in milliseconds * since the epoch. */ - creationTime: string; + creationTime?: string; /** * [Required] A reference that identifies the dataset. */ - datasetReference: Schema$DatasetReference; + datasetReference?: Schema$DatasetReference; /** * [Optional] The default lifetime of all tables in the dataset, in * milliseconds. The minimum value is 3600000 milliseconds (one hour). Once @@ -270,51 +273,52 @@ export namespace bigquery_v2 { * explicit expirationTime when creating a table, that value takes * precedence over the default expiration time indicated by this property. */ - defaultTableExpirationMs: string; + defaultTableExpirationMs?: string; /** * [Optional] A user-friendly description of the dataset. */ - description: string; + description?: string; /** * [Output-only] A hash of the resource. */ - etag: string; + etag?: string; /** * [Optional] A descriptive name for the dataset. */ - friendlyName: string; + friendlyName?: string; /** * [Output-only] The fully-qualified unique name of the dataset in the * format projectId:datasetId. The dataset name without the project name is * given in the datasetId field. When creating a new dataset, leave this * field blank, and instead specify the datasetId field. */ - id: string; + id?: string; /** * [Output-only] The resource type. */ - kind: string; + kind?: string; /** * The labels associated with this dataset. You can use these to organize * and group your datasets. You can set this property when inserting or * updating a dataset. See Labeling Datasets for more information. */ - labels: any; + labels?: any; /** * [Output-only] The date when this dataset or any of its tables was last * modified, in milliseconds since the epoch. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * The geographic location where the dataset should reside. The default - * value is US. + * value is US. See details at + * https://cloud.google.com/bigquery/docs/dataset-locations. */ - location: string; + location?: string; /** * [Output-only] A URL that can be used to access the resource again. You * can use this URL in Get or Update requests to the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$DatasetList { /** @@ -323,22 +327,22 @@ export namespace bigquery_v2 { * resource, use the Datasets: get method. This property is omitted when * there are no datasets in the project. */ - datasets: any[]; + datasets?: any[]; /** * A hash value of the results page. You can use this property to determine * if the page has changed since the last request. */ - etag: string; + etag?: string; /** * The list type. This property always returns the value * "bigquery#datasetList". */ - kind: string; + kind?: string; /** * A token that can be used to request the next results page. This property * is omitted on the final results page. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$DatasetReference { /** @@ -346,11 +350,11 @@ export namespace bigquery_v2 { * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). * The maximum length is 1,024 characters. */ - datasetId: string; + datasetId?: string; /** * [Optional] The ID of the project containing this dataset. */ - projectId: string; + projectId?: string; } export interface Schema$DestinationTableProperties { /** @@ -359,14 +363,14 @@ export namespace bigquery_v2 { * exists and a value different than the current description is provided, * the job will fail. */ - description: string; + description?: string; /** * [Optional] The friendly name for the destination table. This will only be * used if the destination table is newly created. If the table already * exists and a value different than the current friendly name is provided, * the job will fail. */ - friendlyName: string; + friendlyName?: string; } export interface Schema$EncryptionConfiguration { /** @@ -374,181 +378,181 @@ export namespace bigquery_v2 { * protect destination BigQuery table. The BigQuery Service Account * associated with your project requires access to this encryption key. */ - kmsKeyName: string; + kmsKeyName?: string; } export interface Schema$ErrorProto { /** * Debugging information. This property is internal to Google and should not * be used. */ - debugInfo: string; + debugInfo?: string; /** * Specifies where the error occurred, if present. */ - location: string; + location?: string; /** * A human-readable description of the error. */ - message: string; + message?: string; /** * A short error code that summarizes the error. */ - reason: string; + reason?: string; } export interface Schema$ExplainQueryStage { /** * Number of parallel input segments completed. */ - completedParallelInputs: string; + completedParallelInputs?: string; /** * Milliseconds the average shard spent on CPU-bound tasks. */ - computeMsAvg: string; + computeMsAvg?: string; /** * Milliseconds the slowest shard spent on CPU-bound tasks. */ - computeMsMax: string; + computeMsMax?: string; /** * Relative amount of time the average shard spent on CPU-bound tasks. */ - computeRatioAvg: number; + computeRatioAvg?: number; /** * Relative amount of time the slowest shard spent on CPU-bound tasks. */ - computeRatioMax: number; + computeRatioMax?: number; /** - * Stage end time in milliseconds. + * Stage end time represented as milliseconds since epoch. */ - endMs: string; + endMs?: string; /** * Unique ID for stage within plan. */ - id: string; + id?: string; /** * IDs for stages that are inputs to this stage. */ - inputStages: string[]; + inputStages?: string[]; /** * Human-readable name for stage. */ - name: string; + name?: string; /** * Number of parallel input segments to be processed. */ - parallelInputs: string; + parallelInputs?: string; /** * Milliseconds the average shard spent reading input. */ - readMsAvg: string; + readMsAvg?: string; /** * Milliseconds the slowest shard spent reading input. */ - readMsMax: string; + readMsMax?: string; /** * Relative amount of time the average shard spent reading input. */ - readRatioAvg: number; + readRatioAvg?: number; /** * Relative amount of time the slowest shard spent reading input. */ - readRatioMax: number; + readRatioMax?: number; /** * Number of records read into the stage. */ - recordsRead: string; + recordsRead?: string; /** * Number of records written by the stage. */ - recordsWritten: string; + recordsWritten?: string; /** * Total number of bytes written to shuffle. */ - shuffleOutputBytes: string; + shuffleOutputBytes?: string; /** * Total number of bytes written to shuffle and spilled to disk. */ - shuffleOutputBytesSpilled: string; + shuffleOutputBytesSpilled?: string; /** - * Stage start time in milliseconds. + * Stage start time represented as milliseconds since epoch. */ - startMs: string; + startMs?: string; /** * Current status for the stage. */ - status: string; + status?: string; /** * List of operations within the stage in dependency order (approximately * chronological). */ - steps: Schema$ExplainQueryStep[]; + steps?: Schema$ExplainQueryStep[]; /** * Milliseconds the average shard spent waiting to be scheduled. */ - waitMsAvg: string; + waitMsAvg?: string; /** * Milliseconds the slowest shard spent waiting to be scheduled. */ - waitMsMax: string; + waitMsMax?: string; /** * Relative amount of time the average shard spent waiting to be scheduled. */ - waitRatioAvg: number; + waitRatioAvg?: number; /** * Relative amount of time the slowest shard spent waiting to be scheduled. */ - waitRatioMax: number; + waitRatioMax?: number; /** * Milliseconds the average shard spent on writing output. */ - writeMsAvg: string; + writeMsAvg?: string; /** * Milliseconds the slowest shard spent on writing output. */ - writeMsMax: string; + writeMsMax?: string; /** * Relative amount of time the average shard spent on writing output. */ - writeRatioAvg: number; + writeRatioAvg?: number; /** * Relative amount of time the slowest shard spent on writing output. */ - writeRatioMax: number; + writeRatioMax?: number; } export interface Schema$ExplainQueryStep { /** * Machine-readable operation type. */ - kind: string; + kind?: string; /** * Human-readable stage descriptions. */ - substeps: string[]; + substeps?: string[]; } export interface Schema$ExternalDataConfiguration { /** * Try to detect schema and format options automatically. Any option * specified explicitly will be honored. */ - autodetect: boolean; + autodetect?: boolean; /** * [Optional] Additional options if sourceFormat is set to BIGTABLE. */ - bigtableOptions: Schema$BigtableOptions; + bigtableOptions?: Schema$BigtableOptions; /** * [Optional] The compression type of the data source. Possible values * include GZIP and NONE. The default value is NONE. This setting is ignored * for Google Cloud Bigtable, Google Cloud Datastore backups and Avro * formats. */ - compression: string; + compression?: string; /** * Additional properties to set if sourceFormat is set to CSV. */ - csvOptions: Schema$CsvOptions; + csvOptions?: Schema$CsvOptions; /** * [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS. */ - googleSheetsOptions: Schema$GoogleSheetsOptions; + googleSheetsOptions?: Schema$GoogleSheetsOptions; /** * [Optional] Indicates if BigQuery should allow extra values that are not * represented in the table schema. If true, the extra values are ignored. @@ -560,7 +564,7 @@ export namespace bigquery_v2 { * setting is ignored. Google Cloud Datastore backups: This setting is * ignored. Avro: This setting is ignored. */ - ignoreUnknownValues: boolean; + ignoreUnknownValues?: boolean; /** * [Optional] The maximum number of bad records that BigQuery can ignore * when reading data. If the number of bad records exceeds this value, an @@ -568,13 +572,13 @@ export namespace bigquery_v2 { * which requires that all records are valid. This setting is ignored for * Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats. */ - maxBadRecords: number; + maxBadRecords?: number; /** * [Optional] The schema for the data. Schema is required for CSV and JSON * formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore * backups, and Avro formats. */ - schema: Schema$TableSchema; + schema?: Schema$TableSchema; /** * [Required] The data format. For CSV files, specify "CSV". For * Google sheets, specify "GOOGLE_SHEETS". For newline-delimited @@ -583,7 +587,7 @@ export namespace bigquery_v2 { * "DATASTORE_BACKUP". [Beta] For Google Cloud Bigtable, specify * "BIGTABLE". */ - sourceFormat: string; + sourceFormat?: string; /** * [Required] The fully-qualified URIs that point to your data in Google * Cloud. For Google Cloud Storage URIs: Each URI can contain one @@ -595,30 +599,30 @@ export namespace bigquery_v2 { * one URI can be specified. Also, the '*' wildcard character is not * allowed. */ - sourceUris: string[]; + sourceUris?: string[]; } export interface Schema$GetQueryResultsResponse { /** * Whether the query result was fetched from the query cache. */ - cacheHit: boolean; + cacheHit?: boolean; /** * [Output-only] The first errors or warnings encountered during the running * of the job. The final message includes the number of errors that caused * the process to stop. Errors here do not necessarily mean that the job has * completed or was unsuccessful. */ - errors: Schema$ErrorProto[]; + errors?: Schema$ErrorProto[]; /** * A hash of this response. */ - etag: string; + etag?: string; /** * Whether the query has completed or not. If rows or totalRows are present, * this will always be true. If this is false, totalRows will not be * available. */ - jobComplete: boolean; + jobComplete?: boolean; /** * Reference to the BigQuery Job that was created to run the query. This * field will be present even if the original request timed out, in which @@ -626,59 +630,59 @@ export namespace bigquery_v2 { * completed. Since this API only returns the first page of results, * subsequent pages can be fetched via the same mechanism (GetQueryResults). */ - jobReference: Schema$JobReference; + jobReference?: Schema$JobReference; /** * The resource type of the response. */ - kind: string; + kind?: string; /** * [Output-only] The number of rows affected by a DML statement. Present * only for DML statements INSERT, UPDATE or DELETE. */ - numDmlAffectedRows: string; + numDmlAffectedRows?: string; /** * A token used for paging results. */ - pageToken: string; + pageToken?: string; /** * An object with as many results as can be contained within the maximum * permitted reply size. To get any additional rows, you can call * GetQueryResults and specify the jobReference returned above. Present only * when the query completes successfully. */ - rows: Schema$TableRow[]; + rows?: Schema$TableRow[]; /** * The schema of the results. Present only when the query completes * successfully. */ - schema: Schema$TableSchema; + schema?: Schema$TableSchema; /** * The total number of bytes processed for this query. */ - totalBytesProcessed: string; + totalBytesProcessed?: string; /** * The total number of rows in the complete query result set, which can be * more than the number of rows in this single page of results. Present only * when the query completes successfully. */ - totalRows: string; + totalRows?: string; } export interface Schema$GetServiceAccountResponse { /** * The service account email address. */ - email: string; + email?: string; /** * The resource type of the response. */ - kind: string; + kind?: string; } export interface Schema$GoogleSheetsOptions { /** * [Experimental] [Optional] Range of a sheet to query from. Only used when * non-empty. Typical format: !: */ - range: string; + range?: string; /** * [Optional] The number of rows at the top of a sheet that BigQuery will * skip when reading the data. The default value is 0. This property is @@ -692,79 +696,79 @@ export namespace bigquery_v2 { * N. If headers are not detected, row N is just skipped. Otherwise row N is * used to extract column names for the detected schema. */ - skipLeadingRows: string; + skipLeadingRows?: string; } export interface Schema$Job { /** * [Required] Describes the job configuration. */ - configuration: Schema$JobConfiguration; + configuration?: Schema$JobConfiguration; /** * [Output-only] A hash of this resource. */ - etag: string; + etag?: string; /** * [Output-only] Opaque ID field of the job */ - id: string; + id?: string; /** * [Optional] Reference describing the unique-per-user name of the job. */ - jobReference: Schema$JobReference; + jobReference?: Schema$JobReference; /** * [Output-only] The type of the resource. */ - kind: string; + kind?: string; /** * [Output-only] A URL that can be used to access this resource again. */ - selfLink: string; + selfLink?: string; /** * [Output-only] Information about the job, including starting time and * ending time of the job. */ - statistics: Schema$JobStatistics; + statistics?: Schema$JobStatistics; /** * [Output-only] The status of this job. Examine this value when polling an * asynchronous job to see if the job is complete. */ - status: Schema$JobStatus; + status?: Schema$JobStatus; /** * [Output-only] Email address of the user who ran the job. */ - user_email: string; + user_email?: string; } export interface Schema$JobCancelResponse { /** * The final state of the job. */ - job: Schema$Job; + job?: Schema$Job; /** * The resource type of the response. */ - kind: string; + kind?: string; } export interface Schema$JobConfiguration { /** * [Pick one] Copies a table. */ - copy: Schema$JobConfigurationTableCopy; + copy?: Schema$JobConfigurationTableCopy; /** * [Optional] If set, don't actually run this job. A valid query will * return a mostly empty response with some processing statistics, while an * invalid query will return the same error it would if it wasn't a dry * run. Behavior of non-query jobs is undefined. */ - dryRun: boolean; + dryRun?: boolean; /** * [Pick one] Configures an extract job. */ - extract: Schema$JobConfigurationExtract; + extract?: Schema$JobConfigurationExtract; /** * [Optional] Job timeout in milliseconds. If this time limit is exceeded, * BigQuery may attempt to terminate the job. */ - jobTimeoutMs: string; + jobTimeoutMs?: string; /** * The labels associated with this job. You can use these to organize and * group your jobs. Label keys and values can be no longer than 63 @@ -773,15 +777,15 @@ export namespace bigquery_v2 { * values are optional. Label keys must start with a letter and each label * in the list must have a different key. */ - labels: any; + labels?: any; /** * [Pick one] Configures a load job. */ - load: Schema$JobConfigurationLoad; + load?: Schema$JobConfigurationLoad; /** * [Pick one] Configures a query job. */ - query: Schema$JobConfigurationQuery; + query?: Schema$JobConfigurationQuery; } export interface Schema$JobConfigurationExtract { /** @@ -789,38 +793,38 @@ export namespace bigquery_v2 { * values include GZIP, DEFLATE, SNAPPY, and NONE. The default value is * NONE. DEFLATE and SNAPPY are only supported for Avro. */ - compression: string; + compression?: string; /** * [Optional] The exported file format. Possible values include CSV, * NEWLINE_DELIMITED_JSON and AVRO. The default value is CSV. Tables with * nested or repeated fields cannot be exported as CSV. */ - destinationFormat: string; + destinationFormat?: string; /** * [Pick one] DEPRECATED: Use destinationUris instead, passing only one URI * as necessary. The fully-qualified Google Cloud Storage URI where the * extracted table should be written. */ - destinationUri: string; + destinationUri?: string; /** * [Pick one] A list of fully-qualified Google Cloud Storage URIs where the * extracted table should be written. */ - destinationUris: string[]; + destinationUris?: string[]; /** * [Optional] Delimiter to use between fields in the exported data. Default * is ',' */ - fieldDelimiter: string; + fieldDelimiter?: string; /** * [Optional] Whether to print out a header row in the results. Default is * true. */ - printHeader: boolean; + printHeader?: boolean; /** * [Required] A reference to the table being exported. */ - sourceTable: Schema$TableReference; + sourceTable?: Schema$TableReference; } export interface Schema$JobConfigurationLoad { /** @@ -830,23 +834,23 @@ export namespace bigquery_v2 { * bad records, an invalid error is returned in the job result. The default * value is false. Only applicable to CSV, ignored for other formats. */ - allowJaggedRows: boolean; + allowJaggedRows?: boolean; /** * Indicates if BigQuery should allow quoted data sections that contain * newline characters in a CSV file. The default value is false. */ - allowQuotedNewlines: boolean; + allowQuotedNewlines?: boolean; /** * [Optional] Indicates if we should automatically infer the options and * schema for CSV and JSON sources. */ - autodetect: boolean; + autodetect?: boolean; /** * [Experimental] Clustering specification for the destination table. Must * be specified with time-based partitioning, data in the table will be * first partitioned and subsequently clustered. */ - clustering: Schema$Clustering; + clustering?: Schema$Clustering; /** * [Optional] Specifies whether the job is allowed to create new tables. The * following values are supported: CREATE_IF_NEEDED: If the table does not @@ -855,27 +859,27 @@ export namespace bigquery_v2 { * result. The default value is CREATE_IF_NEEDED. Creation, truncation and * append actions occur as one atomic update upon job completion. */ - createDisposition: string; + createDisposition?: string; /** * Custom encryption configuration (e.g., Cloud KMS keys). */ - destinationEncryptionConfiguration: Schema$EncryptionConfiguration; + destinationEncryptionConfiguration?: Schema$EncryptionConfiguration; /** * [Required] The destination table to load the data into. */ - destinationTable: Schema$TableReference; + destinationTable?: Schema$TableReference; /** * [Experimental] [Optional] Properties with which to create the destination * table if it is new. */ - destinationTableProperties: Schema$DestinationTableProperties; + destinationTableProperties?: Schema$DestinationTableProperties; /** * [Optional] The character encoding of the data. The supported values are * UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the * data after the raw, binary data has been split using the values of the * quote and fieldDelimiter properties. */ - encoding: string; + encoding?: string; /** * [Optional] The separator for fields in a CSV file. The separator can be * any ISO-8859-1 single-byte character. To use a character in the range @@ -885,7 +889,7 @@ export namespace bigquery_v2 { * supports the escape sequence "\t" to specify a tab separator. * The default value is a comma (','). */ - fieldDelimiter: string; + fieldDelimiter?: string; /** * [Optional] Indicates if BigQuery should allow extra values that are not * represented in the table schema. If true, the extra values are ignored. @@ -895,14 +899,14 @@ export namespace bigquery_v2 { * what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named * values that don't match any column names */ - ignoreUnknownValues: boolean; + ignoreUnknownValues?: boolean; /** * [Optional] The maximum number of bad records that BigQuery can ignore * when running the job. If the number of bad records exceeds this value, an * invalid error is returned in the job result. The default value is 0, * which requires that all records are valid. */ - maxBadRecords: number; + maxBadRecords?: number; /** * [Optional] Specifies a string that represents a null value in a CSV file. * For example, if you specify "x/", BigQuery interprets @@ -912,7 +916,7 @@ export namespace bigquery_v2 { * for STRING and BYTE. For STRING and BYTE columns, BigQuery interprets the * empty string as an empty value. */ - nullMarker: string; + nullMarker?: string; /** * If sourceFormat is set to "DATASTORE_BACKUP", indicates which * entity properties to load into BigQuery from a Cloud Datastore backup. @@ -921,7 +925,7 @@ export namespace bigquery_v2 { * property isn't found in the Cloud Datastore backup, an invalid error * is returned in the job result. */ - projectionFields: string[]; + projectionFields?: string[]; /** * [Optional] The value that is used to quote data sections in a CSV file. * BigQuery converts the string to ISO-8859-1 encoding, and then uses the @@ -931,23 +935,23 @@ export namespace bigquery_v2 { * string. If your data contains quoted newline characters, you must also * set the allowQuotedNewlines property to true. */ - quote: string; + quote?: string; /** * [Optional] The schema for the destination table. The schema can be * omitted if the destination table already exists, or if you're loading * data from Google Cloud Datastore. */ - schema: Schema$TableSchema; + schema?: Schema$TableSchema; /** * [Deprecated] The inline schema. For CSV schemas, specify as * "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, * bar:INTEGER, baz:FLOAT". */ - schemaInline: string; + schemaInline?: string; /** * [Deprecated] The format of the schemaInline property. */ - schemaInlineFormat: string; + schemaInlineFormat?: string; /** * Allows the schema of the destination table to be updated as a side effect * of the load job if a schema is autodetected or supplied in the job @@ -960,13 +964,13 @@ export namespace bigquery_v2 { * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original * schema to nullable. */ - schemaUpdateOptions: string[]; + schemaUpdateOptions?: string[]; /** * [Optional] The number of rows at the top of a CSV file that BigQuery will * skip when loading the data. The default value is 0. This property is * useful if you have header rows in the file that should be skipped. */ - skipLeadingRows: number; + skipLeadingRows?: number; /** * [Optional] The format of the data files. For CSV files, specify * "CSV". For datastore backups, specify @@ -975,7 +979,7 @@ export namespace bigquery_v2 { * For parquet, specify "PARQUET". For orc, specify * "ORC". The default value is CSV. */ - sourceFormat: string; + sourceFormat?: string; /** * [Required] The fully-qualified URIs that point to your data in Google * Cloud. For Google Cloud Storage URIs: Each URI can contain one @@ -987,11 +991,11 @@ export namespace bigquery_v2 { * one URI can be specified. Also, the '*' wildcard character is not * allowed. */ - sourceUris: string[]; + sourceUris?: string[]; /** * Time-based partitioning specification for the destination table. */ - timePartitioning: Schema$TimePartitioning; + timePartitioning?: Schema$TimePartitioning; /** * [Optional] Specifies the action that occurs if the destination table * already exists. The following values are supported: WRITE_TRUNCATE: If @@ -1003,7 +1007,7 @@ export namespace bigquery_v2 { * is able to complete the job successfully. Creation, truncation and append * actions occur as one atomic update upon job completion. */ - writeDisposition: string; + writeDisposition?: string; } export interface Schema$JobConfigurationQuery { /** @@ -1014,13 +1018,13 @@ export namespace bigquery_v2 { * set destinationTable when result size exceeds the allowed maximum * response size. */ - allowLargeResults: boolean; + allowLargeResults?: boolean; /** * [Experimental] Clustering specification for the destination table. Must * be specified with time-based partitioning, data in the table will be * first partitioned and subsequently clustered. */ - clustering: Schema$Clustering; + clustering?: Schema$Clustering; /** * [Optional] Specifies whether the job is allowed to create new tables. The * following values are supported: CREATE_IF_NEEDED: If the table does not @@ -1029,66 +1033,66 @@ export namespace bigquery_v2 { * result. The default value is CREATE_IF_NEEDED. Creation, truncation and * append actions occur as one atomic update upon job completion. */ - createDisposition: string; + createDisposition?: string; /** * [Optional] Specifies the default dataset to use for unqualified table * names in the query. */ - defaultDataset: Schema$DatasetReference; + defaultDataset?: Schema$DatasetReference; /** * Custom encryption configuration (e.g., Cloud KMS keys). */ - destinationEncryptionConfiguration: Schema$EncryptionConfiguration; + destinationEncryptionConfiguration?: Schema$EncryptionConfiguration; /** * [Optional] Describes the table where the query results should be stored. * If not present, a new table will be created to store the results. This * property must be set for large results that exceed the maximum response * size. */ - destinationTable: Schema$TableReference; + destinationTable?: Schema$TableReference; /** * [Optional] If true and query uses legacy SQL dialect, flattens all nested * and repeated fields in the query results. allowLargeResults must be true * if this is set to false. For standard SQL queries, this flag is ignored * and results are never flattened. */ - flattenResults: boolean; + flattenResults?: boolean; /** * [Optional] Limits the billing tier for this job. Queries that have * resource usage beyond this tier will fail (without incurring a charge). * If unspecified, this will be set to your project default. */ - maximumBillingTier: number; + maximumBillingTier?: number; /** * [Optional] Limits the bytes billed for this job. Queries that will have * bytes billed beyond this limit will fail (without incurring a charge). If * unspecified, this will be set to your project default. */ - maximumBytesBilled: string; + maximumBytesBilled?: string; /** * Standard SQL only. Set to POSITIONAL to use positional (?) query * parameters or to NAMED to use named (@myparam) query parameters in this * query. */ - parameterMode: string; + parameterMode?: string; /** * [Deprecated] This property is deprecated. */ - preserveNulls: boolean; + preserveNulls?: boolean; /** * [Optional] Specifies a priority for the query. Possible values include * INTERACTIVE and BATCH. The default value is INTERACTIVE. */ - priority: string; + priority?: string; /** * [Required] SQL query text to execute. The useLegacySql field can be used * to indicate whether the query uses legacy SQL or standard SQL. */ - query: string; + query?: string; /** * Query parameters for standard SQL queries. */ - queryParameters: Schema$QueryParameter[]; + queryParameters?: Schema$QueryParameter[]; /** * Allows the schema of the destination table to be updated as a side effect * of the query job. Schema update options are supported in two cases: when @@ -1100,18 +1104,18 @@ export namespace bigquery_v2 { * ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original * schema to nullable. */ - schemaUpdateOptions: string[]; + schemaUpdateOptions?: string[]; /** * [Optional] If querying an external data source outside of BigQuery, * describes the data format, location and other properties of the data * source. By defining these properties, the data source can then be queried * as if it were a standard BigQuery table. */ - tableDefinitions: any; + tableDefinitions?: any; /** * Time-based partitioning specification for the destination table. */ - timePartitioning: Schema$TimePartitioning; + timePartitioning?: Schema$TimePartitioning; /** * Specifies whether to use BigQuery's legacy SQL dialect for this * query. The default value is true. If set to false, the query will use @@ -1120,7 +1124,7 @@ export namespace bigquery_v2 { * to false, the value of flattenResults is ignored; query will be run as if * flattenResults is false. */ - useLegacySql: boolean; + useLegacySql?: boolean; /** * [Optional] Whether to look for the result in the query cache. The query * cache is a best-effort cache that will be flushed whenever tables in the @@ -1128,11 +1132,11 @@ export namespace bigquery_v2 { * query does not have a destination table specified. The default value is * true. */ - useQueryCache: boolean; + useQueryCache?: boolean; /** * Describes user-defined function resources used in the query. */ - userDefinedFunctionResources: Schema$UserDefinedFunctionResource[]; + userDefinedFunctionResources?: Schema$UserDefinedFunctionResource[]; /** * [Optional] Specifies the action that occurs if the destination table * already exists. The following values are supported: WRITE_TRUNCATE: If @@ -1145,7 +1149,7 @@ export namespace bigquery_v2 { * Creation, truncation and append actions occur as one atomic update upon * job completion. */ - writeDisposition: string; + writeDisposition?: string; } export interface Schema$JobConfigurationTableCopy { /** @@ -1156,23 +1160,23 @@ export namespace bigquery_v2 { * result. The default value is CREATE_IF_NEEDED. Creation, truncation and * append actions occur as one atomic update upon job completion. */ - createDisposition: string; + createDisposition?: string; /** * Custom encryption configuration (e.g., Cloud KMS keys). */ - destinationEncryptionConfiguration: Schema$EncryptionConfiguration; + destinationEncryptionConfiguration?: Schema$EncryptionConfiguration; /** * [Required] The destination table */ - destinationTable: Schema$TableReference; + destinationTable?: Schema$TableReference; /** * [Pick one] Source table to copy. */ - sourceTable: Schema$TableReference; + sourceTable?: Schema$TableReference; /** * [Pick one] Source tables to copy. */ - sourceTables: Schema$TableReference[]; + sourceTables?: Schema$TableReference[]; /** * [Optional] Specifies the action that occurs if the destination table * already exists. The following values are supported: WRITE_TRUNCATE: If @@ -1184,25 +1188,25 @@ export namespace bigquery_v2 { * is able to complete the job successfully. Creation, truncation and append * actions occur as one atomic update upon job completion. */ - writeDisposition: string; + writeDisposition?: string; } export interface Schema$JobList { /** * A hash of this page of results. */ - etag: string; + etag?: string; /** * List of jobs that were requested. */ - jobs: any[]; + jobs?: any[]; /** * The resource type of the response. */ - kind: string; + kind?: string; /** * A token to request the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$JobReference { /** @@ -1210,66 +1214,66 @@ export namespace bigquery_v2 { * A-Z), numbers (0-9), underscores (_), or dashes (-). The maximum length * is 1,024 characters. */ - jobId: string; + jobId?: string; /** * [Experimental] The geographic location of the job. Required except for US * and EU. */ - location: string; + location?: string; /** * [Required] The ID of the project containing this job. */ - projectId: string; + projectId?: string; } export interface Schema$JobStatistics { /** * [Experimental] [Output-only] Job progress (0.0 -> 1.0) for LOAD and * EXTRACT jobs. */ - completionRatio: number; + completionRatio?: number; /** * [Output-only] Creation time of this job, in milliseconds since the epoch. * This field will be present on all jobs. */ - creationTime: string; + creationTime?: string; /** * [Output-only] End time of this job, in milliseconds since the epoch. This * field will be present whenever a job is in the DONE state. */ - endTime: string; + endTime?: string; /** * [Output-only] Statistics for an extract job. */ - extract: Schema$JobStatistics4; + extract?: Schema$JobStatistics4; /** * [Output-only] Statistics for a load job. */ - load: Schema$JobStatistics3; + load?: Schema$JobStatistics3; /** * [Output-only] Statistics for a query job. */ - query: Schema$JobStatistics2; + query?: Schema$JobStatistics2; /** * [Output-only] Start time of this job, in milliseconds since the epoch. * This field will be present when the job transitions from the PENDING * state to either RUNNING or DONE. */ - startTime: string; + startTime?: string; /** * [Output-only] [Deprecated] Use the bytes processed in the query * statistics instead. */ - totalBytesProcessed: string; + totalBytesProcessed?: string; } export interface Schema$JobStatistics2 { /** * [Output-only] Billing tier for the job. */ - billingTier: number; + billingTier?: number; /** * [Output-only] Whether the query result was fetched from the query cache. */ - cacheHit: boolean; + cacheHit?: boolean; /** * [Output-only, Experimental] The DDL operation performed, possibly * dependent on the pre-existence of the DDL target. Possible values (new @@ -1281,35 +1285,35 @@ export namespace bigquery_v2 { * query is CREATE OR REPLACE TABLE, and the table already exists. * "DROP": The query deleted the DDL target. */ - ddlOperationPerformed: string; + ddlOperationPerformed?: string; /** * [Output-only, Experimental] The DDL target table. Present only for * CREATE/DROP TABLE/VIEW queries. */ - ddlTargetTable: Schema$TableReference; + ddlTargetTable?: Schema$TableReference; /** * [Output-only] The original estimate of bytes processed for the job. */ - estimatedBytesProcessed: string; + estimatedBytesProcessed?: string; /** * [Output-only] The number of rows affected by a DML statement. Present * only for DML statements INSERT, UPDATE or DELETE. */ - numDmlAffectedRows: string; + numDmlAffectedRows?: string; /** * [Output-only] Describes execution plan for the query. */ - queryPlan: Schema$ExplainQueryStage[]; + queryPlan?: Schema$ExplainQueryStage[]; /** * [Output-only] Referenced tables for the job. Queries that reference more * than 50 tables will not have a complete list. */ - referencedTables: Schema$TableReference[]; + referencedTables?: Schema$TableReference[]; /** * [Output-only] The schema of the results. Present only for successful dry * run of non-legacy SQL queries. */ - schema: Schema$TableSchema; + schema?: Schema$TableSchema; /** * [Output-only, Experimental] The type of query statement, if valid. * Possible values (new values might be added in the future): @@ -1325,33 +1329,33 @@ export namespace bigquery_v2 { * "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... * "DROP_VIEW": DROP VIEW query. */ - statementType: string; + statementType?: string; /** * [Output-only] [Experimental] Describes a timeline of job execution. */ - timeline: Schema$QueryTimelineSample[]; + timeline?: Schema$QueryTimelineSample[]; /** * [Output-only] Total bytes billed for the job. */ - totalBytesBilled: string; + totalBytesBilled?: string; /** * [Output-only] Total bytes processed for the job. */ - totalBytesProcessed: string; + totalBytesProcessed?: string; /** * [Output-only] Total number of partitions processed from all partitioned * tables referenced in the job. */ - totalPartitionsProcessed: string; + totalPartitionsProcessed?: string; /** * [Output-only] Slot-milliseconds for the job. */ - totalSlotMs: string; + totalSlotMs?: string; /** * [Output-only, Experimental] Standard SQL only: list of undeclared query * parameters detected during a dry run validation. */ - undeclaredQueryParameters: Schema$QueryParameter[]; + undeclaredQueryParameters?: Schema$QueryParameter[]; } export interface Schema$JobStatistics3 { /** @@ -1360,25 +1364,25 @@ export namespace bigquery_v2 { * allowed in the load job configuration, then this number can be less than * the total number of bad records present in the input data. */ - badRecords: string; + badRecords?: string; /** * [Output-only] Number of bytes of source data in a load job. */ - inputFileBytes: string; + inputFileBytes?: string; /** * [Output-only] Number of source files in a load job. */ - inputFiles: string; + inputFiles?: string; /** * [Output-only] Size of the loaded data in bytes. Note that while a load * job is in the running state, this value may change. */ - outputBytes: string; + outputBytes?: string; /** * [Output-only] Number of rows imported in a load job. Note that while an * import job is in the running state, this value may change. */ - outputRows: string; + outputRows?: string; } export interface Schema$JobStatistics4 { /** @@ -1386,25 +1390,25 @@ export namespace bigquery_v2 { * specified in the extract configuration. These values will be in the same * order as the URIs specified in the 'destinationUris' field. */ - destinationUriFileCounts: string[]; + destinationUriFileCounts?: string[]; } export interface Schema$JobStatus { /** * [Output-only] Final error result of the job. If present, indicates that * the job has completed and was unsuccessful. */ - errorResult: Schema$ErrorProto; + errorResult?: Schema$ErrorProto; /** * [Output-only] The first errors encountered during the running of the job. * The final message includes the number of errors that caused the process * to stop. Errors here do not necessarily mean that the job has completed * or was unsuccessful. */ - errors: Schema$ErrorProto[]; + errors?: Schema$ErrorProto[]; /** * [Output-only] Running state of the job. */ - state: string; + state?: string; } /** * Represents a single JSON object. @@ -1415,75 +1419,75 @@ export namespace bigquery_v2 { /** * A hash of the page of results */ - etag: string; + etag?: string; /** * The type of list. */ - kind: string; + kind?: string; /** * A token to request the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Projects to which you have at least READ access. */ - projects: any[]; + projects?: any[]; /** * The total number of projects in the list. */ - totalItems: number; + totalItems?: number; } export interface Schema$ProjectReference { /** * [Required] ID of the project. Can be either the numeric ID or the * assigned ID of the project. */ - projectId: string; + projectId?: string; } export interface Schema$QueryParameter { /** * [Optional] If unset, this is a positional parameter. Otherwise, should be * unique within a query. */ - name: string; + name?: string; /** * [Required] The type of this parameter. */ - parameterType: Schema$QueryParameterType; + parameterType?: Schema$QueryParameterType; /** * [Required] The value of this parameter. */ - parameterValue: Schema$QueryParameterValue; + parameterValue?: Schema$QueryParameterValue; } export interface Schema$QueryParameterType { /** * [Optional] The type of the array's elements, if this is an array. */ - arrayType: Schema$QueryParameterType; + arrayType?: Schema$QueryParameterType; /** * [Optional] The types of the fields of this struct, in order, if this is a * struct. */ - structTypes: any[]; + structTypes?: any[]; /** * [Required] The top level type of this field. */ - type: string; + type?: string; } export interface Schema$QueryParameterValue { /** * [Optional] The array values, if this is an array type. */ - arrayValues: Schema$QueryParameterValue[]; + arrayValues?: Schema$QueryParameterValue[]; /** * [Optional] The struct field values, in order of the struct type's * declaration. */ - structValues: any; + structValues?: any; /** * [Optional] The value of this value, if a simple scalar type. */ - value: string; + value?: string; } export interface Schema$QueryRequest { /** @@ -1492,23 +1496,23 @@ export namespace bigquery_v2 { * the query string must be qualified in the format * 'datasetId.tableId'. */ - defaultDataset: Schema$DatasetReference; + defaultDataset?: Schema$DatasetReference; /** * [Optional] If set to true, BigQuery doesn't run the job. Instead, if * the query is valid, BigQuery returns statistics about the job such as how * many bytes would be processed. If the query is invalid, an error returns. * The default value is false. */ - dryRun: boolean; + dryRun?: boolean; /** * The resource type of the request. */ - kind: string; + kind?: string; /** * [Experimental] The geographic location where the job should run. Required * except for US and EU. */ - location: string; + location?: string; /** * [Optional] The maximum number of rows of data to return per page of * results. Setting this flag to a small value such as 1000 and then paging @@ -1516,27 +1520,27 @@ export namespace bigquery_v2 { * large. In addition to this limit, responses are also limited to 10 MB. By * default, there is no maximum row count, and only the byte limit applies. */ - maxResults: number; + maxResults?: number; /** * Standard SQL only. Set to POSITIONAL to use positional (?) query * parameters or to NAMED to use named (@myparam) query parameters in this * query. */ - parameterMode: string; + parameterMode?: string; /** * [Deprecated] This property is deprecated. */ - preserveNulls: boolean; + preserveNulls?: boolean; /** * [Required] A query string, following the BigQuery query syntax, of the * query to execute. Example: "SELECT count(f1) FROM * [myProjectId:myDatasetId.myTableId]". */ - query: string; + query?: string; /** * Query parameters for Standard SQL queries. */ - queryParameters: Schema$QueryParameter[]; + queryParameters?: Schema$QueryParameter[]; /** * [Optional] How long to wait for the query to complete, in milliseconds, * before the request times out and returns. Note that this is only a @@ -1546,7 +1550,7 @@ export namespace bigquery_v2 { * to wait for the query to complete and read the results. The default value * is 10000 milliseconds (10 seconds). */ - timeoutMs: number; + timeoutMs?: number; /** * Specifies whether to use BigQuery's legacy SQL dialect for this * query. The default value is true. If set to false, the query will use @@ -1555,32 +1559,32 @@ export namespace bigquery_v2 { * to false, the value of flattenResults is ignored; query will be run as if * flattenResults is false. */ - useLegacySql: boolean; + useLegacySql?: boolean; /** * [Optional] Whether to look for the result in the query cache. The query * cache is a best-effort cache that will be flushed whenever tables in the * query are modified. The default value is true. */ - useQueryCache: boolean; + useQueryCache?: boolean; } export interface Schema$QueryResponse { /** * Whether the query result was fetched from the query cache. */ - cacheHit: boolean; + cacheHit?: boolean; /** * [Output-only] The first errors or warnings encountered during the running * of the job. The final message includes the number of errors that caused * the process to stop. Errors here do not necessarily mean that the job has * completed or was unsuccessful. */ - errors: Schema$ErrorProto[]; + errors?: Schema$ErrorProto[]; /** * Whether the query has completed or not. If rows or totalRows are present, * this will always be true. If this is false, totalRows will not be * available. */ - jobComplete: boolean; + jobComplete?: boolean; /** * Reference to the Job that was created to run the query. This field will * be present even if the original request timed out, in which case @@ -1588,42 +1592,42 @@ export namespace bigquery_v2 { * completed. Since this API only returns the first page of results, * subsequent pages can be fetched via the same mechanism (GetQueryResults). */ - jobReference: Schema$JobReference; + jobReference?: Schema$JobReference; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output-only] The number of rows affected by a DML statement. Present * only for DML statements INSERT, UPDATE or DELETE. */ - numDmlAffectedRows: string; + numDmlAffectedRows?: string; /** * A token used for paging results. */ - pageToken: string; + pageToken?: string; /** * An object with as many results as can be contained within the maximum * permitted reply size. To get any additional rows, you can call * GetQueryResults and specify the jobReference returned above. */ - rows: Schema$TableRow[]; + rows?: Schema$TableRow[]; /** * The schema of the results. Present only when the query completes * successfully. */ - schema: Schema$TableSchema; + schema?: Schema$TableSchema; /** * The total number of bytes processed for this query. If this query was a * dry run, this is the number of bytes that would be processed if the query * were run. */ - totalBytesProcessed: string; + totalBytesProcessed?: string; /** * The total number of rows in the complete query result set, which can be * more than the number of rows in this single page of results. */ - totalRows: string; + totalRows?: string; } export interface Schema$QueryTimelineSample { /** @@ -1631,41 +1635,41 @@ export namespace bigquery_v2 { * correspond directly to slot usage. This is the largest value observed * since the last sample. */ - activeUnits: string; + activeUnits?: string; /** * Total parallel units of work completed by this query. */ - completedUnits: string; + completedUnits?: string; /** * Milliseconds elapsed since the start of query execution. */ - elapsedMs: string; + elapsedMs?: string; /** * Total parallel units of work remaining for the active stages. */ - pendingUnits: string; + pendingUnits?: string; /** * Cumulative slot-ms consumed by the query. */ - totalSlotMs: string; + totalSlotMs?: string; } export interface Schema$Streamingbuffer { /** * [Output-only] A lower-bound estimate of the number of bytes currently in * the streaming buffer. */ - estimatedBytes: string; + estimatedBytes?: string; /** * [Output-only] A lower-bound estimate of the number of rows currently in * the streaming buffer. */ - estimatedRows: string; + estimatedRows?: string; /** * [Output-only] Contains the timestamp of the oldest entry in the streaming * buffer, in milliseconds since the epoch, if the streaming buffer is * available. */ - oldestEntryTime: string; + oldestEntryTime?: string; } export interface Schema$Table { /** @@ -1673,24 +1677,24 @@ export namespace bigquery_v2 { * with time-based partitioning, data in the table will be first partitioned * and subsequently clustered. */ - clustering: Schema$Clustering; + clustering?: Schema$Clustering; /** * [Output-only] The time when this table was created, in milliseconds since * the epoch. */ - creationTime: string; + creationTime?: string; /** * [Optional] A user-friendly description of this table. */ - description: string; + description?: string; /** * Custom encryption configuration (e.g., Cloud KMS keys). */ - encryptionConfiguration: Schema$EncryptionConfiguration; + encryptionConfiguration?: Schema$EncryptionConfiguration; /** * [Output-only] A hash of this resource. */ - etag: string; + etag?: string; /** * [Optional] The time when this table expires, in milliseconds since the * epoch. If not present, the table will persist indefinitely. Expired @@ -1698,25 +1702,25 @@ export namespace bigquery_v2 { * defaultTableExpirationMs property of the encapsulating dataset can be * used to set a default expirationTime on newly created tables. */ - expirationTime: string; + expirationTime?: string; /** * [Optional] Describes the data format, location, and other properties of a * table stored outside of BigQuery. By defining these properties, the data * source can then be queried as if it were a standard BigQuery table. */ - externalDataConfiguration: Schema$ExternalDataConfiguration; + externalDataConfiguration?: Schema$ExternalDataConfiguration; /** * [Optional] A descriptive name for this table. */ - friendlyName: string; + friendlyName?: string; /** * [Output-only] An opaque ID uniquely identifying the table. */ - id: string; + id?: string; /** * [Output-only] The type of the resource. */ - kind: string; + kind?: string; /** * The labels associated with this table. You can use these to organize and * group your tables. Label keys and values can be no longer than 63 @@ -1725,54 +1729,54 @@ export namespace bigquery_v2 { * values are optional. Label keys must start with a letter and each label * in the list must have a different key. */ - labels: any; + labels?: any; /** * [Output-only] The time when this table was last modified, in milliseconds * since the epoch. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * [Output-only] The geographic location where the table resides. This value * is inherited from the dataset. */ - location: string; + location?: string; /** * [Output-only] The size of this table in bytes, excluding any data in the * streaming buffer. */ - numBytes: string; + numBytes?: string; /** * [Output-only] The number of bytes in the table that are considered * "long-term storage". */ - numLongTermBytes: string; + numLongTermBytes?: string; /** * [Output-only] The number of rows of data in this table, excluding any * data in the streaming buffer. */ - numRows: string; + numRows?: string; /** * [Optional] Describes the schema of this table. */ - schema: Schema$TableSchema; + schema?: Schema$TableSchema; /** * [Output-only] A URL that can be used to access this resource again. */ - selfLink: string; + selfLink?: string; /** * [Output-only] Contains information regarding this table's streaming * buffer, if one is present. This field will be absent if the table is not * being streamed to or if there is no data in the streaming buffer. */ - streamingBuffer: Schema$Streamingbuffer; + streamingBuffer?: Schema$Streamingbuffer; /** * [Required] Reference describing the ID of this table. */ - tableReference: Schema$TableReference; + tableReference?: Schema$TableReference; /** * Time-based partitioning specification for this table. */ - timePartitioning: Schema$TimePartitioning; + timePartitioning?: Schema$TimePartitioning; /** * [Output-only] Describes the table type. The following values are * supported: TABLE: A normal BigQuery table. VIEW: A virtual table defined @@ -1780,34 +1784,34 @@ export namespace bigquery_v2 { * external storage system, such as Google Cloud Storage. The default value * is TABLE. */ - type: string; + type?: string; /** * [Optional] The view definition. */ - view: Schema$ViewDefinition; + view?: Schema$ViewDefinition; } - export interface Schema$TableCell { v: any; } + export interface Schema$TableCell { v?: any; } export interface Schema$TableDataInsertAllRequest { /** * [Optional] Accept rows that contain values that do not match the schema. * The unknown values are ignored. Default is false, which treats unknown * values as errors. */ - ignoreUnknownValues: boolean; + ignoreUnknownValues?: boolean; /** * The resource type of the response. */ - kind: string; + kind?: string; /** * The rows to insert. */ - rows: any[]; + rows?: any[]; /** * [Optional] Insert all valid rows of a request, even if invalid rows * exist. The default value is false, which causes the entire request to * fail if any invalid rows exist. */ - skipInvalidRows: boolean; + skipInvalidRows?: boolean; /** * [Experimental] If specified, treats the destination table as a base * template, and inserts the rows into an instance table named @@ -1816,63 +1820,63 @@ export namespace bigquery_v2 { * https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables * for considerations when working with templates tables. */ - templateSuffix: string; + templateSuffix?: string; } export interface Schema$TableDataInsertAllResponse { /** * An array of errors for rows that were not inserted. */ - insertErrors: any[]; + insertErrors?: any[]; /** * The resource type of the response. */ - kind: string; + kind?: string; } export interface Schema$TableDataList { /** * A hash of this page of results. */ - etag: string; + etag?: string; /** * The resource type of the response. */ - kind: string; + kind?: string; /** * A token used for paging results. Providing this token instead of the * startIndex parameter can help you retrieve stable results when an * underlying table is changing. */ - pageToken: string; + pageToken?: string; /** * Rows of results. */ - rows: Schema$TableRow[]; + rows?: Schema$TableRow[]; /** * The total number of rows in the complete table. */ - totalRows: string; + totalRows?: string; } export interface Schema$TableFieldSchema { /** * [Optional] The field description. The maximum length is 1,024 characters. */ - description: string; + description?: string; /** * [Optional] Describes the nested schema fields if the type property is set * to RECORD. */ - fields: Schema$TableFieldSchema[]; + fields?: Schema$TableFieldSchema[]; /** * [Optional] The field mode. Possible values include NULLABLE, REQUIRED and * REPEATED. The default value is NULLABLE. */ - mode: string; + mode?: string; /** * [Required] The field name. The name must contain only letters (a-z, A-Z), * numbers (0-9), or underscores (_), and must start with a letter or * underscore. The maximum length is 128 characters. */ - name: string; + name?: string; /** * [Required] The field data type. Possible values include STRING, BYTES, * INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), @@ -1880,83 +1884,83 @@ export namespace bigquery_v2 { * (where RECORD indicates that the field contains a nested schema) or * STRUCT (same as RECORD). */ - type: string; + type?: string; } export interface Schema$TableList { /** * A hash of this page of results. */ - etag: string; + etag?: string; /** * The type of list. */ - kind: string; + kind?: string; /** * A token to request the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Tables in the requested dataset. */ - tables: any[]; + tables?: any[]; /** * The total number of tables in the dataset. */ - totalItems: number; + totalItems?: number; } export interface Schema$TableReference { /** * [Required] The ID of the dataset containing this table. */ - datasetId: string; + datasetId?: string; /** * [Required] The ID of the project containing this table. */ - projectId: string; + projectId?: string; /** * [Required] The ID of the table. The ID must contain only letters (a-z, * A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 * characters. */ - tableId: string; + tableId?: string; } export interface Schema$TableRow { /** * Represents a single row in the result set, consisting of one or more * fields. */ - f: Schema$TableCell[]; + f?: Schema$TableCell[]; } export interface Schema$TableSchema { /** * Describes the fields in a table. */ - fields: Schema$TableFieldSchema[]; + fields?: Schema$TableFieldSchema[]; } export interface Schema$TimePartitioning { /** * [Optional] Number of milliseconds for which to keep the storage for a * partition. */ - expirationMs: string; + expirationMs?: string; /** * [Experimental] [Optional] If not set, the table is partitioned by pseudo * column '_PARTITIONTIME'; if set, the table is partitioned by this * field. The field must be a top-level TIMESTAMP or DATE field. Its mode * must be NULLABLE or REQUIRED. */ - field: string; + field?: string; /** * [Experimental] [Optional] If set to true, queries over this table require * a partition filter that can be used for partition elimination to be * specified. */ - requirePartitionFilter: boolean; + requirePartitionFilter?: boolean; /** * [Required] The only type supported is DAY, which will generate one * partition per day. */ - type: string; + type?: string; } export interface Schema$UserDefinedFunctionResource { /** @@ -1964,31 +1968,32 @@ export namespace bigquery_v2 { * function (UDF). Providing a inline code resource is equivalent to * providing a URI for a file containing the same code. */ - inlineCode: string; + inlineCode?: string; /** * [Pick one] A code resource to load from a Google Cloud Storage URI * (gs://bucket/path). */ - resourceUri: string; + resourceUri?: string; } export interface Schema$ViewDefinition { /** * [Required] A query that BigQuery executes when the view is referenced. */ - query: string; + query?: string; /** * Specifies whether to use BigQuery's legacy SQL for this view. The * default value is true. If set to false, the view will use BigQuery's * standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries * and views that reference this view must use the same flag value. */ - useLegacySql: boolean; + useLegacySql?: boolean; /** * Describes user-defined function resources used in the query. */ - userDefinedFunctionResources: Schema$UserDefinedFunctionResource[]; + userDefinedFunctionResources?: Schema$UserDefinedFunctionResource[]; } + export class Resource$Datasets { root: Bigquery; constructor(root: Bigquery) { @@ -2071,22 +2076,35 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Datasets$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Datasets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2179,23 +2197,33 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Datasets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Datasets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Datasets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Datasets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2289,25 +2317,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Datasets$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Datasets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Datasets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2413,26 +2452,37 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Datasets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Datasets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2534,25 +2584,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Datasets$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Datasets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Datasets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2654,25 +2715,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Datasets$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Datasets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Datasets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2696,6 +2768,128 @@ export namespace bigquery_v2 { } } + export interface Params$Resource$Datasets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of dataset being deleted + */ + datasetId?: string; + /** + * If True, delete all the tables in the dataset. If False and the dataset + * contains tables, the request will fail. Default is False + */ + deleteContents?: boolean; + /** + * Project ID of the dataset being deleted + */ + projectId?: string; + } + export interface Params$Resource$Datasets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the requested dataset + */ + datasetId?: string; + /** + * Project ID of the requested dataset + */ + projectId?: string; + } + export interface Params$Resource$Datasets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID of the new dataset + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Dataset; + } + export interface Params$Resource$Datasets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to list all datasets, including hidden ones + */ + all?: boolean; + /** + * An expression for filtering the results of the request by label. The + * syntax is "labels.[:]". Multiple filters can be ANDed + * together by connecting with a space. Example: + * "labels.department:receiving labels.active". See Filtering datasets using + * labels for details. + */ + filter?: string; + /** + * The maximum number of results to return + */ + maxResults?: number; + /** + * Page token, returned by a previous call, to request the next page of + * results + */ + pageToken?: string; + /** + * Project ID of the datasets to be listed + */ + projectId?: string; + } + export interface Params$Resource$Datasets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the dataset being updated + */ + datasetId?: string; + /** + * Project ID of the dataset being updated + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Dataset; + } + export interface Params$Resource$Datasets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the dataset being updated + */ + datasetId?: string; + /** + * Project ID of the dataset being updated + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Dataset; + } + + export class Resource$Jobs { root: Bigquery; constructor(root: Bigquery) { @@ -2781,26 +2975,37 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): + cancel(params?: Params$Resource$Jobs$Cancel, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Jobs$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Jobs$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2896,21 +3101,33 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Jobs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Jobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3020,28 +3237,41 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getQueryResults(params?: any, options?: MethodOptions): - AxiosPromise; getQueryResults( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Jobs$Getqueryresults, + options?: MethodOptions): AxiosPromise; + getQueryResults( + params: Params$Resource$Jobs$Getqueryresults, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; getQueryResults( - params?: any, - options?: MethodOptions| + params: Params$Resource$Jobs$Getqueryresults, + callback: BodyResponseCallback): void; + getQueryResults( + callback: BodyResponseCallback): void; + getQueryResults( + paramsOrCallback?: Params$Resource$Jobs$Getqueryresults| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Jobs$Getqueryresults; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Getqueryresults; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3145,23 +3375,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Jobs$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Jobs$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Jobs$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3275,25 +3518,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Jobs$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3387,26 +3641,37 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query(params?: Params$Resource$Jobs$Query, options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Jobs$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Jobs$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3429,6 +3694,173 @@ export namespace bigquery_v2 { } } + export interface Params$Resource$Jobs$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] Job ID of the job to cancel + */ + jobId?: string; + /** + * [Experimental] The geographic location of the job. Required except for US + * and EU. + */ + location?: string; + /** + * [Required] Project ID of the job to cancel + */ + projectId?: string; + } + export interface Params$Resource$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] Job ID of the requested job + */ + jobId?: string; + /** + * [Experimental] The geographic location of the job. Required except for US + * and EU. + */ + location?: string; + /** + * [Required] Project ID of the requested job + */ + projectId?: string; + } + export interface Params$Resource$Jobs$Getqueryresults { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] Job ID of the query job + */ + jobId?: string; + /** + * [Experimental] The geographic location where the job should run. Required + * except for US and EU. + */ + location?: string; + /** + * Maximum number of results to read + */ + maxResults?: number; + /** + * Page token, returned by a previous call, to request the next page of + * results + */ + pageToken?: string; + /** + * [Required] Project ID of the query job + */ + projectId?: string; + /** + * Zero-based index of the starting row + */ + startIndex?: string; + /** + * How long to wait for the query to complete, in milliseconds, before + * returning. Default is 10 seconds. If the timeout passes before the job + * completes, the 'jobComplete' field in the response will be false + */ + timeoutMs?: number; + } + export interface Params$Resource$Jobs$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID of the project that will be billed for the job + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to display jobs owned by all users in the project. Default false + */ + allUsers?: boolean; + /** + * Max value for job creation time, in milliseconds since the POSIX epoch. + * If set, only jobs created before or at this timestamp are returned + */ + maxCreationTime?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * Min value for job creation time, in milliseconds since the POSIX epoch. + * If set, only jobs created after or at this timestamp are returned + */ + minCreationTime?: string; + /** + * Page token, returned by a previous call, to request the next page of + * results + */ + pageToken?: string; + /** + * Project ID of the jobs to list + */ + projectId?: string; + /** + * Restrict information returned to a set of selected fields + */ + projection?: string; + /** + * Filter for job state + */ + stateFilter?: string; + } + export interface Params$Resource$Jobs$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID of the project billed for the query + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$QueryRequest; + } + + export class Resource$Projects { root: Bigquery; constructor(root: Bigquery) { @@ -3507,29 +3939,42 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getServiceAccount(params?: any, options?: MethodOptions): + getServiceAccount( + params?: Params$Resource$Projects$Getserviceaccount, + options?: MethodOptions): AxiosPromise; getServiceAccount( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getserviceaccount, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + getServiceAccount( + params: Params$Resource$Projects$Getserviceaccount, + callback: BodyResponseCallback): void; + getServiceAccount( + callback: BodyResponseCallback): void; getServiceAccount( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Getserviceaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Getserviceaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getserviceaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3630,26 +4075,37 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3672,6 +4128,35 @@ export namespace bigquery_v2 { } } + export interface Params$Resource$Projects$Getserviceaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for which the service account is requested. + */ + projectId?: string; + } + export interface Params$Resource$Projects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * Page token, returned by a previous call, to request the next page of + * results + */ + pageToken?: string; + } + + export class Resource$Tabledata { root: Bigquery; constructor(root: Bigquery) { @@ -3763,29 +4248,44 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insertAll(params?: any, options?: MethodOptions): + insertAll( + params?: Params$Resource$Tabledata$Insertall, options?: MethodOptions): AxiosPromise; insertAll( - params?: any, - options?: MethodOptions| + params: Params$Resource$Tabledata$Insertall, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + insertAll( + params: Params$Resource$Tabledata$Insertall, + callback: BodyResponseCallback): + void; + insertAll(callback: + BodyResponseCallback): void; insertAll( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Tabledata$Insertall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Tabledata$Insertall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tabledata$Insertall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3902,26 +4402,37 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Tabledata$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tabledata$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tabledata$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Tabledata$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tabledata$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tabledata$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3946,6 +4457,67 @@ export namespace bigquery_v2 { } } + export interface Params$Resource$Tabledata$Insertall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the destination table. + */ + datasetId?: string; + /** + * Project ID of the destination table. + */ + projectId?: string; + /** + * Table ID of the destination table. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$TableDataInsertAllRequest; + } + export interface Params$Resource$Tabledata$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the table to read + */ + datasetId?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * Page token, returned by a previous call, identifying the result set + */ + pageToken?: string; + /** + * Project ID of the table to read + */ + projectId?: string; + /** + * List of fields to return (comma-separated). If unspecified, all fields + * are returned + */ + selectedFields?: string; + /** + * Zero-based index of the starting row to read + */ + startIndex?: string; + /** + * Table ID of the table to read + */ + tableId?: string; + } + + export class Resource$Tables { root: Bigquery; constructor(root: Bigquery) { @@ -4029,22 +4601,35 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Tables$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Tables$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tables$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tables$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tables$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tables$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4145,23 +4730,33 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Tables$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Tables$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Tables$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Tables$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tables$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tables$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4260,25 +4855,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Tables$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Tables$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tables$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tables$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tables$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tables$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4388,25 +4994,37 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Tables$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tables$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tables$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Tables$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tables$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tables$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4514,25 +5132,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Tables$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Tables$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tables$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tables$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tables$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tables$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4639,25 +5268,36 @@ export namespace bigquery_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Tables$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Tables$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tables$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tables$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tables$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tables$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4681,4 +5321,137 @@ export namespace bigquery_v2 { } } } + + export interface Params$Resource$Tables$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the table to delete + */ + datasetId?: string; + /** + * Project ID of the table to delete + */ + projectId?: string; + /** + * Table ID of the table to delete + */ + tableId?: string; + } + export interface Params$Resource$Tables$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the requested table + */ + datasetId?: string; + /** + * Project ID of the requested table + */ + projectId?: string; + /** + * List of fields to return (comma-separated). If unspecified, all fields + * are returned + */ + selectedFields?: string; + /** + * Table ID of the requested table + */ + tableId?: string; + } + export interface Params$Resource$Tables$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the new table + */ + datasetId?: string; + /** + * Project ID of the new table + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } + export interface Params$Resource$Tables$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the tables to list + */ + datasetId?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * Page token, returned by a previous call, to request the next page of + * results + */ + pageToken?: string; + /** + * Project ID of the tables to list + */ + projectId?: string; + } + export interface Params$Resource$Tables$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the table to update + */ + datasetId?: string; + /** + * Project ID of the table to update + */ + projectId?: string; + /** + * Table ID of the table to update + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } + export interface Params$Resource$Tables$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset ID of the table to update + */ + datasetId?: string; + /** + * Project ID of the table to update + */ + projectId?: string; + /** + * Table ID of the table to update + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } } diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index 164952085b9..5775f031f4c 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace bigquerydatatransfer_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * BigQuery Data Transfer API * @@ -82,7 +85,7 @@ export namespace bigquerydatatransfer_v1 { /** * If set to `true`, the credentials exist and are valid. */ - hasValidCreds: boolean; + hasValidCreds?: boolean; } /** * Represents data source metadata. Metadata is sufficient to render UI and @@ -92,89 +95,89 @@ export namespace bigquerydatatransfer_v1 { /** * Indicates the type of authorization. */ - authorizationType: string; + authorizationType?: string; /** * Data source client id which should be used to receive refresh token. When * not supplied, no offline credentials are populated for data transfer. */ - clientId: string; + clientId?: string; /** * Specifies whether the data source supports automatic data refresh for the * past few days, and how it's supported. For some data sources, data * might not be complete until a few days later, so it's useful to * refresh data automatically. */ - dataRefreshType: string; + dataRefreshType?: string; /** * Data source id. */ - dataSourceId: string; + dataSourceId?: string; /** * Default data refresh window on days. Only meaningful when * `data_refresh_type` = `SLIDING_WINDOW`. */ - defaultDataRefreshWindowDays: number; + defaultDataRefreshWindowDays?: number; /** * Default data transfer schedule. Examples of valid schedules include: * `1st,3rd monday of month 15:30`, `every wed,fri of jan,jun 13:15`, and * `first sunday of quarter 00:00`. */ - defaultSchedule: string; + defaultSchedule?: string; /** * User friendly data source description string. */ - description: string; + description?: string; /** * User friendly data source name. */ - displayName: string; + displayName?: string; /** * Url for the help document for this data source. */ - helpUrl: string; + helpUrl?: string; /** * Disables backfilling and manual run scheduling for the data source. */ - manualRunsDisabled: boolean; + manualRunsDisabled?: boolean; /** * The minimum interval for scheduler to schedule runs. */ - minimumScheduleInterval: string; + minimumScheduleInterval?: string; /** * Output only. Data source resource name. */ - name: string; + name?: string; /** * Data source parameters. */ - parameters: Schema$DataSourceParameter[]; + parameters?: Schema$DataSourceParameter[]; /** * Api auth scopes for which refresh token needs to be obtained. Only valid * when `client_id` is specified. Ignored otherwise. These are scopes needed * by a data source to prepare data and ingest them into BigQuery, e.g., * https://www.googleapis.com/auth/bigquery */ - scopes: string[]; + scopes?: string[]; /** * Specifies whether the data source supports a user defined schedule, or * operates on the default schedule. When set to `true`, user can override * default schedule. */ - supportsCustomSchedule: boolean; + supportsCustomSchedule?: boolean; /** * Indicates whether the data source supports multiple transfers to * different BigQuery targets. */ - supportsMultipleTransfers: boolean; + supportsMultipleTransfers?: boolean; /** * Deprecated. This field has no effect. */ - transferType: string; + transferType?: string; /** * The number of seconds to wait for an update from the data source before * BigQuery marks the transfer as failed. */ - updateDeadlineSeconds: number; + updateDeadlineSeconds?: number; } /** * Represents a data source parameter with validation rules, so that @@ -187,65 +190,65 @@ export namespace bigquerydatatransfer_v1 { /** * All possible values for the parameter. */ - allowedValues: string[]; + allowedValues?: string[]; /** * Parameter description. */ - description: string; + description?: string; /** * Parameter display name in the user interface. */ - displayName: string; + displayName?: string; /** * When parameter is a record, describes child fields. */ - fields: Schema$DataSourceParameter[]; + fields?: Schema$DataSourceParameter[]; /** * Cannot be changed after initial creation. */ - immutable: boolean; + immutable?: boolean; /** * For integer and double values specifies maxminum allowed value. */ - maxValue: number; + maxValue?: number; /** * For integer and double values specifies minimum allowed value. */ - minValue: number; + minValue?: number; /** * Parameter identifier. */ - paramId: string; + paramId?: string; /** * If set to true, schema should be taken from the parent with the same * parameter_id. Only applicable when parameter type is RECORD. */ - recurse: boolean; + recurse?: boolean; /** * Can parameter have multiple values. */ - repeated: boolean; + repeated?: boolean; /** * Is parameter required. */ - required: boolean; + required?: boolean; /** * Parameter type. */ - type: string; + type?: string; /** * Description of the requirements for this field, in case the user input * does not fulfill the regex pattern or min/max values. */ - validationDescription: string; + validationDescription?: string; /** * URL to a help document to further explain the naming requirements. */ - validationHelpUrl: string; + validationHelpUrl?: string; /** * Regular expression which can be used for parameter validation. */ - validationRegex: string; + validationRegex?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -262,13 +265,13 @@ export namespace bigquerydatatransfer_v1 { /** * List of supported data sources and their transfer settings. */ - dataSources: Schema$DataSource[]; + dataSources?: Schema$DataSource[]; /** * Output only. The next-pagination token. For multiple-page list results, * this token can be used as the `ListDataSourcesRequest.page_token` to * request the next page of list results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -277,11 +280,11 @@ export namespace bigquerydatatransfer_v1 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The returned list of pipelines in the project. @@ -292,11 +295,11 @@ export namespace bigquerydatatransfer_v1 { * this token can be used as the `ListTransferConfigsRequest.page_token` to * request the next page of list results. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. The stored pipeline transfer configurations. */ - transferConfigs: Schema$TransferConfig[]; + transferConfigs?: Schema$TransferConfig[]; } /** * The returned list transfer run messages. @@ -307,11 +310,11 @@ export namespace bigquerydatatransfer_v1 { * this token can be used as the `GetTransferRunLogRequest.page_token` to * request the next page of list results. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. The stored pipeline transfer messages. */ - transferMessages: Schema$TransferMessage[]; + transferMessages?: Schema$TransferMessage[]; } /** * The returned list of pipelines in the project. @@ -322,11 +325,11 @@ export namespace bigquerydatatransfer_v1 { * this token can be used as the `ListTransferRunsRequest.page_token` to * request the next page of list results. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. The stored pipeline transfer runs. */ - transferRuns: Schema$TransferRun[]; + transferRuns?: Schema$TransferRun[]; } /** * A resource that represents Google Cloud Platform location. @@ -336,26 +339,26 @@ export namespace bigquerydatatransfer_v1 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: `"us-east1"`. */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` */ - name: string; + name?: string; } /** * A request to schedule transfer runs for a time range. @@ -365,12 +368,12 @@ export namespace bigquerydatatransfer_v1 { * End time of the range of transfer runs. For example, * `"2017-05-30T00:00:00+00:00"`. */ - endTime: string; + endTime?: string; /** * Start time of the range of transfer runs. For example, * `"2017-05-25T00:00:00+00:00"`. */ - startTime: string; + startTime?: string; } /** * A response to schedule transfer runs for a time range. @@ -379,7 +382,7 @@ export namespace bigquerydatatransfer_v1 { /** * The transfer runs that were scheduled. */ - runs: Schema$TransferRun[]; + runs?: Schema$TransferRun[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -421,18 +424,18 @@ export namespace bigquerydatatransfer_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents a data transfer configuration. A transfer configuration contains @@ -450,43 +453,43 @@ export namespace bigquerydatatransfer_v1 { * just [today-1]. Only valid if the data source supports the feature. Set * the value to 0 to use the default value. */ - dataRefreshWindowDays: number; + dataRefreshWindowDays?: number; /** * Output only. Region in which BigQuery dataset is located. */ - datasetRegion: string; + datasetRegion?: string; /** * Data source id. Cannot be changed once data transfer is created. */ - dataSourceId: string; + dataSourceId?: string; /** * The BigQuery target dataset id. */ - destinationDatasetId: string; + destinationDatasetId?: string; /** * Is this config disabled. When set to true, no runs are scheduled for a * given transfer. */ - disabled: boolean; + disabled?: boolean; /** * User specified display name for the data transfer. */ - displayName: string; + displayName?: string; /** * The resource name of the transfer config. Transfer config names have the * form `projects/{project_id}/transferConfigs/{config_id}`. Where * `config_id` is usually a uuid, even though it is not guaranteed or * required. The name is ignored when creating a transfer config. */ - name: string; + name?: string; /** * Output only. Next time when data transfer will run. */ - nextRunTime: string; + nextRunTime?: string; /** * Data transfer specific parameters. */ - params: any; + params?: any; /** * Data transfer schedule. If the data source does not support a custom * schedule, this should be empty. If it is empty, the default value for the @@ -497,15 +500,15 @@ export namespace bigquerydatatransfer_v1 { * https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format * NOTE: the granularity should be at least 8 hours, or less frequent. */ - schedule: string; + schedule?: string; /** * Output only. State of the most recently updated transfer run. */ - state: string; + state?: string; /** * Output only. Data transfer modification time. Ignored by server on input. */ - updateTime: string; + updateTime?: string; /** * Output only. Unique ID of the user on whose behalf transfer is done. * Applicable only to data sources that do not support service accounts. @@ -513,7 +516,7 @@ export namespace bigquerydatatransfer_v1 { * be negative. Note, that this identifier is not stable. It may change over * time even for the same user. */ - userId: string; + userId?: string; } /** * Represents a user facing message for a particular data transfer run. @@ -522,15 +525,15 @@ export namespace bigquerydatatransfer_v1 { /** * Message text. */ - messageText: string; + messageText?: string; /** * Time when message was logged. */ - messageTime: string; + messageTime?: string; /** * Message severity. */ - severity: string; + severity?: string; } /** * Represents a data transfer run. @@ -539,35 +542,35 @@ export namespace bigquerydatatransfer_v1 { /** * Output only. Data source id. */ - dataSourceId: string; + dataSourceId?: string; /** * Output only. The BigQuery target dataset id. */ - destinationDatasetId: string; + destinationDatasetId?: string; /** * Output only. Time when transfer run ended. Parameter ignored by server * for input requests. */ - endTime: string; + endTime?: string; /** * Status of the transfer run. */ - errorStatus: Schema$Status; + errorStatus?: Schema$Status; /** * The resource name of the transfer run. Transfer run names have the form * `projects/{project_id}/locations/{location}/transferConfigs/{config_id}/runs/{run_id}`. * The name is ignored when creating a transfer run. */ - name: string; + name?: string; /** * Output only. Data transfer specific parameters. */ - params: any; + params?: any; /** * For batch transfer runs, specifies the date and time that data should be * ingested. */ - runTime: string; + runTime?: string; /** * Output only. Describes the schedule of this transfer run if it was * created as part of a regular schedule. For batch transfer runs that are @@ -575,24 +578,24 @@ export namespace bigquerydatatransfer_v1 { * the schedule depending on the current load, so `schedule_time` * doesn't always matches this. */ - schedule: string; + schedule?: string; /** * Minimum time after which a transfer run can be started. */ - scheduleTime: string; + scheduleTime?: string; /** * Output only. Time when transfer run was started. Parameter ignored by * server for input requests. */ - startTime: string; + startTime?: string; /** * Data transfer run state. Ignored for input requests. */ - state: string; + state?: string; /** * Output only. Last time the data transfer run state was updated. */ - updateTime: string; + updateTime?: string; /** * Output only. Unique ID of the user on whose behalf transfer is done. * Applicable only to data sources that do not support service accounts. @@ -600,9 +603,10 @@ export namespace bigquerydatatransfer_v1 { * be negative. Note, that this identifier is not stable. It may change over * time even for the same user. */ - userId: string; + userId?: string; } + export class Resource$Projects { root: Bigquerydatatransfer; dataSources: Resource$Projects$Datasources; @@ -620,6 +624,8 @@ export namespace bigquerydatatransfer_v1 { return this.root; } } + + export class Resource$Projects$Datasources { root: Bigquerydatatransfer; constructor(root: Bigquerydatatransfer) { @@ -649,28 +655,41 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - checkValidCreds(params?: any, options?: MethodOptions): - AxiosPromise; checkValidCreds( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Datasources$Checkvalidcreds, + options?: MethodOptions): AxiosPromise; + checkValidCreds( + params: Params$Resource$Projects$Datasources$Checkvalidcreds, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + checkValidCreds( + params: Params$Resource$Projects$Datasources$Checkvalidcreds, + callback: BodyResponseCallback): void; checkValidCreds( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + checkValidCreds( + paramsOrCallback?: Params$Resource$Projects$Datasources$Checkvalidcreds| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Datasources$Checkvalidcreds; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Datasources$Checkvalidcreds; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -707,23 +726,35 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Datasources$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Datasources$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Datasources$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Datasources$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Datasources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Datasources$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -761,28 +792,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Datasources$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Datasources$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Datasources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Datasources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Datasources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Datasources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -806,6 +849,59 @@ export namespace bigquerydatatransfer_v1 { } } + export interface Params$Resource$Projects$Datasources$Checkvalidcreds { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data source in the form: + * `projects/{project_id}/dataSources/{data_source_id}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CheckValidCredsRequest; + } + export interface Params$Resource$Projects$Datasources$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/dataSources/{data_source_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Datasources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListDataSourcesRequest` list results. For multiple-page results, + * `ListDataSourcesResponse` outputs a `next_page` token, which can be used + * as the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * The BigQuery project id for which data sources should be returned. Must + * be in the form: `projects/{project_id}` + */ + parent?: string; + } + + export class Resource$Projects$Locations { root: Bigquerydatatransfer; dataSources: Resource$Projects$Locations$Datasources; @@ -835,23 +931,34 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -889,28 +996,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -933,6 +1052,42 @@ export namespace bigquerydatatransfer_v1 { } } } + + export interface Params$Resource$Projects$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export class Resource$Projects$Locations$Datasources { root: Bigquerydatatransfer; constructor(root: Bigquerydatatransfer) { @@ -963,28 +1118,43 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - checkValidCreds(params?: any, options?: MethodOptions): - AxiosPromise; checkValidCreds( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Datasources$Checkvalidcreds, + options?: MethodOptions): AxiosPromise; + checkValidCreds( + params: Params$Resource$Projects$Locations$Datasources$Checkvalidcreds, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + checkValidCreds( + params: Params$Resource$Projects$Locations$Datasources$Checkvalidcreds, + callback: BodyResponseCallback): void; + checkValidCreds( + callback: BodyResponseCallback): void; checkValidCreds( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Datasources$Checkvalidcreds| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Datasources$Checkvalidcreds; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Datasources$Checkvalidcreds; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1021,23 +1191,35 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Datasources$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Datasources$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Datasources$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Datasources$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Datasources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Datasources$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1075,28 +1257,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Datasources$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Datasources$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Datasources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Datasources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Datasources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Datasources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1120,6 +1314,59 @@ export namespace bigquerydatatransfer_v1 { } } + export interface Params$Resource$Projects$Locations$Datasources$Checkvalidcreds { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data source in the form: + * `projects/{project_id}/dataSources/{data_source_id}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CheckValidCredsRequest; + } + export interface Params$Resource$Projects$Locations$Datasources$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/dataSources/{data_source_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Datasources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListDataSourcesRequest` list results. For multiple-page results, + * `ListDataSourcesResponse` outputs a `next_page` token, which can be used + * as the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * The BigQuery project id for which data sources should be returned. Must + * be in the form: `projects/{project_id}` + */ + parent?: string; + } + + export class Resource$Projects$Locations$Transferconfigs { root: Bigquerydatatransfer; runs: Resource$Projects$Locations$Transferconfigs$Runs; @@ -1148,26 +1395,41 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Transferconfigs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Transferconfigs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Transferconfigs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1204,25 +1466,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Transferconfigs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Transferconfigs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Transferconfigs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1257,24 +1534,36 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Transferconfigs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Transferconfigs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Transferconfigs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Transferconfigs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1312,29 +1601,45 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Locations$Transferconfigs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Transferconfigs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Transferconfigs$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Transferconfigs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1375,26 +1680,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Transferconfigs$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Transferconfigs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Locations$Transferconfigs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Transferconfigs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1434,29 +1753,48 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - scheduleRuns(params?: any, options?: MethodOptions): + scheduleRuns( + params?: + Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns, + options?: MethodOptions): AxiosPromise; scheduleRuns( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + scheduleRuns( + params: Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns, + callback: BodyResponseCallback): + void; + scheduleRuns(callback: + BodyResponseCallback): void; scheduleRuns( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1481,6 +1819,151 @@ export namespace bigquerydatatransfer_v1 { } } } + + export interface Params$Resource$Projects$Locations$Transferconfigs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional OAuth2 authorization code to use with this transfer + * configuration. This is required if new credentials are needed, as + * indicated by `CheckValidCreds`. In order to obtain authorization_code, + * please make a request to + * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= + * * client_id should be OAuth client_id of BigQuery DTS API for the given + * data source returned by ListDataSources method. * data_source_scopes are + * the scopes returned by ListDataSources method. * redirect_uri is an + * optional parameter. If not specified, then authorization code is posted + * to the opener of authorization flow window. Otherwise it will be sent + * to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means + * that authorization code should be returned in the title bar of the + * browser, with the page text prompting the user to copy the code and + * paste it in the application. + */ + authorizationCode?: string; + /** + * The BigQuery project id where the transfer configuration should be + * created. Must be in the format + * projects/{project_id}/locations/{location_id} If specified location and + * location of the destination bigquery dataset do not match - the request + * will fail. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$TransferConfig; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When specified, only configurations of requested data sources are + * returned. + */ + dataSourceIds?: string; + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListTransfersRequest` list results. For multiple-page results, + * `ListTransfersResponse` outputs a `next_page` token, which can be used as + * the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * The BigQuery project id for which data sources should be returned: + * `projects/{project_id}`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional OAuth2 authorization code to use with this transfer + * configuration. If it is provided, the transfer configuration will be + * associated with the authorizing user. In order to obtain + * authorization_code, please make a request to + * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= + * * client_id should be OAuth client_id of BigQuery DTS API for the given + * data source returned by ListDataSources method. * data_source_scopes are + * the scopes returned by ListDataSources method. * redirect_uri is an + * optional parameter. If not specified, then authorization code is posted + * to the opener of authorization flow window. Otherwise it will be sent + * to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means + * that authorization code should be returned in the title bar of the + * browser, with the page text prompting the user to copy the code and + * paste it in the application. + */ + authorizationCode?: string; + /** + * The resource name of the transfer config. Transfer config names have the + * form `projects/{project_id}/transferConfigs/{config_id}`. Where + * `config_id` is usually a uuid, even though it is not guaranteed or + * required. The name is ignored when creating a transfer config. + */ + name?: string; + /** + * Required list of fields to be updated in this request. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$TransferConfig; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$Scheduleruns { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Transfer configuration name in the form: + * `projects/{project_id}/transferConfigs/{config_id}`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$ScheduleTransferRunsRequest; + } + export class Resource$Projects$Locations$Transferconfigs$Runs { root: Bigquerydatatransfer; transferLogs: Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; @@ -1510,25 +1993,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1563,24 +2061,37 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Transferconfigs$Runs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Transferconfigs$Runs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Transferconfigs$Runs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Runs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Runs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Runs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1619,28 +2130,42 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Transferconfigs$Runs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Transferconfigs$Runs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Transferconfigs$Runs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Runs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Runs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Runs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1663,6 +2188,64 @@ export namespace bigquerydatatransfer_v1 { } } } + + export interface Params$Resource$Projects$Locations$Transferconfigs$Runs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$Runs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Transferconfigs$Runs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListTransferRunsRequest` list results. For multiple-page results, + * `ListTransferRunsResponse` outputs a `next_page` token, which can be used + * as the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * Name of transfer configuration for which transfer runs should be + * retrieved. Format of transfer configuration resource name is: + * `projects/{project_id}/transferConfigs/{config_id}`. + */ + parent?: string; + /** + * Indicates how run attempts are to be pulled. + */ + runAttempt?: string; + /** + * When specified, only transfer runs with requested states are returned. + */ + states?: string; + } + export class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { root: Bigquerydatatransfer; constructor(root: Bigquerydatatransfer) { @@ -1691,28 +2274,45 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: + Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List, + options?: MethodOptions): AxiosPromise; + list( + params: + Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: + Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1736,6 +2336,35 @@ export namespace bigquerydatatransfer_v1 { } } + export interface Params$Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Message types to return. If not populated - INFO, WARNING and ERROR + * messages are returned. + */ + messageTypes?: string; + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListTransferLogsRequest` list results. For multiple-page results, + * `ListTransferLogsResponse` outputs a `next_page` token, which can be used + * as the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * Transfer run name in the form: + * `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`. + */ + parent?: string; + } + export class Resource$Projects$Transferconfigs { @@ -1766,26 +2395,39 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Transferconfigs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Transferconfigs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Transferconfigs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1822,25 +2464,38 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Transferconfigs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Transferconfigs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Transferconfigs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1875,24 +2530,35 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Transferconfigs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Transferconfigs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Transferconfigs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1930,29 +2596,44 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Transferconfigs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Transferconfigs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Transferconfigs$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Transferconfigs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -1993,26 +2674,39 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Transferconfigs$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Transferconfigs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Transferconfigs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -2051,29 +2745,46 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - scheduleRuns(params?: any, options?: MethodOptions): + scheduleRuns( + params?: Params$Resource$Projects$Transferconfigs$Scheduleruns, + options?: MethodOptions): AxiosPromise; scheduleRuns( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Transferconfigs$Scheduleruns, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; scheduleRuns( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Transferconfigs$Scheduleruns, + callback: BodyResponseCallback): + void; + scheduleRuns(callback: + BodyResponseCallback): + void; + scheduleRuns( + paramsOrCallback?: + Params$Resource$Projects$Transferconfigs$Scheduleruns| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Scheduleruns; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Scheduleruns; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -2098,6 +2809,151 @@ export namespace bigquerydatatransfer_v1 { } } } + + export interface Params$Resource$Projects$Transferconfigs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional OAuth2 authorization code to use with this transfer + * configuration. This is required if new credentials are needed, as + * indicated by `CheckValidCreds`. In order to obtain authorization_code, + * please make a request to + * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= + * * client_id should be OAuth client_id of BigQuery DTS API for the given + * data source returned by ListDataSources method. * data_source_scopes are + * the scopes returned by ListDataSources method. * redirect_uri is an + * optional parameter. If not specified, then authorization code is posted + * to the opener of authorization flow window. Otherwise it will be sent + * to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means + * that authorization code should be returned in the title bar of the + * browser, with the page text prompting the user to copy the code and + * paste it in the application. + */ + authorizationCode?: string; + /** + * The BigQuery project id where the transfer configuration should be + * created. Must be in the format + * projects/{project_id}/locations/{location_id} If specified location and + * location of the destination bigquery dataset do not match - the request + * will fail. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$TransferConfig; + } + export interface Params$Resource$Projects$Transferconfigs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Transferconfigs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Transferconfigs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When specified, only configurations of requested data sources are + * returned. + */ + dataSourceIds?: string; + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListTransfersRequest` list results. For multiple-page results, + * `ListTransfersResponse` outputs a `next_page` token, which can be used as + * the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * The BigQuery project id for which data sources should be returned: + * `projects/{project_id}`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Transferconfigs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional OAuth2 authorization code to use with this transfer + * configuration. If it is provided, the transfer configuration will be + * associated with the authorizing user. In order to obtain + * authorization_code, please make a request to + * https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?client_id=&scope=&redirect_uri= + * * client_id should be OAuth client_id of BigQuery DTS API for the given + * data source returned by ListDataSources method. * data_source_scopes are + * the scopes returned by ListDataSources method. * redirect_uri is an + * optional parameter. If not specified, then authorization code is posted + * to the opener of authorization flow window. Otherwise it will be sent + * to the redirect uri. A special value of urn:ietf:wg:oauth:2.0:oob means + * that authorization code should be returned in the title bar of the + * browser, with the page text prompting the user to copy the code and + * paste it in the application. + */ + authorizationCode?: string; + /** + * The resource name of the transfer config. Transfer config names have the + * form `projects/{project_id}/transferConfigs/{config_id}`. Where + * `config_id` is usually a uuid, even though it is not guaranteed or + * required. The name is ignored when creating a transfer config. + */ + name?: string; + /** + * Required list of fields to be updated in this request. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$TransferConfig; + } + export interface Params$Resource$Projects$Transferconfigs$Scheduleruns { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Transfer configuration name in the form: + * `projects/{project_id}/transferConfigs/{config_id}`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$ScheduleTransferRunsRequest; + } + export class Resource$Projects$Transferconfigs$Runs { root: Bigquerydatatransfer; transferLogs: Resource$Projects$Transferconfigs$Runs$Transferlogs; @@ -2125,25 +2981,38 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Transferconfigs$Runs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Transferconfigs$Runs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Transferconfigs$Runs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Runs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Runs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Runs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -2178,24 +3047,35 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Transferconfigs$Runs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Transferconfigs$Runs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Transferconfigs$Runs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Runs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Runs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Runs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -2234,28 +3114,40 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Transferconfigs$Runs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Transferconfigs$Runs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Transferconfigs$Runs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Transferconfigs$Runs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Runs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Transferconfigs$Runs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -2278,6 +3170,64 @@ export namespace bigquerydatatransfer_v1 { } } } + + export interface Params$Resource$Projects$Transferconfigs$Runs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Transferconfigs$Runs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The field will contain name of the resource requested, for example: + * `projects/{project_id}/transferConfigs/{config_id}/runs/{run_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Transferconfigs$Runs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListTransferRunsRequest` list results. For multiple-page results, + * `ListTransferRunsResponse` outputs a `next_page` token, which can be used + * as the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * Name of transfer configuration for which transfer runs should be + * retrieved. Format of transfer configuration resource name is: + * `projects/{project_id}/transferConfigs/{config_id}`. + */ + parent?: string; + /** + * Indicates how run attempts are to be pulled. + */ + runAttempt?: string; + /** + * When specified, only transfer runs with requested states are returned. + */ + states?: string; + } + export class Resource$Projects$Transferconfigs$Runs$Transferlogs { root: Bigquerydatatransfer; constructor(root: Bigquerydatatransfer) { @@ -2306,28 +3256,43 @@ export namespace bigquerydatatransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: + Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; const parameters = { @@ -2350,4 +3315,33 @@ export namespace bigquerydatatransfer_v1 { } } } + + export interface Params$Resource$Projects$Transferconfigs$Runs$Transferlogs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Message types to return. If not populated - INFO, WARNING and ERROR + * messages are returned. + */ + messageTypes?: string; + /** + * Page size. The default page size is the maximum value of 1000 results. + */ + pageSize?: number; + /** + * Pagination token, which can be used to request a specific page of + * `ListTransferLogsRequest` list results. For multiple-page results, + * `ListTransferLogsResponse` outputs a `next_page` token, which can be used + * as the `page_token` value to request the next page of list results. + */ + pageToken?: string; + /** + * Transfer run name in the form: + * `projects/{project_id}/transferConfigs/{config_Id}/runs/{run_id}`. + */ + parent?: string; + } } diff --git a/src/apis/blogger/v2.ts b/src/apis/blogger/v2.ts index 96f1b1a3c1a..3b1de6db8fa 100644 --- a/src/apis/blogger/v2.ts +++ b/src/apis/blogger/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace blogger_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Blogger API * @@ -77,278 +80,279 @@ export namespace blogger_v2 { /** * The description of this blog. This is displayed underneath the title. */ - description: string; + description?: string; /** * The identifier for this resource. */ - id: string; + id?: string; /** * The kind of this entry. Always blogger#blog */ - kind: string; + kind?: string; /** * The locale this Blog is set to. */ - locale: any; + locale?: any; /** * The name of this blog. This is displayed as the title. */ - name: string; + name?: string; /** * The container of pages in this blog. */ - pages: any; + pages?: any; /** * The container of posts in this blog. */ - posts: any; + posts?: any; /** * RFC 3339 date-time when this blog was published. */ - published: string; + published?: string; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * RFC 3339 date-time when this blog was last updated. */ - updated: string; + updated?: string; /** * The URL where this blog is published. */ - url: string; + url?: string; } export interface Schema$BlogList { /** * The list of Blogs this user has Authorship or Admin rights over. */ - items: Schema$Blog[]; + items?: Schema$Blog[]; /** * The kind of this entity. Always blogger#blogList */ - kind: string; + kind?: string; } export interface Schema$Comment { /** * The author of this Comment. */ - author: any; + author?: any; /** * Data about the blog containing this comment. */ - blog: any; + blog?: any; /** * The actual content of the comment. May include HTML markup. */ - content: string; + content?: string; /** * The identifier for this resource. */ - id: string; + id?: string; /** * Data about the comment this is in reply to. */ - inReplyTo: any; + inReplyTo?: any; /** * The kind of this entry. Always blogger#comment */ - kind: string; + kind?: string; /** * Data about the post containing this comment. */ - post: any; + post?: any; /** * RFC 3339 date-time when this comment was published. */ - published: string; + published?: string; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * RFC 3339 date-time when this comment was last updated. */ - updated: string; + updated?: string; } export interface Schema$CommentList { /** * The List of Comments for a Post. */ - items: Schema$Comment[]; + items?: Schema$Comment[]; /** * The kind of this entry. Always blogger#commentList */ - kind: string; + kind?: string; /** * Pagination token to fetch the next page, if one exists. */ - nextPageToken: string; + nextPageToken?: string; /** * Pagination token to fetch the previous page, if one exists. */ - prevPageToken: string; + prevPageToken?: string; } export interface Schema$Page { /** * The author of this Page. */ - author: any; + author?: any; /** * Data about the blog containing this Page. */ - blog: any; + blog?: any; /** * The body content of this Page, in HTML. */ - content: string; + content?: string; /** * The identifier for this resource. */ - id: string; + id?: string; /** * The kind of this entity. Always blogger#page */ - kind: string; + kind?: string; /** * RFC 3339 date-time when this Page was published. */ - published: string; + published?: string; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The title of this entity. This is the name displayed in the Admin user * interface. */ - title: string; + title?: string; /** * RFC 3339 date-time when this Page was last updated. */ - updated: string; + updated?: string; /** * The URL that this Page is displayed at. */ - url: string; + url?: string; } export interface Schema$PageList { /** * The list of Pages for a Blog. */ - items: Schema$Page[]; + items?: Schema$Page[]; /** * The kind of this entity. Always blogger#pageList */ - kind: string; + kind?: string; } export interface Schema$Post { /** * The author of this Post. */ - author: any; + author?: any; /** * Data about the blog containing this Post. */ - blog: any; + blog?: any; /** * The content of the Post. May contain HTML markup. */ - content: string; + content?: string; /** * The identifier of this Post. */ - id: string; + id?: string; /** * The kind of this entity. Always blogger#post */ - kind: string; + kind?: string; /** * The list of labels this Post was tagged with. */ - labels: string[]; + labels?: string[]; /** * RFC 3339 date-time when this Post was published. */ - published: string; + published?: string; /** * The container of comments on this Post. */ - replies: any; + replies?: any; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The title of the Post. */ - title: string; + title?: string; /** * RFC 3339 date-time when this Post was last updated. */ - updated: string; + updated?: string; /** * The URL where this Post is displayed. */ - url: string; + url?: string; } export interface Schema$PostList { /** * The list of Posts for this Blog. */ - items: Schema$Post[]; + items?: Schema$Post[]; /** * The kind of this entity. Always blogger#postList */ - kind: string; + kind?: string; /** * Pagination token to fetch the next page, if one exists. */ - nextPageToken: string; + nextPageToken?: string; /** * Pagination token to fetch the previous page, if one exists. */ - prevPageToken: string; + prevPageToken?: string; } export interface Schema$User { /** * Profile summary information. */ - about: string; + about?: string; /** * The container of blogs for this user. */ - blogs: any; + blogs?: any; /** * The timestamp of when this profile was created, in seconds since epoch. */ - created: string; + created?: string; /** * The display name. */ - displayName: string; + displayName?: string; /** * The identifier for this User. */ - id: string; + id?: string; /** * The kind of this entity. Always blogger#user */ - kind: string; + kind?: string; /** * This user's locale */ - locale: any; + locale?: any; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The user's profile page. */ - url: string; + url?: string; } + export class Resource$Blogs { root: Blogger; constructor(root: Blogger) { @@ -373,21 +377,33 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Blogs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Blogs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Blogs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Blogs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Blogs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Blogs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -410,6 +426,19 @@ export namespace blogger_v2 { } } + export interface Params$Resource$Blogs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog to get. + */ + blogId?: string; + } + + export class Resource$Comments { root: Blogger; constructor(root: Blogger) { @@ -436,23 +465,33 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Comments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Comments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Comments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Comments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -494,26 +533,37 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -537,6 +587,58 @@ export namespace blogger_v2 { } } + export interface Params$Resource$Comments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to containing the comment. + */ + blogId?: string; + /** + * The ID of the comment to get. + */ + commentId?: string; + /** + * ID of the post to fetch posts from. + */ + postId?: string; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch comments from. + */ + blogId?: string; + /** + * Whether the body content of the comments is included. + */ + fetchBodies?: boolean; + /** + * Maximum number of comments to include in the result. + */ + maxResults?: number; + /** + * Continuation token if request is paged. + */ + pageToken?: string; + /** + * ID of the post to fetch posts from. + */ + postId?: string; + /** + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + */ + startDate?: string; + } + + export class Resource$Pages { root: Blogger; constructor(root: Blogger) { @@ -562,21 +664,33 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Pages$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Pages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -612,25 +726,36 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Pages$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Pages$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -653,6 +778,38 @@ export namespace blogger_v2 { } } + export interface Params$Resource$Pages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog containing the page. + */ + blogId?: string; + /** + * The ID of the page to get. + */ + pageId?: string; + } + export interface Params$Resource$Pages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch pages from. + */ + blogId?: string; + /** + * Whether to retrieve the Page bodies. + */ + fetchBodies?: boolean; + } + + export class Resource$Posts { root: Blogger; constructor(root: Blogger) { @@ -678,21 +835,33 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Posts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Posts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Posts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Posts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -731,25 +900,36 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Posts$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Posts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -772,6 +952,50 @@ export namespace blogger_v2 { } } + export interface Params$Resource$Posts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch the post from. + */ + blogId?: string; + /** + * The ID of the post + */ + postId?: string; + } + export interface Params$Resource$Posts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch posts from. + */ + blogId?: string; + /** + * Whether the body content of posts is included. + */ + fetchBodies?: boolean; + /** + * Maximum number of posts to fetch. + */ + maxResults?: number; + /** + * Continuation token if the request is paged. + */ + pageToken?: string; + /** + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + */ + startDate?: string; + } + + export class Resource$Users { root: Blogger; blogs: Resource$Users$Blogs; @@ -798,21 +1022,33 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -834,6 +1070,19 @@ export namespace blogger_v2 { } } } + + export interface Params$Resource$Users$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the user to get. + */ + userId?: string; + } + export class Resource$Users$Blogs { root: Blogger; constructor(root: Blogger) { @@ -858,25 +1107,36 @@ export namespace blogger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Users$Blogs$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Blogs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Blogs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Blogs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Blogs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Blogs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -898,4 +1158,17 @@ export namespace blogger_v2 { } } } + + export interface Params$Resource$Users$Blogs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the user whose blogs are to be fetched. Either the word 'self' + * (sans quote marks) or the user's profile identifier. + */ + userId?: string; + } } diff --git a/src/apis/blogger/v3.ts b/src/apis/blogger/v3.ts index 020b94917ba..51f15df23da 100644 --- a/src/apis/blogger/v3.ts +++ b/src/apis/blogger/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace blogger_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Blogger API * @@ -83,447 +86,448 @@ export namespace blogger_v3 { /** * The JSON custom meta-data for the Blog */ - customMetaData: string; + customMetaData?: string; /** * The description of this blog. This is displayed underneath the title. */ - description: string; + description?: string; /** * The identifier for this resource. */ - id: string; + id?: string; /** * The kind of this entry. Always blogger#blog */ - kind: string; + kind?: string; /** * The locale this Blog is set to. */ - locale: any; + locale?: any; /** * The name of this blog. This is displayed as the title. */ - name: string; + name?: string; /** * The container of pages in this blog. */ - pages: any; + pages?: any; /** * The container of posts in this blog. */ - posts: any; + posts?: any; /** * RFC 3339 date-time when this blog was published. */ - published: string; + published?: string; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The status of the blog. */ - status: string; + status?: string; /** * RFC 3339 date-time when this blog was last updated. */ - updated: string; + updated?: string; /** * The URL where this blog is published. */ - url: string; + url?: string; } export interface Schema$BlogList { /** * Admin level list of blog per-user information */ - blogUserInfos: Schema$BlogUserInfo[]; + blogUserInfos?: Schema$BlogUserInfo[]; /** * The list of Blogs this user has Authorship or Admin rights over. */ - items: Schema$Blog[]; + items?: Schema$Blog[]; /** * The kind of this entity. Always blogger#blogList */ - kind: string; + kind?: string; } export interface Schema$BlogPerUserInfo { /** * ID of the Blog resource */ - blogId: string; + blogId?: string; /** * True if the user has Admin level access to the blog. */ - hasAdminAccess: boolean; + hasAdminAccess?: boolean; /** * The kind of this entity. Always blogger#blogPerUserInfo */ - kind: string; + kind?: string; /** * The Photo Album Key for the user when adding photos to the blog */ - photosAlbumKey: string; + photosAlbumKey?: string; /** * Access permissions that the user has for the blog (ADMIN, AUTHOR, or * READER). */ - role: string; + role?: string; /** * ID of the User */ - userId: string; + userId?: string; } export interface Schema$BlogUserInfo { /** * The Blog resource. */ - blog: Schema$Blog; + blog?: Schema$Blog; /** * Information about a User for the Blog. */ - blog_user_info: Schema$BlogPerUserInfo; + blog_user_info?: Schema$BlogPerUserInfo; /** * The kind of this entity. Always blogger#blogUserInfo */ - kind: string; + kind?: string; } export interface Schema$Comment { /** * The author of this Comment. */ - author: any; + author?: any; /** * Data about the blog containing this comment. */ - blog: any; + blog?: any; /** * The actual content of the comment. May include HTML markup. */ - content: string; + content?: string; /** * The identifier for this resource. */ - id: string; + id?: string; /** * Data about the comment this is in reply to. */ - inReplyTo: any; + inReplyTo?: any; /** * The kind of this entry. Always blogger#comment */ - kind: string; + kind?: string; /** * Data about the post containing this comment. */ - post: any; + post?: any; /** * RFC 3339 date-time when this comment was published. */ - published: string; + published?: string; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The status of the comment (only populated for admin users) */ - status: string; + status?: string; /** * RFC 3339 date-time when this comment was last updated. */ - updated: string; + updated?: string; } export interface Schema$CommentList { /** * Etag of the response. */ - etag: string; + etag?: string; /** * The List of Comments for a Post. */ - items: Schema$Comment[]; + items?: Schema$Comment[]; /** * The kind of this entry. Always blogger#commentList */ - kind: string; + kind?: string; /** * Pagination token to fetch the next page, if one exists. */ - nextPageToken: string; + nextPageToken?: string; /** * Pagination token to fetch the previous page, if one exists. */ - prevPageToken: string; + prevPageToken?: string; } export interface Schema$Page { /** * The author of this Page. */ - author: any; + author?: any; /** * Data about the blog containing this Page. */ - blog: any; + blog?: any; /** * The body content of this Page, in HTML. */ - content: string; + content?: string; /** * Etag of the resource. */ - etag: string; + etag?: string; /** * The identifier for this resource. */ - id: string; + id?: string; /** * The kind of this entity. Always blogger#page */ - kind: string; + kind?: string; /** * RFC 3339 date-time when this Page was published. */ - published: string; + published?: string; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The status of the page for admin resources (either LIVE or DRAFT). */ - status: string; + status?: string; /** * The title of this entity. This is the name displayed in the Admin user * interface. */ - title: string; + title?: string; /** * RFC 3339 date-time when this Page was last updated. */ - updated: string; + updated?: string; /** * The URL that this Page is displayed at. */ - url: string; + url?: string; } export interface Schema$PageList { /** * Etag of the response. */ - etag: string; + etag?: string; /** * The list of Pages for a Blog. */ - items: Schema$Page[]; + items?: Schema$Page[]; /** * The kind of this entity. Always blogger#pageList */ - kind: string; + kind?: string; /** * Pagination token to fetch the next page, if one exists. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Pageviews { /** * Blog Id */ - blogId: string; + blogId?: string; /** * The container of posts in this blog. */ - counts: any[]; + counts?: any[]; /** * The kind of this entry. Always blogger#page_views */ - kind: string; + kind?: string; } export interface Schema$Post { /** * The author of this Post. */ - author: any; + author?: any; /** * Data about the blog containing this Post. */ - blog: any; + blog?: any; /** * The content of the Post. May contain HTML markup. */ - content: string; + content?: string; /** * The JSON meta-data for the Post. */ - customMetaData: string; + customMetaData?: string; /** * Etag of the resource. */ - etag: string; + etag?: string; /** * The identifier of this Post. */ - id: string; + id?: string; /** * Display image for the Post. */ - images: any[]; + images?: any[]; /** * The kind of this entity. Always blogger#post */ - kind: string; + kind?: string; /** * The list of labels this Post was tagged with. */ - labels: string[]; + labels?: string[]; /** * The location for geotagged posts. */ - location: any; + location?: any; /** * RFC 3339 date-time when this Post was published. */ - published: string; + published?: string; /** * Comment control and display setting for readers of this post. */ - readerComments: string; + readerComments?: string; /** * The container of comments on this Post. */ - replies: any; + replies?: any; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * Status of the post. Only set for admin-level requests */ - status: string; + status?: string; /** * The title of the Post. */ - title: string; + title?: string; /** * The title link URL, similar to atom's related link. */ - titleLink: string; + titleLink?: string; /** * RFC 3339 date-time when this Post was last updated. */ - updated: string; + updated?: string; /** * The URL where this Post is displayed. */ - url: string; + url?: string; } export interface Schema$PostList { /** * Etag of the response. */ - etag: string; + etag?: string; /** * The list of Posts for this Blog. */ - items: Schema$Post[]; + items?: Schema$Post[]; /** * The kind of this entity. Always blogger#postList */ - kind: string; + kind?: string; /** * Pagination token to fetch the next page, if one exists. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$PostPerUserInfo { /** * ID of the Blog that the post resource belongs to. */ - blogId: string; + blogId?: string; /** * True if the user has Author level access to the post. */ - hasEditAccess: boolean; + hasEditAccess?: boolean; /** * The kind of this entity. Always blogger#postPerUserInfo */ - kind: string; + kind?: string; /** * ID of the Post resource. */ - postId: string; + postId?: string; /** * ID of the User. */ - userId: string; + userId?: string; } export interface Schema$PostUserInfo { /** * The kind of this entity. Always blogger#postUserInfo */ - kind: string; + kind?: string; /** * The Post resource. */ - post: Schema$Post; + post?: Schema$Post; /** * Information about a User for the Post. */ - post_user_info: Schema$PostPerUserInfo; + post_user_info?: Schema$PostPerUserInfo; } export interface Schema$PostUserInfosList { /** * The list of Posts with User information for the post, for this Blog. */ - items: Schema$PostUserInfo[]; + items?: Schema$PostUserInfo[]; /** * The kind of this entity. Always blogger#postList */ - kind: string; + kind?: string; /** * Pagination token to fetch the next page, if one exists. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$User { /** * Profile summary information. */ - about: string; + about?: string; /** * The container of blogs for this user. */ - blogs: any; + blogs?: any; /** * The timestamp of when this profile was created, in seconds since epoch. */ - created: string; + created?: string; /** * The display name. */ - displayName: string; + displayName?: string; /** * The identifier for this User. */ - id: string; + id?: string; /** * The kind of this entity. Always blogger#user */ - kind: string; + kind?: string; /** * This user's locale */ - locale: any; + locale?: any; /** * The API REST URL to fetch this resource from. */ - selfLink: string; + selfLink?: string; /** * The user's profile page. */ - url: string; + url?: string; } + export class Resource$Blogs { root: Blogger; constructor(root: Blogger) { @@ -550,21 +554,33 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Blogs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Blogs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Blogs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Blogs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Blogs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Blogs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -600,23 +616,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getByUrl(params?: any, options?: MethodOptions): AxiosPromise; + getByUrl(params?: Params$Resource$Blogs$Getbyurl, options?: MethodOptions): + AxiosPromise; getByUrl( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Blogs$Getbyurl, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getByUrl( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Blogs$Getbyurl, + callback: BodyResponseCallback): void; + getByUrl(callback: BodyResponseCallback): void; + getByUrl( + paramsOrCallback?: Params$Resource$Blogs$Getbyurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Blogs$Getbyurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Blogs$Getbyurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -655,26 +684,37 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listByUser(params?: any, options?: MethodOptions): - AxiosPromise; listByUser( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Blogs$Listbyuser, + options?: MethodOptions): AxiosPromise; + listByUser( + params: Params$Resource$Blogs$Listbyuser, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listByUser( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Blogs$Listbyuser, + callback: BodyResponseCallback): void; + listByUser(callback: BodyResponseCallback): void; + listByUser( + paramsOrCallback?: Params$Resource$Blogs$Listbyuser| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Blogs$Listbyuser; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Blogs$Listbyuser; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -697,6 +737,77 @@ export namespace blogger_v3 { } } + export interface Params$Resource$Blogs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog to get. + */ + blogId?: string; + /** + * Maximum number of posts to pull back with the blog. + */ + maxPosts?: number; + /** + * Access level with which to view the blog. Note that some fields require + * elevated access. + */ + view?: string; + } + export interface Params$Resource$Blogs$Getbyurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URL of the blog to retrieve. + */ + url?: string; + /** + * Access level with which to view the blog. Note that some fields require + * elevated access. + */ + view?: string; + } + export interface Params$Resource$Blogs$Listbyuser { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the response is a list of blogs with per-user information instead + * of just blogs. + */ + fetchUserInfo?: boolean; + /** + * User access types for blogs to include in the results, e.g. AUTHOR will + * return blogs where the user has author level access. If no roles are + * specified, defaults to ADMIN and AUTHOR roles. + */ + role?: string; + /** + * Blog statuses to include in the result (default: Live blogs only). Note + * that ADMIN access is required to view deleted blogs. + */ + status?: string; + /** + * ID of the user whose blogs are to be fetched. Either the word 'self' + * (sans quote marks) or the user's profile identifier. + */ + userId?: string; + /** + * Access level with which to view the blogs. Note that some fields require + * elevated access. + */ + view?: string; + } + + export class Resource$Bloguserinfos { root: Blogger; constructor(root: Blogger) { @@ -723,24 +834,35 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Bloguserinfos$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Bloguserinfos$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bloguserinfos$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bloguserinfos$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bloguserinfos$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bloguserinfos$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -763,6 +885,28 @@ export namespace blogger_v3 { } } + export interface Params$Resource$Bloguserinfos$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog to get. + */ + blogId?: string; + /** + * Maximum number of posts to pull back with the blog. + */ + maxPosts?: number; + /** + * ID of the user whose blogs are to be fetched. Either the word 'self' + * (sans quote marks) or the user's profile identifier. + */ + userId?: string; + } + + export class Resource$Comments { root: Blogger; constructor(root: Blogger) { @@ -789,26 +933,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - approve(params?: any, options?: MethodOptions): + approve(params?: Params$Resource$Comments$Approve, options?: MethodOptions): AxiosPromise; approve( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Approve, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + approve( + params: Params$Resource$Comments$Approve, + callback: BodyResponseCallback): void; + approve(callback: BodyResponseCallback): void; approve( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Approve| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Approve; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Approve; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -847,22 +1001,35 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Comments$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Comments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -902,23 +1069,33 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Comments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Comments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Comments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Comments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -963,26 +1140,37 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1025,26 +1213,39 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listByBlog(params?: any, options?: MethodOptions): - AxiosPromise; listByBlog( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Comments$Listbyblog, + options?: MethodOptions): AxiosPromise; + listByBlog( + params: Params$Resource$Comments$Listbyblog, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listByBlog( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Listbyblog, + callback: BodyResponseCallback): void; + listByBlog(callback: BodyResponseCallback): void; + listByBlog( + paramsOrCallback?: Params$Resource$Comments$Listbyblog| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Comments$Listbyblog; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Listbyblog; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1081,26 +1282,38 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - markAsSpam(params?: any, options?: MethodOptions): - AxiosPromise; markAsSpam( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Comments$Markasspam, + options?: MethodOptions): AxiosPromise; + markAsSpam( + params: Params$Resource$Comments$Markasspam, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + markAsSpam( + params: Params$Resource$Comments$Markasspam, + callback: BodyResponseCallback): void; + markAsSpam(callback: BodyResponseCallback): void; markAsSpam( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Markasspam| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Comments$Markasspam; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Markasspam; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1139,26 +1352,38 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeContent(params?: any, options?: MethodOptions): - AxiosPromise; removeContent( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Comments$Removecontent, + options?: MethodOptions): AxiosPromise; + removeContent( + params: Params$Resource$Comments$Removecontent, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeContent( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Removecontent, + callback: BodyResponseCallback): void; + removeContent(callback: BodyResponseCallback): void; + removeContent( + paramsOrCallback?: Params$Resource$Comments$Removecontent| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Comments$Removecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Removecontent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1183,6 +1408,189 @@ export namespace blogger_v3 { } } + export interface Params$Resource$Comments$Approve { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the comment to mark as not spam. + */ + commentId?: string; + /** + * The ID of the Post. + */ + postId?: string; + } + export interface Params$Resource$Comments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the comment to delete. + */ + commentId?: string; + /** + * The ID of the Post. + */ + postId?: string; + } + export interface Params$Resource$Comments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to containing the comment. + */ + blogId?: string; + /** + * The ID of the comment to get. + */ + commentId?: string; + /** + * ID of the post to fetch posts from. + */ + postId?: string; + /** + * Access level for the requested comment (default: READER). Note that some + * comments will require elevated permissions, for example comments where + * the parent posts which is in a draft state, or comments that are pending + * moderation. + */ + view?: string; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch comments from. + */ + blogId?: string; + /** + * Latest date of comment to fetch, a date-time with RFC 3339 formatting. + */ + endDate?: string; + /** + * Whether the body content of the comments is included. + */ + fetchBodies?: boolean; + /** + * Maximum number of comments to include in the result. + */ + maxResults?: number; + /** + * Continuation token if request is paged. + */ + pageToken?: string; + /** + * ID of the post to fetch posts from. + */ + postId?: string; + /** + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + */ + startDate?: string; + /** + * + */ + status?: string; + /** + * Access level with which to view the returned result. Note that some + * fields require elevated access. + */ + view?: string; + } + export interface Params$Resource$Comments$Listbyblog { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch comments from. + */ + blogId?: string; + /** + * Latest date of comment to fetch, a date-time with RFC 3339 formatting. + */ + endDate?: string; + /** + * Whether the body content of the comments is included. + */ + fetchBodies?: boolean; + /** + * Maximum number of comments to include in the result. + */ + maxResults?: number; + /** + * Continuation token if request is paged. + */ + pageToken?: string; + /** + * Earliest date of comment to fetch, a date-time with RFC 3339 formatting. + */ + startDate?: string; + /** + * + */ + status?: string; + } + export interface Params$Resource$Comments$Markasspam { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the comment to mark as spam. + */ + commentId?: string; + /** + * The ID of the Post. + */ + postId?: string; + } + export interface Params$Resource$Comments$Removecontent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the comment to delete content from. + */ + commentId?: string; + /** + * The ID of the Post. + */ + postId?: string; + } + + export class Resource$Pages { root: Blogger; constructor(root: Blogger) { @@ -1208,22 +1616,35 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Pages$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Pages$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pages$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1260,21 +1681,33 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Pages$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Pages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1311,23 +1744,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Pages$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pages$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Pages$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1368,25 +1814,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Pages$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Pages$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1425,23 +1882,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Pages$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pages$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Pages$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1477,23 +1947,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): AxiosPromise; + publish(params?: Params$Resource$Pages$Publish, options?: MethodOptions): + AxiosPromise; + publish( + params: Params$Resource$Pages$Publish, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; publish( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$Publish, + callback: BodyResponseCallback): void; + publish(callback: BodyResponseCallback): void; publish( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pages$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1530,23 +2013,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): AxiosPromise; + revert(params?: Params$Resource$Pages$Revert, options?: MethodOptions): + AxiosPromise; revert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$Revert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; revert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pages$Revert, + callback: BodyResponseCallback): void; + revert(callback: BodyResponseCallback): void; + revert( + paramsOrCallback?: Params$Resource$Pages$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1586,23 +2082,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Pages$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Pages$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pages$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pages$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pages$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pages$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1625,20 +2134,195 @@ export namespace blogger_v3 { } } - export class Resource$Pageviews { - root: Blogger; - constructor(root: Blogger) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Pages$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * blogger.pageViews.get + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the Page. + */ + pageId?: string; + } + export interface Params$Resource$Pages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog containing the page. + */ + blogId?: string; + /** + * The ID of the page to get. + */ + pageId?: string; + /** + * + */ + view?: string; + } + export interface Params$Resource$Pages$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to add the page to. + */ + blogId?: string; + /** + * Whether to create the page as a draft (default: false). + */ + isDraft?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Page; + } + export interface Params$Resource$Pages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch Pages from. + */ + blogId?: string; + /** + * Whether to retrieve the Page bodies. + */ + fetchBodies?: boolean; + /** + * Maximum number of Pages to fetch. + */ + maxResults?: number; + /** + * Continuation token if the request is paged. + */ + pageToken?: string; + /** + * + */ + status?: string; + /** + * Access level with which to view the returned result. Note that some + * fields require elevated access. + */ + view?: string; + } + export interface Params$Resource$Pages$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the Page. + */ + pageId?: string; + /** + * Whether a publish action should be performed when the page is updated + * (default: false). + */ + publish?: boolean; + /** + * Whether a revert action should be performed when the page is updated + * (default: false). + */ + revert?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Page; + } + export interface Params$Resource$Pages$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog. + */ + blogId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Pages$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog. + */ + blogId?: string; + /** + * The ID of the page. + */ + pageId?: string; + } + export interface Params$Resource$Pages$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the Page. + */ + pageId?: string; + /** + * Whether a publish action should be performed when the page is updated + * (default: false). + */ + publish?: boolean; + /** + * Whether a revert action should be performed when the page is updated + * (default: false). + */ + revert?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Page; + } + + + export class Resource$Pageviews { + root: Blogger; + constructor(root: Blogger) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * blogger.pageViews.get * @desc Retrieve pageview stats for a Blog. * @alias blogger.pageViews.get * @memberOf! () @@ -1650,23 +2334,34 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Pageviews$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Pageviews$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pageviews$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pageviews$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pageviews$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pageviews$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1689,6 +2384,23 @@ export namespace blogger_v3 { } } + export interface Params$Resource$Pageviews$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog to get. + */ + blogId?: string; + /** + * + */ + range?: string; + } + + export class Resource$Posts { root: Blogger; constructor(root: Blogger) { @@ -1714,22 +2426,35 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Posts$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Posts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1769,21 +2494,33 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Posts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Posts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Posts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Posts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1821,23 +2558,37 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getByPath(params?: any, options?: MethodOptions): AxiosPromise; getByPath( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Posts$Getbypath, + options?: MethodOptions): AxiosPromise; + getByPath( + params: Params$Resource$Posts$Getbypath, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getByPath( + params: Params$Resource$Posts$Getbypath, + callback: BodyResponseCallback): void; + getByPath(callback: BodyResponseCallback): void; getByPath( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$Getbypath| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Getbypath; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Getbypath; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1876,23 +2627,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Posts$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Posts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1937,25 +2701,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Posts$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Posts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1997,23 +2772,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Posts$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Posts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2051,23 +2839,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): AxiosPromise; + publish(params?: Params$Resource$Posts$Publish, options?: MethodOptions): + AxiosPromise; publish( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Publish, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; publish( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Posts$Publish, + callback: BodyResponseCallback): void; + publish(callback: BodyResponseCallback): void; + publish( + paramsOrCallback?: Params$Resource$Posts$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2104,23 +2905,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): AxiosPromise; + revert(params?: Params$Resource$Posts$Revert, options?: MethodOptions): + AxiosPromise; + revert( + params: Params$Resource$Posts$Revert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; revert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Revert, + callback: BodyResponseCallback): void; + revert(callback: BodyResponseCallback): void; revert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2159,26 +2973,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Posts$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Posts$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Posts$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2220,23 +3044,36 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Posts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Posts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Posts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Posts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Posts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Posts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2259,6 +3096,312 @@ export namespace blogger_v3 { } } + export interface Params$Resource$Posts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the Post. + */ + postId?: string; + } + export interface Params$Resource$Posts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch the post from. + */ + blogId?: string; + /** + * Whether the body content of the post is included (default: true). This + * should be set to false when the post bodies are not required, to help + * minimize traffic. + */ + fetchBody?: boolean; + /** + * Whether image URL metadata for each post is included (default: false). + */ + fetchImages?: boolean; + /** + * Maximum number of comments to pull back on a post. + */ + maxComments?: number; + /** + * The ID of the post + */ + postId?: string; + /** + * Access level with which to view the returned result. Note that some + * fields require elevated access. + */ + view?: string; + } + export interface Params$Resource$Posts$Getbypath { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch the post from. + */ + blogId?: string; + /** + * Maximum number of comments to pull back on a post. + */ + maxComments?: number; + /** + * Path of the Post to retrieve. + */ + path?: string; + /** + * Access level with which to view the returned result. Note that some + * fields require elevated access. + */ + view?: string; + } + export interface Params$Resource$Posts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to add the post to. + */ + blogId?: string; + /** + * Whether the body content of the post is included with the result + * (default: true). + */ + fetchBody?: boolean; + /** + * Whether image URL metadata for each post is included in the returned + * result (default: false). + */ + fetchImages?: boolean; + /** + * Whether to create the post as a draft (default: false). + */ + isDraft?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Post; + } + export interface Params$Resource$Posts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch posts from. + */ + blogId?: string; + /** + * Latest post date to fetch, a date-time with RFC 3339 formatting. + */ + endDate?: string; + /** + * Whether the body content of posts is included (default: true). This + * should be set to false when the post bodies are not required, to help + * minimize traffic. + */ + fetchBodies?: boolean; + /** + * Whether image URL metadata for each post is included. + */ + fetchImages?: boolean; + /** + * Comma-separated list of labels to search for. + */ + labels?: string; + /** + * Maximum number of posts to fetch. + */ + maxResults?: number; + /** + * Sort search results + */ + orderBy?: string; + /** + * Continuation token if the request is paged. + */ + pageToken?: string; + /** + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + */ + startDate?: string; + /** + * Statuses to include in the results. + */ + status?: string; + /** + * Access level with which to view the returned result. Note that some + * fields require escalated access. + */ + view?: string; + } + export interface Params$Resource$Posts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * Whether the body content of the post is included with the result + * (default: true). + */ + fetchBody?: boolean; + /** + * Whether image URL metadata for each post is included in the returned + * result (default: false). + */ + fetchImages?: boolean; + /** + * Maximum number of comments to retrieve with the returned post. + */ + maxComments?: number; + /** + * The ID of the Post. + */ + postId?: string; + /** + * Whether a publish action should be performed when the post is updated + * (default: false). + */ + publish?: boolean; + /** + * Whether a revert action should be performed when the post is updated + * (default: false). + */ + revert?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Post; + } + export interface Params$Resource$Posts$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the Post. + */ + postId?: string; + /** + * Optional date and time to schedule the publishing of the Blog. If no + * publishDate parameter is given, the post is either published at the a + * previously saved schedule date (if present), or the current time. If a + * future date is given, the post will be scheduled to be published. + */ + publishDate?: string; + } + export interface Params$Resource$Posts$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * The ID of the Post. + */ + postId?: string; + } + export interface Params$Resource$Posts$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch the post from. + */ + blogId?: string; + /** + * Whether the body content of posts is included (default: true). This + * should be set to false when the post bodies are not required, to help + * minimize traffic. + */ + fetchBodies?: boolean; + /** + * Sort search results + */ + orderBy?: string; + /** + * Query terms to search this blog for matching posts. + */ + q?: string; + } + export interface Params$Resource$Posts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Blog. + */ + blogId?: string; + /** + * Whether the body content of the post is included with the result + * (default: true). + */ + fetchBody?: boolean; + /** + * Whether image URL metadata for each post is included in the returned + * result (default: false). + */ + fetchImages?: boolean; + /** + * Maximum number of comments to retrieve with the returned post. + */ + maxComments?: number; + /** + * The ID of the Post. + */ + postId?: string; + /** + * Whether a publish action should be performed when the post is updated + * (default: false). + */ + publish?: boolean; + /** + * Whether a revert action should be performed when the post is updated + * (default: false). + */ + revert?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Post; + } + + export class Resource$Postuserinfos { root: Blogger; constructor(root: Blogger) { @@ -2288,24 +3431,35 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Postuserinfos$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Postuserinfos$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Postuserinfos$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Postuserinfos$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Postuserinfos$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Postuserinfos$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2353,26 +3507,38 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Postuserinfos$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Postuserinfos$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Postuserinfos$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Postuserinfos$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Postuserinfos$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Postuserinfos$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2395,6 +3561,85 @@ export namespace blogger_v3 { } } + export interface Params$Resource$Postuserinfos$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the blog. + */ + blogId?: string; + /** + * Maximum number of comments to pull back on a post. + */ + maxComments?: number; + /** + * The ID of the post to get. + */ + postId?: string; + /** + * ID of the user for the per-user information to be fetched. Either the + * word 'self' (sans quote marks) or the user's profile identifier. + */ + userId?: string; + } + export interface Params$Resource$Postuserinfos$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the blog to fetch posts from. + */ + blogId?: string; + /** + * Latest post date to fetch, a date-time with RFC 3339 formatting. + */ + endDate?: string; + /** + * Whether the body content of posts is included. Default is false. + */ + fetchBodies?: boolean; + /** + * Comma-separated list of labels to search for. + */ + labels?: string; + /** + * Maximum number of posts to fetch. + */ + maxResults?: number; + /** + * Sort order applied to search results. Default is published. + */ + orderBy?: string; + /** + * Continuation token if the request is paged. + */ + pageToken?: string; + /** + * Earliest post date to fetch, a date-time with RFC 3339 formatting. + */ + startDate?: string; + /** + * + */ + status?: string; + /** + * ID of the user for the per-user information to be fetched. Either the + * word 'self' (sans quote marks) or the user's profile identifier. + */ + userId?: string; + /** + * Access level with which to view the returned result. Note that some + * fields require elevated access. + */ + view?: string; + } + + export class Resource$Users { root: Blogger; constructor(root: Blogger) { @@ -2419,21 +3664,33 @@ export namespace blogger_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2455,4 +3712,16 @@ export namespace blogger_v3 { } } } + + export interface Params$Resource$Users$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the user to get. + */ + userId?: string; + } } diff --git a/src/apis/books/v1.ts b/src/apis/books/v1.ts index 52d8442948d..2a8702f78f5 100644 --- a/src/apis/books/v1.ts +++ b/src/apis/books/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace books_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Books API * @@ -94,612 +97,612 @@ export namespace books_v1 { * Anchor text after excerpt. For requests, if the user bookmarked a screen * that has no flowing text on it, then this field should be empty. */ - afterSelectedText: string; + afterSelectedText?: string; /** * Anchor text before excerpt. For requests, if the user bookmarked a screen * that has no flowing text on it, then this field should be empty. */ - beforeSelectedText: string; + beforeSelectedText?: string; /** * Selection ranges sent from the client. */ - clientVersionRanges: any; + clientVersionRanges?: any; /** * Timestamp for the created time of this annotation. */ - created: string; + created?: string; /** * Selection ranges for the most recent content version. */ - currentVersionRanges: any; + currentVersionRanges?: any; /** * User-created data for this annotation. */ - data: string; + data?: string; /** * Indicates that this annotation is deleted. */ - deleted: boolean; + deleted?: boolean; /** * The highlight style for this annotation. */ - highlightStyle: string; + highlightStyle?: string; /** * Id of this annotation, in the form of a GUID. */ - id: string; + id?: string; /** * Resource type. */ - kind: string; + kind?: string; /** * The layer this annotation is for. */ - layerId: string; - layerSummary: any; + layerId?: string; + layerSummary?: any; /** * Pages that this annotation spans. */ - pageIds: string[]; + pageIds?: string[]; /** * Excerpt from the volume. */ - selectedText: string; + selectedText?: string; /** * URL to this resource. */ - selfLink: string; + selfLink?: string; /** * Timestamp for the last time this annotation was modified. */ - updated: string; + updated?: string; /** * The volume that this annotation belongs to. */ - volumeId: string; + volumeId?: string; } export interface Schema$Annotationdata { /** * The type of annotation this data is for. */ - annotationType: string; - data: any; + annotationType?: string; + data?: any; /** * Base64 encoded data for this annotation data. */ - encoded_data: string; + encoded_data?: string; /** * Unique id for this annotation data. */ - id: string; + id?: string; /** * Resource Type */ - kind: string; + kind?: string; /** * The Layer id for this data. * */ - layerId: string; + layerId?: string; /** * URL for this resource. * */ - selfLink: string; + selfLink?: string; /** * Timestamp for the last time this data was updated. (RFC 3339 UTC * date-time format). */ - updated: string; + updated?: string; /** * The volume id for this data. * */ - volumeId: string; + volumeId?: string; } export interface Schema$Annotations { /** * A list of annotations. */ - items: Schema$Annotation[]; + items?: Schema$Annotation[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Token to pass in for pagination for the next page. This will not be * present if this request does not have more results. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of annotations found. This may be greater than the number of * notes returned in this response if results have been paginated. */ - totalItems: number; + totalItems?: number; } export interface Schema$Annotationsdata { /** * A list of Annotation Data. */ - items: Schema$Annotationdata[]; + items?: Schema$Annotationdata[]; /** * Resource type */ - kind: string; + kind?: string; /** * Token to pass in for pagination for the next page. This will not be * present if this request does not have more results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of volume annotations found. */ - totalItems: number; + totalItems?: number; } export interface Schema$AnnotationsSummary { - kind: string; - layers: any[]; + kind?: string; + layers?: any[]; } export interface Schema$BooksAnnotationsRange { /** * The offset from the ending position. */ - endOffset: string; + endOffset?: string; /** * The ending position for the range. */ - endPosition: string; + endPosition?: string; /** * The offset from the starting position. */ - startOffset: string; + startOffset?: string; /** * The starting position for the range. */ - startPosition: string; + startPosition?: string; } export interface Schema$BooksCloudloadingResource { - author: string; - processingState: string; - title: string; - volumeId: string; + author?: string; + processingState?: string; + title?: string; + volumeId?: string; } export interface Schema$Bookshelf { /** * Whether this bookshelf is PUBLIC or PRIVATE. */ - access: string; + access?: string; /** * Created time for this bookshelf (formatted UTC timestamp with millisecond * resolution). */ - created: string; + created?: string; /** * Description of this bookshelf. */ - description: string; + description?: string; /** * Id of this bookshelf, only unique by user. */ - id: number; + id?: number; /** * Resource type for bookshelf metadata. */ - kind: string; + kind?: string; /** * URL to this resource. */ - selfLink: string; + selfLink?: string; /** * Title of this bookshelf. */ - title: string; + title?: string; /** * Last modified time of this bookshelf (formatted UTC timestamp with * millisecond resolution). */ - updated: string; + updated?: string; /** * Number of volumes in this bookshelf. */ - volumeCount: number; + volumeCount?: number; /** * Last time a volume was added or removed from this bookshelf (formatted * UTC timestamp with millisecond resolution). */ - volumesLastUpdated: string; + volumesLastUpdated?: string; } export interface Schema$Bookshelves { /** * A list of bookshelves. */ - items: Schema$Bookshelf[]; + items?: Schema$Bookshelf[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$BooksVolumesRecommendedRateResponse { - consistency_token: string; + consistency_token?: string; } export interface Schema$Category { /** * A list of onboarding categories. */ - items: any[]; + items?: any[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$ConcurrentAccessRestriction { /** * Whether access is granted for this (user, device, volume). */ - deviceAllowed: boolean; + deviceAllowed?: boolean; /** * Resource type. */ - kind: string; + kind?: string; /** * The maximum number of concurrent access licenses for this volume. */ - maxConcurrentDevices: number; + maxConcurrentDevices?: number; /** * Error/warning message. */ - message: string; + message?: string; /** * Client nonce for verification. Download access and client-validation * only. */ - nonce: string; + nonce?: string; /** * Error/warning reason code. */ - reasonCode: string; + reasonCode?: string; /** * Whether this volume has any concurrent access restrictions. */ - restricted: boolean; + restricted?: boolean; /** * Response signature. */ - signature: string; + signature?: string; /** * Client app identifier for verification. Download access and * client-validation only. */ - source: string; + source?: string; /** * Time in seconds for license auto-expiration. */ - timeWindowSeconds: number; + timeWindowSeconds?: number; /** * Identifies the volume for which this entry applies. */ - volumeId: string; + volumeId?: string; } export interface Schema$Dictlayerdata { - common: any; - dict: any; - kind: string; + common?: any; + dict?: any; + kind?: string; } export interface Schema$Discoveryclusters { - clusters: any[]; + clusters?: any[]; /** * Resorce type. */ - kind: string; - totalClusters: number; + kind?: string; + totalClusters?: number; } export interface Schema$DownloadAccesses { /** * A list of download access responses. */ - downloadAccessList: Schema$DownloadAccessRestriction[]; + downloadAccessList?: Schema$DownloadAccessRestriction[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$DownloadAccessRestriction { /** * If restricted, whether access is granted for this (user, device, volume). */ - deviceAllowed: boolean; + deviceAllowed?: boolean; /** * If restricted, the number of content download licenses already acquired * (including the requesting client, if licensed). */ - downloadsAcquired: number; + downloadsAcquired?: number; /** * If deviceAllowed, whether access was just acquired with this request. */ - justAcquired: boolean; + justAcquired?: boolean; /** * Resource type. */ - kind: string; + kind?: string; /** * If restricted, the maximum number of content download licenses for this * volume. */ - maxDownloadDevices: number; + maxDownloadDevices?: number; /** * Error/warning message. */ - message: string; + message?: string; /** * Client nonce for verification. Download access and client-validation * only. */ - nonce: string; + nonce?: string; /** * Error/warning reason code. Additional codes may be added in the future. 0 * OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 * WARNING_USED_LAST_ACCESS */ - reasonCode: string; + reasonCode?: string; /** * Whether this volume has any download access restrictions. */ - restricted: boolean; + restricted?: boolean; /** * Response signature. */ - signature: string; + signature?: string; /** * Client app identifier for verification. Download access and * client-validation only. */ - source: string; + source?: string; /** * Identifies the volume for which this entry applies. */ - volumeId: string; + volumeId?: string; } export interface Schema$FamilyInfo { /** * Resource type. */ - kind: string; + kind?: string; /** * Family membership info of the user that made the request. */ - membership: any; + membership?: any; } export interface Schema$Geolayerdata { - common: any; - geo: any; - kind: string; + common?: any; + geo?: any; + kind?: string; } export interface Schema$Layersummaries { /** * A list of layer summary items. */ - items: Schema$Layersummary[]; + items?: Schema$Layersummary[]; /** * Resource type. */ - kind: string; + kind?: string; /** * The total number of layer summaries found. */ - totalItems: number; + totalItems?: number; } export interface Schema$Layersummary { /** * The number of annotations for this layer. */ - annotationCount: number; + annotationCount?: number; /** * Link to get data for this annotation. */ - annotationsDataLink: string; + annotationsDataLink?: string; /** * The link to get the annotations for this layer. */ - annotationsLink: string; + annotationsLink?: string; /** * The list of annotation types contained for this layer. */ - annotationTypes: string[]; + annotationTypes?: string[]; /** * The content version this resource is for. */ - contentVersion: string; + contentVersion?: string; /** * The number of data items for this layer. */ - dataCount: number; + dataCount?: number; /** * Unique id of this layer summary. */ - id: string; + id?: string; /** * Resource Type */ - kind: string; + kind?: string; /** * The layer id for this summary. */ - layerId: string; + layerId?: string; /** * URL to this resource. */ - selfLink: string; + selfLink?: string; /** * Timestamp for the last time an item in this layer was updated. (RFC 3339 * UTC date-time format). */ - updated: string; + updated?: string; /** * The current version of this layer's volume annotations. Note that * this version applies only to the data in the * books.layers.volumeAnnotations.* responses. The actual annotation data is * versioned separately. */ - volumeAnnotationsVersion: string; + volumeAnnotationsVersion?: string; /** * The volume id this resource is for. */ - volumeId: string; + volumeId?: string; } export interface Schema$Metadata { /** * A list of offline dictionary metadata. */ - items: any[]; + items?: any[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$Notification { - body: string; + body?: string; /** * The list of crm experiment ids. */ - crmExperimentIds: string[]; - doc_id: string; - doc_type: string; - dont_show_notification: boolean; - iconUrl: string; + crmExperimentIds?: string[]; + doc_id?: string; + doc_type?: string; + dont_show_notification?: boolean; + iconUrl?: string; /** * Resource type. */ - kind: string; - notificationGroup: string; - notification_type: string; - pcampaign_id: string; - reason: string; - show_notification_settings_action: boolean; - targetUrl: string; - title: string; + kind?: string; + notificationGroup?: string; + notification_type?: string; + pcampaign_id?: string; + reason?: string; + show_notification_settings_action?: boolean; + targetUrl?: string; + title?: string; } export interface Schema$Offers { /** * A list of offers. */ - items: any[]; + items?: any[]; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$ReadingPosition { /** * Position in an EPUB as a CFI. */ - epubCfiPosition: string; + epubCfiPosition?: string; /** * Position in a volume for image-based content. */ - gbImagePosition: string; + gbImagePosition?: string; /** * Position in a volume for text-based content. */ - gbTextPosition: string; + gbTextPosition?: string; /** * Resource type for a reading position. */ - kind: string; + kind?: string; /** * Position in a PDF file. */ - pdfPosition: string; + pdfPosition?: string; /** * Timestamp when this reading position was last updated (formatted UTC * timestamp with millisecond resolution). */ - updated: string; + updated?: string; /** * Volume id associated with this reading position. */ - volumeId: string; + volumeId?: string; } export interface Schema$RequestAccess { /** * A concurrent access response. */ - concurrentAccess: Schema$ConcurrentAccessRestriction; + concurrentAccess?: Schema$ConcurrentAccessRestriction; /** * A download access response. */ - downloadAccess: Schema$DownloadAccessRestriction; + downloadAccess?: Schema$DownloadAccessRestriction; /** * Resource type. */ - kind: string; + kind?: string; } export interface Schema$Review { /** * Author of this review. */ - author: any; + author?: any; /** * Review text. */ - content: string; + content?: string; /** * Date of this review. */ - date: string; + date?: string; /** * URL for the full review text, for reviews gathered from the web. */ - fullTextUrl: string; + fullTextUrl?: string; /** * Resource type for a review. */ - kind: string; + kind?: string; /** * Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, * FIVE or NOT_RATED. */ - rating: string; + rating?: string; /** * Information regarding the source of this review, when the review is not * from a Google Books user. */ - source: any; + source?: any; /** * Title for this review. */ - title: string; + title?: string; /** * Source type for this review. Possible values are EDITORIAL, WEB_USER or * GOOGLE_USER. */ - type: string; + type?: string; /** * Volume that this review is for. */ - volumeId: string; + volumeId?: string; } export interface Schema$Series { /** * Resource type. */ - kind: string; - series: any[]; + kind?: string; + series?: any[]; } export interface Schema$Seriesmembership { /** * Resorce type. */ - kind: string; - member: Schema$Volume[]; - nextPageToken: string; + kind?: string; + member?: Schema$Volume[]; + nextPageToken?: string; } export interface Schema$Usersettings { /** * Resource type. */ - kind: string; + kind?: string; /** * User settings in sub-objects, each for different purposes. */ - notesExport: any; - notification: any; + notesExport?: any; + notification?: any; } export interface Schema$Volume { /** @@ -707,181 +710,182 @@ export namespace books_v1 { * volume text. This information can depend on country (books may be public * domain in one country but not in another, e.g.). */ - accessInfo: any; + accessInfo?: any; /** * Opaque identifier for a specific version of a volume resource. (In LITE * projection) */ - etag: string; + etag?: string; /** * Unique identifier for a volume. (In LITE projection.) */ - id: string; + id?: string; /** * Resource type for a volume. (In LITE projection.) */ - kind: string; + kind?: string; /** * What layers exist in this volume and high level information about them. */ - layerInfo: any; + layerInfo?: any; /** * Recommendation related information for this volume. */ - recommendedInfo: any; + recommendedInfo?: any; /** * Any information about a volume related to the eBookstore and/or * purchaseability. This information can depend on the country where the * request originates from (i.e. books may not be for sale in certain * countries). */ - saleInfo: any; + saleInfo?: any; /** * Search result information related to this volume. */ - searchInfo: any; + searchInfo?: any; /** * URL to this resource. (In LITE projection.) */ - selfLink: string; + selfLink?: string; /** * User specific information related to this volume. (e.g. page this user * last read or whether they purchased this book) */ - userInfo: any; + userInfo?: any; /** * General volume information. */ - volumeInfo: any; + volumeInfo?: any; } export interface Schema$Volume2 { /** * A list of volumes. */ - items: Schema$Volume[]; + items?: Schema$Volume[]; /** * Resource type. */ - kind: string; - nextPageToken: string; + kind?: string; + nextPageToken?: string; } export interface Schema$Volumeannotation { /** * The annotation data id for this volume annotation. */ - annotationDataId: string; + annotationDataId?: string; /** * Link to get data for this annotation. */ - annotationDataLink: string; + annotationDataLink?: string; /** * The type of annotation this is. */ - annotationType: string; + annotationType?: string; /** * The content ranges to identify the selected text. */ - contentRanges: any; + contentRanges?: any; /** * Data for this annotation. */ - data: string; + data?: string; /** * Indicates that this annotation is deleted. */ - deleted: boolean; + deleted?: boolean; /** * Unique id of this volume annotation. */ - id: string; + id?: string; /** * Resource Type */ - kind: string; + kind?: string; /** * The Layer this annotation is for. */ - layerId: string; + layerId?: string; /** * Pages the annotation spans. */ - pageIds: string[]; + pageIds?: string[]; /** * Excerpt from the volume. */ - selectedText: string; + selectedText?: string; /** * URL to this resource. */ - selfLink: string; + selfLink?: string; /** * Timestamp for the last time this anntoation was updated. (RFC 3339 UTC * date-time format). */ - updated: string; + updated?: string; /** * The Volume this annotation is for. */ - volumeId: string; + volumeId?: string; } export interface Schema$Volumeannotations { /** * A list of volume annotations. */ - items: Schema$Volumeannotation[]; + items?: Schema$Volumeannotation[]; /** * Resource type */ - kind: string; + kind?: string; /** * Token to pass in for pagination for the next page. This will not be * present if this request does not have more results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of volume annotations found. */ - totalItems: number; + totalItems?: number; /** * The version string for all of the volume annotations in this layer (not * just the ones in this response). Note: the version string doesn't * apply to the annotation data, just the information in this response (e.g. * the location of annotations in the book). */ - version: string; + version?: string; } export interface Schema$Volumes { /** * A list of volumes. */ - items: Schema$Volume[]; + items?: Schema$Volume[]; /** * Resource type. */ - kind: string; + kind?: string; /** * Total number of volumes found. This might be greater than the number of * volumes returned in this response if results have been paginated. */ - totalItems: number; + totalItems?: number; } export interface Schema$Volumeseriesinfo { /** * The display number string. This should be used only for display purposes * and the actual sequence should be inferred from the below orderNumber. */ - bookDisplayNumber: string; + bookDisplayNumber?: string; /** * Resource type. */ - kind: string; + kind?: string; /** * Short book title in the context of the series. */ - shortSeriesBookTitle: string; - volumeSeries: any[]; + shortSeriesBookTitle?: string; + volumeSeries?: any[]; } + export class Resource$Bookshelves { root: Books; volumes: Resource$Bookshelves$Volumes; @@ -910,23 +914,34 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Bookshelves$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Bookshelves$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bookshelves$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bookshelves$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Bookshelves$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bookshelves$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -962,26 +977,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Bookshelves$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Bookshelves$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Bookshelves$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Bookshelves$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Bookshelves$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bookshelves$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1003,6 +1029,42 @@ export namespace books_v1 { } } } + + export interface Params$Resource$Bookshelves$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of bookshelf to retrieve. + */ + shelf?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of user for whom to retrieve bookshelves. + */ + userId?: string; + } + export interface Params$Resource$Bookshelves$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of user for whom to retrieve bookshelves. + */ + userId?: string; + } + export class Resource$Bookshelves$Volumes { root: Books; constructor(root: Books) { @@ -1032,25 +1094,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bookshelves$Volumes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bookshelves$Volumes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Bookshelves$Volumes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Bookshelves$Volumes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bookshelves$Volumes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bookshelves$Volumes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1074,6 +1149,39 @@ export namespace books_v1 { } } + export interface Params$Resource$Bookshelves$Volumes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * ID of bookshelf to retrieve volumes. + */ + shelf?: string; + /** + * Set to true to show pre-ordered books. Defaults to false. + */ + showPreorders?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Index of the first element to return (starts at 0) + */ + startIndex?: number; + /** + * ID of user for whom to retrieve bookshelf volumes. + */ + userId?: string; + } + + export class Resource$Cloudloading { root: Books; @@ -1101,29 +1209,41 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addBook(params?: any, options?: MethodOptions): + addBook( + params?: Params$Resource$Cloudloading$Addbook, options?: MethodOptions): AxiosPromise; addBook( - params?: any, - options?: MethodOptions| + params: Params$Resource$Cloudloading$Addbook, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + addBook( + params: Params$Resource$Cloudloading$Addbook, + callback: BodyResponseCallback): void; + addBook(callback: BodyResponseCallback): void; addBook( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Cloudloading$Addbook| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Cloudloading$Addbook; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cloudloading$Addbook; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1159,22 +1279,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteBook(params?: any, options?: MethodOptions): AxiosPromise; deleteBook( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Cloudloading$Deletebook, + options?: MethodOptions): AxiosPromise; + deleteBook( + params: Params$Resource$Cloudloading$Deletebook, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteBook( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Cloudloading$Deletebook, + callback: BodyResponseCallback): void; + deleteBook(callback: BodyResponseCallback): void; + deleteBook( + paramsOrCallback?: Params$Resource$Cloudloading$Deletebook| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Cloudloading$Deletebook; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cloudloading$Deletebook; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1208,29 +1343,42 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateBook(params?: any, options?: MethodOptions): + updateBook( + params?: Params$Resource$Cloudloading$Updatebook, + options?: MethodOptions): AxiosPromise; updateBook( - params?: any, - options?: MethodOptions| + params: Params$Resource$Cloudloading$Updatebook, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; updateBook( - params?: any, - options?: MethodOptions| + params: Params$Resource$Cloudloading$Updatebook, + callback: BodyResponseCallback): void; + updateBook( + callback: BodyResponseCallback): void; + updateBook( + paramsOrCallback?: Params$Resource$Cloudloading$Updatebook| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Cloudloading$Updatebook; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cloudloading$Updatebook; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1254,6 +1402,49 @@ export namespace books_v1 { } } + export interface Params$Resource$Cloudloading$Addbook { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A drive document id. The upload_client_token must not be set. + */ + drive_document_id?: string; + /** + * The document MIME type. It can be set only if the drive_document_id is + * set. + */ + mime_type?: string; + /** + * The document name. It can be set only if the drive_document_id is set. + */ + name?: string; + /** + * + */ + upload_client_token?: string; + } + export interface Params$Resource$Cloudloading$Deletebook { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of the book to be removed. + */ + volumeId?: string; + } + export interface Params$Resource$Cloudloading$Updatebook { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Dictionary { root: Books; constructor(root: Books) { @@ -1278,26 +1469,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listOfflineMetadata(params?: any, options?: MethodOptions): - AxiosPromise; listOfflineMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dictionary$Listofflinemetadata, + options?: MethodOptions): AxiosPromise; + listOfflineMetadata( + params: Params$Resource$Dictionary$Listofflinemetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listOfflineMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Dictionary$Listofflinemetadata, + callback: BodyResponseCallback): void; + listOfflineMetadata(callback: BodyResponseCallback): void; + listOfflineMetadata( + paramsOrCallback?: Params$Resource$Dictionary$Listofflinemetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Dictionary$Listofflinemetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dictionary$Listofflinemetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1320,6 +1523,19 @@ export namespace books_v1 { } } + export interface Params$Resource$Dictionary$Listofflinemetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The device/version ID from which to request the data. + */ + cpksver?: string; + } + + export class Resource$Familysharing { root: Books; constructor(root: Books) { @@ -1344,26 +1560,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getFamilyInfo(params?: any, options?: MethodOptions): - AxiosPromise; getFamilyInfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Familysharing$Getfamilyinfo, + options?: MethodOptions): AxiosPromise; + getFamilyInfo( + params: Params$Resource$Familysharing$Getfamilyinfo, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getFamilyInfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Familysharing$Getfamilyinfo, + callback: BodyResponseCallback): void; + getFamilyInfo(callback: BodyResponseCallback): void; + getFamilyInfo( + paramsOrCallback?: Params$Resource$Familysharing$Getfamilyinfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Familysharing$Getfamilyinfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Familysharing$Getfamilyinfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1401,22 +1630,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - share(params?: any, options?: MethodOptions): AxiosPromise; share( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Familysharing$Share, + options?: MethodOptions): AxiosPromise; + share( + params: Params$Resource$Familysharing$Share, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; share( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Familysharing$Share, + callback: BodyResponseCallback): void; + share(callback: BodyResponseCallback): void; + share( + paramsOrCallback?: Params$Resource$Familysharing$Share| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Familysharing$Share; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Familysharing$Share; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1454,22 +1698,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unshare(params?: any, options?: MethodOptions): AxiosPromise; unshare( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Familysharing$Unshare, + options?: MethodOptions): AxiosPromise; + unshare( + params: Params$Resource$Familysharing$Unshare, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; unshare( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Familysharing$Unshare, + callback: BodyResponseCallback): void; + unshare(callback: BodyResponseCallback): void; + unshare( + paramsOrCallback?: Params$Resource$Familysharing$Unshare| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Familysharing$Unshare; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Familysharing$Unshare; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1492,6 +1751,57 @@ export namespace books_v1 { } } + export interface Params$Resource$Familysharing$Getfamilyinfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * String to identify the originator of this request. + */ + source?: string; + } + export interface Params$Resource$Familysharing$Share { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The docid to share. + */ + docId?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume to share. + */ + volumeId?: string; + } + export interface Params$Resource$Familysharing$Unshare { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The docid to unshare. + */ + docId?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume to unshare. + */ + volumeId?: string; + } + + export class Resource$Layers { root: Books; annotationData: Resource$Layers$Annotationdata; @@ -1523,24 +1833,34 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Layers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Layers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Layers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Layers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Layers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Layers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1580,26 +1900,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Layers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Layers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Layers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Layers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Layers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Layers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1621,6 +1952,58 @@ export namespace books_v1 { } } } + + export interface Params$Resource$Layers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The content version for the requested volume. + */ + contentVersion?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The ID for the layer to get the summary for. + */ + summaryId?: string; + /** + * The volume to retrieve layers for. + */ + volumeId?: string; + } + export interface Params$Resource$Layers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The content version for the requested volume. + */ + contentVersion?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * The value of the nextToken from the previous page. + */ + pageToken?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume to retrieve layers for. + */ + volumeId?: string; + } + export class Resource$Layers$Annotationdata { root: Books; constructor(root: Books) { @@ -1654,24 +2037,35 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Layers$Annotationdata$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Layers$Annotationdata$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Layers$Annotationdata$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Layers$Annotationdata$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Layers$Annotationdata$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Layers$Annotationdata$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1721,26 +2115,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Layers$Annotationdata$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Layers$Annotationdata$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Layers$Annotationdata$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Layers$Annotationdata$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Layers$Annotationdata$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Layers$Annotationdata$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1764,65 +2171,193 @@ export namespace books_v1 { } } - export class Resource$Layers$Volumeannotations { - root: Books; - constructor(root: Books) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Layers$Annotationdata$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * books.layers.volumeAnnotations.get - * @desc Gets the volume annotation. - * @alias books.layers.volumeAnnotations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.annotationId The ID of the volume annotation to retrieve. - * @param {string} params.layerId The ID for the layer to get the annotations. - * @param {string=} params.locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. - * @param {string=} params.source String to identify the originator of this request. - * @param {string} params.volumeId The volume to retrieve annotations for. - * @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 + * For the dictionary layer. Whether or not to allow web definitions. */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['volumeId', 'layerId', 'annotationId'], + allowWebDefinitions?: boolean; + /** + * The ID of the annotation data to retrieve. + */ + annotationDataId?: string; + /** + * The content version for the volume you are trying to retrieve. + */ + contentVersion?: string; + /** + * The requested pixel height for any images. If height is provided width + * must also be provided. + */ + h?: number; + /** + * The ID for the layer to get the annotations. + */ + layerId?: string; + /** + * The locale information for the data. ISO-639-1 language and ISO-3166-1 + * country code. Ex: 'en_US'. + */ + locale?: string; + /** + * The requested scale for the image. + */ + scale?: number; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume to retrieve annotations for. + */ + volumeId?: string; + /** + * The requested pixel width for any images. If width is provided height + * must also be provided. + */ + w?: number; + } + export interface Params$Resource$Layers$Annotationdata$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The list of Annotation Data Ids to retrieve. Pagination is ignored if + * this is set. + */ + annotationDataId?: string; + /** + * The content version for the requested volume. + */ + contentVersion?: string; + /** + * The requested pixel height for any images. If height is provided width + * must also be provided. + */ + h?: number; + /** + * The ID for the layer to get the annotation data. + */ + layerId?: string; + /** + * The locale information for the data. ISO-639-1 language and ISO-3166-1 + * country code. Ex: 'en_US'. + */ + locale?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * The value of the nextToken from the previous page. + */ + pageToken?: string; + /** + * The requested scale for the image. + */ + scale?: number; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * RFC 3339 timestamp to restrict to items updated prior to this timestamp + * (exclusive). + */ + updatedMax?: string; + /** + * RFC 3339 timestamp to restrict to items updated since this timestamp + * (inclusive). + */ + updatedMin?: string; + /** + * The volume to retrieve annotation data for. + */ + volumeId?: string; + /** + * The requested pixel width for any images. If width is provided height + * must also be provided. + */ + w?: number; + } + + + export class Resource$Layers$Volumeannotations { + root: Books; + constructor(root: Books) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * books.layers.volumeAnnotations.get + * @desc Gets the volume annotation. + * @alias books.layers.volumeAnnotations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.annotationId The ID of the volume annotation to retrieve. + * @param {string} params.layerId The ID for the layer to get the annotations. + * @param {string=} params.locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. + * @param {string=} params.source String to identify the originator of this request. + * @param {string} params.volumeId The volume to retrieve annotations for. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Layers$Volumeannotations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Layers$Volumeannotations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Layers$Volumeannotations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Layers$Volumeannotations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Layers$Volumeannotations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Layers$Volumeannotations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['volumeId', 'layerId', 'annotationId'], pathParams: ['annotationId', 'layerId', 'volumeId'], context: this.getRoot() }; @@ -1860,26 +2395,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Layers$Volumeannotations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Layers$Volumeannotations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Layers$Volumeannotations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Layers$Volumeannotations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Layers$Volumeannotations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Layers$Volumeannotations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1902,6 +2450,107 @@ export namespace books_v1 { } } + export interface Params$Resource$Layers$Volumeannotations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the volume annotation to retrieve. + */ + annotationId?: string; + /** + * The ID for the layer to get the annotations. + */ + layerId?: string; + /** + * The locale information for the data. ISO-639-1 language and ISO-3166-1 + * country code. Ex: 'en_US'. + */ + locale?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume to retrieve annotations for. + */ + volumeId?: string; + } + export interface Params$Resource$Layers$Volumeannotations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The content version for the requested volume. + */ + contentVersion?: string; + /** + * The end offset to end retrieving data from. + */ + endOffset?: string; + /** + * The end position to end retrieving data from. + */ + endPosition?: string; + /** + * The ID for the layer to get the annotations. + */ + layerId?: string; + /** + * The locale information for the data. ISO-639-1 language and ISO-3166-1 + * country code. Ex: 'en_US'. + */ + locale?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * The value of the nextToken from the previous page. + */ + pageToken?: string; + /** + * Set to true to return deleted annotations. updatedMin must be in the + * request to use this. Defaults to false. + */ + showDeleted?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The start offset to start retrieving data from. + */ + startOffset?: string; + /** + * The start position to start retrieving data from. + */ + startPosition?: string; + /** + * RFC 3339 timestamp to restrict to items updated prior to this timestamp + * (exclusive). + */ + updatedMax?: string; + /** + * RFC 3339 timestamp to restrict to items updated since this timestamp + * (inclusive). + */ + updatedMin?: string; + /** + * The version of the volume annotations that you are requesting. + */ + volumeAnnotationsVersion?: string; + /** + * The volume to retrieve annotations for. + */ + volumeId?: string; + } + + export class Resource$Myconfig { root: Books; @@ -1926,26 +2575,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getUserSettings(params?: any, options?: MethodOptions): - AxiosPromise; getUserSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Myconfig$Getusersettings, + options?: MethodOptions): AxiosPromise; + getUserSettings( + params: Params$Resource$Myconfig$Getusersettings, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getUserSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Myconfig$Getusersettings, + callback: BodyResponseCallback): void; + getUserSettings(callback: BodyResponseCallback): void; + getUserSettings( + paramsOrCallback?: Params$Resource$Myconfig$Getusersettings| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Myconfig$Getusersettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Myconfig$Getusersettings; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1983,26 +2645,40 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - releaseDownloadAccess(params?: any, options?: MethodOptions): - AxiosPromise; releaseDownloadAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Myconfig$Releasedownloadaccess, + options?: MethodOptions): AxiosPromise; releaseDownloadAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Myconfig$Releasedownloadaccess, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + releaseDownloadAccess( + params: Params$Resource$Myconfig$Releasedownloadaccess, + callback: BodyResponseCallback): void; + releaseDownloadAccess( + callback: BodyResponseCallback): void; + releaseDownloadAccess( + paramsOrCallback?: Params$Resource$Myconfig$Releasedownloadaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Myconfig$Releasedownloadaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Myconfig$Releasedownloadaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2042,26 +2718,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - requestAccess(params?: any, options?: MethodOptions): - AxiosPromise; requestAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Myconfig$Requestaccess, + options?: MethodOptions): AxiosPromise; + requestAccess( + params: Params$Resource$Myconfig$Requestaccess, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; requestAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Myconfig$Requestaccess, + callback: BodyResponseCallback): void; + requestAccess(callback: BodyResponseCallback): void; + requestAccess( + paramsOrCallback?: Params$Resource$Myconfig$Requestaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Myconfig$Requestaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Myconfig$Requestaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2104,26 +2793,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - syncVolumeLicenses(params?: any, options?: MethodOptions): - AxiosPromise; syncVolumeLicenses( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Myconfig$Syncvolumelicenses, + options?: MethodOptions): AxiosPromise; + syncVolumeLicenses( + params: Params$Resource$Myconfig$Syncvolumelicenses, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + syncVolumeLicenses( + params: Params$Resource$Myconfig$Syncvolumelicenses, + callback: BodyResponseCallback): void; + syncVolumeLicenses(callback: BodyResponseCallback): void; syncVolumeLicenses( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Myconfig$Syncvolumelicenses| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Myconfig$Syncvolumelicenses; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Myconfig$Syncvolumelicenses; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2160,26 +2861,40 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateUserSettings(params?: any, options?: MethodOptions): - AxiosPromise; updateUserSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Myconfig$Updateusersettings, + options?: MethodOptions): AxiosPromise; + updateUserSettings( + params: Params$Resource$Myconfig$Updateusersettings, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateUserSettings( + params: Params$Resource$Myconfig$Updateusersettings, + callback: BodyResponseCallback): void; + updateUserSettings(callback: BodyResponseCallback): + void; updateUserSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Myconfig$Updateusersettings| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Myconfig$Updateusersettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Myconfig$Updateusersettings; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2202,6 +2917,114 @@ export namespace books_v1 { } } + export interface Params$Resource$Myconfig$Getusersettings { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Myconfig$Releasedownloadaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The device/version ID from which to release the restriction. + */ + cpksver?: string; + /** + * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + */ + locale?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume(s) to release restrictions for. + */ + volumeIds?: string; + } + export interface Params$Resource$Myconfig$Requestaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The device/version ID from which to request the restrictions. + */ + cpksver?: string; + /** + * The type of access license to request. If not specified, the default is + * BOTH. + */ + licenseTypes?: string; + /** + * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + */ + locale?: string; + /** + * The client nonce value. + */ + nonce?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume to request concurrent/download restrictions for. + */ + volumeId?: string; + } + export interface Params$Resource$Myconfig$Syncvolumelicenses { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The device/version ID from which to release the restriction. + */ + cpksver?: string; + /** + * List of features supported by the client, i.e., 'RENTALS' + */ + features?: string; + /** + * Set to true to include non-comics series. Defaults to false. + */ + includeNonComicsSeries?: boolean; + /** + * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US. + */ + locale?: string; + /** + * The client nonce value. + */ + nonce?: string; + /** + * Set to true to show pre-ordered books. Defaults to false. + */ + showPreorders?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * The volume(s) to request download restrictions for. + */ + volumeIds?: string; + } + export interface Params$Resource$Myconfig$Updateusersettings { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Mylibrary { root: Books; annotations: Resource$Mylibrary$Annotations; @@ -2219,6 +3042,8 @@ export namespace books_v1 { return this.root; } } + + export class Resource$Mylibrary$Annotations { root: Books; constructor(root: Books) { @@ -2244,22 +3069,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Annotations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Mylibrary$Annotations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Annotations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Mylibrary$Annotations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Annotations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Annotations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2298,26 +3138,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Annotations$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Annotations$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Mylibrary$Annotations$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Mylibrary$Annotations$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Annotations$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Annotations$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2361,26 +3214,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Annotations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Annotations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Mylibrary$Annotations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Mylibrary$Annotations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Annotations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Annotations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2416,26 +3282,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - summary(params?: any, options?: MethodOptions): - AxiosPromise; summary( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Annotations$Summary, + options?: MethodOptions): AxiosPromise; + summary( + params: Params$Resource$Mylibrary$Annotations$Summary, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; summary( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Annotations$Summary, + callback: BodyResponseCallback): void; + summary(callback: BodyResponseCallback): void; + summary( + paramsOrCallback?: Params$Resource$Mylibrary$Annotations$Summary| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Annotations$Summary; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Annotations$Summary; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2472,26 +3351,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Annotations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Mylibrary$Annotations$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Annotations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Mylibrary$Annotations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Annotations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Annotations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2514,6 +3406,135 @@ export namespace books_v1 { } } + export interface Params$Resource$Mylibrary$Annotations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the annotation to delete. + */ + annotationId?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + } + export interface Params$Resource$Mylibrary$Annotations$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the annotation to insert. + */ + annotationId?: string; + /** + * ISO-3166-1 code to override the IP-based location. + */ + country?: string; + /** + * Requests that only the summary of the specified layer be provided in the + * response. + */ + showOnlySummaryInResponse?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Request body metadata + */ + resource?: Schema$Annotation; + } + export interface Params$Resource$Mylibrary$Annotations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The content version for the requested volume. + */ + contentVersion?: string; + /** + * The layer ID to limit annotation by. + */ + layerId?: string; + /** + * The layer ID(s) to limit annotation by. + */ + layerIds?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * The value of the nextToken from the previous page. + */ + pageToken?: string; + /** + * Set to true to return deleted annotations. updatedMin must be in the + * request to use this. Defaults to false. + */ + showDeleted?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * RFC 3339 timestamp to restrict to items updated prior to this timestamp + * (exclusive). + */ + updatedMax?: string; + /** + * RFC 3339 timestamp to restrict to items updated since this timestamp + * (inclusive). + */ + updatedMin?: string; + /** + * The volume to restrict annotations to. + */ + volumeId?: string; + } + export interface Params$Resource$Mylibrary$Annotations$Summary { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Array of layer IDs to get the summary for. + */ + layerIds?: string; + /** + * Volume id to get the summary for. + */ + volumeId?: string; + } + export interface Params$Resource$Mylibrary$Annotations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the annotation to update. + */ + annotationId?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Request body metadata + */ + resource?: Schema$Annotation; + } + + export class Resource$Mylibrary$Bookshelves { root: Books; volumes: Resource$Mylibrary$Bookshelves$Volumes; @@ -2543,22 +3564,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addVolume(params?: any, options?: MethodOptions): AxiosPromise; addVolume( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Bookshelves$Addvolume, + options?: MethodOptions): AxiosPromise; + addVolume( + params: Params$Resource$Mylibrary$Bookshelves$Addvolume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addVolume( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Bookshelves$Addvolume, + callback: BodyResponseCallback): void; + addVolume(callback: BodyResponseCallback): void; + addVolume( + paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$Addvolume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Bookshelves$Addvolume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$Addvolume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2595,22 +3631,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clearVolumes(params?: any, options?: MethodOptions): AxiosPromise; clearVolumes( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Bookshelves$Clearvolumes, + options?: MethodOptions): AxiosPromise; + clearVolumes( + params: Params$Resource$Mylibrary$Bookshelves$Clearvolumes, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; clearVolumes( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Bookshelves$Clearvolumes, + callback: BodyResponseCallback): void; + clearVolumes(callback: BodyResponseCallback): void; + clearVolumes( + paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$Clearvolumes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Bookshelves$Clearvolumes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$Clearvolumes; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2648,23 +3699,35 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Mylibrary$Bookshelves$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Mylibrary$Bookshelves$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Mylibrary$Bookshelves$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mylibrary$Bookshelves$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2700,26 +3763,39 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Bookshelves$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Bookshelves$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Mylibrary$Bookshelves$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Bookshelves$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2757,22 +3833,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveVolume(params?: any, options?: MethodOptions): AxiosPromise; moveVolume( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Bookshelves$Movevolume, + options?: MethodOptions): AxiosPromise; + moveVolume( + params: Params$Resource$Mylibrary$Bookshelves$Movevolume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; moveVolume( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Bookshelves$Movevolume, + callback: BodyResponseCallback): void; + moveVolume(callback: BodyResponseCallback): void; + moveVolume( + paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$Movevolume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Bookshelves$Movevolume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$Movevolume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2811,22 +3902,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeVolume(params?: any, options?: MethodOptions): AxiosPromise; removeVolume( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Bookshelves$Removevolume, + options?: MethodOptions): AxiosPromise; + removeVolume( + params: Params$Resource$Mylibrary$Bookshelves$Removevolume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeVolume( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Bookshelves$Removevolume, + callback: BodyResponseCallback): void; + removeVolume(callback: BodyResponseCallback): void; + removeVolume( + paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$Removevolume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Bookshelves$Removevolume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$Removevolume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2849,6 +3955,119 @@ export namespace books_v1 { } } } + + export interface Params$Resource$Mylibrary$Bookshelves$Addvolume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The reason for which the book is added to the library. + */ + reason?: string; + /** + * ID of bookshelf to which to add a volume. + */ + shelf?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of volume to add. + */ + volumeId?: string; + } + export interface Params$Resource$Mylibrary$Bookshelves$Clearvolumes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of bookshelf from which to remove a volume. + */ + shelf?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + } + export interface Params$Resource$Mylibrary$Bookshelves$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of bookshelf to retrieve. + */ + shelf?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + } + export interface Params$Resource$Mylibrary$Bookshelves$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * String to identify the originator of this request. + */ + source?: string; + } + export interface Params$Resource$Mylibrary$Bookshelves$Movevolume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of bookshelf with the volume. + */ + shelf?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of volume to move. + */ + volumeId?: string; + /** + * Position on shelf to move the item (0 puts the item before the current + * first item, 1 puts it between the first and the second and so on.) + */ + volumePosition?: number; + } + export interface Params$Resource$Mylibrary$Bookshelves$Removevolume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The reason for which the book is removed from the library. + */ + reason?: string; + /** + * ID of bookshelf from which to remove a volume. + */ + shelf?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of volume to remove. + */ + volumeId?: string; + } + export class Resource$Mylibrary$Bookshelves$Volumes { root: Books; constructor(root: Books) { @@ -2880,25 +4099,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Bookshelves$Volumes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Mylibrary$Bookshelves$Volumes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Bookshelves$Volumes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Mylibrary$Bookshelves$Volumes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Bookshelves$Volumes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Bookshelves$Volumes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2921,6 +4153,47 @@ export namespace books_v1 { } } + export interface Params$Resource$Mylibrary$Bookshelves$Volumes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-3166-1 code to override the IP-based location. + */ + country?: string; + /** + * Maximum number of results to return + */ + maxResults?: number; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Full-text search query string in this bookshelf. + */ + q?: string; + /** + * The bookshelf ID or name retrieve volumes for. + */ + shelf?: string; + /** + * Set to true to show pre-ordered books. Defaults to false. + */ + showPreorders?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Index of the first element to return (starts at 0) + */ + startIndex?: number; + } + + export class Resource$Mylibrary$Readingpositions { root: Books; @@ -2948,24 +4221,35 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Mylibrary$Readingpositions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Mylibrary$Readingpositions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Mylibrary$Readingpositions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Mylibrary$Readingpositions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Readingpositions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Readingpositions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3006,22 +4290,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setPosition(params?: any, options?: MethodOptions): AxiosPromise; setPosition( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mylibrary$Readingpositions$Setposition, + options?: MethodOptions): AxiosPromise; + setPosition( + params: Params$Resource$Mylibrary$Readingpositions$Setposition, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setPosition( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mylibrary$Readingpositions$Setposition, + callback: BodyResponseCallback): void; + setPosition(callback: BodyResponseCallback): void; + setPosition( + paramsOrCallback?: + Params$Resource$Mylibrary$Readingpositions$Setposition| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Mylibrary$Readingpositions$Setposition; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mylibrary$Readingpositions$Setposition; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3046,6 +4346,62 @@ export namespace books_v1 { } } + export interface Params$Resource$Mylibrary$Readingpositions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Volume content version for which this reading position is requested. + */ + contentVersion?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of volume for which to retrieve a reading position. + */ + volumeId?: string; + } + export interface Params$Resource$Mylibrary$Readingpositions$Setposition { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Action that caused this reading position to be set. + */ + action?: string; + /** + * Volume content version for which this reading position applies. + */ + contentVersion?: string; + /** + * Random persistent device cookie optional on set position. + */ + deviceCookie?: string; + /** + * Position string for the new volume reading position. + */ + position?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * RFC 3339 UTC format timestamp associated with this reading position. + */ + timestamp?: string; + /** + * ID of volume for which to update the reading position. + */ + volumeId?: string; + } + + export class Resource$Notification { root: Books; @@ -3073,24 +4429,34 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Notification$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Notification$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Notification$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Notification$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Notification$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notification$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3113,6 +4479,28 @@ export namespace books_v1 { } } + export interface Params$Resource$Notification$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + * generating notification title and body. + */ + locale?: string; + /** + * String to identify the notification. + */ + notification_id?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + } + + export class Resource$Onboarding { root: Books; constructor(root: Books) { @@ -3137,26 +4525,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listCategories(params?: any, options?: MethodOptions): - AxiosPromise; listCategories( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Onboarding$Listcategories, + options?: MethodOptions): AxiosPromise; + listCategories( + params: Params$Resource$Onboarding$Listcategories, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listCategories( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Onboarding$Listcategories, + callback: BodyResponseCallback): void; + listCategories(callback: BodyResponseCallback): void; + listCategories( + paramsOrCallback?: Params$Resource$Onboarding$Listcategories| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Onboarding$Listcategories; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Onboarding$Listcategories; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3195,26 +4595,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listCategoryVolumes(params?: any, options?: MethodOptions): - AxiosPromise; listCategoryVolumes( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Onboarding$Listcategoryvolumes, + options?: MethodOptions): AxiosPromise; + listCategoryVolumes( + params: Params$Resource$Onboarding$Listcategoryvolumes, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listCategoryVolumes( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Onboarding$Listcategoryvolumes, + callback: BodyResponseCallback): void; + listCategoryVolumes(callback: BodyResponseCallback): void; + listCategoryVolumes( + paramsOrCallback?: Params$Resource$Onboarding$Listcategoryvolumes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Onboarding$Listcategoryvolumes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Onboarding$Listcategoryvolumes; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3237,6 +4649,49 @@ export namespace books_v1 { } } + export interface Params$Resource$Onboarding$Listcategories { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-639-1 language and ISO-3166-1 country code. Default is en-US if + * unset. + */ + locale?: string; + } + export interface Params$Resource$Onboarding$Listcategoryvolumes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * List of category ids requested. + */ + categoryId?: string; + /** + * ISO-639-1 language and ISO-3166-1 country code. Default is en-US if + * unset. + */ + locale?: string; + /** + * The maximum allowed maturity rating of returned volumes. Books with a + * higher maturity rating are filtered out. + */ + maxAllowedMaturityRating?: string; + /** + * Number of maximum results per page to be included in the response. + */ + pageSize?: number; + /** + * The value of the nextToken from the previous page. + */ + pageToken?: string; + } + + export class Resource$Personalizedstream { root: Books; constructor(root: Books) { @@ -3263,24 +4718,35 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Personalizedstream$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Personalizedstream$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Personalizedstream$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Personalizedstream$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Personalizedstream$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Personalizedstream$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3303,6 +4769,29 @@ export namespace books_v1 { } } + export interface Params$Resource$Personalizedstream$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + * generating recommendations. + */ + locale?: string; + /** + * The maximum allowed maturity rating of returned recommendations. Books + * with a higher maturity rating are filtered out. + */ + maxAllowedMaturityRating?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + } + + export class Resource$Promooffer { root: Books; constructor(root: Books) { @@ -3333,22 +4822,36 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - accept(params?: any, options?: MethodOptions): AxiosPromise; + accept(params?: Params$Resource$Promooffer$Accept, options?: MethodOptions): + AxiosPromise; + accept( + params: Params$Resource$Promooffer$Accept, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; accept( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Promooffer$Accept, + callback: BodyResponseCallback): void; + accept(callback: BodyResponseCallback): void; accept( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Promooffer$Accept| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Promooffer$Accept; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Promooffer$Accept; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3388,22 +4891,37 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - dismiss(params?: any, options?: MethodOptions): AxiosPromise; dismiss( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Promooffer$Dismiss, + options?: MethodOptions): AxiosPromise; + dismiss( + params: Params$Resource$Promooffer$Dismiss, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + dismiss( + params: Params$Resource$Promooffer$Dismiss, + callback: BodyResponseCallback): void; + dismiss(callback: BodyResponseCallback): void; dismiss( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Promooffer$Dismiss| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Promooffer$Dismiss; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Promooffer$Dismiss; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3427,61 +4945,178 @@ export namespace books_v1 { /** - * books.promooffer.get - * @desc Returns a list of promo offers available to the user - * @alias books.promooffer.get - * @memberOf! () - * - * @param {object=} params Parameters for request - * @param {string=} params.androidId device android_id - * @param {string=} params.device device device - * @param {string=} params.manufacturer device manufacturer - * @param {string=} params.model device model - * @param {string=} params.product device product - * @param {string=} params.serial device serial - * @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 + * books.promooffer.get + * @desc Returns a list of promo offers available to the user + * @alias books.promooffer.get + * @memberOf! () + * + * @param {object=} params Parameters for request + * @param {string=} params.androidId device android_id + * @param {string=} params.device device device + * @param {string=} params.manufacturer device manufacturer + * @param {string=} params.model device model + * @param {string=} params.product device product + * @param {string=} params.serial device serial + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Promooffer$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Promooffer$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Promooffer$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Promooffer$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Promooffer$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Promooffer$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/books/v1/promooffer/get') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: [], + pathParams: [], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Promooffer$Accept { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * device android_id + */ + androidId?: string; + /** + * device device + */ + device?: string; + /** + * device manufacturer + */ + manufacturer?: string; + /** + * device model + */ + model?: string; + /** + * + */ + offerId?: string; + /** + * device product + */ + product?: string; + /** + * device serial + */ + serial?: string; + /** + * Volume id to exercise the offer + */ + volumeId?: string; + } + export interface Params$Resource$Promooffer$Dismiss { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * device android_id + */ + androidId?: string; + /** + * device device + */ + device?: string; + /** + * device manufacturer + */ + manufacturer?: string; + /** + * device model + */ + model?: string; + /** + * Offer to dimiss + */ + offerId?: string; + /** + * device product + */ + product?: string; + /** + * device serial + */ + serial?: string; + } + export interface Params$Resource$Promooffer$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * device android_id */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + '/books/v1/promooffer/get') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + androidId?: string; + /** + * device device + */ + device?: string; + /** + * device manufacturer + */ + manufacturer?: string; + /** + * device model + */ + model?: string; + /** + * device product + */ + product?: string; + /** + * device serial + */ + serial?: string; } + export class Resource$Series { root: Books; membership: Resource$Series$Membership; @@ -3508,23 +5143,33 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Series$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Series$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Series$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Series$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Series$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Series$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3546,6 +5191,19 @@ export namespace books_v1 { } } } + + export interface Params$Resource$Series$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * String that identifies the series + */ + series_id?: string; + } + export class Resource$Series$Membership { root: Books; constructor(root: Books) { @@ -3572,24 +5230,35 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Series$Membership$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Series$Membership$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Series$Membership$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Series$Membership$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Series$Membership$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Series$Membership$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3612,6 +5281,27 @@ export namespace books_v1 { } } + export interface Params$Resource$Series$Membership$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Number of maximum results per page to be included in the response. + */ + page_size?: number; + /** + * The value of the nextToken from the previous page. + */ + page_token?: string; + /** + * String that identifies the series + */ + series_id?: string; + } + + export class Resource$Volumes { root: Books; @@ -3651,23 +5341,33 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Volumes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Volumes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Volumes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Volumes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Volumes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3715,25 +5415,36 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Volumes$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Volumes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Volumes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Volumes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Volumes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3755,6 +5466,107 @@ export namespace books_v1 { } } } + + export interface Params$Resource$Volumes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-3166-1 code to override the IP-based location. + */ + country?: string; + /** + * Set to true to include non-comics series. Defaults to false. + */ + includeNonComicsSeries?: boolean; + /** + * Brand results for partner ID. + */ + partner?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * + */ + user_library_consistent_read?: boolean; + /** + * ID of volume to retrieve. + */ + volumeId?: string; + } + export interface Params$Resource$Volumes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restrict to volumes by download availability. + */ + download?: string; + /** + * Filter search results. + */ + filter?: string; + /** + * Restrict results to books with this language code. + */ + langRestrict?: string; + /** + * Restrict search to this user's library. + */ + libraryRestrict?: string; + /** + * The maximum allowed maturity rating of returned recommendations. Books + * with a higher maturity rating are filtered out. + */ + maxAllowedMaturityRating?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Sort search results. + */ + orderBy?: string; + /** + * Restrict and brand results for partner ID. + */ + partner?: string; + /** + * Restrict to books or magazines. + */ + printType?: string; + /** + * Restrict information returned to a set of selected fields. + */ + projection?: string; + /** + * Full-text search query string. + */ + q?: string; + /** + * Set to true to show books available for preorder. Defaults to false. + */ + showPreorders?: boolean; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Index of the first result to return (starts at 0) + */ + startIndex?: number; + } + export class Resource$Volumes$Associated { root: Books; constructor(root: Books) { @@ -3783,25 +5595,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Volumes$Associated$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Volumes$Associated$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Volumes$Associated$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Volumes$Associated$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Volumes$Associated$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$Associated$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3824,6 +5649,37 @@ export namespace books_v1 { } } + export interface Params$Resource$Volumes$Associated$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Association type. + */ + association?: string; + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + * generating recommendations. + */ + locale?: string; + /** + * The maximum allowed maturity rating of returned recommendations. Books + * with a higher maturity rating are filtered out. + */ + maxAllowedMaturityRating?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of the source volume. + */ + volumeId?: string; + } + + export class Resource$Volumes$Mybooks { root: Books; constructor(root: Books) { @@ -3854,25 +5710,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Volumes$Mybooks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Volumes$Mybooks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Volumes$Mybooks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Volumes$Mybooks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Volumes$Mybooks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$Mybooks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3895,6 +5764,45 @@ export namespace books_v1 { } } + export interface Params$Resource$Volumes$Mybooks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * How the book was acquired + */ + acquireMethod?: string; + /** + * ISO-3166-1 code to override the IP-based location. + */ + country?: string; + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for + * generating recommendations. + */ + locale?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The processing state of the user uploaded volumes to be returned. + * Applicable only if the UPLOADED is specified in the acquireMethod. + */ + processingState?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Index of the first result to return (starts at 0) + */ + startIndex?: number; + } + + export class Resource$Volumes$Recommended { root: Books; constructor(root: Books) { @@ -3921,25 +5829,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Volumes$Recommended$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Volumes$Recommended$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Volumes$Recommended$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Volumes$Recommended$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Volumes$Recommended$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$Recommended$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3977,31 +5898,48 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rate(params?: any, options?: MethodOptions): + rate( + params?: Params$Resource$Volumes$Recommended$Rate, + options?: MethodOptions): AxiosPromise; rate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Volumes$Recommended$Rate, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; rate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Volumes$Recommended$Rate, + callback: + BodyResponseCallback): + void; + rate(callback: + BodyResponseCallback): + void; + rate( + paramsOrCallback?: Params$Resource$Volumes$Recommended$Rate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Volumes$Recommended$Rate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$Recommended$Rate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4026,6 +5964,53 @@ export namespace books_v1 { } } + export interface Params$Resource$Volumes$Recommended$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + * generating recommendations. + */ + locale?: string; + /** + * The maximum allowed maturity rating of returned recommendations. Books + * with a higher maturity rating are filtered out. + */ + maxAllowedMaturityRating?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + } + export interface Params$Resource$Volumes$Recommended$Rate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + * generating recommendations. + */ + locale?: string; + /** + * Rating to be given to the volume. + */ + rating?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * ID of the source volume. + */ + volumeId?: string; + } + + export class Resource$Volumes$Useruploaded { root: Books; constructor(root: Books) { @@ -4055,25 +6040,38 @@ export namespace books_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Volumes$Useruploaded$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Volumes$Useruploaded$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Volumes$Useruploaded$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Volumes$Useruploaded$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Volumes$Useruploaded$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Volumes$Useruploaded$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4095,4 +6093,38 @@ export namespace books_v1 { } } } + + export interface Params$Resource$Volumes$Useruploaded$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for + * generating recommendations. + */ + locale?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The processing state of the user uploaded volumes to be returned. + */ + processingState?: string; + /** + * String to identify the originator of this request. + */ + source?: string; + /** + * Index of the first result to return (starts at 0) + */ + startIndex?: number; + /** + * The ids of the volumes to be returned. If not specified all that match + * the processingState are returned. + */ + volumeId?: string; + } } diff --git a/src/apis/calendar/v3.ts b/src/apis/calendar/v3.ts index 6e950dbf841..cd5e2014988 100644 --- a/src/apis/calendar/v3.ts +++ b/src/apis/calendar/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace calendar_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Calendar API * @@ -83,40 +86,40 @@ export namespace calendar_v3 { /** * ETag of the collection. */ - etag: string; + etag?: string; /** * List of rules on the access control list. */ - items: Schema$AclRule[]; + items?: Schema$AclRule[]; /** * Type of the collection ("calendar#acl"). */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. Omitted if no further * results are available, in which case nextSyncToken is provided. */ - nextPageToken: string; + nextPageToken?: string; /** * Token used at a later point in time to retrieve only the entries that * have changed since this result was returned. Omitted if further results * are available, in which case nextPageToken is provided. */ - nextSyncToken: string; + nextSyncToken?: string; } export interface Schema$AclRule { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Identifier of the ACL rule. */ - id: string; + id?: string; /** * Type of the resource ("calendar#aclRule"). */ - kind: string; + kind?: string; /** * The role assigned to the scope. Possible values are: - "none" * - Provides no access. - "freeBusyReader" - Provides read @@ -129,73 +132,73 @@ export namespace calendar_v3 { * of the permissions of the writer role with the additional ability to see * and manipulate ACLs. */ - role: string; + role?: string; /** * The scope of the rule. */ - scope: any; + scope?: any; } export interface Schema$Calendar { /** * Conferencing properties for this calendar, for example what types of * conferences are allowed. */ - conferenceProperties: Schema$ConferenceProperties; + conferenceProperties?: Schema$ConferenceProperties; /** * Description of the calendar. Optional. */ - description: string; + description?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Identifier of the calendar. To retrieve IDs call the calendarList.list() * method. */ - id: string; + id?: string; /** * Type of the resource ("calendar#calendar"). */ - kind: string; + kind?: string; /** * Geographic location of the calendar as free-form text. Optional. */ - location: string; + location?: string; /** * Title of the calendar. */ - summary: string; + summary?: string; /** * The time zone of the calendar. (Formatted as an IANA Time Zone Database * name, e.g. "Europe/Zurich".) Optional. */ - timeZone: string; + timeZone?: string; } export interface Schema$CalendarList { /** * ETag of the collection. */ - etag: string; + etag?: string; /** * Calendars that are present on the user's calendar list. */ - items: Schema$CalendarListEntry[]; + items?: Schema$CalendarListEntry[]; /** * Type of the collection ("calendar#calendarList"). */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. Omitted if no further * results are available, in which case nextSyncToken is provided. */ - nextPageToken: string; + nextPageToken?: string; /** * Token used at a later point in time to retrieve only the entries that * have changed since this result was returned. Omitted if further results * are available, in which case nextPageToken is provided. */ - nextSyncToken: string; + nextSyncToken?: string; } export interface Schema$CalendarListEntry { /** @@ -210,7 +213,7 @@ export namespace calendar_v3 { * calendar. This role has all of the permissions of the writer role with * the additional ability to see and manipulate ACLs. */ - accessRole: string; + accessRole?: string; /** * The main color of the calendar in the hexadecimal format * "#0088aa". This property supersedes the index-based colorId @@ -218,36 +221,36 @@ export namespace calendar_v3 { * colorRgbFormat=true in the parameters of the insert, update and patch * methods. Optional. */ - backgroundColor: string; + backgroundColor?: string; /** * The color of the calendar. This is an ID referring to an entry in the * calendar section of the colors definition (see the colors endpoint). This * property is superseded by the backgroundColor and foregroundColor * properties and can be ignored when using these properties. Optional. */ - colorId: string; + colorId?: string; /** * Conferencing properties for this calendar, for example what types of * conferences are allowed. */ - conferenceProperties: Schema$ConferenceProperties; + conferenceProperties?: Schema$ConferenceProperties; /** * The default reminders that the authenticated user has for this calendar. */ - defaultReminders: Schema$EventReminder[]; + defaultReminders?: Schema$EventReminder[]; /** * Whether this calendar list entry has been deleted from the calendar list. * Read-only. Optional. The default is False. */ - deleted: boolean; + deleted?: boolean; /** * Description of the calendar. Optional. Read-only. */ - description: string; + description?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The foreground color of the calendar in the hexadecimal format * "#ffffff". This property supersedes the index-based colorId @@ -255,53 +258,53 @@ export namespace calendar_v3 { * colorRgbFormat=true in the parameters of the insert, update and patch * methods. Optional. */ - foregroundColor: string; + foregroundColor?: string; /** * Whether the calendar has been hidden from the list. Optional. The default * is False. */ - hidden: boolean; + hidden?: boolean; /** * Identifier of the calendar. */ - id: string; + id?: string; /** * Type of the resource ("calendar#calendarListEntry"). */ - kind: string; + kind?: string; /** * Geographic location of the calendar as free-form text. Optional. * Read-only. */ - location: string; + location?: string; /** * The notifications that the authenticated user is receiving for this * calendar. */ - notificationSettings: any; + notificationSettings?: any; /** * Whether the calendar is the primary calendar of the authenticated user. * Read-only. Optional. The default is False. */ - primary: boolean; + primary?: boolean; /** * Whether the calendar content shows up in the calendar UI. Optional. The * default is False. */ - selected: boolean; + selected?: boolean; /** * Title of the calendar. Read-only. */ - summary: string; + summary?: string; /** * The summary that the authenticated user has set for this calendar. * Optional. */ - summaryOverride: string; + summaryOverride?: string; /** * The time zone of the calendar. Optional. Read-only. */ - timeZone: string; + timeZone?: string; } export interface Schema$CalendarNotification { /** @@ -311,7 +314,7 @@ export namespace calendar_v3 { * inserts and updates. SMS reminders are only available for G Suite * customers. */ - method: string; + method?: string; /** * The type of notification. Possible values are: - * "eventCreation" - Notification sent when a new event is put on @@ -321,64 +324,64 @@ export namespace calendar_v3 { * sent when an event is changed. - "agenda" - An agenda with the * events of the day (sent out in the morning). */ - type: string; + type?: string; } export interface Schema$Channel { /** * The address where notifications are delivered for this channel. */ - address: string; + address?: string; /** * Date and time of notification channel expiration, expressed as a Unix * timestamp, in milliseconds. Optional. */ - expiration: string; + expiration?: string; /** * A UUID or similar unique string that identifies this channel. */ - id: string; + id?: string; /** * Identifies this as a notification channel used to watch for changes to a * resource. Value: the fixed string "api#channel". */ - kind: string; + kind?: string; /** * Additional parameters controlling delivery channel behavior. Optional. */ - params: any; + params?: any; /** * A Boolean value to indicate whether payload is wanted. Optional. */ - payload: boolean; + payload?: boolean; /** * An opaque ID that identifies the resource being watched on this channel. * Stable across different API versions. */ - resourceId: string; + resourceId?: string; /** * A version-specific identifier for the watched resource. */ - resourceUri: string; + resourceUri?: string; /** * An arbitrary string delivered to the target address with each * notification delivered over this channel. Optional. */ - token: string; + token?: string; /** * The type of delivery mechanism used for this channel. */ - type: string; + type?: string; } export interface Schema$ColorDefinition { /** * The background color associated with this color definition. */ - background: string; + background?: string; /** * The foreground color that can be used to write on top of a background * with 'background' color. */ - foreground: string; + foreground?: string; } export interface Schema$Colors { /** @@ -386,22 +389,22 @@ export namespace calendar_v3 { * definition. A calendarListEntry resource refers to one of these color IDs * in its color field. Read-only. */ - calendar: any; + calendar?: any; /** * A global palette of event colors, mapping from the color ID to its * definition. An event resource may refer to one of these color IDs in its * color field. Read-only. */ - event: any; + event?: any; /** * Type of the resource ("calendar#colors"). */ - kind: string; + kind?: string; /** * Last modification time of the color palette (as a RFC3339 timestamp). * Read-only. */ - updated: string; + updated?: string; } export interface Schema$ConferenceData { /** @@ -411,54 +414,54 @@ export namespace calendar_v3 { * name of the Hangout. - "hangoutsMeet": the 10-letter meeting * code, for example "aaa-bbbb-ccc". Optional. */ - conferenceId: string; + conferenceId?: string; /** * The conference solution, such as Hangouts or Hangouts Meet. Unset for a * conference with a failed create request. Either conferenceSolution and at * least one entryPoint, or createRequest is required. */ - conferenceSolution: Schema$ConferenceSolution; + conferenceSolution?: Schema$ConferenceSolution; /** * A request to generate a new conference and attach it to the event. The * data is generated asynchronously. To see whether the data is present * check the status field. Either conferenceSolution and at least one * entryPoint, or createRequest is required. */ - createRequest: Schema$CreateConferenceRequest; + createRequest?: Schema$CreateConferenceRequest; /** * Information about individual conference entry points, such as URLs or * phone numbers. All of them must belong to the same conference. Either * conferenceSolution and at least one entryPoint, or createRequest is * required. */ - entryPoints: Schema$EntryPoint[]; + entryPoints?: Schema$EntryPoint[]; /** * Additional notes (such as instructions from the domain administrator, * legal notices) to display to the user. Can contain HTML. The maximum * length is 2048 characters. Optional. */ - notes: string; + notes?: string; /** * Additional properties related to a conference. An example would be a * solution-specific setting for enabling video streaming. */ - parameters: Schema$ConferenceParameters; + parameters?: Schema$ConferenceParameters; /** * The signature of the conference data. Genereated on server side. Must be * preserved while copying the conference data between events, otherwise the * conference data will not be copied. Unset for a conference with a failed * create request. Optional for a conference with a pending create request. */ - signature: string; + signature?: string; } export interface Schema$ConferenceParameters { /** * Additional add-on specific data. */ - addOnParameters: Schema$ConferenceParametersAddOnParameters; + addOnParameters?: Schema$ConferenceParametersAddOnParameters; } export interface Schema$ConferenceParametersAddOnParameters { - parameters: any; + parameters?: any; } export interface Schema$ConferenceProperties { /** @@ -466,7 +469,7 @@ export namespace calendar_v3 { * The possible values are: - "eventHangout" - * "eventNamedHangout" - "hangoutsMeet" Optional. */ - allowedConferenceSolutionTypes: string[]; + allowedConferenceSolutionTypes?: string[]; } export interface Schema$ConferenceRequestStatus { /** @@ -477,22 +480,22 @@ export namespace calendar_v3 { * "failure": the conference create request failed, there are no * entry points. */ - statusCode: string; + statusCode?: string; } export interface Schema$ConferenceSolution { /** * The user-visible icon for this solution. */ - iconUri: string; + iconUri?: string; /** * The key which can uniquely identify the conference solution for this * event. */ - key: Schema$ConferenceSolutionKey; + key?: Schema$ConferenceSolutionKey; /** * The user-visible name of this solution. Not localized. */ - name: string; + name?: string; } export interface Schema$ConferenceSolutionKey { /** @@ -504,23 +507,23 @@ export namespace calendar_v3 { * Hangouts for G Suite users (http://hangouts.google.com) - * "hangoutsMeet" for Hangouts Meet (http://meet.google.com) */ - type: string; + type?: string; } export interface Schema$CreateConferenceRequest { /** * The conference solution, such as Hangouts or Hangouts Meet. */ - conferenceSolutionKey: Schema$ConferenceSolutionKey; + conferenceSolutionKey?: Schema$ConferenceSolutionKey; /** * The client-generated unique ID for this request. Clients should * regenerate this ID for every new request. If an ID provided is the same * as for the previous request, the request is ignored. */ - requestId: string; + requestId?: string; /** * The status of the conference create request. */ - status: Schema$ConferenceRequestStatus; + status?: Schema$ConferenceRequestStatus; } export interface Schema$EntryPoint { /** @@ -530,7 +533,7 @@ export namespace calendar_v3 { * the terminology that the conference provider uses. Only the populated * fields should be displayed. Optional. */ - accessCode: string; + accessCode?: string; /** * The type of the conference entry point. Possible values are: - * "video" - joining a conference over HTTP. A conference can have @@ -542,14 +545,14 @@ export namespace calendar_v3 { * conference can have zero or one more entry point. A conference with only * a more entry point is not a valid conference. */ - entryPointType: string; + entryPointType?: string; /** * The label for the URI. Visible to end users. Not localized. The maximum * length is 512 characters. Examples: - for video: * meet.google.com/aaa-bbbb-ccc - for phone: +1 123 268 2601 - for sip: * 12345678@altostrat.com - for more: should not be filled Optional. */ - label: string; + label?: string; /** * The meeting code to access the conference. The maximum length is 128 * characters. When creating new conference data, populate only the subset @@ -557,7 +560,7 @@ export namespace calendar_v3 { * the terminology that the conference provider uses. Only the populated * fields should be displayed. Optional. */ - meetingCode: string; + meetingCode?: string; /** * The passcode to access the conference. The maximum length is 128 * characters. When creating new conference data, populate only the subset @@ -565,7 +568,7 @@ export namespace calendar_v3 { * the terminology that the conference provider uses. Only the populated * fields should be displayed. */ - passcode: string; + passcode?: string; /** * The password to access the conference. The maximum length is 128 * characters. When creating new conference data, populate only the subset @@ -573,7 +576,7 @@ export namespace calendar_v3 { * the terminology that the conference provider uses. Only the populated * fields should be displayed. Optional. */ - password: string; + password?: string; /** * The PIN to access the conference. The maximum length is 128 characters. * When creating new conference data, populate only the subset of @@ -581,7 +584,7 @@ export namespace calendar_v3 { * terminology that the conference provider uses. Only the populated fields * should be displayed. Optional. */ - pin: string; + pin?: string; /** * The URI of the entry point. The maximum length is 1300 characters. * Format: - for video, http: or https: schema is required. - for phone, @@ -590,13 +593,13 @@ export namespace calendar_v3 { * required, e.g., sip:12345678@myprovider.com. - for more, http: or https: * schema is required. */ - uri: string; + uri?: string; } export interface Schema$Error { /** * Domain, or broad category, of the error. */ - domain: string; + domain?: string; /** * Specific reason for the error. Some of the possible values are: - * "groupTooBig" - The group of users requested is too large for a @@ -608,26 +611,26 @@ export namespace calendar_v3 { * should gracefully handle additional error statuses not included in this * list. */ - reason: string; + reason?: string; } export interface Schema$Event { /** * Whether anyone can invite themselves to the event (currently works for * Google+ events only). Optional. The default is False. */ - anyoneCanAddSelf: boolean; + anyoneCanAddSelf?: boolean; /** * File attachments for the event. Currently only Google Drive attachments * are supported. In order to modify attachments the supportsAttachments * request parameter should be set to true. There can be at most 25 * attachments per event, */ - attachments: Schema$EventAttachment[]; + attachments?: Schema$EventAttachment[]; /** * The attendees of the event. See the Events with attendees guide for more * information on scheduling events with other calendar users. */ - attendees: Schema$EventAttendee[]; + attendees?: Schema$EventAttendee[]; /** * Whether attendees may have been omitted from the event's * representation. When retrieving an event, this may be due to a @@ -635,78 +638,78 @@ export namespace calendar_v3 { * an event, this can be used to only update the participant's response. * Optional. The default is False. */ - attendeesOmitted: boolean; + attendeesOmitted?: boolean; /** * The color of the event. This is an ID referring to an entry in the event * section of the colors definition (see the colors endpoint). Optional. */ - colorId: string; + colorId?: string; /** * The conference-related information, such as details of a Hangouts Meet * conference. To create new conference details use the createRequest field. * To persist your changes, remember to set the conferenceDataVersion * request parameter to 1 for all event modification requests. */ - conferenceData: Schema$ConferenceData; + conferenceData?: Schema$ConferenceData; /** * Creation time of the event (as a RFC3339 timestamp). Read-only. */ - created: string; + created?: string; /** * The creator of the event. Read-only. */ - creator: any; + creator?: any; /** * Description of the event. Optional. */ - description: string; + description?: string; /** * The (exclusive) end time of the event. For a recurring event, this is the * end time of the first instance. */ - end: Schema$EventDateTime; + end?: Schema$EventDateTime; /** * Whether the end time is actually unspecified. An end time is still * provided for compatibility reasons, even if this attribute is set to * True. The default is False. */ - endTimeUnspecified: boolean; + endTimeUnspecified?: boolean; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Extended properties of the event. */ - extendedProperties: any; + extendedProperties?: any; /** * A gadget that extends this event. */ - gadget: any; + gadget?: any; /** * Whether attendees other than the organizer can invite others to the * event. Optional. The default is True. */ - guestsCanInviteOthers: boolean; + guestsCanInviteOthers?: boolean; /** * Whether attendees other than the organizer can modify the event. * Optional. The default is False. */ - guestsCanModify: boolean; + guestsCanModify?: boolean; /** * Whether attendees other than the organizer can see who the event's * attendees are. Optional. The default is True. */ - guestsCanSeeOtherGuests: boolean; + guestsCanSeeOtherGuests?: boolean; /** * An absolute link to the Google+ hangout associated with this event. * Read-only. */ - hangoutLink: string; + hangoutLink?: string; /** * An absolute link to this event in the Google Calendar Web UI. Read-only. */ - htmlLink: string; + htmlLink?: string; /** * Event unique identifier as defined in RFC5545. It is used to uniquely * identify events accross calendaring systems and must be supplied when @@ -716,7 +719,7 @@ export namespace calendar_v3 { * events, all occurrences of one event have different ids while they all * share the same icalUIDs. */ - iCalUID: string; + 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: @@ -733,41 +736,41 @@ export namespace calendar_v3 { * that in recurring events, all occurrences of one event have different ids * while they all share the same icalUIDs. */ - id: string; + id?: string; /** * Type of the resource ("calendar#event"). */ - kind: string; + kind?: string; /** * Geographic location of the event as free-form text. Optional. */ - location: string; + location?: string; /** * Whether this is a locked event copy where no changes can be made to the * main event fields "summary", "description", * "location", "start", "end" or * "recurrence". The default is False. Read-Only. */ - locked: boolean; + locked?: boolean; /** * The organizer of the event. If the organizer is also an attendee, this is * indicated with a separate entry in attendees with the organizer field set * to True. To change the organizer, use the move operation. Read-only, * except when importing an event. */ - organizer: any; + organizer?: any; /** * For an instance of a recurring event, this is the time at which this * event would start according to the recurrence data in the recurring event * identified by recurringEventId. Immutable. */ - originalStartTime: Schema$EventDateTime; + originalStartTime?: Schema$EventDateTime; /** * Whether this is a private event copy where changes are not shared with * other copies on other calendars. Optional. Immutable. The default is * False. */ - privateCopy: boolean; + privateCopy?: boolean; /** * List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event, as * specified in RFC5545. Note that DTSTART and DTEND lines are not allowed @@ -775,42 +778,42 @@ export namespace calendar_v3 { * end fields. This field is omitted for single events or instances of * recurring events. */ - recurrence: string[]; + recurrence?: string[]; /** * For an instance of a recurring event, this is the id of the recurring * event to which this instance belongs. Immutable. */ - recurringEventId: string; + recurringEventId?: string; /** * Information about the event's reminders for the authenticated user. */ - reminders: any; + reminders?: any; /** * Sequence number as per iCalendar. */ - sequence: number; + sequence?: number; /** * Source from which the event was created. For example, a web page, an * email message or any document identifiable by an URL with HTTP or HTTPS * scheme. Can only be seen or modified by the creator of the event. */ - source: any; + source?: any; /** * The (inclusive) start time of the event. For a recurring event, this is * the start time of the first instance. */ - start: Schema$EventDateTime; + start?: Schema$EventDateTime; /** * Status of the event. Optional. Possible values are: - * "confirmed" - The event is confirmed. This is the default * status. - "tentative" - The event is tentatively confirmed. - * "cancelled" - The event is cancelled. */ - status: string; + status?: string; /** * Title of the event. */ - summary: string; + summary?: string; /** * Whether the event blocks time on the calendar. Optional. Possible values * are: - "opaque" - Default value. The event does block time on @@ -819,11 +822,11 @@ export namespace calendar_v3 { * on the calendar. This is equivalent to setting Show me as to Available in * the Calendar UI. */ - transparency: string; + transparency?: string; /** * Last modification time of the event (as a RFC3339 timestamp). Read-only. */ - updated: string; + updated?: string; /** * Visibility of the event. Optional. Possible values are: - * "default" - Uses the default visibility for events on the @@ -833,72 +836,72 @@ export namespace calendar_v3 { * view event details. - "confidential" - The event is private. * This value is provided for compatibility reasons. */ - visibility: string; + visibility?: string; } export interface Schema$EventAttachment { /** * ID of the attached file. Read-only. For Google Drive files, this is the * ID of the corresponding Files resource entry in the Drive API. */ - fileId: string; + fileId?: string; /** * URL link to the attachment. For adding Google Drive file attachments use * the same format as in alternateLink property of the Files resource in the * Drive API. */ - fileUrl: string; + fileUrl?: string; /** * URL link to the attachment's icon. Read-only. */ - iconLink: string; + iconLink?: string; /** * Internet media type (MIME type) of the attachment. */ - mimeType: string; + mimeType?: string; /** * Attachment title. */ - title: string; + title?: string; } export interface Schema$EventAttendee { /** * Number of additional guests. Optional. The default is 0. */ - additionalGuests: number; + additionalGuests?: number; /** * The attendee's response comment. Optional. */ - comment: string; + comment?: string; /** * The attendee's name, if available. Optional. */ - displayName: string; + displayName?: string; /** * The attendee's email address, if available. This field must be * present when adding an attendee. It must be a valid email address as per * RFC5322. */ - email: string; + email?: string; /** * The attendee's Profile ID, if available. It corresponds to theid * field in the People collection of the Google+ API */ - id: string; + id?: string; /** * Whether this is an optional attendee. Optional. The default is False. */ - optional: boolean; + optional?: boolean; /** * Whether the attendee is the organizer of the event. Read-only. The * default is False. */ - organizer: boolean; + organizer?: boolean; /** * Whether the attendee is a resource. Can only be set when the attendee is * added to the event for the first time. Subsequent modifications are * ignored. Optional. The default is False. */ - resource: boolean; + resource?: boolean; /** * The attendee's response status. Possible values are: - * "needsAction" - The attendee has not responded to the @@ -907,25 +910,25 @@ export namespace calendar_v3 { * accepted the invitation. - "accepted" - The attendee has * accepted the invitation. */ - responseStatus: string; + responseStatus?: string; /** * Whether this entry represents the calendar on which this copy of the * event appears. Read-only. The default is False. */ - self: boolean; + self?: boolean; } export interface Schema$EventDateTime { /** * The date, in the format "yyyy-mm-dd", if this is an all-day * event. */ - date: string; + date?: string; /** * The time, as a combined date-time value (formatted according to RFC3339). * A time zone offset is required unless a time zone is explicitly specified * in timeZone. */ - dateTime: string; + dateTime?: string; /** * The time zone in which the time is specified. (Formatted as an IANA Time * Zone Database name, e.g. "Europe/Zurich".) For recurring events @@ -933,7 +936,7 @@ export namespace calendar_v3 { * recurrence is expanded. For single events this field is optional and * indicates a custom time zone for the event start/end. */ - timeZone: string; + timeZone?: string; } export interface Schema$EventReminder { /** @@ -943,12 +946,12 @@ export namespace calendar_v3 { * customers. Requests to set SMS reminders for other account types are * ignored. - "popup" - Reminders are sent via a UI popup. */ - method: string; + method?: string; /** * Number of minutes before the start of the event when the reminder should * trigger. Valid values are between 0 and 40320 (4 weeks in minutes). */ - minutes: number; + minutes?: number; } export interface Schema$Events { /** @@ -964,188 +967,189 @@ export namespace calendar_v3 { * all of the permissions of the writer role with the additional ability to * see and manipulate ACLs. */ - accessRole: string; + accessRole?: string; /** * The default reminders on the calendar for the authenticated user. These * reminders apply to all events on this calendar that do not explicitly * override them (i.e. do not have reminders.useDefault set to True). */ - defaultReminders: Schema$EventReminder[]; + defaultReminders?: Schema$EventReminder[]; /** * Description of the calendar. Read-only. */ - description: string; + description?: string; /** * ETag of the collection. */ - etag: string; + etag?: string; /** * List of events on the calendar. */ - items: Schema$Event[]; + items?: Schema$Event[]; /** * Type of the collection ("calendar#events"). */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. Omitted if no further * results are available, in which case nextSyncToken is provided. */ - nextPageToken: string; + nextPageToken?: string; /** * Token used at a later point in time to retrieve only the entries that * have changed since this result was returned. Omitted if further results * are available, in which case nextPageToken is provided. */ - nextSyncToken: string; + nextSyncToken?: string; /** * Title of the calendar. Read-only. */ - summary: string; + summary?: string; /** * The time zone of the calendar. Read-only. */ - timeZone: string; + timeZone?: string; /** * Last modification time of the calendar (as a RFC3339 timestamp). * Read-only. */ - updated: string; + updated?: string; } export interface Schema$FreeBusyCalendar { /** * List of time ranges during which this calendar should be regarded as * busy. */ - busy: Schema$TimePeriod[]; + busy?: Schema$TimePeriod[]; /** * Optional error(s) (if computation for the calendar failed). */ - errors: Schema$Error[]; + errors?: Schema$Error[]; } export interface Schema$FreeBusyGroup { /** * List of calendars' identifiers within a group. */ - calendars: string[]; + calendars?: string[]; /** * Optional error(s) (if computation for the group failed). */ - errors: Schema$Error[]; + errors?: Schema$Error[]; } export interface Schema$FreeBusyRequest { /** * Maximal number of calendars for which FreeBusy information is to be * provided. Optional. */ - calendarExpansionMax: number; + calendarExpansionMax?: number; /** * Maximal number of calendar identifiers to be provided for a single group. * Optional. An error will be returned for a group with more members than * this value. */ - groupExpansionMax: number; + groupExpansionMax?: number; /** * List of calendars and/or groups to query. */ - items: Schema$FreeBusyRequestItem[]; + items?: Schema$FreeBusyRequestItem[]; /** * The end of the interval for the query. */ - timeMax: string; + timeMax?: string; /** * The start of the interval for the query. */ - timeMin: string; + timeMin?: string; /** * Time zone used in the response. Optional. The default is UTC. */ - timeZone: string; + timeZone?: string; } export interface Schema$FreeBusyRequestItem { /** * The identifier of a calendar or a group. */ - id: string; + id?: string; } export interface Schema$FreeBusyResponse { /** * List of free/busy information for calendars. */ - calendars: any; + calendars?: any; /** * Expansion of groups. */ - groups: any; + groups?: any; /** * Type of the resource ("calendar#freeBusy"). */ - kind: string; + kind?: string; /** * The end of the interval. */ - timeMax: string; + timeMax?: string; /** * The start of the interval. */ - timeMin: string; + timeMin?: string; } export interface Schema$Setting { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The id of the user setting. */ - id: string; + id?: string; /** * Type of the resource ("calendar#setting"). */ - kind: string; + kind?: string; /** * Value of the user setting. The format of the value depends on the ID of * the setting. It must always be a UTF-8 string of length up to 1024 * characters. */ - value: string; + value?: string; } export interface Schema$Settings { /** * Etag of the collection. */ - etag: string; + etag?: string; /** * List of user settings. */ - items: Schema$Setting[]; + items?: Schema$Setting[]; /** * Type of the collection ("calendar#settings"). */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. Omitted if no further * results are available, in which case nextSyncToken is provided. */ - nextPageToken: string; + nextPageToken?: string; /** * Token used at a later point in time to retrieve only the entries that * have changed since this result was returned. Omitted if further results * are available, in which case nextPageToken is provided. */ - nextSyncToken: string; + nextSyncToken?: string; } export interface Schema$TimePeriod { /** * The (exclusive) end of the time period. */ - end: string; + end?: string; /** * The (inclusive) start of the time period. */ - start: string; + start?: string; } + export class Resource$Acl { root: Calendar; constructor(root: Calendar) { @@ -1171,22 +1175,35 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Acl$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Acl$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Acl$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Acl$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1223,23 +1240,33 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Acl$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Acl$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Acl$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Acl$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1277,25 +1304,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Acl$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Acl$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Acl$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Acl$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1334,23 +1372,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Acl$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Acl$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Acl$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Acl$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1389,25 +1440,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Acl$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Acl$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Acl$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Acl$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1446,25 +1508,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Acl$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Acl$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Acl$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Acl$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1505,25 +1578,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Acl$Watch, options?: MethodOptions): + AxiosPromise; + watch( + params: Params$Resource$Acl$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Acl$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Acl$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Acl$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acl$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1546,6 +1630,204 @@ export namespace calendar_v3 { } } + export interface Params$Resource$Acl$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * ACL rule identifier. + */ + ruleId?: string; + } + export interface Params$Resource$Acl$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * ACL rule identifier. + */ + ruleId?: string; + } + export interface Params$Resource$Acl$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Whether to send notifications about the calendar sharing change. + * Optional. The default is True. + */ + sendNotifications?: boolean; + /** + * Request body metadata + */ + resource?: Schema$AclRule; + } + export interface Params$Resource$Acl$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Maximum number of entries returned on one result page. By default the + * value is 100 entries. The page size can never be larger than 250 entries. + * Optional. + */ + maxResults?: number; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Whether to include deleted ACLs in the result. Deleted ACLs are + * represented by role equal to "none". Deleted ACLs will always be included + * if syncToken is provided. Optional. The default is False. + */ + showDeleted?: boolean; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. All entries + * deleted since the previous list request will always be in the result set + * and it is not allowed to set showDeleted to False. If the syncToken + * expires, the server will respond with a 410 GONE response code and the + * client should clear its storage and perform a full synchronization + * without any syncToken. Learn more about incremental synchronization. + * Optional. The default is to return all entries. + */ + syncToken?: string; + } + export interface Params$Resource$Acl$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * ACL rule identifier. + */ + ruleId?: string; + /** + * Whether to send notifications about the calendar sharing change. Note + * that there are no notifications on access removal. Optional. The default + * is True. + */ + sendNotifications?: boolean; + /** + * Request body metadata + */ + resource?: Schema$AclRule; + } + export interface Params$Resource$Acl$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * ACL rule identifier. + */ + ruleId?: string; + /** + * Whether to send notifications about the calendar sharing change. Note + * that there are no notifications on access removal. Optional. The default + * is True. + */ + sendNotifications?: boolean; + /** + * Request body metadata + */ + resource?: Schema$AclRule; + } + export interface Params$Resource$Acl$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Maximum number of entries returned on one result page. By default the + * value is 100 entries. The page size can never be larger than 250 entries. + * Optional. + */ + maxResults?: number; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Whether to include deleted ACLs in the result. Deleted ACLs are + * represented by role equal to "none". Deleted ACLs will always be included + * if syncToken is provided. Optional. The default is False. + */ + showDeleted?: boolean; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. All entries + * deleted since the previous list request will always be in the result set + * and it is not allowed to set showDeleted to False. If the syncToken + * expires, the server will respond with a 410 GONE response code and the + * client should clear its storage and perform a full synchronization + * without any syncToken. Learn more about incremental synchronization. + * Optional. The default is to return all entries. + */ + syncToken?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Calendarlist { root: Calendar; constructor(root: Calendar) { @@ -1570,22 +1852,37 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Calendarlist$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Calendarlist$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Calendarlist$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Calendarlist$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Calendarlist$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1620,24 +1917,34 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Calendarlist$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Calendarlist$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Calendarlist$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Calendarlist$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendarlist$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1673,26 +1980,39 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Calendarlist$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Calendarlist$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Calendarlist$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Calendarlist$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Calendarlist$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1732,26 +2052,38 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Calendarlist$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendarlist$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Calendarlist$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Calendarlist$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Calendarlist$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1789,26 +2121,38 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Calendarlist$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendarlist$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Calendarlist$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Calendarlist$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Calendarlist$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1845,26 +2189,39 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Calendarlist$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Calendarlist$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Calendarlist$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Calendarlist$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Calendarlist$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1905,25 +2262,37 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Calendarlist$Watch, options?: MethodOptions): + AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendarlist$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Calendarlist$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Calendarlist$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Calendarlist$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendarlist$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1946,6 +2315,198 @@ export namespace calendar_v3 { } } + export interface Params$Resource$Calendarlist$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + } + export interface Params$Resource$Calendarlist$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + } + export interface Params$Resource$Calendarlist$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to use the foregroundColor and backgroundColor fields to write + * the calendar colors (RGB). If this feature is used, the index-based + * colorId field will be set to the best matching option automatically. + * Optional. The default is False. + */ + colorRgbFormat?: boolean; + /** + * Request body metadata + */ + resource?: Schema$CalendarListEntry; + } + export interface Params$Resource$Calendarlist$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of entries returned on one result page. By default the + * value is 100 entries. The page size can never be larger than 250 entries. + * Optional. + */ + maxResults?: number; + /** + * The minimum access role for the user in the returned entries. Optional. + * The default is no restriction. + */ + minAccessRole?: string; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Whether to include deleted calendar list entries in the result. Optional. + * The default is False. + */ + showDeleted?: boolean; + /** + * Whether to show hidden entries. Optional. The default is False. + */ + showHidden?: boolean; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. If only + * read-only fields such as calendar properties or ACLs have changed, the + * entry won't be returned. All entries deleted and hidden since the + * previous list request will always be in the result set and it is not + * allowed to set showDeleted neither showHidden to False. To ensure client + * state consistency minAccessRole query parameter cannot be specified + * together with nextSyncToken. If the syncToken expires, the server will + * respond with a 410 GONE response code and the client should clear its + * storage and perform a full synchronization without any syncToken. Learn + * more about incremental synchronization. Optional. The default is to + * return all entries. + */ + syncToken?: string; + } + export interface Params$Resource$Calendarlist$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Whether to use the foregroundColor and backgroundColor fields to write + * the calendar colors (RGB). If this feature is used, the index-based + * colorId field will be set to the best matching option automatically. + * Optional. The default is False. + */ + colorRgbFormat?: boolean; + /** + * Request body metadata + */ + resource?: Schema$CalendarListEntry; + } + export interface Params$Resource$Calendarlist$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Whether to use the foregroundColor and backgroundColor fields to write + * the calendar colors (RGB). If this feature is used, the index-based + * colorId field will be set to the best matching option automatically. + * Optional. The default is False. + */ + colorRgbFormat?: boolean; + /** + * Request body metadata + */ + resource?: Schema$CalendarListEntry; + } + export interface Params$Resource$Calendarlist$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of entries returned on one result page. By default the + * value is 100 entries. The page size can never be larger than 250 entries. + * Optional. + */ + maxResults?: number; + /** + * The minimum access role for the user in the returned entries. Optional. + * The default is no restriction. + */ + minAccessRole?: string; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Whether to include deleted calendar list entries in the result. Optional. + * The default is False. + */ + showDeleted?: boolean; + /** + * Whether to show hidden entries. Optional. The default is False. + */ + showHidden?: boolean; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. If only + * read-only fields such as calendar properties or ACLs have changed, the + * entry won't be returned. All entries deleted and hidden since the + * previous list request will always be in the result set and it is not + * allowed to set showDeleted neither showHidden to False. To ensure client + * state consistency minAccessRole query parameter cannot be specified + * together with nextSyncToken. If the syncToken expires, the server will + * respond with a 410 GONE response code and the client should clear its + * storage and perform a full synchronization without any syncToken. Learn + * more about incremental synchronization. Optional. The default is to + * return all entries. + */ + syncToken?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Calendars { root: Calendar; constructor(root: Calendar) { @@ -1971,22 +2532,35 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clear(params?: any, options?: MethodOptions): AxiosPromise; + clear(params?: Params$Resource$Calendars$Clear, options?: MethodOptions): + AxiosPromise; clear( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendars$Clear, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; clear( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Calendars$Clear, + callback: BodyResponseCallback): void; + clear(callback: BodyResponseCallback): void; + clear( + paramsOrCallback?: Params$Resource$Calendars$Clear| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendars$Clear; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendars$Clear; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2022,22 +2596,35 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Calendars$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Calendars$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendars$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Calendars$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendars$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendars$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2072,23 +2659,33 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Calendars$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Calendars$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Calendars$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Calendars$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendars$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendars$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2123,26 +2720,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Calendars$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendars$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Calendars$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Calendars$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendars$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendars$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2179,25 +2786,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Calendars$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Calendars$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendars$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Calendars$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendars$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendars$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2233,26 +2851,36 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Calendars$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Calendars$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Calendars$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Calendars$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Calendars$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Calendars$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2275,6 +2903,87 @@ export namespace calendar_v3 { } } + export interface Params$Resource$Calendars$Clear { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + } + export interface Params$Resource$Calendars$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + } + export interface Params$Resource$Calendars$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + } + export interface Params$Resource$Calendars$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Calendars$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Request body metadata + */ + resource?: Schema$Calendar; + } + export interface Params$Resource$Calendars$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Request body metadata + */ + resource?: Schema$Calendar; + } + + export class Resource$Channels { root: Calendar; constructor(root: Calendar) { @@ -2299,22 +3008,35 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2337,6 +3059,14 @@ export namespace calendar_v3 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Colors { root: Calendar; constructor(root: Calendar) { @@ -2360,23 +3090,33 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Colors$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Colors$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Colors$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Colors$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Colors$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Colors$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2399,6 +3139,14 @@ export namespace calendar_v3 { } } + export interface Params$Resource$Colors$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Events { root: Calendar; constructor(root: Calendar) { @@ -2425,22 +3173,35 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Events$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Events$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2480,23 +3241,33 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Events$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Events$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Events$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Events$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2536,18 +3307,28 @@ export namespace calendar_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Events$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Events$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Events$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Events$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Events$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Import; 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 + '/calendar/v3/calendars/{calendarId}/events/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['calendarId'], pathParams: ['calendarId'], context: this.getRoot()}; if(callback) { + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['calendarId'], pathParams: ['calendarId'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { return createAPIRequest(parameters); - }} + } else { + return createAPIRequest(parameters); + }} /** @@ -2562,30 +3343,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {integer=} params.maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional. * @param {boolean=} params.sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False. * @param {boolean=} params.supportsAttachments Whether API client performing operation supports event attachments. Optional. The default is False. - * @param {().Event} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {().Event} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Events$Insert, options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Events$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2630,26 +3421,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instances(params?: any, options?: MethodOptions): - AxiosPromise; instances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Events$Instances, + options?: MethodOptions): AxiosPromise; + instances( + params: Params$Resource$Events$Instances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; instances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Events$Instances, + callback: BodyResponseCallback): void; + instances(callback: BodyResponseCallback): void; + instances( + paramsOrCallback?: Params$Resource$Events$Instances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Instances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Instances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2703,25 +3505,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Events$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Events$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2760,25 +3573,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - move(params?: any, options?: MethodOptions): AxiosPromise; + move(params?: Params$Resource$Events$Move, options?: MethodOptions): + AxiosPromise; + move( + params: Params$Resource$Events$Move, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; move( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Move, + callback: BodyResponseCallback): void; + move(callback: BodyResponseCallback): void; move( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Move| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Move; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Move; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2821,25 +3645,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Events$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Events$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2877,25 +3712,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - quickAdd(params?: any, options?: MethodOptions): AxiosPromise; + quickAdd(params?: Params$Resource$Events$Quickadd, options?: MethodOptions): + AxiosPromise; + quickAdd( + params: Params$Resource$Events$Quickadd, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; quickAdd( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Quickadd, + callback: BodyResponseCallback): void; + quickAdd(callback: BodyResponseCallback): void; quickAdd( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Quickadd| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Quickadd; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Quickadd; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2938,25 +3784,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Events$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Events$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3010,25 +3867,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Events$Watch, options?: MethodOptions): + AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Events$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Events$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3052,6 +3920,631 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, } } + export interface Params$Resource$Events$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Event identifier. + */ + eventId?: string; + /** + * Whether to send notifications about the deletion of the event. Optional. + * The default is False. + */ + sendNotifications?: boolean; + } + export interface Params$Resource$Events$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to always include a value in the email field for the organizer, + * creator and attendees, even if no real email is available (i.e. a + * generated, non-working value will be provided). The use of this option is + * discouraged and should only be used by clients which cannot handle the + * absence of an email address value in the mentioned places. Optional. The + * default is False. + */ + alwaysIncludeEmail?: boolean; + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Event identifier. + */ + eventId?: string; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Time zone used in the response. Optional. The default is the time zone of + * the calendar. + */ + timeZone?: string; + } + export interface Params$Resource$Events$Import { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Version number of conference data supported by the API client. Version 0 + * assumes no conference data support and ignores conference data in the + * event's body. Version 1 enables support for copying of ConferenceData as + * well as for creating new conferences using the createRequest field of + * conferenceData. The default is 0. + */ + conferenceDataVersion?: number; + /** + * Whether API client performing operation supports event attachments. + * Optional. The default is False. + */ + supportsAttachments?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Event; + } + export interface Params$Resource$Events$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Version number of conference data supported by the API client. Version 0 + * assumes no conference data support and ignores conference data in the + * event's body. Version 1 enables support for copying of ConferenceData as + * well as for creating new conferences using the createRequest field of + * conferenceData. The default is 0. + */ + conferenceDataVersion?: number; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Whether to send notifications about the creation of the new event. + * Optional. The default is False. + */ + sendNotifications?: boolean; + /** + * Whether API client performing operation supports event attachments. + * Optional. The default is False. + */ + supportsAttachments?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Event; + } + export interface Params$Resource$Events$Instances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to always include a value in the email field for the organizer, + * creator and attendees, even if no real email is available (i.e. a + * generated, non-working value will be provided). The use of this option is + * discouraged and should only be used by clients which cannot handle the + * absence of an email address value in the mentioned places. Optional. The + * default is False. + */ + alwaysIncludeEmail?: boolean; + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Recurring event identifier. + */ + eventId?: string; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Maximum number of events returned on one result page. By default the + * value is 250 events. The page size can never be larger than 2500 events. + * Optional. + */ + maxResults?: number; + /** + * The original start time of the instance in the result. Optional. + */ + originalStart?: string; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Whether to include deleted events (with status equals "cancelled") in the + * result. Cancelled instances of recurring events will still be included if + * singleEvents is False. Optional. The default is False. + */ + showDeleted?: boolean; + /** + * Upper bound (exclusive) for an event's start time to filter by. Optional. + * The default is not to filter by start time. Must be an RFC3339 timestamp + * with mandatory time zone offset. + */ + timeMax?: string; + /** + * Lower bound (inclusive) for an event's end time to filter by. Optional. + * The default is not to filter by end time. Must be an RFC3339 timestamp + * with mandatory time zone offset. + */ + timeMin?: string; + /** + * Time zone used in the response. Optional. The default is the time zone of + * the calendar. + */ + timeZone?: string; + } + export interface Params$Resource$Events$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to always include a value in the email field for the organizer, + * creator and attendees, even if no real email is available (i.e. a + * generated, non-working value will be provided). The use of this option is + * discouraged and should only be used by clients which cannot handle the + * absence of an email address value in the mentioned places. Optional. The + * default is False. + */ + alwaysIncludeEmail?: boolean; + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Specifies event ID in the iCalendar format to be included in the + * response. Optional. + */ + iCalUID?: string; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Maximum number of events returned on one result page. The number of + * events in the resulting page may be less than this value, or none at all, + * even if there are more events matching the query. Incomplete pages can be + * detected by a non-empty nextPageToken field in the response. By default + * the value is 250 events. The page size can never be larger than 2500 + * events. Optional. + */ + maxResults?: number; + /** + * The order of the events returned in the result. Optional. The default is + * an unspecified, stable order. + */ + orderBy?: string; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Extended properties constraint specified as propertyName=value. Matches + * only private properties. This parameter might be repeated multiple times + * to return events that match all given constraints. + */ + privateExtendedProperty?: string; + /** + * Free text search terms to find events that match these terms in any + * field, except for extended properties. Optional. + */ + q?: string; + /** + * Extended properties constraint specified as propertyName=value. Matches + * only shared properties. This parameter might be repeated multiple times + * to return events that match all given constraints. + */ + sharedExtendedProperty?: string; + /** + * Whether to include deleted events (with status equals "cancelled") in the + * result. Cancelled instances of recurring events (but not the underlying + * recurring event) will still be included if showDeleted and singleEvents + * are both False. If showDeleted and singleEvents are both True, only + * single instances of deleted events (but not the underlying recurring + * events) are returned. Optional. The default is False. + */ + showDeleted?: boolean; + /** + * Whether to include hidden invitations in the result. Optional. The + * default is False. + */ + showHiddenInvitations?: boolean; + /** + * Whether to expand recurring events into instances and only return single + * one-off events and instances of recurring events, but not the underlying + * recurring events themselves. Optional. The default is False. + */ + singleEvents?: boolean; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. All events + * deleted since the previous list request will always be in the result set + * and it is not allowed to set showDeleted to False. There are several + * query parameters that cannot be specified together with nextSyncToken to + * ensure consistency of the client state. These are: - iCalUID - orderBy + * - privateExtendedProperty - q - sharedExtendedProperty - timeMin - + * timeMax - updatedMin If the syncToken expires, the server will respond + * with a 410 GONE response code and the client should clear its storage and + * perform a full synchronization without any syncToken. Learn more about + * incremental synchronization. Optional. The default is to return all + * entries. + */ + syncToken?: string; + /** + * Upper bound (exclusive) for an event's start time to filter by. Optional. + * The default is not to filter by start time. Must be an RFC3339 timestamp + * with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * If timeMin is set, timeMax must be greater than timeMin. + */ + timeMax?: string; + /** + * Lower bound (inclusive) for an event's end time to filter by. Optional. + * The default is not to filter by end time. Must be an RFC3339 timestamp + * with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * If timeMax is set, timeMin must be smaller than timeMax. + */ + timeMin?: string; + /** + * Time zone used in the response. Optional. The default is the time zone of + * the calendar. + */ + timeZone?: string; + /** + * Lower bound for an event's last modification time (as a RFC3339 + * timestamp) to filter by. When specified, entries deleted since this time + * will always be included regardless of showDeleted. Optional. The default + * is not to filter by last modification time. + */ + updatedMin?: string; + } + export interface Params$Resource$Events$Move { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier of the source calendar where the event currently is + * on. + */ + calendarId?: string; + /** + * Calendar identifier of the target calendar where the event is to be moved + * to. + */ + destination?: string; + /** + * Event identifier. + */ + eventId?: string; + /** + * Whether to send notifications about the change of the event's organizer. + * Optional. The default is False. + */ + sendNotifications?: boolean; + } + export interface Params$Resource$Events$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to always include a value in the email field for the organizer, + * creator and attendees, even if no real email is available (i.e. a + * generated, non-working value will be provided). The use of this option is + * discouraged and should only be used by clients which cannot handle the + * absence of an email address value in the mentioned places. Optional. The + * default is False. + */ + alwaysIncludeEmail?: boolean; + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Version number of conference data supported by the API client. Version 0 + * assumes no conference data support and ignores conference data in the + * event's body. Version 1 enables support for copying of ConferenceData as + * well as for creating new conferences using the createRequest field of + * conferenceData. The default is 0. + */ + conferenceDataVersion?: number; + /** + * Event identifier. + */ + eventId?: string; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Whether to send notifications about the event update (e.g. attendee's + * responses, title changes, etc.). Optional. The default is False. + */ + sendNotifications?: boolean; + /** + * Whether API client performing operation supports event attachments. + * Optional. The default is False. + */ + supportsAttachments?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Event; + } + export interface Params$Resource$Events$Quickadd { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Whether to send notifications about the creation of the event. Optional. + * The default is False. + */ + sendNotifications?: boolean; + /** + * The text describing the event to be created. + */ + text?: string; + } + export interface Params$Resource$Events$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to always include a value in the email field for the organizer, + * creator and attendees, even if no real email is available (i.e. a + * generated, non-working value will be provided). The use of this option is + * discouraged and should only be used by clients which cannot handle the + * absence of an email address value in the mentioned places. Optional. The + * default is False. + */ + alwaysIncludeEmail?: boolean; + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Version number of conference data supported by the API client. Version 0 + * assumes no conference data support and ignores conference data in the + * event's body. Version 1 enables support for copying of ConferenceData as + * well as for creating new conferences using the createRequest field of + * conferenceData. The default is 0. + */ + conferenceDataVersion?: number; + /** + * Event identifier. + */ + eventId?: string; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Whether to send notifications about the event update (e.g. attendee's + * responses, title changes, etc.). Optional. The default is False. + */ + sendNotifications?: boolean; + /** + * Whether API client performing operation supports event attachments. + * Optional. The default is False. + */ + supportsAttachments?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Event; + } + export interface Params$Resource$Events$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to always include a value in the email field for the organizer, + * creator and attendees, even if no real email is available (i.e. a + * generated, non-working value will be provided). The use of this option is + * discouraged and should only be used by clients which cannot handle the + * absence of an email address value in the mentioned places. Optional. The + * default is False. + */ + alwaysIncludeEmail?: boolean; + /** + * Calendar identifier. To retrieve calendar IDs call the calendarList.list + * method. If you want to access the primary calendar of the currently + * logged in user, use the "primary" keyword. + */ + calendarId?: string; + /** + * Specifies event ID in the iCalendar format to be included in the + * response. Optional. + */ + iCalUID?: string; + /** + * The maximum number of attendees to include in the response. If there are + * more than the specified number of attendees, only the participant is + * returned. Optional. + */ + maxAttendees?: number; + /** + * Maximum number of events returned on one result page. The number of + * events in the resulting page may be less than this value, or none at all, + * even if there are more events matching the query. Incomplete pages can be + * detected by a non-empty nextPageToken field in the response. By default + * the value is 250 events. The page size can never be larger than 2500 + * events. Optional. + */ + maxResults?: number; + /** + * The order of the events returned in the result. Optional. The default is + * an unspecified, stable order. + */ + orderBy?: string; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Extended properties constraint specified as propertyName=value. Matches + * only private properties. This parameter might be repeated multiple times + * to return events that match all given constraints. + */ + privateExtendedProperty?: string; + /** + * Free text search terms to find events that match these terms in any + * field, except for extended properties. Optional. + */ + q?: string; + /** + * Extended properties constraint specified as propertyName=value. Matches + * only shared properties. This parameter might be repeated multiple times + * to return events that match all given constraints. + */ + sharedExtendedProperty?: string; + /** + * Whether to include deleted events (with status equals "cancelled") in the + * result. Cancelled instances of recurring events (but not the underlying + * recurring event) will still be included if showDeleted and singleEvents + * are both False. If showDeleted and singleEvents are both True, only + * single instances of deleted events (but not the underlying recurring + * events) are returned. Optional. The default is False. + */ + showDeleted?: boolean; + /** + * Whether to include hidden invitations in the result. Optional. The + * default is False. + */ + showHiddenInvitations?: boolean; + /** + * Whether to expand recurring events into instances and only return single + * one-off events and instances of recurring events, but not the underlying + * recurring events themselves. Optional. The default is False. + */ + singleEvents?: boolean; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. All events + * deleted since the previous list request will always be in the result set + * and it is not allowed to set showDeleted to False. There are several + * query parameters that cannot be specified together with nextSyncToken to + * ensure consistency of the client state. These are: - iCalUID - orderBy + * - privateExtendedProperty - q - sharedExtendedProperty - timeMin - + * timeMax - updatedMin If the syncToken expires, the server will respond + * with a 410 GONE response code and the client should clear its storage and + * perform a full synchronization without any syncToken. Learn more about + * incremental synchronization. Optional. The default is to return all + * entries. + */ + syncToken?: string; + /** + * Upper bound (exclusive) for an event's start time to filter by. Optional. + * The default is not to filter by start time. Must be an RFC3339 timestamp + * with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * If timeMin is set, timeMax must be greater than timeMin. + */ + timeMax?: string; + /** + * Lower bound (inclusive) for an event's end time to filter by. Optional. + * The default is not to filter by end time. Must be an RFC3339 timestamp + * with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * If timeMax is set, timeMin must be smaller than timeMax. + */ + timeMin?: string; + /** + * Time zone used in the response. Optional. The default is the time zone of + * the calendar. + */ + timeZone?: string; + /** + * Lower bound for an event's last modification time (as a RFC3339 + * timestamp) to filter by. When specified, entries deleted since this time + * will always be included regardless of showDeleted. Optional. The default + * is not to filter by last modification time. + */ + updatedMin?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Freebusy { root: Calendar; constructor(root: Calendar) { @@ -3076,26 +4569,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query(params?: Params$Resource$Freebusy$Query, options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Freebusy$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Freebusy$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; + query( + paramsOrCallback?: Params$Resource$Freebusy$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Freebusy$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Freebusy$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3118,6 +4622,14 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, } } + export interface Params$Resource$Freebusy$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Settings { root: Calendar; constructor(root: Calendar) { @@ -3142,23 +4654,33 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Settings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Settings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Settings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Settings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Settings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Settings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3195,25 +4717,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Settings$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Settings$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Settings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Settings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Settings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Settings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3251,25 +4784,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Settings$Watch, options?: MethodOptions): + AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Settings$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Settings$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Settings$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Settings$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Settings$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3291,4 +4835,74 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback, } } } + + export interface Params$Resource$Settings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of the user setting. + */ + setting?: string; + } + export interface Params$Resource$Settings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of entries returned on one result page. By default the + * value is 100 entries. The page size can never be larger than 250 entries. + * Optional. + */ + maxResults?: number; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. If the + * syncToken expires, the server will respond with a 410 GONE response code + * and the client should clear its storage and perform a full + * synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. + */ + syncToken?: string; + } + export interface Params$Resource$Settings$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of entries returned on one result page. By default the + * value is 100 entries. The page size can never be larger than 250 entries. + * Optional. + */ + maxResults?: number; + /** + * Token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Token obtained from the nextSyncToken field returned on the last page of + * results from the previous list request. It makes the result of this list + * request contain only entries that have changed since then. If the + * syncToken expires, the server will respond with a 410 GONE response code + * and the client should clear its storage and perform a full + * synchronization without any syncToken. Learn more about incremental + * synchronization. Optional. The default is to return all entries. + */ + syncToken?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } } diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index ec324f847af..16b688f4b8b 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace chat_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Hangouts Chat API * @@ -76,11 +79,11 @@ export namespace chat_v1 { /** * The name of the parameter for the action script. */ - key: string; + key?: string; /** * The value of the parameter. */ - value: string; + value?: string; } /** * Parameters that a bot can use to configure how it's response is posted. @@ -89,12 +92,12 @@ export namespace chat_v1 { /** * The type of bot response. */ - type: string; + type?: string; /** * URL for users to auth or config. (Only for REQUEST_CONFIG response * types.) */ - url: string; + url?: string; } /** * Annotations associated with the plain-text body of the message. Example @@ -113,20 +116,20 @@ export namespace chat_v1 { * Length of the substring in the plain-text message body this annotation * corresponds to. */ - length: number; + length?: number; /** * Start index (0-based, inclusive) in the plain-text message body this * annotation corresponds to. */ - startIndex: number; + startIndex?: number; /** * The type of this annotation. */ - type: string; + type?: string; /** * The metadata of user mention. */ - userMention: Schema$UserMentionMetadata; + userMention?: Schema$UserMentionMetadata; } /** * A button. Can be a text button or an image button. @@ -135,11 +138,11 @@ export namespace chat_v1 { /** * A button with image and onclick action. */ - imageButton: Schema$ImageButton; + imageButton?: Schema$ImageButton; /** * A button with text and onclick action. */ - textButton: Schema$TextButton; + textButton?: Schema$TextButton; } /** * A card is a UI element that can contain UI widgets such as texts, images. @@ -148,19 +151,19 @@ export namespace chat_v1 { /** * The actions of this card. */ - cardActions: Schema$CardAction[]; + cardActions?: Schema$CardAction[]; /** * The header of the card. A header usually contains a title and an image. */ - header: Schema$CardHeader; + header?: Schema$CardHeader; /** * Name of the card. */ - name: string; + name?: string; /** * Sections are separated by a line divider. */ - sections: Schema$Section[]; + sections?: Schema$Section[]; } /** * A card action is the action associated with the card. For an invoice card, @@ -171,31 +174,31 @@ export namespace chat_v1 { /** * The label used to be displayed in the action menu item. */ - actionLabel: string; + actionLabel?: string; /** * The onclick action for this action item. */ - onClick: Schema$OnClick; + onClick?: Schema$OnClick; } export interface Schema$CardHeader { /** * The image's type (e.g. square border or circular border). */ - imageStyle: string; + imageStyle?: string; /** * The URL of the image in the card header. */ - imageUrl: string; + imageUrl?: string; /** * The subtitle of the card header. */ - subtitle: string; + subtitle?: string; /** * The title must be specified. The header has a fixed height: if both a * title and subtitle is specified, each will take up 1 line. If only the * title is specified, it will take up both lines. */ - title: string; + title?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -214,11 +217,11 @@ export namespace chat_v1 { * Apps Script function to invoke when the containing element is * clicked/activated. */ - actionMethodName: string; + actionMethodName?: string; /** * List of action parameters. */ - parameters: Schema$ActionParameter[]; + parameters?: Schema$ActionParameter[]; } /** * An image that is specified by a URL and can have an onclick action. @@ -227,15 +230,15 @@ export namespace chat_v1 { /** * The aspect ratio of this image (width/height). */ - aspectRatio: number; + aspectRatio?: number; /** * The URL of the image. */ - imageUrl: string; + imageUrl?: string; /** * The onclick action. */ - onClick: Schema$OnClick; + onClick?: Schema$OnClick; } /** * An image button with an onclick action. @@ -245,20 +248,20 @@ export namespace chat_v1 { * The icon specified by an enum that indices to an icon provided by Chat * API. */ - icon: string; + icon?: string; /** * The icon specified by a URL. */ - iconUrl: string; + iconUrl?: string; /** * The name of this image_button which will be used for accessibility. * Default value will be provided if developers don't specify. */ - name: string; + name?: string; /** * The onclick action. */ - onClick: Schema$OnClick; + onClick?: Schema$OnClick; } /** * A UI element contains a key (label) and a value (content). And this element @@ -268,48 +271,48 @@ export namespace chat_v1 { /** * The text of the bottom label. Formatted text supported. */ - bottomLabel: string; + bottomLabel?: string; /** * A button that can be clicked to trigger an action. */ - button: Schema$Button; + button?: Schema$Button; /** * The text of the content. Formatted text supported and always required. */ - content: string; + content?: string; /** * If the content should be multiline. */ - contentMultiline: boolean; + contentMultiline?: boolean; /** * An enum value that will be replaced by the Chat API with the * corresponding icon image. */ - icon: string; + icon?: string; /** * The icon specified by a URL. */ - iconUrl: string; + iconUrl?: string; /** * The onclick action. Only the top label, bottom label and content region * are clickable. */ - onClick: Schema$OnClick; + onClick?: Schema$OnClick; /** * The text of the top label. Formatted text supported. */ - topLabel: string; + topLabel?: string; } export interface Schema$ListMembershipsResponse { /** * List of memberships in the requested (or first) page. */ - memberships: Schema$Membership[]; + memberships?: Schema$Membership[]; /** * Continuation token to retrieve the next page of results. It will be empty * for the last page of results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListSpacesResponse { /** @@ -317,11 +320,11 @@ export namespace chat_v1 { * for the last page of results. Tokens expire in an hour. An error is * thrown if an expired token is passed. */ - nextPageToken: string; + nextPageToken?: string; /** * List of spaces in the requested (or first) page. */ - spaces: Schema$Space[]; + spaces?: Schema$Space[]; } /** * Represents a membership relation in Hangouts Chat. @@ -331,21 +334,21 @@ export namespace chat_v1 { * The creation time of the membership a.k.a the time at which the member * joined the space, if applicable. */ - createTime: string; + createTime?: string; /** * Member details. */ - member: Schema$User; + member?: Schema$User; /** * Resource name of the membership, in the form * "spaces/x/members/*". Example: * spaces/AAAAMpdlehY/members/105115627578887013105 */ - name: string; + name?: string; /** * State of the membership. */ - state: string; + state?: string; } /** * A message in Hangouts Chat. @@ -355,54 +358,58 @@ export namespace chat_v1 { * Input only. Parameters that a bot can use to configure how its response * is posted. */ - actionResponse: Schema$ActionResponse; + actionResponse?: Schema$ActionResponse; /** * Output only. Annotations associated with the text in this message. */ - annotations: Schema$Annotation[]; + annotations?: Schema$Annotation[]; + /** + * Plain-text body of the message with all bot mentions stripped out. + */ + argumentText?: string; /** * Rich, formatted and interactive cards that can be used to display UI * elements such as: formatted texts, buttons, clickable images. Cards are * normally displayed below the plain-text body of the message. */ - cards: Schema$Card[]; + cards?: Schema$Card[]; /** * Output only. The time at which the message was created in Hangouts Chat * server. */ - createTime: string; + createTime?: string; /** * A plain-text description of the message's cards, used when the actual * cards cannot be displayed (e.g. mobile notifications). */ - fallbackText: string; + fallbackText?: string; /** * Resource name, in the form "spaces/x/messages/*". Example: * spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 */ - name: string; + name?: string; /** * Text for generating preview chips. This text will not be displayed to the * user, but any links to images, web pages, videos, etc. included here will * generate preview chips. */ - previewText: string; + previewText?: string; /** * The user who created the message. */ - sender: Schema$User; + sender?: Schema$User; /** * The space the message belongs to. */ - space: Schema$Space; + space?: Schema$Space; /** * Plain-text body of the message. */ - text: string; + text?: string; /** * The thread the message belongs to. */ - thread: Schema$Thread; + thread?: Schema$Thread; } /** * An onclick action (e.g. open a link). @@ -411,11 +418,11 @@ export namespace chat_v1 { /** * A form action will be trigger by this onclick if specified. */ - action: Schema$FormAction; + action?: Schema$FormAction; /** * This onclick triggers an open link action if specified. */ - openLink: Schema$OpenLink; + openLink?: Schema$OpenLink; } /** * A link that opens a new window. @@ -424,7 +431,7 @@ export namespace chat_v1 { /** * The URL to open. */ - url: string; + url?: string; } /** * A section contains a collection of widgets that are rendered (vertically) @@ -436,11 +443,11 @@ export namespace chat_v1 { /** * The header of the section, text formatted supported. */ - header: string; + header?: string; /** * A section must contain at least 1 widget. */ - widgets: Schema$WidgetMarkup[]; + widgets?: Schema$WidgetMarkup[]; } /** * A room or DM in Hangouts Chat. @@ -449,16 +456,16 @@ export namespace chat_v1 { /** * Output only. The display name (only if the space is a room). */ - displayName: string; + displayName?: string; /** * Resource name of the space, in the form "spaces/*". Example: * spaces/AAAAMpdlehYs */ - name: string; + name?: string; /** * Output only. The type of a space. */ - type: string; + type?: string; } /** * A button with text and onclick action. @@ -467,16 +474,16 @@ export namespace chat_v1 { /** * The onclick action of the button. */ - onClick: Schema$OnClick; + onClick?: Schema$OnClick; /** * The text of the button. */ - text: string; + text?: string; } /** * A paragraph of text. Formatted text supported. */ - export interface Schema$TextParagraph { text: string; } + export interface Schema$TextParagraph { text?: string; } /** * A thread in Hangouts Chat. */ @@ -485,7 +492,7 @@ export namespace chat_v1 { * Resource name, in the form "spaces/x/threads/*". Example: * spaces/AAAAMpdlehY/threads/UMxbHmzDlr4 */ - name: string; + name?: string; } /** * A user in Hangouts Chat. @@ -494,15 +501,15 @@ export namespace chat_v1 { /** * The user's display name. */ - displayName: string; + displayName?: string; /** * Resource name, in the format "users/*". */ - name: string; + name?: string; /** * User type. */ - type: string; + type?: string; } /** * Annotation metadata for user mentions (@). @@ -511,11 +518,11 @@ export namespace chat_v1 { /** * The type of user mention. */ - type: string; + type?: string; /** * The user mentioned. */ - user: Schema$User; + user?: Schema$User; } /** * A widget is a UI element that presents texts, images, etc. @@ -525,21 +532,22 @@ export namespace chat_v1 { * A list of buttons. Buttons is also oneof data and only one of these * fields should be set. */ - buttons: Schema$Button[]; + buttons?: Schema$Button[]; /** * Display an image in this widget. */ - image: Schema$Image; + image?: Schema$Image; /** * Display a key value item in this widget. */ - keyValue: Schema$KeyValue; + keyValue?: Schema$KeyValue; /** * Display a text paragraph in this widget. */ - textParagraph: Schema$TextParagraph; + textParagraph?: Schema$TextParagraph; } + export class Resource$Spaces { root: Chat; members: Resource$Spaces$Members; @@ -568,23 +576,33 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Spaces$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Spaces$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Spaces$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Spaces$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Spaces$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -619,26 +637,37 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Spaces$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Spaces$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Spaces$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Spaces$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Spaces$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -659,6 +688,36 @@ export namespace chat_v1 { } } } + + export interface Params$Resource$Spaces$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. Resource name of the space, in the form "spaces/x". Example: + * spaces/AAAAMpdlehY + */ + name?: string; + } + export interface Params$Resource$Spaces$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requested page size. The value is capped at 1000. Server may return fewer + * results than requested. If unspecified, server will default to 100. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + */ + pageToken?: string; + } + export class Resource$Spaces$Members { root: Chat; constructor(root: Chat) { @@ -683,23 +742,35 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Spaces$Members$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Spaces$Members$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Spaces$Members$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Spaces$Members$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spaces$Members$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -735,28 +806,39 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Spaces$Members$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spaces$Members$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spaces$Members$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Spaces$Members$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spaces$Members$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Members$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -779,6 +861,42 @@ export namespace chat_v1 { } } + export interface Params$Resource$Spaces$Members$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. Resource name of the membership to be retrieved, in the form + * "spaces/x/members/x". Example: + * spaces/AAAAMpdlehY/members/105115627578887013105 + */ + name?: string; + } + export interface Params$Resource$Spaces$Members$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requested page size. The value is capped at 1000. Server may return fewer + * results than requested. If unspecified, server will default to 100. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + */ + pageToken?: string; + /** + * Required. The resource name of the space for which membership list is to + * be fetched, in the form "spaces/x". Example: spaces/AAAAMpdlehY + */ + parent?: string; + } + + export class Resource$Spaces$Messages { root: Chat; constructor(root: Chat) { @@ -805,25 +923,38 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spaces$Messages$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Spaces$Messages$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Spaces$Messages$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Spaces$Messages$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spaces$Messages$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Messages$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -858,25 +989,38 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spaces$Messages$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Spaces$Messages$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Spaces$Messages$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Spaces$Messages$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spaces$Messages$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Messages$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -910,23 +1054,34 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Spaces$Messages$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Spaces$Messages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Spaces$Messages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Spaces$Messages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spaces$Messages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Messages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -962,25 +1117,38 @@ export namespace chat_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spaces$Messages$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Spaces$Messages$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Spaces$Messages$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Spaces$Messages$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spaces$Messages$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spaces$Messages$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; const parameters = { options: Object.assign( @@ -1001,4 +1169,78 @@ export namespace chat_v1 { } } } + + export interface Params$Resource$Spaces$Messages$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. Space resource name, in the form "spaces/x". Example: + * spaces/AAAAMpdlehY + */ + parent?: string; + /** + * Opaque thread identifier string that can be specified to group messages + * into a single thread. If this is the first message with a given thread + * identifier, a new thread is created. Subsequent messages with the same + * thread identifier will be posted into the same thread. This relieves bots + * and webhooks from having to store the Hangouts Chat thread ID of a thread + * (created earlier by them) to post further updates to it. Has no effect + * if thread field, corresponding to an existing thread, is set in message. + */ + threadKey?: string; + /** + * Request body metadata + */ + resource?: Schema$Message; + } + export interface Params$Resource$Spaces$Messages$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. Resource name of the message to be deleted, in the form + * "spaces/x/messages/x" Example: + * spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + */ + name?: string; + } + export interface Params$Resource$Spaces$Messages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. Resource name of the message to be retrieved, in the form + * "spaces/x/messages/x". Example: + * spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + */ + name?: string; + } + export interface Params$Resource$Spaces$Messages$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name, in the form "spaces/x/messages/x". Example: + * spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4 + */ + name?: string; + /** + * Required. The field paths to be updated. Currently supported field + * paths: "text", "cards". + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Message; + } } diff --git a/src/apis/civicinfo/v2.ts b/src/apis/civicinfo/v2.ts index 0e5afdc3724..0d8839e791d 100644 --- a/src/apis/civicinfo/v2.ts +++ b/src/apis/civicinfo/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace civicinfo_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Google Civic Information API * @@ -77,27 +80,27 @@ export namespace civicinfo_v2 { /** * The election administration body for this area. */ - electionAdministrationBody: Schema$AdministrativeBody; + electionAdministrationBody?: Schema$AdministrativeBody; /** * An ID for this object. IDs may change in future requests and should not * be cached. Access to this field requires special access that can be * requested from the Request more link on the Quotas page. */ - id: string; + id?: string; /** * The city or county that provides election information for this voter. * This object can have the same elements as state. */ - local_jurisdiction: Schema$AdministrationRegion; + local_jurisdiction?: Schema$AdministrationRegion; /** * The name of the jurisdiction. */ - name: string; + name?: string; /** * A list of sources for this area. If multiple sources are listed the data * has been aggregated from those sources. */ - sources: Schema$Source[]; + sources?: Schema$Source[]; } /** * Information about an election administrative body (e.g. County Board of @@ -108,61 +111,61 @@ export namespace civicinfo_v2 { * A URL provided by this administrative body for information on absentee * voting. */ - absenteeVotingInfoUrl: string; - addressLines: string[]; + absenteeVotingInfoUrl?: string; + addressLines?: string[]; /** * A URL provided by this administrative body to give contest information to * the voter. */ - ballotInfoUrl: string; + ballotInfoUrl?: string; /** * The mailing address of this administrative body. */ - correspondenceAddress: Schema$SimpleAddressType; + correspondenceAddress?: Schema$SimpleAddressType; /** * A URL provided by this administrative body for looking up general * election information. */ - electionInfoUrl: string; + electionInfoUrl?: string; /** * The election officials for this election administrative body. */ - electionOfficials: Schema$ElectionOfficial[]; + electionOfficials?: Schema$ElectionOfficial[]; /** * A URL provided by this administrative body for confirming that the voter * is registered to vote. */ - electionRegistrationConfirmationUrl: string; + electionRegistrationConfirmationUrl?: string; /** * A URL provided by this administrative body for looking up how to register * to vote. */ - electionRegistrationUrl: string; + electionRegistrationUrl?: string; /** * A URL provided by this administrative body describing election rules to * the voter. */ - electionRulesUrl: string; + electionRulesUrl?: string; /** * A description of the hours of operation for this administrative body. */ - hoursOfOperation: string; + hoursOfOperation?: string; /** * The name of this election administrative body. */ - name: string; + name?: string; /** * The physical address of this administrative body. */ - physicalAddress: Schema$SimpleAddressType; + physicalAddress?: Schema$SimpleAddressType; /** * A description of the services this administrative body may provide. */ - voter_services: string[]; + voter_services?: string[]; /** * A URL provided by this administrative body for looking up where to vote. */ - votingLocationFinderUrl: string; + votingLocationFinderUrl?: string; } /** * Information about a candidate running for elected office. @@ -171,38 +174,38 @@ export namespace civicinfo_v2 { /** * The URL for the candidate's campaign web site. */ - candidateUrl: string; + candidateUrl?: string; /** * A list of known (social) media channels for this candidate. */ - channels: Schema$Channel[]; + channels?: Schema$Channel[]; /** * The email address for the candidate's campaign. */ - email: string; + email?: string; /** * The candidate's name. If this is a joint ticket it will indicate the * name of the candidate at the top of a ticket followed by a / and that * name of candidate at the bottom of the ticket. e.g. "Mitt Romney / * Paul Ryan" */ - name: string; + name?: string; /** * The order the candidate appears on the ballot for this contest. */ - orderOnBallot: string; + orderOnBallot?: string; /** * The full name of the party the candidate is a member of. */ - party: string; + party?: string; /** * The voice phone number for the candidate's campaign office. */ - phone: string; + phone?: string; /** * A URL for a photo of the candidate. */ - photoUrl: string; + photoUrl?: string; } /** * A social media or web channel for a candidate. @@ -211,13 +214,13 @@ export namespace civicinfo_v2 { /** * The unique public identifier for the candidate's channel. */ - id: string; + id?: string; /** * The type of channel. The following is a list of types of channels, but is * not exhaustive. More channel types may be added at a later time. One of: * GooglePlus, YouTube, Facebook, Twitter */ - type: string; + type?: string; } /** * Information about a contest that appears on a voter's ballot. @@ -227,26 +230,26 @@ export namespace civicinfo_v2 { * A number specifying the position of this contest on the voter's * ballot. */ - ballotPlacement: string; + ballotPlacement?: string; /** * The candidate choices for this contest. */ - candidates: Schema$Candidate[]; + candidates?: Schema$Candidate[]; /** * Information about the electoral district that this contest is in. */ - district: Schema$ElectoralDistrict; + district?: Schema$ElectoralDistrict; /** * A description of any additional eligibility requirements for voting in * this contest. */ - electorateSpecifications: string; + electorateSpecifications?: string; /** * An ID for this object. IDs may change in future requests and should not * be cached. Access to this field requires special access that can be * requested from the Request more link on the Quotas page. */ - id: string; + id?: string; /** * The levels of government of the office for this contest. There may be * more than one in cases where a jurisdiction effectively acts at two @@ -254,114 +257,114 @@ export namespace civicinfo_v2 { * Columbia acts at "locality" level, but also effectively at both * "administrative-area-2" and "administrative-area-1". */ - level: string[]; + level?: string[]; /** * The number of candidates that will be elected to office in this contest. */ - numberElected: string; + numberElected?: string; /** * The number of candidates that a voter may vote for in this contest. */ - numberVotingFor: string; + numberVotingFor?: string; /** * The name of the office for this contest. */ - office: string; + office?: string; /** * If this is a partisan election, the name of the party it is for. */ - primaryParty: string; + primaryParty?: string; /** * The set of ballot responses for the referendum. A ballot response * represents a line on the ballot. Common examples might include * "yes" or "no" for referenda. This field is only * populated for contests of type 'Referendum'. */ - referendumBallotResponses: string[]; + referendumBallotResponses?: string[]; /** * Specifies a short summary of the referendum that is typically on the * ballot below the title but above the text. This field is only populated * for contests of type 'Referendum'. */ - referendumBrief: string; + referendumBrief?: string; /** * A statement in opposition to the referendum. It does not necessarily * appear on the ballot. This field is only populated for contests of type * 'Referendum'. */ - referendumConStatement: string; + referendumConStatement?: string; /** * Specifies what effect abstaining (not voting) on the proposition will * have (i.e. whether abstaining is considered a vote against it). This * field is only populated for contests of type 'Referendum'. */ - referendumEffectOfAbstain: string; + referendumEffectOfAbstain?: string; /** * The threshold of votes that the referendum needs in order to pass, e.g. * "two-thirds". This field is only populated for contests of type * 'Referendum'. */ - referendumPassageThreshold: string; + referendumPassageThreshold?: string; /** * A statement in favor of the referendum. It does not necessarily appear on * the ballot. This field is only populated for contests of type * 'Referendum'. */ - referendumProStatement: string; + referendumProStatement?: string; /** * A brief description of the referendum. This field is only populated for * contests of type 'Referendum'. */ - referendumSubtitle: string; + referendumSubtitle?: string; /** * The full text of the referendum. This field is only populated for * contests of type 'Referendum'. */ - referendumText: string; + referendumText?: string; /** * The title of the referendum (e.g. 'Proposition 42'). This field * is only populated for contests of type 'Referendum'. */ - referendumTitle: string; + referendumTitle?: string; /** * A link to the referendum. This field is only populated for contests of * type 'Referendum'. */ - referendumUrl: string; + referendumUrl?: string; /** * The roles which this office fulfills. */ - roles: string[]; + roles?: string[]; /** * A list of sources for this contest. If multiple sources are listed, the * data has been aggregated from those sources. */ - sources: Schema$Source[]; + sources?: Schema$Source[]; /** * "Yes" or "No" depending on whether this a contest * being held outside the normal election cycle. */ - special: string; + special?: string; /** * The type of contest. Usually this will be 'General', * 'Primary', or 'Run-off' for contests with candidates. For * referenda this will be 'Referendum'. For Retention contests this * will typically be 'Retention'. */ - type: string; + type?: string; } - export interface Schema$ContextParams { clientProfile: string; } + export interface Schema$ContextParams { clientProfile?: string; } /** * A request to look up representative information for a single division. */ export interface Schema$DivisionRepresentativeInfoRequest { - contextParams: Schema$ContextParams; + contextParams?: Schema$ContextParams; } /** * A search request for political geographies. */ export interface Schema$DivisionSearchRequest { - contextParams: Schema$ContextParams; + contextParams?: Schema$ContextParams; } /** * The result of a division search query. @@ -371,8 +374,8 @@ export namespace civicinfo_v2 { * Identifies what kind of resource this is. Value: the fixed string * "civicinfo#divisionSearchResponse". */ - kind: string; - results: Schema$DivisionSearchResult[]; + kind?: string; + results?: Schema$DivisionSearchResult[]; } /** * Represents a political geographic division that matches the requested @@ -387,15 +390,15 @@ export namespace civicinfo_v2 { * ocd-division/country:us/state:wy/cd:1, since Wyoming has only one * Congressional district. */ - aliases: string[]; + aliases?: string[]; /** * The name of the division. */ - name: string; + name?: string; /** * The unique Open Civic Data identifier for this division. */ - ocdId: string; + ocdId?: string; } /** * Information about the election that was queried. @@ -404,15 +407,15 @@ export namespace civicinfo_v2 { /** * Day of the election in YYYY-MM-DD format. */ - electionDay: string; + electionDay?: string; /** * The unique ID of this election. */ - id: string; + id?: string; /** * A displayable name for the election. */ - name: string; + name?: string; /** * The political division of the election. Represented as an OCD Division * ID. Voters within these political jurisdictions are covered by this @@ -420,7 +423,7 @@ export namespace civicinfo_v2 { * ocd-division/country:us/state:ca or for the midterms or general election * the entire US (i.e. ocd-division/country:us). */ - ocdDivisionId: string; + ocdDivisionId?: string; } /** * Information about individual election officials. @@ -429,26 +432,26 @@ export namespace civicinfo_v2 { /** * The email address of the election official. */ - emailAddress: string; + emailAddress?: string; /** * The fax number of the election official. */ - faxNumber: string; + faxNumber?: string; /** * The full name of the election official. */ - name: string; + name?: string; /** * The office phone number of the election official. */ - officePhoneNumber: string; + officePhoneNumber?: string; /** * The title of the election official. */ - title: string; + title?: string; } export interface Schema$ElectionsQueryRequest { - contextParams: Schema$ContextParams; + contextParams?: Schema$ContextParams; } /** * The list of elections available for this version of the API. @@ -457,12 +460,12 @@ export namespace civicinfo_v2 { /** * A list of available elections */ - elections: Schema$Election[]; + elections?: Schema$Election[]; /** * Identifies what kind of resource this is. Value: the fixed string * "civicinfo#electionsQueryResponse". */ - kind: string; + kind?: string; } /** * Describes the geographic scope of a contest. @@ -473,19 +476,19 @@ export namespace civicinfo_v2 { * 34th State Senate district would have id "34" and a scope of * stateUpper. */ - id: string; - kgForeignKey: string; + id?: string; + kgForeignKey?: string; /** * The name of the district. */ - name: string; + name?: string; /** * The geographic scope of this district. If unspecified the district's * geography is not known. One of: national, statewide, congressional, * stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide, * township, countyCouncil, cityCouncil, ward, special */ - scope: string; + scope?: string; } /** * Describes a political geography. @@ -502,17 +505,17 @@ export namespace civicinfo_v2 { * ID is ocd-division/country:us/district:dc, this will contain * ocd-division/country:us/state:dc. */ - alsoKnownAs: string[]; + alsoKnownAs?: string[]; /** * The name of the division. */ - name: string; + name?: string; /** * List of indices in the offices array, one for each office elected from * this division. Will only be present if includeOffices was true (or * absent) in the request. */ - officeIndices: number[]; + officeIndices?: number[]; } /** * Information about an Office held by one or more Officials. @@ -521,7 +524,7 @@ export namespace civicinfo_v2 { /** * The OCD ID of the division with which this office is associated. */ - divisionId: string; + divisionId?: string; /** * The levels of government of which this office is part. There may be more * than one in cases where a jurisdiction effectively acts at two different @@ -529,28 +532,28 @@ export namespace civicinfo_v2 { * acts at "locality" level, but also effectively at both * "administrative-area-2" and "administrative-area-1". */ - levels: string[]; + levels?: string[]; /** * The human-readable name of the office. */ - name: string; + name?: string; /** * List of indices in the officials array of people who presently hold this * office. */ - officialIndices: number[]; + officialIndices?: number[]; /** * The roles which this office fulfills. Roles are not meant to be * exhaustive, or to exactly specify the entire set of responsibilities of a * given office, but are meant to be rough categories that are useful for * general selection from or sorting of a list of offices. */ - roles: string[]; + roles?: string[]; /** * A list of sources for this office. If multiple sources are listed, the * data has been aggregated from those sources. */ - sources: Schema$Source[]; + sources?: Schema$Source[]; } /** * Information about a person holding an elected office. @@ -559,35 +562,35 @@ export namespace civicinfo_v2 { /** * Addresses at which to contact the official. */ - address: Schema$SimpleAddressType[]; + address?: Schema$SimpleAddressType[]; /** * A list of known (social) media channels for this official. */ - channels: Schema$Channel[]; + channels?: Schema$Channel[]; /** * The direct email addresses for the official. */ - emails: string[]; + emails?: string[]; /** * The official's name. */ - name: string; + name?: string; /** * The full name of the party the official belongs to. */ - party: string; + party?: string; /** * The official's public contact phone numbers. */ - phones: string[]; + phones?: string[]; /** * A URL for a photo of the official. */ - photoUrl: string; + photoUrl?: string; /** * The official's public website URLs. */ - urls: string[]; + urls?: string[]; } /** * A location where a voter can vote. This may be an early vote site, an @@ -598,102 +601,102 @@ export namespace civicinfo_v2 { /** * The address of the location. */ - address: Schema$SimpleAddressType; + address?: Schema$SimpleAddressType; /** * The last date that this early vote site or drop off location may be used. * This field is not populated for polling locations. */ - endDate: string; + endDate?: string; /** * An ID for this object. IDs may change in future requests and should not * be cached. Access to this field requires special access that can be * requested from the Request more link on the Quotas page. */ - id: string; + id?: string; /** * The name of the early vote site or drop off location. This field is not * populated for polling locations. */ - name: string; + name?: string; /** * Notes about this location (e.g. accessibility ramp or entrance to use). */ - notes: string; + notes?: string; /** * A description of when this location is open. */ - pollingHours: string; + pollingHours?: string; /** * A list of sources for this location. If multiple sources are listed the * data has been aggregated from those sources. */ - sources: Schema$Source[]; + sources?: Schema$Source[]; /** * The first date that this early vote site or drop off location may be * used. This field is not populated for polling locations. */ - startDate: string; + startDate?: string; /** * The services provided by this early vote site or drop off location. This * field is not populated for polling locations. */ - voterServices: string; + voterServices?: string; } export interface Schema$PostalAddress { - addressLines: string[]; - administrativeAreaName: string; - countryName: string; - countryNameCode: string; - dependentLocalityName: string; - dependentThoroughfareLeadingType: string; - dependentThoroughfareName: string; - dependentThoroughfarePostDirection: string; - dependentThoroughfarePreDirection: string; - dependentThoroughfaresConnector: string; - dependentThoroughfaresIndicator: string; - dependentThoroughfaresType: string; - dependentThoroughfareTrailingType: string; - firmName: string; - isDisputed: boolean; - languageCode: string; - localityName: string; - postalCodeNumber: string; - postalCodeNumberExtension: string; - postBoxNumber: string; - premiseName: string; - recipientName: string; - sortingCode: string; - subAdministrativeAreaName: string; - subPremiseName: string; - thoroughfareLeadingType: string; - thoroughfareName: string; - thoroughfareNumber: string; - thoroughfarePostDirection: string; - thoroughfarePreDirection: string; - thoroughfareTrailingType: string; + addressLines?: string[]; + administrativeAreaName?: string; + countryName?: string; + countryNameCode?: string; + dependentLocalityName?: string; + dependentThoroughfareLeadingType?: string; + dependentThoroughfareName?: string; + dependentThoroughfarePostDirection?: string; + dependentThoroughfarePreDirection?: string; + dependentThoroughfaresConnector?: string; + dependentThoroughfaresIndicator?: string; + dependentThoroughfaresType?: string; + dependentThoroughfareTrailingType?: string; + firmName?: string; + isDisputed?: boolean; + languageCode?: string; + localityName?: string; + postalCodeNumber?: string; + postalCodeNumberExtension?: string; + postBoxNumber?: string; + premiseName?: string; + recipientName?: string; + sortingCode?: string; + subAdministrativeAreaName?: string; + subPremiseName?: string; + thoroughfareLeadingType?: string; + thoroughfareName?: string; + thoroughfareNumber?: string; + thoroughfarePostDirection?: string; + thoroughfarePreDirection?: string; + thoroughfareTrailingType?: string; } export interface Schema$RepresentativeInfoData { /** * Political geographic divisions that contain the requested address. */ - divisions: any; + divisions?: any; /** * Elected offices referenced by the divisions listed above. Will only be * present if includeOffices was true in the request. */ - offices: Schema$Office[]; + offices?: Schema$Office[]; /** * Officials holding the offices listed above. Will only be present if * includeOffices was true in the request. */ - officials: Schema$Official[]; + officials?: Schema$Official[]; } /** * A request for political geography and representative information for an * address. */ export interface Schema$RepresentativeInfoRequest { - contextParams: Schema$ContextParams; + contextParams?: Schema$ContextParams; } /** * The result of a representative info lookup query. @@ -702,26 +705,26 @@ export namespace civicinfo_v2 { /** * Political geographic divisions that contain the requested address. */ - divisions: any; + divisions?: any; /** * Identifies what kind of resource this is. Value: the fixed string * "civicinfo#representativeInfoResponse". */ - kind: string; + kind?: string; /** * The normalized version of the requested address */ - normalizedInput: Schema$SimpleAddressType; + normalizedInput?: Schema$SimpleAddressType; /** * Elected offices referenced by the divisions listed above. Will only be * present if includeOffices was true in the request. */ - offices: Schema$Office[]; + offices?: Schema$Office[]; /** * Officials holding the offices listed above. Will only be present if * includeOffices was true in the request. */ - officials: Schema$Official[]; + officials?: Schema$Official[]; } /** * A simple representation of an address. @@ -730,31 +733,31 @@ export namespace civicinfo_v2 { /** * The city or town for the address. */ - city: string; + city?: string; /** * The street name and number of this address. */ - line1: string; + line1?: string; /** * The second line the address, if needed. */ - line2: string; + line2?: string; /** * The third line of the address, if needed. */ - line3: string; + line3?: string; /** * The name of the location. */ - locationName: string; + locationName?: string; /** * The US two letter state abbreviation of the address. */ - state: string; + state?: string; /** * The US Postal Zip Code of the address. */ - zip: string; + zip?: string; } /** * Contains information about the data source for the element containing it. @@ -763,18 +766,18 @@ export namespace civicinfo_v2 { /** * The name of the data source. */ - name: string; + name?: string; /** * Whether this data comes from an official government source. */ - official: boolean; + official?: boolean; } /** * A request for information about a voter. */ export interface Schema$VoterInfoRequest { - contextParams: Schema$ContextParams; - voterInfoSegmentResult: Schema$VoterInfoSegmentResult; + contextParams?: Schema$ContextParams; + voterInfoSegmentResult?: Schema$VoterInfoSegmentResult; } /** * The result of a voter info lookup query. @@ -783,7 +786,7 @@ export namespace civicinfo_v2 { /** * Contests that will appear on the voter's ballot. */ - contests: Schema$Contest[]; + contests?: Schema$Contest[]; /** * Locations where a voter is eligible to drop off a completed ballot. The * voter must have received and completed a ballot prior to arriving at the @@ -791,54 +794,55 @@ export namespace civicinfo_v2 { * These locations could be open on or before election day as indicated in * the pollingHours field. */ - dropOffLocations: Schema$PollingLocation[]; + dropOffLocations?: Schema$PollingLocation[]; /** * Locations where the voter is eligible to vote early, prior to election * day. */ - earlyVoteSites: Schema$PollingLocation[]; + earlyVoteSites?: Schema$PollingLocation[]; /** * The election that was queried. */ - election: Schema$Election; + election?: Schema$Election; /** * Identifies what kind of resource this is. Value: the fixed string * "civicinfo#voterInfoResponse". */ - kind: string; + kind?: string; /** * Specifies whether voters in the precinct vote only by mailing their * ballots (with the possible option of dropping off their ballots as well). */ - mailOnly: boolean; + mailOnly?: boolean; /** * The normalized version of the requested address */ - normalizedInput: Schema$SimpleAddressType; + normalizedInput?: Schema$SimpleAddressType; /** * If no election ID was specified in the query, and there was more than one * election with data for the given voter, this will contain information * about the other elections that could apply. */ - otherElections: Schema$Election[]; + otherElections?: Schema$Election[]; /** * Locations where the voter is eligible to vote on election day. */ - pollingLocations: Schema$PollingLocation[]; - precinctId: string; + pollingLocations?: Schema$PollingLocation[]; + precinctId?: string; /** * Local Election Information for the state that the voter votes in. For the * US, there will only be one element in this array. */ - state: Schema$AdministrationRegion[]; + state?: Schema$AdministrationRegion[]; } export interface Schema$VoterInfoSegmentResult { - generatedMillis: string; - postalAddress: Schema$PostalAddress; - request: Schema$VoterInfoRequest; - response: Schema$VoterInfoResponse; + generatedMillis?: string; + postalAddress?: Schema$PostalAddress; + request?: Schema$VoterInfoRequest; + response?: Schema$VoterInfoResponse; } + export class Resource$Divisions { root: Civicinfo; constructor(root: Civicinfo) { @@ -864,28 +868,38 @@ export namespace civicinfo_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Divisions$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Divisions$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Divisions$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$Divisions$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Divisions$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Divisions$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -908,6 +922,27 @@ export namespace civicinfo_v2 { } } + export interface Params$Resource$Divisions$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The search query. Queries can cover any parts of a OCD ID or a human + * readable division name. All words given in the query are treated as + * required patterns. In addition to that, most query operators of the + * Apache Lucene library are supported. See + * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html + */ + query?: string; + /** + * Request body metadata + */ + resource?: Schema$DivisionSearchRequest; + } + + export class Resource$Elections { root: Civicinfo; constructor(root: Civicinfo) { @@ -932,28 +967,41 @@ export namespace civicinfo_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - electionQuery(params?: any, options?: MethodOptions): - AxiosPromise; electionQuery( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Elections$Electionquery, + options?: MethodOptions): AxiosPromise; + electionQuery( + params: Params$Resource$Elections$Electionquery, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; electionQuery( - params?: any, - options?: MethodOptions| + params: Params$Resource$Elections$Electionquery, + callback: BodyResponseCallback): void; + electionQuery( + callback: BodyResponseCallback): void; + electionQuery( + paramsOrCallback?: Params$Resource$Elections$Electionquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Elections$Electionquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Elections$Electionquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -993,26 +1041,40 @@ export namespace civicinfo_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - voterInfoQuery(params?: any, options?: MethodOptions): - AxiosPromise; voterInfoQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Elections$Voterinfoquery, + options?: MethodOptions): AxiosPromise; + voterInfoQuery( + params: Params$Resource$Elections$Voterinfoquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + voterInfoQuery( + params: Params$Resource$Elections$Voterinfoquery, + callback: BodyResponseCallback): void; + voterInfoQuery(callback: BodyResponseCallback): + void; voterInfoQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Elections$Voterinfoquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Elections$Voterinfoquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Elections$Voterinfoquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1035,6 +1097,44 @@ export namespace civicinfo_v2 { } } + export interface Params$Resource$Elections$Electionquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Elections$Voterinfoquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The registered address of the voter to look up. + */ + address?: string; + /** + * The unique ID of the election to look up. A list of election IDs can be + * obtained at https://www.googleapis.com/civicinfo/{version}/elections + */ + electionId?: string; + /** + * If set to true, only data from official state sources will be returned. + */ + officialOnly?: boolean; + /** + * If set to true, the query will return the success codeand include any + * partial information when it is unable to determine a matching address or + * unable to determine the election for electionId=0 queries. + */ + returnAllAvailableData?: boolean; + /** + * Request body metadata + */ + resource?: Schema$VoterInfoRequest; + } + + export class Resource$Representatives { root: Civicinfo; constructor(root: Civicinfo) { @@ -1064,29 +1164,47 @@ export namespace civicinfo_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - representativeInfoByAddress(params?: any, options?: MethodOptions): + representativeInfoByAddress( + params?: Params$Resource$Representatives$Representativeinfobyaddress, + options?: MethodOptions): AxiosPromise; representativeInfoByAddress( - params?: any, - options?: MethodOptions| + params: Params$Resource$Representatives$Representativeinfobyaddress, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; representativeInfoByAddress( - params?: any, - options?: MethodOptions| + params: Params$Resource$Representatives$Representativeinfobyaddress, + callback: BodyResponseCallback): + void; + representativeInfoByAddress( + callback: BodyResponseCallback): + void; + representativeInfoByAddress( + paramsOrCallback?: + Params$Resource$Representatives$Representativeinfobyaddress| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Representatives$Representativeinfobyaddress; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Representatives$Representativeinfobyaddress; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1127,28 +1245,43 @@ export namespace civicinfo_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - representativeInfoByDivision(params?: any, options?: MethodOptions): - AxiosPromise; representativeInfoByDivision( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Representatives$Representativeinfobydivision, + options?: MethodOptions): AxiosPromise; + representativeInfoByDivision( + params: Params$Resource$Representatives$Representativeinfobydivision, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + representativeInfoByDivision( + params: Params$Resource$Representatives$Representativeinfobydivision, + callback: BodyResponseCallback): void; + representativeInfoByDivision( + callback: BodyResponseCallback): void; representativeInfoByDivision( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Representatives$Representativeinfobydivision| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Representatives$Representativeinfobydivision; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Representatives$Representativeinfobydivision; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1170,4 +1303,72 @@ export namespace civicinfo_v2 { } } } + + export interface Params$Resource$Representatives$Representativeinfobyaddress { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The address to look up. May only be specified if the field ocdId is not + * given in the URL. + */ + address?: string; + /** + * Whether to return information about offices and officials. If false, only + * the top-level district information will be returned. + */ + includeOffices?: boolean; + /** + * A list of office levels to filter by. Only offices that serve at least + * one of these levels will be returned. Divisions that don't contain a + * matching office will not be returned. + */ + levels?: string; + /** + * A list of office roles to filter by. Only offices fulfilling one of these + * roles will be returned. Divisions that don't contain a matching office + * will not be returned. + */ + roles?: string; + /** + * Request body metadata + */ + resource?: Schema$RepresentativeInfoRequest; + } + export interface Params$Resource$Representatives$Representativeinfobydivision { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A list of office levels to filter by. Only offices that serve at least + * one of these levels will be returned. Divisions that don't contain a + * matching office will not be returned. + */ + levels?: string; + /** + * The Open Civic Data division identifier of the division to look up. + */ + ocdId?: string; + /** + * If true, information about all divisions contained in the division + * requested will be included as well. For example, if querying + * ocd-division/country:us/district:dc, this would also return all DC's + * wards and ANCs. + */ + recursive?: boolean; + /** + * A list of office roles to filter by. Only offices fulfilling one of these + * roles will be returned. Divisions that don't contain a matching office + * will not be returned. + */ + roles?: string; + /** + * Request body metadata + */ + resource?: Schema$DivisionRepresentativeInfoRequest; + } } diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index 4aa5e3370c5..102cc4d6f89 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace classroom_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Classroom API * @@ -79,59 +82,59 @@ export namespace classroom_v1 { * Absolute link to this announcement in the Classroom web UI. This is only * populated if `state` is `PUBLISHED`. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * Assignee mode of the announcement. If unspecified, the default value is * `ALL_STUDENTS`. */ - assigneeMode: string; + assigneeMode?: string; /** * Identifier of the course. Read-only. */ - courseId: string; + courseId?: string; /** * Timestamp when this announcement was created. Read-only. */ - creationTime: string; + creationTime?: string; /** * Identifier for the user that created the announcement. Read-only. */ - creatorUserId: string; + creatorUserId?: string; /** * Classroom-assigned identifier of this announcement, unique per course. * Read-only. */ - id: string; + id?: string; /** * Identifiers of students with access to the announcement. This field is * set only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the * `assigneeMode` is `INDIVIDUAL_STUDENTS`, then only students specified in * this field will be able to see the announcement. */ - individualStudentsOptions: Schema$IndividualStudentsOptions; + individualStudentsOptions?: Schema$IndividualStudentsOptions; /** * Additional materials. Announcements must have no more than 20 material * items. */ - materials: Schema$Material[]; + materials?: Schema$Material[]; /** * Optional timestamp when this announcement is scheduled to be published. */ - scheduledTime: string; + scheduledTime?: string; /** * Status of this announcement. If unspecified, the default state is * `DRAFT`. */ - state: string; + state?: string; /** * Description of this announcement. The text must be a valid UTF-8 string * containing no more than 30,000 characters. */ - text: string; + text?: string; /** * Timestamp of the most recent change to this announcement. Read-only. */ - updateTime: string; + updateTime?: string; } /** * Additional details for assignments. @@ -141,7 +144,7 @@ export namespace classroom_v1 { * Drive folder where attachments from student submissions are placed. This * is only populated for course teachers and administrators. */ - studentWorkFolder: Schema$DriveFolder; + studentWorkFolder?: Schema$DriveFolder; } /** * Student work for an assignment. @@ -155,7 +158,7 @@ export namespace classroom_v1 { * access it. Identifier and alternate_link fields are always available, but * others (e.g. title) may not be. */ - attachments: Schema$Attachment[]; + attachments?: Schema$Attachment[]; } /** * Attachment added to student assignment work. When creating attachments, @@ -165,19 +168,19 @@ export namespace classroom_v1 { /** * Google Drive file attachment. */ - driveFile: Schema$DriveFile; + driveFile?: Schema$DriveFile; /** * Google Forms attachment. */ - form: Schema$Form; + form?: Schema$Form; /** * Link attachment. */ - link: Schema$Link; + link?: Schema$Link; /** * Youtube video attachment. */ - youTubeVideo: Schema$YouTubeVideo; + youTubeVideo?: Schema$YouTubeVideo; } /** * A reference to a Cloud Pub/Sub topic. To register for notifications, the @@ -190,7 +193,7 @@ export namespace classroom_v1 { * The `name` field of a Cloud Pub/Sub * [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic). */ - topicName: string; + topicName?: string; } /** * A Course in Classroom. @@ -199,56 +202,56 @@ export namespace classroom_v1 { /** * Absolute link to this course in the Classroom web UI. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * The Calendar ID for a calendar that all course members can see, to which * Classroom adds events for course work and announcements in the course. * Read-only. */ - calendarId: string; + calendarId?: string; /** * The email address of a Google group containing all members of the course. * This group does not accept email and can only be used for permissions. * Read-only. */ - courseGroupEmail: string; + courseGroupEmail?: string; /** * Sets of materials that appear on the "about" page of this * course. Read-only. */ - courseMaterialSets: Schema$CourseMaterialSet[]; + courseMaterialSets?: Schema$CourseMaterialSet[]; /** * State of the course. If unspecified, the default state is `PROVISIONED`. */ - courseState: string; + courseState?: string; /** * Creation time of the course. Specifying this field in a course update * mask results in an error. Read-only. */ - creationTime: string; + creationTime?: string; /** * Optional description. For example, "We'll be learning about the * structure of living creatures from a combination of textbooks, guest * lectures, and lab work. Expect to be excited!" If set, this field * must be a valid UTF-8 string and no longer than 30,000 characters. */ - description: string; + description?: string; /** * Optional heading for the description. For example, "Welcome to 10th * Grade Biology." If set, this field must be a valid UTF-8 string and * no longer than 3600 characters. */ - descriptionHeading: string; + descriptionHeading?: string; /** * Enrollment code to use when joining this course. Specifying this field in * a course update mask results in an error. Read-only. */ - enrollmentCode: string; + enrollmentCode?: string; /** * Whether or not guardian notifications are enabled for this course. * Read-only. */ - guardiansEnabled: boolean; + guardiansEnabled?: boolean; /** * Identifier for this course assigned by Classroom. When creating a * course, you may optionally set this identifier to an alias string in the @@ -256,13 +259,13 @@ export namespace classroom_v1 { * Classroom and cannot be updated after the course is created. Specifying * this field in a course update mask results in an error. */ - id: string; + id?: string; /** * Name of the course. For example, "10th Grade Biology". The name - * is required. It must be between 1 and 50 characters and a valid UTF-8 + * is required. It must be between 1 and 750 characters and a valid UTF-8 * string. */ - name: string; + name?: string; /** * The identifier of the owner of a course. When specified as a parameter * of a create course request, this field is required. The identifier can be @@ -272,34 +275,34 @@ export namespace classroom_v1 { * specify this field in a patch course request to transfer ownership. In * other contexts, it is read-only. */ - ownerId: string; + ownerId?: string; /** * Optional room location. For example, "301". If set, this field * must be a valid UTF-8 string and no longer than 650 characters. */ - room: string; + room?: string; /** * Section of the course. For example, "Period 2". If set, this * field must be a valid UTF-8 string and no longer than 2800 characters. */ - section: string; + section?: string; /** * Information about a Drive Folder that is shared with all teachers of the * course. This field will only be set for teachers of the course and * domain administrators. Read-only. */ - teacherFolder: Schema$DriveFolder; + teacherFolder?: Schema$DriveFolder; /** * The email address of a Google group containing all teachers of the * course. This group does not accept email and can only be used for * permissions. Read-only. */ - teacherGroupEmail: string; + teacherGroupEmail?: string; /** * Time of the most recent update to this course. Specifying this field in a * course update mask results in an error. Read-only. */ - updateTime: string; + updateTime?: string; } /** * Alternative identifier for a course. An alias uniquely identifies a @@ -322,7 +325,7 @@ export namespace classroom_v1 { * `d:math_101` * `p:<name>` indicates a project-scoped alias. * Example: `p:abc123` This field has a maximum length of 256 characters. */ - alias: string; + alias?: string; } /** * A material attached to a course as part of a material set. @@ -331,19 +334,19 @@ export namespace classroom_v1 { /** * Google Drive file attachment. */ - driveFile: Schema$DriveFile; + driveFile?: Schema$DriveFile; /** * Google Forms attachment. */ - form: Schema$Form; + form?: Schema$Form; /** * Link atatchment. */ - link: Schema$Link; + link?: Schema$Link; /** * Youtube video attachment. */ - youTubeVideo: Schema$YouTubeVideo; + youTubeVideo?: Schema$YouTubeVideo; } /** * A set of materials that appears on the "About" page of the @@ -354,11 +357,11 @@ export namespace classroom_v1 { /** * Materials attached to this set. */ - materials: Schema$CourseMaterial[]; + materials?: Schema$CourseMaterial[]; /** * Title for this set. */ - title: string; + title?: string; } /** * Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`. @@ -367,7 +370,7 @@ export namespace classroom_v1 { /** * The `course_id` of the course to subscribe to roster changes for. */ - courseId: string; + courseId?: string; } /** * Course work created by a teacher for students of the course. @@ -377,73 +380,73 @@ export namespace classroom_v1 { * Absolute link to this course work in the Classroom web UI. This is only * populated if `state` is `PUBLISHED`. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * Assignee mode of the coursework. If unspecified, the default value is * `ALL_STUDENTS`. */ - assigneeMode: string; + assigneeMode?: string; /** * Assignment details. This is populated only when `work_type` is * `ASSIGNMENT`. Read-only. */ - assignment: Schema$Assignment; + assignment?: Schema$Assignment; /** * Whether this course work item is associated with the Developer Console * project making the request. See google.classroom.Work.CreateCourseWork * for more details. Read-only. */ - associatedWithDeveloper: boolean; + associatedWithDeveloper?: boolean; /** * Identifier of the course. Read-only. */ - courseId: string; + courseId?: string; /** * Timestamp when this course work was created. Read-only. */ - creationTime: string; + creationTime?: string; /** * Identifier for the user that created the coursework. Read-only. */ - creatorUserId: string; + creatorUserId?: string; /** * Optional description of this course work. If set, the description must be * a valid UTF-8 string containing no more than 30,000 characters. */ - description: string; + description?: string; /** * Optional date, in UTC, that submissions for this this course work are * due. This must be specified if `due_time` is specified. */ - dueDate: Schema$Date; + dueDate?: Schema$Date; /** * Optional time of day, in UTC, that submissions for this this course work * are due. This must be specified if `due_date` is specified. */ - dueTime: Schema$TimeOfDay; + dueTime?: Schema$TimeOfDay; /** * Classroom-assigned identifier of this course work, unique per course. * Read-only. */ - id: string; + id?: string; /** * Identifiers of students with access to the coursework. This field is set * only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. If the `assigneeMode` is * `INDIVIDUAL_STUDENTS`, then only students specified in this field will be * assigned the coursework. */ - individualStudentsOptions: Schema$IndividualStudentsOptions; + individualStudentsOptions?: Schema$IndividualStudentsOptions; /** * Additional materials. CourseWork must have no more than 20 material * items. */ - materials: Schema$Material[]; + materials?: Schema$Material[]; /** * Maximum grade for this course work. If zero or unspecified, this * assignment is considered ungraded. This must be a non-negative integer * value. */ - maxPoints: number; + maxPoints?: number; /** * Multiple choice question details. For read operations, this field is * populated only when `work_type` is `MULTIPLE_CHOICE_QUESTION`. For write @@ -451,34 +454,34 @@ export namespace classroom_v1 { * `work_type` of `MULTIPLE_CHOICE_QUESTION`, and it must not be set * otherwise. */ - multipleChoiceQuestion: Schema$MultipleChoiceQuestion; + multipleChoiceQuestion?: Schema$MultipleChoiceQuestion; /** * Optional timestamp when this course work is scheduled to be published. */ - scheduledTime: string; + scheduledTime?: string; /** * Status of this course work. If unspecified, the default state is `DRAFT`. */ - state: string; + state?: string; /** * Setting to determine when students are allowed to modify submissions. If * unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`. */ - submissionModificationMode: string; + submissionModificationMode?: string; /** * Title of this course work. The title must be a valid UTF-8 string * containing between 1 and 3000 characters. */ - title: string; + title?: string; /** * Timestamp of the most recent change to this course work. Read-only. */ - updateTime: string; + updateTime?: string; /** * Type of this course work. The type is set when the course work is * created and cannot be changed. */ - workType: string; + workType?: string; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -494,17 +497,17 @@ export namespace classroom_v1 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * Representation of a Google Drive file. @@ -513,19 +516,19 @@ export namespace classroom_v1 { /** * URL that can be used to access the Drive item. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * Drive API resource ID. */ - id: string; + id?: string; /** * URL of a thumbnail image of the Drive item. Read-only. */ - thumbnailUrl: string; + thumbnailUrl?: string; /** * Title of the Drive item. Read-only. */ - title: string; + title?: string; } /** * Representation of a Google Drive folder. @@ -534,15 +537,15 @@ export namespace classroom_v1 { /** * URL that can be used to access the Drive folder. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * Drive API resource ID. */ - id: string; + id?: string; /** * Title of the Drive folder. Read-only. */ - title: string; + title?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -561,11 +564,11 @@ export namespace classroom_v1 { * Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`. * This field must be specified if `feed_type` is `COURSE_ROSTER_CHANGES`. */ - courseRosterChangesInfo: Schema$CourseRosterChangesInfo; + courseRosterChangesInfo?: Schema$CourseRosterChangesInfo; /** * The type of feed. */ - feedType: string; + feedType?: string; } /** * Google Forms item. @@ -574,21 +577,21 @@ export namespace classroom_v1 { /** * URL of the form. */ - formUrl: string; + formUrl?: string; /** * URL of the form responses document. Only set if respsonses have been * recorded and only when the requesting user is an editor of the form. * Read-only. */ - responseUrl: string; + responseUrl?: string; /** * URL of a thumbnail image of the Form. Read-only. */ - thumbnailUrl: string; + thumbnailUrl?: string; /** * Title of the Form. Read-only. */ - title: string; + title?: string; } /** * Global user permission description. @@ -597,7 +600,7 @@ export namespace classroom_v1 { /** * Permission value. */ - permission: string; + permission?: string; } /** * The history of each grade on this submission. @@ -606,24 +609,24 @@ export namespace classroom_v1 { /** * The teacher who made the grade change. */ - actorUserId: string; + actorUserId?: string; /** * The type of grade change at this time in the submission grade history. */ - gradeChangeType: string; + gradeChangeType?: string; /** * When the grade of the submission was changed. */ - gradeTimestamp: string; + gradeTimestamp?: string; /** * The denominator of the grade at this time in the submission grade * history. */ - maxPoints: number; + maxPoints?: number; /** * The numerator of the grade at this time in the submission grade history. */ - pointsEarned: number; + pointsEarned?: number; } /** * Association between a student and a guardian of that student. The guardian @@ -633,20 +636,20 @@ export namespace classroom_v1 { /** * Identifier for the guardian. */ - guardianId: string; + guardianId?: string; /** * User profile for the guardian. */ - guardianProfile: Schema$UserProfile; + guardianProfile?: Schema$UserProfile; /** * The email address to which the initial guardian invitation was sent. This * field is only visible to domain administrators. */ - invitedEmailAddress: string; + invitedEmailAddress?: string; /** * Identifier for the student to whom the guardian relationship applies. */ - studentId: string; + studentId?: string; } /** * An invitation to become the guardian of a specified user, sent to a @@ -656,24 +659,24 @@ export namespace classroom_v1 { /** * The time that this invitation was created. Read-only. */ - creationTime: string; + creationTime?: string; /** * Unique identifier for this invitation. Read-only. */ - invitationId: string; + invitationId?: string; /** * Email address that the invitation was sent to. This field is only visible * to domain administrators. */ - invitedEmailAddress: string; + invitedEmailAddress?: string; /** * The state that this invitation is in. */ - state: string; + state?: string; /** * ID of the student (in standard format) */ - studentId: string; + studentId?: string; } /** * Assignee details about a coursework/announcement. This field is set if and @@ -684,7 +687,7 @@ export namespace classroom_v1 { * Identifiers for the students that have access to the * coursework/announcement. */ - studentIds: string[]; + studentIds?: string[]; } /** * An invitation to join a course. @@ -693,22 +696,22 @@ export namespace classroom_v1 { /** * Identifier of the course to invite the user to. */ - courseId: string; + courseId?: string; /** * Identifier assigned by Classroom. Read-only. */ - id: string; + id?: string; /** * Role to invite the user to have. Must not be `COURSE_ROLE_UNSPECIFIED`. */ - role: string; + role?: string; /** * Identifier of the invited user. When specified as a parameter of a * request, this identifier can be set to one of the following: * the * numeric identifier for the user * the email address of the user * the * string literal `"me"`, indicating the requesting user */ - userId: string; + userId?: string; } /** * URL item. @@ -717,16 +720,16 @@ export namespace classroom_v1 { /** * URL of a thumbnail image of the target URL. Read-only. */ - thumbnailUrl: string; + thumbnailUrl?: string; /** * Title of the target of the URL. Read-only. */ - title: string; + title?: string; /** * URL to link to. This must be a valid UTF-8 string containing between 1 * and 2024 characters. */ - url: string; + url?: string; } /** * Response when listing course work. @@ -735,12 +738,12 @@ export namespace classroom_v1 { /** * Announcement items that match the request. */ - announcements: Schema$Announcement[]; + announcements?: Schema$Announcement[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing course aliases. @@ -749,12 +752,12 @@ export namespace classroom_v1 { /** * The course aliases. */ - aliases: Schema$CourseAlias[]; + aliases?: Schema$CourseAlias[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing courses. @@ -763,12 +766,12 @@ export namespace classroom_v1 { /** * Courses that match the list request. */ - courses: Schema$Course[]; + courses?: Schema$Course[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing course work. @@ -777,12 +780,12 @@ export namespace classroom_v1 { /** * Course work items that match the request. */ - courseWork: Schema$CourseWork[]; + courseWork?: Schema$CourseWork[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing guardian invitations. @@ -791,12 +794,12 @@ export namespace classroom_v1 { /** * Guardian invitations that matched the list request. */ - guardianInvitations: Schema$GuardianInvitation[]; + guardianInvitations?: Schema$GuardianInvitation[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing guardians. @@ -806,12 +809,12 @@ export namespace classroom_v1 { * Guardians on this page of results that met the criteria specified in the * request. */ - guardians: Schema$Guardian[]; + guardians?: Schema$Guardian[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing invitations. @@ -820,12 +823,12 @@ export namespace classroom_v1 { /** * Invitations that match the list request. */ - invitations: Schema$Invitation[]; + invitations?: Schema$Invitation[]; /** * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response when listing students. @@ -835,11 +838,11 @@ export namespace classroom_v1 { * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; /** * Students who match the list request. */ - students: Schema$Student[]; + students?: Schema$Student[]; } /** * Response when listing student submissions. @@ -849,11 +852,11 @@ export namespace classroom_v1 { * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; /** * Student work that matches the request. */ - studentSubmissions: Schema$StudentSubmission[]; + studentSubmissions?: Schema$StudentSubmission[]; } /** * Response when listing teachers. @@ -863,11 +866,11 @@ export namespace classroom_v1 { * Token identifying the next page of results to return. If empty, no * further results are available. */ - nextPageToken: string; + nextPageToken?: string; /** * Teachers who match the list request. */ - teachers: Schema$Teacher[]; + teachers?: Schema$Teacher[]; } /** * Material attached to course work. When creating attachments, setting the @@ -877,20 +880,20 @@ export namespace classroom_v1 { /** * Google Drive file material. */ - driveFile: Schema$SharedDriveFile; + driveFile?: Schema$SharedDriveFile; /** * Google Forms material. */ - form: Schema$Form; + form?: Schema$Form; /** * Link material. On creation, will be upgraded to a more appropriate type * if possible, and this will be reflected in the response. */ - link: Schema$Link; + link?: Schema$Link; /** * YouTube video material. */ - youtubeVideo: Schema$YouTubeVideo; + youtubeVideo?: Schema$YouTubeVideo; } /** * Request to modify assignee mode and options of an announcement. @@ -900,12 +903,12 @@ export namespace classroom_v1 { * Mode of the announcement describing whether it will be accessible by all * students or specified individual students. */ - assigneeMode: string; + assigneeMode?: string; /** * Set which students can view or cannot view the announcement. Must be * specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`. */ - modifyIndividualStudentsOptions: Schema$ModifyIndividualStudentsOptions; + modifyIndividualStudentsOptions?: Schema$ModifyIndividualStudentsOptions; } /** * Request to modify the attachments of a student submission. @@ -915,7 +918,7 @@ export namespace classroom_v1 { * Attachments to add. A student submission may not have more than 20 * attachments. Form attachments are not supported. */ - addAttachments: Schema$Attachment[]; + addAttachments?: Schema$Attachment[]; } /** * Request to modify assignee mode and options of a coursework. @@ -925,12 +928,12 @@ export namespace classroom_v1 { * Mode of the coursework describing whether it will be assigned to all * students or specified individual students. */ - assigneeMode: string; + assigneeMode?: string; /** * Set which students are assigned or not assigned to the coursework. Must * be specified only when `assigneeMode` is `INDIVIDUAL_STUDENTS`. */ - modifyIndividualStudentsOptions: Schema$ModifyIndividualStudentsOptions; + modifyIndividualStudentsOptions?: Schema$ModifyIndividualStudentsOptions; } /** * Contains fields to add or remove students from a course work or @@ -941,12 +944,12 @@ export namespace classroom_v1 { * Ids of students to be added as having access to this * coursework/announcement. */ - addStudentIds: string[]; + addStudentIds?: string[]; /** * Ids of students to be removed from having access to this * coursework/announcement. */ - removeStudentIds: string[]; + removeStudentIds?: string[]; } /** * Additional details for multiple-choice questions. @@ -955,7 +958,7 @@ export namespace classroom_v1 { /** * Possible choices. */ - choices: string[]; + choices?: string[]; } /** * Student work for a multiple-choice question. @@ -964,7 +967,7 @@ export namespace classroom_v1 { /** * Student's select choice. */ - answer: string; + answer?: string; } /** * Details of the user's name. @@ -973,16 +976,16 @@ export namespace classroom_v1 { /** * The user's last name. Read-only. */ - familyName: string; + familyName?: string; /** * The user's full name formed by concatenating the first and last name * values. Read-only. */ - fullName: string; + fullName?: string; /** * The user's first name. Read-only. */ - givenName: string; + givenName?: string; } /** * Request to reclaim a student submission. @@ -996,21 +999,21 @@ export namespace classroom_v1 { /** * The Cloud Pub/Sub topic that notifications are to be sent to. */ - cloudPubsubTopic: Schema$CloudPubsubTopic; + cloudPubsubTopic?: Schema$CloudPubsubTopic; /** * The time until which the `Registration` is effective. This is a * read-only field assigned by the server. */ - expiryTime: string; + expiryTime?: string; /** * Specification for the class of notifications that Classroom should * deliver to the `destination`. */ - feed: Schema$Feed; + feed?: Schema$Feed; /** * A server-generated unique identifier for this `Registration`. Read-only. */ - registrationId: string; + registrationId?: string; } /** * Request to return a student submission. @@ -1023,11 +1026,11 @@ export namespace classroom_v1 { /** * Drive file details. */ - driveFile: Schema$DriveFile; + driveFile?: Schema$DriveFile; /** * Mechanism by which students access the Drive item. */ - shareMode: string; + shareMode?: string; } /** * Student work for a short answer question. @@ -1036,7 +1039,7 @@ export namespace classroom_v1 { /** * Student response to a short-answer question. */ - answer: string; + answer?: string; } /** * The history of each state this submission has been in. @@ -1045,15 +1048,15 @@ export namespace classroom_v1 { /** * The teacher or student who made the change */ - actorUserId: string; + actorUserId?: string; /** * The workflow pipeline stage. */ - state: string; + state?: string; /** * When the submission entered this state. */ - stateTimestamp: string; + stateTimestamp?: string; } /** * Student in a course. @@ -1062,23 +1065,23 @@ export namespace classroom_v1 { /** * Identifier of the course. Read-only. */ - courseId: string; + courseId?: string; /** * Global user information for the student. Read-only. */ - profile: Schema$UserProfile; + profile?: Schema$UserProfile; /** * Information about a Drive Folder for this student's work in this * course. Only visible to the student and domain administrators. Read-only. */ - studentWorkFolder: Schema$DriveFolder; + studentWorkFolder?: Schema$DriveFolder; /** * Identifier of the user. When specified as a parameter of a request, this * identifier can be one of the following: * the numeric identifier for the * user * the email address of the user * the string literal * `"me"`, indicating the requesting user */ - userId: string; + userId?: string; } /** * Student submission for course work. StudentSubmission items are generated @@ -1090,84 +1093,84 @@ export namespace classroom_v1 { /** * Absolute link to the submission in the Classroom web UI. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * Optional grade. If unset, no grade was set. This value must be * non-negative. Decimal (i.e. non-integer) values are allowed, but will be * rounded to two decimal places. This may be modified only by course * teachers. */ - assignedGrade: number; + assignedGrade?: number; /** * Submission content when course_work_type is ASSIGNMENT. Students can * modify this content using google.classroom.Work.ModifyAttachments. */ - assignmentSubmission: Schema$AssignmentSubmission; + assignmentSubmission?: Schema$AssignmentSubmission; /** * Whether this student submission is associated with the Developer Console * project making the request. See google.classroom.Work.CreateCourseWork * for more details. Read-only. */ - associatedWithDeveloper: boolean; + associatedWithDeveloper?: boolean; /** * Identifier of the course. Read-only. */ - courseId: string; + courseId?: string; /** * Identifier for the course work this corresponds to. Read-only. */ - courseWorkId: string; + courseWorkId?: string; /** * Type of course work this submission is for. Read-only. */ - courseWorkType: string; + courseWorkType?: string; /** * Creation time of this submission. This may be unset if the student has * not accessed this item. Read-only. */ - creationTime: string; + creationTime?: string; /** * Optional pending grade. If unset, no grade was set. This value must be * non-negative. Decimal (i.e. non-integer) values are allowed, but will be * rounded to two decimal places. This is only visible to and modifiable by * course teachers. */ - draftGrade: number; + draftGrade?: number; /** * Classroom-assigned Identifier for the student submission. This is unique * among submissions for the relevant course work. Read-only. */ - id: string; + id?: string; /** * Whether this submission is late. Read-only. */ - late: boolean; + late?: boolean; /** * Submission content when course_work_type is MULTIPLE_CHOICE_QUESTION. */ - multipleChoiceSubmission: Schema$MultipleChoiceSubmission; + multipleChoiceSubmission?: Schema$MultipleChoiceSubmission; /** * Submission content when course_work_type is SHORT_ANSWER_QUESTION. */ - shortAnswerSubmission: Schema$ShortAnswerSubmission; + shortAnswerSubmission?: Schema$ShortAnswerSubmission; /** * State of this submission. Read-only. */ - state: string; + state?: string; /** * The history of the submission (includes state and grade histories). * Read-only. */ - submissionHistory: Schema$SubmissionHistory[]; + submissionHistory?: Schema$SubmissionHistory[]; /** * Last update time of this submission. This may be unset if the student has * not accessed this item. Read-only. */ - updateTime: string; + updateTime?: string; /** * Identifier for the student that owns this submission. Read-only. */ - userId: string; + userId?: string; } /** * The history of the submission. This currently includes state and grade @@ -1177,11 +1180,11 @@ export namespace classroom_v1 { /** * The grade history information of the submission, if present. */ - gradeHistory: Schema$GradeHistory; + gradeHistory?: Schema$GradeHistory; /** * The state history information of the submission, if present. */ - stateHistory: Schema$StateHistory; + stateHistory?: Schema$StateHistory; } /** * Teacher of a course. @@ -1190,18 +1193,18 @@ export namespace classroom_v1 { /** * Identifier of the course. Read-only. */ - courseId: string; + courseId?: string; /** * Global user information for the teacher. Read-only. */ - profile: Schema$UserProfile; + profile?: Schema$UserProfile; /** * Identifier of the user. When specified as a parameter of a request, this * identifier can be one of the following: * the numeric identifier for the * user * the email address of the user * the string literal * `"me"`, indicating the requesting user */ - userId: string; + userId?: string; } /** * Represents a time of day. The date and time zone are either not significant @@ -1214,20 +1217,20 @@ export namespace classroom_v1 { * to allow the value "24:00:00" for scenarios like business * closing time. */ - hours: number; + hours?: number; /** * Minutes of hour of day. Must be from 0 to 59. */ - minutes: number; + minutes?: number; /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */ - nanos: number; + nanos?: number; /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. */ - seconds: number; + seconds?: number; } /** * Request to turn in a student submission. @@ -1240,30 +1243,30 @@ export namespace classroom_v1 { /** * Email address of the user. Read-only. */ - emailAddress: string; + emailAddress?: string; /** * Identifier of the user. Read-only. */ - id: string; + id?: string; /** * Name of the user. Read-only. */ - name: Schema$Name; + name?: Schema$Name; /** * Global permissions of the user. Read-only. */ - permissions: Schema$GlobalPermission[]; + permissions?: Schema$GlobalPermission[]; /** * URL of user's profile photo. Read-only. */ - photoUrl: string; + photoUrl?: string; /** * Represents whether a G Suite for Education user's domain * administrator has explicitly verified them as being a teacher. If the * user is not a member of a G Suite for Education domain, than this field * will always be false. Read-only */ - verifiedTeacher: boolean; + verifiedTeacher?: boolean; } /** * YouTube video item. @@ -1272,21 +1275,22 @@ export namespace classroom_v1 { /** * URL that can be used to view the YouTube video. Read-only. */ - alternateLink: string; + alternateLink?: string; /** * YouTube API resource ID. */ - id: string; + id?: string; /** * URL of a thumbnail image of the YouTube video. Read-only. */ - thumbnailUrl: string; + thumbnailUrl?: string; /** * Title of the YouTube video. Read-only. */ - title: string; + title?: string; } + export class Resource$Courses { root: Classroom; aliases: Resource$Courses$Aliases; @@ -1328,25 +1332,36 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Courses$Create, options?: MethodOptions): + AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Courses$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Courses$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Courses$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1383,25 +1398,36 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Courses$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Courses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Courses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Courses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1438,23 +1464,33 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Courses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Courses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Courses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Courses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Courses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1497,28 +1533,37 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Courses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Courses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Courses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Courses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Courses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1560,25 +1605,36 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Courses$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Courses$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Courses$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Courses$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1617,25 +1673,36 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Courses$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Courses$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Courses$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Courses$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1656,6 +1723,124 @@ export namespace classroom_v1 { } } } + + export interface Params$Resource$Courses$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Course; + } + export interface Params$Resource$Courses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course to delete. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + id?: string; + } + export interface Params$Resource$Courses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course to return. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + id?: string; + } + export interface Params$Resource$Courses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restricts returned courses to those in one of the specified states The + * default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. + */ + courseStates?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + /** + * Restricts returned courses to those having a student with the specified + * identifier. The identifier can be one of the following: * the numeric + * identifier for the user * the email address of the user * the string + * literal `"me"`, indicating the requesting user + */ + studentId?: string; + /** + * Restricts returned courses to those having a teacher with the specified + * identifier. The identifier can be one of the following: * the numeric + * identifier for the user * the email address of the user * the string + * literal `"me"`, indicating the requesting user + */ + teacherId?: string; + } + export interface Params$Resource$Courses$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course to update. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + id?: string; + /** + * Mask that identifies which fields on the course to update. This field is + * required to do an update. The update will fail if invalid fields are + * specified. The following fields are valid: * `name` * `section` * + * `descriptionHeading` * `description` * `room` * `courseState` * `ownerId` + * Note: patches to ownerId are treated as being effective immediately, but + * in practice it may take some time for the ownership transfer of all + * affected resources to complete. When set in a query parameter, this + * field should be specified as `updateMask=,,...` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Course; + } + export interface Params$Resource$Courses$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course to update. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$Course; + } + export class Resource$Courses$Aliases { root: Classroom; constructor(root: Classroom) { @@ -1687,26 +1872,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Aliases$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Courses$Aliases$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Aliases$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Courses$Aliases$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Aliases$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Aliases$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1747,25 +1945,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Aliases$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Courses$Aliases$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Aliases$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Courses$Aliases$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Aliases$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Aliases$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1805,29 +2016,41 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Courses$Aliases$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Courses$Aliases$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Courses$Aliases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Courses$Aliases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Aliases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Aliases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1851,6 +2074,64 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Courses$Aliases$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course to alias. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Request body metadata + */ + resource?: Schema$CourseAlias; + } + export interface Params$Resource$Courses$Aliases$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Alias to delete. This may not be the Classroom-assigned identifier. + */ + alias?: string; + /** + * Identifier of the course whose alias should be deleted. This identifier + * can be either the Classroom-assigned identifier or an alias. + */ + courseId?: string; + } + export interface Params$Resource$Courses$Aliases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + } + + export class Resource$Courses$Announcements { root: Classroom; constructor(root: Classroom) { @@ -1882,26 +2163,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Announcements$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Courses$Announcements$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Courses$Announcements$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Announcements$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Announcements$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Announcements$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -1945,25 +2239,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Announcements$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Announcements$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Courses$Announcements$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Courses$Announcements$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Announcements$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Announcements$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2003,24 +2310,35 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Courses$Announcements$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Courses$Announcements$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Courses$Announcements$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Courses$Announcements$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Announcements$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Announcements$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2065,29 +2383,42 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Courses$Announcements$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Courses$Announcements$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Courses$Announcements$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Courses$Announcements$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Announcements$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Announcements$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2131,26 +2462,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyAssignees(params?: any, options?: MethodOptions): - AxiosPromise; modifyAssignees( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Announcements$Modifyassignees, + options?: MethodOptions): AxiosPromise; + modifyAssignees( + params: Params$Resource$Courses$Announcements$Modifyassignees, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; modifyAssignees( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Announcements$Modifyassignees, + callback: BodyResponseCallback): void; + modifyAssignees(callback: BodyResponseCallback): void; + modifyAssignees( + paramsOrCallback?: + Params$Resource$Courses$Announcements$Modifyassignees| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Announcements$Modifyassignees; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Announcements$Modifyassignees; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2195,26 +2540,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Announcements$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Courses$Announcements$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Courses$Announcements$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Announcements$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Announcements$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Announcements$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2237,6 +2595,145 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Courses$Announcements$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Request body metadata + */ + resource?: Schema$Announcement; + } + export interface Params$Resource$Courses$Announcements$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the announcement to delete. This identifier is a + * Classroom-assigned identifier. + */ + id?: string; + } + export interface Params$Resource$Courses$Announcements$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the announcement. + */ + id?: string; + } + export interface Params$Resource$Courses$Announcements$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restriction on the `state` of announcements returned. If this argument is + * left unspecified, the default value is `PUBLISHED`. + */ + announcementStates?: string; + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Optional sort ordering for results. A comma-separated list of fields with + * an optional sort direction keyword. Supported field is `updateTime`. + * Supported direction keywords are `asc` and `desc`. If not specified, + * `updateTime desc` is the default behavior. Examples: `updateTime asc`, + * `updateTime` + */ + orderBy?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + } + export interface Params$Resource$Courses$Announcements$Modifyassignees { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the announcement. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyAnnouncementAssigneesRequest; + } + export interface Params$Resource$Courses$Announcements$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the announcement. + */ + id?: string; + /** + * Mask that identifies which fields on the announcement to update. This + * field is required to do an update. The update fails if invalid fields are + * specified. If a field supports empty values, it can be cleared by + * specifying it in the update mask and not in the Announcement object. If a + * field that does not support empty values is included in the update mask + * and not set in the Announcement object, an `INVALID_ARGUMENT` error will + * be returned. The following fields may be specified by teachers: * + * `text` * `state` * `scheduled_time` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Announcement; + } + + export class Resource$Courses$Coursework { root: Classroom; studentSubmissions: Resource$Courses$Coursework$Studentsubmissions; @@ -2276,26 +2773,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Courses$Coursework$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Courses$Coursework$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Coursework$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Coursework$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Coursework$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2339,25 +2849,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Coursework$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Courses$Coursework$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Courses$Coursework$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Coursework$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Coursework$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2397,23 +2920,35 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Courses$Coursework$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Courses$Coursework$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Courses$Coursework$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Courses$Coursework$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Coursework$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Coursework$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2458,28 +2993,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Courses$Coursework$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Courses$Coursework$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Courses$Coursework$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Courses$Coursework$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Coursework$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Coursework$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2522,26 +3069,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyAssignees(params?: any, options?: MethodOptions): - AxiosPromise; modifyAssignees( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Modifyassignees, + options?: MethodOptions): AxiosPromise; + modifyAssignees( + params: Params$Resource$Courses$Coursework$Modifyassignees, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyAssignees( + params: Params$Resource$Courses$Coursework$Modifyassignees, + callback: BodyResponseCallback): void; + modifyAssignees(callback: BodyResponseCallback): void; modifyAssignees( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Coursework$Modifyassignees| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Modifyassignees; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Coursework$Modifyassignees; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2592,26 +3152,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Courses$Coursework$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Coursework$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Courses$Coursework$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Coursework$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Coursework$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2633,6 +3206,147 @@ export namespace classroom_v1 { } } } + + export interface Params$Resource$Courses$Coursework$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Request body metadata + */ + resource?: Schema$CourseWork; + } + export interface Params$Resource$Courses$Coursework$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work to delete. This identifier is a + * Classroom-assigned identifier. + */ + id?: string; + } + export interface Params$Resource$Courses$Coursework$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + id?: string; + } + export interface Params$Resource$Courses$Coursework$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Restriction on the work status to return. Only courseWork that matches is + * returned. If unspecified, items with a work status of `PUBLISHED` is + * returned. + */ + courseWorkStates?: string; + /** + * Optional sort ordering for results. A comma-separated list of fields with + * an optional sort direction keyword. Supported fields are `updateTime` and + * `dueDate`. Supported direction keywords are `asc` and `desc`. If not + * specified, `updateTime desc` is the default behavior. Examples: `dueDate + * asc,updateTime desc`, `updateTime,dueDate desc` + */ + orderBy?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + } + export interface Params$Resource$Courses$Coursework$Modifyassignees { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the coursework. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyCourseWorkAssigneesRequest; + } + export interface Params$Resource$Courses$Coursework$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + id?: string; + /** + * Mask that identifies which fields on the course work to update. This + * field is required to do an update. The update fails if invalid fields are + * specified. If a field supports empty values, it can be cleared by + * specifying it in the update mask and not in the CourseWork object. If a + * field that does not support empty values is included in the update mask + * and not set in the CourseWork object, an `INVALID_ARGUMENT` error will be + * returned. The following fields may be specified by teachers: * `title` + * * `description` * `state` * `due_date` * `due_time` * `max_points` * + * `scheduled_time` * `submission_modification_mode` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$CourseWork; + } + export class Resource$Courses$Coursework$Studentsubmissions { root: Classroom; constructor(root: Classroom) { @@ -2663,24 +3377,37 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Courses$Coursework$Studentsubmissions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Courses$Coursework$Studentsubmissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Courses$Coursework$Studentsubmissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2732,29 +3459,46 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Courses$Coursework$Studentsubmissions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Courses$Coursework$Studentsubmissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Courses$Coursework$Studentsubmissions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2807,26 +3551,45 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyAttachments(params?: any, options?: MethodOptions): - AxiosPromise; modifyAttachments( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments, + options?: MethodOptions): AxiosPromise; modifyAttachments( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyAttachments( + params: + Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments, + callback: BodyResponseCallback): void; + modifyAttachments(callback: BodyResponseCallback): + void; + modifyAttachments( + paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2878,26 +3641,41 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Studentsubmissions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -2950,25 +3728,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reclaim(params?: any, options?: MethodOptions): AxiosPromise; reclaim( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim, + options?: MethodOptions): AxiosPromise; + reclaim( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + reclaim( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim, + callback: BodyResponseCallback): void; + reclaim(callback: BodyResponseCallback): void; reclaim( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3021,25 +3814,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - return(params?: any, options?: MethodOptions): AxiosPromise; return( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Studentsubmissions$Return, + options?: MethodOptions): AxiosPromise; + return( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Return, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + return( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Return, + callback: BodyResponseCallback): void; + return(callback: BodyResponseCallback): void; return( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$Return| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$Return; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$Return; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3090,25 +3898,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - turnIn(params?: any, options?: MethodOptions): AxiosPromise; turnIn( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Coursework$Studentsubmissions$Turnin, + options?: MethodOptions): AxiosPromise; + turnIn( + params: Params$Resource$Courses$Coursework$Studentsubmissions$Turnin, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; turnIn( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Coursework$Studentsubmissions$Turnin, + callback: BodyResponseCallback): void; + turnIn(callback: BodyResponseCallback): void; + turnIn( + paramsOrCallback?: + Params$Resource$Courses$Coursework$Studentsubmissions$Turnin| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Courses$Coursework$Studentsubmissions$Turnin; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Courses$Coursework$Studentsubmissions$Turnin; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3133,6 +3956,203 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + courseWorkId?: string; + /** + * Identifier of the student submission. + */ + id?: string; + } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the student work to request. This may be set to the string + * literal `"-"` to request student work for all course work in the + * specified course. + */ + courseWorkId?: string; + /** + * Requested lateness value. If specified, returned student submissions are + * restricted by the requested value. If unspecified, submissions are + * returned regardless of `late` value. + */ + late?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + /** + * Requested submission states. If specified, returned student submissions + * match one of the specified submission states. + */ + states?: string; + /** + * Optional argument to restrict returned student work to those owned by the + * student with the specified identifier. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of + * the user * the string literal `"me"`, indicating the requesting user + */ + userId?: string; + } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$Modifyattachments { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + courseWorkId?: string; + /** + * Identifier of the student submission. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyAttachmentsRequest; + } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + courseWorkId?: string; + /** + * Identifier of the student submission. + */ + id?: string; + /** + * Mask that identifies which fields on the student submission to update. + * This field is required to do an update. The update fails if invalid + * fields are specified. The following fields may be specified by teachers: + * * `draft_grade` * `assigned_grade` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$StudentSubmission; + } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$Reclaim { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + courseWorkId?: string; + /** + * Identifier of the student submission. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$ReclaimStudentSubmissionRequest; + } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$Return { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + courseWorkId?: string; + /** + * Identifier of the student submission. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$ReturnStudentSubmissionRequest; + } + export interface Params$Resource$Courses$Coursework$Studentsubmissions$Turnin { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the course work. + */ + courseWorkId?: string; + /** + * Identifier of the student submission. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$TurnInStudentSubmissionRequest; + } + + export class Resource$Courses$Students { root: Classroom; @@ -3168,25 +4188,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Students$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Students$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Courses$Students$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Courses$Students$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Students$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Students$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3226,25 +4259,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Students$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Courses$Students$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Students$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Courses$Students$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Students$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Students$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3284,23 +4330,34 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Courses$Students$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Courses$Students$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Courses$Students$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Courses$Students$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Students$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Students$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3340,28 +4397,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Courses$Students$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Courses$Students$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Courses$Students$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Courses$Students$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Students$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Students$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3384,6 +4453,90 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Courses$Students$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course to create the student in. This identifier can be + * either the Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Enrollment code of the course to create the student in. This code is + * required if userId corresponds to the requesting user; it may be omitted + * if the requesting user has administrative permissions to create students + * for any user. + */ + enrollmentCode?: string; + /** + * Request body metadata + */ + resource?: Schema$Student; + } + export interface Params$Resource$Courses$Students$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the student to delete. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of + * the user * the string literal `"me"`, indicating the requesting user + */ + userId?: string; + } + export interface Params$Resource$Courses$Students$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the student to return. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of + * the user * the string literal `"me"`, indicating the requesting user + */ + userId?: string; + } + export interface Params$Resource$Courses$Students$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Maximum number of items to return. Zero means no maximum. The server may + * return fewer than the specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + } + + export class Resource$Courses$Teachers { root: Classroom; constructor(root: Classroom) { @@ -3417,25 +4570,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Teachers$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Courses$Teachers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Courses$Teachers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Courses$Teachers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Teachers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Teachers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3476,25 +4642,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Courses$Teachers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Courses$Teachers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Courses$Teachers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Courses$Teachers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Teachers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Teachers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3534,23 +4713,34 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Courses$Teachers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Courses$Teachers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Courses$Teachers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Courses$Teachers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Teachers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Teachers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3590,28 +4780,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Courses$Teachers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Courses$Teachers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Courses$Teachers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Courses$Teachers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Courses$Teachers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Courses$Teachers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3634,6 +4836,83 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Courses$Teachers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Request body metadata + */ + resource?: Schema$Teacher; + } + export interface Params$Resource$Courses$Teachers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the teacher to delete. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of + * the user * the string literal `"me"`, indicating the requesting user + */ + userId?: string; + } + export interface Params$Resource$Courses$Teachers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Identifier of the teacher to return. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of + * the user * the string literal `"me"`, indicating the requesting user + */ + userId?: string; + } + export interface Params$Resource$Courses$Teachers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the course. This identifier can be either the + * Classroom-assigned identifier or an alias. + */ + courseId?: string; + /** + * Maximum number of items to return. Zero means no maximum. The server may + * return fewer than the specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + } + + export class Resource$Invitations { root: Classroom; @@ -3667,25 +4946,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - accept(params?: any, options?: MethodOptions): AxiosPromise; accept( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Invitations$Accept, + options?: MethodOptions): AxiosPromise; accept( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Invitations$Accept, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + accept( + params: Params$Resource$Invitations$Accept, + callback: BodyResponseCallback): void; + accept(callback: BodyResponseCallback): void; + accept( + paramsOrCallback?: Params$Resource$Invitations$Accept| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Invitations$Accept; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Invitations$Accept; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3728,26 +5020,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Invitations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Invitations$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Invitations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Invitations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Invitations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Invitations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3784,25 +5089,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Invitations$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Invitations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Invitations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Invitations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Invitations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Invitations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3840,23 +5158,34 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Invitations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Invitations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Invitations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Invitations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Invitations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Invitations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3898,28 +5227,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Invitations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Invitations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Invitations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Invitations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Invitations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Invitations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -3941,6 +5280,82 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Invitations$Accept { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the invitation to accept. + */ + id?: string; + } + export interface Params$Resource$Invitations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Invitation; + } + export interface Params$Resource$Invitations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the invitation to delete. + */ + id?: string; + } + export interface Params$Resource$Invitations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the invitation to return. + */ + id?: string; + } + export interface Params$Resource$Invitations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restricts returned invitations to those for a course with the specified + * identifier. + */ + courseId?: string; + /** + * Maximum number of items to return. Zero means no maximum. The server may + * return fewer than the specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + /** + * Restricts returned invitations to those for a specific user. The + * identifier can be one of the following: * the numeric identifier for the + * user * the email address of the user * the string literal `"me"`, + * indicating the requesting user + */ + userId?: string; + } + + export class Resource$Registrations { root: Classroom; constructor(root: Classroom) { @@ -3984,26 +5399,39 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Registrations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Registrations$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Registrations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Registrations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Registrations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Registrations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4039,25 +5467,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Registrations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Registrations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Registrations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Registrations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Registrations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Registrations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4080,6 +5521,30 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Registrations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Registration; + } + export interface Params$Resource$Registrations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `registration_id` of the `Registration` to be deleted. + */ + registrationId?: string; + } + + export class Resource$Userprofiles { root: Classroom; guardianInvitations: Resource$Userprofiles$Guardianinvitations; @@ -4112,24 +5577,34 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userprofiles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userprofiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userprofiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userprofiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userprofiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4151,6 +5626,21 @@ export namespace classroom_v1 { } } } + + export interface Params$Resource$Userprofiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier of the profile to return. The identifier can be one of the + * following: * the numeric identifier for the user * the email address of + * the user * the string literal `"me"`, indicating the requesting user + */ + userId?: string; + } + export class Resource$Userprofiles$Guardianinvitations { root: Classroom; constructor(root: Classroom) { @@ -4199,26 +5689,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Userprofiles$Guardianinvitations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Userprofiles$Guardianinvitations$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Userprofiles$Guardianinvitations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Userprofiles$Guardianinvitations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardianinvitations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardianinvitations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4265,24 +5769,35 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userprofiles$Guardianinvitations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userprofiles$Guardianinvitations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userprofiles$Guardianinvitations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userprofiles$Guardianinvitations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardianinvitations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardianinvitations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4335,30 +5850,47 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Userprofiles$Guardianinvitations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userprofiles$Guardianinvitations$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Userprofiles$Guardianinvitations$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Userprofiles$Guardianinvitations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardianinvitations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardianinvitations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4412,26 +5944,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Userprofiles$Guardianinvitations$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Userprofiles$Guardianinvitations$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Userprofiles$Guardianinvitations$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Userprofiles$Guardianinvitations$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardianinvitations$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardianinvitations$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4456,6 +6002,104 @@ export namespace classroom_v1 { } } + export interface Params$Resource$Userprofiles$Guardianinvitations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the student (in standard format) + */ + studentId?: string; + /** + * Request body metadata + */ + resource?: Schema$GuardianInvitation; + } + export interface Params$Resource$Userprofiles$Guardianinvitations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` field of the `GuardianInvitation` being requested. + */ + invitationId?: string; + /** + * The ID of the student whose guardian invitation is being requested. + */ + studentId?: string; + } + export interface Params$Resource$Userprofiles$Guardianinvitations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If specified, only results with the specified `invited_email_address` + * will be returned. + */ + invitedEmailAddress?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + /** + * If specified, only results with the specified `state` values will be + * returned. Otherwise, results with a `state` of `PENDING` will be + * returned. + */ + states?: string; + /** + * The ID of the student whose guardian invitations are to be returned. The + * identifier can be one of the following: * the numeric identifier for the + * user * the email address of the user * the string literal `"me"`, + * indicating the requesting user * the string literal `"-"`, indicating + * that results should be returned for all students that the requesting + * user is permitted to view guardian invitations. + */ + studentId?: string; + } + export interface Params$Resource$Userprofiles$Guardianinvitations$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` field of the `GuardianInvitation` to be modified. + */ + invitationId?: string; + /** + * The ID of the student whose guardian invitation is to be modified. + */ + studentId?: string; + /** + * Mask that identifies which fields on the course to update. This field is + * required to do an update. The update will fail if invalid fields are + * specified. The following fields are valid: * `state` When set in a + * query parameter, this field should be specified as + * `updateMask=,,...` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GuardianInvitation; + } + + export class Resource$Userprofiles$Guardians { root: Classroom; constructor(root: Classroom) { @@ -4492,25 +6136,38 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Userprofiles$Guardians$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Userprofiles$Guardians$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Userprofiles$Guardians$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Userprofiles$Guardians$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardians$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardians$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4557,23 +6214,34 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Userprofiles$Guardians$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Userprofiles$Guardians$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userprofiles$Guardians$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userprofiles$Guardians$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardians$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardians$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4627,28 +6295,40 @@ export namespace classroom_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Userprofiles$Guardians$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Userprofiles$Guardians$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Userprofiles$Guardians$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Userprofiles$Guardians$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userprofiles$Guardians$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Guardians$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; const parameters = { options: Object.assign( @@ -4670,4 +6350,73 @@ export namespace classroom_v1 { } } } + + export interface Params$Resource$Userprofiles$Guardians$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` field from a `Guardian`. + */ + guardianId?: string; + /** + * The student whose guardian is to be deleted. One of the following: * the + * numeric identifier for the user * the email address of the user * the + * string literal `"me"`, indicating the requesting user + */ + studentId?: string; + } + export interface Params$Resource$Userprofiles$Guardians$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` field from a `Guardian`. + */ + guardianId?: string; + /** + * The student whose guardian is being requested. One of the following: * + * the numeric identifier for the user * the email address of the user * the + * string literal `"me"`, indicating the requesting user + */ + studentId?: string; + } + export interface Params$Resource$Userprofiles$Guardians$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Filter results by the email address that the original invitation was sent + * to, resulting in this guardian link. This filter can only be used by + * domain administrators. + */ + invitedEmailAddress?: string; + /** + * Maximum number of items to return. Zero or unspecified indicates that the + * server may assign a maximum. The server may return fewer than the + * specified number of results. + */ + pageSize?: number; + /** + * nextPageToken value returned from a previous list call, indicating that + * the subsequent page of results should be returned. The list request must + * be otherwise identical to the one that resulted in this token. + */ + pageToken?: string; + /** + * Filter results by the student who the guardian is linked to. The + * identifier can be one of the following: * the numeric identifier for the + * user * the email address of the user * the string literal `"me"`, + * indicating the requesting user * the string literal `"-"`, indicating + * that results should be returned for all students that the requesting + * user has access to view. + */ + studentId?: string; + } } diff --git a/src/apis/cloudbilling/v1.ts b/src/apis/cloudbilling/v1.ts index 4c28881a37d..078ad55cb36 100644 --- a/src/apis/cloudbilling/v1.ts +++ b/src/apis/cloudbilling/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudbilling_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Billing API * @@ -79,9 +82,9 @@ export namespace cloudbilling_v1 { * is "DAILY" and aggregation_count is 14, aggregation will be * over 14 days. */ - aggregationCount: number; - aggregationInterval: string; - aggregationLevel: string; + aggregationCount?: number; + aggregationInterval?: string; + aggregationLevel?: string; } /** * Specifies the audit configuration for a service. The configuration @@ -110,13 +113,13 @@ export namespace cloudbilling_v1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -132,11 +135,11 @@ export namespace cloudbilling_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * A billing account in [GCP Console](https://console.cloud.google.com/). You @@ -147,7 +150,7 @@ export namespace cloudbilling_v1 { * The display name given to the billing account, such as `My Billing * Account`. This name is displayed in the GCP Console. */ - displayName: string; + displayName?: string; /** * If this account is a * [subaccount](https://cloud.google.com/billing/docs/concepts), then this @@ -155,21 +158,21 @@ export namespace cloudbilling_v1 { * resold through. Otherwise this will be empty. > This field is * currently in > [Beta](https://cloud.google.com/terms/launch-stages). */ - masterBillingAccount: string; + masterBillingAccount?: string; /** * The resource name of the billing account. The resource name has the form * `billingAccounts/{billing_account_id}`. For example, * `billingAccounts/012345-567890-ABCDEF` would be the resource name for * billing account `012345-567890-ABCDEF`. */ - name: string; + name?: string; /** * True if the billing account is open, and will therefore be charged for * any usage on associated projects. False if the billing account is closed, * and therefore projects associated with it will be unable to use paid * services. */ - open: boolean; + open?: boolean; } /** * Associates `members` with a `role`. @@ -191,12 +194,12 @@ export namespace cloudbilling_v1 { * that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * Represents the category hierarchy of a SKU. @@ -207,23 +210,23 @@ export namespace cloudbilling_v1 { * "Storage", "Network", "ApplicationServices" * etc. */ - resourceFamily: string; + resourceFamily?: string; /** * A group classification for related SKUs. Example: "RAM", * "GPU", "Prediction", "Ops", * "GoogleEgress" etc. */ - resourceGroup: string; + resourceGroup?: string; /** * The display name of the service this SKU belongs to. */ - serviceDisplayName: string; + serviceDisplayName?: string; /** * Represents how the SKU is consumed. Example: "OnDemand", * "Preemptible", "Commit1Mo", "Commit1Yr" * etc. */ - usageType: string; + usageType?: string; } /** * Response message for `ListBillingAccounts`. @@ -232,13 +235,13 @@ export namespace cloudbilling_v1 { /** * A list of billing accounts. */ - billingAccounts: Schema$BillingAccount[]; + billingAccounts?: Schema$BillingAccount[]; /** * A token to retrieve the next page of results. To retrieve the next page, * call `ListBillingAccounts` again with the `page_token` field set to this * value. This field is empty if there are no more results to retrieve. */ - nextPageToken: string; + nextPageToken?: string; } /** * Request message for `ListProjectBillingInfoResponse`. @@ -249,12 +252,12 @@ export namespace cloudbilling_v1 { * call `ListProjectBillingInfo` again with the `page_token` field set to * this value. This field is empty if there are no more results to retrieve. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of `ProjectBillingInfo` resources representing the projects * associated with the billing account. */ - projectBillingInfo: Schema$ProjectBillingInfo[]; + projectBillingInfo?: Schema$ProjectBillingInfo[]; } /** * Response message for `ListServices`. @@ -265,11 +268,11 @@ export namespace cloudbilling_v1 { * call `ListServices` again with the `page_token` field set to this value. * This field is empty if there are no more results to retrieve. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of services. */ - services: Schema$Service[]; + services?: Schema$Service[]; } /** * Response message for `ListSkus`. @@ -280,11 +283,11 @@ export namespace cloudbilling_v1 { * call `ListSkus` again with the `page_token` field set to this value. This * field is empty if there are no more results to retrieve. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of public SKUs of the given service. */ - skus: Schema$Sku[]; + skus?: Schema$Sku[]; } /** * Represents an amount of money with its currency type. @@ -293,7 +296,7 @@ export namespace cloudbilling_v1 { /** * The 3-letter currency code defined in ISO 4217. */ - currencyCode: string; + currencyCode?: string; /** * Number of nano (10^-9) units of the amount. The value must be between * -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` @@ -302,12 +305,12 @@ export namespace cloudbilling_v1 { * zero. For example $-1.75 is represented as `units`=-1 and * `nanos`=-750,000,000. */ - nanos: number; + nanos?: number; /** * The whole units of the amount. For example if `currencyCode` is * `"USD"`, then 1 unit is one US dollar. */ - units: string; + units?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -329,12 +332,12 @@ export namespace cloudbilling_v1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -346,11 +349,11 @@ export namespace cloudbilling_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Expresses a mathematical pricing formula. For Example:- `usage_unit: GBy` @@ -364,7 +367,7 @@ export namespace cloudbilling_v1 { * The base unit for the SKU which is the unit used in usage exports. * Example: "By" */ - baseUnit: string; + baseUnit?: string; /** * Conversion factor for converting from price per usage_unit to price per * base_unit, and start_usage_amount to start_usage_amount in base_unit. @@ -372,11 +375,11 @@ export namespace cloudbilling_v1 { * start_usage_amount * base_unit_conversion_factor = start_usage_amount in * base_unit. */ - baseUnitConversionFactor: number; + baseUnitConversionFactor?: number; /** * The base unit in human readable form. Example: "byte". */ - baseUnitDescription: string; + baseUnitDescription?: string; /** * The recommended quantity of units for displaying pricing info. When * displaying pricing info it is recommended to display: (unit_price * @@ -387,23 +390,23 @@ export namespace cloudbilling_v1 { * recommended way of displaying the pricing info is "0.10 USD per 1000 * GB" */ - displayQuantity: number; + displayQuantity?: number; /** * The list of tiered rates for this pricing. The total cost is computed by * applying each of the tiered rates on usage. This repeated list is sorted * by ascending order of start_usage_amount. */ - tieredRates: Schema$TierRate[]; + tieredRates?: Schema$TierRate[]; /** * The short hand for unit of usage this pricing is specified in. Example: * usage_unit of "GiBy" means that usage is specified in * "Gibi Byte". */ - usageUnit: string; + usageUnit?: string; /** * The unit of usage in human readable form. Example: "gibi byte". */ - usageUnitDescription: string; + usageUnitDescription?: string; } /** * Represents the pricing information for a SKU at a single point of time. @@ -413,7 +416,7 @@ export namespace cloudbilling_v1 { * Aggregation Info. This can be left unspecified if the pricing expression * doesn't require aggregation. */ - aggregationInfo: Schema$AggregationInfo; + aggregationInfo?: Schema$AggregationInfo; /** * Conversion rate used for currency conversion, from USD to the currency * specified in the request. This includes any surcharge collected for @@ -421,7 +424,7 @@ export namespace cloudbilling_v1 { * request this defaults to 1.0. Example: USD * currency_conversion_rate = * JPY */ - currencyConversionRate: number; + currencyConversionRate?: number; /** * The timestamp from which this pricing was effective within the requested * time range. This is guaranteed to be greater than or equal to the @@ -430,16 +433,16 @@ export namespace cloudbilling_v1 { * be equivalent to a time within the last 12 hours, indicating the latest * pricing info. */ - effectiveTime: string; + effectiveTime?: string; /** * Expresses the pricing formula. See `PricingExpression` for an example. */ - pricingExpression: Schema$PricingExpression; + pricingExpression?: Schema$PricingExpression; /** * An optional human readable summary of the pricing information, has a * maximum length of 256 characters. */ - summary: string; + summary?: string; } /** * Encapsulation of billing information for a GCP Console project. A project @@ -451,28 +454,28 @@ export namespace cloudbilling_v1 { * The resource name of the billing account associated with the project, if * any. For example, `billingAccounts/012345-567890-ABCDEF`. */ - billingAccountName: string; + billingAccountName?: string; /** * True if the project is associated with an open billing account, to which * usage on the project is charged. False if the project is associated with * a closed billing account, or no billing account at all, and therefore * cannot use paid services. This field is read-only. */ - billingEnabled: boolean; + billingEnabled?: boolean; /** * The resource name for the `ProjectBillingInfo`; has the form * `projects/{project_id}/billingInfo`. For example, the resource name for * the billing information for project `tokyo-rain-123` would be * `projects/tokyo-rain-123/billingInfo`. This field is read-only. */ - name: string; + name?: string; /** * The ID of the project that this `ProjectBillingInfo` represents, such as * `tokyo-rain-123`. This is a convenience field so that you don't need * to parse the `name` field to obtain a project ID. This field is * read-only. */ - projectId: string; + projectId?: string; } /** * Encapsulates a single service in Google Cloud Platform. @@ -481,16 +484,16 @@ export namespace cloudbilling_v1 { /** * A human readable display name for this service. */ - displayName: string; + displayName?: string; /** * The resource name for the service. Example: * "services/DA34-426B-A397" */ - name: string; + name?: string; /** * The identifier for the service. Example: "DA34-426B-A397" */ - serviceId: string; + serviceId?: string; } /** * Request message for `SetIamPolicy` method. @@ -502,14 +505,14 @@ export namespace cloudbilling_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * Encapsulates a single SKU in Google Cloud Platform @@ -518,36 +521,36 @@ export namespace cloudbilling_v1 { /** * The category hierarchy of this SKU, purely for organizational purpose. */ - category: Schema$Category; + category?: Schema$Category; /** * A human readable description of the SKU, has a maximum length of 256 * characters. */ - description: string; + description?: string; /** * The resource name for the SKU. Example: * "services/DA34-426B-A397/skus/AA95-CD31-42FE" */ - name: string; + name?: string; /** * A timeline of pricing info for this SKU in chronological order. */ - pricingInfo: Schema$PricingInfo[]; + pricingInfo?: Schema$PricingInfo[]; /** * Identifies the service provider. This is 'Google' for first party * services in Google Cloud Platform. */ - serviceProviderName: string; + serviceProviderName?: string; /** * List of service regions this SKU is offered at. Example: * "asia-east1" Service regions can be found at * https://cloud.google.com/about/locations/ */ - serviceRegions: string[]; + serviceRegions?: string[]; /** * The identifier for the SKU. Example: "AA95-CD31-42FE" */ - skuId: string; + skuId?: string; } /** * Request message for `TestIamPermissions` method. @@ -559,7 +562,7 @@ export namespace cloudbilling_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -569,7 +572,7 @@ export namespace cloudbilling_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The price rate indicating starting usage and its corresponding price. @@ -580,14 +583,15 @@ export namespace cloudbilling_v1 { * start_usage_amount of 10 indicates that the usage will be priced at the * unit_price after the first 10 usage_units. */ - startUsageAmount: number; + startUsageAmount?: number; /** * The price per unit of usage. Example: unit_price of amount $10 indicates * that each unit will cost $10. */ - unitPrice: Schema$Money; + unitPrice?: Schema$Money; } + export class Resource$Billingaccounts { root: Cloudbilling; projects: Resource$Billingaccounts$Projects; @@ -621,26 +625,39 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Billingaccounts$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Billingaccounts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -732,24 +749,35 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Billingaccounts$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Billingaccounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Billingaccounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Billingaccounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -788,26 +816,38 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Billingaccounts$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Billingaccounts$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -910,29 +950,43 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Billingaccounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Billingaccounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Billingaccounts$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Billingaccounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -976,26 +1030,39 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Billingaccounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Billingaccounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Billingaccounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1035,26 +1102,38 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Billingaccounts$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Billingaccounts$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Billingaccounts$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1094,29 +1173,45 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Billingaccounts$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Billingaccounts$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Billingaccounts$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Billingaccounts$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1139,6 +1234,123 @@ export namespace cloudbilling_v1 { } } } + + export interface Params$Resource$Billingaccounts$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$BillingAccount; + } + export interface Params$Resource$Billingaccounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the billing account to retrieve. For example, + * `billingAccounts/012345-567890-ABCDEF`. + */ + name?: string; + } + export interface Params$Resource$Billingaccounts$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Billingaccounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Options for how to filter the returned billing accounts. Currently this + * only supports filtering for + * [subaccounts](https://cloud.google.com/billing/docs/concepts) under a + * single provided reseller billing account. (e.g. + * "master_billing_account=billingAccounts/012345-678901-ABCDEF"). Boolean + * algebra and other fields are not currently supported. > This field is + * currently in > [Beta](https://cloud.google.com/terms/launch-stages). + */ + filter?: string; + /** + * Requested page size. The maximum page size is 100; this is also the + * default. + */ + pageSize?: number; + /** + * A token identifying a page of results to return. This should be a + * `next_page_token` value returned from a previous `ListBillingAccounts` + * call. If unspecified, the first page of results is returned. + */ + pageToken?: string; + } + export interface Params$Resource$Billingaccounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the billing account resource to be updated. + */ + name?: string; + /** + * The update mask applied to the resource. Only "display_name" is currently + * supported. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$BillingAccount; + } + export interface Params$Resource$Billingaccounts$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Billingaccounts$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Billingaccounts$Projects { root: Cloudbilling; constructor(root: Cloudbilling) { @@ -1238,29 +1450,44 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Billingaccounts$Projects$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Billingaccounts$Projects$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Billingaccounts$Projects$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Billingaccounts$Projects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Projects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Projects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1285,6 +1512,32 @@ export namespace cloudbilling_v1 { } } + export interface Params$Resource$Billingaccounts$Projects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the billing account associated with the projects + * that you want to list. For example, + * `billingAccounts/012345-567890-ABCDEF`. + */ + name?: string; + /** + * Requested page size. The maximum page size is 100; this is also the + * default. + */ + pageSize?: number; + /** + * A token identifying a page of results to be returned. This should be a + * `next_page_token` value returned from a previous `ListProjectBillingInfo` + * call. If unspecified, the first page of results is returned. + */ + pageToken?: string; + } + + export class Resource$Projects { root: Cloudbilling; @@ -1367,26 +1620,40 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getBillingInfo(params?: any, options?: MethodOptions): - AxiosPromise; getBillingInfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getbillinginfo, + options?: MethodOptions): AxiosPromise; + getBillingInfo( + params: Params$Resource$Projects$Getbillinginfo, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getBillingInfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Getbillinginfo, + callback: BodyResponseCallback): void; + getBillingInfo(callback: BodyResponseCallback): + void; + getBillingInfo( + paramsOrCallback?: Params$Resource$Projects$Getbillinginfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getbillinginfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getbillinginfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1506,26 +1773,40 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateBillingInfo(params?: any, options?: MethodOptions): - AxiosPromise; updateBillingInfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Updatebillinginfo, + options?: MethodOptions): AxiosPromise; updateBillingInfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Updatebillinginfo, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateBillingInfo( + params: Params$Resource$Projects$Updatebillinginfo, + callback: BodyResponseCallback): void; + updateBillingInfo( + callback: BodyResponseCallback): void; + updateBillingInfo( + paramsOrCallback?: Params$Resource$Projects$Updatebillinginfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Updatebillinginfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Updatebillinginfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1548,6 +1829,36 @@ export namespace cloudbilling_v1 { } } + export interface Params$Resource$Projects$Getbillinginfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the project for which billing information is + * retrieved. For example, `projects/tokyo-rain-123`. + */ + name?: string; + } + export interface Params$Resource$Projects$Updatebillinginfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the project associated with the billing information + * that you want to update. For example, `projects/tokyo-rain-123`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectBillingInfo; + } + + export class Resource$Services { root: Cloudbilling; skus: Resource$Services$Skus; @@ -1638,28 +1949,38 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Services$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Services$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1680,6 +2001,25 @@ export namespace cloudbilling_v1 { } } } + + export interface Params$Resource$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requested page size. Defaults to 5000. + */ + pageSize?: number; + /** + * A token identifying a page of results to return. This should be a + * `next_page_token` value returned from a previous `ListServices` call. If + * unspecified, the first page of results is returned. + */ + pageToken?: string; + } + export class Resource$Services$Skus { root: Cloudbilling; constructor(root: Cloudbilling) { @@ -1776,26 +2116,38 @@ export namespace cloudbilling_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Services$Skus$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Skus$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Services$Skus$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Skus$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Skus$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Skus$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; const parameters = { options: Object.assign( @@ -1817,4 +2169,50 @@ export namespace cloudbilling_v1 { } } } + + export interface Params$Resource$Services$Skus$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ISO 4217 currency code for the pricing info in the response proto. + * Will use the conversion rate as of start_time. Optional. If not specified + * USD will be used. + */ + currencyCode?: string; + /** + * Optional exclusive end time of the time range for which the pricing + * versions will be returned. Timestamps in the future are not allowed. The + * time range has to be within a single calendar month in + * America/Los_Angeles timezone. Time range as a whole is optional. If not + * specified, the latest pricing will be returned (up to 12 hours old at + * most). + */ + endTime?: string; + /** + * Requested page size. Defaults to 5000. + */ + pageSize?: number; + /** + * A token identifying a page of results to return. This should be a + * `next_page_token` value returned from a previous `ListSkus` call. If + * unspecified, the first page of results is returned. + */ + pageToken?: string; + /** + * The name of the service. Example: "services/DA34-426B-A397" + */ + parent?: string; + /** + * Optional inclusive start time of the time range for which the pricing + * versions will be returned. Timestamps in the future are not allowed. The + * time range has to be within a single calendar month in + * America/Los_Angeles timezone. Time range as a whole is optional. If not + * specified, the latest pricing will be returned (up to 12 hours old at + * most). + */ + startTime?: string; + } } diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index a781f229600..c36c10c9afb 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudbuild_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Container Builder API * @@ -79,15 +82,15 @@ export namespace cloudbuild_v1 { * Files in the workspace matching any path pattern will be uploaded to * Cloud Storage with this location as a prefix. */ - location: string; + location?: string; /** * Path globs used to match files in the build's workspace. */ - paths: string[]; + paths?: string[]; /** * Stores timing information for pushing all artifact objects. @OutputOnly */ - timing: Schema$TimeSpan; + timing?: Schema$TimeSpan; } /** * An artifact that was uploaded during a build. This is a single record in @@ -97,13 +100,13 @@ export namespace cloudbuild_v1 { /** * The file hash of the artifact. */ - fileHash: Schema$FileHashes[]; + 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; + location?: string; } /** * Artifacts produced by a build that should be uploaded upon successful @@ -117,7 +120,7 @@ export namespace cloudbuild_v1 { * Build resource's results field. If any of the images fail to be * pushed, the build is marked FAILURE. */ - images: string[]; + images?: string[]; /** * A list of objects to be uploaded to Cloud Storage upon successful * completion of all build steps. Files in the workspace matching specified @@ -127,7 +130,7 @@ export namespace cloudbuild_v1 { * resource's results field. If any objects fail to be pushed, the * build is marked FAILURE. */ - objects: Schema$ArtifactObjects; + objects?: Schema$ArtifactObjects; } /** * A build resource in the Container Builder API. At a high level, a `Build` @@ -147,26 +150,26 @@ export namespace cloudbuild_v1 { * Artifacts produced by the build that should be uploaded upon successful * completion of all build steps. */ - artifacts: Schema$Artifacts; + artifacts?: Schema$Artifacts; /** * The ID of the `BuildTrigger` that triggered this build, if it was * triggered automatically. @OutputOnly */ - buildTriggerId: string; + buildTriggerId?: string; /** * Time at which the request to create the build was received. @OutputOnly */ - createTime: string; + createTime?: string; /** * Time at which execution of the build was finished. The difference * between finish_time and start_time is the duration of the build's * execution. @OutputOnly */ - finishTime: string; + finishTime?: string; /** * Unique identifier of the build. @OutputOnly */ - id: string; + id?: string; /** * A list of images to be pushed upon the successful completion of all build * steps. The images are pushed using the builder service account's @@ -174,7 +177,7 @@ export namespace cloudbuild_v1 { * `Build` resource's results field. If any of the images fail to be * pushed, the build status is marked `FAILURE`. */ - images: string[]; + images?: string[]; /** * Google Cloud Storage bucket where logs should be written (see [Bucket * Name @@ -182,72 +185,72 @@ export namespace cloudbuild_v1 { * Logs file names will be of the format * `${logs_bucket}/log-${build_id}.txt`. */ - logsBucket: string; + logsBucket?: string; /** * URL to logs for this build in Google Cloud Console. @OutputOnly */ - logUrl: string; + logUrl?: string; /** * Special options for this build. */ - options: Schema$BuildOptions; + options?: Schema$BuildOptions; /** * ID of the project. @OutputOnly. */ - projectId: string; + projectId?: string; /** * Results of the build. @OutputOnly */ - results: Schema$Results; + results?: Schema$Results; /** * Secrets to decrypt using Cloud Key Management Service. */ - secrets: Schema$Secret[]; + secrets?: Schema$Secret[]; /** * The location of the source files to build. */ - source: Schema$Source; + source?: Schema$Source; /** * A permanent fixed identifier for source. @OutputOnly */ - sourceProvenance: Schema$SourceProvenance; + sourceProvenance?: Schema$SourceProvenance; /** * Time at which execution of the build was started. @OutputOnly */ - startTime: string; + startTime?: string; /** * Status of the build. @OutputOnly */ - status: string; + status?: string; /** * Customer-readable message about the current status. @OutputOnly */ - statusDetail: string; + statusDetail?: string; /** * Required. The operations to be performed on the workspace. */ - steps: Schema$BuildStep[]; + steps?: Schema$BuildStep[]; /** * Substitutions data for `Build` resource. */ - substitutions: any; + substitutions?: any; /** * Tags for annotation of a `Build`. These are not docker tags. */ - tags: string[]; + tags?: string[]; /** * Amount of time that this build should be allowed to run, to second * granularity. If this amount of time elapses, work on the build will cease * and the build status will be `TIMEOUT`. Default time is ten minutes. */ - timeout: string; + timeout?: string; /** * Stores timing information for phases of the build. Valid keys are: * * BUILD: time to execute all build steps * PUSH: time to push all specified * images. * FETCHSOURCE: time to fetch source. If the build does not * specify source or images, these keys will not be included. @OutputOnly */ - timing: any; + timing?: any; } /** * Metadata for build operations. @@ -256,7 +259,7 @@ export namespace cloudbuild_v1 { /** * The build that the operation is tracking. */ - build: Schema$Build; + build?: Schema$Build; } /** * Optional arguments to enable specific features of builds. @@ -271,28 +274,28 @@ export namespace cloudbuild_v1 { * 1000GB; builds that request more than the maximum are rejected with an * error. */ - diskSizeGb: string; + diskSizeGb?: string; /** * Option to define build log streaming behavior to Google Cloud Storage. */ - logStreamingOption: string; + logStreamingOption?: string; /** * Compute Engine machine type on which to run the build. */ - machineType: string; + machineType?: string; /** * Requested verifiability options. */ - requestedVerifyOption: string; + requestedVerifyOption?: string; /** * Requested hash for SourceProvenance. */ - sourceProvenanceHash: string[]; + sourceProvenanceHash?: string[]; /** * Option to specify behavior when there is an error in the substitution * checks. */ - substitutionOption: string; + substitutionOption?: string; } /** * A step in the build pipeline. @@ -305,7 +308,7 @@ export namespace cloudbuild_v1 { * image does not define an entrypoint, the first element in args is used as * the entrypoint, and the remainder will be used as arguments. */ - args: string[]; + args?: string[]; /** * Working directory to use when running this step's container. If this * value is a relative path, it is relative to the build's working @@ -316,24 +319,24 @@ export namespace cloudbuild_v1 { * step with a `dir`, which specifies an absolute path, the `RepoSource` * `dir` is ignored for the step's execution. */ - dir: string; + dir?: string; /** * Entrypoint to be used instead of the build step image's default * entrypoint. If unset, the image's default entrypoint is used. */ - entrypoint: string; + entrypoint?: string; /** * A list of environment variable definitions to be used when running a * step. The elements are of the form "KEY=VALUE" for the * environment variable "KEY" being given the value * "VALUE". */ - env: string[]; + env?: string[]; /** * Unique identifier for this build step, used in `wait_for` to reference * this build step as a dependency. */ - id: string; + id?: string; /** * Required. The name of the container image that will run this particular * build step. If the image is available in the host's Docker @@ -349,29 +352,29 @@ export namespace cloudbuild_v1 { * Docker daemon's cache and is available to use as the name for a later * build step. */ - name: string; + name?: string; /** * A list of environment variables which are encrypted using a Cloud Key * Management Service crypto key. These values must be specified in the * build's `Secret`. */ - secretEnv: string[]; + secretEnv?: string[]; /** * Status of the build step. At this time, build step status is only updated * on build completion; step status is not updated in real-time as the build * progresses. @OutputOnly */ - status: string; + status?: string; /** * Time limit for executing this build step. If not defined, the step has no * time limit and will be allowed to continue to run until either it * completes or the build itself times out. */ - timeout: string; + timeout?: string; /** * Stores timing information for executing this build step. @OutputOnly */ - timing: Schema$TimeSpan; + timing?: Schema$TimeSpan; /** * List of volumes to mount into the build step. Each volume will be * created as an empty volume prior to execution of the build step. Upon @@ -379,7 +382,7 @@ export namespace cloudbuild_v1 { * Using a named volume in only one step is not valid as it is indicative of * a mis-configured build request. */ - volumes: Schema$Volume[]; + volumes?: Schema$Volume[]; /** * The ID(s) of the step(s) that this build step depends on. This build step * will not start until all the build steps in `wait_for` have completed @@ -387,7 +390,7 @@ export namespace cloudbuild_v1 { * previous build steps in the `Build.Steps` list have completed * successfully. */ - waitFor: string[]; + waitFor?: string[]; } /** * Configuration for an automated build in response to source repository @@ -397,39 +400,39 @@ export namespace cloudbuild_v1 { /** * Contents of the build template. */ - build: Schema$Build; + build?: Schema$Build; /** * Time when the trigger was created. @OutputOnly */ - createTime: string; + createTime?: string; /** * Human-readable description of this trigger. */ - description: string; + description?: string; /** * If true, the trigger will never result in a build. */ - disabled: boolean; + disabled?: boolean; /** * Path, from the source root, to a file whose contents is used for the * template. */ - filename: string; + filename?: string; /** * Unique identifier of the trigger. @OutputOnly */ - id: string; + id?: string; /** * Substitutions data for Build resource. */ - substitutions: any; + substitutions?: any; /** * Template describing the types of source changes to trigger a build. * Branch and tag names in trigger templates are interpreted as regular * expressions. Any branch or tag change that matches that regular * expression will trigger a build. */ - triggerTemplate: Schema$RepoSource; + triggerTemplate?: Schema$RepoSource; } /** * An image built by the pipeline. @@ -438,16 +441,16 @@ export namespace cloudbuild_v1 { /** * Docker Registry 2.0 digest. */ - digest: string; + digest?: string; /** * Name used to push the container image to Google Container Registry, as * presented to `docker push`. */ - name: string; + name?: string; /** * Stores timing information for pushing the specified image. @OutputOnly */ - pushTiming: Schema$TimeSpan; + pushTiming?: Schema$TimeSpan; } /** * Request to cancel an ongoing build. @@ -473,7 +476,7 @@ export namespace cloudbuild_v1 { /** * Collection of file hashes. */ - fileHash: Schema$Hash[]; + fileHash?: Schema$Hash[]; } /** * Container message for hash values. @@ -482,11 +485,11 @@ export namespace cloudbuild_v1 { /** * The type of hash that was performed. */ - type: string; + type?: string; /** * The hash value. */ - value: string; + value?: string; } /** * Response including listed builds. @@ -495,11 +498,11 @@ export namespace cloudbuild_v1 { /** * Builds will be sorted by `create_time`, descending. */ - builds: Schema$Build[]; + builds?: Schema$Build[]; /** * Token to receive the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response containing existing `BuildTriggers`. @@ -508,7 +511,7 @@ export namespace cloudbuild_v1 { /** * `BuildTriggers` for the project, sorted by `create_time` descending. */ - triggers: Schema$BuildTrigger[]; + triggers?: Schema$BuildTrigger[]; } /** * The response message for Operations.ListOperations. @@ -517,11 +520,11 @@ export namespace cloudbuild_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * This resource represents a long-running operation that is the result of a @@ -533,24 +536,24 @@ export namespace cloudbuild_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -560,7 +563,7 @@ export namespace cloudbuild_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Location of the source in a Google Cloud Source Repository. @@ -569,31 +572,31 @@ export namespace cloudbuild_v1 { /** * Name of the branch to build. */ - branchName: string; + branchName?: string; /** * Explicit commit SHA to build. */ - commitSha: string; + commitSha?: string; /** * Directory, relative to the source root, in which to run the build. This * must be a relative path. If a step's `dir` is specified and is an * absolute path, this value is ignored for that step's execution. */ - dir: string; + dir?: string; /** * ID of the project that owns the Cloud Source Repository. If omitted, the * project ID requesting the build is assumed. */ - projectId: string; + projectId?: string; /** * Name of the Cloud Source Repository. If omitted, the name * "default" is assumed. */ - repoName: string; + repoName?: string; /** * Name of the tag to build. */ - tagName: string; + tagName?: string; } /** * Artifacts created by the build pipeline. @@ -603,20 +606,20 @@ export namespace cloudbuild_v1 { * Path to the artifact manifest. Only populated when artifacts are * uploaded. */ - artifactManifest: string; + artifactManifest?: string; /** * List of build step digests, in the order corresponding to build step * indices. */ - buildStepImages: string[]; + buildStepImages?: string[]; /** * Container images that were built as a part of the build. */ - images: Schema$BuiltImage[]; + images?: Schema$BuiltImage[]; /** * Number of artifacts uploaded. Only populated when artifacts are uploaded. */ - numArtifacts: string; + numArtifacts?: string; } /** * Specifies a build to retry. @@ -630,7 +633,7 @@ export namespace cloudbuild_v1 { /** * Cloud KMS key name to use to decrypt these envs. */ - kmsKeyName: string; + kmsKeyName?: string; /** * Map of environment variable name to its encrypted value. Secret * environment variables must be unique across all of a build's secrets, @@ -638,7 +641,7 @@ export namespace cloudbuild_v1 { * in size. There can be at most ten secret values across all of a * build's secrets. */ - secretEnv: any; + secretEnv?: any; } /** * Location of the source in a supported storage service. @@ -648,11 +651,11 @@ export namespace cloudbuild_v1 { * If provided, get the source from this location in a Cloud Source * Repository. */ - repoSource: Schema$RepoSource; + repoSource?: Schema$RepoSource; /** * If provided, get the source from this location in Google Cloud Storage. */ - storageSource: Schema$StorageSource; + storageSource?: Schema$StorageSource; } /** * Provenance of the source. Ways to find the original source, or verify that @@ -669,17 +672,17 @@ export namespace cloudbuild_v1 { * (`.tar.gz`), the `FileHash` will be for the single path to that file. * @OutputOnly */ - fileHashes: any; + fileHashes?: any; /** * A copy of the build's `source.repo_source`, if exists, with any * revisions resolved. */ - resolvedRepoSource: Schema$RepoSource; + resolvedRepoSource?: Schema$RepoSource; /** * A copy of the build's `source.storage_source`, if exists, with any * generations resolved. */ - resolvedStorageSource: Schema$StorageSource; + resolvedStorageSource?: Schema$StorageSource; } /** * The `Status` type defines a logical error model that is suitable for @@ -721,18 +724,18 @@ export namespace cloudbuild_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Location of the source in an archive file in Google Cloud Storage. @@ -742,17 +745,17 @@ export namespace cloudbuild_v1 { * Google Cloud Storage bucket containing the source (see [Bucket Name * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). */ - bucket: string; + bucket?: string; /** * Google Cloud Storage generation for the object. If the generation is * omitted, the latest generation will be used. */ - generation: string; + generation?: string; /** * Google Cloud Storage object containing the source. This object must be a * gzipped archive file (`.tar.gz`) containing source to build. */ - object: string; + object?: string; } /** * Start and end times for a build execution phase. @@ -761,11 +764,11 @@ export namespace cloudbuild_v1 { /** * End of time span. */ - endTime: string; + endTime?: string; /** * Start of time span. */ - startTime: string; + startTime?: string; } /** * Volume describes a Docker container volume which is mounted into build @@ -777,15 +780,16 @@ export namespace cloudbuild_v1 { * and must be valid names for Docker volumes. Each named volume must be * used by at least two build steps. */ - name: string; + name?: string; /** * Path at which to mount the volume. Paths must be absolute and cannot * conflict with other volume paths on the same build step or with certain * reserved volume paths. */ - path: string; + path?: string; } + export class Resource$Operations { root: Cloudbuild; constructor(root: Cloudbuild) { @@ -819,25 +823,37 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -874,23 +890,34 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -935,28 +962,38 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -978,6 +1015,57 @@ export namespace cloudbuild_v1 { } } + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects { root: Cloudbuild; builds: Resource$Projects$Builds; @@ -993,6 +1081,8 @@ export namespace cloudbuild_v1 { return this.root; } } + + export class Resource$Projects$Builds { root: Cloudbuild; constructor(root: Cloudbuild) { @@ -1019,25 +1109,38 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Builds$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Builds$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Builds$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Builds$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Builds$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Builds$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1076,26 +1179,39 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Builds$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Builds$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Builds$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Builds$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Builds$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Builds$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1133,23 +1249,34 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Builds$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Builds$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Builds$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Builds$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Builds$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Builds$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1189,26 +1316,39 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Builds$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Builds$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Builds$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Builds$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Builds$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Builds$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1261,26 +1401,39 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - retry(params?: any, options?: MethodOptions): - AxiosPromise; retry( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Builds$Retry, + options?: MethodOptions): AxiosPromise; + retry( + params: Params$Resource$Projects$Builds$Retry, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + retry( + params: Params$Resource$Projects$Builds$Retry, + callback: BodyResponseCallback): void; + retry(callback: BodyResponseCallback): void; retry( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Builds$Retry| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Builds$Retry; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Builds$Retry; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1303,6 +1456,99 @@ export namespace cloudbuild_v1 { } } + export interface Params$Resource$Projects$Builds$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the build. + */ + id?: string; + /** + * ID of the project. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelBuildRequest; + } + export interface Params$Resource$Projects$Builds$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Build; + } + export interface Params$Resource$Projects$Builds$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the build. + */ + id?: string; + /** + * ID of the project. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Builds$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The raw filter text to constrain the results. + */ + filter?: string; + /** + * Number of results to return in the list. + */ + pageSize?: number; + /** + * Token to provide to skip to a particular spot in the list. + */ + pageToken?: string; + /** + * ID of the project. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Builds$Retry { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Build ID of the original build. + */ + id?: string; + /** + * ID of the project. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$RetryBuildRequest; + } + + export class Resource$Projects$Triggers { root: Cloudbuild; constructor(root: Cloudbuild) { @@ -1328,26 +1574,39 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Triggers$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Triggers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Triggers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Triggers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Triggers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Triggers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1384,25 +1643,38 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Triggers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Triggers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Triggers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Triggers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Triggers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Triggers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1439,24 +1711,35 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Triggers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Triggers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Triggers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Triggers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Triggers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Triggers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1491,29 +1774,42 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Triggers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Triggers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Triggers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Triggers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Triggers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Triggers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1552,26 +1848,39 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Triggers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Triggers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Triggers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Triggers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Triggers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Triggers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1608,23 +1917,35 @@ export namespace cloudbuild_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Projects$Triggers$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Projects$Triggers$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Projects$Triggers$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Projects$Triggers$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Triggers$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Triggers$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; const parameters = { options: Object.assign( @@ -1647,4 +1968,99 @@ export namespace cloudbuild_v1 { } } } + + export interface Params$Resource$Projects$Triggers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project for which to configure automatic builds. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$BuildTrigger; + } + export interface Params$Resource$Projects$Triggers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project that owns the trigger. + */ + projectId?: string; + /** + * ID of the `BuildTrigger` to delete. + */ + triggerId?: string; + } + export interface Params$Resource$Projects$Triggers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project that owns the trigger. + */ + projectId?: string; + /** + * ID of the `BuildTrigger` to get. + */ + triggerId?: string; + } + export interface Params$Resource$Projects$Triggers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project for which to list BuildTriggers. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Triggers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project that owns the trigger. + */ + projectId?: string; + /** + * ID of the `BuildTrigger` to update. + */ + triggerId?: string; + /** + * Request body metadata + */ + resource?: Schema$BuildTrigger; + } + export interface Params$Resource$Projects$Triggers$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the project. + */ + projectId?: string; + /** + * ID of the trigger. + */ + triggerId?: string; + /** + * Request body metadata + */ + resource?: Schema$RepoSource; + } } diff --git a/src/apis/clouddebugger/v2.ts b/src/apis/clouddebugger/v2.ts index b5a8da0e9b9..9b0ce954782 100644 --- a/src/apis/clouddebugger/v2.ts +++ b/src/apis/clouddebugger/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace clouddebugger_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Stackdriver Debugger API * @@ -75,11 +78,11 @@ export namespace clouddebugger_v2 { /** * The alias kind. */ - kind: string; + kind?: string; /** * The alias name. */ - name: string; + name?: string; } /** * Represents the breakpoint specification, status and results. @@ -89,17 +92,17 @@ export namespace clouddebugger_v2 { * Action that the agent should perform when the code at the breakpoint * location is hit. */ - action: string; + action?: string; /** * Condition that triggers the breakpoint. The condition is a compound * boolean expression composed using expressions in a programming language * at the source location. */ - condition: string; + condition?: string; /** * Time this breakpoint was created by the server in seconds resolution. */ - createTime: string; + createTime?: string; /** * Values of evaluated expressions at breakpoint time. The evaluated * expressions appear in exactly the same order they are listed in the @@ -108,41 +111,41 @@ export namespace clouddebugger_v2 { * expression. If the expression cannot be evaluated, the `status` inside * the `Variable` will indicate an error and contain the error text. */ - evaluatedExpressions: Schema$Variable[]; + evaluatedExpressions?: Schema$Variable[]; /** * List of read-only expressions to evaluate at the breakpoint location. The * expressions are composed using expressions in the programming language at * the source location. If the breakpoint action is `LOG`, the evaluated * expressions are included in log statements. */ - expressions: string[]; + expressions?: string[]; /** * Time this breakpoint was finalized as seen by the server in seconds * resolution. */ - finalTime: string; + finalTime?: string; /** * Breakpoint identifier, unique in the scope of the debuggee. */ - id: string; + id?: string; /** * When true, indicates that this is a final result and the breakpoint state * will not change from here on. */ - isFinalState: boolean; + isFinalState?: boolean; /** * A set of custom breakpoint properties, populated by the agent, to be * displayed to the user. */ - labels: any; + labels?: any; /** * Breakpoint source location. */ - location: Schema$SourceLocation; + location?: Schema$SourceLocation; /** * Indicates the severity of the log. Only relevant when action is `LOG`. */ - logLevel: string; + logLevel?: string; /** * Only relevant when action is `LOG`. Defines the message to log when the * breakpoint hits. The message may include parameter placeholders `$0`, @@ -151,11 +154,11 @@ export namespace clouddebugger_v2 { * `log_message_format` are not logged. Example: `Message received, id = * $0, count = $1` with `expressions` = `[ message.id, message.count ]`. */ - logMessageFormat: string; + logMessageFormat?: string; /** * The stack at breakpoint time. */ - stackFrames: Schema$StackFrame[]; + stackFrames?: Schema$StackFrame[]; /** * Breakpoint status. The status includes an error flag and a human * readable message. This field is usually unset. The message can be either @@ -166,11 +169,11 @@ export namespace clouddebugger_v2 { * referring to location * `Field f not found in class C` referring to * condition */ - status: Schema$StatusMessage; + status?: Schema$StatusMessage; /** * E-mail address of the user that created this breakpoint */ - userEmail: string; + userEmail?: string; /** * The `variable_table` exists to aid with computation, memory and network * traffic optimization. It enables storing a variable once and reference @@ -183,7 +186,7 @@ export namespace clouddebugger_v2 { * from the referencing variable. The effective variable is a merge of the * referencing variable and the referenced variable. */ - variableTable: Schema$Variable[]; + variableTable?: Schema$Variable[]; } /** * A CloudRepoSourceContext denotes a particular revision in a cloud repo (a @@ -193,19 +196,19 @@ export namespace clouddebugger_v2 { /** * An alias, which may be a branch or tag. */ - aliasContext: Schema$AliasContext; + aliasContext?: Schema$AliasContext; /** * The name of an alias (branch, tag, etc.). */ - aliasName: string; + aliasName?: string; /** * The ID of the repo. */ - repoId: Schema$RepoId; + repoId?: Schema$RepoId; /** * A revision ID. */ - revisionId: string; + revisionId?: string; } /** * A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud @@ -217,11 +220,11 @@ export namespace clouddebugger_v2 { * The unique name of the workspace within the repo. This is the name * chosen by the client in the Source API's CreateWorkspace method. */ - name: string; + name?: string; /** * The ID of the repo containing the workspace. */ - repoId: Schema$RepoId; + repoId?: Schema$RepoId; } /** * A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. @@ -231,11 +234,11 @@ export namespace clouddebugger_v2 { * The ID of the snapshot. An empty snapshot_id refers to the most recent * snapshot. */ - snapshotId: string; + snapshotId?: string; /** * The ID of the workspace. */ - workspaceId: Schema$CloudWorkspaceId; + workspaceId?: Schema$CloudWorkspaceId; } /** * Represents the debugged application. The application may include one or @@ -249,53 +252,53 @@ export namespace clouddebugger_v2 { * Version ID of the agent. Schema: `domain/language-platform/vmajor.minor` * (for example `google.com/java-gcp/v1.1`). */ - agentVersion: string; + agentVersion?: string; /** * Human readable description of the debuggee. Including a human-readable * project name, environment name and version information is recommended. */ - description: string; + description?: string; /** * References to the locations and revisions of the source code used in the * deployed application. */ - extSourceContexts: Schema$ExtendedSourceContext[]; + extSourceContexts?: Schema$ExtendedSourceContext[]; /** * Unique identifier for the debuggee generated by the controller service. */ - id: string; + id?: string; /** * If set to `true`, indicates that the agent should disable itself and * detach from the debuggee. */ - isDisabled: boolean; + isDisabled?: boolean; /** * If set to `true`, indicates that Controller service does not detect any * activity from the debuggee agents and the application is possibly * stopped. */ - isInactive: boolean; + isInactive?: boolean; /** * A set of custom debuggee properties, populated by the agent, to be * displayed to the user. */ - labels: any; + labels?: any; /** * Project the debuggee is associated with. Use project number or id when * registering a Google Cloud Platform project. */ - project: string; + project?: string; /** * References to the locations and revisions of the source code used in the * deployed application. */ - sourceContexts: Schema$SourceContext[]; + sourceContexts?: Schema$SourceContext[]; /** * Human readable message to be displayed to the user about this debuggee. * Absence of this field indicates no status. The message can be either * informational or an error status. */ - status: Schema$StatusMessage; + status?: Schema$StatusMessage; /** * Uniquifier to further distiguish the application. It is possible that * different applications might have identical values in the debuggee @@ -304,7 +307,7 @@ export namespace clouddebugger_v2 { * application. Agents should consider seeding this field with value that * identifies the code, binary, configuration and environment. */ - uniquifier: string; + uniquifier?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -322,11 +325,11 @@ export namespace clouddebugger_v2 { /** * Any source context. */ - context: Schema$SourceContext; + context?: Schema$SourceContext; /** * Labels with user defined metadata. */ - labels: any; + labels?: any; } /** * Represents a message with parameters. @@ -339,11 +342,11 @@ export namespace clouddebugger_v2 { * $1 the first time it is loaded. Again, $0 is very important.` * * `Please pay $$10 to use $0 instead of $1.` */ - format: string; + format?: string; /** * Optional parameters to be embedded into the message. */ - parameters: string[]; + parameters?: string[]; } /** * A SourceContext referring to a Gerrit project. @@ -352,25 +355,25 @@ export namespace clouddebugger_v2 { /** * An alias, which may be a branch or tag. */ - aliasContext: Schema$AliasContext; + aliasContext?: Schema$AliasContext; /** * The name of an alias (branch, tag, etc.). */ - aliasName: string; + aliasName?: string; /** * The full project name within the host. Projects may be nested, so * "project/subproject" is a valid project name. The "repo * name" is hostURI/project. */ - gerritProject: string; + gerritProject?: string; /** * The URI of a running Gerrit instance. */ - hostUri: string; + hostUri?: string; /** * A revision (commit) ID. */ - revisionId: string; + revisionId?: string; } /** * Response for getting breakpoint information. @@ -380,7 +383,7 @@ export namespace clouddebugger_v2 { * Complete breakpoint state. The fields `id` and `location` are guaranteed * to be set. */ - breakpoint: Schema$Breakpoint; + breakpoint?: Schema$Breakpoint; } /** * A GitSourceContext denotes a particular revision in a third party Git @@ -390,11 +393,11 @@ export namespace clouddebugger_v2 { /** * Git commit hash. required. */ - revisionId: string; + revisionId?: string; /** * Git repository URL. */ - url: string; + url?: string; } /** * Response for listing active breakpoints. @@ -404,18 +407,18 @@ export namespace clouddebugger_v2 { * List of all active breakpoints. The fields `id` and `location` are * guaranteed to be set on each breakpoint. */ - breakpoints: Schema$Breakpoint[]; + breakpoints?: Schema$Breakpoint[]; /** * A token that can be used in the next method call to block until the list * of breakpoints changes. */ - nextWaitToken: string; + nextWaitToken?: string; /** * If set to `true`, indicates that there is no change to the list of active * breakpoints and the server-selected timeout has expired. The * `breakpoints` field would be empty and should be ignored. */ - waitExpired: boolean; + waitExpired?: boolean; } /** * Response for listing breakpoints. @@ -427,13 +430,13 @@ export namespace clouddebugger_v2 { * `evaluated_expressions` and `variable_table` are cleared on each * breakpoint regardless of its status. */ - breakpoints: Schema$Breakpoint[]; + breakpoints?: Schema$Breakpoint[]; /** * A wait token that can be used in the next call to `list` (REST) or * `ListBreakpoints` (RPC) to block until the list of breakpoints has * changes. */ - nextWaitToken: string; + nextWaitToken?: string; } /** * Response for listing debuggees. @@ -445,7 +448,7 @@ export namespace clouddebugger_v2 { * `description` field is a human readable field provided by agents and can * be displayed to users. */ - debuggees: Schema$Debuggee[]; + debuggees?: Schema$Debuggee[]; } /** * Selects a repo using a Google Cloud Platform project ID (e.g. @@ -455,11 +458,11 @@ export namespace clouddebugger_v2 { /** * The ID of the project. */ - projectId: string; + projectId?: string; /** * The name of the repo. Leave empty for the default repo. */ - repoName: string; + repoName?: string; } /** * Request to register a debuggee. @@ -469,7 +472,7 @@ export namespace clouddebugger_v2 { * Debuggee information to register. The fields `project`, `uniquifier`, * `description` and `agent_version` of the debuggee must be set. */ - debuggee: Schema$Debuggee; + debuggee?: Schema$Debuggee; } /** * Response for registering a debuggee. @@ -482,7 +485,7 @@ export namespace clouddebugger_v2 { * from the application. It should however continue to poll * `RegisterDebuggee` until reenabled. */ - debuggee: Schema$Debuggee; + debuggee?: Schema$Debuggee; } /** * A unique identifier for a cloud repo. @@ -491,11 +494,11 @@ export namespace clouddebugger_v2 { /** * A combination of a project ID and a repo name. */ - projectRepoId: Schema$ProjectRepoId; + projectRepoId?: Schema$ProjectRepoId; /** * A server-assigned, globally unique identifier. */ - uid: string; + uid?: string; } /** * Response for setting a breakpoint. @@ -505,7 +508,7 @@ export namespace clouddebugger_v2 { * Breakpoint resource. The field `id` is guaranteed to be set (in addition * to the echoed fileds). */ - breakpoint: Schema$Breakpoint; + breakpoint?: Schema$Breakpoint; } /** * A SourceContext is a reference to a tree of files. A SourceContext together @@ -515,19 +518,19 @@ export namespace clouddebugger_v2 { /** * A SourceContext referring to a revision in a cloud repo. */ - cloudRepo: Schema$CloudRepoSourceContext; + cloudRepo?: Schema$CloudRepoSourceContext; /** * A SourceContext referring to a snapshot in a cloud workspace. */ - cloudWorkspace: Schema$CloudWorkspaceSourceContext; + cloudWorkspace?: Schema$CloudWorkspaceSourceContext; /** * A SourceContext referring to a Gerrit project. */ - gerrit: Schema$GerritSourceContext; + gerrit?: Schema$GerritSourceContext; /** * A SourceContext referring to any third party Git repo (e.g. GitHub). */ - git: Schema$GitSourceContext; + git?: Schema$GitSourceContext; } /** * Represents a location in the source code. @@ -536,11 +539,11 @@ export namespace clouddebugger_v2 { /** * Line inside the file. The first line in the file has the value `1`. */ - line: number; + line?: number; /** * Path to the source file within the source context of the target binary. */ - path: string; + path?: string; } /** * Represents a stack frame context. @@ -550,20 +553,20 @@ export namespace clouddebugger_v2 { * Set of arguments passed to this function. Note that this might not be * populated for all stack frames. */ - arguments: Schema$Variable[]; + arguments?: Schema$Variable[]; /** * Demangled function name at the call site. */ - function: string; + function?: string; /** * Set of local variables at the stack frame location. Note that this might * not be populated for all stack frames. */ - locals: Schema$Variable[]; + locals?: Schema$Variable[]; /** * Source location of the call site. */ - location: Schema$SourceLocation; + location?: Schema$SourceLocation; } /** * Represents a contextual status message. The message can indicate an error @@ -576,15 +579,15 @@ export namespace clouddebugger_v2 { /** * Status message text. */ - description: Schema$FormatMessage; + description?: Schema$FormatMessage; /** * Distinguishes errors from informational messages. */ - isError: boolean; + isError?: boolean; /** * Reference to which the message applies. */ - refersTo: string; + refersTo?: string; } /** * Request to update an active breakpoint. @@ -594,7 +597,7 @@ export namespace clouddebugger_v2 { * Updated breakpoint information. The field `id` must be set. The agent * must echo all Breakpoint specification fields in the update. */ - breakpoint: Schema$Breakpoint; + breakpoint?: Schema$Breakpoint; } /** * Response for updating an active breakpoint. The message is defined to allow @@ -656,11 +659,11 @@ export namespace clouddebugger_v2 { /** * Members contained or pointed to by the variable. */ - members: Schema$Variable[]; + members?: Schema$Variable[]; /** * Name of the variable, if any. */ - name: string; + name?: string; /** * Status associated with the variable. This field will usually stay unset. * A status of a single variable only applies to that variable or @@ -675,26 +678,27 @@ export namespace clouddebugger_v2 { * string`, * `Field f not found in class C` * `Null pointer * dereference` */ - status: Schema$StatusMessage; + status?: Schema$StatusMessage; /** * Variable type (e.g. `MyClass`). If the variable is split with * `var_table_index`, `type` goes next to `value`. The interpretation of a * type is agent specific. It is recommended to include the dynamic type * rather than a static type of an object. */ - type: string; + type?: string; /** * Simple value of the variable. */ - value: string; + value?: string; /** * Reference to a variable in the shared variable table. More than one * variable can reference the same variable in the table. The * `var_table_index` field is an index into `variable_table` in Breakpoint. */ - varTableIndex: number; + varTableIndex?: number; } + export class Resource$Controller { root: Clouddebugger; debuggees: Resource$Controller$Debuggees; @@ -708,6 +712,8 @@ export namespace clouddebugger_v2 { return this.root; } } + + export class Resource$Controller$Debuggees { root: Clouddebugger; breakpoints: Resource$Controller$Debuggees$Breakpoints; @@ -793,28 +799,41 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - register(params?: any, options?: MethodOptions): - AxiosPromise; register( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Controller$Debuggees$Register, + options?: MethodOptions): AxiosPromise; + register( + params: Params$Resource$Controller$Debuggees$Register, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; register( - params?: any, - options?: MethodOptions| + params: Params$Resource$Controller$Debuggees$Register, + callback: BodyResponseCallback): void; + register(callback: BodyResponseCallback): + void; + register( + paramsOrCallback?: Params$Resource$Controller$Debuggees$Register| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Controller$Debuggees$Register; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Controller$Debuggees$Register; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -837,6 +856,19 @@ export namespace clouddebugger_v2 { } } } + + export interface Params$Resource$Controller$Debuggees$Register { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$RegisterDebuggeeRequest; + } + export class Resource$Controller$Debuggees$Breakpoints { root: Clouddebugger; constructor(root: Clouddebugger) { @@ -923,29 +955,45 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Controller$Debuggees$Breakpoints$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Controller$Debuggees$Breakpoints$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Controller$Debuggees$Breakpoints$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Controller$Debuggees$Breakpoints$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Controller$Debuggees$Breakpoints$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Controller$Debuggees$Breakpoints$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1052,29 +1100,46 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update( + params?: Params$Resource$Controller$Debuggees$Breakpoints$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Controller$Debuggees$Breakpoints$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + update( + params: Params$Resource$Controller$Debuggees$Breakpoints$Update, + callback: BodyResponseCallback): + void; + update(callback: + BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Controller$Debuggees$Breakpoints$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Controller$Debuggees$Breakpoints$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Controller$Debuggees$Breakpoints$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1101,6 +1166,52 @@ export namespace clouddebugger_v2 { } } + export interface Params$Resource$Controller$Debuggees$Breakpoints$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the debuggee. + */ + debuggeeId?: string; + /** + * If set to `true` (recommended), returns `google.rpc.Code.OK` status and + * sets the `wait_expired` response field to `true` when the server-selected + * timeout has expired. If set to `false` (deprecated), returns + * `google.rpc.Code.ABORTED` status when the server-selected timeout has + * expired. + */ + successOnTimeout?: boolean; + /** + * A token that, if specified, blocks the method call until the list of + * active breakpoints has changed, or a server-selected timeout has expired. + * The value should be set from the `next_wait_token` field in the last + * response. The initial value should be set to `"init"`. + */ + waitToken?: string; + } + export interface Params$Resource$Controller$Debuggees$Breakpoints$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the debuggee being debugged. + */ + debuggeeId?: string; + /** + * Breakpoint identifier, unique in the scope of the debuggee. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateActiveBreakpointRequest; + } + export class Resource$Debugger { @@ -1116,6 +1227,8 @@ export namespace clouddebugger_v2 { return this.root; } } + + export class Resource$Debugger$Debuggees { root: Clouddebugger; breakpoints: Resource$Debugger$Debuggees$Breakpoints; @@ -1192,28 +1305,40 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Debugger$Debuggees$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Debugger$Debuggees$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Debugger$Debuggees$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Debugger$Debuggees$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Debugger$Debuggees$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Debugger$Debuggees$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1236,6 +1361,29 @@ export namespace clouddebugger_v2 { } } } + + export interface Params$Resource$Debugger$Debuggees$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The client version making the call. Schema: `domain/type/version` (e.g., + * `google.com/intellij/v1`). + */ + clientVersion?: string; + /** + * When set to `true`, the result includes all debuggees. Otherwise, the + * result includes only debuggees that are active. + */ + includeInactive?: boolean; + /** + * Project number of a Google Cloud project whose debuggees to list. + */ + project?: string; + } + export class Resource$Debugger$Debuggees$Breakpoints { root: Clouddebugger; constructor(root: Clouddebugger) { @@ -1313,25 +1461,39 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Debugger$Debuggees$Breakpoints$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Debugger$Debuggees$Breakpoints$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Debugger$Debuggees$Breakpoints$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Debugger$Debuggees$Breakpoints$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Debugger$Debuggees$Breakpoints$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Debugger$Debuggees$Breakpoints$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1425,26 +1587,36 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Debugger$Debuggees$Breakpoints$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Debugger$Debuggees$Breakpoints$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Debugger$Debuggees$Breakpoints$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Debugger$Debuggees$Breakpoints$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Debugger$Debuggees$Breakpoints$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Debugger$Debuggees$Breakpoints$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1539,28 +1711,40 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Debugger$Debuggees$Breakpoints$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Debugger$Debuggees$Breakpoints$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Debugger$Debuggees$Breakpoints$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Debugger$Debuggees$Breakpoints$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Debugger$Debuggees$Breakpoints$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Debugger$Debuggees$Breakpoints$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1653,26 +1837,36 @@ export namespace clouddebugger_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - set(params?: any, + set(params?: Params$Resource$Debugger$Debuggees$Breakpoints$Set, options?: MethodOptions): AxiosPromise; - set(params?: any, - options?: MethodOptions| + set(params: Params$Resource$Debugger$Debuggees$Breakpoints$Set, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - set(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + set(params: Params$Resource$Debugger$Debuggees$Breakpoints$Set, + callback: BodyResponseCallback): void; + set(callback: BodyResponseCallback): void; + set(paramsOrCallback?: Params$Resource$Debugger$Debuggees$Breakpoints$Set| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Debugger$Debuggees$Breakpoints$Set; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Debugger$Debuggees$Breakpoints$Set; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; const parameters = { @@ -1696,4 +1890,108 @@ export namespace clouddebugger_v2 { } } } + + export interface Params$Resource$Debugger$Debuggees$Breakpoints$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the breakpoint to delete. + */ + breakpointId?: string; + /** + * The client version making the call. Schema: `domain/type/version` (e.g., + * `google.com/intellij/v1`). + */ + clientVersion?: string; + /** + * ID of the debuggee whose breakpoint to delete. + */ + debuggeeId?: string; + } + export interface Params$Resource$Debugger$Debuggees$Breakpoints$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the breakpoint to get. + */ + breakpointId?: string; + /** + * The client version making the call. Schema: `domain/type/version` (e.g., + * `google.com/intellij/v1`). + */ + clientVersion?: string; + /** + * ID of the debuggee whose breakpoint to get. + */ + debuggeeId?: string; + } + export interface Params$Resource$Debugger$Debuggees$Breakpoints$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Only breakpoints with the specified action will pass the filter. + */ + 'action.value'?: string; + /** + * The client version making the call. Schema: `domain/type/version` (e.g., + * `google.com/intellij/v1`). + */ + clientVersion?: string; + /** + * ID of the debuggee whose breakpoints to list. + */ + debuggeeId?: string; + /** + * When set to `true`, the response includes the list of breakpoints set by + * any user. Otherwise, it includes only breakpoints set by the caller. + */ + includeAllUsers?: boolean; + /** + * When set to `true`, the response includes active and inactive + * breakpoints. Otherwise, it includes only active breakpoints. + */ + includeInactive?: boolean; + /** + * This field is deprecated. The following fields are always stripped out of + * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. + */ + stripResults?: boolean; + /** + * A wait token that, if specified, blocks the call until the breakpoints + * list has changed, or a server selected timeout has expired. The value + * should be set from the last response. The error code + * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which should + * be called again with the same `wait_token`. + */ + waitToken?: string; + } + export interface Params$Resource$Debugger$Debuggees$Breakpoints$Set { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The client version making the call. Schema: `domain/type/version` (e.g., + * `google.com/intellij/v1`). + */ + clientVersion?: string; + /** + * ID of the debuggee where the breakpoint is to be set. + */ + debuggeeId?: string; + /** + * Request body metadata + */ + resource?: Schema$Breakpoint; + } } diff --git a/src/apis/clouderrorreporting/v1beta1.ts b/src/apis/clouderrorreporting/v1beta1.ts index 3b91020c3b4..3892b4c0b76 100644 --- a/src/apis/clouderrorreporting/v1beta1.ts +++ b/src/apis/clouderrorreporting/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace clouderrorreporting_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Stackdriver Error Reporting API * @@ -80,19 +83,19 @@ export namespace clouderrorreporting_v1beta1 { /** * The HTTP request which was processed when the error was triggered. */ - httpRequest: Schema$HttpRequestContext; + httpRequest?: Schema$HttpRequestContext; /** * The location in the source code where the decision was made to report the * error, usually the place where it was logged. For a logged exception this * would be the source line where the exception is logged, usually close to * the place where it was caught. */ - reportLocation: Schema$SourceLocation; + reportLocation?: Schema$SourceLocation; /** * Source code that was used to build the executable which has caused the * given error message. */ - sourceReferences: Schema$SourceReference[]; + sourceReferences?: Schema$SourceReference[]; /** * The user who caused or was affected by the crash. This can be a user ID, * an email address, or an arbitrary token that uniquely identifies the @@ -101,7 +104,7 @@ export namespace clouderrorreporting_v1beta1 { * data, such as remote IP address, to distinguish affected users. See * `affected_users_count` in `ErrorGroupStats`. */ - user: string; + user?: string; } /** * An error event which is returned by the Error Reporting system. @@ -110,21 +113,21 @@ export namespace clouderrorreporting_v1beta1 { /** * Data about the context in which the error occurred. */ - context: Schema$ErrorContext; + context?: Schema$ErrorContext; /** * Time when the event occurred as provided in the error report. If the * report did not contain a timestamp, the time the error was received by * the Error Reporting system is used. */ - eventTime: string; + eventTime?: string; /** * The stack trace that was reported or logged by the service. */ - message: string; + message?: string; /** * The `ServiceContext` for which this error was reported. */ - serviceContext: Schema$ServiceContext; + serviceContext?: Schema$ServiceContext; } /** * Description of a group of similar error events. @@ -134,16 +137,16 @@ export namespace clouderrorreporting_v1beta1 { * Group IDs are unique for a given project. If the same kind of error * occurs in different service contexts, it will receive the same group ID. */ - groupId: string; + groupId?: string; /** * The group resource name. Example: * <code>projects/my-project-123/groups/my-groupid</code> */ - name: string; + name?: string; /** * Associated tracking issues. */ - trackingIssues: Schema$TrackingIssue[]; + trackingIssues?: Schema$TrackingIssue[]; } /** * Data extracted for a specific group based on certain filter criteria, such @@ -155,7 +158,7 @@ export namespace clouderrorreporting_v1beta1 { * criteria. This list can be truncated if multiple services are affected. * Refer to `num_affected_services` for the total count. */ - affectedServices: Schema$ServiceContext[]; + affectedServices?: Schema$ServiceContext[]; /** * Approximate number of affected users in the given group that match the * filter criteria. Users are distinguished by data in the `ErrorContext` of @@ -167,33 +170,33 @@ export namespace clouderrorreporting_v1beta1 { * more users are implicitly affected, such as due to a crash of the whole * service, this is not reflected here. */ - affectedUsersCount: string; + affectedUsersCount?: string; /** * Approximate total number of events in the given group that match the * filter criteria. */ - count: string; + count?: string; /** * Approximate first occurrence that was ever seen for this group and which * matches the given filter criteria, ignoring the time_range that was * specified in the request. */ - firstSeenTime: string; + firstSeenTime?: string; /** * Group data that is independent of the filter criteria. */ - group: Schema$ErrorGroup; + group?: Schema$ErrorGroup; /** * Approximate last occurrence that was ever seen for this group and which * matches the given filter criteria, ignoring the time_range that was * specified in the request. */ - lastSeenTime: string; + lastSeenTime?: string; /** * The total number of services with a non-zero error count for the given * filter criteria. */ - numAffectedServices: number; + numAffectedServices?: number; /** * An arbitrary event that is chosen as representative for the whole group. * The representative event is intended to be used as a quick preview for @@ -201,13 +204,13 @@ export namespace clouderrorreporting_v1beta1 { * each other such that showing an arbitrary representative provides insight * into the characteristics of the group as a whole. */ - representative: Schema$ErrorEvent; + representative?: Schema$ErrorEvent; /** * Approximate number of occurrences over time. Timed counts returned by * ListGroups are guaranteed to be: - Inside the requested time interval - * Non-overlapping, and - Ordered by ascending time. */ - timedCounts: Schema$TimedCount[]; + timedCounts?: Schema$TimedCount[]; } /** * HTTP request data that is related to a reported error. This data should be @@ -218,29 +221,29 @@ export namespace clouderrorreporting_v1beta1 { /** * The type of HTTP request, such as `GET`, `POST`, etc. */ - method: string; + method?: string; /** * The referrer information that is provided with the request. */ - referrer: string; + referrer?: string; /** * The IP address from which the request originated. This can be IPv4, IPv6, * or a token which is derived from the IP address, depending on the data * that has been provided in the error report. */ - remoteIp: string; + remoteIp?: string; /** * The HTTP response status code for the request. */ - responseStatusCode: number; + responseStatusCode?: number; /** * The URL of the request. */ - url: string; + url?: string; /** * The user agent information that is provided with the request. */ - userAgent: string; + userAgent?: string; } /** * Contains a set of requested error events. @@ -249,18 +252,18 @@ export namespace clouderrorreporting_v1beta1 { /** * The error events which match the given request. */ - errorEvents: Schema$ErrorEvent[]; + errorEvents?: Schema$ErrorEvent[]; /** * If non-empty, more results are available. Pass this token, along with the * same query parameters as the first request, to view the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The timestamp specifies the start time to which the request was * restricted. */ - timeRangeBegin: string; + timeRangeBegin?: string; } /** * Contains a set of requested error group stats. @@ -269,20 +272,20 @@ export namespace clouderrorreporting_v1beta1 { /** * The error group stats which match the given request. */ - errorGroupStats: Schema$ErrorGroupStats[]; + errorGroupStats?: Schema$ErrorGroupStats[]; /** * If non-empty, more results are available. Pass this token, along with the * same query parameters as the first request, to view the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The timestamp specifies the start time to which the request was * restricted. The start time is set based on the requested time range. It * may be adjusted to a later time if a project has exceeded the storage * quota and older data has been deleted. */ - timeRangeBegin: string; + timeRangeBegin?: string; } /** * An error event which is reported to the Error Reporting system. @@ -291,12 +294,12 @@ export namespace clouderrorreporting_v1beta1 { /** * [Optional] A description of the context in which the error occurred. */ - context: Schema$ErrorContext; + context?: Schema$ErrorContext; /** * [Optional] Time when the event occurred. If not provided, the time when * the event was received by the Error Reporting system will be used. */ - eventTime: string; + eventTime?: string; /** * [Required] The error message. If no `context.reportLocation` is provided, * the message must contain a header (typically consisting of the exception @@ -319,11 +322,11 @@ export namespace clouderrorreporting_v1beta1 { * * **Go**: Must be the return value of * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). */ - message: string; + message?: string; /** * [Required] The service context in which this error has occurred. */ - serviceContext: Schema$ServiceContext; + serviceContext?: Schema$ServiceContext; } /** * Response for reporting an individual error event. Data may be added to this @@ -341,7 +344,7 @@ export namespace clouderrorreporting_v1beta1 { * automatically for incoming errors and must not be set when reporting * errors. */ - resourceType: string; + resourceType?: string; /** * An identifier of the service, such as the name of the executable, job, or * Google App Engine service name. This field is expected to have a low @@ -350,14 +353,14 @@ export namespace clouderrorreporting_v1beta1 { * the service name for error reports extracted from Google App Engine logs * or `default` if the App Engine default service is used. */ - service: string; + service?: string; /** * Represents the source code version that the developer provided, which * could represent a version label or a Git SHA-1 hash, for example. For App * Engine standard environment, the version is set to the version of the * app. */ - version: string; + version?: string; } /** * Indicates a location in the source code of the service for which errors are @@ -370,17 +373,17 @@ export namespace clouderrorreporting_v1beta1 { * The source code filename, which can include a truncated relative path, or * a full path from a production machine. */ - filePath: string; + filePath?: string; /** * Human-readable name of a function or method. The value can include * optional context like the class or package name. For example, * `my.package.MyClass.method` in case of Java. */ - functionName: string; + functionName?: string; /** * 1-based. 0 indicates that the line number is unknown. */ - lineNumber: number; + lineNumber?: number; } /** * A reference to a particular snapshot of the source tree used to build and @@ -391,12 +394,12 @@ export namespace clouderrorreporting_v1beta1 { * Optional. A URI string identifying the repository. Example: * "https://github.com/GoogleCloudPlatform/kubernetes.git" */ - repository: string; + repository?: string; /** * The canonical and persistent identifier of the deployed revision. Example * (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" */ - revisionId: string; + revisionId?: string; } /** * The number of errors in a given time period. All numbers are approximate @@ -406,15 +409,15 @@ export namespace clouderrorreporting_v1beta1 { /** * Approximate number of occurrences in the given time period. */ - count: string; + count?: string; /** * End of the time period to which `count` refers (excluded). */ - endTime: string; + endTime?: string; /** * Start of the time period to which `count` refers (included). */ - startTime: string; + startTime?: string; } /** * Information related to tracking the progress on resolving the error. @@ -424,9 +427,10 @@ export namespace clouderrorreporting_v1beta1 { * A URL pointing to a related entry in an issue tracking system. Example: * https://github.com/user/project/issues/4 */ - url: string; + url?: string; } + export class Resource$Projects { root: Clouderrorreporting; events: Resource$Projects$Events; @@ -457,28 +461,41 @@ export namespace clouderrorreporting_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteEvents(params?: any, options?: MethodOptions): - AxiosPromise; deleteEvents( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Deleteevents, + options?: MethodOptions): AxiosPromise; + deleteEvents( + params: Params$Resource$Projects$Deleteevents, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + deleteEvents( + params: Params$Resource$Projects$Deleteevents, + callback: BodyResponseCallback): void; + deleteEvents(callback: BodyResponseCallback): + void; deleteEvents( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Deleteevents| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Deleteevents; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deleteevents; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { @@ -501,6 +518,22 @@ export namespace clouderrorreporting_v1beta1 { } } } + + export interface Params$Resource$Projects$Deleteevents { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] The resource name of the Google Cloud Platform project. + * Written as `projects/` plus the [Google Cloud Platform project + * ID](https://support.google.com/cloud/answer/6158840). Example: + * `projects/my-project-123`. + */ + projectName?: string; + } + export class Resource$Projects$Events { root: Clouderrorreporting; constructor(root: Clouderrorreporting) { @@ -532,26 +565,39 @@ export namespace clouderrorreporting_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Events$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Events$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Events$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Events$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Events$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Events$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { @@ -593,28 +639,41 @@ export namespace clouderrorreporting_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - report(params?: any, options?: MethodOptions): - AxiosPromise; report( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Events$Report, + options?: MethodOptions): AxiosPromise; + report( + params: Params$Resource$Projects$Events$Report, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; report( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Events$Report, + callback: BodyResponseCallback): void; + report(callback: BodyResponseCallback): + void; + report( + paramsOrCallback?: Params$Resource$Projects$Events$Report| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Events$Report; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Events$Report; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { @@ -638,6 +697,71 @@ export namespace clouderrorreporting_v1beta1 { } } + export interface Params$Resource$Projects$Events$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] The group for which events shall be returned. + */ + groupId?: string; + /** + * [Optional] The maximum number of results to return per response. + */ + pageSize?: number; + /** + * [Optional] A `next_page_token` provided by a previous response. + */ + pageToken?: string; + /** + * [Required] The resource name of the Google Cloud Platform project. + * Written as `projects/` plus the [Google Cloud Platform project + * ID](https://support.google.com/cloud/answer/6158840). Example: + * `projects/my-project-123`. + */ + projectName?: string; + /** + * [Optional] The exact value to match against + * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). + */ + 'serviceFilter.resourceType'?: string; + /** + * [Optional] The exact value to match against + * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). + */ + 'serviceFilter.service'?: string; + /** + * [Optional] The exact value to match against + * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). + */ + 'serviceFilter.version'?: string; + /** + * Restricts the query to the specified time range. + */ + 'timeRange.period'?: string; + } + export interface Params$Resource$Projects$Events$Report { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] The resource name of the Google Cloud Platform project. + * Written as `projects/` plus the [Google Cloud Platform project + * ID](https://support.google.com/cloud/answer/6158840). Example: + * `projects/my-project-123`. + */ + projectName?: string; + /** + * Request body metadata + */ + resource?: Schema$ReportedErrorEvent; + } + + export class Resource$Projects$Groups { root: Clouderrorreporting; constructor(root: Clouderrorreporting) { @@ -662,23 +786,35 @@ export namespace clouderrorreporting_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Groups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Groups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Groups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Groups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { @@ -716,26 +852,39 @@ export namespace clouderrorreporting_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Groups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { @@ -758,6 +907,41 @@ export namespace clouderrorreporting_v1beta1 { } } + export interface Params$Resource$Projects$Groups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Required] The group resource name. Written as + * projects/projectID/groups/group_name. + * Call + * groupStats.list to return a list of groups belonging to + * this project. Example: + * projects/my-project-123/groups/my-group + */ + groupName?: string; + } + export interface Params$Resource$Projects$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The group resource name. Example: + * projects/my-project-123/groups/my-groupid + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ErrorGroup; + } + + export class Resource$Projects$Groupstats { root: Clouderrorreporting; constructor(root: Clouderrorreporting) { @@ -793,28 +977,40 @@ export namespace clouderrorreporting_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Groupstats$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Groupstats$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Groupstats$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Groupstats$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groupstats$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groupstats$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; const parameters = { @@ -837,4 +1033,73 @@ export namespace clouderrorreporting_v1beta1 { } } } + + export interface Params$Resource$Projects$Groupstats$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * [Optional] The alignment of the timed counts to be returned. Default is + * `ALIGNMENT_EQUAL_AT_END`. + */ + alignment?: string; + /** + * [Optional] Time where the timed counts shall be aligned if rounded + * alignment is chosen. Default is 00:00 UTC. + */ + alignmentTime?: string; + /** + * [Optional] List all ErrorGroupStats with these IDs. + */ + groupId?: string; + /** + * [Optional] The sort order in which the results are returned. Default is + * `COUNT_DESC`. + */ + order?: string; + /** + * [Optional] The maximum number of results to return per response. Default + * is 20. + */ + pageSize?: number; + /** + * [Optional] A `next_page_token` provided by a previous response. To view + * additional results, pass this token along with the identical query + * parameters as the first request. + */ + pageToken?: string; + /** + * [Required] The resource name of the Google Cloud Platform project. + * Written as projects/ plus the Google Cloud + * Platform project ID. Example: projects/my-project-123. + */ + projectName?: string; + /** + * [Optional] The exact value to match against + * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). + */ + 'serviceFilter.resourceType'?: string; + /** + * [Optional] The exact value to match against + * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). + */ + 'serviceFilter.service'?: string; + /** + * [Optional] The exact value to match against + * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). + */ + 'serviceFilter.version'?: string; + /** + * [Optional] The preferred duration for a single returned `TimedCount`. If + * not set, no timed counts are returned. + */ + timedCountDuration?: string; + /** + * Restricts the query to the specified time range. + */ + 'timeRange.period'?: string; + } } diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index 0978cfc13b6..96f8d955361 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudfunctions_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Cloud Functions API * @@ -74,7 +77,7 @@ export namespace cloudfunctions_v1 { /** * Input to be passed to the function. */ - data: string; + data?: string; } /** * Response of `CallFunction` method. @@ -84,16 +87,16 @@ export namespace cloudfunctions_v1 { * Either system or user-function generated error. Set if execution was not * successful. */ - error: string; + error?: string; /** * Execution id of function invocation. */ - executionId: string; + executionId?: string; /** * Result populated for successful execution of synchronous function. Will * not be populated if function does not return a result through context. */ - result: string; + result?: string; } /** * Describes a Cloud Function that contains user computation executed in @@ -103,11 +106,11 @@ export namespace cloudfunctions_v1 { /** * The amount of memory in MB available for a function. Defaults to 256MB. */ - availableMemoryMb: number; + availableMemoryMb?: number; /** * User-provided description of a function. */ - description: string; + description?: string; /** * The name of the function (as defined in source code) that will be * executed. Defaults to the resource name suffix, if not specified. For @@ -116,61 +119,61 @@ export namespace cloudfunctions_v1 { * Node.js this is name of a function exported by the module specified in * `source_location`. */ - entryPoint: string; + entryPoint?: string; /** * A source that fires events in response to a condition in another service. */ - eventTrigger: Schema$EventTrigger; + eventTrigger?: Schema$EventTrigger; /** * An HTTPS endpoint type of source that can be triggered via URL. */ - httpsTrigger: Schema$HttpsTrigger; + httpsTrigger?: Schema$HttpsTrigger; /** * Labels associated with this Cloud Function. */ - labels: any; + labels?: any; /** * A user-defined name of the function. Function names must be unique * globally and match pattern `projects/x/locations/x/functions/x */ - name: string; + name?: string; /** * Output only. The email of the function's service account. */ - serviceAccountEmail: string; + serviceAccountEmail?: string; /** * The Google Cloud Storage URL, starting with gs://, pointing to the zip * archive which contains the function. */ - sourceArchiveUrl: string; + sourceArchiveUrl?: string; /** * **Beta Feature** The source repository where a function is hosted. */ - sourceRepository: Schema$SourceRepository; + sourceRepository?: Schema$SourceRepository; /** * The Google Cloud Storage signed URL used for source uploading, generated * by google.cloud.functions.v1.GenerateUploadUrl */ - sourceUploadUrl: string; + sourceUploadUrl?: string; /** * Output only. Status of the function deployment. */ - status: string; + status?: string; /** * The function execution timeout. Execution is considered failed and can be * terminated if the function is not completed at the end of the timeout * period. Defaults to 60 seconds. */ - timeout: string; + timeout?: string; /** * Output only. The last update timestamp of a Cloud Function. */ - updateTime: string; + updateTime?: string; /** * Output only. The version identifier of the Cloud Function. Each * deployment attempt results in a new version of a function being created. */ - versionId: string; + versionId?: string; } /** * Describes EventTrigger, used to request events be sent from another @@ -189,11 +192,11 @@ export namespace cloudfunctions_v1 { * example, action for a Google Cloud Storage Object is 'change'. * These parts are lower case. */ - eventType: string; + eventType?: string; /** * Specifies policy for failed executions. */ - failurePolicy: Schema$FailurePolicy; + failurePolicy?: Schema$FailurePolicy; /** * Required. The resource(s) from which to observe events, for example, * `projects/_/buckets/myBucket`. Not all syntactically correct values are @@ -208,14 +211,14 @@ export namespace cloudfunctions_v1 { * will always be returned in the normalized "long" format. See * each *service's* documentation for supported formats. */ - resource: string; + resource?: string; /** * The hostname of the service that should be observed. If no string is * provided, the default service implementing the API will be used. For * example, `storage.googleapis.com` is the default for all event types in * the `google.storage` namespace. */ - service: string; + service?: string; } /** * Describes the policy in case of function's execution failure. If empty, @@ -225,7 +228,7 @@ export namespace cloudfunctions_v1 { /** * If specified, then the function will be retried in case of a failure. */ - retry: Schema$Retry; + retry?: Schema$Retry; } /** * Request of `GenerateDownloadUrl` method. @@ -235,7 +238,7 @@ export namespace cloudfunctions_v1 { * The optional version of function. If not set, default, current version is * used. */ - versionId: string; + versionId?: string; } /** * Response of `GenerateDownloadUrl` method. @@ -245,7 +248,7 @@ export namespace cloudfunctions_v1 { * The generated Google Cloud Storage signed URL that should be used for * function source code download. */ - downloadUrl: string; + downloadUrl?: string; } /** * Request of `GenerateSourceUploadUrl` method. @@ -260,7 +263,7 @@ export namespace cloudfunctions_v1 { * function source code upload. The uploaded file should be a zip archive * which contains a function. */ - uploadUrl: string; + uploadUrl?: string; } /** * Describes HttpsTrigger, could be used to connect web hooks to function. @@ -269,7 +272,7 @@ export namespace cloudfunctions_v1 { /** * Output only. The deployed url for the function. */ - url: string; + url?: string; } /** * Response for the `ListFunctions` method. @@ -278,13 +281,13 @@ export namespace cloudfunctions_v1 { /** * The functions that match the request. */ - functions: Schema$CloudFunction[]; + functions?: Schema$CloudFunction[]; /** * If not empty, indicates that there may be more functions that match the * request; this value should be passed in a new * google.cloud.functions.v1.ListFunctionsRequest to get more functions. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -293,11 +296,11 @@ export namespace cloudfunctions_v1 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -306,11 +309,11 @@ export namespace cloudfunctions_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * A resource that represents Google Cloud Platform location. @@ -320,26 +323,26 @@ export namespace cloudfunctions_v1 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: `"us-east1"`. */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` */ - name: string; + name?: string; } /** * This resource represents a long-running operation that is the result of a @@ -351,24 +354,24 @@ export namespace cloudfunctions_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -378,7 +381,7 @@ export namespace cloudfunctions_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Metadata describing an Operation @@ -387,25 +390,25 @@ export namespace cloudfunctions_v1 { /** * The original request that started the operation. */ - request: any; + request?: any; /** * Target of the operation - for example * projects/project-1/locations/region-1/functions/function-1 */ - target: string; + target?: string; /** * Type of operation. */ - type: string; + type?: string; /** * The last update timestamp of the operation. */ - updateTime: string; + updateTime?: string; /** * Version id of the function created or updated by an API call. This field * is only pupulated for Create and Update operations. */ - versionId: string; + versionId?: string; } /** * Metadata describing an Operation @@ -414,25 +417,25 @@ export namespace cloudfunctions_v1 { /** * The original request that started the operation. */ - request: any; + request?: any; /** * Target of the operation - for example * projects/project-1/locations/region-1/functions/function-1 */ - target: string; + target?: string; /** * Type of operation. */ - type: string; + type?: string; /** * The last update timestamp of the operation. */ - updateTime: string; + updateTime?: string; /** * Version id of the function created or updated by an API call. This field * is only pupulated for Create and Update operations. */ - versionId: string; + versionId?: string; } /** * Describes the retry policy in case of function's execution failure. A @@ -451,7 +454,7 @@ export namespace cloudfunctions_v1 { * were defined at the time of deployment. It always points to a specific * commit in the format described above. */ - deployedUrl: string; + deployedUrl?: string; /** * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following @@ -464,7 +467,7 @@ export namespace cloudfunctions_v1 { * `https://source.developers.google.com/projects/x/repos/x/fixed-aliases/x/paths/x * You may omit `paths/x if you want to use the main directory. */ - url: string; + url?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -506,20 +509,21 @@ export namespace cloudfunctions_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Operations { root: Cloudfunctions; constructor(root: Cloudfunctions) { @@ -546,23 +550,34 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -608,28 +623,38 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -652,6 +677,42 @@ export namespace cloudfunctions_v1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects { root: Cloudfunctions; locations: Resource$Projects$Locations; @@ -665,6 +726,8 @@ export namespace cloudfunctions_v1 { return this.root; } } + + export class Resource$Projects$Locations { root: Cloudfunctions; functions: Resource$Projects$Locations$Functions; @@ -694,28 +757,40 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -738,6 +813,31 @@ export namespace cloudfunctions_v1 { } } } + + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export class Resource$Projects$Locations$Functions { root: Cloudfunctions; constructor(root: Cloudfunctions) { @@ -764,28 +864,40 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - call(params?: any, options?: MethodOptions): - AxiosPromise; call( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Functions$Call, + options?: MethodOptions): AxiosPromise; + call( + params: Params$Resource$Projects$Locations$Functions$Call, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; call( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Functions$Call, + callback: BodyResponseCallback): void; + call(callback: BodyResponseCallback): void; + call( + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Call| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Call; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Call; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -823,26 +935,39 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Functions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Functions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Functions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -880,26 +1005,39 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Functions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Functions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Functions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -938,29 +1076,50 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateDownloadUrl(params?: any, options?: MethodOptions): + generateDownloadUrl( + params?: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl, + options?: MethodOptions): AxiosPromise; generateDownloadUrl( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generateDownloadUrl( + params: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl, + callback: BodyResponseCallback): void; generateDownloadUrl( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + generateDownloadUrl( + paramsOrCallback?: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Generatedownloadurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Functions$Generatedownloadurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1008,29 +1167,44 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateUploadUrl(params?: any, options?: MethodOptions): + generateUploadUrl( + params?: Params$Resource$Projects$Locations$Functions$Generateuploadurl, + options?: MethodOptions): AxiosPromise; generateUploadUrl( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Functions$Generateuploadurl, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + generateUploadUrl( + params: Params$Resource$Projects$Locations$Functions$Generateuploadurl, + callback: BodyResponseCallback): void; generateUploadUrl( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + generateUploadUrl( + paramsOrCallback?: + Params$Resource$Projects$Locations$Functions$Generateuploadurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Generateuploadurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Functions$Generateuploadurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1067,24 +1241,35 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Functions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Functions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Functions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1121,28 +1306,40 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Functions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Functions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Functions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1180,26 +1377,39 @@ export namespace cloudfunctions_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Functions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Functions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Functions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1221,4 +1431,133 @@ export namespace cloudfunctions_v1 { } } } + + export interface Params$Resource$Projects$Locations$Functions$Call { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function to be called. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CallFunctionRequest; + } + export interface Params$Resource$Projects$Locations$Functions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project and location in which the function should be created, + * specified in the format `projects/x/locations/x` + */ + location?: string; + /** + * Request body metadata + */ + resource?: Schema$CloudFunction; + } + export interface Params$Resource$Projects$Locations$Functions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function which should be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Functions$Generatedownloadurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of function for which source code Google Cloud Storage signed + * URL should be generated. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GenerateDownloadUrlRequest; + } + export interface Params$Resource$Projects$Locations$Functions$Generateuploadurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project and location in which the Google Cloud Storage signed URL + * should be generated, specified in the format `projects/x/locations/x`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GenerateUploadUrlRequest; + } + export interface Params$Resource$Projects$Locations$Functions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function which details should be obtained. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Functions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of functions to return per call. + */ + pageSize?: number; + /** + * The value returned by the last `ListFunctionsResponse`; indicates that + * this is a continuation of a prior `ListFunctions` call, and that the + * system should return the next page of data. + */ + pageToken?: string; + /** + * The project and location from which the function should be listed, + * specified in the format `projects/x/locations/x` If you want to list + * functions in all locations, use "-" in place of a location. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Functions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A user-defined name of the function. Function names must be unique + * globally and match pattern `projects/x/locations/x/functions/x` + */ + name?: string; + /** + * Required list of fields to be updated in this request. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$CloudFunction; + } } diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index 3041c04660e..633c373c7ab 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudfunctions_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Google Cloud Functions API * @@ -74,7 +77,7 @@ export namespace cloudfunctions_v1beta2 { /** * Input to be passed to the function. */ - data: string; + data?: string; } /** * Response of `CallFunction` method. @@ -84,16 +87,16 @@ export namespace cloudfunctions_v1beta2 { * Either system or user-function generated error. Set if execution was not * successful. */ - error: string; + error?: string; /** * Execution id of function invocation. */ - executionId: string; + executionId?: string; /** * Result populated for successful execution of synchronous function. Will * not be populated if function does not return a result through context. */ - result: string; + result?: string; } /** * Describes a Cloud Function that contains user computation executed in @@ -103,7 +106,7 @@ export namespace cloudfunctions_v1beta2 { /** * The amount of memory in MB available for a function. Defaults to 256MB. */ - availableMemoryMb: number; + availableMemoryMb?: number; /** * The name of the function (as defined in source code) that will be * executed. Defaults to the resource name suffix, if not specified. For @@ -112,43 +115,43 @@ export namespace cloudfunctions_v1beta2 { * Node.js this is name of a function exported by the module specified in * `source_location`. */ - entryPoint: string; + entryPoint?: string; /** * A source that fires events in response to a condition in another service. */ - eventTrigger: Schema$EventTrigger; + eventTrigger?: Schema$EventTrigger; /** * An HTTPS endpoint type of source that can be triggered via URL. */ - httpsTrigger: Schema$HTTPSTrigger; + httpsTrigger?: Schema$HTTPSTrigger; /** * Labels associated with this Cloud Function. */ - labels: any; + labels?: any; /** * Output only. Name of the most recent operation modifying the function. If * the function status is `DEPLOYING` or `DELETING`, then it points to the * active operation. */ - latestOperation: string; + latestOperation?: string; /** * A user-defined name of the function. Function names must be unique * globally and match pattern `projects/x/locations/x/functions/x */ - name: string; + name?: string; /** * Output only. The service account of the function. */ - serviceAccount: string; + serviceAccount?: string; /** * The Google Cloud Storage URL, starting with gs://, pointing to the zip * archive which contains the function. */ - sourceArchiveUrl: string; + sourceArchiveUrl?: string; /** * The hosted repository where the function is defined. */ - sourceRepository: Schema$SourceRepository; + sourceRepository?: Schema$SourceRepository; /** * The URL pointing to the hosted repository where the function is defined. * There are supported Cloud Source Repository URLs in the following @@ -161,31 +164,31 @@ export namespace cloudfunctions_v1beta2 { * `https://source.developers.google.com/projects/x/repos/x/fixed-aliases/x/paths/x * You may omit `paths/x if you want to use the main directory. */ - sourceRepositoryUrl: string; + sourceRepositoryUrl?: string; /** * The Google Cloud Storage signed URL used for source uploading, generated * by google.cloud.functions.v1beta2.GenerateUploadUrl */ - sourceUploadUrl: string; + sourceUploadUrl?: string; /** * Output only. Status of the function deployment. */ - status: string; + status?: string; /** * The function execution timeout. Execution is considered failed and can be * terminated if the function is not completed at the end of the timeout * period. Defaults to 60 seconds. */ - timeout: string; + timeout?: string; /** * Output only. The last update timestamp of a Cloud Function. */ - updateTime: string; + updateTime?: string; /** * Output only. The version identifier of the Cloud Function. Each * deployment attempt results in a new version of a function being created. */ - versionId: string; + versionId?: string; } /** * Describes EventTrigger, used to request events be sent from another @@ -202,11 +205,11 @@ export namespace cloudfunctions_v1beta2 { * Firebase Realtime Database: * `providers/google.firebase.database/eventTypes/ref.write` */ - eventType: string; + eventType?: string; /** * Specifies policy for failed executions. */ - failurePolicy: Schema$FailurePolicy; + failurePolicy?: Schema$FailurePolicy; /** * Which instance of the source's service should send events. E.g. for * Pub/Sub this would be a Pub/Sub topic at `projects/x/topics/x. For Google @@ -214,14 +217,14 @@ export namespace cloudfunctions_v1beta2 { * source that only supports one instance per-project, this should be the * name of the project (`projects/x) */ - resource: string; + resource?: string; /** * The hostname of the service that should be observed. If no string is * provided, the default service implementing the API will be used. For * example, `storage.googleapis.com` is the default for all event types in * the `google.storage` namespace. */ - service: string; + service?: string; } /** * Describes the policy in case of function's execution failure. If empty, @@ -231,7 +234,7 @@ export namespace cloudfunctions_v1beta2 { /** * If specified, then the function will be retried in case of a failure. */ - retry: Schema$Retry; + retry?: Schema$Retry; } /** * Request of `GenerateDownloadUrl` method. @@ -240,7 +243,7 @@ export namespace cloudfunctions_v1beta2 { /** * The optional version of function. */ - versionId: string; + versionId?: string; } /** * Response of `GenerateDownloadUrl` method. @@ -250,7 +253,7 @@ export namespace cloudfunctions_v1beta2 { * The generated Google Cloud Storage signed URL that should be used for * function source code download. */ - downloadUrl: string; + downloadUrl?: string; } /** * Request of `GenerateUploadUrl` method. @@ -265,7 +268,7 @@ export namespace cloudfunctions_v1beta2 { * function source code upload. The uploaded file should be a zip archive * which contains a function. */ - uploadUrl: string; + uploadUrl?: string; } /** * Describes HTTPSTrigger, could be used to connect web hooks to function. @@ -274,7 +277,7 @@ export namespace cloudfunctions_v1beta2 { /** * Output only. The deployed url for the function. */ - url: string; + url?: string; } /** * Response for the `ListFunctions` method. @@ -283,14 +286,14 @@ export namespace cloudfunctions_v1beta2 { /** * The functions that match the request. */ - functions: Schema$CloudFunction[]; + functions?: Schema$CloudFunction[]; /** * If not empty, indicates that there may be more functions that match the * request; this value should be passed in a new * google.cloud.functions.v1beta2.ListFunctionsRequest to get more * functions. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -299,11 +302,11 @@ export namespace cloudfunctions_v1beta2 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -312,11 +315,11 @@ export namespace cloudfunctions_v1beta2 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * A resource that represents Google Cloud Platform location. @@ -326,26 +329,26 @@ export namespace cloudfunctions_v1beta2 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: `"us-east1"`. */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` */ - name: string; + name?: string; } /** * This resource represents a long-running operation that is the result of a @@ -357,24 +360,24 @@ export namespace cloudfunctions_v1beta2 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -384,7 +387,7 @@ export namespace cloudfunctions_v1beta2 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Metadata describing an Operation @@ -393,25 +396,25 @@ export namespace cloudfunctions_v1beta2 { /** * The original request that started the operation. */ - request: any; + request?: any; /** * Target of the operation - for example * projects/project-1/locations/region-1/functions/function-1 */ - target: string; + target?: string; /** * Type of operation. */ - type: string; + type?: string; /** * The last update timestamp of the operation. */ - updateTime: string; + updateTime?: string; /** * Version id of the function created or updated by an API call. This field * is only pupulated for Create and Update operations. */ - versionId: string; + versionId?: string; } /** * Metadata describing an Operation @@ -420,25 +423,25 @@ export namespace cloudfunctions_v1beta2 { /** * The original request that started the operation. */ - request: any; + request?: any; /** * Target of the operation - for example * projects/project-1/locations/region-1/functions/function-1 */ - target: string; + target?: string; /** * Type of operation. */ - type: string; + type?: string; /** * The last update timestamp of the operation. */ - updateTime: string; + updateTime?: string; /** * Version id of the function created or updated by an API call. This field * is only pupulated for Create and Update operations. */ - versionId: string; + versionId?: string; } /** * Describes the retry policy in case of function's execution failure. A @@ -454,7 +457,7 @@ export namespace cloudfunctions_v1beta2 { /** * The name of the branch from which the function should be fetched. */ - branch: string; + branch?: string; /** * Output only. The id of the revision that was resolved at the moment of * function creation or update. For example when a user deployed from a @@ -462,30 +465,30 @@ export namespace cloudfunctions_v1beta2 { * that time. If user deployed from revision then this value will be always * equal to the revision specified by the user. */ - deployedRevision: string; + deployedRevision?: string; /** * URL to the hosted repository where the function is defined. Only paths in * https://source.developers.google.com domain are supported. The path * should contain the name of the repository. */ - repositoryUrl: string; + repositoryUrl?: string; /** * The id of the revision that captures the state of the repository from * which the function should be fetched. */ - revision: string; + revision?: string; /** * The path within the repository where the function is defined. The path * should point to the directory where Cloud Functions files are located. * Use "/" if the function is defined directly in the root * directory of a repository. */ - sourcePath: string; + sourcePath?: string; /** * The name of the tag that captures the state of the repository from which * the function should be fetched. */ - tag: string; + tag?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -527,20 +530,21 @@ export namespace cloudfunctions_v1beta2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Operations { root: Cloudfunctions; constructor(root: Cloudfunctions) { @@ -567,23 +571,34 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -629,28 +644,38 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -674,6 +699,42 @@ export namespace cloudfunctions_v1beta2 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects { root: Cloudfunctions; locations: Resource$Projects$Locations; @@ -687,6 +748,8 @@ export namespace cloudfunctions_v1beta2 { return this.root; } } + + export class Resource$Projects$Locations { root: Cloudfunctions; functions: Resource$Projects$Locations$Functions; @@ -716,28 +779,40 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -760,6 +835,31 @@ export namespace cloudfunctions_v1beta2 { } } } + + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export class Resource$Projects$Locations$Functions { root: Cloudfunctions; constructor(root: Cloudfunctions) { @@ -786,28 +886,40 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - call(params?: any, options?: MethodOptions): - AxiosPromise; call( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Functions$Call, + options?: MethodOptions): AxiosPromise; + call( + params: Params$Resource$Projects$Locations$Functions$Call, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + call( + params: Params$Resource$Projects$Locations$Functions$Call, + callback: BodyResponseCallback): void; + call(callback: BodyResponseCallback): void; call( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Call| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Call; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Call; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -846,26 +958,39 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Functions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Functions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Functions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -903,26 +1028,39 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Functions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Functions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Functions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -961,29 +1099,50 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateDownloadUrl(params?: any, options?: MethodOptions): + generateDownloadUrl( + params?: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl, + options?: MethodOptions): AxiosPromise; generateDownloadUrl( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generateDownloadUrl( + params: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl, + callback: BodyResponseCallback): + void; + generateDownloadUrl( + callback: BodyResponseCallback): void; generateDownloadUrl( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Functions$Generatedownloadurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Generatedownloadurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Functions$Generatedownloadurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1031,29 +1190,44 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateUploadUrl(params?: any, options?: MethodOptions): + generateUploadUrl( + params?: Params$Resource$Projects$Locations$Functions$Generateuploadurl, + options?: MethodOptions): AxiosPromise; generateUploadUrl( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Functions$Generateuploadurl, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; generateUploadUrl( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Functions$Generateuploadurl, + callback: BodyResponseCallback): void; + generateUploadUrl( + callback: BodyResponseCallback): void; + generateUploadUrl( + paramsOrCallback?: + Params$Resource$Projects$Locations$Functions$Generateuploadurl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Generateuploadurl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Functions$Generateuploadurl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1090,24 +1264,35 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Functions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Functions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Functions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1144,28 +1329,40 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Functions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Functions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Functions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1202,26 +1399,39 @@ export namespace cloudfunctions_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Functions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Locations$Functions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Locations$Functions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Functions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Functions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Functions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; const parameters = { @@ -1243,4 +1453,128 @@ export namespace cloudfunctions_v1beta2 { } } } + + export interface Params$Resource$Projects$Locations$Functions$Call { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function to be called. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CallFunctionRequest; + } + export interface Params$Resource$Projects$Locations$Functions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project and location in which the function should be created, + * specified in the format `projects/x/locations/x` + */ + location?: string; + /** + * Request body metadata + */ + resource?: Schema$CloudFunction; + } + export interface Params$Resource$Projects$Locations$Functions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function which should be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Functions$Generatedownloadurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of function for which source code Google Cloud Storage signed + * URL should be generated. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GenerateDownloadUrlRequest; + } + export interface Params$Resource$Projects$Locations$Functions$Generateuploadurl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project and location in which the Google Cloud Storage signed URL + * should be generated, specified in the format `projects/x/locations/x`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GenerateUploadUrlRequest; + } + export interface Params$Resource$Projects$Locations$Functions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function which details should be obtained. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Functions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project and location from which the function should be listed, + * specified in the format `projects/x/locations/x` If you want to list + * functions in all locations, use "-" in place of a location. + */ + location?: string; + /** + * Maximum number of functions to return per call. + */ + pageSize?: number; + /** + * The value returned by the last `ListFunctionsResponse`; indicates that + * this is a continuation of a prior `ListFunctions` call, and that the + * system should return the next page of data. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Locations$Functions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the function to be updated. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CloudFunction; + } } diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index 825892ab3f2..04f5948f6f3 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudiot_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud IoT API * @@ -77,21 +80,20 @@ export namespace cloudiot_v1 { * 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, + * represents a specific Google account. For example, `alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * The device resource. @@ -102,7 +104,7 @@ export namespace cloudiot_v1 { * fail. Can be used to temporarily prevent the device from connecting if, * for example, the sensor is generating bad data and needs maintenance. */ - blocked: boolean; + blocked?: boolean; /** * The most recent device configuration, which is eventually sent from Cloud * IoT Core to the device. If not present on creation, the configuration @@ -110,7 +112,7 @@ export namespace cloudiot_v1 { * update this field after creation, use the * `DeviceManager.ModifyCloudToDeviceConfig` method. */ - config: Schema$DeviceConfig; + config?: Schema$DeviceConfig; /** * The credentials used to authenticate this device. To allow credential * rotation without interruption, multiple device credentials can be bound @@ -119,23 +121,23 @@ export namespace cloudiot_v1 { * verified against the registry credentials. For details, see the * description of the `DeviceRegistry.credentials` field. */ - credentials: Schema$DeviceCredential[]; + credentials?: Schema$DeviceCredential[]; /** * The user-defined device identifier. The device ID must be unique within a * device registry. */ - id: string; + id?: string; /** * [Output only] The last time a cloud-to-device config version * acknowledgment was received from the device. This field is only for * configurations sent through MQTT. */ - lastConfigAckTime: string; + lastConfigAckTime?: string; /** * [Output only] The last time a cloud-to-device config version was sent to * the device. */ - lastConfigSendTime: string; + lastConfigSendTime?: string; /** * [Output only] The error message of the most recent error, such as a * failure to publish to Cloud Pub/Sub. 'last_error_time' is the @@ -143,19 +145,19 @@ export namespace cloudiot_v1 { * empty message and the status code 0 == OK. Otherwise, this field is * expected to have a status code other than OK. */ - lastErrorStatus: Schema$Status; + lastErrorStatus?: Schema$Status; /** * [Output only] The time the most recent error occurred, such as a failure * to publish to Cloud Pub/Sub. This field is the timestamp of * 'last_error_status'. */ - lastErrorTime: string; + lastErrorTime?: string; /** * [Output only] The last time a telemetry event was received. Timestamps * are periodically collected and written to storage; they may be stale by a * few minutes. */ - lastEventTime: string; + lastEventTime?: string; /** * [Output only] The last time an MQTT `PINGREQ` was received. This field * applies only to devices connecting through MQTT. MQTT clients usually @@ -163,13 +165,13 @@ export namespace cloudiot_v1 { * messages have been sent. Timestamps are periodically collected and * written to storage; they may be stale by a few minutes. */ - lastHeartbeatTime: string; + lastHeartbeatTime?: string; /** * [Output only] The last time a state event was received. Timestamps are * periodically collected and written to storage; they may be stale by a few * minutes. */ - lastStateTime: string; + lastStateTime?: string; /** * The metadata key-value pairs assigned to the device. This metadata is not * interpreted or indexed by Cloud IoT Core. It can be used to add @@ -179,7 +181,7 @@ export namespace cloudiot_v1 { * size. The total size of all keys and values must be less than 256 KB, * and the maximum number of key-value pairs is 500. */ - metadata: any; + metadata?: any; /** * The resource path name. For example, * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or @@ -187,17 +189,17 @@ export namespace cloudiot_v1 { * When `name` is populated as a response from the service, it always ends * in the device numeric ID. */ - name: string; + name?: string; /** * [Output only] A server-defined unique numeric ID for the device. This is * a more compact way to identify devices, and it is globally unique. */ - numId: string; + numId?: string; /** * [Output only] The state most recently received from the device. If no * state has been reported, this field is not present. */ - state: Schema$DeviceState; + state?: Schema$DeviceState; } /** * The device configuration. Eventually delivered to devices. @@ -206,12 +208,12 @@ export namespace cloudiot_v1 { /** * The device configuration data. */ - binaryData: string; + binaryData?: string; /** * [Output only] The time at which this configuration version was updated in * Cloud IoT Core. This timestamp is set by the server. */ - cloudUpdateTime: string; + cloudUpdateTime?: string; /** * [Output only] The time at which Cloud IoT Core received the * acknowledgment from the device, indicating that the device has received @@ -223,14 +225,14 @@ export namespace cloudiot_v1 { * may never be sent to the device, and therefore are never acknowledged. * This timestamp is set by Cloud IoT Core. */ - deviceAckTime: string; + deviceAckTime?: string; /** * [Output only] The version of this update. The version number is assigned * by the server, and is always greater than 0 after device creation. The * version must be 0 on the `CreateDevice` request if a `config` is * specified; the response of `CreateDevice` will always have a value of 1. */ - version: string; + version?: string; } /** * A server-stored device credential used for authentication. @@ -241,7 +243,7 @@ export namespace cloudiot_v1 { * credential will be ignored for new client authentication requests after * this timestamp; however, it will not be automatically deleted. */ - expirationTime: string; + expirationTime?: string; /** * A public key used to verify the signature of JSON Web Tokens (JWTs). When * adding a new device credential, either via device creation or via @@ -255,7 +257,7 @@ export namespace cloudiot_v1 { * New device credentials must be different from every registry-level * certificate. */ - publicKey: Schema$PublicKeyCredential; + publicKey?: Schema$PublicKeyCredential; } /** * A container for a group of devices. @@ -273,7 +275,7 @@ export namespace cloudiot_v1 { * it should be able to connect even if its registry credentials are * revoked, deleted, or modified. */ - credentials: Schema$RegistryCredential[]; + credentials?: Schema$RegistryCredential[]; /** * The configuration for notification of telemetry events received from the * device. All telemetry events that were successfully published by the @@ -285,24 +287,24 @@ export namespace cloudiot_v1 { * try to do so using an HTTP connection, an error is returned. Up to 10 * configurations may be provided. */ - eventNotificationConfigs: Schema$EventNotificationConfig[]; + eventNotificationConfigs?: Schema$EventNotificationConfig[]; /** * The DeviceService (HTTP) configuration for this device registry. */ - httpConfig: Schema$HttpConfig; + httpConfig?: Schema$HttpConfig; /** * The identifier of this device registry. For example, `myRegistry`. */ - id: string; + id?: string; /** * The MQTT configuration for this device registry. */ - mqttConfig: Schema$MqttConfig; + mqttConfig?: Schema$MqttConfig; /** * The resource path name. For example, * `projects/example-project/locations/us-central1/registries/my-registry`. */ - name: string; + name?: string; /** * The configuration for notification of new states received from the * device. State updates are guaranteed to be stored in the state history, @@ -311,7 +313,7 @@ export namespace cloudiot_v1 { * no notification will be published but the state will still be stored in * Cloud IoT Core. */ - stateNotificationConfig: Schema$StateNotificationConfig; + stateNotificationConfig?: Schema$StateNotificationConfig; } /** * The device state, as reported by the device. @@ -320,12 +322,12 @@ export namespace cloudiot_v1 { /** * The device state data. */ - binaryData: string; + binaryData?: string; /** * [Output only] The time at which this state version was updated in Cloud * IoT Core. */ - updateTime: string; + updateTime?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -343,14 +345,14 @@ export namespace cloudiot_v1 { * A Cloud Pub/Sub topic name. For example, * `projects/myProject/topics/deviceEvents`. */ - pubsubTopicName: string; + pubsubTopicName?: string; /** * If the subfolder name matches this string exactly, this configuration * will be used. The string must not include the leading '/' * character. If empty, all strings are matched. This field is used only for * telemetry events; subfolders are not supported for state changes. */ - subfolderMatches: string; + subfolderMatches?: string; } /** * Request message for `GetIamPolicy` method. @@ -364,7 +366,7 @@ export namespace cloudiot_v1 { * If enabled, allows devices to use DeviceService via the HTTP protocol. * Otherwise, any requests to DeviceService will fail for this registry. */ - httpEnabledState: string; + httpEnabledState?: string; } /** * Response for `ListDeviceConfigVersions`. @@ -374,7 +376,7 @@ export namespace cloudiot_v1 { * The device configuration for the last few versions. Versions are listed * in decreasing order, starting from the most recent one. */ - deviceConfigs: Schema$DeviceConfig[]; + deviceConfigs?: Schema$DeviceConfig[]; } /** * Response for `ListDeviceRegistries`. @@ -383,13 +385,13 @@ export namespace cloudiot_v1 { /** * The registries that matched the query. */ - deviceRegistries: Schema$DeviceRegistry[]; + deviceRegistries?: Schema$DeviceRegistry[]; /** * If not empty, indicates that there may be more registries that match the * request; this value should be passed in a new * `ListDeviceRegistriesRequest`. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response for `ListDevices`. @@ -398,12 +400,12 @@ export namespace cloudiot_v1 { /** * The devices that match the request. */ - devices: Schema$Device[]; + devices?: Schema$Device[]; /** * If not empty, indicates that there may be more devices that match the * request; this value should be passed in a new `ListDevicesRequest`. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response for `ListDeviceStates`. @@ -413,7 +415,7 @@ export namespace cloudiot_v1 { * The last few device states. States are listed in descending order of * server update time, starting from the most recent one. */ - deviceStates: Schema$DeviceState[]; + deviceStates?: Schema$DeviceState[]; } /** * Request for `ModifyCloudToDeviceConfig`. @@ -422,7 +424,7 @@ export namespace cloudiot_v1 { /** * The configuration data for the device. */ - binaryData: string; + binaryData?: string; /** * The version number to update. If this value is zero, it will not check * the version number of the server and will always update the current @@ -430,7 +432,7 @@ export namespace cloudiot_v1 { * the server does not match this version number. This is used to support * multiple simultaneous updates without losing data. */ - versionToUpdate: string; + versionToUpdate?: string; } /** * The configuration of MQTT for a device registry. @@ -440,7 +442,7 @@ export namespace cloudiot_v1 { * If enabled, allows connections using the MQTT protocol. Otherwise, MQTT * connections to this registry will fail. */ - mqttEnabledState: string; + mqttEnabledState?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -467,7 +469,7 @@ export namespace cloudiot_v1 { * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -479,11 +481,11 @@ export namespace cloudiot_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A public key certificate format and data. @@ -492,15 +494,15 @@ export namespace cloudiot_v1 { /** * The certificate data. */ - certificate: string; + certificate?: string; /** * The certificate format. */ - format: string; + format?: string; /** * [Output only] The certificate details. Used only for X.509 certificates. */ - x509Details: Schema$X509CertificateDetails; + x509Details?: Schema$X509CertificateDetails; } /** * A public key format and data. @@ -509,11 +511,11 @@ export namespace cloudiot_v1 { /** * The format of the key. */ - format: string; + format?: string; /** * The key data. */ - key: string; + key?: string; } /** * A server-stored registry credential used to validate device credentials. @@ -522,7 +524,7 @@ export namespace cloudiot_v1 { /** * A public key certificate used to verify the device credentials. */ - publicKeyCertificate: Schema$PublicKeyCertificate; + publicKeyCertificate?: Schema$PublicKeyCertificate; } /** * Request message for `SetIamPolicy` method. @@ -534,7 +536,7 @@ export namespace cloudiot_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * The configuration for notification of new states received from the device. @@ -544,7 +546,7 @@ export namespace cloudiot_v1 { * A Cloud Pub/Sub topic name. For example, * `projects/myProject/topics/deviceEvents`. */ - pubsubTopicName: string; + pubsubTopicName?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -586,18 +588,18 @@ export namespace cloudiot_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message for `TestIamPermissions` method. @@ -609,7 +611,7 @@ export namespace cloudiot_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -619,7 +621,7 @@ export namespace cloudiot_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * Details of an X.509 certificate. For informational purposes only. @@ -628,29 +630,30 @@ export namespace cloudiot_v1 { /** * The time the certificate becomes invalid. */ - expiryTime: string; + expiryTime?: string; /** * The entity that signed the certificate. */ - issuer: string; + issuer?: string; /** * The type of public key in the certificate. */ - publicKeyType: string; + publicKeyType?: string; /** * The algorithm used to sign the certificate. */ - signatureAlgorithm: string; + signatureAlgorithm?: string; /** * The time the certificate becomes valid. */ - startTime: string; + startTime?: string; /** * The entity the certificate and public key belong to. */ - subject: string; + subject?: string; } + export class Resource$Projects { root: Cloudiot; locations: Resource$Projects$Locations; @@ -664,12 +667,16 @@ export namespace cloudiot_v1 { return this.root; } } + + export class Resource$Projects$Locations { root: Cloudiot; + groups: Resource$Projects$Locations$Groups; registries: Resource$Projects$Locations$Registries; constructor(root: Cloudiot) { this.root = root; this.getRoot.bind(this); + this.groups = new Resource$Projects$Locations$Groups(root); this.registries = new Resource$Projects$Locations$Registries(root); } @@ -677,13 +684,162 @@ export namespace cloudiot_v1 { return this.root; } } + + + export class Resource$Projects$Locations$Groups { + root: Cloudiot; + devices: Resource$Projects$Locations$Groups$Devices; + constructor(root: Cloudiot) { + this.root = root; + this.getRoot.bind(this); + this.devices = new Resource$Projects$Locations$Groups$Devices(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Locations$Groups$Devices { + root: Cloudiot; + constructor(root: Cloudiot) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * cloudiot.projects.locations.groups.devices.list + * @desc List devices in a device registry. + * @alias cloudiot.projects.locations.groups.devices.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.deviceIds A list of device string identifiers. If empty, it will ignore this field. For example, `['device0', 'device12']`. This field cannot hold more than 10,000 entries. + * @param {string=} params.deviceNumIds A list of device numerical ids. If empty, it will ignore this field. This field cannot hold more than 10,000 entries. + * @param {string=} params.fieldMask The fields of the `Device` resource to be returned in the response. The fields `id`, and `num_id` are always returned by default, along with any other fields specified. + * @param {integer=} params.pageSize The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested, but if there is a non-empty `page_token`, it indicates that more entries are available. + * @param {string=} params.pageToken The value returned by the last `ListDevicesResponse`; indicates that this is a continuation of a prior `ListDevices` call, and that the system should return the next page of data. + * @param {string} params.parent The device registry path. Required. For example, `projects/my-project/locations/us-central1/registries/my-registry`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Groups$Devices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Groups$Devices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Groups$Devices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Groups$Devices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Groups$Devices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Groups$Devices$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/devices') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Groups$Devices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A list of device string identifiers. If empty, it will ignore this field. + * For example, `['device0', 'device12']`. This field cannot hold more than + * 10,000 entries. + */ + deviceIds?: string; + /** + * A list of device numerical ids. If empty, it will ignore this field. This + * field cannot hold more than 10,000 entries. + */ + deviceNumIds?: string; + /** + * The fields of the `Device` resource to be returned in the response. The + * fields `id`, and `num_id` are always returned by default, along with any + * other fields specified. + */ + fieldMask?: string; + /** + * The maximum number of devices to return in the response. If this value is + * zero, the service will select a default size. A call may return fewer + * objects than requested, but if there is a non-empty `page_token`, it + * indicates that more entries are available. + */ + pageSize?: number; + /** + * The value returned by the last `ListDevicesResponse`; indicates that this + * is a continuation of a prior `ListDevices` call, and that the system + * should return the next page of data. + */ + pageToken?: string; + /** + * The device registry path. Required. For example, + * `projects/my-project/locations/us-central1/registries/my-registry`. + */ + parent?: string; + } + + + export class Resource$Projects$Locations$Registries { root: Cloudiot; devices: Resource$Projects$Locations$Registries$Devices; + groups: Resource$Projects$Locations$Registries$Groups; constructor(root: Cloudiot) { this.root = root; this.getRoot.bind(this); this.devices = new Resource$Projects$Locations$Registries$Devices(root); + this.groups = new Resource$Projects$Locations$Registries$Groups(root); } getRoot() { @@ -704,26 +860,39 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Registries$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Registries$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registries$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -758,25 +927,38 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Registries$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Registries$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registries$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -810,24 +992,35 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Registries$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Registries$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Registries$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Registries$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registries$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -863,26 +1056,40 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Registries$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -919,29 +1126,44 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Locations$Registries$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Registries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Locations$Registries$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Registries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -980,26 +1202,39 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Registries$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Locations$Registries$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Registries$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registries$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1035,26 +1270,40 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Registries$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1092,29 +1341,50 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: + Params$Resource$Projects$Locations$Registries$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Registries$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: + Params$Resource$Projects$Locations$Registries$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1137,6 +1407,145 @@ export namespace cloudiot_v1 { } } } + + export interface Params$Resource$Projects$Locations$Registries$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project and cloud region where this device registry must be created. + * For example, `projects/example-project/locations/us-central1`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$DeviceRegistry; + } + export interface Params$Resource$Projects$Locations$Registries$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device registry. For example, + * `projects/example-project/locations/us-central1/registries/my-registry`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device registry. For example, + * `projects/example-project/locations/us-central1/registries/my-registry`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Registries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of registries to return in the response. If this value + * is zero, the service will select a default size. A call may return fewer + * objects than requested, but if there is a non-empty `page_token`, it + * indicates that more entries are available. + */ + pageSize?: number; + /** + * The value returned by the last `ListDeviceRegistriesResponse`; indicates + * that this is a continuation of a prior `ListDeviceRegistries` call, and + * that the system should return the next page of data. + */ + pageToken?: string; + /** + * The project and cloud region path. For example, + * `projects/example-project/locations/us-central1`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource path name. For example, + * `projects/example-project/locations/us-central1/registries/my-registry`. + */ + name?: string; + /** + * Only updates the `device_registry` fields indicated by this mask. The + * field mask must not be empty, and it must not contain fields that are + * immutable or only set by the server. Mutable top-level fields: + * `event_notification_config`, `http_config`, `mqtt_config`, and + * `state_notification_config`. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$DeviceRegistry; + } + export interface Params$Resource$Projects$Locations$Registries$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Registries$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Projects$Locations$Registries$Devices { root: Cloudiot; configVersions: @@ -1170,25 +1579,40 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Devices$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Registries$Devices$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Devices$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1223,25 +1647,40 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Devices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Registries$Devices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Devices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1276,23 +1715,36 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Registries$Devices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Registries$Devices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Registries$Devices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1331,28 +1783,41 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Devices$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Registries$Devices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Registries$Devices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1391,26 +1856,45 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyCloudToDeviceConfig(params?: any, options?: MethodOptions): - AxiosPromise; modifyCloudToDeviceConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig, + options?: MethodOptions): AxiosPromise; + modifyCloudToDeviceConfig( + params: + Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; modifyCloudToDeviceConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig, + callback: BodyResponseCallback): void; + modifyCloudToDeviceConfig( + callback: BodyResponseCallback): void; + modifyCloudToDeviceConfig( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1447,25 +1931,40 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Registries$Devices$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Registries$Devices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Locations$Registries$Devices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1486,6 +1985,144 @@ export namespace cloudiot_v1 { } } } + + export interface Params$Resource$Projects$Locations$Registries$Devices$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device registry where this device should be created. For + * example, + * `projects/example-project/locations/us-central1/registries/my-registry`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Device; + } + export interface Params$Resource$Projects$Locations$Registries$Devices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Devices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fields of the `Device` resource to be returned in the response. If + * the field mask is unset or empty, all fields are returned. + */ + fieldMask?: string; + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Devices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A list of device string identifiers. If empty, it will ignore this field. + * For example, `['device0', 'device12']`. This field cannot hold more than + * 10,000 entries. + */ + deviceIds?: string; + /** + * A list of device numerical ids. If empty, it will ignore this field. This + * field cannot hold more than 10,000 entries. + */ + deviceNumIds?: string; + /** + * The fields of the `Device` resource to be returned in the response. The + * fields `id`, and `num_id` are always returned by default, along with any + * other fields specified. + */ + fieldMask?: string; + /** + * The maximum number of devices to return in the response. If this value is + * zero, the service will select a default size. A call may return fewer + * objects than requested, but if there is a non-empty `page_token`, it + * indicates that more entries are available. + */ + pageSize?: number; + /** + * The value returned by the last `ListDevicesResponse`; indicates that this + * is a continuation of a prior `ListDevices` call, and that the system + * should return the next page of data. + */ + pageToken?: string; + /** + * The device registry path. Required. For example, + * `projects/my-project/locations/us-central1/registries/my-registry`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Devices$Modifycloudtodeviceconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyCloudToDeviceConfigRequest; + } + export interface Params$Resource$Projects$Locations$Registries$Devices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource path name. For example, + * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or + * `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. + * When `name` is populated as a response from the service, it always ends + * in the device numeric ID. + */ + name?: string; + /** + * Only updates the `device` fields indicated by this mask. The field mask + * must not be empty, and it must not contain fields that are immutable or + * only set by the server. Mutable top-level fields: `credentials`, + * `blocked`, and `metadata` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Device; + } + export class Resource$Projects$Locations$Registries$Devices$Configversions { root: Cloudiot; constructor(root: Cloudiot) { @@ -1512,31 +2149,53 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Projects$Locations$Registries$Devices$Configversions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Registries$Devices$Configversions$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Registries$Devices$Configversions$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$Configversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$Configversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$Configversions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1561,6 +2220,28 @@ export namespace cloudiot_v1 { } } + export interface Params$Resource$Projects$Locations$Registries$Devices$Configversions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + /** + * The number of versions to list. Versions are listed in decreasing order + * of the version number. The maximum number of versions retained is 10. If + * this value is zero, it will return all the versions available. + */ + numVersions?: number; + } + + export class Resource$Projects$Locations$Registries$Devices$States { root: Cloudiot; constructor(root: Cloudiot) { @@ -1587,28 +2268,45 @@ export namespace cloudiot_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: + Params$Resource$Projects$Locations$Registries$Devices$States$List, + options?: MethodOptions): AxiosPromise; + list( + params: + Params$Resource$Projects$Locations$Registries$Devices$States$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Registries$Devices$States$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Devices$States$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Devices$States$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Devices$States$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; const parameters = { options: Object.assign( @@ -1630,4 +2328,933 @@ export namespace cloudiot_v1 { } } } + + export interface Params$Resource$Projects$Locations$Registries$Devices$States$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + /** + * The number of states to list. States are listed in descending order of + * update time. The maximum number of states retained is 10. If this value + * is zero, it will return all the states available. + */ + numStates?: number; + } + + + + export class Resource$Projects$Locations$Registries$Groups { + root: Cloudiot; + devices: Resource$Projects$Locations$Registries$Groups$Devices; + constructor(root: Cloudiot) { + this.root = root; + this.getRoot.bind(this); + this.devices = + new Resource$Projects$Locations$Registries$Groups$Devices(root); + } + + getRoot() { + return this.root; + } + + + /** + * cloudiot.projects.locations.registries.groups.getIamPolicy + * @desc Gets the access control policy for a resource. Returns an empty + * policy if the resource exists and does not have a policy set. + * @alias cloudiot.projects.locations.registries.groups.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GetIamPolicyRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getIamPolicy( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: + Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: + Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+resource}:getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * cloudiot.projects.locations.registries.groups.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias cloudiot.projects.locations.registries.groups.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().SetIamPolicyRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setIamPolicy( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: + Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: + Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+resource}:setIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * cloudiot.projects.locations.registries.groups.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. If + * the resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * @alias cloudiot.projects.locations.registries.groups.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().TestIamPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions, + options?: MethodOptions): + AxiosPromise; + testIamPermissions( + params: + Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + testIamPermissions( + params: + Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+resource}:testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Registries$Groups$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Registries$Groups$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Registries$Groups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Locations$Registries$Groups$Devices { + root: Cloudiot; + configVersions: + Resource$Projects$Locations$Registries$Groups$Devices$Configversions; + states: Resource$Projects$Locations$Registries$Groups$Devices$States; + constructor(root: Cloudiot) { + this.root = root; + this.getRoot.bind(this); + this.configVersions = + new Resource$Projects$Locations$Registries$Groups$Devices$Configversions( + root); + this.states = + new Resource$Projects$Locations$Registries$Groups$Devices$States( + root); + } + + getRoot() { + return this.root; + } + + + /** + * cloudiot.projects.locations.registries.groups.devices.delete + * @desc Deletes a device. + * @alias cloudiot.projects.locations.registries.groups.devices.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * cloudiot.projects.locations.registries.groups.devices.get + * @desc Gets details about a device. + * @alias cloudiot.projects.locations.registries.groups.devices.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.fieldMask The fields of the `Device` resource to be returned in the response. If the field mask is unset or empty, all fields are returned. + * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Get, + options?: MethodOptions): AxiosPromise; + get(params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig + * @desc Modifies the configuration for the device, which is eventually sent + * from the Cloud IoT Core servers. Returns the modified configuration + * version and its metadata. + * @alias + * cloudiot.projects.locations.registries.groups.devices.modifyCloudToDeviceConfig + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param {().ModifyCloudToDeviceConfigRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + modifyCloudToDeviceConfig( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig, + options?: MethodOptions): AxiosPromise; + modifyCloudToDeviceConfig( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyCloudToDeviceConfig( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig, + callback: BodyResponseCallback): void; + modifyCloudToDeviceConfig( + callback: BodyResponseCallback): void; + modifyCloudToDeviceConfig( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * cloudiot.projects.locations.registries.groups.devices.patch + * @desc Updates a device. + * @alias cloudiot.projects.locations.registries.groups.devices.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource path name. For example, `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. When `name` is populated as a response from the service, it always ends in the device numeric ID. + * @param {string=} params.updateMask Only updates the `device` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `credentials`, `blocked`, and `metadata` + * @param {().Device} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fields of the `Device` resource to be returned in the response. If + * the field mask is unset or empty, all fields are returned. + */ + fieldMask?: string; + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Modifycloudtodeviceconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyCloudToDeviceConfigRequest; + } + export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource path name. For example, + * `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or + * `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. + * When `name` is populated as a response from the service, it always ends + * in the device numeric ID. + */ + name?: string; + /** + * Only updates the `device` fields indicated by this mask. The field mask + * must not be empty, and it must not contain fields that are immutable or + * only set by the server. Mutable top-level fields: `credentials`, + * `blocked`, and `metadata` + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Device; + } + + export class + Resource$Projects$Locations$Registries$Groups$Devices$Configversions { + root: Cloudiot; + constructor(root: Cloudiot) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * cloudiot.projects.locations.registries.groups.devices.configVersions.list + * @desc Lists the last few versions of the device configuration in + * descending order (i.e.: newest first). + * @alias + * cloudiot.projects.locations.registries.groups.devices.configVersions.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param {integer=} params.numVersions The number of versions to list. Versions are listed in decreasing order of the version number. The maximum number of versions retained is 10. If this value is zero, it will return all the versions available. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List, + options?: MethodOptions): + AxiosPromise; + list( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + list( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/configVersions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$Configversions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + /** + * The number of versions to list. Versions are listed in decreasing order + * of the version number. The maximum number of versions retained is 10. If + * this value is zero, it will return all the versions available. + */ + numVersions?: number; + } + + + export class Resource$Projects$Locations$Registries$Groups$Devices$States { + root: Cloudiot; + constructor(root: Cloudiot) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * cloudiot.projects.locations.registries.groups.devices.states.list + * @desc Lists the last few versions of the device state in descending order + * (i.e.: newest first). + * @alias cloudiot.projects.locations.registries.groups.devices.states.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the device. For example, `projects/p0/locations/us-central1/registries/registry0/devices/device0` or `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + * @param {integer=} params.numStates The number of states to list. States are listed in descending order of update time. The maximum number of states retained is 10. If this value is zero, it will return all the states available. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List, + options?: MethodOptions): AxiosPromise; + list( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: + Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}/states') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Registries$Groups$Devices$States$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the device. For example, + * `projects/p0/locations/us-central1/registries/registry0/devices/device0` + * or + * `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + */ + name?: string; + /** + * The number of states to list. States are listed in descending order of + * update time. The maximum number of states retained is 10. If this value + * is zero, it will return all the states available. + */ + numStates?: number; + } } diff --git a/src/apis/cloudkms/v1.ts b/src/apis/cloudkms/v1.ts index ff39ff67f2b..45645ddcedb 100644 --- a/src/apis/cloudkms/v1.ts +++ b/src/apis/cloudkms/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudkms_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Key Management Service (KMS) API * @@ -93,13 +96,13 @@ export namespace cloudkms_v1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -115,11 +118,11 @@ export namespace cloudkms_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -132,21 +135,20 @@ export namespace cloudkms_v1 { * 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, + * represents a specific Google account. For example, `alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A CryptoKey represents a logical key that can be used for cryptographic @@ -157,42 +159,42 @@ export namespace cloudkms_v1 { /** * Output only. The time at which this CryptoKey was created. */ - createTime: string; + createTime?: string; /** * Labels with user-defined metadata. For more information, see [Labeling * Keys](/kms/docs/labeling-keys). */ - labels: any; + labels?: any; /** * Output only. The resource name for this CryptoKey in the format * `projects/x/locations/x/keyRings/x/cryptoKeys/x. */ - name: string; + name?: string; /** * At next_rotation_time, the Key Management Service will automatically: 1. * Create a new version of this CryptoKey. 2. Mark the new version as * primary. Key rotations performed manually via CreateCryptoKeyVersion and * UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time. */ - nextRotationTime: string; + 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 * UpdateCryptoKeyPrimaryVersion. */ - primary: Schema$CryptoKeyVersion; + primary?: Schema$CryptoKeyVersion; /** * The immutable purpose of this CryptoKey. Currently, the only acceptable * purpose is ENCRYPT_DECRYPT. */ - purpose: string; + purpose?: string; /** * next_rotation_time will be advanced by this period when the service * automatically rotates a key. Must be at least one day. If * rotation_period is set, next_rotation_time must also be set. */ - rotationPeriod: string; + rotationPeriod?: string; } /** * A CryptoKeyVersion represents an individual cryptographic key, and the @@ -207,26 +209,26 @@ export namespace cloudkms_v1 { /** * Output only. The time at which this CryptoKeyVersion was created. */ - createTime: string; + createTime?: string; /** * Output only. The time this CryptoKeyVersion's key material was * destroyed. Only present if state is DESTROYED. */ - destroyEventTime: string; + destroyEventTime?: string; /** * Output only. The time this CryptoKeyVersion's key material is * scheduled for destruction. Only present if state is DESTROY_SCHEDULED. */ - destroyTime: string; + destroyTime?: string; /** * Output only. The resource name for this CryptoKeyVersion in the format * `projects/x/locations/x/keyRings/x/cryptoKeys/x/cryptoKeyVersions/x. */ - name: string; + name?: string; /** * The current state of the CryptoKeyVersion. */ - state: string; + state?: string; } /** * Request message for KeyManagementService.Decrypt. @@ -236,12 +238,12 @@ export namespace cloudkms_v1 { * Optional data that must match the data originally supplied in * EncryptRequest.additional_authenticated_data. */ - additionalAuthenticatedData: string; + additionalAuthenticatedData?: string; /** * Required. The encrypted data originally returned in * EncryptResponse.ciphertext. */ - ciphertext: string; + ciphertext?: string; } /** * Response message for KeyManagementService.Decrypt. @@ -250,7 +252,7 @@ export namespace cloudkms_v1 { /** * The decrypted data originally supplied in EncryptRequest.plaintext. */ - plaintext: string; + plaintext?: string; } /** * Request message for KeyManagementService.DestroyCryptoKeyVersion. @@ -265,11 +267,11 @@ export namespace cloudkms_v1 { * through DecryptRequest.additional_authenticated_data. Must be no larger * than 64KiB. */ - additionalAuthenticatedData: string; + additionalAuthenticatedData?: string; /** * Required. The data to encrypt. Must be no larger than 64KiB. */ - plaintext: string; + plaintext?: string; } /** * Response message for KeyManagementService.Encrypt. @@ -278,11 +280,11 @@ export namespace cloudkms_v1 { /** * The encrypted data. */ - ciphertext: string; + ciphertext?: string; /** * The resource name of the CryptoKeyVersion used in encryption. */ - name: string; + name?: string; } /** * A KeyRing is a toplevel logical grouping of CryptoKeys. @@ -291,12 +293,12 @@ export namespace cloudkms_v1 { /** * Output only. The time at which this KeyRing was created. */ - createTime: string; + createTime?: string; /** * Output only. The resource name for the KeyRing in the format * `projects/x/locations/x/keyRings/x. */ - name: string; + name?: string; } /** * Response message for KeyManagementService.ListCryptoKeys. @@ -305,16 +307,16 @@ export namespace cloudkms_v1 { /** * The list of CryptoKeys. */ - cryptoKeys: Schema$CryptoKey[]; + cryptoKeys?: Schema$CryptoKey[]; /** * A token to retrieve next page of results. Pass this value in * ListCryptoKeysRequest.page_token to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of CryptoKeys that matched the query. */ - totalSize: number; + totalSize?: number; } /** * Response message for KeyManagementService.ListCryptoKeyVersions. @@ -323,17 +325,17 @@ export namespace cloudkms_v1 { /** * The list of CryptoKeyVersions. */ - cryptoKeyVersions: Schema$CryptoKeyVersion[]; + cryptoKeyVersions?: Schema$CryptoKeyVersion[]; /** * A token to retrieve next page of results. Pass this value in * ListCryptoKeyVersionsRequest.page_token to retrieve the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of CryptoKeyVersions that matched the query. */ - totalSize: number; + totalSize?: number; } /** * Response message for KeyManagementService.ListKeyRings. @@ -342,16 +344,16 @@ export namespace cloudkms_v1 { /** * The list of KeyRings. */ - keyRings: Schema$KeyRing[]; + keyRings?: Schema$KeyRing[]; /** * A token to retrieve next page of results. Pass this value in * ListKeyRingsRequest.page_token to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of KeyRings that matched the query. */ - totalSize: number; + totalSize?: number; } /** * The response message for Locations.ListLocations. @@ -360,11 +362,11 @@ export namespace cloudkms_v1 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * A resource that represents Google Cloud Platform location. @@ -374,26 +376,26 @@ export namespace cloudkms_v1 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: `"us-east1"`. */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` */ - name: string; + name?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -419,12 +421,12 @@ export namespace cloudkms_v1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -436,11 +438,11 @@ export namespace cloudkms_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Request message for KeyManagementService.RestoreCryptoKeyVersion. @@ -456,14 +458,14 @@ export namespace cloudkms_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * Request message for `TestIamPermissions` method. @@ -475,7 +477,7 @@ export namespace cloudkms_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -485,7 +487,7 @@ export namespace cloudkms_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion. @@ -494,9 +496,10 @@ export namespace cloudkms_v1 { /** * The id of the child CryptoKeyVersion to use as primary. */ - cryptoKeyVersionId: string; + cryptoKeyVersionId?: string; } + export class Resource$Projects { root: Cloudkms; locations: Resource$Projects$Locations; @@ -510,6 +513,8 @@ export namespace cloudkms_v1 { return this.root; } } + + export class Resource$Projects$Locations { root: Cloudkms; keyRings: Resource$Projects$Locations$Keyrings; @@ -536,23 +541,34 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -589,28 +605,40 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -632,6 +660,42 @@ export namespace cloudkms_v1 { } } } + + export interface Params$Resource$Projects$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export class Resource$Projects$Locations$Keyrings { root: Cloudkms; cryptoKeys: Resource$Projects$Locations$Keyrings$Cryptokeys; @@ -661,25 +725,38 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Keyrings$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Keyrings$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Keyrings$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Keyrings$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -714,23 +791,34 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Keyrings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Keyrings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Keyrings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Keyrings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Keyrings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -765,26 +853,39 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Keyrings$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Keyrings$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Keyrings$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -821,28 +922,40 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Keyrings$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Keyrings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Keyrings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Keyrings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Keyrings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -879,26 +992,39 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Keyrings$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Locations$Keyrings$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Keyrings$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -938,29 +1064,47 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Locations$Keyrings$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Keyrings$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Keyrings$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -983,6 +1127,108 @@ export namespace cloudkms_v1 { } } } + + export interface Params$Resource$Projects$Locations$Keyrings$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. It must be unique within a location and match the regular + * expression `[a-zA-Z0-9_-]{1,63}` + */ + keyRingId?: string; + /** + * Required. The resource name of the location associated with the KeyRings, + * in the format `projects/x/locations/x`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$KeyRing; + } + export interface Params$Resource$Projects$Locations$Keyrings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the KeyRing to get. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional limit on the number of KeyRings to include in the response. + * Further KeyRings can subsequently be obtained by including the + * ListKeyRingsResponse.next_page_token in a subsequent request. If + * unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional pagination token, returned earlier via + * ListKeyRingsResponse.next_page_token. + */ + pageToken?: string; + /** + * Required. The resource name of the location associated with the KeyRings, + * in the format `projects/x/locations/x`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Keyrings$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Projects$Locations$Keyrings$Cryptokeys { root: Cloudkms; cryptoKeyVersions: @@ -1015,26 +1261,41 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1070,26 +1331,41 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - decrypt(params?: any, options?: MethodOptions): - AxiosPromise; decrypt( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt, + options?: MethodOptions): AxiosPromise; + decrypt( + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; decrypt( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt, + callback: BodyResponseCallback): void; + decrypt(callback: BodyResponseCallback): void; + decrypt( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1126,26 +1402,41 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - encrypt(params?: any, options?: MethodOptions): - AxiosPromise; encrypt( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt, + options?: MethodOptions): AxiosPromise; + encrypt( + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; encrypt( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt, + callback: BodyResponseCallback): void; + encrypt(callback: BodyResponseCallback): void; + encrypt( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1181,23 +1472,37 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1232,26 +1537,43 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1288,28 +1610,42 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1346,26 +1682,41 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1401,26 +1752,43 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1460,29 +1828,50 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1520,26 +1909,45 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatePrimaryVersion(params?: any, options?: MethodOptions): - AxiosPromise; updatePrimaryVersion( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion, + options?: MethodOptions): AxiosPromise; + updatePrimaryVersion( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updatePrimaryVersion( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion, + callback: BodyResponseCallback): void; + updatePrimaryVersion(callback: BodyResponseCallback): + void; updatePrimaryVersion( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1561,6 +1969,175 @@ export namespace cloudkms_v1 { } } } + + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. It must be unique within a KeyRing and match the regular + * expression `[a-zA-Z0-9_-]{1,63}` + */ + cryptoKeyId?: string; + /** + * Required. The name of the KeyRing associated with the CryptoKeys. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CryptoKey; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Decrypt { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the CryptoKey to use for decryption. The + * server will choose the appropriate version. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$DecryptRequest; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Encrypt { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the CryptoKey or CryptoKeyVersion to use + * for encryption. If a CryptoKey is specified, the server will use its + * primary version. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$EncryptRequest; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the CryptoKey to get. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional limit on the number of CryptoKeys to include in the response. + * Further CryptoKeys can subsequently be obtained by including the + * ListCryptoKeysResponse.next_page_token in a subsequent request. If + * unspecified, the server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional pagination token, returned earlier via + * ListCryptoKeysResponse.next_page_token. + */ + pageToken?: string; + /** + * Required. The resource name of the KeyRing to list, in the format + * `projects/x/locations/x/keyRings/x`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The resource name for this CryptoKey in the format + * `projects/x/locations/x/keyRings/x/cryptoKeys/x`. + */ + name?: string; + /** + * Required list of fields to be updated in this request. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$CryptoKey; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Updateprimaryversion { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the CryptoKey to update. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateCryptoKeyPrimaryVersionRequest; + } + export class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { root: Cloudkms; @@ -1589,26 +2166,44 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1650,26 +2245,44 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - destroy(params?: any, options?: MethodOptions): - AxiosPromise; destroy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy, + options?: MethodOptions): AxiosPromise; + destroy( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + destroy( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy, + callback: BodyResponseCallback): void; + destroy(callback: BodyResponseCallback): void; destroy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1705,24 +2318,40 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1759,29 +2388,49 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1823,26 +2472,44 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1880,26 +2547,44 @@ export namespace cloudkms_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - restore(params?: any, options?: MethodOptions): - AxiosPromise; restore( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore, + options?: MethodOptions): AxiosPromise; + restore( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + restore( + params: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore, + callback: BodyResponseCallback): void; + restore(callback: BodyResponseCallback): void; restore( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; const parameters = { options: Object.assign( @@ -1921,4 +2606,107 @@ export namespace cloudkms_v1 { } } } + + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the CryptoKey associated with the + * CryptoKeyVersions. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CryptoKeyVersion; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Destroy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the CryptoKeyVersion to destroy. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$DestroyCryptoKeyVersionRequest; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the CryptoKeyVersion to get. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional limit on the number of CryptoKeyVersions to include in the + * response. Further CryptoKeyVersions can subsequently be obtained by + * including the ListCryptoKeyVersionsResponse.next_page_token in a + * subsequent request. If unspecified, the server will pick an appropriate + * default. + */ + pageSize?: number; + /** + * Optional pagination token, returned earlier via + * ListCryptoKeyVersionsResponse.next_page_token. + */ + pageToken?: string; + /** + * Required. The resource name of the CryptoKey to list, in the format + * `projects/x/locations/x/keyRings/x/cryptoKeys/x`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The resource name for this CryptoKeyVersion in the format + * `projects/x/locations/x/keyRings/x/cryptoKeys/x/cryptoKeyVersions/x`. + */ + name?: string; + /** + * Required list of fields to be updated in this request. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$CryptoKeyVersion; + } + export interface Params$Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions$Restore { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the CryptoKeyVersion to restore. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RestoreCryptoKeyVersionRequest; + } } diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index 0d5f52aa582..c943f562a8f 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudresourcemanager_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Resource Manager API * @@ -81,7 +84,7 @@ export namespace cloudresourcemanager_v1 { /** * Resource id of the ancestor. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Specifies the audit configuration for a service. The configuration @@ -110,13 +113,13 @@ export namespace cloudresourcemanager_v1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -132,11 +135,11 @@ export namespace cloudresourcemanager_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -157,12 +160,12 @@ export namespace cloudresourcemanager_v1 { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A `Constraint` that is either enforced or not. For example a constraint @@ -203,7 +206,7 @@ export namespace cloudresourcemanager_v1 { * The constraint at `projects/bar` is not enforced, because * `constraint_default` for the `Constraint` is `ALLOW`. */ - enforced: boolean; + enforced?: boolean; } /** * The request sent to the ClearOrgPolicy method. @@ -212,12 +215,12 @@ export namespace cloudresourcemanager_v1 { /** * Name of the `Constraint` of the `Policy` to clear. */ - constraint: string; + constraint?: string; /** * The current version, for concurrency control. Not sending an `etag` will * cause the `Policy` to be cleared blindly. */ - etag: string; + etag?: string; } /** * A `Constraint` describes a way in which a resource's configuration can @@ -238,34 +241,34 @@ export namespace cloudresourcemanager_v1 { /** * Defines this constraint as being a BooleanConstraint. */ - booleanConstraint: Schema$BooleanConstraint; + booleanConstraint?: Schema$BooleanConstraint; /** * The evaluation behavior of this constraint in the absense of * 'Policy'. */ - constraintDefault: string; + constraintDefault?: string; /** * Detailed description of what this `Constraint` controls as well as how * and where it is enforced. Mutable. */ - description: string; + description?: string; /** * The human readable name. Mutable. */ - displayName: string; + displayName?: string; /** * Defines this constraint as being a ListConstraint. */ - listConstraint: Schema$ListConstraint; + listConstraint?: Schema$ListConstraint; /** * Immutable value, required to globally be unique. For example, * `constraints/serviceuser.services` */ - name: string; + name?: string; /** * Version of the `Constraint`. Default version is 0; */ - version: number; + version?: number; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -283,20 +286,20 @@ export namespace cloudresourcemanager_v1 { * The resource name of the folder or organization we are either creating * the folder under or moving the folder to. */ - destinationParent: string; + destinationParent?: string; /** * The display name of the folder. */ - displayName: string; + displayName?: string; /** * The type of this operation. */ - operationType: string; + operationType?: string; /** * The resource name of the folder's parent. Only applicable when the * operation_type is MOVE. */ - sourceParent: string; + sourceParent?: string; } /** * A classification of the Folder Operation error. @@ -305,7 +308,7 @@ export namespace cloudresourcemanager_v1 { /** * The type of operation error experienced. */ - errorMessageId: string; + errorMessageId?: string; } /** * The request sent to the GetAncestry method. @@ -320,7 +323,7 @@ export namespace cloudresourcemanager_v1 { * first ancestor is the project itself, followed by the project's * parent, etc.. */ - ancestor: Schema$Ancestor[]; + ancestor?: Schema$Ancestor[]; } /** * The request sent to the GetEffectiveOrgPolicy method. @@ -329,7 +332,7 @@ export namespace cloudresourcemanager_v1 { /** * The name of the `Constraint` to compute the effective `Policy`. */ - constraint: string; + constraint?: string; } /** * Request message for `GetIamPolicy` method. @@ -342,7 +345,7 @@ export namespace cloudresourcemanager_v1 { /** * Name of the `Constraint` to get the `Policy`. */ - constraint: string; + constraint?: string; } /** * A Lien represents an encumbrance on the actions that can be performed on a @@ -352,30 +355,30 @@ export namespace cloudresourcemanager_v1 { /** * The creation time of this Lien. */ - createTime: string; + createTime?: string; /** * A system-generated unique identifier for this Lien. Example: * `liens/1234abcd` */ - name: string; + name?: string; /** * A stable, user-visible/meaningful string identifying the origin of the * Lien, intended to be inspected programmatically. Maximum length of 200 * characters. Example: 'compute.googleapis.com' */ - origin: string; + origin?: string; /** * A reference to the resource this Lien is attached to. The server will * validate the parent against those for which Liens are supported. Example: * `projects/1234` */ - parent: string; + parent?: string; /** * Concise user-visible strings indicating why an action cannot be performed * on a resource. Maximum lenth of 200 characters. Example: 'Holds * production API key' */ - reason: string; + reason?: string; /** * The types of operations which should be blocked as a result of this Lien. * Each value should correspond to an IAM permission. The server will @@ -383,7 +386,7 @@ export namespace cloudresourcemanager_v1 { * empty list is meaningless and will be rejected. Example: * ['resourcemanager.projects.delete'] */ - restrictions: string[]; + restrictions?: string[]; } /** * The request sent to the [ListAvailableOrgPolicyConstraints] @@ -395,12 +398,12 @@ export namespace cloudresourcemanager_v1 { * be ignored. The server may at any point start using this field to limit * page size. */ - pageSize: number; + pageSize?: number; /** * Page token used to retrieve the next page. This is currently unsupported * and will be ignored. The server may at any point start using this field. */ - pageToken: string; + pageToken?: string; } /** * The response returned from the ListAvailableOrgPolicyConstraints method. @@ -412,11 +415,11 @@ export namespace cloudresourcemanager_v1 { /** * The collection of constraints that are settable on the request resource. */ - constraints: Schema$Constraint[]; + constraints?: Schema$Constraint[]; /** * Page token used to retrieve the next page. This is currently not used. */ - nextPageToken: string; + nextPageToken?: string; } /** * A `Constraint` that allows or disallows a list of string values, which are @@ -427,7 +430,7 @@ export namespace cloudresourcemanager_v1 { * Optional. The Google Cloud Console will try to default to a configuration * that matches the value specified in this `Constraint`. */ - suggestedValue: string; + suggestedValue?: string; } /** * The response message for Liens.ListLiens. @@ -436,12 +439,12 @@ export namespace cloudresourcemanager_v1 { /** * A list of Liens. */ - liens: Schema$Lien[]; + liens?: Schema$Lien[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * The request sent to the ListOrgPolicies method. @@ -452,12 +455,12 @@ export namespace cloudresourcemanager_v1 { * be ignored. The server may at any point start using this field to limit * page size. */ - pageSize: number; + pageSize?: number; /** * Page token used to retrieve the next page. This is currently unsupported * and will be ignored. The server may at any point start using this field. */ - pageToken: string; + pageToken?: string; } /** * The response returned from the ListOrgPolicies method. It will be empty if @@ -468,12 +471,12 @@ export namespace cloudresourcemanager_v1 { * Page token used to retrieve the next page. This is currently not used, * but the server may at any point start supplying a valid token. */ - nextPageToken: string; + nextPageToken?: string; /** * The `Policies` that are set on the resource. It will be empty if no * `Policies` are set. */ - policies: Schema$OrgPolicy[]; + policies?: Schema$OrgPolicy[]; } /** * Used in `policy_type` to specify how `list_policy` behaves at this @@ -491,17 +494,17 @@ export namespace cloudresourcemanager_v1 { * are set for `denied_values` and `all_values` is set to * `ALL_VALUES_UNSPECIFIED`. */ - allowedValues: string[]; + allowedValues?: string[]; /** * The policy all_values state. */ - allValues: string; + allValues?: string; /** * List of values denied at this resource. Can only be set if no values are * set for `allowed_values` and `all_values` is set to * `ALL_VALUES_UNSPECIFIED`. */ - deniedValues: string[]; + deniedValues?: string[]; /** * Determines the inheritance behavior for this `Policy`. By default, a * `ListPolicy` set at a resource supercedes any `Policy` set anywhere up @@ -558,14 +561,14 @@ export namespace cloudresourcemanager_v1 { * DENY} The accepted values at `organizations/foo` are `E1`, E2`. No value * is accepted at `projects/bar`. */ - inheritFromParent: boolean; + inheritFromParent?: boolean; /** * Optional. The Google Cloud Console will try to default to a configuration * that matches the value specified in this `Policy`. If `suggested_value` * is not set, it will inherit the value specified higher in the hierarchy, * unless `inherit_from_parent` is `false`. */ - suggestedValue: string; + suggestedValue?: string; } /** * A page of the response received from the ListProjects method. A paginated @@ -583,12 +586,12 @@ export namespace cloudresourcemanager_v1 { * returned is the last page in the result set. Pagination tokens have a * limited lifetime. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of Projects that matched the list filter. This list can be * paginated. */ - projects: Schema$Project[]; + projects?: Schema$Project[]; } /** * This resource represents a long-running operation that is the result of a @@ -600,24 +603,24 @@ export namespace cloudresourcemanager_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -627,7 +630,7 @@ export namespace cloudresourcemanager_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The root node in the resource hierarchy to which a particular entity's @@ -638,7 +641,7 @@ export namespace cloudresourcemanager_v1 { * Timestamp when the Organization was created. Assigned by the server. * @OutputOnly */ - creationTime: string; + creationTime?: string; /** * A human-readable string that refers to the Organization in the GCP * Console UI. This string is set by the server and cannot be changed. The @@ -646,24 +649,24 @@ export namespace cloudresourcemanager_v1 { * "google.com") of the G Suite customer that owns the * organization. @OutputOnly */ - displayName: string; + displayName?: string; /** * The organization's current lifecycle state. Assigned by the server. * @OutputOnly */ - lifecycleState: string; + lifecycleState?: string; /** * Output Only. The resource name of the organization. This is the * organization's relative path in the API. Its format is * "organizations/[organization_id]". For example, * "organizations/1234". */ - name: string; + name?: string; /** * The owner of this Organization. The owner should be specified on * creation. Once set, it cannot be changed. This field is required. */ - owner: Schema$OrganizationOwner; + owner?: Schema$OrganizationOwner; } /** * The entity that owns an Organization. The lifetime of the Organization and @@ -675,7 +678,7 @@ export namespace cloudresourcemanager_v1 { /** * The G Suite customer id used in the Directory API. */ - directoryCustomerId: string; + directoryCustomerId?: string; } /** * Defines a Cloud Organization `Policy` which is used to specify @@ -685,12 +688,12 @@ export namespace cloudresourcemanager_v1 { /** * For boolean `Constraints`, whether to enforce the `Constraint` or not. */ - booleanPolicy: Schema$BooleanPolicy; + booleanPolicy?: Schema$BooleanPolicy; /** * The name of the `Constraint` the `Policy` is configuring, for example, * `constraints/serviceuser.services`. Immutable after creation. */ - constraint: string; + constraint?: string; /** * An opaque tag indicating the current version of the `Policy`, used for * concurrency control. When the `Policy` is returned from either a @@ -703,27 +706,27 @@ export namespace cloudresourcemanager_v1 { * setting the `etag`in a `SetOrgPolicy` request will result in an * unconditional write of the `Policy`. */ - etag: string; + etag?: string; /** * List of values either allowed or disallowed. */ - listPolicy: Schema$ListPolicy; + listPolicy?: Schema$ListPolicy; /** * Restores the default behavior of the constraint; independent of * `Constraint` type. */ - restoreDefault: Schema$RestoreDefault; + restoreDefault?: Schema$RestoreDefault; /** * The time stamp the `Policy` was previously updated. This is set by the * server, not specified by the caller, and represents the last time a call * to `SetOrgPolicy` was made for that `Policy`. Any value set by the client * will be ignored. */ - updateTime: string; + updateTime?: string; /** * Version of the `Policy`. Default version is 0; */ - version: number; + version?: number; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -749,12 +752,12 @@ export namespace cloudresourcemanager_v1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -766,11 +769,11 @@ export namespace cloudresourcemanager_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A Project is a high-level Google Cloud Platform entity. It is a container @@ -781,7 +784,7 @@ export namespace cloudresourcemanager_v1 { /** * Creation time. Read-only. */ - createTime: string; + createTime?: string; /** * The labels associated with this Project. Label keys must be between 1 * and 63 characters long and must conform to the following regular @@ -793,18 +796,18 @@ export namespace cloudresourcemanager_v1 { * being disallowed. Example: <code>"environment" : * "dev"</code> Read-write. */ - labels: any; + labels?: any; /** * The Project lifecycle state. Read-only. */ - lifecycleState: string; + lifecycleState?: string; /** * The user-assigned display name of the Project. It must be 4 to 30 * characters. Allowed characters are: lowercase and uppercase letters, * numbers, hyphen, single-quote, double-quote, space, and exclamation * point. Example: <code>My Project</code> Read-write. */ - name: string; + name?: string; /** * An optional reference to a parent Resource. Supported parent types * include "organization" and "folder". Once set, the @@ -812,19 +815,19 @@ export namespace cloudresourcemanager_v1 { * the `UpdateProject` method; the end user must have the * `resourcemanager.projects.create` permission on the parent. Read-write. */ - parent: Schema$ResourceId; + parent?: Schema$ResourceId; /** * The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase * letters, digits, or hyphens. It must start with a letter. Trailing * hyphens are prohibited. Example: <code>tokyo-rain-123</code> * Read-only after creation. */ - projectId: string; + projectId?: string; /** * The number uniquely identifying the project. Example: * <code>415104041262</code> Read-only. */ - projectNumber: string; + projectNumber?: string; } /** * A status object which is used as the `metadata` field for the Operation @@ -835,17 +838,17 @@ export namespace cloudresourcemanager_v1 { /** * Creation time of the project creation workflow. */ - createTime: string; + createTime?: string; /** * True if the project can be retrieved using GetProject. No other * operations on the project are guaranteed to work until the project * creation is complete. */ - gettable: boolean; + gettable?: boolean; /** * True if the project creation process is complete. */ - ready: boolean; + ready?: boolean; } /** * A container to reference an id for any resource type. A `resource` in @@ -858,12 +861,12 @@ export namespace cloudresourcemanager_v1 { * Required field for the type-specific id. This should correspond to the id * used in the type-specific API's. */ - id: string; + id?: string; /** * Required field representing the resource type this id is for. At present, * the valid types are: "organization" */ - type: string; + type?: string; } /** * Ignores policies set above this resource and restores the @@ -892,18 +895,18 @@ export namespace cloudresourcemanager_v1 { * |domain:google.com|Organizations corresponding to the domain * `google.com`.| This field is optional. */ - filter: string; + filter?: string; /** * The maximum number of Organizations to return in the response. This field * is optional. */ - pageSize: number; + pageSize?: number; /** * A pagination token returned from a previous call to `SearchOrganizations` * that indicates from where listing should continue. This field is * optional. */ - pageToken: string; + pageToken?: string; } /** * The response returned from the `SearchOrganizations` method. @@ -916,12 +919,12 @@ export namespace cloudresourcemanager_v1 { * the next page of results. If this field is empty, it indicates that this * response contains the last page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of Organizations that matched the search query, possibly * paginated. */ - organizations: Schema$Organization[]; + organizations?: Schema$Organization[]; } /** * Request message for `SetIamPolicy` method. @@ -933,14 +936,14 @@ export namespace cloudresourcemanager_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * The request sent to the SetOrgPolicyRequest method. @@ -949,7 +952,7 @@ export namespace cloudresourcemanager_v1 { /** * `Policy` to set on the resource. */ - policy: Schema$OrgPolicy; + policy?: Schema$OrgPolicy; } /** * The `Status` type defines a logical error model that is suitable for @@ -991,18 +994,18 @@ export namespace cloudresourcemanager_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message for `TestIamPermissions` method. @@ -1014,7 +1017,7 @@ export namespace cloudresourcemanager_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -1024,13 +1027,14 @@ export namespace cloudresourcemanager_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The request sent to the UndeleteProject method. */ export interface Schema$UndeleteProjectRequest {} + export class Resource$Folders { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -1110,26 +1114,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clearOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; clearOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Clearorgpolicy, + options?: MethodOptions): AxiosPromise; + clearOrgPolicy( + params: Params$Resource$Folders$Clearorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; clearOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Clearorgpolicy, + callback: BodyResponseCallback): void; + clearOrgPolicy(callback: BodyResponseCallback): void; + clearOrgPolicy( + paramsOrCallback?: Params$Resource$Folders$Clearorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Clearorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Clearorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1225,26 +1241,40 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getEffectiveOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getEffectiveOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Geteffectiveorgpolicy, + options?: MethodOptions): AxiosPromise; + getEffectiveOrgPolicy( + params: Params$Resource$Folders$Geteffectiveorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getEffectiveOrgPolicy( + params: Params$Resource$Folders$Geteffectiveorgpolicy, + callback: BodyResponseCallback): void; + getEffectiveOrgPolicy(callback: BodyResponseCallback): + void; getEffectiveOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Geteffectiveorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Folders$Geteffectiveorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Geteffectiveorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1340,26 +1370,39 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Getorgpolicy, + options?: MethodOptions): AxiosPromise; getOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Getorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getOrgPolicy( + params: Params$Resource$Folders$Getorgpolicy, + callback: BodyResponseCallback): void; + getOrgPolicy(callback: BodyResponseCallback): void; + getOrgPolicy( + paramsOrCallback?: Params$Resource$Folders$Getorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Getorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Getorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1470,30 +1513,48 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listAvailableOrgPolicyConstraints(params?: any, options?: MethodOptions): + listAvailableOrgPolicyConstraints( + params?: Params$Resource$Folders$Listavailableorgpolicyconstraints, + options?: MethodOptions): AxiosPromise; listAvailableOrgPolicyConstraints( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Listavailableorgpolicyconstraints, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$ListAvailableOrgPolicyConstraintsResponse>): void; listAvailableOrgPolicyConstraints( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Listavailableorgpolicyconstraints, + callback: BodyResponseCallback< + Schema$ListAvailableOrgPolicyConstraintsResponse>): void; + listAvailableOrgPolicyConstraints( + callback: BodyResponseCallback< + Schema$ListAvailableOrgPolicyConstraintsResponse>): void; + listAvailableOrgPolicyConstraints( + paramsOrCallback?: + Params$Resource$Folders$Listavailableorgpolicyconstraints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListAvailableOrgPolicyConstraintsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Folders$Listavailableorgpolicyconstraints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Folders$Listavailableorgpolicyconstraints; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1603,28 +1664,41 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listOrgPolicies(params?: any, options?: MethodOptions): - AxiosPromise; listOrgPolicies( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Folders$Listorgpolicies, + options?: MethodOptions): AxiosPromise; + listOrgPolicies( + params: Params$Resource$Folders$Listorgpolicies, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listOrgPolicies( + params: Params$Resource$Folders$Listorgpolicies, + callback: BodyResponseCallback): void; + listOrgPolicies( + callback: BodyResponseCallback): void; listOrgPolicies( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Folders$Listorgpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Listorgpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Listorgpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1719,26 +1793,39 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Setorgpolicy, + options?: MethodOptions): AxiosPromise; + setOrgPolicy( + params: Params$Resource$Folders$Setorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Setorgpolicy, + callback: BodyResponseCallback): void; + setOrgPolicy(callback: BodyResponseCallback): void; + setOrgPolicy( + paramsOrCallback?: Params$Resource$Folders$Setorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Setorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Setorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1762,6 +1849,98 @@ export namespace cloudresourcemanager_v1 { } } + export interface Params$Resource$Folders$Clearorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource for the `Policy` to clear. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ClearOrgPolicyRequest; + } + export interface Params$Resource$Folders$Geteffectiveorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the resource to start computing the effective `Policy`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetEffectiveOrgPolicyRequest; + } + export interface Params$Resource$Folders$Getorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource the `Policy` is set on. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetOrgPolicyRequest; + } + export interface Params$Resource$Folders$Listavailableorgpolicyconstraints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to list `Constraints` for. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ListAvailableOrgPolicyConstraintsRequest; + } + export interface Params$Resource$Folders$Listorgpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to list Policies for. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ListOrgPoliciesRequest; + } + export interface Params$Resource$Folders$Setorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the resource to attach the `Policy`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetOrgPolicyRequest; + } + + export class Resource$Liens { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -1844,23 +2023,36 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Liens$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Liens$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Liens$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Liens$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Liens$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1948,25 +2140,36 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Liens$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Liens$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Liens$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Liens$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Liens$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2069,26 +2272,37 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Liens$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Liens$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Liens$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Liens$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Liens$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liens$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2111,6 +2325,52 @@ export namespace cloudresourcemanager_v1 { } } + export interface Params$Resource$Liens$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Lien; + } + export interface Params$Resource$Liens$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name/identifier of the Lien to delete. + */ + name?: string; + } + export interface Params$Resource$Liens$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of items to return. This is a suggestion for the + * server. + */ + pageSize?: number; + /** + * The `next_page_token` value returned from a previous List request, if + * any. + */ + pageToken?: string; + /** + * The name of the resource to list all attached Liens. For example, + * `projects/1234`. + */ + parent?: string; + } + + export class Resource$Operations { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -2190,23 +2450,34 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2229,6 +2500,19 @@ export namespace cloudresourcemanager_v1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Organizations { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -2307,26 +2591,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clearOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; clearOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Clearorgpolicy, + options?: MethodOptions): AxiosPromise; + clearOrgPolicy( + params: Params$Resource$Organizations$Clearorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + clearOrgPolicy( + params: Params$Resource$Organizations$Clearorgpolicy, + callback: BodyResponseCallback): void; + clearOrgPolicy(callback: BodyResponseCallback): void; clearOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Clearorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Clearorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Clearorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2415,24 +2711,35 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Organizations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Organizations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Organizations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Organizations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2527,26 +2834,40 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getEffectiveOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getEffectiveOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Geteffectiveorgpolicy, + options?: MethodOptions): AxiosPromise; getEffectiveOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Geteffectiveorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getEffectiveOrgPolicy( + params: Params$Resource$Organizations$Geteffectiveorgpolicy, + callback: BodyResponseCallback): void; + getEffectiveOrgPolicy(callback: BodyResponseCallback): + void; + getEffectiveOrgPolicy( + paramsOrCallback?: Params$Resource$Organizations$Geteffectiveorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Geteffectiveorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Geteffectiveorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2645,26 +2966,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Organizations$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2761,26 +3094,39 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Getorgpolicy, + options?: MethodOptions): AxiosPromise; + getOrgPolicy( + params: Params$Resource$Organizations$Getorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Getorgpolicy, + callback: BodyResponseCallback): void; + getOrgPolicy(callback: BodyResponseCallback): void; + getOrgPolicy( + paramsOrCallback?: Params$Resource$Organizations$Getorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Getorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Getorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2893,30 +3239,49 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listAvailableOrgPolicyConstraints(params?: any, options?: MethodOptions): + listAvailableOrgPolicyConstraints( + params?: + Params$Resource$Organizations$Listavailableorgpolicyconstraints, + options?: MethodOptions): AxiosPromise; listAvailableOrgPolicyConstraints( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Listavailableorgpolicyconstraints, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ListAvailableOrgPolicyConstraintsResponse>): void; + listAvailableOrgPolicyConstraints( + params: Params$Resource$Organizations$Listavailableorgpolicyconstraints, + callback: BodyResponseCallback< + Schema$ListAvailableOrgPolicyConstraintsResponse>): void; + listAvailableOrgPolicyConstraints( + callback: BodyResponseCallback< Schema$ListAvailableOrgPolicyConstraintsResponse>): void; listAvailableOrgPolicyConstraints( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Organizations$Listavailableorgpolicyconstraints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListAvailableOrgPolicyConstraintsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Listavailableorgpolicyconstraints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Organizations$Listavailableorgpolicyconstraints; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3029,28 +3394,41 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listOrgPolicies(params?: any, options?: MethodOptions): - AxiosPromise; listOrgPolicies( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Organizations$Listorgpolicies, + options?: MethodOptions): AxiosPromise; + listOrgPolicies( + params: Params$Resource$Organizations$Listorgpolicies, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listOrgPolicies( + params: Params$Resource$Organizations$Listorgpolicies, + callback: BodyResponseCallback): void; listOrgPolicies( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + listOrgPolicies( + paramsOrCallback?: Params$Resource$Organizations$Listorgpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Listorgpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Listorgpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3158,29 +3536,43 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search( + params?: Params$Resource$Organizations$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Search, + callback: BodyResponseCallback): + void; + search(callback: BodyResponseCallback): + void; + search( + paramsOrCallback?: Params$Resource$Organizations$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3280,26 +3672,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Organizations$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Organizations$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3395,26 +3799,39 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Setorgpolicy, + options?: MethodOptions): AxiosPromise; + setOrgPolicy( + params: Params$Resource$Organizations$Setorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setOrgPolicy( + params: Params$Resource$Organizations$Setorgpolicy, + callback: BodyResponseCallback): void; + setOrgPolicy(callback: BodyResponseCallback): void; setOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Setorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Setorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Setorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3512,29 +3929,45 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Organizations$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Organizations$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Organizations$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3559,21 +3992,184 @@ export namespace cloudresourcemanager_v1 { } } - export class Resource$Projects { - root: Cloudresourcemanager; - constructor(root: Cloudresourcemanager) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Organizations$Clearorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * Name of the resource for the `Policy` to clear. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ClearOrgPolicyRequest; + } + export interface Params$Resource$Organizations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The resource name of the Organization to fetch, e.g. + * "organizations/1234". + */ + name?: string; + } + export interface Params$Resource$Organizations$Geteffectiveorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * cloudresourcemanager.projects.clearOrgPolicy - * @desc Clears a `Policy` from a resource. + * The name of the resource to start computing the effective `Policy`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetEffectiveOrgPolicyRequest; + } + export interface Params$Resource$Organizations$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Organizations$Getorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource the `Policy` is set on. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetOrgPolicyRequest; + } + export interface Params$Resource$Organizations$Listavailableorgpolicyconstraints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to list `Constraints` for. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ListAvailableOrgPolicyConstraintsRequest; + } + export interface Params$Resource$Organizations$Listorgpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to list Policies for. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ListOrgPoliciesRequest; + } + export interface Params$Resource$Organizations$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SearchOrganizationsRequest; + } + export interface Params$Resource$Organizations$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Organizations$Setorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the resource to attach the `Policy`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetOrgPolicyRequest; + } + export interface Params$Resource$Organizations$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + + export class Resource$Projects { + root: Cloudresourcemanager; + constructor(root: Cloudresourcemanager) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * cloudresourcemanager.projects.clearOrgPolicy + * @desc Clears a `Policy` from a resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -3638,26 +4234,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clearOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; clearOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Clearorgpolicy, + options?: MethodOptions): AxiosPromise; + clearOrgPolicy( + params: Params$Resource$Projects$Clearorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + clearOrgPolicy( + params: Params$Resource$Projects$Clearorgpolicy, + callback: BodyResponseCallback): void; + clearOrgPolicy(callback: BodyResponseCallback): void; clearOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Clearorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Clearorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Clearorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3757,26 +4365,37 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Projects$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3872,25 +4491,36 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Projects$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -3982,23 +4612,33 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4093,28 +4733,40 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAncestry(params?: any, options?: MethodOptions): - AxiosPromise; getAncestry( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getancestry, + options?: MethodOptions): AxiosPromise; getAncestry( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getancestry, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getAncestry( + params: Params$Resource$Projects$Getancestry, + callback: BodyResponseCallback): void; + getAncestry(callback: BodyResponseCallback): + void; + getAncestry( + paramsOrCallback?: Params$Resource$Projects$Getancestry| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getancestry; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getancestry; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4210,26 +4862,40 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getEffectiveOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getEffectiveOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Geteffectiveorgpolicy, + options?: MethodOptions): AxiosPromise; + getEffectiveOrgPolicy( + params: Params$Resource$Projects$Geteffectiveorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getEffectiveOrgPolicy( + params: Params$Resource$Projects$Geteffectiveorgpolicy, + callback: BodyResponseCallback): void; + getEffectiveOrgPolicy(callback: BodyResponseCallback): + void; getEffectiveOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Geteffectiveorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Geteffectiveorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Geteffectiveorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4327,26 +4993,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4442,26 +5120,39 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getorgpolicy, + options?: MethodOptions): AxiosPromise; getOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Getorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getOrgPolicy( + params: Params$Resource$Projects$Getorgpolicy, + callback: BodyResponseCallback): void; + getOrgPolicy(callback: BodyResponseCallback): void; + getOrgPolicy( + paramsOrCallback?: Params$Resource$Projects$Getorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4567,28 +5258,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4698,30 +5399,48 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listAvailableOrgPolicyConstraints(params?: any, options?: MethodOptions): + listAvailableOrgPolicyConstraints( + params?: Params$Resource$Projects$Listavailableorgpolicyconstraints, + options?: MethodOptions): AxiosPromise; listAvailableOrgPolicyConstraints( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Listavailableorgpolicyconstraints, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ListAvailableOrgPolicyConstraintsResponse>): void; + listAvailableOrgPolicyConstraints( + params: Params$Resource$Projects$Listavailableorgpolicyconstraints, + callback: BodyResponseCallback< + Schema$ListAvailableOrgPolicyConstraintsResponse>): void; + listAvailableOrgPolicyConstraints( + callback: BodyResponseCallback< Schema$ListAvailableOrgPolicyConstraintsResponse>): void; listAvailableOrgPolicyConstraints( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Listavailableorgpolicyconstraints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListAvailableOrgPolicyConstraintsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Listavailableorgpolicyconstraints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Listavailableorgpolicyconstraints; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4831,28 +5550,41 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listOrgPolicies(params?: any, options?: MethodOptions): - AxiosPromise; listOrgPolicies( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Listorgpolicies, + options?: MethodOptions): AxiosPromise; + listOrgPolicies( + params: Params$Resource$Projects$Listorgpolicies, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listOrgPolicies( + params: Params$Resource$Projects$Listorgpolicies, + callback: BodyResponseCallback): void; listOrgPolicies( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + listOrgPolicies( + paramsOrCallback?: Params$Resource$Projects$Listorgpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Listorgpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Listorgpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -4973,26 +5705,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -5087,26 +5831,39 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setOrgPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setorgpolicy, + options?: MethodOptions): AxiosPromise; + setOrgPolicy( + params: Params$Resource$Projects$Setorgpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setOrgPolicy( + params: Params$Resource$Projects$Setorgpolicy, + callback: BodyResponseCallback): void; + setOrgPolicy(callback: BodyResponseCallback): void; setOrgPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Setorgpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Setorgpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setorgpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -5201,29 +5958,45 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -5320,25 +6093,38 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Undelete, + options?: MethodOptions): AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + undelete( + params: Params$Resource$Projects$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Projects$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -5437,25 +6223,36 @@ export namespace cloudresourcemanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Projects$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Projects$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -5478,4 +6275,261 @@ export namespace cloudresourcemanager_v1 { } } } + + export interface Params$Resource$Projects$Clearorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource for the `Policy` to clear. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ClearOrgPolicyRequest; + } + export interface Params$Resource$Projects$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Project; + } + export interface Params$Resource$Projects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Project ID (for example, `foo-bar-123`). Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Project ID (for example, `my-project-123`). Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Getancestry { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Project ID (for example, `my-project-123`). Required. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$GetAncestryRequest; + } + export interface Params$Resource$Projects$Geteffectiveorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the resource to start computing the effective `Policy`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetEffectiveOrgPolicyRequest; + } + export interface Params$Resource$Projects$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Getorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource the `Policy` is set on. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetOrgPolicyRequest; + } + export interface Params$Resource$Projects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An expression for filtering the results of the request. Filter rules are + * case insensitive. The fields eligible for filtering are: + `name` + `id` + * + labels.key where *key* is the name of a label + * Some examples of using labels as filters: |Filter|Description| + * |------|-----------| |name:how*|The project's name starts with "how".| + * |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|Equivalent + * to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The project + * has the label `color`.| |labels.color:red|The project's label `color` has + * the value `red`.| |labels.color:red labels.size:big|The project's + * label `color` has the value `red` and its label `size` has the value + * `big`. If you specify a filter that has both `parent.type` and + * `parent.id`, then the `resourcemanager.projects.list` permission is + * checked on the parent. If the user has this permission, all projects + * under the parent will be returned after remaining filters have been + * applied. If the user lacks this permission, then all projects for which + * the user has the `resourcemanager.projects.get` permission will be + * returned after remaining filters have been applied. If no filter is + * specified, the call will return projects for which the user has + * `resourcemanager.projects.get` permissions. Optional. + */ + filter?: string; + /** + * The maximum number of Projects to return in the response. The server can + * return fewer Projects than requested. If unspecified, server picks an + * appropriate default. Optional. + */ + pageSize?: number; + /** + * A pagination token returned from a previous call to ListProjects that + * indicates from where listing should continue. Optional. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Listavailableorgpolicyconstraints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to list `Constraints` for. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ListAvailableOrgPolicyConstraintsRequest; + } + export interface Params$Resource$Projects$Listorgpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to list Policies for. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$ListOrgPoliciesRequest; + } + export interface Params$Resource$Projects$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Setorgpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the resource to attach the `Policy`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetOrgPolicyRequest; + } + export interface Params$Resource$Projects$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID (for example, `foo-bar-123`). Required. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteProjectRequest; + } + export interface Params$Resource$Projects$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID (for example, `my-project-123`). Required. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Project; + } } diff --git a/src/apis/cloudresourcemanager/v1beta1.ts b/src/apis/cloudresourcemanager/v1beta1.ts index 83fb260391c..352a6e27a38 100644 --- a/src/apis/cloudresourcemanager/v1beta1.ts +++ b/src/apis/cloudresourcemanager/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudresourcemanager_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Resource Manager API * @@ -75,7 +78,7 @@ export namespace cloudresourcemanager_v1beta1 { /** * Resource id of the ancestor. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Specifies the audit configuration for a service. The configuration @@ -104,13 +107,13 @@ export namespace cloudresourcemanager_v1beta1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -126,11 +129,11 @@ export namespace cloudresourcemanager_v1beta1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -151,12 +154,12 @@ export namespace cloudresourcemanager_v1beta1 { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -174,20 +177,20 @@ export namespace cloudresourcemanager_v1beta1 { * The resource name of the folder or organization we are either creating * the folder under or moving the folder to. */ - destinationParent: string; + destinationParent?: string; /** * The display name of the folder. */ - displayName: string; + displayName?: string; /** * The type of this operation. */ - operationType: string; + operationType?: string; /** * The resource name of the folder's parent. Only applicable when the * operation_type is MOVE. */ - sourceParent: string; + sourceParent?: string; } /** * A classification of the Folder Operation error. @@ -196,7 +199,7 @@ export namespace cloudresourcemanager_v1beta1 { /** * The type of operation error experienced. */ - errorMessageId: string; + errorMessageId?: string; } /** * The request sent to the GetAncestry method. @@ -211,7 +214,7 @@ export namespace cloudresourcemanager_v1beta1 { * first ancestor is the project itself, followed by the project's * parent, etc. */ - ancestor: Schema$Ancestor[]; + ancestor?: Schema$Ancestor[]; } /** * Request message for `GetIamPolicy` method. @@ -228,12 +231,12 @@ export namespace cloudresourcemanager_v1beta1 { * the next page of results. If this field is empty, it indicates that this * response contains the last page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of Organizations that matched the list query, possibly * paginated. */ - organizations: Schema$Organization[]; + organizations?: Schema$Organization[]; } /** * A page of the response received from the ListProjects method. A paginated @@ -251,12 +254,12 @@ export namespace cloudresourcemanager_v1beta1 { * returned is the last page in the result set. Pagination tokens have a * limited lifetime. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of Projects that matched the list filter. This list can be * paginated. */ - projects: Schema$Project[]; + projects?: Schema$Project[]; } /** * The root node in the resource hierarchy to which a particular entity's @@ -267,7 +270,7 @@ export namespace cloudresourcemanager_v1beta1 { * Timestamp when the Organization was created. Assigned by the server. * @OutputOnly */ - creationTime: string; + creationTime?: string; /** * A human-readable string that refers to the Organization in the GCP * Console UI. This string is set by the server and cannot be changed. The @@ -275,30 +278,30 @@ export namespace cloudresourcemanager_v1beta1 { * "google.com") of the G Suite customer that owns the * organization. @OutputOnly */ - displayName: string; + displayName?: string; /** * The organization's current lifecycle state. Assigned by the server. * @OutputOnly */ - lifecycleState: string; + lifecycleState?: string; /** * Output Only. The resource name of the organization. This is the * organization's relative path in the API. Its format is * "organizations/[organization_id]". For example, * "organizations/1234". */ - name: string; + name?: string; /** * An immutable id for the Organization that is assigned on creation. This * should be omitted when creating a new Organization. This field is * read-only. */ - organizationId: string; + organizationId?: string; /** * The owner of this Organization. The owner should be specified on * creation. Once set, it cannot be changed. This field is required. */ - owner: Schema$OrganizationOwner; + owner?: Schema$OrganizationOwner; } /** * The entity that owns an Organization. The lifetime of the Organization and @@ -310,7 +313,7 @@ export namespace cloudresourcemanager_v1beta1 { /** * The G Suite customer id used in the Directory API. */ - directoryCustomerId: string; + directoryCustomerId?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -336,12 +339,12 @@ export namespace cloudresourcemanager_v1beta1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -353,11 +356,11 @@ export namespace cloudresourcemanager_v1beta1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A Project is a high-level Google Cloud Platform entity. It is a container @@ -368,7 +371,7 @@ export namespace cloudresourcemanager_v1beta1 { /** * Creation time. Read-only. */ - createTime: string; + createTime?: string; /** * The labels associated with this Project. Label keys must be between 1 * and 63 characters long and must conform to the following regular @@ -380,18 +383,18 @@ export namespace cloudresourcemanager_v1beta1 { * being disallowed. Example: <code>"environment" : * "dev"</code> Read-write. */ - labels: any; + labels?: any; /** * The Project lifecycle state. Read-only. */ - lifecycleState: string; + lifecycleState?: string; /** * The user-assigned display name of the Project. It must be 4 to 30 * characters. Allowed characters are: lowercase and uppercase letters, * numbers, hyphen, single-quote, double-quote, space, and exclamation * point. Example: <code>My Project</code> Read-write. */ - name: string; + name?: string; /** * An optional reference to a parent Resource. Supported parent types * include "organization" and "folder". Once set, the @@ -399,19 +402,19 @@ export namespace cloudresourcemanager_v1beta1 { * the `UpdateProject` method; the end user must have the * `resourcemanager.projects.create` permission on the parent. Read-write. */ - parent: Schema$ResourceId; + parent?: Schema$ResourceId; /** * The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase * letters, digits, or hyphens. It must start with a letter. Trailing * hyphens are prohibited. Example: <code>tokyo-rain-123</code> * Read-only after creation. */ - projectId: string; + projectId?: string; /** * The number uniquely identifying the project. Example: * <code>415104041262</code> Read-only. */ - projectNumber: string; + projectNumber?: string; } /** * A status object which is used as the `metadata` field for the Operation @@ -422,17 +425,17 @@ export namespace cloudresourcemanager_v1beta1 { /** * Creation time of the project creation workflow. */ - createTime: string; + createTime?: string; /** * True if the project can be retrieved using GetProject. No other * operations on the project are guaranteed to work until the project * creation is complete. */ - gettable: boolean; + gettable?: boolean; /** * True if the project creation process is complete. */ - ready: boolean; + ready?: boolean; } /** * A container to reference an id for any resource type. A `resource` in @@ -445,13 +448,13 @@ export namespace cloudresourcemanager_v1beta1 { * Required field for the type-specific id. This should correspond to the id * used in the type-specific API's. */ - id: string; + id?: string; /** * Required field representing the resource type this id is for. At present, * the valid types are "project", "folder", and * "organization". */ - type: string; + type?: string; } /** * Request message for `SetIamPolicy` method. @@ -463,14 +466,14 @@ export namespace cloudresourcemanager_v1beta1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * Request message for `TestIamPermissions` method. @@ -482,7 +485,7 @@ export namespace cloudresourcemanager_v1beta1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -492,13 +495,14 @@ export namespace cloudresourcemanager_v1beta1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The request sent to the UndeleteProject method. */ export interface Schema$UndeleteProjectRequest {} + export class Resource$Organizations { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -577,24 +581,35 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Organizations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Organizations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Organizations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Organizations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -689,26 +704,38 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Organizations$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -813,29 +840,40 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Organizations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Organizations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Organizations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -932,26 +970,38 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Organizations$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Organizations$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1048,29 +1098,45 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Organizations$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Organizations$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Organizations$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1169,26 +1235,39 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Organizations$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Organizations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1211,6 +1290,119 @@ export namespace cloudresourcemanager_v1beta1 { } } + export interface Params$Resource$Organizations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Organization to fetch, e.g. + * "organizations/1234". + */ + name?: string; + /** + * The id of the Organization resource to fetch. This field is deprecated + * and will be removed in v1. Use name instead. + */ + organizationId?: string; + } + export interface Params$Resource$Organizations$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Organizations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An optional query string used to filter the Organizations to return in + * the response. Filter rules are case-insensitive. Organizations may be + * filtered by `owner.directoryCustomerId` or by `domain`, where the domain + * is a G Suite domain, for example: |Filter|Description| + * |------|-----------| |owner.directorycustomerid:123456789|Organizations + * with `owner.directory_customer_id` equal to `123456789`.| + * |domain:google.com|Organizations corresponding to the domain + * `google.com`.| This field is optional. + */ + filter?: string; + /** + * The maximum number of Organizations to return in the response. This field + * is optional. + */ + pageSize?: number; + /** + * A pagination token returned from a previous call to `ListOrganizations` + * that indicates from where listing should continue. This field is + * optional. + */ + pageToken?: string; + } + export interface Params$Resource$Organizations$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Organizations$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Organizations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output Only. The resource name of the organization. This is the + * organization's relative path in the API. Its format is + * "organizations/[organization_id]". For example, "organizations/1234". + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Organization; + } + + export class Resource$Projects { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -1295,25 +1487,36 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Projects$Create, options?: MethodOptions): + AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1410,25 +1613,36 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Projects$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Projects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1520,23 +1734,33 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1631,28 +1855,40 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAncestry(params?: any, options?: MethodOptions): - AxiosPromise; getAncestry( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getancestry, + options?: MethodOptions): AxiosPromise; + getAncestry( + params: Params$Resource$Projects$Getancestry, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getAncestry( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getancestry, + callback: BodyResponseCallback): void; + getAncestry(callback: BodyResponseCallback): + void; + getAncestry( + paramsOrCallback?: Params$Resource$Projects$Getancestry| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getancestry; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getancestry; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1748,26 +1984,38 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1873,28 +2121,38 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2011,26 +2269,38 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2124,29 +2394,45 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Projects$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2243,25 +2529,38 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Projects$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Projects$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2360,25 +2659,36 @@ export namespace cloudresourcemanager_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Projects$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Projects$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -2401,4 +2711,175 @@ export namespace cloudresourcemanager_v1beta1 { } } } + + export interface Params$Resource$Projects$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A safety hatch to opt out of the new reliable project creation process. + */ + useLegacyStack?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Project; + } + export interface Params$Resource$Projects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Project ID (for example, `foo-bar-123`). Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Project ID (for example, `my-project-123`). Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Getancestry { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Project ID (for example, `my-project-123`). Required. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$GetAncestryRequest; + } + export interface Params$Resource$Projects$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An expression for filtering the results of the request. Filter rules are + * case insensitive. The fields eligible for filtering are: + `name` + `id` + * + labels.key where *key* is the name of a label + * Some examples of using labels as filters: |Filter|Description| + * |------|-----------| |name:how*|The project's name starts with "how".| + * |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|Equivalent + * to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The project + * has the label `color`.| |labels.color:red|The project's label `color` has + * the value `red`.| |labels.color:red labels.size:big|The project's + * label `color` has the value `red` and its label `size` has the value + * `big`. If you specify a filter that has both `parent.type` and + * `parent.id`, then the `resourcemanager.projects.list` permission is + * checked on the parent. If the user has this permission, all projects + * under the parent will be returned after remaining filters have been + * applied. If the user lacks this permission, then all projects for which + * the user has the `resourcemanager.projects.get` permission will be + * returned after remaining filters have been applied. If no filter is + * specified, the call will return projects for which the user has + * `resourcemanager.projects.get` permissions. Optional. + */ + filter?: string; + /** + * The maximum number of Projects to return in the response. The server can + * return fewer Projects than requested. If unspecified, server picks an + * appropriate default. Optional. + */ + pageSize?: number; + /** + * A pagination token returned from a previous call to ListProjects that + * indicates from where listing should continue. Optional. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID (for example, `foo-bar-123`). Required. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteProjectRequest; + } + export interface Params$Resource$Projects$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID (for example, `my-project-123`). Required. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Project; + } } diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index 5dae8a1e2eb..dc590068821 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudresourcemanager_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Cloud Resource Manager API * @@ -93,13 +96,13 @@ export namespace cloudresourcemanager_v2 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -115,11 +118,11 @@ export namespace cloudresourcemanager_v2 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -140,12 +143,12 @@ export namespace cloudresourcemanager_v2 { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A Folder in an Organization's resource hierarchy, used to organize that @@ -156,7 +159,7 @@ export namespace cloudresourcemanager_v2 { * Output only. Timestamp when the Folder was created. Assigned by the * server. */ - createTime: string; + createTime?: string; /** * The folder’s display name. A folder’s display name must be unique amongst * its siblings, e.g. no two folders with the same parent can share the same @@ -165,22 +168,22 @@ export namespace cloudresourcemanager_v2 { * no longer than 30 characters. This is captured by the regular expression: * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. */ - displayName: string; + displayName?: string; /** * Output only. The lifecycle state of the folder. Updates to the * lifecycle_state must be performed via DeleteFolder and UndeleteFolder. */ - lifecycleState: string; + lifecycleState?: string; /** * Output only. The resource name of the Folder. Its format is * `folders/{folder_id}`, for example: "folders/1234". */ - name: string; + name?: string; /** * The Folder’s parent's resource name. Updates to the folder's * parent must be performed via MoveFolder. */ - parent: string; + parent?: string; } /** * Metadata describing a long running folder operation @@ -190,20 +193,20 @@ export namespace cloudresourcemanager_v2 { * The resource name of the folder or organization we are either creating * the folder under or moving the folder to. */ - destinationParent: string; + destinationParent?: string; /** * The display name of the folder. */ - displayName: string; + displayName?: string; /** * The type of this operation. */ - operationType: string; + operationType?: string; /** * The resource name of the folder's parent. Only applicable when the * operation_type is MOVE. */ - sourceParent: string; + sourceParent?: string; } /** * A classification of the Folder Operation error. @@ -212,7 +215,7 @@ export namespace cloudresourcemanager_v2 { /** * The type of operation error experienced. */ - errorMessageId: string; + errorMessageId?: string; } /** * Request message for `GetIamPolicy` method. @@ -226,12 +229,12 @@ export namespace cloudresourcemanager_v2 { * A possibly paginated list of Folders that are direct descendants of the * specified parent resource. */ - folders: Schema$Folder[]; + folders?: Schema$Folder[]; /** * A pagination token returned from a previous call to `ListFolders` that * indicates from where listing should continue. This field is optional. */ - nextPageToken: string; + nextPageToken?: string; } /** * The MoveFolder request message. @@ -242,7 +245,7 @@ export namespace cloudresourcemanager_v2 { * under. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. */ - destinationParent: string; + destinationParent?: string; } /** * This resource represents a long-running operation that is the result of a @@ -254,24 +257,24 @@ export namespace cloudresourcemanager_v2 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -281,7 +284,7 @@ export namespace cloudresourcemanager_v2 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -307,12 +310,12 @@ export namespace cloudresourcemanager_v2 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -324,11 +327,11 @@ export namespace cloudresourcemanager_v2 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A status object which is used as the `metadata` field for the Operation @@ -339,17 +342,17 @@ export namespace cloudresourcemanager_v2 { /** * Creation time of the project creation workflow. */ - createTime: string; + createTime?: string; /** * True if the project can be retrieved using GetProject. No other * operations on the project are guaranteed to work until the project * creation is complete. */ - gettable: boolean; + gettable?: boolean; /** * True if the project creation process is complete. */ - ready: boolean; + ready?: boolean; } /** * The request message for searching folders. @@ -359,12 +362,12 @@ export namespace cloudresourcemanager_v2 { * The maximum number of folders to return in the response. This field is * optional. */ - pageSize: number; + pageSize?: number; /** * A pagination token returned from a previous call to `SearchFolders` that * indicates from where search should continue. This field is optional. */ - pageToken: string; + pageToken?: string; /** * Search criteria used to select the Folders to return. If no search * criteria is specified then all accessible folders will be returned. Query @@ -378,7 +381,7 @@ export namespace cloudresourcemanager_v2 { * "folders/123". |parent=folders/123 AND lifecycleState=ACTIVE | * Active folders whose parent is "folders/123".| */ - query: string; + query?: string; } /** * The response message for searching folders. @@ -388,12 +391,12 @@ export namespace cloudresourcemanager_v2 { * A possibly paginated folder search results. the specified parent * resource. */ - folders: Schema$Folder[]; + folders?: Schema$Folder[]; /** * A pagination token returned from a previous call to `SearchFolders` that * indicates from where searching should continue. This field is optional. */ - nextPageToken: string; + nextPageToken?: string; } /** * Request message for `SetIamPolicy` method. @@ -405,14 +408,14 @@ export namespace cloudresourcemanager_v2 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -454,18 +457,18 @@ export namespace cloudresourcemanager_v2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message for `TestIamPermissions` method. @@ -477,7 +480,7 @@ export namespace cloudresourcemanager_v2 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -487,13 +490,14 @@ export namespace cloudresourcemanager_v2 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The UndeleteFolder request message. */ export interface Schema$UndeleteFolderRequest {} + export class Resource$Folders { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -536,26 +540,37 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Folders$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Folders$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -595,25 +610,36 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Folders$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Folders$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -651,23 +677,33 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Folders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Folders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Folders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Folders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -707,26 +743,38 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Folders$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Folders$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -770,28 +818,37 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Folders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Folders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -839,25 +896,37 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - move(params?: any, options?: MethodOptions): AxiosPromise; + move(params?: Params$Resource$Folders$Move, options?: MethodOptions): + AxiosPromise; + move( + params: Params$Resource$Folders$Move, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; move( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Move, + callback: BodyResponseCallback): void; + move(callback: BodyResponseCallback): void; move( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Move| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Move; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Move; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -904,25 +973,36 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Folders$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Folders$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -961,28 +1041,38 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Folders$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$Folders$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1023,26 +1113,38 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Folders$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Folders$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1082,29 +1184,45 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Folders$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Folders$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Folders$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Folders$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1148,26 +1266,37 @@ export namespace cloudresourcemanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Folders$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + undelete( + params: Params$Resource$Folders$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1190,4 +1319,186 @@ export namespace cloudresourcemanager_v2 { } } } + + export interface Params$Resource$Folders$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the new Folder's parent. Must be of the form + * `folders/{folder_id}` or `organizations/{org_id}`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Folders$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * the resource name of the Folder to be deleted. Must be of the form + * `folders/{folder_id}`. + */ + name?: string; + } + export interface Params$Resource$Folders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Folder to retrieve. Must be of the form + * `folders/{folder_id}`. + */ + name?: string; + } + export interface Params$Resource$Folders$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Folders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of Folders to return in the response. This field is + * optional. + */ + pageSize?: number; + /** + * A pagination token returned from a previous call to `ListFolders` that + * indicates where this listing should continue from. This field is + * optional. + */ + pageToken?: string; + /** + * The resource name of the Organization or Folder whose Folders are being + * listed. Must be of the form `folders/{folder_id}` or + * `organizations/{org_id}`. Access to this method is controlled by checking + * the `resourcemanager.folders.list` permission on the `parent`. + */ + parent?: string; + /** + * Controls whether Folders in the DELETE_REQUESTED state should be + * returned. Defaults to false. This field is optional. + */ + showDeleted?: boolean; + } + export interface Params$Resource$Folders$Move { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Folder to move. Must be of the form + * folders/{folder_id} + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$MoveFolderRequest; + } + export interface Params$Resource$Folders$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The resource name of the Folder. Its format is + * `folders/{folder_id}`, for example: "folders/1234". + */ + name?: string; + /** + * Fields to be updated. Only the `display_name` can be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Folders$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SearchFoldersRequest; + } + export interface Params$Resource$Folders$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Folders$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Folders$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Folder to undelete. Must be of the form + * `folders/{folder_id}`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteFolderRequest; + } } diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index b704601244d..c859b0bfc93 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudresourcemanager_v2beta1 { + export interface Options extends GlobalOptions { version: 'v2beta1'; } + /** * Cloud Resource Manager API * @@ -93,13 +96,13 @@ export namespace cloudresourcemanager_v2beta1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -115,11 +118,11 @@ export namespace cloudresourcemanager_v2beta1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -140,12 +143,12 @@ export namespace cloudresourcemanager_v2beta1 { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A Folder in an Organization's resource hierarchy, used to organize that @@ -156,7 +159,7 @@ export namespace cloudresourcemanager_v2beta1 { * Output only. Timestamp when the Folder was created. Assigned by the * server. */ - createTime: string; + createTime?: string; /** * The folder’s display name. A folder’s display name must be unique amongst * its siblings, e.g. no two folders with the same parent can share the same @@ -165,22 +168,22 @@ export namespace cloudresourcemanager_v2beta1 { * no longer than 30 characters. This is captured by the regular expression: * [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. */ - displayName: string; + displayName?: string; /** * Output only. The lifecycle state of the folder. Updates to the * lifecycle_state must be performed via DeleteFolder and UndeleteFolder. */ - lifecycleState: string; + lifecycleState?: string; /** * Output only. The resource name of the Folder. Its format is * `folders/{folder_id}`, for example: "folders/1234". */ - name: string; + name?: string; /** * The Folder’s parent's resource name. Updates to the folder's * parent must be performed via MoveFolder. */ - parent: string; + parent?: string; } /** * Metadata describing a long running folder operation @@ -190,20 +193,20 @@ export namespace cloudresourcemanager_v2beta1 { * The resource name of the folder or organization we are either creating * the folder under or moving the folder to. */ - destinationParent: string; + destinationParent?: string; /** * The display name of the folder. */ - displayName: string; + displayName?: string; /** * The type of this operation. */ - operationType: string; + operationType?: string; /** * The resource name of the folder's parent. Only applicable when the * operation_type is MOVE. */ - sourceParent: string; + sourceParent?: string; } /** * A classification of the Folder Operation error. @@ -212,7 +215,7 @@ export namespace cloudresourcemanager_v2beta1 { /** * The type of operation error experienced. */ - errorMessageId: string; + errorMessageId?: string; } /** * Request message for `GetIamPolicy` method. @@ -226,12 +229,12 @@ export namespace cloudresourcemanager_v2beta1 { * A possibly paginated list of Folders that are direct descendants of the * specified parent resource. */ - folders: Schema$Folder[]; + folders?: Schema$Folder[]; /** * A pagination token returned from a previous call to `ListFolders` that * indicates from where listing should continue. This field is optional. */ - nextPageToken: string; + nextPageToken?: string; } /** * The MoveFolder request message. @@ -242,7 +245,7 @@ export namespace cloudresourcemanager_v2beta1 { * under. Must be of the form `folders/{folder_id}` or * `organizations/{org_id}`. */ - destinationParent: string; + destinationParent?: string; } /** * This resource represents a long-running operation that is the result of a @@ -254,24 +257,24 @@ export namespace cloudresourcemanager_v2beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -281,7 +284,7 @@ export namespace cloudresourcemanager_v2beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -307,12 +310,12 @@ export namespace cloudresourcemanager_v2beta1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -324,11 +327,11 @@ export namespace cloudresourcemanager_v2beta1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A status object which is used as the `metadata` field for the Operation @@ -339,17 +342,17 @@ export namespace cloudresourcemanager_v2beta1 { /** * Creation time of the project creation workflow. */ - createTime: string; + createTime?: string; /** * True if the project can be retrieved using GetProject. No other * operations on the project are guaranteed to work until the project * creation is complete. */ - gettable: boolean; + gettable?: boolean; /** * True if the project creation process is complete. */ - ready: boolean; + ready?: boolean; } /** * The request message for searching folders. @@ -359,12 +362,12 @@ export namespace cloudresourcemanager_v2beta1 { * The maximum number of folders to return in the response. This field is * optional. */ - pageSize: number; + pageSize?: number; /** * A pagination token returned from a previous call to `SearchFolders` that * indicates from where search should continue. This field is optional. */ - pageToken: string; + pageToken?: string; /** * Search criteria used to select the Folders to return. If no search * criteria is specified then all accessible folders will be returned. Query @@ -379,7 +382,7 @@ export namespace cloudresourcemanager_v2beta1 { * lifecycleState=ACTIVE|Active folders whose parent is * "folders/123".| */ - query: string; + query?: string; } /** * The response message for searching folders. @@ -389,12 +392,12 @@ export namespace cloudresourcemanager_v2beta1 { * A possibly paginated folder search results. the specified parent * resource. */ - folders: Schema$Folder[]; + folders?: Schema$Folder[]; /** * A pagination token returned from a previous call to `SearchFolders` that * indicates from where searching should continue. This field is optional. */ - nextPageToken: string; + nextPageToken?: string; } /** * Request message for `SetIamPolicy` method. @@ -406,14 +409,14 @@ export namespace cloudresourcemanager_v2beta1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -455,18 +458,18 @@ export namespace cloudresourcemanager_v2beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message for `TestIamPermissions` method. @@ -478,7 +481,7 @@ export namespace cloudresourcemanager_v2beta1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -488,13 +491,14 @@ export namespace cloudresourcemanager_v2beta1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The UndeleteFolder request message. */ export interface Schema$UndeleteFolderRequest {} + export class Resource$Folders { root: Cloudresourcemanager; constructor(root: Cloudresourcemanager) { @@ -537,26 +541,37 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Folders$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Folders$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -596,25 +611,36 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Folders$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Folders$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -652,23 +678,33 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Folders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Folders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Folders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Folders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -708,26 +744,38 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Folders$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Folders$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -771,28 +819,37 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Folders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Folders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -840,25 +897,37 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - move(params?: any, options?: MethodOptions): AxiosPromise; + move(params?: Params$Resource$Folders$Move, options?: MethodOptions): + AxiosPromise; + move( + params: Params$Resource$Folders$Move, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; move( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Move, + callback: BodyResponseCallback): void; + move(callback: BodyResponseCallback): void; move( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Move| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Move; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Move; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -906,25 +975,36 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Folders$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Folders$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -963,28 +1043,38 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Folders$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$Folders$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1025,26 +1115,38 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Folders$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Folders$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1084,29 +1186,45 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Folders$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Folders$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Folders$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Folders$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Folders$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1150,26 +1268,37 @@ export namespace cloudresourcemanager_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Folders$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + undelete( + params: Params$Resource$Folders$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Folders$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; const parameters = { @@ -1192,4 +1321,186 @@ export namespace cloudresourcemanager_v2beta1 { } } } + + export interface Params$Resource$Folders$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the new Folder's parent. Must be of the form + * `folders/{folder_id}` or `organizations/{org_id}`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Folders$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * the resource name of the Folder to be deleted. Must be of the form + * `folders/{folder_id}`. + */ + name?: string; + } + export interface Params$Resource$Folders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Folder to retrieve. Must be of the form + * `folders/{folder_id}`. + */ + name?: string; + } + export interface Params$Resource$Folders$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Folders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of Folders to return in the response. This field is + * optional. + */ + pageSize?: number; + /** + * A pagination token returned from a previous call to `ListFolders` that + * indicates where this listing should continue from. This field is + * optional. + */ + pageToken?: string; + /** + * The resource name of the Organization or Folder whose Folders are being + * listed. Must be of the form `folders/{folder_id}` or + * `organizations/{org_id}`. Access to this method is controlled by checking + * the `resourcemanager.folders.list` permission on the `parent`. + */ + parent?: string; + /** + * Controls whether Folders in the DELETE_REQUESTED state should be + * returned. Defaults to false. This field is optional. + */ + showDeleted?: boolean; + } + export interface Params$Resource$Folders$Move { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Folder to move. Must be of the form + * folders/{folder_id} + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$MoveFolderRequest; + } + export interface Params$Resource$Folders$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The resource name of the Folder. Its format is + * `folders/{folder_id}`, for example: "folders/1234". + */ + name?: string; + /** + * Fields to be updated. Only the `display_name` can be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Folders$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SearchFoldersRequest; + } + export interface Params$Resource$Folders$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Folders$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Folders$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the Folder to undelete. Must be of the form + * `folders/{folder_id}`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteFolderRequest; + } } diff --git a/src/apis/cloudshell/v1.ts b/src/apis/cloudshell/v1.ts index 67af04028d0..2b7dc1508aa 100644 --- a/src/apis/cloudshell/v1.ts +++ b/src/apis/cloudshell/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudshell_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Shell API * @@ -89,12 +92,12 @@ export namespace cloudshell_v1 { * Required. Full path to the Docker image used to run this environment, * e.g. "gcr.io/dev-con/cloud-devshell:latest". */ - dockerImage: string; + dockerImage?: string; /** * Output only. The environment's identifier, which is always * "default". */ - id: string; + id?: string; /** * Output only. Full name of this resource, in the format * `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is @@ -102,7 +105,7 @@ export namespace cloudshell_v1 { * `{environment_id}` is the identifier of this environment. For example, * `users/someone@example.com/environments/default`. */ - name: string; + name?: string; /** * Output only. Public keys associated with the environment. Clients can * connect to this environment via SSH only if they possess a private key @@ -110,26 +113,26 @@ export namespace cloudshell_v1 { * or removed from the environment using the CreatePublicKey and * DeletePublicKey methods. */ - publicKeys: Schema$PublicKey[]; + publicKeys?: Schema$PublicKey[]; /** * Output only. Host to which clients can connect to initiate SSH sessions * with the environment. */ - sshHost: string; + sshHost?: string; /** * Output only. Port to which clients can connect to initiate SSH sessions * with the environment. */ - sshPort: number; + sshPort?: number; /** * Output only. Username that clients should use when initiating SSH * sessions with the environment. */ - sshUsername: string; + sshUsername?: string; /** * Output only. Current execution state of this environment. */ - state: string; + state?: string; } /** * The response message for Operations.ListOperations. @@ -138,11 +141,11 @@ export namespace cloudshell_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * This resource represents a long-running operation that is the result of a @@ -154,24 +157,24 @@ export namespace cloudshell_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -181,7 +184,7 @@ export namespace cloudshell_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A public SSH key, corresponding to a private SSH key held by the client. @@ -190,11 +193,11 @@ export namespace cloudshell_v1 { /** * Required. Format of this key's content. */ - format: string; + format?: string; /** * Required. Content of this key. */ - key: string; + key?: string; /** * Output only. Full name of this resource, in the format * `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`. @@ -204,7 +207,7 @@ export namespace cloudshell_v1 { * example, * `users/someone@example.com/environments/default/publicKeys/myKey`. */ - name: string; + name?: string; } /** * Message included in the metadata field of operations returned from @@ -214,7 +217,7 @@ export namespace cloudshell_v1 { /** * Current state of the environment being started. */ - state: string; + state?: string; } /** * Message included in the response field of operations returned from @@ -224,7 +227,7 @@ export namespace cloudshell_v1 { /** * Environment that was started. */ - environment: Schema$Environment; + environment?: Schema$Environment; } /** * The `Status` type defines a logical error model that is suitable for @@ -266,20 +269,21 @@ export namespace cloudshell_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Operations { root: Cloudshell; constructor(root: Cloudshell) { @@ -313,25 +317,37 @@ export namespace cloudshell_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -369,25 +385,37 @@ export namespace cloudshell_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -423,23 +451,34 @@ export namespace cloudshell_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -484,28 +523,38 @@ export namespace cloudshell_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -526,4 +575,65 @@ export namespace cloudshell_v1 { } } } + + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index b9f8cf4e826..855f19e5f9e 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudshell_v1alpha1 { + export interface Options extends GlobalOptions { version: 'v1alpha1'; } + /** * Cloud Shell API * @@ -73,7 +76,7 @@ export namespace cloudshell_v1alpha1 { /** * Key that should be added to the environment. */ - key: Schema$PublicKey; + key?: Schema$PublicKey; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -94,12 +97,12 @@ export namespace cloudshell_v1alpha1 { * Required. Full path to the Docker image used to run this environment, * e.g. "gcr.io/dev-con/cloud-devshell:latest". */ - dockerImage: string; + dockerImage?: string; /** * Output only. The environment's identifier, which is always * "default". */ - id: string; + id?: string; /** * Output only. Full name of this resource, in the format * `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is @@ -107,7 +110,7 @@ export namespace cloudshell_v1alpha1 { * `{environment_id}` is the identifier of this environment. For example, * `users/someone@example.com/environments/default`. */ - name: string; + name?: string; /** * Output only. Public keys associated with the environment. Clients can * connect to this environment via SSH only if they possess a private key @@ -115,26 +118,26 @@ export namespace cloudshell_v1alpha1 { * or removed from the environment using the CreatePublicKey and * DeletePublicKey methods. */ - publicKeys: Schema$PublicKey[]; + publicKeys?: Schema$PublicKey[]; /** * Output only. Host to which clients can connect to initiate SSH sessions * with the environment. */ - sshHost: string; + sshHost?: string; /** * Output only. Port to which clients can connect to initiate SSH sessions * with the environment. */ - sshPort: number; + sshPort?: number; /** * Output only. Username that clients should use when initiating SSH * sessions with the environment. */ - sshUsername: string; + sshUsername?: string; /** * Output only. Current execution state of this environment. */ - state: string; + state?: string; } /** * This resource represents a long-running operation that is the result of a @@ -146,24 +149,24 @@ export namespace cloudshell_v1alpha1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -173,7 +176,7 @@ export namespace cloudshell_v1alpha1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A public SSH key, corresponding to a private SSH key held by the client. @@ -182,11 +185,11 @@ export namespace cloudshell_v1alpha1 { /** * Required. Format of this key's content. */ - format: string; + format?: string; /** * Required. Content of this key. */ - key: string; + key?: string; /** * Output only. Full name of this resource, in the format * `users/{owner_email}/environments/{environment_id}/publicKeys/{key_id}`. @@ -196,7 +199,7 @@ export namespace cloudshell_v1alpha1 { * example, * `users/someone@example.com/environments/default/publicKeys/myKey`. */ - name: string; + name?: string; } /** * Message included in the metadata field of operations returned from @@ -206,7 +209,7 @@ export namespace cloudshell_v1alpha1 { /** * Current state of the environment being started. */ - state: string; + state?: string; } /** * Request message for StartEnvironment. @@ -220,7 +223,7 @@ export namespace cloudshell_v1alpha1 { /** * Environment that was started. */ - environment: Schema$Environment; + environment?: Schema$Environment; } /** * The `Status` type defines a logical error model that is suitable for @@ -262,20 +265,21 @@ export namespace cloudshell_v1alpha1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Users { root: Cloudshell; environments: Resource$Users$Environments; @@ -289,6 +293,8 @@ export namespace cloudshell_v1alpha1 { return this.root; } } + + export class Resource$Users$Environments { root: Cloudshell; publicKeys: Resource$Users$Environments$Publickeys; @@ -316,24 +322,35 @@ export namespace cloudshell_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Users$Environments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Users$Environments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Environments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Environments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Environments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Environments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -370,26 +387,39 @@ export namespace cloudshell_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Environments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Environments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Environments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Environments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Environments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Environments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -430,26 +460,39 @@ export namespace cloudshell_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - start(params?: any, options?: MethodOptions): - AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Environments$Start, + options?: MethodOptions): AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Environments$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + start( + params: Params$Resource$Users$Environments$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: Params$Resource$Users$Environments$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Environments$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Environments$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -471,6 +514,59 @@ export namespace cloudshell_v1alpha1 { } } } + + export interface Params$Resource$Users$Environments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the requested resource, for example + * `users/me/environments/default` or + * `users/someone@example.com/environments/default`. + */ + name?: string; + } + export interface Params$Resource$Users$Environments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to be updated, for example + * `users/me/environments/default` or + * `users/someone@example.com/environments/default`. + */ + name?: string; + /** + * Mask specifying which fields in the environment should be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Users$Environments$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource that should be started, for example + * `users/me/environments/default` or + * `users/someone@example.com/environments/default`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StartEnvironmentRequest; + } + export class Resource$Users$Environments$Publickeys { root: Cloudshell; constructor(root: Cloudshell) { @@ -499,26 +595,39 @@ export namespace cloudshell_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Environments$Publickeys$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Users$Environments$Publickeys$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Users$Environments$Publickeys$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Environments$Publickeys$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Environments$Publickeys$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Environments$Publickeys$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -555,25 +664,38 @@ export namespace cloudshell_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Environments$Publickeys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Environments$Publickeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Environments$Publickeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Environments$Publickeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Environments$Publickeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Environments$Publickeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; const parameters = { options: Object.assign( @@ -595,4 +717,32 @@ export namespace cloudshell_v1alpha1 { } } } + + export interface Params$Resource$Users$Environments$Publickeys$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Parent resource name, e.g. `users/me/environments/default`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreatePublicKeyRequest; + } + export interface Params$Resource$Users$Environments$Publickeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the resource to be deleted, e.g. + * `users/me/environments/default/publicKeys/my-key`. + */ + name?: string; + } } diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 3b897de2fda..091e7e105ea 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudtasks_v2beta2 { + export interface Options extends GlobalOptions { version: 'v2beta2'; } + /** * Cloud Tasks API * @@ -75,7 +78,7 @@ export namespace cloudtasks_v2beta2 { * schedule_time returned by LeaseTasks response or RenewLease response. * This restriction is to ensure that your worker currently holds the lease. */ - scheduleTime: string; + scheduleTime?: string; } /** * App Engine HTTP request. The message defines the HTTP request that is sent @@ -108,7 +111,7 @@ export namespace cloudtasks_v2beta2 { * app_engine_routing_override is used for all tasks in the queue, no matter * what the setting is for the task-level app_engine_routing. */ - appEngineRouting: Schema$AppEngineRouting; + appEngineRouting?: Schema$AppEngineRouting; /** * HTTP request headers. This map contains the header field names and * values. Headers can be set when the [task is @@ -138,7 +141,7 @@ export namespace cloudtasks_v2beta2 { * there is a limit on the maximum size of the Task. For more information, * see the CreateTask documentation. */ - headers: any; + headers?: any; /** * The HTTP method to use for the request. The default is POST. The * app's request handler for the task's target URL must be able to @@ -150,14 +153,14 @@ export namespace cloudtasks_v2beta2 { * is written in e.g. [Python Request * Handler](/appengine/docs/python/tools/webapp/requesthandlerclass). */ - httpMethod: string; + httpMethod?: string; /** * Payload. The payload will be sent as the HTTP message body. A message * body, and thus a payload, is allowed only if the HTTP method is POST or * PUT. It is an error to set a data payload on a task with an incompatible * HttpMethod. */ - payload: string; + payload?: string; /** * The relative URL. The relative URL must begin with "/" and * must be a valid HTTP relative URL. It can contain a path and query string @@ -165,7 +168,7 @@ export namespace cloudtasks_v2beta2 { * will be used. No spaces are allowed, and the maximum length allowed is * 2083 characters. */ - relativeUrl: string; + relativeUrl?: string; } /** * App Engine HTTP target. The task will be delivered to the App Engine @@ -183,7 +186,7 @@ export namespace cloudtasks_v2beta2 { * `app_engine_routing_override` is used for all tasks in the queue, no * matter what the setting is for the task-level app_engine_routing. */ - appEngineRoutingOverride: Schema$AppEngineRouting; + appEngineRoutingOverride?: Schema$AppEngineRouting; } /** * App Engine Routing. For more information about services, versions, and @@ -231,7 +234,7 @@ export namespace cloudtasks_v2beta2 { * then the task will be sent to the default version of the default service * when the task is attempted. */ - host: string; + host?: string; /** * App instance. By default, the task is sent to an instance which is * available when the task is attempted. Requests can only be sent to a @@ -243,7 +246,7 @@ export namespace cloudtasks_v2beta2 { * [App Engine Flex request * routing](/appengine/docs/flexible/python/how-requests-are-routed). */ - instance: string; + instance?: string; /** * App service. By default, the task is sent to the service which is the * default service when the task is attempted ("default"). For @@ -254,7 +257,7 @@ export namespace cloudtasks_v2beta2 { * is not parsable, then service, version, and instance are the empty * string. */ - service: string; + service?: string; /** * App version. By default, the task is sent to the version which is the * default version when the task is attempted ("default"). For @@ -265,7 +268,7 @@ export namespace cloudtasks_v2beta2 { * is not parsable, then service, version, and instance are the empty * string. */ - version: string; + version?: string; } /** * The status of a task attempt. @@ -275,23 +278,23 @@ export namespace cloudtasks_v2beta2 { * Output only. The time that this attempt was dispatched. `dispatch_time` * will be truncated to the nearest microsecond. */ - dispatchTime: string; + dispatchTime?: string; /** * Output only. The response from the target for this attempt. If the task * has not been attempted or the task is currently running then the response * status is unset. */ - responseStatus: Schema$Status; + responseStatus?: Schema$Status; /** * Output only. The time that this attempt response was received. * `response_time` will be truncated to the nearest microsecond. */ - responseTime: string; + responseTime?: string; /** * Output only. The time that this attempt was scheduled. `schedule_time` * will be truncated to the nearest microsecond. */ - scheduleTime: string; + scheduleTime?: string; } /** * Associates `members` with a `role`. @@ -304,21 +307,20 @@ export namespace cloudtasks_v2beta2 { * 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, + * represents a specific Google account. For example, `alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * Request message for canceling a lease using CancelLease. @@ -333,13 +335,13 @@ export namespace cloudtasks_v2beta2 { * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task * resource. */ - responseView: string; + responseView?: string; /** * Required. The task's current schedule time, available in the * schedule_time returned by LeaseTasks response or RenewLease response. * This restriction is to ensure that your worker currently holds the lease. */ - scheduleTime: string; + scheduleTime?: string; } /** * Request message for CreateTask. @@ -354,7 +356,7 @@ export namespace cloudtasks_v2beta2 { * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task * resource. */ - responseView: string; + responseView?: string; /** * Required. The task to add. Task names have the following format: * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. @@ -379,7 +381,7 @@ export namespace cloudtasks_v2beta2 { * infrastructure relies on an approximately uniform distribution of task * ids to store and serve tasks efficiently. */ - task: Schema$Task; + task?: Schema$Task; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -414,7 +416,7 @@ export namespace cloudtasks_v2beta2 { * UTF-8 encoded can't be used in the filter and the task's tag will * be displayed as empty in Cloud Tasks. */ - filter: string; + filter?: string; /** * After the worker has successfully finished the work associated with the * task, the worker must call via AcknowledgeTask before the schedule_time. @@ -422,12 +424,12 @@ export namespace cloudtasks_v2beta2 { * another worker can retry it. The maximum lease duration is 1 week. * `lease_duration` will be truncated to the nearest second. */ - leaseDuration: string; + leaseDuration?: string; /** * The maximum number of tasks to lease. The maximum that can be requested * is 1000. */ - maxTasks: number; + maxTasks?: number; /** * The response_view specifies which subset of the Task will be returned. By * default response_view is BASIC; not all information is retrieved by @@ -437,7 +439,7 @@ export namespace cloudtasks_v2beta2 { * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task * resource. */ - responseView: string; + responseView?: string; } /** * Response message for leasing tasks using LeaseTasks. @@ -446,7 +448,7 @@ export namespace cloudtasks_v2beta2 { /** * The leased tasks. */ - tasks: Schema$Task[]; + tasks?: Schema$Task[]; } /** * The response message for Locations.ListLocations. @@ -455,11 +457,11 @@ export namespace cloudtasks_v2beta2 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for ListQueues. @@ -471,11 +473,11 @@ export namespace cloudtasks_v2beta2 { * next_page_token is empty, there are no more results. The page token is * valid for only 2 hours. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of queues. */ - queues: Schema$Queue[]; + queues?: Schema$Queue[]; } /** * Response message for listing tasks using ListTasks. @@ -486,11 +488,11 @@ export namespace cloudtasks_v2beta2 { * results, call ListTasks with this value as the page_token. If the * next_page_token is empty, there are no more results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of tasks. */ - tasks: Schema$Task[]; + tasks?: Schema$Task[]; } /** * A resource that represents Google Cloud Platform location. @@ -500,26 +502,26 @@ export namespace cloudtasks_v2beta2 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: `"us-east1"`. */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` */ - name: string; + name?: string; } /** * Request message for PauseQueue. @@ -550,7 +552,7 @@ export namespace cloudtasks_v2beta2 { * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -562,11 +564,11 @@ export namespace cloudtasks_v2beta2 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * The pull message contains data that can be used by the caller of LeaseTasks @@ -577,7 +579,7 @@ export namespace cloudtasks_v2beta2 { /** * A data payload consumed by the worker to execute the task. */ - payload: string; + payload?: string; /** * The task's tag. Tags allow similar tasks to be processed in a batch. * If you label tasks with a tag, your worker can lease tasks with the same @@ -591,7 +593,7 @@ export namespace cloudtasks_v2beta2 { * UTF-8 encoded, the tag will be empty when the task is returned by Cloud * Tasks. */ - tag: string; + tag?: string; } /** * Pull target. @@ -611,7 +613,7 @@ export namespace cloudtasks_v2beta2 { * App Engine HTTP target. An App Engine queue is a queue that has an * AppEngineHttpTarget. */ - appEngineHttpTarget: Schema$AppEngineHttpTarget; + appEngineHttpTarget?: Schema$AppEngineHttpTarget; /** * The queue name. The queue name must have the following format: * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * @@ -626,11 +628,11 @@ export namespace cloudtasks_v2beta2 { * (-). The maximum length is 100 characters. Caller-specified and required * in CreateQueue, after which it becomes output only. */ - name: string; + name?: string; /** * Pull target. A pull queue is a queue that has a PullTarget. */ - pullTarget: Schema$PullTarget; + pullTarget?: Schema$PullTarget; /** * Output only. The last time this queue was purged. All tasks that were * created before this time were purged. A queue can be purged using @@ -639,7 +641,7 @@ export namespace cloudtasks_v2beta2 { * Purge time will be truncated to the nearest microsecond. Purge time will * be unset if the queue has never been purged. */ - purgeTime: string; + purgeTime?: string; /** * Rate limits for task dispatches. rate_limits and retry_config are * related because they both control task attempts however they control how @@ -650,7 +652,7 @@ export namespace cloudtasks_v2beta2 { * its first attempt fails. That is, retry_config controls task retries * (the second attempt, third attempt, etc). */ - rateLimits: Schema$RateLimits; + rateLimits?: Schema$RateLimits; /** * Settings that determine the retry behavior. * For tasks created using * Cloud Tasks: the queue-level retry settings apply to all tasks in the @@ -661,14 +663,14 @@ export namespace cloudtasks_v2beta2 { * App Engine SDK. See [App Engine * documentation](/appengine/docs/standard/python/taskqueue/push/retrying-tasks). */ - retryConfig: Schema$RetryConfig; + retryConfig?: Schema$RetryConfig; /** * Output only. The state of the queue. `state` can only be changed by * called PauseQueue, ResumeQueue, or uploading * [queue.yaml/xml](/appengine/docs/python/config/queueref). UpdateQueue * cannot be used to change `state`. */ - state: string; + state?: string; } /** * Rate limits. This message determines the maximum rate that tasks can be @@ -698,7 +700,7 @@ export namespace cloudtasks_v2beta2 { * on the value of max_tasks_dispatched_per_second, regardless of whether * max_tasks_dispatched_per_second is updated. */ - maxBurstSize: number; + maxBurstSize?: number; /** * The maximum number of concurrent tasks that Cloud Tasks allows to be * dispatched for this queue. After this threshold has been reached, Cloud @@ -710,7 +712,7 @@ export namespace cloudtasks_v2beta2 { * meaning as [max_concurrent_requests in * queue.yaml/xml](/appengine/docs/standard/python/config/queueref#max_concurrent_requests). */ - maxConcurrentTasks: number; + maxConcurrentTasks?: number; /** * The maximum rate at which tasks are dispatched from this queue. If * unspecified when the queue is created, Cloud Tasks will pick the default. @@ -722,7 +724,7 @@ export namespace cloudtasks_v2beta2 { * same meaning as [rate in * queue.yaml/xml](/appengine/docs/standard/python/config/queueref#rate). */ - maxTasksDispatchedPerSecond: number; + maxTasksDispatchedPerSecond?: number; } /** * Request message for renewing a lease using RenewLease. @@ -733,7 +735,7 @@ export namespace cloudtasks_v2beta2 { * maximum lease duration is 1 week. `lease_duration` will be truncated to * the nearest second. */ - leaseDuration: string; + leaseDuration?: string; /** * The response_view specifies which subset of the Task will be returned. By * default response_view is BASIC; not all information is retrieved by @@ -743,13 +745,13 @@ export namespace cloudtasks_v2beta2 { * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task * resource. */ - responseView: string; + responseView?: string; /** * Required. The task's current schedule time, available in the * schedule_time returned by LeaseTasks response or RenewLease response. * This restriction is to ensure that your worker currently holds the lease. */ - scheduleTime: string; + scheduleTime?: string; } /** * Request message for ResumeQueue. @@ -765,7 +767,7 @@ export namespace cloudtasks_v2beta2 { * task `max_attempts` times (that is, if the first attempt fails, then * there will be `max_attempts - 1` retries). Must be > 0. */ - maxAttempts: number; + maxAttempts?: number; /** * A task will be [scheduled](Task.schedule_time) for retry between * min_backoff and max_backoff duration after it fails, if the queue's @@ -776,7 +778,7 @@ export namespace cloudtasks_v2beta2 { * the same meaning as [max_backoff_seconds in * queue.yaml/xml](/appengine/docs/standard/python/config/queueref#retry_parameters). */ - maxBackoff: string; + maxBackoff?: string; /** * The time between retries will double `max_doublings` times. A task's * retry interval starts at min_backoff, then doubles `max_doublings` times, @@ -793,7 +795,7 @@ export namespace cloudtasks_v2beta2 { * meaning as [max_doublings in * queue.yaml/xml](/appengine/docs/standard/python/config/queueref#retry_parameters). */ - maxDoublings: number; + maxDoublings?: number; /** * If positive, `max_retry_duration` specifies the time limit for retrying a * failed task, measured from when the task was first attempted. Once @@ -806,7 +808,7 @@ export namespace cloudtasks_v2beta2 { * has the same meaning as [task_age_limit in * queue.yaml/xml](/appengine/docs/standard/python/config/queueref#retry_parameters). */ - maxRetryDuration: string; + maxRetryDuration?: string; /** * A task will be [scheduled](Task.schedule_time) for retry between * min_backoff and max_backoff duration after it fails, if the queue's @@ -817,11 +819,11 @@ export namespace cloudtasks_v2beta2 { * the same meaning as [min_backoff_seconds in * queue.yaml/xml](/appengine/docs/standard/python/config/queueref#retry_parameters). */ - minBackoff: string; + minBackoff?: string; /** * If true, then the number of attempts is unlimited. */ - unlimitedAttempts: boolean; + unlimitedAttempts?: boolean; } /** * Request message for forcing a task to run now using RunTask. @@ -836,7 +838,7 @@ export namespace cloudtasks_v2beta2 { * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task * resource. */ - responseView: string; + responseView?: string; } /** * Request message for `SetIamPolicy` method. @@ -848,7 +850,7 @@ export namespace cloudtasks_v2beta2 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * The `Status` type defines a logical error model that is suitable for @@ -890,18 +892,18 @@ export namespace cloudtasks_v2beta2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A unit of scheduled work. @@ -912,12 +914,12 @@ export namespace cloudtasks_v2beta2 { * only if app_engine_http_target is set on the queue. An App Engine task * is a task that has AppEngineHttpRequest set. */ - appEngineHttpRequest: Schema$AppEngineHttpRequest; + appEngineHttpRequest?: Schema$AppEngineHttpRequest; /** * Output only. The time that the task was created. `create_time` will be * truncated to the nearest second. */ - createTime: string; + createTime?: string; /** * The task name. The task name must have the following format: * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` @@ -934,12 +936,12 @@ export namespace cloudtasks_v2beta2 { * The maximum length is 500 characters. Optionally caller-specified in * CreateTask. */ - name: string; + name?: string; /** * LeaseTasks to process the task. Can be set only if pull_target is set on * the queue. A pull task is a task that has PullMessage set. */ - pullMessage: Schema$PullMessage; + pullMessage?: Schema$PullMessage; /** * The time when the task is scheduled to be attempted. For App Engine * queues, this is when the task will be attempted or retried. For pull @@ -949,16 +951,16 @@ export namespace cloudtasks_v2beta2 { * lease_duration. `schedule_time` will be truncated to the nearest * microsecond. */ - scheduleTime: string; + scheduleTime?: string; /** * Output only. The task status. */ - status: Schema$TaskStatus; + status?: Schema$TaskStatus; /** * Output only. The view specifies which subset of the Task has been * returned. */ - view: string; + view?: string; } /** * Status of the task. @@ -968,26 +970,26 @@ export namespace cloudtasks_v2beta2 { * Output only. The number of attempts dispatched. This count includes * tasks which have been dispatched but haven't received a response. */ - attemptDispatchCount: number; + attemptDispatchCount?: number; /** * Output only. The number of attempts which have received a response. This * field is not calculated for [pull * tasks](google.cloud.tasks.v2beta2.PullTaskTarget). */ - attemptResponseCount: number; + attemptResponseCount?: number; /** * Output only. The status of the task's first attempt. Only * dispatch_time will be set. The other AttemptStatus information is not * retained by Cloud Tasks. This field is not calculated for [pull * tasks](google.cloud.tasks.v2beta2.PullTaskTarget). */ - firstAttemptStatus: Schema$AttemptStatus; + firstAttemptStatus?: Schema$AttemptStatus; /** * Output only. The status of the task's last attempt. This field is * not calculated for [pull * tasks](google.cloud.tasks.v2beta2.PullTaskTarget). */ - lastAttemptStatus: Schema$AttemptStatus; + lastAttemptStatus?: Schema$AttemptStatus; } /** * Request message for `TestIamPermissions` method. @@ -999,7 +1001,7 @@ export namespace cloudtasks_v2beta2 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -1009,9 +1011,10 @@ export namespace cloudtasks_v2beta2 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } + export class Resource$Projects { root: Cloudtasks; locations: Resource$Projects$Locations; @@ -1025,6 +1028,8 @@ export namespace cloudtasks_v2beta2 { return this.root; } } + + export class Resource$Projects$Locations { root: Cloudtasks; queues: Resource$Projects$Locations$Queues; @@ -1105,23 +1110,34 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1224,28 +1240,40 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1267,6 +1295,42 @@ export namespace cloudtasks_v2beta2 { } } } + + export interface Params$Resource$Projects$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export class Resource$Projects$Locations$Queues { root: Cloudtasks; tasks: Resource$Projects$Locations$Queues$Tasks; @@ -1361,25 +1425,38 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Queues$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1473,25 +1550,38 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Queues$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1579,23 +1669,34 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Queues$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Queues$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Queues$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1691,26 +1792,39 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Locations$Queues$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Locations$Queues$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1817,26 +1931,39 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Queues$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -1949,25 +2076,38 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Queues$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2063,25 +2203,38 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pause(params?: any, options?: MethodOptions): AxiosPromise; pause( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Pause, + options?: MethodOptions): AxiosPromise; pause( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Pause, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + pause( + params: Params$Resource$Projects$Locations$Queues$Pause, + callback: BodyResponseCallback): void; + pause(callback: BodyResponseCallback): void; + pause( + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Pause| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Pause; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Pause; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2178,25 +2331,38 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - purge(params?: any, options?: MethodOptions): AxiosPromise; purge( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Purge, + options?: MethodOptions): AxiosPromise; + purge( + params: Params$Resource$Projects$Locations$Queues$Purge, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + purge( + params: Params$Resource$Projects$Locations$Queues$Purge, + callback: BodyResponseCallback): void; + purge(callback: BodyResponseCallback): void; purge( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Purge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Purge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Purge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2296,25 +2462,38 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resume(params?: any, options?: MethodOptions): AxiosPromise; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Resume, + options?: MethodOptions): AxiosPromise; + resume( + params: Params$Resource$Projects$Locations$Queues$Resume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resume( + params: Params$Resource$Projects$Locations$Queues$Resume, + callback: BodyResponseCallback): void; + resume(callback: BodyResponseCallback): void; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Resume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Resume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Resume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2413,26 +2592,39 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Locations$Queues$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2531,29 +2723,47 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Locations$Queues$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Queues$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Locations$Queues$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Queues$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2576,6 +2786,214 @@ export namespace cloudtasks_v2beta2 { } } } + + export interface Params$Resource$Projects$Locations$Queues$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The location name in which the queue will be created. For + * example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed + * locations can be obtained by calling Cloud Tasks' implementation of + * ListLocations. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Queue; + } + export interface Params$Resource$Projects$Locations$Queues$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Queues$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the queue. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Queues$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Queues$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * `filter` can be used to specify a subset of queues. Any Queue field can + * be used as a filter and several operators as supported. For example: `<=, + * <, >=, >, !=, =, :`. The filter syntax is the same as described in + * [Stackdriver's Advanced Logs + * Filters](/logging/docs/view/advanced_filters). Sample filter + * "app_engine_http_target: *". Note that using filters might cause fewer + * queues than the requested_page size to be returned. + */ + filter?: string; + /** + * Requested page size. The maximum page size is 9800. If unspecified, the + * page size will be the maximum. Fewer queues than requested might be + * returned, even if more queues exist; use the next_page_token in the + * response to determine if more queues exist. + */ + pageSize?: number; + /** + * A token identifying the page of results to return. To request the first + * page results, page_token must be empty. To request the next page of + * results, page_token must be the value of next_page_token returned from + * the previous call to ListQueues method. It is an error to switch the + * value of the filter while iterating through pages. + */ + pageToken?: string; + /** + * Required. The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID` + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Queues$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The queue name. The queue name must have the following format: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * + * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens + * (-), 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 queue's location. The list + * of available locations can be obtained by calling ListLocations. For + * more information, see https://cloud.google.com/about/locations/. * + * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens + * (-). The maximum length is 100 characters. Caller-specified and required + * in CreateQueue, after which it becomes output only. + */ + name?: string; + /** + * A mask used to specify which fields of the queue are being updated. If + * empty, then all fields will be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Queue; + } + export interface Params$Resource$Projects$Locations$Queues$Pause { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$PauseQueueRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Purge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$PurgeQueueRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Resume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ResumeQueueRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Projects$Locations$Queues$Tasks { root: Cloudtasks; constructor(root: Cloudtasks) { @@ -2667,26 +3085,40 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge(params?: any, options?: MethodOptions): - AxiosPromise; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge, + options?: MethodOptions): AxiosPromise; + acknowledge( + params: Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + acknowledge( + params: Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge, + callback: BodyResponseCallback): void; + acknowledge(callback: BodyResponseCallback): void; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2784,24 +3216,40 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancelLease(params?: any, options?: MethodOptions): - AxiosPromise; cancelLease( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$Cancellease, + options?: MethodOptions): AxiosPromise; + cancelLease( + params: Params$Resource$Projects$Locations$Queues$Tasks$Cancellease, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancelLease( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Tasks$Cancellease, + callback: BodyResponseCallback): void; + cancelLease(callback: BodyResponseCallback): void; + cancelLease( + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Tasks$Cancellease| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Cancellease; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Queues$Tasks$Cancellease; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -2906,23 +3354,39 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Queues$Tasks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Tasks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Tasks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Tasks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3012,25 +3476,39 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Tasks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Queues$Tasks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Tasks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Tasks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3121,21 +3599,34 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Queues$Tasks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Queues$Tasks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Queues$Tasks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Tasks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Tasks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3178,26 +3669,40 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - lease(params?: any, options?: MethodOptions): - AxiosPromise; lease( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$Lease, + options?: MethodOptions): AxiosPromise; + lease( + params: Params$Resource$Projects$Locations$Queues$Tasks$Lease, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; lease( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Tasks$Lease, + callback: BodyResponseCallback): void; + lease(callback: BodyResponseCallback): void; + lease( + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Tasks$Lease| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Lease; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Tasks$Lease; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3308,26 +3813,39 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Queues$Tasks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Tasks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Tasks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Tasks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3425,24 +3943,40 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - renewLease(params?: any, options?: MethodOptions): - AxiosPromise; renewLease( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Queues$Tasks$Renewlease, + options?: MethodOptions): AxiosPromise; renewLease( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Queues$Tasks$Renewlease, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + renewLease( + params: Params$Resource$Projects$Locations$Queues$Tasks$Renewlease, + callback: BodyResponseCallback): void; + renewLease(callback: BodyResponseCallback): void; + renewLease( + paramsOrCallback?: + Params$Resource$Projects$Locations$Queues$Tasks$Renewlease| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Renewlease; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Queues$Tasks$Renewlease; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3551,21 +4085,34 @@ export namespace cloudtasks_v2beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Projects$Locations$Queues$Tasks$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Projects$Locations$Queues$Tasks$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Projects$Locations$Queues$Tasks$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Projects$Locations$Queues$Tasks$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Queues$Tasks$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Queues$Tasks$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; const parameters = { options: Object.assign( @@ -3587,4 +4134,181 @@ export namespace cloudtasks_v2beta2 { } } } + + export interface Params$Resource$Projects$Locations$Queues$Tasks$Acknowledge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$AcknowledgeTaskRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Cancellease { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelLeaseRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue + * must already exist. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateTaskRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + */ + name?: string; + /** + * The response_view specifies which subset of the Task will be returned. By + * default response_view is BASIC; not all information is retrieved by + * default because some data, such as payloads, might be desirable to return + * only when needed because of its large size or because of the sensitivity + * of data that it contains. Authorization for FULL requires + * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task + * resource. + */ + responseView?: string; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Lease { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LeaseTasksRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sort order used for the query. The only fields supported for sorting are + * `schedule_time` and `pull_message.tag`. All results will be returned in + * approximately ascending order. The default ordering is by + * `schedule_time`. + */ + orderBy?: string; + /** + * Requested page size. Fewer tasks than requested might be returned. The + * maximum page size is 1000. If unspecified, the page size will be the + * maximum. Fewer tasks than requested might be returned, even if more tasks + * exist; use next_page_token in the response to determine if more tasks + * exist. + */ + pageSize?: number; + /** + * A token identifying the page of results to return. To request the first + * page results, page_token must be empty. To request the next page of + * results, page_token must be the value of next_page_token returned from + * the previous call to ListTasks method. The page token is valid for only + * 2 hours. + */ + pageToken?: string; + /** + * Required. The queue name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` + */ + parent?: string; + /** + * The response_view specifies which subset of the Task will be returned. By + * default response_view is BASIC; not all information is retrieved by + * default because some data, such as payloads, might be desirable to return + * only when needed because of its large size or because of the sensitivity + * of data that it contains. Authorization for FULL requires + * `cloudtasks.tasks.fullView` [Google IAM](/iam/) permission on the Task + * resource. + */ + responseView?: string; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Renewlease { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RenewLeaseRequest; + } + export interface Params$Resource$Projects$Locations$Queues$Tasks$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The task name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RunTaskRequest; + } } diff --git a/src/apis/cloudtrace/v1.ts b/src/apis/cloudtrace/v1.ts index c52cf0c6d69..2f93f3b3e2b 100644 --- a/src/apis/cloudtrace/v1.ts +++ b/src/apis/cloudtrace/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudtrace_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Stackdriver Trace API * @@ -84,11 +87,11 @@ export namespace cloudtrace_v1 { * and that this value should be passed to the next request to continue * retrieving additional traces. */ - nextPageToken: string; + nextPageToken?: string; /** * List of trace records returned. */ - traces: Schema$Trace[]; + traces?: Schema$Trace[]; } /** * A trace describes how long it takes for an application to perform an @@ -99,16 +102,16 @@ export namespace cloudtrace_v1 { /** * Project ID of the Cloud project where the trace data is stored. */ - projectId: string; + projectId?: string; /** * Collection of spans in the trace. */ - spans: Schema$TraceSpan[]; + spans?: Schema$TraceSpan[]; /** * Globally unique identifier for the trace. This identifier is a 128-bit * numeric value formatted as a 32-byte hex string. */ - traceId: string; + traceId?: string; } /** * List of new or updated traces. @@ -117,7 +120,7 @@ export namespace cloudtrace_v1 { /** * List of traces. */ - traces: Schema$Trace[]; + traces?: Schema$Trace[]; } /** * A span represents a single timed event within a trace. Spans can be nested @@ -130,14 +133,14 @@ export namespace cloudtrace_v1 { /** * End time of the span in nanoseconds from the UNIX epoch. */ - endTime: string; + endTime?: string; /** * Distinguishes between spans generated in a particular context. For * example, two spans with the same name may be distinguished using * `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated * with the span. */ - kind: string; + kind?: string; /** * Collection of labels associated with the span. Label keys must be less * than 128 bytes. Label values must be less than 16 kilobytes (10MB for @@ -154,7 +157,7 @@ export namespace cloudtrace_v1 { * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * * `/stacktrace` * `/tid` */ - labels: any; + labels?: any; /** * Name of the span. Must be less than 128 bytes. The span name is sanitized * and displayed in the Stackdriver Trace tool in the {% dynamic print @@ -163,22 +166,23 @@ export namespace cloudtrace_v1 { * best practice is to use a consistent name, which makes it easier to * correlate cross-trace spans. */ - name: string; + name?: string; /** * ID of the parent span, if any. Optional. */ - parentSpanId: string; + parentSpanId?: string; /** * Identifier for the span. Must be a 64-bit integer other than 0 and unique * within a trace. */ - spanId: string; + spanId?: string; /** * Start time of the span in nanoseconds from the UNIX epoch. */ - startTime: string; + startTime?: string; } + export class Resource$Projects { root: Cloudtrace; traces: Resource$Projects$Traces; @@ -266,26 +270,38 @@ export namespace cloudtrace_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patchTraces(params?: any, options?: MethodOptions): - AxiosPromise; patchTraces( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Patchtraces, + options?: MethodOptions): AxiosPromise; + patchTraces( + params: Params$Resource$Projects$Patchtraces, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patchTraces( + params: Params$Resource$Projects$Patchtraces, + callback: BodyResponseCallback): void; + patchTraces(callback: BodyResponseCallback): void; patchTraces( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Patchtraces| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Patchtraces; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Patchtraces; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign( @@ -307,6 +323,23 @@ export namespace cloudtrace_v1 { } } } + + export interface Params$Resource$Projects$Patchtraces { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the Cloud project where the trace data is stored. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Traces; + } + export class Resource$Projects$Traces { root: Cloudtrace; constructor(root: Cloudtrace) { @@ -388,23 +421,34 @@ export namespace cloudtrace_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Traces$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Traces$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Traces$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Traces$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Traces$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Traces$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign( @@ -513,26 +557,39 @@ export namespace cloudtrace_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Traces$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Traces$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Traces$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Traces$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Traces$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Traces$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign( @@ -554,4 +611,91 @@ export namespace cloudtrace_v1 { } } } + + export interface Params$Resource$Projects$Traces$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the Cloud project where the trace data is stored. + */ + projectId?: string; + /** + * ID of the trace to return. + */ + traceId?: string; + } + export interface Params$Resource$Projects$Traces$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * End of the time interval (inclusive) during which the trace data was + * collected from the application. + */ + endTime?: string; + /** + * An optional filter against labels for the request. By default, searches + * use prefix matching. To specify exact match, prepend a plus symbol (`+`) + * to the search term. Multiple terms are ANDed. Syntax: * + * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root span + * starts with `NAME_PREFIX`. * `+root:NAME` or `+NAME`: Return traces + * where any root span's name is exactly `NAME`. * `span:NAME_PREFIX`: + * Return traces where any span starts with `NAME_PREFIX`. * + * `+span:NAME`: Return traces where any span's name is exactly `NAME`. + * * `latency:DURATION`: Return traces whose overall latency is greater or + * equal to than `DURATION`. Accepted units are nanoseconds (`ns`), + * milliseconds (`ms`), and seconds (`s`). Default is `ms`. For example, + * `latency:24ms` returns traces whose overall latency is greater than + * or equal to 24 milliseconds. * `label:LABEL_KEY`: Return all traces + * containing the specified label key (exact match, case-sensitive) + * regardless of the key:value pair's value (including empty values). * + * `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified + * label key (exact match, case-sensitive) whose value starts with + * `VALUE_PREFIX`. Both a key and a value must be specified. * + * `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair exactly + * matching the specified text. Both a key and a value must be specified. * + * `method:VALUE`: Equivalent to `/http/method:VALUE`. * `url:VALUE`: + * Equivalent to `/http/url:VALUE`. + */ + filter?: string; + /** + * Field used to sort the returned traces. Optional. Can be one of the + * following: * `trace_id` * `name` (`name` field of root span in the + * trace) * `duration` (difference between `end_time` and `start_time` + * fields of the root span) * `start` (`start_time` field of the root + * span) Descending order can be specified by appending `desc` to the sort + * field (for example, `name desc`). Only one sort field is permitted. + */ + orderBy?: string; + /** + * Maximum number of traces to return. If not specified or <= 0, the + * implementation selects a reasonable value. The implementation may return + * fewer traces than the requested page size. Optional. + */ + pageSize?: number; + /** + * Token identifying the page of results to return. If provided, use the + * value of the `next_page_token` field from a previous request. Optional. + */ + pageToken?: string; + /** + * ID of the Cloud project where the trace data is stored. + */ + projectId?: string; + /** + * Start of the time interval (inclusive) during which the trace data was + * collected from the application. + */ + startTime?: string; + /** + * Type of data returned for traces in the list. Optional. Default is + * `MINIMAL`. + */ + view?: string; + } } diff --git a/src/apis/cloudtrace/v2.ts b/src/apis/cloudtrace/v2.ts index d108a1dc36d..4cbfad54730 100644 --- a/src/apis/cloudtrace/v2.ts +++ b/src/apis/cloudtrace/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace cloudtrace_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Stackdriver Trace API * @@ -75,12 +78,12 @@ export namespace cloudtrace_v2 { * A set of attributes on the annotation. You can have up to 4 attributes * per Annotation. */ - attributes: Schema$Attributes; + attributes?: Schema$Attributes; /** * A user-supplied message describing the event. The maximum length for the * description is 256 bytes. */ - description: Schema$TruncatableString; + description?: Schema$TruncatableString; } /** * A set of attributes, each in the format `[KEY]:[VALUE]`. @@ -94,13 +97,13 @@ export namespace cloudtrace_v2 { * "/http/request_bytes": 300 "abc.com/myattribute": * true */ - attributeMap: any; + attributeMap?: any; /** * The number of attributes that were discarded. Attributes can be discarded * because their keys are too long or because there are too many attributes. * If this value is 0 then all attributes are valid. */ - droppedAttributesCount: number; + droppedAttributesCount?: number; } /** * The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute. @@ -109,15 +112,15 @@ export namespace cloudtrace_v2 { /** * A Boolean value represented by `true` or `false`. */ - boolValue: boolean; + boolValue?: boolean; /** * A 64-bit signed integer. */ - intValue: string; + intValue?: string; /** * A string up to 256 bytes long. */ - stringValue: Schema$TruncatableString; + stringValue?: Schema$TruncatableString; } /** * The request message for the `BatchWriteSpans` method. @@ -127,7 +130,7 @@ export namespace cloudtrace_v2 { * A list of new spans. The span names must not match existing spans, or the * results are undefined. */ - spans: Schema$Span[]; + spans?: Schema$Span[]; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -148,19 +151,19 @@ export namespace cloudtrace_v2 { * A set of attributes on the link. You have have up to 32 attributes per * link. */ - attributes: Schema$Attributes; + attributes?: Schema$Attributes; /** * The [SPAN_ID] for a span within a trace. */ - spanId: string; + spanId?: string; /** * The [TRACE_ID] for a trace within a project. */ - traceId: string; + traceId?: string; /** * The relationship of the current span relative to the linked span. */ - type: string; + type?: string; } /** * A collection of links, which are references from this span to a span in the @@ -171,11 +174,11 @@ export namespace cloudtrace_v2 { * The number of dropped links after the maximum size was enforced. If this * value is 0, then no links were dropped. */ - droppedLinksCount: number; + droppedLinksCount?: number; /** * A collection of links. */ - link: Schema$Link[]; + link?: Schema$Link[]; } /** * An event describing a message sent/received between Spans. @@ -185,21 +188,21 @@ export namespace cloudtrace_v2 { * The number of compressed bytes sent or received. If missing assumed to be * the same size as uncompressed. */ - compressedSizeBytes: string; + compressedSizeBytes?: string; /** * An identifier for the MessageEvent's message that can be used to * match SENT and RECEIVED MessageEvents. It is recommended to be unique * within a Span. */ - id: string; + id?: string; /** * Type of MessageEvent. Indicates whether the message was sent or received. */ - type: string; + type?: string; /** * The number of uncompressed bytes sent or received. */ - uncompressedSizeBytes: string; + uncompressedSizeBytes?: string; } /** * Binary module. @@ -209,12 +212,12 @@ export namespace cloudtrace_v2 { * A unique identifier for the module, usually a hash of its contents (up to * 128 bytes). */ - buildId: Schema$TruncatableString; + buildId?: Schema$TruncatableString; /** * For example: main binary, kernel modules, and dynamic libraries such as * libc.so, sharedlib.so (up to 256 bytes). */ - module: Schema$TruncatableString; + module?: Schema$TruncatableString; } /** * A span represents a single operation within a trace. Spans can be nested to @@ -229,12 +232,12 @@ export namespace cloudtrace_v2 { * A set of attributes on the span. You can have up to 32 attributes per * span. */ - attributes: Schema$Attributes; + attributes?: Schema$Attributes; /** * An optional number of child spans that were generated while this span was * active. If set, allows implementation to detect missing child spans. */ - childSpanCount: number; + childSpanCount?: number; /** * A description of the span's operation (up to 128 bytes). Stackdriver * Trace displays the description in the {% dynamic print @@ -244,17 +247,17 @@ export namespace cloudtrace_v2 { * within an application and at the same call point. This makes it easier to * correlate spans in different traces. */ - displayName: Schema$TruncatableString; + displayName?: Schema$TruncatableString; /** * The end time of the span. On the client side, this is the time kept by * the local machine where the span execution ends. On the server side, this * is the time when the server application handler stops running. */ - endTime: string; + endTime?: string; /** * Links associated with the span. You can have up to 128 links per Span. */ - links: Schema$Links; + links?: Schema$Links; /** * The resource name of the span in the following format: * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique @@ -263,42 +266,42 @@ export namespace cloudtrace_v2 { * within a trace; it is a 16-character hexadecimal encoding of an 8-byte * array. */ - name: string; + name?: string; /** * The [SPAN_ID] of this span's parent span. If this is a root span, * then this field must be empty. */ - parentSpanId: string; + parentSpanId?: string; /** * (Optional) Set this parameter to indicate whether this span is in the * same process as its parent. If you do not set this parameter, Stackdriver * Trace is unable to take advantage of this helpful information. */ - sameProcessAsParentSpan: boolean; + sameProcessAsParentSpan?: boolean; /** * The [SPAN_ID] portion of the span's resource name. */ - spanId: string; + spanId?: string; /** * Stack trace captured at the start of the span. */ - stackTrace: Schema$StackTrace; + stackTrace?: Schema$StackTrace; /** * The start time of the span. On the client side, this is the time kept by * the local machine where the span execution starts. On the server side, * this is the time when the server's application handler starts * running. */ - startTime: string; + startTime?: string; /** * An optional final status for this span. */ - status: Schema$Status; + status?: Schema$Status; /** * A set of time events. You can have up to 32 annotations and 128 message * events per span. */ - timeEvents: Schema$TimeEvents; + timeEvents?: Schema$TimeEvents; } /** * Represents a single stack frame in a stack trace. @@ -308,35 +311,35 @@ export namespace cloudtrace_v2 { * The column number where the function call appears, if available. This is * important in JavaScript because of its anonymous functions. */ - columnNumber: string; + columnNumber?: string; /** * The name of the source file where the function call appears (up to 256 * bytes). */ - fileName: Schema$TruncatableString; + fileName?: Schema$TruncatableString; /** * The fully-qualified name that uniquely identifies the function or method * that is active in this frame (up to 1024 bytes). */ - functionName: Schema$TruncatableString; + functionName?: Schema$TruncatableString; /** * The line number in `file_name` where the function call appears. */ - lineNumber: string; + lineNumber?: string; /** * The binary module from where the code was loaded. */ - loadModule: Schema$Module; + loadModule?: Schema$Module; /** * An un-mangled function name, if `function_name` is * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can * be fully-qualified (up to 1024 bytes). */ - originalFunctionName: Schema$TruncatableString; + originalFunctionName?: Schema$TruncatableString; /** * The version of the deployed source code (up to 128 bytes). */ - sourceVersion: Schema$TruncatableString; + sourceVersion?: Schema$TruncatableString; } /** * A collection of stack frames, which can be truncated. @@ -346,11 +349,11 @@ export namespace cloudtrace_v2 { * The number of stack frames that were dropped because there were too many * stack frames. If this value is 0, then no stack frames were dropped. */ - droppedFramesCount: number; + droppedFramesCount?: number; /** * Stack frames in this call stack. */ - frame: Schema$StackFrame[]; + frame?: Schema$StackFrame[]; } /** * A call stack appearing in a trace. @@ -359,7 +362,7 @@ export namespace cloudtrace_v2 { /** * Stack frames in this stack trace. A maximum of 128 frames are allowed. */ - stackFrames: Schema$StackFrames; + stackFrames?: Schema$StackFrames; /** * The hash ID is used to conserve network bandwidth for duplicate stack * traces within a single trace. Often multiple spans will have identical @@ -368,7 +371,7 @@ export namespace cloudtrace_v2 { * spans within the same request can refer to that stack trace by only * setting `stackTraceHashId`. */ - stackTraceHashId: string; + stackTraceHashId?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -410,18 +413,18 @@ export namespace cloudtrace_v2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A time-stamped annotation or message event in the Span. @@ -430,15 +433,15 @@ export namespace cloudtrace_v2 { /** * Text annotation with a set of attributes. */ - annotation: Schema$Annotation; + annotation?: Schema$Annotation; /** * An event describing a message sent/received between Spans. */ - messageEvent: Schema$MessageEvent; + messageEvent?: Schema$MessageEvent; /** * The timestamp indicating the time the event occurred. */ - time: string; + time?: string; } /** * A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation on @@ -450,16 +453,16 @@ export namespace cloudtrace_v2 { * The number of dropped annotations in all the included time events. If the * value is 0, then no annotations were dropped. */ - droppedAnnotationsCount: number; + droppedAnnotationsCount?: number; /** * The number of dropped message events in all the included time events. If * the value is 0, then no message events were dropped. */ - droppedMessageEventsCount: number; + droppedMessageEventsCount?: number; /** * A collection of `TimeEvent`s. */ - timeEvent: Schema$TimeEvent[]; + timeEvent?: Schema$TimeEvent[]; } /** * Represents a string that might be shortened to a specified length. @@ -469,7 +472,7 @@ export namespace cloudtrace_v2 { * The number of bytes removed from the original string. If this value is 0, * then the string was not shortened. */ - truncatedByteCount: number; + truncatedByteCount?: number; /** * The shortened string. For example, if the original string is 500 bytes * long and the limit of the string is 128 bytes, then `value` contains the @@ -478,9 +481,10 @@ export namespace cloudtrace_v2 { * string, then the length of the shortened string might be less than the * size limit. */ - value: string; + value?: string; } + export class Resource$Projects { root: Cloudtrace; traces: Resource$Projects$Traces; @@ -494,6 +498,8 @@ export namespace cloudtrace_v2 { return this.root; } } + + export class Resource$Projects$Traces { root: Cloudtrace; spans: Resource$Projects$Traces$Spans; @@ -522,26 +528,38 @@ export namespace cloudtrace_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchWrite(params?: any, options?: MethodOptions): - AxiosPromise; batchWrite( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Traces$Batchwrite, + options?: MethodOptions): AxiosPromise; + batchWrite( + params: Params$Resource$Projects$Traces$Batchwrite, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + batchWrite( + params: Params$Resource$Projects$Traces$Batchwrite, + callback: BodyResponseCallback): void; + batchWrite(callback: BodyResponseCallback): void; batchWrite( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Traces$Batchwrite| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Traces$Batchwrite; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Traces$Batchwrite; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign( @@ -563,6 +581,24 @@ export namespace cloudtrace_v2 { } } } + + export interface Params$Resource$Projects$Traces$Batchwrite { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the project where the spans belong. The format is + * `projects/[PROJECT_ID]`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchWriteSpansRequest; + } + export class Resource$Projects$Traces$Spans { root: Cloudtrace; constructor(root: Cloudtrace) { @@ -588,24 +624,38 @@ export namespace cloudtrace_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createSpan(params?: any, options?: MethodOptions): - AxiosPromise; createSpan( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Traces$Spans$Createspan, + options?: MethodOptions): AxiosPromise; + createSpan( + params: Params$Resource$Projects$Traces$Spans$Createspan, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; createSpan( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Traces$Spans$Createspan, + callback: BodyResponseCallback): void; + createSpan(callback: BodyResponseCallback): void; + createSpan( + paramsOrCallback?: Params$Resource$Projects$Traces$Spans$Createspan| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Traces$Spans$Createspan; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Traces$Spans$Createspan; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; const parameters = { options: Object.assign( @@ -626,4 +676,25 @@ export namespace cloudtrace_v2 { } } } + + export interface Params$Resource$Projects$Traces$Spans$Createspan { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the span in the following format: + * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique + * identifier for a trace within a project; it is a 32-character hexadecimal + * encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span + * within a trace; it is a 16-character hexadecimal encoding of an 8-byte + * array. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Span; + } } diff --git a/src/apis/composer/v1beta1.ts b/src/apis/composer/v1beta1.ts new file mode 100644 index 00000000000..4d1b82dcc1c --- /dev/null +++ b/src/apis/composer/v1beta1.ts @@ -0,0 +1,1255 @@ +/** + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; + +import {GoogleApis} from '../..'; +import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; +import {createAPIRequest} from '../../lib/apirequest'; + +// TODO: We will eventually get the `any` in here cleared out, but in the +// interim we want to turn on no-implicit-any. + +// tslint:disable: no-any +// tslint:disable: class-name +// tslint:disable: variable-name +// tslint:disable: jsdoc-format +// tslint:disable: no-namespace + +export namespace composer_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + + /** + * Cloud Composer API + * + * Manages Apache Airflow environments on Google Cloud Platform. + * + * @example + * const google = require('googleapis'); + * const composer = google.composer('v1beta1'); + * + * @namespace composer + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Composer + */ + export class Composer { + _options: GlobalOptions; + google: GoogleApis; + root = this; + + projects: Resource$Projects; + + constructor(options: GlobalOptions, google: GoogleApis) { + this._options = options || {}; + this.google = google; + this.getRoot.bind(this); + + this.projects = new Resource$Projects(this); + } + + getRoot() { + return this.root; + } + } + + /** + * A generic empty message that you can re-use to avoid defining duplicated + * empty messages in your APIs. A typical example is to use it as the request + * or the response type of an API method. For instance: service Foo { rpc + * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON + * representation for `Empty` is empty JSON object `{}`. + */ + export interface Schema$Empty {} + /** + * An environment for running orchestration tasks. + */ + export interface Schema$Environment { + /** + * Configuration parameters for this environment. + */ + config?: Schema$EnvironmentConfig; + /** + * Output only. The time at which this environment was created. + */ + createTime?: string; + /** + * Optional. User-defined labels for this environment. The labels map can + * contain no more than 64 entries. Entries of the labels map are UTF8 + * strings that comply with the following restrictions: * Keys must conform + * to regexp: \p{Ll}\p{Lo}{0,62} * Values must conform to regexp: + * [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally + * constrained to be <= 128 bytes in size. + */ + labels?: any; + /** + * The resource name of the environment, in the form: + * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + */ + name?: string; + /** + * The current state of the environment. + */ + state?: string; + /** + * Output only. The time at which this environment was last modified. + */ + updateTime?: string; + /** + * Output only. The UUID (Universally Unique IDentifier) associated with + * this environment. This value is generated when the environment is + * created. + */ + uuid?: string; + } + /** + * Configuration information for an environment. + */ + export interface Schema$EnvironmentConfig { + /** + * The URI of the Apache Airflow Web UI hosted within this environment (see + * [Airflow web + * interface](/composer/docs/how-to/accessing/airflow-web-interface)). + */ + airflowUri?: string; + /** + * Output only. The Cloud Storage prefix of the DAGs for this environment. + * Although Cloud Storage objects reside in a flat namespace, a hierarchical + * file tree can be simulated using "/"-delimited object name + * prefixes. DAG objects for this environment reside in a simulated + * directory with the given prefix. + */ + dagGcsPrefix?: string; + /** + * Output only. The Kubernetes Engine cluster used to run this environment. + */ + gkeCluster?: string; + /** + * The configuration used for the Container Engine cluster. + */ + nodeConfig?: Schema$NodeConfig; + /** + * The number of nodes in the Container Engine cluster that will be used to + * run this environment. + */ + nodeCount?: number; + /** + * The config settings for software inside the environment. + */ + softwareConfig?: Schema$SoftwareConfig; + } + /** + * The environments in a project and location. + */ + export interface Schema$ListEnvironmentsResponse { + /** + * The list of environments returned by a ListEnvironmentsRequest. + */ + environments?: Schema$Environment[]; + /** + * The page token used to query for the next page if one exists + */ + nextPageToken?: string; + } + /** + * The response message for Operations.ListOperations. + */ + export interface Schema$ListOperationsResponse { + /** + * The standard List next-page token. + */ + nextPageToken?: string; + /** + * A list of operations that matches the specified filter in the request. + */ + operations?: Schema$Operation[]; + } + /** + * The configuration information for the Container Engine nodes running the + * Apache Airflow software. + */ + export interface Schema$NodeConfig { + /** + * Optional. The disk size in GB used for node VMs. Minimum is 10GB. If + * unspecified, defaults to 100GB. Cannot be updated. + */ + diskSizeGb?: number; + /** + * Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which + * to deploy the VMs used to run the Apache Airflow software, specified as a + * relative resource + * name](https://cloud.google.com/apis/design/resource_names#relative_resource_name). + * For example: `projects/{projectId}/zones/{zoneId}`. This `location` must + * belong to the enclosing environment's project and location. If both + * this field and `nodeConfig.machineType` are specified, + * `nodeConfig.machineType` must belong to this `location`; if both are + * unspecified, the service will pick a zone in the Compute Engine region + * corresponding to the Cloud Composer location and propagate that choice to + * both fields. If exactly one of this field and `nodeConfig.machineType` is + * specified, the location information from the specified field will be + * propagated to the unspecified field. + */ + location?: string; + /** + * Optional. The Google Compute Engine [machine type]( + * /compute/docs/machine-types) used for cluster instances, specified as a + * [relative resource name]( + * https://cloud.google.com/apis/design/resource_names#relative_resource_name). + * For example: + * `projects/{projectId}/zones/{zoneId}/machineTypes/{machineTypeId}`. The + * `machineType` must belong to the enclosing environment's project and + * location. If both this field and `nodeConfig.location` are specified, + * this `machineType` must belong to the `nodeConfig.location`; if both are + * unspecified, the service will pick a zone in the Compute Engine region + * corresponding to the Cloud Composer location and propagate that choice to + * both fields. If exactly one of this field and `nodeConfig.location` is + * specified, the location information from the specified field will be + * propagated to the unspecified field. Furthermore, if this field is + * unspecified, the `machineTypeId` defaults to `n1-standard-1`. + */ + machineType?: string; + /** + * Optional. The Compute Engine network to be used for machine + * communications, specified as a [relative resource name]( + * https://cloud.google.com/apis/design/resource_names#relative_resource_name). + * For example: `projects/{projectId}/global/networks/{networkId}`. [Shared + * VPC](/vpc/docs/shared-vpc) is not currently supported. The network must + * belong to the environment's project. If unspecified, the + * "default" network ID in the environment's project is used. + * If a "Custom Subnet Network" (see [Using + * Subnetworks](/compute/docs/subnetworks) for more information) is + * provided, `nodeConfig.subnetwork` must also be provided. + */ + network?: string; + /** + * Optional. The set of Google API scopes to be made available on all of the + * node VMs. If `oauth_scopes` is empty, defaults to + * ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be + * updated. + */ + oauthScopes?: string[]; + /** + * Optional. The Google Cloud Platform Service Account to be used by the + * node VMs. If a service account is not specified, the "default" + * Compute Engine service account is used. Cannot be updated. + */ + serviceAccount?: string; + /** + * Optional. The Compute Engine subnetwork to be used for machine + * communications, specified as a [relative resource name]( + * https://cloud.google.com/apis/design/resource_names#relative_resource_name). + * For example: + * `projects/{projectId}/regions/{regionId}/subnetworks/{subnetworkId}` If + * a subnetwork is provided, `nodeConfig.network` must also be provided, and + * the subnetwork must belong to the enclosing environment's project and + * location. + */ + subnetwork?: string; + /** + * Optional. The list of instance tags applied to all node VMs. Tags are + * used to identify valid sources or targets for network firewalls. Each tag + * within the list must comply with + * [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Cannot be updated. + */ + tags?: string[]; + } + /** + * This resource represents a long-running operation that is the result of a + * network API call. + */ + export interface Schema$Operation { + /** + * If the value is `false`, it means the operation is still in progress. If + * `true`, the operation is completed, and either `error` or `response` is + * available. + */ + done?: boolean; + /** + * The error result of the operation in case of failure or cancellation. + */ + error?: Schema$Status; + /** + * Service-specific metadata associated with the operation. It typically + * contains progress information and common metadata such as create time. + * Some services might not provide such metadata. Any method that returns a + * long-running operation should document the metadata type, if any. + */ + metadata?: any; + /** + * The server-assigned name, which is only unique within the same service + * that originally returns it. If you use the default HTTP mapping, the + * `name` should have the format of `operations/some/unique/name`. + */ + name?: string; + /** + * The normal response of the operation in case of success. If the original + * method returns no data on success, such as `Delete`, the response is + * `google.protobuf.Empty`. If the original method is standard + * `Get`/`Create`/`Update`, the response should be the resource. For other + * methods, the response should have the type `XxxResponse`, where `Xxx` is + * the original method name. For example, if the original method name is + * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + */ + response?: any; + } + /** + * Metadata describing an operation. + */ + export interface Schema$OperationMetadata { + /** + * Output only. The time the operation was submitted to the server. + */ + createTime?: string; + /** + * Output only. The time when the operation terminated, regardless of its + * success. This field is unset if the operation is still ongoing. + */ + endTime?: string; + /** + * Output only. The type of operation being performed. + */ + operationType?: string; + /** + * Output only. The resource being operated on, as a [relative resource + * name]( /apis/design/resource_names#relative_resource_name). + */ + resource?: string; + /** + * Output only. The UUID of the resource being operated on. + */ + resourceUuid?: string; + /** + * Output only. The current operation state. + */ + state?: string; + } + /** + * Specifies the selection and config of software inside the environment. + */ + export interface Schema$SoftwareConfig { + /** + * Optional. Apache Airflow configuration properties to override. Property + * keys contain the section and property name, separated by a hyphen, for + * example `core-dags_are_paused_at_creation`. Sections must not contain + * hyphens ("-"), opening square brackets ("["), or + * closing square brackets ("]"). The name must be non-empty and + * must not contain an equals sign ("=") or semicolon + * (";"). The section as well as the name must not contain a + * period ("."). Apache Airflow configuration property names must + * be written in + * [snake_case](https://www.google.com/url?sa=D&q=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FSnake_case). + * Property values can contain any character and be written in any + * lower/upper case format. Certain Apache Airflow configuration property + * values are + * [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations#airflow_configuration_blacklists) + * and cannot be overridden. + */ + airflowConfigOverrides?: any; + /** + * Optional. Additional environment variables to provide to the Apache + * Airflow scheduler, worker, and webserver processes. Environment variable + * names must match the regular expression `a-zA-Z_*`. Furthermore, they + * cannot specify Apache Airflow software configuration overrides (i.e., + * match the regular expression `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`); nor can + * they take any of the following reserved values: * `AIRFLOW_HOME` * + * `C_FORCE_ROOT` * `CONTAINER_NAME` * `DAGS_FOLDER` * `GCP_PROJECT` * + * `GCS_BUCKET` * `GKE_CLUSTER_NAME` * `SQL_DATABASE` * `SQL_INSTANCE` * + * `SQL_PASSWORD` * `SQL_PROJECT` * `SQL_REGION` * `SQL_USER` + */ + envVariables?: any; + /** + * Output only. The version of the software running in the environment. This + * encapsulates both the version of Cloud Composer functionality and the + * version of Apache Airflow. It must match the regular expression + * `composer-[0-9]+\.[0-9]+(\.[0-9]+)?-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. + * The Cloud Composer portion of the version is a [semantic + * version](https://semver.org). The portion of the image version following + * <em>airflow-</em> is an official Apache Airflow repository + * [release name](https://github.com/apache/incubator-airflow/releases). See + * also [Release Notes](/composer/docs/release-notes). + */ + imageVersion?: string; + /** + * Optional. Custom Python Package Index (PyPI) packages to be installed in + * the environment. Keys refer to the lowercase package name such as + * `numpy` and values are the lowercase extras and version specifier such as + * `==1.12.0`, `[devel,gcp_api]`, or `[devel]>=1.8.2, <1.9.2`. To + * specify a package without pinning it to a version specifier, use the + * empty string as the value. + */ + pypiPackages?: any; + } + /** + * The `Status` type defines a logical error model that is suitable for + * different programming environments, including REST APIs and RPC APIs. It is + * used by [gRPC](https://github.com/grpc). The error model is designed to be: + * - Simple to use and understand for most users - Flexible enough to meet + * unexpected needs # Overview The `Status` message contains three pieces of + * data: error code, error message, and error details. The error code should + * be an enum value of google.rpc.Code, but it may accept additional error + * codes if needed. The error message should be a developer-facing English + * message that helps developers *understand* and *resolve* the error. If a + * localized user-facing error message is needed, put the localized message in + * the error details or localize it in the client. The optional error details + * may contain arbitrary information about the error. There is a predefined + * set of error detail types in the package `google.rpc` that can be used for + * common error conditions. # Language mapping The `Status` message is the + * logical representation of the error model, but it is not necessarily the + * actual wire format. When the `Status` message is exposed in different + * client libraries and different wire protocols, it can be mapped + * differently. For example, it will likely be mapped to some exceptions in + * Java, but more likely mapped to some error codes in C. # Other uses The + * error model and the `Status` message can be used in a variety of + * environments, either with or without APIs, to provide a consistent + * developer experience across different environments. Example uses of this + * error model include: - Partial errors. If a service needs to return + * partial errors to the client, it may embed the `Status` in the normal + * response to indicate the partial errors. - Workflow errors. A typical + * workflow has multiple steps. Each step may have a `Status` message for + * error reporting. - Batch operations. If a client uses batch request and + * batch response, the `Status` message should be used directly inside + * batch response, one for each error sub-response. - Asynchronous + * operations. If an API call embeds asynchronous operation results in its + * response, the status of those operations should be represented directly + * using the `Status` message. - Logging. If some API errors are stored in + * logs, the message `Status` could be used directly after any stripping + * needed for security/privacy reasons. + */ + export interface Schema$Status { + /** + * The status code, which should be an enum value of google.rpc.Code. + */ + code?: number; + /** + * A list of messages that carry the error details. There is a common set + * of message types for APIs to use. + */ + details?: any[]; + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * google.rpc.Status.details field, or localized by the client. + */ + message?: string; + } + + + export class Resource$Projects { + root: Composer; + locations: Resource$Projects$Locations; + constructor(root: Composer) { + this.root = root; + this.getRoot.bind(this); + this.locations = new Resource$Projects$Locations(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Locations { + root: Composer; + environments: Resource$Projects$Locations$Environments; + operations: Resource$Projects$Locations$Operations; + constructor(root: Composer) { + this.root = root; + this.getRoot.bind(this); + this.environments = new Resource$Projects$Locations$Environments(root); + this.operations = new Resource$Projects$Locations$Operations(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Locations$Environments { + root: Composer; + constructor(root: Composer) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * composer.projects.locations.environments.create + * @desc Create a new environment. + * @alias composer.projects.locations.environments.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The parent must be of the form `projects/{projectId}/locations/{locationId}`. + * @param {().Environment} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + create( + params?: Params$Resource$Projects$Locations$Environments$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Environments$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Environments$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Environments$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Environments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Environments$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/environments') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * composer.projects.locations.environments.delete + * @desc Delete an environment. + * @alias composer.projects.locations.environments.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The environment to delete, in the form: `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Projects$Locations$Environments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Environments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Environments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Environments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Environments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Environments$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * composer.projects.locations.environments.get + * @desc Get an existing environment. + * @alias composer.projects.locations.environments.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the environment to get, in the form: `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Locations$Environments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Environments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Environments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Environments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Environments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Environments$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * composer.projects.locations.environments.list + * @desc List environments. + * @alias composer.projects.locations.environments.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize The maximum number of environments to return. + * @param {string=} params.pageToken The next_page_token value returned from a previous List request, if any. + * @param {string} params.parent List environments in the given project and location, in the form: `projects/{projectId}/locations/{locationId}` + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Environments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Environments$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Environments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Environments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Environments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Environments$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/environments') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * composer.projects.locations.environments.patch + * @desc Update an environment. + * @alias composer.projects.locations.environments.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The relative resource name of the environment to update, in the form: `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + * @param {string=} params.updateMask Required. A comma-separated list of paths, relative to `Environment`, of fields to update. For example, to set the version of scikit-learn to install in the environment to 0.19.0 and to remove an existing installation of argparse, the `updateMask` parameter would include the following two `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and "config.softwareConfig.pypiPackages.argparse". The included patch environment would specify the scikit-learn version as follows: { "config":{ "softwareConfig":{ "pypiPackages":{ "scikit-learn":"==0.19.0" } } } } Note that in the above example, any existing PyPI packages other than scikit-learn and argparse will be unaffected. Only one update type may be included in a single request's `updateMask`. For example, one cannot update both the PyPI packages and labels in the same request. However, it is possible to update multiple members of a map field simultaneously in the same request. For example, to set the labels "label1" and "label2" while clearing "label3" (assuming it already exists), one can provide the paths "labels.label1", "labels.label2", and "labels.label3" and populate the patch environment as follows: { "labels":{ "label1":"new-label1-value" "label2":"new-label2-value" } } Note that in the above example, any existing labels that are not included in the `updateMask` will be unaffected. It is also possible to replace an entire map field by providing the map field's path in the `updateMask`. The new value of the field will be that which is provided in the patch environment. For example, to delete all pre-existing user-specified PyPI packages and install botocore at version 1.7.14, the `updateMask` would contain the path "config.softwareConfig.pypiPackages", and the patch environment would be the following: { "config":{ "softwareConfig":{ "pypiPackages":{ "botocore":"==1.7.14" } } } } Note: Only the following fields can be updated:
Mask Purpose
config.softwareConfig.pypiPackages Replace all custom custom PyPI packages. If a replacement package map is not included in `environment`, all custom PyPI packages are cleared. It is an error to provide both this mask and a mask specifying an individual package.
config.softwareConfig.pypiPackages.packagename Update the custom PyPI package packagename, preserving other packages. To delete the package, include it in `updateMask`, and omit the mapping for it in `environment.config.softwareConfig.pypiPackages`. It is an error to provide both a mask of this form and the "config.softwareConfig.pypiPackages" mask.
labels Replace all environment labels. If a replacement labels map is not included in `environment`, all labels are cleared. It is an error to provide both this mask and a mask specifying one or more individual labels.
labels.labelName Set the label named labelName, while preserving other labels. To delete the label, include it in `updateMask` and omit its mapping in `environment.labels`. It is an error to provide both a mask of this form and the "labels" mask.
config.nodeCount Horizontally scale the number of nodes in the environment. An integer greater than or equal to 3 must be provided in the `config.nodeCount` field.
config.softwareConfig.airflowConfigOverrides Replace all Apache Airflow config overrides. If a replacement config overrides map is not included in `environment`, all config overrides are cleared. It is an error to provide both this mask and a mask specifying one or more individual config overrides.
config.softwareConfig.properties.section-name Override the Apache Airflow property name in the section named section, preserving other properties. To delete the property override, include it in `updateMask` and omit its mapping in `environment.config.softwareConfig.properties`. It is an error to provide both a mask of this form and the "config.softwareConfig.properties" mask.
config.softwareConfig.envVariables Replace all environment variables. If a replacement environment variable map is not included in `environment`, all custom environment variables are cleared. It is an error to provide both this mask and a mask specifying one or more individual environment variables.
+ * @param {().Environment} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Projects$Locations$Environments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Locations$Environments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Locations$Environments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Locations$Environments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Environments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Environments$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Environments$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent must be of the form + * `projects/{projectId}/locations/{locationId}`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Projects$Locations$Environments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The environment to delete, in the form: + * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Environments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the environment to get, in the form: + * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Environments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of environments to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * List environments in the given project and location, in the form: + * `projects/{projectId}/locations/{locationId}` + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Environments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The relative resource name of the environment to update, in the form: + * `projects/{projectId}/locations/{locationId}/environments/{environmentId}` + */ + name?: string; + /** + * Required. A comma-separated list of paths, relative to `Environment`, of + * fields to update. For example, to set the version of scikit-learn to + * install in the environment to 0.19.0 and to remove an existing + * installation of argparse, the `updateMask` parameter would include the + * following two `paths` values: + * "config.softwareConfig.pypiPackages.scikit-learn" and + * "config.softwareConfig.pypiPackages.argparse". The included patch + * environment would specify the scikit-learn version as follows: { + * "config":{ "softwareConfig":{ "pypiPackages":{ + * "scikit-learn":"==0.19.0" } } } } Note that + * in the above example, any existing PyPI packages other than scikit-learn + * and argparse will be unaffected. Only one update type may be included in + * a single request's `updateMask`. For example, one cannot update both the + * PyPI packages and labels in the same request. However, it is possible to + * update multiple members of a map field simultaneously in the same + * request. For example, to set the labels "label1" and "label2" while + * clearing "label3" (assuming it already exists), one can provide the paths + * "labels.label1", "labels.label2", and "labels.label3" and populate the + * patch environment as follows: { "labels":{ + * "label1":"new-label1-value" "label2":"new-label2-value" } + * } Note that in the above example, any existing labels that are not + * included in the `updateMask` will be unaffected. It is also possible to + * replace an entire map field by providing the map field's path in the + * `updateMask`. The new value of the field will be that which is provided + * in the patch environment. For example, to delete all pre-existing + * user-specified PyPI packages and install botocore at version 1.7.14, the + * `updateMask` would contain the path "config.softwareConfig.pypiPackages", + * and the patch environment would be the following: { "config":{ + * "softwareConfig":{ "pypiPackages":{ "botocore":"==1.7.14" } } + * } } Note: Only the following fields can be updated: + * + * + * + * + * + * + * + * + * + * + * + *
MaskPurpose
config.softwareConfig.pypiPackages Replace all custom + * custom PyPI packages. If a replacement package map is not included in + * `environment`, all custom PyPI packages are cleared. It is an error to + * provide both this mask and a mask specifying an individual package.
config.softwareConfig.pypiPackages.packagenameUpdate the custom PyPI package packagename, preserving + * other packages. To delete the package, include it in `updateMask`, and + * omit the mapping for it in + * `environment.config.softwareConfig.pypiPackages`. It is an error to + * provide both a mask of this form and the + * "config.softwareConfig.pypiPackages" mask.
labels Replace all environment labels. If a replacement + * labels map is not included in `environment`, all labels are cleared. It + * is an error to provide both this mask and a mask specifying one or more + * individual labels.
labels.labelName Set the label named + * labelName, while preserving other labels. To delete the + * label, include it in `updateMask` and omit its mapping in + * `environment.labels`. It is an error to provide both a mask of this form + * and the "labels" mask.
config.nodeCountHorizontally scale the number of nodes in the environment. An integer + * greater than or equal to 3 must be provided in the `config.nodeCount` + * field.
config.softwareConfig.airflowConfigOverrides Replace all + * Apache Airflow config overrides. If a replacement config overrides map + * is not included in `environment`, all config overrides are cleared. It + * is an error to provide both this mask and a mask specifying one or more + * individual config overrides.
config.softwareConfig.properties.section-name + * Override the Apache Airflow property name in + * the section named section, preserving other properties. To + * delete the property override, include it in `updateMask` and omit its + * mapping in `environment.config.softwareConfig.properties`. It is an + * error to provide both a mask of this form and the + * "config.softwareConfig.properties" mask.
config.softwareConfig.envVariables Replace all environment + * variables. If a replacement environment variable map is not included in + * `environment`, all custom environment variables are cleared. It is an + * error to provide both this mask and a mask specifying one or more + * individual environment variables.
+ */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + + + export class Resource$Projects$Locations$Operations { + root: Composer; + constructor(root: Composer) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * composer.projects.locations.operations.delete + * @desc Deletes a long-running operation. This method indicates that the + * client is no longer interested in the operation result. It does not + * cancel the operation. If the server doesn't support this method, it + * returns `google.rpc.Code.UNIMPLEMENTED`. + * @alias composer.projects.locations.operations.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource to be deleted. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Projects$Locations$Operations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * composer.projects.locations.operations.get + * @desc Gets the latest state of a long-running operation. Clients can use + * this method to poll the operation result at intervals as recommended by + * the API service. + * @alias composer.projects.locations.operations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * composer.projects.locations.operations.list + * @desc Lists operations that match the specified filter in the request. If + * the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: + * the `name` binding allows API services to override the binding to use + * different resource name schemes, such as `users/x/operations`. To + * override the binding, API services can add a binding such as + * `"/v1/{name=users/x}/operations"` to their service configuration. For + * backwards compatibility, the default name includes the operations + * collection id, however overriding users must ensure the name binding is + * the parent resource, without the operations collection id. + * @alias composer.projects.locations.operations.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter The standard list filter. + * @param {string} params.name The name of the operation's parent resource. + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}/operations') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } +} diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index ca36d8b5d45..b3477ca69ec 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace compute_alpha { + export interface Options extends GlobalOptions { version: 'alpha'; } + /** * Compute Engine API * @@ -96,6 +99,7 @@ export namespace compute_alpha { regions: Resource$Regions; regionTargetHttpProxies: Resource$Regiontargethttpproxies; regionUrlMaps: Resource$Regionurlmaps; + resourcePolicies: Resource$Resourcepolicies; routers: Resource$Routers; routes: Resource$Routes; securityPolicies: Resource$Securitypolicies; @@ -167,6 +171,7 @@ export namespace compute_alpha { this.regions = new Resource$Regions(this); this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this); this.regionUrlMaps = new Resource$Regionurlmaps(this); + this.resourcePolicies = new Resource$Resourcepolicies(this); this.routers = new Resource$Routers(this); this.routes = new Resource$Routes(this); this.securityPolicies = new Resource$Securitypolicies(this); @@ -200,13 +205,13 @@ export namespace compute_alpha { /** * The number of the guest accelerator cards exposed to this instance. */ - acceleratorCount: number; + acceleratorCount?: number; /** * Full or partial URL of the accelerator type resource to attach to this * instance. If you are creating an instance template, specify only the * accelerator name. */ - acceleratorType: string; + acceleratorType?: string; } /** * An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) @@ -216,60 +221,60 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this accelerator * type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#acceleratorType * for accelerator types. */ - kind: string; + kind?: string; /** * [Output Only] Maximum accelerator cards allowed per instance. */ - maximumCardsPerInstance: number; + maximumCardsPerInstance?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the accelerator type resides, * such as us-central1-a. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$AcceleratorTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AcceleratorTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#acceleratorTypeAggregatedList for aggregated lists of accelerator * types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -277,15 +282,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of accelerator types. @@ -294,16 +299,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AcceleratorType resources. */ - items: Schema$AcceleratorType[]; + items?: Schema$AcceleratorType[]; /** * [Output Only] Type of resource. Always compute#acceleratorTypeList for * lists of accelerator types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -311,26 +316,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AcceleratorTypesScopedList { /** * [Output Only] A list of accelerator types contained in this scope. */ - acceleratorTypes: Schema$AcceleratorType[]; + acceleratorTypes?: Schema$AcceleratorType[]; /** * [Output Only] An informational warning that appears when the accelerator * types list is empty. */ - warning: any; + warning?: any; } /** * An access configuration attached to an instance's network interface. @@ -341,13 +346,13 @@ export namespace compute_alpha { * [Output Only] Type of the resource. Always compute#accessConfig for * access configs. */ - kind: string; + kind?: string; /** * The name of this access configuration. The default and recommended name * is External NAT but you can use any arbitrary string you would like. For * example, My external IP or Network Access. */ - name: string; + name?: string; /** * An external IP address associated with this instance. Specify an unused * static external IP address available to the project or leave this field @@ -355,7 +360,7 @@ export namespace compute_alpha { * specify a static external IP address, it must live in the same region as * the zone of the instance. */ - natIP: string; + natIP?: string; /** * This signifies the networking tier used for configuring this access * configuration and can only take the following values: PREMIUM, STANDARD. @@ -364,30 +369,30 @@ export namespace compute_alpha { * with a valid external IP address is specified, it must match that of the * networkTier associated with the Address resource owning that IP. */ - networkTier: string; + networkTier?: string; /** * [Output Only] The public DNS domain name for the instance. */ - publicDnsName: string; + publicDnsName?: string; /** * The DNS domain name for the public PTR record. This field can only be set * when the set_public_ptr field is enabled. */ - publicPtrDomainName: string; + publicPtrDomainName?: string; /** * Specifies whether a public DNS ?A? record should be created for the * external IP address of this access configuration. */ - setPublicDns: boolean; + setPublicDns?: boolean; /** * Specifies whether a public DNS ?PTR? record should be created to map the * external IP address of the instance to a DNS domain name. */ - setPublicPtr: boolean; + setPublicPtr?: boolean; /** * The type of configuration. The default and only option is ONE_TO_ONE_NAT. */ - type: string; + type?: string; } /** * A reserved address resource. (== resource_for beta.addresses ==) (== @@ -398,35 +403,35 @@ export namespace compute_alpha { /** * The static IP address represented by this resource. */ - address: string; + address?: string; /** * The type of address to reserve, either INTERNAL or EXTERNAL. If * unspecified, defaults to EXTERNAL. */ - addressType: string; + addressType?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The IP Version that will be used by this address. Valid options are IPV4 * or IPV6. This can only be specified for a global address. */ - ipVersion: string; + ipVersion?: string; /** * [Output Only] Type of the resource. Always compute#address for addresses. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this Address, which is * essentially a hash of the labels set used for optimistic locking. The @@ -435,13 +440,13 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an Address. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this Address resource. These can be later modified by * the setLabels method. Each label key/value must comply with RFC1035. * Label values may be empty. */ - labels: any; + labels?: any; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -451,37 +456,37 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The URL of the network in which to reserve the address. This field can * only be used with INTERNAL type with VPC_PEERING purpose. */ - network: string; + network?: string; /** * This signifies the networking tier used for configuring this Address and * can only take the following values: PREMIUM , STANDARD. If this field is * not specified, it is assumed to be PREMIUM. */ - networkTier: string; + networkTier?: string; /** * The prefix length if the resource reprensents an IP range. */ - prefixLength: number; + prefixLength?: number; /** * The purpose of resource, only used with INTERNAL type. */ - purpose: string; + purpose?: string; /** * [Output Only] URL of the region where the regional address resides. This * field is not applicable to global addresses. You must specify this field * as part of the HTTP request URL. You cannot set this field in the request * body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the address, which can be one of RESERVING, * RESERVED, or IN_USE. An address that is RESERVING is currently in the @@ -489,33 +494,33 @@ export namespace compute_alpha { * available to use. An IN_USE address is currently being used by another * resource and is not available. */ - status: string; + status?: string; /** * The URL of the subnetwork in which to reserve the address. If an IP * address is specified, it must be within the subnetwork's IP range. * This field can only be used with INTERNAL type with * GCE_ENDPOINT/DNS_RESOLVER purposes. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URLs of the resources that are using this address. */ - users: string[]; + users?: string[]; } export interface Schema$AddressAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AddressesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#addressAggregatedList for * aggregated lists of addresses. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -523,26 +528,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AddressesScopedList { /** * [Output Only] A list of addresses contained in this scope. */ - addresses: Schema$Address[]; + addresses?: Schema$Address[]; /** * [Output Only] Informational warning which replaces the list of addresses * when the list is empty. */ - warning: any; + warning?: any; } /** * Contains a list of addresses. @@ -551,16 +556,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Address resources. */ - items: Schema$Address[]; + items?: Schema$Address[]; /** * [Output Only] Type of resource. Always compute#addressList for lists of * addresses. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -568,15 +573,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An alias IP range attached to an instance's network interface. @@ -589,13 +594,13 @@ export namespace compute_alpha { * a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR * format string (e.g. 10.1.2.0/24). */ - ipCidrRange: string; + ipCidrRange?: string; /** * Optional subnetwork secondary range name specifying the secondary range * from which to allocate the IP CIDR range for this alias IP range. If left * unspecified, the primary range of the subnetwork will be used. */ - subnetworkRangeName: string; + subnetworkRangeName?: string; } /** * An instance-attached disk resource. @@ -605,12 +610,12 @@ export namespace compute_alpha { * Specifies whether the disk will be auto-deleted when the instance is * deleted (but not when the disk is detached from the instance). */ - autoDelete: boolean; + autoDelete?: boolean; /** * Indicates that this is a boot disk. The virtual machine will use the * first partition of the disk for its root filesystem. */ - boot: boolean; + boot?: boolean; /** * Specifies a unique device name of your choice that is reflected into the * /dev/disk/by-id/google-* tree of a Linux operating system running within @@ -620,7 +625,7 @@ export namespace compute_alpha { * persistent-disks-x, where x is a number assigned by Google Compute * Engine. This field is only applicable for persistent disks. */ - deviceName: string; + deviceName?: string; /** * Encrypts or decrypts a disk using a customer-supplied encryption key. If * you are creating a new disk, this field encrypts the new disk using an @@ -637,24 +642,24 @@ export namespace compute_alpha { * encryption keys, so you cannot use your own keys to encrypt disks in a * managed instance group. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * The size of the disk in base-2 GB. This supersedes disk_size_gb in * InitializeParams. */ - diskSizeGb: string; + diskSizeGb?: string; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] A zero-based index to this disk, where 0 is reserved for * the boot disk. If you have many disks attached to an instance, each disk * would have a unique index number. */ - index: number; + index?: number; /** * [Input Only] Specifies the parameters for a new disk that will be created * alongside the new instance. Use initialization parameters to create boot @@ -662,7 +667,7 @@ export namespace compute_alpha { * mutually exclusive with the source property; you can only define one or * the other, but not both. */ - initializeParams: Schema$AttachedDiskInitializeParams; + initializeParams?: Schema$AttachedDiskInitializeParams; /** * Specifies the disk interface to use for attaching this disk, which is * either SCSI or NVME. The default is SCSI. Persistent disks must always @@ -671,28 +676,28 @@ export namespace compute_alpha { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. */ - interface: string; + interface?: string; /** * [Output Only] Type of the resource. Always compute#attachedDisk for * attached disks. */ - kind: string; + kind?: string; /** * [Output Only] Any valid publicly visible licenses. */ - licenses: string[]; + licenses?: string[]; /** * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If * not specified, the default is to attach the disk in READ_WRITE mode. */ - mode: string; + mode?: string; /** * For LocalSSD disks on VM Instances in STOPPED or SUSPENDED state, this - * field is set to PRESERVED iff the LocalSSD data has been saved to a + * field is set to PRESERVED if the LocalSSD data has been saved to a * persistent location by customer request. (see the discard_local_ssd * option on Stop/Suspend). Read-only in the api. */ - savedState: string; + savedState?: string; /** * Specifies a valid partial or full URL to an existing Persistent Disk * resource. When creating a new instance, one of @@ -702,12 +707,12 @@ export namespace compute_alpha { * Note that for InstanceTemplate, specify the disk name, not the URL for * the disk. */ - source: string; + source?: string; /** * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. */ - type: string; + type?: string; } /** * [Input Only] Specifies the parameters for a new disk that will be created @@ -721,15 +726,15 @@ export namespace compute_alpha { * Specifies the disk name. If not specified, the default is to use the name * of the instance. */ - diskName: string; + diskName?: string; /** * Specifies the size of the disk in base-2 GB. */ - diskSizeGb: string; + diskSizeGb?: string; /** * [Deprecated] Storage type of the disk. */ - diskStorageType: string; + diskStorageType?: string; /** * Specifies the disk type to use to create the instance. If not specified, * the default is pd-standard, specified using the full URL. For example: @@ -742,13 +747,13 @@ export namespace compute_alpha { * zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is * the name of the disk type, not URL. */ - diskType: string; + diskType?: string; /** * Labels to apply to this disk. These can be later modified by the * disks.setLabels method. This field is only applicable for persistent * disks. */ - labels: any; + labels?: any; /** * The source image to create this disk. When creating a new instance, one * of initializeParams.sourceImage or disks.source is required except for @@ -765,7 +770,7 @@ export namespace compute_alpha { * family/family-name: global/images/family/my-image-family If the source * image is deleted later, this field will not be set. */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. Instance @@ -773,7 +778,7 @@ export namespace compute_alpha { * create disks for instances in a managed instance group if the source * images are encrypted with your own keys. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; } /** * Specifies the audit configuration for a service. The configuration @@ -801,14 +806,14 @@ export namespace compute_alpha { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; - exemptedMembers: string[]; + auditLogConfigs?: Schema$AuditLogConfig[]; + exemptedMembers?: string[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -824,11 +829,11 @@ export namespace compute_alpha { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of [Binding.members][]. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Authorization-related information used by Cloud Audit Logging. @@ -837,7 +842,7 @@ export namespace compute_alpha { /** * The type of the permission that was checked. */ - permissionType: string; + permissionType?: string; } /** * Represents an Autoscaler resource. Autoscalers allow you to automatically @@ -855,26 +860,26 @@ export namespace compute_alpha { * are specified, the default will be to autoscale based on cpuUtilization * to 0.6 or 60%. */ - autoscalingPolicy: Schema$AutoscalingPolicy; + autoscalingPolicy?: Schema$AutoscalingPolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#autoscaler for * autoscalers. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -884,7 +889,7 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Target recommended MIG size (number of instances) computed * by autoscaler. Autoscaler calculates recommended MIG size even when @@ -892,50 +897,50 @@ export namespace compute_alpha { * autoscaler is not connected to the existing managed instance group or * autoscaler did not generate its prediction. */ - recommendedSize: number; + recommendedSize?: number; /** * [Output Only] URL of the region where the instance group resides (for * autoscalers living in regional scope). */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the autoscaler configuration. */ - status: string; + status?: string; /** * [Output Only] Human-readable details about the current state of the * autoscaler. Read the documentation for Commonly returned status messages * for examples of status messages you might encounter. */ - statusDetails: Schema$AutoscalerStatusDetails[]; + statusDetails?: Schema$AutoscalerStatusDetails[]; /** * URL of the managed instance group that this autoscaler will scale. */ - target: string; + target?: string; /** * [Output Only] URL of the zone where the instance group resides (for * autoscalers living in zonal scope). */ - zone: string; + zone?: string; } export interface Schema$AutoscalerAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AutoscalersScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#autoscalerAggregatedList * for aggregated lists of autoscalers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -943,15 +948,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Autoscaler resources. @@ -960,16 +965,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Autoscaler resources. */ - items: Schema$Autoscaler[]; + items?: Schema$Autoscaler[]; /** * [Output Only] Type of resource. Always compute#autoscalerList for lists * of autoscalers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -977,36 +982,36 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AutoscalersScopedList { /** * [Output Only] A list of autoscalers contained in this scope. */ - autoscalers: Schema$Autoscaler[]; + autoscalers?: Schema$Autoscaler[]; /** * [Output Only] Informational warning which replaces the list of * autoscalers when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$AutoscalerStatusDetails { /** * The status message. */ - message: string; + message?: string; /** * The type of error returned. */ - type: string; + type?: string; } /** * Cloud Autoscaler policy. @@ -1022,40 +1027,41 @@ export namespace compute_alpha { * long an instance may take to initialize. To do this, create an instance * and time the startup process. */ - coolDownPeriodSec: number; + coolDownPeriodSec?: number; /** * Defines the CPU utilization policy that allows the autoscaler to scale * based on the average CPU utilization of a managed instance group. */ - cpuUtilization: Schema$AutoscalingPolicyCpuUtilization; + cpuUtilization?: Schema$AutoscalingPolicyCpuUtilization; /** * Configuration parameters of autoscaling based on a custom metric. */ - customMetricUtilizations: Schema$AutoscalingPolicyCustomMetricUtilization[]; + customMetricUtilizations?: + Schema$AutoscalingPolicyCustomMetricUtilization[]; /** * Configuration parameters of autoscaling based on load balancer. */ - loadBalancingUtilization: Schema$AutoscalingPolicyLoadBalancingUtilization; + loadBalancingUtilization?: Schema$AutoscalingPolicyLoadBalancingUtilization; /** * The maximum number of instances that the autoscaler can scale up to. This * is required when creating or updating an autoscaler. The maximum number * of replicas should not be lower than minimal number of replicas. */ - maxNumReplicas: number; + maxNumReplicas?: number; /** * The minimum number of replicas that the autoscaler can scale down to. * This cannot be less than 0. If not provided, autoscaler will choose a * default value depending on maximum number of instances allowed. */ - minNumReplicas: number; + minNumReplicas?: number; /** * Defines operating mode for this policy. */ - mode: string; + mode?: string; /** * Configuration parameters of autoscaling based on queuing system. */ - queueBasedScaling: Schema$AutoscalingPolicyQueueBasedScaling; + queueBasedScaling?: Schema$AutoscalingPolicyQueueBasedScaling; } /** * CPU utilization policy. @@ -1072,7 +1078,7 @@ export namespace compute_alpha { * you specified or until the average utilization reaches the target * utilization. */ - utilizationTarget: number; + utilizationTarget?: number; } /** * Custom utilization metric policy. @@ -1103,13 +1109,13 @@ export namespace compute_alpha { * If multiple TimeSeries are returned upon the query execution, the * autoscaler will sum their respective values to obtain its scaling value. */ - filter: string; + filter?: string; /** * The identifier (type) of the Stackdriver Monitoring metric. The metric * cannot have negative values. The metric must have a value type of INT64 * or DOUBLE. */ - metric: string; + metric?: string; /** * If scaling is based on a per-group metric value that represents the total * amount of work to be done or resource usage, set this value to an amount @@ -1123,7 +1129,7 @@ export namespace compute_alpha { * since this value can't include a chunk assignable to a single * instance, it could be better used with utilization_target instead. */ - singleInstanceAssignment: number; + singleInstanceAssignment?: number; /** * The target value of the metric that autoscaler should maintain. This must * be a positive value. A utilization metric scales number of virtual @@ -1133,13 +1139,13 @@ export namespace compute_alpha { * autoscaler will work to keep this value constant for each of the * instances. */ - utilizationTarget: number; + utilizationTarget?: number; /** * Defines how target utilization value is expressed for a Stackdriver * Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. * If not specified, the default is GAUGE. */ - utilizationTargetType: string; + utilizationTargetType?: string; } /** * Configuration parameters of autoscaling based on load balancing. @@ -1150,7 +1156,7 @@ export namespace compute_alpha { * configuration) that autoscaler should maintain. Must be a positive float * value. If not defined, the default is 0.8. */ - utilizationTarget: number; + utilizationTarget?: number; } /** * Configuration parameters of autoscaling based on queuing system. @@ -1163,18 +1169,18 @@ export namespace compute_alpha { * The autoscaler will also take into account incoming tasks when * calculating when to scale. */ - acceptableBacklogPerInstance: number; + acceptableBacklogPerInstance?: number; /** * Configuration for Cloud Pub/Sub subscription queue. */ - cloudPubSub: Schema$AutoscalingPolicyQueueBasedScalingCloudPubSub; + cloudPubSub?: Schema$AutoscalingPolicyQueueBasedScalingCloudPubSub; /** * The scaling algorithm will also calculate throughput estimates on its * own; if you explicitly provide this value, the autoscaler will take into * account your value as well as automatic estimates when deciding how to * scale. */ - singleWorkerThroughputPerSec: number; + singleWorkerThroughputPerSec?: number; } /** * Configuration parameters for scaling based on Cloud Pub/Sub subscription @@ -1188,13 +1194,13 @@ export namespace compute_alpha { * pull configuration. The subscription must belong to the same project as * the Autoscaler. */ - subscription: string; + subscription?: string; /** * Cloud Pub/Sub topic used for scaling. Provide the partial URL or partial * URL (starting with projects/) or just the topic name. The topic must * belong to the same project as the Autoscaler resource. */ - topic: string; + topic?: string; } /** * Message containing information of one individual backend. @@ -1207,7 +1213,7 @@ export namespace compute_alpha { * Internal Load Balancing, the default and only supported mode is * CONNECTION. */ - balancingMode: string; + balancingMode?: string; /** * A multiplier applied to the group's maximum servicing capacity (based * on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the @@ -1216,17 +1222,17 @@ export namespace compute_alpha { * offering 0% of its available Capacity. Valid range is [0.0,1.0]. This * cannot be used for internal load balancing. */ - capacityScaler: number; + capacityScaler?: number; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * This field designates whether this is a failover backend. More than one * failover backend can be configured for a given BackendService. */ - failover: boolean; + failover?: boolean; /** * The fully-qualified URL of a Instance Group resource. This instance group * defines the list of instances that serve traffic. Member virtual machine @@ -1237,14 +1243,14 @@ export namespace compute_alpha { * partial URL. When the BackendService has load balancing scheme INTERNAL, * the instance group must be within the same region as the BackendService. */ - group: string; + group?: string; /** * The max number of simultaneous connections for the group. Can be used * with either CONNECTION or UTILIZATION balancing modes. For CONNECTION * mode, either maxConnections or maxConnectionsPerInstance must be set. * This cannot be used for internal load balancing. */ - maxConnections: number; + maxConnections?: number; /** * The max number of simultaneous connections that a single backend network * endpoint can handle. This is used to calculate the capacity of the group. @@ -1252,7 +1258,7 @@ export namespace compute_alpha { * CONNECTION mode, either maxConnections or maxConnectionsPerEndpoint must * be set. This cannot be used for internal load balancing. */ - maxConnectionsPerEndpoint: number; + maxConnectionsPerEndpoint?: number; /** * The max number of simultaneous connections that a single backend instance * can handle. This is used to calculate the capacity of the group. Can be @@ -1260,14 +1266,14 @@ export namespace compute_alpha { * mode, either maxConnections or maxConnectionsPerInstance must be set. * This cannot be used for internal load balancing. */ - maxConnectionsPerInstance: number; + maxConnectionsPerInstance?: number; /** * The max requests per second (RPS) of the group. Can be used with either * RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE * mode, either maxRate or maxRatePerInstance must be set. This cannot be * used for internal load balancing. */ - maxRate: number; + maxRate?: number; /** * The max requests per second (RPS) that a single backend network endpoint * can handle. This is used to calculate the capacity of the group. Can be @@ -1275,7 +1281,7 @@ export namespace compute_alpha { * maxRatePerEndpoint must be set. This cannot be used for internal load * balancing. */ - maxRatePerEndpoint: number; + maxRatePerEndpoint?: number; /** * The max requests per second (RPS) that a single backend instance can * handle. This is used to calculate the capacity of the group. Can be used @@ -1283,13 +1289,13 @@ export namespace compute_alpha { * maxRatePerInstance must be set. This cannot be used for internal load * balancing. */ - maxRatePerInstance: number; + maxRatePerInstance?: number; /** * Used when balancingMode is UTILIZATION. This ratio defines the CPU * utilization target for the group. The default is 0.8. Valid range is * [0.0, 1.0]. This cannot be used for internal load balancing. */ - maxUtilization: number; + maxUtilization?: number; } /** * A BackendBucket resource. This resource defines a Cloud Storage bucket. @@ -1298,32 +1304,32 @@ export namespace compute_alpha { /** * Cloud Storage bucket name. */ - bucketName: string; + bucketName?: string; /** * Cloud CDN Coniguration for this BackendBucket. */ - cdnPolicy: Schema$BackendBucketCdnPolicy; + cdnPolicy?: Schema$BackendBucketCdnPolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * If true, enable Cloud CDN for this BackendBucket. */ - enableCdn: boolean; + enableCdn?: boolean; /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1333,11 +1339,11 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Message containing Cloud CDN configuration for a backend bucket. @@ -1352,12 +1358,12 @@ export namespace compute_alpha { * any existing Cache-Control header. The actual headers served in responses * will not be altered. */ - signedUrlCacheMaxAgeSec: string; + signedUrlCacheMaxAgeSec?: string; /** * [Output Only] Names of the keys currently configured for Cloud CDN Signed * URL on this backend bucket. */ - signedUrlKeyNames: string[]; + signedUrlKeyNames?: string[]; } /** * Contains a list of BackendBucket resources. @@ -1366,15 +1372,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendBucket resources. */ - items: Schema$BackendBucket[]; + items?: Schema$BackendBucket[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1382,15 +1388,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A BackendService resource. This resource defines a group of backend virtual @@ -1405,52 +1411,52 @@ export namespace compute_alpha { * one day. When the load balancing scheme is INTERNAL, this field is not * used. */ - affinityCookieTtlSec: number; + affinityCookieTtlSec?: number; /** * Directs request to an App Engine app. cloudFunctionBackend and backends[] * must be empty if this is set. */ - appEngineBackend: Schema$BackendServiceAppEngineBackend; + appEngineBackend?: Schema$BackendServiceAppEngineBackend; /** * The list of backends that serve this BackendService. */ - backends: Schema$Backend[]; + backends?: Schema$Backend[]; /** * Cloud CDN configuration for this BackendService. */ - cdnPolicy: Schema$BackendServiceCdnPolicy; + cdnPolicy?: Schema$BackendServiceCdnPolicy; /** * Directs request to a cloud function. appEngineBackend and backends[] must * be empty if this is set. */ - cloudFunctionBackend: Schema$BackendServiceCloudFunctionBackend; - connectionDraining: Schema$ConnectionDraining; + cloudFunctionBackend?: Schema$BackendServiceCloudFunctionBackend; + connectionDraining?: Schema$ConnectionDraining; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Headers that the HTTP/S load balancer should add to proxied requests. */ - customRequestHeaders: string[]; + customRequestHeaders?: string[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * If true, enable Cloud CDN for this BackendService. When the load * balancing scheme is INTERNAL, this field is not used. */ - enableCDN: boolean; - failoverPolicy: Schema$BackendServiceFailoverPolicy; + enableCDN?: boolean; + failoverPolicy?: Schema$BackendServiceFailoverPolicy; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a BackendService. An up-to-date fingerprint must * be provided in order to update the BackendService. */ - fingerprint: string; + fingerprint?: string; /** * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for * health checking this BackendService. Currently at most one health check @@ -1459,25 +1465,25 @@ export namespace compute_alpha { * backend and Cloud Function backend. For internal load balancing, a URL * to a HealthCheck resource must be specified instead. */ - healthChecks: string[]; - iap: Schema$BackendServiceIAP; + healthChecks?: string[]; + iap?: Schema$BackendServiceIAP; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#backendService for backend * services. */ - kind: string; + kind?: string; /** * Indicates whether the backend service will be used with internal or * external load balancing. A backend service created for one type of load * balancing cannot be used with the other. Possible values are INTERNAL and * EXTERNAL. */ - loadBalancingScheme: string; + loadBalancingScheme?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1487,43 +1493,43 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Deprecated in favor of portName. The TCP port to connect on the backend. * The default value is 80. This cannot be used for internal load * balancing. */ - port: number; + port?: number; /** * Name of backend port. The same name should appear in the instance groups * referenced by this service. Required when the load balancing scheme is * EXTERNAL. When the load balancing scheme is INTERNAL, this field is not * used. */ - portName: string; + portName?: string; /** * The protocol this BackendService uses to communicate with backends. * Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. For * internal load balancing, the possible values are TCP and UDP, and the * default is TCP. */ - protocol: string; + protocol?: string; /** * [Output Only] URL of the region where the regional backend service * resides. This field is not applicable to global backend services. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] The resource URL for the security policy associated with * this backend service. */ - securityPolicy: string; + securityPolicy?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Type of session affinity to use. The default is NONE. When the load * balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or @@ -1531,12 +1537,12 @@ export namespace compute_alpha { * NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the * protocol is UDP, this field is not used. */ - sessionAffinity: string; + sessionAffinity?: string; /** * How many seconds to wait for the backend before considering it a failed * request. Default is 30 seconds. */ - timeoutSec: number; + timeoutSec?: number; } /** * Contains a list of BackendServicesScopedList. @@ -1545,15 +1551,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendServicesScopedList resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1561,15 +1567,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Configuration of a App Engine backend. @@ -1578,17 +1584,17 @@ export namespace compute_alpha { /** * Optional. App Engine app service name. */ - appEngineService: string; + appEngineService?: string; /** * Required. Project ID of the project hosting the app. This is the project * ID of this project. Reference to another project is not allowed. */ - targetProject: string; + targetProject?: string; /** * Optional. Version of App Engine app service. When empty, App Engine will * do its normal traffic split. */ - version: string; + version?: string; } /** * Message containing Cloud CDN configuration for a backend service. @@ -1597,7 +1603,7 @@ export namespace compute_alpha { /** * The CacheKeyPolicy for this CdnPolicy. */ - cacheKeyPolicy: Schema$CacheKeyPolicy; + cacheKeyPolicy?: Schema$CacheKeyPolicy; /** * Number of seconds up to which the response to a signed URL request will * be cached in the CDN. After this time period, the Signed URL will be @@ -1607,12 +1613,12 @@ export namespace compute_alpha { * of any existing Cache-Control header. The actual headers served in * responses will not be altered. */ - signedUrlCacheMaxAgeSec: string; + signedUrlCacheMaxAgeSec?: string; /** * [Output Only] Names of the keys currently configured for Cloud CDN Signed * URL on this backend service. */ - signedUrlKeyNames: string[]; + signedUrlKeyNames?: string[]; } /** * Configuration of a Cloud Function backend. @@ -1622,11 +1628,11 @@ export namespace compute_alpha { * Required. A cloud function name. Special value ?*? represents all cloud * functions in the project. */ - functionName: string; + functionName?: string; /** * Required. Project ID of the project hosting the cloud function. */ - targetProject: string; + targetProject?: string; } export interface Schema$BackendServiceFailoverPolicy { /** @@ -1638,14 +1644,14 @@ export namespace compute_alpha { * drain timeout of 10 min. This can be set to true only if the protocol is * TCP. The default is false. */ - disableConnectionDrainOnFailover: boolean; + disableConnectionDrainOnFailover?: boolean; /** * 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. */ - dropTrafficIfUnhealthy: boolean; + dropTrafficIfUnhealthy?: boolean; /** * The value of the field must be in [0, 1]. If the ratio of the healthy VMs * in the primary backend is at or below this number, traffic arriving at @@ -1656,27 +1662,27 @@ export namespace compute_alpha { * the healthy VMs with the best effort, or to all VMs when no VM is * healthy. This field is only used with l4 load balancing. */ - failoverRatio: number; + failoverRatio?: number; } export interface Schema$BackendServiceGroupHealth { - healthStatus: Schema$HealthStatus[]; + healthStatus?: Schema$HealthStatus[]; /** * [Output Only] Type of resource. Always compute#backendServiceGroupHealth * for the health of backend services. */ - kind: string; + kind?: string; } /** * Identity-Aware Proxy */ export interface Schema$BackendServiceIAP { - enabled: boolean; - oauth2ClientId: string; - oauth2ClientSecret: string; + enabled?: boolean; + oauth2ClientId?: string; + oauth2ClientSecret?: string; /** * [Output Only] SHA256 hash value for the field oauth2_client_secret above. */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * Contains a list of BackendService resources. @@ -1685,16 +1691,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendService resources. */ - items: Schema$BackendService[]; + items?: Schema$BackendService[]; /** * [Output Only] Type of resource. Always compute#backendServiceList for * lists of backend services. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1702,27 +1708,27 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$BackendServiceReference { backendService: string; } + export interface Schema$BackendServiceReference { backendService?: string; } export interface Schema$BackendServicesScopedList { /** * A list of BackendServices contained in this scope. */ - backendServices: Schema$BackendService[]; + backendServices?: Schema$BackendService[]; /** * Informational warning which replaces the list of backend services when * the list is empty. */ - warning: any; + warning?: any; } /** * Associates `members` with a `role`. @@ -1734,7 +1740,7 @@ export namespace compute_alpha { * bindings, including their conditions, are examined independently. This * field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER. */ - condition: Schema$Expr; + condition?: Schema$Expr; /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * `allUsers`: A special @@ -1750,20 +1756,20 @@ export namespace compute_alpha { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. */ - role: string; + role?: string; } export interface Schema$CacheInvalidationRule { /** * If set, this invalidation rule will only apply to requests with a Host * header matching host. */ - host: string; - path: string; + host?: string; + path?: string; } /** * Message containing what to include in the cache key for a request for Cloud @@ -1773,32 +1779,32 @@ export namespace compute_alpha { /** * If true, requests to different hosts will be cached separately. */ - includeHost: boolean; + includeHost?: boolean; /** * If true, http and https requests will be cached separately. */ - includeProtocol: boolean; + includeProtocol?: boolean; /** * If true, include query string parameters in the cache key according to * query_string_whitelist and query_string_blacklist. If neither is set, the * entire query string will be included. If false, the query string will be * excluded from the cache key entirely. */ - includeQueryString: boolean; + includeQueryString?: boolean; /** * Names of query string parameters to exclude in cache keys. All other * parameters will be included. Either specify query_string_whitelist or * query_string_blacklist, not both. '&' and '=' will be * percent encoded and not treated as delimiters. */ - queryStringBlacklist: string[]; + queryStringBlacklist?: string[]; /** * Names of query string parameters to include in cache keys. All other * parameters will be excluded. Either specify query_string_whitelist or * query_string_blacklist, not both. '&' and '=' will be * percent encoded and not treated as delimiters. */ - queryStringWhitelist: string[]; + queryStringWhitelist?: string[]; } /** * Represents a Commitment resource. Creating a Commitment resource means that @@ -1815,26 +1821,26 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Commitment end time in RFC3339 text format. */ - endTimestamp: string; + endTimestamp?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#commitment for * commitments. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1844,62 +1850,62 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The plan for this commitment, which determines duration and discount * rate. The currently supported plans are TWELVE_MONTH (1 year), and * THIRTY_SIX_MONTH (3 years). */ - plan: string; + plan?: string; /** * [Output Only] URL of the region where this commitment may be used. */ - region: string; + region?: string; /** * A list of commitment amounts for particular resources. Note that VCPU and * MEMORY resource commitments must occur together. */ - resources: Schema$ResourceCommitment[]; + resources?: Schema$ResourceCommitment[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Commitment start time in RFC3339 text format. */ - startTimestamp: string; + startTimestamp?: string; /** * [Output Only] Status of the commitment with regards to eventual * expiration (each commitment has an end date defined). One of the * following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; /** * The type of commitment, which affects the discount rate and the eligible * resources. Type MEMORY_OPTIMIZED_VM specifies a commitment that will only * apply to memory optimized VMs. Type NORMAL specifies a commitment that * applies to all other resources. */ - type: string; + type?: string; } export interface Schema$CommitmentAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of CommitmentsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#commitmentAggregatedList * for aggregated lists of commitments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1907,15 +1913,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Commitment resources. @@ -1924,16 +1930,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Commitment resources. */ - items: Schema$Commitment[]; + items?: Schema$Commitment[]; /** * [Output Only] Type of resource. Always compute#commitmentList for lists * of commitments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1941,26 +1947,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$CommitmentsScopedList { /** * [Output Only] A list of commitments contained in this scope. */ - commitments: Schema$Commitment[]; + commitments?: Schema$Commitment[]; /** * [Output Only] Informational warning which replaces the list of * commitments when the list is empty. */ - warning: any; + warning?: any; } /** * A condition to be met. @@ -1969,29 +1975,29 @@ export namespace compute_alpha { /** * Trusted attributes supplied by the IAM system. */ - iam: string; + iam?: string; /** * An operator to apply the subject with. */ - op: string; + op?: string; /** * Trusted attributes discharged by the service. */ - svc: string; + svc?: string; /** * Trusted attributes supplied by any service that owns resources and uses * the IAM system for access control. */ - sys: string; + sys?: string; /** * DEPRECATED. Use 'values' instead. */ - value: string; + value?: string; /** * The objects of the condition. This is mutually exclusive with * 'value'. */ - values: string[]; + values?: string[]; } /** * Message containing connection draining configuration. @@ -2001,7 +2007,7 @@ export namespace compute_alpha { * Time for which instance will be drained (not accept new connections, but * still work to finish started). */ - drainingTimeoutSec: number; + drainingTimeoutSec?: number; } /** * Represents a customer-supplied encryption key @@ -2010,12 +2016,12 @@ export namespace compute_alpha { /** * The name of the encryption key that is stored in Google Cloud KMS. */ - kmsKeyName: string; + kmsKeyName?: string; /** * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 * base64 to either encrypt or decrypt this resource. */ - rawKey: string; + rawKey?: string; /** * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit * customer-supplied encryption key to either encrypt or decrypt this @@ -2026,24 +2032,24 @@ export namespace compute_alpha { * certificate provided by Google at: * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem */ - rsaEncryptedKey: string; + rsaEncryptedKey?: string; /** * [Output only] The RFC 4648 base64 encoded SHA-256 hash of the * customer-supplied encryption key that protects this resource. */ - sha256: string; + sha256?: string; } export interface Schema$CustomerEncryptionKeyProtectedDisk { /** * Decrypts data associated with the disk with a customer-supplied * encryption key. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * Specifies a valid partial or full URL to an existing Persistent Disk * resource. This field is only applicable for persistent disks. */ - source: string; + source?: string; } /** * Deprecation status for a public resource. @@ -2054,25 +2060,25 @@ export namespace compute_alpha { * resource is intended to change to DELETED. This is only informational and * the status will not change unless the client explicitly changes it. */ - deleted: string; + deleted?: string; /** * An optional RFC3339 timestamp on or after which the state of this * resource is intended to change to DEPRECATED. This is only informational * and the status will not change unless the client explicitly changes it. */ - deprecated: string; + deprecated?: string; /** * An optional RFC3339 timestamp on or after which the state of this * resource is intended to change to OBSOLETE. This is only informational * and the status will not change unless the client explicitly changes it. */ - obsolete: string; + obsolete?: string; /** * The URL of the suggested replacement for a deprecated resource. The * suggested replacement resource must be the same kind of resource as the * deprecated resource. */ - replacement: string; + replacement?: string; /** * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, * or DELETED. Operations which create a new resource using a DEPRECATED @@ -2081,7 +2087,7 @@ export namespace compute_alpha { * use OBSOLETE or DELETED resources will be rejected and result in an * error. */ - state: string; + state?: string; } /** * A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks @@ -2091,12 +2097,12 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Encrypts the disk using a customer-supplied encryption key. After you * encrypt a disk with a customer-supplied key, you must provide the same @@ -2107,22 +2113,22 @@ export namespace compute_alpha { * be encrypted using an automatically generated key and you do not need to * provide a key to use the disk later. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#disk for disks. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this disk, which is * essentially a hash of the labels set used for optimistic locking. The @@ -2131,29 +2137,29 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a disk. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this disk. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * [Output Only] Last attach timestamp in RFC3339 text format. */ - lastAttachTimestamp: string; + lastAttachTimestamp?: string; /** * [Output Only] Last detach timestamp in RFC3339 text format. */ - lastDetachTimestamp: string; + lastDetachTimestamp?: string; /** * Integer license codes indicating which licenses are attached to this * disk. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * Any applicable publicly visible licenses. */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2163,11 +2169,11 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Internal use only. */ - options: string; + options?: string; /** * Physical block size of the persistent disk, in bytes. If not present in a * request, a default value is used. Initially only 4096 is supported, but @@ -2175,22 +2181,26 @@ export namespace compute_alpha { * the error message will list the supported values, but even a supported * value may be allowed for only some projects. */ - physicalBlockSizeBytes: string; + physicalBlockSizeBytes?: string; /** * [Output Only] URL of the region where the disk resides. Only applicable * for regional resources. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - region: string; + region?: string; /** * URLs of the zones where the disk should be replicated to. Only applicable * for regional resources. */ - replicaZones: string[]; + replicaZones?: string[]; + /** + * Resource policies applied to this disk for automatic snapshot creations. + */ + resourcePolicies?: string[]; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * Size of the persistent disk, specified in GB. You can specify this field * when creating a persistent disk using the sourceImage or sourceSnapshot @@ -2199,7 +2209,7 @@ export namespace compute_alpha { * value of sizeGb must not be less than the size of the sourceImage or the * size of the snapshot. Acceptable values are 1 to 65536, inclusive. */ - sizeGb: string; + sizeGb?: string; /** * The source image used to create this disk. If the source image is * deleted, this field will not be set. To create a disk with one of the @@ -2214,12 +2224,12 @@ export namespace compute_alpha { * version of the image in that family. Replace the image name with * family/family-name: global/images/family/my-image-family */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the image used to create this disk. This * value identifies the exact image that was used to create this persistent @@ -2227,7 +2237,7 @@ export namespace compute_alpha { * was later deleted and recreated under the same name, the source image ID * would identify the exact version of the image that was used. */ - sourceImageId: string; + sourceImageId?: string; /** * The source snapshot used to create this disk. You can provide this as a * partial or full URL to the resource. For example, the following are valid @@ -2235,12 +2245,12 @@ export namespace compute_alpha { * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot * - projects/project/global/snapshots/snapshot - global/snapshots/snapshot */ - sourceSnapshot: string; + sourceSnapshot?: string; /** * The customer-supplied encryption key of the source snapshot. Required if * the source snapshot is protected by a customer-supplied encryption key. */ - sourceSnapshotEncryptionKey: Schema$CustomerEncryptionKey; + sourceSnapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The unique ID of the snapshot used to create this disk. * This value identifies the exact snapshot that was used to create this @@ -2249,47 +2259,47 @@ export namespace compute_alpha { * source snapshot ID would identify the exact version of the snapshot that * was used. */ - sourceSnapshotId: string; + sourceSnapshotId?: string; /** * [Output Only] The status of disk creation. */ - status: string; + status?: string; /** * [Deprecated] Storage type of the persistent disk. */ - storageType: string; + storageType?: string; /** * URL of the disk type resource describing which disk type to use to create * the disk. Provide this when creating the disk. For example: * project/zones/zone/diskTypes/pd-standard or pd-ssd */ - type: string; + type?: string; /** * [Output Only] Links to the users of the disk (attached instances) in * form: project/zones/zone/instances/instance */ - users: string[]; + users?: string[]; /** * [Output Only] URL of the zone where the disk resides. You must specify * this field as part of the HTTP request URL. It is not settable as a field * in the request body. */ - zone: string; + zone?: string; } export interface Schema$DiskAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DisksScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#diskAggregatedList for * aggregated lists of persistent disks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2297,15 +2307,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A specification of the desired way to instantiate a disk in the instance @@ -2316,17 +2326,17 @@ export namespace compute_alpha { * Specifies whether the disk will be auto-deleted when the instance is * deleted (but not when the disk is detached from the instance). */ - autoDelete: boolean; + autoDelete?: boolean; /** * The custom source image to be used to restore this disk when * instantiating this instance template. */ - customImage: string; + customImage?: string; /** * Specifies the device name of the disk to which the configurations apply * to. */ - deviceName: string; + deviceName?: string; /** * Specifies whether to include the disk and what image to use. Possible * values are: - source-image: to use the same image that was used to @@ -2340,7 +2350,7 @@ export namespace compute_alpha { * disks. - do-not-include: to exclude a disk from the template. Applicable * to additional read-write disks, local SSDs, and read-only disks. */ - instantiateFrom: string; + instantiateFrom?: string; } /** * A list of Disk resources. @@ -2349,16 +2359,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Disk resources. */ - items: Schema$Disk[]; + items?: Schema$Disk[]; /** * [Output Only] Type of resource. Always compute#diskList for lists of * disks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2366,15 +2376,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$DiskMoveRequest { /** @@ -2383,31 +2393,43 @@ export namespace compute_alpha { * https://www.googleapis.com/compute/v1/projects/project/zones/zone - * projects/project/zones/zone - zones/zone */ - destinationZone: string; + destinationZone?: string; /** * The URL of the target disk to move. This can be a full or partial URL. * For example, the following are all valid URLs to a disk: - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk * - projects/project/zones/zone/disks/disk - zones/zone/disks/disk */ - targetDisk: string; + targetDisk?: string; + } + export interface Schema$DisksAddResourcePoliciesRequest { + /** + * Resource policies to be added to this disk. + */ + resourcePolicies?: string[]; + } + export interface Schema$DisksRemoveResourcePoliciesRequest { + /** + * Resource policies to be removed from this disk. + */ + resourcePolicies?: string[]; } export interface Schema$DisksResizeRequest { /** * The new size of the persistent disk, which is specified in GB. */ - sizeGb: string; + sizeGb?: string; } export interface Schema$DisksScopedList { /** * [Output Only] A list of disks contained in this scope. */ - disks: Schema$Disk[]; + disks?: Schema$Disk[]; /** * [Output Only] Informational warning which replaces the list of disks when * the list is empty. */ - warning: any; + warning?: any; } /** * A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for @@ -2417,62 +2439,62 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Server-defined default disk size in GB. */ - defaultDiskSizeGb: string; + defaultDiskSizeGb?: string; /** * [Output Only] The deprecation status associated with this disk type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional description of this resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#diskType for disk * types. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] An optional textual description of the valid disk size, * such as "10GB-10TB". */ - validDiskSize: string; + validDiskSize?: string; /** * [Output Only] URL of the zone where the disk type resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$DiskTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2480,15 +2502,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of disk types. @@ -2497,16 +2519,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskType resources. */ - items: Schema$DiskType[]; + items?: Schema$DiskType[]; /** * [Output Only] Type of resource. Always compute#diskTypeList for disk * types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2514,29 +2536,29 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$DiskTypesScopedList { /** * [Output Only] A list of disk types contained in this scope. */ - diskTypes: Schema$DiskType[]; + diskTypes?: Schema$DiskType[]; /** * [Output Only] Informational warning which replaces the list of disk types * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$DistributionPolicy { - zones: Schema$DistributionPolicyZoneConfiguration[]; + zones?: Schema$DistributionPolicyZoneConfiguration[]; } export interface Schema$DistributionPolicyZoneConfiguration { /** @@ -2544,7 +2566,7 @@ export namespace compute_alpha { * regional resources). Zone has to belong to the region where managed * instance group is located. */ - zone: string; + zone?: string; } /** * Represents an expression text. Example: title: "User account @@ -2556,24 +2578,24 @@ export namespace compute_alpha { * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. */ - description: string; + description?: string; /** * Textual representation of an expression in Common Expression Language * syntax. The application context of the containing message determines * which well-known feature set of CEL is supported. */ - expression: string; + expression?: string; /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. */ - location: string; + location?: string; /** * An optional title for the expression, i.e. a short string describing its * purpose. This can be used e.g. in UIs which allow to enter the * expression. */ - title: string; + title?: string; } /** * Represents a Firewall resource. @@ -2583,58 +2605,58 @@ export namespace compute_alpha { * The list of ALLOW rules specified by this firewall. Each rule specifies a * protocol and port-range tuple that describes a permitted connection. */ - allowed: any[]; + allowed?: any[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The list of DENY rules specified by this firewall. Each rule specifies a * protocol and port-range tuple that describes a denied connection. */ - denied: any[]; + denied?: any[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * If destination ranges are specified, the firewall will apply only to * traffic that has destination IP address in these ranges. These ranges * must be expressed in CIDR format. Only IPv4 is supported. */ - destinationRanges: string[]; + destinationRanges?: string[]; /** * Direction of traffic to which this firewall applies; default is INGRESS. * Note: For INGRESS traffic, it is NOT supported to specify * destinationRanges; For EGRESS traffic, it is NOT supported to specify * sourceRanges OR sourceTags. */ - direction: string; + direction?: string; /** * Denotes whether the firewall rule is disabled, i.e not applied to the * network it is associated with. When set to true, the firewall rule is not * enforced and the network behaves as if it did not exist. If this is * unspecified, the firewall rule will be enabled. */ - disabled: boolean; + disabled?: boolean; /** * This field denotes whether to enable logging for a particular firewall * rule. If logging is enabled, logs will be exported to the configured * export destination for all firewall logs in the network. Logs may be * exported to BigQuery or Pub/Sub. */ - enableLogging: boolean; + enableLogging?: boolean; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#firewall for firewall * rules. */ - kind: string; + kind?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2644,7 +2666,7 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URL of the network resource for this firewall rule. If not specified when * creating a firewall rule, the default network is used: @@ -2655,7 +2677,7 @@ export namespace compute_alpha { * - projects/myproject/global/networks/my-network - * global/networks/default */ - network: string; + network?: string; /** * Priority for this rule. This is an integer between 0 and 65535, both * inclusive. When not specified, the value assumed is 1000. Relative @@ -2664,11 +2686,11 @@ export namespace compute_alpha { * precedence than a rule with priority 1). DENY rules take precedence over * ALLOW rules having equal priority. */ - priority: number; + priority?: number; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * If source ranges are specified, the firewall will apply only to traffic * that has source IP address in these ranges. These ranges must be @@ -2679,7 +2701,7 @@ export namespace compute_alpha { * not need to match both properties for the firewall to apply. Only IPv4 is * supported. */ - sourceRanges: string[]; + sourceRanges?: string[]; /** * If source service accounts are specified, the firewall will apply only to * traffic originating from an instance with a service account in this list. @@ -2693,7 +2715,7 @@ export namespace compute_alpha { * properties for the firewall to apply. sourceServiceAccounts cannot be * used at the same time as sourceTags or targetTags. */ - sourceServiceAccounts: string[]; + sourceServiceAccounts?: string[]; /** * If source tags are specified, the firewall rule applies only to traffic * with source IPs that match the primary network interfaces of VM instances @@ -2707,7 +2729,7 @@ export namespace compute_alpha { * sourceTags property. The connection does not need to match both * properties for the firewall to apply. */ - sourceTags: string[]; + sourceTags?: string[]; /** * A list of service accounts indicating sets of instances located in the * network that may make network connections as specified in allowed[]. @@ -2716,7 +2738,7 @@ export namespace compute_alpha { * specified, the firewall rule applies to all instances on the specified * network. */ - targetServiceAccounts: string[]; + targetServiceAccounts?: string[]; /** * A list of tags that controls which instances the firewall rule applies * to. If targetTags are specified, then the firewall rule applies only to @@ -2724,7 +2746,7 @@ export namespace compute_alpha { * targetTags are specified, the firewall rule applies to all instances on * the specified network. */ - targetTags: string[]; + targetTags?: string[]; } /** * Contains a list of firewalls. @@ -2733,16 +2755,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Firewall resources. */ - items: Schema$Firewall[]; + items?: Schema$Firewall[]; /** * [Output Only] Type of resource. Always compute#firewallList for lists of * firewalls. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2750,15 +2772,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Encapsulates numeric value that can be either absolute or relative. @@ -2773,17 +2795,17 @@ export namespace compute_alpha { * (80/100 * 150) = 120 VM instances. If there is a remainder, the number is * rounded up. */ - calculated: number; + calculated?: number; /** * Specifies a fixed number of VM instances. This must be a positive * integer. */ - fixed: number; + fixed?: number; /** * Specifies a percentage of instances between 0 to 100%, inclusive. For * example, specify 80 for 80%. */ - percent: number; + percent?: number; } /** * A ForwardingRule resource. A ForwardingRule resource specifies which pool @@ -2800,16 +2822,16 @@ export namespace compute_alpha { * balancing, this field identifies the BackendService resource to receive * the matched traffic. */ - backendService: string; + backendService?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be @@ -2818,12 +2840,12 @@ export namespace compute_alpha { * from another concurrent request. To see the latest fingerprint, make a * get() request to retrieve a ForwardingRule. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The IP address that this forwarding rule is serving on behalf of. * Addresses are restricted based on the forwarding rule's load @@ -2846,24 +2868,24 @@ export namespace compute_alpha { * - projects/project/regions/region/addresses/address - * regions/region/addresses/address - global/addresses/address - address */ - IPAddress: string; + IPAddress?: string; /** * The IP protocol to which this rule applies. Valid options are TCP, UDP, * ESP, AH, SCTP or ICMP. When the load balancing scheme is INTERNAL, only * TCP and UDP are valid. */ - IPProtocol: string; + IPProtocol?: string; /** * The IP Version that will be used by this forwarding rule. Valid options * are IPV4 or IPV6. This can only be specified for a global forwarding * rule. */ - ipVersion: string; + ipVersion?: string; /** * [Output Only] Type of the resource. Always compute#forwardingRule for * Forwarding Rule resources. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this resource, which is * essentially a hash of the labels set used for optimistic locking. The @@ -2873,13 +2895,13 @@ export namespace compute_alpha { * the latest fingerprint, make a get() request to retrieve a * ForwardingRule. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this resource. These can be later modified by the * setLabels method. Each label key/value pair must comply with RFC1035. * Label values may be empty. */ - labels: any; + labels?: any; /** * This signifies what the ForwardingRule will be used for and can only take * the following values: INTERNAL, EXTERNAL The value of INTERNAL means that @@ -2887,7 +2909,7 @@ export namespace compute_alpha { * value of EXTERNAL means that this will be used for External Load * Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) */ - loadBalancingScheme: string; + loadBalancingScheme?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2897,14 +2919,14 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the network that the load balanced IP * should belong to for this Forwarding Rule. If this field is not * specified, the default network will be used. */ - network: string; + network?: string; /** * This signifies the networking tier used for configuring this load * balancer and can only take the following values: PREMIUM , STANDARD. For @@ -2913,7 +2935,7 @@ export namespace compute_alpha { * specified, it is assumed to be PREMIUM. If IPAddress is specified, this * value must be equal to the networkTier of the Address. */ - networkTier: string; + networkTier?: string; /** * This field is used along with the target field for TargetHttpProxy, * TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, @@ -2927,7 +2949,7 @@ export namespace compute_alpha { * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, * 1688, 1883, 5222 - TargetVpnGateway: 500, 4500 */ - portRange: string; + portRange?: string; /** * This field is used along with the backend_service field for internal load * balancing. When the load balancing scheme is INTERNAL, a single port or @@ -2935,18 +2957,18 @@ export namespace compute_alpha { * to these ports will be forwarded to the backends configured with this * forwarding rule. You may specify a maximum of up to 5 ports. */ - ports: string[]; + ports?: string[]; /** * [Output Only] URL of the region where the regional forwarding rule * resides. This field is not applicable to global forwarding rules. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + 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. @@ -2957,12 +2979,12 @@ export namespace compute_alpha { * 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; + serviceLabel?: string; /** * [Output Only] The internal fully qualified service name for this * Forwarding Rule. This field is only used for internal load balancing. */ - serviceName: string; + serviceName?: string; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the subnetwork that the load balanced IP @@ -2970,7 +2992,7 @@ export namespace compute_alpha { * in auto subnet mode, this field is optional. However, if the network is * in custom subnet mode, a subnetwork must be specified. */ - subnetwork: string; + subnetwork?: string; /** * The URL of the target resource to receive the matched traffic. For * regional forwarding rules, this target must live in the same region as @@ -2978,22 +3000,22 @@ export namespace compute_alpha { * global load balancing resource. The forwarded traffic must be of a type * appropriate to the target object. */ - target: string; + target?: string; } export interface Schema$ForwardingRuleAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of ForwardingRulesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#forwardingRuleAggregatedList for lists of forwarding rules. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3001,15 +3023,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of ForwardingRule resources. @@ -3018,15 +3040,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of ForwardingRule resources. */ - items: Schema$ForwardingRule[]; + items?: Schema$ForwardingRule[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3034,27 +3056,27 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$ForwardingRuleReference { forwardingRule: string; } + export interface Schema$ForwardingRuleReference { forwardingRule?: string; } export interface Schema$ForwardingRulesScopedList { /** * A list of forwarding rules contained in this scope. */ - forwardingRules: Schema$ForwardingRule[]; + forwardingRules?: Schema$ForwardingRule[]; /** * Informational warning which replaces the list of forwarding rules when * the list is empty. */ - warning: any; + warning?: any; } export interface Schema$GlobalSetLabelsRequest { /** @@ -3065,7 +3087,7 @@ export namespace compute_alpha { * changing labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * A list of labels to apply for this resource. Each label key & value * must comply with RFC1035. Specifically, the name must be 1-63 characters @@ -3076,7 +3098,7 @@ export namespace compute_alpha { * "webserver-frontend": "images". A label value can * also be empty (e.g. "my-label": ""). */ - labels: any; + labels?: any; } /** * A guest attributes entry. @@ -3086,19 +3108,19 @@ export namespace compute_alpha { * [Output Only] Type of the resource. Always compute#guestAttributes for * guest attributes entry. */ - kind: string; + kind?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * The key to search for. */ - variableKey: string; + variableKey?: string; /** * [Output Only] The value found for the requested key. */ - variableValue: string; + variableValue?: string; } /** * Guest OS features. @@ -3108,7 +3130,7 @@ export namespace compute_alpha { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. */ - type: string; + type?: string; } /** * An HealthCheck resource. This resource defines a template for how @@ -3120,33 +3142,33 @@ export namespace compute_alpha { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in 3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; - http2HealthCheck: Schema$HTTP2HealthCheck; - httpHealthCheck: Schema$HTTPHealthCheck; - httpsHealthCheck: Schema$HTTPSHealthCheck; + healthyThreshold?: number; + http2HealthCheck?: Schema$HTTP2HealthCheck; + httpHealthCheck?: Schema$HTTPHealthCheck; + httpsHealthCheck?: Schema$HTTPSHealthCheck; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3156,36 +3178,36 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Region where the health check resides. Not applicable to * global health checks. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; - sslHealthCheck: Schema$SSLHealthCheck; - tcpHealthCheck: Schema$TCPHealthCheck; + selfLink?: string; + sslHealthCheck?: Schema$SSLHealthCheck; + tcpHealthCheck?: Schema$TCPHealthCheck; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If * not specified, the default is TCP. Exactly one of the protocol-specific * health check field must be specified, which must match type field. */ - type: string; - udpHealthCheck: Schema$UDPHealthCheck; + type?: string; + udpHealthCheck?: Schema$UDPHealthCheck; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Contains a list of HealthCheck resources. @@ -3194,15 +3216,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HealthCheck resources. */ - items: Schema$HealthCheck[]; + items?: Schema$HealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3210,15 +3232,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A full or valid partial URL to a health check. For example, the following @@ -3227,20 +3249,20 @@ export namespace compute_alpha { * - projects/project-id/global/httpHealthChecks/health-check - * global/httpHealthChecks/health-check */ - export interface Schema$HealthCheckReference { healthCheck: string; } + export interface Schema$HealthCheckReference { healthCheck?: string; } export interface Schema$HealthChecksAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HealthChecksScopedList resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3248,76 +3270,76 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$HealthChecksScopedList { /** * A list of HealthChecks contained in this scope. */ - healthChecks: Schema$HealthCheck[]; + healthChecks?: Schema$HealthCheck[]; /** * Informational warning which replaces the list of backend services when * the list is empty. */ - warning: any; + warning?: any; } export interface Schema$HealthStatus { /** * Health state of the instance. */ - healthState: string; + healthState?: string; /** * URL of the instance resource. */ - instance: string; + instance?: string; /** * The IP address represented by this resource. */ - ipAddress: string; + ipAddress?: string; /** * The port on the instance. */ - port: number; + port?: number; } export interface Schema$HealthStatusForNetworkEndpoint { /** * URL of the backend service associated with the health state of the * network endpoint. */ - backendService: Schema$BackendServiceReference; + backendService?: Schema$BackendServiceReference; /** * URL of the forwarding rule associated with the health state of the * network endpoint. */ - forwardingRule: Schema$ForwardingRuleReference; + forwardingRule?: Schema$ForwardingRuleReference; /** * URL of the health check associated with the health state of the network * endpoint. */ - healthCheck: Schema$HealthCheckReference; + healthCheck?: Schema$HealthCheckReference; /** * Health state of the network endpoint determined based on the health * checks configured. */ - healthState: string; + healthState?: string; } export interface Schema$Host { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * Full or partial URL of the host type resource to use for this host, in * the format: zones/zone/hostTypes/host-type. This is provided by the @@ -3325,21 +3347,21 @@ export namespace compute_alpha { * partial url to a predefined host type: * zones/us-central1-b/hostTypes/n1-host-64-416 */ - hostType: string; + hostType?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A list of resource URLs to the virtual machine instances in this host. * They must live in zones contained in the same region as this host. */ - instances: string[]; + instances?: string[]; /** * [Output Only] The type of the resource. Always compute#host for host. */ - kind: string; + kind?: string; /** * A fingerprint for this request, which is essentially a hash of the * metadata's contents and used for optimistic locking. The fingerprint @@ -3348,11 +3370,11 @@ export namespace compute_alpha { * fingerprint hash in order to update or change metadata. To see the * latest fingerprint, make get() request to the host. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this host. */ - labels: any; + labels?: any; /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply @@ -3362,40 +3384,40 @@ export namespace compute_alpha { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the host. One of the following values: * CREATING, READY, REPAIR, and DELETING. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The name of the zone where the host resides, such as * us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$HostAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HostsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#hostAggregatedList for * aggregated lists of hosts. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3403,15 +3425,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of hosts. @@ -3420,16 +3442,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Host resources. */ - items: Schema$Host[]; + items?: Schema$Host[]; /** * [Output Only] Type of resource. Always compute#hostList for lists of * hosts. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3437,15 +3459,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * UrlMaps A host-matching rule for a URL. If matched, will use the named @@ -3456,29 +3478,29 @@ export namespace compute_alpha { * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The list of host patterns to match. They must be valid hostnames, except * * will match any string of ([a-z0-9-.]*). In that case, * must be the * first character and must be followed in the pattern by either - or .. */ - hosts: string[]; + hosts?: string[]; /** * The name of the PathMatcher to use to match the path portion of the URL * if the hostRule matches the URL's host portion. */ - pathMatcher: string; + pathMatcher?: string; } export interface Schema$HostsScopedList { /** * [Output Only] A list of hosts contained in this scope. */ - hosts: Schema$Host[]; + hosts?: Schema$Host[]; /** * [Output Only] An informational warning that appears when the host list is * empty. */ - warning: any; + warning?: any; } /** * A Host Type resource. @@ -3487,71 +3509,71 @@ export namespace compute_alpha { /** * [Output Only] The CPU platform used by this host type. */ - cpuPlatform: string; + cpuPlatform?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this host type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The number of virtual CPUs that are available to the host * type. */ - guestCpus: number; + guestCpus?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#hostType for host * types. */ - kind: string; + kind?: string; /** * [Output Only] Local SSD available to the host type, defined in GB. */ - localSsdGb: number; + localSsdGb?: number; /** * [Output Only] The amount of physical memory available to the host type, * defined in MB. */ - memoryMb: number; + memoryMb?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the host type resides, such as * us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$HostTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HostTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource.Always compute#hostTypeAggregatedList for * aggregated lists of host types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3559,15 +3581,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of host types. @@ -3576,16 +3598,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HostType resources. */ - items: Schema$HostType[]; + items?: Schema$HostType[]; /** * [Output Only] Type of resource.Always compute#hostTypeList for lists of * host types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3593,26 +3615,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$HostTypesScopedList { /** * [Output Only] A list of host types contained in this scope. */ - hostTypes: Schema$HostType[]; + hostTypes?: Schema$HostType[]; /** * [Output Only] An informational warning that appears when the host types * list is empty. */ - warning: any; + warning?: any; } export interface Schema$HTTP2HealthCheck { /** @@ -3620,17 +3642,17 @@ export namespace compute_alpha { * empty (default value), the IP on behalf of which this health check is * performed will be used. */ - host: string; + host?: string; /** * The TCP port number for the health check request. The default value is * 443. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies how port is selected for health checking, can be one of * following values: USE_FIXED_PORT: The port number in port is used for @@ -3641,23 +3663,23 @@ export namespace compute_alpha { * for health checking. If not specified, HTTP2 health check follows * behavior specified in port and portName fields. */ - portSpecification: string; + portSpecification?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The request path of the HTTP/2 health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * The string to match anywhere in the first 1024 bytes of the response * body. If left empty (the default value), the status code determines * health. The response data can only be ASCII. */ - response: string; + response?: string; } /** * An HttpHealthCheck resource. This resource defines a template for how @@ -3668,37 +3690,37 @@ export namespace compute_alpha { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTP health check request. If left * empty (default value), the public IP on behalf of which this health check * is performed will be used. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#httpHealthCheck for * HTTP health checks. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3708,32 +3730,32 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The TCP port number for the HTTP health check request. The default value * is 80. */ - port: number; + port?: number; /** * The request path of the HTTP health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } export interface Schema$HTTPHealthCheck { /** @@ -3741,17 +3763,17 @@ export namespace compute_alpha { * empty (default value), the IP on behalf of which this health check is * performed will be used. */ - host: string; + host?: string; /** * The TCP port number for the health check request. The default value * is 80. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies how port is selected for health checking, can be one of * following values: USE_FIXED_PORT: The port number in port is used for @@ -3762,23 +3784,23 @@ export namespace compute_alpha { * for health checking. If not specified, HTTP health check follows * behavior specified in port and portName fields. */ - portSpecification: string; + portSpecification?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The request path of the HTTP health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * The string to match anywhere in the first 1024 bytes of the response * body. If left empty (the default value), the status code determines * health. The response data can only be ASCII. */ - response: string; + response?: string; } /** * Contains a list of HttpHealthCheck resources. @@ -3787,15 +3809,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HttpHealthCheck resources. */ - items: Schema$HttpHealthCheck[]; + items?: Schema$HttpHealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3803,15 +3825,60 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; + } + export interface Schema$HTTPSHealthCheck { + /** + * The value of the host header in the HTTPS health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value is + * 443. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies how port is selected for health checking, can be one of + * following values: USE_FIXED_PORT: The port number in port is used for + * health checking. USE_NAMED_PORT: The portName is used for health + * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified + * for each network endpoint is used for health checking. For other + * backends, the port or named port specified in the Backend Service is used + * for health checking. If not specified, HTTPS health check follows + * behavior specified in port and portName fields. + */ + portSpecification?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTPS health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; } /** * An HttpsHealthCheck resource. This resource defines a template for how @@ -3822,36 +3889,36 @@ export namespace compute_alpha { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTPS health check request. If left * empty (default value), the public IP on behalf of which this health check * is performed will be used. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3861,77 +3928,32 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The TCP port number for the HTTPS health check request. The default value * is 443. */ - port: number; + port?: number; /** * The request path of the HTTPS health check request. The default value is * "/". */ - requestPath: string; + requestPath?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have a greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; - } - export interface Schema$HTTPSHealthCheck { - /** - * The value of the host header in the HTTPS health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - host: string; - /** - * The TCP port number for the health check request. The default value is - * 443. Valid values are 1 through 65535. - */ - port: number; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - portName: string; - /** - * Specifies how port is selected for health checking, can be one of - * following values: USE_FIXED_PORT: The port number in port is used for - * health checking. USE_NAMED_PORT: The portName is used for health - * checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified - * for each network endpoint is used for health checking. For other - * backends, the port or named port specified in the Backend Service is used - * for health checking. If not specified, HTTPS health check follows - * behavior specified in port and portName fields. - */ - portSpecification: string; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. - */ - proxyHeader: string; - /** - * The request path of the HTTPS health check request. The default value is - * /. - */ - requestPath: string; - /** - * The string to match anywhere in the first 1024 bytes of the response - * body. If left empty (the default value), the status code determines - * health. The response data can only be ASCII. - */ - response: string; + unhealthyThreshold?: number; } /** * Contains a list of HttpsHealthCheck resources. @@ -3940,15 +3962,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HttpsHealthCheck resources. */ - items: Schema$HttpsHealthCheck[]; + items?: Schema$HttpsHealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3956,15 +3978,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Image resource. (== resource_for beta.images ==) (== resource_for @@ -3975,42 +3997,42 @@ export namespace compute_alpha { * Size of the image tar.gz archive stored in Google Cloud Storage (in * bytes). */ - archiveSizeBytes: string; + archiveSizeBytes?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The deprecation status associated with this image. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Size of the image when restored onto a persistent disk (in GB). */ - diskSizeGb: string; + diskSizeGb?: string; /** * The name of the image family to which this image belongs. You can create * disks by specifying an image family instead of a specific image name. The * image family always returns its latest image that is not deprecated. The * name of the image family must comply with RFC1035. */ - family: string; + family?: string; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Encrypts the image using a customer-supplied encryption key. After you * encrypt an image with a customer-supplied key, you must provide the same @@ -4020,11 +4042,11 @@ export namespace compute_alpha { * image, then the disk will be encrypted using an automatically generated * key and you do not need to provide a key to use the image later. */ - imageEncryptionKey: Schema$CustomerEncryptionKey; + imageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] Type of the resource. Always compute#image for images. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this image, which is * essentially a hash of the labels used for optimistic locking. The @@ -4033,21 +4055,21 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an image. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this image. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * Integer license codes indicating which licenses are attached to this * image. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * Any applicable license URI. */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4057,15 +4079,15 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The parameters of the raw disk image. */ - rawDisk: any; + rawDisk?: any; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL of the source disk used to create this image. This can be a full or * valid partial URL. You must provide either this property or the @@ -4074,66 +4096,66 @@ export namespace compute_alpha { * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk * - projects/project/zones/zone/disks/disk - zones/zone/disks/disk */ - sourceDisk: string; + sourceDisk?: string; /** * The customer-supplied encryption key of the source disk. Required if the * source disk is protected by a customer-supplied encryption key. */ - sourceDiskEncryptionKey: Schema$CustomerEncryptionKey; + sourceDiskEncryptionKey?: Schema$CustomerEncryptionKey; /** * The ID value of the disk used to create this image. This value may be * used to determine whether the image was taken from the current or a * previous instance of a given disk name. */ - sourceDiskId: string; + sourceDiskId?: string; /** * URL of the source image used to create this image. This can be a full or * valid partial URL. You must provide exactly one of: - this property, or * - the rawDisk.source property, or - the sourceDisk property in order * to create an image. */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the image used to create this image. This * value may be used to determine whether the image was taken from the * current or a previous instance of a given image name. */ - sourceImageId: string; + sourceImageId?: string; /** * URL of the source snapshot used to create this image. This can be a full * or valid partial URL. You must provide exactly one of: - this property, * or - the sourceImage property, or - the rawDisk.source property, or * - the sourceDisk property in order to create an image. */ - sourceSnapshot: string; + sourceSnapshot?: string; /** * The customer-supplied encryption key of the source snapshot. Required if * the source snapshot is protected by a customer-supplied encryption key. */ - sourceSnapshotEncryptionKey: Schema$CustomerEncryptionKey; + sourceSnapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the snapshot used to create this image. * This value may be used to determine whether the snapshot was taken from * the current or a previous instance of a given snapshot name. */ - sourceSnapshotId: string; + sourceSnapshotId?: string; /** * The type of the image used to create this disk. The default and only * value is RAW */ - sourceType: string; + sourceType?: string; /** * [Output Only] The status of the image. An image can be used to create * other resources, such as instances, only after the image has been * successfully created and the status is set to READY. Possible values are * FAILED, PENDING, or READY. */ - status: string; + status?: string; } /** * Contains a list of images. @@ -4142,15 +4164,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Image resources. */ - items: Schema$Image[]; + items?: Schema$Image[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4158,15 +4180,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Instance resource. (== resource_for beta.instances ==) (== resource_for @@ -4179,34 +4201,34 @@ export namespace compute_alpha { * instance to forward routes. For more information, see Enabling IP * Forwarding. */ - canIpForward: boolean; + canIpForward?: boolean; /** * [Output Only] The CPU platform used by this instance. */ - cpuPlatform: string; + cpuPlatform?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Whether the resource should be protected against deletion. */ - deletionProtection: boolean; + deletionProtection?: boolean; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Array of disks associated with this instance. Persistent disks must be * created before you can assign them. */ - disks: Schema$AttachedDisk[]; + disks?: Schema$AttachedDisk[]; /** * A list of the type and count of accelerator cards attached to the * instance. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; /** * Full or partial URL of the host resource that the instance should be * placed on, in the format: zones/zone/hosts/host. Optional, sole-tenant @@ -4215,12 +4237,12 @@ export namespace compute_alpha { * other instances with the same sole-tenant host. The request will be * rejected if the sole-tenant host has run out of resources. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Encrypts or decrypts data for an instance with a customer-supplied * encryption key. If you are creating a new instance, this field encrypts @@ -4235,26 +4257,26 @@ export namespace compute_alpha { * cannot use your own keys to encrypt local SSDs and in-memory content in a * managed instance group. */ - instanceEncryptionKey: Schema$CustomerEncryptionKey; + instanceEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] Type of the resource. Always compute#instance for * instances. */ - kind: string; + kind?: string; /** * A fingerprint for this request, which is essentially a hash of the - * metadata's contents and used for optimistic locking. The fingerprint - * is initially generated by Compute Engine and changes after every request - * to modify or update metadata. You must always provide an up-to-date - * fingerprint hash in order to update or change metadata. To see the - * latest fingerprint, make get() request to the instance. + * label's contents and used for optimistic locking. The fingerprint is + * initially generated by Compute Engine and changes after every request to + * modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. To see the latest + * fingerprint, make get() request to the instance. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this instance. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * Full or partial URL of the machine type resource to use for this * instance, in the format: zones/zone/machineTypes/machine-type. This is @@ -4269,19 +4291,19 @@ export namespace compute_alpha { * zones/us-central1-f/machineTypes/custom-4-5120 For a full list of * restrictions, read the Specifications for custom machine types. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs assigned to this instance. This includes * custom metadata and predefined keys. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * Specifies a minimum CPU platform for the VM instance. Applicable values * are the friendly names of CPU platforms, such as minCpuPlatform: * "Intel Haswell" or minCpuPlatform: "Intel Sandy * Bridge". */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply @@ -4291,27 +4313,31 @@ export namespace compute_alpha { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * An array of network configurations for this instance. These specify how * interfaces are configured to interact with other network services, such * as connecting to the internet. Multiple interfaces are supported per * instance. */ - networkInterfaces: Schema$NetworkInterface[]; + networkInterfaces?: Schema$NetworkInterface[]; /** * Total amount of preserved state for SUSPENDED instances. Read-only in the * api. */ - preservedStateSizeGb: string; + preservedStateSizeGb?: string; + /** + * Resource policies applied to this instance. + */ + resourcePolicies?: string[]; /** * Sets the scheduling options for this instance. */ - scheduling: Schema$Scheduling; + scheduling?: Schema$Scheduling; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * A list of service accounts, with their specified scopes, authorized for * this instance. Only one service account per VM instance is supported. @@ -4319,52 +4345,52 @@ export namespace compute_alpha { * metadata server and used to authenticate applications on the instance. * See Service Accounts for more information. */ - serviceAccounts: Schema$ServiceAccount[]; - shieldedVmConfig: Schema$ShieldedVmConfig; - shieldedVmIntegrityPolicy: Schema$ShieldedVmIntegrityPolicy; + serviceAccounts?: Schema$ServiceAccount[]; + shieldedVmConfig?: Schema$ShieldedVmConfig; + shieldedVmIntegrityPolicy?: Schema$ShieldedVmIntegrityPolicy; /** * [Output Only] Whether a VM has been restricted for start because Compute * Engine has detected suspicious activity. */ - startRestricted: boolean; + startRestricted?: boolean; /** * [Output Only] The status of the instance. One of the following values: * PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, * and TERMINATED. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; /** * A list of tags to apply to this instance. Tags are used to identify valid * sources or targets for network firewalls and are specified by the client * during instance creation. The tags can be later modified by the setTags * method. Each tag within the list must comply with RFC1035. */ - tags: Schema$Tags; + tags?: Schema$Tags; /** * [Output Only] URL of the zone where the instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$InstanceAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstancesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#instanceAggregatedList for * aggregated lists of Instance resources. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4372,15 +4398,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for @@ -4392,33 +4418,33 @@ export namespace compute_alpha { * [Output Only] The creation timestamp for this instance group in RFC3339 * text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The fingerprint of the named ports. The system uses this * fingerprint to detect conflicts when multiple users change the named * ports concurrently. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] A unique identifier for this instance group, generated by * the server. */ - id: string; + id?: string; /** * [Output Only] The resource type, which is always compute#instanceGroup * for instance groups. */ - kind: string; + kind?: string; /** * The name of the instance group. The name must be 1-63 characters long, * and comply with RFC1035. */ - name: string; + name?: string; /** * Assigns a name to a port number. For example: {name: "http", * port: 80} This allows the system to reference ports by the assigned name @@ -4426,52 +4452,52 @@ export namespace compute_alpha { * For example: [{name: "http", port: 80},{name: "http", * port: 8080}] Named ports apply to all instances in this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * The URL of the network to which all instances in the instance group * belong. */ - network: string; + network?: string; /** * [Output Only] The URL of the region where the instance group is located * (for regional resources). */ - region: string; + region?: string; /** * [Output Only] The URL for this instance group. The server generates this * URL. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The total number of instances in the instance group. */ - size: number; + size?: number; /** * [Output Only] The URL of the subnetwork to which all instances in the * instance group belong. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URL of the zone where the instance group is located * (for zonal resources). */ - zone: string; + zone?: string; } export interface Schema$InstanceGroupAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#instanceGroupAggregatedList for aggregated lists of instance * groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4479,15 +4505,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A list of InstanceGroup resources. @@ -4496,16 +4522,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroup resources. */ - items: Schema$InstanceGroup[]; + items?: Schema$InstanceGroup[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupList for instance group lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4513,15 +4539,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Instance Group Manager resource. (== resource_for @@ -4530,121 +4556,123 @@ export namespace compute_alpha { * v1.regionInstanceGroupManagers ==) */ export interface Schema$InstanceGroupManager { - activities: Schema$InstanceGroupManagerActivities; + activities?: Schema$InstanceGroupManagerActivities; /** * The autohealing policy for this managed instance group. You can specify * only one value. */ - autoHealingPolicies: Schema$InstanceGroupManagerAutoHealingPolicy[]; + autoHealingPolicies?: Schema$InstanceGroupManagerAutoHealingPolicy[]; /** * The base instance name to use for instances in this group. The value must * be 1-58 characters long. Instances are named by appending a hyphen and a * random four-character string to the base instance name. The base instance * name must comply with RFC1035. */ - baseInstanceName: string; + baseInstanceName?: string; /** * [Output Only] The creation timestamp for this managed instance group in * RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The list of instance actions and the number of instances in * this managed instance group that are scheduled for each of those actions. */ - currentActions: Schema$InstanceGroupManagerActionsSummary; + currentActions?: Schema$InstanceGroupManagerActionsSummary; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Policy valid only for regional managed instance groups. */ - distributionPolicy: Schema$DistributionPolicy; + distributionPolicy?: Schema$DistributionPolicy; /** * The action to perform in case of zone failure. Only one value is * supported, NO_FAILOVER. The default is NO_FAILOVER. */ - failoverAction: string; + failoverAction?: string; /** - * [Output Only] The fingerprint of the resource data. You can use this - * optional field for optimistic locking when you update the resource. + * Fingerprint of this resource. This field may be used in optimistic + * locking. It will be ignored when inserting an InstanceGroupManager. An + * up-to-date fingerprint must be provided in order to update the + * InstanceGroupManager or the field need to be unset. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] A unique identifier for this resource type. The server * generates this identifier. */ - id: string; + id?: string; /** * [Output Only] The URL of the Instance Group resource. */ - instanceGroup: string; + instanceGroup?: string; /** * The URL of the instance template that is specified for this managed * instance group. The group uses this template to create all new instances * in the managed instance group. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] The resource type, which is always * compute#instanceGroupManager for managed instance groups. */ - kind: string; + kind?: string; /** * The name of the managed instance group. The name must be 1-63 characters * long, and comply with RFC1035. */ - name: string; + name?: string; /** * Named ports configured for the Instance Groups complementary to this * Instance Group Manager. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * [Output Only] The list of instance actions and the number of instances in * this managed instance group that are pending for each of those actions. */ - pendingActions: Schema$InstanceGroupManagerPendingActionsSummary; + pendingActions?: Schema$InstanceGroupManagerPendingActionsSummary; /** * [Output Only] The URL of the region where the managed instance group * resides (for regional resources). */ - region: string; + region?: string; /** * [Output Only] The URL for this managed instance group. The server defines * this URL. */ - selfLink: string; + selfLink?: string; /** - * [Output Only] The service account to be used as credentials for all - * operations performed by the managed instance group on instances. The - * service accounts needs all permissions required to create and delete - * instances. By default, the service account + * The service account to be used as credentials for all operations + * performed by the managed instance group on instances. The service + * accounts needs all permissions required to create and delete instances. + * By default, the service account * {projectNumber}@cloudservices.gserviceaccount.com is used. */ - serviceAccount: string; + serviceAccount?: string; /** * Stateful configuration for this Instanced Group Manager */ - statefulPolicy: Schema$StatefulPolicy; + statefulPolicy?: Schema$StatefulPolicy; /** * The URLs for all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to * all of the instances in the managed instance group. */ - targetPools: string[]; + targetPools?: string[]; /** * The target number of running instances for this managed instance group. * Deleting or abandoning instances reduces this number. Resizing the group * changes this number. */ - targetSize: number; + targetSize?: number; /** * The update policy for this managed instance group. */ - updatePolicy: Schema$InstanceGroupManagerUpdatePolicy; + updatePolicy?: Schema$InstanceGroupManagerUpdatePolicy; /** * Specifies the instance templates used by this managed instance group to * create instances. Each version is defined by an instanceTemplate. Every @@ -4654,12 +4682,12 @@ export namespace compute_alpha { * unset. That version will be applied to all remaining instances. For more * information, read about canary updates. */ - versions: Schema$InstanceGroupManagerVersion[]; + versions?: Schema$InstanceGroupManagerVersion[]; /** * [Output Only] The URL of the zone where the managed instance group is * located (for zonal resources). */ - zone: string; + zone?: string; } export interface Schema$InstanceGroupManagerActionsSummary { /** @@ -4667,7 +4695,7 @@ export namespace compute_alpha { * that are scheduled to be abandoned. Abandoning an instance removes it * from the managed instance group without deleting it. */ - abandoning: number; + abandoning?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be created or are currently being created. If the group @@ -4676,24 +4704,24 @@ export namespace compute_alpha { * field will not be populated; instead, the creatingWithoutRetries field * will be populated. */ - creating: number; + creating?: number; /** * [Output Only] The number of instances that the managed instance group * will attempt to create. The group attempts to create each instance only * once. If the group fails to create any of these instances, it decreases * the group's targetSize value accordingly. */ - creatingWithoutRetries: number; + creatingWithoutRetries?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be deleted or are currently being deleted. */ - deleting: number; + deleting?: number; /** * [Output Only] The number of instances in the managed instance group that * are running and have no scheduled actions. */ - none: number; + none?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be recreated or are currently being being recreated. @@ -4701,50 +4729,50 @@ export namespace compute_alpha { * creates a new disk from the image that is defined in the instance * template. */ - recreating: number; + recreating?: number; /** * [Output Only] The number of instances in the managed instance group that * are being reconfigured with properties that do not require a restart or a * recreate action. For example, setting or removing target pools for the * instance. */ - refreshing: number; + refreshing?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be restarted or are currently being restarted. */ - restarting: number; + restarting?: number; /** * [Output Only] The number of instances in the managed instance group that * are being verified. See the managedInstances[].currentAction property in * the listManagedInstances method documentation. */ - verifying: number; + verifying?: number; } export interface Schema$InstanceGroupManagerActivities { - autohealing: string; - autohealingHealthCheckBased: string; - autoscalingDown: string; - autoscalingUp: string; - creatingInstances: string; - deletingInstances: string; - recreatingInstances: string; + autohealing?: string; + autohealingHealthCheckBased?: string; + autoscalingDown?: string; + autoscalingUp?: string; + creatingInstances?: string; + deletingInstances?: string; + recreatingInstances?: string; } export interface Schema$InstanceGroupManagerAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManagersScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerAggregatedList for an aggregated list of * managed instance groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4752,21 +4780,21 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagerAutoHealingPolicy { /** * The URL for the health check that signals autohealing. */ - healthCheck: string; + healthCheck?: string; /** * The number of seconds that the managed instance group waits before it * applies autohealing policies to new instances or recently recreated @@ -4775,7 +4803,7 @@ export namespace compute_alpha { * UNHEALTHY. This prevents the managed instance group from recreating its * instances prematurely. This value must be from range [0, 3600]. */ - initialDelaySec: number; + initialDelaySec?: number; /** * Maximum number of instances that can be unavailable when autohealing. The * instance is considered available if all of the following conditions are @@ -4783,11 +4811,11 @@ export namespace compute_alpha { * liveness health check result was observed to be HEALTHY at least once. By * default, a percent value of 100% is used. */ - maxUnavailable: Schema$FixedOrPercent; + maxUnavailable?: Schema$FixedOrPercent; /** * Defines operating mode for this policy. */ - mode: string; + mode?: string; } /** * [Output Only] A list of managed instance groups. @@ -4796,16 +4824,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManager resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerList for a list of managed instance groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4813,44 +4841,44 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagerPendingActionsSummary { /** * [Output Only] The number of instances in the managed instance group that * are pending to be created. */ - creating: number; + creating?: number; /** * [Output Only] The number of instances in the managed instance group that * are pending to be deleted. */ - deleting: number; + deleting?: number; /** * [Output Only] The number of instances in the managed instance group that * are pending to be recreated. */ - recreating: number; + recreating?: number; /** * [Output Only] The number of instances in the managed instance group that * are pending to be restarted. */ - restarting: number; + restarting?: number; } export interface Schema$InstanceGroupManagersAbandonInstancesRequest { /** * The URLs of one or more instances to abandon. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } /** * InstanceGroupManagers.applyUpdatesToInstances @@ -4861,24 +4889,24 @@ export namespace compute_alpha { * updates on this managed instance group. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; /** * The maximal action that should be perfomed on the instances. By default * REPLACE. */ - maximalAction: string; + maximalAction?: string; /** * The minimal action that should be perfomed on the instances. By default * NONE. */ - minimalAction: string; + minimalAction?: string; } export interface Schema$InstanceGroupManagersDeleteInstancesRequest { /** * The URLs of one or more instances to delete. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } /** * InstanceGroupManagers.deletePerInstanceConfigs @@ -4888,13 +4916,13 @@ export namespace compute_alpha { * The list of instances for which we want to delete per-instance configs on * this managed instance group. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersListManagedInstancesResponse { /** * [Output Only] The list of instances in the managed instance group. */ - managedInstances: Schema$ManagedInstance[]; + managedInstances?: Schema$ManagedInstance[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4902,13 +4930,13 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$InstanceGroupManagersListPerInstanceConfigsResp { /** * [Output Only] The list of PerInstanceConfig. */ - items: Schema$PerInstanceConfig[]; + items?: Schema$PerInstanceConfig[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4916,18 +4944,18 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagersRecreateInstancesRequest { /** * The URLs of one or more instances to recreate. This can be a full URL or * a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersResizeAdvancedRequest { /** @@ -4947,29 +4975,29 @@ export namespace compute_alpha { * in any way. You can see which instances is being creating in which mode * by calling the get or listManagedInstances API. */ - noCreationRetries: boolean; + noCreationRetries?: boolean; /** * The number of running instances that the managed instance group should * maintain at any given time. The group automatically adds or removes * instances to maintain the number of instances specified by this * parameter. */ - targetSize: number; + targetSize?: number; } export interface Schema$InstanceGroupManagersScopedList { /** * [Output Only] The list of managed instance groups that are contained in * the specified project and zone. */ - instanceGroupManagers: Schema$InstanceGroupManager[]; + instanceGroupManagers?: Schema$InstanceGroupManager[]; /** * [Output Only] The warning that replaces the list of managed instance * groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagersSetAutoHealingRequest { - autoHealingPolicies: Schema$InstanceGroupManagerAutoHealingPolicy[]; + autoHealingPolicies?: Schema$InstanceGroupManagerAutoHealingPolicy[]; } export interface Schema$InstanceGroupManagersSetInstanceTemplateRequest { /** @@ -4977,7 +5005,7 @@ export namespace compute_alpha { * instance group. The group uses this template to create all new instances * in the managed instance group. */ - instanceTemplate: string; + instanceTemplate?: string; } export interface Schema$InstanceGroupManagersSetTargetPoolsRequest { /** @@ -4988,14 +5016,14 @@ export namespace compute_alpha { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of target pool URLs that instances in this managed instance * group belong to. The managed instance group applies these target pools to * all of the instances in the group. Existing instances and new instances * in the group all receive these target pool settings. */ - targetPools: string[]; + targetPools?: string[]; } /** * InstanceGroupManagers.updatePerInstanceConfigs @@ -5005,9 +5033,10 @@ export namespace compute_alpha { * The list of per-instance configs to insert or patch on this managed * instance group. */ - perInstanceConfigs: Schema$PerInstanceConfig[]; + perInstanceConfigs?: Schema$PerInstanceConfig[]; } export interface Schema$InstanceGroupManagerUpdatePolicy { + instanceRedistributionType?: string; /** * The maximum number of instances that can be created above the specified * targetSize during the update process. By default, a fixed value of 1 is @@ -5017,7 +5046,7 @@ export namespace compute_alpha { * either maxSurge or maxUnavailable must be greater than 0. Learn more * about maxSurge. */ - maxSurge: Schema$FixedOrPercent; + maxSurge?: Schema$FixedOrPercent; /** * The maximum number of instances that can be unavailable during the update * process. An instance is considered available if all of the following @@ -5032,7 +5061,7 @@ export namespace compute_alpha { * either maxSurge or maxUnavailable must be greater than 0. Learn more * about maxUnavailable. */ - maxUnavailable: Schema$FixedOrPercent; + maxUnavailable?: Schema$FixedOrPercent; /** * Minimal action to be taken on an instance. You can specify either RESTART * to restart existing instances or REPLACE to delete and create new @@ -5041,27 +5070,27 @@ export namespace compute_alpha { * determines that the minimal action you specify is not enough to perform * the update, it might perform a more disruptive action. */ - minimalAction: string; + minimalAction?: string; /** * Minimum number of seconds to wait for after a newly created instance * becomes available. This value must be from range [0, 3600]. */ - minReadySec: number; - type: string; + minReadySec?: number; + type?: string; } export interface Schema$InstanceGroupManagerVersion { - instanceTemplate: string; + instanceTemplate?: string; /** * Name of the version. Unique among all versions in the scope of this * managed instance group. */ - name: string; + name?: string; /** * Tag describing the version. Used to trigger rollout of a target version * even if instance_template remains unchanged. Deprecated in favor of * 'name'. */ - tag: string; + tag?: string; /** * Specifies the intended number of instances to be created from the * instanceTemplate. The final number of instances created from the template @@ -5073,29 +5102,29 @@ export namespace compute_alpha { * not updated by another version. Read Starting a canary update for more * information. */ - targetSize: Schema$FixedOrPercent; + targetSize?: Schema$FixedOrPercent; } export interface Schema$InstanceGroupsAddInstancesRequest { /** * The list of instances to add to the instance group. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$InstanceGroupsListInstances { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceWithNamedPorts resources. */ - items: Schema$InstanceWithNamedPorts[]; + items?: Schema$InstanceWithNamedPorts[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupsListInstances for the list of instances in the * specified instance group. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5103,15 +5132,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupsListInstancesRequest { /** @@ -5119,25 +5148,25 @@ export namespace compute_alpha { * options are ALL or RUNNING. If you do not specify this parameter the list * includes all instances regardless of their state. */ - instanceState: string; + instanceState?: string; } export interface Schema$InstanceGroupsRemoveInstancesRequest { /** * The list of instances to remove from the instance group. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$InstanceGroupsScopedList { /** * [Output Only] The list of instance groups that are contained in this * scope. */ - instanceGroups: Schema$InstanceGroup[]; + instanceGroups?: Schema$InstanceGroup[]; /** * [Output Only] An informational warning that replaces the list of instance * groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupsSetNamedPortsRequest { /** @@ -5148,11 +5177,11 @@ export namespace compute_alpha { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of named ports to set for this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; } /** * Contains a list of instances. @@ -5161,16 +5190,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Instance resources. */ - items: Schema$Instance[]; + items?: Schema$Instance[]; /** * [Output Only] Type of resource. Always compute#instanceList for lists of * Instance resources. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5178,15 +5207,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of instance referrers. @@ -5195,16 +5224,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Reference resources. */ - items: Schema$Reference[]; + items?: Schema$Reference[]; /** * [Output Only] Type of resource. Always compute#instanceListReferrers for * lists of Instance referrers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5212,15 +5241,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceMoveRequest { /** @@ -5229,7 +5258,7 @@ export namespace compute_alpha { * - https://www.googleapis.com/compute/v1/projects/project/zones/zone - * projects/project/zones/zone - zones/zone */ - destinationZone: string; + destinationZone?: string; /** * The URL of the target instance to move. This can be a full or partial * URL. For example, the following are all valid URLs to an instance: - @@ -5237,7 +5266,7 @@ export namespace compute_alpha { * - projects/project/zones/zone/instances/instance - * zones/zone/instances/instance */ - targetInstance: string; + targetInstance?: string; } export interface Schema$InstanceProperties { /** @@ -5248,37 +5277,37 @@ export namespace compute_alpha { * resource, specify true. If unsure, leave this set to false. See the * Enable IP forwarding documentation for more information. */ - canIpForward: boolean; + canIpForward?: boolean; /** * An optional text description for the instances that are created from this * instance template. */ - description: string; + description?: string; /** * An array of disks that are associated with the instances that are created * from this template. */ - disks: Schema$AttachedDisk[]; + disks?: Schema$AttachedDisk[]; /** * A list of guest accelerator cards' type and count to use for * instances created from the instance template. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; /** * Labels to apply to instances that are created from this template. */ - labels: any; + labels?: any; /** * The machine type to use for instances that are created from this * template. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs to assign to instances that are created from * this template. These pairs can consist of custom metadata or predefined * keys. See Project and instance metadata for more information. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * Minimum cpu/platform to be used by this instance. The instance may be * scheduled on the specified or newer cpu/platform. Applicable values are @@ -5286,41 +5315,53 @@ export namespace compute_alpha { * Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more * information, read Specifying a Minimum CPU Platform. */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * An array of network access configurations for this interface. */ - networkInterfaces: Schema$NetworkInterface[]; + networkInterfaces?: Schema$NetworkInterface[]; /** * Specifies the scheduling options for the instances that are created from * this template. */ - scheduling: Schema$Scheduling; + scheduling?: Schema$Scheduling; /** * A list of service accounts with specified scopes. Access tokens for these * service accounts are available to the instances that are created from * this template. Use metadata queries to obtain the access tokens for these * instances. */ - serviceAccounts: Schema$ServiceAccount[]; + serviceAccounts?: Schema$ServiceAccount[]; /** * Specifies the Shielded VM options for the instances that are created from * this template. */ - shieldedVmConfig: Schema$ShieldedVmConfig; + shieldedVmConfig?: Schema$ShieldedVmConfig; /** * A list of tags to apply to the instances that are created from this * template. The tags identify valid sources or targets for network * firewalls. The setTags method can modify this list of tags. Each tag * within the list must comply with RFC1035. */ - tags: Schema$Tags; + tags?: Schema$Tags; } export interface Schema$InstanceReference { /** * The URL for a specific instance. */ - instance: string; + instance?: string; + } + export interface Schema$InstancesAddResourcePoliciesRequest { + /** + * Resource policies to be added to this instance. + */ + resourcePolicies?: string[]; + } + export interface Schema$InstancesRemoveResourcePoliciesRequest { + /** + * Resource policies to be removed from this instance. + */ + resourcePolicies?: string[]; } export interface Schema$InstancesResumeRequest { /** @@ -5330,25 +5371,25 @@ export namespace compute_alpha { * protected with a customer-supplied encryption key it should not be * specified. */ - disks: Schema$CustomerEncryptionKeyProtectedDisk[]; + disks?: Schema$CustomerEncryptionKeyProtectedDisk[]; /** * Decrypts data associated with an instance that is protected with a * customer-supplied encryption key. If the instance you are starting is * protected with a customer-supplied encryption key, the correct key must * be provided otherwise the instance resume will not succeed. */ - instanceEncryptionKey: Schema$CustomerEncryptionKey; + instanceEncryptionKey?: Schema$CustomerEncryptionKey; } export interface Schema$InstancesScopedList { /** * [Output Only] A list of instances contained in this scope. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * [Output Only] Informational warning which replaces the list of instances * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstancesSetLabelsRequest { /** @@ -5356,15 +5397,15 @@ export namespace compute_alpha { * prevent conflicts. Provide the latest fingerprint value when making a * request to add or change labels. */ - labelFingerprint: string; - labels: any; + labelFingerprint?: string; + labels?: any; } export interface Schema$InstancesSetMachineResourcesRequest { /** * A list of the type and count of accelerator cards attached to the * instance. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; } export interface Schema$InstancesSetMachineTypeRequest { /** @@ -5372,23 +5413,23 @@ export namespace compute_alpha { * full list of machine types. For example: * zones/us-central1-f/machineTypes/n1-standard-1 */ - machineType: string; + machineType?: string; } export interface Schema$InstancesSetMinCpuPlatformRequest { /** * Minimum cpu/platform this instance should be started at. */ - minCpuPlatform: string; + minCpuPlatform?: string; } export interface Schema$InstancesSetServiceAccountRequest { /** * Email address of the service account. */ - email: string; + email?: string; /** * The list of scopes to be made available for this service account. */ - scopes: string[]; + scopes?: string[]; } export interface Schema$InstancesStartWithEncryptionKeyRequest { /** @@ -5398,14 +5439,14 @@ export namespace compute_alpha { * protected with a customer-supplied encryption key it should not be * specified. */ - disks: Schema$CustomerEncryptionKeyProtectedDisk[]; + disks?: Schema$CustomerEncryptionKeyProtectedDisk[]; /** * Decrypts data associated with an instance that is protected with a * customer-supplied encryption key. If the instance you are starting is * protected with a customer-supplied encryption key, the correct key must * be provided otherwise the instance start will not succeed. */ - instanceEncryptionKey: Schema$CustomerEncryptionKey; + instanceEncryptionKey?: Schema$CustomerEncryptionKey; } /** * An Instance Template resource. (== resource_for beta.instanceTemplates ==) @@ -5416,22 +5457,22 @@ export namespace compute_alpha { * [Output Only] The creation timestamp for this instance template in * RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A unique identifier for this instance template. The server * defines this identifier. */ - id: string; + id?: string; /** * [Output Only] The resource type, which is always compute#instanceTemplate * for instance templates. */ - kind: string; + kind?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -5441,16 +5482,16 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The instance properties for this instance template. */ - properties: Schema$InstanceProperties; + properties?: Schema$InstanceProperties; /** * [Output Only] The URL for this instance template. The server defines this * URL. */ - selfLink: string; + selfLink?: string; /** * The source instance used to create the template. You can provide this as * a partial or full URL to the resource. For example, the following are @@ -5458,11 +5499,11 @@ export namespace compute_alpha { * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance * - projects/project/zones/zone/instances/instance */ - sourceInstance: string; + sourceInstance?: string; /** * The source instance params to use to create this instance template. */ - sourceInstanceParams: Schema$SourceInstanceParams; + sourceInstanceParams?: Schema$SourceInstanceParams; } /** * A list of instance templates. @@ -5471,16 +5512,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceTemplate resources. */ - items: Schema$InstanceTemplate[]; + items?: Schema$InstanceTemplate[]; /** * [Output Only] The resource type, which is always * compute#instanceTemplatesListResponse for instance template lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5488,29 +5529,29 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceWithNamedPorts { /** * [Output Only] The URL of the instance. */ - instance: string; + instance?: string; /** * [Output Only] The named ports that belong to this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * [Output Only] The status of the instance. */ - status: string; + status?: string; } /** * Represents an Interconnects resource. The Interconnects resource is a @@ -5525,60 +5566,60 @@ export namespace compute_alpha { * packets can be carried over the interconnect and no BGP routes are * exchanged over it. By default, the status is set to true. */ - adminEnabled: boolean; + adminEnabled?: boolean; /** * [Output Only] A list of CircuitInfo objects, that describe the individual * circuits in this LAG. */ - circuitInfos: Schema$InterconnectCircuitInfo[]; + circuitInfos?: Schema$InterconnectCircuitInfo[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Customer name, to put in the Letter of Authorization as the party * authorized to request a crossconnect. */ - customerName: string; + customerName?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A list of outages expected for this Interconnect. */ - expectedOutages: Schema$InterconnectOutageNotification[]; + expectedOutages?: Schema$InterconnectOutageNotification[]; /** * [Output Only] IP address configured on the Google side of the * Interconnect link. This can be used only for ping tests. */ - googleIpAddress: string; + googleIpAddress?: string; /** * [Output Only] Google reference ID; to be used when raising support * tickets with Google or otherwise to debug backend connectivity issues. */ - googleReferenceId: string; + googleReferenceId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of the URLs of all InterconnectAttachments * configured to use this Interconnect. */ - interconnectAttachments: string[]; + interconnectAttachments?: string[]; /** * Type of interconnect. Note that "IT_PRIVATE" has been * deprecated in favor of "DEDICATED" */ - interconnectType: string; + interconnectType?: string; /** * [Output Only] Type of the resource. Always compute#interconnect for * interconnects. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this Interconnect, which is * essentially a hash of the labels set used for optimistic locking. The @@ -5587,24 +5628,24 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an Interconnect. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this Interconnect resource. These can be later * modified by the setLabels method. Each label key/value must comply with * RFC1035. Label values may be empty. */ - labels: any; + labels?: any; /** * Type of link requested. This field indicates speed of each of the links * in the bundle, not the entire bundle. Only 10G per link is allowed for a * dedicated interconnect. Options: Ethernet_10G_LR */ - linkType: string; + linkType?: string; /** * URL of the InterconnectLocation object that represents where this * connection is to be provisioned. */ - location: string; + location?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -5614,43 +5655,43 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Email address to contact the customer NOC for operations and maintenance * notifications regarding this Interconnect. If specified, this will be * used for notifications in addition to all other forms described, such as * Stackdriver logs alerting and Cloud Notifications. */ - nocContactEmail: string; + nocContactEmail?: string; /** * [Output Only] The current status of whether or not this Interconnect is * functional. */ - operationalStatus: string; + operationalStatus?: string; /** * [Output Only] IP address configured on the customer side of the * Interconnect link. The customer should configure this IP address during * turnup when prompted by Google NOC. This can be used only for ping tests. */ - peerIpAddress: string; + peerIpAddress?: string; /** * [Output Only] Number of links actually provisioned in this interconnect. */ - provisionedLinkCount: number; + provisionedLinkCount?: number; /** * Target number of physical links in the link bundle, as requested by the * customer. */ - requestedLinkCount: number; + requestedLinkCount?: number; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The current state of whether or not this Interconnect is * functional. */ - state: string; + state?: string; } /** * Represents an InterconnectAttachment (VLAN attachment) resource. For more @@ -5663,18 +5704,18 @@ export namespace compute_alpha { * Determines whether this Attachment will carry packets. Not present for * PARTNER_PROVIDER. */ - adminEnabled: boolean; + adminEnabled?: boolean; /** * [Deprecated] Replaced by edge_availability_domain. */ - availabilityZone: string; + availabilityZone?: string; /** * Provisioned bandwidth capacity for the interconnectAttachment. Can be set * by the partner to update the customer's provisioned bandwidth. Output * only for for PARTNER type, mutable for PARTNER_PROVIDER, not available * for DEDICATED. */ - bandwidth: string; + bandwidth?: string; /** * Up to 16 candidate prefixes that can be used to restrict the allocation * of cloudRouterIpAddress and customerRouterIpAddress for this attachment. @@ -5684,25 +5725,25 @@ export namespace compute_alpha { * if all possible /29s are in use on Google?s edge. If not supplied, Google * will randomly select an unused /29 from all of link-local space. */ - candidateSubnets: string[]; + candidateSubnets?: string[]; /** * [Output Only] IPv4 address + prefix length to be configured on Cloud * Router Interface for this interconnect attachment. */ - cloudRouterIpAddress: string; + cloudRouterIpAddress?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] IPv4 address + prefix length to be configured on the * customer router subinterface for this interconnect attachment. */ - customerRouterIpAddress: string; + customerRouterIpAddress?: string; /** * An optional description of this resource. */ - description: string; + description?: string; /** * Desired availability domain for the attachment. Only available for type * PARTNER, at creation time. For improved reliability, customers should @@ -5712,27 +5753,27 @@ export namespace compute_alpha { * domain. If not specified, the value will default to * AVAILABILITY_DOMAIN_ANY. */ - edgeAvailabilityDomain: string; + edgeAvailabilityDomain?: string; /** * [Output Only] Google reference ID, to be used when raising support * tickets with Google or otherwise to debug backend connectivity issues. */ - googleReferenceId: string; + googleReferenceId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * URL of the underlying Interconnect object that this attachment's * traffic will traverse through. */ - interconnect: string; + interconnect?: string; /** * [Output Only] Type of the resource. Always compute#interconnectAttachment * for interconnect attachments. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this * InterconnectAttachment, which is essentially a hash of the labels set @@ -5742,13 +5783,13 @@ export namespace compute_alpha { * to update or change labels. To see the latest fingerprint, make a get() * request to retrieve an InterconnectAttachment. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this InterconnectAttachment resource. These can be * later modified by the setLabels method. Each label key/value must comply * with RFC1035. Label values may be empty. */ - labels: any; + labels?: any; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -5758,82 +5799,82 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] The current status of whether or not this interconnect * attachment is functional. */ - operationalStatus: string; + operationalStatus?: string; /** * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not * present for DEDICATED]. The opaque identifier of an PARTNER attachment * used to initiate provisioning with a selected partner. Of the form * "XXXXX/region/domain" */ - pairingKey: string; + pairingKey?: string; /** * Optional BGP ASN for the router that should be supplied by a layer 3 * Partner if they configured BGP on behalf of the customer. Output only for * PARTNER type, input only for PARTNER_PROVIDER, not available for * DEDICATED. */ - partnerAsn: string; + partnerAsn?: string; /** * Informational metadata about Partner attachments from Partners to display * to customers. Output only for for PARTNER type, mutable for * PARTNER_PROVIDER, not available for DEDICATED. */ - partnerMetadata: Schema$InterconnectAttachmentPartnerMetadata; + partnerMetadata?: Schema$InterconnectAttachmentPartnerMetadata; /** * [Output Only] Information specific to an InterconnectAttachment. This * property is populated if the interconnect that this is attached to is of * type DEDICATED. */ - privateInterconnectInfo: Schema$InterconnectAttachmentPrivateInfo; + privateInterconnectInfo?: Schema$InterconnectAttachmentPrivateInfo; /** * [Output Only] URL of the region where the regional interconnect * attachment resides. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - region: string; + region?: string; /** * URL of the cloud router to be used for dynamic routing. This router must * be in the same region as this InterconnectAttachment. The * InterconnectAttachment will automatically connect the Interconnect to the * network & region within which the Cloud Router is configured. */ - router: string; + router?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The current state of this attachment's functionality. */ - state: string; - type: string; + state?: string; + type?: string; /** * Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for * this attachment, in the range 2-4094. This field refers to 802.1q VLAN * tag, also known as IEEE 802.1Q Only specified at creation time. */ - vlanTag8021q: number; + vlanTag8021q?: number; } export interface Schema$InterconnectAttachmentAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectAttachmentsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#interconnectAttachmentAggregatedList for aggregated lists of * interconnect attachments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5841,15 +5882,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Response to the list request, and contains a list of interconnect @@ -5859,16 +5900,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectAttachment resources. */ - items: Schema$InterconnectAttachment[]; + items?: Schema$InterconnectAttachment[]; /** * [Output Only] Type of resource. Always compute#interconnectAttachmentList * for lists of interconnect attachments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5876,15 +5917,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Informational metadata about Partner attachments from Partners to display @@ -5897,18 +5938,18 @@ export namespace compute_alpha { * displayed in the Partner?s portal. For instance ?Chicago 1?. This value * may be validated to match approved Partner values. */ - interconnectName: string; + interconnectName?: string; /** * Plain text name of the Partner providing this attachment. This value may * be validated to match approved Partner values. */ - partnerName: string; + partnerName?: string; /** * URL of the Partner?s portal for this Attachment. Partners may customise * this to be a deep-link to the specific resource on the Partner portal. * This value may be validated to match approved Partner values. */ - portalUrl: string; + portalUrl?: string; } /** * Information for an interconnect attachment when this belongs to an @@ -5919,18 +5960,18 @@ export namespace compute_alpha { * [Output Only] 802.1q encapsulation tag to be used for traffic between * Google and the customer, going to and from this network and region. */ - tag8021q: number; + tag8021q?: number; } export interface Schema$InterconnectAttachmentsScopedList { /** * A list of interconnect attachments contained in this scope. */ - interconnectAttachments: Schema$InterconnectAttachment[]; + interconnectAttachments?: Schema$InterconnectAttachment[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } /** * Describes a single physical circuit between the Customer and Google. @@ -5941,16 +5982,16 @@ export namespace compute_alpha { /** * Customer-side demarc ID for this circuit. */ - customerDemarcId: string; + customerDemarcId?: string; /** * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. */ - googleCircuitId: string; + googleCircuitId?: string; /** * Google-side demarc ID for this circuit. Assigned at circuit turn-up and * provided by Google to the customer in the LOA. */ - googleDemarcId: string; + googleDemarcId?: string; } /** * Response to the list request, and contains a list of interconnects. @@ -5959,16 +6000,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Interconnect resources. */ - items: Schema$Interconnect[]; + items?: Schema$Interconnect[]; /** * [Output Only] Type of resource. Always compute#interconnectList for lists * of interconnects. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5976,15 +6017,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents an InterconnectLocations resource. The InterconnectLocations @@ -5996,70 +6037,70 @@ export namespace compute_alpha { * [Output Only] The postal address of the Point of Presence, each line in * the address is separated by a newline character. */ - address: string; + address?: string; /** * [Output Only] Availability zone for this location. Within a metropolitan * area (metro), maintenance will not be simultaneously scheduled in more * than one availability zone. Example: "zone1" or * "zone2". */ - availabilityZone: string; + availabilityZone?: string; /** * [Output Only] Metropolitan area designator that indicates which city an * interconnect is located. For example: "Chicago, IL", * "Amsterdam, Netherlands". */ - city: string; + city?: string; /** * [Output Only] Continent for this location. */ - continent: string; + continent?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] An optional description of the resource. */ - description: string; + description?: string; /** * [Output Only] The name of the provider for this facility (e.g., EQUINIX). */ - facilityProvider: string; + facilityProvider?: string; /** * [Output Only] A provider-assigned Identifier for this facility (e.g., * Ashburn-DC1). */ - facilityProviderFacilityId: string; + facilityProviderFacilityId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#interconnectLocation * for interconnect locations. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The peeringdb identifier for this facility (corresponding * with a netfac type in peeringdb). */ - peeringdbFacilityId: string; + peeringdbFacilityId?: string; /** * [Output Only] A list of InterconnectLocation.RegionInfo objects, that * describe parameters pertaining to the relation between this * InterconnectLocation and various Google Cloud regions. */ - regionInfos: Schema$InterconnectLocationRegionInfo[]; + regionInfos?: Schema$InterconnectLocationRegionInfo[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Response to the list request, and contains a list of interconnect @@ -6069,16 +6110,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectLocation resources. */ - items: Schema$InterconnectLocation[]; + items?: Schema$InterconnectLocation[]; /** * [Output Only] Type of resource. Always compute#interconnectLocationList * for lists of interconnect locations. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6086,15 +6127,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Information about any potential InterconnectAttachments between an @@ -6106,72 +6147,72 @@ export namespace compute_alpha { * Expected round-trip time in milliseconds, from this InterconnectLocation * to a VM in this region. */ - expectedRttMs: string; + expectedRttMs?: string; /** * Identifies the network presence of this location. */ - locationPresence: string; + locationPresence?: string; /** * URL for the region of this location. */ - region: string; + region?: string; } /** * Description of a planned outage on this Interconnect. Next id: 9 */ export interface Schema$InterconnectOutageNotification { /** - * Iff issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit - * IDs that will be affected. + * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs + * that will be affected. */ - affectedCircuits: string[]; + affectedCircuits?: string[]; /** * A description about the purpose of the outage. */ - description: string; + description?: string; /** * Scheduled end time for the outage (milliseconds since Unix epoch). */ - endTime: string; + endTime?: string; /** * Form this outage is expected to take. Note that the "IT_" * versions of this enum have been deprecated in favor of the unprefixed * values. */ - issueType: string; + issueType?: string; /** * Unique identifier for this outage notification. */ - name: string; + name?: string; /** * The party that generated this notification. Note that * "NSRC_GOOGLE" has been deprecated in favor of * "GOOGLE" */ - source: string; + source?: string; /** * Scheduled start time for the outage (milliseconds since Unix epoch). */ - startTime: string; + startTime?: string; /** * State of this notification. Note that the "NS_" versions of * this enum have been deprecated in favor of the unprefixed values. */ - state: string; + state?: string; } export interface Schema$InternalIpOwner { /** * IP CIDR range being owned. */ - ipCidrRange: string; + ipCidrRange?: string; /** * URLs of the IP owners of the IP CIDR range. */ - owners: string[]; + owners?: string[]; /** * Whether this IP CIDR range is reserved for system use. */ - systemOwned: boolean; + systemOwned?: boolean; } /** * Contains a list of IP owners. @@ -6180,16 +6221,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InternalIpOwner resources. */ - items: Schema$InternalIpOwner[]; + items?: Schema$InternalIpOwner[]; /** * [Output Only] Type of resource. Always compute#ipOwnerList for lists of * IP owners. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6197,15 +6238,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A license resource. @@ -6215,120 +6256,120 @@ export namespace compute_alpha { * [Output Only] Deprecated. This field no longer reflects whether a license * charges a usage fee. */ - chargesUseFee: boolean; + chargesUseFee?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#license for licenses. */ - kind: string; + kind?: string; /** * [Output Only] The unique code used to attach this license to images, * snapshots, and disks. */ - licenseCode: string; + licenseCode?: string; /** * [Output Only] Name of the resource. The name is 1-63 characters long and * complies with RFC1035. */ - name: string; - resourceRequirements: Schema$LicenseResourceRequirements; + name?: string; + resourceRequirements?: Schema$LicenseResourceRequirements; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * If false, licenses will not be copied from the source resource when * creating an image from a disk, disk from snapshot, or snapshot from disk. */ - transferable: boolean; + transferable?: boolean; } export interface Schema$LicenseCode { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Description of this License Code. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#licenseCode for licenses. */ - kind: string; + kind?: string; /** * [Output Only] URL and description aliases of Licenses with the same * License Code. */ - licenseAlias: Schema$LicenseCodeLicenseAlias[]; + licenseAlias?: Schema$LicenseCodeLicenseAlias[]; /** * [Output Only] Name of the resource. The name is 1-20 characters long and * must be a valid 64 bit integer. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Current state of this License Code. */ - state: string; + state?: string; /** * [Output Only] If true, the license will remain attached when creating * images or snapshots from disks. Otherwise, the license is not * transferred. */ - transferable: boolean; + transferable?: boolean; } export interface Schema$LicenseCodeLicenseAlias { /** * [Output Only] Description of this License Code. */ - description: string; + description?: string; /** * [Output Only] URL of license corresponding to this License Code. */ - selfLink: string; + selfLink?: string; } export interface Schema$LicenseResourceRequirements { /** * Minimum number of guest cpus required to use the Instance. Enforced at * Instance creation and Instance start. */ - minGuestCpuCount: number; + minGuestCpuCount?: number; /** * Minimum memory required to use the Instance. Enforced at Instance * creation and Instance start. */ - minMemoryMb: number; + minMemoryMb?: number; } export interface Schema$LicensesListResponse { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of License resources. */ - items: Schema$License[]; + items?: Schema$License[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6336,15 +6377,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Specifies what kind of log the caller must write @@ -6353,15 +6394,15 @@ export namespace compute_alpha { /** * Cloud audit options. */ - cloudAudit: Schema$LogConfigCloudAuditOptions; + cloudAudit?: Schema$LogConfigCloudAuditOptions; /** * Counter options. */ - counter: Schema$LogConfigCounterOptions; + counter?: Schema$LogConfigCounterOptions; /** * Data access options. */ - dataAccess: Schema$LogConfigDataAccessOptions; + dataAccess?: Schema$LogConfigDataAccessOptions; } /** * Write a Cloud Audit log @@ -6370,11 +6411,11 @@ export namespace compute_alpha { /** * Information used by the Cloud Audit Logging pipeline. */ - authorizationLoggingOptions: Schema$AuthorizationLoggingOptions; + authorizationLoggingOptions?: Schema$AuthorizationLoggingOptions; /** * The log_name to populate in the Cloud Audit Record. */ - logName: string; + logName?: string; } /** * Increment a streamz counter with the specified metric and field names. @@ -6397,11 +6438,11 @@ export namespace compute_alpha { /** * The field value to attribute. */ - field: string; + field?: string; /** * The metric to update. */ - metric: string; + metric?: string; } /** * Write a Data Access (Gin) log @@ -6411,7 +6452,7 @@ export namespace compute_alpha { * Whether Gin logging should happen in a fail-closed manner at the caller. * This is relevant only in the LocalIAM implementation, for now. */ - logMode: string; + logMode?: string; } /** * A Machine Type resource. (== resource_for v1.machineTypes ==) (== @@ -6421,76 +6462,76 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this machine type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The number of virtual CPUs that are available to the * instance. */ - guestCpus: number; + guestCpus?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Whether this machine type has a shared CPU. See Shared-core * machine types for more information. */ - isSharedCpu: boolean; + isSharedCpu?: boolean; /** * [Output Only] The type of the resource. Always compute#machineType for * machine types. */ - kind: string; + kind?: string; /** * [Output Only] Maximum persistent disks allowed. */ - maximumPersistentDisks: number; + maximumPersistentDisks?: number; /** * [Output Only] Maximum total persistent disks size (GB) allowed. */ - maximumPersistentDisksSizeGb: string; + maximumPersistentDisksSizeGb?: string; /** * [Output Only] The amount of physical memory available to the instance, * defined in MB. */ - memoryMb: number; + memoryMb?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the machine type resides, such * as us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$MachineTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of MachineTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#machineTypeAggregatedList * for aggregated lists of machine types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6498,15 +6539,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of machine types. @@ -6515,16 +6556,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of MachineType resources. */ - items: Schema$MachineType[]; + items?: Schema$MachineType[]; /** * [Output Only] Type of resource. Always compute#machineTypeList for lists * of machine types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6532,26 +6573,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$MachineTypesScopedList { /** * [Output Only] A list of machine types contained in this scope. */ - machineTypes: Schema$MachineType[]; + machineTypes?: Schema$MachineType[]; /** * [Output Only] An informational warning that appears when the machine * types list is empty. */ - warning: any; + warning?: any; } /** * Next available tag: 12 @@ -6579,51 +6620,51 @@ export namespace compute_alpha { * instance group has created the instance and it is in the process of being * verified. */ - currentAction: string; + currentAction?: string; /** * [Output only] The unique identifier for this resource. This field is * empty when instance does not exist. */ - id: string; + id?: string; /** * [Output Only] The URL of the instance. The URL can exist even if the * instance has not yet been created. */ - instance: string; + instance?: string; /** * [Output Only] The status of the instance. This field is empty when the * instance does not exist. */ - instanceStatus: string; + instanceStatus?: string; /** * [Output Only] The intended template of the instance. This field is empty * when current_action is one of { DELETING, ABANDONING }. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] Information about the last attempt to create or delete the * instance. */ - lastAttempt: Schema$ManagedInstanceLastAttempt; + lastAttempt?: Schema$ManagedInstanceLastAttempt; /** * [Output Only] Override defined for this instance. */ - override: Schema$ManagedInstanceOverride; + override?: Schema$ManagedInstanceOverride; /** * [Output Only] Tag describing the version. */ - tag: string; + tag?: string; /** * [Output Only] Intended version of this instance. */ - version: Schema$ManagedInstanceVersion; + version?: Schema$ManagedInstanceVersion; } export interface Schema$ManagedInstanceLastAttempt { /** * [Output Only] Encountered errors during the last attempt to create or * delete the instance. */ - errors: any; + errors?: any; } /** * Overrides of stateful properties for a given instance @@ -6635,42 +6676,42 @@ export namespace compute_alpha { * https://cloud.google.com/compute/docs/disks/ However, compute API defines * the limit at 140, so this is what we check. */ - disks: Schema$ManagedInstanceOverrideDiskOverride[]; + disks?: Schema$ManagedInstanceOverrideDiskOverride[]; /** * Metadata overrides defined for this instance. TODO(b/69785416) validate * the total length is <9 KB */ - metadata: any[]; + metadata?: any[]; /** * [Output Only] Indicates where does the override come from. */ - origin: string; + origin?: string; } export interface Schema$ManagedInstanceOverrideDiskOverride { /** * The name of the device on the VM */ - deviceName: string; + deviceName?: string; /** * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If * not specified, the default is to attach the disk in READ_WRITE mode. */ - mode: string; + mode?: string; /** * The disk that is/will be mounted */ - source: string; + source?: string; } export interface Schema$ManagedInstanceVersion { /** * [Output Only] The intended template of the instance. This field is empty * when current_action is one of { DELETING, ABANDONING }. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] Name of the version. */ - name: string; + name?: string; } /** * A metadata key/value entry. @@ -6683,16 +6724,16 @@ export namespace compute_alpha { * every request to modify or update metadata. You must always provide an * up-to-date fingerprint hash in order to update or change metadata. */ - fingerprint: string; + fingerprint?: string; /** * Array of key/value pairs. The total size of all keys and values must be * less than 512 KB. */ - items: any[]; + items?: any[]; /** * [Output Only] Type of the resource. Always compute#metadata for metadata. */ - kind: string; + kind?: string; } /** * The named port. For example: . @@ -6702,11 +6743,11 @@ export namespace compute_alpha { * The name for this named port. The name must be 1-63 characters long, and * comply with RFC1035. */ - name: string; + name?: string; /** * The port number, which can be a value between 1 and 65535. */ - port: number; + port?: number; } /** * Represents a Network resource. Read Networks and Firewalls for more @@ -6721,45 +6762,45 @@ export namespace compute_alpha { * default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork * per region. */ - autoCreateSubnetworks: boolean; + autoCreateSubnetworks?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Type of VM-to-VM traffic encryption for this network. */ - crossVmEncryption: string; + crossVmEncryption?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A gateway address for default routing to other networks. This value is * read only and is selected by the Google Compute Engine, typically as the * first usable address in the IPv4Range. */ - gatewayIPv4: string; + gatewayIPv4?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The range of internal addresses that are legal on this network. This * range is a CIDR specification, for example: 192.168.0.0/16. Provided by * the client when the network is created. */ - IPv4Range: string; + IPv4Range?: string; /** * [Output Only] Type of the resource. Always compute#network for networks. */ - kind: string; + kind?: string; /** * [Output Only] Type of LB-to-VM traffic encryption for this network. */ - loadBalancerVmEncryption: string; + loadBalancerVmEncryption?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -6769,26 +6810,26 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] A list of network peerings for the resource. */ - peerings: Schema$NetworkPeering[]; + peerings?: Schema$NetworkPeering[]; /** * The network-level routing configuration for this network. Used by Cloud * Router to determine what type of network-wide routing behavior to * enforce. */ - routingConfig: Schema$NetworkRoutingConfig; + routingConfig?: Schema$NetworkRoutingConfig; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Server-defined fully-qualified URLs for all subnetworks in * this network. */ - subnetworks: string[]; + subnetworks?: string[]; } /** * The network endpoint. @@ -6800,7 +6841,7 @@ export namespace compute_alpha { * The instance must be in the same zone of network endpoint group. The * name must be 1-63 characters long, and comply with RFC1035. */ - instance: string; + instance?: string; /** * Optional IPv4 address of network endpoint. The IP address must belong to * a VM in GCE (either the primary IP or as part of an aliased IP range). If @@ -6808,13 +6849,13 @@ export namespace compute_alpha { * instance in the network that the network endpoint group belongs to will * be used. */ - ipAddress: string; + ipAddress?: string; /** * Optional port number of network endpoint. If not specified and the * NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the * defaultPort for the network endpoint group will be used. */ - port: number; + port?: number; } /** * Represents a collection of network endpoints. @@ -6823,27 +6864,27 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#networkEndpointGroup * for network endpoint group. */ - kind: string; + kind?: string; /** * This field is only valid when the network endpoint group type is * LOAD_BALANCING. */ - loadBalancer: Schema$NetworkEndpointGroupLbNetworkEndpointGroup; + loadBalancer?: Schema$NetworkEndpointGroupLbNetworkEndpointGroup; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -6853,41 +6894,41 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Type of network endpoints in this network endpoint group. Only supported * values for LOAD_BALANCING are GCE_VM_IP or GCE_VM_IP_PORT. */ - networkEndpointType: string; + networkEndpointType?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] Number of network endpoints in the network endpoint group. */ - size: number; + size?: number; /** * Specify the type of this network endpoint group. Only LOAD_BALANCING is * valid for now. */ - type: string; + type?: string; } export interface Schema$NetworkEndpointGroupAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NetworkEndpointGroupsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#networkEndpointGroupAggregatedList for aggregated lists of * network endpoint groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6895,15 +6936,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Load balancing specific fields for network endpoint group of type @@ -6915,37 +6956,37 @@ export namespace compute_alpha { * endpoint. If the network endpoint type is GCE_VM_IP, this field must not * be specified. */ - defaultPort: number; + defaultPort?: number; /** * The URL of the network to which all network endpoints in the NEG belong. * Uses "default" project network if unspecified. */ - network: string; + network?: string; /** * Optional URL of the subnetwork to which all network endpoints in the NEG * belong. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URL of the zone where the network endpoint group is * located. */ - zone: string; + zone?: string; } export interface Schema$NetworkEndpointGroupList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NetworkEndpointGroup resources. */ - items: Schema$NetworkEndpointGroup[]; + items?: Schema$NetworkEndpointGroup[]; /** * [Output Only] The resource type, which is always * compute#networkEndpointGroupList for network endpoint group lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6953,27 +6994,27 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$NetworkEndpointGroupsAttachEndpointsRequest { /** * The list of network endpoints to be attached. */ - networkEndpoints: Schema$NetworkEndpoint[]; + networkEndpoints?: Schema$NetworkEndpoint[]; } export interface Schema$NetworkEndpointGroupsDetachEndpointsRequest { /** * The list of network endpoints to be detached. */ - networkEndpoints: Schema$NetworkEndpoint[]; + networkEndpoints?: Schema$NetworkEndpoint[]; } export interface Schema$NetworkEndpointGroupsListEndpointsRequest { /** @@ -6981,23 +7022,23 @@ export namespace compute_alpha { * endpoint. Valid options are SKIP or SHOW. If you don't specifiy this * parameter, the health status of network endpoints will not be provided. */ - healthStatus: string; + healthStatus?: string; } export interface Schema$NetworkEndpointGroupsListNetworkEndpoints { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NetworkEndpointWithHealthStatus resources. */ - items: Schema$NetworkEndpointWithHealthStatus[]; + items?: Schema$NetworkEndpointWithHealthStatus[]; /** * [Output Only] The resource type, which is always * compute#networkEndpointGroupsListNetworkEndpoints for the list of network * endpoints in the specified network endpoint group. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7005,33 +7046,33 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$NetworkEndpointGroupsScopedList { /** * [Output Only] The list of network endpoint groups that are contained in * this scope. */ - networkEndpointGroups: Schema$NetworkEndpointGroup[]; + networkEndpointGroups?: Schema$NetworkEndpointGroup[]; /** * [Output Only] An informational warning that replaces the list of network * endpoint groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$NetworkEndpointWithHealthStatus { /** * [Output only] The health status of network endpoint; */ - healths: Schema$HealthStatusForNetworkEndpoint[]; + healths?: Schema$HealthStatusForNetworkEndpoint[]; /** * [Output only] The network endpoint; */ - networkEndpoint: Schema$NetworkEndpoint; + networkEndpoint?: Schema$NetworkEndpoint; } /** * A network interface resource attached to an instance. @@ -7042,29 +7083,29 @@ export namespace compute_alpha { * config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs * specified, then this instance will have no external internet access. */ - accessConfigs: Schema$AccessConfig[]; + accessConfigs?: Schema$AccessConfig[]; /** * An array of alias IP ranges for this network interface. Can only be * specified for network interfaces on subnet-mode networks. */ - aliasIpRanges: Schema$AliasIpRange[]; + aliasIpRanges?: Schema$AliasIpRange[]; /** * Fingerprint hash of contents stored in this network interface. This field * will be ignored when inserting an Instance or adding a NetworkInterface. * An up-to-date fingerprint must be provided in order to update the * NetworkInterface. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] Type of the resource. Always compute#networkInterface for * network interfaces. */ - kind: string; + kind?: string; /** * [Output Only] The name of the network interface, generated by the server. * For network devices, these are eth0, eth1, etc. */ - name: string; + name?: string; /** * URL of the network resource for this instance. When creating an instance, * if neither the network nor the subnetwork is specified, the default @@ -7077,13 +7118,13 @@ export namespace compute_alpha { * https://www.googleapis.com/compute/v1/projects/project/global/networks/network * - projects/project/global/networks/network - global/networks/default */ - network: string; + network?: string; /** * An IPv4 internal network address to assign to the instance for this * network interface. If not specified by the user, an unused internal IP is * assigned by the system. */ - networkIP: string; + networkIP?: string; /** * The URL of the Subnetwork resource for this instance. If the network * resource is in legacy mode, do not provide this property. If the network @@ -7094,7 +7135,7 @@ export namespace compute_alpha { * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork * - regions/region/subnetworks/subnetwork */ - subnetwork: string; + subnetwork?: string; } /** * Contains a list of networks. @@ -7103,16 +7144,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Network resources. */ - items: Schema$Network[]; + items?: Schema$Network[]; /** * [Output Only] Type of resource. Always compute#networkList for lists of * networks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7120,15 +7161,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A network peering attached to a network resource. The message includes the @@ -7143,7 +7184,15 @@ export namespace compute_alpha { * Otherwise, user needs to create routes manually to route packets to peer * network. */ - autoCreateRoutes: boolean; + autoCreateRoutes?: boolean; + /** + * Whether to export the custom routes to peer network. + */ + exportCustomRoutes?: boolean; + /** + * Whether to import the custom routes from peer network. + */ + importCustomRoutes?: boolean; /** * Name of this peering. Provided by the client when the peering is created. * The name must comply with RFC1035. Specifically, the name must be 1-63 @@ -7152,22 +7201,22 @@ export namespace compute_alpha { * following characters must be a dash, lowercase letter, or digit, except * the last character, which cannot be a dash. */ - name: string; + name?: string; /** * The URL of the peer network. It can be either full URL or partial URL. * The peer network may belong to a different project. If the partial URL * does not contain project, it is assumed that the peer network is in the * same project as the current network. */ - network: string; + network?: string; /** * [Output Only] State for the peering. */ - state: string; + state?: string; /** * [Output Only] Details about the current state of the peering. */ - stateDetails: string; + stateDetails?: string; } /** * A routing configuration attached to a network resource. The message @@ -7182,30 +7231,38 @@ export namespace compute_alpha { * network's cloud routers will advertise routes with all subnetworks of * this network, across regions. */ - routingMode: string; + routingMode?: string; } export interface Schema$NetworksAddPeeringRequest { /** * Whether Google Compute Engine manages the routes automatically. */ - autoCreateRoutes: boolean; + autoCreateRoutes?: boolean; + /** + * Whether to export the custom routes to peer network. + */ + exportCustomRoutes?: boolean; + /** + * Whether to import the custom routes from peer network. + */ + importCustomRoutes?: boolean; /** * Name of the peering, which should conform to RFC1035. */ - name: string; + name?: string; /** * URL of the peer network. It can be either full URL or partial URL. The * peer network may belong to a different project. If the partial URL does * not contain project, it is assumed that the peer network is in the same * project as the current network. */ - peerNetwork: string; + peerNetwork?: string; } export interface Schema$NetworksRemovePeeringRequest { /** * Name of the peering, which should conform to RFC1035. */ - name: string; + name?: string; } /** * A NodeGroup resource. @@ -7214,21 +7271,21 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#nodeGroup for node * group. */ - kind: string; + kind?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply @@ -7238,40 +7295,40 @@ export namespace compute_alpha { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * [Output Only] A list of nodes in this node group. */ - nodes: Schema$NodeGroupNode[]; + nodes?: Schema$NodeGroupNode[]; /** * The URL of the node template to which this node group belongs. */ - nodeTemplate: string; + nodeTemplate?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; - status: string; + selfLink?: string; + status?: string; /** * [Output Only] The name of the zone where the node group resides, such as * us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$NodeGroupAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NodeGroupsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for * aggregated lists of node groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7279,15 +7336,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of nodeGroups. @@ -7296,16 +7353,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NodeGroup resources. */ - items: Schema$NodeGroup[]; + items?: Schema$NodeGroup[]; /** * [Output Only] Type of resource.Always compute#nodeGroupList for lists of * node groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7313,56 +7370,56 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$NodeGroupNode { - index: number; + index?: number; /** * Instances scheduled on this node. */ - instances: string[]; + instances?: string[]; /** * The type of this node. */ - nodeType: string; + nodeType?: string; } export interface Schema$NodeGroupsAddNodesRequest { /** * Count of additional nodes to be added to the node group. */ - additionalNodeCount: number; + additionalNodeCount?: number; } export interface Schema$NodeGroupsDeleteNodesRequest { /** * Indexes of the nodes to be deleted from the node group. */ - nodeIndexes: number[]; + nodeIndexes?: number[]; } export interface Schema$NodeGroupsScopedList { /** * [Output Only] A list of node groups contained in this scope. */ - nodeGroups: Schema$NodeGroup[]; + nodeGroups?: Schema$NodeGroup[]; /** * [Output Only] An informational warning that appears when the nodeGroup * list is empty. */ - warning: any; + warning?: any; } export interface Schema$NodeGroupsSetNodeTemplateRequest { /** * Full or partial URL of the node template resource to be updated for this * node group. */ - nodeTemplate: string; + nodeTemplate?: string; } /** * A Node Template resource. @@ -7371,22 +7428,22 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#nodeTemplate for * node templates. */ - kind: string; + kind?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply @@ -7396,56 +7453,56 @@ export namespace compute_alpha { * must be a dash, lowercase letter, or digit, except the last charaicter, * which cannot be a dash. */ - name: string; + name?: string; /** * Labels to use for node affinity, which will be used in instance * scheduling. */ - nodeAffinityLabels: any; + nodeAffinityLabels?: any; /** * The node type to use for nodes group that are created from this template. */ - nodeType: string; + nodeType?: string; /** * The flexible properties of the desired node type. Node groups that use * this node template will create nodes of a type that matches these * properties. This field is mutually exclusive with the node_type * property; you can only define one or the other, but not both. */ - nodeTypeFlexibility: Schema$NodeTemplateNodeTypeFlexibility; + nodeTypeFlexibility?: Schema$NodeTemplateNodeTypeFlexibility; /** * [Output Only] The name of the region where the node template resides, * such as us-central1. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the node template. One of the following * values: CREATING, READY, and DELETING. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; } export interface Schema$NodeTemplateAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NodeTemplatesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource.Always compute#nodeTemplateAggregatedList * for aggregated lists of node templates. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7453,15 +7510,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of node templates. @@ -7470,16 +7527,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NodeTemplate resources. */ - items: Schema$NodeTemplate[]; + items?: Schema$NodeTemplate[]; /** * [Output Only] Type of resource.Always compute#nodeTemplateList for lists * of node templates. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7487,31 +7544,31 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$NodeTemplateNodeTypeFlexibility { - cpus: string; - localSsd: string; - memory: string; + cpus?: string; + localSsd?: string; + memory?: string; } export interface Schema$NodeTemplatesScopedList { /** * [Output Only] A list of node templates contained in this scope. */ - nodeTemplates: Schema$NodeTemplate[]; + nodeTemplates?: Schema$NodeTemplate[]; /** * [Output Only] An informational warning that appears when the node * templates list is empty. */ - warning: any; + warning?: any; } /** * A Node Type resource. @@ -7520,71 +7577,71 @@ export namespace compute_alpha { /** * [Output Only] The CPU platform used by this node type. */ - cpuPlatform: string; + cpuPlatform?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this node type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The number of virtual CPUs that are available to the node * type. */ - guestCpus: number; + guestCpus?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#nodeType for node * types. */ - kind: string; + kind?: string; /** * [Output Only] Local SSD available to the node type, defined in GB. */ - localSsdGb: number; + localSsdGb?: number; /** * [Output Only] The amount of physical memory available to the node type, * defined in MB. */ - memoryMb: number; + memoryMb?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the node type resides, such as * us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$NodeTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NodeTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource.Always compute#nodeTypeAggregatedList for * aggregated lists of node types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7592,15 +7649,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of node types. @@ -7609,16 +7666,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of NodeType resources. */ - items: Schema$NodeType[]; + items?: Schema$NodeType[]; /** * [Output Only] Type of resource.Always compute#nodeTypeList for lists of * node types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7626,26 +7683,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$NodeTypesScopedList { /** * [Output Only] A list of node types contained in this scope. */ - nodeTypes: Schema$NodeType[]; + nodeTypes?: Schema$NodeType[]; /** * [Output Only] An informational warning that appears when the node types * list is empty. */ - warning: any; + warning?: any; } /** * An Operation resource, used to manage asynchronous API requests. (== @@ -7658,61 +7715,61 @@ export namespace compute_alpha { /** * [Output Only] Reserved for future use. */ - clientOperationId: string; + clientOperationId?: string; /** * [Deprecated] This field is deprecated. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] A textual description of the operation, which is set when * the operation is created. */ - description: string; + description?: string; /** * [Output Only] The time that this operation was completed. This value is * in RFC3339 text format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors are generated during processing of the operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as NOT FOUND. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output Only] If the operation fails, this field contains the HTTP error * status code that was returned. For example, a 404 means the resource was * not found. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This value is * in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always compute#operation for * Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The type of operation, such as insert, update, or delete, * and so on. */ - operationType: string; + operationType?: string; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -7720,77 +7777,77 @@ export namespace compute_alpha { * complete. This number should monotonically increase as the operation * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The URL of the region where the operation resides. Only * available when performing regional operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] The status of the operation, which can be one of the * following: PENDING, RUNNING, or DONE. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The unique target ID, which identifies a specific * incarnation of the target resource. */ - targetId: string; + targetId?: string; /** * [Output Only] The URL of the resource that the operation modifies. For * operations related to creating a snapshot, this points to the persistent * disk that the snapshot was created from. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If warning messages are generated during processing of the * operation, this field will be populated. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] The URL of the zone where the operation resides. Only * available when performing per-zone operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - zone: string; + zone?: string; } export interface Schema$OperationAggregatedList { /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A map of scoped operation lists. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#operationAggregatedList * for aggregated lists of operations. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7798,15 +7855,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Operation resources. @@ -7816,16 +7873,16 @@ export namespace compute_alpha { * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of Operation resources. */ - items: Schema$Operation[]; + items?: Schema$Operation[]; /** * [Output Only] Type of resource. Always compute#operations for Operations * resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7833,26 +7890,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$OperationsScopedList { /** * [Output Only] A list of operations contained in this scope. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; /** * [Output Only] Informational warning which replaces the list of operations * when the list is empty. */ - warning: any; + warning?: any; } /** * A matcher for the path portion of the URL. The BackendService from the @@ -7869,20 +7926,20 @@ export namespace compute_alpha { * - compute/v1/projects/project/global/backendServices/backendService - * global/backendServices/backendService */ - defaultService: string; + defaultService?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The name to which this PathMatcher is referred by the HostRule. */ - name: string; + name?: string; /** * The list of path rules. */ - pathRules: Schema$PathRule[]; + pathRules?: Schema$PathRule[]; } /** * A path-matching rule for a URL. If matched, will use the specified @@ -7895,46 +7952,49 @@ export namespace compute_alpha { * path matcher does not include any text after the first ? or #, and those * chars are not allowed here. */ - paths: string[]; + paths?: string[]; /** * The URL of the BackendService resource if this rule is matched. */ - service: string; + service?: string; } export interface Schema$PerInstanceConfig { /** * The URL of the instance. Serves as a merge key during * UpdatePerInstanceConfigs operation. */ - instance: string; - override: Schema$ManagedInstanceOverride; + instance?: string; + override?: Schema$ManagedInstanceOverride; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ + * defined by IAM. **JSON Example** { "bindings": [ { + * "role": "roles/owner", "members": [ * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.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 + * ["user:sean@example.com"] } ] } **YAML Example** bindings: - + * members: - user:mike@example.com - group:admins@example.com - + * domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + * role: roles/owner - members: - user:sean@example.com role: roles/viewer For + * a description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -7946,8 +8006,8 @@ export namespace compute_alpha { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; - iamOwned: boolean; + etag?: string; + iamOwned?: boolean; /** * If more than one rule is specified, the rules are applied in the * following manner: - All matching LOG rules are always applied. - If any @@ -7957,11 +8017,11 @@ export namespace compute_alpha { * will be applied if one or more matching rule requires logging. - * Otherwise, if no rule applies, permission is denied. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; /** * Deprecated. */ - version: number; + version?: number; } /** * A Project resource. For an overview of projects, see Cloud Platform @@ -7973,82 +8033,82 @@ export namespace compute_alpha { * Metadata key/value pairs available to all instances contained in this * project. See Custom metadata for more information. */ - commonInstanceMetadata: Schema$Metadata; + commonInstanceMetadata?: Schema$Metadata; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * This signifies the default network tier used for configuring resources of * the project and can only take the following values: PREMIUM, STANDARD. * Initially the default network tier is PREMIUM. */ - defaultNetworkTier: string; + defaultNetworkTier?: string; /** * [Output Only] Default service account used by VMs running in this * project. */ - defaultServiceAccount: string; + defaultServiceAccount?: string; /** * An optional textual description of the resource. */ - description: string; + description?: string; /** * Restricted features enabled for use on this project. */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. This is not the project ID, and is just a unique * ID used by Compute Engine to identify resources. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#project for projects. */ - kind: string; + kind?: string; /** * The project ID. For example: my-example-project. Use the project ID to * make requests to Compute Engine. */ - name: string; + name?: string; /** * [Output Only] Quotas assigned to this project. */ - quotas: Schema$Quota[]; + quotas?: Schema$Quota[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The naming prefix for daily usage reports and the Google Cloud Storage * bucket where they are stored. */ - usageExportLocation: Schema$UsageExportLocation; + usageExportLocation?: Schema$UsageExportLocation; /** * [Output Only] The role this project has in a shared VPC configuration. * Currently only HOST projects are differentiated. */ - xpnProjectStatus: string; + xpnProjectStatus?: string; } export interface Schema$ProjectsDisableXpnResourceRequest { /** * Service resource (a.k.a service project) ID. */ - xpnResource: Schema$XpnResourceId; + xpnResource?: Schema$XpnResourceId; } export interface Schema$ProjectsEnableXpnResourceRequest { /** * Service resource (a.k.a service project) ID. */ - xpnResource: Schema$XpnResourceId; + xpnResource?: Schema$XpnResourceId; } export interface Schema$ProjectsGetXpnResources { /** * [Output Only] Type of resource. Always compute#projectsGetXpnResources * for lists of service resources (a.k.a service projects) */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8056,12 +8116,12 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * Service resources (a.k.a service projects) attached to this project as * their shared VPC host. */ - resources: Schema$XpnResourceId[]; + resources?: Schema$XpnResourceId[]; } export interface Schema$ProjectsListXpnHostsRequest { /** @@ -8069,19 +8129,19 @@ export namespace compute_alpha { * list shared VPC host projects. If not specified, the organization will be * inferred from the project. */ - organization: string; + organization?: string; } export interface Schema$ProjectsSetDefaultNetworkTierRequest { /** * Default network tier to be set. */ - networkTier: string; + networkTier?: string; } export interface Schema$ProjectsSetDefaultServiceAccountRequest { /** * Email address of the service account. */ - email: string; + email?: string; } /** * A quotas entry. @@ -8090,15 +8150,15 @@ export namespace compute_alpha { /** * [Output Only] Quota limit for this metric. */ - limit: number; + limit?: number; /** * [Output Only] Name of the quota metric. */ - metric: string; + metric?: string; /** * [Output Only] Current usage of this metric. */ - usage: number; + usage?: number; } /** * Represents a reference to a resource. @@ -8108,20 +8168,20 @@ export namespace compute_alpha { * [Output Only] Type of the resource. Always compute#reference for * references. */ - kind: string; + kind?: string; /** * A description of the reference type with no implied semantics. Possible * values include: - MEMBER_OF */ - referenceType: string; + referenceType?: string; /** * URL of the resource which refers to the target. */ - referrer: string; + referrer?: string; /** * URL of the resource to which this reference points. */ - target: string; + target?: string; } /** * Region resource. (== resource_for beta.regions ==) (== resource_for @@ -8131,45 +8191,45 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this region. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] Textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#region for regions. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Quotas assigned to this region. */ - quotas: Schema$Quota[]; + quotas?: Schema$Quota[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the region, either UP or DOWN. */ - status: string; + status?: string; /** * [Output Only] A list of zones available in this region, in the form of * resource URLs. */ - zones: string[]; + zones?: string[]; } /** * Contains a list of autoscalers. @@ -8178,15 +8238,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Autoscaler resources. */ - items: Schema$Autoscaler[]; + items?: Schema$Autoscaler[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8194,36 +8254,36 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionDisksResizeRequest { /** * The new size of the regional persistent disk, which is specified in GB. */ - sizeGb: string; + sizeGb?: string; } export interface Schema$RegionDiskTypeList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskType resources. */ - items: Schema$DiskType[]; + items?: Schema$DiskType[]; /** * [Output Only] Type of resource. Always compute#regionDiskTypeList for * region disk types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8231,15 +8291,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of InstanceGroup resources. @@ -8248,15 +8308,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroup resources. */ - items: Schema$InstanceGroup[]; + items?: Schema$InstanceGroup[]; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8264,15 +8324,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * RegionInstanceGroupManagers.deletePerInstanceConfigs @@ -8282,7 +8342,7 @@ export namespace compute_alpha { * The list of instances for which we want to delete per-instance configs on * this managed instance group. */ - instances: string[]; + instances?: string[]; } /** * Contains a list of managed instance groups. @@ -8291,17 +8351,17 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManager resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerList for a list of managed instance groups * that exist in th regional scope. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8309,22 +8369,22 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupManagersAbandonInstancesRequest { /** * The URLs of one or more instances to abandon. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } /** * InstanceGroupManagers.applyUpdatesToInstances @@ -8334,30 +8394,30 @@ export namespace compute_alpha { * The list of instances for which we want to apply changes on this managed * instance group. */ - instances: string[]; + instances?: string[]; /** * The maximal action that should be perfomed on the instances. By default * REPLACE. */ - maximalAction: string; + maximalAction?: string; /** * The minimal action that should be perfomed on the instances. By default * NONE. */ - minimalAction: string; + minimalAction?: string; } export interface Schema$RegionInstanceGroupManagersDeleteInstancesRequest { /** * The URLs of one or more instances to delete. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersListInstanceConfigsResp { /** * [Output Only] The list of PerInstanceConfig. */ - items: Schema$PerInstanceConfig[]; + items?: Schema$PerInstanceConfig[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8365,17 +8425,17 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupManagersListInstancesResponse { /** * A list of managed instances. */ - managedInstances: Schema$ManagedInstance[]; + managedInstances?: Schema$ManagedInstance[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8383,17 +8443,17 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$RegionInstanceGroupManagersRecreateRequest { /** * The URLs of one or more instances to recreate. This can be a full URL or * a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersSetAutoHealingRequest { - autoHealingPolicies: Schema$InstanceGroupManagerAutoHealingPolicy[]; + autoHealingPolicies?: Schema$InstanceGroupManagerAutoHealingPolicy[]; } export interface Schema$RegionInstanceGroupManagersSetTargetPoolsRequest { /** @@ -8401,20 +8461,20 @@ export namespace compute_alpha { * contents. This field is used for optimistic locking when you update the * target pool entries. This field is optional. */ - fingerprint: string; + fingerprint?: string; /** * The URL of all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to * all of the instances in the managed instance group. */ - targetPools: string[]; + targetPools?: string[]; } export interface Schema$RegionInstanceGroupManagersSetTemplateRequest { /** * URL of the InstanceTemplate resource from which all new instances will be * created. */ - instanceTemplate: string; + instanceTemplate?: string; } /** * RegionInstanceGroupManagers.updatePerInstanceConfigs @@ -8424,21 +8484,21 @@ export namespace compute_alpha { * The list of per-instance configs to insert or patch on this managed * instance group. */ - perInstanceConfigs: Schema$PerInstanceConfig[]; + perInstanceConfigs?: Schema$PerInstanceConfig[]; } export interface Schema$RegionInstanceGroupsListInstances { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceWithNamedPorts resources. */ - items: Schema$InstanceWithNamedPorts[]; + items?: Schema$InstanceWithNamedPorts[]; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8446,28 +8506,28 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupsListInstancesRequest { /** * Instances in which state should be returned. Valid options are: * 'ALL', 'RUNNING'. By default, it lists all instances. */ - instanceState: string; + instanceState?: string; /** * Name of port user is interested in. It is optional. If it is set, only * information about this ports will be returned. If it is not set, all the * named ports will be returned. Always lists all instances. */ - portName: string; + portName?: string; } export interface Schema$RegionInstanceGroupsSetNamedPortsRequest { /** @@ -8478,11 +8538,11 @@ export namespace compute_alpha { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of named ports to set for this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; } /** * Contains a list of region resources. @@ -8491,16 +8551,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Region resources. */ - items: Schema$Region[]; + items?: Schema$Region[]; /** * [Output Only] Type of resource. Always compute#regionList for lists of * regions. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8508,15 +8568,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionSetLabelsRequest { /** @@ -8527,17 +8587,17 @@ export namespace compute_alpha { * change labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The labels to set for this resource. */ - labels: any; + labels?: any; } export interface Schema$RegionUrlMapsValidateRequest { /** * Content of the UrlMap to be validated. */ - resource: Schema$UrlMap; + resource?: Schema$UrlMap; } /** * Commitment for a particular resource (a Commitment is composed of one or @@ -8550,19 +8610,280 @@ export namespace compute_alpha { * provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of * memory per every vCPU. */ - amount: string; + amount?: string; /** * Type of resource for which this commitment applies. Possible values are * VCPU and MEMORY */ - type: string; + type?: string; } export interface Schema$ResourceGroupReference { /** * A URI referencing one of the instance groups listed in the backend * service. */ - group: string; + group?: string; + } + export interface Schema$ResourcePoliciesList { + etag?: string; + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + id?: string; + /** + * [Output Only] A list of ResourcePolicy resources. + */ + items?: Schema$ResourcePolicy[]; + /** + * [Output Only] Type of resource.Always compute#resourcePoliciesList for + * listsof resourcePolicies + */ + kind?: string; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use + * the nextPageToken as a value for the query parameter pageToken in the + * next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + */ + nextPageToken?: string; + /** + * [Output Only] Server-defined URL for this resource. + */ + selfLink?: string; + /** + * [Output Only] Informational warning message. + */ + warning?: any; + } + export interface Schema$ResourcePoliciesScopedList { + /** + * A list of resourcePolicies contained in this scope. + */ + resourcePolicies?: Schema$ResourcePolicy[]; + /** + * Informational warning which replaces the list of resourcePolicies when + * the list is empty. + */ + warning?: any; + } + export interface Schema$ResourcePolicy { + /** + * Resource policy for persistent disks for creating snapshots. + */ + backupSchedulePolicy?: Schema$ResourcePolicyBackupSchedulePolicy; + /** + * [Output Only] Creation timestamp in RFC3339 text format. + */ + creationTimestamp?: string; + description?: string; + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + id?: string; + /** + * [Output Only] Type of the resource. Always compute#resource_policies for + * resource policies. + */ + kind?: string; + /** + * The name of the resource, provided by the client when initially creating + * the resource. The resource name must be 1-63 characters long, and comply + * with RFC1035. Specifically, the name must be 1-63 characters long and + * match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the + * first character must be a lowercase letter, and all following characters + * must be a dash, lowercase letter, or digit, except the last character, + * which cannot be a dash. + */ + name?: string; + region?: string; + /** + * [Output Only] Server-defined fully-qualified URL for this resource. + */ + selfLink?: string; + /** + * Resource policy applicable to VMs for infrastructure maintenance. + */ + vmMaintenancePolicy?: Schema$ResourcePolicyVmMaintenancePolicy; + } + /** + * Contains a list of resourcePolicies. + */ + export interface Schema$ResourcePolicyAggregatedList { + etag?: string; + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + id?: string; + /** + * A list of ResourcePolicy resources. + */ + items?: any; + /** + * Type of resource. + */ + kind?: string; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use + * the nextPageToken as a value for the query parameter pageToken in the + * next list request. Subsequent list requests will have their own + * nextPageToken to continue paging through the results. + */ + nextPageToken?: string; + /** + * [Output Only] Server-defined URL for this resource. + */ + selfLink?: string; + /** + * [Output Only] Informational warning message. + */ + warning?: any; + } + /** + * A backup schedule policy specifies when and how frequently snapshots are to + * be created for the target disk. Also specifies how many and how long these + * automatically created snapshot should be retained. + */ + export interface Schema$ResourcePolicyBackupSchedulePolicy { + /** + * Retention policy applied to snapshots created by this resource policy. + */ + retentionPolicy?: Schema$ResourcePolicyBackupSchedulePolicyRetentionPolicy; + /** + * A Vm Maintenance Policy specifies what kind of infrastructure maintenance + * we are allowed to perform on this VM and when. Schedule that is applied + * to disks covered by this policy. + */ + schedule?: Schema$ResourcePolicyBackupSchedulePolicySchedule; + /** + * Properties with which snapshots are created such as lables, encryption + * keys. + */ + snapshotProperties?: + Schema$ResourcePolicyBackupSchedulePolicySnapshotProperties; + } + /** + * Policy for retention of automatically created snapshots. + */ + export interface Schema$ResourcePolicyBackupSchedulePolicyRetentionPolicy { + /** + * Maximum age of the snapshot that is allowed to be kept. + */ + maxRetentionDays?: number; + } + /** + * A schedule for disks where the schedueled operations are performed. + */ + export interface Schema$ResourcePolicyBackupSchedulePolicySchedule { + dailySchedule?: Schema$ResourcePolicyDailyCycle; + hourlySchedule?: Schema$ResourcePolicyHourlyCycle; + weeklySchedule?: Schema$ResourcePolicyWeeklyCycle; + } + /** + * Specified snapshot properties for automatic snapshots created by this + * policy. + */ + export interface Schema$ResourcePolicyBackupSchedulePolicySnapshotProperties { + /** + * Indication to perform a ?guest aware? snapshot. + */ + guestFlush?: boolean; + /** + * Labels to apply to automatic snapshots. These can be later modified by + * the setLabels method. Label values may be empty. + */ + labels?: any; + /** + * GCS bucket storage location of the auto snapshot (regional or + * multi-regional). + */ + storageLocations?: string[]; + } + /** + * Time window specified for daily operations. + */ + export interface Schema$ResourcePolicyDailyCycle { + /** + * Allows to define schedule that runs every nth day of the month. + */ + daysInCycle?: number; + /** + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + */ + duration?: string; + /** + * Time within the window to start the operations. It must be in format + * "HH:MM?, where HH : [00-23] and MM : [00-59] GMT. + */ + startTime?: string; + } + /** + * Time window specified for hourly operations. + */ + export interface Schema$ResourcePolicyHourlyCycle { + /** + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + */ + duration?: string; + /** + * Allows to define schedule that runs every nth hour. + */ + hoursInCycle?: number; + /** + * Time within the window to start the operations. It must be in format + * "HH:MM?, where HH : [00-23] and MM : [00-59] GMT. + */ + startTime?: string; + } + export interface Schema$ResourcePolicyVmMaintenancePolicy { + /** + * A hint about the environment this VM belongs to (production vs + * develoment) + */ + maintenanceEnvironment?: string; + /** + * Maintenance windows that are applied to VMs covered by this policy. + */ + maintenanceWindow?: + Schema$ResourcePolicyVmMaintenancePolicyMaintenanceWindow; + } + /** + * A maintenance window for VMs. When set, we restrict our maintenance + * operations to this window. + */ + export interface Schema$ResourcePolicyVmMaintenancePolicyMaintenanceWindow { + dailyMaintenanceWindow?: Schema$ResourcePolicyDailyCycle; + weeklyMaintenanceWindow?: Schema$ResourcePolicyWeeklyCycle; + } + /** + * Time window specified for weekly operations. + */ + export interface Schema$ResourcePolicyWeeklyCycle { + /** + * Up to 7 intervals/windows, one for each day of the week. + */ + dayOfWeeks?: Schema$ResourcePolicyWeeklyCycleDayOfWeek[]; + } + export interface Schema$ResourcePolicyWeeklyCycleDayOfWeek { + /** + * Allows to define schedule that runs specified day of the week. + */ + day?: string; + /** + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + */ + duration?: string; + /** + * Time within the window to start the operations. It must be in format + * "HH:MM?, where HH : [00-23] and MM : [00-59] GMT. + */ + startTime?: string; } /** * Represents a Route resource. A route specifies how certain packets should @@ -8584,27 +8905,27 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The destination range of outgoing packets that this route applies to. * Only IPv4 is supported. */ - destRange: string; + destRange?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of this resource. Always compute#routes for Route * resources. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8614,41 +8935,52 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Fully-qualified URL of the network that this route applies to. */ - network: string; + network?: string; /** * The URL to a gateway that should handle matching packets. You can only * specify the internet gateway using a full or partial valid URL: * projects/<project-id>/global/gateways/default-internet-gateway */ - nextHopGateway: string; + nextHopGateway?: string; + /** + * The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that + * should handle matching packets. You can only specify the forwarding rule + * as a partial or full URL. For example, the following are all valid URLs: + * - + * https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule + * - regions/region/forwardingRules/forwardingRule Note that this can only + * be used when the destination_range is a public (non-RFC 1918) IP CIDR + * range. + */ + nextHopIlb?: string; /** * The URL to an instance that should handle matching packets. You can * specify this as a full or partial URL. For example: * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ */ - nextHopInstance: string; + nextHopInstance?: string; /** * The network IP address of an instance that should handle matching * packets. Only IPv4 is supported. */ - nextHopIp: string; + nextHopIp?: string; /** * The URL of the local network if it should handle matching packets. */ - nextHopNetwork: string; + nextHopNetwork?: string; /** * [Output Only] The network peering name that should handle matching * packets, which should conform to RFC1035. */ - nextHopPeering: string; + nextHopPeering?: string; /** * The URL to a VpnTunnel that should handle matching packets. */ - nextHopVpnTunnel: string; + nextHopVpnTunnel?: string; /** * The priority of this route. Priority is used to break ties in cases where * there is more than one matching route of equal prefix length. In the case @@ -8656,20 +8988,20 @@ export namespace compute_alpha { * priority value wins. Default value is 1000. Valid range is 0 through * 65535. */ - priority: number; + priority?: number; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * A list of instance tags to which this route applies. */ - tags: string[]; + tags?: string[]; /** * [Output Only] If potential misconfigurations are detected for this route, * this field will be populated with warning messages. */ - warnings: any[]; + warnings?: any[]; } /** * Contains a list of Route resources. @@ -8678,15 +9010,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Route resources. */ - items: Schema$Route[]; + items?: Schema$Route[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8694,15 +9026,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Router resource. @@ -8711,37 +9043,37 @@ export namespace compute_alpha { /** * BGP information specific to this router. */ - bgp: Schema$RouterBgp; + bgp?: Schema$RouterBgp; /** * BGP information that needs to be configured into the routing stack to * establish the BGP peering. It must specify peer ASN and either interface * name, IP, or peer IP. Please refer to RFC4273. */ - bgpPeers: Schema$RouterBgpPeer[]; + bgpPeers?: Schema$RouterBgpPeer[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Router interfaces. Each interface requires either one linked resource * (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. * ipRange), or both. */ - interfaces: Schema$RouterInterface[]; + interfaces?: Schema$RouterInterface[]; /** * [Output Only] Type of resource. Always compute#router for routers. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8751,26 +9083,26 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * A list of Nat services created in this router. The maximum number of Nat * services within a Router is 3 for Alpha. */ - nats: Schema$RouterNat[]; + nats?: Schema$RouterNat[]; /** * URI of the network to which this router belongs. */ - network: string; + network?: string; /** * [Output Only] URI of the region where the router resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Description-tagged IP ranges for the router to advertise. @@ -8779,11 +9111,11 @@ export namespace compute_alpha { /** * User-specified description for the IP range. */ - description: string; + description?: string; /** * The IP range to advertise. The value must be a CIDR-formatted string. */ - range: string; + range?: string; } /** * Description-tagged prefixes for the router to advertise. @@ -8792,11 +9124,11 @@ export namespace compute_alpha { /** * User-specified description for the prefix. */ - description: string; + description?: string; /** * The prefix to advertise. The value must be a CIDR-formatted string. */ - prefix: string; + prefix?: string; } /** * Contains a list of routers. @@ -8805,15 +9137,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Router resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8821,15 +9153,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RouterBgp { /** @@ -8839,7 +9171,7 @@ export namespace compute_alpha { * to any specified prefixes. Leave this field blank to advertise no custom * groups. */ - advertisedGroups: string[]; + advertisedGroups?: string[]; /** * User-specified list of individual IP ranges to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and is @@ -8847,7 +9179,7 @@ export namespace compute_alpha { * in addition to any specified groups. Leave this field blank to advertise * no custom IP ranges. */ - advertisedIpRanges: Schema$RouterAdvertisedIpRange[]; + advertisedIpRanges?: Schema$RouterAdvertisedIpRange[]; /** * User-specified list of individual prefixes to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and is @@ -8855,18 +9187,18 @@ export namespace compute_alpha { * in addition to any specified groups. Leave this field blank to advertise * no custom prefixes. */ - advertisedPrefixs: Schema$RouterAdvertisedPrefix[]; + advertisedPrefixs?: Schema$RouterAdvertisedPrefix[]; /** * User-specified flag to indicate which mode to use for advertisement. */ - advertiseMode: string; + advertiseMode?: string; /** * Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, * either 16-bit or 32-bit. The value will be fixed for this router * resource. All VPN tunnels that link to this router will have the same * local ASN. */ - asn: number; + asn?: number; } export interface Schema$RouterBgpPeer { /** @@ -8876,7 +9208,7 @@ export namespace compute_alpha { * advertised in addition to any specified prefixes. Leave this field blank * to advertise no custom groups. */ - advertisedGroups: string[]; + advertisedGroups?: string[]; /** * User-specified list of individual IP ranges to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and @@ -8884,7 +9216,7 @@ export namespace compute_alpha { * ranges will be advertised in addition to any specified groups. Leave this * field blank to advertise no custom IP ranges. */ - advertisedIpRanges: Schema$RouterAdvertisedIpRange[]; + advertisedIpRanges?: Schema$RouterAdvertisedIpRange[]; /** * User-specified list of individual prefixes to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and @@ -8892,26 +9224,26 @@ export namespace compute_alpha { * prefixes will be advertised in addition to any specified groups. Leave * this field blank to advertise no custom prefixes. */ - advertisedPrefixs: Schema$RouterAdvertisedPrefix[]; + advertisedPrefixs?: Schema$RouterAdvertisedPrefix[]; /** * The priority of routes advertised to this BGP peer. In the case where * there is more than one matching route of maximum length, the routes with * lowest priority value win. */ - advertisedRoutePriority: number; + advertisedRoutePriority?: number; /** * User-specified flag to indicate which mode to use for advertisement. */ - advertiseMode: string; + advertiseMode?: string; /** * Name of the interface the BGP peer is associated with. */ - interfaceName: string; + interfaceName?: string; /** * IP address of the interface inside Google Cloud Platform. Only IPv4 is * supported. */ - ipAddress: string; + ipAddress?: string; /** * [Output Only] Type of how the resource/configuration of the BGP peer is * managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT @@ -8919,22 +9251,22 @@ export namespace compute_alpha { * interconnectAttachment, Google will automatically create/delete this type * of BGP peer when the PARTNER interconnectAttachment is created/deleted. */ - managementType: string; + managementType?: string; /** * Name of this BGP peer. The name must be 1-63 characters long and comply * with RFC1035. */ - name: string; + name?: string; /** * Peer BGP Autonomous System Number (ASN). For VPN use case, this value can * be different for every tunnel. */ - peerAsn: number; + peerAsn?: number; /** * IP address of the BGP interface outside Google cloud. Only IPv4 is * supported. */ - peerIpAddress: string; + peerIpAddress?: string; } export interface Schema$RouterInterface { /** @@ -8943,19 +9275,19 @@ export namespace compute_alpha { * for example: 169.254.0.1/30. NOTE: Do not truncate the address as it * represents the IP address of the interface. */ - ipRange: string; + ipRange?: string; /** * URI of the linked interconnect attachment. It must be in the same region * as the router. Each interface can have at most one linked resource and it * could either be a VPN Tunnel or an interconnect attachment. */ - linkedInterconnectAttachment: string; + linkedInterconnectAttachment?: string; /** * URI of the linked VPN tunnel. It must be in the same region as the * router. Each interface can have at most one linked resource and it could * either be a VPN Tunnel or an interconnect attachment. */ - linkedVpnTunnel: string; + linkedVpnTunnel?: string; /** * [Output Only] Type of how the resource/configuration of the interface is * managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT @@ -8964,12 +9296,12 @@ export namespace compute_alpha { * this type of interface when the PARTNER interconnectAttachment is * created/provisioned/deleted. */ - managementType: string; + managementType?: string; /** * Name of this interface entry. The name must be 1-63 characters long and * comply with RFC1035. */ - name: string; + name?: string; } /** * Contains a list of Router resources. @@ -8978,15 +9310,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Router resources. */ - items: Schema$Router[]; + items?: Schema$Router[]; /** * [Output Only] Type of resource. Always compute#router for routers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8994,15 +9326,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a Nat resource. It enables the VMs within the specified @@ -9019,36 +9351,36 @@ export namespace compute_alpha { * manager. This list can grow and shrink based on the number of VMs * configured to use NAT. */ - autoAllocatedNatIps: string[]; + autoAllocatedNatIps?: string[]; /** * Unique name of this Nat service. The name must be 1-63 characters long * and comply with RFC1035. */ - name: string; + name?: string; /** * Specify the NatIpAllocateOption. If it is AUTO_ONLY, then nat_ip should * be empty. */ - natIpAllocateOption: string; + natIpAllocateOption?: string; /** * A list of URLs of the IP resources used for this Nat service. These IPs * must be valid static external IP addresses assigned to the project. * max_length is subject to change post alpha. */ - natIps: string[]; + natIps?: string[]; /** * Specify the Nat option. If this field contains * ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, * then there should not be any other Router.Nat section in any Router for * this network in this region. */ - sourceSubnetworkIpRangesToNat: string; + sourceSubnetworkIpRangesToNat?: string; /** * A list of Subnetwork resources whose traffic should be translated by NAT * Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the * SubnetworkIpRangeToNatOption above. */ - subnetworks: Schema$RouterNatSubnetworkToNat[]; + subnetworks?: Schema$RouterNatSubnetworkToNat[]; } /** * Defines the IP ranges that want to use NAT for a subnetwork. @@ -9057,97 +9389,97 @@ export namespace compute_alpha { /** * URL for the subnetwork resource to use NAT. */ - name: string; + name?: string; /** * A list of the secondary ranges of the Subnetwork that are allowed to use * NAT. This can be populated only if * "LIST_OF_SECONDARY_IP_RANGES" is one of the values in * source_ip_ranges_to_nat. */ - secondaryIpRangeNames: string[]; + secondaryIpRangeNames?: string[]; /** * Specify the options for NAT ranges in the Subnetwork. All usages of * single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only * valid option with multiple values is: ["PRIMARY_IP_RANGE", * "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] */ - sourceIpRangesToNats: string[]; + sourceIpRangesToNats?: string[]; } export interface Schema$RoutersPreviewResponse { /** * Preview of given router. */ - resource: Schema$Router; + resource?: Schema$Router; } export interface Schema$RoutersScopedList { /** * A list of routers contained in this scope. */ - routers: Schema$Router[]; + routers?: Schema$Router[]; /** * Informational warning which replaces the list of routers when the list is * empty. */ - warning: any; + warning?: any; } export interface Schema$RouterStatus { /** * Best routes for this router's network. */ - bestRoutes: Schema$Route[]; + bestRoutes?: Schema$Route[]; /** * Best routes learned by this router. */ - bestRoutesForRouter: Schema$Route[]; - bgpPeerStatus: Schema$RouterStatusBgpPeerStatus[]; - natStatus: Schema$RouterStatusNatStatus[]; + bestRoutesForRouter?: Schema$Route[]; + bgpPeerStatus?: Schema$RouterStatusBgpPeerStatus[]; + natStatus?: Schema$RouterStatusNatStatus[]; /** * URI of the network to which this router belongs. */ - network: string; + network?: string; } export interface Schema$RouterStatusBgpPeerStatus { /** * Routes that were advertised to the remote BGP peer */ - advertisedRoutes: Schema$Route[]; + advertisedRoutes?: Schema$Route[]; /** * IP address of the local BGP interface. */ - ipAddress: string; + ipAddress?: string; /** * URL of the VPN tunnel that this BGP peer controls. */ - linkedVpnTunnel: string; + linkedVpnTunnel?: string; /** * Name of this BGP peer. Unique within the Routers resource. */ - name: string; + name?: string; /** * Number of routes learned from the remote BGP Peer. */ - numLearnedRoutes: number; + numLearnedRoutes?: number; /** * IP address of the remote BGP interface. */ - peerIpAddress: string; + peerIpAddress?: string; /** * BGP state as specified in RFC1771. */ - state: string; + state?: string; /** * Status of the BGP peer: {UP, DOWN} */ - status: string; + status?: string; /** * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 * hours, 59 minutes, 59 seconds */ - uptime: string; + uptime?: string; /** * Time this session has been up, in seconds. Format: 145 */ - uptimeSeconds: string; + uptimeSeconds?: string; } /** * Status of a NAT contained in this router. @@ -9157,38 +9489,38 @@ export namespace compute_alpha { * A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", * "129.2.16.89"] */ - autoAllocatedNatIps: string[]; + autoAllocatedNatIps?: string[]; /** * The number of extra IPs to allocate. This will be greater than 0 only if * user-specified IPs are NOT enough to allow all configured VMs to use NAT. * This value is meaningful only when auto-allocation of NAT IPs is *not* * used. */ - minExtraNatIpsNeeded: number; + minExtraNatIpsNeeded?: number; /** * Unique name of this NAT. */ - name: string; + name?: string; /** * Number of VM endpoints (i.e., Nics) that can use NAT. */ - numVmEndpointsWithNatMappings: number; + numVmEndpointsWithNatMappings?: number; /** * A list of fully qualified URLs of reserved IP address resources. */ - userAllocatedNatIpResources: string[]; + userAllocatedNatIpResources?: string[]; /** * A list of IPs user-allocated for NAT. They will be raw IP strings like * "179.12.26.133". */ - userAllocatedNatIps: string[]; + userAllocatedNatIps?: string[]; } export interface Schema$RouterStatusResponse { /** * Type of resource. */ - kind: string; - result: Schema$RouterStatus; + kind?: string; + result?: Schema$RouterStatus; } /** * A rule to be applied in a Policy. @@ -9197,38 +9529,38 @@ export namespace compute_alpha { /** * Required */ - action: string; + action?: string; /** * Additional restrictions that must be met. All conditions must pass for * the rule to match. */ - conditions: Schema$Condition[]; + conditions?: Schema$Condition[]; /** * Human-readable description of the rule. */ - description: string; + description?: string; /** * If one or more 'in' clauses are specified, the rule matches if * the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. */ - ins: string[]; + ins?: string[]; /** * The config returned to callers of tech.iam.IAM.CheckPolicy for any * entries that match the LOG action. */ - logConfigs: Schema$LogConfig[]; + logConfigs?: Schema$LogConfig[]; /** * If one or more 'not_in' clauses are specified, the rule matches * if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. */ - notIns: string[]; + notIns?: string[]; /** * A permission is a string of form '..' (e.g., * 'storage.buckets.list'). A value of '*' matches all * permissions, and a verb part of '*' (e.g., * 'storage.buckets.*') matches all verbs. */ - permissions: string[]; + permissions?: string[]; } /** * Sets the scheduling options for an Instance. @@ -9242,24 +9574,24 @@ export namespace compute_alpha { * true so an instance is automatically restarted if it is terminated by * Compute Engine. */ - automaticRestart: boolean; + automaticRestart?: boolean; /** * A set of node affinity and anti-affinity. */ - nodeAffinities: Schema$SchedulingNodeAffinity[]; + nodeAffinities?: Schema$SchedulingNodeAffinity[]; /** * Defines the maintenance behavior for this instance. For standard * instances, the default behavior is MIGRATE. For preemptible instances, * the default and only possible behavior is TERMINATE. For more * information, see Setting Instance Scheduling Options. */ - onHostMaintenance: string; + onHostMaintenance?: string; /** * Defines whether the instance is preemptible. This can only be set during * instance creation, it cannot be set or changed after the instance has * been created. */ - preemptible: boolean; + preemptible?: boolean; } /** * Node Affinity: the configuration of desired nodes onto which this Instance @@ -9269,15 +9601,15 @@ export namespace compute_alpha { /** * Corresponds to the label key of Node resource. */ - key: string; + key?: string; /** * Defines the operation of node selection. */ - operator: string; + operator?: string; /** * Corresponds to the label values of Node resource. */ - values: string[]; + values?: string[]; } /** * A security policy is comprised of one or more rules. It can also be @@ -9287,12 +9619,12 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Specifies a fingerprint for this resource, which is essentially a hash of * the metadata's contents and used for optimistic locking. The @@ -9301,17 +9633,17 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change metadata. To * see the latest fingerprint, make get() request to the security policy. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output only] Type of the resource. Always compute#securityPolicyfor * security policies */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -9321,33 +9653,33 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * A list of rules that belong to this policy. There must always be a * default rule (rule with priority 2147483647 and match "*"). If * no rules are provided when creating a security policy, a default rule * with action "allow" will be added. */ - rules: Schema$SecurityPolicyRule[]; + rules?: Schema$SecurityPolicyRule[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$SecurityPolicyList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SecurityPolicy resources. */ - items: Schema$SecurityPolicy[]; + items?: Schema$SecurityPolicy[]; /** * [Output Only] Type of resource. Always compute#securityPolicyList for * listsof securityPolicies */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9355,13 +9687,13 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$SecurityPolicyReference { securityPolicy: string; } + export interface Schema$SecurityPolicyReference { securityPolicy?: string; } /** * Represents a rule that describes one or more match conditions along with * the action to be taken when traffic matches this condition (allow or deny). @@ -9372,32 +9704,32 @@ export namespace compute_alpha { * currently be either "allow" or "deny()" where valid * values for status are 403, 404, and 502. */ - action: string; + action?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output only] Type of the resource. Always compute#securityPolicyRule for * security policy rules */ - kind: string; + kind?: string; /** * A match condition that incoming traffic is evaluated against. If it * evaluates to true, the corresponding ?action? is enforced. */ - match: Schema$SecurityPolicyRuleMatcher; + match?: Schema$SecurityPolicyRuleMatcher; /** * If set to true, the specified action is not enforced. */ - preview: boolean; + preview?: boolean; /** * An integer indicating the priority of a rule in the list. The priority * must be a positive value between 0 and 2147483647. Rules are evaluated in * the increasing order of priority. */ - priority: number; + priority?: number; } /** * Represents a match condition that incoming traffic is evaluated against. @@ -9409,30 +9741,30 @@ export namespace compute_alpha { * field must be specified if versioned_expr is specified and cannot be * specified if versioned_expr is not specified. */ - config: Schema$SecurityPolicyRuleMatcherConfig; + 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; + expr?: Schema$Expr; /** * CIDR IP address range. */ - srcIpRanges: string[]; + srcIpRanges?: string[]; /** * Preconfigured versioned expression. If this field is specified, config * must also be specified. Available preconfigured expressions along with * their requirements are: SRC_IPS_V1 - must specify the corresponding * src_ip_range field in config. */ - versionedExpr: string; + versionedExpr?: string; } export interface Schema$SecurityPolicyRuleMatcherConfig { /** * CIDR IP address range. */ - srcIpRanges: string[]; + srcIpRanges?: string[]; } /** * An instance's serial console output. @@ -9441,29 +9773,29 @@ export namespace compute_alpha { /** * [Output Only] The contents of the console output. */ - contents: string; + contents?: string; /** * [Output Only] Type of the resource. Always compute#serialPortOutput for * serial port output. */ - kind: string; + kind?: string; /** * [Output Only] The position of the next byte of content from the serial * console output. Use this value in the next request as the start * parameter. */ - next: string; + next?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * The starting byte position of the output that was returned. This should * match the start parameter sent with the request. If the serial console * output exceeds the size of the buffer, older output will be overwritten * by newer content and the start values will be mismatched. */ - start: string; + start?: string; } /** * A service account. @@ -9472,11 +9804,11 @@ export namespace compute_alpha { /** * Email address of the service account. */ - email: string; + email?: string; /** * The list of scopes to be made available for this service account. */ - scopes: string[]; + scopes?: string[]; } /** * A set of Shielded VM options. @@ -9485,15 +9817,15 @@ export namespace compute_alpha { /** * Defines whether the instance should have integrity monitoring enabled. */ - enableIntegrityMonitoring: boolean; + enableIntegrityMonitoring?: boolean; /** * Defines whether the instance should have secure boot enabled. */ - enableSecureBoot: boolean; + enableSecureBoot?: boolean; /** * Defines whether the instance should have the TPM enabled. */ - enableVtpm: boolean; + enableVtpm?: boolean; } /** * The policy describes how boot integrity measurements are evaluated. @@ -9503,7 +9835,7 @@ export namespace compute_alpha { * Triggers an auto relearn event: the integrity monitoring module copies * existing guest measurements to the baseline. */ - updateAutoLearnPolicy: boolean; + updateAutoLearnPolicy?: boolean; } /** * Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs @@ -9517,47 +9849,52 @@ export namespace compute_alpha { * be a dash, lowercase letter, or digit, except the last character, which * cannot be a dash. */ - keyName: string; + keyName?: string; /** * 128-bit key value used for signing the URL. The key value must be a valid * RFC 4648 Section 5 base64url encoded string. */ - keyValue: string; + keyValue?: string; } /** * A persistent disk snapshot resource. (== resource_for beta.snapshots ==) * (== resource_for v1.snapshots ==) */ export interface Schema$Snapshot { + /** + * [Output Only] Set to true if snapshots are autoamtically by applying + * resource policy on the target disk. + */ + autoCreated?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Size of the snapshot, specified in GB. */ - diskSizeGb: string; + diskSizeGb?: string; /** * [Output Only] A list of features to enable on the guest operating system. * Applicable only for bootable images. Read Enabling guest operating * system features to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#snapshot for Snapshot * resources. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this snapshot, which is * essentially a hash of the labels set used for optimistic locking. The @@ -9566,23 +9903,23 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a snapshot. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this snapshot. These can be later modified by the * setLabels method. Label values may be empty. */ - labels: any; + labels?: any; /** * Integer license codes indicating which licenses are attached to this * snapshot. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * [Output Only] A list of public visible licenses that apply to this * snapshot. This can be because the original image had licenses attached * (such as a Windows image). */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -9592,11 +9929,11 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Encrypts the snapshot using a customer-supplied encryption key. After * you encrypt a snapshot using a customer-supplied key, you must provide @@ -9608,44 +9945,44 @@ export namespace compute_alpha { * automatically generated key and you do not need to provide a key to use * the snapshot later. */ - snapshotEncryptionKey: Schema$CustomerEncryptionKey; + snapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The source disk used to create this snapshot. */ - sourceDisk: string; + sourceDisk?: string; /** * The customer-supplied encryption key of the source disk. Required if the * source disk is protected by a customer-supplied encryption key. */ - sourceDiskEncryptionKey: Schema$CustomerEncryptionKey; + sourceDiskEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the disk used to create this snapshot. This * value may be used to determine whether the snapshot was taken from the * current or a previous instance of a given disk name. */ - sourceDiskId: string; + sourceDiskId?: string; /** * [Output Only] The status of the snapshot. This can be CREATING, DELETING, * FAILED, READY, or UPLOADING. */ - status: string; + status?: string; /** * [Output Only] A size of the storage used by the snapshot. As snapshots * share storage, this number is expected to change with snapshot * creation/deletion. */ - storageBytes: string; + storageBytes?: string; /** * [Output Only] An indicator whether storageBytes is in a stable state or * it is being adjusted as a result of shared storage reallocation. This * status can either be UPDATING, meaning the size of the snapshot is being * updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. */ - storageBytesStatus: string; + storageBytesStatus?: string; /** * GCS bucket storage location of the snapshot (regional or multi-regional). */ - storageLocations: string[]; + storageLocations?: string[]; } /** * Contains a list of Snapshot resources. @@ -9654,15 +9991,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Snapshot resources. */ - items: Schema$Snapshot[]; + items?: Schema$Snapshot[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9670,15 +10007,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A specification of the parameters to use when creating the instance @@ -9691,7 +10028,7 @@ export namespace compute_alpha { * each disk. For read-only disks, they will be attached in read-only mode. * Local SSD disks will be created as blank volumes. */ - diskConfigs: Schema$DiskInstantiationConfig[]; + diskConfigs?: Schema$DiskInstantiationConfig[]; } /** * An SslCertificate resource. This resource provides a mechanism to upload an @@ -9705,34 +10042,34 @@ export namespace compute_alpha { * certificate chain must be no greater than 5 certs long. The chain must * include at least one intermediate cert. */ - certificate: string; + certificate?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Expire time of the certificate. RFC3339 */ - expireTime: string; + expireTime?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#sslCertificate for SSL * certificates. */ - kind: string; + kind?: string; /** * Configuration and status of a managed SSL certificate. */ - managed: Schema$SslCertificateManagedSslCertificate; + managed?: Schema$SslCertificateManagedSslCertificate; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -9742,32 +10079,32 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * A write-only private key in PEM format. Only insert requests will include * this field. */ - privateKey: string; + privateKey?: string; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Configuration and status of a self-managed SSL certificate. */ - selfManaged: Schema$SslCertificateSelfManagedSslCertificate; + selfManaged?: Schema$SslCertificateSelfManagedSslCertificate; /** * [Output Only] Domains associated with the certificate via Subject * Alternative Name. */ - subjectAlternativeNames: string[]; + subjectAlternativeNames?: string[]; /** * (Optional) Specifies the type of SSL certificate, either * "SELF_MANAGED" or "MANAGED". If not specified, the * certificate is self-managed and the fields certificate and private_key * are used. */ - type: string; + type?: string; } /** * Contains a list of SslCertificate resources. @@ -9776,15 +10113,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SslCertificate resources. */ - items: Schema$SslCertificate[]; + items?: Schema$SslCertificate[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9792,15 +10129,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Configuration and status of a managed SSL certificate. @@ -9810,16 +10147,16 @@ export namespace compute_alpha { * The domains for which a managed SSL certificate will be generated. * Currently only single-domain certs are supported. */ - domains: string[]; + domains?: string[]; /** * [Output only] Detailed statuses of the domains specified for managed * certificate resource. */ - domainStatus: any; + domainStatus?: any; /** * [Output only] Status of the managed certificate resource. */ - status: string; + status?: string; } /** * Configuration and status of a self-managed SSL certificate. @@ -9830,24 +10167,24 @@ export namespace compute_alpha { * certificate chain must be no greater than 5 certs long. The chain must * include at least one intermediate cert. */ - certificate: string; + certificate?: string; /** * A write-only private key in PEM format. Only insert requests will include * this field. */ - privateKey: string; + privateKey?: string; } export interface Schema$SSLHealthCheck { /** * The TCP port number for the health check request. The default value is * 443. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies how port is selected for health checking, can be one of * following values: USE_FIXED_PORT: The port number in port is used for @@ -9858,40 +10195,40 @@ export namespace compute_alpha { * for health checking. If not specified, SSL health check follows * behavior specified in port and portName fields. */ - portSpecification: string; + portSpecification?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The application data to send once the SSL connection has been established * (default value is empty). If both request and response are empty, the * connection establishment alone will indicate health. The request data can * only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. If left * empty (the default value), any response will indicate health. The * response data can only be ASCII. */ - response: string; + response?: string; } export interface Schema$SslPoliciesList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SslPolicy resources. */ - items: Schema$SslPolicy[]; + items?: Schema$SslPolicy[]; /** * [Output Only] Type of the resource. Always compute#sslPoliciesList for * lists of sslPolicies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9899,18 +10236,18 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$SslPoliciesListAvailableFeaturesResponse { - features: string[]; + features?: string[]; } /** * A SSL policy specifies the server-side support for SSL features. This can @@ -9922,45 +10259,45 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * A list of features enabled when the selected profile is CUSTOM. The - * method returns the set of features that can be specified in this list. * This field must be empty if the profile is not CUSTOM. */ - customFeatures: string[]; + customFeatures?: string[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The list of features enabled in the SSL policy. */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a SslPolicy. An up-to-date fingerprint must be * provided in order to update the SslPolicy. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output only] Type of the resource. Always compute#sslPolicyfor SSL * policies. */ - kind: string; + kind?: string; /** * The minimum version of SSL protocol that can be used by the clients to * establish a connection with the load balancer. This can be one of * TLS_1_0, TLS_1_1, TLS_1_2. */ - minTlsVersion: string; + minTlsVersion?: string; /** * Name of the resource. The name must be 1-63 characters long, and comply * with RFC1035. Specifically, the name must be 1-63 characters long and @@ -9969,39 +10306,39 @@ export namespace compute_alpha { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * Profile specifies the set of SSL features that can be used by the load * balancer when negotiating SSL with clients. This can be one of * COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of * SSL features to enable must be specified in the customFeatures field. */ - profile: string; + profile?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] If potential misconfigurations are detected for this SSL * policy, this field will be populated with warning messages. */ - warnings: any[]; + warnings?: any[]; } export interface Schema$SslPolicyReference { /** * URL of the SSL policy resource. Set this to empty string to clear any * existing SSL policy associated with the target proxy resource. */ - sslPolicy: string; + sslPolicy?: string; } export interface Schema$StatefulPolicy { - preservedResources: Schema$StatefulPolicyPreservedResources; + preservedResources?: Schema$StatefulPolicyPreservedResources; } export interface Schema$StatefulPolicyPreservedDisk { /** * Device name of the disk to be preserved */ - deviceName: string; + deviceName?: string; } /** * Configuration of all preserved resources. @@ -10011,7 +10348,7 @@ export namespace compute_alpha { * Disks created on the instances that will be preserved on instance delete, * resize down, etc. */ - disks: Schema$StatefulPolicyPreservedDisk[]; + disks?: Schema$StatefulPolicyPreservedDisk[]; } /** * A Subnetwork resource. (== resource_for beta.subnetworks ==) (== @@ -10031,44 +10368,44 @@ export namespace compute_alpha { * subnetworks and automatically created subnetworks. This field cannot be * set to true at resource creation time. */ - allowSubnetCidrRoutesOverlap: boolean; + allowSubnetCidrRoutesOverlap?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. This field can be set only at resource creation * time. */ - description: string; + description?: string; /** * Whether to enable flow logging for this subnetwork. */ - enableFlowLogs: boolean; + enableFlowLogs?: boolean; /** * Whether the VMs in this subnet can directly access Google services via * internal IPv6 addresses. This field can be both set at resource creation * time and updated using patch. */ - enablePrivateV6Access: boolean; + enablePrivateV6Access?: boolean; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a Subnetwork. An up-to-date fingerprint must be * provided in order to update the Subnetwork. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The gateway address for default routes to reach destination * addresses outside this subnetwork. */ - gatewayAddress: string; + gatewayAddress?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The range of internal addresses that are owned by this subnetwork. * Provide this property when you create the subnetwork. For @@ -10076,17 +10413,17 @@ export namespace compute_alpha { * non-overlapping within a network. Only IPv4 is supported. This field can * be set only at resource creation time. */ - ipCidrRange: string; + ipCidrRange?: string; /** * [Output Only] The range of internal IPv6 addresses that are owned by this * subnetwork. */ - ipv6CidrRange: string; + ipv6CidrRange?: string; /** * [Output Only] Type of the resource. Always compute#subnetwork for * Subnetwork resources. */ - kind: string; + kind?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The name must be 1-63 characters long, and comply with @@ -10096,20 +10433,20 @@ export namespace compute_alpha { * be a dash, lowercase letter, or digit, except the last character, which * cannot be a dash. */ - name: string; + name?: string; /** * The URL of the network to which this subnetwork belongs, provided by the * client when initially creating the subnetwork. Only networks that are in * the distributed mode can have subnetworks. This field can be set only at * resource creation time. */ - network: string; + network?: string; /** * Whether the VMs in this subnet can access Google services without * assigned external IP addresses. This field can be both set at resource * creation time and updated using setPrivateIpGoogleAccess. */ - privateIpGoogleAccess: boolean; + 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 @@ -10117,12 +10454,12 @@ export namespace compute_alpha { * reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose * defaults to PRIVATE_RFC_1918. */ - purpose: string; + purpose?: string; /** * URL of the region where the Subnetwork resides. This field can be set * only at resource creation time. */ - region: string; + 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. @@ -10130,33 +10467,33 @@ export namespace compute_alpha { * HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be * promoted to ACTIVE or is currently draining. */ - role: string; + 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 primary ipCidrRange of the subnetwork. The alias IPs may belong to * either primary or secondary ranges. */ - secondaryIpRanges: Schema$SubnetworkSecondaryRange[]; + secondaryIpRanges?: Schema$SubnetworkSecondaryRange[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$SubnetworkAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SubnetworksScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#subnetworkAggregatedList * for aggregated lists of subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10164,15 +10501,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Subnetwork resources. @@ -10181,16 +10518,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Subnetwork resources. */ - items: Schema$Subnetwork[]; + items?: Schema$Subnetwork[]; /** * [Output Only] Type of resource. Always compute#subnetworkList for lists * of subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10198,15 +10535,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a secondary IP range of a subnetwork. @@ -10218,14 +10555,14 @@ export namespace compute_alpha { * unique and non-overlapping with all primary and secondary IP ranges * within a network. Only IPv4 is supported. */ - ipCidrRange: string; + ipCidrRange?: string; /** * The name associated with this subnetwork secondary range, used when * adding an alias IP range to a VM instance. The name must be 1-63 * characters long, and comply with RFC1035. The name must be unique within * the subnetwork. */ - rangeName: string; + rangeName?: string; } export interface Schema$SubnetworksExpandIpCidrRangeRequest { /** @@ -10234,21 +10571,21 @@ export namespace compute_alpha { * within this network. This range can only be larger than (i.e. a superset * of) the range previously defined before the update. */ - ipCidrRange: string; + ipCidrRange?: string; } export interface Schema$SubnetworksScopedList { /** * A list of subnetworks contained in this scope. */ - subnetworks: Schema$Subnetwork[]; + subnetworks?: Schema$Subnetwork[]; /** * An informational warning that appears when the list of addresses is * empty. */ - warning: any; + warning?: any; } export interface Schema$SubnetworksSetPrivateIpGoogleAccessRequest { - privateIpGoogleAccess: boolean; + privateIpGoogleAccess?: boolean; } /** * A set of instance tags. @@ -10256,29 +10593,29 @@ export namespace compute_alpha { export interface Schema$Tags { /** * Specifies a fingerprint for this request, which is essentially a hash of - * the metadata's contents and used for optimistic locking. The - * fingerprint is initially generated by Compute Engine and changes after - * every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata. To - * see the latest fingerprint, make get() request to the instance. + * the tags' contents and used for optimistic locking. The fingerprint + * is initially generated by Compute Engine and changes after every request + * to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. To see the latest + * fingerprint, make get() request to the instance. */ - fingerprint: string; + fingerprint?: string; /** * An array of tags. Each tag must be 1-63 characters long, and comply with * RFC1035. */ - items: string[]; + items?: string[]; } export interface Schema$TargetHttpProxiesScopedList { /** * A list of TargetHttpProxies contained in this scope. */ - targetHttpProxies: Schema$TargetHttpProxy[]; + targetHttpProxies?: Schema$TargetHttpProxy[]; /** * Informational warning which replaces the list of backend services when * the list is empty. */ - warning: any; + warning?: any; } /** * A TargetHttpProxy resource. This resource defines an HTTP proxy. (== @@ -10289,22 +10626,22 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetHttpProxy for target * HTTP proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -10314,36 +10651,36 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the regional Target HTTP Proxy * resides. This field is not applicable to global Target HTTP Proxies. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the UrlMap resource that defines the mapping from URL to the * BackendService. */ - urlMap: string; + urlMap?: string; } export interface Schema$TargetHttpProxyAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpProxiesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#targetHttpProxyAggregatedList for lists of Target HTTP Proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10351,15 +10688,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A list of TargetHttpProxy resources. @@ -10368,16 +10705,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpProxy resources. */ - items: Schema$TargetHttpProxy[]; + items?: Schema$TargetHttpProxy[]; /** * Type of resource. Always compute#targetHttpProxyList for lists of target * HTTP proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10385,21 +10722,21 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetHttpsProxiesSetQuicOverrideRequest { /** * QUIC policy for the TargetHttpsProxy resource. */ - quicOverride: string; + quicOverride?: string; } export interface Schema$TargetHttpsProxiesSetSslCertificatesRequest { /** @@ -10407,7 +10744,7 @@ export namespace compute_alpha { * TargetHttpsProxy resource. Currently exactly one SslCertificate resource * must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; } /** * A TargetHttpsProxy resource. This resource defines an HTTPS proxy. (== @@ -10418,22 +10755,22 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetHttpsProxy for * target HTTPS proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -10443,7 +10780,7 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the QUIC override policy for this TargetHttpsProxy resource. * This determines whether the load balancer will attempt to negotiate QUIC @@ -10453,23 +10790,23 @@ export namespace compute_alpha { * policy with no user overrides, which is equivalent to DISABLE. Not * specifying this field is equivalent to specifying NONE. */ - quicOverride: string; + quicOverride?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections between users and the load balancer. Currently, exactly one * SSL certificate must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; /** * URL of SslPolicy resource that will be associated with the * TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource will * not have any SSL policy configured. */ - sslPolicy: string; + sslPolicy?: string; /** * A fully-qualified or valid partial URL to the UrlMap resource that * defines the mapping from URL to the BackendService. For example, the @@ -10477,7 +10814,7 @@ export namespace compute_alpha { * https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map * - projects/project/global/urlMaps/url-map - global/urlMaps/url-map */ - urlMap: string; + urlMap?: string; } /** * Contains a list of TargetHttpsProxy resources. @@ -10486,16 +10823,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpsProxy resources. */ - items: Schema$TargetHttpsProxy[]; + items?: Schema$TargetHttpsProxy[]; /** * Type of resource. Always compute#targetHttpsProxyList for lists of target * HTTPS proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10503,15 +10840,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A TargetInstance resource. This resource defines an endpoint instance that @@ -10522,17 +10859,17 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A URL to the virtual machine instance that handles traffic for this * target instance. When creating a target instance, you can provide the @@ -10542,12 +10879,12 @@ export namespace compute_alpha { * - projects/project/zones/zone/instances/instance - * zones/zone/instances/instance */ - instance: string; + instance?: string; /** * [Output Only] The type of the resource. Always compute#targetInstance for * target instances. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -10557,36 +10894,36 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * NAT option controlling how IPs are NAT'ed to the instance. Currently * only NO_NAT (default value) is supported. */ - natPolicy: string; + natPolicy?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] URL of the zone where the target instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$TargetInstanceAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetInstance resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10594,15 +10931,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of TargetInstance resources. @@ -10611,15 +10948,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetInstance resources. */ - items: Schema$TargetInstance[]; + items?: Schema$TargetInstance[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10627,26 +10964,26 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetInstancesScopedList { /** * A list of target instances contained in this scope. */ - targetInstances: Schema$TargetInstance[]; + targetInstances?: Schema$TargetInstance[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } /** * A TargetPool resource. This resource defines a pool of instances, an @@ -10667,16 +11004,16 @@ export namespace compute_alpha { * where traffic will be spread to the healthy instances with the best * effort, or to all instances when no instance is healthy. */ - backupPool: string; + backupPool?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * This field is applicable only when the containing target pool is serving * a forwarding rule as the primary pool (i.e., not as a backup pool to some @@ -10691,7 +11028,7 @@ export namespace compute_alpha { * instances with the best effort, or to all instances when no instance is * healthy. */ - failoverRatio: number; + failoverRatio?: number; /** * The URL of the HttpHealthCheck resource. A member instance in this pool * is considered healthy if and only if the health checks pass. An empty @@ -10699,22 +11036,22 @@ export namespace compute_alpha { * Only HttpHealthChecks are supported. Only one health check may be * specified. */ - healthChecks: string[]; + healthChecks?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A list of resource URLs to the virtual machine instances serving this * pool. They must live in zones contained in the same region as this pool. */ - instances: string[]; + instances?: string[]; /** * [Output Only] Type of the resource. Always compute#targetPool for target * pools. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -10724,15 +11061,15 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the target pool resides. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Sesssion affinity option, must be one of the following values: NONE: * Connections from the same client IP may go to any instance in the pool. @@ -10742,22 +11079,22 @@ export namespace compute_alpha { * protocol will go to the same instance in the pool while that instance * remains healthy. */ - sessionAffinity: string; + sessionAffinity?: string; } export interface Schema$TargetPoolAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetPool resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#targetPoolAggregatedList * for aggregated lists of target pools. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10765,23 +11102,23 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetPoolInstanceHealth { - healthStatus: Schema$HealthStatus[]; + healthStatus?: Schema$HealthStatus[]; /** * [Output Only] Type of resource. Always compute#targetPoolInstanceHealth * when checking the health of an instance. */ - kind: string; + kind?: string; } /** * Contains a list of TargetPool resources. @@ -10790,16 +11127,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetPool resources. */ - items: Schema$TargetPool[]; + items?: Schema$TargetPool[]; /** * [Output Only] Type of resource. Always compute#targetPoolList for lists * of target pools. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10807,21 +11144,21 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetPoolsAddHealthCheckRequest { /** * The HttpHealthCheck to add to the target pool. */ - healthChecks: Schema$HealthCheckReference[]; + healthChecks?: Schema$HealthCheckReference[]; } export interface Schema$TargetPoolsAddInstanceRequest { /** @@ -10831,7 +11168,7 @@ export namespace compute_alpha { * - projects/project-id/zones/zone/instances/instance-name - * zones/zone/instances/instance-name */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$TargetPoolsRemoveHealthCheckRequest { /** @@ -10841,45 +11178,45 @@ export namespace compute_alpha { * - projects/project/global/httpHealthChecks/health-check - * global/httpHealthChecks/health-check */ - healthChecks: Schema$HealthCheckReference[]; + healthChecks?: Schema$HealthCheckReference[]; } export interface Schema$TargetPoolsRemoveInstanceRequest { /** * URLs of the instances to be removed from target pool. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$TargetPoolsScopedList { /** * A list of target pools contained in this scope. */ - targetPools: Schema$TargetPool[]; + targetPools?: Schema$TargetPool[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } - export interface Schema$TargetReference { target: string; } + export interface Schema$TargetReference { target?: string; } export interface Schema$TargetSslProxiesSetBackendServiceRequest { /** * The URL of the new BackendService resource for the targetSslProxy. */ - service: string; + service?: string; } export interface Schema$TargetSslProxiesSetProxyHeaderRequest { /** * The new type of proxy header to append before sending data to the * backend. NONE or PROXY_V1 are allowed. */ - proxyHeader: string; + proxyHeader?: string; } export interface Schema$TargetSslProxiesSetSslCertificatesRequest { /** * New set of URLs to SslCertificate resources to associate with this * TargetSslProxy. Currently exactly one ssl certificate must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; } /** * A TargetSslProxy resource. This resource defines an SSL proxy. (== @@ -10890,22 +11227,22 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#targetSslProxy for * target SSL proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -10915,32 +11252,32 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the BackendService resource. */ - service: string; + service?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections to Backends. Currently exactly one SSL certificate must be * specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; /** * URL of SslPolicy resource that will be associated with the TargetSslProxy * resource. If not set, the TargetSslProxy resource will not have any SSL * policy configured. */ - sslPolicy: string; + sslPolicy?: string; } /** * Contains a list of TargetSslProxy resources. @@ -10949,15 +11286,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetSslProxy resources. */ - items: Schema$TargetSslProxy[]; + items?: Schema$TargetSslProxy[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -10965,28 +11302,28 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetTcpProxiesSetBackendServiceRequest { /** * The URL of the new BackendService resource for the targetTcpProxy. */ - service: string; + service?: string; } export interface Schema$TargetTcpProxiesSetProxyHeaderRequest { /** * The new type of proxy header to append before sending data to the * backend. NONE or PROXY_V1 are allowed. */ - proxyHeader: string; + proxyHeader?: string; } /** * A TargetTcpProxy resource. This resource defines a TCP proxy. (== @@ -10997,22 +11334,22 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#targetTcpProxy for * target TCP proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -11022,20 +11359,20 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the BackendService resource. */ - service: string; + service?: string; } /** * Contains a list of TargetTcpProxy resources. @@ -11044,15 +11381,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetTcpProxy resources. */ - items: Schema$TargetTcpProxy[]; + items?: Schema$TargetTcpProxy[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11060,15 +11397,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a Target VPN gateway resource. (== resource_for @@ -11078,28 +11415,28 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A list of URLs to the ForwardingRule resources. * ForwardingRules are created using compute.forwardingRules.insert and * associated to a VPN gateway. */ - forwardingRules: string[]; + forwardingRules?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this TargetVpnGateway, * which is essentially a hash of the labels set used for optimistic @@ -11109,13 +11446,13 @@ export namespace compute_alpha { * labels. To see the latest fingerprint, make a get() request to retrieve * an TargetVpnGateway. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this TargetVpnGateway resource. These can be later * modified by the setLabels method. Each label key/value must comply with * RFC1035. Label values may be empty. */ - labels: any; + labels?: any; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -11125,47 +11462,47 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URL of the network to which this VPN gateway is attached. Provided by the * client when the VPN gateway is created. */ - network: string; + network?: string; /** * [Output Only] URL of the region where the target VPN gateway resides. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the VPN gateway. */ - status: string; + status?: string; /** * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are * created using compute.vpntunnels.insert method and associated to a VPN * gateway. */ - tunnels: string[]; + tunnels?: string[]; } export interface Schema$TargetVpnGatewayAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetVpnGateway resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11173,15 +11510,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of TargetVpnGateway resources. @@ -11190,16 +11527,16 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetVpnGateway resources. */ - items: Schema$TargetVpnGateway[]; + items?: Schema$TargetVpnGateway[]; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11207,38 +11544,38 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetVpnGatewaysScopedList { /** * [Output Only] A list of target vpn gateways contained in this scope. */ - targetVpnGateways: Schema$TargetVpnGateway[]; + targetVpnGateways?: Schema$TargetVpnGateway[]; /** * [Output Only] Informational warning which replaces the list of addresses * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$TCPHealthCheck { /** * The TCP port number for the health check request. The default value * is 80. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies how port is selected for health checking, can be one of * following values: USE_FIXED_PORT: The port number in port is used for @@ -11249,31 +11586,31 @@ export namespace compute_alpha { * for health checking. If not specified, TCP health check follows * behavior specified in port and portName fields. */ - portSpecification: string; + portSpecification?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The application data to send once the TCP connection has been established * (default value is empty). If both request and response are empty, the * connection establishment alone will indicate health. The request data can * only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. If left * empty (the default value), any response will indicate health. The * response data can only be ASCII. */ - response: string; + response?: string; } export interface Schema$TestFailure { - actualService: string; - expectedService: string; - host: string; - path: string; + actualService?: string; + expectedService?: string; + host?: string; + path?: string; } export interface Schema$TestPermissionsRequest { /** @@ -11281,36 +11618,36 @@ export namespace compute_alpha { * with wildcards (such as '*' or 'storage.*') are not * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TestPermissionsResponse { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$UDPHealthCheck { /** * The UDP port number for the health check request. Valid values are 1 * through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Raw data of request to send in payload of UDP packet. It is an error if * this is empty. The request data can only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. It is an * error if this is empty. The response data can only be ASCII. */ - response: string; + response?: string; } /** * A UrlMap resource. This resource defines the mapping from URL to the @@ -11321,36 +11658,36 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The URL of the BackendService resource if none of the hostRules match. */ - defaultService: string; + defaultService?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a UrlMap. An up-to-date fingerprint must be * provided in order to update the UrlMap. */ - fingerprint: string; + fingerprint?: string; /** * The list of HostRules to use against the URL. */ - hostRules: Schema$HostRule[]; + hostRules?: Schema$HostRule[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#urlMaps for url maps. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -11360,28 +11697,28 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The list of named PathMatchers to use against the URL. */ - pathMatchers: Schema$PathMatcher[]; + pathMatchers?: Schema$PathMatcher[]; /** * [Output Only] URL of the region where the regional URL map resides. This * field is not applicable to global URL maps. You must specify this field * as part of the HTTP request URL. It is not settable as a field in the * request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The list of expected URL mapping tests. Request to update this UrlMap * will succeed only if all of the test cases pass. You can specify a * maximum of 100 tests per UrlMap. */ - tests: Schema$UrlMapTest[]; + tests?: Schema$UrlMapTest[]; } /** * Contains a list of UrlMap resources. @@ -11390,15 +11727,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of UrlMap resources. */ - items: Schema$UrlMap[]; + items?: Schema$UrlMap[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11406,25 +11743,25 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$UrlMapReference { urlMap: string; } + export interface Schema$UrlMapReference { urlMap?: string; } export interface Schema$UrlMapsValidateRequest { /** * Content of the UrlMap to be validated. */ - resource: Schema$UrlMap; + resource?: Schema$UrlMap; } export interface Schema$UrlMapsValidateResponse { - result: Schema$UrlMapValidationResult; + result?: Schema$UrlMapValidationResult; } /** * Message for the expected URL mappings. @@ -11433,36 +11770,36 @@ export namespace compute_alpha { /** * Description of this test case. */ - description: string; + description?: string; /** * Host portion of the URL. */ - host: string; + host?: string; /** * Path portion of the URL. */ - path: string; + path?: string; /** * Expected BackendService resource the given URL should be mapped to. */ - service: string; + service?: string; } /** * Message representing the validation result for a UrlMap. */ export interface Schema$UrlMapValidationResult { - loadErrors: string[]; + loadErrors?: string[]; /** * Whether the given UrlMap can be successfully loaded. If false, * 'loadErrors' indicates the reasons. */ - loadSucceeded: boolean; - testFailures: Schema$TestFailure[]; + loadSucceeded?: boolean; + testFailures?: Schema$TestFailure[]; /** * If successfully loaded, this field indicates whether the test passed. If * false, 'testFailures's indicate the reason of failure. */ - testPassed: boolean; + testPassed?: boolean; } /** * Subnetwork which the current user has compute.subnetworks.use permission @@ -11472,32 +11809,36 @@ export namespace compute_alpha { /** * The range of internal addresses that are owned by this subnetwork. */ - ipCidrRange: string; + ipCidrRange?: string; /** * Network URL. */ - network: string; + network?: string; + /** + * Secondary IP ranges. + */ + secondaryIpRanges?: Schema$UsableSubnetworkSecondaryRange[]; /** * Subnetwork URL. */ - subnetwork: string; + subnetwork?: string; } export interface Schema$UsableSubnetworksAggregatedList { /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output] A list of usable subnetwork URLs. */ - items: Schema$UsableSubnetwork[]; + items?: Schema$UsableSubnetwork[]; /** * [Output Only] Type of resource. Always * compute#usableSubnetworksAggregatedList for aggregated lists of usable * subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11505,15 +11846,31 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; + } + /** + * Secondary IP range of a usable subnetwork. + */ + export interface Schema$UsableSubnetworkSecondaryRange { + /** + * The range of IP addresses belonging to this subnetwork secondary range. + */ + ipCidrRange?: string; + /** + * The name associated with this subnetwork secondary range, used when + * adding an alias IP range to a VM instance. The name must be 1-63 + * characters long, and comply with RFC1035. The name must be unique within + * the subnetwork. + */ + rangeName?: string; } /** * The location in Cloud Storage and naming method of the daily usage report. @@ -11528,7 +11885,7 @@ export namespace compute_alpha { * https://storage.googleapis.com/ in front of it, such as * gs://example-bucket. */ - bucketName: string; + bucketName?: string; /** * An optional prefix for the name of the usage report object stored in * bucketName. If not supplied, defaults to usage. The report is stored as a @@ -11536,7 +11893,7 @@ export namespace compute_alpha { * day of the usage according to Pacific Time. If you supply a prefix, it * should conform to Cloud Storage object naming conventions. */ - reportNamePrefix: string; + reportNamePrefix?: string; } /** * VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for @@ -11546,30 +11903,30 @@ export namespace compute_alpha { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Detailed status message for the VPN tunnel. */ - detailedStatus: string; + detailedStatus?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * IKE protocol version to use when establishing the VPN tunnel with peer * VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2. */ - ikeVersion: number; + ikeVersion?: number; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this VpnTunnel, which is * essentially a hash of the labels set used for optimistic locking. The @@ -11578,19 +11935,19 @@ export namespace compute_alpha { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a VpnTunnel. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this VpnTunnel. These can be later modified by the * setLabels method. Each label key/value pair must comply with RFC1035. * Label values may be empty. */ - labels: any; + labels?: any; /** * Local traffic selector to use when establishing the VPN tunnel with peer * VPN gateway. The value should be a CIDR formatted string, for example: * 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. */ - localTrafficSelector: string[]; + localTrafficSelector?: string[]; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -11600,64 +11957,64 @@ export namespace compute_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * IP address of the peer VPN gateway. Only IPv4 is supported. */ - peerIp: string; + peerIp?: string; /** * [Output Only] URL of the region where the VPN tunnel resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - region: string; + region?: string; /** * Remote traffic selectors to use when establishing the VPN tunnel with * peer VPN gateway. The value should be a CIDR formatted string, for * example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is * supported. */ - remoteTrafficSelector: string[]; + remoteTrafficSelector?: string[]; /** * URL of router resource to be used for dynamic routing. */ - router: string; + router?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Shared secret used to set the secure session between the Cloud VPN * gateway and the peer VPN gateway. */ - sharedSecret: string; + sharedSecret?: string; /** * Hash of the shared secret. */ - sharedSecretHash: string; + sharedSecretHash?: string; /** * [Output Only] The status of the VPN tunnel. */ - status: string; + status?: string; /** * URL of the Target VPN gateway with which this VPN tunnel is associated. * Provided by the client when the VPN tunnel is created. */ - targetVpnGateway: string; + targetVpnGateway?: string; } export interface Schema$VpnTunnelAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of VpnTunnelsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11665,15 +12022,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of VpnTunnel resources. @@ -11682,15 +12039,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of VpnTunnel resources. */ - items: Schema$VpnTunnel[]; + items?: Schema$VpnTunnel[]; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11698,41 +12055,41 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$VpnTunnelsScopedList { /** * A list of vpn tunnels contained in this scope. */ - vpnTunnels: Schema$VpnTunnel[]; + vpnTunnels?: Schema$VpnTunnel[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } export interface Schema$XpnHostList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of shared VPC host project URLs. */ - items: Schema$Project[]; + items?: Schema$Project[]; /** * [Output Only] Type of resource. Always compute#xpnHostList for lists of * shared VPC hosts. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11740,15 +12097,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Service resource (a.k.a service project) ID. @@ -11759,11 +12116,11 @@ export namespace compute_alpha { * matches the project ID (e.g., my-project), not the project number (e.g., * 12345678). */ - id: string; + id?: string; /** * The type of the service resource. */ - type: string; + type?: string; } /** * A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones @@ -11773,44 +12130,44 @@ export namespace compute_alpha { /** * [Output Only] Available cpu/platform selections for the zone. */ - availableCpuPlatforms: string[]; + availableCpuPlatforms?: string[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this zone. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] Textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#zone for zones. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Full URL reference to the region which hosts the zone. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the zone, either UP or DOWN. */ - status: string; + status?: string; } /** * Contains a list of zone resources. @@ -11819,15 +12176,15 @@ export namespace compute_alpha { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Zone resources. */ - items: Schema$Zone[]; + items?: Schema$Zone[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -11835,15 +12192,15 @@ export namespace compute_alpha { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$ZoneSetLabelsRequest { /** @@ -11854,13 +12211,14 @@ export namespace compute_alpha { * change labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The labels to set for this resource. */ - labels: any; + labels?: any; } + export class Resource$Acceleratortypes { root: Compute; constructor(root: Compute) { @@ -11889,29 +12247,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Acceleratortypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Acceleratortypes$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Acceleratortypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Acceleratortypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11940,7 +12314,7 @@ export namespace compute_alpha { /** * compute.acceleratorTypes.get - * @desc Returns the specified accelerator type. Get a list of available + * @desc Returns the specified accelerator type. Gets a list of available * accelerator types by making a list() request. * @alias compute.acceleratorTypes.get * @memberOf! () @@ -11953,24 +12327,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Acceleratortypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Acceleratortypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Acceleratortypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Acceleratortypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Acceleratortypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12013,28 +12398,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Acceleratortypes$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Acceleratortypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Acceleratortypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Acceleratortypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12059,6 +12455,139 @@ export namespace compute_alpha { } } + export interface Params$Resource$Acceleratortypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Acceleratortypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the accelerator type to return. + */ + acceleratorType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Acceleratortypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Addresses { root: Compute; constructor(root: Compute) { @@ -12087,28 +12616,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Addresses$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Addresses$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Addresses$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Addresses$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Addresses$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12147,26 +12689,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Addresses$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Addresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12205,23 +12758,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Addresses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Addresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Addresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Addresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12262,26 +12825,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Addresses$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Addresses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Addresses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12324,26 +12898,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Addresses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Addresses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12385,26 +12970,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Addresses$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Addresses$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Addresses$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Addresses$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12444,28 +13042,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Addresses$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Addresses$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Addresses$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Addresses$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Addresses$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12490,6 +13101,262 @@ export namespace compute_alpha { } } + export interface Params$Resource$Addresses$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Addresses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to delete. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Addresses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to return. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Addresses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Address; + } + export interface Params$Resource$Addresses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Addresses$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Addresses$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Autoscalers { root: Compute; constructor(root: Compute) { @@ -12518,28 +13385,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Autoscalers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Autoscalers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Autoscalers$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Autoscalers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Autoscalers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12578,26 +13458,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Autoscalers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Autoscalers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12624,7 +13517,7 @@ export namespace compute_alpha { /** * compute.autoscalers.get - * @desc Returns the specified autoscaler resource. Get a list of available + * @desc Returns the specified autoscaler resource. Gets a list of available * autoscalers by making a list() request. * @alias compute.autoscalers.get * @memberOf! () @@ -12637,23 +13530,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Autoscalers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Autoscalers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Autoscalers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Autoscalers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Autoscalers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12694,26 +13598,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Autoscalers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Autoscalers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12756,26 +13673,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Autoscalers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Autoscalers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Autoscalers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Autoscalers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12818,26 +13746,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Autoscalers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Autoscalers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Autoscalers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12877,28 +13817,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Autoscalers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Autoscalers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Autoscalers$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Autoscalers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Autoscalers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12940,26 +13893,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Autoscalers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Autoscalers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12984,6 +13950,298 @@ export namespace compute_alpha { } } + export interface Params$Resource$Autoscalers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Autoscalers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to delete. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to return. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Autoscalers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to patch. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Autoscalers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Autoscalers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to update. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + + export class Resource$Backendbuckets { root: Compute; constructor(root: Compute) { @@ -13011,26 +14269,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Addsignedurlkey, + options?: MethodOptions): AxiosPromise; + addSignedUrlKey( + params: Params$Resource$Backendbuckets$Addsignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addSignedUrlKey( + params: Params$Resource$Backendbuckets$Addsignedurlkey, + callback: BodyResponseCallback): void; + addSignedUrlKey(callback: BodyResponseCallback): void; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$Addsignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Addsignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Addsignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13069,26 +14340,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Backendbuckets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Backendbuckets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13128,26 +14412,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Deletesignedurlkey, + options?: MethodOptions): AxiosPromise; + deleteSignedUrlKey( + params: Params$Resource$Backendbuckets$Deletesignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Deletesignedurlkey, + callback: BodyResponseCallback): void; + deleteSignedUrlKey(callback: BodyResponseCallback): void; + deleteSignedUrlKey( + paramsOrCallback?: Params$Resource$Backendbuckets$Deletesignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Deletesignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Deletesignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13174,7 +14471,7 @@ export namespace compute_alpha { /** * compute.backendBuckets.get - * @desc Returns the specified BackendBucket resource. Get a list of + * @desc Returns the specified BackendBucket resource. Gets a list of * available backend buckets by making a list() request. * @alias compute.backendBuckets.get * @memberOf! () @@ -13186,24 +14483,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Backendbuckets$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Backendbuckets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backendbuckets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backendbuckets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13242,26 +14550,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Backendbuckets$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Backendbuckets$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13301,26 +14621,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Backendbuckets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Backendbuckets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13361,26 +14694,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Backendbuckets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Backendbuckets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Backendbuckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13421,26 +14766,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Backendbuckets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Backendbuckets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13480,26 +14838,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Backendbuckets$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Backendbuckets$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13538,28 +14908,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Backendbuckets$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Backendbuckets$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendbuckets$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Backendbuckets$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13600,26 +14983,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Backendbuckets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Backendbuckets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13644,6 +15040,316 @@ export namespace compute_alpha { } } + export interface Params$Resource$Backendbuckets$Addsignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SignedUrlKey; + } + export interface Params$Resource$Backendbuckets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to delete. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendbuckets$Deletesignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendBucket?: string; + /** + * The name of the Signed URL Key to delete. + */ + keyName?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendbuckets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to return. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendbuckets$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Backendbuckets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + export interface Params$Resource$Backendbuckets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendbuckets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to patch. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + export interface Params$Resource$Backendbuckets$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Backendbuckets$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Backendbuckets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to update. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + + export class Resource$Backendservices { root: Compute; constructor(root: Compute) { @@ -13671,26 +15377,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Addsignedurlkey, + options?: MethodOptions): AxiosPromise; + addSignedUrlKey( + params: Params$Resource$Backendservices$Addsignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Addsignedurlkey, + callback: BodyResponseCallback): void; + addSignedUrlKey(callback: BodyResponseCallback): void; + addSignedUrlKey( + paramsOrCallback?: Params$Resource$Backendservices$Addsignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Addsignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Addsignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13732,29 +15451,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Backendservices$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Backendservices$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13795,26 +15530,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Backendservices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Backendservices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13855,26 +15603,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Deletesignedurlkey, + options?: MethodOptions): AxiosPromise; + deleteSignedUrlKey( + params: Params$Resource$Backendservices$Deletesignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Deletesignedurlkey, + callback: BodyResponseCallback): void; + deleteSignedUrlKey(callback: BodyResponseCallback): void; + deleteSignedUrlKey( + paramsOrCallback?: Params$Resource$Backendservices$Deletesignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Deletesignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Deletesignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13901,7 +15662,7 @@ export namespace compute_alpha { /** * compute.backendServices.get - * @desc Returns the specified BackendService resource. Get a list of + * @desc Returns the specified BackendService resource. Gets a list of * available backend services by making a list() request. * @alias compute.backendServices.get * @memberOf! () @@ -13913,24 +15674,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Backendservices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Backendservices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backendservices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backendservices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13969,29 +15741,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): + getHealth( + params?: Params$Resource$Backendservices$Gethealth, + options?: MethodOptions): AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Backendservices$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Backendservices$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14034,26 +15819,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Backendservices$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Backendservices$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14094,26 +15892,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Backendservices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Backendservices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14156,26 +15967,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Backendservices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Backendservices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14215,26 +16039,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSecurityPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSecurityPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Setsecuritypolicy, + options?: MethodOptions): AxiosPromise; + setSecurityPolicy( + params: Params$Resource$Backendservices$Setsecuritypolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSecurityPolicy( + params: Params$Resource$Backendservices$Setsecuritypolicy, + callback: BodyResponseCallback): void; + setSecurityPolicy(callback: BodyResponseCallback): void; setSecurityPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$Setsecuritypolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Setsecuritypolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Setsecuritypolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14273,28 +16110,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Backendservices$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Backendservices$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14337,26 +16187,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Backendservices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Backendservices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14381,6 +16244,389 @@ export namespace compute_alpha { } } + export interface Params$Resource$Backendservices$Addsignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SignedUrlKey; + } + export interface Params$Resource$Backendservices$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to delete. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendservices$Deletesignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendService?: string; + /** + * The name of the Signed URL Key to delete. + */ + keyName?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendservices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to return. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the queried instance + * belongs. + */ + backendService?: string; + /** + * + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceGroupReference; + } + export interface Params$Resource$Backendservices$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Backendservices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to patch. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Backendservices$Setsecuritypolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the security policy should + * be set. The name should conform to RFC1035. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicyReference; + } + export interface Params$Resource$Backendservices$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Backendservices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to update. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + + export class Resource$Disks { root: Compute; constructor(root: Compute) { @@ -14393,6 +16639,81 @@ export namespace compute_alpha { } + /** + * compute.disks.addResourcePolicies + * @desc Adds existing resource policies to a disk. You can only add one + * policy which will be applied to this disk for scheduling snapshot + * creation. + * @alias compute.disks.addResourcePolicies + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.disk The disk name for this request. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().DisksAddResourcePoliciesRequest} 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 + */ + addResourcePolicies( + params?: Params$Resource$Disks$Addresourcepolicies, + options?: MethodOptions): AxiosPromise; + addResourcePolicies( + params: Params$Resource$Disks$Addresourcepolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addResourcePolicies( + params: Params$Resource$Disks$Addresourcepolicies, + callback: BodyResponseCallback): void; + addResourcePolicies(callback: BodyResponseCallback): void; + addResourcePolicies( + paramsOrCallback?: Params$Resource$Disks$Addresourcepolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Addresourcepolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Addresourcepolicies; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * compute.disks.aggregatedList * @desc Retrieves an aggregated list of persistent disks. @@ -14409,26 +16730,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Disks$Aggregatedlist, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Disks$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14469,26 +16804,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createSnapshot(params?: any, options?: MethodOptions): - AxiosPromise; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Createsnapshot, + options?: MethodOptions): AxiosPromise; + createSnapshot( + params: Params$Resource$Disks$Createsnapshot, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createSnapshot( + params: Params$Resource$Disks$Createsnapshot, + callback: BodyResponseCallback): void; + createSnapshot(callback: BodyResponseCallback): void; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Createsnapshot| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Createsnapshot; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Createsnapshot; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14531,26 +16879,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Disks$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Disks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14577,7 +16936,7 @@ export namespace compute_alpha { /** * compute.disks.get - * @desc Returns a specified persistent disk. Get a list of available + * @desc Returns a specified persistent disk. Gets a list of available * persistent disks by making a list() request. * @alias compute.disks.get * @memberOf! () @@ -14590,21 +16949,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Disks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Disks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Disks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Disks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14644,26 +17015,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Disks$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Disks$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14708,26 +17091,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Disks$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Disks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14769,25 +17163,36 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Disks$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Disks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14811,6 +17216,80 @@ export namespace compute_alpha { } + /** + * compute.disks.removeResourcePolicies + * @desc Removes resource policies from a disk. + * @alias compute.disks.removeResourcePolicies + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.disk The disk name for this request. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().DisksRemoveResourcePoliciesRequest} 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 + */ + removeResourcePolicies( + params?: Params$Resource$Disks$Removeresourcepolicies, + options?: MethodOptions): AxiosPromise; + removeResourcePolicies( + params: Params$Resource$Disks$Removeresourcepolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeResourcePolicies( + params: Params$Resource$Disks$Removeresourcepolicies, + callback: BodyResponseCallback): void; + removeResourcePolicies(callback: BodyResponseCallback): + void; + removeResourcePolicies( + paramsOrCallback?: Params$Resource$Disks$Removeresourcepolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Disks$Removeresourcepolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Removeresourcepolicies; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * compute.disks.resize * @desc Resizes the specified persistent disk. You can only increase the @@ -14828,26 +17307,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): + resize(params?: Params$Resource$Disks$Resize, options?: MethodOptions): AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Disks$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14888,26 +17378,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Disks$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Disks$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14949,26 +17451,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Disks$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Disks$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15008,28 +17522,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Disks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Disks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Disks$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Disks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15054,6 +17581,456 @@ export namespace compute_alpha { } } + export interface Params$Resource$Disks$Addresourcepolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The disk name for this request. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$DisksAddResourcePoliciesRequest; + } + export interface Params$Resource$Disks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Disks$Createsnapshot { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to snapshot. + */ + disk?: string; + /** + * + */ + guestFlush?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Snapshot; + } + export interface Params$Resource$Disks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to delete. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to return. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Optional. Source image to restore onto a disk. + */ + sourceImage?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Disk; + } + export interface Params$Resource$Disks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Removeresourcepolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The disk name for this request. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$DisksRemoveResourcePoliciesRequest; + } + export interface Params$Resource$Disks$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the persistent disk. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$DisksResizeRequest; + } + export interface Params$Resource$Disks$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Disks$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$ZoneSetLabelsRequest; + } + export interface Params$Resource$Disks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Disktypes { root: Compute; constructor(root: Compute) { @@ -15082,28 +18059,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Disktypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Disktypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Disktypes$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Disktypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disktypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15129,8 +18119,8 @@ export namespace compute_alpha { /** * compute.diskTypes.get - * @desc Returns the specified disk type. Get a list of available disk types - * by making a list() request. + * @desc Returns the specified disk type. Gets a list of available disk + * types by making a list() request. * @alias compute.diskTypes.get * @memberOf! () * @@ -15142,23 +18132,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Disktypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Disktypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Disktypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Disktypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disktypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15200,26 +18200,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Disktypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disktypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disktypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Disktypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disktypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15243,6 +18254,139 @@ export namespace compute_alpha { } } + export interface Params$Resource$Disktypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Disktypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the disk type to return. + */ + diskType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disktypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Firewalls { root: Compute; constructor(root: Compute) { @@ -15269,26 +18413,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Firewalls$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Firewalls$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Firewalls$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15326,23 +18481,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Firewalls$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Firewalls$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Firewalls$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Firewalls$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15382,26 +18547,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Firewalls$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Firewalls$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15442,26 +18618,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Firewalls$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Firewalls$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Firewalls$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15502,26 +18689,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Firewalls$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Firewalls$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Firewalls$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15560,28 +18758,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Firewalls$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Firewalls$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Firewalls$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Firewalls$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Firewalls$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15623,26 +18834,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Firewalls$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Firewalls$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15667,6 +18889,216 @@ export namespace compute_alpha { } } + export interface Params$Resource$Firewalls$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to delete. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Firewalls$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to return. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + export interface Params$Resource$Firewalls$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to patch. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + export interface Params$Resource$Firewalls$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Firewalls$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to update. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + + export class Resource$Forwardingrules { root: Compute; constructor(root: Compute) { @@ -15695,29 +19127,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Forwardingrules$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Forwardingrules$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Forwardingrules$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Forwardingrules$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Forwardingrules$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15759,26 +19207,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Forwardingrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Forwardingrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Forwardingrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15817,24 +19278,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Forwardingrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Forwardingrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Forwardingrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Forwardingrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15875,26 +19347,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Forwardingrules$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Forwardingrules$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Forwardingrules$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15937,26 +19422,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Forwardingrules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Forwardingrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Forwardingrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16000,26 +19498,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Forwardingrules$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Forwardingrules$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16061,26 +19572,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Forwardingrules$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Forwardingrules$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16122,26 +19646,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTarget(params?: any, options?: MethodOptions): - AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Settarget, + options?: MethodOptions): AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Settarget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTarget( + params: Params$Resource$Forwardingrules$Settarget, + callback: BodyResponseCallback): void; + setTarget(callback: BodyResponseCallback): void; + setTarget( + paramsOrCallback?: Params$Resource$Forwardingrules$Settarget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Settarget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Settarget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16181,28 +19718,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Forwardingrules$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Forwardingrules$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Forwardingrules$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Forwardingrules$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Forwardingrules$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16227,6 +19777,334 @@ export namespace compute_alpha { } } + export interface Params$Resource$Forwardingrules$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Forwardingrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to delete. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Forwardingrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to return. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Forwardingrules$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Forwardingrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Forwardingrules$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to patch. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Forwardingrules$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Forwardingrules$Settarget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource in which target is to be set. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + export interface Params$Resource$Forwardingrules$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Globaladdresses { root: Compute; constructor(root: Compute) { @@ -16253,26 +20131,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globaladdresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Globaladdresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaladdresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16299,7 +20190,7 @@ export namespace compute_alpha { /** * compute.globalAddresses.get - * @desc Returns the specified address resource. Get a list of available + * @desc Returns the specified address resource. Gets a list of available * addresses by making a list() request. * @alias compute.globalAddresses.get * @memberOf! () @@ -16311,23 +20202,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Globaladdresses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Globaladdresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globaladdresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globaladdresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16367,26 +20269,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Globaladdresses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Globaladdresses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16426,26 +20341,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Globaladdresses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globaladdresses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaladdresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16484,26 +20412,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Globaladdresses$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Globaladdresses$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16542,28 +20483,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globaladdresses$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Globaladdresses$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Globaladdresses$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Globaladdresses$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globaladdresses$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16588,6 +20542,171 @@ export namespace compute_alpha { } } + export interface Params$Resource$Globaladdresses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to delete. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Globaladdresses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to return. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaladdresses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Address; + } + export interface Params$Resource$Globaladdresses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaladdresses$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Globaladdresses$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Globalforwardingrules { root: Compute; constructor(root: Compute) { @@ -16614,26 +20733,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globalforwardingrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16660,7 +20792,7 @@ export namespace compute_alpha { /** * compute.globalForwardingRules.get - * @desc Returns the specified GlobalForwardingRule resource. Get a list of + * @desc Returns the specified GlobalForwardingRule resource. Gets a list of * available forwarding rules by making a list() request. * @alias compute.globalForwardingRules.get * @memberOf! () @@ -16672,24 +20804,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Globalforwardingrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Globalforwardingrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globalforwardingrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globalforwardingrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globalforwardingrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16729,26 +20872,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Globalforwardingrules$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Globalforwardingrules$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globalforwardingrules$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16789,26 +20945,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globalforwardingrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Globalforwardingrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16850,26 +21019,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Globalforwardingrules$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16909,26 +21091,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Globalforwardingrules$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16969,26 +21164,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTarget(params?: any, options?: MethodOptions): - AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Settarget, + options?: MethodOptions): AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Settarget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTarget( + params: Params$Resource$Globalforwardingrules$Settarget, + callback: BodyResponseCallback): void; + setTarget(callback: BodyResponseCallback): void; + setTarget( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Settarget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Settarget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Settarget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17027,28 +21235,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globalforwardingrules$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Globalforwardingrules$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Globalforwardingrules$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Globalforwardingrules$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17073,6 +21295,235 @@ export namespace compute_alpha { } } + export interface Params$Resource$Globalforwardingrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to delete. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Globalforwardingrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to return. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalforwardingrules$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Globalforwardingrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalforwardingrules$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to patch. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Globalforwardingrules$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Globalforwardingrules$Settarget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource in which target is to be set. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + export interface Params$Resource$Globalforwardingrules$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Globaloperations { root: Compute; constructor(root: Compute) { @@ -17101,28 +21552,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globaloperations$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Globaloperations$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Globaloperations$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Globaloperations$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globaloperations$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17159,22 +21623,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaloperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globaloperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Globaloperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaloperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17201,7 +21680,7 @@ export namespace compute_alpha { /** * compute.globalOperations.get - * @desc Retrieves the specified Operations resource. Get a list of + * @desc Retrieves the specified Operations resource. Gets a list of * operations by making a list() request. * @alias compute.globalOperations.get * @memberOf! () @@ -17213,23 +21692,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Globaloperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Globaloperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globaloperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globaloperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17271,26 +21762,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaloperations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaloperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globaloperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Globaloperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17312,7 +21816,240 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + + + /** + * compute.globalOperations.wait + * @desc Waits for the specified Operations resource until it is done or + * timeout, and retrieves the specified Operations resource. 1. Immediately + * returns when the operation is already done. 2. Waits for no more than the + * default deadline (2 minutes, subject to change) and then returns the + * current state of the operation, which may be DONE or still in + * progress. 3. Is best-effort: a. The server can wait less than the default + * deadline or zero seconds, in overload situations. b. There is no + * guarantee that the operation is actually done when returns. 4. User + * should be prepared to retry if the operation is not DONE. + * @alias compute.globalOperations.wait + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.operation Name of the Operations resource to return. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + wait( + params?: Params$Resource$Globaloperations$Wait, + options?: MethodOptions): AxiosPromise; + wait( + params: Params$Resource$Globaloperations$Wait, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + wait( + params: Params$Resource$Globaloperations$Wait, + callback: BodyResponseCallback): void; + wait(callback: BodyResponseCallback): void; + wait( + paramsOrCallback?: Params$Resource$Globaloperations$Wait| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Wait; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Wait; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}/wait') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Globaloperations$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; } + export interface Params$Resource$Globaloperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$Wait { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export class Resource$Healthchecks { root: Compute; @@ -17343,29 +22080,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Healthchecks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Healthchecks$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Healthchecks$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList(callback: + BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Healthchecks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Healthchecks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17404,26 +22157,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Healthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Healthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17450,8 +22216,8 @@ export namespace compute_alpha { /** * compute.healthChecks.get - * @desc Returns the specified HealthCheck resource. Get a list of available - * health checks by making a list() request. + * @desc Returns the specified HealthCheck resource. Gets a list of + * available health checks by making a list() request. * @alias compute.healthChecks.get * @memberOf! () * @@ -17462,24 +22228,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Healthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Healthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Healthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Healthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Healthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17519,26 +22295,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Healthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Healthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17579,26 +22368,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Healthchecks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Healthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Healthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17639,26 +22440,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Healthchecks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Healthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Healthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17697,28 +22510,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Healthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Healthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Healthchecks$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Healthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Healthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17759,26 +22585,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Healthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Healthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17803,6 +22642,270 @@ export namespace compute_alpha { } } + export interface Params$Resource$Healthchecks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to delete. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Healthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to return. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Healthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to patch. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Healthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Healthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to update. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + + export class Resource$Hosts { root: Compute; constructor(root: Compute) { @@ -17831,26 +22934,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Hosts$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Hosts$Aggregatedlist, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Hosts$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Hosts$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Hosts$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17889,26 +23006,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Hosts$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Hosts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Hosts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Hosts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Hosts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17935,8 +23063,8 @@ export namespace compute_alpha { /** * compute.hosts.get - * @desc Returns the specified host. Get a list of available hosts by making - * a list() request. + * @desc Returns the specified host. Gets a list of available hosts by + * making a list() request. * @alias compute.hosts.get * @memberOf! () * @@ -17948,21 +23076,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Hosts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Hosts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Hosts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Hosts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Hosts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18002,26 +23142,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Hosts$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Hosts$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Hosts$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Hosts$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Hosts$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18062,26 +23214,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Hosts$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Hosts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Hosts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Hosts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Hosts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18122,25 +23285,36 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Hosts$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Hosts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Hosts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Hosts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Hosts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18180,26 +23354,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Hosts$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Hosts$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Hosts$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Hosts$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Hosts$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18239,28 +23425,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Hosts$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Hosts$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Hosts$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Hosts$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Hosts$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosts$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18285,6 +23484,268 @@ export namespace compute_alpha { } } + export interface Params$Resource$Hosts$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Hosts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Host resource to delete. + */ + host?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Hosts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the host to return. + */ + host?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Hosts$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Hosts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Host; + } + export interface Params$Resource$Hosts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Hosts$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Hosts$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Hosttypes { root: Compute; constructor(root: Compute) { @@ -18313,28 +23774,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Hosttypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Hosttypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Hosttypes$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Hosttypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Hosttypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosttypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18360,8 +23834,8 @@ export namespace compute_alpha { /** * compute.hostTypes.get - * @desc Returns the specified host type. Get a list of available host types - * by making a list() request. + * @desc Returns the specified host type. Gets a list of available host + * types by making a list() request. * @alias compute.hostTypes.get * @memberOf! () * @@ -18373,23 +23847,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Hosttypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Hosttypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Hosttypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Hosttypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Hosttypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosttypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18431,26 +23915,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Hosttypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Hosttypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Hosttypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Hosttypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Hosttypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Hosttypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18474,6 +23969,139 @@ export namespace compute_alpha { } } + export interface Params$Resource$Hosttypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Hosttypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the host type to return. + */ + hostType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Hosttypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Httphealthchecks { root: Compute; constructor(root: Compute) { @@ -18500,26 +24128,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Httphealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Httphealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18546,7 +24187,7 @@ export namespace compute_alpha { /** * compute.httpHealthChecks.get - * @desc Returns the specified HttpHealthCheck resource. Get a list of + * @desc Returns the specified HttpHealthCheck resource. Gets a list of * available HTTP health checks by making a list() request. * @alias compute.httpHealthChecks.get * @memberOf! () @@ -18558,24 +24199,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Httphealthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Httphealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Httphealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Httphealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18615,26 +24267,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Httphealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Httphealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18675,28 +24340,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Httphealthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Httphealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Httphealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18737,26 +24413,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Httphealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Httphealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18795,28 +24484,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httphealthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Httphealthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Httphealthchecks$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Httphealthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Httphealthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18857,26 +24559,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Httphealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Httphealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18901,6 +24616,216 @@ export namespace compute_alpha { } } + export interface Params$Resource$Httphealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to delete. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Httphealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to return. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httphealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + export interface Params$Resource$Httphealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httphealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to patch. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + export interface Params$Resource$Httphealthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Httphealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to update. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + + export class Resource$Httpshealthchecks { root: Compute; constructor(root: Compute) { @@ -18927,26 +24852,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Httpshealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Httpshealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Httpshealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18973,7 +24911,7 @@ export namespace compute_alpha { /** * compute.httpsHealthChecks.get - * @desc Returns the specified HttpsHealthCheck resource. Get a list of + * @desc Returns the specified HttpsHealthCheck resource. Gets a list of * available HTTPS health checks by making a list() request. * @alias compute.httpsHealthChecks.get * @memberOf! () @@ -18985,24 +24923,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Httpshealthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Httpshealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Httpshealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Httpshealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19042,26 +24991,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Httpshealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Httpshealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Httpshealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19103,28 +25065,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httpshealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Httpshealthchecks$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Httpshealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Httpshealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19166,26 +25140,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Httpshealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19224,28 +25211,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httpshealthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Httpshealthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Httpshealthchecks$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Httpshealthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19286,26 +25286,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Httpshealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19330,6 +25343,216 @@ export namespace compute_alpha { } } + export interface Params$Resource$Httpshealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to delete. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Httpshealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to return. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httpshealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + export interface Params$Resource$Httpshealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httpshealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to patch. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + export interface Params$Resource$Httpshealthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Httpshealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to update. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + + export class Resource$Images { root: Compute; constructor(root: Compute) { @@ -19356,26 +25579,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Images$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Images$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Images$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19415,26 +25649,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deprecate(params?: any, options?: MethodOptions): - AxiosPromise; deprecate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Deprecate, + options?: MethodOptions): AxiosPromise; deprecate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Deprecate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deprecate( + params: Params$Resource$Images$Deprecate, + callback: BodyResponseCallback): void; + deprecate(callback: BodyResponseCallback): void; + deprecate( + paramsOrCallback?: Params$Resource$Images$Deprecate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Deprecate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Deprecate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19461,7 +25707,7 @@ export namespace compute_alpha { /** * compute.images.get - * @desc Returns the specified image. Get a list of available images by + * @desc Returns the specified image. Gets a list of available images by * making a list() request. * @alias compute.images.get * @memberOf! () @@ -19473,23 +25719,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Images$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Images$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Images$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Images$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19527,26 +25783,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getFromFamily(params?: any, options?: MethodOptions): - AxiosPromise; getFromFamily( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Getfromfamily, + options?: MethodOptions): AxiosPromise; + getFromFamily( + params: Params$Resource$Images$Getfromfamily, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getFromFamily( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Getfromfamily, + callback: BodyResponseCallback): void; + getFromFamily(callback: BodyResponseCallback): void; + getFromFamily( + paramsOrCallback?: Params$Resource$Images$Getfromfamily| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Getfromfamily; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Getfromfamily; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19585,26 +25853,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Images$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Images$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Images$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19645,26 +25925,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Images$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Images$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19708,25 +25999,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Images$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Images$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19764,26 +26067,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Images$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Images$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Images$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19823,26 +26138,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Images$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Images$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19881,28 +26208,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Images$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Images$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Images$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Images$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19927,6 +26267,256 @@ export namespace compute_alpha { } } + export interface Params$Resource$Images$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image resource to delete. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Images$Deprecate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Image name. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$DeprecationStatus; + } + export interface Params$Resource$Images$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image resource to return. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Getfromfamily { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image family to search for. + */ + family?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Images$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Force image creation if true. + */ + forceCreate?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Image; + } + export interface Params$Resource$Images$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Images$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Images$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Instancegroupmanagers { root: Compute; constructor(root: Compute) { @@ -19967,26 +26557,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; + abandonInstances( + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; + abandonInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20028,31 +26632,49 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Instancegroupmanagers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroupmanagers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Instancegroupmanagers$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20095,26 +26717,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - applyUpdatesToInstances(params?: any, options?: MethodOptions): - AxiosPromise; applyUpdatesToInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Applyupdatestoinstances, + options?: MethodOptions): AxiosPromise; + applyUpdatesToInstances( + params: Params$Resource$Instancegroupmanagers$Applyupdatestoinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; applyUpdatesToInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Applyupdatestoinstances, + callback: BodyResponseCallback): void; + applyUpdatesToInstances(callback: BodyResponseCallback): + void; + applyUpdatesToInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Applyupdatestoinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Applyupdatestoinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Applyupdatestoinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20156,26 +26794,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20226,26 +26877,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; + deleteInstances( + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteInstances( + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20286,26 +26951,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deletePerInstanceConfigs(params?: any, options?: MethodOptions): - AxiosPromise; deletePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs, + options?: MethodOptions): AxiosPromise; + deletePerInstanceConfigs( + params: Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deletePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs, + callback: BodyResponseCallback): void; + deletePerInstanceConfigs(callback: BodyResponseCallback): + void; + deletePerInstanceConfigs( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20346,26 +27027,36 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroupmanagers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Instancegroupmanagers$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroupmanagers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20413,26 +27104,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20475,28 +27179,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroupmanagers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancegroupmanagers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancegroupmanagers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20544,30 +27260,49 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listManagedInstances(params?: any, options?: MethodOptions): + listManagedInstances( + params?: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + options?: MethodOptions): AxiosPromise; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + options: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>): void; + listManagedInstances( + params: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>): void; + listManagedInstances( + callback: BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>): void; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Listmanagedinstances| + BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>, callback?: BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Listmanagedinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Listmanagedinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20615,30 +27350,49 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listPerInstanceConfigs(params?: any, options?: MethodOptions): + listPerInstanceConfigs( + params?: Params$Resource$Instancegroupmanagers$Listperinstanceconfigs, + options?: MethodOptions): AxiosPromise; listPerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Instancegroupmanagers$Listperinstanceconfigs, + options: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListPerInstanceConfigsResp>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListPerInstanceConfigsResp>): void; + listPerInstanceConfigs( + params: Params$Resource$Instancegroupmanagers$Listperinstanceconfigs, + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListPerInstanceConfigsResp>): void; + listPerInstanceConfigs( + callback: BodyResponseCallback< Schema$InstanceGroupManagersListPerInstanceConfigsResp>): void; listPerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Listperinstanceconfigs| + BodyResponseCallback< + Schema$InstanceGroupManagersListPerInstanceConfigsResp>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListPerInstanceConfigsResp>, callback?: BodyResponseCallback< Schema$InstanceGroupManagersListPerInstanceConfigsResp>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Listperinstanceconfigs; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Listperinstanceconfigs; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20688,26 +27442,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Instancegroupmanagers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20757,26 +27524,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; + recreateInstances( + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Recreateinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20826,26 +27607,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Instancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20897,26 +27691,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resizeAdvanced(params?: any, options?: MethodOptions): - AxiosPromise; resizeAdvanced( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Resizeadvanced, + options?: MethodOptions): AxiosPromise; + resizeAdvanced( + params: Params$Resource$Instancegroupmanagers$Resizeadvanced, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resizeAdvanced( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Resizeadvanced, + callback: BodyResponseCallback): void; + resizeAdvanced(callback: BodyResponseCallback): void; + resizeAdvanced( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resizeadvanced| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Resizeadvanced; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Resizeadvanced; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20957,26 +27764,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAutoHealingPolicies(params?: any, options?: MethodOptions): - AxiosPromise; setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Setautohealingpolicies, + options?: MethodOptions): AxiosPromise; + setAutoHealingPolicies( + params: Params$Resource$Instancegroupmanagers$Setautohealingpolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAutoHealingPolicies( + params: Params$Resource$Instancegroupmanagers$Setautohealingpolicies, + callback: BodyResponseCallback): void; + setAutoHealingPolicies(callback: BodyResponseCallback): + void; setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Setautohealingpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Setautohealingpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Setautohealingpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21019,26 +27842,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setInstanceTemplate( + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; + setInstanceTemplate( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21084,26 +27922,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Instancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; + setTargetPools( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21143,28 +27994,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroupmanagers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instancegroupmanagers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instancegroupmanagers$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21209,26 +28074,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Instancegroupmanagers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21271,26 +28149,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatePerInstanceConfigs(params?: any, options?: MethodOptions): - AxiosPromise; updatePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs, + options?: MethodOptions): AxiosPromise; updatePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updatePerInstanceConfigs( + params: Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs, + callback: BodyResponseCallback): void; + updatePerInstanceConfigs(callback: BodyResponseCallback): + void; + updatePerInstanceConfigs( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21315,6 +28209,772 @@ export namespace compute_alpha { } } + export interface Params$Resource$Instancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancegroupmanagers$Applyupdatestoinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group, should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. Should + * conform to RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersApplyUpdatesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group to delete. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Deleteperinstanceconfigs { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. It + * should conform to RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersDeletePerInstanceConfigsReq; + } + export interface Params$Resource$Instancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Listmanagedinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Listperinstanceconfigs { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. It + * should conform to RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersRecreateInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The number of running instances that the managed instance group should + * maintain at any given time. The group automatically adds or removes + * instances to maintain the number of instances specified by this + * parameter. + */ + size?: number; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Resizeadvanced { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersResizeAdvancedRequest; + } + export interface Params$Resource$Instancegroupmanagers$Setautohealingpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetAutoHealingRequest; + } + export interface Params$Resource$Instancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetInstanceTemplateRequest; + } + export interface Params$Resource$Instancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetTargetPoolsRequest; + } + export interface Params$Resource$Instancegroupmanagers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Instancegroupmanagers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$Updateperinstanceconfigs { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. It + * should conform to RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersUpdatePerInstanceConfigsReq; + } + + export class Resource$Instancegroups { root: Compute; constructor(root: Compute) { @@ -21345,26 +29005,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addInstances(params?: any, options?: MethodOptions): - AxiosPromise; addInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Addinstances, + options?: MethodOptions): AxiosPromise; + addInstances( + params: Params$Resource$Instancegroups$Addinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addInstances( + params: Params$Resource$Instancegroups$Addinstances, + callback: BodyResponseCallback): void; + addInstances(callback: BodyResponseCallback): void; addInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Addinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Addinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Addinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21405,29 +29078,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Instancegroups$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Instancegroups$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21470,26 +29159,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancegroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21516,7 +29218,7 @@ export namespace compute_alpha { /** * compute.instanceGroups.get - * @desc Returns the specified instance group. Get a list of available + * @desc Returns the specified instance group. Gets a list of available * instance groups by making a list() request. * @alias compute.instanceGroups.get * @memberOf! () @@ -21529,24 +29231,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instancegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21587,26 +29300,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instancegroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancegroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21649,26 +29375,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Instancegroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instancegroups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21712,29 +29450,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listInstances(params?: any, options?: MethodOptions): + listInstances( + params?: Params$Resource$Instancegroups$Listinstances, + options?: MethodOptions): AxiosPromise; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Listinstances, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Listinstances, + callback: BodyResponseCallback): + void; + listInstances(callback: + BodyResponseCallback): + void; + listInstances( + paramsOrCallback?: Params$Resource$Instancegroups$Listinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Listinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Listinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21780,26 +29534,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeInstances(params?: any, options?: MethodOptions): - AxiosPromise; removeInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Removeinstances, + options?: MethodOptions): AxiosPromise; + removeInstances( + params: Params$Resource$Instancegroups$Removeinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeInstances( + params: Params$Resource$Instancegroups$Removeinstances, + callback: BodyResponseCallback): void; + removeInstances(callback: BodyResponseCallback): void; removeInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Removeinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Removeinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Removeinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21840,26 +29607,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNamedPorts(params?: any, options?: MethodOptions): - AxiosPromise; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Setnamedports, + options?: MethodOptions): AxiosPromise; + setNamedPorts( + params: Params$Resource$Instancegroups$Setnamedports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Setnamedports, + callback: BodyResponseCallback): void; + setNamedPorts(callback: BodyResponseCallback): void; + setNamedPorts( + paramsOrCallback?: Params$Resource$Instancegroups$Setnamedports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Setnamedports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Setnamedports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21899,28 +29679,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instancegroups$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instancegroups$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21945,6 +29738,402 @@ export namespace compute_alpha { } } + export interface Params$Resource$Instancegroups$Addinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where you are adding instances. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsAddInstancesRequest; + } + export interface Params$Resource$Instancegroups$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancegroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group to delete. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroup; + } + export interface Params$Resource$Instancegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Listinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The name of the instance group from which you want to generate a list of + * included instances. + */ + instanceGroup?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsListInstancesRequest; + } + export interface Params$Resource$Instancegroups$Removeinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where the specified instances will be + * removed. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsRemoveInstancesRequest; + } + export interface Params$Resource$Instancegroups$Setnamedports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where the named ports are updated. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsSetNamedPortsRequest; + } + export interface Params$Resource$Instancegroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Instances { root: Compute; constructor(root: Compute) { @@ -21974,26 +30163,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; addAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Addaccessconfig, + options?: MethodOptions): AxiosPromise; + addAccessConfig( + params: Params$Resource$Instances$Addaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Addaccessconfig, + callback: BodyResponseCallback): void; + addAccessConfig(callback: BodyResponseCallback): void; + addAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Addaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Addaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Addaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22018,6 +30220,81 @@ export namespace compute_alpha { } + /** + * compute.instances.addResourcePolicies + * @desc Adds existing resource policies to an instance. You can only add + * one policy right now which will be applied to this instance for + * scheduling live migrations. + * @alias compute.instances.addResourcePolicies + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance The instance name for this request. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().InstancesAddResourcePoliciesRequest} 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 + */ + addResourcePolicies( + params?: Params$Resource$Instances$Addresourcepolicies, + options?: MethodOptions): AxiosPromise; + addResourcePolicies( + params: Params$Resource$Instances$Addresourcepolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addResourcePolicies( + params: Params$Resource$Instances$Addresourcepolicies, + callback: BodyResponseCallback): void; + addResourcePolicies(callback: BodyResponseCallback): void; + addResourcePolicies( + paramsOrCallback?: Params$Resource$Instances$Addresourcepolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Addresourcepolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Addresourcepolicies; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * compute.instances.aggregatedList * @desc Retrieves aggregated list of instances. @@ -22034,28 +30311,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Instances$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Instances$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Instances$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22099,26 +30389,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - attachDisk(params?: any, options?: MethodOptions): - AxiosPromise; attachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Attachdisk, + options?: MethodOptions): AxiosPromise; + attachDisk( + params: Params$Resource$Instances$Attachdisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + attachDisk( + params: Params$Resource$Instances$Attachdisk, + callback: BodyResponseCallback): void; + attachDisk(callback: BodyResponseCallback): void; attachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Attachdisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Attachdisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Attachdisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22159,26 +30462,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Instances$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22220,26 +30534,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; deleteAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Deleteaccessconfig, + options?: MethodOptions): AxiosPromise; deleteAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Deleteaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteAccessConfig( + params: Params$Resource$Instances$Deleteaccessconfig, + callback: BodyResponseCallback): void; + deleteAccessConfig(callback: BodyResponseCallback): void; + deleteAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Deleteaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Deleteaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Deleteaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22281,26 +30608,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - detachDisk(params?: any, options?: MethodOptions): - AxiosPromise; detachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Detachdisk, + options?: MethodOptions): AxiosPromise; + detachDisk( + params: Params$Resource$Instances$Detachdisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; detachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Detachdisk, + callback: BodyResponseCallback): void; + detachDisk(callback: BodyResponseCallback): void; + detachDisk( + paramsOrCallback?: Params$Resource$Instances$Detachdisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Detachdisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Detachdisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22327,7 +30667,7 @@ export namespace compute_alpha { /** * compute.instances.get - * @desc Returns the specified Instance resource. Get a list of available + * @desc Returns the specified Instance resource. Gets a list of available * instances by making a list() request. * @alias compute.instances.get * @memberOf! () @@ -22340,23 +30680,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22396,26 +30746,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getGuestAttributes(params?: any, options?: MethodOptions): - AxiosPromise; getGuestAttributes( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Getguestattributes, + options?: MethodOptions): AxiosPromise; + getGuestAttributes( + params: Params$Resource$Instances$Getguestattributes, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getGuestAttributes( + params: Params$Resource$Instances$Getguestattributes, + callback: BodyResponseCallback): void; + getGuestAttributes(callback: BodyResponseCallback): + void; getGuestAttributes( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Getguestattributes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Getguestattributes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Getguestattributes; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22455,26 +30819,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Instances$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Instances$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22515,26 +30891,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getSerialPortOutput(params?: any, options?: MethodOptions): - AxiosPromise; getSerialPortOutput( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Getserialportoutput, + options?: MethodOptions): AxiosPromise; + getSerialPortOutput( + params: Params$Resource$Instances$Getserialportoutput, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getSerialPortOutput( + params: Params$Resource$Instances$Getserialportoutput, + callback: BodyResponseCallback): void; getSerialPortOutput( - params?: any, - options?: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getSerialPortOutput( + paramsOrCallback?: Params$Resource$Instances$Getserialportoutput| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Getserialportoutput; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Getserialportoutput; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22576,26 +30966,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Instances$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22637,26 +31038,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Instances$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22699,28 +31111,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listReferrers(params?: any, options?: MethodOptions): - AxiosPromise; listReferrers( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Listreferrers, + options?: MethodOptions): AxiosPromise; + listReferrers( + params: Params$Resource$Instances$Listreferrers, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; listReferrers( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Listreferrers, + callback: BodyResponseCallback): void; + listReferrers(callback: BodyResponseCallback): + void; + listReferrers( + paramsOrCallback?: Params$Resource$Instances$Listreferrers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Listreferrers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Listreferrers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22745,6 +31170,80 @@ export namespace compute_alpha { } + /** + * compute.instances.removeResourcePolicies + * @desc Removes resource policies from an instance. + * @alias compute.instances.removeResourcePolicies + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance The instance name for this request. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().InstancesRemoveResourcePoliciesRequest} 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 + */ + removeResourcePolicies( + params?: Params$Resource$Instances$Removeresourcepolicies, + options?: MethodOptions): AxiosPromise; + removeResourcePolicies( + params: Params$Resource$Instances$Removeresourcepolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeResourcePolicies( + params: Params$Resource$Instances$Removeresourcepolicies, + callback: BodyResponseCallback): void; + removeResourcePolicies(callback: BodyResponseCallback): + void; + removeResourcePolicies( + paramsOrCallback?: Params$Resource$Instances$Removeresourcepolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Removeresourcepolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Removeresourcepolicies; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + /** * compute.instances.reset * @desc Performs a reset on the instance. For more information, see @@ -22761,26 +31260,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): + reset(params?: Params$Resource$Instances$Reset, options?: MethodOptions): AxiosPromise; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; + reset( + paramsOrCallback?: Params$Resource$Instances$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22822,26 +31332,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resume(params?: any, options?: MethodOptions): + resume(params?: Params$Resource$Instances$Resume, options?: MethodOptions): AxiosPromise; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Resume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resume( + params: Params$Resource$Instances$Resume, + callback: BodyResponseCallback): void; + resume(callback: BodyResponseCallback): void; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Resume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Resume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Resume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22882,26 +31403,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDeletionProtection(params?: any, options?: MethodOptions): - AxiosPromise; setDeletionProtection( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setdeletionprotection, + options?: MethodOptions): AxiosPromise; + setDeletionProtection( + params: Params$Resource$Instances$Setdeletionprotection, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setDeletionProtection( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setdeletionprotection, + callback: BodyResponseCallback): void; + setDeletionProtection(callback: BodyResponseCallback): + void; + setDeletionProtection( + paramsOrCallback?: Params$Resource$Instances$Setdeletionprotection| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setdeletionprotection; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setdeletionprotection; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22943,26 +31478,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDiskAutoDelete(params?: any, options?: MethodOptions): - AxiosPromise; setDiskAutoDelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setdiskautodelete, + options?: MethodOptions): AxiosPromise; + setDiskAutoDelete( + params: Params$Resource$Instances$Setdiskautodelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setDiskAutoDelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setdiskautodelete, + callback: BodyResponseCallback): void; + setDiskAutoDelete(callback: BodyResponseCallback): void; + setDiskAutoDelete( + paramsOrCallback?: Params$Resource$Instances$Setdiskautodelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setdiskautodelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setdiskautodelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23004,26 +31552,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Instances$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Instances$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23065,26 +31625,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setlabels, + options?: MethodOptions): AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Instances$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Instances$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23126,26 +31699,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMachineResources(params?: any, options?: MethodOptions): - AxiosPromise; setMachineResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmachineresources, + options?: MethodOptions): AxiosPromise; + setMachineResources( + params: Params$Resource$Instances$Setmachineresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMachineResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setmachineresources, + callback: BodyResponseCallback): void; + setMachineResources(callback: BodyResponseCallback): void; + setMachineResources( + paramsOrCallback?: Params$Resource$Instances$Setmachineresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setmachineresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmachineresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23187,26 +31773,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMachineType(params?: any, options?: MethodOptions): - AxiosPromise; setMachineType( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmachinetype, + options?: MethodOptions): AxiosPromise; + setMachineType( + params: Params$Resource$Instances$Setmachinetype, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMachineType( + params: Params$Resource$Instances$Setmachinetype, + callback: BodyResponseCallback): void; + setMachineType(callback: BodyResponseCallback): void; setMachineType( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setmachinetype| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setmachinetype; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmachinetype; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23248,26 +31847,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMetadata(params?: any, options?: MethodOptions): - AxiosPromise; setMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmetadata, + options?: MethodOptions): AxiosPromise; + setMetadata( + params: Params$Resource$Instances$Setmetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setmetadata, + callback: BodyResponseCallback): void; + setMetadata(callback: BodyResponseCallback): void; + setMetadata( + paramsOrCallback?: Params$Resource$Instances$Setmetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setmetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23310,26 +31922,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMinCpuPlatform(params?: any, options?: MethodOptions): - AxiosPromise; setMinCpuPlatform( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmincpuplatform, + options?: MethodOptions): AxiosPromise; setMinCpuPlatform( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setmincpuplatform, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMinCpuPlatform( + params: Params$Resource$Instances$Setmincpuplatform, + callback: BodyResponseCallback): void; + setMinCpuPlatform(callback: BodyResponseCallback): void; + setMinCpuPlatform( + paramsOrCallback?: Params$Resource$Instances$Setmincpuplatform| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setmincpuplatform; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmincpuplatform; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23370,26 +31995,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setScheduling(params?: any, options?: MethodOptions): - AxiosPromise; setScheduling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setscheduling, + options?: MethodOptions): AxiosPromise; + setScheduling( + params: Params$Resource$Instances$Setscheduling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setScheduling( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setscheduling, + callback: BodyResponseCallback): void; + setScheduling(callback: BodyResponseCallback): void; + setScheduling( + paramsOrCallback?: Params$Resource$Instances$Setscheduling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setscheduling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setscheduling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23431,26 +32069,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setServiceAccount(params?: any, options?: MethodOptions): - AxiosPromise; setServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setserviceaccount, + options?: MethodOptions): AxiosPromise; + setServiceAccount( + params: Params$Resource$Instances$Setserviceaccount, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setServiceAccount( + params: Params$Resource$Instances$Setserviceaccount, + callback: BodyResponseCallback): void; + setServiceAccount(callback: BodyResponseCallback): void; setServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setserviceaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setserviceaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setserviceaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23493,26 +32144,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setShieldedVmIntegrityPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setShieldedVmIntegrityPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setshieldedvmintegritypolicy, + options?: MethodOptions): AxiosPromise; + setShieldedVmIntegrityPolicy( + params: Params$Resource$Instances$Setshieldedvmintegritypolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setShieldedVmIntegrityPolicy( + params: Params$Resource$Instances$Setshieldedvmintegritypolicy, + callback: BodyResponseCallback): void; + setShieldedVmIntegrityPolicy( + callback: BodyResponseCallback): void; setShieldedVmIntegrityPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instances$Setshieldedvmintegritypolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setshieldedvmintegritypolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setshieldedvmintegritypolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23554,26 +32220,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTags(params?: any, options?: MethodOptions): - AxiosPromise; setTags( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Settags, + options?: MethodOptions): AxiosPromise; + setTags( + params: Params$Resource$Instances$Settags, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setTags( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Settags, + callback: BodyResponseCallback): void; + setTags(callback: BodyResponseCallback): void; + setTags( + paramsOrCallback?: Params$Resource$Instances$Settags| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Settags; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Settags; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23612,26 +32291,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - simulateMaintenanceEvent(params?: any, options?: MethodOptions): - AxiosPromise; simulateMaintenanceEvent( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Simulatemaintenanceevent, + options?: MethodOptions): AxiosPromise; simulateMaintenanceEvent( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Simulatemaintenanceevent, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + simulateMaintenanceEvent( + params: Params$Resource$Instances$Simulatemaintenanceevent, + callback: BodyResponseCallback): void; + simulateMaintenanceEvent(callback: BodyResponseCallback): + void; + simulateMaintenanceEvent( + paramsOrCallback?: Params$Resource$Instances$Simulatemaintenanceevent| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Simulatemaintenanceevent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Simulatemaintenanceevent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23658,8 +32351,8 @@ export namespace compute_alpha { /** * compute.instances.start - * @desc Starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. + * @desc Starts an instance that was stopped using the instances().stop + * method. For more information, see Restart an instance. * @alias compute.instances.start * @memberOf! () * @@ -23672,26 +32365,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - start(params?: any, options?: MethodOptions): + start(params?: Params$Resource$Instances$Start, options?: MethodOptions): AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + start( + params: Params$Resource$Instances$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23718,8 +32422,8 @@ export namespace compute_alpha { /** * compute.instances.startWithEncryptionKey - * @desc Starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. + * @desc Starts an instance that was stopped using the instances().stop + * method. For more information, see Restart an instance. * @alias compute.instances.startWithEncryptionKey * @memberOf! () * @@ -23733,26 +32437,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startWithEncryptionKey(params?: any, options?: MethodOptions): - AxiosPromise; startWithEncryptionKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Startwithencryptionkey, + options?: MethodOptions): AxiosPromise; + startWithEncryptionKey( + params: Params$Resource$Instances$Startwithencryptionkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startWithEncryptionKey( + params: Params$Resource$Instances$Startwithencryptionkey, + callback: BodyResponseCallback): void; + startWithEncryptionKey(callback: BodyResponseCallback): + void; startWithEncryptionKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Startwithencryptionkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Startwithencryptionkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Startwithencryptionkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23798,25 +32516,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Instances$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Instances$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23862,26 +32592,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - suspend(params?: any, options?: MethodOptions): - AxiosPromise; suspend( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Suspend, + options?: MethodOptions): AxiosPromise; + suspend( + params: Params$Resource$Instances$Suspend, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; suspend( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Suspend, + callback: BodyResponseCallback): void; + suspend(callback: BodyResponseCallback): void; + suspend( + paramsOrCallback?: Params$Resource$Instances$Suspend| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Suspend; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Suspend; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23921,28 +32664,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instances$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instances$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23987,26 +32743,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; updateAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Updateaccessconfig, + options?: MethodOptions): AxiosPromise; + updateAccessConfig( + params: Params$Resource$Instances$Updateaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateAccessConfig( + params: Params$Resource$Instances$Updateaccessconfig, + callback: BodyResponseCallback): void; + updateAccessConfig(callback: BodyResponseCallback): void; updateAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Updateaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updateaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updateaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24049,113 +32818,3437 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateNetworkInterface(params?: any, options?: MethodOptions): - AxiosPromise; updateNetworkInterface( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Updatenetworkinterface, + options?: MethodOptions): AxiosPromise; + updateNetworkInterface( + params: Params$Resource$Instances$Updatenetworkinterface, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateNetworkInterface( + params: Params$Resource$Instances$Updatenetworkinterface, + callback: BodyResponseCallback): void; + updateNetworkInterface(callback: BodyResponseCallback): + void; updateNetworkInterface( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Updatenetworkinterface| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updatenetworkinterface; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updatenetworkinterface; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instances.updateShieldedVmConfig + * @desc Updates the Shielded VM config for an instance. This method + * supports PATCH semantics and uses the JSON merge patch format and + * processing rules. + * @alias compute.instances.updateShieldedVmConfig + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance Name of the instance scoping this request. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().ShieldedVmConfig} 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 + */ + updateShieldedVmConfig( + params?: Params$Resource$Instances$Updateshieldedvmconfig, + options?: MethodOptions): AxiosPromise; + updateShieldedVmConfig( + params: Params$Resource$Instances$Updateshieldedvmconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateShieldedVmConfig( + params: Params$Resource$Instances$Updateshieldedvmconfig, + callback: BodyResponseCallback): void; + updateShieldedVmConfig(callback: BodyResponseCallback): + void; + updateShieldedVmConfig( + paramsOrCallback?: Params$Resource$Instances$Updateshieldedvmconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updateshieldedvmconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updateshieldedvmconfig; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Instances$Addaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface to add to this instance. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AccessConfig; + } + export interface Params$Resource$Instances$Addresourcepolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesAddResourcePoliciesRequest; + } + export interface Params$Resource$Instances$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instances$Attachdisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to force attach the disk even if it's currently attached to + * another instance. This is only available for regional disks. + */ + forceAttach?: boolean; + /** + * The instance name for this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AttachedDisk; + } + export interface Params$Resource$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to delete. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Deleteaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the access config to delete. + */ + accessConfig?: string; + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Detachdisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Disk device name to detach. + */ + deviceName?: string; + /** + * Instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to return. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Getguestattributes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Specifies the key for the guest attributes entry. + */ + variableKey?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Getserialportoutput { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Specifies which COM or serial port to retrieve data from. + */ + port?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Returns output starting from a specific byte position. Use this to page + * through output when the output is too large to return in a single + * request. For the initial request, leave this field unspecified. For + * subsequent calls, this field should be set to the next value returned in + * the previous call. + */ + start?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Specifies instance template to create the instance. This field is + * optional. It can be a full or partial URL. For example, the following are + * all valid URLs to an instance template: - + * https://www.googleapis.com/compute/v1/projects/project/global/global/instanceTemplates/instanceTemplate + * - projects/project/global/global/instanceTemplates/instanceTemplate - + * global/instancesTemplates/instanceTemplate + */ + sourceInstanceTemplate?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Instance; + } + export interface Params$Resource$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Listreferrers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * Name of the target instance scoping this request, or '-' if the request + * should span over all instances in the container. + */ + instance?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Removeresourcepolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesRemoveResourcePoliciesRequest; + } + export interface Params$Resource$Instances$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Resume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to resume. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesResumeRequest; + } + export interface Params$Resource$Instances$Setdeletionprotection { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the resource should be protected against deletion. + */ + deletionProtection?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setdiskautodelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to auto-delete the disk when the instance is deleted. + */ + autoDelete?: boolean; + /** + * The device name of the disk to modify. + */ + deviceName?: string; + /** + * The instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Instances$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetLabelsRequest; + } + export interface Params$Resource$Instances$Setmachineresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMachineResourcesRequest; + } + export interface Params$Resource$Instances$Setmachinetype { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMachineTypeRequest; + } + export interface Params$Resource$Instances$Setmetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Metadata; + } + export interface Params$Resource$Instances$Setmincpuplatform { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMinCpuPlatformRequest; + } + export interface Params$Resource$Instances$Setscheduling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Scheduling; + } + export interface Params$Resource$Instances$Setserviceaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetServiceAccountRequest; + } + export interface Params$Resource$Instances$Setshieldedvmintegritypolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ShieldedVmIntegrityPolicy; + } + export interface Params$Resource$Instances$Settags { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Tags; + } + export interface Params$Resource$Instances$Simulatemaintenanceevent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Startwithencryptionkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesStartWithEncryptionKeyRequest; + } + export interface Params$Resource$Instances$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If true, discard the contents of any attached localSSD partitions. + * Default value is false (== preserve localSSD data). + */ + discardLocalSsd?: boolean; + /** + * Name of the instance resource to stop. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Suspend { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If true, discard the contents of any attached localSSD partitions. + * Default value is false (== preserve localSSD data). + */ + discardLocalSsd?: boolean; + /** + * Name of the instance resource to suspend. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Instances$Updateaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface where the access config is attached. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AccessConfig; + } + export interface Params$Resource$Instances$Updatenetworkinterface { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface to update. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkInterface; + } + export interface Params$Resource$Instances$Updateshieldedvmconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ShieldedVmConfig; + } + + + export class Resource$Instancetemplates { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.instanceTemplates.delete + * @desc Deletes the specified instance template. Deleting an instance + * template is permanent and cannot be undone. It's not possible to delete + * templates which are in use by an instance group. + * @alias compute.instanceTemplates.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceTemplate The name of the instance template to delete. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Instancetemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancetemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instancetemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancetemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instanceTemplates.get + * @desc Returns the specified instance template. Gets a list of available + * instance templates by making a list() request. + * @alias compute.instanceTemplates.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceTemplate The name of the instance template. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Instancetemplates$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Instancetemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancetemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancetemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instanceTemplates.insert + * @desc Creates an instance template in the specified project using the + * data that is included in the request. If you are creating a new template + * to update an existing instance group, your new instance template must use + * the same network or, if applicable, the same subnetwork as the original + * template. + * @alias compute.instanceTemplates.insert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InstanceTemplate} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + insert( + params?: Params$Resource$Instancetemplates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancetemplates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instancetemplates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancetemplates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Insert; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instanceTemplates.list + * @desc Retrieves a list of instance templates that are contained within + * the specified project and zone. + * @alias compute.instanceTemplates.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Instancetemplates$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancetemplates$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancetemplates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Instancetemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instanceTemplates.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.instanceTemplates.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$Instancetemplates$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instancetemplates$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instancetemplates$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Instancetemplates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instancetemplates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Instancetemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance template to delete. + */ + instanceTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Instancetemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance template. + */ + instanceTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancetemplates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceTemplate; + } + export interface Params$Resource$Instancetemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancetemplates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Interconnectattachments { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.interconnectAttachments.aggregatedList + * @desc Retrieves an aggregated list of interconnect attachments. + * @alias compute.interconnectAttachments.aggregatedList + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + aggregatedList( + params?: Params$Resource$Interconnectattachments$Aggregatedlist, + options?: MethodOptions): + AxiosPromise; + aggregatedList( + params: Params$Resource$Interconnectattachments$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Interconnectattachments$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: + BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: + Params$Resource$Interconnectattachments$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Aggregatedlist; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/aggregated/interconnectAttachments') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + + + /** + * compute.interconnectAttachments.delete + * @desc Deletes the specified interconnect attachment. + * @alias compute.interconnectAttachments.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.interconnectAttachment Name of the interconnect attachment to delete. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Interconnectattachments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Interconnectattachments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Interconnectattachments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Interconnectattachments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.get + * @desc Returns the specified interconnect attachment. + * @alias compute.interconnectAttachments.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.interconnectAttachment Name of the interconnect attachment to return. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Interconnectattachments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Interconnectattachments$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnectattachments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnectattachments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.interconnectAttachments.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getIamPolicy( + params?: Params$Resource$Interconnectattachments$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Interconnectattachments$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Interconnectattachments$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Interconnectattachments$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.insert + * @desc Creates an InterconnectAttachment in the specified project using + * the data included in the request. + * @alias compute.interconnectAttachments.insert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InterconnectAttachment} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + insert( + params?: Params$Resource$Interconnectattachments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Interconnectattachments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Interconnectattachments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Interconnectattachments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Insert; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.list + * @desc Retrieves the list of interconnect attachments contained within the + * specified region. + * @alias compute.interconnectAttachments.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Interconnectattachments$List, + options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Interconnectattachments$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Interconnectattachments$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Interconnectattachments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.patch + * @desc Updates the specified interconnect attachment with the data + * included in the request. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * @alias compute.interconnectAttachments.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.interconnectAttachment Name of the interconnect attachment to patch. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InterconnectAttachment} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Interconnectattachments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Interconnectattachments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Interconnectattachments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Interconnectattachments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.interconnectAttachments.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().Policy} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setIamPolicy( + params?: Params$Resource$Interconnectattachments$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Interconnectattachments$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Interconnectattachments$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Interconnectattachments$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.setLabels + * @desc Sets the labels on an InterconnectAttachment. To learn more about + * labels, read the Labeling Resources documentation. + * @alias compute.interconnectAttachments.setLabels + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region The region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.resource_ Name of the resource for this request. + * @param {().RegionSetLabelsRequest} 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 + */ + setLabels( + params?: Params$Resource$Interconnectattachments$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Interconnectattachments$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Interconnectattachments$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Interconnectattachments$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Setlabels; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectAttachments.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.interconnectAttachments.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$Interconnectattachments$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Interconnectattachments$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Interconnectattachments$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Interconnectattachments$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Interconnectattachments$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Interconnectattachments$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectattachments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to delete. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Interconnectattachments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to return. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Interconnectattachments$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Interconnectattachments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InterconnectAttachment; + } + export interface Params$Resource$Interconnectattachments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Interconnectattachments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to patch. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InterconnectAttachment; + } + export interface Params$Resource$Interconnectattachments$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Interconnectattachments$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Interconnectattachments$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Interconnectlocations { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.interconnectLocations.get + * @desc Returns the details for the specified interconnect location. Gets a + * list of available interconnect locations by making a list() request. + * @alias compute.interconnectLocations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.interconnectLocation Name of the interconnect location to return. + * @param {string} params.project Project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Interconnectlocations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Interconnectlocations$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnectlocations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnectlocations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnectlocations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface') + '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.instances.updateShieldedVmConfig - * @desc Updates the Shielded VM config for an instance. This method - * supports PATCH semantics and uses the JSON merge patch format and - * processing rules. - * @alias compute.instances.updateShieldedVmConfig + * compute.interconnectLocations.list + * @desc Retrieves the list of interconnect locations available to the + * specified project. + * @alias compute.interconnectLocations.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instance Name of the instance scoping this request. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {().ShieldedVmConfig} 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 */ - updateShieldedVmConfig(params?: any, options?: MethodOptions): - AxiosPromise; - updateShieldedVmConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - updateShieldedVmConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Interconnectlocations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Interconnectlocations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Interconnectlocations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Interconnectlocations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectlocations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig') + '/compute/alpha/projects/{project}/global/interconnectLocations') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnectLocations.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.interconnectLocations.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$Interconnectlocations$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Interconnectlocations$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Interconnectlocations$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Interconnectlocations$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectlocations$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); } } } - export class Resource$Instancetemplates { + export interface Params$Resource$Interconnectlocations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect location to return. + */ + interconnectLocation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectlocations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectlocations$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Interconnects { root: Compute; constructor(root: Compute) { this.root = root; @@ -24168,55 +36261,66 @@ export namespace compute_alpha { /** - * compute.instanceTemplates.delete - * @desc Deletes the specified instance template. Deleting an instance - * template is permanent and cannot be undone. It's not possible to delete - * templates which are in use by an instance group. - * @alias compute.instanceTemplates.delete + * compute.interconnects.delete + * @desc Deletes the specified interconnect. + * @alias compute.interconnects.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceTemplate The name of the instance template to delete. + * @param {string} params.interconnect Name of the interconnect to delete. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Interconnects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Interconnects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}') + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.getRoot() }; if (callback) { @@ -24228,107 +36332,197 @@ export namespace compute_alpha { /** - * compute.instanceTemplates.get - * @desc Returns the specified instance template. Gets a list of available - * instance templates by making a list() request. - * @alias compute.instanceTemplates.get + * compute.interconnects.get + * @desc Returns the specified interconnect. Gets a list of available + * interconnects by making a list() request. + * @alias compute.interconnects.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceTemplate The name of the instance template. + * @param {string} params.interconnect Name of the interconnect to return. * @param {string} params.project Project ID for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Interconnects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Interconnects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}') + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.instanceTemplates.insert - * @desc Creates an instance template in the specified project using the - * data that is included in the request. If you are creating a new template - * to update an existing instance group, your new instance template must use - * the same network or, if applicable, the same subnetwork as the original - * template. - * @alias compute.instanceTemplates.insert + * compute.interconnects.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.interconnects.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getIamPolicy( + params?: Params$Resource$Interconnects$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Interconnects$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Interconnects$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Interconnects$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnects$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnects.insert + * @desc Creates a Interconnect in the specified project using the data + * included in the request. + * @alias compute.interconnects.insert * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceTemplate} params.resource Request body data + * @param {().Interconnect} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Interconnects$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnects$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Interconnects$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), @@ -24346,10 +36540,10 @@ export namespace compute_alpha { /** - * compute.instanceTemplates.list - * @desc Retrieves a list of instance templates that are contained within - * the specified project and zone. - * @alias compute.instanceTemplates.list + * compute.interconnects.list + * @desc Retrieves the list of interconnect available to the specified + * project. + * @alias compute.interconnects.list * @memberOf! () * * @param {object} params Parameters for request @@ -24362,95 +36556,189 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Interconnects$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Interconnects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Interconnects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Interconnects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.interconnects.patch + * @desc Updates the specified interconnect with the data included in the + * request. This method supports PATCH semantics and uses the JSON merge + * patch format and processing rules. + * @alias compute.interconnects.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.interconnect Name of the interconnect to update. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().Interconnect} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Interconnects$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Interconnects$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Interconnects$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Interconnects$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates') + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'PATCH' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.instanceTemplates.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.instanceTemplates.testIamPermissions + * compute.interconnects.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.interconnects.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().Policy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setIamPolicy( + params?: Params$Resource$Interconnects$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Interconnects$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Interconnects$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Interconnects$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnects$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -24461,258 +36749,527 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Interconnectattachments { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.interconnectAttachments.aggregatedList - * @desc Retrieves an aggregated list of interconnect attachments. - * @alias compute.interconnectAttachments.aggregatedList + * compute.interconnects.setLabels + * @desc Sets the labels on an Interconnect. To learn more about labels, + * read the Labeling Resources documentation. + * @alias compute.interconnects.setLabels * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().GlobalSetLabelsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setLabels( + params?: Params$Resource$Interconnects$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Interconnects$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Interconnects$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Interconnects$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/interconnectAttachments') + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest( - parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectAttachments.delete - * @desc Deletes the specified interconnect attachment. - * @alias compute.interconnectAttachments.delete + * compute.interconnects.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.interconnects.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnectAttachment Name of the interconnect attachment to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Interconnects$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Interconnects$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Interconnects$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Interconnects$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnects$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}') + '/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Interconnects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.interconnectAttachments.get - * @desc Returns the specified interconnect attachment. - * @alias compute.interconnectAttachments.get + * Name of the interconnect to delete. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Interconnects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to return. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnects$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Interconnects$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Interconnect; + } + export interface Params$Resource$Interconnects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnects$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to update. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Interconnect; + } + export interface Params$Resource$Interconnects$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Interconnects$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Interconnects$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Licensecodes { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.licenseCodes.get + * @desc Return a specified license code. License codes are mirrored across + * all projects that have permissions to read the License Code. + * @alias compute.licenseCodes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnectAttachment Name of the interconnect attachment to return. + * @param {string} params.licenseCode Number corresponding to the License code resource to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Licensecodes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Licensecodes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licensecodes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licensecodes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Licensecodes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}') + '/compute/alpha/projects/{project}/global/licenseCodes/{licenseCode}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectAttachments.getIamPolicy + * compute.licenseCodes.getIamPolicy * @desc Gets the access control policy for a resource. May be empty if no * such policy or resource exists. - * @alias compute.interconnectAttachments.getIamPolicy + * @alias compute.licenseCodes.getIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Licensecodes$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Licensecodes$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Licensecodes$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Licensecodes$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Licensecodes$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy') + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { @@ -24724,183 +37281,290 @@ export namespace compute_alpha { /** - * compute.interconnectAttachments.insert - * @desc Creates an InterconnectAttachment in the specified project using - * the data included in the request. - * @alias compute.interconnectAttachments.insert + * compute.licenseCodes.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.licenseCodes.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data + * @param {string} params.resource_ Name of the resource for this request. + * @param {().Policy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setIamPolicy( + params?: Params$Resource$Licensecodes$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Licensecodes$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Licensecodes$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Licensecodes$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Licensecodes$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments') + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectAttachments.list - * @desc Retrieves the list of interconnect attachments contained within the - * specified region. - * @alias compute.interconnectAttachments.list + * compute.licenseCodes.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.licenseCodes.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Licensecodes$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Licensecodes$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Licensecodes$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Licensecodes$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Licensecodes$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments') + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Licensecodes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.interconnectAttachments.patch - * @desc Updates the specified interconnect attachment with the data - * included in the request. This method supports PATCH semantics and uses - * the JSON merge patch format and processing rules. - * @alias compute.interconnectAttachments.patch + * Number corresponding to the License code resource to return. + */ + licenseCode?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licensecodes$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Licensecodes$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Licensecodes$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Licenses { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.licenses.delete + * @desc Deletes the specified license. + * @alias compute.licenses.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnectAttachment Name of the interconnect attachment to patch. + * @param {string} params.license Name of the license resource to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InterconnectAttachment} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Licenses$Delete, options?: MethodOptions): AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params: Params$Resource$Licenses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Licenses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Licenses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}') + '/compute/alpha/projects/{project}/global/licenses/{license}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'interconnectAttachment'], - pathParams: ['interconnectAttachment', 'project', 'region'], + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], context: this.getRoot() }; if (callback) { @@ -24912,324 +37576,358 @@ export namespace compute_alpha { /** - * compute.interconnectAttachments.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias compute.interconnectAttachments.setIamPolicy + * compute.licenses.get + * @desc Returns the specified License resource. + * @alias compute.licenses.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.license Name of the License resource to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().Policy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Licenses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Licenses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licenses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licenses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy') + '/compute/alpha/projects/{project}/global/licenses/{license}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), - params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectAttachments.setLabels - * @desc Sets the labels on an InterconnectAttachment. To learn more about - * labels, read the Labeling Resources documentation. - * @alias compute.interconnectAttachments.setLabels + * compute.licenses.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.licenses.getIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The region for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.resource_ Name of the resource for this request. - * @param {().RegionSetLabelsRequest} 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 */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; - setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getIamPolicy( + params?: Params$Resource$Licenses$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Licenses$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Licenses$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Licenses$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Licenses$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels') + '/compute/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectAttachments.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.interconnectAttachments.testIamPermissions + * compute.licenses.insert + * @desc Create a License resource in the specified project. + * @alias compute.licenses.insert * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().License} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert(params?: Params$Resource$Licenses$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Licenses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Licenses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Licenses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Interconnectlocations { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.interconnectLocations.get - * @desc Returns the details for the specified interconnect location. Get a - * list of available interconnect locations by making a list() request. - * @alias compute.interconnectLocations.get + * compute.licenses.list + * @desc Retrieves the list of licenses available in the specified project. + * This method does not get any licenses that belong to other projects, + * including licenses attached to publicly-available images, like Debian 8. + * If you want to get a list of publicly-available licenses, use this method + * to make a request to the respective image project, such as debian-cloud + * or windows-cloud. + * @alias compute.licenses.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnectLocation Name of the interconnect location to return. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Licenses$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Licenses$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Licenses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Licenses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'interconnectLocation'], - pathParams: ['interconnectLocation', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectLocations.list - * @desc Retrieves the list of interconnect locations available to the - * specified project. - * @alias compute.interconnectLocations.list + * compute.licenses.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.licenses.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().Policy} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setIamPolicy( + params?: Params$Resource$Licenses$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Licenses$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Licenses$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Licenses$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Licenses$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations') + '/compute/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnectLocations.testIamPermissions + * compute.licenses.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.interconnectLocations.testIamPermissions + * @alias compute.licenses.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -25240,35 +37938,48 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Licenses$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Licenses$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Licenses$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Licenses$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Licenses$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -25286,7 +37997,187 @@ export namespace compute_alpha { } } - export class Resource$Interconnects { + export interface Params$Resource$Licenses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the license resource to delete. + */ + license?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Licenses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the License resource to return. + */ + license?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licenses$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Licenses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$License; + } + export interface Params$Resource$Licenses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licenses$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Licenses$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Machinetypes { root: Compute; constructor(root: Compute) { this.root = root; @@ -25299,279 +38190,435 @@ export namespace compute_alpha { /** - * compute.interconnects.delete - * @desc Deletes the specified interconnect. - * @alias compute.interconnects.delete + * compute.machineTypes.aggregatedList + * @desc Retrieves an aggregated list of machine types. + * @alias compute.machineTypes.aggregatedList * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnect Name of the interconnect to delete. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + aggregatedList( + params?: Params$Resource$Machinetypes$Aggregatedlist, + options?: MethodOptions): + AxiosPromise; + aggregatedList( + params: Params$Resource$Machinetypes$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Machinetypes$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Machinetypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Machinetypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/machineTypes') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnects.get - * @desc Returns the specified interconnect. Get a list of available - * interconnects by making a list() request. - * @alias compute.interconnects.get + * compute.machineTypes.get + * @desc Returns the specified machine type. Gets a list of available + * machine types by making a list() request. + * @alias compute.machineTypes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnect Name of the interconnect to return. + * @param {string} params.machineType Name of the machine type to return. * @param {string} params.project Project ID for this request. + * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Machinetypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Machinetypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Machinetypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Machinetypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Machinetypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}') + '/compute/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnects.getIamPolicy - * @desc Gets the access control policy for a resource. May be empty if no - * such policy or resource exists. - * @alias compute.interconnects.getIamPolicy + * compute.machineTypes.list + * @desc Retrieves a list of machine types available to the specified + * project. + * @alias compute.machineTypes.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. + * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Machinetypes$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Machinetypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Machinetypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Machinetypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Machinetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy') + '/compute/alpha/projects/{project}/zones/{zone}/machineTypes') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Machinetypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.interconnects.insert - * @desc Creates a Interconnect in the specified project using the data - * included in the request. - * @alias compute.interconnects.insert + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Machinetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the machine type to return. + */ + machineType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Machinetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + + export class Resource$Networkendpointgroups { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.networkEndpointGroups.aggregatedList + * @desc Retrieves the list of network endpoint groups and sorts them by + * zone. + * @alias compute.networkEndpointGroups.aggregatedList * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + - '/compute/alpha/projects/{project}/global/interconnects') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - + aggregatedList( + params?: Params$Resource$Networkendpointgroups$Aggregatedlist, + options?: MethodOptions): + AxiosPromise; + aggregatedList( + params: Params$Resource$Networkendpointgroups$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Networkendpointgroups$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: + BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Networkendpointgroups$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * compute.interconnects.list - * @desc Retrieves the list of interconnect available to the specified - * project. - * @alias compute.interconnects.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. - * @param {string} params.project Project ID for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/aggregated/networkEndpointGroups') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -25581,64 +38628,82 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters); } } /** - * compute.interconnects.patch - * @desc Updates the specified interconnect with the data included in the - * request. This method supports PATCH semantics and uses the JSON merge - * patch format and processing rules. - * @alias compute.interconnects.patch + * compute.networkEndpointGroups.attachNetworkEndpoints + * @desc Attach a list of network endpoints to the specified network + * endpoint group. + * @alias compute.networkEndpointGroups.attachNetworkEndpoints * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.interconnect Name of the interconnect to update. + * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Interconnect} params.resource Request body data + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + attachNetworkEndpoints( + params?: Params$Resource$Networkendpointgroups$Attachnetworkendpoints, + options?: MethodOptions): AxiosPromise; + attachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Attachnetworkendpoints, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + attachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Attachnetworkendpoints, + callback: BodyResponseCallback): void; + attachNetworkEndpoints(callback: BodyResponseCallback): + void; + attachNetworkEndpoints( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Attachnetworkendpoints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Attachnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Networkendpointgroups$Attachnetworkendpoints; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{interconnect}') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'interconnect'], - pathParams: ['interconnect', 'project'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { @@ -25650,113 +38715,147 @@ export namespace compute_alpha { /** - * compute.interconnects.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias compute.interconnects.setIamPolicy + * compute.networkEndpointGroups.delete + * @desc Deletes the specified network endpoint group. The network endpoints + * in the NEG and the VM instances they belong to are not terminated when + * the NEG is deleted. Note that the NEG cannot be deleted if there are + * backend services referencing it. + * @alias compute.networkEndpointGroups.delete * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().Policy} params.resource Request body data + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + delete( + params?: Params$Resource$Networkendpointgroups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Networkendpointgroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Networkendpointgroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Networkendpointgroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.interconnects.setLabels - * @desc Sets the labels on an Interconnect. To learn more about labels, - * read the Labeling Resources documentation. - * @alias compute.interconnects.setLabels + * compute.networkEndpointGroups.detachNetworkEndpoints + * @desc Detach a list of network endpoints from the specified network + * endpoint group. + * @alias compute.networkEndpointGroups.detachNetworkEndpoints * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().GlobalSetLabelsRequest} params.resource Request body data + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; - setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + detachNetworkEndpoints( + params?: Params$Resource$Networkendpointgroups$Detachnetworkendpoints, + options?: MethodOptions): AxiosPromise; + detachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Detachnetworkendpoints, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + detachNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Detachnetworkendpoints, + callback: BodyResponseCallback): void; + detachNetworkEndpoints(callback: BodyResponseCallback): + void; + detachNetworkEndpoints( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Detachnetworkendpoints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Detachnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Networkendpointgroups$Detachnetworkendpoints; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { @@ -25768,300 +38867,376 @@ export namespace compute_alpha { /** - * compute.interconnects.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.interconnects.testIamPermissions + * compute.networkEndpointGroups.get + * @desc Returns the specified network endpoint group. Gets a list of + * available network endpoint groups by making a list() request. + * @alias compute.networkEndpointGroups.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Networkendpointgroups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Networkendpointgroups$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Networkendpointgroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Networkendpointgroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Networkendpointgroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Licensecodes { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.licenseCodes.get - * @desc Return a specified license code. License codes are mirrored across - * all projects that have permissions to read the License Code. - * @alias compute.licenseCodes.get + * compute.networkEndpointGroups.insert + * @desc Creates a network endpoint group in the specified project using the + * parameters that are included in the request. + * @alias compute.networkEndpointGroups.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.licenseCode Number corresponding to the License code resource to return. * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. + * @param {().NetworkEndpointGroup} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Networkendpointgroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Networkendpointgroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Networkendpointgroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Networkendpointgroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{licenseCode}') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'licenseCode'], - pathParams: ['licenseCode', 'project'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.licenseCodes.getIamPolicy - * @desc Gets the access control policy for a resource. May be empty if no - * such policy or resource exists. - * @alias compute.licenseCodes.getIamPolicy + * compute.networkEndpointGroups.list + * @desc Retrieves the list of network endpoint groups that are located in + * the specified project and zone. + * @alias compute.networkEndpointGroups.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Networkendpointgroups$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Networkendpointgroups$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Networkendpointgroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Networkendpointgroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.licenseCodes.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias compute.licenseCodes.setIamPolicy + * compute.networkEndpointGroups.listNetworkEndpoints + * @desc Lists the network endpoints in the specified network endpoint + * group. + * @alias compute.networkEndpointGroups.listNetworkEndpoints * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string} params.networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().Policy} params.resource Request body data + * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {().NetworkEndpointGroupsListEndpointsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + listNetworkEndpoints( + params?: Params$Resource$Networkendpointgroups$Listnetworkendpoints, + options?: MethodOptions): + AxiosPromise; + listNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Listnetworkendpoints, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): void; + listNetworkEndpoints( + params: Params$Resource$Networkendpointgroups$Listnetworkendpoints, + callback: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): void; + listNetworkEndpoints(callback: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): + void; + listNetworkEndpoints( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Listnetworkendpoints| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$NetworkEndpointGroupsListNetworkEndpoints>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Listnetworkendpoints; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Networkendpointgroups$Listnetworkendpoints; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest< + Schema$NetworkEndpointGroupsListNetworkEndpoints>(parameters); } } /** - * compute.licenseCodes.testIamPermissions + * compute.networkEndpointGroups.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.licenseCodes.testIamPermissions + * @alias compute.networkEndpointGroups.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. + * @param {string} params.zone The name of the zone for this request. * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Networkendpointgroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Networkendpointgroups$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Networkendpointgroups$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Networkendpointgroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Networkendpointgroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networkendpointgroups$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.getRoot() }; if (callback) { @@ -26072,7 +39247,376 @@ export namespace compute_alpha { } } - export class Resource$Licenses { + export interface Params$Resource$Networkendpointgroups$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networkendpointgroups$Attachnetworkendpoints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group where you are attaching network + * endpoints to. It should comply with RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkEndpointGroupsAttachEndpointsRequest; + } + export interface Params$Resource$Networkendpointgroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group to delete. It should comply with + * RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Networkendpointgroups$Detachnetworkendpoints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group where you are removing network + * endpoints. It should comply with RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkEndpointGroupsDetachEndpointsRequest; + } + export interface Params$Resource$Networkendpointgroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the network endpoint group. It should comply with RFC1035. + */ + networkEndpointGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Networkendpointgroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the network endpoint group. + * It should comply with RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkEndpointGroup; + } + export interface Params$Resource$Networkendpointgroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + } + export interface Params$Resource$Networkendpointgroups$Listnetworkendpoints { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * The name of the network endpoint group from which you want to generate a + * list of included network endpoints. It should comply with RFC1035. + */ + networkEndpointGroup?: string; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the network endpoint group is located. It + * should comply with RFC1035. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkEndpointGroupsListEndpointsRequest; + } + export interface Params$Resource$Networkendpointgroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Networks { root: Compute; constructor(root: Compute) { this.root = root; @@ -26085,53 +39629,67 @@ export namespace compute_alpha { /** - * compute.licenses.delete - * @desc Deletes the specified license. - * @alias compute.licenses.delete + * compute.networks.addPeering + * @desc Adds a peering to the specified network. + * @alias compute.networks.addPeering * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.license Name of the license resource to delete. + * @param {string} params.network Name of the network resource to add peering to. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().NetworksAddPeeringRequest} 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 */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + addPeering( + params?: Params$Resource$Networks$Addpeering, + options?: MethodOptions): AxiosPromise; + addPeering( + params: Params$Resource$Networks$Addpeering, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addPeering( + params: Params$Resource$Networks$Addpeering, + callback: BodyResponseCallback): void; + addPeering(callback: BodyResponseCallback): void; + addPeering( + paramsOrCallback?: Params$Resource$Networks$Addpeering| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Addpeering; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Addpeering; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{license}') + '/compute/alpha/projects/{project}/global/networks/{network}/addPeering') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { @@ -26143,157 +39701,191 @@ export namespace compute_alpha { /** - * compute.licenses.get - * @desc Returns the specified License resource. - * @alias compute.licenses.get + * compute.networks.delete + * @desc Deletes the specified network. + * @alias compute.networks.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.license Name of the License resource to return. + * @param {string} params.network Name of the network to delete. * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + delete(params?: Params$Resource$Networks$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Networks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Networks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Networks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{license}') + '/compute/alpha/projects/{project}/global/networks/{network}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'license'], - pathParams: ['license', 'project'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.licenses.getIamPolicy - * @desc Gets the access control policy for a resource. May be empty if no - * such policy or resource exists. - * @alias compute.licenses.getIamPolicy + * compute.networks.get + * @desc Returns the specified network. Gets a list of available networks by + * making a list() request. + * @alias compute.networks.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.network Name of the network to return. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Networks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Networks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Networks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Networks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy') + '/compute/alpha/projects/{project}/global/networks/{network}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.licenses.insert - * @desc Create a License resource in the specified project. - * @alias compute.licenses.insert + * compute.networks.insert + * @desc Creates a network in the specified project using the data included + * in the request. + * @alias compute.networks.insert * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().License} params.resource Request body data + * @param {().Network} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Networks$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Networks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses') + '/compute/alpha/projects/{project}/global/networks') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -26312,14 +39904,9 @@ export namespace compute_alpha { /** - * compute.licenses.list - * @desc Retrieves the list of licenses available in the specified project. - * This method does not get any licenses that belong to other projects, - * including licenses attached to publicly-available images, like Debian 8. - * If you want to get a list of publicly-available licenses, use this method - * to make a request to the respective image project, such as debian-cloud - * or windows-cloud. - * @alias compute.licenses.list + * compute.networks.list + * @desc Retrieves the list of networks available to the specified project. + * @alias compute.networks.list * @memberOf! () * * @param {object} params Parameters for request @@ -26332,34 +39919,43 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; + list(params?: Params$Resource$Networks$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Networks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Networks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Networks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses') + '/compute/alpha/projects/{project}/global/networks') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -26370,327 +39966,730 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.licenses.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias compute.licenses.setIamPolicy + * compute.networks.listIpOwners + * @desc Lists the internal IP owners in the specified network. + * @alias compute.networks.listIpOwners * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {string=} params.ipCidrRange (Optional) IP CIDR range filter, example: "10.128.10.0/30". + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string} params.network Name of the network to return. + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.ownerProjects (Optional) Project IDs filter, example: "project-1,project-2". + * @param {string=} params.ownerTypes (Optional) Owner types filter, example: "instance,forwardingRule". + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().Policy} params.resource Request body data + * @param {string=} params.subnetName (Optional) Subnetwork name filter. + * @param {string=} params.subnetRegion (Optional) Subnetwork region filter. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + listIpOwners( + params?: Params$Resource$Networks$Listipowners, + options?: MethodOptions): AxiosPromise; + listIpOwners( + params: Params$Resource$Networks$Listipowners, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listIpOwners( + params: Params$Resource$Networks$Listipowners, + callback: BodyResponseCallback): void; + listIpOwners(callback: BodyResponseCallback): void; + listIpOwners( + paramsOrCallback?: Params$Resource$Networks$Listipowners| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Listipowners; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Listipowners; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy') + '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.licenses.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.licenses.testIamPermissions + * compute.networks.patch + * @desc Patches the specified network with the data included in the + * request. Only the following fields can be modified: + * routingConfig.routingMode. + * @alias compute.networks.patch * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.network Name of the network to update. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().Network} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + patch(params?: Params$Resource$Networks$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Networks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Networks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Networks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/global/networks/{network}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'PATCH' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Machinetypes { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.machineTypes.aggregatedList - * @desc Retrieves an aggregated list of machine types. - * @alias compute.machineTypes.aggregatedList + * compute.networks.removePeering + * @desc Removes a peering from the specified network. + * @alias compute.networks.removePeering * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.network Name of the network resource to remove peering from. * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().NetworksRemovePeeringRequest} 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 */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + removePeering( + params?: Params$Resource$Networks$Removepeering, + options?: MethodOptions): AxiosPromise; + removePeering( + params: Params$Resource$Networks$Removepeering, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removePeering( + params: Params$Resource$Networks$Removepeering, + callback: BodyResponseCallback): void; + removePeering(callback: BodyResponseCallback): void; + removePeering( + paramsOrCallback?: Params$Resource$Networks$Removepeering| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Removepeering; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Removepeering; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/machineTypes') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: + (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/removePeering') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.machineTypes.get - * @desc Returns the specified machine type. Gets a list of available - * machine types by making a list() request. - * @alias compute.machineTypes.get + * compute.networks.switchToCustomMode + * @desc Switches the network mode from auto subnet mode to custom subnet + * mode. + * @alias compute.networks.switchToCustomMode * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.machineType Name of the machine type to return. + * @param {string} params.network Name of the network to be updated. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + switchToCustomMode( + params?: Params$Resource$Networks$Switchtocustommode, + options?: MethodOptions): AxiosPromise; + switchToCustomMode( + params: Params$Resource$Networks$Switchtocustommode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + switchToCustomMode( + params: Params$Resource$Networks$Switchtocustommode, + callback: BodyResponseCallback): void; + switchToCustomMode(callback: BodyResponseCallback): void; + switchToCustomMode( + paramsOrCallback?: Params$Resource$Networks$Switchtocustommode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networks$Switchtocustommode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Switchtocustommode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}') + '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'machineType'], - pathParams: ['machineType', 'project', 'zone'], + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.machineTypes.list - * @desc Retrieves a list of machine types available to the specified - * project. - * @alias compute.machineTypes.list + * compute.networks.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.networks.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Networks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Networks$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Networks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Networks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Networks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/machineTypes') + '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export class Resource$Networkendpointgroups { + export interface Params$Resource$Networks$Addpeering { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network resource to add peering to. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworksAddPeeringRequest; + } + export interface Params$Resource$Networks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to delete. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Networks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to return. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Network; + } + export interface Params$Resource$Networks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networks$Listipowners { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * (Optional) IP CIDR range filter, example: "10.128.10.0/30". + */ + ipCidrRange?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Name of the network to return. + */ + network?: string; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * (Optional) Project IDs filter, example: "project-1,project-2". + */ + ownerProjects?: string; + /** + * (Optional) Owner types filter, example: "instance,forwardingRule". + */ + ownerTypes?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * (Optional) Subnetwork name filter. + */ + subnetName?: string; + /** + * (Optional) Subnetwork region filter. + */ + subnetRegion?: string; + } + export interface Params$Resource$Networks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to update. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Network; + } + export interface Params$Resource$Networks$Removepeering { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network resource to remove peering from. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworksRemovePeeringRequest; + } + export interface Params$Resource$Networks$Switchtocustommode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to be updated. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Networks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Nodegroups { root: Compute; constructor(root: Compute) { this.root = root; @@ -26703,10 +40702,82 @@ export namespace compute_alpha { /** - * compute.networkEndpointGroups.aggregatedList - * @desc Retrieves the list of network endpoint groups and sorts them by - * zone. - * @alias compute.networkEndpointGroups.aggregatedList + * compute.nodeGroups.addNodes + * @desc Adds specified number of nodes to the node group. + * @alias compute.nodeGroups.addNodes + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().NodeGroupsAddNodesRequest} 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 + */ + addNodes( + params?: Params$Resource$Nodegroups$Addnodes, + options?: MethodOptions): AxiosPromise; + addNodes( + params: Params$Resource$Nodegroups$Addnodes, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addNodes( + params: Params$Resource$Nodegroups$Addnodes, + callback: BodyResponseCallback): void; + addNodes(callback: BodyResponseCallback): void; + addNodes( + paramsOrCallback?: Params$Resource$Nodegroups$Addnodes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Addnodes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Addnodes; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.nodeGroups.aggregatedList + * @desc Retrieves an aggregated list of node groups. + * @alias compute.nodeGroups.aggregatedList * @memberOf! () * * @param {object} params Parameters for request @@ -26719,39 +40790,48 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; + params?: Params$Resource$Nodegroups$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Nodegroups$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Nodegroups$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Nodegroups$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/aggregated/networkEndpointGroups') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeGroups') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -26761,66 +40841,74 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest( - parameters); + return createAPIRequest(parameters); } } /** - * compute.networkEndpointGroups.attachNetworkEndpoints - * @desc Attach a list of network endpoints to the specified network - * endpoint group. - * @alias compute.networkEndpointGroups.attachNetworkEndpoints + * compute.nodeGroups.delete + * @desc Deletes the specified NodeGroup resource. + * @alias compute.nodeGroups.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. + * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsAttachEndpointsRequest} params.resource Request body data + * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - attachNetworkEndpoints(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Nodegroups$Delete, options?: MethodOptions): AxiosPromise; - attachNetworkEndpoints( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - attachNetworkEndpoints( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params: Params$Resource$Nodegroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Nodegroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Nodegroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints') + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { @@ -26832,57 +40920,68 @@ export namespace compute_alpha { /** - * compute.networkEndpointGroups.delete - * @desc Deletes the specified network endpoint group. The network endpoints - * in the NEG and the VM instances they belong to are not terminated when - * the NEG is deleted. Note that the NEG cannot be deleted if there are - * backend services referencing it. - * @alias compute.networkEndpointGroups.delete + * compute.nodeGroups.deleteNodes + * @desc Deletes specified nodes from the node group. + * @alias compute.nodeGroups.deleteNodes * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.networkEndpointGroup The name of the network endpoint group to delete. It should comply with RFC1035. + * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {string} params.zone The name of the zone for this request. + * @param {().NodeGroupsDeleteNodesRequest} 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 */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + deleteNodes( + params?: Params$Resource$Nodegroups$Deletenodes, + options?: MethodOptions): AxiosPromise; + deleteNodes( + params: Params$Resource$Nodegroups$Deletenodes, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteNodes( + params: Params$Resource$Nodegroups$Deletenodes, + callback: BodyResponseCallback): void; + deleteNodes(callback: BodyResponseCallback): void; + deleteNodes( + paramsOrCallback?: Params$Resource$Nodegroups$Deletenodes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Deletenodes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Deletenodes; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}') + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { @@ -26894,174 +40993,204 @@ export namespace compute_alpha { /** - * compute.networkEndpointGroups.detachNetworkEndpoints - * @desc Detach a list of network endpoints from the specified network - * endpoint group. - * @alias compute.networkEndpointGroups.detachNetworkEndpoints + * compute.nodeGroups.get + * @desc Returns the specified NodeGroup. Gets a list of available + * NodeGroups by making a list() request. + * @alias compute.nodeGroups.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.networkEndpointGroup The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. + * @param {string} params.nodeGroup Name of the node group to return. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsDetachEndpointsRequest} params.resource Request body data + * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - detachNetworkEndpoints(params?: any, options?: MethodOptions): - AxiosPromise; - detachNetworkEndpoints( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - detachNetworkEndpoints( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Nodegroups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Nodegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Nodegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Nodegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Nodegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints') + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networkEndpointGroups.get - * @desc Returns the specified network endpoint group. Get a list of - * available network endpoint groups by making a list() request. - * @alias compute.networkEndpointGroups.get + * compute.nodeGroups.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.nodeGroups.getIamPolicy * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.networkEndpointGroup The name of the network endpoint group. It should comply with RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {string} params.resource_ Name of the resource for this request. + * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getIamPolicy( + params?: Params$Resource$Nodegroups$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Nodegroups$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Nodegroups$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Nodegroups$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}') + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networkEndpointGroups.insert - * @desc Creates a network endpoint group in the specified project using the - * parameters that are included in the request. - * @alias compute.networkEndpointGroups.insert + * compute.nodeGroups.insert + * @desc Creates a NodeGroup resource in the specified project using the + * data included in the request. + * @alias compute.nodeGroups.insert * @memberOf! () * * @param {object} params Parameters for request + * @param {integer} params.initialNodeCount Initial count of nodes in the node group. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. - * @param {().NetworkEndpointGroup} params.resource Request body data + * @param {string} params.zone The name of the zone for this request. + * @param {().NodeGroup} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Nodegroups$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Nodegroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Nodegroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Nodegroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'zone'], + requiredParams: ['project', 'zone', 'initialNodeCount'], pathParams: ['project', 'zone'], context: this.getRoot() }; @@ -27074,10 +41203,9 @@ export namespace compute_alpha { /** - * compute.networkEndpointGroups.list - * @desc Retrieves the list of network endpoint groups that are located in - * the specified project and zone. - * @alias compute.networkEndpointGroups.list + * compute.nodeGroups.list + * @desc Retrieves a list of node groups available to the specified project. + * @alias compute.nodeGroups.list * @memberOf! () * * @param {object} params Parameters for request @@ -27086,41 +41214,49 @@ export namespace compute_alpha { * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. + * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; + list(params?: Params$Resource$Nodegroups$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Nodegroups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Nodegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Nodegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Nodegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -27130,87 +41266,162 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networkEndpointGroups.listNetworkEndpoints - * @desc Lists the network endpoints in the specified network endpoint - * group. - * @alias compute.networkEndpointGroups.listNetworkEndpoints + * compute.nodeGroups.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.nodeGroups.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string} params.networkEndpointGroup The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone where the network endpoint group is located. It should comply with RFC1035. - * @param {().NetworkEndpointGroupsListEndpointsRequest} params.resource Request body data + * @param {string} params.resource_ Name of the resource for this request. + * @param {string} params.zone The name of the zone for this request. + * @param {().Policy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listNetworkEndpoints(params?: any, options?: MethodOptions): - AxiosPromise; - listNetworkEndpoints( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$NetworkEndpointGroupsListNetworkEndpoints>): void; - listNetworkEndpoints( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$NetworkEndpointGroupsListNetworkEndpoints>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setIamPolicy( + params?: Params$Resource$Nodegroups$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Nodegroups$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Nodegroups$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Nodegroups$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodegroups$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints') + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'networkEndpointGroup'], - pathParams: ['networkEndpointGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest< - Schema$NetworkEndpointGroupsListNetworkEndpoints>(parameters); + return createAPIRequest(parameters); } } /** - * compute.networkEndpointGroups.testIamPermissions + * compute.nodeGroups.setNodeTemplate + * @desc Updates the node template of the node group. + * @alias compute.nodeGroups.setNodeTemplate + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().NodeGroupsSetNodeTemplateRequest} 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 + */ + setNodeTemplate( + params?: Params$Resource$Nodegroups$Setnodetemplate, + options?: MethodOptions): AxiosPromise; + setNodeTemplate( + params: Params$Resource$Nodegroups$Setnodetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setNodeTemplate( + params: Params$Resource$Nodegroups$Setnodetemplate, + callback: BodyResponseCallback): void; + setNodeTemplate(callback: BodyResponseCallback): void; + setNodeTemplate( + paramsOrCallback?: Params$Resource$Nodegroups$Setnodetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Nodegroups$Setnodetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Setnodetemplate; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.nodeGroups.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.networkEndpointGroups.testIamPermissions + * @alias compute.nodeGroups.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -27222,53 +41433,440 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - 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 + - '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + testIamPermissions( + params?: Params$Resource$Nodegroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Nodegroups$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Nodegroups$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Nodegroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Nodegroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodegroups$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Nodegroups$Addnodes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the NodeGroup resource to delete. + */ + nodeGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NodeGroupsAddNodesRequest; + } + export interface Params$Resource$Nodegroups$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Nodegroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the NodeGroup resource to delete. + */ + nodeGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Nodegroups$Deletenodes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the NodeGroup resource to delete. + */ + nodeGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NodeGroupsDeleteNodesRequest; + } + export interface Params$Resource$Nodegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the node group to return. + */ + nodeGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Nodegroups$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Nodegroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Initial count of nodes in the node group. + */ + initialNodeCount?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NodeGroup; + } + export interface Params$Resource$Nodegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Nodegroups$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Nodegroups$Setnodetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the NodeGroup resource to delete. + */ + nodeGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NodeGroupsSetNodeTemplateRequest; + } + export interface Params$Resource$Nodegroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; } - export class Resource$Networks { + + export class Resource$Nodetemplates { root: Compute; constructor(root: Compute) { this.root = root; @@ -27281,112 +41879,147 @@ export namespace compute_alpha { /** - * compute.networks.addPeering - * @desc Adds a peering to the specified network. - * @alias compute.networks.addPeering + * compute.nodeTemplates.aggregatedList + * @desc Retrieves an aggregated list of node templates. + * @alias compute.nodeTemplates.aggregatedList * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.network Name of the network resource to add peering to. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksAddPeeringRequest} 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 */ - addPeering(params?: any, options?: MethodOptions): - AxiosPromise; - addPeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - addPeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + aggregatedList( + params?: Params$Resource$Nodetemplates$Aggregatedlist, + options?: MethodOptions): + AxiosPromise; + aggregatedList( + params: Params$Resource$Nodetemplates$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Nodetemplates$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList(callback: + BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Nodetemplates$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Nodetemplates$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/addPeering') + '/compute/alpha/projects/{project}/aggregated/nodeTemplates') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networks.delete - * @desc Deletes the specified network. - * @alias compute.networks.delete + * compute.nodeTemplates.delete + * @desc Deletes the specified NodeTemplate resource. + * @alias compute.nodeTemplates.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.network Name of the network to delete. + * @param {string} params.nodeTemplate Name of the NodeTemplate resource to delete. * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Nodetemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Nodetemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Nodetemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Nodetemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Nodetemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -27398,294 +42031,207 @@ export namespace compute_alpha { /** - * compute.networks.get - * @desc Returns the specified network. Get a list of available networks by - * making a list() request. - * @alias compute.networks.get + * compute.nodeTemplates.get + * @desc Returns the specified node template. Gets a list of available node + * templates by making a list() request. + * @alias compute.nodeTemplates.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.network Name of the network to return. + * @param {string} params.nodeTemplate Name of the node template to return. * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Nodetemplates$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Nodetemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Nodetemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Nodetemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodetemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networks.insert - * @desc Creates a network in the specified project using the data included - * in the request. - * @alias compute.networks.insert + * compute.nodeTemplates.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.nodeTemplates.getIamPolicy * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + - '/compute/alpha/projects/{project}/global/networks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - + getIamPolicy( + params?: Params$Resource$Nodetemplates$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Nodetemplates$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Nodetemplates$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Nodetemplates$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Nodetemplates$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * compute.networks.list - * @desc Retrieves the list of networks available to the specified project. - * @alias compute.networks.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. - * @param {string} params.project Project ID for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Getiampolicy; 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 + - '/compute/alpha/projects/{project}/global/networks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * compute.networks.listIpOwners - * @desc Lists the internal IP owners in the specified network. - * @alias compute.networks.listIpOwners - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {string=} params.ipCidrRange (Optional) IP CIDR range filter, example: "10.128.10.0/30". - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string} params.network Name of the network to return. - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.ownerProjects (Optional) Project IDs filter, example: "project-1,project-2". - * @param {string=} params.ownerTypes (Optional) Owner types filter, example: "instance,forwardingRule". - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. - * @param {string} params.project Project ID for this request. - * @param {string=} params.subnetName (Optional) Subnetwork name filter. - * @param {string=} params.subnetRegion (Optional) Subnetwork region filter. - * @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 - */ - listIpOwners(params?: any, options?: MethodOptions): - AxiosPromise; - listIpOwners( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - listIpOwners( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + - '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networks.patch - * @desc Patches the specified network with the data included in the - * request. Only the following fields can be modified: - * routingConfig.routingMode. - * @alias compute.networks.patch + * compute.nodeTemplates.insert + * @desc Creates a NodeTemplate resource in the specified project using the + * data included in the request. + * @alias compute.nodeTemplates.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.network Name of the network to update. * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Network} params.resource Request body data + * @param {().NodeTemplate} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + insert( + params?: Params$Resource$Nodetemplates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Nodetemplates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Nodetemplates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Nodetemplates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Nodetemplates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { @@ -27697,173 +42243,215 @@ export namespace compute_alpha { /** - * compute.networks.removePeering - * @desc Removes a peering from the specified network. - * @alias compute.networks.removePeering + * compute.nodeTemplates.list + * @desc Retrieves a list of node templates available to the specified + * project. + * @alias compute.nodeTemplates.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.network Name of the network resource to remove peering from. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NetworksRemovePeeringRequest} params.resource Request body data + * @param {string} params.region The name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removePeering(params?: any, options?: MethodOptions): - AxiosPromise; - removePeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - removePeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Nodetemplates$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Nodetemplates$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Nodetemplates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Nodetemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodetemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/removePeering') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networks.switchToCustomMode - * @desc Switches the network mode from auto subnet mode to custom subnet - * mode. - * @alias compute.networks.switchToCustomMode + * compute.nodeTemplates.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.nodeTemplates.setIamPolicy * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.network Name of the network to be updated. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().Policy} 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 */ - switchToCustomMode(params?: any, options?: MethodOptions): - AxiosPromise; - switchToCustomMode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - switchToCustomMode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setIamPolicy( + params?: Params$Resource$Nodetemplates$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Nodetemplates$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Nodetemplates$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Nodetemplates$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Nodetemplates$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'network'], - pathParams: ['network', 'project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.networks.testIamPermissions + * compute.nodeTemplates.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.networks.testIamPermissions + * @alias compute.nodeTemplates.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. + * @param {string} params.region The name of the region for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Nodetemplates$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Nodetemplates$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Nodetemplates$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Nodetemplates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Nodetemplates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetemplates$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'resource'], - pathParams: ['project', 'resource'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { @@ -27874,82 +42462,284 @@ export namespace compute_alpha { } } - export class Resource$Nodegroups { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Nodetemplates$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Nodetemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Name of the NodeTemplate resource to delete. + */ + nodeTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Nodetemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.nodeGroups.addNodes - * @desc Adds specified number of nodes to the node group. - * @alias compute.nodeGroups.addNodes - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. - * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsAddNodesRequest} 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 + * Name of the node template to return. */ - addNodes(params?: any, options?: MethodOptions): - AxiosPromise; - addNodes( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - addNodes( - 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 + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } + nodeTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Nodetemplates$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Nodetemplates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NodeTemplate; + } + export interface Params$Resource$Nodetemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Nodetemplates$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Nodetemplates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Nodetypes { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; } /** - * compute.nodeGroups.aggregatedList - * @desc Retrieves an aggregated list of node groups. - * @alias compute.nodeGroups.aggregatedList + * compute.nodeTypes.aggregatedList + * @desc Retrieves an aggregated list of node types. + * @alias compute.nodeTypes.aggregatedList * @memberOf! () * * @param {object} params Parameters for request @@ -27962,34 +42752,47 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Nodetypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Nodetypes$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Nodetypes$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Nodetypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Nodetypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeGroups') + '/compute/alpha/projects/{project}/aggregated/nodeTypes') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -28000,297 +42803,493 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.delete - * @desc Deletes the specified NodeGroup resource. - * @alias compute.nodeGroups.delete + * compute.nodeTypes.get + * @desc Returns the specified node type. Gets a list of available node + * types by making a list() request. + * @alias compute.nodeTypes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. + * @param {string} params.nodeType Name of the node type to return. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Nodetypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Nodetypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Nodetypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Nodetypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Nodetypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}') + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.deleteNodes - * @desc Deletes specified nodes from the node group. - * @alias compute.nodeGroups.deleteNodes + * compute.nodeTypes.list + * @desc Retrieves a list of node types available to the specified project. + * @alias compute.nodeTypes.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsDeleteNodesRequest} 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 */ - deleteNodes(params?: any, options?: MethodOptions): - AxiosPromise; - deleteNodes( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - deleteNodes( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Nodetypes$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Nodetypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Nodetypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Nodetypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Nodetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Nodetypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Nodetypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.nodeGroups.get - * @desc Returns the specified NodeGroup. Get a list of available NodeGroups - * by making a list() request. - * @alias compute.nodeGroups.get + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Nodetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the node type to return. + */ + nodeType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Nodetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + + export class Resource$Projects { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.projects.disableXpnHost + * @desc Disable this project as a shared VPC host project. + * @alias compute.projects.disableXpnHost * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeGroup Name of the node group to return. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + disableXpnHost( + params?: Params$Resource$Projects$Disablexpnhost, + options?: MethodOptions): AxiosPromise; + disableXpnHost( + params: Params$Resource$Projects$Disablexpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + disableXpnHost( + params: Params$Resource$Projects$Disablexpnhost, + callback: BodyResponseCallback): void; + disableXpnHost(callback: BodyResponseCallback): void; + disableXpnHost( + paramsOrCallback?: Params$Resource$Projects$Disablexpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Disablexpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Disablexpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}') + (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.getIamPolicy - * @desc Gets the access control policy for a resource. May be empty if no - * such policy or resource exists. - * @alias compute.nodeGroups.getIamPolicy + * compute.projects.disableXpnResource + * @desc Disable a serivce resource (a.k.a service project) associated with + * this host project. + * @alias compute.projects.disableXpnResource * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().ProjectsDisableXpnResourceRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + disableXpnResource( + params?: Params$Resource$Projects$Disablexpnresource, + options?: MethodOptions): AxiosPromise; + disableXpnResource( + params: Params$Resource$Projects$Disablexpnresource, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + disableXpnResource( + params: Params$Resource$Projects$Disablexpnresource, + callback: BodyResponseCallback): void; + disableXpnResource(callback: BodyResponseCallback): void; + disableXpnResource( + paramsOrCallback?: Params$Resource$Projects$Disablexpnresource| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Disablexpnresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Disablexpnresource; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + + '/compute/alpha/projects/{project}/disableXpnResource') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.insert - * @desc Creates a NodeGroup resource in the specified project using the - * data included in the request. - * @alias compute.nodeGroups.insert + * compute.projects.enableXpnHost + * @desc Enable this project as a shared VPC host project. + * @alias compute.projects.enableXpnHost * @memberOf! () * * @param {object} params Parameters for request - * @param {integer} params.initialNodeCount Initial count of nodes in the node group. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroup} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + enableXpnHost( + params?: Params$Resource$Projects$Enablexpnhost, + options?: MethodOptions): AxiosPromise; + enableXpnHost( + params: Params$Resource$Projects$Enablexpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enableXpnHost( + params: Params$Resource$Projects$Enablexpnhost, + callback: BodyResponseCallback): void; + enableXpnHost(callback: BodyResponseCallback): void; + enableXpnHost( + paramsOrCallback?: Params$Resource$Projects$Enablexpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Enablexpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Enablexpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups') + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'initialNodeCount'], - pathParams: ['project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { @@ -28302,306 +43301,338 @@ export namespace compute_alpha { /** - * compute.nodeGroups.list - * @desc Retrieves a list of node groups available to the specified project. - * @alias compute.nodeGroups.list + * compute.projects.enableXpnResource + * @desc Enable service resource (a.k.a service project) for a host project, + * so that subnets in the host project can be used by instances in the + * service project. + * @alias compute.projects.enableXpnResource * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().ProjectsEnableXpnResourceRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + enableXpnResource( + params?: Params$Resource$Projects$Enablexpnresource, + options?: MethodOptions): AxiosPromise; + enableXpnResource( + params: Params$Resource$Projects$Enablexpnresource, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enableXpnResource( + params: Params$Resource$Projects$Enablexpnresource, + callback: BodyResponseCallback): void; + enableXpnResource(callback: BodyResponseCallback): void; + enableXpnResource( + paramsOrCallback?: Params$Resource$Projects$Enablexpnresource| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Enablexpnresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Enablexpnresource; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups') + '/compute/alpha/projects/{project}/enableXpnResource') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias compute.nodeGroups.setIamPolicy + * compute.projects.get + * @desc Returns the specified Project resource. + * @alias compute.projects.get * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {string} params.zone The name of the zone for this request. - * @param {().Policy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + '/compute/alpha/projects/{project}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.setNodeTemplate - * @desc Updates the node template of the node group. - * @alias compute.nodeGroups.setNodeTemplate + * compute.projects.getXpnHost + * @desc Gets the shared VPC host project that this project links to. May be + * empty if no link exists. + * @alias compute.projects.getXpnHost * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeGroup Name of the NodeGroup resource to delete. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {().NodeGroupsSetNodeTemplateRequest} 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 */ - setNodeTemplate(params?: any, options?: MethodOptions): - AxiosPromise; - setNodeTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setNodeTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getXpnHost( + params?: Params$Resource$Projects$Getxpnhost, + options?: MethodOptions): AxiosPromise; + getXpnHost( + params: Params$Resource$Projects$Getxpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getXpnHost( + params: Params$Resource$Projects$Getxpnhost, + callback: BodyResponseCallback): void; + getXpnHost(callback: BodyResponseCallback): void; + getXpnHost( + paramsOrCallback?: Params$Resource$Projects$Getxpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getxpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getxpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'nodeGroup'], - pathParams: ['nodeGroup', 'project', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeGroups.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.nodeGroups.testIamPermissions + * compute.projects.getXpnResources + * @desc Gets service resources (a.k.a service project) associated with this + * host project. + * @alias compute.projects.getXpnResources * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter + * @param {integer=} params.maxResults + * @param {string=} params.order_by + * @param {string=} params.pageToken * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getXpnResources( + params?: Params$Resource$Projects$Getxpnresources, + options?: MethodOptions): AxiosPromise; + getXpnResources( + params: Params$Resource$Projects$Getxpnresources, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + getXpnResources( + params: Params$Resource$Projects$Getxpnresources, + callback: BodyResponseCallback): void; + getXpnResources( + callback: BodyResponseCallback): void; + getXpnResources( + paramsOrCallback?: Params$Resource$Projects$Getxpnresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getxpnresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getxpnresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + + '/compute/alpha/projects/{project}/getXpnResources') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Nodetemplates { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.nodeTemplates.aggregatedList - * @desc Retrieves an aggregated list of node templates. - * @alias compute.nodeTemplates.aggregatedList + * compute.projects.listXpnHosts + * @desc Lists all shared VPC host projects visible to the user in an + * organization. + * @alias compute.projects.listXpnHosts * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string=} params.filter + * @param {integer=} params.maxResults + * @param {string=} params.order_by + * @param {string=} params.pageToken * @param {string} params.project Project ID for this request. + * @param {().ProjectsListXpnHostsRequest} 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 */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + listXpnHosts( + params?: Params$Resource$Projects$Listxpnhosts, + options?: MethodOptions): AxiosPromise; + listXpnHosts( + params: Params$Resource$Projects$Listxpnhosts, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listXpnHosts( + params: Params$Resource$Projects$Listxpnhosts, + callback: BodyResponseCallback): void; + listXpnHosts(callback: BodyResponseCallback): void; + listXpnHosts( + paramsOrCallback?: Params$Resource$Projects$Listxpnhosts| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Listxpnhosts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Listxpnhosts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, @@ -28610,63 +43641,72 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeTemplates.delete - * @desc Deletes the specified NodeTemplate resource. - * @alias compute.nodeTemplates.delete + * compute.projects.moveDisk + * @desc Moves a persistent disk from one zone to another. + * @alias compute.projects.moveDisk * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeTemplate Name of the NodeTemplate resource to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().DiskMoveRequest} 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 */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + moveDisk( + params?: Params$Resource$Projects$Movedisk, + options?: MethodOptions): AxiosPromise; + moveDisk( + params: Params$Resource$Projects$Movedisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + moveDisk( + params: Params$Resource$Projects$Movedisk, + callback: BodyResponseCallback): void; + moveDisk(callback: BodyResponseCallback): void; + moveDisk( + paramsOrCallback?: Params$Resource$Projects$Movedisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Movedisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Movedisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { @@ -28678,171 +43718,211 @@ export namespace compute_alpha { /** - * compute.nodeTemplates.get - * @desc Returns the specified node template. Get a list of available node - * templates by making a list() request. - * @alias compute.nodeTemplates.get + * compute.projects.moveInstance + * @desc Moves an instance and its attached persistent disks from one zone + * to another. + * @alias compute.projects.moveInstance * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeTemplate Name of the node template to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InstanceMoveRequest} 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 */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + moveInstance( + params?: Params$Resource$Projects$Moveinstance, + options?: MethodOptions): AxiosPromise; + moveInstance( + params: Params$Resource$Projects$Moveinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + moveInstance( + params: Params$Resource$Projects$Moveinstance, + callback: BodyResponseCallback): void; + moveInstance(callback: BodyResponseCallback): void; + moveInstance( + paramsOrCallback?: Params$Resource$Projects$Moveinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Moveinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Moveinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'nodeTemplate'], - pathParams: ['nodeTemplate', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeTemplates.getIamPolicy - * @desc Gets the access control policy for a resource. May be empty if no - * such policy or resource exists. - * @alias compute.nodeTemplates.getIamPolicy + * compute.projects.setCommonInstanceMetadata + * @desc Sets metadata common to all instances within the specified project + * using the data included in the request. + * @alias compute.projects.setCommonInstanceMetadata * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().Metadata} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setCommonInstanceMetadata( + params?: Params$Resource$Projects$Setcommoninstancemetadata, + options?: MethodOptions): AxiosPromise; + setCommonInstanceMetadata( + params: Params$Resource$Projects$Setcommoninstancemetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setCommonInstanceMetadata( + params: Params$Resource$Projects$Setcommoninstancemetadata, + callback: BodyResponseCallback): void; + setCommonInstanceMetadata(callback: BodyResponseCallback): + void; + setCommonInstanceMetadata( + paramsOrCallback?: Params$Resource$Projects$Setcommoninstancemetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setcommoninstancemetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setcommoninstancemetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy') + '/compute/alpha/projects/{project}/setCommonInstanceMetadata') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeTemplates.insert - * @desc Creates a NodeTemplate resource in the specified project using the - * data included in the request. - * @alias compute.nodeTemplates.insert + * compute.projects.setDefaultNetworkTier + * @desc Sets the default network tier of the project. The default network + * tier is used when an address/forwardingRule/instance is created without + * specifying the network tier field. + * @alias compute.projects.setDefaultNetworkTier * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().NodeTemplate} params.resource Request body data + * @param {().ProjectsSetDefaultNetworkTierRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setDefaultNetworkTier( + params?: Params$Resource$Projects$Setdefaultnetworktier, + options?: MethodOptions): AxiosPromise; + setDefaultNetworkTier( + params: Params$Resource$Projects$Setdefaultnetworktier, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDefaultNetworkTier( + params: Params$Resource$Projects$Setdefaultnetworktier, + callback: BodyResponseCallback): void; + setDefaultNetworkTier(callback: BodyResponseCallback): + void; + setDefaultNetworkTier( + paramsOrCallback?: Params$Resource$Projects$Setdefaultnetworktier| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setdefaultnetworktier; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setdefaultnetworktier; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultNetworkTier') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { @@ -28854,321 +43934,735 @@ export namespace compute_alpha { /** - * compute.nodeTemplates.list - * @desc Retrieves a list of node templates available to the specified - * project. - * @alias compute.nodeTemplates.list + * compute.projects.setDefaultServiceAccount + * @desc Sets the default service account of the project. The default + * service account is used when a VM instance is created with the service + * account email address set to "default". + * @alias compute.projects.setDefaultServiceAccount * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().ProjectsSetDefaultServiceAccountRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setDefaultServiceAccount( + params?: Params$Resource$Projects$Setdefaultserviceaccount, + options?: MethodOptions): AxiosPromise; + setDefaultServiceAccount( + params: Params$Resource$Projects$Setdefaultserviceaccount, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDefaultServiceAccount( + params: Params$Resource$Projects$Setdefaultserviceaccount, + callback: BodyResponseCallback): void; + setDefaultServiceAccount(callback: BodyResponseCallback): + void; + setDefaultServiceAccount( + paramsOrCallback?: Params$Resource$Projects$Setdefaultserviceaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setdefaultserviceaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setdefaultserviceaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates') + '/compute/alpha/projects/{project}/setDefaultServiceAccount') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeTemplates.setIamPolicy - * @desc Sets the access control policy on the specified resource. Replaces - * any existing policy. - * @alias compute.nodeTemplates.setIamPolicy + * compute.projects.setUsageExportBucket + * @desc Enables the usage export feature and sets the usage export bucket + * where reports are stored. If you provide an empty request body using this + * method, the usage export feature will be disabled. + * @alias compute.projects.setUsageExportBucket * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().Policy} params.resource Request body data + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().UsageExportLocation} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setUsageExportBucket( + params?: Params$Resource$Projects$Setusageexportbucket, + options?: MethodOptions): AxiosPromise; + setUsageExportBucket( + params: Params$Resource$Projects$Setusageexportbucket, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUsageExportBucket( + params: Params$Resource$Projects$Setusageexportbucket, + callback: BodyResponseCallback): void; + setUsageExportBucket(callback: BodyResponseCallback): + void; + setUsageExportBucket( + paramsOrCallback?: Params$Resource$Projects$Setusageexportbucket| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setusageexportbucket; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setusageexportbucket; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/setUsageExportBucket') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Projects$Disablexpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Disablexpnresource { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsDisableXpnResourceRequest; + } + export interface Params$Resource$Projects$Enablexpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Enablexpnresource { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsEnableXpnResourceRequest; + } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Getxpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Getxpnresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Listxpnhosts { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsListXpnHostsRequest; + } + export interface Params$Resource$Projects$Movedisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$DiskMoveRequest; + } + export interface Params$Resource$Projects$Moveinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceMoveRequest; + } + export interface Params$Resource$Projects$Setcommoninstancemetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Metadata; + } + export interface Params$Resource$Projects$Setdefaultnetworktier { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsSetDefaultNetworkTierRequest; + } + export interface Params$Resource$Projects$Setdefaultserviceaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsSetDefaultServiceAccountRequest; + } + export interface Params$Resource$Projects$Setusageexportbucket { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UsageExportLocation; + } + + + export class Resource$Regionautoscalers { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } /** - * compute.nodeTemplates.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.nodeTemplates.testIamPermissions + * compute.regionAutoscalers.delete + * @desc Deletes the specified autoscaler. + * @alias compute.regionAutoscalers.delete * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.autoscaler Name of the autoscaler to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + delete( + params?: Params$Resource$Regionautoscalers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionautoscalers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionautoscalers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionautoscalers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Nodetypes { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.nodeTypes.aggregatedList - * @desc Retrieves an aggregated list of node types. - * @alias compute.nodeTypes.aggregatedList + * compute.regionAutoscalers.get + * @desc Returns the specified autoscaler. + * @alias compute.regionAutoscalers.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.autoscaler Name of the autoscaler to return. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regionautoscalers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionautoscalers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionautoscalers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionautoscalers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/nodeTypes') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeTypes.get - * @desc Returns the specified node type. Get a list of available node types - * by making a list() request. - * @alias compute.nodeTypes.get + * compute.regionAutoscalers.insert + * @desc Creates an autoscaler in the specified project using the data + * included in the request. + * @alias compute.regionAutoscalers.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.nodeType Name of the node type to return. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().Autoscaler} 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 */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Regionautoscalers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionautoscalers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionautoscalers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regionautoscalers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}') + '/compute/alpha/projects/{project}/regions/{region}/autoscalers') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'nodeType'], - pathParams: ['nodeType', 'project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.nodeTypes.list - * @desc Retrieves a list of node types available to the specified project. - * @alias compute.nodeTypes.list + * compute.regionAutoscalers.list + * @desc Retrieves a list of autoscalers contained within the specified + * region. + * @alias compute.regionAutoscalers.list * @memberOf! () * * @param {object} params Parameters for request @@ -29177,112 +44671,134 @@ export namespace compute_alpha { * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.zone The name of the zone for this request. + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Regionautoscalers$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionautoscalers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionautoscalers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'zone'], - pathParams: ['project', 'zone'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Projects { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.projects.disableXpnHost - * @desc Disable this project as a shared VPC host project. - * @alias compute.projects.disableXpnHost + * compute.regionAutoscalers.patch + * @desc Updates an autoscaler in the specified project using the data + * included in the request. This method supports PATCH semantics and uses + * the JSON merge patch format and processing rules. + * @alias compute.regionAutoscalers.patch * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.autoscaler Name of the autoscaler to patch. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().Autoscaler} 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 */ - disableXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; - disableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - disableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + patch( + params?: Params$Resource$Regionautoscalers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionautoscalers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regionautoscalers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regionautoscalers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: - (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost') + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'PATCH' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { @@ -29294,108 +44810,143 @@ export namespace compute_alpha { /** - * compute.projects.disableXpnResource - * @desc Disable a serivce resource (a.k.a service project) associated with - * this host project. - * @alias compute.projects.disableXpnResource + * compute.regionAutoscalers.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionAutoscalers.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsDisableXpnResourceRequest} params.resource Request body data + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disableXpnResource(params?: any, options?: MethodOptions): - AxiosPromise; - disableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - disableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regionautoscalers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regionautoscalers$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regionautoscalers$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Regionautoscalers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regionautoscalers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/disableXpnResource') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.enableXpnHost - * @desc Enable this project as a shared VPC host project. - * @alias compute.projects.enableXpnHost + * compute.regionAutoscalers.update + * @desc Updates an autoscaler in the specified project using the data + * included in the request. + * @alias compute.regionAutoscalers.update * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.autoscaler Name of the autoscaler to update. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().Autoscaler} 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 */ - enableXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; - enableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - enableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + update( + params?: Params$Resource$Regionautoscalers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionautoscalers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regionautoscalers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionautoscalers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { @@ -29404,57 +44955,320 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Regionautoscalers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Name of the autoscaler to delete. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionautoscalers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.projects.enableXpnResource - * @desc Enable service resource (a.k.a service project) for a host project, - * so that subnets in the host project can be used by instances in the - * service project. - * @alias compute.projects.enableXpnResource + * Name of the autoscaler to return. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionautoscalers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Regionautoscalers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionautoscalers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to patch. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Regionautoscalers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regionautoscalers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to update. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + + + export class Resource$Regionbackendservices { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionBackendServices.delete + * @desc Deletes the specified regional BackendService resource. + * @alias compute.regionBackendServices.delete * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.backendService Name of the BackendService resource to delete. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsEnableXpnResourceRequest} 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 */ - enableXpnResource(params?: any, options?: MethodOptions): - AxiosPromise; - enableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - enableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Regionbackendservices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionbackendservices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionbackendservices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionbackendservices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/enableXpnResource') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -29466,279 +45280,367 @@ export namespace compute_alpha { /** - * compute.projects.get - * @desc Returns the specified Project resource. - * @alias compute.projects.get + * compute.regionBackendServices.get + * @desc Returns the specified regional BackendService resource. + * @alias compute.regionBackendServices.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.backendService Name of the BackendService resource to return. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regionbackendservices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionbackendservices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionbackendservices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionbackendservices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionbackendservices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.getXpnHost - * @desc Gets the shared VPC host project that this project links to. May be - * empty if no link exists. - * @alias compute.projects.getXpnHost + * compute.regionBackendServices.getHealth + * @desc Gets the most recent health check results for this regional + * BackendService. + * @alias compute.regionBackendServices.getHealth * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.project Project ID for this request. + * @param {string} params.backendService Name of the BackendService resource for which to get health. + * @param {string} params.project + * @param {string} params.region Name of the region scoping this request. + * @param {().ResourceGroupReference} 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 */ - getXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; - getXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getHealth( + params?: Params$Resource$Regionbackendservices$Gethealth, + options?: MethodOptions): + AxiosPromise; + getHealth( + params: Params$Resource$Regionbackendservices$Gethealth, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Regionbackendservices$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): + void; + getHealth( + paramsOrCallback?: Params$Resource$Regionbackendservices$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.getXpnResources - * @desc Gets service resources (a.k.a service project) associated with this - * host project. - * @alias compute.projects.getXpnResources + * compute.regionBackendServices.insert + * @desc Creates a regional BackendService resource in the specified project + * using the data included in the request. There are several restrictions + * and guidelines to keep in mind when creating a regional backend service. + * Read Restrictions and Guidelines for more information. + * @alias compute.regionBackendServices.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter - * @param {integer=} params.maxResults - * @param {string=} params.order_by - * @param {string=} params.pageToken * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().BackendService} 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 */ - getXpnResources(params?: any, options?: MethodOptions): - AxiosPromise; - getXpnResources( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - getXpnResources( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Regionbackendservices$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionbackendservices$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionbackendservices$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regionbackendservices$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/getXpnResources') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.listXpnHosts - * @desc Lists all shared VPC host projects visible to the user in an - * organization. - * @alias compute.projects.listXpnHosts + * compute.regionBackendServices.list + * @desc Retrieves the list of regional BackendService resources available + * to the specified project in the given region. + * @alias compute.regionBackendServices.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter - * @param {integer=} params.maxResults - * @param {string=} params.order_by - * @param {string=} params.pageToken + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {().ProjectsListXpnHostsRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listXpnHosts(params?: any, options?: MethodOptions): - AxiosPromise; - listXpnHosts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - listXpnHosts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regionbackendservices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionbackendservices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionbackendservices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionbackendservices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.moveDisk - * @desc Moves a persistent disk from one zone to another. - * @alias compute.projects.moveDisk + * compute.regionBackendServices.patch + * @desc Updates the specified regional BackendService resource with the + * data included in the request. There are several restrictions and + * guidelines to keep in mind when updating a backend service. Read + * Restrictions and Guidelines for more information. This method supports + * PATCH semantics and uses the JSON merge patch format and processing + * rules. + * @alias compute.regionBackendServices.patch * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.backendService Name of the BackendService resource to patch. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().DiskMoveRequest} params.resource Request body data + * @param {().BackendService} 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 */ - moveDisk(params?: any, options?: MethodOptions): - AxiosPromise; - moveDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - moveDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + patch( + params?: Params$Resource$Regionbackendservices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionbackendservices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regionbackendservices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regionbackendservices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -29750,111 +45652,146 @@ export namespace compute_alpha { /** - * compute.projects.moveInstance - * @desc Moves an instance and its attached persistent disks from one zone - * to another. - * @alias compute.projects.moveInstance + * compute.regionBackendServices.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionBackendServices.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceMoveRequest} params.resource Request body data + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveInstance(params?: any, options?: MethodOptions): - AxiosPromise; - moveInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - moveInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regionbackendservices$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Regionbackendservices$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.setCommonInstanceMetadata - * @desc Sets metadata common to all instances within the specified project - * using the data included in the request. - * @alias compute.projects.setCommonInstanceMetadata + * compute.regionBackendServices.update + * @desc Updates the specified regional BackendService resource with the + * data included in the request. There are several restrictions and + * guidelines to keep in mind when updating a backend service. Read + * Restrictions and Guidelines for more information. + * @alias compute.regionBackendServices.update * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.backendService Name of the BackendService resource to update. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Metadata} params.resource Request body data + * @param {().BackendService} 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 */ - setCommonInstanceMetadata(params?: any, options?: MethodOptions): - AxiosPromise; - setCommonInstanceMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setCommonInstanceMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + update( + params?: Params$Resource$Regionbackendservices$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionbackendservices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regionbackendservices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionbackendservices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/setCommonInstanceMetadata') + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'PUT' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -29863,52 +45800,340 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regionbackendservices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.projects.setDefaultNetworkTier - * @desc Sets the default network tier of the project. The default network - * tier is used when an address/forwardingRule/instance is created without - * specifying the network tier field. - * @alias compute.projects.setDefaultNetworkTier + * Name of the BackendService resource to delete. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionbackendservices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to return. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionbackendservices$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource for which to get health. + */ + backendService?: string; + /** + * + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceGroupReference; + } + export interface Params$Resource$Regionbackendservices$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Regionbackendservices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionbackendservices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to patch. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Regionbackendservices$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regionbackendservices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to update. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + + + export class Resource$Regioncommitments { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionCommitments.aggregatedList + * @desc Retrieves an aggregated list of commitments. + * @alias compute.regionCommitments.aggregatedList * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsSetDefaultNetworkTierRequest} 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 */ - setDefaultNetworkTier(params?: any, options?: MethodOptions): - AxiosPromise; - setDefaultNetworkTier( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setDefaultNetworkTier( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + aggregatedList( + params?: Params$Resource$Regioncommitments$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Regioncommitments$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Regioncommitments$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Regioncommitments$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioncommitments$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/setDefaultNetworkTier') + '/compute/alpha/projects/{project}/aggregated/commitments') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, @@ -29917,122 +46142,144 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.setDefaultServiceAccount - * @desc Sets the default service account of the project. The default - * service account is used when a VM instance is created with the service - * account email address set to "default". - * @alias compute.projects.setDefaultServiceAccount + * compute.regionCommitments.get + * @desc Returns the specified commitment resource. Gets a list of available + * commitments by making a list() request. + * @alias compute.regionCommitments.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.commitment Name of the commitment to return. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().ProjectsSetDefaultServiceAccountRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDefaultServiceAccount(params?: any, options?: MethodOptions): - AxiosPromise; - setDefaultServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setDefaultServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regioncommitments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regioncommitments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioncommitments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioncommitments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/setDefaultServiceAccount') + '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.projects.setUsageExportBucket - * @desc Enables the usage export feature and sets the usage export bucket - * where reports are stored. If you provide an empty request body using this - * method, the usage export feature will be disabled. - * @alias compute.projects.setUsageExportBucket + * compute.regionCommitments.insert + * @desc Creates a commitment in the specified project using the data + * included in the request. + * @alias compute.regionCommitments.insert * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().UsageExportLocation} params.resource Request body data + * @param {().Commitment} 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 */ - setUsageExportBucket(params?: any, options?: MethodOptions): - AxiosPromise; - setUsageExportBucket( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setUsageExportBucket( - params?: any, - options?: MethodOptions|BodyResponseCallback, + insert( + params?: Params$Resource$Regioncommitments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regioncommitments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regioncommitments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regioncommitments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/setUsageExportBucket') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { @@ -30041,184 +46288,421 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - } - - export class Resource$Regionautoscalers { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionAutoscalers.delete - * @desc Deletes the specified autoscaler. - * @alias compute.regionAutoscalers.delete + * compute.regionCommitments.list + * @desc Retrieves a list of commitments contained within the specified + * region. + * @alias compute.regionCommitments.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.autoscaler Name of the autoscaler to delete. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regioncommitments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regioncommitments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regioncommitments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regioncommitments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}') + '/compute/alpha/projects/{project}/regions/{region}/commitments') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionAutoscalers.get - * @desc Returns the specified autoscaler. - * @alias compute.regionAutoscalers.get + * compute.regionCommitments.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionCommitments.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.autoscaler Name of the autoscaler to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regioncommitments$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regioncommitments$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regioncommitments$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Regioncommitments$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioncommitments$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}') + '/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'autoscaler'], - pathParams: ['autoscaler', 'project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regioncommitments$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionAutoscalers.insert - * @desc Creates an autoscaler in the specified project using the data - * included in the request. - * @alias compute.regionAutoscalers.insert + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Regioncommitments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the commitment to return. + */ + commitment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regioncommitments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Commitment; + } + export interface Params$Resource$Regioncommitments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regioncommitments$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Regiondisks { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionDisks.createSnapshot + * @desc Creates a snapshot of this regional disk. + * @alias compute.regionDisks.createSnapshot * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.disk Name of the regional persistent disk to snapshot. + * @param {boolean=} params.guestFlush * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {().Snapshot} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + createSnapshot( + params?: Params$Resource$Regiondisks$Createsnapshot, + options?: MethodOptions): AxiosPromise; + createSnapshot( + params: Params$Resource$Regiondisks$Createsnapshot, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createSnapshot( + params: Params$Resource$Regiondisks$Createsnapshot, + callback: BodyResponseCallback): void; + createSnapshot(callback: BodyResponseCallback): void; + createSnapshot( + paramsOrCallback?: Params$Resource$Regiondisks$Createsnapshot| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regiondisks$Createsnapshot; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Createsnapshot; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers') + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -30230,121 +46714,70 @@ export namespace compute_alpha { /** - * compute.regionAutoscalers.list - * @desc Retrieves a list of autoscalers contained within the specified - * region. - * @alias compute.regionAutoscalers.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - 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 + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * compute.regionAutoscalers.patch - * @desc Updates an autoscaler in the specified project using the data - * included in the request. This method supports PATCH semantics and uses - * the JSON merge patch format and processing rules. - * @alias compute.regionAutoscalers.patch + * compute.regionDisks.delete + * @desc Deletes the specified regional persistent disk. Deleting a regional + * disk removes all the replicas of its data permanently and is + * irreversible. However, deleting a disk does not delete any snapshots + * previously made from the disk. You must separately delete snapshots. + * @alias compute.regionDisks.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.autoscaler Name of the autoscaler to patch. + * @param {string} params.disk Name of the regional persistent disk to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Regiondisks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regiondisks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regiondisks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regiondisks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers') + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -30356,112 +46789,128 @@ export namespace compute_alpha { /** - * compute.regionAutoscalers.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionAutoscalers.testIamPermissions + * compute.regionDisks.get + * @desc Returns a specified regional persistent disk. + * @alias compute.regionDisks.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.disk Name of the regional persistent disk to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regiondisks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regiondisks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regiondisks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regiondisks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Regiondisks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionAutoscalers.update - * @desc Updates an autoscaler in the specified project using the data - * included in the request. - * @alias compute.regionAutoscalers.update + * compute.regionDisks.insert + * @desc Creates a persistent regional disk in the specified project using + * the data included in the request. + * @alias compute.regionDisks.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.autoscaler Name of the autoscaler to update. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Autoscaler} params.resource Request body data + * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. + * @param {().Disk} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + insert( + params?: Params$Resource$Regiondisks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regiondisks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regiondisks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regiondisks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/autoscalers') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, @@ -30475,251 +46924,215 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - } - - export class Resource$Regionbackendservices { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionBackendServices.delete - * @desc Deletes the specified regional BackendService resource. - * @alias compute.regionBackendServices.delete + * compute.regionDisks.list + * @desc Retrieves the list of persistent disks contained within the + * specified region. + * @alias compute.regionDisks.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.backendService Name of the BackendService resource to delete. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Regiondisks$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Regiondisks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regiondisks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regiondisks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Regiondisks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$List; 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 + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * compute.regionBackendServices.get - * @desc Returns the specified regional BackendService resource. - * @alias compute.regionBackendServices.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.backendService Name of the BackendService resource to return. - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionBackendServices.getHealth - * @desc Gets the most recent health check results for this regional - * BackendService. - * @alias compute.regionBackendServices.getHealth + * compute.regionDisks.resize + * @desc Resizes the specified regional persistent disk. + * @alias compute.regionDisks.resize * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.backendService Name of the BackendService resource for which to get health. - * @param {string} params.project - * @param {string} params.region Name of the region scoping this request. - * @param {().ResourceGroupReference} params.resource Request body data + * @param {string} params.disk Name of the regional persistent disk. + * @param {string} params.project The project ID for this request. + * @param {string} params.region Name of the region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().RegionDisksResizeRequest} 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 */ - getHealth(params?: any, options?: MethodOptions): - AxiosPromise; - getHealth( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - getHealth( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + resize( + params?: Params$Resource$Regiondisks$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Regiondisks$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Regiondisks$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Regiondisks$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth') + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionBackendServices.insert - * @desc Creates a regional BackendService resource in the specified project - * using the data included in the request. There are several restrictions - * and guidelines to keep in mind when creating a regional backend service. - * Read Restrictions and Guidelines for more information. - * @alias compute.regionBackendServices.insert + * compute.regionDisks.setLabels + * @desc Sets the labels on the target regional disk. + * @alias compute.regionDisks.setLabels * @memberOf! () * * @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.region The region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {string} params.resource_ Name of the resource for this request. + * @param {().RegionSetLabelsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setLabels( + params?: Params$Resource$Regiondisks$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Regiondisks$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Regiondisks$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Regiondisks$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices') + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setLabels') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { @@ -30731,246 +47144,668 @@ export namespace compute_alpha { /** - * compute.regionBackendServices.list - * @desc Retrieves the list of regional BackendService resources available - * to the specified project in the given region. - * @alias compute.regionBackendServices.list + * compute.regionDisks.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionDisks.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regiondisks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regiondisks$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regiondisks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Regiondisks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regiondisks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices') + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Regiondisks$Createsnapshot { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk to snapshot. + */ + disk?: string; + /** + * + */ + guestFlush?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Snapshot; + } + export interface Params$Resource$Regiondisks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk to delete. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regiondisks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk to return. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regiondisks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Optional. Source image to restore onto a disk. + */ + sourceImage?: string; + /** + * Request body metadata + */ + resource?: Schema$Disk; + } + export interface Params$Resource$Regiondisks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regiondisks$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk. + */ + disk?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionDisksResizeRequest; + } + export interface Params$Resource$Regiondisks$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Regiondisks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Regiondisktypes { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } /** - * compute.regionBackendServices.patch - * @desc Updates the specified regional BackendService resource with the - * data included in the request. There are several restrictions and - * guidelines to keep in mind when updating a backend service. Read - * Restrictions and Guidelines for more information. This method supports - * PATCH semantics and uses the JSON merge patch format and processing - * rules. - * @alias compute.regionBackendServices.patch + * compute.regionDiskTypes.get + * @desc Returns the specified regional disk type. Gets a list of available + * disk types by making a list() request. + * @alias compute.regionDiskTypes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.backendService Name of the BackendService resource to patch. + * @param {string} params.diskType Name of the disk type to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data + * @param {string} params.region The name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regiondisktypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regiondisktypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regiondisktypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regiondisktypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisktypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisktypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') + '/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionBackendServices.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionBackendServices.testIamPermissions + * compute.regionDiskTypes.list + * @desc Retrieves a list of regional disk types available to the specified + * project. + * @alias compute.regionDiskTypes.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regiondisktypes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regiondisktypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regiondisktypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regiondisktypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisktypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisktypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/diskTypes') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regiondisktypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionBackendServices.update - * @desc Updates the specified regional BackendService resource with the - * data included in the request. There are several restrictions and - * guidelines to keep in mind when updating a backend service. Read - * Restrictions and Guidelines for more information. - * @alias compute.regionBackendServices.update + * Name of the disk type to return. + */ + diskType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regiondisktypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + } + + + export class Resource$Regionhealthchecks { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionHealthChecks.delete + * @desc Deletes the specified HealthCheck resource. + * @alias compute.regionHealthChecks.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.backendService Name of the BackendService resource to update. + * @param {string} params.healthCheck Name of the HealthCheck resource to delete. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().BackendService} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Regionhealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionhealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionhealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionhealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionhealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}') + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'backendService'], - pathParams: ['backendService', 'project', 'region'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -30979,182 +47814,209 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - } - - export class Resource$Regioncommitments { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionCommitments.aggregatedList - * @desc Retrieves an aggregated list of commitments. - * @alias compute.regionCommitments.aggregatedList + * compute.regionHealthChecks.get + * @desc Returns the specified HealthCheck resource. Gets a list of + * available health checks by making a list() request. + * @alias compute.regionHealthChecks.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.healthCheck Name of the HealthCheck resource to return. * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - aggregatedList( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regionhealthchecks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionhealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionhealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionhealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionhealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/aggregated/commitments') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionCommitments.get - * @desc Returns the specified commitment resource. Get a list of available - * commitments by making a list() request. - * @alias compute.regionCommitments.get + * compute.regionHealthChecks.insert + * @desc Creates a HealthCheck resource in the specified project using the + * data included in the request. + * @alias compute.regionHealthChecks.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.commitment Name of the commitment to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().HealthCheck} 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 */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Regionhealthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionhealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionhealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regionhealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionhealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}') + '/compute/alpha/projects/{project}/regions/{region}/healthChecks') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'commitment'], - pathParams: ['commitment', 'project', 'region'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionCommitments.insert - * @desc Creates a commitment in the specified project using the data - * included in the request. - * @alias compute.regionCommitments.insert + * compute.regionHealthChecks.list + * @desc Retrieves the list of HealthCheck resources available to the + * specified project. + * @alias compute.regionHealthChecks.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Commitment} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regionhealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionhealthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionhealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionhealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionhealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments') + '/compute/alpha/projects/{project}/regions/{region}/healthChecks') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, @@ -31163,79 +48025,92 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionCommitments.list - * @desc Retrieves a list of commitments contained within the specified - * region. - * @alias compute.regionCommitments.list + * compute.regionHealthChecks.patch + * @desc Updates a HealthCheck resource in the specified project using the + * data included in the request. This method supports PATCH semantics and + * uses the JSON merge patch format and processing rules. + * @alias compute.regionHealthChecks.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.healthCheck Name of the HealthCheck resource to patch. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().HealthCheck} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + patch( + params?: Params$Resource$Regionhealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionhealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regionhealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regionhealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionhealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments') + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'PATCH' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionCommitments.testIamPermissions + * compute.regionHealthChecks.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionCommitments.testIamPermissions + * @alias compute.regionHealthChecks.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -31247,35 +48122,49 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regionhealthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regionhealthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regionhealthchecks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Regionhealthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionhealthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -31291,71 +48180,72 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - } - - export class Resource$Regiondisks { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionDisks.createSnapshot - * @desc Creates a snapshot of this regional disk. - * @alias compute.regionDisks.createSnapshot + * compute.regionHealthChecks.update + * @desc Updates a HealthCheck resource in the specified project using the + * data included in the request. + * @alias compute.regionHealthChecks.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.disk Name of the regional persistent disk to snapshot. - * @param {boolean=} params.guestFlush + * @param {string} params.healthCheck Name of the HealthCheck resource to update. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().Snapshot} params.resource Request body data + * @param {().HealthCheck} 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 */ - createSnapshot(params?: any, options?: MethodOptions): - AxiosPromise; - createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, + update( + params?: Params$Resource$Regionhealthchecks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionhealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regionhealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionhealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionhealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionhealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot') + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'PUT' }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -31364,60 +48254,335 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regionhealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionDisks.delete - * @desc Deletes the specified regional persistent disk. Deleting a regional - * disk removes all the replicas of its data permanently and is - * irreversible. However, deleting a disk does not delete any snapshots - * previously made from the disk. You must separately delete snapshots. - * @alias compute.regionDisks.delete + * Name of the HealthCheck resource to delete. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionhealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to return. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionhealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Regionhealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionhealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to patch. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Regionhealthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regionhealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to update. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + + + export class Resource$Regioninstancegroupmanagers { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionInstanceGroupManagers.abandonInstances + * @desc Schedules a group action to remove the specified instances from the + * managed instance group. Abandoning an instance does not delete the + * instance, but it does remove the instance from any target pools that are + * applied by the managed instance group. This method reduces the targetSize + * of the managed instance group by the number of instances that you + * abandon. This operation is marked as DONE when the action is scheduled + * even if the instances have not yet been removed from the group. You must + * separately verify the status of the abandoning action with the + * listmanagedinstances method. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after + * the connection draining duration has elapsed before the VM instance is + * removed or deleted. You can specify a maximum of 1000 instances with + * this method per request. + * @alias compute.regionInstanceGroupManagers.abandonInstances * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.disk Name of the regional persistent disk to delete. + * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} 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 */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + abandonInstances( + params?: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; + abandonInstances( + params: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + abandonInstances( + params: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; + abandonInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -31429,108 +48594,146 @@ export namespace compute_alpha { /** - * compute.regionDisks.get - * @desc Returns a specified regional persistent disk. - * @alias compute.regionDisks.get + * compute.regionInstanceGroupManagers.applyUpdatesToInstances + * @desc Apply updates to selected instances the managed instance group. + * @alias compute.regionInstanceGroupManagers.applyUpdatesToInstances * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.disk Name of the regional persistent disk to return. + * @param {string} params.instanceGroupManager The name of the managed instance group, should conform to RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. + * @param {().RegionInstanceGroupManagersApplyUpdatesRequest} 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 */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + applyUpdatesToInstances( + params?: + Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances, + options?: MethodOptions): AxiosPromise; + applyUpdatesToInstances( + params: + Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + applyUpdatesToInstances( + params: + Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances, + callback: BodyResponseCallback): void; + applyUpdatesToInstances(callback: BodyResponseCallback): + void; + applyUpdatesToInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionDisks.insert - * @desc Creates a persistent regional disk in the specified project using - * the data included in the request. - * @alias compute.regionDisks.insert + * compute.regionInstanceGroupManagers.delete + * @desc Deletes the specified managed instance group and all of the + * instances in that group. + * @alias compute.regionInstanceGroupManagers.delete * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager Name of the managed instance group to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string=} params.sourceImage Optional. Source image to restore onto a disk. - * @param {().Disk} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Regioninstancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regioninstancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regioninstancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -31542,115 +48745,80 @@ export namespace compute_alpha { /** - * compute.regionDisks.list - * @desc Retrieves the list of persistent disks contained within the - * specified region. - * @alias compute.regionDisks.list + * compute.regionInstanceGroupManagers.deleteInstances + * @desc Schedules a group action to delete the specified instances in the + * managed instance group. The instances are also removed from any target + * pools of which they were a member. This method reduces the targetSize of + * the managed instance group by the number of instances that you delete. + * This operation is marked as DONE when the action is scheduled even if the + * instances are still being deleted. You must separately verify the status + * of the deleting action with the listmanagedinstances method. If the + * group is part of a backend service that has enabled connection draining, + * it can take up to 60 seconds after the connection draining duration has + * elapsed before the VM instance is removed or deleted. You can specify a + * maximum of 1000 instances with this method per request. + * @alias compute.regionInstanceGroupManagers.deleteInstances * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - 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 + - '/compute/alpha/projects/{project}/regions/{region}/disks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * compute.regionDisks.resize - * @desc Resizes the specified regional persistent disk. - * @alias compute.regionDisks.resize - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.disk Name of the regional persistent disk. - * @param {string} params.project The project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionDisksResizeRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} 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 */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; - resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + deleteInstances( + params?: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; + deleteInstances( + params: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteInstances( + params: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; + deleteInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'disk'], - pathParams: ['disk', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -31662,55 +48830,74 @@ export namespace compute_alpha { /** - * compute.regionDisks.setLabels - * @desc Sets the labels on the target regional disk. - * @alias compute.regionDisks.setLabels + * compute.regionInstanceGroupManagers.deletePerInstanceConfigs + * @desc Deletes selected per-instance configs for the managed instance + * group. + * @alias compute.regionInstanceGroupManagers.deletePerInstanceConfigs * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.region The region for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.resource_ Name of the resource for this request. - * @param {().RegionSetLabelsRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. + * @param {().RegionInstanceGroupManagerDeleteInstanceConfigReq} 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 */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; - setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + deletePerInstanceConfigs( + params?: + Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs, + options?: MethodOptions): AxiosPromise; + deletePerInstanceConfigs( + params: + Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deletePerInstanceConfigs( + params: + Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs, + callback: BodyResponseCallback): void; + deletePerInstanceConfigs(callback: BodyResponseCallback): + void; + deletePerInstanceConfigs( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setLabels') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -31722,139 +48909,158 @@ export namespace compute_alpha { /** - * compute.regionDisks.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionDisks.testIamPermissions + * compute.regionInstanceGroupManagers.get + * @desc Returns all of the details about the specified managed instance + * group. + * @alias compute.regionInstanceGroupManagers.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager Name of the managed instance group to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regioninstancegroupmanagers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regioninstancegroupmanagers$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioninstancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Regiondisktypes { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionDiskTypes.get - * @desc Returns the specified regional disk type. Get a list of available - * disk types by making a list() request. - * @alias compute.regionDiskTypes.get + * compute.regionInstanceGroupManagers.insert + * @desc Creates a managed instance group using the information that you + * specify in the request. After the group is created, it schedules an + * action to create instances in the group using the specified instance + * template. This operation is marked as DONE when the group is created even + * if the instances in the group have not yet been created. You must + * separately verify the status of the individual instances with the + * listmanagedinstances method. A regional managed instance group can + * contain up to 2000 instances. + * @alias compute.regionInstanceGroupManagers.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.diskType Name of the disk type to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InstanceGroupManager} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Regioninstancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regioninstancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regioninstancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'diskType'], - pathParams: ['diskType', 'project', 'region'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionDiskTypes.list - * @desc Retrieves a list of regional disk types available to the specified - * project. - * @alias compute.regionDiskTypes.list + * compute.regionInstanceGroupManagers.list + * @desc Retrieves the list of managed instance groups that are contained + * within the specified region. + * @alias compute.regionInstanceGroupManagers.list * @memberOf! () * * @param {object} params Parameters for request @@ -31863,38 +49069,56 @@ export namespace compute_alpha { * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$List, + options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Regioninstancegroupmanagers$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Regioninstancegroupmanagers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/diskTypes') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -31905,191 +49129,272 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters); } } - } - - export class Resource$Regionhealthchecks { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionHealthChecks.delete - * @desc Deletes the specified HealthCheck resource. - * @alias compute.regionHealthChecks.delete + * compute.regionInstanceGroupManagers.listManagedInstances + * @desc Lists the instances in the managed instance group and instances + * that are scheduled to be created. The list includes any current actions + * that the group has scheduled for its instances. + * @alias compute.regionInstanceGroupManagers.listManagedInstances * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.healthCheck Name of the HealthCheck resource to delete. + * @param {string=} params.filter + * @param {string} params.instanceGroupManager The name of the managed instance group. + * @param {integer=} params.maxResults + * @param {string=} params.order_by + * @param {string=} params.pageToken * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + listManagedInstances( + params?: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + options?: MethodOptions): + AxiosPromise; + listManagedInstances( + params: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + options: MethodOptions|BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>, + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + params: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances| + BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>, + callback?: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void| + AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest< + Schema$RegionInstanceGroupManagersListInstancesResponse>( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest< + Schema$RegionInstanceGroupManagersListInstancesResponse>( + parameters); } } /** - * compute.regionHealthChecks.get - * @desc Returns the specified HealthCheck resource. Get a list of available - * health checks by making a list() request. - * @alias compute.regionHealthChecks.get + * compute.regionInstanceGroupManagers.listPerInstanceConfigs + * @desc Lists all of the per-instance configs defined for the managed + * instance group. + * @alias compute.regionInstanceGroupManagers.listPerInstanceConfigs * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.healthCheck Name of the HealthCheck resource to return. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + listPerInstanceConfigs( + params?: + Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs, + options?: MethodOptions): + AxiosPromise; + listPerInstanceConfigs( + params: + Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs, + options: MethodOptions|BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>, + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>): void; + listPerInstanceConfigs( + params: + Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs, + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>): void; + listPerInstanceConfigs( + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>): void; + listPerInstanceConfigs( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs| + BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>, + callback?: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>): + void|AxiosPromise< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp> { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest< + Schema$RegionInstanceGroupManagersListInstanceConfigsResp>( + parameters); } } /** - * compute.regionHealthChecks.insert - * @desc Creates a HealthCheck resource in the specified project using the - * data included in the request. - * @alias compute.regionHealthChecks.insert + * compute.regionInstanceGroupManagers.patch + * @desc Updates a managed instance group using the information that you + * specify in the request. This operation is marked as DONE when the group + * is patched even if the instances in the group are still in the process of + * being patched. You must separately verify the status of the individual + * instances with the listmanagedinstances method. This method supports + * PATCH semantics and uses the JSON merge patch format and processing + * rules. + * @alias compute.regionInstanceGroupManagers.patch * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager The name of the instance group manager. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().InstanceGroupManager} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + patch( + params?: Params$Resource$Regioninstancegroupmanagers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regioninstancegroupmanagers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regioninstancegroupmanagers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'PATCH' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -32101,119 +49406,162 @@ export namespace compute_alpha { /** - * compute.regionHealthChecks.list - * @desc Retrieves the list of HealthCheck resources available to the - * specified project. - * @alias compute.regionHealthChecks.list + * compute.regionInstanceGroupManagers.recreateInstances + * @desc Schedules a group action to recreate the specified instances in the + * managed instance group. The instances are deleted and recreated using the + * current instance template for the managed instance group. This operation + * is marked as DONE when the action is scheduled even if the instances have + * not yet been recreated. You must separately verify the status of the + * recreating action with the listmanagedinstances method. If the group is + * part of a backend service that has enabled connection draining, it can + * take up to 60 seconds after the connection draining duration has elapsed + * before the VM instance is removed or deleted. You can specify a maximum + * of 1000 instances with this method per request. + * @alias compute.regionInstanceGroupManagers.recreateInstances * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().RegionInstanceGroupManagersRecreateRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + recreateInstances( + params?: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; + recreateInstances( + params: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + recreateInstances( + params: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Recreateinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionHealthChecks.patch - * @desc Updates a HealthCheck resource in the specified project using the - * data included in the request. This method supports PATCH semantics and - * uses the JSON merge patch format and processing rules. - * @alias compute.regionHealthChecks.patch + * compute.regionInstanceGroupManagers.resize + * @desc Changes the intended size for the managed instance group. If you + * increase the size, the group schedules actions to create new instances + * using the current instance template. If you decrease the size, the group + * schedules delete actions on one or more instances. The resize operation + * is marked DONE when the resize actions are scheduled even if the group + * has not yet added or deleted any instances. You must separately verify + * the status of the creating or deleting actions with the + * listmanagedinstances method. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after + * the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * @alias compute.regionInstanceGroupManagers.resize * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.healthCheck Name of the HealthCheck resource to patch. + * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {integer} params.size Number of instances that should exist in this instance group manager. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + resize( + params?: Params$Resource$Regioninstancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Regioninstancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Regioninstancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -32225,117 +49573,152 @@ export namespace compute_alpha { /** - * compute.regionHealthChecks.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionHealthChecks.testIamPermissions + * compute.regionInstanceGroupManagers.setAutoHealingPolicies + * @desc Modifies the autohealing policy for the instances in this managed + * instance group. + * @alias compute.regionInstanceGroupManagers.setAutoHealingPolicies * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setAutoHealingPolicies( + params?: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies, + options?: MethodOptions): AxiosPromise; + setAutoHealingPolicies( + params: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAutoHealingPolicies( + params: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies, + callback: BodyResponseCallback): void; + setAutoHealingPolicies(callback: BodyResponseCallback): + void; + setAutoHealingPolicies( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionHealthChecks.update - * @desc Updates a HealthCheck resource in the specified project using the - * data included in the request. - * @alias compute.regionHealthChecks.update + * compute.regionInstanceGroupManagers.setInstanceTemplate + * @desc Sets the instance template to use when creating new instances or + * recreating instances in this group. Existing instances are not affected. + * @alias compute.regionInstanceGroupManagers.setInstanceTemplate * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.healthCheck Name of the HealthCheck resource to update. + * @param {string} params.instanceGroupManager The name of the managed instance group. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().HealthCheck} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setInstanceTemplate( + params?: + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; + setInstanceTemplate( + params: Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setInstanceTemplate( + params: Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; + setInstanceTemplate( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'healthCheck'], - pathParams: ['healthCheck', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -32344,36 +49727,13 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - } - - export class Resource$Regioninstancegroupmanagers { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionInstanceGroupManagers.abandonInstances - * @desc Schedules a group action to remove the specified instances from the - * managed instance group. Abandoning an instance does not delete the - * instance, but it does remove the instance from any target pools that are - * applied by the managed instance group. This method reduces the targetSize - * of the managed instance group by the number of instances that you - * abandon. This operation is marked as DONE when the action is scheduled - * even if the instances have not yet been removed from the group. You must - * separately verify the status of the abandoning action with the - * listmanagedinstances method. If the group is part of a backend service - * that has enabled connection draining, it can take up to 60 seconds after - * the connection draining duration has elapsed before the VM instance is - * removed or deleted. You can specify a maximum of 1000 instances with - * this method per request. - * @alias compute.regionInstanceGroupManagers.abandonInstances + * compute.regionInstanceGroupManagers.setTargetPools + * @desc Modifies the target pools to which all new instances in this group + * are assigned. Existing instances in the group are not affected. + * @alias compute.regionInstanceGroupManagers.setTargetPools * @memberOf! () * * @param {object} params Parameters for request @@ -32381,38 +49741,53 @@ export namespace compute_alpha { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersAbandonInstancesRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; - abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setTargetPools( + params?: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTargetPools( + params: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; + setTargetPools( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -32431,100 +49806,134 @@ export namespace compute_alpha { /** - * compute.regionInstanceGroupManagers.applyUpdatesToInstances - * @desc Apply updates to selected instances the managed instance group. - * @alias compute.regionInstanceGroupManagers.applyUpdatesToInstances + * compute.regionInstanceGroupManagers.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionInstanceGroupManagers.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the managed instance group, should conform to RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. - * @param {().RegionInstanceGroupManagersApplyUpdatesRequest} params.resource Request body data + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - applyUpdatesToInstances(params?: any, options?: MethodOptions): - AxiosPromise; - applyUpdatesToInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - applyUpdatesToInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regioninstancegroupmanagers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regioninstancegroupmanagers$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regioninstancegroupmanagers$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.delete - * @desc Deletes the specified managed instance group and all of the - * instances in that group. - * @alias compute.regionInstanceGroupManagers.delete + * compute.regionInstanceGroupManagers.update + * @desc Updates a managed instance group using the information that you + * specify in the request. This operation is marked as DONE when the group + * is updated even if the instances in the group have not yet been updated. + * You must separately verify the status of the individual instances with + * the listmanagedinstances method. + * @alias compute.regionInstanceGroupManagers.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group to delete. + * @param {string} params.instanceGroupManager The name of the instance group manager. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InstanceGroupManager} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + update( + params?: Params$Resource$Regioninstancegroupmanagers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regioninstancegroupmanagers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regioninstancegroupmanagers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32533,7 +49942,7 @@ export namespace compute_alpha { (rootUrl + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'PUT' }, options), params, @@ -32550,58 +49959,68 @@ export namespace compute_alpha { /** - * compute.regionInstanceGroupManagers.deleteInstances - * @desc Schedules a group action to delete the specified instances in the - * managed instance group. The instances are also removed from any target - * pools of which they were a member. This method reduces the targetSize of - * the managed instance group by the number of instances that you delete. - * This operation is marked as DONE when the action is scheduled even if the - * instances are still being deleted. You must separately verify the status - * of the deleting action with the listmanagedinstances method. If the - * group is part of a backend service that has enabled connection draining, - * it can take up to 60 seconds after the connection draining duration has - * elapsed before the VM instance is removed or deleted. You can specify a - * maximum of 1000 instances with this method per request. - * @alias compute.regionInstanceGroupManagers.deleteInstances + * compute.regionInstanceGroupManagers.updatePerInstanceConfigs + * @desc Insert or patch (for the ones that already exist) per-instance + * configs for the managed instance group. perInstanceConfig.instance serves + * as a key used to distinguish whether to perform insert or patch. + * @alias compute.regionInstanceGroupManagers.updatePerInstanceConfigs * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersDeleteInstancesRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. + * @param {().RegionInstanceGroupManagerUpdateInstanceConfigReq} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; - deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + updatePerInstanceConfigs( + params?: + Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs, + options?: MethodOptions): AxiosPromise; + updatePerInstanceConfigs( + params: + Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updatePerInstanceConfigs( + params: + Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs, + callback: BodyResponseCallback): void; + updatePerInstanceConfigs(callback: BodyResponseCallback): + void; + updatePerInstanceConfigs( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -32617,198 +50036,748 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Regioninstancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Applyupdatestoinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group, should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request, should conform to RFC1035. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersApplyUpdatesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group to delete. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Deleteperinstanceconfigs { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request, should conform to RFC1035. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagerDeleteInstanceConfigReq; + } + export interface Params$Resource$Regioninstancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group to return. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Regioninstancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Listperinstanceconfigs { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The name of the managed instance group. It should conform to RFC1035. + */ + instanceGroupManager?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request, should conform to RFC1035. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Regioninstancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersRecreateRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Number of instances that should exist in this instance group manager. + */ + size?: number; + } + export interface Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetAutoHealingRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetTemplateRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetTargetPoolsRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroupManagers.deletePerInstanceConfigs - * @desc Deletes selected per-instance configs for the managed instance - * group. - * @alias compute.regionInstanceGroupManagers.deletePerInstanceConfigs - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. - * @param {().RegionInstanceGroupManagerDeleteInstanceConfigReq} 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 + * Project ID for this request. */ - deletePerInstanceConfigs(params?: any, options?: MethodOptions): - AxiosPromise; - deletePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - deletePerInstanceConfigs( - 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 + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Regioninstancegroupmanagers$Updateperinstanceconfigs { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroupManagers.get - * @desc Returns all of the details about the specified managed instance - * group. - * @alias compute.regionInstanceGroupManagers.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group to return. - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * The name of the managed instance group. It should conform to RFC1035. */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request, should conform to RFC1035. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagerUpdateInstanceConfigReq; + } + + + export class Resource$Regioninstancegroups { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; } /** - * compute.regionInstanceGroupManagers.insert - * @desc Creates a managed instance group using the information that you - * specify in the request. After the group is created, it schedules an - * action to create instances in the group using the specified instance - * template. This operation is marked as DONE when the group is created even - * if the instances in the group have not yet been created. You must - * separately verify the status of the individual instances with the - * listmanagedinstances method. A regional managed instance group can - * contain up to 2000 instances. - * @alias compute.regionInstanceGroupManagers.insert + * compute.regionInstanceGroups.get + * @desc Returns the specified instance group resource. + * @alias compute.regionInstanceGroups.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instanceGroup Name of the instance group resource to return. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regioninstancegroups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regioninstancegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioninstancegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioninstancegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regioninstancegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.list - * @desc Retrieves the list of managed instance groups that are contained - * within the specified region. - * @alias compute.regionInstanceGroupManagers.list + * compute.regionInstanceGroups.list + * @desc Retrieves the list of instance group resources contained within the + * specified region. + * @alias compute.regionInstanceGroups.list * @memberOf! () * * @param {object} params Parameters for request @@ -32822,36 +50791,47 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; + params?: Params$Resource$Regioninstancegroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Regioninstancegroups$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regioninstancegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regioninstancegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regioninstancegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -32862,215 +50842,167 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * compute.regionInstanceGroupManagers.listManagedInstances - * @desc Lists the instances in the managed instance group and instances - * that are scheduled to be created. The list includes any current actions - * that the group has scheduled for its instances. - * @alias compute.regionInstanceGroupManagers.listManagedInstances - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter - * @param {string} params.instanceGroupManager The name of the managed instance group. - * @param {integer=} params.maxResults - * @param {string=} params.order_by - * @param {string=} params.pageToken - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - listManagedInstances(params?: any, options?: MethodOptions): - AxiosPromise; - listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstancesResponse>, - callback?: BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstancesResponse>): void; - listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstancesResponse>, - callback?: BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstancesResponse>): 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 + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$RegionInstanceGroupManagersListInstancesResponse>( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest< - Schema$RegionInstanceGroupManagersListInstancesResponse>( - parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.listPerInstanceConfigs - * @desc Lists all of the per-instance configs defined for the managed - * instance group. - * @alias compute.regionInstanceGroupManagers.listPerInstanceConfigs + * compute.regionInstanceGroups.listInstances + * @desc Lists the instances in the specified instance group and displays + * information about the named ports. Depending on the specified options, + * this method can list all instances or only the instances that are + * running. + * @alias compute.regionInstanceGroups.listInstances * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. + * @param {string} params.instanceGroup Name of the regional instance group for which we want to list the instances. * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. + * @param {string} params.region Name of the region scoping this request. + * @param {().RegionInstanceGroupsListInstancesRequest} 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 */ - listPerInstanceConfigs(params?: any, options?: MethodOptions): - AxiosPromise; - listPerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp>, - callback?: BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp>): void; - listPerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp>, - callback?: BodyResponseCallback< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp>): - void|AxiosPromise< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp> { - if (typeof options === 'function') { - callback = options; + listInstances( + params?: Params$Resource$Regioninstancegroups$Listinstances, + options?: MethodOptions): + AxiosPromise; + listInstances( + params: Params$Resource$Regioninstancegroups$Listinstances, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + listInstances( + params: Params$Resource$Regioninstancegroups$Listinstances, + callback: + BodyResponseCallback): + void; + listInstances( + callback: + BodyResponseCallback): + void; + listInstances( + paramsOrCallback?: Params$Resource$Regioninstancegroups$Listinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Listinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Listinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp>( + createAPIRequest( parameters, callback); } else { - return createAPIRequest< - Schema$RegionInstanceGroupManagersListInstanceConfigsResp>( + return createAPIRequest( parameters); } } /** - * compute.regionInstanceGroupManagers.patch - * @desc Updates a managed instance group using the information that you - * specify in the request. This operation is marked as DONE when the group - * is patched even if the instances in the group are still in the process of - * being patched. You must separately verify the status of the individual - * instances with the listmanagedinstances method. This method supports - * PATCH semantics and uses the JSON merge patch format and processing - * rules. - * @alias compute.regionInstanceGroupManagers.patch + * compute.regionInstanceGroups.setNamedPorts + * @desc Sets the named ports for the specified regional instance group. + * @alias compute.regionInstanceGroups.setNamedPorts * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. + * @param {string} params.instanceGroup The name of the regional instance group where the named ports are updated. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setNamedPorts( + params?: Params$Resource$Regioninstancegroups$Setnamedports, + options?: MethodOptions): AxiosPromise; + setNamedPorts( + params: Params$Resource$Regioninstancegroups$Setnamedports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setNamedPorts( + params: Params$Resource$Regioninstancegroups$Setnamedports, + callback: BodyResponseCallback): void; + setNamedPorts(callback: BodyResponseCallback): void; + setNamedPorts( + paramsOrCallback?: Params$Resource$Regioninstancegroups$Setnamedports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Setnamedports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Setnamedports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -33082,195 +51014,424 @@ export namespace compute_alpha { /** - * compute.regionInstanceGroupManagers.recreateInstances - * @desc Schedules a group action to recreate the specified instances in the - * managed instance group. The instances are deleted and recreated using the - * current instance template for the managed instance group. This operation - * is marked as DONE when the action is scheduled even if the instances have - * not yet been recreated. You must separately verify the status of the - * recreating action with the listmanagedinstances method. If the group is - * part of a backend service that has enabled connection draining, it can - * take up to 60 seconds after the connection draining duration has elapsed - * before the VM instance is removed or deleted. You can specify a maximum - * of 1000 instances with this method per request. - * @alias compute.regionInstanceGroupManagers.recreateInstances + * compute.regionInstanceGroups.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionInstanceGroups.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersRecreateRequest} params.resource Request body data + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; - recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regioninstancegroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regioninstancegroups$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regioninstancegroups$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Regioninstancegroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances') + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regioninstancegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroupManagers.resize - * @desc Changes the intended size for the managed instance group. If you - * increase the size, the group schedules actions to create new instances - * using the current instance template. If you decrease the size, the group - * schedules delete actions on one or more instances. The resize operation - * is marked DONE when the resize actions are scheduled even if the group - * has not yet added or deleted any instances. You must separately verify - * the status of the creating or deleting actions with the - * listmanagedinstances method. If the group is part of a backend service - * that has enabled connection draining, it can take up to 60 seconds after - * the connection draining duration has elapsed before the VM instance is - * removed or deleted. - * @alias compute.regionInstanceGroupManagers.resize + * Name of the instance group resource to return. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroups$Listinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * Name of the regional instance group for which we want to list the + * instances. + */ + instanceGroup?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupsListInstancesRequest; + } + export interface Params$Resource$Regioninstancegroups$Setnamedports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the regional instance group where the named ports are + * updated. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupsSetNamedPortsRequest; + } + export interface Params$Resource$Regioninstancegroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Regionoperations { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionOperations.delete + * @desc Deletes the specified region-specific Operations resource. + * @alias compute.regionOperations.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.operation Name of the Operations resource to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {integer} params.size Number of instances that should exist in this instance group manager. + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; - resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + delete( + params?: Params$Resource$Regionoperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize') + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.setAutoHealingPolicies - * @desc Modifies the autohealing policy for the instances in this managed - * instance group. - * @alias compute.regionInstanceGroupManagers.setAutoHealingPolicies + * compute.regionOperations.get + * @desc Retrieves the specified region-specific Operations resource. + * @alias compute.regionOperations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.operation Name of the Operations resource to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAutoHealingPolicies(params?: any, options?: MethodOptions): - AxiosPromise; - setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regionoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies') + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -33282,117 +51443,150 @@ export namespace compute_alpha { /** - * compute.regionInstanceGroupManagers.setInstanceTemplate - * @desc Sets the instance template to use when creating new instances or - * recreating instances in this group. Existing instances are not affected. - * @alias compute.regionInstanceGroupManagers.setInstanceTemplate + * compute.regionOperations.list + * @desc Retrieves a list of Operation resources contained within the + * specified region. + * @alias compute.regionOperations.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the managed instance group. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; - setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regionoperations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate') + '/compute/alpha/projects/{project}/regions/{region}/operations') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.setTargetPools - * @desc Modifies the target pools to which all new instances in this group - * are assigned. Existing instances in the group are not affected. - * @alias compute.regionInstanceGroupManagers.setTargetPools + * compute.regionOperations.wait + * @desc Waits for the specified region-specific Operations resource until + * it is done or timeout, and retrieves the specified Operations + * resource. 1. Immediately returns when the operation is already done. 2. + * Waits for no more than the default deadline (2 minutes, subject to + * change) and then returns the current state of the operation, which may be + * DONE or still in progress. 3. Is best-effort: a. The server can wait less + * than the default deadline or zero seconds, in overload situations. b. + * There is no guarantee that the operation is actually done when + * returns. 4. User should be prepared to retry if the operation is not + * DONE. + * @alias compute.regionOperations.wait * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.operation Name of the Operations resource to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; - setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, + wait( + params?: Params$Resource$Regionoperations$Wait, + options?: MethodOptions): AxiosPromise; + wait( + params: Params$Resource$Regionoperations$Wait, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + wait( + params: Params$Resource$Regionoperations$Wait, + callback: BodyResponseCallback): void; + wait(callback: BodyResponseCallback): void; + wait( + paramsOrCallback?: Params$Resource$Regionoperations$Wait| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Wait; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Wait; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools') + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.getRoot() }; if (callback) { @@ -33401,184 +51595,416 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regionoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroupManagers.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionInstanceGroupManagers.testIamPermissions + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$Wait { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + + export class Resource$Regions { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regions.get + * @desc Returns the specified Region resource. Gets a list of available + * regions by making a list() request. + * @alias compute.regions.get * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region resource to return. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Regions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.update - * @desc Updates a managed instance group using the information that you - * specify in the request. This operation is marked as DONE when the group - * is updated even if the instances in the group have not yet been updated. - * You must separately verify the status of the individual instances with - * the listmanagedinstances method. - * @alias compute.regionInstanceGroupManagers.update + * compute.regions.list + * @desc Retrieves the list of region resources available to the specified + * project. + * @alias compute.regions.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Regions$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Regions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Regions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + url: (rootUrl + '/compute/alpha/projects/{project}/regions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroupManagers.updatePerInstanceConfigs - * @desc Insert or patch (for the ones that already exist) per-instance - * configs for the managed instance group. perInstanceConfig.instance serves - * as a key used to distinguish whether to perform insert or patch. - * @alias compute.regionInstanceGroupManagers.updatePerInstanceConfigs + * Project ID for this request. + */ + project?: string; + /** + * Name of the region resource to return. + */ + region?: string; + } + export interface Params$Resource$Regions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + + export class Resource$Regiontargethttpproxies { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionTargetHttpProxies.delete + * @desc Deletes the specified TargetHttpProxy resource. + * @alias compute.regionTargetHttpProxies.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the managed instance group. It should conform to RFC1035. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request, should conform to RFC1035. - * @param {().RegionInstanceGroupManagerUpdateInstanceConfigReq} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.targetHttpProxy Name of the TargetHttpProxy resource to delete. * @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 */ - updatePerInstanceConfigs(params?: any, options?: MethodOptions): - AxiosPromise; - updatePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - updatePerInstanceConfigs( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Regiontargethttpproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regiontargethttpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regiontargethttpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regiontargethttpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regiontargethttpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiontargethttpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs') + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.getRoot() }; if (callback) { @@ -33587,125 +52013,135 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } - } - - export class Resource$Regioninstancegroups { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionInstanceGroups.get - * @desc Returns the specified instance group resource. - * @alias compute.regionInstanceGroups.get + * compute.regionTargetHttpProxies.get + * @desc Returns the specified TargetHttpProxy resource in the specified + * region. Gets a list of available target HTTP proxies by making a list() + * request. + * @alias compute.regionTargetHttpProxies.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroup Name of the instance group resource to return. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string} params.targetHttpProxy Name of the TargetHttpProxy resource to return. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regiontargethttpproxies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regiontargethttpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regiontargethttpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regiontargethttpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regiontargethttpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiontargethttpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}') + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroups.list - * @desc Retrieves the list of instance group resources contained within the - * specified region. - * @alias compute.regionInstanceGroups.list + * compute.regionTargetHttpProxies.insert + * @desc Creates a TargetHttpProxy resource in the specified project and + * region using the data included in the request. + * @alias compute.regionTargetHttpProxies.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().TargetHttpProxy} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Regiontargethttpproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regiontargethttpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regiontargethttpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regiontargethttpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regiontargethttpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiontargethttpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups') + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, @@ -33714,136 +52150,151 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroups.listInstances - * @desc Lists the instances in the specified instance group and displays - * information about the named ports. Depending on the specified options, - * this method can list all instances or only the instances that are - * running. - * @alias compute.regionInstanceGroups.listInstances + * compute.regionTargetHttpProxies.list + * @desc Retrieves the list of TargetHttpProxy resources available to the + * specified project in the specified region. + * @alias compute.regionTargetHttpProxies.list * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {string} params.instanceGroup Name of the regional instance group for which we want to list the instances. * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {().RegionInstanceGroupsListInstancesRequest} 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 */ - listInstances(params?: any, options?: MethodOptions): - AxiosPromise; - listInstances( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; - listInstances( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regiontargethttpproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regiontargethttpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regiontargethttpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regiontargethttpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regiontargethttpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiontargethttpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances') + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest( - parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroups.setNamedPorts - * @desc Sets the named ports for the specified regional instance group. - * @alias compute.regionInstanceGroups.setNamedPorts + * compute.regionTargetHttpProxies.setUrlMap + * @desc Changes the URL map for TargetHttpProxy. + * @alias compute.regionTargetHttpProxies.setUrlMap * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroup The name of the regional instance group where the named ports are updated. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. + * @param {().UrlMapReference} 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 */ - setNamedPorts(params?: any, options?: MethodOptions): - AxiosPromise; - setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setUrlMap( + params?: Params$Resource$Regiontargethttpproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; + setUrlMap( + params: Params$Resource$Regiontargethttpproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUrlMap( + params: Params$Resource$Regiontargethttpproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; + setUrlMap( + paramsOrCallback?: Params$Resource$Regiontargethttpproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regiontargethttpproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiontargethttpproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts') + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], context: this.getRoot() }; if (callback) { @@ -33855,9 +52306,9 @@ export namespace compute_alpha { /** - * compute.regionInstanceGroups.testIamPermissions + * compute.regionTargetHttpProxies.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionInstanceGroups.testIamPermissions + * @alias compute.regionTargetHttpProxies.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -33869,35 +52320,50 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regiontargethttpproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regiontargethttpproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regiontargethttpproxies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Regiontargethttpproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regiontargethttpproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regiontargethttpproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -33915,7 +52381,209 @@ export namespace compute_alpha { } } - export class Resource$Regionoperations { + export interface Params$Resource$Regiontargethttpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy resource to delete. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Regiontargethttpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetHttpProxy resource to return. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Regiontargethttpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpProxy; + } + export interface Params$Resource$Regiontargethttpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regiontargethttpproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy to set a URL map for. + */ + targetHttpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + export interface Params$Resource$Regiontargethttpproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Regionurlmaps { root: Compute; constructor(root: Compute) { this.root = root; @@ -33928,161 +52596,202 @@ export namespace compute_alpha { /** - * compute.regionOperations.delete - * @desc Deletes the specified region-specific Operations resource. - * @alias compute.regionOperations.delete + * compute.regionUrlMaps.delete + * @desc Deletes the specified UrlMap resource. + * @alias compute.regionUrlMaps.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.operation Name of the Operations resource to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region 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 {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionurlmaps$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Regionurlmaps$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionurlmaps$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionurlmaps$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}') + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') .replace(/([^:]\/)\/+/g, '$1'), method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionOperations.get - * @desc Retrieves the specified region-specific Operations resource. - * @alias compute.regionOperations.get + * compute.regionUrlMaps.get + * @desc Returns the specified UrlMap resource. Gets a list of available URL + * maps by making a list() request. + * @alias compute.regionUrlMaps.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.operation Name of the Operations resource to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string} params.urlMap Name of the UrlMap resource to return. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regionurlmaps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionurlmaps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionurlmaps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionurlmaps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}') + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionOperations.list - * @desc Retrieves a list of Operation resources contained within the - * specified region. - * @alias compute.regionOperations.list + * compute.regionUrlMaps.insert + * @desc Creates a UrlMap resource in the specified project using the data + * included in the request. + * @alias compute.regionUrlMaps.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region 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. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + insert( + params?: Params$Resource$Regionurlmaps$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionurlmaps$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionurlmaps$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regionurlmaps$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/operations') + '/compute/alpha/projects/{project}/regions/{region}/urlMaps') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, @@ -34091,63 +52800,71 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Regions { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regions.get - * @desc Returns the specified Region resource. Get a list of available - * regions by making a list() request. - * @alias compute.regions.get + * compute.regionUrlMaps.list + * @desc Retrieves the list of UrlMap resources available to the specified + * project in the specified region. + * @alias compute.regionUrlMaps.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region resource to return. + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list(params?: Params$Resource$Regionurlmaps$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Regionurlmaps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionurlmaps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionurlmaps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}') - .replace(/([^:]\/)\/+/g, '$1'), + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps') + .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), @@ -34157,266 +52874,557 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regions.list - * @desc Retrieves the list of region resources available to the specified - * project. - * @alias compute.regions.list + * compute.regionUrlMaps.patch + * @desc Patches the specified UrlMap resource with the data included in the + * request. This method supports PATCH semantics and uses JSON merge patch + * format and processing rules. + * @alias compute.regionUrlMaps.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. + * @param {string} params.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`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + patch( + params?: Params$Resource$Regionurlmaps$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionurlmaps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regionurlmaps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regionurlmaps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/compute/alpha/projects/{project}/regions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: + (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' }, options), params, - requiredParams: ['project'], - pathParams: ['project'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Regiontargethttpproxies { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionTargetHttpProxies.delete - * @desc Deletes the specified TargetHttpProxy resource. - * @alias compute.regionTargetHttpProxies.delete + * compute.regionUrlMaps.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. + * @alias compute.regionUrlMaps.testIamPermissions * @memberOf! () * * @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 An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.targetHttpProxy Name of the TargetHttpProxy resource to delete. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regionurlmaps$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regionurlmaps$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regionurlmaps$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Regionurlmaps$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regionurlmaps$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}') + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionTargetHttpProxies.get - * @desc Returns the specified TargetHttpProxy resource in the specified - * region. Gets a list of available target HTTP proxies by making a list() + * compute.regionUrlMaps.update + * @desc Updates the specified UrlMap resource with the data included in the * request. - * @alias compute.regionTargetHttpProxies.get + * @alias compute.regionUrlMaps.update * @memberOf! () * * @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.targetHttpProxy Name of the TargetHttpProxy resource to return. + * @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`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + update( + params?: Params$Resource$Regionurlmaps$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionurlmaps$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regionurlmaps$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionurlmaps$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}') + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'PUT' }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionTargetHttpProxies.insert - * @desc Creates a TargetHttpProxy resource in the specified project and - * region using the data included in the request. - * @alias compute.regionTargetHttpProxies.insert + * compute.regionUrlMaps.validate + * @desc Runs static validation for the UrlMap. In particular, the tests of + * the provided UrlMap will be run. Calling this method does NOT create the + * UrlMap. + * @alias compute.regionUrlMaps.validate * @memberOf! () * * @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 An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().TargetHttpProxy} params.resource Request body data + * @param {string} params.urlMap Name of the UrlMap resource to be validated as. + * @param {().RegionUrlMapsValidateRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + validate( + params?: Params$Resource$Regionurlmaps$Validate, + options?: MethodOptions): AxiosPromise; + validate( + params: Params$Resource$Regionurlmaps$Validate, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + validate( + params: Params$Resource$Regionurlmaps$Validate, + callback: BodyResponseCallback): void; + validate(callback: BodyResponseCallback): + void; + validate( + paramsOrCallback?: Params$Resource$Regionurlmaps$Validate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionurlmaps$Validate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionurlmaps$Validate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies') + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Regionurlmaps$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support + * idempotency. + */ + requestId?: string; + /** + * Name of the UrlMap resource to delete. + */ + urlMap?: string; + } + export interface Params$Resource$Regionurlmaps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the UrlMap resource to return. + */ + urlMap?: string; + } + export interface Params$Resource$Regionurlmaps$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support + * idempotency. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Regionurlmaps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionurlmaps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support + * idempotency. + */ + requestId?: string; + /** + * Name of the UrlMap resource to patch. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Regionurlmaps$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regionurlmaps$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * begin_interface: MixerMutationRequestBuilder Request ID to support + * idempotency. + */ + requestId?: string; + /** + * Name of the UrlMap resource to update. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Regionurlmaps$Validate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the UrlMap resource to be validated as. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionUrlMapsValidateRequest; + } + + + export class Resource$Resourcepolicies { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } /** - * compute.regionTargetHttpProxies.list - * @desc Retrieves the list of TargetHttpProxy resources available to the - * specified project in the specified region. - * @alias compute.regionTargetHttpProxies.list + * compute.resourcePolicies.aggregatedList + * @desc Retrieves an aggregated list of resource policies. + * @alias compute.resourcePolicies.aggregatedList * @memberOf! () * * @param {object} params Parameters for request @@ -34425,107 +53433,137 @@ export namespace compute_alpha { * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + aggregatedList( + params?: Params$Resource$Resourcepolicies$Aggregatedlist, + options?: MethodOptions): + AxiosPromise; + aggregatedList( + params: Params$Resource$Resourcepolicies$Aggregatedlist, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Resourcepolicies$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Resourcepolicies$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Resourcepolicies$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies') + '/compute/alpha/projects/{project}/aggregated/resourcePolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project'], + pathParams: ['project'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters); } } /** - * compute.regionTargetHttpProxies.setUrlMap - * @desc Changes the URL map for TargetHttpProxy. - * @alias compute.regionTargetHttpProxies.setUrlMap + * compute.resourcePolicies.delete + * @desc Deletes the specified resource policy. + * @alias compute.resourcePolicies.delete * @memberOf! () * * @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.region Name of the region for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.targetHttpProxy Name of the TargetHttpProxy to set a URL map for. - * @param {().UrlMapReference} params.resource Request body data + * @param {string} params.resourcePolicy Name of the resource policy to delete. * @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 */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; - setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Resourcepolicies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Resourcepolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Resourcepolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Resourcepolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcepolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'targetHttpProxy'], - pathParams: ['project', 'region', 'targetHttpProxy'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.getRoot() }; if (callback) { @@ -34537,236 +53575,198 @@ export namespace compute_alpha { /** - * compute.regionTargetHttpProxies.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionTargetHttpProxies.testIamPermissions + * compute.resourcePolicies.get + * @desc Retrieves all information of the specified resource policy. + * @alias compute.resourcePolicies.get * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. + * @param {string} params.resourcePolicy Name of the resource policy to retrieve. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Resourcepolicies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Resourcepolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resourcepolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resourcepolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcepolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Get; 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 + - '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Regionurlmaps { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - getRoot() { - return this.root; - } - - - /** - * compute.regionUrlMaps.delete - * @desc Deletes the specified UrlMap resource. - * @alias compute.regionUrlMaps.delete - * @memberOf! () - * - * @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 {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionUrlMaps.get - * @desc Returns the specified UrlMap resource. Get a list of available URL - * maps by making a list() request. - * @alias compute.regionUrlMaps.get + * compute.resourcePolicies.getIamPolicy + * @desc Gets the access control policy for a resource. May be empty if no + * such policy or resource exists. + * @alias compute.resourcePolicies.getIamPolicy * @memberOf! () * * @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.urlMap Name of the UrlMap resource to return. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getIamPolicy( + params?: Params$Resource$Resourcepolicies$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Resourcepolicies$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Resourcepolicies$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Resourcepolicies$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Resourcepolicies$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionUrlMaps.insert - * @desc Creates a UrlMap resource in the specified project using the data - * included in the request. - * @alias compute.regionUrlMaps.insert + * compute.resourcePolicies.insert + * @desc Creates a new resource policy. + * @alias compute.resourcePolicies.insert * @memberOf! () * * @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 {string} params.region Name of the region for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().ResourcePolicy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resourcepolicies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Resourcepolicies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Resourcepolicies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Resourcepolicies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcepolicies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -34785,10 +53785,10 @@ export namespace compute_alpha { /** - * compute.regionUrlMaps.list - * @desc Retrieves the list of UrlMap resources available to the specified - * project in the specified region. - * @alias compute.regionUrlMaps.list + * compute.resourcePolicies.list + * @desc A list all the resource policies that have been configured for the + * specified project in specified region. + * @alias compute.resourcePolicies.list * @memberOf! () * * @param {object} params Parameters for request @@ -34797,38 +53797,52 @@ export namespace compute_alpha { * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Resourcepolicies$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + params: Params$Resource$Resourcepolicies$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Resourcepolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Resourcepolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcepolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies') .replace(/([^:]\/)\/+/g, '$1'), method: 'GET' }, @@ -34839,79 +53853,89 @@ export namespace compute_alpha { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionUrlMaps.patch - * @desc Patches the specified UrlMap resource with the data included in the - * request. This method supports PATCH semantics and uses JSON merge patch - * format and processing rules. - * @alias compute.regionUrlMaps.patch + * compute.resourcePolicies.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias compute.resourcePolicies.setIamPolicy * @memberOf! () * * @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 {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().Policy} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setIamPolicy( + params?: Params$Resource$Resourcepolicies$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Resourcepolicies$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Resourcepolicies$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Resourcepolicies$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Resourcepolicies$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionUrlMaps.testIamPermissions + * compute.resourcePolicies.testIamPermissions * @desc Returns permissions that a caller has on the specified resource. - * @alias compute.regionUrlMaps.testIamPermissions + * @alias compute.resourcePolicies.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request @@ -34923,35 +53947,48 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Resourcepolicies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Resourcepolicies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Resourcepolicies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Resourcepolicies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resourcepolicies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcepolicies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions') + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -34967,132 +54004,270 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Resourcepolicies$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionUrlMaps.update - * @desc Updates the specified UrlMap resource with the data included in the - * request. - * @alias compute.regionUrlMaps.update - * @memberOf! () - * - * @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`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Resourcepolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource policy to delete. + */ + resourcePolicy?: string; + } + export interface Params$Resource$Resourcepolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionUrlMaps.validate - * @desc Runs static validation for the UrlMap. In particular, the tests of - * the provided UrlMap will be run. Calling this method does NOT create the - * UrlMap. - * @alias compute.regionUrlMaps.validate - * @memberOf! () - * - * @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.urlMap Name of the UrlMap resource to be validated as. - * @param {().RegionUrlMapsValidateRequest} 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 + * Project ID for this request. */ - validate(params?: any, options?: MethodOptions): - AxiosPromise; - validate( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - validate( - 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 + - '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'region', 'urlMap'], - pathParams: ['project', 'region', 'urlMap'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the resource policy to retrieve. + */ + resourcePolicy?: string; + } + export interface Params$Resource$Resourcepolicies$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Resourcepolicies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourcePolicy; + } + export interface Params$Resource$Resourcepolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Resourcepolicies$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Resourcepolicies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; } + export class Resource$Routers { root: Compute; constructor(root: Compute) { @@ -35121,28 +54296,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Routers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Routers$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Routers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35181,26 +54369,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Routers$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Routers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35227,7 +54426,7 @@ export namespace compute_alpha { /** * compute.routers.get - * @desc Returns the specified Router resource. Get a list of available + * @desc Returns the specified Router resource. Gets a list of available * routers by making a list() request. * @alias compute.routers.get * @memberOf! () @@ -35240,23 +54439,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Routers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Routers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Routers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Routers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35295,28 +54504,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRouterStatus(params?: any, options?: MethodOptions): - AxiosPromise; getRouterStatus( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Getrouterstatus, + options?: MethodOptions): AxiosPromise; + getRouterStatus( + params: Params$Resource$Routers$Getrouterstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getRouterStatus( + params: Params$Resource$Routers$Getrouterstatus, + callback: BodyResponseCallback): void; + getRouterStatus( + callback: BodyResponseCallback): void; getRouterStatus( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Routers$Getrouterstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routers$Getrouterstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Getrouterstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35357,26 +54579,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Routers$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Routers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35419,26 +54652,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Routers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Routers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35481,26 +54725,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Routers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Routers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35541,28 +54796,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - preview(params?: any, options?: MethodOptions): + preview(params?: Params$Resource$Routers$Preview, options?: MethodOptions): AxiosPromise; preview( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Preview, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; preview( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Preview, + callback: BodyResponseCallback): void; + preview(callback: BodyResponseCallback): + void; + preview( + paramsOrCallback?: Params$Resource$Routers$Preview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Preview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Preview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35602,28 +54868,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Routers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Routers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Routers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35665,26 +54944,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Routers$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Routers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35709,6 +54999,340 @@ export namespace compute_alpha { } } + export interface Params$Resource$Routers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Routers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to delete. + */ + router?: string; + } + export interface Params$Resource$Routers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to return. + */ + router?: string; + } + export interface Params$Resource$Routers$Getrouterstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to query. + */ + router?: string; + } + export interface Params$Resource$Routers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Routers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to patch. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$Preview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to query. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Routers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to update. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + + export class Resource$Routes { root: Compute; constructor(root: Compute) { @@ -35735,26 +55359,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Routes$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Routes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35780,7 +55415,7 @@ export namespace compute_alpha { /** * compute.routes.get - * @desc Returns the specified Route resource. Get a list of available + * @desc Returns the specified Route resource. Gets a list of available * routes by making a list() request. * @alias compute.routes.get * @memberOf! () @@ -35792,23 +55427,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Routes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Routes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Routes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Routes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35847,26 +55492,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Routes$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Routes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35906,25 +55562,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Routes$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Routes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35961,28 +55629,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routes$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Routes$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Routes$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Routes$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routes$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36007,6 +55688,152 @@ export namespace compute_alpha { } } + export interface Params$Resource$Routes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Route resource to delete. + */ + route?: string; + } + export interface Params$Resource$Routes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the Route resource to return. + */ + route?: string; + } + export interface Params$Resource$Routes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Route; + } + export interface Params$Resource$Routes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Routes$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Securitypolicies { root: Compute; constructor(root: Compute) { @@ -36034,26 +55861,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addRule(params?: any, options?: MethodOptions): - AxiosPromise; addRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Addrule, + options?: MethodOptions): AxiosPromise; + addRule( + params: Params$Resource$Securitypolicies$Addrule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addRule( + params: Params$Resource$Securitypolicies$Addrule, + callback: BodyResponseCallback): void; + addRule(callback: BodyResponseCallback): void; addRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Securitypolicies$Addrule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Addrule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Addrule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36092,26 +55932,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Securitypolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Securitypolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36149,24 +56002,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Securitypolicies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Securitypolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Securitypolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Securitypolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36205,26 +56069,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRule(params?: any, options?: MethodOptions): - AxiosPromise; getRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Getrule, + options?: MethodOptions): AxiosPromise; + getRule( + params: Params$Resource$Securitypolicies$Getrule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getRule( + params: Params$Resource$Securitypolicies$Getrule, + callback: BodyResponseCallback): void; + getRule(callback: BodyResponseCallback): void; getRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Securitypolicies$Getrule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Getrule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Getrule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36265,26 +56142,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Securitypolicies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Securitypolicies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36325,26 +56215,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Securitypolicies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Securitypolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36383,26 +56286,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Securitypolicies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Securitypolicies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36443,26 +56359,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patchRule(params?: any, options?: MethodOptions): - AxiosPromise; patchRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Patchrule, + options?: MethodOptions): AxiosPromise; patchRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Patchrule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patchRule( + params: Params$Resource$Securitypolicies$Patchrule, + callback: BodyResponseCallback): void; + patchRule(callback: BodyResponseCallback): void; + patchRule( + paramsOrCallback?: Params$Resource$Securitypolicies$Patchrule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Patchrule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Patchrule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36501,26 +56430,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeRule(params?: any, options?: MethodOptions): - AxiosPromise; removeRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Removerule, + options?: MethodOptions): AxiosPromise; + removeRule( + params: Params$Resource$Securitypolicies$Removerule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeRule( + params: Params$Resource$Securitypolicies$Removerule, + callback: BodyResponseCallback): void; + removeRule(callback: BodyResponseCallback): void; removeRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Securitypolicies$Removerule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Removerule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Removerule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36559,28 +56501,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Securitypolicies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Securitypolicies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Securitypolicies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Securitypolicies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36605,6 +56560,276 @@ export namespace compute_alpha { } } + export interface Params$Resource$Securitypolicies$Addrule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + /** + * If true, the request will not be committed. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicyRule; + } + export interface Params$Resource$Securitypolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the security policy to delete. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to get. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Getrule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The priority of the rule to get from the security policy. + */ + priority?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to which the queried rule belongs. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * If true, the request will not be committed. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicy; + } + export interface Params$Resource$Securitypolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Securitypolicies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicy; + } + export interface Params$Resource$Securitypolicies$Patchrule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The priority of the rule to patch. + */ + priority?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + /** + * If true, the request will not be committed. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicyRule; + } + export interface Params$Resource$Securitypolicies$Removerule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The priority of the rule to remove from the security policy. + */ + priority?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Snapshots { root: Compute; constructor(root: Compute) { @@ -36635,26 +56860,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Snapshots$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Snapshots$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Snapshots$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Snapshots$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36681,7 +56917,7 @@ export namespace compute_alpha { /** * compute.snapshots.get - * @desc Returns the specified Snapshot resource. Get a list of available + * @desc Returns the specified Snapshot resource. Gets a list of available * snapshots by making a list() request. * @alias compute.snapshots.get * @memberOf! () @@ -36693,23 +56929,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Snapshots$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Snapshots$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Snapshots$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Snapshots$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36748,26 +56994,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Snapshots$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Snapshots$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Snapshots$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Snapshots$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Snapshots$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36809,26 +57067,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Snapshots$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Snapshots$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Snapshots$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Snapshots$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36867,26 +57136,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Snapshots$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Snapshots$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Snapshots$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Snapshots$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Snapshots$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36926,26 +57207,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Snapshots$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Snapshots$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Snapshots$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Snapshots$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Snapshots$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36984,28 +57278,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Snapshots$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Snapshots$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Snapshots$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Snapshots$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Snapshots$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37030,6 +57337,177 @@ export namespace compute_alpha { } } + export interface Params$Resource$Snapshots$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Snapshot resource to delete. + */ + snapshot?: string; + } + export interface Params$Resource$Snapshots$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the Snapshot resource to return. + */ + snapshot?: string; + } + export interface Params$Resource$Snapshots$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Snapshots$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Snapshots$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Snapshots$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Snapshots$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Sslcertificates { root: Compute; constructor(root: Compute) { @@ -37056,26 +57534,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Sslcertificates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslcertificates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sslcertificates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37102,7 +57593,7 @@ export namespace compute_alpha { /** * compute.sslCertificates.get - * @desc Returns the specified SslCertificate resource. Get a list of + * @desc Returns the specified SslCertificate resource. Gets a list of * available SSL certificates by making a list() request. * @alias compute.sslCertificates.get * @memberOf! () @@ -37114,24 +57605,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Sslcertificates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Sslcertificates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslcertificates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslcertificates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37171,26 +57673,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslcertificates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Sslcertificates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Sslcertificates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37231,26 +57746,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Sslcertificates$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sslcertificates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslcertificates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37288,28 +57816,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Sslcertificates$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Sslcertificates$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Sslcertificates$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Sslcertificates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslcertificates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37334,6 +57875,152 @@ export namespace compute_alpha { } } + export interface Params$Resource$Sslcertificates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SslCertificate resource to delete. + */ + sslCertificate?: string; + } + export interface Params$Resource$Sslcertificates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the SslCertificate resource to return. + */ + sslCertificate?: string; + } + export interface Params$Resource$Sslcertificates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SslCertificate; + } + export interface Params$Resource$Sslcertificates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslcertificates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Sslpolicies { root: Compute; constructor(root: Compute) { @@ -37362,26 +58049,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslpolicies$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Sslpolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sslpolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37420,23 +58120,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sslpolicies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sslpolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslpolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslpolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37463,7 +58174,7 @@ export namespace compute_alpha { /** * compute.sslPolicies.insert - * @desc Returns the specified SSL policy resource. Get a list of available + * @desc Returns the specified SSL policy resource. Gets a list of available * SSL policies by making a list() request. * @alias compute.sslPolicies.insert * @memberOf! () @@ -37476,26 +58187,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslpolicies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Sslpolicies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Sslpolicies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37536,26 +58260,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sslpolicies$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslpolicies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sslpolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslpolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37596,30 +58331,46 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listAvailableFeatures(params?: any, options?: MethodOptions): + listAvailableFeatures( + params?: Params$Resource$Sslpolicies$Listavailablefeatures, + options?: MethodOptions): AxiosPromise; listAvailableFeatures( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslpolicies$Listavailablefeatures, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$SslPoliciesListAvailableFeaturesResponse>): void; + listAvailableFeatures( + params: Params$Resource$Sslpolicies$Listavailablefeatures, + callback: BodyResponseCallback< Schema$SslPoliciesListAvailableFeaturesResponse>): void; + listAvailableFeatures(callback: BodyResponseCallback< + Schema$SslPoliciesListAvailableFeaturesResponse>): + void; listAvailableFeatures( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslpolicies$Listavailablefeatures| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$SslPoliciesListAvailableFeaturesResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslpolicies$Listavailablefeatures; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Listavailablefeatures; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37662,26 +58413,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Sslpolicies$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslpolicies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Sslpolicies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslpolicies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37720,28 +58483,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Sslpolicies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Sslpolicies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Sslpolicies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Sslpolicies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslpolicies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37766,6 +58542,241 @@ export namespace compute_alpha { } } + export interface Params$Resource$Sslpolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + } + export interface Params$Resource$Sslpolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + } + export interface Params$Resource$Sslpolicies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicy; + } + export interface Params$Resource$Sslpolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslpolicies$Listavailablefeatures { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslpolicies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicy; + } + export interface Params$Resource$Sslpolicies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Subnetworks { root: Compute; constructor(root: Compute) { @@ -37794,28 +58805,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Subnetworks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Subnetworks$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subnetworks$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Subnetworks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37854,26 +58878,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subnetworks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Subnetworks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37914,26 +58951,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - expandIpCidrRange(params?: any, options?: MethodOptions): - AxiosPromise; expandIpCidrRange( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Expandipcidrrange, + options?: MethodOptions): AxiosPromise; + expandIpCidrRange( + params: Params$Resource$Subnetworks$Expandipcidrrange, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; expandIpCidrRange( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Expandipcidrrange, + callback: BodyResponseCallback): void; + expandIpCidrRange(callback: BodyResponseCallback): void; + expandIpCidrRange( + paramsOrCallback?: Params$Resource$Subnetworks$Expandipcidrrange| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Expandipcidrrange; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Expandipcidrrange; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37960,7 +59010,7 @@ export namespace compute_alpha { /** * compute.subnetworks.get - * @desc Returns the specified subnetwork. Get a list of available + * @desc Returns the specified subnetwork. Gets a list of available * subnetworks list() request. * @alias compute.subnetworks.get * @memberOf! () @@ -37973,23 +59023,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Subnetworks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Subnetworks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subnetworks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subnetworks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subnetworks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38029,26 +59090,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Subnetworks$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Subnetworks$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38089,26 +59162,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Subnetworks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Subnetworks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38150,26 +59236,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subnetworks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subnetworks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Subnetworks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subnetworks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38210,30 +59307,46 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listUsable(params?: any, options?: MethodOptions): + listUsable( + params?: Params$Resource$Subnetworks$Listusable, + options?: MethodOptions): AxiosPromise; listUsable( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subnetworks$Listusable, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + listUsable( + params: Params$Resource$Subnetworks$Listusable, + callback: BodyResponseCallback): + void; + listUsable( + callback: BodyResponseCallback): + void; listUsable( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Subnetworks$Listusable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Listusable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Listusable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38280,26 +59393,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Subnetworks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subnetworks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Subnetworks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38340,26 +59465,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Subnetworks$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Subnetworks$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38401,26 +59538,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setPrivateIpGoogleAccess(params?: any, options?: MethodOptions): - AxiosPromise; setPrivateIpGoogleAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + options?: MethodOptions): AxiosPromise; + setPrivateIpGoogleAccess( + params: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setPrivateIpGoogleAccess( + params: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + callback: BodyResponseCallback): void; + setPrivateIpGoogleAccess(callback: BodyResponseCallback): + void; setPrivateIpGoogleAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Setprivateipgoogleaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Setprivateipgoogleaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Setprivateipgoogleaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38460,28 +59611,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Subnetworks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Subnetworks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Subnetworks$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Subnetworks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38506,6 +59670,430 @@ export namespace compute_alpha { } } + export interface Params$Resource$Subnetworks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Subnetworks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to delete. + */ + subnetwork?: string; + } + export interface Params$Resource$Subnetworks$Expandipcidrrange { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to update. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$SubnetworksExpandIpCidrRangeRequest; + } + export interface Params$Resource$Subnetworks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the Subnetwork resource to return. + */ + subnetwork?: string; + } + export interface Params$Resource$Subnetworks$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Subnetworks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subnetwork; + } + export interface Params$Resource$Subnetworks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Subnetworks$Listusable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Subnetworks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to patch. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$Subnetwork; + } + export interface Params$Resource$Subnetworks$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Subnetworks$Setprivateipgoogleaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$SubnetworksSetPrivateIpGoogleAccessRequest; + } + export interface Params$Resource$Subnetworks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targethttpproxies { root: Compute; constructor(root: Compute) { @@ -38535,29 +60123,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targethttpproxies$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targethttpproxies$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Targethttpproxies$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targethttpproxies$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpproxies$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38598,26 +60202,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targethttpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targethttpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38644,7 +60261,7 @@ export namespace compute_alpha { /** * compute.targetHttpProxies.get - * @desc Returns the specified TargetHttpProxy resource. Get a list of + * @desc Returns the specified TargetHttpProxy resource. Gets a list of * available target HTTP proxies by making a list() request. * @alias compute.targetHttpProxies.get * @memberOf! () @@ -38656,24 +60273,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targethttpproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targethttpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targethttpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targethttpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38713,26 +60341,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targethttpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targethttpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38774,28 +60415,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targethttpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targethttpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targethttpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38835,26 +60487,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; + setUrlMap( + params: Params$Resource$Targethttpproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; + setUrlMap( + paramsOrCallback?: Params$Resource$Targethttpproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38893,28 +60558,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targethttpproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targethttpproxies$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targethttpproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38939,6 +60617,238 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targethttpproxies$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy resource to delete. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Targethttpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetHttpProxy resource to return. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Targethttpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpProxy; + } + export interface Params$Resource$Targethttpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy to set a URL map for. + */ + targetHttpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + export interface Params$Resource$Targethttpproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targethttpsproxies { root: Compute; constructor(root: Compute) { @@ -38965,26 +60875,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targethttpsproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39011,7 +60934,7 @@ export namespace compute_alpha { /** * compute.targetHttpsProxies.get - * @desc Returns the specified TargetHttpsProxy resource. Get a list of + * @desc Returns the specified TargetHttpsProxy resource. Gets a list of * available target HTTPS proxies by making a list() request. * @alias compute.targetHttpsProxies.get * @memberOf! () @@ -39023,24 +60946,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targethttpsproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targethttpsproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targethttpsproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targethttpsproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39080,26 +61014,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targethttpsproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39141,28 +61088,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpsproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targethttpsproxies$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targethttpsproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targethttpsproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39202,26 +61161,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setQuicOverride(params?: any, options?: MethodOptions): - AxiosPromise; setQuicOverride( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setquicoverride, + options?: MethodOptions): AxiosPromise; + setQuicOverride( + params: Params$Resource$Targethttpsproxies$Setquicoverride, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setQuicOverride( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setquicoverride, + callback: BodyResponseCallback): void; + setQuicOverride(callback: BodyResponseCallback): void; + setQuicOverride( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Setquicoverride| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setquicoverride; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setquicoverride; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39261,26 +61233,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslCertificates(params?: any, options?: MethodOptions): - AxiosPromise; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setsslcertificates, + options?: MethodOptions): AxiosPromise; + setSslCertificates( + params: Params$Resource$Targethttpsproxies$Setsslcertificates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSslCertificates( + params: Params$Resource$Targethttpsproxies$Setsslcertificates, + callback: BodyResponseCallback): void; + setSslCertificates(callback: BodyResponseCallback): void; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Targethttpsproxies$Setsslcertificates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setsslcertificates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setsslcertificates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39323,26 +61309,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setsslpolicy, + options?: MethodOptions): AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setsslpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSslPolicy( + params: Params$Resource$Targethttpsproxies$Setsslpolicy, + callback: BodyResponseCallback): void; + setSslPolicy(callback: BodyResponseCallback): void; + setSslPolicy( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Setsslpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setsslpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setsslpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39382,26 +61381,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; + setUrlMap( + params: Params$Resource$Targethttpsproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUrlMap( + params: Params$Resource$Targethttpsproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpsproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39440,28 +61452,42 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpsproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targethttpsproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targethttpsproxies$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Targethttpsproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39486,6 +61512,283 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targethttpsproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to delete. + */ + targetHttpsProxy?: string; + } + export interface Params$Resource$Targethttpsproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetHttpsProxy resource to return. + */ + targetHttpsProxy?: string; + } + export interface Params$Resource$Targethttpsproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxy; + } + export interface Params$Resource$Targethttpsproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpsproxies$Setquicoverride { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to set the QUIC override policy + * for. The name should conform to RFC1035. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxiesSetQuicOverrideRequest; + } + export interface Params$Resource$Targethttpsproxies$Setsslcertificates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to set an SslCertificates resource + * for. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxiesSetSslCertificatesRequest; + } + export interface Params$Resource$Targethttpsproxies$Setsslpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicyReference; + } + export interface Params$Resource$Targethttpsproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + export interface Params$Resource$Targethttpsproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetinstances { root: Compute; constructor(root: Compute) { @@ -39514,29 +61817,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targetinstances$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetinstances$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Targetinstances$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetinstances$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetinstances$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39578,26 +61897,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetinstances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetinstances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetinstances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39624,7 +61956,7 @@ export namespace compute_alpha { /** * compute.targetInstances.get - * @desc Returns the specified TargetInstance resource. Get a list of + * @desc Returns the specified TargetInstance resource. Gets a list of * available target instances by making a list() request. * @alias compute.targetInstances.get * @memberOf! () @@ -39637,24 +61969,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetinstances$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetinstances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetinstances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetinstances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39695,26 +62038,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetinstances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetinstances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39757,26 +62113,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetinstances$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targetinstances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39816,28 +62185,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetinstances$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetinstances$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetinstances$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targetinstances$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetinstances$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39862,6 +62244,226 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targetinstances$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetinstances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetInstance resource to delete. + */ + targetInstance?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetInstance resource to return. + */ + targetInstance?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetInstance; + } + export interface Params$Resource$Targetinstances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetpools { root: Compute; constructor(root: Compute) { @@ -39890,26 +62492,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addHealthCheck(params?: any, options?: MethodOptions): - AxiosPromise; addHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Addhealthcheck, + options?: MethodOptions): AxiosPromise; + addHealthCheck( + params: Params$Resource$Targetpools$Addhealthcheck, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Addhealthcheck, + callback: BodyResponseCallback): void; + addHealthCheck(callback: BodyResponseCallback): void; + addHealthCheck( + paramsOrCallback?: Params$Resource$Targetpools$Addhealthcheck| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Addhealthcheck; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Addhealthcheck; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39950,26 +62565,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addInstance(params?: any, options?: MethodOptions): - AxiosPromise; addInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Addinstance, + options?: MethodOptions): AxiosPromise; addInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Addinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addInstance( + params: Params$Resource$Targetpools$Addinstance, + callback: BodyResponseCallback): void; + addInstance(callback: BodyResponseCallback): void; + addInstance( + paramsOrCallback?: Params$Resource$Targetpools$Addinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Addinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Addinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40010,28 +62638,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Targetpools$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Targetpools$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetpools$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40070,26 +62711,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetpools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetpools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40116,7 +62770,7 @@ export namespace compute_alpha { /** * compute.targetPools.get - * @desc Returns the specified target pool. Get a list of available target + * @desc Returns the specified target pool. Gets a list of available target * pools by making a list() request. * @alias compute.targetPools.get * @memberOf! () @@ -40129,23 +62783,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Targetpools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Targetpools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetpools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetpools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Targetpools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40186,28 +62851,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): - AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Gethealth, + options?: MethodOptions): AxiosPromise; + getHealth( + params: Params$Resource$Targetpools$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Targetpools$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): + void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetpools$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40248,26 +62926,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetpools$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetpools$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40310,26 +63001,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Targetpools$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Targetpools$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targetpools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Targetpools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40370,26 +63072,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeHealthCheck(params?: any, options?: MethodOptions): - AxiosPromise; removeHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Removehealthcheck, + options?: MethodOptions): AxiosPromise; removeHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Removehealthcheck, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeHealthCheck( + params: Params$Resource$Targetpools$Removehealthcheck, + callback: BodyResponseCallback): void; + removeHealthCheck(callback: BodyResponseCallback): void; + removeHealthCheck( + paramsOrCallback?: Params$Resource$Targetpools$Removehealthcheck| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Removehealthcheck; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Removehealthcheck; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40430,26 +63145,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeInstance(params?: any, options?: MethodOptions): - AxiosPromise; removeInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Removeinstance, + options?: MethodOptions): AxiosPromise; + removeInstance( + params: Params$Resource$Targetpools$Removeinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Removeinstance, + callback: BodyResponseCallback): void; + removeInstance(callback: BodyResponseCallback): void; + removeInstance( + paramsOrCallback?: Params$Resource$Targetpools$Removeinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Removeinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Removeinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40491,26 +63219,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackup(params?: any, options?: MethodOptions): - AxiosPromise; setBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Setbackup, + options?: MethodOptions): AxiosPromise; + setBackup( + params: Params$Resource$Targetpools$Setbackup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setBackup( + params: Params$Resource$Targetpools$Setbackup, + callback: BodyResponseCallback): void; + setBackup(callback: BodyResponseCallback): void; setBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Setbackup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Setbackup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Setbackup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40550,28 +63291,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetpools$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetpools$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetpools$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40596,6 +63350,433 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targetpools$Addhealthcheck { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target pool to add a health check to. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsAddHealthCheckRequest; + } + export interface Params$Resource$Targetpools$Addinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to add instances to. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsAddInstanceRequest; + } + export interface Params$Resource$Targetpools$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetpools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to delete. + */ + targetPool?: string; + } + export interface Params$Resource$Targetpools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetPool resource to return. + */ + targetPool?: string; + } + export interface Params$Resource$Targetpools$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetPool resource to which the queried instance belongs. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceReference; + } + export interface Params$Resource$Targetpools$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPool; + } + export interface Params$Resource$Targetpools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Targetpools$Removehealthcheck { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target pool to remove health checks from. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsRemoveHealthCheckRequest; + } + export interface Params$Resource$Targetpools$Removeinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to remove instances from. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsRemoveInstanceRequest; + } + export interface Params$Resource$Targetpools$Setbackup { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * New failoverRatio value for the target pool. + */ + failoverRatio?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to set a backup pool for. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + export interface Params$Resource$Targetpools$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetsslproxies { root: Compute; constructor(root: Compute) { @@ -40622,26 +63803,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetsslproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetsslproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40668,7 +63862,7 @@ export namespace compute_alpha { /** * compute.targetSslProxies.get - * @desc Returns the specified TargetSslProxy resource. Get a list of + * @desc Returns the specified TargetSslProxy resource. Gets a list of * available target SSL proxies by making a list() request. * @alias compute.targetSslProxies.get * @memberOf! () @@ -40680,24 +63874,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetsslproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetsslproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetsslproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetsslproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40737,26 +63942,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetsslproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetsslproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40797,26 +64015,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetsslproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetsslproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40855,26 +64086,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackendService(params?: any, options?: MethodOptions): - AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setbackendservice, + options?: MethodOptions): AxiosPromise; + setBackendService( + params: Params$Resource$Targetsslproxies$Setbackendservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setbackendservice, + callback: BodyResponseCallback): void; + setBackendService(callback: BodyResponseCallback): void; + setBackendService( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setbackendservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setbackendservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setbackendservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40914,26 +64158,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProxyHeader(params?: any, options?: MethodOptions): - AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setproxyheader, + options?: MethodOptions): AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setproxyheader, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setProxyHeader( + params: Params$Resource$Targetsslproxies$Setproxyheader, + callback: BodyResponseCallback): void; + setProxyHeader(callback: BodyResponseCallback): void; + setProxyHeader( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setproxyheader| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setproxyheader; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setproxyheader; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40973,26 +64230,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslCertificates(params?: any, options?: MethodOptions): - AxiosPromise; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setsslcertificates, + options?: MethodOptions): AxiosPromise; + setSslCertificates( + params: Params$Resource$Targetsslproxies$Setsslcertificates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setsslcertificates, + callback: BodyResponseCallback): void; + setSslCertificates(callback: BodyResponseCallback): void; + setSslCertificates( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setsslcertificates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setsslcertificates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setsslcertificates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41035,26 +64305,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setsslpolicy, + options?: MethodOptions): AxiosPromise; + setSslPolicy( + params: Params$Resource$Targetsslproxies$Setsslpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSslPolicy( + params: Params$Resource$Targetsslproxies$Setsslpolicy, + callback: BodyResponseCallback): void; + setSslPolicy(callback: BodyResponseCallback): void; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$Setsslpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setsslpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setsslpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41093,28 +64376,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetsslproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetsslproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetsslproxies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targetsslproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41139,6 +64435,283 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targetsslproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource to delete. + */ + targetSslProxy?: string; + } + export interface Params$Resource$Targetsslproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetSslProxy resource to return. + */ + targetSslProxy?: string; + } + export interface Params$Resource$Targetsslproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxy; + } + export interface Params$Resource$Targetsslproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetsslproxies$Setbackendservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose BackendService resource is to + * be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetBackendServiceRequest; + } + export interface Params$Resource$Targetsslproxies$Setproxyheader { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose ProxyHeader is to be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetProxyHeaderRequest; + } + export interface Params$Resource$Targetsslproxies$Setsslcertificates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to + * be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetSslCertificatesRequest; + } + export interface Params$Resource$Targetsslproxies$Setsslpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose SSL policy is to be set. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicyReference; + } + export interface Params$Resource$Targetsslproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targettcpproxies { root: Compute; constructor(root: Compute) { @@ -41165,26 +64738,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targettcpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targettcpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41211,7 +64797,7 @@ export namespace compute_alpha { /** * compute.targetTcpProxies.get - * @desc Returns the specified TargetTcpProxy resource. Get a list of + * @desc Returns the specified TargetTcpProxy resource. Gets a list of * available target TCP proxies by making a list() request. * @alias compute.targetTcpProxies.get * @memberOf! () @@ -41223,24 +64809,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targettcpproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targettcpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targettcpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targettcpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41280,26 +64877,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targettcpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targettcpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41340,26 +64950,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targettcpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targettcpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targettcpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41398,26 +65021,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackendService(params?: any, options?: MethodOptions): - AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Setbackendservice, + options?: MethodOptions): AxiosPromise; + setBackendService( + params: Params$Resource$Targettcpproxies$Setbackendservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Setbackendservice, + callback: BodyResponseCallback): void; + setBackendService(callback: BodyResponseCallback): void; + setBackendService( + paramsOrCallback?: Params$Resource$Targettcpproxies$Setbackendservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Setbackendservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Setbackendservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41457,26 +65093,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProxyHeader(params?: any, options?: MethodOptions): - AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Setproxyheader, + options?: MethodOptions): AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Setproxyheader, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setProxyHeader( + params: Params$Resource$Targettcpproxies$Setproxyheader, + callback: BodyResponseCallback): void; + setProxyHeader(callback: BodyResponseCallback): void; + setProxyHeader( + paramsOrCallback?: Params$Resource$Targettcpproxies$Setproxyheader| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Setproxyheader; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Setproxyheader; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41515,28 +65164,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targettcpproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targettcpproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targettcpproxies$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targettcpproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41561,6 +65223,217 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targettcpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource to delete. + */ + targetTcpProxy?: string; + } + export interface Params$Resource$Targettcpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetTcpProxy resource to return. + */ + targetTcpProxy?: string; + } + export interface Params$Resource$Targettcpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxy; + } + export interface Params$Resource$Targettcpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targettcpproxies$Setbackendservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource whose BackendService resource is to + * be set. + */ + targetTcpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxiesSetBackendServiceRequest; + } + export interface Params$Resource$Targettcpproxies$Setproxyheader { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + */ + targetTcpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxiesSetProxyHeaderRequest; + } + export interface Params$Resource$Targettcpproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetvpngateways { root: Compute; constructor(root: Compute) { @@ -41589,29 +65462,45 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targetvpngateways$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targetvpngateways$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41653,26 +65542,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetvpngateways$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetvpngateways$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41699,7 +65601,7 @@ export namespace compute_alpha { /** * compute.targetVpnGateways.get - * @desc Returns the specified target VPN gateway. Get a list of available + * @desc Returns the specified target VPN gateway. Gets a list of available * target VPN gateways by making a list() request. * @alias compute.targetVpnGateways.get * @memberOf! () @@ -41712,24 +65614,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetvpngateways$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetvpngateways$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetvpngateways$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetvpngateways$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41770,26 +65683,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetvpngateways$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetvpngateways$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41832,28 +65758,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetvpngateways$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetvpngateways$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetvpngateways$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetvpngateways$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41895,26 +65833,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Targetvpngateways$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Targetvpngateways$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetvpngateways$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41954,28 +65905,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetvpngateways$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetvpngateways$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetvpngateways$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetvpngateways$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42000,6 +65964,262 @@ export namespace compute_alpha { } } + export interface Params$Resource$Targetvpngateways$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetvpngateways$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target VPN gateway to delete. + */ + targetVpnGateway?: string; + } + export interface Params$Resource$Targetvpngateways$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the target VPN gateway to return. + */ + targetVpnGateway?: string; + } + export interface Params$Resource$Targetvpngateways$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetVpnGateway; + } + export interface Params$Resource$Targetvpngateways$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Targetvpngateways$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Targetvpngateways$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Urlmaps { root: Compute; constructor(root: Compute) { @@ -42026,26 +66246,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Urlmaps$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Urlmaps$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42071,7 +66302,7 @@ export namespace compute_alpha { /** * compute.urlMaps.get - * @desc Returns the specified UrlMap resource. Get a list of available URL + * @desc Returns the specified UrlMap resource. Gets a list of available URL * maps by making a list() request. * @alias compute.urlMaps.get * @memberOf! () @@ -42083,23 +66314,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Urlmaps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Urlmaps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Urlmaps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Urlmaps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42138,26 +66379,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Urlmaps$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Urlmaps$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42197,26 +66449,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - invalidateCache(params?: any, options?: MethodOptions): - AxiosPromise; invalidateCache( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Urlmaps$Invalidatecache, + options?: MethodOptions): AxiosPromise; + invalidateCache( + params: Params$Resource$Urlmaps$Invalidatecache, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; invalidateCache( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Invalidatecache, + callback: BodyResponseCallback): void; + invalidateCache(callback: BodyResponseCallback): void; + invalidateCache( + paramsOrCallback?: Params$Resource$Urlmaps$Invalidatecache| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Urlmaps$Invalidatecache; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Invalidatecache; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42258,26 +66523,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlmaps$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Urlmaps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42318,26 +66594,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Urlmaps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Urlmaps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42375,28 +66662,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Urlmaps$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Urlmaps$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Urlmaps$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Urlmaps$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Urlmaps$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42437,26 +66737,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Urlmaps$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Urlmaps$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42496,28 +66807,40 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - validate(params?: any, options?: MethodOptions): - AxiosPromise; validate( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Urlmaps$Validate, + options?: MethodOptions): AxiosPromise; + validate( + params: Params$Resource$Urlmaps$Validate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + validate( + params: Params$Resource$Urlmaps$Validate, + callback: BodyResponseCallback): void; + validate(callback: BodyResponseCallback): + void; validate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Urlmaps$Validate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Validate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Validate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42542,6 +66865,267 @@ export namespace compute_alpha { } } + export interface Params$Resource$Urlmaps$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to delete. + */ + urlMap?: string; + } + export interface Params$Resource$Urlmaps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the UrlMap resource to return. + */ + urlMap?: string; + } + export interface Params$Resource$Urlmaps$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Invalidatecache { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap scoping this request. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$CacheInvalidationRule; + } + export interface Params$Resource$Urlmaps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Urlmaps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to patch. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Urlmaps$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to update. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Validate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the UrlMap resource to be validated as. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapsValidateRequest; + } + + export class Resource$Vpntunnels { root: Compute; constructor(root: Compute) { @@ -42570,28 +67154,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Vpntunnels$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Vpntunnels$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Vpntunnels$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Vpntunnels$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42630,26 +67227,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Vpntunnels$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Vpntunnels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Vpntunnels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42676,7 +67285,7 @@ export namespace compute_alpha { /** * compute.vpnTunnels.get - * @desc Returns the specified VpnTunnel resource. Get a list of available + * @desc Returns the specified VpnTunnel resource. Gets a list of available * VPN tunnels by making a list() request. * @alias compute.vpnTunnels.get * @memberOf! () @@ -42689,23 +67298,34 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Vpntunnels$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Vpntunnels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Vpntunnels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Vpntunnels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42746,26 +67366,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Vpntunnels$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Vpntunnels$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Vpntunnels$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42808,26 +67440,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Vpntunnels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Vpntunnels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Vpntunnels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42869,26 +67512,39 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Vpntunnels$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Vpntunnels$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Vpntunnels$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42928,28 +67584,41 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Vpntunnels$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Vpntunnels$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Vpntunnels$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Vpntunnels$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Vpntunnels$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42974,6 +67643,262 @@ export namespace compute_alpha { } } + export interface Params$Resource$Vpntunnels$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Vpntunnels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the VpnTunnel resource to delete. + */ + vpnTunnel?: string; + } + export interface Params$Resource$Vpntunnels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the VpnTunnel resource to return. + */ + vpnTunnel?: string; + } + export interface Params$Resource$Vpntunnels$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$VpnTunnel; + } + export interface Params$Resource$Vpntunnels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Vpntunnels$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Vpntunnels$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Zoneoperations { root: Compute; constructor(root: Compute) { @@ -43000,22 +67925,37 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneoperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Zoneoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Zoneoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43054,23 +67994,35 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43113,26 +68065,38 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Zoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43154,8 +68118,203 @@ export namespace compute_alpha { return createAPIRequest(parameters); } } + + + /** + * compute.zoneOperations.wait + * @desc Waits for the specified zone-specific Operations resource until it + * is done or timeout, and retrieves the specified Operations resource. 1. + * Immediately returns when the operation is already done. 2. Waits for no + * more than the default deadline (2 minutes, subject to change) and then + * returns the current state of the operation, which may be DONE or still in + * progress. 3. Is best-effort: a. The server can wait less than the default + * deadline or zero seconds, in overload situations. b. There is no + * guarantee that the operation is actually done when returns. 4. User + * should be prepared to retry if the operation is not DONE. + * @alias compute.zoneOperations.wait + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.operation Name of the Operations resource to return. + * @param {string} params.project Project ID for this request. + * @param {string} params.zone Name of the zone for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + wait(params?: Params$Resource$Zoneoperations$Wait, options?: MethodOptions): + AxiosPromise; + wait( + params: Params$Resource$Zoneoperations$Wait, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + wait( + params: Params$Resource$Zoneoperations$Wait, + callback: BodyResponseCallback): void; + wait(callback: BodyResponseCallback): void; + wait( + paramsOrCallback?: Params$Resource$Zoneoperations$Wait| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Wait; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Wait; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Zoneoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$Wait { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; } + export class Resource$Zones { root: Compute; constructor(root: Compute) { @@ -43170,7 +68329,7 @@ export namespace compute_alpha { /** * compute.zones.get - * @desc Returns the specified Zone resource. Get a list of available zones + * @desc Returns the specified Zone resource. Gets a list of available zones * by making a list() request. * @alias compute.zones.get * @memberOf! () @@ -43182,21 +68341,33 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zones$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zones$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zones$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zones$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zones$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zones$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43236,25 +68407,36 @@ export namespace compute_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Zones$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zones$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zones$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Zones$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zones$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zones$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43276,4 +68458,74 @@ export namespace compute_alpha { } } } + + export interface Params$Resource$Zones$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone resource to return. + */ + zone?: string; + } + export interface Params$Resource$Zones$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } } diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 9aa45c400d1..65e9a1f5dfb 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace compute_beta { + export interface Options extends GlobalOptions { version: 'beta'; } + /** * Compute Engine API * @@ -182,13 +185,13 @@ export namespace compute_beta { /** * The number of the guest accelerator cards exposed to this instance. */ - acceleratorCount: number; + acceleratorCount?: number; /** * Full or partial URL of the accelerator type resource to attach to this * instance. If you are creating an instance template, specify only the * accelerator name. */ - acceleratorType: string; + acceleratorType?: string; } /** * An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) @@ -198,60 +201,60 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this accelerator * type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#acceleratorType * for accelerator types. */ - kind: string; + kind?: string; /** * [Output Only] Maximum accelerator cards allowed per instance. */ - maximumCardsPerInstance: number; + maximumCardsPerInstance?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the accelerator type resides, * such as us-central1-a. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$AcceleratorTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AcceleratorTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#acceleratorTypeAggregatedList for aggregated lists of accelerator * types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -259,15 +262,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of accelerator types. @@ -276,16 +279,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AcceleratorType resources. */ - items: Schema$AcceleratorType[]; + items?: Schema$AcceleratorType[]; /** * [Output Only] Type of resource. Always compute#acceleratorTypeList for * lists of accelerator types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -293,26 +296,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AcceleratorTypesScopedList { /** * [Output Only] A list of accelerator types contained in this scope. */ - acceleratorTypes: Schema$AcceleratorType[]; + acceleratorTypes?: Schema$AcceleratorType[]; /** * [Output Only] An informational warning that appears when the accelerator * types list is empty. */ - warning: any; + warning?: any; } /** * An access configuration attached to an instance's network interface. @@ -323,13 +326,13 @@ export namespace compute_beta { * [Output Only] Type of the resource. Always compute#accessConfig for * access configs. */ - kind: string; + kind?: string; /** * The name of this access configuration. The default and recommended name * is External NAT but you can use any arbitrary string you would like. For * example, My external IP or Network Access. */ - name: string; + name?: string; /** * An external IP address associated with this instance. Specify an unused * static external IP address available to the project or leave this field @@ -337,7 +340,7 @@ export namespace compute_beta { * specify a static external IP address, it must live in the same region as * the zone of the instance. */ - natIP: string; + natIP?: string; /** * This signifies the networking tier used for configuring this access * configuration and can only take the following values: PREMIUM, STANDARD. @@ -346,21 +349,21 @@ export namespace compute_beta { * with a valid external IP address is specified, it must match that of the * networkTier associated with the Address resource owning that IP. */ - networkTier: string; + networkTier?: string; /** * The DNS domain name for the public PTR record. This field can only be set * when the set_public_ptr field is enabled. */ - publicPtrDomainName: string; + publicPtrDomainName?: string; /** * Specifies whether a public DNS ?PTR? record should be created to map the * external IP address of the instance to a DNS domain name. */ - setPublicPtr: boolean; + setPublicPtr?: boolean; /** * The type of configuration. The default and only option is ONE_TO_ONE_NAT. */ - type: string; + type?: string; } /** * A reserved address resource. (== resource_for beta.addresses ==) (== @@ -371,35 +374,35 @@ export namespace compute_beta { /** * The static IP address represented by this resource. */ - address: string; + address?: string; /** * The type of address to reserve, either INTERNAL or EXTERNAL. If * unspecified, defaults to EXTERNAL. */ - addressType: string; + addressType?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The IP Version that will be used by this address. Valid options are IPV4 * or IPV6. This can only be specified for a global address. */ - ipVersion: string; + ipVersion?: string; /** * [Output Only] Type of the resource. Always compute#address for addresses. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this Address, which is * essentially a hash of the labels set used for optimistic locking. The @@ -408,13 +411,13 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an Address. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this Address resource. These can be later modified by * the setLabels method. Each label key/value must comply with RFC1035. * Label values may be empty. */ - labels: any; + labels?: any; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -424,24 +427,24 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * This signifies the networking tier used for configuring this Address and * can only take the following values: PREMIUM , STANDARD. If this field is * not specified, it is assumed to be PREMIUM. */ - networkTier: string; + networkTier?: string; /** * [Output Only] URL of the region where the regional address resides. This * field is not applicable to global addresses. You must specify this field * as part of the HTTP request URL. You cannot set this field in the request * body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the address, which can be one of RESERVING, * RESERVED, or IN_USE. An address that is RESERVING is currently in the @@ -449,33 +452,33 @@ export namespace compute_beta { * available to use. An IN_USE address is currently being used by another * resource and is not available. */ - status: string; + status?: string; /** * The URL of the subnetwork in which to reserve the address. If an IP * address is specified, it must be within the subnetwork's IP range. * This field can only be used with INTERNAL type with * GCE_ENDPOINT/DNS_RESOLVER purposes. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URLs of the resources that are using this address. */ - users: string[]; + users?: string[]; } export interface Schema$AddressAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AddressesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#addressAggregatedList for * aggregated lists of addresses. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -483,26 +486,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AddressesScopedList { /** * [Output Only] A list of addresses contained in this scope. */ - addresses: Schema$Address[]; + addresses?: Schema$Address[]; /** * [Output Only] Informational warning which replaces the list of addresses * when the list is empty. */ - warning: any; + warning?: any; } /** * Contains a list of addresses. @@ -511,16 +514,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Address resources. */ - items: Schema$Address[]; + items?: Schema$Address[]; /** * [Output Only] Type of resource. Always compute#addressList for lists of * addresses. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -528,15 +531,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An alias IP range attached to an instance's network interface. @@ -549,13 +552,13 @@ export namespace compute_beta { * a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR * format string (e.g. 10.1.2.0/24). */ - ipCidrRange: string; + ipCidrRange?: string; /** * Optional subnetwork secondary range name specifying the secondary range * from which to allocate the IP CIDR range for this alias IP range. If left * unspecified, the primary range of the subnetwork will be used. */ - subnetworkRangeName: string; + subnetworkRangeName?: string; } /** * An instance-attached disk resource. @@ -565,12 +568,12 @@ export namespace compute_beta { * Specifies whether the disk will be auto-deleted when the instance is * deleted (but not when the disk is detached from the instance). */ - autoDelete: boolean; + autoDelete?: boolean; /** * Indicates that this is a boot disk. The virtual machine will use the * first partition of the disk for its root filesystem. */ - boot: boolean; + boot?: boolean; /** * Specifies a unique device name of your choice that is reflected into the * /dev/disk/by-id/google-* tree of a Linux operating system running within @@ -580,7 +583,7 @@ export namespace compute_beta { * persistent-disks-x, where x is a number assigned by Google Compute * Engine. This field is only applicable for persistent disks. */ - deviceName: string; + deviceName?: string; /** * Encrypts or decrypts a disk using a customer-supplied encryption key. If * you are creating a new disk, this field encrypts the new disk using an @@ -597,19 +600,19 @@ export namespace compute_beta { * encryption keys, so you cannot use your own keys to encrypt disks in a * managed instance group. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] A zero-based index to this disk, where 0 is reserved for * the boot disk. If you have many disks attached to an instance, each disk * would have a unique index number. */ - index: number; + index?: number; /** * [Input Only] Specifies the parameters for a new disk that will be created * alongside the new instance. Use initialization parameters to create boot @@ -617,7 +620,7 @@ export namespace compute_beta { * mutually exclusive with the source property; you can only define one or * the other, but not both. */ - initializeParams: Schema$AttachedDiskInitializeParams; + initializeParams?: Schema$AttachedDiskInitializeParams; /** * Specifies the disk interface to use for attaching this disk, which is * either SCSI or NVME. The default is SCSI. Persistent disks must always @@ -626,21 +629,21 @@ export namespace compute_beta { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. */ - interface: string; + interface?: string; /** * [Output Only] Type of the resource. Always compute#attachedDisk for * attached disks. */ - kind: string; + kind?: string; /** * [Output Only] Any valid publicly visible licenses. */ - licenses: string[]; + licenses?: string[]; /** * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If * not specified, the default is to attach the disk in READ_WRITE mode. */ - mode: string; + mode?: string; /** * Specifies a valid partial or full URL to an existing Persistent Disk * resource. When creating a new instance, one of @@ -650,12 +653,12 @@ export namespace compute_beta { * Note that for InstanceTemplate, specify the disk name, not the URL for * the disk. */ - source: string; + source?: string; /** * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. */ - type: string; + type?: string; } /** * [Input Only] Specifies the parameters for a new disk that will be created @@ -669,15 +672,15 @@ export namespace compute_beta { * Specifies the disk name. If not specified, the default is to use the name * of the instance. */ - diskName: string; + diskName?: string; /** * Specifies the size of the disk in base-2 GB. */ - diskSizeGb: string; + diskSizeGb?: string; /** * [Deprecated] Storage type of the disk. */ - diskStorageType: string; + diskStorageType?: string; /** * Specifies the disk type to use to create the instance. If not specified, * the default is pd-standard, specified using the full URL. For example: @@ -690,13 +693,13 @@ export namespace compute_beta { * zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is * the name of the disk type, not URL. */ - diskType: string; + diskType?: string; /** * Labels to apply to this disk. These can be later modified by the * disks.setLabels method. This field is only applicable for persistent * disks. */ - labels: any; + labels?: any; /** * The source image to create this disk. When creating a new instance, one * of initializeParams.sourceImage or disks.source is required except for @@ -713,7 +716,7 @@ export namespace compute_beta { * family/family-name: global/images/family/my-image-family If the source * image is deleted later, this field will not be set. */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. Instance @@ -721,7 +724,7 @@ export namespace compute_beta { * create disks for instances in a managed instance group if the source * images are encrypted with your own keys. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; } /** * Specifies the audit configuration for a service. The configuration @@ -749,14 +752,14 @@ export namespace compute_beta { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; - exemptedMembers: string[]; + auditLogConfigs?: Schema$AuditLogConfig[]; + exemptedMembers?: string[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -772,11 +775,11 @@ export namespace compute_beta { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of [Binding.members][]. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Authorization-related information used by Cloud Audit Logging. @@ -785,7 +788,7 @@ export namespace compute_beta { /** * The type of the permission that was checked. */ - permissionType: string; + permissionType?: string; } /** * Represents an Autoscaler resource. Autoscalers allow you to automatically @@ -803,26 +806,26 @@ export namespace compute_beta { * are specified, the default will be to autoscale based on cpuUtilization * to 0.6 or 60%. */ - autoscalingPolicy: Schema$AutoscalingPolicy; + autoscalingPolicy?: Schema$AutoscalingPolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#autoscaler for * autoscalers. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -832,50 +835,50 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the instance group resides (for * autoscalers living in regional scope). */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the autoscaler configuration. */ - status: string; + status?: string; /** * [Output Only] Human-readable details about the current state of the * autoscaler. Read the documentation for Commonly returned status messages * for examples of status messages you might encounter. */ - statusDetails: Schema$AutoscalerStatusDetails[]; + statusDetails?: Schema$AutoscalerStatusDetails[]; /** * URL of the managed instance group that this autoscaler will scale. */ - target: string; + target?: string; /** * [Output Only] URL of the zone where the instance group resides (for * autoscalers living in zonal scope). */ - zone: string; + zone?: string; } export interface Schema$AutoscalerAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AutoscalersScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#autoscalerAggregatedList * for aggregated lists of autoscalers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -883,15 +886,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Autoscaler resources. @@ -900,16 +903,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Autoscaler resources. */ - items: Schema$Autoscaler[]; + items?: Schema$Autoscaler[]; /** * [Output Only] Type of resource. Always compute#autoscalerList for lists * of autoscalers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -917,36 +920,36 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AutoscalersScopedList { /** * [Output Only] A list of autoscalers contained in this scope. */ - autoscalers: Schema$Autoscaler[]; + autoscalers?: Schema$Autoscaler[]; /** * [Output Only] Informational warning which replaces the list of * autoscalers when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$AutoscalerStatusDetails { /** * The status message. */ - message: string; + message?: string; /** * The type of error returned. */ - type: string; + type?: string; } /** * Cloud Autoscaler policy. @@ -962,32 +965,33 @@ export namespace compute_beta { * long an instance may take to initialize. To do this, create an instance * and time the startup process. */ - coolDownPeriodSec: number; + coolDownPeriodSec?: number; /** * Defines the CPU utilization policy that allows the autoscaler to scale * based on the average CPU utilization of a managed instance group. */ - cpuUtilization: Schema$AutoscalingPolicyCpuUtilization; + cpuUtilization?: Schema$AutoscalingPolicyCpuUtilization; /** * Configuration parameters of autoscaling based on a custom metric. */ - customMetricUtilizations: Schema$AutoscalingPolicyCustomMetricUtilization[]; + customMetricUtilizations?: + Schema$AutoscalingPolicyCustomMetricUtilization[]; /** * Configuration parameters of autoscaling based on load balancer. */ - loadBalancingUtilization: Schema$AutoscalingPolicyLoadBalancingUtilization; + loadBalancingUtilization?: Schema$AutoscalingPolicyLoadBalancingUtilization; /** * The maximum number of instances that the autoscaler can scale up to. This * is required when creating or updating an autoscaler. The maximum number * of replicas should not be lower than minimal number of replicas. */ - maxNumReplicas: number; + maxNumReplicas?: number; /** * The minimum number of replicas that the autoscaler can scale down to. * This cannot be less than 0. If not provided, autoscaler will choose a * default value depending on maximum number of instances allowed. */ - minNumReplicas: number; + minNumReplicas?: number; } /** * CPU utilization policy. @@ -1004,7 +1008,7 @@ export namespace compute_beta { * you specified or until the average utilization reaches the target * utilization. */ - utilizationTarget: number; + utilizationTarget?: number; } /** * Custom utilization metric policy. @@ -1035,13 +1039,13 @@ export namespace compute_beta { * If multiple TimeSeries are returned upon the query execution, the * autoscaler will sum their respective values to obtain its scaling value. */ - filter: string; + filter?: string; /** * The identifier (type) of the Stackdriver Monitoring metric. The metric * cannot have negative values. The metric must have a value type of INT64 * or DOUBLE. */ - metric: string; + metric?: string; /** * If scaling is based on a per-group metric value that represents the total * amount of work to be done or resource usage, set this value to an amount @@ -1055,7 +1059,7 @@ export namespace compute_beta { * since this value can't include a chunk assignable to a single * instance, it could be better used with utilization_target instead. */ - singleInstanceAssignment: number; + singleInstanceAssignment?: number; /** * The target value of the metric that autoscaler should maintain. This must * be a positive value. A utilization metric scales number of virtual @@ -1065,13 +1069,13 @@ export namespace compute_beta { * autoscaler will work to keep this value constant for each of the * instances. */ - utilizationTarget: number; + utilizationTarget?: number; /** * Defines how target utilization value is expressed for a Stackdriver * Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. * If not specified, the default is GAUGE. */ - utilizationTargetType: string; + utilizationTargetType?: string; } /** * Configuration parameters of autoscaling based on load balancing. @@ -1082,7 +1086,7 @@ export namespace compute_beta { * configuration) that autoscaler should maintain. Must be a positive float * value. If not defined, the default is 0.8. */ - utilizationTarget: number; + utilizationTarget?: number; } /** * Message containing information of one individual backend. @@ -1095,7 +1099,7 @@ export namespace compute_beta { * Internal Load Balancing, the default and only supported mode is * CONNECTION. */ - balancingMode: string; + balancingMode?: string; /** * A multiplier applied to the group's maximum servicing capacity (based * on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the @@ -1104,12 +1108,12 @@ export namespace compute_beta { * offering 0% of its available Capacity. Valid range is [0.0,1.0]. This * cannot be used for internal load balancing. */ - capacityScaler: number; + capacityScaler?: number; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The fully-qualified URL of a Instance Group resource. This instance group * defines the list of instances that serve traffic. Member virtual machine @@ -1120,14 +1124,14 @@ export namespace compute_beta { * partial URL. When the BackendService has load balancing scheme INTERNAL, * the instance group must be within the same region as the BackendService. */ - group: string; + group?: string; /** * The max number of simultaneous connections for the group. Can be used * with either CONNECTION or UTILIZATION balancing modes. For CONNECTION * mode, either maxConnections or maxConnectionsPerInstance must be set. * This cannot be used for internal load balancing. */ - maxConnections: number; + maxConnections?: number; /** * The max number of simultaneous connections that a single backend instance * can handle. This is used to calculate the capacity of the group. Can be @@ -1135,14 +1139,14 @@ export namespace compute_beta { * mode, either maxConnections or maxConnectionsPerInstance must be set. * This cannot be used for internal load balancing. */ - maxConnectionsPerInstance: number; + maxConnectionsPerInstance?: number; /** * The max requests per second (RPS) of the group. Can be used with either * RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE * mode, either maxRate or maxRatePerInstance must be set. This cannot be * used for internal load balancing. */ - maxRate: number; + maxRate?: number; /** * The max requests per second (RPS) that a single backend instance can * handle. This is used to calculate the capacity of the group. Can be used @@ -1150,13 +1154,13 @@ export namespace compute_beta { * maxRatePerInstance must be set. This cannot be used for internal load * balancing. */ - maxRatePerInstance: number; + maxRatePerInstance?: number; /** * Used when balancingMode is UTILIZATION. This ratio defines the CPU * utilization target for the group. The default is 0.8. Valid range is * [0.0, 1.0]. This cannot be used for internal load balancing. */ - maxUtilization: number; + maxUtilization?: number; } /** * A BackendBucket resource. This resource defines a Cloud Storage bucket. @@ -1165,32 +1169,32 @@ export namespace compute_beta { /** * Cloud Storage bucket name. */ - bucketName: string; + bucketName?: string; /** * Cloud CDN Coniguration for this BackendBucket. */ - cdnPolicy: Schema$BackendBucketCdnPolicy; + cdnPolicy?: Schema$BackendBucketCdnPolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * If true, enable Cloud CDN for this BackendBucket. */ - enableCdn: boolean; + enableCdn?: boolean; /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1200,11 +1204,11 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Message containing Cloud CDN configuration for a backend bucket. @@ -1219,12 +1223,12 @@ export namespace compute_beta { * any existing Cache-Control header. The actual headers served in responses * will not be altered. */ - signedUrlCacheMaxAgeSec: string; + signedUrlCacheMaxAgeSec?: string; /** * [Output Only] Names of the keys currently configured for Cloud CDN Signed * URL on this backend bucket. */ - signedUrlKeyNames: string[]; + signedUrlKeyNames?: string[]; } /** * Contains a list of BackendBucket resources. @@ -1233,15 +1237,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendBucket resources. */ - items: Schema$BackendBucket[]; + items?: Schema$BackendBucket[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1249,15 +1253,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A BackendService resource. This resource defines a group of backend virtual @@ -1272,41 +1276,41 @@ export namespace compute_beta { * one day. When the load balancing scheme is INTERNAL, this field is not * used. */ - affinityCookieTtlSec: number; + affinityCookieTtlSec?: number; /** * The list of backends that serve this BackendService. */ - backends: Schema$Backend[]; + backends?: Schema$Backend[]; /** * Cloud CDN configuration for this BackendService. */ - cdnPolicy: Schema$BackendServiceCdnPolicy; - connectionDraining: Schema$ConnectionDraining; + cdnPolicy?: Schema$BackendServiceCdnPolicy; + connectionDraining?: Schema$ConnectionDraining; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Headers that the HTTP/S load balancer should add to proxied requests. */ - customRequestHeaders: string[]; + customRequestHeaders?: string[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * If true, enable Cloud CDN for this BackendService. When the load * balancing scheme is INTERNAL, this field is not used. */ - enableCDN: boolean; + enableCDN?: boolean; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a BackendService. An up-to-date fingerprint must * be provided in order to update the BackendService. */ - fingerprint: string; + fingerprint?: string; /** * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for * health checking this BackendService. Currently at most one health check @@ -1315,25 +1319,25 @@ export namespace compute_beta { * backend and Cloud Function backend. For internal load balancing, a URL * to a HealthCheck resource must be specified instead. */ - healthChecks: string[]; - iap: Schema$BackendServiceIAP; + healthChecks?: string[]; + iap?: Schema$BackendServiceIAP; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#backendService for backend * services. */ - kind: string; + kind?: string; /** * Indicates whether the backend service will be used with internal or * external load balancing. A backend service created for one type of load * balancing cannot be used with the other. Possible values are INTERNAL and * EXTERNAL. */ - loadBalancingScheme: string; + loadBalancingScheme?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1343,43 +1347,43 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Deprecated in favor of portName. The TCP port to connect on the backend. * The default value is 80. This cannot be used for internal load * balancing. */ - port: number; + port?: number; /** * Name of backend port. The same name should appear in the instance groups * referenced by this service. Required when the load balancing scheme is * EXTERNAL. When the load balancing scheme is INTERNAL, this field is not * used. */ - portName: string; + portName?: string; /** * The protocol this BackendService uses to communicate with backends. * Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. For * internal load balancing, the possible values are TCP and UDP, and the * default is TCP. */ - protocol: string; + protocol?: string; /** * [Output Only] URL of the region where the regional backend service * resides. This field is not applicable to global backend services. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] The resource URL for the security policy associated with * this backend service. */ - securityPolicy: string; + securityPolicy?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Type of session affinity to use. The default is NONE. When the load * balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or @@ -1387,12 +1391,12 @@ export namespace compute_beta { * NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the * protocol is UDP, this field is not used. */ - sessionAffinity: string; + sessionAffinity?: string; /** * How many seconds to wait for the backend before considering it a failed * request. Default is 30 seconds. */ - timeoutSec: number; + timeoutSec?: number; } /** * Contains a list of BackendServicesScopedList. @@ -1401,15 +1405,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendServicesScopedList resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1417,15 +1421,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Message containing Cloud CDN configuration for a backend service. @@ -1434,7 +1438,7 @@ export namespace compute_beta { /** * The CacheKeyPolicy for this CdnPolicy. */ - cacheKeyPolicy: Schema$CacheKeyPolicy; + cacheKeyPolicy?: Schema$CacheKeyPolicy; /** * Number of seconds up to which the response to a signed URL request will * be cached in the CDN. After this time period, the Signed URL will be @@ -1444,32 +1448,32 @@ export namespace compute_beta { * of any existing Cache-Control header. The actual headers served in * responses will not be altered. */ - signedUrlCacheMaxAgeSec: string; + signedUrlCacheMaxAgeSec?: string; /** * [Output Only] Names of the keys currently configured for Cloud CDN Signed * URL on this backend service. */ - signedUrlKeyNames: string[]; + signedUrlKeyNames?: string[]; } export interface Schema$BackendServiceGroupHealth { - healthStatus: Schema$HealthStatus[]; + healthStatus?: Schema$HealthStatus[]; /** * [Output Only] Type of resource. Always compute#backendServiceGroupHealth * for the health of backend services. */ - kind: string; + kind?: string; } /** * Identity-Aware Proxy */ export interface Schema$BackendServiceIAP { - enabled: boolean; - oauth2ClientId: string; - oauth2ClientSecret: string; + enabled?: boolean; + oauth2ClientId?: string; + oauth2ClientSecret?: string; /** * [Output Only] SHA256 hash value for the field oauth2_client_secret above. */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * Contains a list of BackendService resources. @@ -1478,16 +1482,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendService resources. */ - items: Schema$BackendService[]; + items?: Schema$BackendService[]; /** * [Output Only] Type of resource. Always compute#backendServiceList for * lists of backend services. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1495,26 +1499,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$BackendServicesScopedList { /** * A list of BackendServices contained in this scope. */ - backendServices: Schema$BackendService[]; + backendServices?: Schema$BackendService[]; /** * Informational warning which replaces the list of backend services when * the list is empty. */ - warning: any; + warning?: any; } /** * Associates `members` with a `role`. @@ -1526,7 +1530,7 @@ export namespace compute_beta { * bindings, including their conditions, are examined independently. This * field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER. */ - condition: Schema$Expr; + condition?: Schema$Expr; /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * `allUsers`: A special @@ -1542,20 +1546,20 @@ export namespace compute_beta { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. */ - role: string; + role?: string; } export interface Schema$CacheInvalidationRule { /** * If set, this invalidation rule will only apply to requests with a Host * header matching host. */ - host: string; - path: string; + host?: string; + path?: string; } /** * Message containing what to include in the cache key for a request for Cloud @@ -1565,32 +1569,32 @@ export namespace compute_beta { /** * If true, requests to different hosts will be cached separately. */ - includeHost: boolean; + includeHost?: boolean; /** * If true, http and https requests will be cached separately. */ - includeProtocol: boolean; + includeProtocol?: boolean; /** * If true, include query string parameters in the cache key according to * query_string_whitelist and query_string_blacklist. If neither is set, the * entire query string will be included. If false, the query string will be * excluded from the cache key entirely. */ - includeQueryString: boolean; + includeQueryString?: boolean; /** * Names of query string parameters to exclude in cache keys. All other * parameters will be included. Either specify query_string_whitelist or * query_string_blacklist, not both. '&' and '=' will be * percent encoded and not treated as delimiters. */ - queryStringBlacklist: string[]; + queryStringBlacklist?: string[]; /** * Names of query string parameters to include in cache keys. All other * parameters will be excluded. Either specify query_string_whitelist or * query_string_blacklist, not both. '&' and '=' will be * percent encoded and not treated as delimiters. */ - queryStringWhitelist: string[]; + queryStringWhitelist?: string[]; } /** * Represents a Commitment resource. Creating a Commitment resource means that @@ -1607,26 +1611,26 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Commitment end time in RFC3339 text format. */ - endTimestamp: string; + endTimestamp?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#commitment for * commitments. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1636,55 +1640,55 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The plan for this commitment, which determines duration and discount * rate. The currently supported plans are TWELVE_MONTH (1 year), and * THIRTY_SIX_MONTH (3 years). */ - plan: string; + plan?: string; /** * [Output Only] URL of the region where this commitment may be used. */ - region: string; + region?: string; /** * A list of commitment amounts for particular resources. Note that VCPU and * MEMORY resource commitments must occur together. */ - resources: Schema$ResourceCommitment[]; + resources?: Schema$ResourceCommitment[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Commitment start time in RFC3339 text format. */ - startTimestamp: string; + startTimestamp?: string; /** * [Output Only] Status of the commitment with regards to eventual * expiration (each commitment has an end date defined). One of the * following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; } export interface Schema$CommitmentAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of CommitmentsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#commitmentAggregatedList * for aggregated lists of commitments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1692,15 +1696,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Commitment resources. @@ -1709,16 +1713,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Commitment resources. */ - items: Schema$Commitment[]; + items?: Schema$Commitment[]; /** * [Output Only] Type of resource. Always compute#commitmentList for lists * of commitments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1726,26 +1730,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$CommitmentsScopedList { /** * [Output Only] A list of commitments contained in this scope. */ - commitments: Schema$Commitment[]; + commitments?: Schema$Commitment[]; /** * [Output Only] Informational warning which replaces the list of * commitments when the list is empty. */ - warning: any; + warning?: any; } /** * A condition to be met. @@ -1754,29 +1758,29 @@ export namespace compute_beta { /** * Trusted attributes supplied by the IAM system. */ - iam: string; + iam?: string; /** * An operator to apply the subject with. */ - op: string; + op?: string; /** * Trusted attributes discharged by the service. */ - svc: string; + svc?: string; /** * Trusted attributes supplied by any service that owns resources and uses * the IAM system for access control. */ - sys: string; + sys?: string; /** * DEPRECATED. Use 'values' instead. */ - value: string; + value?: string; /** * The objects of the condition. This is mutually exclusive with * 'value'. */ - values: string[]; + values?: string[]; } /** * Message containing connection draining configuration. @@ -1786,7 +1790,7 @@ export namespace compute_beta { * Time for which instance will be drained (not accept new connections, but * still work to finish started). */ - drainingTimeoutSec: number; + drainingTimeoutSec?: number; } /** * Represents a customer-supplied encryption key @@ -1795,12 +1799,12 @@ export namespace compute_beta { /** * The name of the encryption key that is stored in Google Cloud KMS. */ - kmsKeyName: string; + kmsKeyName?: string; /** * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 * base64 to either encrypt or decrypt this resource. */ - rawKey: string; + rawKey?: string; /** * Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit * customer-supplied encryption key to either encrypt or decrypt this @@ -1811,24 +1815,24 @@ export namespace compute_beta { * certificate provided by Google at: * https://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem */ - rsaEncryptedKey: string; + rsaEncryptedKey?: string; /** * [Output only] The RFC 4648 base64 encoded SHA-256 hash of the * customer-supplied encryption key that protects this resource. */ - sha256: string; + sha256?: string; } export interface Schema$CustomerEncryptionKeyProtectedDisk { /** * Decrypts data associated with the disk with a customer-supplied * encryption key. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * Specifies a valid partial or full URL to an existing Persistent Disk * resource. This field is only applicable for persistent disks. */ - source: string; + source?: string; } /** * Deprecation status for a public resource. @@ -1839,25 +1843,25 @@ export namespace compute_beta { * resource is intended to change to DELETED. This is only informational and * the status will not change unless the client explicitly changes it. */ - deleted: string; + deleted?: string; /** * An optional RFC3339 timestamp on or after which the state of this * resource is intended to change to DEPRECATED. This is only informational * and the status will not change unless the client explicitly changes it. */ - deprecated: string; + deprecated?: string; /** * An optional RFC3339 timestamp on or after which the state of this * resource is intended to change to OBSOLETE. This is only informational * and the status will not change unless the client explicitly changes it. */ - obsolete: string; + obsolete?: string; /** * The URL of the suggested replacement for a deprecated resource. The * suggested replacement resource must be the same kind of resource as the * deprecated resource. */ - replacement: string; + replacement?: string; /** * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, * or DELETED. Operations which create a new resource using a DEPRECATED @@ -1866,7 +1870,7 @@ export namespace compute_beta { * use OBSOLETE or DELETED resources will be rejected and result in an * error. */ - state: string; + state?: string; } /** * A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks @@ -1876,12 +1880,12 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Encrypts the disk using a customer-supplied encryption key. After you * encrypt a disk with a customer-supplied key, you must provide the same @@ -1892,22 +1896,22 @@ export namespace compute_beta { * be encrypted using an automatically generated key and you do not need to * provide a key to use the disk later. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#disk for disks. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this disk, which is * essentially a hash of the labels set used for optimistic locking. The @@ -1916,29 +1920,29 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a disk. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this disk. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * [Output Only] Last attach timestamp in RFC3339 text format. */ - lastAttachTimestamp: string; + lastAttachTimestamp?: string; /** * [Output Only] Last detach timestamp in RFC3339 text format. */ - lastDetachTimestamp: string; + lastDetachTimestamp?: string; /** * Integer license codes indicating which licenses are attached to this * disk. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * Any applicable publicly visible licenses. */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1948,26 +1952,26 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Internal use only. */ - options: string; + options?: string; /** * [Output Only] URL of the region where the disk resides. Only applicable * for regional resources. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - region: string; + region?: string; /** * URLs of the zones where the disk should be replicated to. Only applicable * for regional resources. */ - replicaZones: string[]; + replicaZones?: string[]; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * Size of the persistent disk, specified in GB. You can specify this field * when creating a persistent disk using the sourceImage or sourceSnapshot @@ -1976,7 +1980,7 @@ export namespace compute_beta { * value of sizeGb must not be less than the size of the sourceImage or the * size of the snapshot. Acceptable values are 1 to 65536, inclusive. */ - sizeGb: string; + sizeGb?: string; /** * The source image used to create this disk. If the source image is * deleted, this field will not be set. To create a disk with one of the @@ -1991,12 +1995,12 @@ export namespace compute_beta { * version of the image in that family. Replace the image name with * family/family-name: global/images/family/my-image-family */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the image used to create this disk. This * value identifies the exact image that was used to create this persistent @@ -2004,7 +2008,7 @@ export namespace compute_beta { * was later deleted and recreated under the same name, the source image ID * would identify the exact version of the image that was used. */ - sourceImageId: string; + sourceImageId?: string; /** * The source snapshot used to create this disk. You can provide this as a * partial or full URL to the resource. For example, the following are valid @@ -2012,12 +2016,12 @@ export namespace compute_beta { * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot * - projects/project/global/snapshots/snapshot - global/snapshots/snapshot */ - sourceSnapshot: string; + sourceSnapshot?: string; /** * The customer-supplied encryption key of the source snapshot. Required if * the source snapshot is protected by a customer-supplied encryption key. */ - sourceSnapshotEncryptionKey: Schema$CustomerEncryptionKey; + sourceSnapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The unique ID of the snapshot used to create this disk. * This value identifies the exact snapshot that was used to create this @@ -2026,47 +2030,47 @@ export namespace compute_beta { * source snapshot ID would identify the exact version of the snapshot that * was used. */ - sourceSnapshotId: string; + sourceSnapshotId?: string; /** * [Output Only] The status of disk creation. */ - status: string; + status?: string; /** * [Deprecated] Storage type of the persistent disk. */ - storageType: string; + storageType?: string; /** * URL of the disk type resource describing which disk type to use to create * the disk. Provide this when creating the disk. For example: * project/zones/zone/diskTypes/pd-standard or pd-ssd */ - type: string; + type?: string; /** * [Output Only] Links to the users of the disk (attached instances) in * form: project/zones/zone/instances/instance */ - users: string[]; + users?: string[]; /** * [Output Only] URL of the zone where the disk resides. You must specify * this field as part of the HTTP request URL. It is not settable as a field * in the request body. */ - zone: string; + zone?: string; } export interface Schema$DiskAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DisksScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#diskAggregatedList for * aggregated lists of persistent disks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2074,15 +2078,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A specification of the desired way to instantiate a disk in the instance @@ -2093,17 +2097,17 @@ export namespace compute_beta { * Specifies whether the disk will be auto-deleted when the instance is * deleted (but not when the disk is detached from the instance). */ - autoDelete: boolean; + autoDelete?: boolean; /** * The custom source image to be used to restore this disk when * instantiating this instance template. */ - customImage: string; + customImage?: string; /** * Specifies the device name of the disk to which the configurations apply * to. */ - deviceName: string; + deviceName?: string; /** * Specifies whether to include the disk and what image to use. Possible * values are: - source-image: to use the same image that was used to @@ -2117,7 +2121,7 @@ export namespace compute_beta { * disks. - do-not-include: to exclude a disk from the template. Applicable * to additional read-write disks, local SSDs, and read-only disks. */ - instantiateFrom: string; + instantiateFrom?: string; } /** * A list of Disk resources. @@ -2126,16 +2130,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Disk resources. */ - items: Schema$Disk[]; + items?: Schema$Disk[]; /** * [Output Only] Type of resource. Always compute#diskList for lists of * disks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2143,15 +2147,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$DiskMoveRequest { /** @@ -2160,31 +2164,31 @@ export namespace compute_beta { * https://www.googleapis.com/compute/v1/projects/project/zones/zone - * projects/project/zones/zone - zones/zone */ - destinationZone: string; + destinationZone?: string; /** * The URL of the target disk to move. This can be a full or partial URL. * For example, the following are all valid URLs to a disk: - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk * - projects/project/zones/zone/disks/disk - zones/zone/disks/disk */ - targetDisk: string; + targetDisk?: string; } export interface Schema$DisksResizeRequest { /** * The new size of the persistent disk, which is specified in GB. */ - sizeGb: string; + sizeGb?: string; } export interface Schema$DisksScopedList { /** * [Output Only] A list of disks contained in this scope. */ - disks: Schema$Disk[]; + disks?: Schema$Disk[]; /** * [Output Only] Informational warning which replaces the list of disks when * the list is empty. */ - warning: any; + warning?: any; } /** * A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for @@ -2194,62 +2198,62 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Server-defined default disk size in GB. */ - defaultDiskSizeGb: string; + defaultDiskSizeGb?: string; /** * [Output Only] The deprecation status associated with this disk type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional description of this resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#diskType for disk * types. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] An optional textual description of the valid disk size, * such as "10GB-10TB". */ - validDiskSize: string; + validDiskSize?: string; /** * [Output Only] URL of the zone where the disk type resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$DiskTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2257,15 +2261,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of disk types. @@ -2274,16 +2278,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskType resources. */ - items: Schema$DiskType[]; + items?: Schema$DiskType[]; /** * [Output Only] Type of resource. Always compute#diskTypeList for disk * types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2291,29 +2295,29 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$DiskTypesScopedList { /** * [Output Only] A list of disk types contained in this scope. */ - diskTypes: Schema$DiskType[]; + diskTypes?: Schema$DiskType[]; /** * [Output Only] Informational warning which replaces the list of disk types * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$DistributionPolicy { - zones: Schema$DistributionPolicyZoneConfiguration[]; + zones?: Schema$DistributionPolicyZoneConfiguration[]; } export interface Schema$DistributionPolicyZoneConfiguration { /** @@ -2321,7 +2325,7 @@ export namespace compute_beta { * regional resources). Zone has to belong to the region where managed * instance group is located. */ - zone: string; + zone?: string; } /** * Represents an expression text. Example: title: "User account @@ -2333,24 +2337,24 @@ export namespace compute_beta { * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. */ - description: string; + description?: string; /** * Textual representation of an expression in Common Expression Language * syntax. The application context of the containing message determines * which well-known feature set of CEL is supported. */ - expression: string; + expression?: string; /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. */ - location: string; + location?: string; /** * An optional title for the expression, i.e. a short string describing its * purpose. This can be used e.g. in UIs which allow to enter the * expression. */ - title: string; + title?: string; } /** * Represents a Firewall resource. @@ -2360,51 +2364,51 @@ export namespace compute_beta { * The list of ALLOW rules specified by this firewall. Each rule specifies a * protocol and port-range tuple that describes a permitted connection. */ - allowed: any[]; + allowed?: any[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The list of DENY rules specified by this firewall. Each rule specifies a * protocol and port-range tuple that describes a denied connection. */ - denied: any[]; + denied?: any[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * If destination ranges are specified, the firewall will apply only to * traffic that has destination IP address in these ranges. These ranges * must be expressed in CIDR format. Only IPv4 is supported. */ - destinationRanges: string[]; + destinationRanges?: string[]; /** * Direction of traffic to which this firewall applies; default is INGRESS. * Note: For INGRESS traffic, it is NOT supported to specify * destinationRanges; For EGRESS traffic, it is NOT supported to specify * sourceRanges OR sourceTags. */ - direction: string; + direction?: string; /** * Denotes whether the firewall rule is disabled, i.e not applied to the * network it is associated with. When set to true, the firewall rule is not * enforced and the network behaves as if it did not exist. If this is * unspecified, the firewall rule will be enabled. */ - disabled: boolean; + disabled?: boolean; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#firewall for firewall * rules. */ - kind: string; + kind?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2414,7 +2418,7 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URL of the network resource for this firewall rule. If not specified when * creating a firewall rule, the default network is used: @@ -2425,7 +2429,7 @@ export namespace compute_beta { * - projects/myproject/global/networks/my-network - * global/networks/default */ - network: string; + network?: string; /** * Priority for this rule. This is an integer between 0 and 65535, both * inclusive. When not specified, the value assumed is 1000. Relative @@ -2434,11 +2438,11 @@ export namespace compute_beta { * precedence than a rule with priority 1). DENY rules take precedence over * ALLOW rules having equal priority. */ - priority: number; + priority?: number; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * If source ranges are specified, the firewall will apply only to traffic * that has source IP address in these ranges. These ranges must be @@ -2449,7 +2453,7 @@ export namespace compute_beta { * not need to match both properties for the firewall to apply. Only IPv4 is * supported. */ - sourceRanges: string[]; + sourceRanges?: string[]; /** * If source service accounts are specified, the firewall will apply only to * traffic originating from an instance with a service account in this list. @@ -2463,7 +2467,7 @@ export namespace compute_beta { * properties for the firewall to apply. sourceServiceAccounts cannot be * used at the same time as sourceTags or targetTags. */ - sourceServiceAccounts: string[]; + sourceServiceAccounts?: string[]; /** * If source tags are specified, the firewall rule applies only to traffic * with source IPs that match the primary network interfaces of VM instances @@ -2477,7 +2481,7 @@ export namespace compute_beta { * sourceTags property. The connection does not need to match both * properties for the firewall to apply. */ - sourceTags: string[]; + sourceTags?: string[]; /** * A list of service accounts indicating sets of instances located in the * network that may make network connections as specified in allowed[]. @@ -2486,7 +2490,7 @@ export namespace compute_beta { * specified, the firewall rule applies to all instances on the specified * network. */ - targetServiceAccounts: string[]; + targetServiceAccounts?: string[]; /** * A list of tags that controls which instances the firewall rule applies * to. If targetTags are specified, then the firewall rule applies only to @@ -2494,7 +2498,7 @@ export namespace compute_beta { * targetTags are specified, the firewall rule applies to all instances on * the specified network. */ - targetTags: string[]; + targetTags?: string[]; } /** * Contains a list of firewalls. @@ -2503,16 +2507,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Firewall resources. */ - items: Schema$Firewall[]; + items?: Schema$Firewall[]; /** * [Output Only] Type of resource. Always compute#firewallList for lists of * firewalls. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2520,15 +2524,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Encapsulates numeric value that can be either absolute or relative. @@ -2543,17 +2547,17 @@ export namespace compute_beta { * (80/100 * 150) = 120 VM instances. If there is a remainder, the number is * rounded up. */ - calculated: number; + calculated?: number; /** * Specifies a fixed number of VM instances. This must be a positive * integer. */ - fixed: number; + fixed?: number; /** * Specifies a percentage of instances between 0 to 100%, inclusive. For * example, specify 80 for 80%. */ - percent: number; + percent?: number; } /** * A ForwardingRule resource. A ForwardingRule resource specifies which pool @@ -2570,21 +2574,21 @@ export namespace compute_beta { * balancing, this field identifies the BackendService resource to receive * the matched traffic. */ - backendService: string; + backendService?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The IP address that this forwarding rule is serving on behalf of. * Addresses are restricted based on the forwarding rule's load @@ -2607,24 +2611,24 @@ export namespace compute_beta { * - projects/project/regions/region/addresses/address - * regions/region/addresses/address - global/addresses/address - address */ - IPAddress: string; + IPAddress?: string; /** * The IP protocol to which this rule applies. Valid options are TCP, UDP, * ESP, AH, SCTP or ICMP. When the load balancing scheme is INTERNAL, only * TCP and UDP are valid. */ - IPProtocol: string; + IPProtocol?: string; /** * The IP Version that will be used by this forwarding rule. Valid options * are IPV4 or IPV6. This can only be specified for a global forwarding * rule. */ - ipVersion: string; + ipVersion?: string; /** * [Output Only] Type of the resource. Always compute#forwardingRule for * Forwarding Rule resources. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this resource, which is * essentially a hash of the labels set used for optimistic locking. The @@ -2634,13 +2638,13 @@ export namespace compute_beta { * the latest fingerprint, make a get() request to retrieve a * ForwardingRule. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this resource. These can be later modified by the * setLabels method. Each label key/value pair must comply with RFC1035. * Label values may be empty. */ - labels: any; + labels?: any; /** * This signifies what the ForwardingRule will be used for and can only take * the following values: INTERNAL, EXTERNAL The value of INTERNAL means that @@ -2648,7 +2652,7 @@ export namespace compute_beta { * value of EXTERNAL means that this will be used for External Load * Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) */ - loadBalancingScheme: string; + loadBalancingScheme?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2658,14 +2662,14 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the network that the load balanced IP * should belong to for this Forwarding Rule. If this field is not * specified, the default network will be used. */ - network: string; + network?: string; /** * This signifies the networking tier used for configuring this load * balancer and can only take the following values: PREMIUM , STANDARD. For @@ -2674,7 +2678,7 @@ export namespace compute_beta { * specified, it is assumed to be PREMIUM. If IPAddress is specified, this * value must be equal to the networkTier of the Address. */ - networkTier: string; + networkTier?: string; /** * This field is used along with the target field for TargetHttpProxy, * TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, @@ -2688,7 +2692,7 @@ export namespace compute_beta { * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, * 1688, 1883, 5222 - TargetVpnGateway: 500, 4500 */ - portRange: string; + portRange?: string; /** * This field is used along with the backend_service field for internal load * balancing. When the load balancing scheme is INTERNAL, a single port or @@ -2696,18 +2700,18 @@ export namespace compute_beta { * to these ports will be forwarded to the backends configured with this * forwarding rule. You may specify a maximum of up to 5 ports. */ - ports: string[]; + ports?: string[]; /** * [Output Only] URL of the region where the regional forwarding rule * resides. This field is not applicable to global forwarding rules. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + 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. @@ -2718,12 +2722,12 @@ export namespace compute_beta { * 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; + serviceLabel?: string; /** * [Output Only] The internal fully qualified service name for this * Forwarding Rule. This field is only used for internal load balancing. */ - serviceName: string; + serviceName?: string; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the subnetwork that the load balanced IP @@ -2731,7 +2735,7 @@ export namespace compute_beta { * in auto subnet mode, this field is optional. However, if the network is * in custom subnet mode, a subnetwork must be specified. */ - subnetwork: string; + subnetwork?: string; /** * The URL of the target resource to receive the matched traffic. For * regional forwarding rules, this target must live in the same region as @@ -2739,22 +2743,22 @@ export namespace compute_beta { * global load balancing resource. The forwarded traffic must be of a type * appropriate to the target object. */ - target: string; + target?: string; } export interface Schema$ForwardingRuleAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of ForwardingRulesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#forwardingRuleAggregatedList for lists of forwarding rules. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2762,15 +2766,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of ForwardingRule resources. @@ -2779,15 +2783,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of ForwardingRule resources. */ - items: Schema$ForwardingRule[]; + items?: Schema$ForwardingRule[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2795,26 +2799,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$ForwardingRulesScopedList { /** * A list of forwarding rules contained in this scope. */ - forwardingRules: Schema$ForwardingRule[]; + forwardingRules?: Schema$ForwardingRule[]; /** * Informational warning which replaces the list of forwarding rules when * the list is empty. */ - warning: any; + warning?: any; } export interface Schema$GlobalSetLabelsRequest { /** @@ -2825,7 +2829,7 @@ export namespace compute_beta { * changing labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * A list of labels to apply for this resource. Each label key & value * must comply with RFC1035. Specifically, the name must be 1-63 characters @@ -2836,7 +2840,7 @@ export namespace compute_beta { * "webserver-frontend": "images". A label value can * also be empty (e.g. "my-label": ""). */ - labels: any; + labels?: any; } /** * Guest OS features. @@ -2846,7 +2850,7 @@ export namespace compute_beta { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. */ - type: string; + type?: string; } /** * An HealthCheck resource. This resource defines a template for how @@ -2858,32 +2862,33 @@ export namespace compute_beta { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in 3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; - httpHealthCheck: Schema$HTTPHealthCheck; - httpsHealthCheck: Schema$HTTPSHealthCheck; + healthyThreshold?: number; + http2HealthCheck?: Schema$HTTP2HealthCheck; + httpHealthCheck?: Schema$HTTPHealthCheck; + httpsHealthCheck?: Schema$HTTPSHealthCheck; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2893,31 +2898,31 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; - sslHealthCheck: Schema$SSLHealthCheck; - tcpHealthCheck: Schema$TCPHealthCheck; + selfLink?: string; + sslHealthCheck?: Schema$SSLHealthCheck; + tcpHealthCheck?: Schema$TCPHealthCheck; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If * not specified, the default is TCP. Exactly one of the protocol-specific * health check field must be specified, which must match type field. */ - type: string; - udpHealthCheck: Schema$UDPHealthCheck; + type?: string; + udpHealthCheck?: Schema$UDPHealthCheck; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Contains a list of HealthCheck resources. @@ -2926,15 +2931,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HealthCheck resources. */ - items: Schema$HealthCheck[]; + items?: Schema$HealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2942,15 +2947,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A full or valid partial URL to a health check. For example, the following @@ -2959,24 +2964,24 @@ export namespace compute_beta { * - projects/project-id/global/httpHealthChecks/health-check - * global/httpHealthChecks/health-check */ - export interface Schema$HealthCheckReference { healthCheck: string; } + export interface Schema$HealthCheckReference { healthCheck?: string; } export interface Schema$HealthStatus { /** * Health state of the instance. */ - healthState: string; + healthState?: string; /** * URL of the instance resource. */ - instance: string; + instance?: string; /** * The IP address represented by this resource. */ - ipAddress: string; + ipAddress?: string; /** * The port on the instance. */ - port: number; + port?: number; } /** * UrlMaps A host-matching rule for a URL. If matched, will use the named @@ -2987,18 +2992,52 @@ export namespace compute_beta { * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The list of host patterns to match. They must be valid hostnames, except * * will match any string of ([a-z0-9-.]*). In that case, * must be the * first character and must be followed in the pattern by either - or .. */ - hosts: string[]; + hosts?: string[]; /** * The name of the PathMatcher to use to match the path portion of the URL * if the hostRule matches the URL's host portion. */ - pathMatcher: string; + pathMatcher?: string; + } + export interface Schema$HTTP2HealthCheck { + /** + * The value of the host header in the HTTP/2 health check request. If left + * empty (default value), the IP on behalf of which this health check is + * performed will be used. + */ + host?: string; + /** + * The TCP port number for the health check request. The default value is + * 443. Valid values are 1 through 65535. + */ + port?: number; + /** + * Port name as defined in InstanceGroup#NamedPort#name. If both port and + * port_name are defined, port takes precedence. + */ + portName?: string; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + */ + proxyHeader?: string; + /** + * The request path of the HTTP/2 health check request. The default value is + * /. + */ + requestPath?: string; + /** + * The string to match anywhere in the first 1024 bytes of the response + * body. If left empty (the default value), the status code determines + * health. The response data can only be ASCII. + */ + response?: string; } /** * An HttpHealthCheck resource. This resource defines a template for how @@ -3009,37 +3048,37 @@ export namespace compute_beta { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTP health check request. If left * empty (default value), the public IP on behalf of which this health check * is performed will be used. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#httpHealthCheck for * HTTP health checks. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3049,32 +3088,32 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The TCP port number for the HTTP health check request. The default value * is 80. */ - port: number; + port?: number; /** * The request path of the HTTP health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } export interface Schema$HTTPHealthCheck { /** @@ -3082,33 +3121,33 @@ export namespace compute_beta { * empty (default value), the IP on behalf of which this health check is * performed will be used. */ - host: string; + host?: string; /** * The TCP port number for the health check request. The default value * is 80. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The request path of the HTTP health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * The string to match anywhere in the first 1024 bytes of the response * body. If left empty (the default value), the status code determines * health. The response data can only be ASCII. */ - response: string; + response?: string; } /** * Contains a list of HttpHealthCheck resources. @@ -3117,15 +3156,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HttpHealthCheck resources. */ - items: Schema$HttpHealthCheck[]; + items?: Schema$HttpHealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3133,15 +3172,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An HttpsHealthCheck resource. This resource defines a template for how @@ -3152,36 +3191,36 @@ export namespace compute_beta { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTPS health check request. If left * empty (default value), the public IP on behalf of which this health check * is performed will be used. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3191,32 +3230,32 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The TCP port number for the HTTPS health check request. The default value * is 443. */ - port: number; + port?: number; /** * The request path of the HTTPS health check request. The default value is * "/". */ - requestPath: string; + requestPath?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have a greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } export interface Schema$HTTPSHealthCheck { /** @@ -3224,33 +3263,33 @@ export namespace compute_beta { * empty (default value), the IP on behalf of which this health check is * performed will be used. */ - host: string; + host?: string; /** * The TCP port number for the health check request. The default value is * 443. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The request path of the HTTPS health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * The string to match anywhere in the first 1024 bytes of the response * body. If left empty (the default value), the status code determines * health. The response data can only be ASCII. */ - response: string; + response?: string; } /** * Contains a list of HttpsHealthCheck resources. @@ -3259,15 +3298,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HttpsHealthCheck resources. */ - items: Schema$HttpsHealthCheck[]; + items?: Schema$HttpsHealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3275,15 +3314,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Image resource. (== resource_for beta.images ==) (== resource_for @@ -3294,42 +3333,42 @@ export namespace compute_beta { * Size of the image tar.gz archive stored in Google Cloud Storage (in * bytes). */ - archiveSizeBytes: string; + archiveSizeBytes?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The deprecation status associated with this image. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Size of the image when restored onto a persistent disk (in GB). */ - diskSizeGb: string; + diskSizeGb?: string; /** * The name of the image family to which this image belongs. You can create * disks by specifying an image family instead of a specific image name. The * image family always returns its latest image that is not deprecated. The * name of the image family must comply with RFC1035. */ - family: string; + family?: string; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Encrypts the image using a customer-supplied encryption key. After you * encrypt an image with a customer-supplied key, you must provide the same @@ -3339,11 +3378,11 @@ export namespace compute_beta { * image, then the disk will be encrypted using an automatically generated * key and you do not need to provide a key to use the image later. */ - imageEncryptionKey: Schema$CustomerEncryptionKey; + imageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] Type of the resource. Always compute#image for images. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this image, which is * essentially a hash of the labels used for optimistic locking. The @@ -3352,21 +3391,21 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an image. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this image. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * Integer license codes indicating which licenses are attached to this * image. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * Any applicable license URI. */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3376,15 +3415,15 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The parameters of the raw disk image. */ - rawDisk: any; + rawDisk?: any; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL of the source disk used to create this image. This can be a full or * valid partial URL. You must provide either this property or the @@ -3393,66 +3432,66 @@ export namespace compute_beta { * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk * - projects/project/zones/zone/disks/disk - zones/zone/disks/disk */ - sourceDisk: string; + sourceDisk?: string; /** * The customer-supplied encryption key of the source disk. Required if the * source disk is protected by a customer-supplied encryption key. */ - sourceDiskEncryptionKey: Schema$CustomerEncryptionKey; + sourceDiskEncryptionKey?: Schema$CustomerEncryptionKey; /** * The ID value of the disk used to create this image. This value may be * used to determine whether the image was taken from the current or a * previous instance of a given disk name. */ - sourceDiskId: string; + sourceDiskId?: string; /** * URL of the source image used to create this image. This can be a full or * valid partial URL. You must provide exactly one of: - this property, or * - the rawDisk.source property, or - the sourceDisk property in order * to create an image. */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the image used to create this image. This * value may be used to determine whether the image was taken from the * current or a previous instance of a given image name. */ - sourceImageId: string; + sourceImageId?: string; /** * URL of the source snapshot used to create this image. This can be a full * or valid partial URL. You must provide exactly one of: - this property, * or - the sourceImage property, or - the rawDisk.source property, or * - the sourceDisk property in order to create an image. */ - sourceSnapshot: string; + sourceSnapshot?: string; /** * The customer-supplied encryption key of the source snapshot. Required if * the source snapshot is protected by a customer-supplied encryption key. */ - sourceSnapshotEncryptionKey: Schema$CustomerEncryptionKey; + sourceSnapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the snapshot used to create this image. * This value may be used to determine whether the snapshot was taken from * the current or a previous instance of a given snapshot name. */ - sourceSnapshotId: string; + sourceSnapshotId?: string; /** * The type of the image used to create this disk. The default and only * value is RAW */ - sourceType: string; + sourceType?: string; /** * [Output Only] The status of the image. An image can be used to create * other resources, such as instances, only after the image has been * successfully created and the status is set to READY. Possible values are * FAILED, PENDING, or READY. */ - status: string; + status?: string; } /** * Contains a list of images. @@ -3461,15 +3500,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Image resources. */ - items: Schema$Image[]; + items?: Schema$Image[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3477,15 +3516,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Instance resource. (== resource_for beta.instances ==) (== resource_for @@ -3498,58 +3537,58 @@ export namespace compute_beta { * instance to forward routes. For more information, see Enabling IP * Forwarding. */ - canIpForward: boolean; + canIpForward?: boolean; /** * [Output Only] The CPU platform used by this instance. */ - cpuPlatform: string; + cpuPlatform?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Whether the resource should be protected against deletion. */ - deletionProtection: boolean; + deletionProtection?: boolean; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Array of disks associated with this instance. Persistent disks must be * created before you can assign them. */ - disks: Schema$AttachedDisk[]; + disks?: Schema$AttachedDisk[]; /** * A list of the type and count of accelerator cards attached to the * instance. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#instance for * instances. */ - kind: string; + kind?: string; /** * A fingerprint for this request, which is essentially a hash of the - * metadata's contents and used for optimistic locking. The fingerprint - * is initially generated by Compute Engine and changes after every request - * to modify or update metadata. You must always provide an up-to-date - * fingerprint hash in order to update or change metadata. To see the - * latest fingerprint, make get() request to the instance. + * label's contents and used for optimistic locking. The fingerprint is + * initially generated by Compute Engine and changes after every request to + * modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. To see the latest + * fingerprint, make get() request to the instance. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this instance. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * Full or partial URL of the machine type resource to use for this * instance, in the format: zones/zone/machineTypes/machine-type. This is @@ -3564,19 +3603,19 @@ export namespace compute_beta { * zones/us-central1-f/machineTypes/custom-4-5120 For a full list of * restrictions, read the Specifications for custom machine types. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs assigned to this instance. This includes * custom metadata and predefined keys. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * Specifies a minimum CPU platform for the VM instance. Applicable values * are the friendly names of CPU platforms, such as minCpuPlatform: * "Intel Haswell" or minCpuPlatform: "Intel Sandy * Bridge". */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply @@ -3586,22 +3625,22 @@ export namespace compute_beta { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * An array of network configurations for this instance. These specify how * interfaces are configured to interact with other network services, such * as connecting to the internet. Multiple interfaces are supported per * instance. */ - networkInterfaces: Schema$NetworkInterface[]; + networkInterfaces?: Schema$NetworkInterface[]; /** * Sets the scheduling options for this instance. */ - scheduling: Schema$Scheduling; + scheduling?: Schema$Scheduling; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * A list of service accounts, with their specified scopes, authorized for * this instance. Only one service account per VM instance is supported. @@ -3609,50 +3648,50 @@ export namespace compute_beta { * metadata server and used to authenticate applications on the instance. * See Service Accounts for more information. */ - serviceAccounts: Schema$ServiceAccount[]; + serviceAccounts?: Schema$ServiceAccount[]; /** * [Output Only] Whether a VM has been restricted for start because Compute * Engine has detected suspicious activity. */ - startRestricted: boolean; + startRestricted?: boolean; /** * [Output Only] The status of the instance. One of the following values: * PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, * and TERMINATED. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; /** * A list of tags to apply to this instance. Tags are used to identify valid * sources or targets for network firewalls and are specified by the client * during instance creation. The tags can be later modified by the setTags * method. Each tag within the list must comply with RFC1035. */ - tags: Schema$Tags; + tags?: Schema$Tags; /** * [Output Only] URL of the zone where the instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$InstanceAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstancesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#instanceAggregatedList for * aggregated lists of Instance resources. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3660,15 +3699,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for @@ -3680,33 +3719,33 @@ export namespace compute_beta { * [Output Only] The creation timestamp for this instance group in RFC3339 * text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The fingerprint of the named ports. The system uses this * fingerprint to detect conflicts when multiple users change the named * ports concurrently. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] A unique identifier for this instance group, generated by * the server. */ - id: string; + id?: string; /** * [Output Only] The resource type, which is always compute#instanceGroup * for instance groups. */ - kind: string; + kind?: string; /** * The name of the instance group. The name must be 1-63 characters long, * and comply with RFC1035. */ - name: string; + name?: string; /** * Assigns a name to a port number. For example: {name: "http", * port: 80} This allows the system to reference ports by the assigned name @@ -3714,52 +3753,52 @@ export namespace compute_beta { * For example: [{name: "http", port: 80},{name: "http", * port: 8080}] Named ports apply to all instances in this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * The URL of the network to which all instances in the instance group * belong. */ - network: string; + network?: string; /** * [Output Only] The URL of the region where the instance group is located * (for regional resources). */ - region: string; + region?: string; /** * [Output Only] The URL for this instance group. The server generates this * URL. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The total number of instances in the instance group. */ - size: number; + size?: number; /** * [Output Only] The URL of the subnetwork to which all instances in the * instance group belong. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URL of the zone where the instance group is located * (for zonal resources). */ - zone: string; + zone?: string; } export interface Schema$InstanceGroupAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#instanceGroupAggregatedList for aggregated lists of instance * groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3767,15 +3806,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A list of InstanceGroup resources. @@ -3784,16 +3823,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroup resources. */ - items: Schema$InstanceGroup[]; + items?: Schema$InstanceGroup[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupList for instance group lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3801,15 +3840,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Instance Group Manager resource. (== resource_for @@ -3822,112 +3861,114 @@ export namespace compute_beta { * The autohealing policy for this managed instance group. You can specify * only one value. */ - autoHealingPolicies: Schema$InstanceGroupManagerAutoHealingPolicy[]; + autoHealingPolicies?: Schema$InstanceGroupManagerAutoHealingPolicy[]; /** * The base instance name to use for instances in this group. The value must * be 1-58 characters long. Instances are named by appending a hyphen and a * random four-character string to the base instance name. The base instance * name must comply with RFC1035. */ - baseInstanceName: string; + baseInstanceName?: string; /** * [Output Only] The creation timestamp for this managed instance group in * RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The list of instance actions and the number of instances in * this managed instance group that are scheduled for each of those actions. */ - currentActions: Schema$InstanceGroupManagerActionsSummary; + currentActions?: Schema$InstanceGroupManagerActionsSummary; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Policy valid only for regional managed instance groups. */ - distributionPolicy: Schema$DistributionPolicy; + distributionPolicy?: Schema$DistributionPolicy; /** * The action to perform in case of zone failure. Only one value is * supported, NO_FAILOVER. The default is NO_FAILOVER. */ - failoverAction: string; + failoverAction?: string; /** - * [Output Only] The fingerprint of the resource data. You can use this - * optional field for optimistic locking when you update the resource. + * Fingerprint of this resource. This field may be used in optimistic + * locking. It will be ignored when inserting an InstanceGroupManager. An + * up-to-date fingerprint must be provided in order to update the + * InstanceGroupManager or the field need to be unset. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] A unique identifier for this resource type. The server * generates this identifier. */ - id: string; + id?: string; /** * [Output Only] The URL of the Instance Group resource. */ - instanceGroup: string; + instanceGroup?: string; /** * The URL of the instance template that is specified for this managed * instance group. The group uses this template to create all new instances * in the managed instance group. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] The resource type, which is always * compute#instanceGroupManager for managed instance groups. */ - kind: string; + kind?: string; /** * The name of the managed instance group. The name must be 1-63 characters * long, and comply with RFC1035. */ - name: string; + name?: string; /** * Named ports configured for the Instance Groups complementary to this * Instance Group Manager. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * [Output Only] The list of instance actions and the number of instances in * this managed instance group that are pending for each of those actions. */ - pendingActions: Schema$InstanceGroupManagerPendingActionsSummary; + pendingActions?: Schema$InstanceGroupManagerPendingActionsSummary; /** * [Output Only] The URL of the region where the managed instance group * resides (for regional resources). */ - region: string; + region?: string; /** * [Output Only] The URL for this managed instance group. The server defines * this URL. */ - selfLink: string; + selfLink?: string; /** - * [Output Only] The service account to be used as credentials for all - * operations performed by the managed instance group on instances. The - * service accounts needs all permissions required to create and delete - * instances. By default, the service account + * The service account to be used as credentials for all operations + * performed by the managed instance group on instances. The service + * accounts needs all permissions required to create and delete instances. + * By default, the service account * {projectNumber}@cloudservices.gserviceaccount.com is used. */ - serviceAccount: string; + serviceAccount?: string; /** * The URLs for all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to * all of the instances in the managed instance group. */ - targetPools: string[]; + targetPools?: string[]; /** * The target number of running instances for this managed instance group. * Deleting or abandoning instances reduces this number. Resizing the group * changes this number. */ - targetSize: number; + targetSize?: number; /** * The update policy for this managed instance group. */ - updatePolicy: Schema$InstanceGroupManagerUpdatePolicy; + updatePolicy?: Schema$InstanceGroupManagerUpdatePolicy; /** * Specifies the instance templates used by this managed instance group to * create instances. Each version is defined by an instanceTemplate. Every @@ -3937,12 +3978,12 @@ export namespace compute_beta { * unset. That version will be applied to all remaining instances. For more * information, read about canary updates. */ - versions: Schema$InstanceGroupManagerVersion[]; + versions?: Schema$InstanceGroupManagerVersion[]; /** * [Output Only] The URL of the zone where the managed instance group is * located (for zonal resources). */ - zone: string; + zone?: string; } export interface Schema$InstanceGroupManagerActionsSummary { /** @@ -3950,7 +3991,7 @@ export namespace compute_beta { * that are scheduled to be abandoned. Abandoning an instance removes it * from the managed instance group without deleting it. */ - abandoning: number; + abandoning?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be created or are currently being created. If the group @@ -3959,24 +4000,24 @@ export namespace compute_beta { * field will not be populated; instead, the creatingWithoutRetries field * will be populated. */ - creating: number; + creating?: number; /** * [Output Only] The number of instances that the managed instance group * will attempt to create. The group attempts to create each instance only * once. If the group fails to create any of these instances, it decreases * the group's targetSize value accordingly. */ - creatingWithoutRetries: number; + creatingWithoutRetries?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be deleted or are currently being deleted. */ - deleting: number; + deleting?: number; /** * [Output Only] The number of instances in the managed instance group that * are running and have no scheduled actions. */ - none: number; + none?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be recreated or are currently being being recreated. @@ -3984,41 +4025,41 @@ export namespace compute_beta { * creates a new disk from the image that is defined in the instance * template. */ - recreating: number; + recreating?: number; /** * [Output Only] The number of instances in the managed instance group that * are being reconfigured with properties that do not require a restart or a * recreate action. For example, setting or removing target pools for the * instance. */ - refreshing: number; + refreshing?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be restarted or are currently being restarted. */ - restarting: number; + restarting?: number; /** * [Output Only] The number of instances in the managed instance group that * are being verified. See the managedInstances[].currentAction property in * the listManagedInstances method documentation. */ - verifying: number; + verifying?: number; } export interface Schema$InstanceGroupManagerAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManagersScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerAggregatedList for an aggregated list of * managed instance groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4026,21 +4067,21 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagerAutoHealingPolicy { /** * The URL for the health check that signals autohealing. */ - healthCheck: string; + healthCheck?: string; /** * The number of seconds that the managed instance group waits before it * applies autohealing policies to new instances or recently recreated @@ -4049,7 +4090,7 @@ export namespace compute_beta { * UNHEALTHY. This prevents the managed instance group from recreating its * instances prematurely. This value must be from range [0, 3600]. */ - initialDelaySec: number; + initialDelaySec?: number; } /** * [Output Only] A list of managed instance groups. @@ -4058,16 +4099,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManager resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerList for a list of managed instance groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4075,57 +4116,57 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagerPendingActionsSummary { /** * [Output Only] The number of instances in the managed instance group that * are pending to be created. */ - creating: number; + creating?: number; /** * [Output Only] The number of instances in the managed instance group that * are pending to be deleted. */ - deleting: number; + deleting?: number; /** * [Output Only] The number of instances in the managed instance group that * are pending to be recreated. */ - recreating: number; + recreating?: number; /** * [Output Only] The number of instances in the managed instance group that * are pending to be restarted. */ - restarting: number; + restarting?: number; } export interface Schema$InstanceGroupManagersAbandonInstancesRequest { /** * The URLs of one or more instances to abandon. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersDeleteInstancesRequest { /** * The URLs of one or more instances to delete. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersListManagedInstancesResponse { /** * [Output Only] The list of instances in the managed instance group. */ - managedInstances: Schema$ManagedInstance[]; + managedInstances?: Schema$ManagedInstance[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4133,14 +4174,14 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$InstanceGroupManagersRecreateInstancesRequest { /** * The URLs of one or more instances to recreate. This can be a full URL or * a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersResizeAdvancedRequest { /** @@ -4160,29 +4201,29 @@ export namespace compute_beta { * in any way. You can see which instances is being creating in which mode * by calling the get or listManagedInstances API. */ - noCreationRetries: boolean; + noCreationRetries?: boolean; /** * The number of running instances that the managed instance group should * maintain at any given time. The group automatically adds or removes * instances to maintain the number of instances specified by this * parameter. */ - targetSize: number; + targetSize?: number; } export interface Schema$InstanceGroupManagersScopedList { /** * [Output Only] The list of managed instance groups that are contained in * the specified project and zone. */ - instanceGroupManagers: Schema$InstanceGroupManager[]; + instanceGroupManagers?: Schema$InstanceGroupManager[]; /** * [Output Only] The warning that replaces the list of managed instance * groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagersSetAutoHealingRequest { - autoHealingPolicies: Schema$InstanceGroupManagerAutoHealingPolicy[]; + autoHealingPolicies?: Schema$InstanceGroupManagerAutoHealingPolicy[]; } export interface Schema$InstanceGroupManagersSetInstanceTemplateRequest { /** @@ -4190,7 +4231,7 @@ export namespace compute_beta { * instance group. The group uses this template to create all new instances * in the managed instance group. */ - instanceTemplate: string; + instanceTemplate?: string; } export interface Schema$InstanceGroupManagersSetTargetPoolsRequest { /** @@ -4201,14 +4242,14 @@ export namespace compute_beta { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of target pool URLs that instances in this managed instance * group belong to. The managed instance group applies these target pools to * all of the instances in the group. Existing instances and new instances * in the group all receive these target pool settings. */ - targetPools: string[]; + targetPools?: string[]; } export interface Schema$InstanceGroupManagerUpdatePolicy { /** @@ -4220,7 +4261,7 @@ export namespace compute_beta { * either maxSurge or maxUnavailable must be greater than 0. Learn more * about maxSurge. */ - maxSurge: Schema$FixedOrPercent; + maxSurge?: Schema$FixedOrPercent; /** * The maximum number of instances that can be unavailable during the update * process. An instance is considered available if all of the following @@ -4235,7 +4276,7 @@ export namespace compute_beta { * either maxSurge or maxUnavailable must be greater than 0. Learn more * about maxUnavailable. */ - maxUnavailable: Schema$FixedOrPercent; + maxUnavailable?: Schema$FixedOrPercent; /** * Minimal action to be taken on an instance. You can specify either RESTART * to restart existing instances or REPLACE to delete and create new @@ -4244,21 +4285,21 @@ export namespace compute_beta { * determines that the minimal action you specify is not enough to perform * the update, it might perform a more disruptive action. */ - minimalAction: string; + minimalAction?: string; /** * Minimum number of seconds to wait for after a newly created instance * becomes available. This value must be from range [0, 3600]. */ - minReadySec: number; - type: string; + minReadySec?: number; + type?: string; } export interface Schema$InstanceGroupManagerVersion { - instanceTemplate: string; + instanceTemplate?: string; /** * Name of the version. Unique among all versions in the scope of this * managed instance group. */ - name: string; + name?: string; /** * Specifies the intended number of instances to be created from the * instanceTemplate. The final number of instances created from the template @@ -4270,29 +4311,29 @@ export namespace compute_beta { * not updated by another version. Read Starting a canary update for more * information. */ - targetSize: Schema$FixedOrPercent; + targetSize?: Schema$FixedOrPercent; } export interface Schema$InstanceGroupsAddInstancesRequest { /** * The list of instances to add to the instance group. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$InstanceGroupsListInstances { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceWithNamedPorts resources. */ - items: Schema$InstanceWithNamedPorts[]; + items?: Schema$InstanceWithNamedPorts[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupsListInstances for the list of instances in the * specified instance group. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4300,15 +4341,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupsListInstancesRequest { /** @@ -4316,25 +4357,25 @@ export namespace compute_beta { * options are ALL or RUNNING. If you do not specify this parameter the list * includes all instances regardless of their state. */ - instanceState: string; + instanceState?: string; } export interface Schema$InstanceGroupsRemoveInstancesRequest { /** * The list of instances to remove from the instance group. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$InstanceGroupsScopedList { /** * [Output Only] The list of instance groups that are contained in this * scope. */ - instanceGroups: Schema$InstanceGroup[]; + instanceGroups?: Schema$InstanceGroup[]; /** * [Output Only] An informational warning that replaces the list of instance * groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupsSetNamedPortsRequest { /** @@ -4345,11 +4386,11 @@ export namespace compute_beta { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of named ports to set for this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; } /** * Contains a list of instances. @@ -4358,16 +4399,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Instance resources. */ - items: Schema$Instance[]; + items?: Schema$Instance[]; /** * [Output Only] Type of resource. Always compute#instanceList for lists of * Instance resources. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4375,15 +4416,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of instance referrers. @@ -4392,16 +4433,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Reference resources. */ - items: Schema$Reference[]; + items?: Schema$Reference[]; /** * [Output Only] Type of resource. Always compute#instanceListReferrers for * lists of Instance referrers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4409,15 +4450,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceMoveRequest { /** @@ -4426,7 +4467,7 @@ export namespace compute_beta { * - https://www.googleapis.com/compute/v1/projects/project/zones/zone - * projects/project/zones/zone - zones/zone */ - destinationZone: string; + destinationZone?: string; /** * The URL of the target instance to move. This can be a full or partial * URL. For example, the following are all valid URLs to an instance: - @@ -4434,7 +4475,7 @@ export namespace compute_beta { * - projects/project/zones/zone/instances/instance - * zones/zone/instances/instance */ - targetInstance: string; + targetInstance?: string; } export interface Schema$InstanceProperties { /** @@ -4445,37 +4486,37 @@ export namespace compute_beta { * resource, specify true. If unsure, leave this set to false. See the * Enable IP forwarding documentation for more information. */ - canIpForward: boolean; + canIpForward?: boolean; /** * An optional text description for the instances that are created from this * instance template. */ - description: string; + description?: string; /** * An array of disks that are associated with the instances that are created * from this template. */ - disks: Schema$AttachedDisk[]; + disks?: Schema$AttachedDisk[]; /** * A list of guest accelerator cards' type and count to use for * instances created from the instance template. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; /** * Labels to apply to instances that are created from this template. */ - labels: any; + labels?: any; /** * The machine type to use for instances that are created from this * template. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs to assign to instances that are created from * this template. These pairs can consist of custom metadata or predefined * keys. See Project and instance metadata for more information. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * Minimum cpu/platform to be used by this instance. The instance may be * scheduled on the specified or newer cpu/platform. Applicable values are @@ -4483,47 +4524,47 @@ export namespace compute_beta { * Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more * information, read Specifying a Minimum CPU Platform. */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * An array of network access configurations for this interface. */ - networkInterfaces: Schema$NetworkInterface[]; + networkInterfaces?: Schema$NetworkInterface[]; /** * Specifies the scheduling options for the instances that are created from * this template. */ - scheduling: Schema$Scheduling; + scheduling?: Schema$Scheduling; /** * A list of service accounts with specified scopes. Access tokens for these * service accounts are available to the instances that are created from * this template. Use metadata queries to obtain the access tokens for these * instances. */ - serviceAccounts: Schema$ServiceAccount[]; + serviceAccounts?: Schema$ServiceAccount[]; /** * A list of tags to apply to the instances that are created from this * template. The tags identify valid sources or targets for network * firewalls. The setTags method can modify this list of tags. Each tag * within the list must comply with RFC1035. */ - tags: Schema$Tags; + tags?: Schema$Tags; } export interface Schema$InstanceReference { /** * The URL for a specific instance. */ - instance: string; + instance?: string; } export interface Schema$InstancesScopedList { /** * [Output Only] A list of instances contained in this scope. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * [Output Only] Informational warning which replaces the list of instances * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstancesSetLabelsRequest { /** @@ -4531,15 +4572,15 @@ export namespace compute_beta { * prevent conflicts. Provide the latest fingerprint value when making a * request to add or change labels. */ - labelFingerprint: string; - labels: any; + labelFingerprint?: string; + labels?: any; } export interface Schema$InstancesSetMachineResourcesRequest { /** * A list of the type and count of accelerator cards attached to the * instance. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; } export interface Schema$InstancesSetMachineTypeRequest { /** @@ -4547,23 +4588,23 @@ export namespace compute_beta { * full list of machine types. For example: * zones/us-central1-f/machineTypes/n1-standard-1 */ - machineType: string; + machineType?: string; } export interface Schema$InstancesSetMinCpuPlatformRequest { /** * Minimum cpu/platform this instance should be started at. */ - minCpuPlatform: string; + minCpuPlatform?: string; } export interface Schema$InstancesSetServiceAccountRequest { /** * Email address of the service account. */ - email: string; + email?: string; /** * The list of scopes to be made available for this service account. */ - scopes: string[]; + scopes?: string[]; } export interface Schema$InstancesStartWithEncryptionKeyRequest { /** @@ -4573,7 +4614,7 @@ export namespace compute_beta { * protected with a customer-supplied encryption key it should not be * specified. */ - disks: Schema$CustomerEncryptionKeyProtectedDisk[]; + disks?: Schema$CustomerEncryptionKeyProtectedDisk[]; } /** * An Instance Template resource. (== resource_for beta.instanceTemplates ==) @@ -4584,22 +4625,22 @@ export namespace compute_beta { * [Output Only] The creation timestamp for this instance template in * RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A unique identifier for this instance template. The server * defines this identifier. */ - id: string; + id?: string; /** * [Output Only] The resource type, which is always compute#instanceTemplate * for instance templates. */ - kind: string; + kind?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4609,16 +4650,16 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The instance properties for this instance template. */ - properties: Schema$InstanceProperties; + properties?: Schema$InstanceProperties; /** * [Output Only] The URL for this instance template. The server defines this * URL. */ - selfLink: string; + selfLink?: string; /** * The source instance used to create the template. You can provide this as * a partial or full URL to the resource. For example, the following are @@ -4626,11 +4667,11 @@ export namespace compute_beta { * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance * - projects/project/zones/zone/instances/instance */ - sourceInstance: string; + sourceInstance?: string; /** * The source instance params to use to create this instance template. */ - sourceInstanceParams: Schema$SourceInstanceParams; + sourceInstanceParams?: Schema$SourceInstanceParams; } /** * A list of instance templates. @@ -4639,16 +4680,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceTemplate resources. */ - items: Schema$InstanceTemplate[]; + items?: Schema$InstanceTemplate[]; /** * [Output Only] The resource type, which is always * compute#instanceTemplatesListResponse for instance template lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4656,29 +4697,29 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceWithNamedPorts { /** * [Output Only] The URL of the instance. */ - instance: string; + instance?: string; /** * [Output Only] The named ports that belong to this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * [Output Only] The status of the instance. */ - status: string; + status?: string; } /** * Represents an Interconnects resource. The Interconnects resource is a @@ -4693,60 +4734,60 @@ export namespace compute_beta { * packets can be carried over the interconnect and no BGP routes are * exchanged over it. By default, the status is set to true. */ - adminEnabled: boolean; + adminEnabled?: boolean; /** * [Output Only] A list of CircuitInfo objects, that describe the individual * circuits in this LAG. */ - circuitInfos: Schema$InterconnectCircuitInfo[]; + circuitInfos?: Schema$InterconnectCircuitInfo[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Customer name, to put in the Letter of Authorization as the party * authorized to request a crossconnect. */ - customerName: string; + customerName?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A list of outages expected for this Interconnect. */ - expectedOutages: Schema$InterconnectOutageNotification[]; + expectedOutages?: Schema$InterconnectOutageNotification[]; /** * [Output Only] IP address configured on the Google side of the * Interconnect link. This can be used only for ping tests. */ - googleIpAddress: string; + googleIpAddress?: string; /** * [Output Only] Google reference ID; to be used when raising support * tickets with Google or otherwise to debug backend connectivity issues. */ - googleReferenceId: string; + googleReferenceId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of the URLs of all InterconnectAttachments * configured to use this Interconnect. */ - interconnectAttachments: string[]; + interconnectAttachments?: string[]; /** * Type of interconnect. Note that "IT_PRIVATE" has been * deprecated in favor of "DEDICATED" */ - interconnectType: string; + interconnectType?: string; /** * [Output Only] Type of the resource. Always compute#interconnect for * interconnects. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this Interconnect, which is * essentially a hash of the labels set used for optimistic locking. The @@ -4755,24 +4796,24 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an Interconnect. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this Interconnect resource. These can be later * modified by the setLabels method. Each label key/value must comply with * RFC1035. Label values may be empty. */ - labels: any; + labels?: any; /** * Type of link requested. This field indicates speed of each of the links * in the bundle, not the entire bundle. Only 10G per link is allowed for a * dedicated interconnect. Options: Ethernet_10G_LR */ - linkType: string; + linkType?: string; /** * URL of the InterconnectLocation object that represents where this * connection is to be provisioned. */ - location: string; + location?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4782,43 +4823,43 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Email address to contact the customer NOC for operations and maintenance * notifications regarding this Interconnect. If specified, this will be * used for notifications in addition to all other forms described, such as * Stackdriver logs alerting and Cloud Notifications. */ - nocContactEmail: string; + nocContactEmail?: string; /** * [Output Only] The current status of whether or not this Interconnect is * functional. */ - operationalStatus: string; + operationalStatus?: string; /** * [Output Only] IP address configured on the customer side of the * Interconnect link. The customer should configure this IP address during * turnup when prompted by Google NOC. This can be used only for ping tests. */ - peerIpAddress: string; + peerIpAddress?: string; /** * [Output Only] Number of links actually provisioned in this interconnect. */ - provisionedLinkCount: number; + provisionedLinkCount?: number; /** * Target number of physical links in the link bundle, as requested by the * customer. */ - requestedLinkCount: number; + requestedLinkCount?: number; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The current state of whether or not this Interconnect is * functional. */ - state: string; + state?: string; } /** * Represents an InterconnectAttachment (VLAN attachment) resource. For more @@ -4831,14 +4872,14 @@ export namespace compute_beta { * Determines whether this Attachment will carry packets. Not present for * PARTNER_PROVIDER. */ - adminEnabled: boolean; + adminEnabled?: boolean; /** * Provisioned bandwidth capacity for the interconnectAttachment. Can be set * by the partner to update the customer's provisioned bandwidth. Output * only for for PARTNER type, mutable for PARTNER_PROVIDER, not available * for DEDICATED. */ - bandwidth: string; + bandwidth?: string; /** * Up to 16 candidate prefixes that can be used to restrict the allocation * of cloudRouterIpAddress and customerRouterIpAddress for this attachment. @@ -4848,25 +4889,25 @@ export namespace compute_beta { * if all possible /29s are in use on Google?s edge. If not supplied, Google * will randomly select an unused /29 from all of link-local space. */ - candidateSubnets: string[]; + candidateSubnets?: string[]; /** * [Output Only] IPv4 address + prefix length to be configured on Cloud * Router Interface for this interconnect attachment. */ - cloudRouterIpAddress: string; + cloudRouterIpAddress?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] IPv4 address + prefix length to be configured on the * customer router subinterface for this interconnect attachment. */ - customerRouterIpAddress: string; + customerRouterIpAddress?: string; /** * An optional description of this resource. */ - description: string; + description?: string; /** * Desired availability domain for the attachment. Only available for type * PARTNER, at creation time. For improved reliability, customers should @@ -4876,27 +4917,27 @@ export namespace compute_beta { * domain. If not specified, the value will default to * AVAILABILITY_DOMAIN_ANY. */ - edgeAvailabilityDomain: string; + edgeAvailabilityDomain?: string; /** * [Output Only] Google reference ID, to be used when raising support * tickets with Google or otherwise to debug backend connectivity issues. */ - googleReferenceId: string; + googleReferenceId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * URL of the underlying Interconnect object that this attachment's * traffic will traverse through. */ - interconnect: string; + interconnect?: string; /** * [Output Only] Type of the resource. Always compute#interconnectAttachment * for interconnect attachments. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this * InterconnectAttachment, which is essentially a hash of the labels set @@ -4906,13 +4947,13 @@ export namespace compute_beta { * to update or change labels. To see the latest fingerprint, make a get() * request to retrieve an InterconnectAttachment. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this InterconnectAttachment resource. These can be * later modified by the setLabels method. Each label key/value must comply * with RFC1035. Label values may be empty. */ - labels: any; + labels?: any; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4922,82 +4963,82 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] The current status of whether or not this interconnect * attachment is functional. */ - operationalStatus: string; + operationalStatus?: string; /** * [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not * present for DEDICATED]. The opaque identifier of an PARTNER attachment * used to initiate provisioning with a selected partner. Of the form * "XXXXX/region/domain" */ - pairingKey: string; + pairingKey?: string; /** * Optional BGP ASN for the router that should be supplied by a layer 3 * Partner if they configured BGP on behalf of the customer. Output only for * PARTNER type, input only for PARTNER_PROVIDER, not available for * DEDICATED. */ - partnerAsn: string; + partnerAsn?: string; /** * Informational metadata about Partner attachments from Partners to display * to customers. Output only for for PARTNER type, mutable for * PARTNER_PROVIDER, not available for DEDICATED. */ - partnerMetadata: Schema$InterconnectAttachmentPartnerMetadata; + partnerMetadata?: Schema$InterconnectAttachmentPartnerMetadata; /** * [Output Only] Information specific to an InterconnectAttachment. This * property is populated if the interconnect that this is attached to is of * type DEDICATED. */ - privateInterconnectInfo: Schema$InterconnectAttachmentPrivateInfo; + privateInterconnectInfo?: Schema$InterconnectAttachmentPrivateInfo; /** * [Output Only] URL of the region where the regional interconnect * attachment resides. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - region: string; + region?: string; /** * URL of the cloud router to be used for dynamic routing. This router must * be in the same region as this InterconnectAttachment. The * InterconnectAttachment will automatically connect the Interconnect to the * network & region within which the Cloud Router is configured. */ - router: string; + router?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The current state of this attachment's functionality. */ - state: string; - type: string; + state?: string; + type?: string; /** * Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for * this attachment, in the range 2-4094. This field refers to 802.1q VLAN * tag, also known as IEEE 802.1Q Only specified at creation time. */ - vlanTag8021q: number; + vlanTag8021q?: number; } export interface Schema$InterconnectAttachmentAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectAttachmentsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#interconnectAttachmentAggregatedList for aggregated lists of * interconnect attachments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5005,15 +5046,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Response to the list request, and contains a list of interconnect @@ -5023,16 +5064,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectAttachment resources. */ - items: Schema$InterconnectAttachment[]; + items?: Schema$InterconnectAttachment[]; /** * [Output Only] Type of resource. Always compute#interconnectAttachmentList * for lists of interconnect attachments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5040,15 +5081,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Informational metadata about Partner attachments from Partners to display @@ -5061,18 +5102,18 @@ export namespace compute_beta { * displayed in the Partner?s portal. For instance ?Chicago 1?. This value * may be validated to match approved Partner values. */ - interconnectName: string; + interconnectName?: string; /** * Plain text name of the Partner providing this attachment. This value may * be validated to match approved Partner values. */ - partnerName: string; + partnerName?: string; /** * URL of the Partner?s portal for this Attachment. Partners may customise * this to be a deep-link to the specific resource on the Partner portal. * This value may be validated to match approved Partner values. */ - portalUrl: string; + portalUrl?: string; } /** * Information for an interconnect attachment when this belongs to an @@ -5083,18 +5124,18 @@ export namespace compute_beta { * [Output Only] 802.1q encapsulation tag to be used for traffic between * Google and the customer, going to and from this network and region. */ - tag8021q: number; + tag8021q?: number; } export interface Schema$InterconnectAttachmentsScopedList { /** * A list of interconnect attachments contained in this scope. */ - interconnectAttachments: Schema$InterconnectAttachment[]; + interconnectAttachments?: Schema$InterconnectAttachment[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } /** * Describes a single physical circuit between the Customer and Google. @@ -5105,16 +5146,16 @@ export namespace compute_beta { /** * Customer-side demarc ID for this circuit. */ - customerDemarcId: string; + customerDemarcId?: string; /** * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. */ - googleCircuitId: string; + googleCircuitId?: string; /** * Google-side demarc ID for this circuit. Assigned at circuit turn-up and * provided by Google to the customer in the LOA. */ - googleDemarcId: string; + googleDemarcId?: string; } /** * Response to the list request, and contains a list of interconnects. @@ -5123,16 +5164,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Interconnect resources. */ - items: Schema$Interconnect[]; + items?: Schema$Interconnect[]; /** * [Output Only] Type of resource. Always compute#interconnectList for lists * of interconnects. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5140,15 +5181,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents an InterconnectLocations resource. The InterconnectLocations @@ -5160,70 +5201,70 @@ export namespace compute_beta { * [Output Only] The postal address of the Point of Presence, each line in * the address is separated by a newline character. */ - address: string; + address?: string; /** * [Output Only] Availability zone for this location. Within a metropolitan * area (metro), maintenance will not be simultaneously scheduled in more * than one availability zone. Example: "zone1" or * "zone2". */ - availabilityZone: string; + availabilityZone?: string; /** * [Output Only] Metropolitan area designator that indicates which city an * interconnect is located. For example: "Chicago, IL", * "Amsterdam, Netherlands". */ - city: string; + city?: string; /** * [Output Only] Continent for this location. */ - continent: string; + continent?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] An optional description of the resource. */ - description: string; + description?: string; /** * [Output Only] The name of the provider for this facility (e.g., EQUINIX). */ - facilityProvider: string; + facilityProvider?: string; /** * [Output Only] A provider-assigned Identifier for this facility (e.g., * Ashburn-DC1). */ - facilityProviderFacilityId: string; + facilityProviderFacilityId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#interconnectLocation * for interconnect locations. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The peeringdb identifier for this facility (corresponding * with a netfac type in peeringdb). */ - peeringdbFacilityId: string; + peeringdbFacilityId?: string; /** * [Output Only] A list of InterconnectLocation.RegionInfo objects, that * describe parameters pertaining to the relation between this * InterconnectLocation and various Google Cloud regions. */ - regionInfos: Schema$InterconnectLocationRegionInfo[]; + regionInfos?: Schema$InterconnectLocationRegionInfo[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Response to the list request, and contains a list of interconnect @@ -5233,16 +5274,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectLocation resources. */ - items: Schema$InterconnectLocation[]; + items?: Schema$InterconnectLocation[]; /** * [Output Only] Type of resource. Always compute#interconnectLocationList * for lists of interconnect locations. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5250,15 +5291,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Information about any potential InterconnectAttachments between an @@ -5270,58 +5311,58 @@ export namespace compute_beta { * Expected round-trip time in milliseconds, from this InterconnectLocation * to a VM in this region. */ - expectedRttMs: string; + expectedRttMs?: string; /** * Identifies the network presence of this location. */ - locationPresence: string; + locationPresence?: string; /** * URL for the region of this location. */ - region: string; + region?: string; } /** * Description of a planned outage on this Interconnect. Next id: 9 */ export interface Schema$InterconnectOutageNotification { /** - * Iff issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit - * IDs that will be affected. + * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs + * that will be affected. */ - affectedCircuits: string[]; + affectedCircuits?: string[]; /** * A description about the purpose of the outage. */ - description: string; + description?: string; /** * Scheduled end time for the outage (milliseconds since Unix epoch). */ - endTime: string; + endTime?: string; /** * Form this outage is expected to take. Note that the "IT_" * versions of this enum have been deprecated in favor of the unprefixed * values. */ - issueType: string; + issueType?: string; /** * Unique identifier for this outage notification. */ - name: string; + name?: string; /** * The party that generated this notification. Note that * "NSRC_GOOGLE" has been deprecated in favor of * "GOOGLE" */ - source: string; + source?: string; /** * Scheduled start time for the outage (milliseconds since Unix epoch). */ - startTime: string; + startTime?: string; /** * State of this notification. Note that the "NS_" versions of * this enum have been deprecated in favor of the unprefixed values. */ - state: string; + state?: string; } /** * A license resource. @@ -5331,120 +5372,120 @@ export namespace compute_beta { * [Output Only] Deprecated. This field no longer reflects whether a license * charges a usage fee. */ - chargesUseFee: boolean; + chargesUseFee?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#license for licenses. */ - kind: string; + kind?: string; /** * [Output Only] The unique code used to attach this license to images, * snapshots, and disks. */ - licenseCode: string; + licenseCode?: string; /** * [Output Only] Name of the resource. The name is 1-63 characters long and * complies with RFC1035. */ - name: string; - resourceRequirements: Schema$LicenseResourceRequirements; + name?: string; + resourceRequirements?: Schema$LicenseResourceRequirements; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * If false, licenses will not be copied from the source resource when * creating an image from a disk, disk from snapshot, or snapshot from disk. */ - transferable: boolean; + transferable?: boolean; } export interface Schema$LicenseCode { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Description of this License Code. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#licenseCode for licenses. */ - kind: string; + kind?: string; /** * [Output Only] URL and description aliases of Licenses with the same * License Code. */ - licenseAlias: Schema$LicenseCodeLicenseAlias[]; + licenseAlias?: Schema$LicenseCodeLicenseAlias[]; /** * [Output Only] Name of the resource. The name is 1-20 characters long and * must be a valid 64 bit integer. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Current state of this License Code. */ - state: string; + state?: string; /** * [Output Only] If true, the license will remain attached when creating * images or snapshots from disks. Otherwise, the license is not * transferred. */ - transferable: boolean; + transferable?: boolean; } export interface Schema$LicenseCodeLicenseAlias { /** * [Output Only] Description of this License Code. */ - description: string; + description?: string; /** * [Output Only] URL of license corresponding to this License Code. */ - selfLink: string; + selfLink?: string; } export interface Schema$LicenseResourceRequirements { /** * Minimum number of guest cpus required to use the Instance. Enforced at * Instance creation and Instance start. */ - minGuestCpuCount: number; + minGuestCpuCount?: number; /** * Minimum memory required to use the Instance. Enforced at Instance * creation and Instance start. */ - minMemoryMb: number; + minMemoryMb?: number; } export interface Schema$LicensesListResponse { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of License resources. */ - items: Schema$License[]; + items?: Schema$License[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5452,15 +5493,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Specifies what kind of log the caller must write @@ -5469,15 +5510,15 @@ export namespace compute_beta { /** * Cloud audit options. */ - cloudAudit: Schema$LogConfigCloudAuditOptions; + cloudAudit?: Schema$LogConfigCloudAuditOptions; /** * Counter options. */ - counter: Schema$LogConfigCounterOptions; + counter?: Schema$LogConfigCounterOptions; /** * Data access options. */ - dataAccess: Schema$LogConfigDataAccessOptions; + dataAccess?: Schema$LogConfigDataAccessOptions; } /** * Write a Cloud Audit log @@ -5486,11 +5527,11 @@ export namespace compute_beta { /** * Information used by the Cloud Audit Logging pipeline. */ - authorizationLoggingOptions: Schema$AuthorizationLoggingOptions; + authorizationLoggingOptions?: Schema$AuthorizationLoggingOptions; /** * The log_name to populate in the Cloud Audit Record. */ - logName: string; + logName?: string; } /** * Increment a streamz counter with the specified metric and field names. @@ -5513,11 +5554,11 @@ export namespace compute_beta { /** * The field value to attribute. */ - field: string; + field?: string; /** * The metric to update. */ - metric: string; + metric?: string; } /** * Write a Data Access (Gin) log @@ -5527,7 +5568,7 @@ export namespace compute_beta { * Whether Gin logging should happen in a fail-closed manner at the caller. * This is relevant only in the LocalIAM implementation, for now. */ - logMode: string; + logMode?: string; } /** * A Machine Type resource. (== resource_for v1.machineTypes ==) (== @@ -5537,76 +5578,76 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this machine type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The number of virtual CPUs that are available to the * instance. */ - guestCpus: number; + guestCpus?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Whether this machine type has a shared CPU. See Shared-core * machine types for more information. */ - isSharedCpu: boolean; + isSharedCpu?: boolean; /** * [Output Only] The type of the resource. Always compute#machineType for * machine types. */ - kind: string; + kind?: string; /** * [Output Only] Maximum persistent disks allowed. */ - maximumPersistentDisks: number; + maximumPersistentDisks?: number; /** * [Output Only] Maximum total persistent disks size (GB) allowed. */ - maximumPersistentDisksSizeGb: string; + maximumPersistentDisksSizeGb?: string; /** * [Output Only] The amount of physical memory available to the instance, * defined in MB. */ - memoryMb: number; + memoryMb?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the machine type resides, such * as us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$MachineTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of MachineTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#machineTypeAggregatedList * for aggregated lists of machine types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5614,15 +5655,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of machine types. @@ -5631,16 +5672,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of MachineType resources. */ - items: Schema$MachineType[]; + items?: Schema$MachineType[]; /** * [Output Only] Type of resource. Always compute#machineTypeList for lists * of machine types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5648,26 +5689,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$MachineTypesScopedList { /** * [Output Only] A list of machine types contained in this scope. */ - machineTypes: Schema$MachineType[]; + machineTypes?: Schema$MachineType[]; /** * [Output Only] An informational warning that appears when the machine * types list is empty. */ - warning: any; + warning?: any; } /** * Next available tag: 12 @@ -5695,49 +5736,49 @@ export namespace compute_beta { * instance group has created the instance and it is in the process of being * verified. */ - currentAction: string; + currentAction?: string; /** * [Output only] The unique identifier for this resource. This field is * empty when instance does not exist. */ - id: string; + id?: string; /** * [Output Only] The URL of the instance. The URL can exist even if the * instance has not yet been created. */ - instance: string; + instance?: string; /** * [Output Only] The status of the instance. This field is empty when the * instance does not exist. */ - instanceStatus: string; + instanceStatus?: string; /** * [Output Only] Information about the last attempt to create or delete the * instance. */ - lastAttempt: Schema$ManagedInstanceLastAttempt; + lastAttempt?: Schema$ManagedInstanceLastAttempt; /** * [Output Only] Intended version of this instance. */ - version: Schema$ManagedInstanceVersion; + version?: Schema$ManagedInstanceVersion; } export interface Schema$ManagedInstanceLastAttempt { /** * [Output Only] Encountered errors during the last attempt to create or * delete the instance. */ - errors: any; + errors?: any; } export interface Schema$ManagedInstanceVersion { /** * [Output Only] The intended template of the instance. This field is empty * when current_action is one of { DELETING, ABANDONING }. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] Name of the version. */ - name: string; + name?: string; } /** * A metadata key/value entry. @@ -5750,16 +5791,16 @@ export namespace compute_beta { * every request to modify or update metadata. You must always provide an * up-to-date fingerprint hash in order to update or change metadata. */ - fingerprint: string; + fingerprint?: string; /** * Array of key/value pairs. The total size of all keys and values must be * less than 512 KB. */ - items: any[]; + items?: any[]; /** * [Output Only] Type of the resource. Always compute#metadata for metadata. */ - kind: string; + kind?: string; } /** * The named port. For example: . @@ -5769,11 +5810,11 @@ export namespace compute_beta { * The name for this named port. The name must be 1-63 characters long, and * comply with RFC1035. */ - name: string; + name?: string; /** * The port number, which can be a value between 1 and 65535. */ - port: number; + port?: number; } /** * Represents a Network resource. Read Networks and Firewalls for more @@ -5788,37 +5829,37 @@ export namespace compute_beta { * default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork * per region. */ - autoCreateSubnetworks: boolean; + autoCreateSubnetworks?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A gateway address for default routing to other networks. This value is * read only and is selected by the Google Compute Engine, typically as the * first usable address in the IPv4Range. */ - gatewayIPv4: string; + gatewayIPv4?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The range of internal addresses that are legal on this network. This * range is a CIDR specification, for example: 192.168.0.0/16. Provided by * the client when the network is created. */ - IPv4Range: string; + IPv4Range?: string; /** * [Output Only] Type of the resource. Always compute#network for networks. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -5828,26 +5869,26 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] A list of network peerings for the resource. */ - peerings: Schema$NetworkPeering[]; + peerings?: Schema$NetworkPeering[]; /** * The network-level routing configuration for this network. Used by Cloud * Router to determine what type of network-wide routing behavior to * enforce. */ - routingConfig: Schema$NetworkRoutingConfig; + routingConfig?: Schema$NetworkRoutingConfig; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Server-defined fully-qualified URLs for all subnetworks in * this network. */ - subnetworks: string[]; + subnetworks?: string[]; } /** * A network interface resource attached to an instance. @@ -5858,29 +5899,29 @@ export namespace compute_beta { * config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs * specified, then this instance will have no external internet access. */ - accessConfigs: Schema$AccessConfig[]; + accessConfigs?: Schema$AccessConfig[]; /** * An array of alias IP ranges for this network interface. Can only be * specified for network interfaces on subnet-mode networks. */ - aliasIpRanges: Schema$AliasIpRange[]; + aliasIpRanges?: Schema$AliasIpRange[]; /** * Fingerprint hash of contents stored in this network interface. This field * will be ignored when inserting an Instance or adding a NetworkInterface. * An up-to-date fingerprint must be provided in order to update the * NetworkInterface. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] Type of the resource. Always compute#networkInterface for * network interfaces. */ - kind: string; + kind?: string; /** * [Output Only] The name of the network interface, generated by the server. * For network devices, these are eth0, eth1, etc. */ - name: string; + name?: string; /** * URL of the network resource for this instance. When creating an instance, * if neither the network nor the subnetwork is specified, the default @@ -5893,13 +5934,13 @@ export namespace compute_beta { * https://www.googleapis.com/compute/v1/projects/project/global/networks/network * - projects/project/global/networks/network - global/networks/default */ - network: string; + network?: string; /** * An IPv4 internal network address to assign to the instance for this * network interface. If not specified by the user, an unused internal IP is * assigned by the system. */ - networkIP: string; + networkIP?: string; /** * The URL of the Subnetwork resource for this instance. If the network * resource is in legacy mode, do not provide this property. If the network @@ -5910,7 +5951,7 @@ export namespace compute_beta { * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork * - regions/region/subnetworks/subnetwork */ - subnetwork: string; + subnetwork?: string; } /** * Contains a list of networks. @@ -5919,16 +5960,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Network resources. */ - items: Schema$Network[]; + items?: Schema$Network[]; /** * [Output Only] Type of resource. Always compute#networkList for lists of * networks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5936,15 +5977,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A network peering attached to a network resource. The message includes the @@ -5959,7 +6000,7 @@ export namespace compute_beta { * Otherwise, user needs to create routes manually to route packets to peer * network. */ - autoCreateRoutes: boolean; + autoCreateRoutes?: boolean; /** * Name of this peering. Provided by the client when the peering is created. * The name must comply with RFC1035. Specifically, the name must be 1-63 @@ -5968,22 +6009,22 @@ export namespace compute_beta { * following characters must be a dash, lowercase letter, or digit, except * the last character, which cannot be a dash. */ - name: string; + name?: string; /** * The URL of the peer network. It can be either full URL or partial URL. * The peer network may belong to a different project. If the partial URL * does not contain project, it is assumed that the peer network is in the * same project as the current network. */ - network: string; + network?: string; /** * [Output Only] State for the peering. */ - state: string; + state?: string; /** * [Output Only] Details about the current state of the peering. */ - stateDetails: string; + stateDetails?: string; } /** * A routing configuration attached to a network resource. The message @@ -5998,30 +6039,30 @@ export namespace compute_beta { * network's cloud routers will advertise routes with all subnetworks of * this network, across regions. */ - routingMode: string; + routingMode?: string; } export interface Schema$NetworksAddPeeringRequest { /** * Whether Google Compute Engine manages the routes automatically. */ - autoCreateRoutes: boolean; + autoCreateRoutes?: boolean; /** * Name of the peering, which should conform to RFC1035. */ - name: string; + name?: string; /** * URL of the peer network. It can be either full URL or partial URL. The * peer network may belong to a different project. If the partial URL does * not contain project, it is assumed that the peer network is in the same * project as the current network. */ - peerNetwork: string; + peerNetwork?: string; } export interface Schema$NetworksRemovePeeringRequest { /** * Name of the peering, which should conform to RFC1035. */ - name: string; + name?: string; } /** * An Operation resource, used to manage asynchronous API requests. (== @@ -6034,61 +6075,61 @@ export namespace compute_beta { /** * [Output Only] Reserved for future use. */ - clientOperationId: string; + clientOperationId?: string; /** * [Deprecated] This field is deprecated. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] A textual description of the operation, which is set when * the operation is created. */ - description: string; + description?: string; /** * [Output Only] The time that this operation was completed. This value is * in RFC3339 text format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors are generated during processing of the operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as NOT FOUND. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output Only] If the operation fails, this field contains the HTTP error * status code that was returned. For example, a 404 means the resource was * not found. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This value is * in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always compute#operation for * Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The type of operation, such as insert, update, or delete, * and so on. */ - operationType: string; + operationType?: string; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -6096,77 +6137,77 @@ export namespace compute_beta { * complete. This number should monotonically increase as the operation * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The URL of the region where the operation resides. Only * available when performing regional operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] The status of the operation, which can be one of the * following: PENDING, RUNNING, or DONE. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The unique target ID, which identifies a specific * incarnation of the target resource. */ - targetId: string; + targetId?: string; /** * [Output Only] The URL of the resource that the operation modifies. For * operations related to creating a snapshot, this points to the persistent * disk that the snapshot was created from. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If warning messages are generated during processing of the * operation, this field will be populated. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] The URL of the zone where the operation resides. Only * available when performing per-zone operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - zone: string; + zone?: string; } export interface Schema$OperationAggregatedList { /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A map of scoped operation lists. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#operationAggregatedList * for aggregated lists of operations. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6174,15 +6215,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Operation resources. @@ -6192,16 +6233,16 @@ export namespace compute_beta { * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of Operation resources. */ - items: Schema$Operation[]; + items?: Schema$Operation[]; /** * [Output Only] Type of resource. Always compute#operations for Operations * resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6209,26 +6250,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$OperationsScopedList { /** * [Output Only] A list of operations contained in this scope. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; /** * [Output Only] Informational warning which replaces the list of operations * when the list is empty. */ - warning: any; + warning?: any; } /** * A matcher for the path portion of the URL. The BackendService from the @@ -6245,20 +6286,20 @@ export namespace compute_beta { * - compute/v1/projects/project/global/backendServices/backendService - * global/backendServices/backendService */ - defaultService: string; + defaultService?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The name to which this PathMatcher is referred by the HostRule. */ - name: string; + name?: string; /** * The list of path rules. */ - pathRules: Schema$PathRule[]; + pathRules?: Schema$PathRule[]; } /** * A path-matching rule for a URL. If matched, will use the specified @@ -6271,38 +6312,41 @@ export namespace compute_beta { * path matcher does not include any text after the first ? or #, and those * chars are not allowed here. */ - paths: string[]; + paths?: string[]; /** * The URL of the BackendService resource if this rule is matched. */ - service: string; + service?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ + * defined by IAM. **JSON Example** { "bindings": [ { + * "role": "roles/owner", "members": [ * "user:mike@example.com", "group:admins@example.com", * "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.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 + * ["user:sean@example.com"] } ] } **YAML Example** bindings: - + * members: - user:mike@example.com - group:admins@example.com - + * domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + * role: roles/owner - members: - user:sean@example.com role: roles/viewer For + * a description of IAM and its features, see the [IAM developer's * guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -6314,8 +6358,8 @@ export namespace compute_beta { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; - iamOwned: boolean; + etag?: string; + iamOwned?: boolean; /** * If more than one rule is specified, the rules are applied in the * following manner: - All matching LOG rules are always applied. - If any @@ -6325,11 +6369,11 @@ export namespace compute_beta { * will be applied if one or more matching rule requires logging. - * Otherwise, if no rule applies, permission is denied. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; /** * Deprecated. */ - version: number; + version?: number; } /** * A Project resource. For an overview of projects, see Cloud Platform @@ -6341,82 +6385,82 @@ export namespace compute_beta { * Metadata key/value pairs available to all instances contained in this * project. See Custom metadata for more information. */ - commonInstanceMetadata: Schema$Metadata; + commonInstanceMetadata?: Schema$Metadata; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * This signifies the default network tier used for configuring resources of * the project and can only take the following values: PREMIUM, STANDARD. * Initially the default network tier is PREMIUM. */ - defaultNetworkTier: string; + defaultNetworkTier?: string; /** * [Output Only] Default service account used by VMs running in this * project. */ - defaultServiceAccount: string; + defaultServiceAccount?: string; /** * An optional textual description of the resource. */ - description: string; + description?: string; /** * Restricted features enabled for use on this project. */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. This is not the project ID, and is just a unique * ID used by Compute Engine to identify resources. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#project for projects. */ - kind: string; + kind?: string; /** * The project ID. For example: my-example-project. Use the project ID to * make requests to Compute Engine. */ - name: string; + name?: string; /** * [Output Only] Quotas assigned to this project. */ - quotas: Schema$Quota[]; + quotas?: Schema$Quota[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The naming prefix for daily usage reports and the Google Cloud Storage * bucket where they are stored. */ - usageExportLocation: Schema$UsageExportLocation; + usageExportLocation?: Schema$UsageExportLocation; /** * [Output Only] The role this project has in a shared VPC configuration. * Currently only HOST projects are differentiated. */ - xpnProjectStatus: string; + xpnProjectStatus?: string; } export interface Schema$ProjectsDisableXpnResourceRequest { /** * Service resource (a.k.a service project) ID. */ - xpnResource: Schema$XpnResourceId; + xpnResource?: Schema$XpnResourceId; } export interface Schema$ProjectsEnableXpnResourceRequest { /** * Service resource (a.k.a service project) ID. */ - xpnResource: Schema$XpnResourceId; + xpnResource?: Schema$XpnResourceId; } export interface Schema$ProjectsGetXpnResources { /** * [Output Only] Type of resource. Always compute#projectsGetXpnResources * for lists of service resources (a.k.a service projects) */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6424,12 +6468,12 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * Service resources (a.k.a service projects) attached to this project as * their shared VPC host. */ - resources: Schema$XpnResourceId[]; + resources?: Schema$XpnResourceId[]; } export interface Schema$ProjectsListXpnHostsRequest { /** @@ -6437,13 +6481,13 @@ export namespace compute_beta { * list shared VPC host projects. If not specified, the organization will be * inferred from the project. */ - organization: string; + organization?: string; } export interface Schema$ProjectsSetDefaultNetworkTierRequest { /** * Default network tier to be set. */ - networkTier: string; + networkTier?: string; } /** * A quotas entry. @@ -6452,15 +6496,15 @@ export namespace compute_beta { /** * [Output Only] Quota limit for this metric. */ - limit: number; + limit?: number; /** * [Output Only] Name of the quota metric. */ - metric: string; + metric?: string; /** * [Output Only] Current usage of this metric. */ - usage: number; + usage?: number; } /** * Represents a reference to a resource. @@ -6470,20 +6514,20 @@ export namespace compute_beta { * [Output Only] Type of the resource. Always compute#reference for * references. */ - kind: string; + kind?: string; /** * A description of the reference type with no implied semantics. Possible * values include: - MEMBER_OF */ - referenceType: string; + referenceType?: string; /** * URL of the resource which refers to the target. */ - referrer: string; + referrer?: string; /** * URL of the resource to which this reference points. */ - target: string; + target?: string; } /** * Region resource. (== resource_for beta.regions ==) (== resource_for @@ -6493,45 +6537,45 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this region. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] Textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#region for regions. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Quotas assigned to this region. */ - quotas: Schema$Quota[]; + quotas?: Schema$Quota[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the region, either UP or DOWN. */ - status: string; + status?: string; /** * [Output Only] A list of zones available in this region, in the form of * resource URLs. */ - zones: string[]; + zones?: string[]; } /** * Contains a list of autoscalers. @@ -6540,15 +6584,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Autoscaler resources. */ - items: Schema$Autoscaler[]; + items?: Schema$Autoscaler[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6556,36 +6600,36 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionDisksResizeRequest { /** * The new size of the regional persistent disk, which is specified in GB. */ - sizeGb: string; + sizeGb?: string; } export interface Schema$RegionDiskTypeList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskType resources. */ - items: Schema$DiskType[]; + items?: Schema$DiskType[]; /** * [Output Only] Type of resource. Always compute#regionDiskTypeList for * region disk types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6593,15 +6637,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of InstanceGroup resources. @@ -6610,15 +6654,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroup resources. */ - items: Schema$InstanceGroup[]; + items?: Schema$InstanceGroup[]; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6626,15 +6670,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of managed instance groups. @@ -6643,17 +6687,17 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManager resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerList for a list of managed instance groups * that exist in th regional scope. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6661,35 +6705,35 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupManagersAbandonInstancesRequest { /** * The URLs of one or more instances to abandon. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersDeleteInstancesRequest { /** * The URLs of one or more instances to delete. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersListInstancesResponse { /** * A list of managed instances. */ - managedInstances: Schema$ManagedInstance[]; + managedInstances?: Schema$ManagedInstance[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6697,17 +6741,17 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$RegionInstanceGroupManagersRecreateRequest { /** * The URLs of one or more instances to recreate. This can be a full URL or * a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersSetAutoHealingRequest { - autoHealingPolicies: Schema$InstanceGroupManagerAutoHealingPolicy[]; + autoHealingPolicies?: Schema$InstanceGroupManagerAutoHealingPolicy[]; } export interface Schema$RegionInstanceGroupManagersSetTargetPoolsRequest { /** @@ -6715,34 +6759,34 @@ export namespace compute_beta { * contents. This field is used for optimistic locking when you update the * target pool entries. This field is optional. */ - fingerprint: string; + fingerprint?: string; /** * The URL of all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to * all of the instances in the managed instance group. */ - targetPools: string[]; + targetPools?: string[]; } export interface Schema$RegionInstanceGroupManagersSetTemplateRequest { /** * URL of the InstanceTemplate resource from which all new instances will be * created. */ - instanceTemplate: string; + instanceTemplate?: string; } export interface Schema$RegionInstanceGroupsListInstances { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceWithNamedPorts resources. */ - items: Schema$InstanceWithNamedPorts[]; + items?: Schema$InstanceWithNamedPorts[]; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6750,28 +6794,28 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupsListInstancesRequest { /** * Instances in which state should be returned. Valid options are: * 'ALL', 'RUNNING'. By default, it lists all instances. */ - instanceState: string; + instanceState?: string; /** * Name of port user is interested in. It is optional. If it is set, only * information about this ports will be returned. If it is not set, all the * named ports will be returned. Always lists all instances. */ - portName: string; + portName?: string; } export interface Schema$RegionInstanceGroupsSetNamedPortsRequest { /** @@ -6782,11 +6826,11 @@ export namespace compute_beta { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of named ports to set for this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; } /** * Contains a list of region resources. @@ -6795,16 +6839,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Region resources. */ - items: Schema$Region[]; + items?: Schema$Region[]; /** * [Output Only] Type of resource. Always compute#regionList for lists of * regions. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6812,15 +6856,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionSetLabelsRequest { /** @@ -6831,11 +6875,11 @@ export namespace compute_beta { * change labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The labels to set for this resource. */ - labels: any; + labels?: any; } /** * Commitment for a particular resource (a Commitment is composed of one or @@ -6848,19 +6892,19 @@ export namespace compute_beta { * provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of * memory per every vCPU. */ - amount: string; + amount?: string; /** * Type of resource for which this commitment applies. Possible values are * VCPU and MEMORY */ - type: string; + type?: string; } export interface Schema$ResourceGroupReference { /** * A URI referencing one of the instance groups listed in the backend * service. */ - group: string; + group?: string; } /** * Represents a Route resource. A route specifies how certain packets should @@ -6882,27 +6926,27 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The destination range of outgoing packets that this route applies to. * Only IPv4 is supported. */ - destRange: string; + destRange?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of this resource. Always compute#routes for Route * resources. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -6912,41 +6956,41 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Fully-qualified URL of the network that this route applies to. */ - network: string; + network?: string; /** * The URL to a gateway that should handle matching packets. You can only * specify the internet gateway using a full or partial valid URL: * projects/<project-id>/global/gateways/default-internet-gateway */ - nextHopGateway: string; + nextHopGateway?: string; /** * The URL to an instance that should handle matching packets. You can * specify this as a full or partial URL. For example: * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ */ - nextHopInstance: string; + nextHopInstance?: string; /** * The network IP address of an instance that should handle matching * packets. Only IPv4 is supported. */ - nextHopIp: string; + nextHopIp?: string; /** * The URL of the local network if it should handle matching packets. */ - nextHopNetwork: string; + nextHopNetwork?: string; /** * [Output Only] The network peering name that should handle matching * packets, which should conform to RFC1035. */ - nextHopPeering: string; + nextHopPeering?: string; /** * The URL to a VpnTunnel that should handle matching packets. */ - nextHopVpnTunnel: string; + nextHopVpnTunnel?: string; /** * The priority of this route. Priority is used to break ties in cases where * there is more than one matching route of equal prefix length. In the case @@ -6954,20 +6998,20 @@ export namespace compute_beta { * priority value wins. Default value is 1000. Valid range is 0 through * 65535. */ - priority: number; + priority?: number; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * A list of instance tags to which this route applies. */ - tags: string[]; + tags?: string[]; /** * [Output Only] If potential misconfigurations are detected for this route, * this field will be populated with warning messages. */ - warnings: any[]; + warnings?: any[]; } /** * Contains a list of Route resources. @@ -6976,15 +7020,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Route resources. */ - items: Schema$Route[]; + items?: Schema$Route[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6992,15 +7036,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Router resource. @@ -7009,37 +7053,37 @@ export namespace compute_beta { /** * BGP information specific to this router. */ - bgp: Schema$RouterBgp; + bgp?: Schema$RouterBgp; /** * BGP information that needs to be configured into the routing stack to * establish the BGP peering. It must specify peer ASN and either interface * name, IP, or peer IP. Please refer to RFC4273. */ - bgpPeers: Schema$RouterBgpPeer[]; + bgpPeers?: Schema$RouterBgpPeer[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Router interfaces. Each interface requires either one linked resource * (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. * ipRange), or both. */ - interfaces: Schema$RouterInterface[]; + interfaces?: Schema$RouterInterface[]; /** * [Output Only] Type of resource. Always compute#router for routers. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7049,21 +7093,21 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URI of the network to which this router belongs. */ - network: string; + network?: string; /** * [Output Only] URI of the region where the router resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Description-tagged IP ranges for the router to advertise. @@ -7072,11 +7116,11 @@ export namespace compute_beta { /** * User-specified description for the IP range. */ - description: string; + description?: string; /** * The IP range to advertise. The value must be a CIDR-formatted string. */ - range: string; + range?: string; } /** * Contains a list of routers. @@ -7085,15 +7129,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Router resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7101,15 +7145,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RouterBgp { /** @@ -7119,7 +7163,7 @@ export namespace compute_beta { * to any specified prefixes. Leave this field blank to advertise no custom * groups. */ - advertisedGroups: string[]; + advertisedGroups?: string[]; /** * User-specified list of individual IP ranges to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and is @@ -7127,18 +7171,18 @@ export namespace compute_beta { * in addition to any specified groups. Leave this field blank to advertise * no custom IP ranges. */ - advertisedIpRanges: Schema$RouterAdvertisedIpRange[]; + advertisedIpRanges?: Schema$RouterAdvertisedIpRange[]; /** * User-specified flag to indicate which mode to use for advertisement. */ - advertiseMode: string; + advertiseMode?: string; /** * Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, * either 16-bit or 32-bit. The value will be fixed for this router * resource. All VPN tunnels that link to this router will have the same * local ASN. */ - asn: number; + asn?: number; } export interface Schema$RouterBgpPeer { /** @@ -7148,7 +7192,7 @@ export namespace compute_beta { * advertised in addition to any specified prefixes. Leave this field blank * to advertise no custom groups. */ - advertisedGroups: string[]; + advertisedGroups?: string[]; /** * User-specified list of individual IP ranges to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and @@ -7156,26 +7200,26 @@ export namespace compute_beta { * ranges will be advertised in addition to any specified groups. Leave this * field blank to advertise no custom IP ranges. */ - advertisedIpRanges: Schema$RouterAdvertisedIpRange[]; + advertisedIpRanges?: Schema$RouterAdvertisedIpRange[]; /** * The priority of routes advertised to this BGP peer. In the case where * there is more than one matching route of maximum length, the routes with * lowest priority value win. */ - advertisedRoutePriority: number; + advertisedRoutePriority?: number; /** * User-specified flag to indicate which mode to use for advertisement. */ - advertiseMode: string; + advertiseMode?: string; /** * Name of the interface the BGP peer is associated with. */ - interfaceName: string; + interfaceName?: string; /** * IP address of the interface inside Google Cloud Platform. Only IPv4 is * supported. */ - ipAddress: string; + ipAddress?: string; /** * [Output Only] Type of how the resource/configuration of the BGP peer is * managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT @@ -7183,22 +7227,22 @@ export namespace compute_beta { * interconnectAttachment, Google will automatically create/delete this type * of BGP peer when the PARTNER interconnectAttachment is created/deleted. */ - managementType: string; + managementType?: string; /** * Name of this BGP peer. The name must be 1-63 characters long and comply * with RFC1035. */ - name: string; + name?: string; /** * Peer BGP Autonomous System Number (ASN). For VPN use case, this value can * be different for every tunnel. */ - peerAsn: number; + peerAsn?: number; /** * IP address of the BGP interface outside Google cloud. Only IPv4 is * supported. */ - peerIpAddress: string; + peerIpAddress?: string; } export interface Schema$RouterInterface { /** @@ -7207,19 +7251,19 @@ export namespace compute_beta { * for example: 169.254.0.1/30. NOTE: Do not truncate the address as it * represents the IP address of the interface. */ - ipRange: string; + ipRange?: string; /** * URI of the linked interconnect attachment. It must be in the same region * as the router. Each interface can have at most one linked resource and it * could either be a VPN Tunnel or an interconnect attachment. */ - linkedInterconnectAttachment: string; + linkedInterconnectAttachment?: string; /** * URI of the linked VPN tunnel. It must be in the same region as the * router. Each interface can have at most one linked resource and it could * either be a VPN Tunnel or an interconnect attachment. */ - linkedVpnTunnel: string; + linkedVpnTunnel?: string; /** * [Output Only] Type of how the resource/configuration of the interface is * managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT @@ -7228,12 +7272,12 @@ export namespace compute_beta { * this type of interface when the PARTNER interconnectAttachment is * created/provisioned/deleted. */ - managementType: string; + managementType?: string; /** * Name of this interface entry. The name must be 1-63 characters long and * comply with RFC1035. */ - name: string; + name?: string; } /** * Contains a list of Router resources. @@ -7242,15 +7286,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Router resources. */ - items: Schema$Router[]; + items?: Schema$Router[]; /** * [Output Only] Type of resource. Always compute#router for routers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7258,97 +7302,97 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RoutersPreviewResponse { /** * Preview of given router. */ - resource: Schema$Router; + resource?: Schema$Router; } export interface Schema$RoutersScopedList { /** * A list of routers contained in this scope. */ - routers: Schema$Router[]; + routers?: Schema$Router[]; /** * Informational warning which replaces the list of routers when the list is * empty. */ - warning: any; + warning?: any; } export interface Schema$RouterStatus { /** * Best routes for this router's network. */ - bestRoutes: Schema$Route[]; + bestRoutes?: Schema$Route[]; /** * Best routes learned by this router. */ - bestRoutesForRouter: Schema$Route[]; - bgpPeerStatus: Schema$RouterStatusBgpPeerStatus[]; + bestRoutesForRouter?: Schema$Route[]; + bgpPeerStatus?: Schema$RouterStatusBgpPeerStatus[]; /** * URI of the network to which this router belongs. */ - network: string; + network?: string; } export interface Schema$RouterStatusBgpPeerStatus { /** * Routes that were advertised to the remote BGP peer */ - advertisedRoutes: Schema$Route[]; + advertisedRoutes?: Schema$Route[]; /** * IP address of the local BGP interface. */ - ipAddress: string; + ipAddress?: string; /** * URL of the VPN tunnel that this BGP peer controls. */ - linkedVpnTunnel: string; + linkedVpnTunnel?: string; /** * Name of this BGP peer. Unique within the Routers resource. */ - name: string; + name?: string; /** * Number of routes learned from the remote BGP Peer. */ - numLearnedRoutes: number; + numLearnedRoutes?: number; /** * IP address of the remote BGP interface. */ - peerIpAddress: string; + peerIpAddress?: string; /** * BGP state as specified in RFC1771. */ - state: string; + state?: string; /** * Status of the BGP peer: {UP, DOWN} */ - status: string; + status?: string; /** * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 * hours, 59 minutes, 59 seconds */ - uptime: string; + uptime?: string; /** * Time this session has been up, in seconds. Format: 145 */ - uptimeSeconds: string; + uptimeSeconds?: string; } export interface Schema$RouterStatusResponse { /** * Type of resource. */ - kind: string; - result: Schema$RouterStatus; + kind?: string; + result?: Schema$RouterStatus; } /** * A rule to be applied in a Policy. @@ -7357,38 +7401,38 @@ export namespace compute_beta { /** * Required */ - action: string; + action?: string; /** * Additional restrictions that must be met. All conditions must pass for * the rule to match. */ - conditions: Schema$Condition[]; + conditions?: Schema$Condition[]; /** * Human-readable description of the rule. */ - description: string; + description?: string; /** * If one or more 'in' clauses are specified, the rule matches if * the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. */ - ins: string[]; + ins?: string[]; /** * The config returned to callers of tech.iam.IAM.CheckPolicy for any * entries that match the LOG action. */ - logConfigs: Schema$LogConfig[]; + logConfigs?: Schema$LogConfig[]; /** * If one or more 'not_in' clauses are specified, the rule matches * if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. */ - notIns: string[]; + notIns?: string[]; /** * A permission is a string of form '..' (e.g., * 'storage.buckets.list'). A value of '*' matches all * permissions, and a verb part of '*' (e.g., * 'storage.buckets.*') matches all verbs. */ - permissions: string[]; + permissions?: string[]; } /** * Sets the scheduling options for an Instance. @@ -7402,20 +7446,20 @@ export namespace compute_beta { * true so an instance is automatically restarted if it is terminated by * Compute Engine. */ - automaticRestart: boolean; + automaticRestart?: boolean; /** * Defines the maintenance behavior for this instance. For standard * instances, the default behavior is MIGRATE. For preemptible instances, * the default and only possible behavior is TERMINATE. For more * information, see Setting Instance Scheduling Options. */ - onHostMaintenance: string; + onHostMaintenance?: string; /** * Defines whether the instance is preemptible. This can only be set during * instance creation, it cannot be set or changed after the instance has * been created. */ - preemptible: boolean; + preemptible?: boolean; } /** * A security policy is comprised of one or more rules. It can also be @@ -7425,12 +7469,12 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Specifies a fingerprint for this resource, which is essentially a hash of * the metadata's contents and used for optimistic locking. The @@ -7439,17 +7483,17 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change metadata. To * see the latest fingerprint, make get() request to the security policy. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output only] Type of the resource. Always compute#securityPolicyfor * security policies */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7459,33 +7503,33 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * A list of rules that belong to this policy. There must always be a * default rule (rule with priority 2147483647 and match "*"). If * no rules are provided when creating a security policy, a default rule * with action "allow" will be added. */ - rules: Schema$SecurityPolicyRule[]; + rules?: Schema$SecurityPolicyRule[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$SecurityPolicyList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SecurityPolicy resources. */ - items: Schema$SecurityPolicy[]; + items?: Schema$SecurityPolicy[]; /** * [Output Only] Type of resource. Always compute#securityPolicyList for * listsof securityPolicies */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7493,13 +7537,13 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$SecurityPolicyReference { securityPolicy: string; } + export interface Schema$SecurityPolicyReference { securityPolicy?: string; } /** * Represents a rule that describes one or more match conditions along with * the action to be taken when traffic matches this condition (allow or deny). @@ -7510,32 +7554,32 @@ export namespace compute_beta { * currently be either "allow" or "deny()" where valid * values for status are 403, 404, and 502. */ - action: string; + action?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output only] Type of the resource. Always compute#securityPolicyRule for * security policy rules */ - kind: string; + kind?: string; /** * A match condition that incoming traffic is evaluated against. If it * evaluates to true, the corresponding ?action? is enforced. */ - match: Schema$SecurityPolicyRuleMatcher; + match?: Schema$SecurityPolicyRuleMatcher; /** * If set to true, the specified action is not enforced. */ - preview: boolean; + preview?: boolean; /** * An integer indicating the priority of a rule in the list. The priority * must be a positive value between 0 and 2147483647. Rules are evaluated in * the increasing order of priority. */ - priority: number; + priority?: number; } /** * Represents a match condition that incoming traffic is evaluated against. @@ -7547,30 +7591,30 @@ export namespace compute_beta { * field must be specified if versioned_expr is specified and cannot be * specified if versioned_expr is not specified. */ - config: Schema$SecurityPolicyRuleMatcherConfig; + 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; + expr?: Schema$Expr; /** * CIDR IP address range. */ - srcIpRanges: string[]; + srcIpRanges?: string[]; /** * Preconfigured versioned expression. If this field is specified, config * must also be specified. Available preconfigured expressions along with * their requirements are: SRC_IPS_V1 - must specify the corresponding * src_ip_range field in config. */ - versionedExpr: string; + versionedExpr?: string; } export interface Schema$SecurityPolicyRuleMatcherConfig { /** * CIDR IP address range. */ - srcIpRanges: string[]; + srcIpRanges?: string[]; } /** * An instance's serial console output. @@ -7579,29 +7623,29 @@ export namespace compute_beta { /** * [Output Only] The contents of the console output. */ - contents: string; + contents?: string; /** * [Output Only] Type of the resource. Always compute#serialPortOutput for * serial port output. */ - kind: string; + kind?: string; /** * [Output Only] The position of the next byte of content from the serial * console output. Use this value in the next request as the start * parameter. */ - next: string; + next?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * The starting byte position of the output that was returned. This should * match the start parameter sent with the request. If the serial console * output exceeds the size of the buffer, older output will be overwritten * by newer content and the start values will be mismatched. */ - start: string; + start?: string; } /** * A service account. @@ -7610,11 +7654,11 @@ export namespace compute_beta { /** * Email address of the service account. */ - email: string; + email?: string; /** * The list of scopes to be made available for this service account. */ - scopes: string[]; + scopes?: string[]; } /** * Represents a customer-supplied Signing Key used by Cloud CDN Signed URLs @@ -7628,12 +7672,12 @@ export namespace compute_beta { * be a dash, lowercase letter, or digit, except the last character, which * cannot be a dash. */ - keyName: string; + keyName?: string; /** * 128-bit key value used for signing the URL. The key value must be a valid * RFC 4648 Section 5 base64url encoded string. */ - keyValue: string; + keyValue?: string; } /** * A persistent disk snapshot resource. (== resource_for beta.snapshots ==) @@ -7643,26 +7687,26 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Size of the snapshot, specified in GB. */ - diskSizeGb: string; + diskSizeGb?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#snapshot for Snapshot * resources. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this snapshot, which is * essentially a hash of the labels set used for optimistic locking. The @@ -7671,23 +7715,23 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a snapshot. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this snapshot. These can be later modified by the * setLabels method. Label values may be empty. */ - labels: any; + labels?: any; /** * Integer license codes indicating which licenses are attached to this * snapshot. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * [Output Only] A list of public visible licenses that apply to this * snapshot. This can be because the original image had licenses attached * (such as a Windows image). */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7697,11 +7741,11 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Encrypts the snapshot using a customer-supplied encryption key. After * you encrypt a snapshot using a customer-supplied key, you must provide @@ -7713,40 +7757,40 @@ export namespace compute_beta { * automatically generated key and you do not need to provide a key to use * the snapshot later. */ - snapshotEncryptionKey: Schema$CustomerEncryptionKey; + snapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The source disk used to create this snapshot. */ - sourceDisk: string; + sourceDisk?: string; /** * The customer-supplied encryption key of the source disk. Required if the * source disk is protected by a customer-supplied encryption key. */ - sourceDiskEncryptionKey: Schema$CustomerEncryptionKey; + sourceDiskEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the disk used to create this snapshot. This * value may be used to determine whether the snapshot was taken from the * current or a previous instance of a given disk name. */ - sourceDiskId: string; + sourceDiskId?: string; /** * [Output Only] The status of the snapshot. This can be CREATING, DELETING, * FAILED, READY, or UPLOADING. */ - status: string; + status?: string; /** * [Output Only] A size of the storage used by the snapshot. As snapshots * share storage, this number is expected to change with snapshot * creation/deletion. */ - storageBytes: string; + storageBytes?: string; /** * [Output Only] An indicator whether storageBytes is in a stable state or * it is being adjusted as a result of shared storage reallocation. This * status can either be UPDATING, meaning the size of the snapshot is being * updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. */ - storageBytesStatus: string; + storageBytesStatus?: string; } /** * Contains a list of Snapshot resources. @@ -7755,15 +7799,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Snapshot resources. */ - items: Schema$Snapshot[]; + items?: Schema$Snapshot[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7771,15 +7815,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A specification of the parameters to use when creating the instance @@ -7792,7 +7836,7 @@ export namespace compute_beta { * each disk. For read-only disks, they will be attached in read-only mode. * Local SSD disks will be created as blank volumes. */ - diskConfigs: Schema$DiskInstantiationConfig[]; + diskConfigs?: Schema$DiskInstantiationConfig[]; } /** * An SslCertificate resource. This resource provides a mechanism to upload an @@ -7806,26 +7850,26 @@ export namespace compute_beta { * certificate chain must be no greater than 5 certs long. The chain must * include at least one intermediate cert. */ - certificate: string; + certificate?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#sslCertificate for SSL * certificates. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7835,16 +7879,16 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * A write-only private key in PEM format. Only insert requests will include * this field. */ - privateKey: string; + privateKey?: string; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Contains a list of SslCertificate resources. @@ -7853,15 +7897,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SslCertificate resources. */ - items: Schema$SslCertificate[]; + items?: Schema$SslCertificate[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7869,60 +7913,60 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$SSLHealthCheck { /** * The TCP port number for the health check request. The default value is * 443. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The application data to send once the SSL connection has been established * (default value is empty). If both request and response are empty, the * connection establishment alone will indicate health. The request data can * only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. If left * empty (the default value), any response will indicate health. The * response data can only be ASCII. */ - response: string; + response?: string; } export interface Schema$SslPoliciesList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SslPolicy resources. */ - items: Schema$SslPolicy[]; + items?: Schema$SslPolicy[]; /** * [Output Only] Type of the resource. Always compute#sslPoliciesList for * lists of sslPolicies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7930,18 +7974,18 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$SslPoliciesListAvailableFeaturesResponse { - features: string[]; + features?: string[]; } /** * A SSL policy specifies the server-side support for SSL features. This can @@ -7953,45 +7997,45 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * A list of features enabled when the selected profile is CUSTOM. The - * method returns the set of features that can be specified in this list. * This field must be empty if the profile is not CUSTOM. */ - customFeatures: string[]; + customFeatures?: string[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The list of features enabled in the SSL policy. */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a SslPolicy. An up-to-date fingerprint must be * provided in order to update the SslPolicy. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output only] Type of the resource. Always compute#sslPolicyfor SSL * policies. */ - kind: string; + kind?: string; /** * The minimum version of SSL protocol that can be used by the clients to * establish a connection with the load balancer. This can be one of * TLS_1_0, TLS_1_1, TLS_1_2. */ - minTlsVersion: string; + minTlsVersion?: string; /** * Name of the resource. The name must be 1-63 characters long, and comply * with RFC1035. Specifically, the name must be 1-63 characters long and @@ -8000,30 +8044,30 @@ export namespace compute_beta { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * Profile specifies the set of SSL features that can be used by the load * balancer when negotiating SSL with clients. This can be one of * COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of * SSL features to enable must be specified in the customFeatures field. */ - profile: string; + profile?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] If potential misconfigurations are detected for this SSL * policy, this field will be populated with warning messages. */ - warnings: any[]; + warnings?: any[]; } export interface Schema$SslPolicyReference { /** * URL of the SSL policy resource. Set this to empty string to clear any * existing SSL policy associated with the target proxy resource. */ - sslPolicy: string; + sslPolicy?: string; } /** * A Subnetwork resource. (== resource_for beta.subnetworks ==) (== @@ -8043,38 +8087,38 @@ export namespace compute_beta { * subnetworks and automatically created subnetworks. This field cannot be * set to true at resource creation time. */ - allowSubnetCidrRoutesOverlap: boolean; + allowSubnetCidrRoutesOverlap?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. This field can be set only at resource creation * time. */ - description: string; + description?: string; /** * Whether to enable flow logging for this subnetwork. */ - enableFlowLogs: boolean; + enableFlowLogs?: boolean; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a Subnetwork. An up-to-date fingerprint must be * provided in order to update the Subnetwork. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The gateway address for default routes to reach destination * addresses outside this subnetwork. */ - gatewayAddress: string; + gatewayAddress?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The range of internal addresses that are owned by this subnetwork. * Provide this property when you create the subnetwork. For @@ -8082,12 +8126,12 @@ export namespace compute_beta { * non-overlapping within a network. Only IPv4 is supported. This field can * be set only at resource creation time. */ - ipCidrRange: string; + ipCidrRange?: string; /** * [Output Only] Type of the resource. Always compute#subnetwork for * Subnetwork resources. */ - kind: string; + kind?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The name must be 1-63 characters long, and comply with @@ -8097,51 +8141,51 @@ export namespace compute_beta { * be a dash, lowercase letter, or digit, except the last character, which * cannot be a dash. */ - name: string; + name?: string; /** * The URL of the network to which this subnetwork belongs, provided by the * client when initially creating the subnetwork. Only networks that are in * the distributed mode can have subnetworks. This field can be set only at * resource creation time. */ - network: string; + network?: string; /** * Whether the VMs in this subnet can access Google services without * assigned external IP addresses. This field can be both set at resource * creation time and updated using setPrivateIpGoogleAccess. */ - privateIpGoogleAccess: boolean; + privateIpGoogleAccess?: boolean; /** * URL of the region where the Subnetwork resides. This field can be set * only at resource creation time. */ - region: string; + region?: 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 primary ipCidrRange of the subnetwork. The alias IPs may belong to * either primary or secondary ranges. */ - secondaryIpRanges: Schema$SubnetworkSecondaryRange[]; + secondaryIpRanges?: Schema$SubnetworkSecondaryRange[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$SubnetworkAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SubnetworksScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#subnetworkAggregatedList * for aggregated lists of subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8149,15 +8193,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Subnetwork resources. @@ -8166,16 +8210,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Subnetwork resources. */ - items: Schema$Subnetwork[]; + items?: Schema$Subnetwork[]; /** * [Output Only] Type of resource. Always compute#subnetworkList for lists * of subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8183,15 +8227,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a secondary IP range of a subnetwork. @@ -8203,14 +8247,14 @@ export namespace compute_beta { * unique and non-overlapping with all primary and secondary IP ranges * within a network. Only IPv4 is supported. */ - ipCidrRange: string; + ipCidrRange?: string; /** * The name associated with this subnetwork secondary range, used when * adding an alias IP range to a VM instance. The name must be 1-63 * characters long, and comply with RFC1035. The name must be unique within * the subnetwork. */ - rangeName: string; + rangeName?: string; } export interface Schema$SubnetworksExpandIpCidrRangeRequest { /** @@ -8219,21 +8263,21 @@ export namespace compute_beta { * within this network. This range can only be larger than (i.e. a superset * of) the range previously defined before the update. */ - ipCidrRange: string; + ipCidrRange?: string; } export interface Schema$SubnetworksScopedList { /** * A list of subnetworks contained in this scope. */ - subnetworks: Schema$Subnetwork[]; + subnetworks?: Schema$Subnetwork[]; /** * An informational warning that appears when the list of addresses is * empty. */ - warning: any; + warning?: any; } export interface Schema$SubnetworksSetPrivateIpGoogleAccessRequest { - privateIpGoogleAccess: boolean; + privateIpGoogleAccess?: boolean; } /** * A set of instance tags. @@ -8241,18 +8285,18 @@ export namespace compute_beta { export interface Schema$Tags { /** * Specifies a fingerprint for this request, which is essentially a hash of - * the metadata's contents and used for optimistic locking. The - * fingerprint is initially generated by Compute Engine and changes after - * every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata. To - * see the latest fingerprint, make get() request to the instance. + * the tags' contents and used for optimistic locking. The fingerprint + * is initially generated by Compute Engine and changes after every request + * to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. To see the latest + * fingerprint, make get() request to the instance. */ - fingerprint: string; + fingerprint?: string; /** * An array of tags. Each tag must be 1-63 characters long, and comply with * RFC1035. */ - items: string[]; + items?: string[]; } /** * A TargetHttpProxy resource. This resource defines an HTTP proxy. (== @@ -8263,22 +8307,22 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetHttpProxy for target * HTTP proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8288,16 +8332,16 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the UrlMap resource that defines the mapping from URL to the * BackendService. */ - urlMap: string; + urlMap?: string; } /** * A list of TargetHttpProxy resources. @@ -8306,16 +8350,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpProxy resources. */ - items: Schema$TargetHttpProxy[]; + items?: Schema$TargetHttpProxy[]; /** * Type of resource. Always compute#targetHttpProxyList for lists of target * HTTP proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8323,21 +8367,21 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetHttpsProxiesSetQuicOverrideRequest { /** * QUIC policy for the TargetHttpsProxy resource. */ - quicOverride: string; + quicOverride?: string; } export interface Schema$TargetHttpsProxiesSetSslCertificatesRequest { /** @@ -8345,7 +8389,7 @@ export namespace compute_beta { * TargetHttpsProxy resource. Currently exactly one SslCertificate resource * must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; } /** * A TargetHttpsProxy resource. This resource defines an HTTPS proxy. (== @@ -8356,22 +8400,22 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetHttpsProxy for * target HTTPS proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8381,7 +8425,7 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the QUIC override policy for this TargetHttpsProxy resource. * This determines whether the load balancer will attempt to negotiate QUIC @@ -8391,23 +8435,23 @@ export namespace compute_beta { * policy with no user overrides, which is equivalent to DISABLE. Not * specifying this field is equivalent to specifying NONE. */ - quicOverride: string; + quicOverride?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections between users and the load balancer. Currently, exactly one * SSL certificate must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; /** * URL of SslPolicy resource that will be associated with the * TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource will * not have any SSL policy configured. */ - sslPolicy: string; + sslPolicy?: string; /** * A fully-qualified or valid partial URL to the UrlMap resource that * defines the mapping from URL to the BackendService. For example, the @@ -8415,7 +8459,7 @@ export namespace compute_beta { * https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map * - projects/project/global/urlMaps/url-map - global/urlMaps/url-map */ - urlMap: string; + urlMap?: string; } /** * Contains a list of TargetHttpsProxy resources. @@ -8424,16 +8468,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpsProxy resources. */ - items: Schema$TargetHttpsProxy[]; + items?: Schema$TargetHttpsProxy[]; /** * Type of resource. Always compute#targetHttpsProxyList for lists of target * HTTPS proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8441,15 +8485,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A TargetInstance resource. This resource defines an endpoint instance that @@ -8460,17 +8504,17 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A URL to the virtual machine instance that handles traffic for this * target instance. When creating a target instance, you can provide the @@ -8480,12 +8524,12 @@ export namespace compute_beta { * - projects/project/zones/zone/instances/instance - * zones/zone/instances/instance */ - instance: string; + instance?: string; /** * [Output Only] The type of the resource. Always compute#targetInstance for * target instances. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8495,36 +8539,36 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * NAT option controlling how IPs are NAT'ed to the instance. Currently * only NO_NAT (default value) is supported. */ - natPolicy: string; + natPolicy?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] URL of the zone where the target instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$TargetInstanceAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetInstance resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8532,15 +8576,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of TargetInstance resources. @@ -8549,15 +8593,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetInstance resources. */ - items: Schema$TargetInstance[]; + items?: Schema$TargetInstance[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8565,26 +8609,26 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetInstancesScopedList { /** * A list of target instances contained in this scope. */ - targetInstances: Schema$TargetInstance[]; + targetInstances?: Schema$TargetInstance[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } /** * A TargetPool resource. This resource defines a pool of instances, an @@ -8605,16 +8649,16 @@ export namespace compute_beta { * where traffic will be spread to the healthy instances with the best * effort, or to all instances when no instance is healthy. */ - backupPool: string; + backupPool?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * This field is applicable only when the containing target pool is serving * a forwarding rule as the primary pool (i.e., not as a backup pool to some @@ -8629,7 +8673,7 @@ export namespace compute_beta { * instances with the best effort, or to all instances when no instance is * healthy. */ - failoverRatio: number; + failoverRatio?: number; /** * The URL of the HttpHealthCheck resource. A member instance in this pool * is considered healthy if and only if the health checks pass. An empty @@ -8637,22 +8681,22 @@ export namespace compute_beta { * Only HttpHealthChecks are supported. Only one health check may be * specified. */ - healthChecks: string[]; + healthChecks?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A list of resource URLs to the virtual machine instances serving this * pool. They must live in zones contained in the same region as this pool. */ - instances: string[]; + instances?: string[]; /** * [Output Only] Type of the resource. Always compute#targetPool for target * pools. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8662,15 +8706,15 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the target pool resides. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Sesssion affinity option, must be one of the following values: NONE: * Connections from the same client IP may go to any instance in the pool. @@ -8680,22 +8724,22 @@ export namespace compute_beta { * protocol will go to the same instance in the pool while that instance * remains healthy. */ - sessionAffinity: string; + sessionAffinity?: string; } export interface Schema$TargetPoolAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetPool resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#targetPoolAggregatedList * for aggregated lists of target pools. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8703,23 +8747,23 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetPoolInstanceHealth { - healthStatus: Schema$HealthStatus[]; + healthStatus?: Schema$HealthStatus[]; /** * [Output Only] Type of resource. Always compute#targetPoolInstanceHealth * when checking the health of an instance. */ - kind: string; + kind?: string; } /** * Contains a list of TargetPool resources. @@ -8728,16 +8772,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetPool resources. */ - items: Schema$TargetPool[]; + items?: Schema$TargetPool[]; /** * [Output Only] Type of resource. Always compute#targetPoolList for lists * of target pools. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8745,21 +8789,21 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetPoolsAddHealthCheckRequest { /** * The HttpHealthCheck to add to the target pool. */ - healthChecks: Schema$HealthCheckReference[]; + healthChecks?: Schema$HealthCheckReference[]; } export interface Schema$TargetPoolsAddInstanceRequest { /** @@ -8769,7 +8813,7 @@ export namespace compute_beta { * - projects/project-id/zones/zone/instances/instance-name - * zones/zone/instances/instance-name */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$TargetPoolsRemoveHealthCheckRequest { /** @@ -8779,45 +8823,45 @@ export namespace compute_beta { * - projects/project/global/httpHealthChecks/health-check - * global/httpHealthChecks/health-check */ - healthChecks: Schema$HealthCheckReference[]; + healthChecks?: Schema$HealthCheckReference[]; } export interface Schema$TargetPoolsRemoveInstanceRequest { /** * URLs of the instances to be removed from target pool. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$TargetPoolsScopedList { /** * A list of target pools contained in this scope. */ - targetPools: Schema$TargetPool[]; + targetPools?: Schema$TargetPool[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } - export interface Schema$TargetReference { target: string; } + export interface Schema$TargetReference { target?: string; } export interface Schema$TargetSslProxiesSetBackendServiceRequest { /** * The URL of the new BackendService resource for the targetSslProxy. */ - service: string; + service?: string; } export interface Schema$TargetSslProxiesSetProxyHeaderRequest { /** * The new type of proxy header to append before sending data to the * backend. NONE or PROXY_V1 are allowed. */ - proxyHeader: string; + proxyHeader?: string; } export interface Schema$TargetSslProxiesSetSslCertificatesRequest { /** * New set of URLs to SslCertificate resources to associate with this * TargetSslProxy. Currently exactly one ssl certificate must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; } /** * A TargetSslProxy resource. This resource defines an SSL proxy. (== @@ -8828,22 +8872,22 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#targetSslProxy for * target SSL proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8853,32 +8897,32 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the BackendService resource. */ - service: string; + service?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections to Backends. Currently exactly one SSL certificate must be * specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; /** * URL of SslPolicy resource that will be associated with the TargetSslProxy * resource. If not set, the TargetSslProxy resource will not have any SSL * policy configured. */ - sslPolicy: string; + sslPolicy?: string; } /** * Contains a list of TargetSslProxy resources. @@ -8887,15 +8931,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetSslProxy resources. */ - items: Schema$TargetSslProxy[]; + items?: Schema$TargetSslProxy[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8903,28 +8947,28 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetTcpProxiesSetBackendServiceRequest { /** * The URL of the new BackendService resource for the targetTcpProxy. */ - service: string; + service?: string; } export interface Schema$TargetTcpProxiesSetProxyHeaderRequest { /** * The new type of proxy header to append before sending data to the * backend. NONE or PROXY_V1 are allowed. */ - proxyHeader: string; + proxyHeader?: string; } /** * A TargetTcpProxy resource. This resource defines a TCP proxy. (== @@ -8935,22 +8979,22 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#targetTcpProxy for * target TCP proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8960,20 +9004,20 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the BackendService resource. */ - service: string; + service?: string; } /** * Contains a list of TargetTcpProxy resources. @@ -8982,15 +9026,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetTcpProxy resources. */ - items: Schema$TargetTcpProxy[]; + items?: Schema$TargetTcpProxy[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8998,15 +9042,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a Target VPN gateway resource. (== resource_for @@ -9016,28 +9060,28 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A list of URLs to the ForwardingRule resources. * ForwardingRules are created using compute.forwardingRules.insert and * associated to a VPN gateway. */ - forwardingRules: string[]; + forwardingRules?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this TargetVpnGateway, * which is essentially a hash of the labels set used for optimistic @@ -9047,13 +9091,13 @@ export namespace compute_beta { * labels. To see the latest fingerprint, make a get() request to retrieve * an TargetVpnGateway. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this TargetVpnGateway resource. These can be later * modified by the setLabels method. Each label key/value must comply with * RFC1035. Label values may be empty. */ - labels: any; + labels?: any; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -9063,47 +9107,47 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URL of the network to which this VPN gateway is attached. Provided by the * client when the VPN gateway is created. */ - network: string; + network?: string; /** * [Output Only] URL of the region where the target VPN gateway resides. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the VPN gateway. */ - status: string; + status?: string; /** * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are * created using compute.vpntunnels.insert method and associated to a VPN * gateway. */ - tunnels: string[]; + tunnels?: string[]; } export interface Schema$TargetVpnGatewayAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetVpnGateway resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9111,15 +9155,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of TargetVpnGateway resources. @@ -9128,16 +9172,16 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetVpnGateway resources. */ - items: Schema$TargetVpnGateway[]; + items?: Schema$TargetVpnGateway[]; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9145,62 +9189,62 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetVpnGatewaysScopedList { /** * [Output Only] A list of target vpn gateways contained in this scope. */ - targetVpnGateways: Schema$TargetVpnGateway[]; + targetVpnGateways?: Schema$TargetVpnGateway[]; /** * [Output Only] Informational warning which replaces the list of addresses * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$TCPHealthCheck { /** * The TCP port number for the health check request. The default value * is 80. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The application data to send once the TCP connection has been established * (default value is empty). If both request and response are empty, the * connection establishment alone will indicate health. The request data can * only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. If left * empty (the default value), any response will indicate health. The * response data can only be ASCII. */ - response: string; + response?: string; } export interface Schema$TestFailure { - actualService: string; - expectedService: string; - host: string; - path: string; + actualService?: string; + expectedService?: string; + host?: string; + path?: string; } export interface Schema$TestPermissionsRequest { /** @@ -9208,36 +9252,36 @@ export namespace compute_beta { * with wildcards (such as '*' or 'storage.*') are not * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TestPermissionsResponse { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$UDPHealthCheck { /** * The UDP port number for the health check request. Valid values are 1 * through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Raw data of request to send in payload of UDP packet. It is an error if * this is empty. The request data can only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. It is an * error if this is empty. The response data can only be ASCII. */ - response: string; + response?: string; } /** * A UrlMap resource. This resource defines the mapping from URL to the @@ -9248,36 +9292,36 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The URL of the BackendService resource if none of the hostRules match. */ - defaultService: string; + defaultService?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a UrlMap. An up-to-date fingerprint must be * provided in order to update the UrlMap. */ - fingerprint: string; + fingerprint?: string; /** * The list of HostRules to use against the URL. */ - hostRules: Schema$HostRule[]; + hostRules?: Schema$HostRule[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#urlMaps for url maps. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -9287,21 +9331,21 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The list of named PathMatchers to use against the URL. */ - pathMatchers: Schema$PathMatcher[]; + pathMatchers?: Schema$PathMatcher[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The list of expected URL mapping tests. Request to update this UrlMap * will succeed only if all of the test cases pass. You can specify a * maximum of 100 tests per UrlMap. */ - tests: Schema$UrlMapTest[]; + tests?: Schema$UrlMapTest[]; } /** * Contains a list of UrlMap resources. @@ -9310,15 +9354,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of UrlMap resources. */ - items: Schema$UrlMap[]; + items?: Schema$UrlMap[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9326,25 +9370,25 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$UrlMapReference { urlMap: string; } + export interface Schema$UrlMapReference { urlMap?: string; } export interface Schema$UrlMapsValidateRequest { /** * Content of the UrlMap to be validated. */ - resource: Schema$UrlMap; + resource?: Schema$UrlMap; } export interface Schema$UrlMapsValidateResponse { - result: Schema$UrlMapValidationResult; + result?: Schema$UrlMapValidationResult; } /** * Message for the expected URL mappings. @@ -9353,36 +9397,36 @@ export namespace compute_beta { /** * Description of this test case. */ - description: string; + description?: string; /** * Host portion of the URL. */ - host: string; + host?: string; /** * Path portion of the URL. */ - path: string; + path?: string; /** * Expected BackendService resource the given URL should be mapped to. */ - service: string; + service?: string; } /** * Message representing the validation result for a UrlMap. */ export interface Schema$UrlMapValidationResult { - loadErrors: string[]; + loadErrors?: string[]; /** * Whether the given UrlMap can be successfully loaded. If false, * 'loadErrors' indicates the reasons. */ - loadSucceeded: boolean; - testFailures: Schema$TestFailure[]; + loadSucceeded?: boolean; + testFailures?: Schema$TestFailure[]; /** * If successfully loaded, this field indicates whether the test passed. If * false, 'testFailures's indicate the reason of failure. */ - testPassed: boolean; + testPassed?: boolean; } /** * Subnetwork which the current user has compute.subnetworks.use permission @@ -9392,32 +9436,32 @@ export namespace compute_beta { /** * The range of internal addresses that are owned by this subnetwork. */ - ipCidrRange: string; + ipCidrRange?: string; /** * Network URL. */ - network: string; + network?: string; /** * Subnetwork URL. */ - subnetwork: string; + subnetwork?: string; } export interface Schema$UsableSubnetworksAggregatedList { /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output] A list of usable subnetwork URLs. */ - items: Schema$UsableSubnetwork[]; + items?: Schema$UsableSubnetwork[]; /** * [Output Only] Type of resource. Always * compute#usableSubnetworksAggregatedList for aggregated lists of usable * subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9425,15 +9469,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * The location in Cloud Storage and naming method of the daily usage report. @@ -9448,7 +9492,7 @@ export namespace compute_beta { * https://storage.googleapis.com/ in front of it, such as * gs://example-bucket. */ - bucketName: string; + bucketName?: string; /** * An optional prefix for the name of the usage report object stored in * bucketName. If not supplied, defaults to usage. The report is stored as a @@ -9456,7 +9500,7 @@ export namespace compute_beta { * day of the usage according to Pacific Time. If you supply a prefix, it * should conform to Cloud Storage object naming conventions. */ - reportNamePrefix: string; + reportNamePrefix?: string; } /** * VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for @@ -9466,30 +9510,30 @@ export namespace compute_beta { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Detailed status message for the VPN tunnel. */ - detailedStatus: string; + detailedStatus?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * IKE protocol version to use when establishing the VPN tunnel with peer * VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2. */ - ikeVersion: number; + ikeVersion?: number; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this VpnTunnel, which is * essentially a hash of the labels set used for optimistic locking. The @@ -9498,19 +9542,19 @@ export namespace compute_beta { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a VpnTunnel. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this VpnTunnel. These can be later modified by the * setLabels method. Each label key/value pair must comply with RFC1035. * Label values may be empty. */ - labels: any; + labels?: any; /** * Local traffic selector to use when establishing the VPN tunnel with peer * VPN gateway. The value should be a CIDR formatted string, for example: * 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. */ - localTrafficSelector: string[]; + localTrafficSelector?: string[]; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -9520,64 +9564,64 @@ export namespace compute_beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * IP address of the peer VPN gateway. Only IPv4 is supported. */ - peerIp: string; + peerIp?: string; /** * [Output Only] URL of the region where the VPN tunnel resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - region: string; + region?: string; /** * Remote traffic selectors to use when establishing the VPN tunnel with * peer VPN gateway. The value should be a CIDR formatted string, for * example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is * supported. */ - remoteTrafficSelector: string[]; + remoteTrafficSelector?: string[]; /** * URL of router resource to be used for dynamic routing. */ - router: string; + router?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Shared secret used to set the secure session between the Cloud VPN * gateway and the peer VPN gateway. */ - sharedSecret: string; + sharedSecret?: string; /** * Hash of the shared secret. */ - sharedSecretHash: string; + sharedSecretHash?: string; /** * [Output Only] The status of the VPN tunnel. */ - status: string; + status?: string; /** * URL of the Target VPN gateway with which this VPN tunnel is associated. * Provided by the client when the VPN tunnel is created. */ - targetVpnGateway: string; + targetVpnGateway?: string; } export interface Schema$VpnTunnelAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of VpnTunnelsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9585,15 +9629,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of VpnTunnel resources. @@ -9602,15 +9646,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of VpnTunnel resources. */ - items: Schema$VpnTunnel[]; + items?: Schema$VpnTunnel[]; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9618,41 +9662,41 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$VpnTunnelsScopedList { /** * A list of vpn tunnels contained in this scope. */ - vpnTunnels: Schema$VpnTunnel[]; + vpnTunnels?: Schema$VpnTunnel[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } export interface Schema$XpnHostList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of shared VPC host project URLs. */ - items: Schema$Project[]; + items?: Schema$Project[]; /** * [Output Only] Type of resource. Always compute#xpnHostList for lists of * shared VPC hosts. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9660,15 +9704,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Service resource (a.k.a service project) ID. @@ -9679,11 +9723,11 @@ export namespace compute_beta { * matches the project ID (e.g., my-project), not the project number (e.g., * 12345678). */ - id: string; + id?: string; /** * The type of the service resource. */ - type: string; + type?: string; } /** * A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones @@ -9693,44 +9737,44 @@ export namespace compute_beta { /** * [Output Only] Available cpu/platform selections for the zone. */ - availableCpuPlatforms: string[]; + availableCpuPlatforms?: string[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this zone. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] Textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#zone for zones. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Full URL reference to the region which hosts the zone. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the zone, either UP or DOWN. */ - status: string; + status?: string; } /** * Contains a list of zone resources. @@ -9739,15 +9783,15 @@ export namespace compute_beta { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Zone resources. */ - items: Schema$Zone[]; + items?: Schema$Zone[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -9755,15 +9799,15 @@ export namespace compute_beta { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$ZoneSetLabelsRequest { /** @@ -9774,13 +9818,14 @@ export namespace compute_beta { * change labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The labels to set for this resource. */ - labels: any; + labels?: any; } + export class Resource$Acceleratortypes { root: Compute; constructor(root: Compute) { @@ -9876,29 +9921,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Acceleratortypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Acceleratortypes$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Acceleratortypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Acceleratortypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9927,7 +9988,7 @@ export namespace compute_beta { /** * compute.acceleratorTypes.get - * @desc Returns the specified accelerator type. Get a list of available + * @desc Returns the specified accelerator type. Gets a list of available * accelerator types by making a list() request. * @example * * // BEFORE RUNNING: @@ -10000,24 +10061,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Acceleratortypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Acceleratortypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Acceleratortypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Acceleratortypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Acceleratortypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10129,28 +10201,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Acceleratortypes$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Acceleratortypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Acceleratortypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Acceleratortypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10175,6 +10258,139 @@ export namespace compute_beta { } } + export interface Params$Resource$Acceleratortypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Acceleratortypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the accelerator type to return. + */ + acceleratorType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Acceleratortypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Addresses { root: Compute; constructor(root: Compute) { @@ -10270,28 +10486,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Addresses$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Addresses$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Addresses$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Addresses$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Addresses$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10389,26 +10618,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Addresses$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Addresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10506,23 +10746,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Addresses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Addresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Addresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Addresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10623,26 +10873,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Addresses$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Addresses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Addresses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10754,26 +11015,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Addresses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Addresses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10878,26 +11150,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Addresses$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Addresses$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Addresses$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Addresses$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Addresses$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11000,28 +11285,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Addresses$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Addresses$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Addresses$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Addresses$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Addresses$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11046,6 +11344,262 @@ export namespace compute_beta { } } + export interface Params$Resource$Addresses$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Addresses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to delete. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Addresses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to return. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Addresses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Address; + } + export interface Params$Resource$Addresses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Addresses$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Addresses$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Autoscalers { root: Compute; constructor(root: Compute) { @@ -11141,28 +11695,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Autoscalers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Autoscalers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Autoscalers$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Autoscalers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Autoscalers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11260,26 +11827,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Autoscalers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Autoscalers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11306,7 +11886,7 @@ export namespace compute_beta { /** * compute.autoscalers.get - * @desc Returns the specified autoscaler resource. Get a list of available + * @desc Returns the specified autoscaler resource. Gets a list of available * autoscalers by making a list() request. * @example * * // BEFORE RUNNING: @@ -11378,23 +11958,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Autoscalers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Autoscalers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Autoscalers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Autoscalers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Autoscalers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11495,26 +12086,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Autoscalers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Autoscalers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11625,26 +12229,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Autoscalers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Autoscalers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Autoscalers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Autoscalers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11748,26 +12363,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Autoscalers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Autoscalers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Autoscalers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11867,28 +12494,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Autoscalers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Autoscalers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Autoscalers$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Autoscalers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Autoscalers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11992,26 +12632,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Autoscalers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Autoscalers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12035,6 +12688,298 @@ export namespace compute_beta { } } + export interface Params$Resource$Autoscalers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Autoscalers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to delete. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to return. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Autoscalers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to patch. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Autoscalers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Autoscalers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to update. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + + export class Resource$Backendbuckets { root: Compute; constructor(root: Compute) { @@ -12062,26 +13007,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Addsignedurlkey, + options?: MethodOptions): AxiosPromise; + addSignedUrlKey( + params: Params$Resource$Backendbuckets$Addsignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Addsignedurlkey, + callback: BodyResponseCallback): void; + addSignedUrlKey(callback: BodyResponseCallback): void; + addSignedUrlKey( + paramsOrCallback?: Params$Resource$Backendbuckets$Addsignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Addsignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Addsignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12177,26 +13135,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Backendbuckets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Backendbuckets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12236,26 +13207,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Deletesignedurlkey, + options?: MethodOptions): AxiosPromise; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Deletesignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteSignedUrlKey( + params: Params$Resource$Backendbuckets$Deletesignedurlkey, + callback: BodyResponseCallback): void; + deleteSignedUrlKey(callback: BodyResponseCallback): void; + deleteSignedUrlKey( + paramsOrCallback?: Params$Resource$Backendbuckets$Deletesignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendbuckets$Deletesignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Deletesignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12282,7 +13266,7 @@ export namespace compute_beta { /** * compute.backendBuckets.get - * @desc Returns the specified BackendBucket resource. Get a list of + * @desc Returns the specified BackendBucket resource. Gets a list of * available backend buckets by making a list() request. * @example * * // BEFORE RUNNING: @@ -12351,24 +13335,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Backendbuckets$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Backendbuckets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backendbuckets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backendbuckets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12465,26 +13460,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Backendbuckets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Backendbuckets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12591,26 +13599,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Backendbuckets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Backendbuckets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Backendbuckets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12714,26 +13734,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Backendbuckets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Backendbuckets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12837,26 +13870,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Backendbuckets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Backendbuckets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12881,6 +13927,263 @@ export namespace compute_beta { } } + export interface Params$Resource$Backendbuckets$Addsignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SignedUrlKey; + } + export interface Params$Resource$Backendbuckets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to delete. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendbuckets$Deletesignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendBucket?: string; + /** + * The name of the Signed URL Key to delete. + */ + keyName?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendbuckets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to return. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendbuckets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + export interface Params$Resource$Backendbuckets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendbuckets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to patch. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + export interface Params$Resource$Backendbuckets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to update. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + + export class Resource$Backendservices { root: Compute; constructor(root: Compute) { @@ -12908,26 +14211,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Addsignedurlkey, + options?: MethodOptions): AxiosPromise; + addSignedUrlKey( + params: Params$Resource$Backendservices$Addsignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addSignedUrlKey( + params: Params$Resource$Backendservices$Addsignedurlkey, + callback: BodyResponseCallback): void; + addSignedUrlKey(callback: BodyResponseCallback): void; addSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$Addsignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Addsignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Addsignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13036,29 +14352,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Backendservices$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Backendservices$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13156,26 +14488,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Backendservices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Backendservices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13216,26 +14561,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteSignedUrlKey(params?: any, options?: MethodOptions): - AxiosPromise; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Deletesignedurlkey, + options?: MethodOptions): AxiosPromise; + deleteSignedUrlKey( + params: Params$Resource$Backendservices$Deletesignedurlkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteSignedUrlKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Deletesignedurlkey, + callback: BodyResponseCallback): void; + deleteSignedUrlKey(callback: BodyResponseCallback): void; + deleteSignedUrlKey( + paramsOrCallback?: Params$Resource$Backendservices$Deletesignedurlkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Deletesignedurlkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Deletesignedurlkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13262,7 +14620,7 @@ export namespace compute_beta { /** * compute.backendServices.get - * @desc Returns the specified BackendService resource. Get a list of + * @desc Returns the specified BackendService resource. Gets a list of * available backend services by making a list() request. * @example * * // BEFORE RUNNING: @@ -13331,24 +14689,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Backendservices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Backendservices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backendservices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backendservices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13447,29 +14816,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): + getHealth( + params?: Params$Resource$Backendservices$Gethealth, + options?: MethodOptions): AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Backendservices$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Backendservices$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13569,26 +14951,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Backendservices$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Backendservices$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13695,26 +15090,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Backendservices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Backendservices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13820,26 +15228,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Backendservices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Backendservices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13940,26 +15361,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSecurityPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSecurityPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Setsecuritypolicy, + options?: MethodOptions): AxiosPromise; setSecurityPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Setsecuritypolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSecurityPolicy( + params: Params$Resource$Backendservices$Setsecuritypolicy, + callback: BodyResponseCallback): void; + setSecurityPolicy(callback: BodyResponseCallback): void; + setSecurityPolicy( + paramsOrCallback?: Params$Resource$Backendservices$Setsecuritypolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Setsecuritypolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Setsecuritypolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14056,28 +15490,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Backendservices$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Backendservices$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Backendservices$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14183,26 +15630,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Backendservices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Backendservices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14227,6 +15687,389 @@ export namespace compute_beta { } } + export interface Params$Resource$Backendservices$Addsignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SignedUrlKey; + } + export interface Params$Resource$Backendservices$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to delete. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendservices$Deletesignedurlkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the Signed URL Key should be + * added. The name should conform to RFC1035. + */ + backendService?: string; + /** + * The name of the Signed URL Key to delete. + */ + keyName?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendservices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to return. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the queried instance + * belongs. + */ + backendService?: string; + /** + * + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceGroupReference; + } + export interface Params$Resource$Backendservices$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Backendservices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to patch. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Backendservices$Setsecuritypolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the security policy should + * be set. The name should conform to RFC1035. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicyReference; + } + export interface Params$Resource$Backendservices$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Backendservices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to update. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + + export class Resource$Disks { root: Compute; constructor(root: Compute) { @@ -14322,26 +16165,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Disks$Aggregatedlist, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Disks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14445,26 +16302,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createSnapshot(params?: any, options?: MethodOptions): - AxiosPromise; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Createsnapshot, + options?: MethodOptions): AxiosPromise; + createSnapshot( + params: Params$Resource$Disks$Createsnapshot, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Createsnapshot, + callback: BodyResponseCallback): void; + createSnapshot(callback: BodyResponseCallback): void; + createSnapshot( + paramsOrCallback?: Params$Resource$Disks$Createsnapshot| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Createsnapshot; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Createsnapshot; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14566,26 +16436,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Disks$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Disks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14612,7 +16493,7 @@ export namespace compute_beta { /** * compute.disks.get - * @desc Returns a specified persistent disk. Get a list of available + * @desc Returns a specified persistent disk. Gets a list of available * persistent disks by making a list() request. * @example * * // BEFORE RUNNING: @@ -14684,21 +16565,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Disks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Disks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Disks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Disks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14803,26 +16696,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Disks$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Disks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14933,25 +16837,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Disks$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Disks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15055,26 +16970,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): + resize(params?: Params$Resource$Disks$Resize, options?: MethodOptions): AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Disks$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15179,26 +17105,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Disks$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Disks$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15301,28 +17239,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Disks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Disks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Disks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Disks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15347,6 +17298,342 @@ export namespace compute_beta { } } + export interface Params$Resource$Disks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Disks$Createsnapshot { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to snapshot. + */ + disk?: string; + /** + * + */ + guestFlush?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Snapshot; + } + export interface Params$Resource$Disks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to delete. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to return. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Optional. Source image to restore onto a disk. + */ + sourceImage?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Disk; + } + export interface Params$Resource$Disks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the persistent disk. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$DisksResizeRequest; + } + export interface Params$Resource$Disks$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$ZoneSetLabelsRequest; + } + export interface Params$Resource$Disks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Disktypes { root: Compute; constructor(root: Compute) { @@ -15442,28 +17729,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Disktypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Disktypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Disktypes$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Disktypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disktypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15489,8 +17789,8 @@ export namespace compute_beta { /** * compute.diskTypes.get - * @desc Returns the specified disk type. Get a list of available disk types - * by making a list() request. + * @desc Returns the specified disk type. Gets a list of available disk + * types by making a list() request. * @example * * // BEFORE RUNNING: * // --------------- @@ -15561,23 +17861,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Disktypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Disktypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Disktypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Disktypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disktypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15688,26 +17998,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Disktypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disktypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disktypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Disktypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disktypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15731,6 +18052,139 @@ export namespace compute_beta { } } + export interface Params$Resource$Disktypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Disktypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the disk type to return. + */ + diskType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disktypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Firewalls { root: Compute; constructor(root: Compute) { @@ -15813,26 +18267,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Firewalls$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Firewalls$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Firewalls$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15926,23 +18391,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Firewalls$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Firewalls$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Firewalls$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Firewalls$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16039,26 +18514,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Firewalls$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Firewalls$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16165,26 +18651,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Firewalls$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Firewalls$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16287,26 +18784,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Firewalls$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Firewalls$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16405,28 +18913,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Firewalls$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Firewalls$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Firewalls$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Firewalls$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Firewalls$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16530,26 +19051,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Firewalls$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Firewalls$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16574,6 +19106,216 @@ export namespace compute_beta { } } + export interface Params$Resource$Firewalls$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to delete. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Firewalls$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to return. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + export interface Params$Resource$Firewalls$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to patch. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + export interface Params$Resource$Firewalls$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Firewalls$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to update. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + + export class Resource$Forwardingrules { root: Compute; constructor(root: Compute) { @@ -16669,29 +19411,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Forwardingrules$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Forwardingrules$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Forwardingrules$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Forwardingrules$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Forwardingrules$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16793,26 +19551,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Forwardingrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Forwardingrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16911,24 +19682,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Forwardingrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Forwardingrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Forwardingrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Forwardingrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17029,26 +19811,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Forwardingrules$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Forwardingrules$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17160,26 +19955,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Forwardingrules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Forwardingrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17284,26 +20092,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Forwardingrules$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Forwardingrules$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17409,26 +20230,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTarget(params?: any, options?: MethodOptions): - AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Settarget, + options?: MethodOptions): AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Settarget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTarget( + params: Params$Resource$Forwardingrules$Settarget, + callback: BodyResponseCallback): void; + setTarget(callback: BodyResponseCallback): void; + setTarget( + paramsOrCallback?: Params$Resource$Forwardingrules$Settarget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Settarget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Settarget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17529,28 +20363,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Forwardingrules$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Forwardingrules$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Forwardingrules$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Forwardingrules$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Forwardingrules$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17575,6 +20422,298 @@ export namespace compute_beta { } } + export interface Params$Resource$Forwardingrules$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Forwardingrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to delete. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Forwardingrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to return. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Forwardingrules$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Forwardingrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Forwardingrules$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Forwardingrules$Settarget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource in which target is to be set. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + export interface Params$Resource$Forwardingrules$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Globaladdresses { root: Compute; constructor(root: Compute) { @@ -17657,26 +20796,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Globaladdresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Globaladdresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17703,7 +20855,7 @@ export namespace compute_beta { /** * compute.globalAddresses.get - * @desc Returns the specified address resource. Get a list of available + * @desc Returns the specified address resource. Gets a list of available * addresses by making a list() request. * @example * * // BEFORE RUNNING: @@ -17771,23 +20923,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Globaladdresses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Globaladdresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globaladdresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globaladdresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17884,26 +21047,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Globaladdresses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Globaladdresses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaladdresses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18009,26 +21185,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Globaladdresses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Globaladdresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18127,26 +21316,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Setlabels, + options?: MethodOptions): AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Globaladdresses$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Globaladdresses$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18243,28 +21445,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globaladdresses$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Globaladdresses$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Globaladdresses$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Globaladdresses$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globaladdresses$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18289,6 +21504,171 @@ export namespace compute_beta { } } + export interface Params$Resource$Globaladdresses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to delete. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Globaladdresses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to return. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaladdresses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Address; + } + export interface Params$Resource$Globaladdresses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaladdresses$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Globaladdresses$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Globalforwardingrules { root: Compute; constructor(root: Compute) { @@ -18372,26 +21752,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globalforwardingrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Globalforwardingrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globalforwardingrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18418,7 +21811,7 @@ export namespace compute_beta { /** * compute.globalForwardingRules.get - * @desc Returns the specified GlobalForwardingRule resource. Get a list of + * @desc Returns the specified GlobalForwardingRule resource. Gets a list of * available forwarding rules by making a list() request. * @example * * // BEFORE RUNNING: @@ -18487,24 +21880,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Globalforwardingrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Globalforwardingrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globalforwardingrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globalforwardingrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globalforwardingrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18601,26 +22005,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Globalforwardingrules$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18727,26 +22144,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Globalforwardingrules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globalforwardingrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globalforwardingrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18843,26 +22273,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Setlabels, + options?: MethodOptions): AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Globalforwardingrules$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18962,26 +22405,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTarget(params?: any, options?: MethodOptions): - AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Settarget, + options?: MethodOptions): AxiosPromise; + setTarget( + params: Params$Resource$Globalforwardingrules$Settarget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Settarget, + callback: BodyResponseCallback): void; + setTarget(callback: BodyResponseCallback): void; + setTarget( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Settarget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Settarget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Settarget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19078,28 +22534,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globalforwardingrules$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Globalforwardingrules$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Globalforwardingrules$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Globalforwardingrules$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19124,6 +22594,203 @@ export namespace compute_beta { } } + export interface Params$Resource$Globalforwardingrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to delete. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Globalforwardingrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to return. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalforwardingrules$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Globalforwardingrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalforwardingrules$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Globalforwardingrules$Settarget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource in which target is to be set. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + export interface Params$Resource$Globalforwardingrules$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Globaloperations { root: Compute; constructor(root: Compute) { @@ -19219,28 +22886,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globaloperations$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Globaloperations$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Globaloperations$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Globaloperations$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globaloperations$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19330,22 +23010,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaloperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globaloperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaloperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Globaloperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19372,7 +23067,7 @@ export namespace compute_beta { /** * compute.globalOperations.get - * @desc Retrieves the specified Operations resource. Get a list of + * @desc Retrieves the specified Operations resource. Gets a list of * operations by making a list() request. * @example * * // BEFORE RUNNING: @@ -19440,23 +23135,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Globaloperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Globaloperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globaloperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globaloperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19564,26 +23271,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaloperations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Globaloperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globaloperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaloperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19607,6 +23327,146 @@ export namespace compute_beta { } } + export interface Params$Resource$Globaloperations$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Healthchecks { root: Compute; constructor(root: Compute) { @@ -19689,26 +23549,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Healthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Healthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19735,8 +23608,8 @@ export namespace compute_beta { /** * compute.healthChecks.get - * @desc Returns the specified HealthCheck resource. Get a list of available - * health checks by making a list() request. + * @desc Returns the specified HealthCheck resource. Gets a list of + * available health checks by making a list() request. * @example * * // BEFORE RUNNING: * // --------------- @@ -19803,24 +23676,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Healthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Healthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Healthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Healthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Healthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19917,26 +23800,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Healthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Healthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20043,26 +23939,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Healthchecks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Healthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Healthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20165,26 +24073,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Healthchecks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Healthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Healthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20281,28 +24201,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Healthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Healthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Healthchecks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Healthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Healthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20405,26 +24338,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Healthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Healthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20449,6 +24395,216 @@ export namespace compute_beta { } } + export interface Params$Resource$Healthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to delete. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Healthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to return. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Healthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to patch. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Healthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Healthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to update. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + + export class Resource$Httphealthchecks { root: Compute; constructor(root: Compute) { @@ -20532,26 +24688,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Httphealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Httphealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Httphealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20578,7 +24747,7 @@ export namespace compute_beta { /** * compute.httpHealthChecks.get - * @desc Returns the specified HttpHealthCheck resource. Get a list of + * @desc Returns the specified HttpHealthCheck resource. Gets a list of * available HTTP health checks by making a list() request. * @example * * // BEFORE RUNNING: @@ -20647,24 +24816,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Httphealthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Httphealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Httphealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Httphealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20761,26 +24941,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Httphealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Httphealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20887,28 +25080,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Httphealthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Httphealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Httphealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21012,26 +25216,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Httphealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Httphealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Httphealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21128,28 +25345,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httphealthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Httphealthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Httphealthchecks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Httphealthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Httphealthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21253,26 +25483,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Httphealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Httphealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21297,6 +25540,216 @@ export namespace compute_beta { } } + export interface Params$Resource$Httphealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to delete. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Httphealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to return. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httphealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + export interface Params$Resource$Httphealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httphealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to patch. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + export interface Params$Resource$Httphealthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Httphealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to update. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + + export class Resource$Httpshealthchecks { root: Compute; constructor(root: Compute) { @@ -21380,26 +25833,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Httpshealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21426,7 +25892,7 @@ export namespace compute_beta { /** * compute.httpsHealthChecks.get - * @desc Returns the specified HttpsHealthCheck resource. Get a list of + * @desc Returns the specified HttpsHealthCheck resource. Gets a list of * available HTTPS health checks by making a list() request. * @example * * // BEFORE RUNNING: @@ -21495,24 +25961,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Httpshealthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Httpshealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Httpshealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Httpshealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21609,26 +26086,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Httpshealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21735,28 +26225,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httpshealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Httpshealthchecks$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Httpshealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Httpshealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21860,26 +26362,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Httpshealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21976,28 +26491,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httpshealthchecks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Httpshealthchecks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Httpshealthchecks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Httpshealthchecks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Httpshealthchecks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22101,26 +26629,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Httpshealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22145,6 +26686,216 @@ export namespace compute_beta { } } + export interface Params$Resource$Httpshealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to delete. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Httpshealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to return. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httpshealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + export interface Params$Resource$Httpshealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httpshealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to patch. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + export interface Params$Resource$Httpshealthchecks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Httpshealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to update. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + + export class Resource$Images { root: Compute; constructor(root: Compute) { @@ -22227,26 +26978,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Images$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Images$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22346,26 +27108,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deprecate(params?: any, options?: MethodOptions): - AxiosPromise; deprecate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Deprecate, + options?: MethodOptions): AxiosPromise; + deprecate( + params: Params$Resource$Images$Deprecate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deprecate( + params: Params$Resource$Images$Deprecate, + callback: BodyResponseCallback): void; + deprecate(callback: BodyResponseCallback): void; deprecate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Images$Deprecate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Deprecate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Deprecate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22392,7 +27166,7 @@ export namespace compute_beta { /** * compute.images.get - * @desc Returns the specified image. Get a list of available images by + * @desc Returns the specified image. Gets a list of available images by * making a list() request. * @example * * // BEFORE RUNNING: @@ -22460,23 +27234,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Images$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Images$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Images$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Images$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22570,26 +27354,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getFromFamily(params?: any, options?: MethodOptions): - AxiosPromise; getFromFamily( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Getfromfamily, + options?: MethodOptions): AxiosPromise; getFromFamily( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Getfromfamily, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getFromFamily( + params: Params$Resource$Images$Getfromfamily, + callback: BodyResponseCallback): void; + getFromFamily(callback: BodyResponseCallback): void; + getFromFamily( + paramsOrCallback?: Params$Resource$Images$Getfromfamily| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Getfromfamily; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Getfromfamily; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22687,26 +27483,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Images$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Images$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22816,25 +27623,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Images$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Images$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Images$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22932,26 +27751,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Images$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Images$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23050,28 +27881,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Images$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Images$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Images$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Images$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23096,6 +27940,222 @@ export namespace compute_beta { } } + export interface Params$Resource$Images$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image resource to delete. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Images$Deprecate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Image name. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$DeprecationStatus; + } + export interface Params$Resource$Images$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image resource to return. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Getfromfamily { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image family to search for. + */ + family?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Force image creation if true. + */ + forceCreate?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Image; + } + export interface Params$Resource$Images$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Images$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Instancegroupmanagers { root: Compute; constructor(root: Compute) { @@ -23198,26 +28258,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; + abandonInstances( + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; + abandonInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23326,31 +28400,49 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Instancegroupmanagers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroupmanagers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Instancegroupmanagers$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23454,26 +28546,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23586,26 +28691,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; + deleteInstances( + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteInstances( + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23706,26 +28825,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroupmanagers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Instancegroupmanagers$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroupmanagers$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23833,26 +28962,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23964,28 +29106,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroupmanagers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancegroupmanagers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroupmanagers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24109,30 +29263,49 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listManagedInstances(params?: any, options?: MethodOptions): + listManagedInstances( + params?: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + options?: MethodOptions): AxiosPromise; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + options: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>): void; + listManagedInstances( + params: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + callback: BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>): void; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>): void; + listManagedInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Listmanagedinstances| + BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>, callback?: BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Listmanagedinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Listmanagedinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24249,26 +29422,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Instancegroupmanagers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24380,26 +29566,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; + recreateInstances( + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Recreateinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24516,26 +29716,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Instancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Instancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24649,26 +29862,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resizeAdvanced(params?: any, options?: MethodOptions): - AxiosPromise; resizeAdvanced( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Resizeadvanced, + options?: MethodOptions): AxiosPromise; + resizeAdvanced( + params: Params$Resource$Instancegroupmanagers$Resizeadvanced, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resizeAdvanced( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Resizeadvanced, + callback: BodyResponseCallback): void; + resizeAdvanced(callback: BodyResponseCallback): void; + resizeAdvanced( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resizeadvanced| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Resizeadvanced; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Resizeadvanced; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24771,26 +29997,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAutoHealingPolicies(params?: any, options?: MethodOptions): - AxiosPromise; setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Setautohealingpolicies, + options?: MethodOptions): AxiosPromise; + setAutoHealingPolicies( + params: Params$Resource$Instancegroupmanagers$Setautohealingpolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAutoHealingPolicies( + params: Params$Resource$Instancegroupmanagers$Setautohealingpolicies, + callback: BodyResponseCallback): void; + setAutoHealingPolicies(callback: BodyResponseCallback): + void; setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Setautohealingpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Setautohealingpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Setautohealingpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24895,26 +30137,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setInstanceTemplate( + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; + setInstanceTemplate( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25022,26 +30279,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Instancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTargetPools( + params: Params$Resource$Instancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25142,28 +30412,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroupmanagers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instancegroupmanagers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instancegroupmanagers$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25274,26 +30558,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Instancegroupmanagers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Instancegroupmanagers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25318,6 +30615,624 @@ export namespace compute_beta { } } + export interface Params$Resource$Instancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group to delete. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Listmanagedinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersRecreateInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The number of running instances that the managed instance group should + * maintain at any given time. The group automatically adds or removes + * instances to maintain the number of instances specified by this + * parameter. + */ + size?: number; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Resizeadvanced { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersResizeAdvancedRequest; + } + export interface Params$Resource$Instancegroupmanagers$Setautohealingpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetAutoHealingRequest; + } + export interface Params$Resource$Instancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetInstanceTemplateRequest; + } + export interface Params$Resource$Instancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetTargetPoolsRequest; + } + export interface Params$Resource$Instancegroupmanagers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Instancegroupmanagers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + + export class Resource$Instancegroups { root: Compute; constructor(root: Compute) { @@ -25412,26 +31327,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addInstances(params?: any, options?: MethodOptions): - AxiosPromise; addInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Addinstances, + options?: MethodOptions): AxiosPromise; + addInstances( + params: Params$Resource$Instancegroups$Addinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addInstances( + params: Params$Resource$Instancegroups$Addinstances, + callback: BodyResponseCallback): void; + addInstances(callback: BodyResponseCallback): void; addInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Addinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Addinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Addinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25539,29 +31467,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Instancegroups$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Instancegroups$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25664,26 +31608,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instancegroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25710,7 +31667,7 @@ export namespace compute_beta { /** * compute.instanceGroups.get - * @desc Returns the specified instance group. Get a list of available + * @desc Returns the specified instance group. Gets a list of available * instance groups by making a list() request. * @example * * // BEFORE RUNNING: @@ -25783,24 +31740,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instancegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25901,26 +31869,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancegroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancegroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26032,26 +32013,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Instancegroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instancegroups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26172,29 +32165,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listInstances(params?: any, options?: MethodOptions): + listInstances( + params?: Params$Resource$Instancegroups$Listinstances, + options?: MethodOptions): AxiosPromise; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Listinstances, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + listInstances( + params: Params$Resource$Instancegroups$Listinstances, + callback: BodyResponseCallback): + void; + listInstances(callback: + BodyResponseCallback): void; listInstances( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroups$Listinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Listinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Listinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26302,26 +32311,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeInstances(params?: any, options?: MethodOptions): - AxiosPromise; removeInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Removeinstances, + options?: MethodOptions): AxiosPromise; + removeInstances( + params: Params$Resource$Instancegroups$Removeinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Removeinstances, + callback: BodyResponseCallback): void; + removeInstances(callback: BodyResponseCallback): void; + removeInstances( + paramsOrCallback?: Params$Resource$Instancegroups$Removeinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Removeinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Removeinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26426,26 +32448,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNamedPorts(params?: any, options?: MethodOptions): - AxiosPromise; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Setnamedports, + options?: MethodOptions): AxiosPromise; + setNamedPorts( + params: Params$Resource$Instancegroups$Setnamedports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setNamedPorts( + params: Params$Resource$Instancegroups$Setnamedports, + callback: BodyResponseCallback): void; + setNamedPorts(callback: BodyResponseCallback): void; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Setnamedports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Setnamedports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Setnamedports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26546,28 +32581,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instancegroups$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instancegroups$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Instancegroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26592,6 +32640,402 @@ export namespace compute_beta { } } + export interface Params$Resource$Instancegroups$Addinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where you are adding instances. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsAddInstancesRequest; + } + export interface Params$Resource$Instancegroups$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancegroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group to delete. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroup; + } + export interface Params$Resource$Instancegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Listinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The name of the instance group from which you want to generate a list of + * included instances. + */ + instanceGroup?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsListInstancesRequest; + } + export interface Params$Resource$Instancegroups$Removeinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where the specified instances will be + * removed. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsRemoveInstancesRequest; + } + export interface Params$Resource$Instancegroups$Setnamedports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where the named ports are updated. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsSetNamedPortsRequest; + } + export interface Params$Resource$Instancegroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Instances { root: Compute; constructor(root: Compute) { @@ -26687,26 +33131,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; addAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Addaccessconfig, + options?: MethodOptions): AxiosPromise; addAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Addaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addAccessConfig( + params: Params$Resource$Instances$Addaccessconfig, + callback: BodyResponseCallback): void; + addAccessConfig(callback: BodyResponseCallback): void; + addAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Addaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Addaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Addaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26814,28 +33271,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Instances$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Instances$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Instances$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26942,26 +33412,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - attachDisk(params?: any, options?: MethodOptions): - AxiosPromise; attachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Attachdisk, + options?: MethodOptions): AxiosPromise; + attachDisk( + params: Params$Resource$Instances$Attachdisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; attachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Attachdisk, + callback: BodyResponseCallback): void; + attachDisk(callback: BodyResponseCallback): void; + attachDisk( + paramsOrCallback?: Params$Resource$Instances$Attachdisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Attachdisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Attachdisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27061,26 +33544,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Instances$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27187,26 +33681,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; deleteAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Deleteaccessconfig, + options?: MethodOptions): AxiosPromise; + deleteAccessConfig( + params: Params$Resource$Instances$Deleteaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Deleteaccessconfig, + callback: BodyResponseCallback): void; + deleteAccessConfig(callback: BodyResponseCallback): void; + deleteAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Deleteaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Deleteaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Deleteaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27310,26 +33817,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - detachDisk(params?: any, options?: MethodOptions): - AxiosPromise; detachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Detachdisk, + options?: MethodOptions): AxiosPromise; + detachDisk( + params: Params$Resource$Instances$Detachdisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + detachDisk( + params: Params$Resource$Instances$Detachdisk, + callback: BodyResponseCallback): void; + detachDisk(callback: BodyResponseCallback): void; detachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Detachdisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Detachdisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Detachdisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27356,7 +33876,7 @@ export namespace compute_beta { /** * compute.instances.get - * @desc Returns the specified Instance resource. Get a list of available + * @desc Returns the specified Instance resource. Gets a list of available * instances by making a list() request. * @example * * // BEFORE RUNNING: @@ -27428,23 +33948,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27542,26 +34072,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getSerialPortOutput(params?: any, options?: MethodOptions): - AxiosPromise; getSerialPortOutput( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Getserialportoutput, + options?: MethodOptions): AxiosPromise; getSerialPortOutput( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Getserialportoutput, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getSerialPortOutput( + params: Params$Resource$Instances$Getserialportoutput, + callback: BodyResponseCallback): void; + getSerialPortOutput( + callback: BodyResponseCallback): void; + getSerialPortOutput( + paramsOrCallback?: Params$Resource$Instances$Getserialportoutput| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Getserialportoutput; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Getserialportoutput; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27663,26 +34207,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Instances$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27793,26 +34348,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Instances$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27929,28 +34495,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listReferrers(params?: any, options?: MethodOptions): - AxiosPromise; listReferrers( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Listreferrers, + options?: MethodOptions): AxiosPromise; + listReferrers( + params: Params$Resource$Instances$Listreferrers, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; listReferrers( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Listreferrers, + callback: BodyResponseCallback): void; + listReferrers(callback: BodyResponseCallback): + void; + listReferrers( + paramsOrCallback?: Params$Resource$Instances$Listreferrers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Listreferrers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Listreferrers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28050,26 +34629,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): + reset(params?: Params$Resource$Instances$Reset, options?: MethodOptions): AxiosPromise; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + reset( + params: Params$Resource$Instances$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28167,26 +34757,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDeletionProtection(params?: any, options?: MethodOptions): - AxiosPromise; setDeletionProtection( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setdeletionprotection, + options?: MethodOptions): AxiosPromise; setDeletionProtection( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setdeletionprotection, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDeletionProtection( + params: Params$Resource$Instances$Setdeletionprotection, + callback: BodyResponseCallback): void; + setDeletionProtection(callback: BodyResponseCallback): + void; + setDeletionProtection( + paramsOrCallback?: Params$Resource$Instances$Setdeletionprotection| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setdeletionprotection; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setdeletionprotection; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28293,26 +34897,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDiskAutoDelete(params?: any, options?: MethodOptions): - AxiosPromise; setDiskAutoDelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setdiskautodelete, + options?: MethodOptions): AxiosPromise; + setDiskAutoDelete( + params: Params$Resource$Instances$Setdiskautodelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDiskAutoDelete( + params: Params$Resource$Instances$Setdiskautodelete, + callback: BodyResponseCallback): void; + setDiskAutoDelete(callback: BodyResponseCallback): void; setDiskAutoDelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setdiskautodelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setdiskautodelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setdiskautodelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28418,26 +35035,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Instances$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Instances$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28540,26 +35170,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMachineResources(params?: any, options?: MethodOptions): - AxiosPromise; setMachineResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmachineresources, + options?: MethodOptions): AxiosPromise; + setMachineResources( + params: Params$Resource$Instances$Setmachineresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMachineResources( + params: Params$Resource$Instances$Setmachineresources, + callback: BodyResponseCallback): void; + setMachineResources(callback: BodyResponseCallback): void; setMachineResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setmachineresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setmachineresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmachineresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28664,26 +35307,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMachineType(params?: any, options?: MethodOptions): - AxiosPromise; setMachineType( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmachinetype, + options?: MethodOptions): AxiosPromise; + setMachineType( + params: Params$Resource$Instances$Setmachinetype, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMachineType( + params: Params$Resource$Instances$Setmachinetype, + callback: BodyResponseCallback): void; + setMachineType(callback: BodyResponseCallback): void; setMachineType( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setmachinetype| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setmachinetype; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmachinetype; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28788,26 +35444,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMetadata(params?: any, options?: MethodOptions): - AxiosPromise; setMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmetadata, + options?: MethodOptions): AxiosPromise; setMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setmetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMetadata( + params: Params$Resource$Instances$Setmetadata, + callback: BodyResponseCallback): void; + setMetadata(callback: BodyResponseCallback): void; + setMetadata( + paramsOrCallback?: Params$Resource$Instances$Setmetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setmetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28913,26 +35582,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMinCpuPlatform(params?: any, options?: MethodOptions): - AxiosPromise; setMinCpuPlatform( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmincpuplatform, + options?: MethodOptions): AxiosPromise; + setMinCpuPlatform( + params: Params$Resource$Instances$Setmincpuplatform, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMinCpuPlatform( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setmincpuplatform, + callback: BodyResponseCallback): void; + setMinCpuPlatform(callback: BodyResponseCallback): void; + setMinCpuPlatform( + paramsOrCallback?: Params$Resource$Instances$Setmincpuplatform| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setmincpuplatform; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmincpuplatform; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29036,26 +35718,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setScheduling(params?: any, options?: MethodOptions): - AxiosPromise; setScheduling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setscheduling, + options?: MethodOptions): AxiosPromise; + setScheduling( + params: Params$Resource$Instances$Setscheduling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setScheduling( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setscheduling, + callback: BodyResponseCallback): void; + setScheduling(callback: BodyResponseCallback): void; + setScheduling( + paramsOrCallback?: Params$Resource$Instances$Setscheduling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setscheduling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setscheduling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29160,26 +35855,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setServiceAccount(params?: any, options?: MethodOptions): - AxiosPromise; setServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setserviceaccount, + options?: MethodOptions): AxiosPromise; setServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setserviceaccount, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setServiceAccount( + params: Params$Resource$Instances$Setserviceaccount, + callback: BodyResponseCallback): void; + setServiceAccount(callback: BodyResponseCallback): void; + setServiceAccount( + paramsOrCallback?: Params$Resource$Instances$Setserviceaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setserviceaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setserviceaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29284,26 +35992,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTags(params?: any, options?: MethodOptions): - AxiosPromise; setTags( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Settags, + options?: MethodOptions): AxiosPromise; + setTags( + params: Params$Resource$Instances$Settags, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setTags( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Settags, + callback: BodyResponseCallback): void; + setTags(callback: BodyResponseCallback): void; + setTags( + paramsOrCallback?: Params$Resource$Instances$Settags| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Settags; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Settags; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29342,274 +36063,47 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - simulateMaintenanceEvent(params?: any, options?: MethodOptions): - AxiosPromise; simulateMaintenanceEvent( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Simulatemaintenanceevent, + options?: MethodOptions): AxiosPromise; + simulateMaintenanceEvent( + params: Params$Resource$Instances$Simulatemaintenanceevent, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; simulateMaintenanceEvent( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Simulatemaintenanceevent, + callback: BodyResponseCallback): void; + simulateMaintenanceEvent(callback: BodyResponseCallback): + void; + simulateMaintenanceEvent( + paramsOrCallback?: Params$Resource$Instances$Simulatemaintenanceevent| + BodyResponseCallback, + optionsOrCallback?: 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 + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Simulatemaintenanceevent; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * compute.instances.start - * @desc Starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('beta'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The name of the zone for this request. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * // Name of the instance resource to start. - * instance: 'my-instance', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * compute.instances.start(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.instances.start - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Name of the instance resource to start. - * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - start(params?: any, options?: MethodOptions): - AxiosPromise; - start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Simulatemaintenanceevent; 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 + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * compute.instances.startWithEncryptionKey - * @desc Starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('beta'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The name of the zone for this request. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * // Name of the instance resource to start. - * instance: 'my-instance', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * compute.instances.startWithEncryptionKey(request, function(err, - * response) { if (err) { console.error(err); return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.instances.startWithEncryptionKey - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Name of the instance resource to start. - * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesStartWithEncryptionKeyRequest} 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 - */ - startWithEncryptionKey(params?: any, options?: MethodOptions): - AxiosPromise; - startWithEncryptionKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - startWithEncryptionKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey') + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -29628,13 +36122,9 @@ export namespace compute_beta { /** - * compute.instances.stop - * @desc Stops a running instance, shutting it down cleanly, and allows you - * to restart the instance at a later time. Stopped instances do not incur - * VM usage charges while they are stopped. However, resources that the VM - * is using, such as persistent disks and static IP addresses, will continue - * to be charged until they are deleted. For more information, see Stopping - * an instance. + * compute.instances.start + * @desc Starts an instance that was stopped using the instances().stop + * method. For more information, see Restart an instance. * @example * * // BEFORE RUNNING: * // --------------- @@ -29663,13 +36153,13 @@ export namespace compute_beta { * // The name of the zone for this request. * zone: 'my-zone', // TODO: Update placeholder value. * - * // Name of the instance resource to stop. + * // Name of the instance resource to start. * instance: 'my-instance', // TODO: Update placeholder value. * * auth: authClient, * }; * - * compute.instances.stop(request, function(err, response) { + * compute.instances.start(request, function(err, response) { * if (err) { * console.error(err); * return; @@ -29694,11 +36184,11 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.instances.stop + * @alias compute.instances.start * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instance Name of the instance resource to stop. + * @param {string} params.instance Name of the instance resource to start. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. @@ -29706,32 +36196,44 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; - stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + start(params?: Params$Resource$Instances$Start, options?: MethodOptions): + AxiosPromise; + start( + params: Params$Resource$Instances$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + start( + params: Params$Resource$Instances$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: Params$Resource$Instances$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop') + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -29750,8 +36252,9 @@ export namespace compute_beta { /** - * compute.instances.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. + * compute.instances.startWithEncryptionKey + * @desc Starts an instance that was stopped using the instances().stop + * method. For more information, see Restart an instance. * @example * * // BEFORE RUNNING: * // --------------- @@ -29780,8 +36283,8 @@ export namespace compute_beta { * // The name of the zone for this request. * zone: 'my-zone', // TODO: Update placeholder value. * - * // Name of the resource for this request. - * resource_: 'my-resource', // TODO: Update placeholder value. + * // Name of the instance resource to start. + * instance: 'my-instance', // TODO: Update placeholder value. * * resource: { * // TODO: Add desired properties to the request body. @@ -29790,10 +36293,8 @@ export namespace compute_beta { * auth: authClient, * }; * - * compute.instances.testIamPermissions(request, function(err, response) { - * if (err) { - * console.error(err); - * return; + * compute.instances.startWithEncryptionKey(request, function(err, + * response) { if (err) { console.error(err); return; * } * * // TODO: Change code below to process the `response` object: @@ -29815,70 +36316,85 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.instances.testIamPermissions + * @alias compute.instances.startWithEncryptionKey * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.instance Name of the instance resource to start. * @param {string} params.project Project ID for this request. - * @param {string} params.resource_ Name of the resource for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {().InstancesStartWithEncryptionKeyRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + startWithEncryptionKey( + params?: Params$Resource$Instances$Startwithencryptionkey, + options?: MethodOptions): AxiosPromise; + startWithEncryptionKey( + params: Params$Resource$Instances$Startwithencryptionkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startWithEncryptionKey( + params: Params$Resource$Instances$Startwithencryptionkey, + callback: BodyResponseCallback): void; + startWithEncryptionKey(callback: BodyResponseCallback): + void; + startWithEncryptionKey( + paramsOrCallback?: Params$Resource$Instances$Startwithencryptionkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Startwithencryptionkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Startwithencryptionkey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions') + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'resource'], - pathParams: ['project', 'resource', 'zone'], + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.instances.updateAccessConfig - * @desc Updates the specified access config from an instance's network - * interface with the data included in the request. This method supports - * PATCH semantics and uses the JSON merge patch format and processing - * rules. + * compute.instances.stop + * @desc Stops a running instance, shutting it down cleanly, and allows you + * to restart the instance at a later time. Stopped instances do not incur + * VM usage charges while they are stopped. However, resources that the VM + * is using, such as persistent disks and static IP addresses, will continue + * to be charged until they are deleted. For more information, see Stopping + * an instance. * @example * * // BEFORE RUNNING: * // --------------- @@ -29907,20 +36423,13 @@ export namespace compute_beta { * // The name of the zone for this request. * zone: 'my-zone', // TODO: Update placeholder value. * - * // The instance name for this request. + * // Name of the instance resource to stop. * instance: 'my-instance', // TODO: Update placeholder value. * - * // The name of the network interface where the access config is - * attached. networkInterface: '', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * * auth: authClient, * }; * - * compute.instances.updateAccessConfig(request, function(err, response) { + * compute.instances.stop(request, function(err, response) { * if (err) { * console.error(err); * return; @@ -29945,53 +36454,62 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.instances.updateAccessConfig + * @alias compute.instances.stop * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instance The instance name for this request. - * @param {string} params.networkInterface The name of the network interface where the access config is attached. + * @param {string} params.instance Name of the instance resource to stop. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). * @param {string} params.zone The name of the zone for this request. - * @param {().AccessConfig} 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 */ - updateAccessConfig(params?: any, options?: MethodOptions): + stop(params?: Params$Resource$Instances$Stop, options?: MethodOptions): AxiosPromise; - updateAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - updateAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + stop( + params: Params$Resource$Instances$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + stop( + params: Params$Resource$Instances$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Instances$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig') + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + requiredParams: ['project', 'zone', 'instance'], pathParams: ['instance', 'project', 'zone'], context: this.getRoot() }; @@ -30004,9 +36522,8 @@ export namespace compute_beta { /** - * compute.instances.updateNetworkInterface - * @desc Updates an instance's network interface. This method follows PATCH - * semantics. + * compute.instances.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -30035,23 +36552,20 @@ export namespace compute_beta { * // The name of the zone for this request. * zone: 'my-zone', // TODO: Update placeholder value. * - * // The instance name for this request. - * instance: 'my-instance', // TODO: Update placeholder value. - * - * // The name of the network interface to update. - * networkInterface: '', // TODO: Update placeholder value. + * // Name of the resource for this request. + * resource_: 'my-resource', // TODO: Update placeholder value. * * resource: { - * // TODO: Add desired properties to the request body. Only these - * properties - * // will be changed. + * // TODO: Add desired properties to the request body. * }, * * auth: authClient, * }; * - * compute.instances.updateNetworkInterface(request, function(err, - * response) { if (err) { console.error(err); return; + * compute.instances.testIamPermissions(request, function(err, response) { + * if (err) { + * console.error(err); + * return; * } * * // TODO: Change code below to process the `response` object: @@ -30073,81 +36587,83 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.instances.updateNetworkInterface + * @alias compute.instances.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instance The instance name for this request. - * @param {string} params.networkInterface The name of the network interface to update. * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.resource_ Name of the resource for this request. * @param {string} params.zone The name of the zone for this request. - * @param {().NetworkInterface} params.resource Request body data + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateNetworkInterface(params?: any, options?: MethodOptions): - AxiosPromise; - updateNetworkInterface( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - updateNetworkInterface( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Instances$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instances$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instances$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Instances$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface') + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, - requiredParams: ['project', 'zone', 'instance', 'networkInterface'], - pathParams: ['instance', 'project', 'zone'], + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export class Resource$Instancetemplates { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.instanceTemplates.delete - * @desc Deletes the specified instance template. Deleting an instance - * template is permanent and cannot be undone. It's not possible to delete - * templates which are in use by an instance group. + * compute.instances.updateAccessConfig + * @desc Updates the specified access config from an instance's network + * interface with the data included in the request. This method supports + * PATCH semantics and uses the JSON merge patch format and processing + * rules. * @example * * // BEFORE RUNNING: * // --------------- @@ -30173,14 +36689,23 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // The name of the instance template to delete. - * instanceTemplate: 'my-instance-template', // TODO: Update - * placeholder value. + * // The name of the zone for this request. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * // The instance name for this request. + * instance: 'my-instance', // TODO: Update placeholder value. + * + * // The name of the network interface where the access config is + * attached. networkInterface: '', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. + * }, * * auth: authClient, * }; * - * compute.instanceTemplates.delete(request, function(err, response) { + * compute.instances.updateAccessConfig(request, function(err, response) { * if (err) { * console.error(err); * return; @@ -30205,51 +36730,67 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.instanceTemplates.delete + * @alias compute.instances.updateAccessConfig * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceTemplate The name of the instance template to delete. + * @param {string} params.instance The instance name for this request. + * @param {string} params.networkInterface The name of the network interface where the access config is attached. * @param {string} params.project Project ID for this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().AccessConfig} 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 */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + updateAccessConfig( + params?: Params$Resource$Instances$Updateaccessconfig, + options?: MethodOptions): AxiosPromise; + updateAccessConfig( + params: Params$Resource$Instances$Updateaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateAccessConfig( + params: Params$Resource$Instances$Updateaccessconfig, + callback: BodyResponseCallback): void; + updateAccessConfig(callback: BodyResponseCallback): void; + updateAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Updateaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updateaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updateaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}') + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig') .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + method: 'POST' }, options), params, - requiredParams: ['project', 'instanceTemplate'], - pathParams: ['instanceTemplate', 'project'], + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], context: this.getRoot() }; if (callback) { @@ -30261,9 +36802,9 @@ export namespace compute_beta { /** - * compute.instanceTemplates.get - * @desc Returns the specified instance template. Gets a list of available - * instance templates by making a list() request. + * compute.instances.updateNetworkInterface + * @desc Updates an instance's network interface. This method follows PATCH + * semantics. * @example * * // BEFORE RUNNING: * // --------------- @@ -30289,17 +36830,1376 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // The name of the instance template. - * instanceTemplate: 'my-instance-template', // TODO: Update - * placeholder value. + * // The name of the zone for this request. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * // The instance name for this request. + * instance: 'my-instance', // TODO: Update placeholder value. + * + * // The name of the network interface to update. + * networkInterface: '', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. Only these + * properties + * // will be changed. + * }, * * auth: authClient, * }; * - * compute.instanceTemplates.get(request, function(err, response) { - * if (err) { - * console.error(err); - * return; + * compute.instances.updateNetworkInterface(request, function(err, + * response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.instances.updateNetworkInterface + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance The instance name for this request. + * @param {string} params.networkInterface The name of the network interface to update. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().NetworkInterface} 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 + */ + updateNetworkInterface( + params?: Params$Resource$Instances$Updatenetworkinterface, + options?: MethodOptions): AxiosPromise; + updateNetworkInterface( + params: Params$Resource$Instances$Updatenetworkinterface, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateNetworkInterface( + params: Params$Resource$Instances$Updatenetworkinterface, + callback: BodyResponseCallback): void; + updateNetworkInterface(callback: BodyResponseCallback): + void; + updateNetworkInterface( + paramsOrCallback?: Params$Resource$Instances$Updatenetworkinterface| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updatenetworkinterface; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updatenetworkinterface; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Instances$Addaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface to add to this instance. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AccessConfig; + } + export interface Params$Resource$Instances$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instances$Attachdisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to force attach the disk even if it's currently attached to + * another instance. This is only available for regional disks. + */ + forceAttach?: boolean; + /** + * The instance name for this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AttachedDisk; + } + export interface Params$Resource$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to delete. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Deleteaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the access config to delete. + */ + accessConfig?: string; + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Detachdisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Disk device name to detach. + */ + deviceName?: string; + /** + * Instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to return. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Getserialportoutput { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Specifies which COM or serial port to retrieve data from. + */ + port?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Returns output starting from a specific byte position. Use this to page + * through output when the output is too large to return in a single + * request. For the initial request, leave this field unspecified. For + * subsequent calls, this field should be set to the next value returned in + * the previous call. + */ + start?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Specifies instance template to create the instance. This field is + * optional. It can be a full or partial URL. For example, the following are + * all valid URLs to an instance template: - + * https://www.googleapis.com/compute/v1/projects/project/global/global/instanceTemplates/instanceTemplate + * - projects/project/global/global/instanceTemplates/instanceTemplate - + * global/instancesTemplates/instanceTemplate + */ + sourceInstanceTemplate?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Instance; + } + export interface Params$Resource$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Listreferrers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * Name of the target instance scoping this request, or '-' if the request + * should span over all instances in the container. + */ + instance?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setdeletionprotection { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the resource should be protected against deletion. + */ + deletionProtection?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setdiskautodelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to auto-delete the disk when the instance is deleted. + */ + autoDelete?: boolean; + /** + * The device name of the disk to modify. + */ + deviceName?: string; + /** + * The instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetLabelsRequest; + } + export interface Params$Resource$Instances$Setmachineresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMachineResourcesRequest; + } + export interface Params$Resource$Instances$Setmachinetype { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMachineTypeRequest; + } + export interface Params$Resource$Instances$Setmetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Metadata; + } + export interface Params$Resource$Instances$Setmincpuplatform { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMinCpuPlatformRequest; + } + export interface Params$Resource$Instances$Setscheduling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Scheduling; + } + export interface Params$Resource$Instances$Setserviceaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetServiceAccountRequest; + } + export interface Params$Resource$Instances$Settags { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Tags; + } + export interface Params$Resource$Instances$Simulatemaintenanceevent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Startwithencryptionkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesStartWithEncryptionKeyRequest; + } + export interface Params$Resource$Instances$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to stop. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Instances$Updateaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface where the access config is attached. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AccessConfig; + } + export interface Params$Resource$Instances$Updatenetworkinterface { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface to update. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkInterface; + } + + + export class Resource$Instancetemplates { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.instanceTemplates.delete + * @desc Deletes the specified instance template. Deleting an instance + * template is permanent and cannot be undone. It's not possible to delete + * templates which are in use by an instance group. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('beta'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // The name of the instance template to delete. + * instanceTemplate: 'my-instance-template', // TODO: Update + * placeholder value. + * + * auth: authClient, + * }; + * + * compute.instanceTemplates.delete(request, function(err, response) { + * if (err) { + * console.error(err); + * return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.instanceTemplates.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceTemplate The name of the instance template to delete. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Instancetemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancetemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instancetemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancetemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instanceTemplates.get + * @desc Returns the specified instance template. Gets a list of available + * instance templates by making a list() request. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('beta'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // The name of the instance template. + * instanceTemplate: 'my-instance-template', // TODO: Update + * placeholder value. + * + * auth: authClient, + * }; + * + * compute.instanceTemplates.get(request, function(err, response) { + * if (err) { + * console.error(err); + * return; * } * * // TODO: Change code below to process the `response` object: @@ -30331,24 +38231,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancetemplates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instancetemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancetemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancetemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30448,26 +38359,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancetemplates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancetemplates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancetemplates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancetemplates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30574,28 +38498,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancetemplates$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancetemplates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancetemplates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Instancetemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30691,28 +38627,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancetemplates$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Instancetemplates$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Instancetemplates$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancetemplates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancetemplates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30737,6 +38686,152 @@ export namespace compute_beta { } } + export interface Params$Resource$Instancetemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance template to delete. + */ + instanceTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Instancetemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance template. + */ + instanceTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancetemplates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceTemplate; + } + export interface Params$Resource$Instancetemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancetemplates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Interconnectattachments { root: Compute; constructor(root: Compute) { @@ -30833,31 +38928,50 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Interconnectattachments$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnectattachments$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnectattachments$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: + BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: + Params$Resource$Interconnectattachments$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30957,26 +39071,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnectattachments$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnectattachments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Interconnectattachments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Interconnectattachments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31075,26 +39202,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Interconnectattachments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Interconnectattachments$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnectattachments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnectattachments$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31193,26 +39330,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnectattachments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Interconnectattachments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnectattachments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Interconnectattachments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31324,29 +39474,44 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Interconnectattachments$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnectattachments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Interconnectattachments$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Interconnectattachments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31390,26 +39555,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnectattachments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Interconnectattachments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Interconnectattachments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnectattachments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31451,26 +39629,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnectattachments$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Interconnectattachments$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnectattachments$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Interconnectattachments$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31571,28 +39762,43 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Interconnectattachments$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Interconnectattachments$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnectattachments$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Interconnectattachments$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Interconnectattachments$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31617,6 +39823,298 @@ export namespace compute_beta { } } + export interface Params$Resource$Interconnectattachments$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectattachments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to delete. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Interconnectattachments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to return. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Interconnectattachments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InterconnectAttachment; + } + export interface Params$Resource$Interconnectattachments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Interconnectattachments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to patch. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InterconnectAttachment; + } + export interface Params$Resource$Interconnectattachments$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Interconnectattachments$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Interconnectlocations { root: Compute; constructor(root: Compute) { @@ -31631,7 +40129,7 @@ export namespace compute_beta { /** * compute.interconnectLocations.get - * @desc Returns the details for the specified interconnect location. Get a + * @desc Returns the details for the specified interconnect location. Gets a * list of available interconnect locations by making a list() request. * @example * * // BEFORE RUNNING: @@ -31700,26 +40198,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Interconnectlocations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Interconnectlocations$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnectlocations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnectlocations$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnectlocations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31827,28 +40335,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Interconnectlocations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Interconnectlocations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Interconnectlocations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Interconnectlocations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectlocations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31873,6 +40393,77 @@ export namespace compute_beta { } } + export interface Params$Resource$Interconnectlocations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect location to return. + */ + interconnectLocation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectlocations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Interconnects { root: Compute; constructor(root: Compute) { @@ -31955,26 +40546,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Interconnects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Interconnects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32001,7 +40605,7 @@ export namespace compute_beta { /** * compute.interconnects.get - * @desc Returns the specified interconnect. Get a list of available + * @desc Returns the specified interconnect. Gets a list of available * interconnects by making a list() request. * @example * * // BEFORE RUNNING: @@ -32069,24 +40673,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Interconnects$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Interconnects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32183,26 +40798,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Interconnects$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Interconnects$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnects$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32309,26 +40937,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Interconnects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Interconnects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Interconnects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32431,26 +41071,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Interconnects$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnects$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Interconnects$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32490,26 +41143,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Interconnects$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Interconnects$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnects$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32606,28 +41272,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Interconnects$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Interconnects$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnects$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Interconnects$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnects$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32652,6 +41331,203 @@ export namespace compute_beta { } } + export interface Params$Resource$Interconnects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to delete. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Interconnects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to return. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnects$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Interconnect; + } + export interface Params$Resource$Interconnects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnects$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to update. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Interconnect; + } + export interface Params$Resource$Interconnects$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Interconnects$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Licensecodes { root: Compute; constructor(root: Compute) { @@ -32678,24 +41554,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Licensecodes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Licensecodes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licensecodes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licensecodes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licensecodes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32720,6 +41606,23 @@ export namespace compute_beta { } } + export interface Params$Resource$Licensecodes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Number corresponding to the License code resource to return. + */ + licenseCode?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Licenses { root: Compute; constructor(root: Compute) { @@ -32746,26 +41649,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Licenses$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Licenses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Licenses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Licenses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32859,23 +41773,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Licenses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Licenses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licenses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licenses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32914,26 +41838,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Licenses$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Licenses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Licenses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Licenses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32978,28 +41913,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Licenses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Licenses$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Licenses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Licenses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33023,6 +41968,133 @@ export namespace compute_beta { } } + export interface Params$Resource$Licenses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the license resource to delete. + */ + license?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Licenses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the License resource to return. + */ + license?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licenses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$License; + } + export interface Params$Resource$Licenses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Machinetypes { root: Compute; constructor(root: Compute) { @@ -33118,29 +42190,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Machinetypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Machinetypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Machinetypes$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Machinetypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Machinetypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33239,24 +42324,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Machinetypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Machinetypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Machinetypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Machinetypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Machinetypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33368,26 +42463,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Machinetypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Machinetypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Machinetypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Machinetypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Machinetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33412,6 +42519,139 @@ export namespace compute_beta { } } + export interface Params$Resource$Machinetypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Machinetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the machine type to return. + */ + machineType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Machinetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Networks { root: Compute; constructor(root: Compute) { @@ -33499,26 +42739,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addPeering(params?: any, options?: MethodOptions): - AxiosPromise; addPeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Networks$Addpeering, + options?: MethodOptions): AxiosPromise; + addPeering( + params: Params$Resource$Networks$Addpeering, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addPeering( + params: Params$Resource$Networks$Addpeering, + callback: BodyResponseCallback): void; + addPeering(callback: BodyResponseCallback): void; addPeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Networks$Addpeering| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Addpeering; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Addpeering; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33613,26 +42866,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Networks$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Networks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Networks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33659,7 +42923,7 @@ export namespace compute_beta { /** * compute.networks.get - * @desc Returns the specified network. Get a list of available networks by + * @desc Returns the specified network. Gets a list of available networks by * making a list() request. * @example * * // BEFORE RUNNING: @@ -33727,23 +42991,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Networks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Networks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Networks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Networks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33840,26 +43114,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Networks$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Networks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Networks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33965,26 +43250,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Networks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Networks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34087,26 +43383,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Networks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Networks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34206,26 +43513,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removePeering(params?: any, options?: MethodOptions): - AxiosPromise; removePeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Networks$Removepeering, + options?: MethodOptions): AxiosPromise; + removePeering( + params: Params$Resource$Networks$Removepeering, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removePeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Removepeering, + callback: BodyResponseCallback): void; + removePeering(callback: BodyResponseCallback): void; + removePeering( + paramsOrCallback?: Params$Resource$Networks$Removepeering| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Removepeering; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Removepeering; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34321,26 +43641,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - switchToCustomMode(params?: any, options?: MethodOptions): - AxiosPromise; switchToCustomMode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Networks$Switchtocustommode, + options?: MethodOptions): AxiosPromise; switchToCustomMode( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Switchtocustommode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + switchToCustomMode( + params: Params$Resource$Networks$Switchtocustommode, + callback: BodyResponseCallback): void; + switchToCustomMode(callback: BodyResponseCallback): void; + switchToCustomMode( + paramsOrCallback?: Params$Resource$Networks$Switchtocustommode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Networks$Switchtocustommode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Switchtocustommode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34439,28 +43772,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Networks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Networks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Networks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Networks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Networks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34485,6 +43831,276 @@ export namespace compute_beta { } } + export interface Params$Resource$Networks$Addpeering { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network resource to add peering to. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworksAddPeeringRequest; + } + export interface Params$Resource$Networks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to delete. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Networks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to return. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Network; + } + export interface Params$Resource$Networks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to update. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Network; + } + export interface Params$Resource$Networks$Removepeering { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network resource to remove peering from. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworksRemovePeeringRequest; + } + export interface Params$Resource$Networks$Switchtocustommode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to be updated. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Networks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Projects { root: Compute; constructor(root: Compute) { @@ -34563,26 +44179,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disableXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; disableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Disablexpnhost, + options?: MethodOptions): AxiosPromise; + disableXpnHost( + params: Params$Resource$Projects$Disablexpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; disableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Disablexpnhost, + callback: BodyResponseCallback): void; + disableXpnHost(callback: BodyResponseCallback): void; + disableXpnHost( + paramsOrCallback?: Params$Resource$Projects$Disablexpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Disablexpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Disablexpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34677,26 +44306,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disableXpnResource(params?: any, options?: MethodOptions): - AxiosPromise; disableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Disablexpnresource, + options?: MethodOptions): AxiosPromise; + disableXpnResource( + params: Params$Resource$Projects$Disablexpnresource, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; disableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Disablexpnresource, + callback: BodyResponseCallback): void; + disableXpnResource(callback: BodyResponseCallback): void; + disableXpnResource( + paramsOrCallback?: Params$Resource$Projects$Disablexpnresource| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Disablexpnresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Disablexpnresource; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34786,26 +44428,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enableXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; enableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Enablexpnhost, + options?: MethodOptions): AxiosPromise; enableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Enablexpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enableXpnHost( + params: Params$Resource$Projects$Enablexpnhost, + callback: BodyResponseCallback): void; + enableXpnHost(callback: BodyResponseCallback): void; + enableXpnHost( + paramsOrCallback?: Params$Resource$Projects$Enablexpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Enablexpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Enablexpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34901,26 +44556,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enableXpnResource(params?: any, options?: MethodOptions): - AxiosPromise; enableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Enablexpnresource, + options?: MethodOptions): AxiosPromise; + enableXpnResource( + params: Params$Resource$Projects$Enablexpnresource, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enableXpnResource( + params: Params$Resource$Projects$Enablexpnresource, + callback: BodyResponseCallback): void; + enableXpnResource(callback: BodyResponseCallback): void; enableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Enablexpnresource| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Enablexpnresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Enablexpnresource; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35009,23 +44677,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35114,26 +44792,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; getXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getxpnhost, + options?: MethodOptions): AxiosPromise; + getXpnHost( + params: Params$Resource$Projects$Getxpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Getxpnhost, + callback: BodyResponseCallback): void; + getXpnHost(callback: BodyResponseCallback): void; + getXpnHost( + paramsOrCallback?: Params$Resource$Projects$Getxpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getxpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getxpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35239,28 +44929,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getXpnResources(params?: any, options?: MethodOptions): - AxiosPromise; getXpnResources( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Getxpnresources, + options?: MethodOptions): AxiosPromise; + getXpnResources( + params: Params$Resource$Projects$Getxpnresources, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getXpnResources( + params: Params$Resource$Projects$Getxpnresources, + callback: BodyResponseCallback): void; getXpnResources( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getXpnResources( + paramsOrCallback?: Params$Resource$Projects$Getxpnresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getxpnresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getxpnresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35372,26 +45075,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listXpnHosts(params?: any, options?: MethodOptions): - AxiosPromise; listXpnHosts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Listxpnhosts, + options?: MethodOptions): AxiosPromise; listXpnHosts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Listxpnhosts, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listXpnHosts( + params: Params$Resource$Projects$Listxpnhosts, + callback: BodyResponseCallback): void; + listXpnHosts(callback: BodyResponseCallback): void; + listXpnHosts( + paramsOrCallback?: Params$Resource$Projects$Listxpnhosts| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Listxpnhosts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Listxpnhosts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35485,26 +45201,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveDisk(params?: any, options?: MethodOptions): - AxiosPromise; moveDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Movedisk, + options?: MethodOptions): AxiosPromise; + moveDisk( + params: Params$Resource$Projects$Movedisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + moveDisk( + params: Params$Resource$Projects$Movedisk, + callback: BodyResponseCallback): void; + moveDisk(callback: BodyResponseCallback): void; moveDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Movedisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Movedisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Movedisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35599,26 +45328,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveInstance(params?: any, options?: MethodOptions): - AxiosPromise; moveInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Moveinstance, + options?: MethodOptions): AxiosPromise; moveInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Moveinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + moveInstance( + params: Params$Resource$Projects$Moveinstance, + callback: BodyResponseCallback): void; + moveInstance(callback: BodyResponseCallback): void; + moveInstance( + paramsOrCallback?: Params$Resource$Projects$Moveinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Moveinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Moveinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35711,26 +45453,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setCommonInstanceMetadata(params?: any, options?: MethodOptions): - AxiosPromise; setCommonInstanceMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setcommoninstancemetadata, + options?: MethodOptions): AxiosPromise; setCommonInstanceMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Setcommoninstancemetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setCommonInstanceMetadata( + params: Params$Resource$Projects$Setcommoninstancemetadata, + callback: BodyResponseCallback): void; + setCommonInstanceMetadata(callback: BodyResponseCallback): + void; + setCommonInstanceMetadata( + paramsOrCallback?: Params$Resource$Projects$Setcommoninstancemetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setcommoninstancemetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setcommoninstancemetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35771,26 +45527,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDefaultNetworkTier(params?: any, options?: MethodOptions): - AxiosPromise; setDefaultNetworkTier( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setdefaultnetworktier, + options?: MethodOptions): AxiosPromise; + setDefaultNetworkTier( + params: Params$Resource$Projects$Setdefaultnetworktier, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDefaultNetworkTier( + params: Params$Resource$Projects$Setdefaultnetworktier, + callback: BodyResponseCallback): void; + setDefaultNetworkTier(callback: BodyResponseCallback): + void; setDefaultNetworkTier( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Setdefaultnetworktier| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setdefaultnetworktier; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setdefaultnetworktier; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35885,26 +45655,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUsageExportBucket(params?: any, options?: MethodOptions): - AxiosPromise; setUsageExportBucket( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setusageexportbucket, + options?: MethodOptions): AxiosPromise; + setUsageExportBucket( + params: Params$Resource$Projects$Setusageexportbucket, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUsageExportBucket( + params: Params$Resource$Projects$Setusageexportbucket, + callback: BodyResponseCallback): void; + setUsageExportBucket(callback: BodyResponseCallback): + void; setUsageExportBucket( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Setusageexportbucket| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setusageexportbucket; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setusageexportbucket; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35928,6 +45712,332 @@ export namespace compute_beta { } } + export interface Params$Resource$Projects$Disablexpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Disablexpnresource { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsDisableXpnResourceRequest; + } + export interface Params$Resource$Projects$Enablexpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Enablexpnresource { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsEnableXpnResourceRequest; + } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Getxpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Getxpnresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Listxpnhosts { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsListXpnHostsRequest; + } + export interface Params$Resource$Projects$Movedisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$DiskMoveRequest; + } + export interface Params$Resource$Projects$Moveinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceMoveRequest; + } + export interface Params$Resource$Projects$Setcommoninstancemetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Metadata; + } + export interface Params$Resource$Projects$Setdefaultnetworktier { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsSetDefaultNetworkTierRequest; + } + export interface Params$Resource$Projects$Setusageexportbucket { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UsageExportLocation; + } + + export class Resource$Regionautoscalers { root: Compute; constructor(root: Compute) { @@ -36014,26 +46124,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionautoscalers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionautoscalers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionautoscalers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36131,23 +46254,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regionautoscalers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionautoscalers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionautoscalers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionautoscalers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36248,26 +46383,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionautoscalers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionautoscalers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regionautoscalers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36379,28 +46527,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regionautoscalers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionautoscalers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionautoscalers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regionautoscalers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36505,26 +46665,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionautoscalers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regionautoscalers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionautoscalers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36625,28 +46798,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regionautoscalers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regionautoscalers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regionautoscalers$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Regionautoscalers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionautoscalers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36750,26 +46936,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionautoscalers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionautoscalers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionautoscalers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36794,6 +46993,244 @@ export namespace compute_beta { } } + export interface Params$Resource$Regionautoscalers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to delete. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionautoscalers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to return. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionautoscalers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Regionautoscalers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionautoscalers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to patch. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Regionautoscalers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regionautoscalers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to update. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + + export class Resource$Regionbackendservices { root: Compute; constructor(root: Compute) { @@ -36881,26 +47318,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionbackendservices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionbackendservices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionbackendservices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36999,24 +47449,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Regionbackendservices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Regionbackendservices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionbackendservices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionbackendservices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionbackendservices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37118,29 +47579,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): + getHealth( + params?: Params$Resource$Regionbackendservices$Gethealth, + options?: MethodOptions): AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionbackendservices$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Regionbackendservices$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regionbackendservices$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37244,26 +47718,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionbackendservices$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionbackendservices$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionbackendservices$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37375,26 +47862,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionbackendservices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionbackendservices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionbackendservices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37506,26 +48006,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionbackendservices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionbackendservices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regionbackendservices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37626,28 +48139,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regionbackendservices$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regionbackendservices$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Regionbackendservices$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37757,26 +48284,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionbackendservices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionbackendservices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionbackendservices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37801,6 +48341,267 @@ export namespace compute_beta { } } + export interface Params$Resource$Regionbackendservices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to delete. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionbackendservices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to return. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionbackendservices$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource for which to get health. + */ + backendService?: string; + /** + * + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceGroupReference; + } + export interface Params$Resource$Regionbackendservices$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Regionbackendservices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionbackendservices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to patch. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Regionbackendservices$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regionbackendservices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to update. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + + export class Resource$Regioncommitments { root: Compute; constructor(root: Compute) { @@ -37896,28 +48697,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regioncommitments$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Regioncommitments$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Regioncommitments$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Regioncommitments$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioncommitments$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37943,7 +48757,7 @@ export namespace compute_beta { /** * compute.regionCommitments.get - * @desc Returns the specified commitment resource. Get a list of available + * @desc Returns the specified commitment resource. Gets a list of available * commitments by making a list() request. * @example * * // BEFORE RUNNING: @@ -38015,23 +48829,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regioncommitments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regioncommitments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioncommitments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioncommitments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38132,26 +48958,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioncommitments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regioncommitments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regioncommitments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regioncommitments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38263,26 +49102,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioncommitments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regioncommitments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regioncommitments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regioncommitments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38307,6 +49159,171 @@ export namespace compute_beta { } } + export interface Params$Resource$Regioncommitments$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Regioncommitments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the commitment to return. + */ + commitment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regioncommitments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Commitment; + } + export interface Params$Resource$Regioncommitments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Regiondisks { root: Compute; constructor(root: Compute) { @@ -38335,26 +49352,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createSnapshot(params?: any, options?: MethodOptions): - AxiosPromise; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regiondisks$Createsnapshot, + options?: MethodOptions): AxiosPromise; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regiondisks$Createsnapshot, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createSnapshot( + params: Params$Resource$Regiondisks$Createsnapshot, + callback: BodyResponseCallback): void; + createSnapshot(callback: BodyResponseCallback): void; + createSnapshot( + paramsOrCallback?: Params$Resource$Regiondisks$Createsnapshot| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regiondisks$Createsnapshot; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Createsnapshot; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38397,26 +49427,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regiondisks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regiondisks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regiondisks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regiondisks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38455,21 +49498,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regiondisks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regiondisks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regiondisks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regiondisks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regiondisks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38511,26 +49566,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regiondisks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regiondisks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regiondisks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regiondisks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38572,25 +49640,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Regiondisks$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Regiondisks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Regiondisks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regiondisks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regiondisks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38630,26 +49709,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regiondisks$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Regiondisks$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regiondisks$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Regiondisks$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38690,26 +49782,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regiondisks$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Regiondisks$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Regiondisks$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regiondisks$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisks$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38749,28 +49854,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regiondisks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regiondisks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regiondisks$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Regiondisks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regiondisks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38795,6 +49913,284 @@ export namespace compute_beta { } } + export interface Params$Resource$Regiondisks$Createsnapshot { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk to snapshot. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Snapshot; + } + export interface Params$Resource$Regiondisks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk to delete. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regiondisks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk to return. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regiondisks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Optional. Source image to restore onto a disk. + */ + sourceImage?: string; + /** + * Request body metadata + */ + resource?: Schema$Disk; + } + export interface Params$Resource$Regiondisks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regiondisks$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the regional persistent disk. + */ + disk?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionDisksResizeRequest; + } + export interface Params$Resource$Regiondisks$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Regiondisks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Regiondisktypes { root: Compute; constructor(root: Compute) { @@ -38809,7 +50205,7 @@ export namespace compute_beta { /** * compute.regionDiskTypes.get - * @desc Returns the specified regional disk type. Get a list of available + * @desc Returns the specified regional disk type. Gets a list of available * disk types by making a list() request. * @alias compute.regionDiskTypes.get * @memberOf! () @@ -38822,23 +50218,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regiondisktypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regiondisktypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regiondisktypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regiondisktypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisktypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisktypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38881,26 +50288,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regiondisktypes$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regiondisktypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regiondisktypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regiondisktypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regiondisktypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regiondisktypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38925,6 +50345,85 @@ export namespace compute_beta { } } + export interface Params$Resource$Regiondisktypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the disk type to return. + */ + diskType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regiondisktypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + } + + export class Resource$Regioninstancegroupmanagers { root: Compute; constructor(root: Compute) { @@ -39027,26 +50526,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + abandonInstances( + params: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; + abandonInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39145,26 +50659,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regioninstancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39277,26 +50804,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; + deleteInstances( + params: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; + deleteInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39394,26 +50936,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Regioninstancegroupmanagers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Regioninstancegroupmanagers$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioninstancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39518,26 +51070,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regioninstancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39649,29 +51214,44 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Regioninstancegroupmanagers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regioninstancegroupmanagers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Regioninstancegroupmanagers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39794,67 +51374,517 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listManagedInstances(params?: any, options?: MethodOptions): + listManagedInstances( + params?: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + options?: MethodOptions): AxiosPromise; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + options: MethodOptions|BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + params: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + callback: BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>): void; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances| + BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>, callback?: BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$RegionInstanceGroupManagersListInstancesResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$RegionInstanceGroupManagersListInstancesResponse>( + parameters); + } + } + + + /** + * compute.regionInstanceGroupManagers.patch + * @desc Updates a managed instance group using the information that you + * specify in the request. This operation is marked as DONE when the group + * is patched even if the instances in the group are still in the process of + * being patched. You must separately verify the status of the individual + * instances with the listmanagedinstances method. This method supports + * PATCH semantics and uses the JSON merge patch format and processing + * rules. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('beta'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // Name of the region scoping this request. + * region: 'my-region', // TODO: Update placeholder value. + * + * // The name of the instance group manager. + * instanceGroupManager: 'my-instance-group-manager', // TODO: Update + * placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. Only these + * properties + * // will be changed. + * }, + * + * auth: authClient, + * }; + * + * compute.regionInstanceGroupManagers.patch(request, function(err, + * response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.regionInstanceGroupManagers.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager The name of the instance group manager. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().InstanceGroupManager} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Regioninstancegroupmanagers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regioninstancegroupmanagers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regioninstancegroupmanagers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.regionInstanceGroupManagers.recreateInstances + * @desc Schedules a group action to recreate the specified instances in the + * managed instance group. The instances are deleted and recreated using the + * current instance template for the managed instance group. This operation + * is marked as DONE when the action is scheduled even if the instances have + * not yet been recreated. You must separately verify the status of the + * recreating action with the listmanagedinstances method. If the group is + * part of a backend service that has enabled connection draining, it can + * take up to 60 seconds after the connection draining duration has elapsed + * before the VM instance is removed or deleted. You can specify a maximum + * of 1000 instances with this method per request. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('beta'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // Name of the region scoping this request. + * region: 'my-region', // TODO: Update placeholder value. + * + * // Name of the managed instance group. + * instanceGroupManager: 'my-instance-group-manager', // TODO: Update + * placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * + * auth: authClient, + * }; + * + * compute.regionInstanceGroupManagers.recreateInstances(request, + * function(err, response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.regionInstanceGroupManagers.recreateInstances + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().RegionInstanceGroupManagersRecreateRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + recreateInstances( + params?: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; + recreateInstances( + params: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + recreateInstances( + params: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Recreateinstances; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.regionInstanceGroupManagers.resize + * @desc Changes the intended size for the managed instance group. If you + * increase the size, the group schedules actions to create new instances + * using the current instance template. If you decrease the size, the group + * schedules delete actions on one or more instances. The resize operation + * is marked DONE when the resize actions are scheduled even if the group + * has not yet added or deleted any instances. You must separately verify + * the status of the creating or deleting actions with the + * listmanagedinstances method. If the group is part of a backend service + * that has enabled connection draining, it can take up to 60 seconds after + * the connection draining duration has elapsed before the VM instance is + * removed or deleted. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('beta'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // Name of the region scoping this request. + * region: 'my-region', // TODO: Update placeholder value. + * + * // Name of the managed instance group. + * instanceGroupManager: 'my-instance-group-manager', // TODO: Update + * placeholder value. + * + * // Number of instances that should exist in this instance group + * manager. size: 0, // TODO: Update placeholder value. + * + * auth: authClient, + * }; + * + * compute.regionInstanceGroupManagers.resize(request, function(err, + * response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.regionInstanceGroupManagers.resize + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.project Project ID for this request. + * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {integer} params.size Number of instances that should exist in this instance group manager. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + resize( + params?: Params$Resource$Regioninstancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Regioninstancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Regioninstancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances') + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest< - Schema$RegionInstanceGroupManagersListInstancesResponse>( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest< - Schema$RegionInstanceGroupManagersListInstancesResponse>( - parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.patch - * @desc Updates a managed instance group using the information that you - * specify in the request. This operation is marked as DONE when the group - * is patched even if the instances in the group are still in the process of - * being patched. You must separately verify the status of the individual - * instances with the listmanagedinstances method. This method supports - * PATCH semantics and uses the JSON merge patch format and processing - * rules. + * compute.regionInstanceGroupManagers.setAutoHealingPolicies + * @desc Modifies the autohealing policy for the instances in this managed + * instance group. * @example * * // BEFORE RUNNING: * // --------------- @@ -39883,21 +51913,19 @@ export namespace compute_beta { * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // The name of the instance group manager. + * // Name of the managed instance group. * instanceGroupManager: 'my-instance-group-manager', // TODO: Update * placeholder value. * * resource: { - * // TODO: Add desired properties to the request body. Only these - * properties - * // will be changed. + * // TODO: Add desired properties to the request body. * }, * * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.patch(request, function(err, - * response) { if (err) { console.error(err); return; + * compute.regionInstanceGroupManagers.setAutoHealingPolicies(request, + * function(err, response) { if (err) { console.error(err); return; * } * * // TODO: Change code below to process the `response` object: @@ -39919,48 +51947,67 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.patch + * @alias compute.regionInstanceGroupManagers.setAutoHealingPolicies * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. + * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setAutoHealingPolicies( + params?: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies, + options?: MethodOptions): AxiosPromise; + setAutoHealingPolicies( + params: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAutoHealingPolicies( + params: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies, + callback: BodyResponseCallback): void; + setAutoHealingPolicies(callback: BodyResponseCallback): + void; + setAutoHealingPolicies( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' + method: 'POST' }, options), params, @@ -39977,17 +52024,9 @@ export namespace compute_beta { /** - * compute.regionInstanceGroupManagers.recreateInstances - * @desc Schedules a group action to recreate the specified instances in the - * managed instance group. The instances are deleted and recreated using the - * current instance template for the managed instance group. This operation - * is marked as DONE when the action is scheduled even if the instances have - * not yet been recreated. You must separately verify the status of the - * recreating action with the listmanagedinstances method. If the group is - * part of a backend service that has enabled connection draining, it can - * take up to 60 seconds after the connection draining duration has elapsed - * before the VM instance is removed or deleted. You can specify a maximum - * of 1000 instances with this method per request. + * compute.regionInstanceGroupManagers.setInstanceTemplate + * @desc Sets the instance template to use when creating new instances or + * recreating instances in this group. Existing instances are not affected. * @example * * // BEFORE RUNNING: * // --------------- @@ -40016,7 +52055,7 @@ export namespace compute_beta { * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // Name of the managed instance group. + * // The name of the managed instance group. * instanceGroupManager: 'my-instance-group-manager', // TODO: Update * placeholder value. * @@ -40027,7 +52066,7 @@ export namespace compute_beta { * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.recreateInstances(request, + * compute.regionInstanceGroupManagers.setInstanceTemplate(request, * function(err, response) { if (err) { console.error(err); return; * } * @@ -40050,46 +52089,62 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.recreateInstances + * @alias compute.regionInstanceGroupManagers.setInstanceTemplate * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.instanceGroupManager The name of the managed instance group. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersRecreateRequest} params.resource Request body data + * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; - recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setInstanceTemplate( + params?: + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; + setInstanceTemplate( + params: Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setInstanceTemplate( + params: Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; + setInstanceTemplate( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances') + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -40108,18 +52163,9 @@ export namespace compute_beta { /** - * compute.regionInstanceGroupManagers.resize - * @desc Changes the intended size for the managed instance group. If you - * increase the size, the group schedules actions to create new instances - * using the current instance template. If you decrease the size, the group - * schedules delete actions on one or more instances. The resize operation - * is marked DONE when the resize actions are scheduled even if the group - * has not yet added or deleted any instances. You must separately verify - * the status of the creating or deleting actions with the - * listmanagedinstances method. If the group is part of a backend service - * that has enabled connection draining, it can take up to 60 seconds after - * the connection draining duration has elapsed before the VM instance is - * removed or deleted. + * compute.regionInstanceGroupManagers.setTargetPools + * @desc Modifies the target pools to which all new instances in this group + * are assigned. Existing instances in the group are not affected. * @example * * // BEFORE RUNNING: * // --------------- @@ -40152,14 +52198,15 @@ export namespace compute_beta { * instanceGroupManager: 'my-instance-group-manager', // TODO: Update * placeholder value. * - * // Number of instances that should exist in this instance group - * manager. size: 0, // TODO: Update placeholder value. + * resource: { + * // TODO: Add desired properties to the request body. + * }, * * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.resize(request, function(err, - * response) { if (err) { console.error(err); return; + * compute.regionInstanceGroupManagers.setTargetPools(request, + * function(err, response) { if (err) { console.error(err); return; * } * * // TODO: Change code below to process the `response` object: @@ -40181,7 +52228,7 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.resize + * @alias compute.regionInstanceGroupManagers.setTargetPools * @memberOf! () * * @param {object} params Parameters for request @@ -40189,44 +52236,59 @@ export namespace compute_beta { * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {integer} params.size Number of instances that should exist in this instance group manager. + * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} 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 */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; - resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setTargetPools( + params?: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTargetPools( + params: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; + setTargetPools( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize') + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + requiredParams: ['project', 'region', 'instanceGroupManager'], pathParams: ['instanceGroupManager', 'project', 'region'], context: this.getRoot() }; @@ -40239,9 +52301,8 @@ export namespace compute_beta { /** - * compute.regionInstanceGroupManagers.setAutoHealingPolicies - * @desc Modifies the autohealing policy for the instances in this managed - * instance group. + * compute.regionInstanceGroupManagers.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -40267,12 +52328,11 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // Name of the region scoping this request. + * // The name of the region for this request. * region: 'my-region', // TODO: Update placeholder value. * - * // Name of the managed instance group. - * instanceGroupManager: 'my-instance-group-manager', // TODO: Update - * placeholder value. + * // Name of the resource for this request. + * resource_: 'my-resource', // TODO: Update placeholder value. * * resource: { * // TODO: Add desired properties to the request body. @@ -40281,7 +52341,7 @@ export namespace compute_beta { * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.setAutoHealingPolicies(request, + * compute.regionInstanceGroupManagers.testIamPermissions(request, * function(err, response) { if (err) { console.error(err); return; * } * @@ -40304,67 +52364,86 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.setAutoHealingPolicies + * @alias compute.regionInstanceGroupManagers.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetAutoHealingRequest} params.resource Request body data + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAutoHealingPolicies(params?: any, options?: MethodOptions): - AxiosPromise; - setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setAutoHealingPolicies( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regioninstancegroupmanagers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regioninstancegroupmanagers$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regioninstancegroupmanagers$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies') + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.setInstanceTemplate - * @desc Sets the instance template to use when creating new instances or - * recreating instances in this group. Existing instances are not affected. + * compute.regionInstanceGroupManagers.update + * @desc Updates a managed instance group using the information that you + * specify in the request. This operation is marked as DONE when the group + * is updated even if the instances in the group have not yet been updated. + * You must separately verify the status of the individual instances with + * the listmanagedinstances method. * @example * * // BEFORE RUNNING: * // --------------- @@ -40393,19 +52472,21 @@ export namespace compute_beta { * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // The name of the managed instance group. + * // The name of the instance group manager. * instanceGroupManager: 'my-instance-group-manager', // TODO: Update * placeholder value. * * resource: { - * // TODO: Add desired properties to the request body. + * // TODO: Add desired properties to the request body. All existing + * properties + * // will be replaced. * }, * * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.setInstanceTemplate(request, - * function(err, response) { if (err) { console.error(err); return; + * compute.regionInstanceGroupManagers.update(request, function(err, + * response) { if (err) { console.error(err); return; * } * * // TODO: Change code below to process the `response` object: @@ -40427,48 +52508,61 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.setInstanceTemplate + * @alias compute.regionInstanceGroupManagers.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the managed instance group. + * @param {string} params.instanceGroupManager The name of the instance group manager. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTemplateRequest} params.resource Request body data + * @param {().InstanceGroupManager} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; - setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + update( + params?: Params$Resource$Regioninstancegroupmanagers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regioninstancegroupmanagers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regioninstancegroupmanagers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate') + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'PUT' }, options), params, @@ -40482,12 +52576,548 @@ export namespace compute_beta { return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regioninstancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroupManagers.setTargetPools - * @desc Modifies the target pools to which all new instances in this group - * are assigned. Existing instances in the group are not affected. + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group to delete. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group to return. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Regioninstancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Regioninstancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersRecreateRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Number of instances that should exist in this instance group manager. + */ + size?: number; + } + export interface Params$Resource$Regioninstancegroupmanagers$Setautohealingpolicies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetAutoHealingRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetTemplateRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetTargetPoolsRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + + + export class Resource$Regioninstancegroups { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionInstanceGroups.get + * @desc Returns the specified instance group resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -40516,19 +53146,17 @@ export namespace compute_beta { * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // Name of the managed instance group. - * instanceGroupManager: 'my-instance-group-manager', // TODO: Update - * placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, + * // Name of the instance group resource to return. + * instanceGroup: 'my-instance-group', // TODO: Update placeholder + * value. * * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.setTargetPools(request, - * function(err, response) { if (err) { console.error(err); return; + * compute.regionInstanceGroups.get(request, function(err, response) { + * if (err) { + * console.error(err); + * return; * } * * // TODO: Change code below to process the `response` object: @@ -40550,66 +53178,74 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.setTargetPools + * @alias compute.regionInstanceGroups.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager Name of the managed instance group. + * @param {string} params.instanceGroup Name of the instance group resource to return. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupManagersSetTargetPoolsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; - setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Regioninstancegroups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regioninstancegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioninstancegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioninstancegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regioninstancegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools') + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), - params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. + * compute.regionInstanceGroups.list + * @desc Retrieves the list of instance group resources contained within the + * specified region. * @example * * // BEFORE RUNNING: * // --------------- @@ -40635,26 +53271,34 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // The name of the region for this request. + * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // Name of the resource for this request. - * resource_: 'my-resource', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.testIamPermissions(request, - * function(err, response) { if (err) { console.error(err); return; + * var handlePage = function(err, response) { + * if (err) { + * console.error(err); + * return; * } * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); + * var itemsPage = response['items']; + * if (!itemsPage) { + * return; + * } + * for (var i = 0; i < itemsPage.length; i++) { + * // TODO: Change code below to process each resource in `itemsPage`: + * console.log(JSON.stringify(itemsPage[i], null, 2)); + * } + * + * if (response.nextPageToken) { + * request.pageToken = response.nextPageToken; + * compute.regionInstanceGroups.list(request, handlePage); + * } + * }; + * + * compute.regionInstanceGroups.list(request, handlePage); * }); * * function authorize(callback) { @@ -40671,71 +53315,84 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.testIamPermissions + * @alias compute.regionInstanceGroups.list * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data + * @param {string} params.region Name of the region scoping this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Regioninstancegroups$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regioninstancegroups$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regioninstancegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regioninstancegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regioninstancegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions') + '/compute/beta/projects/{project}/regions/{region}/instanceGroups') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroupManagers.update - * @desc Updates a managed instance group using the information that you - * specify in the request. This operation is marked as DONE when the group - * is updated even if the instances in the group have not yet been updated. - * You must separately verify the status of the individual instances with - * the listmanagedinstances method. + * compute.regionInstanceGroups.listInstances + * @desc Lists the instances in the specified instance group and displays + * information about the named ports. Depending on the specified options, + * this method can list all instances or only the instances that are + * running. * @example * * // BEFORE RUNNING: * // --------------- @@ -40764,26 +53421,39 @@ export namespace compute_beta { * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // The name of the instance group manager. - * instanceGroupManager: 'my-instance-group-manager', // TODO: Update + * // Name of the regional instance group for which we want to list the + * instances. instanceGroup: 'my-instance-group', // TODO: Update * placeholder value. * * resource: { - * // TODO: Add desired properties to the request body. All existing - * properties - * // will be replaced. + * // TODO: Add desired properties to the request body. * }, * * auth: authClient, * }; * - * compute.regionInstanceGroupManagers.update(request, function(err, - * response) { if (err) { console.error(err); return; + * var handlePage = function(err, response) { + * if (err) { + * console.error(err); + * return; * } * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); + * var itemsPage = response['items']; + * if (!itemsPage) { + * return; + * } + * for (var i = 0; i < itemsPage.length; i++) { + * // TODO: Change code below to process each resource in `itemsPage`: + * console.log(JSON.stringify(itemsPage[i], null, 2)); + * } + * + * if (response.nextPageToken) { + * request.pageToken = response.nextPageToken; + * compute.regionInstanceGroups.listInstances(request, handlePage); + * } + * }; + * + * compute.regionInstanceGroups.listInstances(request, handlePage); * }); * * function authorize(callback) { @@ -40800,78 +53470,94 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroupManagers.update + * @alias compute.regionInstanceGroups.listInstances * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroupManager The name of the instance group manager. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {string} params.instanceGroup Name of the regional instance group for which we want to list the instances. + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().InstanceGroupManager} params.resource Request body data + * @param {().RegionInstanceGroupsListInstancesRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + listInstances( + params?: Params$Resource$Regioninstancegroups$Listinstances, + options?: MethodOptions): + AxiosPromise; + listInstances( + params: Params$Resource$Regioninstancegroups$Listinstances, + options: MethodOptions| + BodyResponseCallback, + callback: + BodyResponseCallback): + void; + listInstances( + params: Params$Resource$Regioninstancegroups$Listinstances, + callback: + BodyResponseCallback): + void; + listInstances( + callback: + BodyResponseCallback): + void; + listInstances( + paramsOrCallback?: Params$Resource$Regioninstancegroups$Listinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: + BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Listinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Listinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}') + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances') .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + method: 'POST' }, options), params, - requiredParams: ['project', 'region', 'instanceGroupManager'], - pathParams: ['instanceGroupManager', 'project', 'region'], + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest( + parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters); } } - } - - export class Resource$Regioninstancegroups { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * compute.regionInstanceGroups.get - * @desc Returns the specified instance group resource. + * compute.regionInstanceGroups.setNamedPorts + * @desc Sets the named ports for the specified regional instance group. * @example * * // BEFORE RUNNING: * // --------------- @@ -40900,17 +53586,19 @@ export namespace compute_beta { * // Name of the region scoping this request. * region: 'my-region', // TODO: Update placeholder value. * - * // Name of the instance group resource to return. - * instanceGroup: 'my-instance-group', // TODO: Update placeholder + * // The name of the regional instance group where the named ports are + * updated. instanceGroup: 'my-instance-group', // TODO: Update placeholder * value. * + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * * auth: authClient, * }; * - * compute.regionInstanceGroups.get(request, function(err, response) { - * if (err) { - * console.error(err); - * return; + * compute.regionInstanceGroups.setNamedPorts(request, function(err, + * response) { if (err) { console.error(err); return; * } * * // TODO: Change code below to process the `response` object: @@ -40932,44 +53620,61 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroups.get + * @alias compute.regionInstanceGroups.setNamedPorts * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroup Name of the instance group resource to return. + * @param {string} params.instanceGroup The name of the regional instance group where the named ports are updated. * @param {string} params.project Project ID for this request. * @param {string} params.region Name of the region scoping this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {().RegionInstanceGroupsSetNamedPortsRequest} 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 */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setNamedPorts( + params?: Params$Resource$Regioninstancegroups$Setnamedports, + options?: MethodOptions): AxiosPromise; + setNamedPorts( + params: Params$Resource$Regioninstancegroups$Setnamedports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setNamedPorts( + params: Params$Resource$Regioninstancegroups$Setnamedports, + callback: BodyResponseCallback): void; + setNamedPorts(callback: BodyResponseCallback): void; + setNamedPorts( + paramsOrCallback?: Params$Resource$Regioninstancegroups$Setnamedports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Setnamedports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Setnamedports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}') + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, @@ -40978,17 +53683,16 @@ export namespace compute_beta { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroups.list - * @desc Retrieves the list of instance group resources contained within the - * specified region. + * compute.regionInstanceGroups.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -41014,34 +53718,26 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // Name of the region scoping this request. + * // The name of the region for this request. * region: 'my-region', // TODO: Update placeholder value. * - * auth: authClient, - * }; + * // Name of the resource for this request. + * resource_: 'my-resource', // TODO: Update placeholder value. * - * var handlePage = function(err, response) { - * if (err) { - * console.error(err); - * return; - * } + * resource: { + * // TODO: Add desired properties to the request body. + * }, * - * var itemsPage = response['items']; - * if (!itemsPage) { - * return; - * } - * for (var i = 0; i < itemsPage.length; i++) { - * // TODO: Change code below to process each resource in `itemsPage`: - * console.log(JSON.stringify(itemsPage[i], null, 2)); - * } + * auth: authClient, + * }; * - * if (response.nextPageToken) { - * request.pageToken = response.nextPageToken; - * compute.regionInstanceGroups.list(request, handlePage); + * compute.regionInstanceGroups.testIamPermissions(request, function(err, + * response) { if (err) { console.error(err); return; * } - * }; * - * compute.regionInstanceGroups.list(request, handlePage); + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); * }); * * function authorize(callback) { @@ -41058,72 +53754,299 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroups.list + * @alias compute.regionInstanceGroups.testIamPermissions * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. + * @param {string} params.region The name of the region for this request. + * @param {string} params.resource_ Name of the resource for this request. + * @param {().TestPermissionsRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + testIamPermissions( + params?: Params$Resource$Regioninstancegroups$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Regioninstancegroups$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Regioninstancegroups$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Regioninstancegroups$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups') + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['project', 'region'], - pathParams: ['project', 'region'], + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regioninstancegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * compute.regionInstanceGroups.listInstances - * @desc Lists the instances in the specified instance group and displays - * information about the named ports. Depending on the specified options, - * this method can list all instances or only the instances that are - * running. + * Name of the instance group resource to return. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroups$Listinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * Name of the regional instance group for which we want to list the + * instances. + */ + instanceGroup?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupsListInstancesRequest; + } + export interface Params$Resource$Regioninstancegroups$Setnamedports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the regional instance group where the named ports are + * updated. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupsSetNamedPortsRequest; + } + export interface Params$Resource$Regioninstancegroups$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + + export class Resource$Regionoperations { + root: Compute; + constructor(root: Compute) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * compute.regionOperations.delete + * @desc Deletes the specified region-specific Operations resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -41149,42 +54072,21 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // Name of the region scoping this request. + * // Name of the region for this request. * region: 'my-region', // TODO: Update placeholder value. * - * // Name of the regional instance group for which we want to list the - * instances. instanceGroup: 'my-instance-group', // TODO: Update - * placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, + * // Name of the Operations resource to delete. + * operation: 'my-operation', // TODO: Update placeholder value. * * auth: authClient, * }; * - * var handlePage = function(err, response) { + * compute.regionOperations.delete(request, function(err) { * if (err) { * console.error(err); * return; * } - * - * var itemsPage = response['items']; - * if (!itemsPage) { - * return; - * } - * for (var i = 0; i < itemsPage.length; i++) { - * // TODO: Change code below to process each resource in `itemsPage`: - * console.log(JSON.stringify(itemsPage[i], null, 2)); - * } - * - * if (response.nextPageToken) { - * request.pageToken = response.nextPageToken; - * compute.regionInstanceGroups.listInstances(request, handlePage); - * } - * }; - * - * compute.regionInstanceGroups.listInstances(request, handlePage); + * }); * }); * * function authorize(callback) { @@ -41201,76 +54103,75 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroups.listInstances + * @alias compute.regionOperations.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {string} params.instanceGroup Name of the regional instance group for which we want to list the instances. - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.operation Name of the Operations resource to delete. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {().RegionInstanceGroupsListInstancesRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listInstances(params?: any, options?: MethodOptions): - AxiosPromise; - listInstances( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; - listInstances( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + delete( + params?: Params$Resource$Regionoperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances') + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'DELETE' }, options), params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], context: this.getRoot() }; if (callback) { - createAPIRequest( - parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest( - parameters); + return createAPIRequest(parameters); } } /** - * compute.regionInstanceGroups.setNamedPorts - * @desc Sets the named ports for the specified regional instance group. + * compute.regionOperations.get + * @desc Retrieves the specified region-specific Operations resource. * @example * * // BEFORE RUNNING: * // --------------- @@ -41296,22 +54197,19 @@ export namespace compute_beta { * // Project ID for this request. * project: 'my-project', // TODO: Update placeholder value. * - * // Name of the region scoping this request. + * // Name of the region for this request. * region: 'my-region', // TODO: Update placeholder value. * - * // The name of the regional instance group where the named ports are - * updated. instanceGroup: 'my-instance-group', // TODO: Update placeholder - * value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, + * // Name of the Operations resource to return. + * operation: 'my-operation', // TODO: Update placeholder value. * * auth: authClient, * }; * - * compute.regionInstanceGroups.setNamedPorts(request, function(err, - * response) { if (err) { console.error(err); return; + * compute.regionOperations.get(request, function(err, response) { + * if (err) { + * console.error(err); + * return; * } * * // TODO: Change code below to process the `response` object: @@ -41333,397 +54231,46 @@ export namespace compute_beta { * callback(authClient); * }); * } - * @alias compute.regionInstanceGroups.setNamedPorts + * @alias compute.regionOperations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.instanceGroup The name of the regional instance group where the named ports are updated. + * @param {string} params.operation Name of the Operations resource to return. * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region scoping this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {().RegionInstanceGroupsSetNamedPortsRequest} params.resource Request body data + * @param {string} params.region Name of the region for this request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNamedPorts(params?: any, options?: MethodOptions): - AxiosPromise; - setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regionoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionoperations$Get| + BodyResponseCallback, + optionsOrCallback?: 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 + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'region', 'instanceGroup'], - pathParams: ['instanceGroup', 'project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * compute.regionInstanceGroups.testIamPermissions - * @desc Returns permissions that a caller has on the specified resource. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('beta'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The name of the region for this request. - * region: 'my-region', // TODO: Update placeholder value. - * - * // Name of the resource for this request. - * resource_: 'my-resource', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * compute.regionInstanceGroups.testIamPermissions(request, function(err, - * response) { if (err) { console.error(err); return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.regionInstanceGroups.testIamPermissions - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project Project ID for this request. - * @param {string} params.region The name of the region for this request. - * @param {string} params.resource_ Name of the resource for this request. - * @param {().TestPermissionsRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - testIamPermissions( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Get; 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 + - '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'region', 'resource'], - pathParams: ['project', 'region', 'resource'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Regionoperations { - root: Compute; - constructor(root: Compute) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - /** - * compute.regionOperations.delete - * @desc Deletes the specified region-specific Operations resource. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('beta'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // Name of the region for this request. - * region: 'my-region', // TODO: Update placeholder value. - * - * // Name of the Operations resource to delete. - * operation: 'my-operation', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * compute.regionOperations.delete(request, function(err) { - * if (err) { - * console.error(err); - * return; - * } - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.regionOperations.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.operation Name of the Operations resource to delete. - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + - '/compute/beta/projects/{project}/regions/{region}/operations/{operation}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['project', 'region', 'operation'], - pathParams: ['operation', 'project', 'region'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * compute.regionOperations.get - * @desc Retrieves the specified region-specific Operations resource. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('beta'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // Name of the region for this request. - * region: 'my-region', // TODO: Update placeholder value. - * - * // Name of the Operations resource to return. - * operation: 'my-operation', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * compute.regionOperations.get(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.regionOperations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.operation Name of the Operations resource to return. - * @param {string} params.project Project ID for this request. - * @param {string} params.region Name of the region for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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( @@ -41835,26 +54382,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionoperations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41879,6 +54439,104 @@ export namespace compute_beta { } } + export interface Params$Resource$Regionoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Regions { root: Compute; constructor(root: Compute) { @@ -41893,7 +54551,7 @@ export namespace compute_beta { /** * compute.regions.get - * @desc Returns the specified Region resource. Get a list of available + * @desc Returns the specified Region resource. Gets a list of available * regions by making a list() request. * @example * * // BEFORE RUNNING: @@ -41961,23 +54619,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42084,26 +54752,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Regions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Regions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42126,6 +54805,77 @@ export namespace compute_beta { } } + export interface Params$Resource$Regions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region resource to return. + */ + region?: string; + } + export interface Params$Resource$Regions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Routers { root: Compute; constructor(root: Compute) { @@ -42221,28 +54971,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Routers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Routers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42340,26 +55103,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Routers$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Routers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42386,7 +55160,7 @@ export namespace compute_beta { /** * compute.routers.get - * @desc Returns the specified Router resource. Get a list of available + * @desc Returns the specified Router resource. Gets a list of available * routers by making a list() request. * @example * * // BEFORE RUNNING: @@ -42458,23 +55232,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Routers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Routers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Routers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Routers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42572,28 +55356,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRouterStatus(params?: any, options?: MethodOptions): - AxiosPromise; getRouterStatus( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Getrouterstatus, + options?: MethodOptions): AxiosPromise; + getRouterStatus( + params: Params$Resource$Routers$Getrouterstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getRouterStatus( + params: Params$Resource$Routers$Getrouterstatus, + callback: BodyResponseCallback): void; getRouterStatus( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getRouterStatus( + paramsOrCallback?: Params$Resource$Routers$Getrouterstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routers$Getrouterstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Getrouterstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42694,26 +55491,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Routers$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Routers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42824,26 +55632,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Routers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Routers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42950,26 +55769,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Routers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Routers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43073,28 +55903,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - preview(params?: any, options?: MethodOptions): + preview(params?: Params$Resource$Routers$Preview, options?: MethodOptions): AxiosPromise; preview( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Preview, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; preview( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Preview, + callback: BodyResponseCallback): void; + preview(callback: BodyResponseCallback): + void; + preview( + paramsOrCallback?: Params$Resource$Routers$Preview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Preview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Preview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43197,28 +56038,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Routers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Routers$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Routers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Routers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43325,26 +56179,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Routers$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Routers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43369,6 +56234,340 @@ export namespace compute_beta { } } + export interface Params$Resource$Routers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Routers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to delete. + */ + router?: string; + } + export interface Params$Resource$Routers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to return. + */ + router?: string; + } + export interface Params$Resource$Routers$Getrouterstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to query. + */ + router?: string; + } + export interface Params$Resource$Routers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Routers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to patch. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$Preview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to query. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Routers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to update. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + + export class Resource$Routes { root: Compute; constructor(root: Compute) { @@ -43451,26 +56650,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Routes$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Routes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43496,7 +56706,7 @@ export namespace compute_beta { /** * compute.routes.get - * @desc Returns the specified Route resource. Get a list of available + * @desc Returns the specified Route resource. Gets a list of available * routes by making a list() request. * @example * * // BEFORE RUNNING: @@ -43564,23 +56774,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Routes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Routes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Routes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Routes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43676,26 +56896,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Routes$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Routes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43801,25 +57032,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Routes$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Routes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43916,28 +57159,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routes$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Routes$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Routes$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Routes$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routes$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43962,6 +57218,152 @@ export namespace compute_beta { } } + export interface Params$Resource$Routes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Route resource to delete. + */ + route?: string; + } + export interface Params$Resource$Routes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the Route resource to return. + */ + route?: string; + } + export interface Params$Resource$Routes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Route; + } + export interface Params$Resource$Routes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Routes$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Securitypolicies { root: Compute; constructor(root: Compute) { @@ -43988,26 +57390,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addRule(params?: any, options?: MethodOptions): - AxiosPromise; addRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Addrule, + options?: MethodOptions): AxiosPromise; + addRule( + params: Params$Resource$Securitypolicies$Addrule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addRule( + params: Params$Resource$Securitypolicies$Addrule, + callback: BodyResponseCallback): void; + addRule(callback: BodyResponseCallback): void; addRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Securitypolicies$Addrule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Addrule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Addrule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44103,26 +57518,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Securitypolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Securitypolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44217,24 +57645,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Securitypolicies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Securitypolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Securitypolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Securitypolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44273,26 +57712,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRule(params?: any, options?: MethodOptions): - AxiosPromise; getRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Getrule, + options?: MethodOptions): AxiosPromise; + getRule( + params: Params$Resource$Securitypolicies$Getrule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Getrule, + callback: BodyResponseCallback): void; + getRule(callback: BodyResponseCallback): void; + getRule( + paramsOrCallback?: Params$Resource$Securitypolicies$Getrule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Getrule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Getrule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44389,26 +57841,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Securitypolicies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Securitypolicies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Securitypolicies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44515,26 +57980,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Securitypolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Securitypolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44636,26 +58114,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Securitypolicies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Securitypolicies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Securitypolicies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Securitypolicies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44695,26 +58186,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patchRule(params?: any, options?: MethodOptions): - AxiosPromise; patchRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Patchrule, + options?: MethodOptions): AxiosPromise; + patchRule( + params: Params$Resource$Securitypolicies$Patchrule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patchRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Patchrule, + callback: BodyResponseCallback): void; + patchRule(callback: BodyResponseCallback): void; + patchRule( + paramsOrCallback?: Params$Resource$Securitypolicies$Patchrule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Patchrule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Patchrule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44753,26 +58257,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeRule(params?: any, options?: MethodOptions): - AxiosPromise; removeRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Securitypolicies$Removerule, + options?: MethodOptions): AxiosPromise; removeRule( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Securitypolicies$Removerule, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeRule( + params: Params$Resource$Securitypolicies$Removerule, + callback: BodyResponseCallback): void; + removeRule(callback: BodyResponseCallback): void; + removeRule( + paramsOrCallback?: Params$Resource$Securitypolicies$Removerule| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Removerule; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Removerule; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44869,28 +58386,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Securitypolicies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Securitypolicies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Securitypolicies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Securitypolicies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Securitypolicies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Securitypolicies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44915,6 +58445,264 @@ export namespace compute_beta { } } + export interface Params$Resource$Securitypolicies$Addrule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicyRule; + } + export interface Params$Resource$Securitypolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the security policy to delete. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to get. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Getrule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The priority of the rule to get from the security policy. + */ + priority?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to which the queried rule belongs. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicy; + } + export interface Params$Resource$Securitypolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Securitypolicies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicy; + } + export interface Params$Resource$Securitypolicies$Patchrule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The priority of the rule to patch. + */ + priority?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SecurityPolicyRule; + } + export interface Params$Resource$Securitypolicies$Removerule { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The priority of the rule to remove from the security policy. + */ + priority?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the security policy to update. + */ + securityPolicy?: string; + } + export interface Params$Resource$Securitypolicies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Snapshots { root: Compute; constructor(root: Compute) { @@ -45001,26 +58789,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Snapshots$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Snapshots$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Snapshots$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Snapshots$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45047,7 +58846,7 @@ export namespace compute_beta { /** * compute.snapshots.get - * @desc Returns the specified Snapshot resource. Get a list of available + * @desc Returns the specified Snapshot resource. Gets a list of available * snapshots by making a list() request. * @example * * // BEFORE RUNNING: @@ -45115,23 +58914,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Snapshots$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Snapshots$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Snapshots$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Snapshots$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45239,26 +59048,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Snapshots$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Snapshots$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Snapshots$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Snapshots$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45357,26 +59177,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Snapshots$Setlabels, + options?: MethodOptions): AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Snapshots$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Snapshots$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Snapshots$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Snapshots$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45475,28 +59308,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Snapshots$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Snapshots$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Snapshots$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Snapshots$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Snapshots$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45521,6 +59367,143 @@ export namespace compute_beta { } } + export interface Params$Resource$Snapshots$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Snapshot resource to delete. + */ + snapshot?: string; + } + export interface Params$Resource$Snapshots$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the Snapshot resource to return. + */ + snapshot?: string; + } + export interface Params$Resource$Snapshots$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Snapshots$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + export interface Params$Resource$Snapshots$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Sslcertificates { root: Compute; constructor(root: Compute) { @@ -45604,26 +59587,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Sslcertificates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslcertificates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sslcertificates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45650,7 +59646,7 @@ export namespace compute_beta { /** * compute.sslCertificates.get - * @desc Returns the specified SslCertificate resource. Get a list of + * @desc Returns the specified SslCertificate resource. Gets a list of * available SSL certificates by making a list() request. * @example * * // BEFORE RUNNING: @@ -45719,24 +59715,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Sslcertificates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Sslcertificates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslcertificates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslcertificates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45833,26 +59840,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslcertificates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Sslcertificates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Sslcertificates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45959,26 +59979,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Sslcertificates$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sslcertificates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslcertificates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46074,28 +60107,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Sslcertificates$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Sslcertificates$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Sslcertificates$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Sslcertificates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslcertificates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46120,6 +60166,152 @@ export namespace compute_beta { } } + export interface Params$Resource$Sslcertificates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SslCertificate resource to delete. + */ + sslCertificate?: string; + } + export interface Params$Resource$Sslcertificates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the SslCertificate resource to return. + */ + sslCertificate?: string; + } + export interface Params$Resource$Sslcertificates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SslCertificate; + } + export interface Params$Resource$Sslcertificates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslcertificates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Sslpolicies { root: Compute; constructor(root: Compute) { @@ -46148,26 +60340,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslpolicies$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Sslpolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sslpolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46206,23 +60411,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sslpolicies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sslpolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslpolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslpolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46249,7 +60465,7 @@ export namespace compute_beta { /** * compute.sslPolicies.insert - * @desc Returns the specified SSL policy resource. Get a list of available + * @desc Returns the specified SSL policy resource. Gets a list of available * SSL policies by making a list() request. * @alias compute.sslPolicies.insert * @memberOf! () @@ -46262,26 +60478,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslpolicies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Sslpolicies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Sslpolicies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46322,26 +60551,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sslpolicies$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslpolicies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sslpolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslpolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46382,30 +60622,46 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listAvailableFeatures(params?: any, options?: MethodOptions): + listAvailableFeatures( + params?: Params$Resource$Sslpolicies$Listavailablefeatures, + options?: MethodOptions): AxiosPromise; listAvailableFeatures( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslpolicies$Listavailablefeatures, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$SslPoliciesListAvailableFeaturesResponse>): void; + listAvailableFeatures( + params: Params$Resource$Sslpolicies$Listavailablefeatures, + callback: BodyResponseCallback< Schema$SslPoliciesListAvailableFeaturesResponse>): void; + listAvailableFeatures(callback: BodyResponseCallback< + Schema$SslPoliciesListAvailableFeaturesResponse>): + void; listAvailableFeatures( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslpolicies$Listavailablefeatures| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$SslPoliciesListAvailableFeaturesResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslpolicies$Listavailablefeatures; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Listavailablefeatures; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46448,26 +60704,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Sslpolicies$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslpolicies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Sslpolicies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslpolicies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46506,28 +60774,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Sslpolicies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Sslpolicies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Sslpolicies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Sslpolicies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslpolicies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46552,6 +60833,241 @@ export namespace compute_beta { } } + export interface Params$Resource$Sslpolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + } + export interface Params$Resource$Sslpolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + } + export interface Params$Resource$Sslpolicies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicy; + } + export interface Params$Resource$Sslpolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslpolicies$Listavailablefeatures { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslpolicies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicy; + } + export interface Params$Resource$Sslpolicies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Subnetworks { root: Compute; constructor(root: Compute) { @@ -46647,28 +61163,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Subnetworks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Subnetworks$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subnetworks$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Subnetworks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46766,26 +61295,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subnetworks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Subnetworks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46887,26 +61429,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - expandIpCidrRange(params?: any, options?: MethodOptions): - AxiosPromise; expandIpCidrRange( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Expandipcidrrange, + options?: MethodOptions): AxiosPromise; + expandIpCidrRange( + params: Params$Resource$Subnetworks$Expandipcidrrange, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; expandIpCidrRange( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Expandipcidrrange, + callback: BodyResponseCallback): void; + expandIpCidrRange(callback: BodyResponseCallback): void; + expandIpCidrRange( + paramsOrCallback?: Params$Resource$Subnetworks$Expandipcidrrange| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Expandipcidrrange; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Expandipcidrrange; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46933,7 +61488,7 @@ export namespace compute_beta { /** * compute.subnetworks.get - * @desc Returns the specified subnetwork. Get a list of available + * @desc Returns the specified subnetwork. Gets a list of available * subnetworks list() request. * @example * * // BEFORE RUNNING: @@ -47005,23 +61560,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Subnetworks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Subnetworks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subnetworks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subnetworks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subnetworks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47120,26 +61686,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Subnetworks$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Subnetworks$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47240,26 +61818,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Subnetworks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Subnetworks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47370,26 +61961,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subnetworks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subnetworks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Subnetworks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subnetworks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47430,30 +62032,46 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listUsable(params?: any, options?: MethodOptions): + listUsable( + params?: Params$Resource$Subnetworks$Listusable, + options?: MethodOptions): AxiosPromise; listUsable( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subnetworks$Listusable, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + listUsable( + params: Params$Resource$Subnetworks$Listusable, + callback: BodyResponseCallback): + void; + listUsable( + callback: BodyResponseCallback): + void; listUsable( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Subnetworks$Listusable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Listusable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Listusable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47565,26 +62183,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Subnetworks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subnetworks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Subnetworks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47688,26 +62318,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Subnetworks$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Subnetworks$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47810,26 +62452,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setPrivateIpGoogleAccess(params?: any, options?: MethodOptions): - AxiosPromise; setPrivateIpGoogleAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + options?: MethodOptions): AxiosPromise; + setPrivateIpGoogleAccess( + params: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setPrivateIpGoogleAccess( + params: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + callback: BodyResponseCallback): void; + setPrivateIpGoogleAccess(callback: BodyResponseCallback): + void; setPrivateIpGoogleAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Setprivateipgoogleaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Setprivateipgoogleaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Setprivateipgoogleaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47930,28 +62586,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Subnetworks$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Subnetworks$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Subnetworks$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Subnetworks$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -47976,6 +62645,430 @@ export namespace compute_beta { } } + export interface Params$Resource$Subnetworks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Subnetworks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to delete. + */ + subnetwork?: string; + } + export interface Params$Resource$Subnetworks$Expandipcidrrange { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to update. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$SubnetworksExpandIpCidrRangeRequest; + } + export interface Params$Resource$Subnetworks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the Subnetwork resource to return. + */ + subnetwork?: string; + } + export interface Params$Resource$Subnetworks$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Subnetworks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subnetwork; + } + export interface Params$Resource$Subnetworks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Subnetworks$Listusable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Subnetworks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to patch. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$Subnetwork; + } + export interface Params$Resource$Subnetworks$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Subnetworks$Setprivateipgoogleaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$SubnetworksSetPrivateIpGoogleAccessRequest; + } + export interface Params$Resource$Subnetworks$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targethttpproxies { root: Compute; constructor(root: Compute) { @@ -48059,26 +63152,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targethttpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targethttpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48105,7 +63211,7 @@ export namespace compute_beta { /** * compute.targetHttpProxies.get - * @desc Returns the specified TargetHttpProxy resource. Get a list of + * @desc Returns the specified TargetHttpProxy resource. Gets a list of * available target HTTP proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -48174,24 +63280,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targethttpproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targethttpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targethttpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targethttpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48288,26 +63405,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targethttpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targethttpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48414,28 +63544,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targethttpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targethttpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targethttpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48535,26 +63676,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUrlMap( + params: Params$Resource$Targethttpproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; + setUrlMap( + paramsOrCallback?: Params$Resource$Targethttpproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48651,28 +63805,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targethttpproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targethttpproxies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targethttpproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48697,6 +63864,184 @@ export namespace compute_beta { } } + export interface Params$Resource$Targethttpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy resource to delete. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Targethttpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetHttpProxy resource to return. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Targethttpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpProxy; + } + export interface Params$Resource$Targethttpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy to set a URL map for. + */ + targetHttpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + export interface Params$Resource$Targethttpproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targethttpsproxies { root: Compute; constructor(root: Compute) { @@ -48780,26 +64125,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targethttpsproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -48826,7 +64184,7 @@ export namespace compute_beta { /** * compute.targetHttpsProxies.get - * @desc Returns the specified TargetHttpsProxy resource. Get a list of + * @desc Returns the specified TargetHttpsProxy resource. Gets a list of * available target HTTPS proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -48895,24 +64253,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targethttpsproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targethttpsproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targethttpsproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targethttpsproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49009,26 +64378,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targethttpsproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targethttpsproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpsproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49136,28 +64518,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpsproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targethttpsproxies$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targethttpsproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targethttpsproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49197,26 +64591,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setQuicOverride(params?: any, options?: MethodOptions): - AxiosPromise; setQuicOverride( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setquicoverride, + options?: MethodOptions): AxiosPromise; setQuicOverride( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setquicoverride, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setQuicOverride( + params: Params$Resource$Targethttpsproxies$Setquicoverride, + callback: BodyResponseCallback): void; + setQuicOverride(callback: BodyResponseCallback): void; + setQuicOverride( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Setquicoverride| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setquicoverride; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setquicoverride; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49315,26 +64722,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslCertificates(params?: any, options?: MethodOptions): - AxiosPromise; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setsslcertificates, + options?: MethodOptions): AxiosPromise; + setSslCertificates( + params: Params$Resource$Targethttpsproxies$Setsslcertificates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setsslcertificates, + callback: BodyResponseCallback): void; + setSslCertificates(callback: BodyResponseCallback): void; + setSslCertificates( + paramsOrCallback?: + Params$Resource$Targethttpsproxies$Setsslcertificates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setsslcertificates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setsslcertificates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49377,26 +64798,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setsslpolicy, + options?: MethodOptions): AxiosPromise; + setSslPolicy( + params: Params$Resource$Targethttpsproxies$Setsslpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setsslpolicy, + callback: BodyResponseCallback): void; + setSslPolicy(callback: BodyResponseCallback): void; + setSslPolicy( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Setsslpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setsslpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setsslpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49497,26 +64931,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; + setUrlMap( + params: Params$Resource$Targethttpsproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUrlMap( + params: Params$Resource$Targethttpsproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpsproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49613,28 +65060,42 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpsproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targethttpsproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targethttpsproxies$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Targethttpsproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49659,6 +65120,283 @@ export namespace compute_beta { } } + export interface Params$Resource$Targethttpsproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to delete. + */ + targetHttpsProxy?: string; + } + export interface Params$Resource$Targethttpsproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetHttpsProxy resource to return. + */ + targetHttpsProxy?: string; + } + export interface Params$Resource$Targethttpsproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxy; + } + export interface Params$Resource$Targethttpsproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpsproxies$Setquicoverride { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to set the QUIC override policy + * for. The name should conform to RFC1035. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxiesSetQuicOverrideRequest; + } + export interface Params$Resource$Targethttpsproxies$Setsslcertificates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to set an SslCertificates resource + * for. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxiesSetSslCertificatesRequest; + } + export interface Params$Resource$Targethttpsproxies$Setsslpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicyReference; + } + export interface Params$Resource$Targethttpsproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + export interface Params$Resource$Targethttpsproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetinstances { root: Compute; constructor(root: Compute) { @@ -49754,29 +65492,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targetinstances$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetinstances$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Targetinstances$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targetinstances$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetinstances$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49878,26 +65632,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetinstances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetinstances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -49924,7 +65691,7 @@ export namespace compute_beta { /** * compute.targetInstances.get - * @desc Returns the specified TargetInstance resource. Get a list of + * @desc Returns the specified TargetInstance resource. Gets a list of * available target instances by making a list() request. * @example * * // BEFORE RUNNING: @@ -49997,24 +65764,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetinstances$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetinstances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetinstances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetinstances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50115,26 +65893,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetinstances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetinstances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50246,26 +66037,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetinstances$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targetinstances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50366,28 +66170,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetinstances$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetinstances$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetinstances$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targetinstances$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetinstances$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50412,6 +66229,226 @@ export namespace compute_beta { } } + export interface Params$Resource$Targetinstances$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetinstances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetInstance resource to delete. + */ + targetInstance?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetInstance resource to return. + */ + targetInstance?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetInstance; + } + export interface Params$Resource$Targetinstances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetpools { root: Compute; constructor(root: Compute) { @@ -50503,26 +66540,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addHealthCheck(params?: any, options?: MethodOptions): - AxiosPromise; addHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Addhealthcheck, + options?: MethodOptions): AxiosPromise; + addHealthCheck( + params: Params$Resource$Targetpools$Addhealthcheck, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Addhealthcheck, + callback: BodyResponseCallback): void; + addHealthCheck(callback: BodyResponseCallback): void; + addHealthCheck( + paramsOrCallback?: Params$Resource$Targetpools$Addhealthcheck| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Addhealthcheck; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Addhealthcheck; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50626,26 +66676,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addInstance(params?: any, options?: MethodOptions): - AxiosPromise; addInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Addinstance, + options?: MethodOptions): AxiosPromise; + addInstance( + params: Params$Resource$Targetpools$Addinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Addinstance, + callback: BodyResponseCallback): void; + addInstance(callback: BodyResponseCallback): void; + addInstance( + paramsOrCallback?: Params$Resource$Targetpools$Addinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Addinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Addinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50753,28 +66816,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Targetpools$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Targetpools$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targetpools$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50872,26 +66948,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetpools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetpools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -50918,7 +67007,7 @@ export namespace compute_beta { /** * compute.targetPools.get - * @desc Returns the specified target pool. Get a list of available target + * @desc Returns the specified target pool. Gets a list of available target * pools by making a list() request. * @example * * // BEFORE RUNNING: @@ -50990,23 +67079,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Targetpools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Targetpools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetpools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetpools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Targetpools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51111,28 +67211,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): - AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Gethealth, + options?: MethodOptions): AxiosPromise; + getHealth( + params: Params$Resource$Targetpools$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; getHealth( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetpools$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): + void; + getHealth( + paramsOrCallback?: Params$Resource$Targetpools$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51233,26 +67346,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetpools$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetpools$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51364,26 +67490,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Targetpools$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Targetpools$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetpools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Targetpools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51485,26 +67622,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeHealthCheck(params?: any, options?: MethodOptions): - AxiosPromise; removeHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Removehealthcheck, + options?: MethodOptions): AxiosPromise; removeHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Removehealthcheck, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeHealthCheck( + params: Params$Resource$Targetpools$Removehealthcheck, + callback: BodyResponseCallback): void; + removeHealthCheck(callback: BodyResponseCallback): void; + removeHealthCheck( + paramsOrCallback?: Params$Resource$Targetpools$Removehealthcheck| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Removehealthcheck; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Removehealthcheck; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51608,26 +67758,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeInstance(params?: any, options?: MethodOptions): - AxiosPromise; removeInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Removeinstance, + options?: MethodOptions): AxiosPromise; + removeInstance( + params: Params$Resource$Targetpools$Removeinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeInstance( + params: Params$Resource$Targetpools$Removeinstance, + callback: BodyResponseCallback): void; + removeInstance(callback: BodyResponseCallback): void; removeInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Removeinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Removeinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Removeinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51732,26 +67895,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackup(params?: any, options?: MethodOptions): - AxiosPromise; setBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Setbackup, + options?: MethodOptions): AxiosPromise; setBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Setbackup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setBackup( + params: Params$Resource$Targetpools$Setbackup, + callback: BodyResponseCallback): void; + setBackup(callback: BodyResponseCallback): void; + setBackup( + paramsOrCallback?: Params$Resource$Targetpools$Setbackup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Setbackup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Setbackup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51852,28 +68028,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetpools$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetpools$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targetpools$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -51898,6 +68087,433 @@ export namespace compute_beta { } } + export interface Params$Resource$Targetpools$Addhealthcheck { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target pool to add a health check to. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsAddHealthCheckRequest; + } + export interface Params$Resource$Targetpools$Addinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to add instances to. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsAddInstanceRequest; + } + export interface Params$Resource$Targetpools$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetpools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to delete. + */ + targetPool?: string; + } + export interface Params$Resource$Targetpools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetPool resource to return. + */ + targetPool?: string; + } + export interface Params$Resource$Targetpools$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetPool resource to which the queried instance belongs. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceReference; + } + export interface Params$Resource$Targetpools$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPool; + } + export interface Params$Resource$Targetpools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Targetpools$Removehealthcheck { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target pool to remove health checks from. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsRemoveHealthCheckRequest; + } + export interface Params$Resource$Targetpools$Removeinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to remove instances from. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsRemoveInstanceRequest; + } + export interface Params$Resource$Targetpools$Setbackup { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * New failoverRatio value for the target pool. + */ + failoverRatio?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to set a backup pool for. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + export interface Params$Resource$Targetpools$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targetsslproxies { root: Compute; constructor(root: Compute) { @@ -51981,26 +68597,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetsslproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetsslproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52027,7 +68656,7 @@ export namespace compute_beta { /** * compute.targetSslProxies.get - * @desc Returns the specified TargetSslProxy resource. Get a list of + * @desc Returns the specified TargetSslProxy resource. Gets a list of * available target SSL proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -52096,24 +68725,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetsslproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetsslproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetsslproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetsslproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52210,26 +68850,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetsslproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetsslproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52336,26 +68989,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetsslproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targetsslproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52453,26 +69119,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackendService(params?: any, options?: MethodOptions): - AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setbackendservice, + options?: MethodOptions): AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setbackendservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setBackendService( + params: Params$Resource$Targetsslproxies$Setbackendservice, + callback: BodyResponseCallback): void; + setBackendService(callback: BodyResponseCallback): void; + setBackendService( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setbackendservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setbackendservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setbackendservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52571,26 +69250,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProxyHeader(params?: any, options?: MethodOptions): - AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setproxyheader, + options?: MethodOptions): AxiosPromise; + setProxyHeader( + params: Params$Resource$Targetsslproxies$Setproxyheader, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setProxyHeader( + params: Params$Resource$Targetsslproxies$Setproxyheader, + callback: BodyResponseCallback): void; + setProxyHeader(callback: BodyResponseCallback): void; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$Setproxyheader| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setproxyheader; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setproxyheader; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52689,26 +69381,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslCertificates(params?: any, options?: MethodOptions): - AxiosPromise; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setsslcertificates, + options?: MethodOptions): AxiosPromise; + setSslCertificates( + params: Params$Resource$Targetsslproxies$Setsslcertificates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setsslcertificates, + callback: BodyResponseCallback): void; + setSslCertificates(callback: BodyResponseCallback): void; + setSslCertificates( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setsslcertificates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setsslcertificates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setsslcertificates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52751,26 +69456,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setsslpolicy, + options?: MethodOptions): AxiosPromise; + setSslPolicy( + params: Params$Resource$Targetsslproxies$Setsslpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSslPolicy( + params: Params$Resource$Targetsslproxies$Setsslpolicy, + callback: BodyResponseCallback): void; + setSslPolicy(callback: BodyResponseCallback): void; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$Setsslpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setsslpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setsslpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52867,28 +69585,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetsslproxies$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetsslproxies$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Targetsslproxies$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targetsslproxies$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -52913,6 +69644,283 @@ export namespace compute_beta { } } + export interface Params$Resource$Targetsslproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource to delete. + */ + targetSslProxy?: string; + } + export interface Params$Resource$Targetsslproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetSslProxy resource to return. + */ + targetSslProxy?: string; + } + export interface Params$Resource$Targetsslproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxy; + } + export interface Params$Resource$Targetsslproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetsslproxies$Setbackendservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose BackendService resource is to + * be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetBackendServiceRequest; + } + export interface Params$Resource$Targetsslproxies$Setproxyheader { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose ProxyHeader is to be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetProxyHeaderRequest; + } + export interface Params$Resource$Targetsslproxies$Setsslcertificates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to + * be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetSslCertificatesRequest; + } + export interface Params$Resource$Targetsslproxies$Setsslpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose SSL policy is to be set. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicyReference; + } + export interface Params$Resource$Targetsslproxies$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Targettcpproxies { root: Compute; constructor(root: Compute) { @@ -52996,26 +70004,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targettcpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targettcpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53042,7 +70063,7 @@ export namespace compute_beta { /** * compute.targetTcpProxies.get - * @desc Returns the specified TargetTcpProxy resource. Get a list of + * @desc Returns the specified TargetTcpProxy resource. Gets a list of * available target TCP proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -53111,24 +70132,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targettcpproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targettcpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targettcpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targettcpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53225,26 +70257,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targettcpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targettcpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targettcpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53351,26 +70396,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targettcpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targettcpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53468,26 +70526,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackendService(params?: any, options?: MethodOptions): - AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Setbackendservice, + options?: MethodOptions): AxiosPromise; + setBackendService( + params: Params$Resource$Targettcpproxies$Setbackendservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setBackendService( + params: Params$Resource$Targettcpproxies$Setbackendservice, + callback: BodyResponseCallback): void; + setBackendService(callback: BodyResponseCallback): void; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targettcpproxies$Setbackendservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Setbackendservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Setbackendservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53586,26 +70657,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProxyHeader(params?: any, options?: MethodOptions): - AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Setproxyheader, + options?: MethodOptions): AxiosPromise; + setProxyHeader( + params: Params$Resource$Targettcpproxies$Setproxyheader, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Setproxyheader, + callback: BodyResponseCallback): void; + setProxyHeader(callback: BodyResponseCallback): void; + setProxyHeader( + paramsOrCallback?: Params$Resource$Targettcpproxies$Setproxyheader| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Setproxyheader; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Setproxyheader; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53630,6 +70714,198 @@ export namespace compute_beta { } } + export interface Params$Resource$Targettcpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource to delete. + */ + targetTcpProxy?: string; + } + export interface Params$Resource$Targettcpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetTcpProxy resource to return. + */ + targetTcpProxy?: string; + } + export interface Params$Resource$Targettcpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxy; + } + export interface Params$Resource$Targettcpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targettcpproxies$Setbackendservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource whose BackendService resource is to + * be set. + */ + targetTcpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxiesSetBackendServiceRequest; + } + export interface Params$Resource$Targettcpproxies$Setproxyheader { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + */ + targetTcpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxiesSetProxyHeaderRequest; + } + + export class Resource$Targetvpngateways { root: Compute; constructor(root: Compute) { @@ -53725,29 +71001,45 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targetvpngateways$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targetvpngateways$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53849,26 +71141,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetvpngateways$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetvpngateways$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -53895,7 +71200,7 @@ export namespace compute_beta { /** * compute.targetVpnGateways.get - * @desc Returns the specified target VPN gateway. Get a list of available + * @desc Returns the specified target VPN gateway. Gets a list of available * target VPN gateways by making a list() request. * @example * * // BEFORE RUNNING: @@ -53968,24 +71273,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetvpngateways$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetvpngateways$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetvpngateways$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetvpngateways$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54086,26 +71402,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetvpngateways$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetvpngateways$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54217,28 +71546,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetvpngateways$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetvpngateways$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetvpngateways$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetvpngateways$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54280,26 +71621,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Targetvpngateways$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Targetvpngateways$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54400,28 +71754,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetvpngateways$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Targetvpngateways$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Targetvpngateways$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54446,6 +71813,262 @@ export namespace compute_beta { } } + export interface Params$Resource$Targetvpngateways$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetvpngateways$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target VPN gateway to delete. + */ + targetVpnGateway?: string; + } + export interface Params$Resource$Targetvpngateways$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the target VPN gateway to return. + */ + targetVpnGateway?: string; + } + export interface Params$Resource$Targetvpngateways$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetVpnGateway; + } + export interface Params$Resource$Targetvpngateways$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Targetvpngateways$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Targetvpngateways$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Urlmaps { root: Compute; constructor(root: Compute) { @@ -54528,26 +72151,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Urlmaps$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Urlmaps$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54573,7 +72207,7 @@ export namespace compute_beta { /** * compute.urlMaps.get - * @desc Returns the specified UrlMap resource. Get a list of available URL + * @desc Returns the specified UrlMap resource. Gets a list of available URL * maps by making a list() request. * @example * * // BEFORE RUNNING: @@ -54641,23 +72275,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Urlmaps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Urlmaps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Urlmaps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Urlmaps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54753,26 +72397,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Urlmaps$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Urlmaps$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54871,26 +72526,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - invalidateCache(params?: any, options?: MethodOptions): - AxiosPromise; invalidateCache( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Urlmaps$Invalidatecache, + options?: MethodOptions): AxiosPromise; + invalidateCache( + params: Params$Resource$Urlmaps$Invalidatecache, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; invalidateCache( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Invalidatecache, + callback: BodyResponseCallback): void; + invalidateCache(callback: BodyResponseCallback): void; + invalidateCache( + paramsOrCallback?: Params$Resource$Urlmaps$Invalidatecache| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Urlmaps$Invalidatecache; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Invalidatecache; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -54998,26 +72666,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlmaps$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Urlmaps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55119,26 +72798,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Urlmaps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Urlmaps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55236,28 +72926,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Urlmaps$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Urlmaps$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Urlmaps$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Urlmaps$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Urlmaps$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55360,26 +73063,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Urlmaps$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Urlmaps$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55479,28 +73193,40 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - validate(params?: any, options?: MethodOptions): - AxiosPromise; validate( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Urlmaps$Validate, + options?: MethodOptions): AxiosPromise; + validate( + params: Params$Resource$Urlmaps$Validate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + validate( + params: Params$Resource$Urlmaps$Validate, + callback: BodyResponseCallback): void; + validate(callback: BodyResponseCallback): + void; validate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Urlmaps$Validate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Validate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Validate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55525,6 +73251,267 @@ export namespace compute_beta { } } + export interface Params$Resource$Urlmaps$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to delete. + */ + urlMap?: string; + } + export interface Params$Resource$Urlmaps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the UrlMap resource to return. + */ + urlMap?: string; + } + export interface Params$Resource$Urlmaps$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Invalidatecache { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap scoping this request. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$CacheInvalidationRule; + } + export interface Params$Resource$Urlmaps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Urlmaps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to patch. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Urlmaps$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to update. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Validate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the UrlMap resource to be validated as. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapsValidateRequest; + } + + export class Resource$Vpntunnels { root: Compute; constructor(root: Compute) { @@ -55620,28 +73607,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Vpntunnels$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Vpntunnels$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Vpntunnels$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Vpntunnels$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55739,26 +73739,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Vpntunnels$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Vpntunnels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Vpntunnels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55785,7 +73797,7 @@ export namespace compute_beta { /** * compute.vpnTunnels.get - * @desc Returns the specified VpnTunnel resource. Get a list of available + * @desc Returns the specified VpnTunnel resource. Gets a list of available * VPN tunnels by making a list() request. * @example * * // BEFORE RUNNING: @@ -55857,23 +73869,34 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Vpntunnels$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Vpntunnels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Vpntunnels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Vpntunnels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -55974,26 +73997,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Vpntunnels$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Vpntunnels$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56105,26 +74140,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Vpntunnels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Vpntunnels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Vpntunnels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56166,26 +74212,39 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Vpntunnels$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Vpntunnels$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Vpntunnels$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56286,28 +74345,41 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Vpntunnels$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Vpntunnels$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Vpntunnels$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Vpntunnels$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Vpntunnels$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56332,6 +74404,262 @@ export namespace compute_beta { } } + export interface Params$Resource$Vpntunnels$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Vpntunnels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the VpnTunnel resource to delete. + */ + vpnTunnel?: string; + } + export interface Params$Resource$Vpntunnels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the VpnTunnel resource to return. + */ + vpnTunnel?: string; + } + export interface Params$Resource$Vpntunnels$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$VpnTunnel; + } + export interface Params$Resource$Vpntunnels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Vpntunnels$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$RegionSetLabelsRequest; + } + export interface Params$Resource$Vpntunnels$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the region for this request. + */ + region?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Zoneoperations { root: Compute; constructor(root: Compute) { @@ -56414,22 +74742,37 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneoperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Zoneoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Zoneoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56527,23 +74870,35 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56655,26 +75010,38 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Zoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56698,6 +75065,104 @@ export namespace compute_beta { } } + export interface Params$Resource$Zoneoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for request. + */ + zone?: string; + } + + export class Resource$Zones { root: Compute; constructor(root: Compute) { @@ -56712,7 +75177,7 @@ export namespace compute_beta { /** * compute.zones.get - * @desc Returns the specified Zone resource. Get a list of available zones + * @desc Returns the specified Zone resource. Gets a list of available zones * by making a list() request. * @example * * // BEFORE RUNNING: @@ -56780,21 +75245,33 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zones$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zones$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zones$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zones$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zones$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zones$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56900,25 +75377,36 @@ export namespace compute_beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Zones$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Zones$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zones$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zones$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zones$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zones$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -56940,4 +75428,74 @@ export namespace compute_beta { } } } + + export interface Params$Resource$Zones$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone resource to return. + */ + zone?: string; + } + export interface Params$Resource$Zones$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } } diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index 571507b44be..190cbbf54c6 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace compute_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Compute Engine API * @@ -176,13 +179,13 @@ export namespace compute_v1 { /** * The number of the guest accelerator cards exposed to this instance. */ - acceleratorCount: number; + acceleratorCount?: number; /** * Full or partial URL of the accelerator type resource to attach to this * instance. If you are creating an instance template, specify only the * accelerator name. */ - acceleratorType: string; + acceleratorType?: string; } /** * An Accelerator Type resource. (== resource_for beta.acceleratorTypes ==) @@ -192,60 +195,60 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this accelerator * type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The type of the resource. Always compute#acceleratorType * for accelerator types. */ - kind: string; + kind?: string; /** * [Output Only] Maximum accelerator cards allowed per instance. */ - maximumCardsPerInstance: number; + maximumCardsPerInstance?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the accelerator type resides, * such as us-central1-a. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$AcceleratorTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AcceleratorTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#acceleratorTypeAggregatedList for aggregated lists of accelerator * types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -253,15 +256,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of accelerator types. @@ -270,16 +273,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AcceleratorType resources. */ - items: Schema$AcceleratorType[]; + items?: Schema$AcceleratorType[]; /** * [Output Only] Type of resource. Always compute#acceleratorTypeList for * lists of accelerator types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -287,26 +290,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AcceleratorTypesScopedList { /** * [Output Only] A list of accelerator types contained in this scope. */ - acceleratorTypes: Schema$AcceleratorType[]; + acceleratorTypes?: Schema$AcceleratorType[]; /** * [Output Only] An informational warning that appears when the accelerator * types list is empty. */ - warning: any; + warning?: any; } /** * An access configuration attached to an instance's network interface. @@ -317,13 +320,13 @@ export namespace compute_v1 { * [Output Only] Type of the resource. Always compute#accessConfig for * access configs. */ - kind: string; + kind?: string; /** * The name of this access configuration. The default and recommended name * is External NAT but you can use any arbitrary string you would like. For * example, My external IP or Network Access. */ - name: string; + name?: string; /** * An external IP address associated with this instance. Specify an unused * static external IP address available to the project or leave this field @@ -331,21 +334,21 @@ export namespace compute_v1 { * specify a static external IP address, it must live in the same region as * the zone of the instance. */ - natIP: string; + natIP?: string; /** * The DNS domain name for the public PTR record. This field can only be set * when the set_public_ptr field is enabled. */ - publicPtrDomainName: string; + publicPtrDomainName?: string; /** * Specifies whether a public DNS ?PTR? record should be created to map the * external IP address of the instance to a DNS domain name. */ - setPublicPtr: boolean; + setPublicPtr?: boolean; /** * The type of configuration. The default and only option is ONE_TO_ONE_NAT. */ - type: string; + type?: string; } /** * A reserved address resource. (== resource_for beta.addresses ==) (== @@ -356,35 +359,35 @@ export namespace compute_v1 { /** * The static IP address represented by this resource. */ - address: string; + address?: string; /** * The type of address to reserve, either INTERNAL or EXTERNAL. If * unspecified, defaults to EXTERNAL. */ - addressType: string; + addressType?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The IP Version that will be used by this address. Valid options are IPV4 * or IPV6. This can only be specified for a global address. */ - ipVersion: string; + ipVersion?: string; /** * [Output Only] Type of the resource. Always compute#address for addresses. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -394,18 +397,18 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the regional address resides. This * field is not applicable to global addresses. You must specify this field * as part of the HTTP request URL. You cannot set this field in the request * body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the address, which can be one of RESERVING, * RESERVED, or IN_USE. An address that is RESERVING is currently in the @@ -413,33 +416,33 @@ export namespace compute_v1 { * available to use. An IN_USE address is currently being used by another * resource and is not available. */ - status: string; + status?: string; /** * The URL of the subnetwork in which to reserve the address. If an IP * address is specified, it must be within the subnetwork's IP range. * This field can only be used with INTERNAL type with * GCE_ENDPOINT/DNS_RESOLVER purposes. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URLs of the resources that are using this address. */ - users: string[]; + users?: string[]; } export interface Schema$AddressAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AddressesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#addressAggregatedList for * aggregated lists of addresses. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -447,26 +450,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AddressesScopedList { /** * [Output Only] A list of addresses contained in this scope. */ - addresses: Schema$Address[]; + addresses?: Schema$Address[]; /** * [Output Only] Informational warning which replaces the list of addresses * when the list is empty. */ - warning: any; + warning?: any; } /** * Contains a list of addresses. @@ -475,16 +478,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Address resources. */ - items: Schema$Address[]; + items?: Schema$Address[]; /** * [Output Only] Type of resource. Always compute#addressList for lists of * addresses. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -492,15 +495,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An alias IP range attached to an instance's network interface. @@ -513,13 +516,13 @@ export namespace compute_v1 { * a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR * format string (e.g. 10.1.2.0/24). */ - ipCidrRange: string; + ipCidrRange?: string; /** * Optional subnetwork secondary range name specifying the secondary range * from which to allocate the IP CIDR range for this alias IP range. If left * unspecified, the primary range of the subnetwork will be used. */ - subnetworkRangeName: string; + subnetworkRangeName?: string; } /** * An instance-attached disk resource. @@ -529,12 +532,12 @@ export namespace compute_v1 { * Specifies whether the disk will be auto-deleted when the instance is * deleted (but not when the disk is detached from the instance). */ - autoDelete: boolean; + autoDelete?: boolean; /** * Indicates that this is a boot disk. The virtual machine will use the * first partition of the disk for its root filesystem. */ - boot: boolean; + boot?: boolean; /** * Specifies a unique device name of your choice that is reflected into the * /dev/disk/by-id/google-* tree of a Linux operating system running within @@ -544,7 +547,7 @@ export namespace compute_v1 { * persistent-disks-x, where x is a number assigned by Google Compute * Engine. This field is only applicable for persistent disks. */ - deviceName: string; + deviceName?: string; /** * Encrypts or decrypts a disk using a customer-supplied encryption key. If * you are creating a new disk, this field encrypts the new disk using an @@ -561,19 +564,19 @@ export namespace compute_v1 { * encryption keys, so you cannot use your own keys to encrypt disks in a * managed instance group. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] A zero-based index to this disk, where 0 is reserved for * the boot disk. If you have many disks attached to an instance, each disk * would have a unique index number. */ - index: number; + index?: number; /** * [Input Only] Specifies the parameters for a new disk that will be created * alongside the new instance. Use initialization parameters to create boot @@ -581,7 +584,7 @@ export namespace compute_v1 { * mutually exclusive with the source property; you can only define one or * the other, but not both. */ - initializeParams: Schema$AttachedDiskInitializeParams; + initializeParams?: Schema$AttachedDiskInitializeParams; /** * Specifies the disk interface to use for attaching this disk, which is * either SCSI or NVME. The default is SCSI. Persistent disks must always @@ -590,21 +593,21 @@ export namespace compute_v1 { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. */ - interface: string; + interface?: string; /** * [Output Only] Type of the resource. Always compute#attachedDisk for * attached disks. */ - kind: string; + kind?: string; /** * [Output Only] Any valid publicly visible licenses. */ - licenses: string[]; + licenses?: string[]; /** * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If * not specified, the default is to attach the disk in READ_WRITE mode. */ - mode: string; + mode?: string; /** * Specifies a valid partial or full URL to an existing Persistent Disk * resource. When creating a new instance, one of @@ -614,12 +617,12 @@ export namespace compute_v1 { * Note that for InstanceTemplate, specify the disk name, not the URL for * the disk. */ - source: string; + source?: string; /** * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. */ - type: string; + type?: string; } /** * [Input Only] Specifies the parameters for a new disk that will be created @@ -633,11 +636,11 @@ export namespace compute_v1 { * Specifies the disk name. If not specified, the default is to use the name * of the instance. */ - diskName: string; + diskName?: string; /** * Specifies the size of the disk in base-2 GB. */ - diskSizeGb: string; + diskSizeGb?: string; /** * Specifies the disk type to use to create the instance. If not specified, * the default is pd-standard, specified using the full URL. For example: @@ -650,13 +653,13 @@ export namespace compute_v1 { * zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is * the name of the disk type, not URL. */ - diskType: string; + diskType?: string; /** * Labels to apply to this disk. These can be later modified by the * disks.setLabels method. This field is only applicable for persistent * disks. */ - labels: any; + labels?: any; /** * The source image to create this disk. When creating a new instance, one * of initializeParams.sourceImage or disks.source is required except for @@ -673,7 +676,7 @@ export namespace compute_v1 { * family/family-name: global/images/family/my-image-family If the source * image is deleted later, this field will not be set. */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. Instance @@ -681,7 +684,7 @@ export namespace compute_v1 { * create disks for instances in a managed instance group if the source * images are encrypted with your own keys. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; } /** * Represents an Autoscaler resource. Autoscalers allow you to automatically @@ -699,26 +702,26 @@ export namespace compute_v1 { * are specified, the default will be to autoscale based on cpuUtilization * to 0.6 or 60%. */ - autoscalingPolicy: Schema$AutoscalingPolicy; + autoscalingPolicy?: Schema$AutoscalingPolicy; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#autoscaler for * autoscalers. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -728,50 +731,50 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the instance group resides (for * autoscalers living in regional scope). */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the autoscaler configuration. */ - status: string; + status?: string; /** * [Output Only] Human-readable details about the current state of the * autoscaler. Read the documentation for Commonly returned status messages * for examples of status messages you might encounter. */ - statusDetails: Schema$AutoscalerStatusDetails[]; + statusDetails?: Schema$AutoscalerStatusDetails[]; /** * URL of the managed instance group that this autoscaler will scale. */ - target: string; + target?: string; /** * [Output Only] URL of the zone where the instance group resides (for * autoscalers living in zonal scope). */ - zone: string; + zone?: string; } export interface Schema$AutoscalerAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of AutoscalersScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#autoscalerAggregatedList * for aggregated lists of autoscalers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -779,15 +782,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Autoscaler resources. @@ -796,16 +799,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Autoscaler resources. */ - items: Schema$Autoscaler[]; + items?: Schema$Autoscaler[]; /** * [Output Only] Type of resource. Always compute#autoscalerList for lists * of autoscalers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -813,36 +816,36 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$AutoscalersScopedList { /** * [Output Only] A list of autoscalers contained in this scope. */ - autoscalers: Schema$Autoscaler[]; + autoscalers?: Schema$Autoscaler[]; /** * [Output Only] Informational warning which replaces the list of * autoscalers when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$AutoscalerStatusDetails { /** * The status message. */ - message: string; + message?: string; /** * The type of error returned. */ - type: string; + type?: string; } /** * Cloud Autoscaler policy. @@ -858,32 +861,33 @@ export namespace compute_v1 { * long an instance may take to initialize. To do this, create an instance * and time the startup process. */ - coolDownPeriodSec: number; + coolDownPeriodSec?: number; /** * Defines the CPU utilization policy that allows the autoscaler to scale * based on the average CPU utilization of a managed instance group. */ - cpuUtilization: Schema$AutoscalingPolicyCpuUtilization; + cpuUtilization?: Schema$AutoscalingPolicyCpuUtilization; /** * Configuration parameters of autoscaling based on a custom metric. */ - customMetricUtilizations: Schema$AutoscalingPolicyCustomMetricUtilization[]; + customMetricUtilizations?: + Schema$AutoscalingPolicyCustomMetricUtilization[]; /** * Configuration parameters of autoscaling based on load balancer. */ - loadBalancingUtilization: Schema$AutoscalingPolicyLoadBalancingUtilization; + loadBalancingUtilization?: Schema$AutoscalingPolicyLoadBalancingUtilization; /** * The maximum number of instances that the autoscaler can scale up to. This * is required when creating or updating an autoscaler. The maximum number * of replicas should not be lower than minimal number of replicas. */ - maxNumReplicas: number; + maxNumReplicas?: number; /** * The minimum number of replicas that the autoscaler can scale down to. * This cannot be less than 0. If not provided, autoscaler will choose a * default value depending on maximum number of instances allowed. */ - minNumReplicas: number; + minNumReplicas?: number; } /** * CPU utilization policy. @@ -900,7 +904,7 @@ export namespace compute_v1 { * you specified or until the average utilization reaches the target * utilization. */ - utilizationTarget: number; + utilizationTarget?: number; } /** * Custom utilization metric policy. @@ -911,7 +915,7 @@ export namespace compute_v1 { * cannot have negative values. The metric must have a value type of INT64 * or DOUBLE. */ - metric: string; + metric?: string; /** * The target value of the metric that autoscaler should maintain. This must * be a positive value. A utilization metric scales number of virtual @@ -921,13 +925,13 @@ export namespace compute_v1 { * autoscaler will work to keep this value constant for each of the * instances. */ - utilizationTarget: number; + utilizationTarget?: number; /** * Defines how target utilization value is expressed for a Stackdriver * Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. * If not specified, the default is GAUGE. */ - utilizationTargetType: string; + utilizationTargetType?: string; } /** * Configuration parameters of autoscaling based on load balancing. @@ -938,7 +942,7 @@ export namespace compute_v1 { * configuration) that autoscaler should maintain. Must be a positive float * value. If not defined, the default is 0.8. */ - utilizationTarget: number; + utilizationTarget?: number; } /** * Message containing information of one individual backend. @@ -951,7 +955,7 @@ export namespace compute_v1 { * Internal Load Balancing, the default and only supported mode is * CONNECTION. */ - balancingMode: string; + balancingMode?: string; /** * A multiplier applied to the group's maximum servicing capacity (based * on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the @@ -960,12 +964,12 @@ export namespace compute_v1 { * offering 0% of its available Capacity. Valid range is [0.0,1.0]. This * cannot be used for internal load balancing. */ - capacityScaler: number; + capacityScaler?: number; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The fully-qualified URL of a Instance Group resource. This instance group * defines the list of instances that serve traffic. Member virtual machine @@ -976,14 +980,14 @@ export namespace compute_v1 { * partial URL. When the BackendService has load balancing scheme INTERNAL, * the instance group must be within the same region as the BackendService. */ - group: string; + group?: string; /** * The max number of simultaneous connections for the group. Can be used * with either CONNECTION or UTILIZATION balancing modes. For CONNECTION * mode, either maxConnections or maxConnectionsPerInstance must be set. * This cannot be used for internal load balancing. */ - maxConnections: number; + maxConnections?: number; /** * The max number of simultaneous connections that a single backend instance * can handle. This is used to calculate the capacity of the group. Can be @@ -991,14 +995,14 @@ export namespace compute_v1 { * mode, either maxConnections or maxConnectionsPerInstance must be set. * This cannot be used for internal load balancing. */ - maxConnectionsPerInstance: number; + maxConnectionsPerInstance?: number; /** * The max requests per second (RPS) of the group. Can be used with either * RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE * mode, either maxRate or maxRatePerInstance must be set. This cannot be * used for internal load balancing. */ - maxRate: number; + maxRate?: number; /** * The max requests per second (RPS) that a single backend instance can * handle. This is used to calculate the capacity of the group. Can be used @@ -1006,13 +1010,13 @@ export namespace compute_v1 { * maxRatePerInstance must be set. This cannot be used for internal load * balancing. */ - maxRatePerInstance: number; + maxRatePerInstance?: number; /** * Used when balancingMode is UTILIZATION. This ratio defines the CPU * utilization target for the group. The default is 0.8. Valid range is * [0.0, 1.0]. This cannot be used for internal load balancing. */ - maxUtilization: number; + maxUtilization?: number; } /** * A BackendBucket resource. This resource defines a Cloud Storage bucket. @@ -1021,28 +1025,28 @@ export namespace compute_v1 { /** * Cloud Storage bucket name. */ - bucketName: string; + bucketName?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * If true, enable Cloud CDN for this BackendBucket. */ - enableCdn: boolean; + enableCdn?: boolean; /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1052,11 +1056,11 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Contains a list of BackendBucket resources. @@ -1065,15 +1069,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendBucket resources. */ - items: Schema$BackendBucket[]; + items?: Schema$BackendBucket[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1081,15 +1085,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A BackendService resource. This resource defines a group of backend virtual @@ -1104,37 +1108,37 @@ export namespace compute_v1 { * one day. When the load balancing scheme is INTERNAL, this field is not * used. */ - affinityCookieTtlSec: number; + affinityCookieTtlSec?: number; /** * The list of backends that serve this BackendService. */ - backends: Schema$Backend[]; + backends?: Schema$Backend[]; /** * Cloud CDN configuration for this BackendService. */ - cdnPolicy: Schema$BackendServiceCdnPolicy; - connectionDraining: Schema$ConnectionDraining; + cdnPolicy?: Schema$BackendServiceCdnPolicy; + connectionDraining?: Schema$ConnectionDraining; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * If true, enable Cloud CDN for this BackendService. When the load * balancing scheme is INTERNAL, this field is not used. */ - enableCDN: boolean; + enableCDN?: boolean; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a BackendService. An up-to-date fingerprint must * be provided in order to update the BackendService. */ - fingerprint: string; + fingerprint?: string; /** * The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for * health checking this BackendService. Currently at most one health check @@ -1143,25 +1147,25 @@ export namespace compute_v1 { * backend and Cloud Function backend. For internal load balancing, a URL * to a HealthCheck resource must be specified instead. */ - healthChecks: string[]; - iap: Schema$BackendServiceIAP; + healthChecks?: string[]; + iap?: Schema$BackendServiceIAP; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#backendService for backend * services. */ - kind: string; + kind?: string; /** * Indicates whether the backend service will be used with internal or * external load balancing. A backend service created for one type of load * balancing cannot be used with the other. Possible values are INTERNAL and * EXTERNAL. */ - loadBalancingScheme: string; + loadBalancingScheme?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1171,38 +1175,38 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Deprecated in favor of portName. The TCP port to connect on the backend. * The default value is 80. This cannot be used for internal load * balancing. */ - port: number; + port?: number; /** * Name of backend port. The same name should appear in the instance groups * referenced by this service. Required when the load balancing scheme is * EXTERNAL. When the load balancing scheme is INTERNAL, this field is not * used. */ - portName: string; + portName?: string; /** * The protocol this BackendService uses to communicate with backends. * Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. For * internal load balancing, the possible values are TCP and UDP, and the * default is TCP. */ - protocol: string; + protocol?: string; /** * [Output Only] URL of the region where the regional backend service * resides. This field is not applicable to global backend services. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Type of session affinity to use. The default is NONE. When the load * balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or @@ -1210,12 +1214,12 @@ export namespace compute_v1 { * NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the * protocol is UDP, this field is not used. */ - sessionAffinity: string; + sessionAffinity?: string; /** * How many seconds to wait for the backend before considering it a failed * request. Default is 30 seconds. */ - timeoutSec: number; + timeoutSec?: number; } /** * Contains a list of BackendServicesScopedList. @@ -1224,15 +1228,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendServicesScopedList resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1240,15 +1244,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Message containing Cloud CDN configuration for a backend service. @@ -1257,27 +1261,27 @@ export namespace compute_v1 { /** * The CacheKeyPolicy for this CdnPolicy. */ - cacheKeyPolicy: Schema$CacheKeyPolicy; + cacheKeyPolicy?: Schema$CacheKeyPolicy; } export interface Schema$BackendServiceGroupHealth { - healthStatus: Schema$HealthStatus[]; + healthStatus?: Schema$HealthStatus[]; /** * [Output Only] Type of resource. Always compute#backendServiceGroupHealth * for the health of backend services. */ - kind: string; + kind?: string; } /** * Identity-Aware Proxy */ export interface Schema$BackendServiceIAP { - enabled: boolean; - oauth2ClientId: string; - oauth2ClientSecret: string; + enabled?: boolean; + oauth2ClientId?: string; + oauth2ClientSecret?: string; /** * [Output Only] SHA256 hash value for the field oauth2_client_secret above. */ - oauth2ClientSecretSha256: string; + oauth2ClientSecretSha256?: string; } /** * Contains a list of BackendService resources. @@ -1286,16 +1290,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of BackendService resources. */ - items: Schema$BackendService[]; + items?: Schema$BackendService[]; /** * [Output Only] Type of resource. Always compute#backendServiceList for * lists of backend services. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1303,34 +1307,34 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$BackendServicesScopedList { /** * A list of BackendServices contained in this scope. */ - backendServices: Schema$BackendService[]; + backendServices?: Schema$BackendService[]; /** * Informational warning which replaces the list of backend services when * the list is empty. */ - warning: any; + warning?: any; } export interface Schema$CacheInvalidationRule { /** * If set, this invalidation rule will only apply to requests with a Host * header matching host. */ - host: string; - path: string; + host?: string; + path?: string; } /** * Message containing what to include in the cache key for a request for Cloud @@ -1340,32 +1344,32 @@ export namespace compute_v1 { /** * If true, requests to different hosts will be cached separately. */ - includeHost: boolean; + includeHost?: boolean; /** * If true, http and https requests will be cached separately. */ - includeProtocol: boolean; + includeProtocol?: boolean; /** * If true, include query string parameters in the cache key according to * query_string_whitelist and query_string_blacklist. If neither is set, the * entire query string will be included. If false, the query string will be * excluded from the cache key entirely. */ - includeQueryString: boolean; + includeQueryString?: boolean; /** * Names of query string parameters to exclude in cache keys. All other * parameters will be included. Either specify query_string_whitelist or * query_string_blacklist, not both. '&' and '=' will be * percent encoded and not treated as delimiters. */ - queryStringBlacklist: string[]; + queryStringBlacklist?: string[]; /** * Names of query string parameters to include in cache keys. All other * parameters will be excluded. Either specify query_string_whitelist or * query_string_blacklist, not both. '&' and '=' will be * percent encoded and not treated as delimiters. */ - queryStringWhitelist: string[]; + queryStringWhitelist?: string[]; } /** * Represents a Commitment resource. Creating a Commitment resource means that @@ -1382,26 +1386,26 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Commitment end time in RFC3339 text format. */ - endTimestamp: string; + endTimestamp?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#commitment for * commitments. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1411,55 +1415,55 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The plan for this commitment, which determines duration and discount * rate. The currently supported plans are TWELVE_MONTH (1 year), and * THIRTY_SIX_MONTH (3 years). */ - plan: string; + plan?: string; /** * [Output Only] URL of the region where this commitment may be used. */ - region: string; + region?: string; /** * A list of commitment amounts for particular resources. Note that VCPU and * MEMORY resource commitments must occur together. */ - resources: Schema$ResourceCommitment[]; + resources?: Schema$ResourceCommitment[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Commitment start time in RFC3339 text format. */ - startTimestamp: string; + startTimestamp?: string; /** * [Output Only] Status of the commitment with regards to eventual * expiration (each commitment has an end date defined). One of the * following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; } export interface Schema$CommitmentAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of CommitmentsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#commitmentAggregatedList * for aggregated lists of commitments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1467,15 +1471,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Commitment resources. @@ -1484,16 +1488,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Commitment resources. */ - items: Schema$Commitment[]; + items?: Schema$Commitment[]; /** * [Output Only] Type of resource. Always compute#commitmentList for lists * of commitments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1501,26 +1505,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$CommitmentsScopedList { /** * [Output Only] A list of commitments contained in this scope. */ - commitments: Schema$Commitment[]; + commitments?: Schema$Commitment[]; /** * [Output Only] Informational warning which replaces the list of * commitments when the list is empty. */ - warning: any; + warning?: any; } /** * Message containing connection draining configuration. @@ -1530,7 +1534,7 @@ export namespace compute_v1 { * Time for which instance will be drained (not accept new connections, but * still work to finish started). */ - drainingTimeoutSec: number; + drainingTimeoutSec?: number; } /** * Represents a customer-supplied encryption key @@ -1540,24 +1544,24 @@ export namespace compute_v1 { * Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 * base64 to either encrypt or decrypt this resource. */ - rawKey: string; + rawKey?: string; /** * [Output only] The RFC 4648 base64 encoded SHA-256 hash of the * customer-supplied encryption key that protects this resource. */ - sha256: string; + sha256?: string; } export interface Schema$CustomerEncryptionKeyProtectedDisk { /** * Decrypts data associated with the disk with a customer-supplied * encryption key. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * Specifies a valid partial or full URL to an existing Persistent Disk * resource. This field is only applicable for persistent disks. */ - source: string; + source?: string; } /** * Deprecation status for a public resource. @@ -1568,25 +1572,25 @@ export namespace compute_v1 { * resource is intended to change to DELETED. This is only informational and * the status will not change unless the client explicitly changes it. */ - deleted: string; + deleted?: string; /** * An optional RFC3339 timestamp on or after which the state of this * resource is intended to change to DEPRECATED. This is only informational * and the status will not change unless the client explicitly changes it. */ - deprecated: string; + deprecated?: string; /** * An optional RFC3339 timestamp on or after which the state of this * resource is intended to change to OBSOLETE. This is only informational * and the status will not change unless the client explicitly changes it. */ - obsolete: string; + obsolete?: string; /** * The URL of the suggested replacement for a deprecated resource. The * suggested replacement resource must be the same kind of resource as the * deprecated resource. */ - replacement: string; + replacement?: string; /** * The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, * or DELETED. Operations which create a new resource using a DEPRECATED @@ -1595,7 +1599,7 @@ export namespace compute_v1 { * use OBSOLETE or DELETED resources will be rejected and result in an * error. */ - state: string; + state?: string; } /** * A Disk resource. (== resource_for beta.disks ==) (== resource_for v1.disks @@ -1605,12 +1609,12 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Encrypts the disk using a customer-supplied encryption key. After you * encrypt a disk with a customer-supplied key, you must provide the same @@ -1621,22 +1625,22 @@ export namespace compute_v1 { * be encrypted using an automatically generated key and you do not need to * provide a key to use the disk later. */ - diskEncryptionKey: Schema$CustomerEncryptionKey; + diskEncryptionKey?: Schema$CustomerEncryptionKey; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#disk for disks. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this disk, which is * essentially a hash of the labels set used for optimistic locking. The @@ -1645,29 +1649,29 @@ export namespace compute_v1 { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a disk. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this disk. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * [Output Only] Last attach timestamp in RFC3339 text format. */ - lastAttachTimestamp: string; + lastAttachTimestamp?: string; /** * [Output Only] Last detach timestamp in RFC3339 text format. */ - lastDetachTimestamp: string; + lastDetachTimestamp?: string; /** * Integer license codes indicating which licenses are attached to this * disk. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * Any applicable publicly visible licenses. */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1677,15 +1681,15 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Internal use only. */ - options: string; + options?: string; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * Size of the persistent disk, specified in GB. You can specify this field * when creating a persistent disk using the sourceImage or sourceSnapshot @@ -1694,7 +1698,7 @@ export namespace compute_v1 { * value of sizeGb must not be less than the size of the sourceImage or the * size of the snapshot. Acceptable values are 1 to 65536, inclusive. */ - sizeGb: string; + sizeGb?: string; /** * The source image used to create this disk. If the source image is * deleted, this field will not be set. To create a disk with one of the @@ -1709,12 +1713,12 @@ export namespace compute_v1 { * version of the image in that family. Replace the image name with * family/family-name: global/images/family/my-image-family */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the image used to create this disk. This * value identifies the exact image that was used to create this persistent @@ -1722,7 +1726,7 @@ export namespace compute_v1 { * was later deleted and recreated under the same name, the source image ID * would identify the exact version of the image that was used. */ - sourceImageId: string; + sourceImageId?: string; /** * The source snapshot used to create this disk. You can provide this as a * partial or full URL to the resource. For example, the following are valid @@ -1730,12 +1734,12 @@ export namespace compute_v1 { * https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot * - projects/project/global/snapshots/snapshot - global/snapshots/snapshot */ - sourceSnapshot: string; + sourceSnapshot?: string; /** * The customer-supplied encryption key of the source snapshot. Required if * the source snapshot is protected by a customer-supplied encryption key. */ - sourceSnapshotEncryptionKey: Schema$CustomerEncryptionKey; + sourceSnapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The unique ID of the snapshot used to create this disk. * This value identifies the exact snapshot that was used to create this @@ -1744,43 +1748,43 @@ export namespace compute_v1 { * source snapshot ID would identify the exact version of the snapshot that * was used. */ - sourceSnapshotId: string; + sourceSnapshotId?: string; /** * [Output Only] The status of disk creation. */ - status: string; + status?: string; /** * URL of the disk type resource describing which disk type to use to create * the disk. Provide this when creating the disk. For example: * project/zones/zone/diskTypes/pd-standard or pd-ssd */ - type: string; + type?: string; /** * [Output Only] Links to the users of the disk (attached instances) in * form: project/zones/zone/instances/instance */ - users: string[]; + users?: string[]; /** * [Output Only] URL of the zone where the disk resides. You must specify * this field as part of the HTTP request URL. It is not settable as a field * in the request body. */ - zone: string; + zone?: string; } export interface Schema$DiskAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DisksScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#diskAggregatedList for * aggregated lists of persistent disks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1788,15 +1792,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A list of Disk resources. @@ -1805,16 +1809,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Disk resources. */ - items: Schema$Disk[]; + items?: Schema$Disk[]; /** * [Output Only] Type of resource. Always compute#diskList for lists of * disks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1822,15 +1826,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$DiskMoveRequest { /** @@ -1839,31 +1843,31 @@ export namespace compute_v1 { * https://www.googleapis.com/compute/v1/projects/project/zones/zone - * projects/project/zones/zone - zones/zone */ - destinationZone: string; + destinationZone?: string; /** * The URL of the target disk to move. This can be a full or partial URL. * For example, the following are all valid URLs to a disk: - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk * - projects/project/zones/zone/disks/disk - zones/zone/disks/disk */ - targetDisk: string; + targetDisk?: string; } export interface Schema$DisksResizeRequest { /** * The new size of the persistent disk, which is specified in GB. */ - sizeGb: string; + sizeGb?: string; } export interface Schema$DisksScopedList { /** * [Output Only] A list of disks contained in this scope. */ - disks: Schema$Disk[]; + disks?: Schema$Disk[]; /** * [Output Only] Informational warning which replaces the list of disks when * the list is empty. */ - warning: any; + warning?: any; } /** * A DiskType resource. (== resource_for beta.diskTypes ==) (== resource_for @@ -1873,62 +1877,62 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Server-defined default disk size in GB. */ - defaultDiskSizeGb: string; + defaultDiskSizeGb?: string; /** * [Output Only] The deprecation status associated with this disk type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional description of this resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#diskType for disk * types. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] An optional textual description of the valid disk size, * such as "10GB-10TB". */ - validDiskSize: string; + validDiskSize?: string; /** * [Output Only] URL of the zone where the disk type resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$DiskTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1936,15 +1940,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of disk types. @@ -1953,16 +1957,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of DiskType resources. */ - items: Schema$DiskType[]; + items?: Schema$DiskType[]; /** * [Output Only] Type of resource. Always compute#diskTypeList for disk * types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -1970,26 +1974,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$DiskTypesScopedList { /** * [Output Only] A list of disk types contained in this scope. */ - diskTypes: Schema$DiskType[]; + diskTypes?: Schema$DiskType[]; /** * [Output Only] Informational warning which replaces the list of disk types * when the list is empty. */ - warning: any; + warning?: any; } /** * Represents a Firewall resource. @@ -1999,44 +2003,44 @@ export namespace compute_v1 { * The list of ALLOW rules specified by this firewall. Each rule specifies a * protocol and port-range tuple that describes a permitted connection. */ - allowed: any[]; + allowed?: any[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The list of DENY rules specified by this firewall. Each rule specifies a * protocol and port-range tuple that describes a denied connection. */ - denied: any[]; + denied?: any[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * If destination ranges are specified, the firewall will apply only to * traffic that has destination IP address in these ranges. These ranges * must be expressed in CIDR format. Only IPv4 is supported. */ - destinationRanges: string[]; + destinationRanges?: string[]; /** * Direction of traffic to which this firewall applies; default is INGRESS. * Note: For INGRESS traffic, it is NOT supported to specify * destinationRanges; For EGRESS traffic, it is NOT supported to specify * sourceRanges OR sourceTags. */ - direction: string; + direction?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#firewall for firewall * rules. */ - kind: string; + kind?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2046,7 +2050,7 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URL of the network resource for this firewall rule. If not specified when * creating a firewall rule, the default network is used: @@ -2057,7 +2061,7 @@ export namespace compute_v1 { * - projects/myproject/global/networks/my-network - * global/networks/default */ - network: string; + network?: string; /** * Priority for this rule. This is an integer between 0 and 65535, both * inclusive. When not specified, the value assumed is 1000. Relative @@ -2066,11 +2070,11 @@ export namespace compute_v1 { * precedence than a rule with priority 1). DENY rules take precedence over * ALLOW rules having equal priority. */ - priority: number; + priority?: number; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * If source ranges are specified, the firewall will apply only to traffic * that has source IP address in these ranges. These ranges must be @@ -2081,7 +2085,7 @@ export namespace compute_v1 { * not need to match both properties for the firewall to apply. Only IPv4 is * supported. */ - sourceRanges: string[]; + sourceRanges?: string[]; /** * If source service accounts are specified, the firewall will apply only to * traffic originating from an instance with a service account in this list. @@ -2095,7 +2099,7 @@ export namespace compute_v1 { * properties for the firewall to apply. sourceServiceAccounts cannot be * used at the same time as sourceTags or targetTags. */ - sourceServiceAccounts: string[]; + sourceServiceAccounts?: string[]; /** * If source tags are specified, the firewall rule applies only to traffic * with source IPs that match the primary network interfaces of VM instances @@ -2109,7 +2113,7 @@ export namespace compute_v1 { * sourceTags property. The connection does not need to match both * properties for the firewall to apply. */ - sourceTags: string[]; + sourceTags?: string[]; /** * A list of service accounts indicating sets of instances located in the * network that may make network connections as specified in allowed[]. @@ -2118,7 +2122,7 @@ export namespace compute_v1 { * specified, the firewall rule applies to all instances on the specified * network. */ - targetServiceAccounts: string[]; + targetServiceAccounts?: string[]; /** * A list of tags that controls which instances the firewall rule applies * to. If targetTags are specified, then the firewall rule applies only to @@ -2126,7 +2130,7 @@ export namespace compute_v1 { * targetTags are specified, the firewall rule applies to all instances on * the specified network. */ - targetTags: string[]; + targetTags?: string[]; } /** * Contains a list of firewalls. @@ -2135,16 +2139,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Firewall resources. */ - items: Schema$Firewall[]; + items?: Schema$Firewall[]; /** * [Output Only] Type of resource. Always compute#firewallList for lists of * firewalls. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2152,15 +2156,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A ForwardingRule resource. A ForwardingRule resource specifies which pool @@ -2177,21 +2181,21 @@ export namespace compute_v1 { * balancing, this field identifies the BackendService resource to receive * the matched traffic. */ - backendService: string; + backendService?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The IP address that this forwarding rule is serving on behalf of. * Addresses are restricted based on the forwarding rule's load @@ -2214,24 +2218,24 @@ export namespace compute_v1 { * - projects/project/regions/region/addresses/address - * regions/region/addresses/address - global/addresses/address - address */ - IPAddress: string; + IPAddress?: string; /** * The IP protocol to which this rule applies. Valid options are TCP, UDP, * ESP, AH, SCTP or ICMP. When the load balancing scheme is INTERNAL, only * TCP and UDP are valid. */ - IPProtocol: string; + IPProtocol?: string; /** * The IP Version that will be used by this forwarding rule. Valid options * are IPV4 or IPV6. This can only be specified for a global forwarding * rule. */ - ipVersion: string; + ipVersion?: string; /** * [Output Only] Type of the resource. Always compute#forwardingRule for * Forwarding Rule resources. */ - kind: string; + kind?: string; /** * This signifies what the ForwardingRule will be used for and can only take * the following values: INTERNAL, EXTERNAL The value of INTERNAL means that @@ -2239,7 +2243,7 @@ export namespace compute_v1 { * value of EXTERNAL means that this will be used for External Load * Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) */ - loadBalancingScheme: string; + loadBalancingScheme?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2249,14 +2253,14 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the network that the load balanced IP * should belong to for this Forwarding Rule. If this field is not * specified, the default network will be used. */ - network: string; + network?: string; /** * This field is used along with the target field for TargetHttpProxy, * TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, @@ -2270,7 +2274,7 @@ export namespace compute_v1 { * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, * 1688, 1883, 5222 - TargetVpnGateway: 500, 4500 */ - portRange: string; + portRange?: string; /** * This field is used along with the backend_service field for internal load * balancing. When the load balancing scheme is INTERNAL, a single port or @@ -2278,18 +2282,18 @@ export namespace compute_v1 { * to these ports will be forwarded to the backends configured with this * forwarding rule. You may specify a maximum of up to 5 ports. */ - ports: string[]; + ports?: string[]; /** * [Output Only] URL of the region where the regional forwarding rule * resides. This field is not applicable to global forwarding rules. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * This field is not used for external load balancing. For internal load * balancing, this field identifies the subnetwork that the load balanced IP @@ -2297,7 +2301,7 @@ export namespace compute_v1 { * in auto subnet mode, this field is optional. However, if the network is * in custom subnet mode, a subnetwork must be specified. */ - subnetwork: string; + subnetwork?: string; /** * The URL of the target resource to receive the matched traffic. For * regional forwarding rules, this target must live in the same region as @@ -2305,22 +2309,22 @@ export namespace compute_v1 { * global load balancing resource. The forwarded traffic must be of a type * appropriate to the target object. */ - target: string; + target?: string; } export interface Schema$ForwardingRuleAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of ForwardingRulesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#forwardingRuleAggregatedList for lists of forwarding rules. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2328,15 +2332,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of ForwardingRule resources. @@ -2345,15 +2349,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of ForwardingRule resources. */ - items: Schema$ForwardingRule[]; + items?: Schema$ForwardingRule[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2361,26 +2365,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$ForwardingRulesScopedList { /** * A list of forwarding rules contained in this scope. */ - forwardingRules: Schema$ForwardingRule[]; + forwardingRules?: Schema$ForwardingRule[]; /** * Informational warning which replaces the list of forwarding rules when * the list is empty. */ - warning: any; + warning?: any; } export interface Schema$GlobalSetLabelsRequest { /** @@ -2391,7 +2395,7 @@ export namespace compute_v1 { * changing labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * A list of labels to apply for this resource. Each label key & value * must comply with RFC1035. Specifically, the name must be 1-63 characters @@ -2402,7 +2406,7 @@ export namespace compute_v1 { * "webserver-frontend": "images". A label value can * also be empty (e.g. "my-label": ""). */ - labels: any; + labels?: any; } /** * Guest OS features. @@ -2412,7 +2416,7 @@ export namespace compute_v1 { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. */ - type: string; + type?: string; } /** * An HealthCheck resource. This resource defines a template for how @@ -2424,32 +2428,32 @@ export namespace compute_v1 { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in 3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; - httpHealthCheck: Schema$HTTPHealthCheck; - httpsHealthCheck: Schema$HTTPSHealthCheck; + healthyThreshold?: number; + httpHealthCheck?: Schema$HTTPHealthCheck; + httpsHealthCheck?: Schema$HTTPSHealthCheck; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2459,30 +2463,30 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; - sslHealthCheck: Schema$SSLHealthCheck; - tcpHealthCheck: Schema$TCPHealthCheck; + selfLink?: string; + sslHealthCheck?: Schema$SSLHealthCheck; + tcpHealthCheck?: Schema$TCPHealthCheck; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If * not specified, the default is TCP. Exactly one of the protocol-specific * health check field must be specified, which must match type field. */ - type: string; + type?: string; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * Contains a list of HealthCheck resources. @@ -2491,15 +2495,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HealthCheck resources. */ - items: Schema$HealthCheck[]; + items?: Schema$HealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2507,15 +2511,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A full or valid partial URL to a health check. For example, the following @@ -2524,24 +2528,24 @@ export namespace compute_v1 { * - projects/project-id/global/httpHealthChecks/health-check - * global/httpHealthChecks/health-check */ - export interface Schema$HealthCheckReference { healthCheck: string; } + export interface Schema$HealthCheckReference { healthCheck?: string; } export interface Schema$HealthStatus { /** * Health state of the instance. */ - healthState: string; + healthState?: string; /** * URL of the instance resource. */ - instance: string; + instance?: string; /** * The IP address represented by this resource. */ - ipAddress: string; + ipAddress?: string; /** * The port on the instance. */ - port: number; + port?: number; } /** * UrlMaps A host-matching rule for a URL. If matched, will use the named @@ -2552,18 +2556,18 @@ export namespace compute_v1 { * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The list of host patterns to match. They must be valid hostnames, except * * will match any string of ([a-z0-9-.]*). In that case, * must be the * first character and must be followed in the pattern by either - or .. */ - hosts: string[]; + hosts?: string[]; /** * The name of the PathMatcher to use to match the path portion of the URL * if the hostRule matches the URL's host portion. */ - pathMatcher: string; + pathMatcher?: string; } /** * An HttpHealthCheck resource. This resource defines a template for how @@ -2574,37 +2578,37 @@ export namespace compute_v1 { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTP health check request. If left * empty (default value), the public IP on behalf of which this health check * is performed will be used. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#httpHealthCheck for * HTTP health checks. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2614,32 +2618,32 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The TCP port number for the HTTP health check request. The default value * is 80. */ - port: number; + port?: number; /** * The request path of the HTTP health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } export interface Schema$HTTPHealthCheck { /** @@ -2647,27 +2651,27 @@ export namespace compute_v1 { * empty (default value), the IP on behalf of which this health check is * performed will be used. */ - host: string; + host?: string; /** * The TCP port number for the health check request. The default value * is 80. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The request path of the HTTP health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; } /** * Contains a list of HttpHealthCheck resources. @@ -2676,15 +2680,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HttpHealthCheck resources. */ - items: Schema$HttpHealthCheck[]; + items?: Schema$HttpHealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2692,15 +2696,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An HttpsHealthCheck resource. This resource defines a template for how @@ -2711,36 +2715,36 @@ export namespace compute_v1 { * How often (in seconds) to send a health check. The default value is 5 * seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A so-far unhealthy instance will be marked healthy after this many * consecutive successes. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTPS health check request. If left * empty (default value), the public IP on behalf of which this health check * is performed will be used. */ - host: string; + host?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2750,32 +2754,32 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The TCP port number for the HTTPS health check request. The default value * is 443. */ - port: number; + port?: number; /** * The request path of the HTTPS health check request. The default value is * "/". */ - requestPath: string; + requestPath?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * How long (in seconds) to wait before claiming failure. The default value * is 5 seconds. It is invalid for timeoutSec to have a greater value than * checkIntervalSec. */ - timeoutSec: number; + timeoutSec?: number; /** * A so-far healthy instance will be marked unhealthy after this many * consecutive failures. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } export interface Schema$HTTPSHealthCheck { /** @@ -2783,27 +2787,27 @@ export namespace compute_v1 { * empty (default value), the IP on behalf of which this health check is * performed will be used. */ - host: string; + host?: string; /** * The TCP port number for the health check request. The default value is * 443. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The request path of the HTTPS health check request. The default value is * /. */ - requestPath: string; + requestPath?: string; } /** * Contains a list of HttpsHealthCheck resources. @@ -2812,15 +2816,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of HttpsHealthCheck resources. */ - items: Schema$HttpsHealthCheck[]; + items?: Schema$HttpsHealthCheck[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -2828,15 +2832,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Image resource. (== resource_for beta.images ==) (== resource_for @@ -2847,42 +2851,42 @@ export namespace compute_v1 { * Size of the image tar.gz archive stored in Google Cloud Storage (in * bytes). */ - archiveSizeBytes: string; + archiveSizeBytes?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The deprecation status associated with this image. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Size of the image when restored onto a persistent disk (in GB). */ - diskSizeGb: string; + diskSizeGb?: string; /** * The name of the image family to which this image belongs. You can create * disks by specifying an image family instead of a specific image name. The * image family always returns its latest image that is not deprecated. The * name of the image family must comply with RFC1035. */ - family: string; + family?: string; /** * A list of features to enable on the guest operating system. Applicable * only for bootable images. Read Enabling guest operating system features * to see a list of available options. */ - guestOsFeatures: Schema$GuestOsFeature[]; + guestOsFeatures?: Schema$GuestOsFeature[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Encrypts the image using a customer-supplied encryption key. After you * encrypt an image with a customer-supplied key, you must provide the same @@ -2892,11 +2896,11 @@ export namespace compute_v1 { * image, then the disk will be encrypted using an automatically generated * key and you do not need to provide a key to use the image later. */ - imageEncryptionKey: Schema$CustomerEncryptionKey; + imageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] Type of the resource. Always compute#image for images. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this image, which is * essentially a hash of the labels used for optimistic locking. The @@ -2905,21 +2909,21 @@ export namespace compute_v1 { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve an image. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this image. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * Integer license codes indicating which licenses are attached to this * image. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * Any applicable license URI. */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -2929,15 +2933,15 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The parameters of the raw disk image. */ - rawDisk: any; + rawDisk?: any; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL of the source disk used to create this image. This can be a full or * valid partial URL. You must provide either this property or the @@ -2946,66 +2950,66 @@ export namespace compute_v1 { * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk * - projects/project/zones/zone/disks/disk - zones/zone/disks/disk */ - sourceDisk: string; + sourceDisk?: string; /** * The customer-supplied encryption key of the source disk. Required if the * source disk is protected by a customer-supplied encryption key. */ - sourceDiskEncryptionKey: Schema$CustomerEncryptionKey; + sourceDiskEncryptionKey?: Schema$CustomerEncryptionKey; /** * The ID value of the disk used to create this image. This value may be * used to determine whether the image was taken from the current or a * previous instance of a given disk name. */ - sourceDiskId: string; + sourceDiskId?: string; /** * URL of the source image used to create this image. This can be a full or * valid partial URL. You must provide exactly one of: - this property, or * - the rawDisk.source property, or - the sourceDisk property in order * to create an image. */ - sourceImage: string; + sourceImage?: string; /** * The customer-supplied encryption key of the source image. Required if the * source image is protected by a customer-supplied encryption key. */ - sourceImageEncryptionKey: Schema$CustomerEncryptionKey; + sourceImageEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the image used to create this image. This * value may be used to determine whether the image was taken from the * current or a previous instance of a given image name. */ - sourceImageId: string; + sourceImageId?: string; /** * URL of the source snapshot used to create this image. This can be a full * or valid partial URL. You must provide exactly one of: - this property, * or - the sourceImage property, or - the rawDisk.source property, or * - the sourceDisk property in order to create an image. */ - sourceSnapshot: string; + sourceSnapshot?: string; /** * The customer-supplied encryption key of the source snapshot. Required if * the source snapshot is protected by a customer-supplied encryption key. */ - sourceSnapshotEncryptionKey: Schema$CustomerEncryptionKey; + sourceSnapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the snapshot used to create this image. * This value may be used to determine whether the snapshot was taken from * the current or a previous instance of a given snapshot name. */ - sourceSnapshotId: string; + sourceSnapshotId?: string; /** * The type of the image used to create this disk. The default and only * value is RAW */ - sourceType: string; + sourceType?: string; /** * [Output Only] The status of the image. An image can be used to create * other resources, such as instances, only after the image has been * successfully created and the status is set to READY. Possible values are * FAILED, PENDING, or READY. */ - status: string; + status?: string; } /** * Contains a list of images. @@ -3014,15 +3018,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Image resources. */ - items: Schema$Image[]; + items?: Schema$Image[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3030,15 +3034,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Instance resource. (== resource_for beta.instances ==) (== resource_for @@ -3051,58 +3055,58 @@ export namespace compute_v1 { * instance to forward routes. For more information, see Enabling IP * Forwarding. */ - canIpForward: boolean; + canIpForward?: boolean; /** * [Output Only] The CPU platform used by this instance. */ - cpuPlatform: string; + cpuPlatform?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Whether the resource should be protected against deletion. */ - deletionProtection: boolean; + deletionProtection?: boolean; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Array of disks associated with this instance. Persistent disks must be * created before you can assign them. */ - disks: Schema$AttachedDisk[]; + disks?: Schema$AttachedDisk[]; /** * A list of the type and count of accelerator cards attached to the * instance. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#instance for * instances. */ - kind: string; + kind?: string; /** * A fingerprint for this request, which is essentially a hash of the - * metadata's contents and used for optimistic locking. The fingerprint - * is initially generated by Compute Engine and changes after every request - * to modify or update metadata. You must always provide an up-to-date - * fingerprint hash in order to update or change metadata. To see the - * latest fingerprint, make get() request to the instance. + * label's contents and used for optimistic locking. The fingerprint is + * initially generated by Compute Engine and changes after every request to + * modify or update labels. You must always provide an up-to-date + * fingerprint hash in order to update or change labels. To see the latest + * fingerprint, make get() request to the instance. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this instance. These can be later modified by the * setLabels method. */ - labels: any; + labels?: any; /** * Full or partial URL of the machine type resource to use for this * instance, in the format: zones/zone/machineTypes/machine-type. This is @@ -3117,19 +3121,19 @@ export namespace compute_v1 { * zones/us-central1-f/machineTypes/custom-4-5120 For a full list of * restrictions, read the Specifications for custom machine types. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs assigned to this instance. This includes * custom metadata and predefined keys. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * Specifies a minimum CPU platform for the VM instance. Applicable values * are the friendly names of CPU platforms, such as minCpuPlatform: * "Intel Haswell" or minCpuPlatform: "Intel Sandy * Bridge". */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The resource name must be 1-63 characters long, and comply @@ -3139,22 +3143,22 @@ export namespace compute_v1 { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * An array of network configurations for this instance. These specify how * interfaces are configured to interact with other network services, such * as connecting to the internet. Multiple interfaces are supported per * instance. */ - networkInterfaces: Schema$NetworkInterface[]; + networkInterfaces?: Schema$NetworkInterface[]; /** * Sets the scheduling options for this instance. */ - scheduling: Schema$Scheduling; + scheduling?: Schema$Scheduling; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * A list of service accounts, with their specified scopes, authorized for * this instance. Only one service account per VM instance is supported. @@ -3162,50 +3166,50 @@ export namespace compute_v1 { * metadata server and used to authenticate applications on the instance. * See Service Accounts for more information. */ - serviceAccounts: Schema$ServiceAccount[]; + serviceAccounts?: Schema$ServiceAccount[]; /** * [Output Only] Whether a VM has been restricted for start because Compute * Engine has detected suspicious activity. */ - startRestricted: boolean; + startRestricted?: boolean; /** * [Output Only] The status of the instance. One of the following values: * PROVISIONING, STAGING, RUNNING, STOPPING, STOPPED, SUSPENDING, SUSPENDED, * and TERMINATED. */ - status: string; + status?: string; /** * [Output Only] An optional, human-readable explanation of the status. */ - statusMessage: string; + statusMessage?: string; /** * A list of tags to apply to this instance. Tags are used to identify valid * sources or targets for network firewalls and are specified by the client * during instance creation. The tags can be later modified by the setTags * method. Each tag within the list must comply with RFC1035. */ - tags: Schema$Tags; + tags?: Schema$Tags; /** * [Output Only] URL of the zone where the instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$InstanceAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstancesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#instanceAggregatedList for * aggregated lists of Instance resources. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3213,15 +3217,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * InstanceGroups (== resource_for beta.instanceGroups ==) (== resource_for @@ -3233,33 +3237,33 @@ export namespace compute_v1 { * [Output Only] The creation timestamp for this instance group in RFC3339 * text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The fingerprint of the named ports. The system uses this * fingerprint to detect conflicts when multiple users change the named * ports concurrently. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] A unique identifier for this instance group, generated by * the server. */ - id: string; + id?: string; /** * [Output Only] The resource type, which is always compute#instanceGroup * for instance groups. */ - kind: string; + kind?: string; /** * The name of the instance group. The name must be 1-63 characters long, * and comply with RFC1035. */ - name: string; + name?: string; /** * Assigns a name to a port number. For example: {name: "http", * port: 80} This allows the system to reference ports by the assigned name @@ -3267,52 +3271,52 @@ export namespace compute_v1 { * For example: [{name: "http", port: 80},{name: "http", * port: 8080}] Named ports apply to all instances in this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * The URL of the network to which all instances in the instance group * belong. */ - network: string; + network?: string; /** * [Output Only] The URL of the region where the instance group is located * (for regional resources). */ - region: string; + region?: string; /** * [Output Only] The URL for this instance group. The server generates this * URL. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The total number of instances in the instance group. */ - size: number; + size?: number; /** * [Output Only] The URL of the subnetwork to which all instances in the * instance group belong. */ - subnetwork: string; + subnetwork?: string; /** * [Output Only] The URL of the zone where the instance group is located * (for zonal resources). */ - zone: string; + zone?: string; } export interface Schema$InstanceGroupAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#instanceGroupAggregatedList for aggregated lists of instance * groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3320,15 +3324,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A list of InstanceGroup resources. @@ -3337,16 +3341,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroup resources. */ - items: Schema$InstanceGroup[]; + items?: Schema$InstanceGroup[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupList for instance group lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3354,15 +3358,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An Instance Group Manager resource. (== resource_for @@ -3377,84 +3381,86 @@ export namespace compute_v1 { * random four-character string to the base instance name. The base instance * name must comply with RFC1035. */ - baseInstanceName: string; + baseInstanceName?: string; /** * [Output Only] The creation timestamp for this managed instance group in * RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The list of instance actions and the number of instances in * this managed instance group that are scheduled for each of those actions. */ - currentActions: Schema$InstanceGroupManagerActionsSummary; + currentActions?: Schema$InstanceGroupManagerActionsSummary; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** - * [Output Only] The fingerprint of the resource data. You can use this - * optional field for optimistic locking when you update the resource. + * Fingerprint of this resource. This field may be used in optimistic + * locking. It will be ignored when inserting an InstanceGroupManager. An + * up-to-date fingerprint must be provided in order to update the + * InstanceGroupManager or the field need to be unset. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] A unique identifier for this resource type. The server * generates this identifier. */ - id: string; + id?: string; /** * [Output Only] The URL of the Instance Group resource. */ - instanceGroup: string; + instanceGroup?: string; /** * The URL of the instance template that is specified for this managed * instance group. The group uses this template to create all new instances * in the managed instance group. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] The resource type, which is always * compute#instanceGroupManager for managed instance groups. */ - kind: string; + kind?: string; /** * The name of the managed instance group. The name must be 1-63 characters * long, and comply with RFC1035. */ - name: string; + name?: string; /** * Named ports configured for the Instance Groups complementary to this * Instance Group Manager. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * [Output Only] The URL of the region where the managed instance group * resides (for regional resources). */ - region: string; + region?: string; /** * [Output Only] The URL for this managed instance group. The server defines * this URL. */ - selfLink: string; + selfLink?: string; /** * The URLs for all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to * all of the instances in the managed instance group. */ - targetPools: string[]; + targetPools?: string[]; /** * The target number of running instances for this managed instance group. * Deleting or abandoning instances reduces this number. Resizing the group * changes this number. */ - targetSize: number; + targetSize?: number; /** * [Output Only] The URL of the zone where the managed instance group is * located (for zonal resources). */ - zone: string; + zone?: string; } export interface Schema$InstanceGroupManagerActionsSummary { /** @@ -3462,7 +3468,7 @@ export namespace compute_v1 { * that are scheduled to be abandoned. Abandoning an instance removes it * from the managed instance group without deleting it. */ - abandoning: number; + abandoning?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be created or are currently being created. If the group @@ -3471,24 +3477,24 @@ export namespace compute_v1 { * field will not be populated; instead, the creatingWithoutRetries field * will be populated. */ - creating: number; + creating?: number; /** * [Output Only] The number of instances that the managed instance group * will attempt to create. The group attempts to create each instance only * once. If the group fails to create any of these instances, it decreases * the group's targetSize value accordingly. */ - creatingWithoutRetries: number; + creatingWithoutRetries?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be deleted or are currently being deleted. */ - deleting: number; + deleting?: number; /** * [Output Only] The number of instances in the managed instance group that * are running and have no scheduled actions. */ - none: number; + none?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be recreated or are currently being being recreated. @@ -3496,35 +3502,35 @@ export namespace compute_v1 { * creates a new disk from the image that is defined in the instance * template. */ - recreating: number; + recreating?: number; /** * [Output Only] The number of instances in the managed instance group that * are being reconfigured with properties that do not require a restart or a * recreate action. For example, setting or removing target pools for the * instance. */ - refreshing: number; + refreshing?: number; /** * [Output Only] The number of instances in the managed instance group that * are scheduled to be restarted or are currently being restarted. */ - restarting: number; + restarting?: number; } export interface Schema$InstanceGroupManagerAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManagersScopedList resources. */ - items: any; + items?: any; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerAggregatedList for an aggregated list of * managed instance groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3532,15 +3538,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * [Output Only] A list of managed instance groups. @@ -3549,16 +3555,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManager resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerList for a list of managed instance groups. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3566,54 +3572,54 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagersAbandonInstancesRequest { /** * The URLs of one or more instances to abandon. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersDeleteInstancesRequest { /** * The URLs of one or more instances to delete. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersListManagedInstancesResponse { /** * [Output Only] The list of instances in the managed instance group. */ - managedInstances: Schema$ManagedInstance[]; + managedInstances?: Schema$ManagedInstance[]; } export interface Schema$InstanceGroupManagersRecreateInstancesRequest { /** * The URLs of one or more instances to recreate. This can be a full URL or * a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersScopedList { /** * [Output Only] The list of managed instance groups that are contained in * the specified project and zone. */ - instanceGroupManagers: Schema$InstanceGroupManager[]; + instanceGroupManagers?: Schema$InstanceGroupManager[]; /** * [Output Only] The warning that replaces the list of managed instance * groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupManagersSetInstanceTemplateRequest { /** @@ -3621,7 +3627,7 @@ export namespace compute_v1 { * instance group. The group uses this template to create all new instances * in the managed instance group. */ - instanceTemplate: string; + instanceTemplate?: string; } export interface Schema$InstanceGroupManagersSetTargetPoolsRequest { /** @@ -3632,36 +3638,36 @@ export namespace compute_v1 { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of target pool URLs that instances in this managed instance * group belong to. The managed instance group applies these target pools to * all of the instances in the group. Existing instances and new instances * in the group all receive these target pool settings. */ - targetPools: string[]; + targetPools?: string[]; } export interface Schema$InstanceGroupsAddInstancesRequest { /** * The list of instances to add to the instance group. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$InstanceGroupsListInstances { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceWithNamedPorts resources. */ - items: Schema$InstanceWithNamedPorts[]; + items?: Schema$InstanceWithNamedPorts[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupsListInstances for the list of instances in the * specified instance group. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3669,15 +3675,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupsListInstancesRequest { /** @@ -3685,25 +3691,25 @@ export namespace compute_v1 { * options are ALL or RUNNING. If you do not specify this parameter the list * includes all instances regardless of their state. */ - instanceState: string; + instanceState?: string; } export interface Schema$InstanceGroupsRemoveInstancesRequest { /** * The list of instances to remove from the instance group. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$InstanceGroupsScopedList { /** * [Output Only] The list of instance groups that are contained in this * scope. */ - instanceGroups: Schema$InstanceGroup[]; + instanceGroups?: Schema$InstanceGroup[]; /** * [Output Only] An informational warning that replaces the list of instance * groups when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstanceGroupsSetNamedPortsRequest { /** @@ -3714,11 +3720,11 @@ export namespace compute_v1 { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of named ports to set for this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; } /** * Contains a list of instances. @@ -3727,16 +3733,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Instance resources. */ - items: Schema$Instance[]; + items?: Schema$Instance[]; /** * [Output Only] Type of resource. Always compute#instanceList for lists of * Instance resources. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3744,15 +3750,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of instance referrers. @@ -3761,16 +3767,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Reference resources. */ - items: Schema$Reference[]; + items?: Schema$Reference[]; /** * [Output Only] Type of resource. Always compute#instanceListReferrers for * lists of Instance referrers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -3778,15 +3784,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceMoveRequest { /** @@ -3795,7 +3801,7 @@ export namespace compute_v1 { * - https://www.googleapis.com/compute/v1/projects/project/zones/zone - * projects/project/zones/zone - zones/zone */ - destinationZone: string; + destinationZone?: string; /** * The URL of the target instance to move. This can be a full or partial * URL. For example, the following are all valid URLs to an instance: - @@ -3803,7 +3809,7 @@ export namespace compute_v1 { * - projects/project/zones/zone/instances/instance - * zones/zone/instances/instance */ - targetInstance: string; + targetInstance?: string; } export interface Schema$InstanceProperties { /** @@ -3814,37 +3820,37 @@ export namespace compute_v1 { * resource, specify true. If unsure, leave this set to false. See the * Enable IP forwarding documentation for more information. */ - canIpForward: boolean; + canIpForward?: boolean; /** * An optional text description for the instances that are created from this * instance template. */ - description: string; + description?: string; /** * An array of disks that are associated with the instances that are created * from this template. */ - disks: Schema$AttachedDisk[]; + disks?: Schema$AttachedDisk[]; /** * A list of guest accelerator cards' type and count to use for * instances created from the instance template. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; /** * Labels to apply to instances that are created from this template. */ - labels: any; + labels?: any; /** * The machine type to use for instances that are created from this * template. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs to assign to instances that are created from * this template. These pairs can consist of custom metadata or predefined * keys. See Project and instance metadata for more information. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * Minimum cpu/platform to be used by this instance. The instance may be * scheduled on the specified or newer cpu/platform. Applicable values are @@ -3852,47 +3858,47 @@ export namespace compute_v1 { * Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more * information, read Specifying a Minimum CPU Platform. */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * An array of network access configurations for this interface. */ - networkInterfaces: Schema$NetworkInterface[]; + networkInterfaces?: Schema$NetworkInterface[]; /** * Specifies the scheduling options for the instances that are created from * this template. */ - scheduling: Schema$Scheduling; + scheduling?: Schema$Scheduling; /** * A list of service accounts with specified scopes. Access tokens for these * service accounts are available to the instances that are created from * this template. Use metadata queries to obtain the access tokens for these * instances. */ - serviceAccounts: Schema$ServiceAccount[]; + serviceAccounts?: Schema$ServiceAccount[]; /** * A list of tags to apply to the instances that are created from this * template. The tags identify valid sources or targets for network * firewalls. The setTags method can modify this list of tags. Each tag * within the list must comply with RFC1035. */ - tags: Schema$Tags; + tags?: Schema$Tags; } export interface Schema$InstanceReference { /** * The URL for a specific instance. */ - instance: string; + instance?: string; } export interface Schema$InstancesScopedList { /** * [Output Only] A list of instances contained in this scope. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * [Output Only] Informational warning which replaces the list of instances * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$InstancesSetLabelsRequest { /** @@ -3900,15 +3906,15 @@ export namespace compute_v1 { * prevent conflicts. Provide the latest fingerprint value when making a * request to add or change labels. */ - labelFingerprint: string; - labels: any; + labelFingerprint?: string; + labels?: any; } export interface Schema$InstancesSetMachineResourcesRequest { /** * A list of the type and count of accelerator cards attached to the * instance. */ - guestAccelerators: Schema$AcceleratorConfig[]; + guestAccelerators?: Schema$AcceleratorConfig[]; } export interface Schema$InstancesSetMachineTypeRequest { /** @@ -3916,23 +3922,23 @@ export namespace compute_v1 { * full list of machine types. For example: * zones/us-central1-f/machineTypes/n1-standard-1 */ - machineType: string; + machineType?: string; } export interface Schema$InstancesSetMinCpuPlatformRequest { /** * Minimum cpu/platform this instance should be started at. */ - minCpuPlatform: string; + minCpuPlatform?: string; } export interface Schema$InstancesSetServiceAccountRequest { /** * Email address of the service account. */ - email: string; + email?: string; /** * The list of scopes to be made available for this service account. */ - scopes: string[]; + scopes?: string[]; } export interface Schema$InstancesStartWithEncryptionKeyRequest { /** @@ -3942,7 +3948,7 @@ export namespace compute_v1 { * protected with a customer-supplied encryption key it should not be * specified. */ - disks: Schema$CustomerEncryptionKeyProtectedDisk[]; + disks?: Schema$CustomerEncryptionKeyProtectedDisk[]; } /** * An Instance Template resource. (== resource_for beta.instanceTemplates ==) @@ -3953,22 +3959,22 @@ export namespace compute_v1 { * [Output Only] The creation timestamp for this instance template in * RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A unique identifier for this instance template. The server * defines this identifier. */ - id: string; + id?: string; /** * [Output Only] The resource type, which is always compute#instanceTemplate * for instance templates. */ - kind: string; + kind?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -3978,16 +3984,16 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The instance properties for this instance template. */ - properties: Schema$InstanceProperties; + properties?: Schema$InstanceProperties; /** * [Output Only] The URL for this instance template. The server defines this * URL. */ - selfLink: string; + selfLink?: string; } /** * A list of instance templates. @@ -3996,16 +4002,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceTemplate resources. */ - items: Schema$InstanceTemplate[]; + items?: Schema$InstanceTemplate[]; /** * [Output Only] The resource type, which is always * compute#instanceTemplatesListResponse for instance template lists. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4013,29 +4019,29 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$InstanceWithNamedPorts { /** * [Output Only] The URL of the instance. */ - instance: string; + instance?: string; /** * [Output Only] The named ports that belong to this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; /** * [Output Only] The status of the instance. */ - status: string; + status?: string; } /** * Represents an Interconnects resource. The Interconnects resource is a @@ -4050,71 +4056,71 @@ export namespace compute_v1 { * packets can be carried over the interconnect and no BGP routes are * exchanged over it. By default, the status is set to true. */ - adminEnabled: boolean; + adminEnabled?: boolean; /** * [Output Only] A list of CircuitInfo objects, that describe the individual * circuits in this LAG. */ - circuitInfos: Schema$InterconnectCircuitInfo[]; + circuitInfos?: Schema$InterconnectCircuitInfo[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * Customer name, to put in the Letter of Authorization as the party * authorized to request a crossconnect. */ - customerName: string; + customerName?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A list of outages expected for this Interconnect. */ - expectedOutages: Schema$InterconnectOutageNotification[]; + expectedOutages?: Schema$InterconnectOutageNotification[]; /** * [Output Only] IP address configured on the Google side of the * Interconnect link. This can be used only for ping tests. */ - googleIpAddress: string; + googleIpAddress?: string; /** * [Output Only] Google reference ID; to be used when raising support * tickets with Google or otherwise to debug backend connectivity issues. */ - googleReferenceId: string; + googleReferenceId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of the URLs of all InterconnectAttachments * configured to use this Interconnect. */ - interconnectAttachments: string[]; + interconnectAttachments?: string[]; /** * Type of interconnect. Note that "IT_PRIVATE" has been * deprecated in favor of "DEDICATED" */ - interconnectType: string; + interconnectType?: string; /** * [Output Only] Type of the resource. Always compute#interconnect for * interconnects. */ - kind: string; + kind?: string; /** * Type of link requested. This field indicates speed of each of the links * in the bundle, not the entire bundle. Only 10G per link is allowed for a * dedicated interconnect. Options: Ethernet_10G_LR */ - linkType: string; + linkType?: string; /** * URL of the InterconnectLocation object that represents where this * connection is to be provisioned. */ - location: string; + location?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4124,38 +4130,38 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Email address to contact the customer NOC for operations and maintenance * notifications regarding this Interconnect. If specified, this will be * used for notifications in addition to all other forms described, such as * Stackdriver logs alerting and Cloud Notifications. */ - nocContactEmail: string; + nocContactEmail?: string; /** * [Output Only] The current status of whether or not this Interconnect is * functional. */ - operationalStatus: string; + operationalStatus?: string; /** * [Output Only] IP address configured on the customer side of the * Interconnect link. The customer should configure this IP address during * turnup when prompted by Google NOC. This can be used only for ping tests. */ - peerIpAddress: string; + peerIpAddress?: string; /** * [Output Only] Number of links actually provisioned in this interconnect. */ - provisionedLinkCount: number; + provisionedLinkCount?: number; /** * Target number of physical links in the link bundle, as requested by the * customer. */ - requestedLinkCount: number; + requestedLinkCount?: number; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Represents an InterconnectAttachment (VLAN attachment) resource. For more @@ -4168,40 +4174,40 @@ export namespace compute_v1 { * [Output Only] IPv4 address + prefix length to be configured on Cloud * Router Interface for this interconnect attachment. */ - cloudRouterIpAddress: string; + cloudRouterIpAddress?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] IPv4 address + prefix length to be configured on the * customer router subinterface for this interconnect attachment. */ - customerRouterIpAddress: string; + customerRouterIpAddress?: string; /** * An optional description of this resource. */ - description: string; + description?: string; /** * [Output Only] Google reference ID, to be used when raising support * tickets with Google or otherwise to debug backend connectivity issues. */ - googleReferenceId: string; + googleReferenceId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * URL of the underlying Interconnect object that this attachment's * traffic will traverse through. */ - interconnect: string; + interconnect?: string; /** * [Output Only] Type of the resource. Always compute#interconnectAttachment * for interconnect attachments. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4211,51 +4217,51 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] The current status of whether or not this interconnect * attachment is functional. */ - operationalStatus: string; + operationalStatus?: string; /** * [Output Only] Information specific to an InterconnectAttachment. This * property is populated if the interconnect that this is attached to is of * type DEDICATED. */ - privateInterconnectInfo: Schema$InterconnectAttachmentPrivateInfo; + privateInterconnectInfo?: Schema$InterconnectAttachmentPrivateInfo; /** * [Output Only] URL of the region where the regional interconnect * attachment resides. You must specify this field as part of the HTTP * request URL. It is not settable as a field in the request body. */ - region: string; + region?: string; /** * URL of the cloud router to be used for dynamic routing. This router must * be in the same region as this InterconnectAttachment. The * InterconnectAttachment will automatically connect the Interconnect to the * network & region within which the Cloud Router is configured. */ - router: string; + router?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$InterconnectAttachmentAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectAttachmentsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always * compute#interconnectAttachmentAggregatedList for aggregated lists of * interconnect attachments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4263,15 +4269,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Response to the list request, and contains a list of interconnect @@ -4281,16 +4287,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectAttachment resources. */ - items: Schema$InterconnectAttachment[]; + items?: Schema$InterconnectAttachment[]; /** * [Output Only] Type of resource. Always compute#interconnectAttachmentList * for lists of interconnect attachments. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4298,15 +4304,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Information for an interconnect attachment when this belongs to an @@ -4317,18 +4323,18 @@ export namespace compute_v1 { * [Output Only] 802.1q encapsulation tag to be used for traffic between * Google and the customer, going to and from this network and region. */ - tag8021q: number; + tag8021q?: number; } export interface Schema$InterconnectAttachmentsScopedList { /** * A list of interconnect attachments contained in this scope. */ - interconnectAttachments: Schema$InterconnectAttachment[]; + interconnectAttachments?: Schema$InterconnectAttachment[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } /** * Describes a single physical circuit between the Customer and Google. @@ -4339,16 +4345,16 @@ export namespace compute_v1 { /** * Customer-side demarc ID for this circuit. */ - customerDemarcId: string; + customerDemarcId?: string; /** * Google-assigned unique ID for this circuit. Assigned at circuit turn-up. */ - googleCircuitId: string; + googleCircuitId?: string; /** * Google-side demarc ID for this circuit. Assigned at circuit turn-up and * provided by Google to the customer in the LOA. */ - googleDemarcId: string; + googleDemarcId?: string; } /** * Response to the list request, and contains a list of interconnects. @@ -4357,16 +4363,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Interconnect resources. */ - items: Schema$Interconnect[]; + items?: Schema$Interconnect[]; /** * [Output Only] Type of resource. Always compute#interconnectList for lists * of interconnects. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4374,15 +4380,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents an InterconnectLocations resource. The InterconnectLocations @@ -4394,70 +4400,70 @@ export namespace compute_v1 { * [Output Only] The postal address of the Point of Presence, each line in * the address is separated by a newline character. */ - address: string; + address?: string; /** * [Output Only] Availability zone for this location. Within a metropolitan * area (metro), maintenance will not be simultaneously scheduled in more * than one availability zone. Example: "zone1" or * "zone2". */ - availabilityZone: string; + availabilityZone?: string; /** * [Output Only] Metropolitan area designator that indicates which city an * interconnect is located. For example: "Chicago, IL", * "Amsterdam, Netherlands". */ - city: string; + city?: string; /** * [Output Only] Continent for this location. */ - continent: string; + continent?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] An optional description of the resource. */ - description: string; + description?: string; /** * [Output Only] The name of the provider for this facility (e.g., EQUINIX). */ - facilityProvider: string; + facilityProvider?: string; /** * [Output Only] A provider-assigned Identifier for this facility (e.g., * Ashburn-DC1). */ - facilityProviderFacilityId: string; + facilityProviderFacilityId?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#interconnectLocation * for interconnect locations. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The peeringdb identifier for this facility (corresponding * with a netfac type in peeringdb). */ - peeringdbFacilityId: string; + peeringdbFacilityId?: string; /** * [Output Only] A list of InterconnectLocation.RegionInfo objects, that * describe parameters pertaining to the relation between this * InterconnectLocation and various Google Cloud regions. */ - regionInfos: Schema$InterconnectLocationRegionInfo[]; + regionInfos?: Schema$InterconnectLocationRegionInfo[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Response to the list request, and contains a list of interconnect @@ -4467,16 +4473,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InterconnectLocation resources. */ - items: Schema$InterconnectLocation[]; + items?: Schema$InterconnectLocation[]; /** * [Output Only] Type of resource. Always compute#interconnectLocationList * for lists of interconnect locations. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4484,15 +4490,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Information about any potential InterconnectAttachments between an @@ -4504,58 +4510,58 @@ export namespace compute_v1 { * Expected round-trip time in milliseconds, from this InterconnectLocation * to a VM in this region. */ - expectedRttMs: string; + expectedRttMs?: string; /** * Identifies the network presence of this location. */ - locationPresence: string; + locationPresence?: string; /** * URL for the region of this location. */ - region: string; + region?: string; } /** * Description of a planned outage on this Interconnect. Next id: 9 */ export interface Schema$InterconnectOutageNotification { /** - * Iff issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit - * IDs that will be affected. + * If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs + * that will be affected. */ - affectedCircuits: string[]; + affectedCircuits?: string[]; /** * A description about the purpose of the outage. */ - description: string; + description?: string; /** * Scheduled end time for the outage (milliseconds since Unix epoch). */ - endTime: string; + endTime?: string; /** * Form this outage is expected to take. Note that the "IT_" * versions of this enum have been deprecated in favor of the unprefixed * values. */ - issueType: string; + issueType?: string; /** * Unique identifier for this outage notification. */ - name: string; + name?: string; /** * The party that generated this notification. Note that * "NSRC_GOOGLE" has been deprecated in favor of * "GOOGLE" */ - source: string; + source?: string; /** * Scheduled start time for the outage (milliseconds since Unix epoch). */ - startTime: string; + startTime?: string; /** * State of this notification. Note that the "NS_" versions of * this enum have been deprecated in favor of the unprefixed values. */ - state: string; + state?: string; } /** * A license resource. @@ -4565,120 +4571,120 @@ export namespace compute_v1 { * [Output Only] Deprecated. This field no longer reflects whether a license * charges a usage fee. */ - chargesUseFee: boolean; + chargesUseFee?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#license for licenses. */ - kind: string; + kind?: string; /** * [Output Only] The unique code used to attach this license to images, * snapshots, and disks. */ - licenseCode: string; + licenseCode?: string; /** * [Output Only] Name of the resource. The name is 1-63 characters long and * complies with RFC1035. */ - name: string; - resourceRequirements: Schema$LicenseResourceRequirements; + name?: string; + resourceRequirements?: Schema$LicenseResourceRequirements; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * If false, licenses will not be copied from the source resource when * creating an image from a disk, disk from snapshot, or snapshot from disk. */ - transferable: boolean; + transferable?: boolean; } export interface Schema$LicenseCode { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Description of this License Code. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#licenseCode for licenses. */ - kind: string; + kind?: string; /** * [Output Only] URL and description aliases of Licenses with the same * License Code. */ - licenseAlias: Schema$LicenseCodeLicenseAlias[]; + licenseAlias?: Schema$LicenseCodeLicenseAlias[]; /** * [Output Only] Name of the resource. The name is 1-20 characters long and * must be a valid 64 bit integer. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Current state of this License Code. */ - state: string; + state?: string; /** * [Output Only] If true, the license will remain attached when creating * images or snapshots from disks. Otherwise, the license is not * transferred. */ - transferable: boolean; + transferable?: boolean; } export interface Schema$LicenseCodeLicenseAlias { /** * [Output Only] Description of this License Code. */ - description: string; + description?: string; /** * [Output Only] URL of license corresponding to this License Code. */ - selfLink: string; + selfLink?: string; } export interface Schema$LicenseResourceRequirements { /** * Minimum number of guest cpus required to use the Instance. Enforced at * Instance creation and Instance start. */ - minGuestCpuCount: number; + minGuestCpuCount?: number; /** * Minimum memory required to use the Instance. Enforced at Instance * creation and Instance start. */ - minMemoryMb: number; + minMemoryMb?: number; } export interface Schema$LicensesListResponse { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of License resources. */ - items: Schema$License[]; + items?: Schema$License[]; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4686,15 +4692,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A Machine Type resource. (== resource_for v1.machineTypes ==) (== @@ -4704,85 +4710,85 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this machine type. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] An optional textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The number of virtual CPUs that are available to the * instance. */ - guestCpus: number; + guestCpus?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Deprecated] This property is deprecated and will never be populated with * any relevant values. */ - imageSpaceGb: number; + imageSpaceGb?: number; /** * [Output Only] Whether this machine type has a shared CPU. See Shared-core * machine types for more information. */ - isSharedCpu: boolean; + isSharedCpu?: boolean; /** * [Output Only] The type of the resource. Always compute#machineType for * machine types. */ - kind: string; + kind?: string; /** * [Output Only] Maximum persistent disks allowed. */ - maximumPersistentDisks: number; + maximumPersistentDisks?: number; /** * [Output Only] Maximum total persistent disks size (GB) allowed. */ - maximumPersistentDisksSizeGb: string; + maximumPersistentDisksSizeGb?: string; /** * [Output Only] The amount of physical memory available to the instance, * defined in MB. */ - memoryMb: number; + memoryMb?: number; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] A list of extended scratch disks assigned to the instance. */ - scratchDisks: any[]; + scratchDisks?: any[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The name of the zone where the machine type resides, such * as us-central1-a. */ - zone: string; + zone?: string; } export interface Schema$MachineTypeAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of MachineTypesScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#machineTypeAggregatedList * for aggregated lists of machine types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4790,15 +4796,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of machine types. @@ -4807,16 +4813,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of MachineType resources. */ - items: Schema$MachineType[]; + items?: Schema$MachineType[]; /** * [Output Only] Type of resource. Always compute#machineTypeList for lists * of machine types. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -4824,26 +4830,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$MachineTypesScopedList { /** * [Output Only] A list of machine types contained in this scope. */ - machineTypes: Schema$MachineType[]; + machineTypes?: Schema$MachineType[]; /** * [Output Only] An informational warning that appears when the machine * types list is empty. */ - warning: any; + warning?: any; } /** * Next available tag: 12 @@ -4871,34 +4877,34 @@ export namespace compute_v1 { * instance group has created the instance and it is in the process of being * verified. */ - currentAction: string; + currentAction?: string; /** * [Output only] The unique identifier for this resource. This field is * empty when instance does not exist. */ - id: string; + id?: string; /** * [Output Only] The URL of the instance. The URL can exist even if the * instance has not yet been created. */ - instance: string; + instance?: string; /** * [Output Only] The status of the instance. This field is empty when the * instance does not exist. */ - instanceStatus: string; + instanceStatus?: string; /** * [Output Only] Information about the last attempt to create or delete the * instance. */ - lastAttempt: Schema$ManagedInstanceLastAttempt; + lastAttempt?: Schema$ManagedInstanceLastAttempt; } export interface Schema$ManagedInstanceLastAttempt { /** * [Output Only] Encountered errors during the last attempt to create or * delete the instance. */ - errors: any; + errors?: any; } /** * A metadata key/value entry. @@ -4911,16 +4917,16 @@ export namespace compute_v1 { * every request to modify or update metadata. You must always provide an * up-to-date fingerprint hash in order to update or change metadata. */ - fingerprint: string; + fingerprint?: string; /** * Array of key/value pairs. The total size of all keys and values must be * less than 512 KB. */ - items: any[]; + items?: any[]; /** * [Output Only] Type of the resource. Always compute#metadata for metadata. */ - kind: string; + kind?: string; } /** * The named port. For example: . @@ -4930,11 +4936,11 @@ export namespace compute_v1 { * The name for this named port. The name must be 1-63 characters long, and * comply with RFC1035. */ - name: string; + name?: string; /** * The port number, which can be a value between 1 and 65535. */ - port: number; + port?: number; } /** * Represents a Network resource. Read Networks and Firewalls for more @@ -4949,37 +4955,37 @@ export namespace compute_v1 { * default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork * per region. */ - autoCreateSubnetworks: boolean; + autoCreateSubnetworks?: boolean; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * A gateway address for default routing to other networks. This value is * read only and is selected by the Google Compute Engine, typically as the * first usable address in the IPv4Range. */ - gatewayIPv4: string; + gatewayIPv4?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The range of internal addresses that are legal on this network. This * range is a CIDR specification, for example: 192.168.0.0/16. Provided by * the client when the network is created. */ - IPv4Range: string; + IPv4Range?: string; /** * [Output Only] Type of the resource. Always compute#network for networks. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -4989,26 +4995,26 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] A list of network peerings for the resource. */ - peerings: Schema$NetworkPeering[]; + peerings?: Schema$NetworkPeering[]; /** * The network-level routing configuration for this network. Used by Cloud * Router to determine what type of network-wide routing behavior to * enforce. */ - routingConfig: Schema$NetworkRoutingConfig; + routingConfig?: Schema$NetworkRoutingConfig; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Server-defined fully-qualified URLs for all subnetworks in * this network. */ - subnetworks: string[]; + subnetworks?: string[]; } /** * A network interface resource attached to an instance. @@ -5019,29 +5025,29 @@ export namespace compute_v1 { * config, ONE_TO_ONE_NAT, is supported. If there are no accessConfigs * specified, then this instance will have no external internet access. */ - accessConfigs: Schema$AccessConfig[]; + accessConfigs?: Schema$AccessConfig[]; /** * An array of alias IP ranges for this network interface. Can only be * specified for network interfaces on subnet-mode networks. */ - aliasIpRanges: Schema$AliasIpRange[]; + aliasIpRanges?: Schema$AliasIpRange[]; /** * Fingerprint hash of contents stored in this network interface. This field * will be ignored when inserting an Instance or adding a NetworkInterface. * An up-to-date fingerprint must be provided in order to update the * NetworkInterface. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] Type of the resource. Always compute#networkInterface for * network interfaces. */ - kind: string; + kind?: string; /** * [Output Only] The name of the network interface, generated by the server. * For network devices, these are eth0, eth1, etc. */ - name: string; + name?: string; /** * URL of the network resource for this instance. When creating an instance, * if neither the network nor the subnetwork is specified, the default @@ -5054,13 +5060,13 @@ export namespace compute_v1 { * https://www.googleapis.com/compute/v1/projects/project/global/networks/network * - projects/project/global/networks/network - global/networks/default */ - network: string; + network?: string; /** * An IPv4 internal network address to assign to the instance for this * network interface. If not specified by the user, an unused internal IP is * assigned by the system. */ - networkIP: string; + networkIP?: string; /** * The URL of the Subnetwork resource for this instance. If the network * resource is in legacy mode, do not provide this property. If the network @@ -5071,7 +5077,7 @@ export namespace compute_v1 { * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork * - regions/region/subnetworks/subnetwork */ - subnetwork: string; + subnetwork?: string; } /** * Contains a list of networks. @@ -5080,16 +5086,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Network resources. */ - items: Schema$Network[]; + items?: Schema$Network[]; /** * [Output Only] Type of resource. Always compute#networkList for lists of * networks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5097,15 +5103,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A network peering attached to a network resource. The message includes the @@ -5120,7 +5126,7 @@ export namespace compute_v1 { * Otherwise, user needs to create routes manually to route packets to peer * network. */ - autoCreateRoutes: boolean; + autoCreateRoutes?: boolean; /** * Name of this peering. Provided by the client when the peering is created. * The name must comply with RFC1035. Specifically, the name must be 1-63 @@ -5129,22 +5135,22 @@ export namespace compute_v1 { * following characters must be a dash, lowercase letter, or digit, except * the last character, which cannot be a dash. */ - name: string; + name?: string; /** * The URL of the peer network. It can be either full URL or partial URL. * The peer network may belong to a different project. If the partial URL * does not contain project, it is assumed that the peer network is in the * same project as the current network. */ - network: string; + network?: string; /** * [Output Only] State for the peering. */ - state: string; + state?: string; /** * [Output Only] Details about the current state of the peering. */ - stateDetails: string; + stateDetails?: string; } /** * A routing configuration attached to a network resource. The message @@ -5159,30 +5165,30 @@ export namespace compute_v1 { * network's cloud routers will advertise routes with all subnetworks of * this network, across regions. */ - routingMode: string; + routingMode?: string; } export interface Schema$NetworksAddPeeringRequest { /** * Whether Google Compute Engine manages the routes automatically. */ - autoCreateRoutes: boolean; + autoCreateRoutes?: boolean; /** * Name of the peering, which should conform to RFC1035. */ - name: string; + name?: string; /** * URL of the peer network. It can be either full URL or partial URL. The * peer network may belong to a different project. If the partial URL does * not contain project, it is assumed that the peer network is in the same * project as the current network. */ - peerNetwork: string; + peerNetwork?: string; } export interface Schema$NetworksRemovePeeringRequest { /** * Name of the peering, which should conform to RFC1035. */ - name: string; + name?: string; } /** * An Operation resource, used to manage asynchronous API requests. (== @@ -5195,61 +5201,61 @@ export namespace compute_v1 { /** * [Output Only] Reserved for future use. */ - clientOperationId: string; + clientOperationId?: string; /** * [Deprecated] This field is deprecated. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] A textual description of the operation, which is set when * the operation is created. */ - description: string; + description?: string; /** * [Output Only] The time that this operation was completed. This value is * in RFC3339 text format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors are generated during processing of the operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as NOT FOUND. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output Only] If the operation fails, this field contains the HTTP error * status code that was returned. For example, a 404 means the resource was * not found. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This value is * in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always compute#operation for * Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The type of operation, such as insert, update, or delete, * and so on. */ - operationType: string; + operationType?: string; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -5257,77 +5263,77 @@ export namespace compute_v1 { * complete. This number should monotonically increase as the operation * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The URL of the region where the operation resides. Only * available when performing regional operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] The status of the operation, which can be one of the * following: PENDING, RUNNING, or DONE. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The unique target ID, which identifies a specific * incarnation of the target resource. */ - targetId: string; + targetId?: string; /** * [Output Only] The URL of the resource that the operation modifies. For * operations related to creating a snapshot, this points to the persistent * disk that the snapshot was created from. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If warning messages are generated during processing of the * operation, this field will be populated. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] The URL of the zone where the operation resides. Only * available when performing per-zone operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - zone: string; + zone?: string; } export interface Schema$OperationAggregatedList { /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A map of scoped operation lists. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#operationAggregatedList * for aggregated lists of operations. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5335,15 +5341,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Operation resources. @@ -5353,16 +5359,16 @@ export namespace compute_v1 { * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of Operation resources. */ - items: Schema$Operation[]; + items?: Schema$Operation[]; /** * [Output Only] Type of resource. Always compute#operations for Operations * resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5370,26 +5376,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$OperationsScopedList { /** * [Output Only] A list of operations contained in this scope. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; /** * [Output Only] Informational warning which replaces the list of operations * when the list is empty. */ - warning: any; + warning?: any; } /** * A matcher for the path portion of the URL. The BackendService from the @@ -5406,20 +5412,20 @@ export namespace compute_v1 { * - compute/v1/projects/project/global/backendServices/backendService - * global/backendServices/backendService */ - defaultService: string; + defaultService?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The name to which this PathMatcher is referred by the HostRule. */ - name: string; + name?: string; /** * The list of path rules. */ - pathRules: Schema$PathRule[]; + pathRules?: Schema$PathRule[]; } /** * A path-matching rule for a URL. If matched, will use the specified @@ -5432,11 +5438,11 @@ export namespace compute_v1 { * path matcher does not include any text after the first ? or #, and those * chars are not allowed here. */ - paths: string[]; + paths?: string[]; /** * The URL of the BackendService resource if this rule is matched. */ - service: string; + service?: string; } /** * A Project resource. For an overview of projects, see Cloud Platform @@ -5448,76 +5454,76 @@ export namespace compute_v1 { * Metadata key/value pairs available to all instances contained in this * project. See Custom metadata for more information. */ - commonInstanceMetadata: Schema$Metadata; + commonInstanceMetadata?: Schema$Metadata; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] Default service account used by VMs running in this * project. */ - defaultServiceAccount: string; + defaultServiceAccount?: string; /** * An optional textual description of the resource. */ - description: string; + description?: string; /** * Restricted features enabled for use on this project. */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. This is not the project ID, and is just a unique * ID used by Compute Engine to identify resources. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#project for projects. */ - kind: string; + kind?: string; /** * The project ID. For example: my-example-project. Use the project ID to * make requests to Compute Engine. */ - name: string; + name?: string; /** * [Output Only] Quotas assigned to this project. */ - quotas: Schema$Quota[]; + quotas?: Schema$Quota[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The naming prefix for daily usage reports and the Google Cloud Storage * bucket where they are stored. */ - usageExportLocation: Schema$UsageExportLocation; + usageExportLocation?: Schema$UsageExportLocation; /** * [Output Only] The role this project has in a shared VPC configuration. * Currently only HOST projects are differentiated. */ - xpnProjectStatus: string; + xpnProjectStatus?: string; } export interface Schema$ProjectsDisableXpnResourceRequest { /** * Service resource (a.k.a service project) ID. */ - xpnResource: Schema$XpnResourceId; + xpnResource?: Schema$XpnResourceId; } export interface Schema$ProjectsEnableXpnResourceRequest { /** * Service resource (a.k.a service project) ID. */ - xpnResource: Schema$XpnResourceId; + xpnResource?: Schema$XpnResourceId; } export interface Schema$ProjectsGetXpnResources { /** * [Output Only] Type of resource. Always compute#projectsGetXpnResources * for lists of service resources (a.k.a service projects) */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5525,12 +5531,12 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * Service resources (a.k.a service projects) attached to this project as * their shared VPC host. */ - resources: Schema$XpnResourceId[]; + resources?: Schema$XpnResourceId[]; } export interface Schema$ProjectsListXpnHostsRequest { /** @@ -5538,7 +5544,7 @@ export namespace compute_v1 { * list shared VPC host projects. If not specified, the organization will be * inferred from the project. */ - organization: string; + organization?: string; } /** * A quotas entry. @@ -5547,15 +5553,15 @@ export namespace compute_v1 { /** * [Output Only] Quota limit for this metric. */ - limit: number; + limit?: number; /** * [Output Only] Name of the quota metric. */ - metric: string; + metric?: string; /** * [Output Only] Current usage of this metric. */ - usage: number; + usage?: number; } /** * Represents a reference to a resource. @@ -5565,20 +5571,20 @@ export namespace compute_v1 { * [Output Only] Type of the resource. Always compute#reference for * references. */ - kind: string; + kind?: string; /** * A description of the reference type with no implied semantics. Possible * values include: - MEMBER_OF */ - referenceType: string; + referenceType?: string; /** * URL of the resource which refers to the target. */ - referrer: string; + referrer?: string; /** * URL of the resource to which this reference points. */ - target: string; + target?: string; } /** * Region resource. (== resource_for beta.regions ==) (== resource_for @@ -5588,45 +5594,45 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this region. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] Textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#region for regions. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Quotas assigned to this region. */ - quotas: Schema$Quota[]; + quotas?: Schema$Quota[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the region, either UP or DOWN. */ - status: string; + status?: string; /** * [Output Only] A list of zones available in this region, in the form of * resource URLs. */ - zones: string[]; + zones?: string[]; } /** * Contains a list of autoscalers. @@ -5635,15 +5641,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Autoscaler resources. */ - items: Schema$Autoscaler[]; + items?: Schema$Autoscaler[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5651,15 +5657,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of InstanceGroup resources. @@ -5668,15 +5674,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroup resources. */ - items: Schema$InstanceGroup[]; + items?: Schema$InstanceGroup[]; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5684,15 +5690,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of managed instance groups. @@ -5701,17 +5707,17 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceGroupManager resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * [Output Only] The resource type, which is always * compute#instanceGroupManagerList for a list of managed instance groups * that exist in th regional scope. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5719,42 +5725,42 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupManagersAbandonInstancesRequest { /** * The URLs of one or more instances to abandon. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersDeleteInstancesRequest { /** * The URLs of one or more instances to delete. This can be a full URL or a * partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersListInstancesResponse { /** * A list of managed instances. */ - managedInstances: Schema$ManagedInstance[]; + managedInstances?: Schema$ManagedInstance[]; } export interface Schema$RegionInstanceGroupManagersRecreateRequest { /** * The URLs of one or more instances to recreate. This can be a full URL or * a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. */ - instances: string[]; + instances?: string[]; } export interface Schema$RegionInstanceGroupManagersSetTargetPoolsRequest { /** @@ -5762,34 +5768,34 @@ export namespace compute_v1 { * contents. This field is used for optimistic locking when you update the * target pool entries. This field is optional. */ - fingerprint: string; + fingerprint?: string; /** * The URL of all TargetPool resources to which instances in the * instanceGroup field are added. The target pools automatically apply to * all of the instances in the managed instance group. */ - targetPools: string[]; + targetPools?: string[]; } export interface Schema$RegionInstanceGroupManagersSetTemplateRequest { /** * URL of the InstanceTemplate resource from which all new instances will be * created. */ - instanceTemplate: string; + instanceTemplate?: string; } export interface Schema$RegionInstanceGroupsListInstances { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of InstanceWithNamedPorts resources. */ - items: Schema$InstanceWithNamedPorts[]; + items?: Schema$InstanceWithNamedPorts[]; /** * The resource type. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5797,28 +5803,28 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RegionInstanceGroupsListInstancesRequest { /** * Instances in which state should be returned. Valid options are: * 'ALL', 'RUNNING'. By default, it lists all instances. */ - instanceState: string; + instanceState?: string; /** * Name of port user is interested in. It is optional. If it is set, only * information about this ports will be returned. If it is not set, all the * named ports will be returned. Always lists all instances. */ - portName: string; + portName?: string; } export interface Schema$RegionInstanceGroupsSetNamedPortsRequest { /** @@ -5829,11 +5835,11 @@ export namespace compute_v1 { * request to ensure that you do not overwrite changes that were applied * from another concurrent request. */ - fingerprint: string; + fingerprint?: string; /** * The list of named ports to set for this instance group. */ - namedPorts: Schema$NamedPort[]; + namedPorts?: Schema$NamedPort[]; } /** * Contains a list of region resources. @@ -5842,16 +5848,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Region resources. */ - items: Schema$Region[]; + items?: Schema$Region[]; /** * [Output Only] Type of resource. Always compute#regionList for lists of * regions. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -5859,15 +5865,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Commitment for a particular resource (a Commitment is composed of one or @@ -5880,19 +5886,19 @@ export namespace compute_v1 { * provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of * memory per every vCPU. */ - amount: string; + amount?: string; /** * Type of resource for which this commitment applies. Possible values are * VCPU and MEMORY */ - type: string; + type?: string; } export interface Schema$ResourceGroupReference { /** * A URI referencing one of the instance groups listed in the backend * service. */ - group: string; + group?: string; } /** * Represents a Route resource. A route specifies how certain packets should @@ -5914,27 +5920,27 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * The destination range of outgoing packets that this route applies to. * Only IPv4 is supported. */ - destRange: string; + destRange?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of this resource. Always compute#routes for Route * resources. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -5944,41 +5950,41 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Fully-qualified URL of the network that this route applies to. */ - network: string; + network?: string; /** * The URL to a gateway that should handle matching packets. You can only * specify the internet gateway using a full or partial valid URL: * projects/<project-id>/global/gateways/default-internet-gateway */ - nextHopGateway: string; + nextHopGateway?: string; /** * The URL to an instance that should handle matching packets. You can * specify this as a full or partial URL. For example: * https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ */ - nextHopInstance: string; + nextHopInstance?: string; /** * The network IP address of an instance that should handle matching * packets. Only IPv4 is supported. */ - nextHopIp: string; + nextHopIp?: string; /** * The URL of the local network if it should handle matching packets. */ - nextHopNetwork: string; + nextHopNetwork?: string; /** * [Output Only] The network peering name that should handle matching * packets, which should conform to RFC1035. */ - nextHopPeering: string; + nextHopPeering?: string; /** * The URL to a VpnTunnel that should handle matching packets. */ - nextHopVpnTunnel: string; + nextHopVpnTunnel?: string; /** * The priority of this route. Priority is used to break ties in cases where * there is more than one matching route of equal prefix length. In the case @@ -5986,20 +5992,20 @@ export namespace compute_v1 { * priority value wins. Default value is 1000. Valid range is 0 through * 65535. */ - priority: number; + priority?: number; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * A list of instance tags to which this route applies. */ - tags: string[]; + tags?: string[]; /** * [Output Only] If potential misconfigurations are detected for this route, * this field will be populated with warning messages. */ - warnings: any[]; + warnings?: any[]; } /** * Contains a list of Route resources. @@ -6008,15 +6014,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Route resources. */ - items: Schema$Route[]; + items?: Schema$Route[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6024,15 +6030,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Router resource. @@ -6041,37 +6047,37 @@ export namespace compute_v1 { /** * BGP information specific to this router. */ - bgp: Schema$RouterBgp; + bgp?: Schema$RouterBgp; /** * BGP information that needs to be configured into the routing stack to * establish the BGP peering. It must specify peer ASN and either interface * name, IP, or peer IP. Please refer to RFC4273. */ - bgpPeers: Schema$RouterBgpPeer[]; + bgpPeers?: Schema$RouterBgpPeer[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * Router interfaces. Each interface requires either one linked resource * (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. * ipRange), or both. */ - interfaces: Schema$RouterInterface[]; + interfaces?: Schema$RouterInterface[]; /** * [Output Only] Type of resource. Always compute#router for routers. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -6081,21 +6087,21 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URI of the network to which this router belongs. */ - network: string; + network?: string; /** * [Output Only] URI of the region where the router resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Description-tagged IP ranges for the router to advertise. @@ -6104,11 +6110,11 @@ export namespace compute_v1 { /** * User-specified description for the IP range. */ - description: string; + description?: string; /** * The IP range to advertise. The value must be a CIDR-formatted string. */ - range: string; + range?: string; } /** * Contains a list of routers. @@ -6117,15 +6123,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Router resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6133,15 +6139,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RouterBgp { /** @@ -6151,7 +6157,7 @@ export namespace compute_v1 { * to any specified prefixes. Leave this field blank to advertise no custom * groups. */ - advertisedGroups: string[]; + advertisedGroups?: string[]; /** * User-specified list of individual IP ranges to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and is @@ -6159,18 +6165,18 @@ export namespace compute_v1 { * in addition to any specified groups. Leave this field blank to advertise * no custom IP ranges. */ - advertisedIpRanges: Schema$RouterAdvertisedIpRange[]; + advertisedIpRanges?: Schema$RouterAdvertisedIpRange[]; /** * User-specified flag to indicate which mode to use for advertisement. */ - advertiseMode: string; + advertiseMode?: string; /** * Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, * either 16-bit or 32-bit. The value will be fixed for this router * resource. All VPN tunnels that link to this router will have the same * local ASN. */ - asn: number; + asn?: number; } export interface Schema$RouterBgpPeer { /** @@ -6180,7 +6186,7 @@ export namespace compute_v1 { * advertised in addition to any specified prefixes. Leave this field blank * to advertise no custom groups. */ - advertisedGroups: string[]; + advertisedGroups?: string[]; /** * User-specified list of individual IP ranges to advertise in custom mode. * This field can only be populated if advertise_mode is CUSTOM and @@ -6188,41 +6194,41 @@ export namespace compute_v1 { * ranges will be advertised in addition to any specified groups. Leave this * field blank to advertise no custom IP ranges. */ - advertisedIpRanges: Schema$RouterAdvertisedIpRange[]; + advertisedIpRanges?: Schema$RouterAdvertisedIpRange[]; /** * The priority of routes advertised to this BGP peer. In the case where * there is more than one matching route of maximum length, the routes with * lowest priority value win. */ - advertisedRoutePriority: number; + advertisedRoutePriority?: number; /** * User-specified flag to indicate which mode to use for advertisement. */ - advertiseMode: string; + advertiseMode?: string; /** * Name of the interface the BGP peer is associated with. */ - interfaceName: string; + interfaceName?: string; /** * IP address of the interface inside Google Cloud Platform. Only IPv4 is * supported. */ - ipAddress: string; + ipAddress?: string; /** * Name of this BGP peer. The name must be 1-63 characters long and comply * with RFC1035. */ - name: string; + name?: string; /** * Peer BGP Autonomous System Number (ASN). For VPN use case, this value can * be different for every tunnel. */ - peerAsn: number; + peerAsn?: number; /** * IP address of the BGP interface outside Google cloud. Only IPv4 is * supported. */ - peerIpAddress: string; + peerIpAddress?: string; } export interface Schema$RouterInterface { /** @@ -6231,24 +6237,24 @@ export namespace compute_v1 { * for example: 169.254.0.1/30. NOTE: Do not truncate the address as it * represents the IP address of the interface. */ - ipRange: string; + ipRange?: string; /** * URI of the linked interconnect attachment. It must be in the same region * as the router. Each interface can have at most one linked resource and it * could either be a VPN Tunnel or an interconnect attachment. */ - linkedInterconnectAttachment: string; + linkedInterconnectAttachment?: string; /** * URI of the linked VPN tunnel. It must be in the same region as the * router. Each interface can have at most one linked resource and it could * either be a VPN Tunnel or an interconnect attachment. */ - linkedVpnTunnel: string; + linkedVpnTunnel?: string; /** * Name of this interface entry. The name must be 1-63 characters long and * comply with RFC1035. */ - name: string; + name?: string; } /** * Contains a list of Router resources. @@ -6257,15 +6263,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Router resources. */ - items: Schema$Router[]; + items?: Schema$Router[]; /** * [Output Only] Type of resource. Always compute#router for routers. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6273,97 +6279,97 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$RoutersPreviewResponse { /** * Preview of given router. */ - resource: Schema$Router; + resource?: Schema$Router; } export interface Schema$RoutersScopedList { /** * A list of routers contained in this scope. */ - routers: Schema$Router[]; + routers?: Schema$Router[]; /** * Informational warning which replaces the list of routers when the list is * empty. */ - warning: any; + warning?: any; } export interface Schema$RouterStatus { /** * Best routes for this router's network. */ - bestRoutes: Schema$Route[]; + bestRoutes?: Schema$Route[]; /** * Best routes learned by this router. */ - bestRoutesForRouter: Schema$Route[]; - bgpPeerStatus: Schema$RouterStatusBgpPeerStatus[]; + bestRoutesForRouter?: Schema$Route[]; + bgpPeerStatus?: Schema$RouterStatusBgpPeerStatus[]; /** * URI of the network to which this router belongs. */ - network: string; + network?: string; } export interface Schema$RouterStatusBgpPeerStatus { /** * Routes that were advertised to the remote BGP peer */ - advertisedRoutes: Schema$Route[]; + advertisedRoutes?: Schema$Route[]; /** * IP address of the local BGP interface. */ - ipAddress: string; + ipAddress?: string; /** * URL of the VPN tunnel that this BGP peer controls. */ - linkedVpnTunnel: string; + linkedVpnTunnel?: string; /** * Name of this BGP peer. Unique within the Routers resource. */ - name: string; + name?: string; /** * Number of routes learned from the remote BGP Peer. */ - numLearnedRoutes: number; + numLearnedRoutes?: number; /** * IP address of the remote BGP interface. */ - peerIpAddress: string; + peerIpAddress?: string; /** * BGP state as specified in RFC1771. */ - state: string; + state?: string; /** * Status of the BGP peer: {UP, DOWN} */ - status: string; + status?: string; /** * Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 * hours, 59 minutes, 59 seconds */ - uptime: string; + uptime?: string; /** * Time this session has been up, in seconds. Format: 145 */ - uptimeSeconds: string; + uptimeSeconds?: string; } export interface Schema$RouterStatusResponse { /** * Type of resource. */ - kind: string; - result: Schema$RouterStatus; + kind?: string; + result?: Schema$RouterStatus; } /** * Sets the scheduling options for an Instance. @@ -6377,20 +6383,20 @@ export namespace compute_v1 { * true so an instance is automatically restarted if it is terminated by * Compute Engine. */ - automaticRestart: boolean; + automaticRestart?: boolean; /** * Defines the maintenance behavior for this instance. For standard * instances, the default behavior is MIGRATE. For preemptible instances, * the default and only possible behavior is TERMINATE. For more * information, see Setting Instance Scheduling Options. */ - onHostMaintenance: string; + onHostMaintenance?: string; /** * Defines whether the instance is preemptible. This can only be set during * instance creation, it cannot be set or changed after the instance has * been created. */ - preemptible: boolean; + preemptible?: boolean; } /** * An instance's serial console output. @@ -6399,29 +6405,29 @@ export namespace compute_v1 { /** * [Output Only] The contents of the console output. */ - contents: string; + contents?: string; /** * [Output Only] Type of the resource. Always compute#serialPortOutput for * serial port output. */ - kind: string; + kind?: string; /** * [Output Only] The position of the next byte of content from the serial * console output. Use this value in the next request as the start * parameter. */ - next: string; + next?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * The starting byte position of the output that was returned. This should * match the start parameter sent with the request. If the serial console * output exceeds the size of the buffer, older output will be overwritten * by newer content and the start values will be mismatched. */ - start: string; + start?: string; } /** * A service account. @@ -6430,11 +6436,11 @@ export namespace compute_v1 { /** * Email address of the service account. */ - email: string; + email?: string; /** * The list of scopes to be made available for this service account. */ - scopes: string[]; + scopes?: string[]; } /** * A persistent disk snapshot resource. (== resource_for beta.snapshots ==) @@ -6444,26 +6450,26 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Size of the snapshot, specified in GB. */ - diskSizeGb: string; + diskSizeGb?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#snapshot for Snapshot * resources. */ - kind: string; + kind?: string; /** * A fingerprint for the labels being applied to this snapshot, which is * essentially a hash of the labels set used for optimistic locking. The @@ -6472,23 +6478,23 @@ export namespace compute_v1 { * up-to-date fingerprint hash in order to update or change labels. To see * the latest fingerprint, make a get() request to retrieve a snapshot. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Labels to apply to this snapshot. These can be later modified by the * setLabels method. Label values may be empty. */ - labels: any; + labels?: any; /** * Integer license codes indicating which licenses are attached to this * snapshot. */ - licenseCodes: string[]; + licenseCodes?: string[]; /** * [Output Only] A list of public visible licenses that apply to this * snapshot. This can be because the original image had licenses attached * (such as a Windows image). */ - licenses: string[]; + licenses?: string[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -6498,11 +6504,11 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Encrypts the snapshot using a customer-supplied encryption key. After * you encrypt a snapshot using a customer-supplied key, you must provide @@ -6514,40 +6520,40 @@ export namespace compute_v1 { * automatically generated key and you do not need to provide a key to use * the snapshot later. */ - snapshotEncryptionKey: Schema$CustomerEncryptionKey; + snapshotEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The source disk used to create this snapshot. */ - sourceDisk: string; + sourceDisk?: string; /** * The customer-supplied encryption key of the source disk. Required if the * source disk is protected by a customer-supplied encryption key. */ - sourceDiskEncryptionKey: Schema$CustomerEncryptionKey; + sourceDiskEncryptionKey?: Schema$CustomerEncryptionKey; /** * [Output Only] The ID value of the disk used to create this snapshot. This * value may be used to determine whether the snapshot was taken from the * current or a previous instance of a given disk name. */ - sourceDiskId: string; + sourceDiskId?: string; /** * [Output Only] The status of the snapshot. This can be CREATING, DELETING, * FAILED, READY, or UPLOADING. */ - status: string; + status?: string; /** * [Output Only] A size of the storage used by the snapshot. As snapshots * share storage, this number is expected to change with snapshot * creation/deletion. */ - storageBytes: string; + storageBytes?: string; /** * [Output Only] An indicator whether storageBytes is in a stable state or * it is being adjusted as a result of shared storage reallocation. This * status can either be UPDATING, meaning the size of the snapshot is being * updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. */ - storageBytesStatus: string; + storageBytesStatus?: string; } /** * Contains a list of Snapshot resources. @@ -6556,15 +6562,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Snapshot resources. */ - items: Schema$Snapshot[]; + items?: Schema$Snapshot[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6572,15 +6578,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * An SslCertificate resource. This resource provides a mechanism to upload an @@ -6594,26 +6600,26 @@ export namespace compute_v1 { * certificate chain must be no greater than 5 certs long. The chain must * include at least one intermediate cert. */ - certificate: string; + certificate?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#sslCertificate for SSL * certificates. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -6623,16 +6629,16 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * A write-only private key in PEM format. Only insert requests will include * this field. */ - privateKey: string; + privateKey?: string; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * Contains a list of SslCertificate resources. @@ -6641,15 +6647,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SslCertificate resources. */ - items: Schema$SslCertificate[]; + items?: Schema$SslCertificate[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6657,60 +6663,60 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$SSLHealthCheck { /** * The TCP port number for the health check request. The default value is * 443. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The application data to send once the SSL connection has been established * (default value is empty). If both request and response are empty, the * connection establishment alone will indicate health. The request data can * only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. If left * empty (the default value), any response will indicate health. The * response data can only be ASCII. */ - response: string; + response?: string; } export interface Schema$SslPoliciesList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SslPolicy resources. */ - items: Schema$SslPolicy[]; + items?: Schema$SslPolicy[]; /** * [Output Only] Type of the resource. Always compute#sslPoliciesList for * lists of sslPolicies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6718,18 +6724,18 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$SslPoliciesListAvailableFeaturesResponse { - features: string[]; + features?: string[]; } /** * A SSL policy specifies the server-side support for SSL features. This can @@ -6741,45 +6747,45 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * A list of features enabled when the selected profile is CUSTOM. The - * method returns the set of features that can be specified in this list. * This field must be empty if the profile is not CUSTOM. */ - customFeatures: string[]; + customFeatures?: string[]; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The list of features enabled in the SSL policy. */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a SslPolicy. An up-to-date fingerprint must be * provided in order to update the SslPolicy. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output only] Type of the resource. Always compute#sslPolicyfor SSL * policies. */ - kind: string; + kind?: string; /** * The minimum version of SSL protocol that can be used by the clients to * establish a connection with the load balancer. This can be one of * TLS_1_0, TLS_1_1, TLS_1_2. */ - minTlsVersion: string; + minTlsVersion?: string; /** * Name of the resource. The name must be 1-63 characters long, and comply * with RFC1035. Specifically, the name must be 1-63 characters long and @@ -6788,30 +6794,30 @@ export namespace compute_v1 { * must be a dash, lowercase letter, or digit, except the last character, * which cannot be a dash. */ - name: string; + name?: string; /** * Profile specifies the set of SSL features that can be used by the load * balancer when negotiating SSL with clients. This can be one of * COMPATIBLE, MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of * SSL features to enable must be specified in the customFeatures field. */ - profile: string; + profile?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] If potential misconfigurations are detected for this SSL * policy, this field will be populated with warning messages. */ - warnings: any[]; + warnings?: any[]; } export interface Schema$SslPolicyReference { /** * URL of the SSL policy resource. Set this to empty string to clear any * existing SSL policy associated with the target proxy resource. */ - sslPolicy: string; + sslPolicy?: string; } /** * A Subnetwork resource. (== resource_for beta.subnetworks ==) (== @@ -6821,30 +6827,30 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. This field can be set only at resource creation * time. */ - description: string; + description?: string; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a Subnetwork. An up-to-date fingerprint must be * provided in order to update the Subnetwork. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The gateway address for default routes to reach destination * addresses outside this subnetwork. */ - gatewayAddress: string; + gatewayAddress?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * The range of internal addresses that are owned by this subnetwork. * Provide this property when you create the subnetwork. For @@ -6852,12 +6858,12 @@ export namespace compute_v1 { * non-overlapping within a network. Only IPv4 is supported. This field can * be set only at resource creation time. */ - ipCidrRange: string; + ipCidrRange?: string; /** * [Output Only] Type of the resource. Always compute#subnetwork for * Subnetwork resources. */ - kind: string; + kind?: string; /** * The name of the resource, provided by the client when initially creating * the resource. The name must be 1-63 characters long, and comply with @@ -6867,51 +6873,51 @@ export namespace compute_v1 { * be a dash, lowercase letter, or digit, except the last character, which * cannot be a dash. */ - name: string; + name?: string; /** * The URL of the network to which this subnetwork belongs, provided by the * client when initially creating the subnetwork. Only networks that are in * the distributed mode can have subnetworks. This field can be set only at * resource creation time. */ - network: string; + network?: string; /** * Whether the VMs in this subnet can access Google services without * assigned external IP addresses. This field can be both set at resource * creation time and updated using setPrivateIpGoogleAccess. */ - privateIpGoogleAccess: boolean; + privateIpGoogleAccess?: boolean; /** * URL of the region where the Subnetwork resides. This field can be set * only at resource creation time. */ - region: string; + region?: 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 primary ipCidrRange of the subnetwork. The alias IPs may belong to * either primary or secondary ranges. */ - secondaryIpRanges: Schema$SubnetworkSecondaryRange[]; + secondaryIpRanges?: Schema$SubnetworkSecondaryRange[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; } export interface Schema$SubnetworkAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of SubnetworksScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#subnetworkAggregatedList * for aggregated lists of subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6919,15 +6925,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of Subnetwork resources. @@ -6936,16 +6942,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Subnetwork resources. */ - items: Schema$Subnetwork[]; + items?: Schema$Subnetwork[]; /** * [Output Only] Type of resource. Always compute#subnetworkList for lists * of subnetworks. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -6953,15 +6959,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a secondary IP range of a subnetwork. @@ -6973,14 +6979,14 @@ export namespace compute_v1 { * unique and non-overlapping with all primary and secondary IP ranges * within a network. Only IPv4 is supported. */ - ipCidrRange: string; + ipCidrRange?: string; /** * The name associated with this subnetwork secondary range, used when * adding an alias IP range to a VM instance. The name must be 1-63 * characters long, and comply with RFC1035. The name must be unique within * the subnetwork. */ - rangeName: string; + rangeName?: string; } export interface Schema$SubnetworksExpandIpCidrRangeRequest { /** @@ -6989,21 +6995,21 @@ export namespace compute_v1 { * within this network. This range can only be larger than (i.e. a superset * of) the range previously defined before the update. */ - ipCidrRange: string; + ipCidrRange?: string; } export interface Schema$SubnetworksScopedList { /** * A list of subnetworks contained in this scope. */ - subnetworks: Schema$Subnetwork[]; + subnetworks?: Schema$Subnetwork[]; /** * An informational warning that appears when the list of addresses is * empty. */ - warning: any; + warning?: any; } export interface Schema$SubnetworksSetPrivateIpGoogleAccessRequest { - privateIpGoogleAccess: boolean; + privateIpGoogleAccess?: boolean; } /** * A set of instance tags. @@ -7011,18 +7017,18 @@ export namespace compute_v1 { export interface Schema$Tags { /** * Specifies a fingerprint for this request, which is essentially a hash of - * the metadata's contents and used for optimistic locking. The - * fingerprint is initially generated by Compute Engine and changes after - * every request to modify or update metadata. You must always provide an - * up-to-date fingerprint hash in order to update or change metadata. To - * see the latest fingerprint, make get() request to the instance. + * the tags' contents and used for optimistic locking. The fingerprint + * is initially generated by Compute Engine and changes after every request + * to modify or update tags. You must always provide an up-to-date + * fingerprint hash in order to update or change tags. To see the latest + * fingerprint, make get() request to the instance. */ - fingerprint: string; + fingerprint?: string; /** * An array of tags. Each tag must be 1-63 characters long, and comply with * RFC1035. */ - items: string[]; + items?: string[]; } /** * A TargetHttpProxy resource. This resource defines an HTTP proxy. (== @@ -7033,22 +7039,22 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetHttpProxy for target * HTTP proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7058,16 +7064,16 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the UrlMap resource that defines the mapping from URL to the * BackendService. */ - urlMap: string; + urlMap?: string; } /** * A list of TargetHttpProxy resources. @@ -7076,16 +7082,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpProxy resources. */ - items: Schema$TargetHttpProxy[]; + items?: Schema$TargetHttpProxy[]; /** * Type of resource. Always compute#targetHttpProxyList for lists of target * HTTP proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7093,15 +7099,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetHttpsProxiesSetSslCertificatesRequest { /** @@ -7109,7 +7115,7 @@ export namespace compute_v1 { * TargetHttpsProxy resource. Currently exactly one SslCertificate resource * must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; } /** * A TargetHttpsProxy resource. This resource defines an HTTPS proxy. (== @@ -7120,22 +7126,22 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetHttpsProxy for * target HTTPS proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7145,23 +7151,23 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections between users and the load balancer. Currently, exactly one * SSL certificate must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; /** * URL of SslPolicy resource that will be associated with the * TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource will * not have any SSL policy configured. */ - sslPolicy: string; + sslPolicy?: string; /** * A fully-qualified or valid partial URL to the UrlMap resource that * defines the mapping from URL to the BackendService. For example, the @@ -7169,7 +7175,7 @@ export namespace compute_v1 { * https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map * - projects/project/global/urlMaps/url-map - global/urlMaps/url-map */ - urlMap: string; + urlMap?: string; } /** * Contains a list of TargetHttpsProxy resources. @@ -7178,16 +7184,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetHttpsProxy resources. */ - items: Schema$TargetHttpsProxy[]; + items?: Schema$TargetHttpsProxy[]; /** * Type of resource. Always compute#targetHttpsProxyList for lists of target * HTTPS proxies. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7195,15 +7201,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * A TargetInstance resource. This resource defines an endpoint instance that @@ -7214,17 +7220,17 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A URL to the virtual machine instance that handles traffic for this * target instance. When creating a target instance, you can provide the @@ -7234,12 +7240,12 @@ export namespace compute_v1 { * - projects/project/zones/zone/instances/instance - * zones/zone/instances/instance */ - instance: string; + instance?: string; /** * [Output Only] The type of the resource. Always compute#targetInstance for * target instances. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7249,36 +7255,36 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * NAT option controlling how IPs are NAT'ed to the instance. Currently * only NO_NAT (default value) is supported. */ - natPolicy: string; + natPolicy?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] URL of the zone where the target instance resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - zone: string; + zone?: string; } export interface Schema$TargetInstanceAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetInstance resources. */ - items: any; + items?: any; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7286,15 +7292,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of TargetInstance resources. @@ -7303,15 +7309,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetInstance resources. */ - items: Schema$TargetInstance[]; + items?: Schema$TargetInstance[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7319,26 +7325,26 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetInstancesScopedList { /** * A list of target instances contained in this scope. */ - targetInstances: Schema$TargetInstance[]; + targetInstances?: Schema$TargetInstance[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } /** * A TargetPool resource. This resource defines a pool of instances, an @@ -7359,16 +7365,16 @@ export namespace compute_v1 { * where traffic will be spread to the healthy instances with the best * effort, or to all instances when no instance is healthy. */ - backupPool: string; + backupPool?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * This field is applicable only when the containing target pool is serving * a forwarding rule as the primary pool (i.e., not as a backup pool to some @@ -7383,7 +7389,7 @@ export namespace compute_v1 { * instances with the best effort, or to all instances when no instance is * healthy. */ - failoverRatio: number; + failoverRatio?: number; /** * The URL of the HttpHealthCheck resource. A member instance in this pool * is considered healthy if and only if the health checks pass. An empty @@ -7391,22 +7397,22 @@ export namespace compute_v1 { * Only HttpHealthChecks are supported. Only one health check may be * specified. */ - healthChecks: string[]; + healthChecks?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * A list of resource URLs to the virtual machine instances serving this * pool. They must live in zones contained in the same region as this pool. */ - instances: string[]; + instances?: string[]; /** * [Output Only] Type of the resource. Always compute#targetPool for target * pools. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7416,15 +7422,15 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * [Output Only] URL of the region where the target pool resides. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Sesssion affinity option, must be one of the following values: NONE: * Connections from the same client IP may go to any instance in the pool. @@ -7434,22 +7440,22 @@ export namespace compute_v1 { * protocol will go to the same instance in the pool while that instance * remains healthy. */ - sessionAffinity: string; + sessionAffinity?: string; } export interface Schema$TargetPoolAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetPool resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#targetPoolAggregatedList * for aggregated lists of target pools. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7457,23 +7463,23 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetPoolInstanceHealth { - healthStatus: Schema$HealthStatus[]; + healthStatus?: Schema$HealthStatus[]; /** * [Output Only] Type of resource. Always compute#targetPoolInstanceHealth * when checking the health of an instance. */ - kind: string; + kind?: string; } /** * Contains a list of TargetPool resources. @@ -7482,16 +7488,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetPool resources. */ - items: Schema$TargetPool[]; + items?: Schema$TargetPool[]; /** * [Output Only] Type of resource. Always compute#targetPoolList for lists * of target pools. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7499,21 +7505,21 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetPoolsAddHealthCheckRequest { /** * The HttpHealthCheck to add to the target pool. */ - healthChecks: Schema$HealthCheckReference[]; + healthChecks?: Schema$HealthCheckReference[]; } export interface Schema$TargetPoolsAddInstanceRequest { /** @@ -7523,7 +7529,7 @@ export namespace compute_v1 { * - projects/project-id/zones/zone/instances/instance-name - * zones/zone/instances/instance-name */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$TargetPoolsRemoveHealthCheckRequest { /** @@ -7533,45 +7539,45 @@ export namespace compute_v1 { * - projects/project/global/httpHealthChecks/health-check - * global/httpHealthChecks/health-check */ - healthChecks: Schema$HealthCheckReference[]; + healthChecks?: Schema$HealthCheckReference[]; } export interface Schema$TargetPoolsRemoveInstanceRequest { /** * URLs of the instances to be removed from target pool. */ - instances: Schema$InstanceReference[]; + instances?: Schema$InstanceReference[]; } export interface Schema$TargetPoolsScopedList { /** * A list of target pools contained in this scope. */ - targetPools: Schema$TargetPool[]; + targetPools?: Schema$TargetPool[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } - export interface Schema$TargetReference { target: string; } + export interface Schema$TargetReference { target?: string; } export interface Schema$TargetSslProxiesSetBackendServiceRequest { /** * The URL of the new BackendService resource for the targetSslProxy. */ - service: string; + service?: string; } export interface Schema$TargetSslProxiesSetProxyHeaderRequest { /** * The new type of proxy header to append before sending data to the * backend. NONE or PROXY_V1 are allowed. */ - proxyHeader: string; + proxyHeader?: string; } export interface Schema$TargetSslProxiesSetSslCertificatesRequest { /** * New set of URLs to SslCertificate resources to associate with this * TargetSslProxy. Currently exactly one ssl certificate must be specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; } /** * A TargetSslProxy resource. This resource defines an SSL proxy. (== @@ -7582,22 +7588,22 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#targetSslProxy for * target SSL proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7607,32 +7613,32 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the BackendService resource. */ - service: string; + service?: string; /** * URLs to SslCertificate resources that are used to authenticate * connections to Backends. Currently exactly one SSL certificate must be * specified. */ - sslCertificates: string[]; + sslCertificates?: string[]; /** * URL of SslPolicy resource that will be associated with the TargetSslProxy * resource. If not set, the TargetSslProxy resource will not have any SSL * policy configured. */ - sslPolicy: string; + sslPolicy?: string; } /** * Contains a list of TargetSslProxy resources. @@ -7641,15 +7647,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetSslProxy resources. */ - items: Schema$TargetSslProxy[]; + items?: Schema$TargetSslProxy[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7657,28 +7663,28 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetTcpProxiesSetBackendServiceRequest { /** * The URL of the new BackendService resource for the targetTcpProxy. */ - service: string; + service?: string; } export interface Schema$TargetTcpProxiesSetProxyHeaderRequest { /** * The new type of proxy header to append before sending data to the * backend. NONE or PROXY_V1 are allowed. */ - proxyHeader: string; + proxyHeader?: string; } /** * A TargetTcpProxy resource. This resource defines a TCP proxy. (== @@ -7689,22 +7695,22 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#targetTcpProxy for * target TCP proxies. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7714,20 +7720,20 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * URL to the BackendService resource. */ - service: string; + service?: string; } /** * Contains a list of TargetTcpProxy resources. @@ -7736,15 +7742,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetTcpProxy resources. */ - items: Schema$TargetTcpProxy[]; + items?: Schema$TargetTcpProxy[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7752,15 +7758,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Represents a Target VPN gateway resource. (== resource_for @@ -7770,28 +7776,28 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] A list of URLs to the ForwardingRule resources. * ForwardingRules are created using compute.forwardingRules.insert and * associated to a VPN gateway. */ - forwardingRules: string[]; + forwardingRules?: string[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -7801,47 +7807,47 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * URL of the network to which this VPN gateway is attached. Provided by the * client when the VPN gateway is created. */ - network: string; + network?: string; /** * [Output Only] URL of the region where the target VPN gateway resides. You * must specify this field as part of the HTTP request URL. It is not * settable as a field in the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The status of the VPN gateway. */ - status: string; + status?: string; /** * [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are * created using compute.vpntunnels.insert method and associated to a VPN * gateway. */ - tunnels: string[]; + tunnels?: string[]; } export interface Schema$TargetVpnGatewayAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetVpnGateway resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7849,15 +7855,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of TargetVpnGateway resources. @@ -7866,16 +7872,16 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of TargetVpnGateway resources. */ - items: Schema$TargetVpnGateway[]; + items?: Schema$TargetVpnGateway[]; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for * target VPN gateways. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -7883,62 +7889,62 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$TargetVpnGatewaysScopedList { /** * [Output Only] A list of target vpn gateways contained in this scope. */ - targetVpnGateways: Schema$TargetVpnGateway[]; + targetVpnGateways?: Schema$TargetVpnGateway[]; /** * [Output Only] Informational warning which replaces the list of addresses * when the list is empty. */ - warning: any; + warning?: any; } export interface Schema$TCPHealthCheck { /** * The TCP port number for the health check request. The default value * is 80. Valid values are 1 through 65535. */ - port: number; + port?: number; /** * Port name as defined in InstanceGroup#NamedPort#name. If both port and * port_name are defined, port takes precedence. */ - portName: string; + portName?: string; /** * Specifies the type of proxy header to append before sending data to the * backend, either NONE or PROXY_V1. The default is NONE. */ - proxyHeader: string; + proxyHeader?: string; /** * The application data to send once the TCP connection has been established * (default value is empty). If both request and response are empty, the * connection establishment alone will indicate health. The request data can * only be ASCII. */ - request: string; + request?: string; /** * The bytes to match against the beginning of the response data. If left * empty (the default value), any response will indicate health. The * response data can only be ASCII. */ - response: string; + response?: string; } export interface Schema$TestFailure { - actualService: string; - expectedService: string; - host: string; - path: string; + actualService?: string; + expectedService?: string; + host?: string; + path?: string; } export interface Schema$TestPermissionsRequest { /** @@ -7946,14 +7952,14 @@ export namespace compute_v1 { * with wildcards (such as '*' or 'storage.*') are not * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TestPermissionsResponse { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A UrlMap resource. This resource defines the mapping from URL to the @@ -7964,36 +7970,36 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The URL of the BackendService resource if none of the hostRules match. */ - defaultService: string; + defaultService?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * Fingerprint of this resource. A hash of the contents stored in this * object. This field is used in optimistic locking. This field will be * ignored when inserting a UrlMap. An up-to-date fingerprint must be * provided in order to update the UrlMap. */ - fingerprint: string; + fingerprint?: string; /** * The list of HostRules to use against the URL. */ - hostRules: Schema$HostRule[]; + hostRules?: Schema$HostRule[]; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#urlMaps for url maps. */ - kind: string; + kind?: string; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8003,21 +8009,21 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * The list of named PathMatchers to use against the URL. */ - pathMatchers: Schema$PathMatcher[]; + pathMatchers?: Schema$PathMatcher[]; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The list of expected URL mapping tests. Request to update this UrlMap * will succeed only if all of the test cases pass. You can specify a * maximum of 100 tests per UrlMap. */ - tests: Schema$UrlMapTest[]; + tests?: Schema$UrlMapTest[]; } /** * Contains a list of UrlMap resources. @@ -8026,15 +8032,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of UrlMap resources. */ - items: Schema$UrlMap[]; + items?: Schema$UrlMap[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8042,25 +8048,25 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } - export interface Schema$UrlMapReference { urlMap: string; } + export interface Schema$UrlMapReference { urlMap?: string; } export interface Schema$UrlMapsValidateRequest { /** * Content of the UrlMap to be validated. */ - resource: Schema$UrlMap; + resource?: Schema$UrlMap; } export interface Schema$UrlMapsValidateResponse { - result: Schema$UrlMapValidationResult; + result?: Schema$UrlMapValidationResult; } /** * Message for the expected URL mappings. @@ -8069,36 +8075,36 @@ export namespace compute_v1 { /** * Description of this test case. */ - description: string; + description?: string; /** * Host portion of the URL. */ - host: string; + host?: string; /** * Path portion of the URL. */ - path: string; + path?: string; /** * Expected BackendService resource the given URL should be mapped to. */ - service: string; + service?: string; } /** * Message representing the validation result for a UrlMap. */ export interface Schema$UrlMapValidationResult { - loadErrors: string[]; + loadErrors?: string[]; /** * Whether the given UrlMap can be successfully loaded. If false, * 'loadErrors' indicates the reasons. */ - loadSucceeded: boolean; - testFailures: Schema$TestFailure[]; + loadSucceeded?: boolean; + testFailures?: Schema$TestFailure[]; /** * If successfully loaded, this field indicates whether the test passed. If * false, 'testFailures's indicate the reason of failure. */ - testPassed: boolean; + testPassed?: boolean; } /** * The location in Cloud Storage and naming method of the daily usage report. @@ -8113,7 +8119,7 @@ export namespace compute_v1 { * https://storage.googleapis.com/ in front of it, such as * gs://example-bucket. */ - bucketName: string; + bucketName?: string; /** * An optional prefix for the name of the usage report object stored in * bucketName. If not supplied, defaults to usage. The report is stored as a @@ -8121,7 +8127,7 @@ export namespace compute_v1 { * day of the usage according to Pacific Time. If you supply a prefix, it * should conform to Cloud Storage object naming conventions. */ - reportNamePrefix: string; + reportNamePrefix?: string; } /** * VPN tunnel resource. (== resource_for beta.vpnTunnels ==) (== resource_for @@ -8131,36 +8137,36 @@ export namespace compute_v1 { /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional description of this resource. Provide this property when you * create the resource. */ - description: string; + description?: string; /** * [Output Only] Detailed status message for the VPN tunnel. */ - detailedStatus: string; + detailedStatus?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * IKE protocol version to use when establishing the VPN tunnel with peer * VPN gateway. Acceptable IKE versions are 1 or 2. Default version is 2. */ - ikeVersion: number; + ikeVersion?: number; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * Local traffic selector to use when establishing the VPN tunnel with peer * VPN gateway. The value should be a CIDR formatted string, for example: * 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported. */ - localTrafficSelector: string[]; + localTrafficSelector?: string[]; /** * Name of the resource. Provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -8170,64 +8176,64 @@ export namespace compute_v1 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * IP address of the peer VPN gateway. Only IPv4 is supported. */ - peerIp: string; + peerIp?: string; /** * [Output Only] URL of the region where the VPN tunnel resides. You must * specify this field as part of the HTTP request URL. It is not settable as * a field in the request body. */ - region: string; + region?: string; /** * Remote traffic selectors to use when establishing the VPN tunnel with * peer VPN gateway. The value should be a CIDR formatted string, for * example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is * supported. */ - remoteTrafficSelector: string[]; + remoteTrafficSelector?: string[]; /** * URL of router resource to be used for dynamic routing. */ - router: string; + router?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * Shared secret used to set the secure session between the Cloud VPN * gateway and the peer VPN gateway. */ - sharedSecret: string; + sharedSecret?: string; /** * Hash of the shared secret. */ - sharedSecretHash: string; + sharedSecretHash?: string; /** * [Output Only] The status of the VPN tunnel. */ - status: string; + status?: string; /** * URL of the Target VPN gateway with which this VPN tunnel is associated. * Provided by the client when the VPN tunnel is created. */ - targetVpnGateway: string; + targetVpnGateway?: string; } export interface Schema$VpnTunnelAggregatedList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of VpnTunnelsScopedList resources. */ - items: any; + items?: any; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8235,15 +8241,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Contains a list of VpnTunnel resources. @@ -8252,15 +8258,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of VpnTunnel resources. */ - items: Schema$VpnTunnel[]; + items?: Schema$VpnTunnel[]; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8268,41 +8274,41 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$VpnTunnelsScopedList { /** * A list of vpn tunnels contained in this scope. */ - vpnTunnels: Schema$VpnTunnel[]; + vpnTunnels?: Schema$VpnTunnel[]; /** * Informational warning which replaces the list of addresses when the list * is empty. */ - warning: any; + warning?: any; } export interface Schema$XpnHostList { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * [Output Only] A list of shared VPC host project URLs. */ - items: Schema$Project[]; + items?: Schema$Project[]; /** * [Output Only] Type of resource. Always compute#xpnHostList for lists of * shared VPC hosts. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8310,15 +8316,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } /** * Service resource (a.k.a service project) ID. @@ -8329,11 +8335,11 @@ export namespace compute_v1 { * matches the project ID (e.g., my-project), not the project number (e.g., * 12345678). */ - id: string; + id?: string; /** * The type of the service resource. */ - type: string; + type?: string; } /** * A Zone resource. (== resource_for beta.zones ==) (== resource_for v1.zones @@ -8343,44 +8349,44 @@ export namespace compute_v1 { /** * [Output Only] Available cpu/platform selections for the zone. */ - availableCpuPlatforms: string[]; + availableCpuPlatforms?: string[]; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The deprecation status associated with this zone. */ - deprecated: Schema$DeprecationStatus; + deprecated?: Schema$DeprecationStatus; /** * [Output Only] Textual description of the resource. */ - description: string; + description?: string; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] Type of the resource. Always compute#zone for zones. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] Full URL reference to the region which hosts the zone. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the zone, either UP or DOWN. */ - status: string; + status?: string; } /** * Contains a list of zone resources. @@ -8389,15 +8395,15 @@ export namespace compute_v1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * A list of Zone resources. */ - items: Schema$Zone[]; + items?: Schema$Zone[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * [Output Only] This token allows you to get the next page of results for * list requests. If the number of results is larger than maxResults, use @@ -8405,15 +8411,15 @@ export namespace compute_v1 { * next list request. Subsequent list requests will have their own * nextPageToken to continue paging through the results. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] Server-defined URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Informational warning message. */ - warning: any; + warning?: any; } export interface Schema$ZoneSetLabelsRequest { /** @@ -8424,13 +8430,14 @@ export namespace compute_v1 { * change labels. Make a get() request to the resource to get the latest * fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The labels to set for this resource. */ - labels: any; + labels?: any; } + export class Resource$Acceleratortypes { root: Compute; constructor(root: Compute) { @@ -8526,29 +8533,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Acceleratortypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Acceleratortypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Acceleratortypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8577,7 +8600,7 @@ export namespace compute_v1 { /** * compute.acceleratorTypes.get - * @desc Returns the specified accelerator type. Get a list of available + * @desc Returns the specified accelerator type. Gets a list of available * accelerator types by making a list() request. * @example * * // BEFORE RUNNING: @@ -8650,24 +8673,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Acceleratortypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Acceleratortypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Acceleratortypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Acceleratortypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Acceleratortypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8779,28 +8813,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Acceleratortypes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Acceleratortypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Acceleratortypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Acceleratortypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Acceleratortypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Acceleratortypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8825,6 +8870,139 @@ export namespace compute_v1 { } } + export interface Params$Resource$Acceleratortypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Acceleratortypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the accelerator type to return. + */ + acceleratorType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Acceleratortypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Addresses { root: Compute; constructor(root: Compute) { @@ -8920,28 +9098,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Addresses$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Addresses$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Addresses$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Addresses$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Addresses$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9039,26 +9230,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Addresses$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Addresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9156,23 +9358,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Addresses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Addresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Addresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Addresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9273,26 +9485,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Addresses$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Addresses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Addresses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9403,26 +9626,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Addresses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Addresses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Addresses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Addresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Addresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Addresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9446,6 +9680,203 @@ export namespace compute_v1 { } } + export interface Params$Resource$Addresses$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Addresses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to delete. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Addresses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to return. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Addresses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Address; + } + export interface Params$Resource$Addresses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Autoscalers { root: Compute; constructor(root: Compute) { @@ -9541,28 +9972,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Autoscalers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Autoscalers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Autoscalers$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Autoscalers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Autoscalers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9660,26 +10104,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Autoscalers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Autoscalers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9706,7 +10163,7 @@ export namespace compute_v1 { /** * compute.autoscalers.get - * @desc Returns the specified autoscaler resource. Get a list of available + * @desc Returns the specified autoscaler resource. Gets a list of available * autoscalers by making a list() request. * @example * * // BEFORE RUNNING: @@ -9778,23 +10235,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Autoscalers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Autoscalers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Autoscalers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Autoscalers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Autoscalers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9895,26 +10363,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Autoscalers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Autoscalers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Autoscalers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10025,26 +10506,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Autoscalers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Autoscalers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Autoscalers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Autoscalers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10148,26 +10640,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Autoscalers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Autoscalers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Autoscalers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10270,26 +10774,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Autoscalers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Autoscalers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Autoscalers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Autoscalers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Autoscalers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Autoscalers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10313,6 +10830,275 @@ export namespace compute_v1 { } } + export interface Params$Resource$Autoscalers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Autoscalers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to delete. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to return. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Autoscalers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Autoscalers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to patch. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Autoscalers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to update. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + + export class Resource$Backendbuckets { root: Compute; constructor(root: Compute) { @@ -10396,26 +11182,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Backendbuckets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Backendbuckets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10442,7 +11241,7 @@ export namespace compute_v1 { /** * compute.backendBuckets.get - * @desc Returns the specified BackendBucket resource. Get a list of + * @desc Returns the specified BackendBucket resource. Gets a list of * available backend buckets by making a list() request. * @example * * // BEFORE RUNNING: @@ -10511,24 +11310,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Backendbuckets$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Backendbuckets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backendbuckets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backendbuckets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10625,26 +11435,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Backendbuckets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Backendbuckets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10751,26 +11574,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Backendbuckets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Backendbuckets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Backendbuckets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10874,26 +11709,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Backendbuckets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendbuckets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Backendbuckets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10997,26 +11845,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendbuckets$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Backendbuckets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Backendbuckets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendbuckets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendbuckets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendbuckets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11041,6 +11902,197 @@ export namespace compute_v1 { } } + export interface Params$Resource$Backendbuckets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to delete. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendbuckets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to return. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendbuckets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + export interface Params$Resource$Backendbuckets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendbuckets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to patch. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + export interface Params$Resource$Backendbuckets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendBucket resource to update. + */ + backendBucket?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendBucket; + } + + export class Resource$Backendservices { root: Compute; constructor(root: Compute) { @@ -11137,29 +12189,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Backendservices$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Backendservices$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Backendservices$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11256,26 +12324,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Backendservices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Backendservices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11302,7 +12383,7 @@ export namespace compute_v1 { /** * compute.backendServices.get - * @desc Returns the specified BackendService resource. Get a list of + * @desc Returns the specified BackendService resource. Gets a list of * available backend services by making a list() request. * @example * * // BEFORE RUNNING: @@ -11371,24 +12452,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Backendservices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Backendservices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backendservices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backendservices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11487,29 +12579,42 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): + getHealth( + params?: Params$Resource$Backendservices$Gethealth, + options?: MethodOptions): AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backendservices$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Backendservices$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Backendservices$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11609,26 +12714,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Backendservices$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Backendservices$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11735,26 +12853,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Backendservices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Backendservices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backendservices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11860,26 +12991,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Backendservices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Backendservices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11985,26 +13129,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Backendservices$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backendservices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Backendservices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Backendservices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backendservices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backendservices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12029,6 +13186,271 @@ export namespace compute_v1 { } } + export interface Params$Resource$Backendservices$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to delete. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Backendservices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to return. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to which the queried instance + * belongs. + */ + backendService?: string; + /** + * + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceGroupReference; + } + export interface Params$Resource$Backendservices$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Backendservices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Backendservices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to patch. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Backendservices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to update. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + + export class Resource$Disks { root: Compute; constructor(root: Compute) { @@ -12124,26 +13546,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Disks$Aggregatedlist, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Disks$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; aggregatedList( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12246,26 +13682,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createSnapshot(params?: any, options?: MethodOptions): - AxiosPromise; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Createsnapshot, + options?: MethodOptions): AxiosPromise; + createSnapshot( + params: Params$Resource$Disks$Createsnapshot, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createSnapshot( + params: Params$Resource$Disks$Createsnapshot, + callback: BodyResponseCallback): void; + createSnapshot(callback: BodyResponseCallback): void; createSnapshot( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Createsnapshot| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disks$Createsnapshot; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Createsnapshot; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12367,26 +13816,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Disks$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Disks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12412,7 +13872,7 @@ export namespace compute_v1 { /** * compute.disks.get - * @desc Returns a specified persistent disk. Get a list of available + * @desc Returns a specified persistent disk. Gets a list of available * persistent disks by making a list() request. * @example * * // BEFORE RUNNING: @@ -12484,21 +13944,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Disks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Disks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Disks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Disks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12602,26 +14074,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Disks$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Disks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12732,25 +14215,36 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Disks$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Disks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12854,26 +14348,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): + resize(params?: Params$Resource$Disks$Resize, options?: MethodOptions): AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disks$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Disks$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Disks$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12978,26 +14483,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Disks$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Disks$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disks$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Disks$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disks$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disks$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13022,6 +14539,319 @@ export namespace compute_v1 { } } + export interface Params$Resource$Disks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Disks$Createsnapshot { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to snapshot. + */ + disk?: string; + /** + * + */ + guestFlush?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Snapshot; + } + export interface Params$Resource$Disks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to delete. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the persistent disk to return. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Optional. Source image to restore onto a disk. + */ + sourceImage?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Disk; + } + export interface Params$Resource$Disks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disks$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the persistent disk. + */ + disk?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$DisksResizeRequest; + } + export interface Params$Resource$Disks$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource_?: Schema$ZoneSetLabelsRequest; + } + + export class Resource$Disktypes { root: Compute; constructor(root: Compute) { @@ -13117,28 +14947,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Disktypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Disktypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Disktypes$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Disktypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Disktypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13164,8 +15007,8 @@ export namespace compute_v1 { /** * compute.diskTypes.get - * @desc Returns the specified disk type. Get a list of available disk types - * by making a list() request. + * @desc Returns the specified disk type. Gets a list of available disk + * types by making a list() request. * @example * * // BEFORE RUNNING: * // --------------- @@ -13236,23 +15079,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Disktypes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Disktypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Disktypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Disktypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disktypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13363,26 +15216,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Disktypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Disktypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Disktypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Disktypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Disktypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Disktypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13406,6 +15270,139 @@ export namespace compute_v1 { } } + export interface Params$Resource$Disktypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Disktypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the disk type to return. + */ + diskType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Disktypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Firewalls { root: Compute; constructor(root: Compute) { @@ -13488,26 +15485,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Firewalls$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Firewalls$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13601,23 +15609,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Firewalls$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Firewalls$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Firewalls$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Firewalls$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13714,26 +15732,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Firewalls$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Firewalls$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Firewalls$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13839,26 +15868,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Firewalls$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Firewalls$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Firewalls$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13960,26 +16000,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Firewalls$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Firewalls$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14083,26 +16134,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Firewalls$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Firewalls$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Firewalls$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Firewalls$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Firewalls$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Firewalls$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14127,6 +16189,197 @@ export namespace compute_v1 { } } + export interface Params$Resource$Firewalls$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to delete. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Firewalls$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to return. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + export interface Params$Resource$Firewalls$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Firewalls$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to patch. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + export interface Params$Resource$Firewalls$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the firewall rule to update. + */ + firewall?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Firewall; + } + + export class Resource$Forwardingrules { root: Compute; constructor(root: Compute) { @@ -14222,29 +16475,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Forwardingrules$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Forwardingrules$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Forwardingrules$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Forwardingrules$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Forwardingrules$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14345,26 +16614,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Forwardingrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Forwardingrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Forwardingrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14463,24 +16745,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Forwardingrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Forwardingrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Forwardingrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Forwardingrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14581,26 +16874,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Forwardingrules$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Forwardingrules$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Forwardingrules$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14712,26 +17018,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Forwardingrules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Forwardingrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Forwardingrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14837,26 +17156,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTarget(params?: any, options?: MethodOptions): - AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Forwardingrules$Settarget, + options?: MethodOptions): AxiosPromise; + setTarget( + params: Params$Resource$Forwardingrules$Settarget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTarget( + params: Params$Resource$Forwardingrules$Settarget, + callback: BodyResponseCallback): void; + setTarget(callback: BodyResponseCallback): void; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Forwardingrules$Settarget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Forwardingrules$Settarget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Forwardingrules$Settarget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14881,6 +17213,239 @@ export namespace compute_v1 { } } + export interface Params$Resource$Forwardingrules$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Forwardingrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to delete. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Forwardingrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to return. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Forwardingrules$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Forwardingrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Forwardingrules$Settarget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource in which target is to be set. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + + export class Resource$Globaladdresses { root: Compute; constructor(root: Compute) { @@ -14963,26 +17528,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globaladdresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Globaladdresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaladdresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15008,7 +17586,7 @@ export namespace compute_v1 { /** * compute.globalAddresses.get - * @desc Returns the specified address resource. Get a list of available + * @desc Returns the specified address resource. Gets a list of available * addresses by making a list() request. * @example * * // BEFORE RUNNING: @@ -15076,23 +17654,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Globaladdresses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Globaladdresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globaladdresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globaladdresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15188,26 +17777,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Globaladdresses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Globaladdresses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15312,26 +17914,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaladdresses$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Globaladdresses$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaladdresses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Globaladdresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaladdresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaladdresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15354,6 +17969,133 @@ export namespace compute_v1 { } } + export interface Params$Resource$Globaladdresses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to delete. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Globaladdresses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the address resource to return. + */ + address?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaladdresses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Address; + } + export interface Params$Resource$Globaladdresses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Globalforwardingrules { root: Compute; constructor(root: Compute) { @@ -15437,26 +18179,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Globalforwardingrules$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Globalforwardingrules$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15483,7 +18238,7 @@ export namespace compute_v1 { /** * compute.globalForwardingRules.get - * @desc Returns the specified GlobalForwardingRule resource. Get a list of + * @desc Returns the specified GlobalForwardingRule resource. Gets a list of * available forwarding rules by making a list() request. * @example * * // BEFORE RUNNING: @@ -15552,24 +18307,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Globalforwardingrules$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Globalforwardingrules$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globalforwardingrules$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globalforwardingrules$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globalforwardingrules$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15666,26 +18432,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Globalforwardingrules$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Globalforwardingrules$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globalforwardingrules$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15792,26 +18571,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globalforwardingrules$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globalforwardingrules$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Globalforwardingrules$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15910,26 +18702,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTarget(params?: any, options?: MethodOptions): - AxiosPromise; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globalforwardingrules$Settarget, + options?: MethodOptions): AxiosPromise; + setTarget( + params: Params$Resource$Globalforwardingrules$Settarget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTarget( + params: Params$Resource$Globalforwardingrules$Settarget, + callback: BodyResponseCallback): void; + setTarget(callback: BodyResponseCallback): void; setTarget( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globalforwardingrules$Settarget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globalforwardingrules$Settarget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globalforwardingrules$Settarget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15954,6 +18759,165 @@ export namespace compute_v1 { } } + export interface Params$Resource$Globalforwardingrules$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to delete. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Globalforwardingrules$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource to return. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalforwardingrules$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ForwardingRule; + } + export interface Params$Resource$Globalforwardingrules$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globalforwardingrules$Settarget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the ForwardingRule resource in which target is to be set. + */ + forwardingRule?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + + export class Resource$Globaloperations { root: Compute; constructor(root: Compute) { @@ -16049,28 +19013,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Globaloperations$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Globaloperations$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Globaloperations$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Globaloperations$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Globaloperations$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16160,22 +19137,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaloperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Globaloperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Globaloperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Globaloperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16202,7 +19194,7 @@ export namespace compute_v1 { /** * compute.globalOperations.get - * @desc Retrieves the specified Operations resource. Get a list of + * @desc Retrieves the specified Operations resource. Gets a list of * operations by making a list() request. * @example * * // BEFORE RUNNING: @@ -16270,23 +19262,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Globaloperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Globaloperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Globaloperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Globaloperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16394,26 +19398,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Globaloperations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Globaloperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Globaloperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Globaloperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Globaloperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Globaloperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16437,6 +19454,146 @@ export namespace compute_v1 { } } + export interface Params$Resource$Globaloperations$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Globaloperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Healthchecks { root: Compute; constructor(root: Compute) { @@ -16519,26 +19676,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Healthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Healthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16565,8 +19735,8 @@ export namespace compute_v1 { /** * compute.healthChecks.get - * @desc Returns the specified HealthCheck resource. Get a list of available - * health checks by making a list() request. + * @desc Returns the specified HealthCheck resource. Gets a list of + * available health checks by making a list() request. * @example * * // BEFORE RUNNING: * // --------------- @@ -16633,24 +19803,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Healthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Healthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Healthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Healthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Healthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16747,26 +19927,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Healthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Healthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16873,26 +20066,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Healthchecks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Healthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Healthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16995,26 +20200,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Healthchecks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Healthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Healthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Healthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17117,26 +20334,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Healthchecks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Healthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Healthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Healthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Healthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Healthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17161,6 +20391,197 @@ export namespace compute_v1 { } } + export interface Params$Resource$Healthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to delete. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Healthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to return. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Healthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Healthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to patch. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + export interface Params$Resource$Healthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HealthCheck resource to update. + */ + healthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HealthCheck; + } + + export class Resource$Httphealthchecks { root: Compute; constructor(root: Compute) { @@ -17244,26 +20665,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Httphealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Httphealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Httphealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17290,7 +20724,7 @@ export namespace compute_v1 { /** * compute.httpHealthChecks.get - * @desc Returns the specified HttpHealthCheck resource. Get a list of + * @desc Returns the specified HttpHealthCheck resource. Gets a list of * available HTTP health checks by making a list() request. * @example * * // BEFORE RUNNING: @@ -17359,24 +20793,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Httphealthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Httphealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Httphealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Httphealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17473,26 +20918,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Httphealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Httphealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17599,28 +21057,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Httphealthchecks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Httphealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Httphealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17724,26 +21193,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Httphealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Httphealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17847,26 +21329,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httphealthchecks$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httphealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Httphealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Httphealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httphealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httphealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17891,6 +21386,197 @@ export namespace compute_v1 { } } + export interface Params$Resource$Httphealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to delete. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Httphealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to return. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httphealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + export interface Params$Resource$Httphealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httphealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to patch. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + export interface Params$Resource$Httphealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpHealthCheck resource to update. + */ + httpHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpHealthCheck; + } + + export class Resource$Httpshealthchecks { root: Compute; constructor(root: Compute) { @@ -17974,26 +21660,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Httpshealthchecks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Httpshealthchecks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Httpshealthchecks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18020,7 +21719,7 @@ export namespace compute_v1 { /** * compute.httpsHealthChecks.get - * @desc Returns the specified HttpsHealthCheck resource. Get a list of + * @desc Returns the specified HttpsHealthCheck resource. Gets a list of * available HTTPS health checks by making a list() request. * @example * * // BEFORE RUNNING: @@ -18089,24 +21788,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Httpshealthchecks$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Httpshealthchecks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Httpshealthchecks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Httpshealthchecks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18203,26 +21913,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Httpshealthchecks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18329,28 +22052,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Httpshealthchecks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Httpshealthchecks$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Httpshealthchecks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Httpshealthchecks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18454,26 +22189,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Httpshealthchecks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18577,26 +22325,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Httpshealthchecks$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Httpshealthchecks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Httpshealthchecks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Httpshealthchecks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Httpshealthchecks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Httpshealthchecks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18621,6 +22382,197 @@ export namespace compute_v1 { } } + export interface Params$Resource$Httpshealthchecks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to delete. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Httpshealthchecks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to return. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httpshealthchecks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + export interface Params$Resource$Httpshealthchecks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Httpshealthchecks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to patch. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + export interface Params$Resource$Httpshealthchecks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the HttpsHealthCheck resource to update. + */ + httpsHealthCheck?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$HttpsHealthCheck; + } + + export class Resource$Images { root: Compute; constructor(root: Compute) { @@ -18703,26 +22655,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Images$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Images$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18822,26 +22785,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deprecate(params?: any, options?: MethodOptions): - AxiosPromise; deprecate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Deprecate, + options?: MethodOptions): AxiosPromise; + deprecate( + params: Params$Resource$Images$Deprecate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deprecate( + params: Params$Resource$Images$Deprecate, + callback: BodyResponseCallback): void; + deprecate(callback: BodyResponseCallback): void; deprecate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Images$Deprecate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Deprecate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Deprecate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18868,7 +22843,7 @@ export namespace compute_v1 { /** * compute.images.get - * @desc Returns the specified image. Get a list of available images by + * @desc Returns the specified image. Gets a list of available images by * making a list() request. * @example * * // BEFORE RUNNING: @@ -18936,23 +22911,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Images$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Images$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Images$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Images$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19046,26 +23031,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getFromFamily(params?: any, options?: MethodOptions): - AxiosPromise; getFromFamily( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Getfromfamily, + options?: MethodOptions): AxiosPromise; getFromFamily( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Getfromfamily, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getFromFamily( + params: Params$Resource$Images$Getfromfamily, + callback: BodyResponseCallback): void; + getFromFamily(callback: BodyResponseCallback): void; + getFromFamily( + paramsOrCallback?: Params$Resource$Images$Getfromfamily| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Images$Getfromfamily; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Getfromfamily; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19163,26 +23160,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Images$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Images$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19292,25 +23300,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Images$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Images$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Images$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19408,26 +23428,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Images$Setlabels, + options?: MethodOptions): AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Images$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLabels( + params: Params$Resource$Images$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Images$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19452,6 +23484,203 @@ export namespace compute_v1 { } } + export interface Params$Resource$Images$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image resource to delete. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Images$Deprecate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Image name. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$DeprecationStatus; + } + export interface Params$Resource$Images$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image resource to return. + */ + image?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Getfromfamily { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the image family to search for. + */ + family?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Force image creation if true. + */ + forceCreate?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Image; + } + export interface Params$Resource$Images$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Images$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + + export class Resource$Instancegroupmanagers { root: Compute; constructor(root: Compute) { @@ -19554,26 +23783,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; + abandonInstances( + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + abandonInstances( + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19682,31 +23925,49 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Instancegroupmanagers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroupmanagers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Instancegroupmanagers$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19810,26 +24071,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19942,26 +24216,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; + deleteInstances( + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; + deleteInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20062,26 +24350,36 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroupmanagers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Instancegroupmanagers$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroupmanagers$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20189,26 +24487,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20320,28 +24631,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroupmanagers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancegroupmanagers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancegroupmanagers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20447,30 +24770,49 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listManagedInstances(params?: any, options?: MethodOptions): + listManagedInstances( + params?: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + options?: MethodOptions): AxiosPromise; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + options: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>): void; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Instancegroupmanagers$Listmanagedinstances, + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>): void; + listManagedInstances( + callback: BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>): void; + listManagedInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Listmanagedinstances| + BodyResponseCallback< + Schema$InstanceGroupManagersListManagedInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>, callback?: BodyResponseCallback< Schema$InstanceGroupManagersListManagedInstancesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Listmanagedinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Listmanagedinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20586,26 +24928,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; + recreateInstances( + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Recreateinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20722,26 +25078,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Instancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20846,26 +25215,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; + setInstanceTemplate( + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setInstanceTemplate( + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20973,26 +25357,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Instancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; + setTargetPools( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21017,6 +25414,457 @@ export namespace compute_v1 { } } + export interface Params$Resource$Instancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group to delete. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the managed instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Listmanagedinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersRecreateInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The number of running instances that the managed instance group should + * maintain at any given time. The group automatically adds or removes + * instances to maintain the number of instances specified by this + * parameter. + */ + size?: number; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetInstanceTemplateRequest; + } + export interface Params$Resource$Instancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the managed instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetTargetPoolsRequest; + } + + export class Resource$Instancegroups { root: Compute; constructor(root: Compute) { @@ -21111,26 +25959,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addInstances(params?: any, options?: MethodOptions): - AxiosPromise; addInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Addinstances, + options?: MethodOptions): AxiosPromise; + addInstances( + params: Params$Resource$Instancegroups$Addinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Addinstances, + callback: BodyResponseCallback): void; + addInstances(callback: BodyResponseCallback): void; + addInstances( + paramsOrCallback?: Params$Resource$Instancegroups$Addinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Addinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Addinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21238,29 +26099,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Instancegroups$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Instancegroups$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroups$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21362,26 +26239,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancegroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21408,7 +26298,7 @@ export namespace compute_v1 { /** * compute.instanceGroups.get - * @desc Returns the specified instance group. Get a list of available + * @desc Returns the specified instance group. Gets a list of available * instance groups by making a list() request. * @example * * // BEFORE RUNNING: @@ -21481,24 +26371,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instancegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21599,26 +26500,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancegroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instancegroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21730,26 +26644,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Instancegroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instancegroups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Instancegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21870,29 +26796,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listInstances(params?: any, options?: MethodOptions): + listInstances( + params?: Params$Resource$Instancegroups$Listinstances, + options?: MethodOptions): AxiosPromise; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Listinstances, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instancegroups$Listinstances, + callback: BodyResponseCallback): + void; + listInstances(callback: + BodyResponseCallback): + void; + listInstances( + paramsOrCallback?: Params$Resource$Instancegroups$Listinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Listinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Listinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22000,26 +26942,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeInstances(params?: any, options?: MethodOptions): - AxiosPromise; removeInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Removeinstances, + options?: MethodOptions): AxiosPromise; + removeInstances( + params: Params$Resource$Instancegroups$Removeinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroups$Removeinstances, + callback: BodyResponseCallback): void; + removeInstances(callback: BodyResponseCallback): void; + removeInstances( + paramsOrCallback?: Params$Resource$Instancegroups$Removeinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Removeinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Removeinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22124,26 +27079,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNamedPorts(params?: any, options?: MethodOptions): - AxiosPromise; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroups$Setnamedports, + options?: MethodOptions): AxiosPromise; + setNamedPorts( + params: Params$Resource$Instancegroups$Setnamedports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setNamedPorts( + params: Params$Resource$Instancegroups$Setnamedports, + callback: BodyResponseCallback): void; + setNamedPorts(callback: BodyResponseCallback): void; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroups$Setnamedports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroups$Setnamedports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroups$Setnamedports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22168,6 +27136,379 @@ export namespace compute_v1 { } } + export interface Params$Resource$Instancegroups$Addinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where you are adding instances. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsAddInstancesRequest; + } + export interface Params$Resource$Instancegroups$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancegroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group to delete. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where you want to create the instance group. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroup; + } + export interface Params$Resource$Instancegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + } + export interface Params$Resource$Instancegroups$Listinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The name of the instance group from which you want to generate a list of + * included instances. + */ + instanceGroup?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsListInstancesRequest; + } + export interface Params$Resource$Instancegroups$Removeinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where the specified instances will be + * removed. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsRemoveInstancesRequest; + } + export interface Params$Resource$Instancegroups$Setnamedports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group where the named ports are updated. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone where the instance group is located. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupsSetNamedPortsRequest; + } + + export class Resource$Instances { root: Compute; constructor(root: Compute) { @@ -22263,26 +27604,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; addAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Addaccessconfig, + options?: MethodOptions): AxiosPromise; + addAccessConfig( + params: Params$Resource$Instances$Addaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addAccessConfig( + params: Params$Resource$Instances$Addaccessconfig, + callback: BodyResponseCallback): void; + addAccessConfig(callback: BodyResponseCallback): void; addAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Addaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Addaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Addaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22390,28 +27744,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Instances$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Instances$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Instances$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22517,26 +27884,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - attachDisk(params?: any, options?: MethodOptions): - AxiosPromise; attachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Attachdisk, + options?: MethodOptions): AxiosPromise; + attachDisk( + params: Params$Resource$Instances$Attachdisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; attachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Attachdisk, + callback: BodyResponseCallback): void; + attachDisk(callback: BodyResponseCallback): void; + attachDisk( + paramsOrCallback?: Params$Resource$Instances$Attachdisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Attachdisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Attachdisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22636,26 +28016,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Instances$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22762,26 +28153,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; deleteAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Deleteaccessconfig, + options?: MethodOptions): AxiosPromise; + deleteAccessConfig( + params: Params$Resource$Instances$Deleteaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Deleteaccessconfig, + callback: BodyResponseCallback): void; + deleteAccessConfig(callback: BodyResponseCallback): void; + deleteAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Deleteaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Deleteaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Deleteaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22885,26 +28289,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - detachDisk(params?: any, options?: MethodOptions): - AxiosPromise; detachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Detachdisk, + options?: MethodOptions): AxiosPromise; detachDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Detachdisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + detachDisk( + params: Params$Resource$Instances$Detachdisk, + callback: BodyResponseCallback): void; + detachDisk(callback: BodyResponseCallback): void; + detachDisk( + paramsOrCallback?: Params$Resource$Instances$Detachdisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Detachdisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Detachdisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22931,7 +28348,7 @@ export namespace compute_v1 { /** * compute.instances.get - * @desc Returns the specified Instance resource. Get a list of available + * @desc Returns the specified Instance resource. Gets a list of available * instances by making a list() request. * @example * * // BEFORE RUNNING: @@ -23003,23 +28420,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23117,26 +28544,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getSerialPortOutput(params?: any, options?: MethodOptions): - AxiosPromise; getSerialPortOutput( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Getserialportoutput, + options?: MethodOptions): AxiosPromise; + getSerialPortOutput( + params: Params$Resource$Instances$Getserialportoutput, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getSerialPortOutput( + params: Params$Resource$Instances$Getserialportoutput, + callback: BodyResponseCallback): void; + getSerialPortOutput( + callback: BodyResponseCallback): void; getSerialPortOutput( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Getserialportoutput| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Getserialportoutput; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Getserialportoutput; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23238,26 +28679,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Instances$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23368,26 +28820,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Instances$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23430,28 +28893,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listReferrers(params?: any, options?: MethodOptions): - AxiosPromise; listReferrers( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Listreferrers, + options?: MethodOptions): AxiosPromise; + listReferrers( + params: Params$Resource$Instances$Listreferrers, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listReferrers( + params: Params$Resource$Instances$Listreferrers, + callback: BodyResponseCallback): void; + listReferrers(callback: BodyResponseCallback): + void; listReferrers( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Listreferrers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Listreferrers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Listreferrers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23551,26 +29027,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): + reset(params?: Params$Resource$Instances$Reset, options?: MethodOptions): AxiosPromise; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; + reset( + paramsOrCallback?: Params$Resource$Instances$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23668,26 +29155,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDeletionProtection(params?: any, options?: MethodOptions): - AxiosPromise; setDeletionProtection( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setdeletionprotection, + options?: MethodOptions): AxiosPromise; setDeletionProtection( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setdeletionprotection, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDeletionProtection( + params: Params$Resource$Instances$Setdeletionprotection, + callback: BodyResponseCallback): void; + setDeletionProtection(callback: BodyResponseCallback): + void; + setDeletionProtection( + paramsOrCallback?: Params$Resource$Instances$Setdeletionprotection| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setdeletionprotection; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setdeletionprotection; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23794,26 +29295,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDiskAutoDelete(params?: any, options?: MethodOptions): - AxiosPromise; setDiskAutoDelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setdiskautodelete, + options?: MethodOptions): AxiosPromise; setDiskAutoDelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setdiskautodelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDiskAutoDelete( + params: Params$Resource$Instances$Setdiskautodelete, + callback: BodyResponseCallback): void; + setDiskAutoDelete(callback: BodyResponseCallback): void; + setDiskAutoDelete( + paramsOrCallback?: Params$Resource$Instances$Setdiskautodelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setdiskautodelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setdiskautodelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23919,26 +29433,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Instances$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Instances$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24041,26 +29568,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMachineResources(params?: any, options?: MethodOptions): - AxiosPromise; setMachineResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmachineresources, + options?: MethodOptions): AxiosPromise; + setMachineResources( + params: Params$Resource$Instances$Setmachineresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMachineResources( + params: Params$Resource$Instances$Setmachineresources, + callback: BodyResponseCallback): void; + setMachineResources(callback: BodyResponseCallback): void; setMachineResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setmachineresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setmachineresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmachineresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24165,26 +29705,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMachineType(params?: any, options?: MethodOptions): - AxiosPromise; setMachineType( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmachinetype, + options?: MethodOptions): AxiosPromise; + setMachineType( + params: Params$Resource$Instances$Setmachinetype, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMachineType( + params: Params$Resource$Instances$Setmachinetype, + callback: BodyResponseCallback): void; + setMachineType(callback: BodyResponseCallback): void; setMachineType( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setmachinetype| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setmachinetype; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmachinetype; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24289,26 +29842,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMetadata(params?: any, options?: MethodOptions): - AxiosPromise; setMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmetadata, + options?: MethodOptions): AxiosPromise; + setMetadata( + params: Params$Resource$Instances$Setmetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setmetadata, + callback: BodyResponseCallback): void; + setMetadata(callback: BodyResponseCallback): void; + setMetadata( + paramsOrCallback?: Params$Resource$Instances$Setmetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setmetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24414,26 +29980,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMinCpuPlatform(params?: any, options?: MethodOptions): - AxiosPromise; setMinCpuPlatform( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setmincpuplatform, + options?: MethodOptions): AxiosPromise; + setMinCpuPlatform( + params: Params$Resource$Instances$Setmincpuplatform, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMinCpuPlatform( + params: Params$Resource$Instances$Setmincpuplatform, + callback: BodyResponseCallback): void; + setMinCpuPlatform(callback: BodyResponseCallback): void; setMinCpuPlatform( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Setmincpuplatform| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setmincpuplatform; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setmincpuplatform; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24537,26 +30116,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setScheduling(params?: any, options?: MethodOptions): - AxiosPromise; setScheduling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setscheduling, + options?: MethodOptions): AxiosPromise; + setScheduling( + params: Params$Resource$Instances$Setscheduling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setScheduling( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setscheduling, + callback: BodyResponseCallback): void; + setScheduling(callback: BodyResponseCallback): void; + setScheduling( + paramsOrCallback?: Params$Resource$Instances$Setscheduling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setscheduling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setscheduling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24661,26 +30253,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setServiceAccount(params?: any, options?: MethodOptions): - AxiosPromise; setServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Setserviceaccount, + options?: MethodOptions): AxiosPromise; setServiceAccount( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Setserviceaccount, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setServiceAccount( + params: Params$Resource$Instances$Setserviceaccount, + callback: BodyResponseCallback): void; + setServiceAccount(callback: BodyResponseCallback): void; + setServiceAccount( + paramsOrCallback?: Params$Resource$Instances$Setserviceaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Setserviceaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setserviceaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24785,274 +30390,46 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTags(params?: any, options?: MethodOptions): - AxiosPromise; setTags( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Settags, + options?: MethodOptions): AxiosPromise; + setTags( + params: Params$Resource$Instances$Settags, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setTags( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Settags, + callback: BodyResponseCallback): void; + setTags(callback: BodyResponseCallback): void; + setTags( + paramsOrCallback?: Params$Resource$Instances$Settags| + BodyResponseCallback, + optionsOrCallback?: 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 + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setTags') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Settags; + let options = (optionsOrCallback || {}) as MethodOptions; - - /** - * compute.instances.start - * @desc Starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('v1'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The name of the zone for this request. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * // Name of the instance resource to start. - * instance: 'my-instance', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * compute.instances.start(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.instances.start - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Name of the instance resource to start. - * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - start(params?: any, options?: MethodOptions): - AxiosPromise; - start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Settags; 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 + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'zone', 'instance'], - pathParams: ['instance', 'project', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - /** - * compute.instances.startWithEncryptionKey - * @desc Starts an instance that was stopped using the using the - * instances().stop method. For more information, see Restart an instance. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Compute Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/compute - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var compute = google.compute('v1'); - * - * authorize(function(authClient) { - * var request = { - * // Project ID for this request. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The name of the zone for this request. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * // Name of the instance resource to start. - * instance: 'my-instance', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * compute.instances.startWithEncryptionKey(request, function(err, - * response) { if (err) { console.error(err); return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias compute.instances.startWithEncryptionKey - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.instance Name of the instance resource to start. - * @param {string} params.project Project ID for this request. - * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). - * @param {string} params.zone The name of the zone for this request. - * @param {().InstancesStartWithEncryptionKeyRequest} 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 - */ - startWithEncryptionKey(params?: any, options?: MethodOptions): - AxiosPromise; - startWithEncryptionKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - startWithEncryptionKey( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + - '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey') + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setTags') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -25071,13 +30448,279 @@ export namespace compute_v1 { /** - * compute.instances.stop - * @desc Stops a running instance, shutting it down cleanly, and allows you - * to restart the instance at a later time. Stopped instances do not incur - * VM usage charges while they are stopped. However, resources that the VM - * is using, such as persistent disks and static IP addresses, will continue - * to be charged until they are deleted. For more information, see Stopping - * an instance. + * compute.instances.start + * @desc Starts an instance that was stopped using the instances().stop + * method. For more information, see Restart an instance. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('v1'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // The name of the zone for this request. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * // Name of the instance resource to start. + * instance: 'my-instance', // TODO: Update placeholder value. + * + * auth: authClient, + * }; + * + * compute.instances.start(request, function(err, response) { + * if (err) { + * console.error(err); + * return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.instances.start + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance Name of the instance resource to start. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + start(params?: Params$Resource$Instances$Start, options?: MethodOptions): + AxiosPromise; + start( + params: Params$Resource$Instances$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + start( + params: Params$Resource$Instances$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: Params$Resource$Instances$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Start; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instances.startWithEncryptionKey + * @desc Starts an instance that was stopped using the instances().stop + * method. For more information, see Restart an instance. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Compute Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/compute + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var compute = google.compute('v1'); + * + * authorize(function(authClient) { + * var request = { + * // Project ID for this request. + * project: 'my-project', // TODO: Update placeholder value. + * + * // The name of the zone for this request. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * // Name of the instance resource to start. + * instance: 'my-instance', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * + * auth: authClient, + * }; + * + * compute.instances.startWithEncryptionKey(request, function(err, + * response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias compute.instances.startWithEncryptionKey + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instance Name of the instance resource to start. + * @param {string} params.project Project ID for this request. + * @param {string=} params.requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + * @param {string} params.zone The name of the zone for this request. + * @param {().InstancesStartWithEncryptionKeyRequest} 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 + */ + startWithEncryptionKey( + params?: Params$Resource$Instances$Startwithencryptionkey, + options?: MethodOptions): AxiosPromise; + startWithEncryptionKey( + params: Params$Resource$Instances$Startwithencryptionkey, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startWithEncryptionKey( + params: Params$Resource$Instances$Startwithencryptionkey, + callback: BodyResponseCallback): void; + startWithEncryptionKey(callback: BodyResponseCallback): + void; + startWithEncryptionKey( + paramsOrCallback?: Params$Resource$Instances$Startwithencryptionkey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Startwithencryptionkey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Startwithencryptionkey; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * compute.instances.stop + * @desc Stops a running instance, shutting it down cleanly, and allows you + * to restart the instance at a later time. Stopped instances do not incur + * VM usage charges while they are stopped. However, resources that the VM + * is using, such as persistent disks and static IP addresses, will continue + * to be charged until they are deleted. For more information, see Stopping + * an instance. * @example * * // BEFORE RUNNING: * // --------------- @@ -25149,25 +30792,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Instances$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Instances$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25212,26 +30867,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateAccessConfig(params?: any, options?: MethodOptions): - AxiosPromise; updateAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Updateaccessconfig, + options?: MethodOptions): AxiosPromise; updateAccessConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Updateaccessconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateAccessConfig( + params: Params$Resource$Instances$Updateaccessconfig, + callback: BodyResponseCallback): void; + updateAccessConfig(callback: BodyResponseCallback): void; + updateAccessConfig( + paramsOrCallback?: Params$Resource$Instances$Updateaccessconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updateaccessconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updateaccessconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25274,26 +30942,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateNetworkInterface(params?: any, options?: MethodOptions): - AxiosPromise; updateNetworkInterface( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Updatenetworkinterface, + options?: MethodOptions): AxiosPromise; + updateNetworkInterface( + params: Params$Resource$Instances$Updatenetworkinterface, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateNetworkInterface( + params: Params$Resource$Instances$Updatenetworkinterface, + callback: BodyResponseCallback): void; + updateNetworkInterface(callback: BodyResponseCallback): + void; updateNetworkInterface( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Updatenetworkinterface| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instances$Updatenetworkinterface; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Updatenetworkinterface; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25318,6 +31000,1034 @@ export namespace compute_v1 { } } + export interface Params$Resource$Instances$Addaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface to add to this instance. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AccessConfig; + } + export interface Params$Resource$Instances$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instances$Attachdisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AttachedDisk; + } + export interface Params$Resource$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to delete. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Deleteaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the access config to delete. + */ + accessConfig?: string; + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Detachdisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Disk device name to detach. + */ + deviceName?: string; + /** + * Instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to return. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Getserialportoutput { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Specifies which COM or serial port to retrieve data from. + */ + port?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Returns output starting from a specific byte position. Use this to page + * through output when the output is too large to return in a single + * request. For the initial request, leave this field unspecified. For + * subsequent calls, this field should be set to the next value returned in + * the previous call. + */ + start?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Specifies instance template to create the instance. This field is + * optional. It can be a full or partial URL. For example, the following are + * all valid URLs to an instance template: - + * https://www.googleapis.com/compute/v1/projects/project/global/global/instanceTemplates/instanceTemplate + * - projects/project/global/global/instanceTemplates/instanceTemplate - + * global/instancesTemplates/instanceTemplate + */ + sourceInstanceTemplate?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Instance; + } + export interface Params$Resource$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Listreferrers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * Name of the target instance scoping this request, or '-' if the request + * should span over all instances in the container. + */ + instance?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setdeletionprotection { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the resource should be protected against deletion. + */ + deletionProtection?: boolean; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setdiskautodelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to auto-delete the disk when the instance is deleted. + */ + autoDelete?: boolean; + /** + * The device name of the disk to modify. + */ + deviceName?: string; + /** + * The instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetLabelsRequest; + } + export interface Params$Resource$Instances$Setmachineresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMachineResourcesRequest; + } + export interface Params$Resource$Instances$Setmachinetype { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMachineTypeRequest; + } + export interface Params$Resource$Instances$Setmetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Metadata; + } + export interface Params$Resource$Instances$Setmincpuplatform { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetMinCpuPlatformRequest; + } + export interface Params$Resource$Instances$Setscheduling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Instance name. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Scheduling; + } + export interface Params$Resource$Instances$Setserviceaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesSetServiceAccountRequest; + } + export interface Params$Resource$Instances$Settags { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance scoping this request. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Tags; + } + export interface Params$Resource$Instances$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Startwithencryptionkey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to start. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstancesStartWithEncryptionKeyRequest; + } + export interface Params$Resource$Instances$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to stop. + */ + instance?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Instances$Updateaccessconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface where the access config is attached. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$AccessConfig; + } + export interface Params$Resource$Instances$Updatenetworkinterface { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance name for this request. + */ + instance?: string; + /** + * The name of the network interface to update. + */ + networkInterface?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworkInterface; + } + + export class Resource$Instancetemplates { root: Compute; constructor(root: Compute) { @@ -25403,26 +32113,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancetemplates$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancetemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Instancetemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancetemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25518,24 +32241,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancetemplates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instancetemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancetemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancetemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25635,26 +32369,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancetemplates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancetemplates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancetemplates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instancetemplates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25761,28 +32508,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancetemplates$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancetemplates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancetemplates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancetemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancetemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancetemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25806,6 +32565,133 @@ export namespace compute_v1 { } } + export interface Params$Resource$Instancetemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance template to delete. + */ + instanceTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Instancetemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance template. + */ + instanceTemplate?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Instancetemplates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceTemplate; + } + export interface Params$Resource$Instancetemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Interconnectattachments { root: Compute; constructor(root: Compute) { @@ -25902,31 +32788,50 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Interconnectattachments$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnectattachments$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Interconnectattachments$Aggregatedlist, + callback: + BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Interconnectattachments$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26026,26 +32931,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnectattachments$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnectattachments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Interconnectattachments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Interconnectattachments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26144,26 +33062,36 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Interconnectattachments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Interconnectattachments$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnectattachments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnectattachments$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26262,26 +33190,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnectattachments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Interconnectattachments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Interconnectattachments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnectattachments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26393,29 +33334,44 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Interconnectattachments$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Interconnectattachments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Interconnectattachments$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Interconnectattachments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectattachments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectattachments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26441,6 +33397,203 @@ export namespace compute_v1 { } } + export interface Params$Resource$Interconnectattachments$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectattachments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to delete. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Interconnectattachments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect attachment to return. + */ + interconnectAttachment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Interconnectattachments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InterconnectAttachment; + } + export interface Params$Resource$Interconnectattachments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Interconnectlocations { root: Compute; constructor(root: Compute) { @@ -26455,7 +33608,7 @@ export namespace compute_v1 { /** * compute.interconnectLocations.get - * @desc Returns the details for the specified interconnect location. Get a + * @desc Returns the details for the specified interconnect location. Gets a * list of available interconnect locations by making a list() request. * @example * * // BEFORE RUNNING: @@ -26524,26 +33677,36 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Interconnectlocations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Interconnectlocations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnectlocations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnectlocations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnectlocations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26651,28 +33814,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Interconnectlocations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Interconnectlocations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Interconnectlocations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Interconnectlocations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Interconnectlocations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnectlocations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26697,6 +33872,77 @@ export namespace compute_v1 { } } + export interface Params$Resource$Interconnectlocations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect location to return. + */ + interconnectLocation?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnectlocations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Interconnects { root: Compute; constructor(root: Compute) { @@ -26779,26 +34025,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Interconnects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Interconnects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26825,7 +34084,7 @@ export namespace compute_v1 { /** * compute.interconnects.get - * @desc Returns the specified interconnect. Get a list of available + * @desc Returns the specified interconnect. Gets a list of available * interconnects by making a list() request. * @example * * // BEFORE RUNNING: @@ -26893,24 +34152,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Interconnects$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Interconnects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Interconnects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Interconnects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27007,26 +34277,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Interconnects$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Interconnects$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnects$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27133,26 +34416,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Interconnects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Interconnects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Interconnects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Interconnects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27255,26 +34550,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Interconnects$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Interconnects$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Interconnects$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Interconnects$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Interconnects$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Interconnects$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27299,6 +34607,165 @@ export namespace compute_v1 { } } + export interface Params$Resource$Interconnects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to delete. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Interconnects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to return. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnects$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Interconnect; + } + export interface Params$Resource$Interconnects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Interconnects$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the interconnect to update. + */ + interconnect?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Interconnect; + } + + export class Resource$Licensecodes { root: Compute; constructor(root: Compute) { @@ -27325,24 +34792,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Licensecodes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Licensecodes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licensecodes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licensecodes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licensecodes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27381,28 +34858,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Licensecodes$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Licensecodes$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Licensecodes$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Licensecodes$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Licensecodes$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licensecodes$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27427,6 +34917,42 @@ export namespace compute_v1 { } } + export interface Params$Resource$Licensecodes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Number corresponding to the License code resource to return. + */ + licenseCode?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licensecodes$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Licenses { root: Compute; constructor(root: Compute) { @@ -27453,26 +34979,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Licenses$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Licenses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Licenses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Licenses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27565,23 +35102,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Licenses$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Licenses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licenses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licenses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27619,26 +35166,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Licenses$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Licenses$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Licenses$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Licenses$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27682,28 +35240,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Licenses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Licenses$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Licenses$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Licenses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Licenses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27740,28 +35308,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Licenses$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Licenses$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Licenses$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Licenses$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Licenses$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenses$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27786,6 +35367,152 @@ export namespace compute_v1 { } } + export interface Params$Resource$Licenses$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the license resource to delete. + */ + license?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Licenses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the License resource to return. + */ + license?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licenses$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$License; + } + export interface Params$Resource$Licenses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Licenses$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + + export class Resource$Machinetypes { root: Compute; constructor(root: Compute) { @@ -27881,29 +35608,42 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Machinetypes$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Machinetypes$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Machinetypes$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + aggregatedList( + paramsOrCallback?: Params$Resource$Machinetypes$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Machinetypes$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28002,24 +35742,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Machinetypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Machinetypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Machinetypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Machinetypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Machinetypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28131,26 +35881,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Machinetypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Machinetypes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Machinetypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Machinetypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Machinetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Machinetypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28174,6 +35936,139 @@ export namespace compute_v1 { } } + export interface Params$Resource$Machinetypes$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Machinetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the machine type to return. + */ + machineType?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Machinetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * The name of the zone for this request. + */ + zone?: string; + } + + export class Resource$Networks { root: Compute; constructor(root: Compute) { @@ -28261,26 +36156,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addPeering(params?: any, options?: MethodOptions): - AxiosPromise; addPeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Networks$Addpeering, + options?: MethodOptions): AxiosPromise; + addPeering( + params: Params$Resource$Networks$Addpeering, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addPeering( + params: Params$Resource$Networks$Addpeering, + callback: BodyResponseCallback): void; + addPeering(callback: BodyResponseCallback): void; addPeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Networks$Addpeering| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Addpeering; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Addpeering; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28375,26 +36283,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Networks$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Networks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28420,7 +36339,7 @@ export namespace compute_v1 { /** * compute.networks.get - * @desc Returns the specified network. Get a list of available networks by + * @desc Returns the specified network. Gets a list of available networks by * making a list() request. * @example * * // BEFORE RUNNING: @@ -28488,23 +36407,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Networks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Networks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Networks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Networks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28600,26 +36529,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Networks$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Networks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Networks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28724,26 +36664,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Networks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Networks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28845,26 +36796,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Networks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Networks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Networks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Networks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28963,26 +36925,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removePeering(params?: any, options?: MethodOptions): - AxiosPromise; removePeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Networks$Removepeering, + options?: MethodOptions): AxiosPromise; removePeering( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Removepeering, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removePeering( + params: Params$Resource$Networks$Removepeering, + callback: BodyResponseCallback): void; + removePeering(callback: BodyResponseCallback): void; + removePeering( + paramsOrCallback?: Params$Resource$Networks$Removepeering| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Networks$Removepeering; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Removepeering; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29078,26 +37053,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - switchToCustomMode(params?: any, options?: MethodOptions): - AxiosPromise; switchToCustomMode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Networks$Switchtocustommode, + options?: MethodOptions): AxiosPromise; + switchToCustomMode( + params: Params$Resource$Networks$Switchtocustommode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; switchToCustomMode( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Networks$Switchtocustommode, + callback: BodyResponseCallback): void; + switchToCustomMode(callback: BodyResponseCallback): void; + switchToCustomMode( + paramsOrCallback?: Params$Resource$Networks$Switchtocustommode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Networks$Switchtocustommode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Networks$Switchtocustommode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29122,6 +37110,257 @@ export namespace compute_v1 { } } + export interface Params$Resource$Networks$Addpeering { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network resource to add peering to. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworksAddPeeringRequest; + } + export interface Params$Resource$Networks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to delete. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Networks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to return. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Network; + } + export interface Params$Resource$Networks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Networks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to update. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Network; + } + export interface Params$Resource$Networks$Removepeering { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network resource to remove peering from. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$NetworksRemovePeeringRequest; + } + export interface Params$Resource$Networks$Switchtocustommode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the network to be updated. + */ + network?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + + export class Resource$Projects { root: Compute; constructor(root: Compute) { @@ -29200,26 +37439,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disableXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; disableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Disablexpnhost, + options?: MethodOptions): AxiosPromise; + disableXpnHost( + params: Params$Resource$Projects$Disablexpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; disableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Disablexpnhost, + callback: BodyResponseCallback): void; + disableXpnHost(callback: BodyResponseCallback): void; + disableXpnHost( + paramsOrCallback?: Params$Resource$Projects$Disablexpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Disablexpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Disablexpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29314,26 +37566,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disableXpnResource(params?: any, options?: MethodOptions): - AxiosPromise; disableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Disablexpnresource, + options?: MethodOptions): AxiosPromise; + disableXpnResource( + params: Params$Resource$Projects$Disablexpnresource, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + disableXpnResource( + params: Params$Resource$Projects$Disablexpnresource, + callback: BodyResponseCallback): void; + disableXpnResource(callback: BodyResponseCallback): void; disableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Disablexpnresource| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Disablexpnresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Disablexpnresource; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29423,26 +37688,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enableXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; enableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Enablexpnhost, + options?: MethodOptions): AxiosPromise; + enableXpnHost( + params: Params$Resource$Projects$Enablexpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; enableXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Enablexpnhost, + callback: BodyResponseCallback): void; + enableXpnHost(callback: BodyResponseCallback): void; + enableXpnHost( + paramsOrCallback?: Params$Resource$Projects$Enablexpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Enablexpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Enablexpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29538,26 +37816,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enableXpnResource(params?: any, options?: MethodOptions): - AxiosPromise; enableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Enablexpnresource, + options?: MethodOptions): AxiosPromise; enableXpnResource( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Enablexpnresource, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enableXpnResource( + params: Params$Resource$Projects$Enablexpnresource, + callback: BodyResponseCallback): void; + enableXpnResource(callback: BodyResponseCallback): void; + enableXpnResource( + paramsOrCallback?: Params$Resource$Projects$Enablexpnresource| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Enablexpnresource; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Enablexpnresource; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29646,23 +37937,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29751,26 +38052,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getXpnHost(params?: any, options?: MethodOptions): - AxiosPromise; getXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getxpnhost, + options?: MethodOptions): AxiosPromise; + getXpnHost( + params: Params$Resource$Projects$Getxpnhost, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getXpnHost( + params: Params$Resource$Projects$Getxpnhost, + callback: BodyResponseCallback): void; + getXpnHost(callback: BodyResponseCallback): void; getXpnHost( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Getxpnhost| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getxpnhost; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getxpnhost; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29876,28 +38189,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getXpnResources(params?: any, options?: MethodOptions): - AxiosPromise; getXpnResources( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Getxpnresources, + options?: MethodOptions): AxiosPromise; + getXpnResources( + params: Params$Resource$Projects$Getxpnresources, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getXpnResources( + params: Params$Resource$Projects$Getxpnresources, + callback: BodyResponseCallback): void; getXpnResources( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getXpnResources( + paramsOrCallback?: Params$Resource$Projects$Getxpnresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getxpnresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getxpnresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30008,26 +38334,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listXpnHosts(params?: any, options?: MethodOptions): - AxiosPromise; listXpnHosts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Listxpnhosts, + options?: MethodOptions): AxiosPromise; listXpnHosts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Listxpnhosts, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listXpnHosts( + params: Params$Resource$Projects$Listxpnhosts, + callback: BodyResponseCallback): void; + listXpnHosts(callback: BodyResponseCallback): void; + listXpnHosts( + paramsOrCallback?: Params$Resource$Projects$Listxpnhosts| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Listxpnhosts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Listxpnhosts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30121,26 +38460,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveDisk(params?: any, options?: MethodOptions): - AxiosPromise; moveDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Movedisk, + options?: MethodOptions): AxiosPromise; + moveDisk( + params: Params$Resource$Projects$Movedisk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; moveDisk( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Movedisk, + callback: BodyResponseCallback): void; + moveDisk(callback: BodyResponseCallback): void; + moveDisk( + paramsOrCallback?: Params$Resource$Projects$Movedisk| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Movedisk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Movedisk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30235,26 +38587,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - moveInstance(params?: any, options?: MethodOptions): - AxiosPromise; moveInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Moveinstance, + options?: MethodOptions): AxiosPromise; + moveInstance( + params: Params$Resource$Projects$Moveinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + moveInstance( + params: Params$Resource$Projects$Moveinstance, + callback: BodyResponseCallback): void; + moveInstance(callback: BodyResponseCallback): void; moveInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Moveinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Moveinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Moveinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30347,26 +38712,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setCommonInstanceMetadata(params?: any, options?: MethodOptions): - AxiosPromise; setCommonInstanceMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setcommoninstancemetadata, + options?: MethodOptions): AxiosPromise; + setCommonInstanceMetadata( + params: Params$Resource$Projects$Setcommoninstancemetadata, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setCommonInstanceMetadata( + params: Params$Resource$Projects$Setcommoninstancemetadata, + callback: BodyResponseCallback): void; + setCommonInstanceMetadata(callback: BodyResponseCallback): + void; setCommonInstanceMetadata( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Setcommoninstancemetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setcommoninstancemetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setcommoninstancemetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30461,26 +38840,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUsageExportBucket(params?: any, options?: MethodOptions): - AxiosPromise; setUsageExportBucket( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Setusageexportbucket, + options?: MethodOptions): AxiosPromise; + setUsageExportBucket( + params: Params$Resource$Projects$Setusageexportbucket, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUsageExportBucket( + params: Params$Resource$Projects$Setusageexportbucket, + callback: BodyResponseCallback): void; + setUsageExportBucket(callback: BodyResponseCallback): + void; setUsageExportBucket( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Setusageexportbucket| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Setusageexportbucket; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Setusageexportbucket; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30504,6 +38897,304 @@ export namespace compute_v1 { } } + export interface Params$Resource$Projects$Disablexpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Disablexpnresource { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsDisableXpnResourceRequest; + } + export interface Params$Resource$Projects$Enablexpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Enablexpnresource { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsEnableXpnResourceRequest; + } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Getxpnhost { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Getxpnresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Projects$Listxpnhosts { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ProjectsListXpnHostsRequest; + } + export interface Params$Resource$Projects$Movedisk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$DiskMoveRequest; + } + export interface Params$Resource$Projects$Moveinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceMoveRequest; + } + export interface Params$Resource$Projects$Setcommoninstancemetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Metadata; + } + export interface Params$Resource$Projects$Setusageexportbucket { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UsageExportLocation; + } + + export class Resource$Regionautoscalers { root: Compute; constructor(root: Compute) { @@ -30590,26 +39281,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionautoscalers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionautoscalers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionautoscalers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30707,23 +39411,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regionautoscalers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionautoscalers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionautoscalers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionautoscalers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30824,26 +39540,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionautoscalers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionautoscalers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regionautoscalers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30955,28 +39684,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regionautoscalers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionautoscalers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regionautoscalers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regionautoscalers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31081,26 +39822,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionautoscalers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionautoscalers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Regionautoscalers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31204,26 +39958,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionautoscalers$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionautoscalers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regionautoscalers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Regionautoscalers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionautoscalers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionautoscalers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31248,6 +40015,221 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regionautoscalers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to delete. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionautoscalers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to return. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionautoscalers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Regionautoscalers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionautoscalers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to patch. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + export interface Params$Resource$Regionautoscalers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the autoscaler to update. + */ + autoscaler?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Autoscaler; + } + + export class Resource$Regionbackendservices { root: Compute; constructor(root: Compute) { @@ -31335,26 +40317,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionbackendservices$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionbackendservices$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionbackendservices$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31453,24 +40448,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Regionbackendservices$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Regionbackendservices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionbackendservices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionbackendservices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionbackendservices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31572,29 +40578,42 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): + getHealth( + params?: Params$Resource$Regionbackendservices$Gethealth, + options?: MethodOptions): AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionbackendservices$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Regionbackendservices$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regionbackendservices$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31698,26 +40717,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regionbackendservices$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionbackendservices$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionbackendservices$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31829,26 +40861,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionbackendservices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionbackendservices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionbackendservices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31960,26 +41005,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Regionbackendservices$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Regionbackendservices$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionbackendservices$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32089,26 +41147,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionbackendservices$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Regionbackendservices$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Regionbackendservices$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionbackendservices$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionbackendservices$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionbackendservices$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32133,6 +41204,244 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regionbackendservices$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to delete. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regionbackendservices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to return. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionbackendservices$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource for which to get health. + */ + backendService?: string; + /** + * + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceGroupReference; + } + export interface Params$Resource$Regionbackendservices$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Regionbackendservices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regionbackendservices$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to patch. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + export interface Params$Resource$Regionbackendservices$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the BackendService resource to update. + */ + backendService?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$BackendService; + } + + export class Resource$Regioncommitments { root: Compute; constructor(root: Compute) { @@ -32228,28 +41537,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regioncommitments$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Regioncommitments$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Regioncommitments$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regioncommitments$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioncommitments$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32275,7 +41597,7 @@ export namespace compute_v1 { /** * compute.regionCommitments.get - * @desc Returns the specified commitment resource. Get a list of available + * @desc Returns the specified commitment resource. Gets a list of available * commitments by making a list() request. * @example * * // BEFORE RUNNING: @@ -32347,23 +41669,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regioncommitments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regioncommitments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioncommitments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioncommitments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32464,26 +41798,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioncommitments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regioncommitments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regioncommitments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regioncommitments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32595,26 +41942,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioncommitments$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioncommitments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regioncommitments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regioncommitments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioncommitments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioncommitments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32639,6 +41999,171 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regioncommitments$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Regioncommitments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the commitment to return. + */ + commitment?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regioncommitments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Commitment; + } + export interface Params$Resource$Regioncommitments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Regioninstancegroupmanagers { root: Compute; constructor(root: Compute) { @@ -32741,26 +42266,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + abandonInstances( + params: Params$Resource$Regioninstancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; + abandonInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32859,26 +42399,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regioninstancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -32991,26 +42544,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; + deleteInstances( + params: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteInstances( + params: Params$Resource$Regioninstancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33108,26 +42676,36 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Regioninstancegroupmanagers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Regioninstancegroupmanagers$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioninstancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33232,26 +42810,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Regioninstancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33363,29 +42954,44 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Regioninstancegroupmanagers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regioninstancegroupmanagers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Regioninstancegroupmanagers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33490,30 +43096,52 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listManagedInstances(params?: any, options?: MethodOptions): + listManagedInstances( + params?: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + options?: MethodOptions): AxiosPromise; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + options: MethodOptions|BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + params: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances, + callback: BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>): void; + listManagedInstances( + callback: BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>): void; listManagedInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances| + BodyResponseCallback< + Schema$RegionInstanceGroupManagersListInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>, callback?: BodyResponseCallback< Schema$RegionInstanceGroupManagersListInstancesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33629,26 +43257,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; + recreateInstances( + params: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Recreateinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33760,26 +43403,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resize( + params: Params$Resource$Regioninstancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Regioninstancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -33883,26 +43539,42 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; + setInstanceTemplate( + params: Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; + setInstanceTemplate( + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34006,26 +43678,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTargetPools( + params: Params$Resource$Regioninstancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Regioninstancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Regioninstancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34050,6 +43737,400 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regioninstancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group to delete. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group to return. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Regioninstancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Listmanagedinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * + */ + maxResults?: number; + /** + * + */ + order_by?: string; + /** + * + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersRecreateRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Number of instances that should exist in this instance group manager. + */ + size?: number; + } + export interface Params$Resource$Regioninstancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetTemplateRequest; + } + export interface Params$Resource$Regioninstancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the managed instance group. + */ + instanceGroupManager?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupManagersSetTargetPoolsRequest; + } + + export class Resource$Regioninstancegroups { root: Compute; constructor(root: Compute) { @@ -34136,24 +44217,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Regioninstancegroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Regioninstancegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regioninstancegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regioninstancegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioninstancegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34265,28 +44357,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Regioninstancegroups$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regioninstancegroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regioninstancegroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regioninstancegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regioninstancegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34410,31 +44514,49 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listInstances(params?: any, options?: MethodOptions): + listInstances( + params?: Params$Resource$Regioninstancegroups$Listinstances, + options?: MethodOptions): AxiosPromise; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regioninstancegroups$Listinstances, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; listInstances( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regioninstancegroups$Listinstances, + callback: + BodyResponseCallback): + void; + listInstances( + callback: + BodyResponseCallback): + void; + listInstances( + paramsOrCallback?: Params$Resource$Regioninstancegroups$Listinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Listinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Listinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34539,26 +44661,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNamedPorts(params?: any, options?: MethodOptions): - AxiosPromise; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regioninstancegroups$Setnamedports, + options?: MethodOptions): AxiosPromise; + setNamedPorts( + params: Params$Resource$Regioninstancegroups$Setnamedports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setNamedPorts( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regioninstancegroups$Setnamedports, + callback: BodyResponseCallback): void; + setNamedPorts(callback: BodyResponseCallback): void; + setNamedPorts( + paramsOrCallback?: Params$Resource$Regioninstancegroups$Setnamedports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regioninstancegroups$Setnamedports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regioninstancegroups$Setnamedports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34583,6 +44718,189 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regioninstancegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance group resource to return. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Regioninstancegroups$Listinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * Name of the regional instance group for which we want to list the + * instances. + */ + instanceGroup?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupsListInstancesRequest; + } + export interface Params$Resource$Regioninstancegroups$Setnamedports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the regional instance group where the named ports are + * updated. + */ + instanceGroup?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionInstanceGroupsSetNamedPortsRequest; + } + + export class Resource$Regionoperations { root: Compute; constructor(root: Compute) { @@ -34665,22 +44983,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionoperations$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Regionoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34778,23 +45111,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regionoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regionoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34906,26 +45251,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionoperations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Regionoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -34950,6 +45308,104 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regionoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Regionoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Regions { root: Compute; constructor(root: Compute) { @@ -34964,7 +45420,7 @@ export namespace compute_v1 { /** * compute.regions.get - * @desc Returns the specified Region resource. Get a list of available + * @desc Returns the specified Region resource. Gets a list of available * regions by making a list() request. * @example * * // BEFORE RUNNING: @@ -35032,23 +45488,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Regions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Regions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35154,26 +45620,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Regions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Regions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35196,6 +45673,77 @@ export namespace compute_v1 { } } + export interface Params$Resource$Regions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region resource to return. + */ + region?: string; + } + export interface Params$Resource$Regions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Routers { root: Compute; constructor(root: Compute) { @@ -35291,28 +45839,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Routers$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Routers$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList(callback: BodyResponseCallback): + void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Routers$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routers$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35410,26 +45971,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Routers$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Routers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35456,7 +46028,7 @@ export namespace compute_v1 { /** * compute.routers.get - * @desc Returns the specified Router resource. Get a list of available + * @desc Returns the specified Router resource. Gets a list of available * routers by making a list() request. * @example * * // BEFORE RUNNING: @@ -35528,23 +46100,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Routers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Routers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Routers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Routers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35642,28 +46224,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRouterStatus(params?: any, options?: MethodOptions): - AxiosPromise; getRouterStatus( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Routers$Getrouterstatus, + options?: MethodOptions): AxiosPromise; + getRouterStatus( + params: Params$Resource$Routers$Getrouterstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getRouterStatus( + params: Params$Resource$Routers$Getrouterstatus, + callback: BodyResponseCallback): void; getRouterStatus( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getRouterStatus( + paramsOrCallback?: Params$Resource$Routers$Getrouterstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Routers$Getrouterstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Getrouterstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35764,26 +46359,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Routers$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Routers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -35894,26 +46500,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Routers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Routers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36020,26 +46637,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Routers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Routers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36143,28 +46771,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - preview(params?: any, options?: MethodOptions): + preview(params?: Params$Resource$Routers$Preview, options?: MethodOptions): AxiosPromise; preview( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Preview, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; preview( - params?: any, - options?: MethodOptions| + params: Params$Resource$Routers$Preview, + callback: BodyResponseCallback): void; + preview(callback: BodyResponseCallback): + void; + preview( + paramsOrCallback?: Params$Resource$Routers$Preview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Preview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Preview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36271,26 +46910,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Routers$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Routers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36315,6 +46965,317 @@ export namespace compute_v1 { } } + export interface Params$Resource$Routers$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Routers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to delete. + */ + router?: string; + } + export interface Params$Resource$Routers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to return. + */ + router?: string; + } + export interface Params$Resource$Routers$Getrouterstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to query. + */ + router?: string; + } + export interface Params$Resource$Routers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + export interface Params$Resource$Routers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to patch. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$Preview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the Router resource to query. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + export interface Params$Resource$Routers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Router resource to update. + */ + router?: string; + /** + * Request body metadata + */ + resource?: Schema$Router; + } + + export class Resource$Routes { root: Compute; constructor(root: Compute) { @@ -36397,26 +47358,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Routes$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Routes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36442,7 +47414,7 @@ export namespace compute_v1 { /** * compute.routes.get - * @desc Returns the specified Route resource. Get a list of available + * @desc Returns the specified Route resource. Gets a list of available * routes by making a list() request. * @example * * // BEFORE RUNNING: @@ -36510,23 +47482,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Routes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Routes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Routes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Routes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36622,26 +47604,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Routes$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Routes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Routes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36747,25 +47740,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Routes$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Routes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Routes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Routes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Routes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Routes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36788,6 +47793,133 @@ export namespace compute_v1 { } } + export interface Params$Resource$Routes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Route resource to delete. + */ + route?: string; + } + export interface Params$Resource$Routes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the Route resource to return. + */ + route?: string; + } + export interface Params$Resource$Routes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Route; + } + export interface Params$Resource$Routes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Snapshots { root: Compute; constructor(root: Compute) { @@ -36874,26 +48006,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Snapshots$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Snapshots$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Snapshots$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Snapshots$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -36920,7 +48063,7 @@ export namespace compute_v1 { /** * compute.snapshots.get - * @desc Returns the specified Snapshot resource. Get a list of available + * @desc Returns the specified Snapshot resource. Gets a list of available * snapshots by making a list() request. * @example * * // BEFORE RUNNING: @@ -36988,23 +48131,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Snapshots$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Snapshots$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Snapshots$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Snapshots$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37112,26 +48265,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Snapshots$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Snapshots$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Snapshots$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Snapshots$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37229,26 +48393,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLabels(params?: any, options?: MethodOptions): - AxiosPromise; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Snapshots$Setlabels, + options?: MethodOptions): AxiosPromise; + setLabels( + params: Params$Resource$Snapshots$Setlabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Snapshots$Setlabels, + callback: BodyResponseCallback): void; + setLabels(callback: BodyResponseCallback): void; + setLabels( + paramsOrCallback?: Params$Resource$Snapshots$Setlabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Snapshots$Setlabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Setlabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37273,6 +48450,124 @@ export namespace compute_v1 { } } + export interface Params$Resource$Snapshots$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Snapshot resource to delete. + */ + snapshot?: string; + } + export interface Params$Resource$Snapshots$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the Snapshot resource to return. + */ + snapshot?: string; + } + export interface Params$Resource$Snapshots$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Snapshots$Setlabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GlobalSetLabelsRequest; + } + + export class Resource$Sslcertificates { root: Compute; constructor(root: Compute) { @@ -37356,26 +48651,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Sslcertificates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Sslcertificates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslcertificates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37402,7 +48710,7 @@ export namespace compute_v1 { /** * compute.sslCertificates.get - * @desc Returns the specified SslCertificate resource. Get a list of + * @desc Returns the specified SslCertificate resource. Gets a list of * available SSL certificates by making a list() request. * @example * * // BEFORE RUNNING: @@ -37471,24 +48779,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Sslcertificates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Sslcertificates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslcertificates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslcertificates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37585,26 +48904,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Sslcertificates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Sslcertificates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslcertificates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37711,26 +49043,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcertificates$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Sslcertificates$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslcertificates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sslcertificates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcertificates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcertificates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37754,6 +49099,133 @@ export namespace compute_v1 { } } + export interface Params$Resource$Sslcertificates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SslCertificate resource to delete. + */ + sslCertificate?: string; + } + export interface Params$Resource$Sslcertificates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the SslCertificate resource to return. + */ + sslCertificate?: string; + } + export interface Params$Resource$Sslcertificates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SslCertificate; + } + export interface Params$Resource$Sslcertificates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + + export class Resource$Sslpolicies { root: Compute; constructor(root: Compute) { @@ -37782,26 +49254,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslpolicies$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Sslpolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sslpolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37840,23 +49325,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sslpolicies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sslpolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslpolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslpolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37883,7 +49379,7 @@ export namespace compute_v1 { /** * compute.sslPolicies.insert - * @desc Returns the specified SSL policy resource. Get a list of available + * @desc Returns the specified SSL policy resource. Gets a list of available * SSL policies by making a list() request. * @alias compute.sslPolicies.insert * @memberOf! () @@ -37896,26 +49392,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslpolicies$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Sslpolicies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Sslpolicies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -37956,26 +49465,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sslpolicies$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslpolicies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sslpolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslpolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslpolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38016,30 +49536,46 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listAvailableFeatures(params?: any, options?: MethodOptions): + listAvailableFeatures( + params?: Params$Resource$Sslpolicies$Listavailablefeatures, + options?: MethodOptions): AxiosPromise; listAvailableFeatures( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslpolicies$Listavailablefeatures, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$SslPoliciesListAvailableFeaturesResponse>): void; listAvailableFeatures( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslpolicies$Listavailablefeatures, + callback: BodyResponseCallback< + Schema$SslPoliciesListAvailableFeaturesResponse>): void; + listAvailableFeatures(callback: BodyResponseCallback< + Schema$SslPoliciesListAvailableFeaturesResponse>): + void; + listAvailableFeatures( + paramsOrCallback?: Params$Resource$Sslpolicies$Listavailablefeatures| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$SslPoliciesListAvailableFeaturesResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Sslpolicies$Listavailablefeatures; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Listavailablefeatures; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38082,26 +49618,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Sslpolicies$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslpolicies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslpolicies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Sslpolicies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslpolicies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslpolicies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38126,6 +49674,222 @@ export namespace compute_v1 { } } + export interface Params$Resource$Sslpolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SSL policy to delete. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + } + export interface Params$Resource$Sslpolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + } + export interface Params$Resource$Sslpolicies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicy; + } + export interface Params$Resource$Sslpolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslpolicies$Listavailablefeatures { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Sslpolicies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the SSL policy to update. The name must be 1-63 characters long, + * and comply with RFC1035. + */ + sslPolicy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicy; + } + + export class Resource$Subnetworks { root: Compute; constructor(root: Compute) { @@ -38221,28 +49985,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Subnetworks$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Subnetworks$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Subnetworks$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Subnetworks$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38340,26 +50117,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Subnetworks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subnetworks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38461,26 +50251,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - expandIpCidrRange(params?: any, options?: MethodOptions): - AxiosPromise; expandIpCidrRange( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Expandipcidrrange, + options?: MethodOptions): AxiosPromise; + expandIpCidrRange( + params: Params$Resource$Subnetworks$Expandipcidrrange, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; expandIpCidrRange( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Expandipcidrrange, + callback: BodyResponseCallback): void; + expandIpCidrRange(callback: BodyResponseCallback): void; + expandIpCidrRange( + paramsOrCallback?: Params$Resource$Subnetworks$Expandipcidrrange| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Expandipcidrrange; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Expandipcidrrange; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38507,7 +50310,7 @@ export namespace compute_v1 { /** * compute.subnetworks.get - * @desc Returns the specified subnetwork. Get a list of available + * @desc Returns the specified subnetwork. Gets a list of available * subnetworks list() request. * @example * * // BEFORE RUNNING: @@ -38579,23 +50382,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Subnetworks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Subnetworks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subnetworks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subnetworks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subnetworks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38696,26 +50510,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Subnetworks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Subnetworks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38826,26 +50653,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subnetworks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subnetworks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Subnetworks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subnetworks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subnetworks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -38890,26 +50728,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Subnetworks$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subnetworks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Subnetworks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subnetworks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39012,26 +50862,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setPrivateIpGoogleAccess(params?: any, options?: MethodOptions): - AxiosPromise; setPrivateIpGoogleAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + options?: MethodOptions): AxiosPromise; setPrivateIpGoogleAccess( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setPrivateIpGoogleAccess( + params: Params$Resource$Subnetworks$Setprivateipgoogleaccess, + callback: BodyResponseCallback): void; + setPrivateIpGoogleAccess(callback: BodyResponseCallback): + void; + setPrivateIpGoogleAccess( + paramsOrCallback?: Params$Resource$Subnetworks$Setprivateipgoogleaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subnetworks$Setprivateipgoogleaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subnetworks$Setprivateipgoogleaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39056,6 +50920,311 @@ export namespace compute_v1 { } } + export interface Params$Resource$Subnetworks$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Subnetworks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to delete. + */ + subnetwork?: string; + } + export interface Params$Resource$Subnetworks$Expandipcidrrange { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to update. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$SubnetworksExpandIpCidrRangeRequest; + } + export interface Params$Resource$Subnetworks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the Subnetwork resource to return. + */ + subnetwork?: string; + } + export interface Params$Resource$Subnetworks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subnetwork; + } + export interface Params$Resource$Subnetworks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Subnetworks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource to patch. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$Subnetwork; + } + export interface Params$Resource$Subnetworks$Setprivateipgoogleaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the Subnetwork resource. + */ + subnetwork?: string; + /** + * Request body metadata + */ + resource?: Schema$SubnetworksSetPrivateIpGoogleAccessRequest; + } + + export class Resource$Targethttpproxies { root: Compute; constructor(root: Compute) { @@ -39139,26 +51308,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targethttpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targethttpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39185,7 +51367,7 @@ export namespace compute_v1 { /** * compute.targetHttpProxies.get - * @desc Returns the specified TargetHttpProxy resource. Get a list of + * @desc Returns the specified TargetHttpProxy resource. Gets a list of * available target HTTP proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -39254,24 +51436,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targethttpproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targethttpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targethttpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targethttpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39368,26 +51561,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targethttpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targethttpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39494,28 +51700,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targethttpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targethttpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targethttpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39615,26 +51832,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; + setUrlMap( + params: Params$Resource$Targethttpproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setUrlMap( + params: Params$Resource$Targethttpproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targethttpproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39659,6 +51889,165 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targethttpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy resource to delete. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Targethttpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetHttpProxy resource to return. + */ + targetHttpProxy?: string; + } + export interface Params$Resource$Targethttpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpProxy; + } + export interface Params$Resource$Targethttpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpProxy to set a URL map for. + */ + targetHttpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + + export class Resource$Targethttpsproxies { root: Compute; constructor(root: Compute) { @@ -39742,26 +52131,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targethttpsproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39788,7 +52190,7 @@ export namespace compute_v1 { /** * compute.targetHttpsProxies.get - * @desc Returns the specified TargetHttpsProxy resource. Get a list of + * @desc Returns the specified TargetHttpsProxy resource. Gets a list of * available target HTTPS proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -39857,24 +52259,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targethttpsproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targethttpsproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targethttpsproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targethttpsproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -39971,26 +52384,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targethttpsproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40097,28 +52523,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targethttpsproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targethttpsproxies$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targethttpsproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targethttpsproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targethttpsproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40216,26 +52654,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslCertificates(params?: any, options?: MethodOptions): - AxiosPromise; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setsslcertificates, + options?: MethodOptions): AxiosPromise; + setSslCertificates( + params: Params$Resource$Targethttpsproxies$Setsslcertificates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setsslcertificates, + callback: BodyResponseCallback): void; + setSslCertificates(callback: BodyResponseCallback): void; + setSslCertificates( + paramsOrCallback?: + Params$Resource$Targethttpsproxies$Setsslcertificates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setsslcertificates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setsslcertificates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40278,26 +52730,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Setsslpolicy, + options?: MethodOptions): AxiosPromise; + setSslPolicy( + params: Params$Resource$Targethttpsproxies$Setsslpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Setsslpolicy, + callback: BodyResponseCallback): void; + setSslPolicy(callback: BodyResponseCallback): void; + setSslPolicy( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Setsslpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Setsslpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Setsslpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40398,26 +52863,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setUrlMap(params?: any, options?: MethodOptions): - AxiosPromise; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targethttpsproxies$Seturlmap, + options?: MethodOptions): AxiosPromise; + setUrlMap( + params: Params$Resource$Targethttpsproxies$Seturlmap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setUrlMap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targethttpsproxies$Seturlmap, + callback: BodyResponseCallback): void; + setUrlMap(callback: BodyResponseCallback): void; + setUrlMap( + paramsOrCallback?: Params$Resource$Targethttpsproxies$Seturlmap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targethttpsproxies$Seturlmap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targethttpsproxies$Seturlmap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40442,6 +52920,231 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targethttpsproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to delete. + */ + targetHttpsProxy?: string; + } + export interface Params$Resource$Targethttpsproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetHttpsProxy resource to return. + */ + targetHttpsProxy?: string; + } + export interface Params$Resource$Targethttpsproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxy; + } + export interface Params$Resource$Targethttpsproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targethttpsproxies$Setsslcertificates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource to set an SslCertificates resource + * for. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetHttpsProxiesSetSslCertificatesRequest; + } + export interface Params$Resource$Targethttpsproxies$Setsslpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource whose SSL policy is to be set. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicyReference; + } + export interface Params$Resource$Targethttpsproxies$Seturlmap { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetHttpsProxy resource whose URL map is to be set. + */ + targetHttpsProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapReference; + } + + export class Resource$Targetinstances { root: Compute; constructor(root: Compute) { @@ -40537,29 +53240,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targetinstances$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetinstances$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + aggregatedList( + params: Params$Resource$Targetinstances$Aggregatedlist, + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targetinstances$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetinstances$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40660,26 +53379,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetinstances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetinstances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetinstances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40706,7 +53438,7 @@ export namespace compute_v1 { /** * compute.targetInstances.get - * @desc Returns the specified TargetInstance resource. Get a list of + * @desc Returns the specified TargetInstance resource. Gets a list of * available target instances by making a list() request. * @example * * // BEFORE RUNNING: @@ -40779,24 +53511,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetinstances$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetinstances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetinstances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetinstances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -40897,26 +53640,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetinstances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetinstances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41028,26 +53784,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetinstances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetinstances$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetinstances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targetinstances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetinstances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetinstances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41072,6 +53841,203 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targetinstances$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetinstances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetInstance resource to delete. + */ + targetInstance?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetInstance resource to return. + */ + targetInstance?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Targetinstances$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetInstance; + } + export interface Params$Resource$Targetinstances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + + export class Resource$Targetpools { root: Compute; constructor(root: Compute) { @@ -41163,26 +54129,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addHealthCheck(params?: any, options?: MethodOptions): - AxiosPromise; addHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Addhealthcheck, + options?: MethodOptions): AxiosPromise; addHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Addhealthcheck, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addHealthCheck( + params: Params$Resource$Targetpools$Addhealthcheck, + callback: BodyResponseCallback): void; + addHealthCheck(callback: BodyResponseCallback): void; + addHealthCheck( + paramsOrCallback?: Params$Resource$Targetpools$Addhealthcheck| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Addhealthcheck; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Addhealthcheck; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41286,26 +54265,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addInstance(params?: any, options?: MethodOptions): - AxiosPromise; addInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Addinstance, + options?: MethodOptions): AxiosPromise; + addInstance( + params: Params$Resource$Targetpools$Addinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addInstance( + params: Params$Resource$Targetpools$Addinstance, + callback: BodyResponseCallback): void; + addInstance(callback: BodyResponseCallback): void; addInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Addinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Addinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Addinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41413,28 +54405,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Targetpools$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Targetpools$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetpools$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41532,26 +54537,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetpools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetpools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41578,7 +54596,7 @@ export namespace compute_v1 { /** * compute.targetPools.get - * @desc Returns the specified target pool. Get a list of available target + * @desc Returns the specified target pool. Gets a list of available target * pools by making a list() request. * @example * * // BEFORE RUNNING: @@ -41650,23 +54668,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Targetpools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Targetpools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetpools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetpools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Targetpools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41771,28 +54800,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getHealth(params?: any, options?: MethodOptions): - AxiosPromise; getHealth( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetpools$Gethealth, + options?: MethodOptions): AxiosPromise; + getHealth( + params: Params$Resource$Targetpools$Gethealth, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getHealth( + params: Params$Resource$Targetpools$Gethealth, + callback: BodyResponseCallback): void; + getHealth(callback: BodyResponseCallback): + void; getHealth( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetpools$Gethealth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Gethealth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Gethealth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -41893,26 +54935,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetpools$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetpools$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42024,26 +55079,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Targetpools$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Targetpools$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetpools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Targetpools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42145,26 +55211,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeHealthCheck(params?: any, options?: MethodOptions): - AxiosPromise; removeHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Removehealthcheck, + options?: MethodOptions): AxiosPromise; + removeHealthCheck( + params: Params$Resource$Targetpools$Removehealthcheck, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeHealthCheck( + params: Params$Resource$Targetpools$Removehealthcheck, + callback: BodyResponseCallback): void; + removeHealthCheck(callback: BodyResponseCallback): void; removeHealthCheck( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetpools$Removehealthcheck| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Removehealthcheck; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Removehealthcheck; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42268,26 +55347,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeInstance(params?: any, options?: MethodOptions): - AxiosPromise; removeInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Removeinstance, + options?: MethodOptions): AxiosPromise; + removeInstance( + params: Params$Resource$Targetpools$Removeinstance, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeInstance( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Removeinstance, + callback: BodyResponseCallback): void; + removeInstance(callback: BodyResponseCallback): void; + removeInstance( + paramsOrCallback?: Params$Resource$Targetpools$Removeinstance| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetpools$Removeinstance; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Removeinstance; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42392,26 +55484,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackup(params?: any, options?: MethodOptions): - AxiosPromise; setBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetpools$Setbackup, + options?: MethodOptions): AxiosPromise; setBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetpools$Setbackup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setBackup( + params: Params$Resource$Targetpools$Setbackup, + callback: BodyResponseCallback): void; + setBackup(callback: BodyResponseCallback): void; + setBackup( + paramsOrCallback?: Params$Resource$Targetpools$Setbackup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetpools$Setbackup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetpools$Setbackup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42436,6 +55541,410 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targetpools$Addhealthcheck { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target pool to add a health check to. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsAddHealthCheckRequest; + } + export interface Params$Resource$Targetpools$Addinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to add instances to. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsAddInstanceRequest; + } + export interface Params$Resource$Targetpools$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetpools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to delete. + */ + targetPool?: string; + } + export interface Params$Resource$Targetpools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetPool resource to return. + */ + targetPool?: string; + } + export interface Params$Resource$Targetpools$Gethealth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * Name of the TargetPool resource to which the queried instance belongs. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceReference; + } + export interface Params$Resource$Targetpools$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPool; + } + export interface Params$Resource$Targetpools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + } + export interface Params$Resource$Targetpools$Removehealthcheck { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target pool to remove health checks from. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsRemoveHealthCheckRequest; + } + export interface Params$Resource$Targetpools$Removeinstance { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to remove instances from. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetPoolsRemoveInstanceRequest; + } + export interface Params$Resource$Targetpools$Setbackup { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * New failoverRatio value for the target pool. + */ + failoverRatio?: number; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region scoping this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetPool resource to set a backup pool for. + */ + targetPool?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetReference; + } + + export class Resource$Targetsslproxies { root: Compute; constructor(root: Compute) { @@ -42519,26 +56028,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targetsslproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetsslproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42565,7 +56087,7 @@ export namespace compute_v1 { /** * compute.targetSslProxies.get - * @desc Returns the specified TargetSslProxy resource. Get a list of + * @desc Returns the specified TargetSslProxy resource. Gets a list of * available target SSL proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -42634,24 +56156,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetsslproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetsslproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetsslproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetsslproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42748,26 +56281,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetsslproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetsslproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42874,26 +56420,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetsslproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetsslproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetsslproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -42991,26 +56550,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackendService(params?: any, options?: MethodOptions): - AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setbackendservice, + options?: MethodOptions): AxiosPromise; + setBackendService( + params: Params$Resource$Targetsslproxies$Setbackendservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setbackendservice, + callback: BodyResponseCallback): void; + setBackendService(callback: BodyResponseCallback): void; + setBackendService( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setbackendservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setbackendservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setbackendservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43109,26 +56681,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProxyHeader(params?: any, options?: MethodOptions): - AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setproxyheader, + options?: MethodOptions): AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setproxyheader, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setProxyHeader( + params: Params$Resource$Targetsslproxies$Setproxyheader, + callback: BodyResponseCallback): void; + setProxyHeader(callback: BodyResponseCallback): void; + setProxyHeader( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setproxyheader| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setproxyheader; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setproxyheader; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43227,26 +56812,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslCertificates(params?: any, options?: MethodOptions): - AxiosPromise; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setsslcertificates, + options?: MethodOptions): AxiosPromise; + setSslCertificates( + params: Params$Resource$Targetsslproxies$Setsslcertificates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setSslCertificates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetsslproxies$Setsslcertificates, + callback: BodyResponseCallback): void; + setSslCertificates(callback: BodyResponseCallback): void; + setSslCertificates( + paramsOrCallback?: Params$Resource$Targetsslproxies$Setsslcertificates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setsslcertificates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setsslcertificates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43289,26 +56887,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setSslPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetsslproxies$Setsslpolicy, + options?: MethodOptions): AxiosPromise; + setSslPolicy( + params: Params$Resource$Targetsslproxies$Setsslpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSslPolicy( + params: Params$Resource$Targetsslproxies$Setsslpolicy, + callback: BodyResponseCallback): void; + setSslPolicy(callback: BodyResponseCallback): void; setSslPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetsslproxies$Setsslpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetsslproxies$Setsslpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetsslproxies$Setsslpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43333,6 +56944,264 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targetsslproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource to delete. + */ + targetSslProxy?: string; + } + export interface Params$Resource$Targetsslproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetSslProxy resource to return. + */ + targetSslProxy?: string; + } + export interface Params$Resource$Targetsslproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxy; + } + export interface Params$Resource$Targetsslproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetsslproxies$Setbackendservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose BackendService resource is to + * be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetBackendServiceRequest; + } + export interface Params$Resource$Targetsslproxies$Setproxyheader { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose ProxyHeader is to be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetProxyHeaderRequest; + } + export interface Params$Resource$Targetsslproxies$Setsslcertificates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose SslCertificate resource is to + * be set. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetSslProxiesSetSslCertificatesRequest; + } + export interface Params$Resource$Targetsslproxies$Setsslpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetSslProxy resource whose SSL policy is to be set. The + * name must be 1-63 characters long, and comply with RFC1035. + */ + targetSslProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$SslPolicyReference; + } + + export class Resource$Targettcpproxies { root: Compute; constructor(root: Compute) { @@ -43416,26 +57285,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Targettcpproxies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targettcpproxies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targettcpproxies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43462,7 +57344,7 @@ export namespace compute_v1 { /** * compute.targetTcpProxies.get - * @desc Returns the specified TargetTcpProxy resource. Get a list of + * @desc Returns the specified TargetTcpProxy resource. Gets a list of * available target TCP proxies by making a list() request. * @example * * // BEFORE RUNNING: @@ -43531,24 +57413,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targettcpproxies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targettcpproxies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targettcpproxies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targettcpproxies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43645,26 +57538,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targettcpproxies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targettcpproxies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targettcpproxies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43771,26 +57677,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targettcpproxies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Targettcpproxies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targettcpproxies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -43888,26 +57807,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setBackendService(params?: any, options?: MethodOptions): - AxiosPromise; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Setbackendservice, + options?: MethodOptions): AxiosPromise; + setBackendService( + params: Params$Resource$Targettcpproxies$Setbackendservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setBackendService( + params: Params$Resource$Targettcpproxies$Setbackendservice, + callback: BodyResponseCallback): void; + setBackendService(callback: BodyResponseCallback): void; setBackendService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targettcpproxies$Setbackendservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Setbackendservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Setbackendservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44006,26 +57938,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProxyHeader(params?: any, options?: MethodOptions): - AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targettcpproxies$Setproxyheader, + options?: MethodOptions): AxiosPromise; setProxyHeader( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targettcpproxies$Setproxyheader, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setProxyHeader( + params: Params$Resource$Targettcpproxies$Setproxyheader, + callback: BodyResponseCallback): void; + setProxyHeader(callback: BodyResponseCallback): void; + setProxyHeader( + paramsOrCallback?: Params$Resource$Targettcpproxies$Setproxyheader| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targettcpproxies$Setproxyheader; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targettcpproxies$Setproxyheader; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44050,6 +57995,198 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targettcpproxies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource to delete. + */ + targetTcpProxy?: string; + } + export interface Params$Resource$Targettcpproxies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the TargetTcpProxy resource to return. + */ + targetTcpProxy?: string; + } + export interface Params$Resource$Targettcpproxies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxy; + } + export interface Params$Resource$Targettcpproxies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targettcpproxies$Setbackendservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource whose BackendService resource is to + * be set. + */ + targetTcpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxiesSetBackendServiceRequest; + } + export interface Params$Resource$Targettcpproxies$Setproxyheader { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the TargetTcpProxy resource whose ProxyHeader is to be set. + */ + targetTcpProxy?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetTcpProxiesSetProxyHeaderRequest; + } + + export class Resource$Targetvpngateways { root: Compute; constructor(root: Compute) { @@ -44145,29 +58282,45 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): + aggregatedList( + params?: Params$Resource$Targetvpngateways$Aggregatedlist, + options?: MethodOptions): AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetvpngateways$Aggregatedlist, + callback: BodyResponseCallback): + void; + aggregatedList( + callback: BodyResponseCallback): + void; + aggregatedList( + paramsOrCallback?: Params$Resource$Targetvpngateways$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetvpngateways$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44269,26 +58422,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Targetvpngateways$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Targetvpngateways$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44315,7 +58481,7 @@ export namespace compute_v1 { /** * compute.targetVpnGateways.get - * @desc Returns the specified target VPN gateway. Get a list of available + * @desc Returns the specified target VPN gateway. Gets a list of available * target VPN gateways by making a list() request. * @example * * // BEFORE RUNNING: @@ -44388,24 +58554,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetvpngateways$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetvpngateways$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetvpngateways$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetvpngateways$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44506,26 +58683,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetvpngateways$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetvpngateways$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Targetvpngateways$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetvpngateways$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44637,28 +58827,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Targetvpngateways$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Targetvpngateways$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Targetvpngateways$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetvpngateways$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetvpngateways$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetvpngateways$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44683,6 +58885,203 @@ export namespace compute_v1 { } } + export interface Params$Resource$Targetvpngateways$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Targetvpngateways$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the target VPN gateway to delete. + */ + targetVpnGateway?: string; + } + export interface Params$Resource$Targetvpngateways$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the target VPN gateway to return. + */ + targetVpnGateway?: string; + } + export interface Params$Resource$Targetvpngateways$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetVpnGateway; + } + export interface Params$Resource$Targetvpngateways$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Urlmaps { root: Compute; constructor(root: Compute) { @@ -44765,26 +59164,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Urlmaps$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Urlmaps$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44810,7 +59220,7 @@ export namespace compute_v1 { /** * compute.urlMaps.get - * @desc Returns the specified UrlMap resource. Get a list of available URL + * @desc Returns the specified UrlMap resource. Gets a list of available URL * maps by making a list() request. * @example * * // BEFORE RUNNING: @@ -44878,23 +59288,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Urlmaps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Urlmaps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Urlmaps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Urlmaps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -44990,26 +59410,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Urlmaps$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Urlmaps$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45108,26 +59539,39 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - invalidateCache(params?: any, options?: MethodOptions): - AxiosPromise; invalidateCache( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Urlmaps$Invalidatecache, + options?: MethodOptions): AxiosPromise; invalidateCache( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Invalidatecache, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + invalidateCache( + params: Params$Resource$Urlmaps$Invalidatecache, + callback: BodyResponseCallback): void; + invalidateCache(callback: BodyResponseCallback): void; + invalidateCache( + paramsOrCallback?: Params$Resource$Urlmaps$Invalidatecache| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Urlmaps$Invalidatecache; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Invalidatecache; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45235,26 +59679,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Urlmaps$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Urlmaps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45356,26 +59811,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Urlmaps$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Urlmaps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Urlmaps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45477,26 +59943,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Urlmaps$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Urlmaps$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Urlmaps$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlmaps$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45596,28 +60073,40 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - validate(params?: any, options?: MethodOptions): - AxiosPromise; validate( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Urlmaps$Validate, + options?: MethodOptions): AxiosPromise; + validate( + params: Params$Resource$Urlmaps$Validate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + validate( + params: Params$Resource$Urlmaps$Validate, + callback: BodyResponseCallback): void; + validate(callback: BodyResponseCallback): + void; validate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Urlmaps$Validate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Urlmaps$Validate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlmaps$Validate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45642,6 +60131,248 @@ export namespace compute_v1 { } } + export interface Params$Resource$Urlmaps$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to delete. + */ + urlMap?: string; + } + export interface Params$Resource$Urlmaps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the UrlMap resource to return. + */ + urlMap?: string; + } + export interface Params$Resource$Urlmaps$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Invalidatecache { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap scoping this request. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$CacheInvalidationRule; + } + export interface Params$Resource$Urlmaps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Urlmaps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to patch. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the UrlMap resource to update. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMap; + } + export interface Params$Resource$Urlmaps$Validate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the UrlMap resource to be validated as. + */ + urlMap?: string; + /** + * Request body metadata + */ + resource?: Schema$UrlMapsValidateRequest; + } + + export class Resource$Vpntunnels { root: Compute; constructor(root: Compute) { @@ -45737,28 +60468,41 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregatedList(params?: any, options?: MethodOptions): - AxiosPromise; aggregatedList( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Vpntunnels$Aggregatedlist, + options?: MethodOptions): AxiosPromise; + aggregatedList( + params: Params$Resource$Vpntunnels$Aggregatedlist, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + aggregatedList( + params: Params$Resource$Vpntunnels$Aggregatedlist, + callback: BodyResponseCallback): void; + aggregatedList( + callback: BodyResponseCallback): void; aggregatedList( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Vpntunnels$Aggregatedlist| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Aggregatedlist; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Aggregatedlist; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45856,26 +60600,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Vpntunnels$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Vpntunnels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -45902,7 +60658,7 @@ export namespace compute_v1 { /** * compute.vpnTunnels.get - * @desc Returns the specified VpnTunnel resource. Get a list of available + * @desc Returns the specified VpnTunnel resource. Gets a list of available * VPN tunnels by making a list() request. * @example * * // BEFORE RUNNING: @@ -45974,23 +60730,34 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Vpntunnels$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Vpntunnels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Vpntunnels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Vpntunnels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46091,26 +60858,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Vpntunnels$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Vpntunnels$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Vpntunnels$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Vpntunnels$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46222,26 +61001,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Vpntunnels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Vpntunnels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Vpntunnels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Vpntunnels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Vpntunnels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Vpntunnels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46266,6 +61056,203 @@ export namespace compute_v1 { } } + export interface Params$Resource$Vpntunnels$Aggregatedlist { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Vpntunnels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Name of the VpnTunnel resource to delete. + */ + vpnTunnel?: string; + } + export interface Params$Resource$Vpntunnels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * Name of the VpnTunnel resource to return. + */ + vpnTunnel?: string; + } + export interface Params$Resource$Vpntunnels$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + /** + * An optional request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server will know to ignore + * the request if it has already been completed. For example, consider a + * situation where you make an initial request and the request times out. If + * you make the request again with the same request ID, the server can check + * if original operation with the same request ID was received, and if so, + * will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with + * the exception that zero UUID is not supported + * (00000000-0000-0000-0000-000000000000). + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$VpnTunnel; + } + export interface Params$Resource$Vpntunnels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the region for this request. + */ + region?: string; + } + + export class Resource$Zoneoperations { root: Compute; constructor(root: Compute) { @@ -46348,22 +61335,37 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneoperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Zoneoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Zoneoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zoneoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46461,23 +61463,35 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46589,26 +61603,38 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Zoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46632,6 +61658,104 @@ export namespace compute_v1 { } } + export interface Params$Resource$Zoneoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to delete. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Operations resource to return. + */ + operation?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone for request. + */ + zone?: string; + } + + export class Resource$Zones { root: Compute; constructor(root: Compute) { @@ -46646,7 +61770,7 @@ export namespace compute_v1 { /** * compute.zones.get - * @desc Returns the specified Zone resource. Get a list of available zones + * @desc Returns the specified Zone resource. Gets a list of available zones * by making a list() request. * @example * * // BEFORE RUNNING: @@ -46714,21 +61838,33 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zones$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zones$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zones$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zones$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zones$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zones$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46834,25 +61970,36 @@ export namespace compute_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Zones$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zones$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zones$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Zones$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zones$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zones$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -46874,4 +62021,74 @@ export namespace compute_v1 { } } } + + export interface Params$Resource$Zones$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the zone resource to return. + */ + zone?: string; + } + export interface Params$Resource$Zones$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Project ID for this request. + */ + project?: string; + } } diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index 0757651d224..2413105c95f 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace container_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Kubernetes Engine API * @@ -74,12 +77,12 @@ export namespace container_v1 { /** * The number of the accelerator cards exposed to an instance. */ - acceleratorCount: string; + acceleratorCount?: string; /** * The accelerator type resource name. List of supported accelerators * [here](/compute/docs/gpus/#Introduction) */ - acceleratorType: string; + acceleratorType?: string; } /** * Configuration for the addons that can be automatically spun up in the @@ -91,22 +94,22 @@ export namespace container_v1 { * or decreases the number of replica pods a replication controller has * based on the resource usage of the existing pods. */ - horizontalPodAutoscaling: Schema$HorizontalPodAutoscaling; + horizontalPodAutoscaling?: Schema$HorizontalPodAutoscaling; /** * Configuration for the HTTP (L7) load balancing controller addon, which * makes it easy to set up HTTP load balancers for services in a cluster. */ - httpLoadBalancing: Schema$HttpLoadBalancing; + httpLoadBalancing?: Schema$HttpLoadBalancing; /** * Configuration for the Kubernetes Dashboard. */ - kubernetesDashboard: Schema$KubernetesDashboard; + kubernetesDashboard?: Schema$KubernetesDashboard; /** * Configuration for NetworkPolicy. This only tracks whether the addon is * enabled or not on the Master, it does not track whether network policy is * enabled for the nodes. */ - networkPolicyConfig: Schema$NetworkPolicyConfig; + networkPolicyConfig?: Schema$NetworkPolicyConfig; } /** * AutoUpgradeOptions defines the set of options for the user to control how @@ -118,12 +121,12 @@ export namespace container_v1 { * the approximate start time for the upgrades, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - autoUpgradeStartTime: string; + autoUpgradeStartTime?: string; /** * [Output only] This field is set when upgrades are about to commence with * the description of the upgrade. */ - description: string; + description?: string; } /** * CancelOperationRequest cancels a single operation. @@ -133,24 +136,24 @@ export namespace container_v1 { * The name (project, location, operation id) of the operation to cancel. * Specified in the format 'projects/x/locations/x/operations/*'. */ - name: string; + name?: string; /** * Deprecated. The server-assigned `name` of the operation. This field has * been deprecated and replaced by the name field. */ - operationId: string; + operationId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation resides. * This field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * CidrBlock contains an optional name and one CIDR block. @@ -159,11 +162,11 @@ export namespace container_v1 { /** * cidr_block must be specified in CIDR notation. */ - cidrBlock: string; + cidrBlock?: string; /** * display_name is an optional field for users to identify CIDR blocks. */ - displayName: string; + displayName?: string; } /** * Configuration for client certificates on the cluster. @@ -172,7 +175,7 @@ export namespace container_v1 { /** * Issue a client certificate. */ - issueClientCertificate: boolean; + issueClientCertificate?: boolean; } /** * A Google Kubernetes Engine cluster. @@ -181,38 +184,38 @@ export namespace container_v1 { /** * Configurations for the various addons available to run in the cluster. */ - addonsConfig: Schema$AddonsConfig; + addonsConfig?: Schema$AddonsConfig; /** * The IP address range of the container pods in this cluster, in * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically * chosen or specify a `/14` block in `10.0.0.0/8`. */ - clusterIpv4Cidr: string; + clusterIpv4Cidr?: string; /** * [Output only] The time the cluster was created, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - createTime: string; + createTime?: string; /** * [Output only] The current software version of the master endpoint. */ - currentMasterVersion: string; + currentMasterVersion?: string; /** * [Output only] The number of nodes currently in the cluster. */ - currentNodeCount: number; + currentNodeCount?: number; /** * [Output only] The current version of the node software components. If * they are currently at multiple versions because they're in the * process of being upgraded, this reflects the minimum version of all * nodes. */ - currentNodeVersion: string; + currentNodeVersion?: string; /** * An optional description of this cluster. */ - description: string; + description?: string; /** * Kubernetes alpha features are enabled on this cluster. This includes * alpha API groups (e.g. v1alpha1) and features that may not be production @@ -220,19 +223,19 @@ export namespace container_v1 { * no SLA for uptime and master/node upgrades are disabled. Alpha enabled * clusters are automatically deleted thirty days after creation. */ - enableKubernetesAlpha: boolean; + enableKubernetesAlpha?: boolean; /** * [Output only] The IP address of this cluster's master endpoint. The * endpoint can be accessed from the internet at * `https://username:password@endpoint/`. See the `masterAuth` property of * this resource for username and password information. */ - endpoint: string; + endpoint?: string; /** * [Output only] The time the cluster will be automatically deleted in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - expireTime: string; + expireTime?: string; /** * The initial Kubernetes version for this cluster. Valid versions are * those found in validMasterVersions returned by getServerConfig. The @@ -246,7 +249,7 @@ export namespace container_v1 { * picks an explicit Kubernetes version - "","-": picks * the default Kubernetes version */ - initialClusterVersion: string; + initialClusterVersion?: string; /** * The number of nodes to create in this cluster. You must ensure that your * Compute Engine <a @@ -258,56 +261,56 @@ export namespace container_v1 { * create a "NodePool" object with an auto-generated name. Do not * use this and a node_pool at the same time. */ - initialNodeCount: number; + initialNodeCount?: number; /** * Deprecated. Use node_pools.instance_group_urls. */ - instanceGroupUrls: string[]; + instanceGroupUrls?: string[]; /** * Configuration for cluster IP allocation. */ - ipAllocationPolicy: Schema$IPAllocationPolicy; + ipAllocationPolicy?: Schema$IPAllocationPolicy; /** * The fingerprint of the set of labels for this cluster. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Configuration for the legacy ABAC authorization mode. */ - legacyAbac: Schema$LegacyAbac; + legacyAbac?: Schema$LegacyAbac; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/regions-zones/regions-zones#available) or * [region](/compute/docs/regions-zones/regions-zones#available) in which * the cluster resides. */ - location: string; + location?: string; /** * The list of Google Compute Engine * [locations](/compute/docs/zones#available) in which the cluster's * nodes should be located. */ - locations: string[]; + locations?: string[]; /** * The logging service the cluster should use to write logs. Currently * available options: * `logging.googleapis.com` - the Google Cloud Logging * service. * `none` - no logs will be exported from the cluster. * if left * as an empty string,`logging.googleapis.com` will be used. */ - loggingService: string; + loggingService?: string; /** * Configure the maintenance policy for this cluster. */ - maintenancePolicy: Schema$MaintenancePolicy; + maintenancePolicy?: Schema$MaintenancePolicy; /** * The authentication information for accessing the master endpoint. */ - masterAuth: Schema$MasterAuth; + masterAuth?: Schema$MasterAuth; /** * Master authorized networks is a Beta feature. The configuration options * for master authorized networks feature. */ - masterAuthorizedNetworksConfig: Schema$MasterAuthorizedNetworksConfig; + masterAuthorizedNetworksConfig?: Schema$MasterAuthorizedNetworksConfig; /** * The monitoring service the cluster should use to write metrics. Currently * available options: * `monitoring.googleapis.com` - the Google Cloud @@ -315,25 +318,25 @@ export namespace container_v1 { * cluster. * if left as an empty string, `monitoring.googleapis.com` will * be used. */ - monitoringService: string; + monitoringService?: string; /** * The name of this cluster. The name must be unique within this project and * zone, and can be up to 40 characters with the following restrictions: * * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * * Must end with a number or a letter. */ - name: string; + name?: string; /** * The name of the Google Compute Engine * [network](/compute/docs/networks-and-firewalls#networks) to which the * cluster is connected. If left unspecified, the `default` network will be * used. */ - network: string; + network?: string; /** * Configuration options for the NetworkPolicy feature. */ - networkPolicy: Schema$NetworkPolicy; + networkPolicy?: Schema$NetworkPolicy; /** * Parameters used in creating the cluster's nodes. See `nodeConfig` for * the description of its properties. For requests, this field should only @@ -344,28 +347,28 @@ export namespace container_v1 { * field will be populated with the node configuration of the first node * pool. If unspecified, the defaults are used. */ - nodeConfig: Schema$NodeConfig; + nodeConfig?: Schema$NodeConfig; /** * [Output only] The size of the address space on each node for hosting * containers. This is provisioned from within the `container_ipv4_cidr` * range. */ - nodeIpv4CidrSize: number; + nodeIpv4CidrSize?: number; /** * The node pools associated with this cluster. This field should not be set * if "node_config" or "initial_node_count" are * specified. */ - nodePools: Schema$NodePool[]; + nodePools?: Schema$NodePool[]; /** * The resource labels for the cluster to use to annotate any related Google * Compute Engine resources. */ - resourceLabels: any; + resourceLabels?: any; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] The IP address range of the Kubernetes services in this * cluster, in @@ -373,28 +376,28 @@ export namespace container_v1 { * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the * last `/16` from the container CIDR. */ - servicesIpv4Cidr: string; + servicesIpv4Cidr?: string; /** * [Output only] The current status of this cluster. */ - status: string; + status?: string; /** * [Output only] Additional information about the current status of this * cluster, if available. */ - statusMessage: string; + statusMessage?: string; /** * The name of the Google Compute Engine * [subnetwork](/compute/docs/subnetworks) to which the cluster is * connected. */ - subnetwork: string; + subnetwork?: string; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field is deprecated, use location instead. */ - zone: string; + zone?: string; } /** * ClusterUpdate describes an update to the cluster. Exactly one update can be @@ -405,12 +408,12 @@ export namespace container_v1 { /** * Configurations for the various addons available to run in the cluster. */ - desiredAddonsConfig: Schema$AddonsConfig; + desiredAddonsConfig?: Schema$AddonsConfig; /** * The desired image type for the node pool. NOTE: Set the * "desired_node_pool" field as well. */ - desiredImageType: string; + desiredImageType?: string; /** * The desired list of Google Compute Engine * [locations](/compute/docs/zones#available) in which the cluster's @@ -419,12 +422,12 @@ export namespace container_v1 { * depending on whether locations are being added or removed. This list * must always include the cluster's primary zone. */ - desiredLocations: string[]; + desiredLocations?: string[]; /** * Master authorized networks is a Beta feature. The desired configuration * options for master authorized networks feature. */ - desiredMasterAuthorizedNetworksConfig: + desiredMasterAuthorizedNetworksConfig?: Schema$MasterAuthorizedNetworksConfig; /** * The Kubernetes version to change the master to. Users may specify either @@ -436,28 +439,28 @@ export namespace container_v1 { * picks an explicit Kubernetes version - "-": picks the default * Kubernetes version */ - desiredMasterVersion: string; + desiredMasterVersion?: string; /** * The monitoring service the cluster should use to write metrics. Currently * available options: * "monitoring.googleapis.com" - the Google * Cloud Monitoring service * "none" - no metrics will be exported * from the cluster */ - desiredMonitoringService: string; + desiredMonitoringService?: string; /** * Autoscaler configuration for the node pool specified in * desired_node_pool_id. If there is only one pool in the cluster and * desired_node_pool_id is not provided then the change applies to that * single node pool. */ - desiredNodePoolAutoscaling: Schema$NodePoolAutoscaling; + desiredNodePoolAutoscaling?: Schema$NodePoolAutoscaling; /** * The node pool to be upgraded. This field is mandatory if * "desired_node_version", "desired_image_family" or * "desired_node_pool_autoscaling" is specified and there is more * than one node pool on the cluster. */ - desiredNodePoolId: string; + desiredNodePoolId?: string; /** * The Kubernetes version to change the nodes to (typically an upgrade). * Users may specify either explicit versions offered by Kubernetes Engine @@ -468,7 +471,7 @@ export namespace container_v1 { * the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes * version - "-": picks the Kubernetes master version */ - desiredNodeVersion: string; + desiredNodeVersion?: string; } /** * CompleteIPRotationRequest moves the cluster master back into single-IP @@ -479,25 +482,25 @@ export namespace container_v1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster id) of the cluster to complete IP * rotation. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * CreateClusterRequest creates a cluster. @@ -507,24 +510,24 @@ export namespace container_v1 { * A [cluster * resource](/container-engine/reference/rest/v1/projects.zones.clusters) */ - cluster: Schema$Cluster; + cluster?: Schema$Cluster; /** * The parent (project and location) where the cluster will be created. * Specified in the format 'projects/x/locations/*'. */ - parent: string; + parent?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the parent field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the parent field. */ - zone: string; + zone?: string; } /** * CreateNodePoolRequest creates a node pool for a cluster. @@ -534,29 +537,29 @@ export namespace container_v1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the parent field. */ - clusterId: string; + clusterId?: string; /** * The node pool to create. */ - nodePool: Schema$NodePool; + nodePool?: Schema$NodePool; /** * The parent (project, location, cluster id) where the node pool will be * created. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - parent: string; + parent?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the parent field. */ - zone: string; + zone?: string; } /** * Time window specified for daily maintenance operations. @@ -568,13 +571,13 @@ export namespace container_v1 { * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) format * "PTnHnMnS". */ - duration: string; + duration?: string; /** * Time within the maintenance window to start the maintenance operations. * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) * format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. */ - startTime: string; + startTime?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -595,7 +598,7 @@ export namespace container_v1 { * When enabled, it ensures that a Heapster pod is running in the cluster, * which is also used by the Cloud Monitoring service. */ - disabled: boolean; + disabled?: boolean; } /** * Configuration options for the HTTP (L7) load balancing controller addon, @@ -608,7 +611,7 @@ export namespace container_v1 { * When enabled, it runs a small pod in the cluster that manages the load * balancers. */ - disabled: boolean; + disabled?: boolean; } /** * Configuration for controlling how IPs are allocated in the cluster. @@ -617,7 +620,7 @@ export namespace container_v1 { /** * This field is deprecated, use cluster_ipv4_cidr_block. */ - clusterIpv4Cidr: string; + clusterIpv4Cidr?: string; /** * The IP address range for the cluster pod IPs. If this field is set, then * `cluster.cluster_ipv4_cidr` must be left blank. This field is only @@ -629,7 +632,7 @@ export namespace container_v1 { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. */ - clusterIpv4CidrBlock: string; + clusterIpv4CidrBlock?: string; /** * The name of the secondary range to be used for the cluster CIDR block. * The secondary range will be used for pod IP addresses. This must be an @@ -637,16 +640,16 @@ export namespace container_v1 { * field is only applicable with use_ip_aliases is true and * create_subnetwork is false. */ - clusterSecondaryRangeName: string; + clusterSecondaryRangeName?: string; /** * Whether a new subnetwork will be created automatically for the cluster. * This field is only applicable when `use_ip_aliases` is true. */ - createSubnetwork: boolean; + createSubnetwork?: boolean; /** * This field is deprecated, use node_ipv4_cidr_block. */ - nodeIpv4Cidr: string; + nodeIpv4Cidr?: string; /** * The IP address range of the instance IPs in this cluster. This is * applicable only if `create_subnetwork` is true. Set to blank to have a @@ -657,11 +660,11 @@ export namespace container_v1 { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. */ - nodeIpv4CidrBlock: string; + nodeIpv4CidrBlock?: string; /** * This field is deprecated, use services_ipv4_cidr_block. */ - servicesIpv4Cidr: string; + servicesIpv4Cidr?: string; /** * The IP address range of the services IPs in this cluster. If blank, a * range will be automatically chosen with the default size. This field is @@ -673,7 +676,7 @@ export namespace container_v1 { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. */ - servicesIpv4CidrBlock: string; + servicesIpv4CidrBlock?: string; /** * The name of the secondary range to be used as for the services CIDR * block. The secondary range will be used for service ClusterIPs. This @@ -681,17 +684,17 @@ export namespace container_v1 { * subnetwork. This field is only applicable with use_ip_aliases is true * and create_subnetwork is false. */ - servicesSecondaryRangeName: string; + servicesSecondaryRangeName?: string; /** * A custom subnetwork name to be used if `create_subnetwork` is true. If * this field is empty, then an automatic name will be chosen for the new * subnetwork. */ - subnetworkName: string; + subnetworkName?: string; /** * Whether alias IPs will be used for pod IPs in the cluster. */ - useIpAliases: boolean; + useIpAliases?: boolean; } /** * Configuration for the Kubernetes Dashboard. @@ -700,7 +703,7 @@ export namespace container_v1 { /** * Whether the Kubernetes Dashboard is enabled for this cluster. */ - disabled: boolean; + disabled?: boolean; } /** * Configuration for the legacy Attribute Based Access Control authorization @@ -713,7 +716,7 @@ export namespace container_v1 { * controllers, will have statically granted permissions beyond those * provided by the RBAC configuration or IAM. */ - enabled: boolean; + enabled?: boolean; } /** * ListClustersResponse is the result of ListClustersRequest. @@ -723,12 +726,12 @@ export namespace container_v1 { * A list of clusters in the project in the specified zone, or across all * ones. */ - clusters: Schema$Cluster[]; + clusters?: Schema$Cluster[]; /** * If any zones are listed here, the list of clusters returned may be * missing those zones. */ - missingZones: string[]; + missingZones?: string[]; } /** * ListNodePoolsResponse is the result of ListNodePoolsRequest. @@ -737,7 +740,7 @@ export namespace container_v1 { /** * A list of node pools for a cluster. */ - nodePools: Schema$NodePool[]; + nodePools?: Schema$NodePool[]; } /** * ListOperationsResponse is the result of ListOperationsRequest. @@ -747,11 +750,11 @@ export namespace container_v1 { * If any zones are listed here, the list of operations returned may be * missing the operations from those zones. */ - missingZones: string[]; + missingZones?: string[]; /** * A list of operations in the project in the specified zone. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * MaintenancePolicy defines the maintenance policy to be used for the @@ -761,7 +764,7 @@ export namespace container_v1 { /** * Specifies the maintenance window in which maintenance may be performed. */ - window: Schema$MaintenanceWindow; + window?: Schema$MaintenanceWindow; } /** * MaintenanceWindow defines the maintenance window to be used for the @@ -771,7 +774,7 @@ export namespace container_v1 { /** * DailyMaintenanceWindow specifies a daily maintenance operation window. */ - dailyMaintenanceWindow: Schema$DailyMaintenanceWindow; + dailyMaintenanceWindow?: Schema$DailyMaintenanceWindow; } /** * The authentication information for accessing the master endpoint. @@ -783,35 +786,35 @@ export namespace container_v1 { * [Output only] Base64-encoded public certificate used by clients to * authenticate to the cluster endpoint. */ - clientCertificate: string; + clientCertificate?: string; /** * Configuration for client certificate authentication on the cluster. If * no configuration is specified, a client certificate is issued. */ - clientCertificateConfig: Schema$ClientCertificateConfig; + clientCertificateConfig?: Schema$ClientCertificateConfig; /** * [Output only] Base64-encoded private key used by clients to authenticate * to the cluster endpoint. */ - clientKey: string; + clientKey?: string; /** * [Output only] Base64-encoded public certificate that is the root of trust * for the cluster. */ - clusterCaCertificate: string; + clusterCaCertificate?: string; /** * The password to use for HTTP basic authentication to the master endpoint. * Because the master endpoint is open to the Internet, you should create a * strong password. If a password is provided for cluster creation, * username must be non-empty. */ - password: string; + password?: string; /** * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, you can disable basic authentication by * providing an empty username. */ - username: string; + username?: string; } /** * Master authorized networks is a Beta feature. Configuration options for the @@ -825,11 +828,11 @@ export namespace container_v1 { * cidr_blocks define up to 10 external networks that could access * Kubernetes master through HTTPS. */ - cidrBlocks: Schema$CidrBlock[]; + cidrBlocks?: Schema$CidrBlock[]; /** * Whether or not master authorized networks is enabled. */ - enabled: boolean; + enabled?: boolean; } /** * Configuration options for the NetworkPolicy feature. @@ -839,11 +842,11 @@ export namespace container_v1 { /** * Whether network policy is enabled on the cluster. */ - enabled: boolean; + enabled?: boolean; /** * The selected network policy provider. */ - provider: string; + provider?: string; } /** * Configuration for NetworkPolicy. This only tracks whether the addon is @@ -854,7 +857,7 @@ export namespace container_v1 { /** * Whether NetworkPolicy is enabled for this cluster. */ - disabled: boolean; + disabled?: boolean; } /** * Parameters that describe the nodes in a cluster. @@ -865,18 +868,18 @@ export namespace container_v1 { * https://cloud.google.com/compute/docs/gpus for more information about * support for GPUs. */ - accelerators: Schema$AcceleratorConfig[]; + accelerators?: Schema$AcceleratorConfig[]; /** * Size of the disk attached to each node, specified in GB. The smallest * allowed disk size is 10GB. If unspecified, the default disk size is * 100GB. */ - diskSizeGb: number; + diskSizeGb?: number; /** * The image type to use for this node. Note that for a given image type, * the latest version of it will be used. */ - imageType: string; + imageType?: string; /** * The map of Kubernetes labels (key/value pairs) to be applied to each * node. These will added in addition to any default label(s) that @@ -886,7 +889,7 @@ export namespace container_v1 { * For more information, including usage and the valid values, see: * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ */ - labels: any; + labels?: any; /** * The number of local SSD disks to be attached to the node. The limit for * this value is dependant upon the maximum number of disks available on a @@ -894,13 +897,13 @@ export namespace container_v1 { * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits * for more information. */ - localSsdCount: number; + localSsdCount?: number; /** * The name of a Google Compute Engine [machine * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If * unspecified, the default machine type is `n1-standard-1`. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs assigned to instances in the cluster. Keys * must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in @@ -917,7 +920,7 @@ export namespace container_v1 { * size must be less than or equal to 32 KB. The total size of all keys and * values must be less than 512 KB. */ - metadata: any; + metadata?: any; /** * Minimum CPU platform to be used by this instance. The instance may be * scheduled on the specified or newer CPU platform. Applicable values are @@ -928,7 +931,7 @@ export namespace container_v1 { * min CPU * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * The set of Google API scopes to be made available on all of the node VMs * under the "default" service account. The following scopes are @@ -941,26 +944,26 @@ export namespace container_v1 { * unless Cloud Logging or Cloud Monitoring are enabled, in which case their * required scopes will be added. */ - oauthScopes: string[]; + oauthScopes?: string[]; /** * Whether the nodes are created as preemptible VM instances. See: * https://cloud.google.com/compute/docs/instances/preemptible for more * information about preemptible VM instances. */ - preemptible: boolean; + preemptible?: boolean; /** * The Google Cloud Platform Service Account to be used by the node VMs. If * no Service Account is specified, the "default" service account * is used. */ - serviceAccount: string; + serviceAccount?: string; /** * The list of instance tags applied to all nodes. Tags are used to identify * valid sources or targets for network firewalls and are specified by the * client during cluster or node pool creation. Each tag within the list * must comply with RFC1035. */ - tags: string[]; + tags?: string[]; } /** * NodeManagement defines the set of node management services turned on for @@ -973,17 +976,17 @@ export namespace container_v1 { * if they fail health checks too many times, an automatic repair action * will be triggered. */ - autoRepair: boolean; + autoRepair?: boolean; /** * A flag that specifies whether node auto-upgrade is enabled for the node * pool. If enabled, node auto-upgrade helps keep the nodes in your node * pool up to date with the latest release version of Kubernetes. */ - autoUpgrade: boolean; + autoUpgrade?: boolean; /** * Specifies the Auto Upgrade knobs for the node pool. */ - upgradeOptions: Schema$AutoUpgradeOptions; + upgradeOptions?: Schema$AutoUpgradeOptions; } /** * NodePool contains the name and configuration for a cluster's node pool. @@ -998,49 +1001,49 @@ export namespace container_v1 { * Autoscaler configuration for this NodePool. Autoscaler is enabled only if * a valid configuration is present. */ - autoscaling: Schema$NodePoolAutoscaling; + autoscaling?: Schema$NodePoolAutoscaling; /** * The node configuration of the pool. */ - config: Schema$NodeConfig; + config?: Schema$NodeConfig; /** * The initial node count for the pool. You must ensure that your Compute * Engine <a href="/compute/docs/resource-quotas">resource * quota</a> is sufficient for this number of instances. You must also * have available firewall and routes quota. */ - initialNodeCount: number; + initialNodeCount?: number; /** * [Output only] The resource URLs of the [managed instance * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) * associated with this node pool. */ - instanceGroupUrls: string[]; + instanceGroupUrls?: string[]; /** * NodeManagement configuration for this NodePool. */ - management: Schema$NodeManagement; + management?: Schema$NodeManagement; /** * The name of the node pool. */ - name: string; + name?: string; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] The status of the nodes in this pool instance. */ - status: string; + status?: string; /** * [Output only] Additional information about the current status of this * node pool instance, if available. */ - statusMessage: string; + statusMessage?: string; /** * The version of the Kubernetes of this node. */ - version: string; + version?: string; } /** * NodePoolAutoscaling contains information required by cluster autoscaler to @@ -1050,17 +1053,17 @@ export namespace container_v1 { /** * Is autoscaling enabled for this node pool. */ - enabled: boolean; + enabled?: boolean; /** * Maximum number of nodes in the NodePool. Must be >= min_node_count. * There has to enough quota to scale up the cluster. */ - maxNodeCount: number; + maxNodeCount?: number; /** * Minimum number of nodes in the NodePool. Must be >= 1 and <= * max_node_count. */ - minNodeCount: number; + minNodeCount?: number; } /** * This operation resource represents operations that may have happened or are @@ -1070,54 +1073,54 @@ export namespace container_v1 { /** * Detailed operation progress, if available. */ - detail: string; + detail?: string; /** * [Output only] The time the operation completed, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - endTime: string; + endTime?: string; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/regions-zones/regions-zones#available) or * [region](/compute/docs/regions-zones/regions-zones#available) in which * the cluster resides. */ - location: string; + location?: string; /** * The server-assigned ID for the operation. */ - name: string; + name?: string; /** * The operation type. */ - operationType: string; + operationType?: string; /** * Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] The time the operation started, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - startTime: string; + startTime?: string; /** * The current status of the operation. */ - status: string; + status?: string; /** * If an error has occurred, a textual description of the error. */ - statusMessage: string; + statusMessage?: string; /** * Server-defined URL for the target of the operation. */ - targetLink: string; + targetLink?: string; /** * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation is taking * place. This field is deprecated, use location instead. */ - zone: string; + zone?: string; } /** * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed @@ -1129,30 +1132,30 @@ export namespace container_v1 { * Deprecated. The name of the cluster to rollback. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster, node pool id) of the node poll to * rollback upgrade. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to rollback. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * Kubernetes Engine service configuration. @@ -1161,23 +1164,23 @@ export namespace container_v1 { /** * Version of Kubernetes the service deploys by default. */ - defaultClusterVersion: string; + defaultClusterVersion?: string; /** * Default image type. */ - defaultImageType: string; + defaultImageType?: string; /** * List of valid image types. */ - validImageTypes: string[]; + validImageTypes?: string[]; /** * List of valid master versions. */ - validMasterVersions: string[]; + validMasterVersions?: string[]; /** * List of valid node upgrade target versions. */ - validNodeVersions: string[]; + validNodeVersions?: string[]; } /** * SetAddonsConfigRequest sets the addons associated with the cluster. @@ -1187,29 +1190,29 @@ export namespace container_v1 { * The desired configurations for the various addons available to run in the * cluster. */ - addonsConfig: Schema$AddonsConfig; + addonsConfig?: Schema$AddonsConfig; /** * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster) of the cluster to set addons. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLabelsRequest sets the Google Cloud Platform labels on a Google @@ -1221,7 +1224,7 @@ export namespace container_v1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The fingerprint of the previous set of labels for this resource, used to * detect conflicts. The fingerprint is initially generated by Kubernetes @@ -1230,28 +1233,28 @@ export namespace container_v1 { * changing labels. Make a <code>get()</code> request to the * resource to get the latest fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The name (project, location, cluster id) of the cluster to set labels. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * The labels to set for that cluster. */ - resourceLabels: any; + resourceLabels?: any; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism @@ -1262,29 +1265,29 @@ export namespace container_v1 { * Deprecated. The name of the cluster to update. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * Whether ABAC authorization will be enabled in the cluster. */ - enabled: boolean; + enabled?: boolean; /** * The name (project, location, cluster id) of the cluster to set legacy * abac. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLocationsRequest sets the locations of the cluster. @@ -1294,7 +1297,7 @@ export namespace container_v1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The desired list of Google Compute Engine * [locations](/compute/docs/zones#available) in which the cluster's @@ -1303,24 +1306,24 @@ export namespace container_v1 { * depending on whether locations are being added or removed. This list * must always include the cluster's primary zone. */ - locations: string[]; + locations?: string[]; /** * The name (project, location, cluster) of the cluster to set locations. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLoggingServiceRequest sets the logging service of a cluster. @@ -1330,31 +1333,31 @@ export namespace container_v1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The logging service the cluster should use to write metrics. Currently * available options: * "logging.googleapis.com" - the Google * Cloud Logging service * "none" - no metrics will be exported * from the cluster */ - loggingService: string; + loggingService?: string; /** * The name (project, location, cluster) of the cluster to set logging. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetMaintenancePolicyRequest sets the maintenance policy for a cluster. @@ -1363,28 +1366,28 @@ export namespace container_v1 { /** * The name of the cluster to update. */ - clusterId: string; + clusterId?: string; /** * The maintenance policy to be set for the cluster. An empty field clears * the existing maintenance policy. */ - maintenancePolicy: Schema$MaintenancePolicy; + maintenancePolicy?: Schema$MaintenancePolicy; /** * The name (project, location, cluster id) of the cluster to set * maintenance policy. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). */ - projectId: string; + projectId?: string; /** * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. */ - zone: string; + zone?: string; } /** * SetMasterAuthRequest updates the admin password of a cluster. @@ -1393,33 +1396,33 @@ export namespace container_v1 { /** * The exact form of action to be taken on the master auth. */ - action: string; + action?: string; /** * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster) of the cluster to set auth. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * A description of the update. */ - update: Schema$MasterAuth; + update?: Schema$MasterAuth; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetMonitoringServiceRequest sets the monitoring service of a cluster. @@ -1429,31 +1432,31 @@ export namespace container_v1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The monitoring service the cluster should use to write metrics. Currently * available options: * "monitoring.googleapis.com" - the Google * Cloud Monitoring service * "none" - no metrics will be exported * from the cluster */ - monitoringService: string; + monitoringService?: string; /** * The name (project, location, cluster) of the cluster to set monitoring. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNetworkPolicyRequest enables/disables network policy for a cluster. @@ -1463,29 +1466,29 @@ export namespace container_v1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster id) of the cluster to set networking * policy. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Configuration options for the NetworkPolicy feature. */ - networkPolicy: Schema$NetworkPolicy; + networkPolicy?: Schema$NetworkPolicy; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -1494,35 +1497,35 @@ export namespace container_v1 { /** * Autoscaling configuration for the node pool. */ - autoscaling: Schema$NodePoolAutoscaling; + autoscaling?: Schema$NodePoolAutoscaling; /** * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster, node pool) of the node pool to set * autoscaler settings. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to upgrade. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolManagementRequest sets the node management properties of a node @@ -1533,34 +1536,34 @@ export namespace container_v1 { * Deprecated. The name of the cluster to update. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * NodeManagement configuration for the node pool. */ - management: Schema$NodeManagement; + management?: Schema$NodeManagement; /** * The name (project, location, cluster, node pool id) of the node pool to * set management properties. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to update. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolSizeRequest sets the size a node pool. @@ -1570,34 +1573,34 @@ export namespace container_v1 { * Deprecated. The name of the cluster to update. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster, node pool id) of the node pool to * set size. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * The desired node count for the pool. */ - nodeCount: number; + nodeCount?: number; /** * Deprecated. The name of the node pool to update. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * StartIPRotationRequest creates a new IP for the cluster and then performs a @@ -1608,29 +1611,29 @@ export namespace container_v1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster id) of the cluster to start IP * rotation. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Whether to rotate credentials during IP rotation. */ - rotateCredentials: boolean; + rotateCredentials?: boolean; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * UpdateClusterRequest updates the settings of a cluster. @@ -1640,28 +1643,28 @@ export namespace container_v1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster) of the cluster to update. Specified * in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * A description of the update. */ - update: Schema$ClusterUpdate; + update?: Schema$ClusterUpdate; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * UpdateMasterRequest updates the master of the cluster. @@ -1671,7 +1674,7 @@ export namespace container_v1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The Kubernetes version to change the master to. Users may specify either * explicit versions offered by Kubernetes Engine or version aliases, which @@ -1682,24 +1685,24 @@ export namespace container_v1 { * picks an explicit Kubernetes version - "-": picks the default * Kubernetes version */ - masterVersion: string; + masterVersion?: string; /** * The name (project, location, cluster) of the cluster to update. Specified * in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * UpdateNodePoolRequests update a node pool's image and/or version. @@ -1709,22 +1712,22 @@ export namespace container_v1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The desired image type for the node pool. */ - imageType: string; + imageType?: string; /** * The name (project, location, cluster, node pool) of the node pool to * update. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to upgrade. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * The Kubernetes version to change the nodes to (typically an upgrade). * Users may specify either explicit versions offered by Kubernetes Engine @@ -1735,21 +1738,22 @@ export namespace container_v1 { * the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes * version - "-": picks the Kubernetes master version */ - nodeVersion: string; + nodeVersion?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } + export class Resource$Projects { root: Container; locations: Resource$Projects$Locations; @@ -1765,6 +1769,8 @@ export namespace container_v1 { return this.root; } } + + export class Resource$Projects$Locations { root: Container; clusters: Resource$Projects$Locations$Clusters; @@ -1795,26 +1801,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getServerConfig(params?: any, options?: MethodOptions): - AxiosPromise; getServerConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Getserverconfig, + options?: MethodOptions): AxiosPromise; getServerConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Getserverconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getServerConfig( + params: Params$Resource$Projects$Locations$Getserverconfig, + callback: BodyResponseCallback): void; + getServerConfig(callback: BodyResponseCallback): void; + getServerConfig( + paramsOrCallback?: Params$Resource$Projects$Locations$Getserverconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Getserverconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Getserverconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -1836,6 +1855,32 @@ export namespace container_v1 { } } } + + export interface Params$Resource$Projects$Locations$Getserverconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project and location) of the server config to get Specified in + * the format 'projects/x/locations/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export class Resource$Projects$Locations$Clusters { root: Container; nodePools: Resource$Projects$Locations$Clusters$Nodepools; @@ -1863,26 +1908,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - completeIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Completeiprotation, + options?: MethodOptions): AxiosPromise; + completeIpRotation( + params: Params$Resource$Projects$Locations$Clusters$Completeiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Completeiprotation, + callback: BodyResponseCallback): void; + completeIpRotation(callback: BodyResponseCallback): void; + completeIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Completeiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Completeiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Completeiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -1926,26 +1986,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Clusters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -1987,26 +2060,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Clusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Clusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2043,23 +2129,34 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Clusters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2096,28 +2193,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Clusters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Clusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Clusters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2153,26 +2262,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAddons(params?: any, options?: MethodOptions): - AxiosPromise; setAddons( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setaddons, + options?: MethodOptions): AxiosPromise; + setAddons( + params: Params$Resource$Projects$Locations$Clusters$Setaddons, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setAddons( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setaddons, + callback: BodyResponseCallback): void; + setAddons(callback: BodyResponseCallback): void; + setAddons( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setaddons| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setaddons; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Setaddons; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2208,26 +2331,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLegacyAbac(params?: any, options?: MethodOptions): - AxiosPromise; setLegacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setlegacyabac, + options?: MethodOptions): AxiosPromise; + setLegacyAbac( + params: Params$Resource$Projects$Locations$Clusters$Setlegacyabac, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLegacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setlegacyabac, + callback: BodyResponseCallback): void; + setLegacyAbac(callback: BodyResponseCallback): void; + setLegacyAbac( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setlegacyabac| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setlegacyabac; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setlegacyabac; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2263,26 +2401,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLocations(params?: any, options?: MethodOptions): - AxiosPromise; setLocations( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setlocations, + options?: MethodOptions): AxiosPromise; + setLocations( + params: Params$Resource$Projects$Locations$Clusters$Setlocations, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLocations( + params: Params$Resource$Projects$Locations$Clusters$Setlocations, + callback: BodyResponseCallback): void; + setLocations(callback: BodyResponseCallback): void; setLocations( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setlocations| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setlocations; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Setlocations; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2318,26 +2470,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLogging(params?: any, options?: MethodOptions): - AxiosPromise; setLogging( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setlogging, + options?: MethodOptions): AxiosPromise; setLogging( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setlogging, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLogging( + params: Params$Resource$Projects$Locations$Clusters$Setlogging, + callback: BodyResponseCallback): void; + setLogging(callback: BodyResponseCallback): void; + setLogging( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setlogging| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setlogging; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Setlogging; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2373,26 +2539,45 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMaintenancePolicy(params?: any, options?: MethodOptions): - AxiosPromise; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy, + options?: MethodOptions): AxiosPromise; + setMaintenancePolicy( + params: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMaintenancePolicy( + params: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy, + callback: BodyResponseCallback): void; + setMaintenancePolicy(callback: BodyResponseCallback): + void; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2430,26 +2615,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMasterAuth(params?: any, options?: MethodOptions): - AxiosPromise; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setmasterauth, + options?: MethodOptions): AxiosPromise; + setMasterAuth( + params: Params$Resource$Projects$Locations$Clusters$Setmasterauth, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setmasterauth, + callback: BodyResponseCallback): void; + setMasterAuth(callback: BodyResponseCallback): void; + setMasterAuth( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setmasterauth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setmasterauth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setmasterauth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2485,26 +2685,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMonitoring(params?: any, options?: MethodOptions): - AxiosPromise; setMonitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setmonitoring, + options?: MethodOptions): AxiosPromise; setMonitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setmonitoring, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMonitoring( + params: Params$Resource$Projects$Locations$Clusters$Setmonitoring, + callback: BodyResponseCallback): void; + setMonitoring(callback: BodyResponseCallback): void; + setMonitoring( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setmonitoring| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setmonitoring; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setmonitoring; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2540,26 +2755,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNetworkPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy, + options?: MethodOptions): AxiosPromise; + setNetworkPolicy( + params: Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy, + callback: BodyResponseCallback): void; + setNetworkPolicy(callback: BodyResponseCallback): void; + setNetworkPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2595,26 +2825,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setResourceLabels(params?: any, options?: MethodOptions): - AxiosPromise; setResourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setresourcelabels, + options?: MethodOptions): AxiosPromise; + setResourceLabels( + params: Params$Resource$Projects$Locations$Clusters$Setresourcelabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setResourceLabels( + params: Params$Resource$Projects$Locations$Clusters$Setresourcelabels, + callback: BodyResponseCallback): void; + setResourceLabels(callback: BodyResponseCallback): void; setResourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setresourcelabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setresourcelabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setresourcelabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2650,26 +2895,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Startiprotation, + options?: MethodOptions): AxiosPromise; + startIpRotation( + params: Params$Resource$Projects$Locations$Clusters$Startiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Startiprotation, + callback: BodyResponseCallback): void; + startIpRotation(callback: BodyResponseCallback): void; + startIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Startiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Startiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Startiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2705,26 +2965,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Locations$Clusters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2759,26 +3032,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateMaster(params?: any, options?: MethodOptions): - AxiosPromise; updateMaster( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Updatemaster, + options?: MethodOptions): AxiosPromise; + updateMaster( + params: Params$Resource$Projects$Locations$Clusters$Updatemaster, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateMaster( + params: Params$Resource$Projects$Locations$Clusters$Updatemaster, + callback: BodyResponseCallback): void; + updateMaster(callback: BodyResponseCallback): void; updateMaster( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Updatemaster| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Updatemaster; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Updatemaster; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2800,228 +3087,384 @@ export namespace container_v1 { } } } - export class Resource$Projects$Locations$Clusters$Nodepools { - root: Container; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Projects$Locations$Clusters$Completeiprotation { /** - * container.projects.locations.clusters.nodePools.create - * @desc Creates a node pool for a cluster. - * @alias container.projects.locations.clusters.nodePools.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent (project, location, cluster id) where the node pool will be created. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().CreateNodePoolRequest} 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 + * Auth client or API Key for the request */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - create( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+parent}/nodePools') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name (project, location, cluster id) of the cluster to complete IP + * rotation. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CompleteIPRotationRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.locations.clusters.nodePools.delete - * @desc Deletes a node pool from a cluster. - * @alias container.projects.locations.clusters.nodePools.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {string=} params.nodePoolId Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @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 + * The parent (project and location) where the cluster will be created. + * Specified in the format 'projects/x/locations/x'. */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateClusterRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Deprecated. The name of the cluster to delete. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to delete. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.locations.clusters.nodePools.get - * @desc Retrieves the node pool requested. - * @alias container.projects.locations.clusters.nodePools.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {string=} params.nodePoolId Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @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 + * Deprecated. The name of the cluster to retrieve. This field has been + * deprecated and replaced by the name field. */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides, or + * "-" for all zones. This field has been deprecated and replaced by the + * parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Setaddons { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetAddonsConfigRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setlegacyabac { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set legacy + * abac. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLegacyAbacRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setlocations { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLocationsRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setlogging { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLoggingServiceRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set + * maintenance policy. Specified in the format + * 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMaintenancePolicyRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setmasterauth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMasterAuthRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setmonitoring { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMonitoringServiceRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set networking + * policy. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNetworkPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setresourcelabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set labels. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLabelsRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Startiprotation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to start IP + * rotation. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StartIPRotationRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to update. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateClusterRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Updatemaster { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to update. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateMasterRequest; + } + + export class Resource$Projects$Locations$Clusters$Nodepools { + root: Container; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; } /** - * container.projects.locations.clusters.nodePools.list - * @desc Lists the node pools for a cluster. - * @alias container.projects.locations.clusters.nodePools.list + * container.projects.locations.clusters.nodePools.create + * @desc Creates a node pool for a cluster. + * @alias container.projects.locations.clusters.nodePools.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. - * @param {string} params.parent The parent (project, location, cluster id) where the node pools will be listed. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. + * @param {string} params.parent The parent (project, location, cluster id) where the node pool will be created. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().CreateNodePoolRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + create( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + '/v1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, @@ -3030,54 +3473,70 @@ export namespace container_v1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.clusters.nodePools.rollback - * @desc Roll back the previously Aborted or Failed NodePool upgrade. This - * will be an no-op if the last upgrade successfully completed. - * @alias container.projects.locations.clusters.nodePools.rollback + * container.projects.locations.clusters.nodePools.delete + * @desc Deletes a node pool from a cluster. + * @alias container.projects.locations.clusters.nodePools.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {string=} params.nodePoolId Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. * @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 */ - rollback(params?: any, options?: MethodOptions): - AxiosPromise; - rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:rollback') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' }, options), params, @@ -3094,46 +3553,58 @@ export namespace container_v1 { /** - * container.projects.locations.clusters.nodePools.setAutoscaling - * @desc Sets the autoscaling settings of a specific node pool. - * @alias container.projects.locations.clusters.nodePools.setAutoscaling + * container.projects.locations.clusters.nodePools.get + * @desc Retrieves the node pool requested. + * @alias container.projects.locations.clusters.nodePools.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data + * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {string=} params.nodePoolId Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. * @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 */ - setAutoscaling(params?: any, options?: MethodOptions): - AxiosPromise; - setAutoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setAutoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Clusters$Nodepools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Clusters$Nodepools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:setAutoscaling') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, options), params, requiredParams: ['name'], @@ -3141,106 +3612,140 @@ export namespace container_v1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.clusters.nodePools.setManagement - * @desc Sets the NodeManagement options for a node pool. - * @alias container.projects.locations.clusters.nodePools.setManagement + * container.projects.locations.clusters.nodePools.list + * @desc Lists the node pools for a cluster. + * @alias container.projects.locations.clusters.nodePools.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. + * @param {string} params.parent The parent (project, location, cluster id) where the node pools will be listed. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. * @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 */ - setManagement(params?: any, options?: MethodOptions): - AxiosPromise; - setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:setManagement') + url: (rootUrl + '/v1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.clusters.nodePools.setSize - * @desc Sets the size of a specific node pool. - * @alias container.projects.locations.clusters.nodePools.setSize + * container.projects.locations.clusters.nodePools.rollback + * @desc Roll back the previously Aborted or Failed NodePool upgrade. This + * will be an no-op if the last upgrade successfully completed. + * @alias container.projects.locations.clusters.nodePools.rollback * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {string} params.name The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().RollbackNodePoolUpgradeRequest} 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 */ - setSize(params?: any, options?: MethodOptions): - AxiosPromise; - setSize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setSize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + rollback( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rollback( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; + rollback( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:setSize') + url: (rootUrl + '/v1/{+name}:rollback') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3259,44 +3764,63 @@ export namespace container_v1 { /** - * container.projects.locations.clusters.nodePools.update - * @desc Updates the version and/or image type of a specific node pool. - * @alias container.projects.locations.clusters.nodePools.update + * container.projects.locations.clusters.nodePools.setAutoscaling + * @desc Sets the autoscaling settings of a specific node pool. + * @alias container.projects.locations.clusters.nodePools.setAutoscaling * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to update. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setAutoscaling( + params?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling, + options?: MethodOptions): AxiosPromise; + setAutoscaling( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAutoscaling( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling, + callback: BodyResponseCallback): void; + setAutoscaling(callback: BodyResponseCallback): void; + setAutoscaling( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + url: (rootUrl + '/v1/{+name}:setAutoscaling') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, @@ -3310,58 +3834,64 @@ export namespace container_v1 { return createAPIRequest(parameters); } } - } - - - export class Resource$Projects$Locations$Operations { - root: Container; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * container.projects.locations.operations.cancel - * @desc Cancels the specified operation. - * @alias container.projects.locations.operations.cancel + * container.projects.locations.clusters.nodePools.setManagement + * @desc Sets the NodeManagement options for a node pool. + * @alias container.projects.locations.clusters.nodePools.setManagement * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects/x/locations/x/operations/x'. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().SetNodePoolManagementRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; - cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setManagement( + params?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement, + options?: MethodOptions): AxiosPromise; + setManagement( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setManagement( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement, + callback: BodyResponseCallback): void; + setManagement(callback: BodyResponseCallback): void; + setManagement( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}:cancel') + url: (rootUrl + '/v1/{+name}:setManagement') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3372,51 +3902,68 @@ export namespace container_v1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.operations.get - * @desc Gets the specified operation. - * @alias container.projects.locations.operations.get + * container.projects.locations.clusters.nodePools.setSize + * @desc Sets the size of a specific node pool. + * @alias container.projects.locations.clusters.nodePools.setSize * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, operation id) of the operation to get. Specified in the format 'projects/x/locations/x/operations/x'. - * @param {string=} params.operationId Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().SetNodePoolSizeRequest} 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 */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + setSize( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize, + options?: MethodOptions): AxiosPromise; + setSize( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSize( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize, + callback: BodyResponseCallback): void; + setSize(callback: BodyResponseCallback): void; + setSize( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + '/v1/{+name}:setSize') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, @@ -3433,219 +3980,594 @@ export namespace container_v1 { /** - * container.projects.locations.operations.list - * @desc Lists all operations in a project in a specific zone or all zones. - * @alias container.projects.locations.operations.list + * container.projects.locations.clusters.nodePools.update + * @desc Updates the version and/or image type of a specific node pool. + * @alias container.projects.locations.clusters.nodePools.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent (project and location) where the operations will be listed. Specified in the format 'projects/x/locations/x'. Location "-" matches all zones and all regions. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones. This field has been deprecated and replaced by the parent field. + * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to update. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().UpdateNodePoolRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + update( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/operations') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - export class Resource$Projects$Zones { - root: Container; - clusters: Resource$Projects$Zones$Clusters; - operations: Resource$Projects$Zones$Operations; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - this.clusters = new Resource$Projects$Zones$Clusters(root); - this.operations = new Resource$Projects$Zones$Operations(root); - } - - getRoot() { - return this.root; - } + /** + * The parent (project, location, cluster id) where the node pool will be + * created. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateNodePoolRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool to delete. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.getServerconfig - * @desc Returns configuration info about the Kubernetes Engine service. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Google Container Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/container - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var container = google.container('v1'); - * - * authorize(function(authClient) { - * var request = { - * // The Google Developers Console [project ID or project - * // number](https://support.google.com/cloud/answer/6158840). - * projectId: 'my-project-id', // TODO: Update placeholder value. - * - * // The name of the Google Compute Engine - * [zone](/compute/docs/zones#available) - * // to return operations for. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * container.projects.zones.getServerconfig(request, function(err, - * response) { if (err) { console.error(err); return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias container.projects.zones.getServerconfig + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool. This field has been deprecated and + * replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the parent field. + */ + clusterId?: string; + /** + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackNodePoolUpgradeRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolAutoscalingRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * set management properties. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolManagementRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * set size. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolSizeRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateNodePoolRequest; + } + + + + export class Resource$Projects$Locations$Operations { + root: Container; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * container.projects.locations.operations.cancel + * @desc Cancels the specified operation. + * @alias container.projects.locations.operations.cancel * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.name The name (project and location) of the server config to get Specified in the format 'projects/x/locations/x'. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects/x/locations/x/operations/x'. + * @param {().CancelOperationRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getServerconfig(params?: any, options?: MethodOptions): - AxiosPromise; - getServerconfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getServerconfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + cancel( + params?: Params$Resource$Projects$Locations$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/serverconfig') + url: (rootUrl + '/v1/{+name}:cancel') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - export class Resource$Projects$Zones$Clusters { - root: Container; - nodePools: Resource$Projects$Zones$Clusters$Nodepools; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(root); - } - getRoot() { - return this.root; + + /** + * container.projects.locations.operations.get + * @desc Gets the specified operation. + * @alias container.projects.locations.operations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name (project, location, operation id) of the operation to get. Specified in the format 'projects/x/locations/x/operations/x'. + * @param {string=} params.operationId Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } } /** - * container.projects.zones.clusters.addons - * @desc Sets the addons of a specific cluster. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Google Container Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/container - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from + * container.projects.locations.operations.list + * @desc Lists all operations in a project in a specific zone or all zones. + * @alias container.projects.locations.operations.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The parent (project and location) where the operations will be listed. Specified in the format 'projects/x/locations/x'. Location "-" matches all zones and all regions. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones. This field has been deprecated and replaced by the parent field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+parent}/operations') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format 'projects/x/locations/x/operations/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Locations$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/x/locations/x/operations/x'. + */ + name?: string; + /** + * Deprecated. The server-assigned `name` of the operation. This field has + * been deprecated and replaced by the name field. + */ + operationId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or `-` + * for all zones. This field has been deprecated and replaced by the parent + * field. + */ + zone?: string; + } + + + + export class Resource$Projects$Zones { + root: Container; + clusters: Resource$Projects$Zones$Clusters; + operations: Resource$Projects$Zones$Operations; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + this.clusters = new Resource$Projects$Zones$Clusters(root); + this.operations = new Resource$Projects$Zones$Operations(root); + } + + getRoot() { + return this.root; + } + + + /** + * container.projects.zones.getServerconfig + * @desc Returns configuration info about the Kubernetes Engine service. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Google Container Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/container + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from * // https://cloud.google.com/sdk and run * // `gcloud beta auth application-default login`. * // For more information, see @@ -3664,21 +4586,14 @@ export namespace container_v1 { * projectId: 'my-project-id', // TODO: Update placeholder value. * * // The name of the Google Compute Engine - * // [zone](/compute/docs/zones#available) in which the cluster - * // resides. + * [zone](/compute/docs/zones#available) + * // to return operations for. * zone: 'my-zone', // TODO: Update placeholder value. * - * // The name of the cluster to upgrade. - * clusterId: 'my-cluster-id', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * * auth: authClient, * }; * - * container.projects.zones.clusters.addons(request, function(err, + * container.projects.zones.getServerconfig(request, function(err, * response) { if (err) { console.error(err); return; * } * @@ -3701,65 +4616,115 @@ export namespace container_v1 { * callback(authClient); * }); * } - * @alias container.projects.zones.clusters.addons + * @alias container.projects.zones.getServerconfig * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. + * @param {string=} params.name The name (project and location) of the server config to get Specified in the format 'projects/x/locations/x'. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetAddonsConfigRequest} params.resource Request body data + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for. This field has been deprecated and replaced by the name field. * @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 */ - addons(params?: any, options?: MethodOptions): - AxiosPromise; - addons( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - addons( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getServerconfig( + params?: Params$Resource$Projects$Zones$Getserverconfig, + options?: MethodOptions): AxiosPromise; + getServerconfig( + params: Params$Resource$Projects$Zones$Getserverconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getServerconfig( + params: Params$Resource$Projects$Zones$Getserverconfig, + callback: BodyResponseCallback): void; + getServerconfig(callback: BodyResponseCallback): void; + getServerconfig( + paramsOrCallback?: Params$Resource$Projects$Zones$Getserverconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Getserverconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Getserverconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/serverconfig') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Zones$Getserverconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.clusters.completeIpRotation - * @desc Completes master IP rotation. + * The name (project and location) of the server config to get Specified in + * the format 'projects/x/locations/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + + export class Resource$Projects$Zones$Clusters { + root: Container; + nodePools: Resource$Projects$Zones$Clusters$Nodepools; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(root); + } + + getRoot() { + return this.root; + } + + + /** + * container.projects.zones.clusters.addons + * @desc Sets the addons of a specific cluster. * @example * * // BEFORE RUNNING: * // --------------- @@ -3783,8 +4748,7 @@ export namespace container_v1 { * authorize(function(authClient) { * var request = { * // The Google Developers Console [project ID or project - * // - * number](https://developers.google.com/console/help/new/#projectnumber). + * // number](https://support.google.com/cloud/answer/6158840). * projectId: 'my-project-id', // TODO: Update placeholder value. * * // The name of the Google Compute Engine @@ -3792,7 +4756,7 @@ export namespace container_v1 { * // resides. * zone: 'my-zone', // TODO: Update placeholder value. * - * // The name of the cluster. + * // The name of the cluster to upgrade. * clusterId: 'my-cluster-id', // TODO: Update placeholder value. * * resource: { @@ -3802,8 +4766,8 @@ export namespace container_v1 { * auth: authClient, * }; * - * container.projects.zones.clusters.completeIpRotation(request, - * function(err, response) { if (err) { console.error(err); return; + * container.projects.zones.clusters.addons(request, function(err, + * response) { if (err) { console.error(err); return; * } * * // TODO: Change code below to process the `response` object: @@ -3825,45 +4789,58 @@ export namespace container_v1 { * callback(authClient); * }); * } - * @alias container.projects.zones.clusters.completeIpRotation + * @alias container.projects.zones.clusters.addons * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. + * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().CompleteIPRotationRequest} params.resource Request body data + * @param {().SetAddonsConfigRequest} 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 */ - completeIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; - completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + addons( + params?: Params$Resource$Projects$Zones$Clusters$Addons, + options?: MethodOptions): AxiosPromise; + addons( + params: Params$Resource$Projects$Zones$Clusters$Addons, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addons( + params: Params$Resource$Projects$Zones$Clusters$Addons, + callback: BodyResponseCallback): void; + addons(callback: BodyResponseCallback): void; + addons( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Addons| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Addons; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Addons; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation') + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3882,16 +4859,8 @@ export namespace container_v1 { /** - * container.projects.zones.clusters.create - * @desc Creates a cluster, consisting of the specified number and type of - * Google Compute Engine instances. By default, the cluster is created in - * the project's [default - * network](/compute/docs/networks-and-firewalls#networks). One firewall is - * added for the cluster. After cluster creation, the cluster creates routes - * for each node to allow the containers on that node to communicate with - * all other instances in the cluster. Finally, an entry is added to the - * project's global metadata indicating which CIDR range is being used by - * the cluster. + * container.projects.zones.clusters.completeIpRotation + * @desc Completes master IP rotation. * @example * * // BEFORE RUNNING: * // --------------- @@ -3915,7 +4884,8 @@ export namespace container_v1 { * authorize(function(authClient) { * var request = { * // The Google Developers Console [project ID or project - * // number](https://support.google.com/cloud/answer/6158840). + * // + * number](https://developers.google.com/console/help/new/#projectnumber). * projectId: 'my-project-id', // TODO: Update placeholder value. * * // The name of the Google Compute Engine @@ -3923,8 +4893,154 @@ export namespace container_v1 { * // resides. * zone: 'my-zone', // TODO: Update placeholder value. * - * resource: { - * // TODO: Add desired properties to the request body. + * // The name of the cluster. + * clusterId: 'my-cluster-id', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * + * auth: authClient, + * }; + * + * container.projects.zones.clusters.completeIpRotation(request, + * function(err, response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias container.projects.zones.clusters.completeIpRotation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().CompleteIPRotationRequest} 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 + */ + completeIpRotation( + params?: Params$Resource$Projects$Zones$Clusters$Completeiprotation, + options?: MethodOptions): AxiosPromise; + completeIpRotation( + params: Params$Resource$Projects$Zones$Clusters$Completeiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + completeIpRotation( + params: Params$Resource$Projects$Zones$Clusters$Completeiprotation, + callback: BodyResponseCallback): void; + completeIpRotation(callback: BodyResponseCallback): void; + completeIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Completeiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Completeiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Completeiprotation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.create + * @desc Creates a cluster, consisting of the specified number and type of + * Google Compute Engine instances. By default, the cluster is created in + * the project's [default + * network](/compute/docs/networks-and-firewalls#networks). One firewall is + * added for the cluster. After cluster creation, the cluster creates routes + * for each node to allow the containers on that node to communicate with + * all other instances in the cluster. Finally, an entry is added to the + * project's global metadata indicating which CIDR range is being used by + * the cluster. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Google Container Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/container + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var container = google.container('v1'); + * + * authorize(function(authClient) { + * var request = { + * // The Google Developers Console [project ID or project + * // number](https://support.google.com/cloud/answer/6158840). + * projectId: 'my-project-id', // TODO: Update placeholder value. + * + * // The name of the Google Compute Engine + * // [zone](/compute/docs/zones#available) in which the cluster + * // resides. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. * }, * * auth: authClient, @@ -3964,26 +5080,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Zones$Clusters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4085,26 +5214,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Zones$Clusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4204,23 +5346,34 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Zones$Clusters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Zones$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Zones$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4324,26 +5477,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - legacyAbac(params?: any, options?: MethodOptions): - AxiosPromise; legacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Legacyabac, + options?: MethodOptions): AxiosPromise; + legacyAbac( + params: Params$Resource$Projects$Zones$Clusters$Legacyabac, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; legacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Legacyabac, + callback: BodyResponseCallback): void; + legacyAbac(callback: BodyResponseCallback): void; + legacyAbac( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Legacyabac| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Legacyabac; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Legacyabac; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4440,28 +5606,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Zones$Clusters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Zones$Clusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Zones$Clusters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4563,26 +5741,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - locations(params?: any, options?: MethodOptions): - AxiosPromise; locations( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Locations, + options?: MethodOptions): AxiosPromise; + locations( + params: Params$Resource$Projects$Zones$Clusters$Locations, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + locations( + params: Params$Resource$Projects$Zones$Clusters$Locations, + callback: BodyResponseCallback): void; + locations(callback: BodyResponseCallback): void; locations( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Locations| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Locations; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Locations; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4686,26 +5877,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - logging(params?: any, options?: MethodOptions): - AxiosPromise; logging( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Logging, + options?: MethodOptions): AxiosPromise; logging( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Logging, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + logging( + params: Params$Resource$Projects$Zones$Clusters$Logging, + callback: BodyResponseCallback): void; + logging(callback: BodyResponseCallback): void; + logging( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Logging| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Logging; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Logging; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4809,26 +6013,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - master(params?: any, options?: MethodOptions): - AxiosPromise; master( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Master, + options?: MethodOptions): AxiosPromise; + master( + params: Params$Resource$Projects$Zones$Clusters$Master, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + master( + params: Params$Resource$Projects$Zones$Clusters$Master, + callback: BodyResponseCallback): void; + master(callback: BodyResponseCallback): void; master( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Master| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Master; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Master; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4932,26 +6149,39 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - monitoring(params?: any, options?: MethodOptions): - AxiosPromise; monitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Monitoring, + options?: MethodOptions): AxiosPromise; monitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Monitoring, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + monitoring( + params: Params$Resource$Projects$Zones$Clusters$Monitoring, + callback: BodyResponseCallback): void; + monitoring(callback: BodyResponseCallback): void; + monitoring( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Monitoring| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Monitoring; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Monitoring; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5056,26 +6286,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resourceLabels(params?: any, options?: MethodOptions): - AxiosPromise; resourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Resourcelabels, + options?: MethodOptions): AxiosPromise; + resourceLabels( + params: Params$Resource$Projects$Zones$Clusters$Resourcelabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resourceLabels( + params: Params$Resource$Projects$Zones$Clusters$Resourcelabels, + callback: BodyResponseCallback): void; + resourceLabels(callback: BodyResponseCallback): void; resourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Resourcelabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Resourcelabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Resourcelabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5179,26 +6423,42 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMaintenancePolicy(params?: any, options?: MethodOptions): - AxiosPromise; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy, + options?: MethodOptions): AxiosPromise; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMaintenancePolicy( + params: Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy, + callback: BodyResponseCallback): void; + setMaintenancePolicy(callback: BodyResponseCallback): + void; + setMaintenancePolicy( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5304,26 +6564,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMasterAuth(params?: any, options?: MethodOptions): - AxiosPromise; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Setmasterauth, + options?: MethodOptions): AxiosPromise; + setMasterAuth( + params: Params$Resource$Projects$Zones$Clusters$Setmasterauth, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Setmasterauth, + callback: BodyResponseCallback): void; + setMasterAuth(callback: BodyResponseCallback): void; + setMasterAuth( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Setmasterauth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Setmasterauth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Setmasterauth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5428,26 +6702,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNetworkPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy, + options?: MethodOptions): AxiosPromise; + setNetworkPolicy( + params: Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy, + callback: BodyResponseCallback): void; + setNetworkPolicy(callback: BodyResponseCallback): void; + setNetworkPolicy( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5552,26 +6840,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Startiprotation, + options?: MethodOptions): AxiosPromise; + startIpRotation( + params: Params$Resource$Projects$Zones$Clusters$Startiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Startiprotation, + callback: BodyResponseCallback): void; + startIpRotation(callback: BodyResponseCallback): void; + startIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Startiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Startiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Startiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5597,129 +6899,612 @@ export namespace container_v1 { /** - * container.projects.zones.clusters.update - * @desc Updates the settings of a specific cluster. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Google Container Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/container - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var container = google.container('v1'); - * - * authorize(function(authClient) { - * var request = { - * // The Google Developers Console [project ID or project - * // number](https://support.google.com/cloud/answer/6158840). - * projectId: 'my-project-id', // TODO: Update placeholder value. - * - * // The name of the Google Compute Engine - * // [zone](/compute/docs/zones#available) in which the cluster - * // resides. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * // The name of the cluster to upgrade. - * clusterId: 'my-cluster-id', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. All existing - * properties - * // will be replaced. - * }, - * - * auth: authClient, - * }; - * - * container.projects.zones.clusters.update(request, function(err, - * response) { if (err) { console.error(err); return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias container.projects.zones.clusters.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateClusterRequest} 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 + * container.projects.zones.clusters.update + * @desc Updates the settings of a specific cluster. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Google Container Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/container + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var container = google.container('v1'); + * + * authorize(function(authClient) { + * var request = { + * // The Google Developers Console [project ID or project + * // number](https://support.google.com/cloud/answer/6158840). + * projectId: 'my-project-id', // TODO: Update placeholder value. + * + * // The name of the Google Compute Engine + * // [zone](/compute/docs/zones#available) in which the cluster + * // resides. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * // The name of the cluster to upgrade. + * clusterId: 'my-cluster-id', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. All existing + * properties + * // will be replaced. + * }, + * + * auth: authClient, + * }; + * + * container.projects.zones.clusters.update(request, function(err, + * response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias container.projects.zones.clusters.update + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().UpdateClusterRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + update( + params?: Params$Resource$Projects$Zones$Clusters$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Zones$Clusters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Zones$Clusters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Zones$Clusters$Addons { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetAddonsConfigRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Completeiprotation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CompleteIPRotationRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateClusterRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to delete. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to delete. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to retrieve. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Legacyabac { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLegacyAbacRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides, or + * "-" for all zones. This field has been deprecated and replaced by the + * parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Locations { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLocationsRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Logging { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLoggingServiceRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Master { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateMasterRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Monitoring { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMonitoringServiceRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Resourcelabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLabelsRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the cluster to update. + */ + clusterId?: string; + /** + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + */ + projectId?: string; + /** + * The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMaintenancePolicyRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Setmasterauth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMasterAuthRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNetworkPolicyRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Startiprotation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$StartIPRotationRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + resource?: Schema$UpdateClusterRequest; } + export class Resource$Projects$Zones$Clusters$Nodepools { root: Container; constructor(root: Container) { @@ -5815,26 +7600,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - autoscaling(params?: any, options?: MethodOptions): - AxiosPromise; autoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling, + options?: MethodOptions): AxiosPromise; + autoscaling( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; autoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling, + callback: BodyResponseCallback): void; + autoscaling(callback: BodyResponseCallback): void; + autoscaling( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5939,26 +7739,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -6063,26 +7877,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -6187,23 +8015,35 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Zones$Clusters$Nodepools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Zones$Clusters$Nodepools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -6304,28 +8144,41 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -6398,7 +8251,149 @@ export namespace container_v1 { * auth: authClient, * }; * - * container.projects.zones.clusters.nodePools.rollback(request, + * container.projects.zones.clusters.nodePools.rollback(request, + * function(err, response) { if (err) { console.error(err); return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias container.projects.zones.clusters.nodePools.rollback + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field. + * @param {string} params.nodePoolId Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().RollbackNodePoolUpgradeRequest} 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 + */ + rollback( + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rollback( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; + rollback( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.nodePools.setManagement + * @desc Sets the NodeManagement options for a node pool. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Google Container Engine API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/container + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var container = google.container('v1'); + * + * authorize(function(authClient) { + * var request = { + * // The Google Developers Console [project ID or project + * // number](https://support.google.com/cloud/answer/6158840). + * projectId: 'my-project-id', // TODO: Update placeholder value. + * + * // The name of the Google Compute Engine + * // [zone](/compute/docs/zones#available) in which the cluster + * // resides. + * zone: 'my-zone', // TODO: Update placeholder value. + * + * // The name of the cluster to update. + * clusterId: 'my-cluster-id', // TODO: Update placeholder value. + * + * // The name of the node pool to update. + * nodePoolId: 'my-node-pool-id', // TODO: Update placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * + * auth: authClient, + * }; + * + * container.projects.zones.clusters.nodePools.setManagement(request, * function(err, response) { if (err) { console.error(err); return; * } * @@ -6421,46 +8416,62 @@ export namespace container_v1 { * callback(authClient); * }); * } - * @alias container.projects.zones.clusters.nodePools.rollback + * @alias container.projects.zones.clusters.nodePools.setManagement * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to rollback. This field has been deprecated and replaced by the name field. - * @param {string} params.nodePoolId Deprecated. The name of the node pool to rollback. This field has been deprecated and replaced by the name field. + * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. + * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {().SetNodePoolManagementRequest} 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 */ - rollback(params?: any, options?: MethodOptions): - AxiosPromise; - rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setManagement( + params?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement, + options?: MethodOptions): AxiosPromise; + setManagement( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setManagement( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement, + callback: BodyResponseCallback): void; + setManagement(callback: BodyResponseCallback): void; + setManagement( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback') + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -6479,8 +8490,8 @@ export namespace container_v1 { /** - * container.projects.zones.clusters.nodePools.setManagement - * @desc Sets the NodeManagement options for a node pool. + * container.projects.zones.clusters.nodePools.setSize + * @desc Sets the size of a specific node pool. * @example * * // BEFORE RUNNING: * // --------------- @@ -6525,7 +8536,7 @@ export namespace container_v1 { * auth: authClient, * }; * - * container.projects.zones.clusters.nodePools.setManagement(request, + * container.projects.zones.clusters.nodePools.setSize(request, * function(err, response) { if (err) { console.error(err); return; * } * @@ -6548,7 +8559,7 @@ export namespace container_v1 { * callback(authClient); * }); * } - * @alias container.projects.zones.clusters.nodePools.setManagement + * @alias container.projects.zones.clusters.nodePools.setSize * @memberOf! () * * @param {object} params Parameters for request @@ -6556,38 +8567,53 @@ export namespace container_v1 { * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {().SetNodePoolSizeRequest} 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 */ - setManagement(params?: any, options?: MethodOptions): - AxiosPromise; - setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setSize( + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize, + options?: MethodOptions): AxiosPromise; + setSize( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSize( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize, + callback: BodyResponseCallback): void; + setSize(callback: BodyResponseCallback): void; + setSize( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement') + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -6606,8 +8632,8 @@ export namespace container_v1 { /** - * container.projects.zones.clusters.nodePools.setSize - * @desc Sets the size of a specific node pool. + * container.projects.zones.clusters.nodePools.update + * @desc Updates the version and/or image type of a specific node pool. * @example * * // BEFORE RUNNING: * // --------------- @@ -6639,10 +8665,10 @@ export namespace container_v1 { * // resides. * zone: 'my-zone', // TODO: Update placeholder value. * - * // The name of the cluster to update. + * // The name of the cluster to upgrade. * clusterId: 'my-cluster-id', // TODO: Update placeholder value. * - * // The name of the node pool to update. + * // The name of the node pool to upgrade. * nodePoolId: 'my-node-pool-id', // TODO: Update placeholder value. * * resource: { @@ -6652,7 +8678,7 @@ export namespace container_v1 { * auth: authClient, * }; * - * container.projects.zones.clusters.nodePools.setSize(request, + * container.projects.zones.clusters.nodePools.update(request, * function(err, response) { if (err) { console.error(err); return; * } * @@ -6675,191 +8701,372 @@ export namespace container_v1 { * callback(authClient); * }); * } - * @alias container.projects.zones.clusters.nodePools.setSize + * @alias container.projects.zones.clusters.nodePools.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. - * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. + * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. + * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {().UpdateNodePoolRequest} 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 */ - setSize(params?: any, options?: MethodOptions): - AxiosPromise; - setSize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setSize( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + update( + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to upgrade. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolAutoscalingRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the parent field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateNodePoolRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool to delete. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool. This field has been deprecated and + * replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the parent field. + */ + clusterId?: string; + /** + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to rollback. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to rollback. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackNodePoolUpgradeRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to update. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolManagementRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to update. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolSizeRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.clusters.nodePools.update - * @desc Updates the version and/or image type of a specific node pool. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Google Container Engine API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/container - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var container = google.container('v1'); - * - * authorize(function(authClient) { - * var request = { - * // The Google Developers Console [project ID or project - * // number](https://support.google.com/cloud/answer/6158840). - * projectId: 'my-project-id', // TODO: Update placeholder value. - * - * // The name of the Google Compute Engine - * // [zone](/compute/docs/zones#available) in which the cluster - * // resides. - * zone: 'my-zone', // TODO: Update placeholder value. - * - * // The name of the cluster to upgrade. - * clusterId: 'my-cluster-id', // TODO: Update placeholder value. - * - * // The name of the node pool to upgrade. - * nodePoolId: 'my-node-pool-id', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * container.projects.zones.clusters.nodePools.update(request, - * function(err, response) { if (err) { console.error(err); return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias container.projects.zones.clusters.nodePools.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. - * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateNodePoolRequest} 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 + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + clusterId?: string; + /** + * Deprecated. The name of the node pool to upgrade. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateNodePoolRequest; } + export class Resource$Projects$Zones$Operations { root: Container; constructor(root: Container) { @@ -6949,25 +9156,38 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Operations$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Zones$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Zones$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -7067,23 +9287,35 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Zones$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Zones$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Zones$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Zones$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -7179,28 +9411,40 @@ export namespace container_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Zones$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Zones$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Zones$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Zones$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -7223,4 +9467,88 @@ export namespace container_v1 { } } } + + export interface Params$Resource$Projects$Zones$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The server-assigned `name` of the operation. This field has + * been deprecated and replaced by the name field. + */ + operationId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the operation resides. + * This field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Zones$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/x/locations/x/operations/x'. + */ + name?: string; + /** + * Deprecated. The server-assigned `name` of the operation. This field has + * been deprecated and replaced by the name field. + */ + operationId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or `-` + * for all zones. This field has been deprecated and replaced by the parent + * field. + */ + zone?: string; + } } diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index 56806eebd62..948b04df032 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace container_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Kubernetes Engine API * @@ -74,12 +77,12 @@ export namespace container_v1beta1 { /** * The number of the accelerator cards exposed to an instance. */ - acceleratorCount: string; + acceleratorCount?: string; /** * The accelerator type resource name. List of supported accelerators * [here](/compute/docs/gpus/#Introduction) */ - acceleratorType: string; + acceleratorType?: string; } /** * Configuration for the addons that can be automatically spun up in the @@ -91,22 +94,22 @@ export namespace container_v1beta1 { * or decreases the number of replica pods a replication controller has * based on the resource usage of the existing pods. */ - horizontalPodAutoscaling: Schema$HorizontalPodAutoscaling; + horizontalPodAutoscaling?: Schema$HorizontalPodAutoscaling; /** * Configuration for the HTTP (L7) load balancing controller addon, which * makes it easy to set up HTTP load balancers for services in a cluster. */ - httpLoadBalancing: Schema$HttpLoadBalancing; + httpLoadBalancing?: Schema$HttpLoadBalancing; /** * Configuration for the Kubernetes Dashboard. */ - kubernetesDashboard: Schema$KubernetesDashboard; + kubernetesDashboard?: Schema$KubernetesDashboard; /** * Configuration for NetworkPolicy. This only tracks whether the addon is * enabled or not on the Master, it does not track whether network policy is * enabled for the nodes. */ - networkPolicyConfig: Schema$NetworkPolicyConfig; + networkPolicyConfig?: Schema$NetworkPolicyConfig; } /** * AutoUpgradeOptions defines the set of options for the user to control how @@ -118,12 +121,12 @@ export namespace container_v1beta1 { * the approximate start time for the upgrades, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - autoUpgradeStartTime: string; + autoUpgradeStartTime?: string; /** * [Output only] This field is set when upgrades are about to commence with * the description of the upgrade. */ - description: string; + description?: string; } /** * CancelOperationRequest cancels a single operation. @@ -133,24 +136,24 @@ export namespace container_v1beta1 { * The name (project, location, operation id) of the operation to cancel. * Specified in the format 'projects/x/locations/x/operations/*'. */ - name: string; + name?: string; /** * Deprecated. The server-assigned `name` of the operation. This field has * been deprecated and replaced by the name field. */ - operationId: string; + operationId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation resides. * This field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * CidrBlock contains an optional name and one CIDR block. @@ -159,11 +162,11 @@ export namespace container_v1beta1 { /** * cidr_block must be specified in CIDR notation. */ - cidrBlock: string; + cidrBlock?: string; /** * display_name is an optional field for users to identify CIDR blocks. */ - displayName: string; + displayName?: string; } /** * Configuration for client certificates on the cluster. @@ -172,7 +175,7 @@ export namespace container_v1beta1 { /** * Issue a client certificate. */ - issueClientCertificate: boolean; + issueClientCertificate?: boolean; } /** * A Google Kubernetes Engine cluster. @@ -181,38 +184,38 @@ export namespace container_v1beta1 { /** * Configurations for the various addons available to run in the cluster. */ - addonsConfig: Schema$AddonsConfig; + addonsConfig?: Schema$AddonsConfig; /** * The IP address range of the container pods in this cluster, in * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) * notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically * chosen or specify a `/14` block in `10.0.0.0/8`. */ - clusterIpv4Cidr: string; + clusterIpv4Cidr?: string; /** * [Output only] The time the cluster was created, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - createTime: string; + createTime?: string; /** * [Output only] The current software version of the master endpoint. */ - currentMasterVersion: string; + currentMasterVersion?: string; /** * [Output only] The number of nodes currently in the cluster. */ - currentNodeCount: number; + currentNodeCount?: number; /** * [Output only] The current version of the node software components. If * they are currently at multiple versions because they're in the * process of being upgraded, this reflects the minimum version of all * nodes. */ - currentNodeVersion: string; + currentNodeVersion?: string; /** * An optional description of this cluster. */ - description: string; + description?: string; /** * Kubernetes alpha features are enabled on this cluster. This includes * alpha API groups (e.g. v1beta1) and features that may not be production @@ -220,19 +223,19 @@ export namespace container_v1beta1 { * no SLA for uptime and master/node upgrades are disabled. Alpha enabled * clusters are automatically deleted thirty days after creation. */ - enableKubernetesAlpha: boolean; + enableKubernetesAlpha?: boolean; /** * [Output only] The IP address of this cluster's master endpoint. The * endpoint can be accessed from the internet at * `https://username:password@endpoint/`. See the `masterAuth` property of * this resource for username and password information. */ - endpoint: string; + endpoint?: string; /** * [Output only] The time the cluster will be automatically deleted in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - expireTime: string; + expireTime?: string; /** * The initial Kubernetes version for this cluster. Valid versions are * those found in validMasterVersions returned by getServerConfig. The @@ -246,7 +249,7 @@ export namespace container_v1beta1 { * picks an explicit Kubernetes version - "","-": picks * the default Kubernetes version */ - initialClusterVersion: string; + initialClusterVersion?: string; /** * The number of nodes to create in this cluster. You must ensure that your * Compute Engine <a @@ -258,61 +261,61 @@ export namespace container_v1beta1 { * create a "NodePool" object with an auto-generated name. Do not * use this and a node_pool at the same time. */ - initialNodeCount: number; + initialNodeCount?: number; /** * Deprecated. Use node_pools.instance_group_urls. */ - instanceGroupUrls: string[]; + instanceGroupUrls?: string[]; /** * Configuration for cluster IP allocation. */ - ipAllocationPolicy: Schema$IPAllocationPolicy; + ipAllocationPolicy?: Schema$IPAllocationPolicy; /** * The fingerprint of the set of labels for this cluster. */ - labelFingerprint: string; + labelFingerprint?: string; /** * Configuration for the legacy ABAC authorization mode. */ - legacyAbac: Schema$LegacyAbac; + legacyAbac?: Schema$LegacyAbac; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/regions-zones/regions-zones#available) or * [region](/compute/docs/regions-zones/regions-zones#available) in which * the cluster resides. */ - location: string; + location?: string; /** * The list of Google Compute Engine * [locations](/compute/docs/zones#available) in which the cluster's * nodes should be located. */ - locations: string[]; + locations?: string[]; /** * The logging service the cluster should use to write logs. Currently * available options: * `logging.googleapis.com` - the Google Cloud Logging * service. * `none` - no logs will be exported from the cluster. * if left * as an empty string,`logging.googleapis.com` will be used. */ - loggingService: string; + loggingService?: string; /** * Configure the maintenance policy for this cluster. */ - maintenancePolicy: Schema$MaintenancePolicy; + maintenancePolicy?: Schema$MaintenancePolicy; /** * The authentication information for accessing the master endpoint. */ - masterAuth: Schema$MasterAuth; + masterAuth?: Schema$MasterAuth; /** * The configuration options for master authorized networks feature. */ - masterAuthorizedNetworksConfig: Schema$MasterAuthorizedNetworksConfig; + masterAuthorizedNetworksConfig?: Schema$MasterAuthorizedNetworksConfig; /** * The IP prefix in CIDR notation to use for the hosted master network. This * prefix will be used for assigning private IP addresses to the master or * set of masters, as well as the ILB VIP. */ - masterIpv4CidrBlock: string; + masterIpv4CidrBlock?: string; /** * The monitoring service the cluster should use to write metrics. Currently * available options: * `monitoring.googleapis.com` - the Google Cloud @@ -320,29 +323,29 @@ export namespace container_v1beta1 { * cluster. * if left as an empty string, `monitoring.googleapis.com` will * be used. */ - monitoringService: string; + monitoringService?: string; /** * The name of this cluster. The name must be unique within this project and * zone, and can be up to 40 characters with the following restrictions: * * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * * Must end with a number or a letter. */ - name: string; + name?: string; /** * The name of the Google Compute Engine * [network](/compute/docs/networks-and-firewalls#networks) to which the * cluster is connected. If left unspecified, the `default` network will be * used. On output this shows the network ID instead of the name. */ - network: string; + network?: string; /** * Configuration for cluster networking. */ - networkConfig: Schema$NetworkConfig; + networkConfig?: Schema$NetworkConfig; /** * Configuration options for the NetworkPolicy feature. */ - networkPolicy: Schema$NetworkPolicy; + networkPolicy?: Schema$NetworkPolicy; /** * Parameters used in creating the cluster's nodes. See `nodeConfig` for * the description of its properties. For requests, this field should only @@ -353,38 +356,38 @@ export namespace container_v1beta1 { * field will be populated with the node configuration of the first node * pool. If unspecified, the defaults are used. */ - nodeConfig: Schema$NodeConfig; + nodeConfig?: Schema$NodeConfig; /** * [Output only] The size of the address space on each node for hosting * containers. This is provisioned from within the `container_ipv4_cidr` * range. */ - nodeIpv4CidrSize: number; + nodeIpv4CidrSize?: number; /** * The node pools associated with this cluster. This field should not be set * if "node_config" or "initial_node_count" are * specified. */ - nodePools: Schema$NodePool[]; + nodePools?: Schema$NodePool[]; /** * Configuration for the PodSecurityPolicy feature. */ - podSecurityPolicyConfig: Schema$PodSecurityPolicyConfig; + podSecurityPolicyConfig?: Schema$PodSecurityPolicyConfig; /** * If this is a private cluster setup. Private clusters are clusters that, * by default have no external IP addresses on the nodes and where nodes and * the master communicate over private IP addresses. */ - privateCluster: boolean; + privateCluster?: boolean; /** * The resource labels for the cluster to use to annotate any related Google * Compute Engine resources. */ - resourceLabels: any; + resourceLabels?: any; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] The IP address range of the Kubernetes services in this * cluster, in @@ -392,28 +395,28 @@ export namespace container_v1beta1 { * notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the * last `/16` from the container CIDR. */ - servicesIpv4Cidr: string; + servicesIpv4Cidr?: string; /** * [Output only] The current status of this cluster. */ - status: string; + status?: string; /** * [Output only] Additional information about the current status of this * cluster, if available. */ - statusMessage: string; + statusMessage?: string; /** * The name of the Google Compute Engine * [subnetwork](/compute/docs/subnetworks) to which the cluster is * connected. On output this shows the subnetwork ID instead of the name. */ - subnetwork: string; + subnetwork?: string; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field is deprecated, use location instead. */ - zone: string; + zone?: string; } /** * ClusterUpdate describes an update to the cluster. Exactly one update can be @@ -424,12 +427,12 @@ export namespace container_v1beta1 { /** * Configurations for the various addons available to run in the cluster. */ - desiredAddonsConfig: Schema$AddonsConfig; + desiredAddonsConfig?: Schema$AddonsConfig; /** * The desired image type for the node pool. NOTE: Set the * "desired_node_pool" field as well. */ - desiredImageType: string; + desiredImageType?: string; /** * The desired list of Google Compute Engine * [locations](/compute/docs/zones#available) in which the cluster's @@ -438,11 +441,11 @@ export namespace container_v1beta1 { * depending on whether locations are being added or removed. This list * must always include the cluster's primary zone. */ - desiredLocations: string[]; + desiredLocations?: string[]; /** * The desired configuration options for master authorized networks feature. */ - desiredMasterAuthorizedNetworksConfig: + desiredMasterAuthorizedNetworksConfig?: Schema$MasterAuthorizedNetworksConfig; /** * The Kubernetes version to change the master to. The only valid value is @@ -454,28 +457,28 @@ export namespace container_v1beta1 { * in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit * Kubernetes version - "-": picks the default Kubernetes version */ - desiredMasterVersion: string; + desiredMasterVersion?: string; /** * The monitoring service the cluster should use to write metrics. Currently * available options: * "monitoring.googleapis.com" - the Google * Cloud Monitoring service * "none" - no metrics will be exported * from the cluster */ - desiredMonitoringService: string; + desiredMonitoringService?: string; /** * Autoscaler configuration for the node pool specified in * desired_node_pool_id. If there is only one pool in the cluster and * desired_node_pool_id is not provided then the change applies to that * single node pool. */ - desiredNodePoolAutoscaling: Schema$NodePoolAutoscaling; + desiredNodePoolAutoscaling?: Schema$NodePoolAutoscaling; /** * The node pool to be upgraded. This field is mandatory if * "desired_node_version", "desired_image_family" or * "desired_node_pool_autoscaling" is specified and there is more * than one node pool on the cluster. */ - desiredNodePoolId: string; + desiredNodePoolId?: string; /** * The Kubernetes version to change the nodes to (typically an upgrade). * Users may specify either explicit versions offered by Kubernetes Engine @@ -486,11 +489,11 @@ export namespace container_v1beta1 { * the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes * version - "-": picks the Kubernetes master version */ - desiredNodeVersion: string; + desiredNodeVersion?: string; /** * The desired configuration options for the PodSecurityPolicy feature. */ - desiredPodSecurityPolicyConfig: Schema$PodSecurityPolicyConfig; + desiredPodSecurityPolicyConfig?: Schema$PodSecurityPolicyConfig; } /** * CompleteIPRotationRequest moves the cluster master back into single-IP @@ -501,25 +504,25 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster id) of the cluster to complete IP * rotation. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * CreateClusterRequest creates a cluster. @@ -529,24 +532,24 @@ export namespace container_v1beta1 { * A [cluster * resource](/container-engine/reference/rest/v1beta1/projects.zones.clusters) */ - cluster: Schema$Cluster; + cluster?: Schema$Cluster; /** * The parent (project and location) where the cluster will be created. * Specified in the format 'projects/x/locations/*'. */ - parent: string; + parent?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the parent field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the parent field. */ - zone: string; + zone?: string; } /** * CreateNodePoolRequest creates a node pool for a cluster. @@ -556,29 +559,29 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the parent field. */ - clusterId: string; + clusterId?: string; /** * The node pool to create. */ - nodePool: Schema$NodePool; + nodePool?: Schema$NodePool; /** * The parent (project, location, cluster id) where the node pool will be * created. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - parent: string; + parent?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the parent field. */ - zone: string; + zone?: string; } /** * Time window specified for daily maintenance operations. @@ -588,13 +591,13 @@ export namespace container_v1beta1 { * [Output only] Duration of the time window, automatically chosen to be * smallest possible in the given scenario. */ - duration: string; + duration?: string; /** * Time within the maintenance window to start the maintenance operations. * It must be in format "HH:MM”, where HH : [00-23] and MM : [00-59] * GMT. */ - startTime: string; + startTime?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -615,7 +618,7 @@ export namespace container_v1beta1 { * When enabled, it ensures that a Heapster pod is running in the cluster, * which is also used by the Cloud Monitoring service. */ - disabled: boolean; + disabled?: boolean; } /** * Configuration options for the HTTP (L7) load balancing controller addon, @@ -628,7 +631,7 @@ export namespace container_v1beta1 { * When enabled, it runs a small pod in the cluster that manages the load * balancers. */ - disabled: boolean; + disabled?: boolean; } /** * Configuration for controlling how IPs are allocated in the cluster. @@ -646,11 +649,11 @@ export namespace container_v1beta1 { * fully-specified. 2) When `use_ip_aliases` is false, * `cluster.cluster_ipv4_cidr` muse be fully-specified. */ - allowRouteOverlap: boolean; + allowRouteOverlap?: boolean; /** * This field is deprecated, use cluster_ipv4_cidr_block. */ - clusterIpv4Cidr: string; + clusterIpv4Cidr?: string; /** * The IP address range for the cluster pod IPs. If this field is set, then * `cluster.cluster_ipv4_cidr` must be left blank. This field is only @@ -662,7 +665,7 @@ export namespace container_v1beta1 { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. */ - clusterIpv4CidrBlock: string; + clusterIpv4CidrBlock?: string; /** * The name of the secondary range to be used for the cluster CIDR block. * The secondary range will be used for pod IP addresses. This must be an @@ -670,16 +673,16 @@ export namespace container_v1beta1 { * field is only applicable with use_ip_aliases and create_subnetwork is * false. */ - clusterSecondaryRangeName: string; + clusterSecondaryRangeName?: string; /** * Whether a new subnetwork will be created automatically for the cluster. * This field is only applicable when `use_ip_aliases` is true. */ - createSubnetwork: boolean; + createSubnetwork?: boolean; /** * This field is deprecated, use node_ipv4_cidr_block. */ - nodeIpv4Cidr: string; + nodeIpv4Cidr?: string; /** * The IP address range of the instance IPs in this cluster. This is * applicable only if `create_subnetwork` is true. Set to blank to have a @@ -690,11 +693,11 @@ export namespace container_v1beta1 { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. */ - nodeIpv4CidrBlock: string; + nodeIpv4CidrBlock?: string; /** * This field is deprecated, use services_ipv4_cidr_block. */ - servicesIpv4Cidr: string; + servicesIpv4Cidr?: string; /** * The IP address range of the services IPs in this cluster. If blank, a * range will be automatically chosen with the default size. This field is @@ -706,7 +709,7 @@ export namespace container_v1beta1 { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. */ - servicesIpv4CidrBlock: string; + servicesIpv4CidrBlock?: string; /** * The name of the secondary range to be used as for the services CIDR * block. The secondary range will be used for service ClusterIPs. This @@ -714,17 +717,17 @@ export namespace container_v1beta1 { * subnetwork. This field is only applicable with use_ip_aliases and * create_subnetwork is false. */ - servicesSecondaryRangeName: string; + servicesSecondaryRangeName?: string; /** * A custom subnetwork name to be used if `create_subnetwork` is true. If * this field is empty, then an automatic name will be chosen for the new * subnetwork. */ - subnetworkName: string; + subnetworkName?: string; /** * Whether alias IPs will be used for pod IPs in the cluster. */ - useIpAliases: boolean; + useIpAliases?: boolean; } /** * Configuration for the Kubernetes Dashboard. @@ -733,7 +736,7 @@ export namespace container_v1beta1 { /** * Whether the Kubernetes Dashboard is enabled for this cluster. */ - disabled: boolean; + disabled?: boolean; } /** * Configuration for the legacy Attribute Based Access Control authorization @@ -746,7 +749,7 @@ export namespace container_v1beta1 { * controllers, will have statically granted permissions beyond those * provided by the RBAC configuration or IAM. */ - enabled: boolean; + enabled?: boolean; } /** * ListClustersResponse is the result of ListClustersRequest. @@ -756,12 +759,12 @@ export namespace container_v1beta1 { * A list of clusters in the project in the specified zone, or across all * ones. */ - clusters: Schema$Cluster[]; + clusters?: Schema$Cluster[]; /** * If any zones are listed here, the list of clusters returned may be * missing those zones. */ - missingZones: string[]; + missingZones?: string[]; } /** * ListNodePoolsResponse is the result of ListNodePoolsRequest. @@ -770,7 +773,7 @@ export namespace container_v1beta1 { /** * A list of node pools for a cluster. */ - nodePools: Schema$NodePool[]; + nodePools?: Schema$NodePool[]; } /** * ListOperationsResponse is the result of ListOperationsRequest. @@ -780,11 +783,11 @@ export namespace container_v1beta1 { * If any zones are listed here, the list of operations returned may be * missing the operations from those zones. */ - missingZones: string[]; + missingZones?: string[]; /** * A list of operations in the project in the specified zone. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * ListUsableSubnetworksResponse is the response of @@ -797,11 +800,11 @@ export namespace container_v1beta1 { * `next_page_token` as a value for the query parameter `page_token` in the * next request. The value will become empty when there are no more pages. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of usable subnetworks in the specified network project. */ - subnetworks: Schema$UsableSubnetwork[]; + subnetworks?: Schema$UsableSubnetwork[]; } /** * MaintenancePolicy defines the maintenance policy to be used for the @@ -811,7 +814,7 @@ export namespace container_v1beta1 { /** * Specifies the maintenance window in which maintenance may be performed. */ - window: Schema$MaintenanceWindow; + window?: Schema$MaintenanceWindow; } /** * MaintenanceWindow defines the maintenance window to be used for the @@ -821,7 +824,7 @@ export namespace container_v1beta1 { /** * DailyMaintenanceWindow specifies a daily maintenance operation window. */ - dailyMaintenanceWindow: Schema$DailyMaintenanceWindow; + dailyMaintenanceWindow?: Schema$DailyMaintenanceWindow; } /** * The authentication information for accessing the master endpoint. @@ -833,35 +836,35 @@ export namespace container_v1beta1 { * [Output only] Base64-encoded public certificate used by clients to * authenticate to the cluster endpoint. */ - clientCertificate: string; + clientCertificate?: string; /** * Configuration for client certificate authentication on the cluster. If * no configuration is specified, a client certificate is issued. */ - clientCertificateConfig: Schema$ClientCertificateConfig; + clientCertificateConfig?: Schema$ClientCertificateConfig; /** * [Output only] Base64-encoded private key used by clients to authenticate * to the cluster endpoint. */ - clientKey: string; + clientKey?: string; /** * [Output only] Base64-encoded public certificate that is the root of trust * for the cluster. */ - clusterCaCertificate: string; + clusterCaCertificate?: string; /** * The password to use for HTTP basic authentication to the master endpoint. * Because the master endpoint is open to the Internet, you should create a * strong password. If a password is provided for cluster creation, * username must be non-empty. */ - password: string; + password?: string; /** * The username to use for HTTP basic authentication to the master endpoint. * For clusters v1.6.0 and later, you can disable basic authentication by * providing an empty username. */ - username: string; + username?: string; } /** * Configuration options for the master authorized networks feature. Enabled @@ -874,11 +877,11 @@ export namespace container_v1beta1 { * cidr_blocks define up to 10 external networks that could access * Kubernetes master through HTTPS. */ - cidrBlocks: Schema$CidrBlock[]; + cidrBlocks?: Schema$CidrBlock[]; /** * Whether or not master authorized networks is enabled. */ - enabled: boolean; + enabled?: boolean; } /** * NetworkConfig reports the relative names of network & subnetwork. @@ -889,13 +892,13 @@ export namespace container_v1beta1 { * network(/compute/docs/networks-and-firewalls#networks). Example: * projects/my-project/global/networks/my-network */ - network: string; + network?: string; /** * Output only. The name of the Google Compute Engine * [subnetwork](/compute/docs/vpc). Example: * projects/my-project/regions/us-central1/subnetworks/my-subnet */ - subnetwork: string; + subnetwork?: string; } /** * Configuration options for the NetworkPolicy feature. @@ -905,11 +908,11 @@ export namespace container_v1beta1 { /** * Whether network policy is enabled on the cluster. */ - enabled: boolean; + enabled?: boolean; /** * The selected network policy provider. */ - provider: string; + provider?: string; } /** * Configuration for NetworkPolicy. This only tracks whether the addon is @@ -920,7 +923,7 @@ export namespace container_v1beta1 { /** * Whether NetworkPolicy is enabled for this cluster. */ - disabled: boolean; + disabled?: boolean; } /** * Parameters that describe the nodes in a cluster. @@ -931,18 +934,18 @@ export namespace container_v1beta1 { * https://cloud.google.com/compute/docs/gpus for more information about * support for GPUs. */ - accelerators: Schema$AcceleratorConfig[]; + accelerators?: Schema$AcceleratorConfig[]; /** * Size of the disk attached to each node, specified in GB. The smallest * allowed disk size is 10GB. If unspecified, the default disk size is * 100GB. */ - diskSizeGb: number; + diskSizeGb?: number; /** * The image type to use for this node. Note that for a given image type, * the latest version of it will be used. */ - imageType: string; + imageType?: string; /** * The map of Kubernetes labels (key/value pairs) to be applied to each * node. These will added in addition to any default label(s) that @@ -952,7 +955,7 @@ export namespace container_v1beta1 { * For more information, including usage and the valid values, see: * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ */ - labels: any; + labels?: any; /** * The number of local SSD disks to be attached to the node. The limit for * this value is dependant upon the maximum number of disks available on a @@ -960,13 +963,13 @@ export namespace container_v1beta1 { * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits * for more information. */ - localSsdCount: number; + localSsdCount?: number; /** * The name of a Google Compute Engine [machine * type](/compute/docs/machine-types) (e.g. `n1-standard-1`). If * unspecified, the default machine type is `n1-standard-1`. */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs assigned to instances in the cluster. Keys * must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in @@ -983,7 +986,7 @@ export namespace container_v1beta1 { * size must be less than or equal to 32 KB. The total size of all keys and * values must be less than 512 KB. */ - metadata: any; + metadata?: any; /** * Minimum CPU platform to be used by this instance. The instance may be * scheduled on the specified or newer CPU platform. Applicable values are @@ -994,7 +997,7 @@ export namespace container_v1beta1 { * min CPU * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * The set of Google API scopes to be made available on all of the node VMs * under the "default" service account. The following scopes are @@ -1007,36 +1010,36 @@ export namespace container_v1beta1 { * unless Cloud Logging or Cloud Monitoring are enabled, in which case their * required scopes will be added. */ - oauthScopes: string[]; + oauthScopes?: string[]; /** * Whether the nodes are created as preemptible VM instances. See: * https://cloud.google.com/compute/docs/instances/preemptible for more * inforamtion about preemptible VM instances. */ - preemptible: boolean; + preemptible?: boolean; /** * The Google Cloud Platform Service Account to be used by the node VMs. If * no Service Account is specified, the "default" service account * is used. */ - serviceAccount: string; + serviceAccount?: string; /** * The list of instance tags applied to all nodes. Tags are used to identify * valid sources or targets for network firewalls and are specified by the * client during cluster or node pool creation. Each tag within the list * must comply with RFC1035. */ - tags: string[]; + tags?: string[]; /** * List of kubernetes taints to be applied to each node. For more * information, including usage and the valid values, see: * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ */ - taints: Schema$NodeTaint[]; + taints?: Schema$NodeTaint[]; /** * The workload metadata configuration for this node. */ - workloadMetadataConfig: Schema$WorkloadMetadataConfig; + workloadMetadataConfig?: Schema$WorkloadMetadataConfig; } /** * NodeManagement defines the set of node management services turned on for @@ -1046,15 +1049,15 @@ export namespace container_v1beta1 { /** * Whether the nodes will be automatically repaired. */ - autoRepair: boolean; + autoRepair?: boolean; /** * Whether the nodes will be automatically upgraded. */ - autoUpgrade: boolean; + autoUpgrade?: boolean; /** * Specifies the Auto Upgrade knobs for the node pool. */ - upgradeOptions: Schema$AutoUpgradeOptions; + upgradeOptions?: Schema$AutoUpgradeOptions; } /** * NodePool contains the name and configuration for a cluster's node pool. @@ -1069,49 +1072,49 @@ export namespace container_v1beta1 { * Autoscaler configuration for this NodePool. Autoscaler is enabled only if * a valid configuration is present. */ - autoscaling: Schema$NodePoolAutoscaling; + autoscaling?: Schema$NodePoolAutoscaling; /** * The node configuration of the pool. */ - config: Schema$NodeConfig; + config?: Schema$NodeConfig; /** * The initial node count for the pool. You must ensure that your Compute * Engine <a href="/compute/docs/resource-quotas">resource * quota</a> is sufficient for this number of instances. You must also * have available firewall and routes quota. */ - initialNodeCount: number; + initialNodeCount?: number; /** * [Output only] The resource URLs of the [managed instance * groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) * associated with this node pool. */ - instanceGroupUrls: string[]; + instanceGroupUrls?: string[]; /** * NodeManagement configuration for this NodePool. */ - management: Schema$NodeManagement; + management?: Schema$NodeManagement; /** * The name of the node pool. */ - name: string; + name?: string; /** * [Output only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] The status of the nodes in this pool instance. */ - status: string; + status?: string; /** * [Output only] Additional information about the current status of this * node pool instance, if available. */ - statusMessage: string; + statusMessage?: string; /** * The version of the Kubernetes of this node. */ - version: string; + version?: string; } /** * NodePoolAutoscaling contains information required by cluster autoscaler to @@ -1121,17 +1124,17 @@ export namespace container_v1beta1 { /** * Is autoscaling enabled for this node pool. */ - enabled: boolean; + enabled?: boolean; /** * Maximum number of nodes in the NodePool. Must be >= min_node_count. * There has to enough quota to scale up the cluster. */ - maxNodeCount: number; + maxNodeCount?: number; /** * Minimum number of nodes in the NodePool. Must be >= 1 and <= * max_node_count. */ - minNodeCount: number; + minNodeCount?: number; } /** * Kubernetes taint is comprised of three fields: key, value, and effect. @@ -1144,15 +1147,15 @@ export namespace container_v1beta1 { /** * Effect for taint. */ - effect: string; + effect?: string; /** * Key for taint. */ - key: string; + key?: string; /** * Value for taint. */ - value: string; + value?: string; } /** * This operation resource represents operations that may have happened or are @@ -1162,54 +1165,54 @@ export namespace container_v1beta1 { /** * Detailed operation progress, if available. */ - detail: string; + detail?: string; /** * [Output only] The time the operation completed, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - endTime: string; + endTime?: string; /** * [Output only] The name of the Google Compute Engine * [zone](/compute/docs/regions-zones/regions-zones#available) or * [region](/compute/docs/regions-zones/regions-zones#available) in which * the cluster resides. */ - location: string; + location?: string; /** * The server-assigned ID for the operation. */ - name: string; + name?: string; /** * The operation type. */ - operationType: string; + operationType?: string; /** * Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output only] The time the operation started, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ - startTime: string; + startTime?: string; /** * The current status of the operation. */ - status: string; + status?: string; /** * If an error has occurred, a textual description of the error. */ - statusMessage: string; + statusMessage?: string; /** * Server-defined URL for the target of the operation. */ - targetLink: string; + targetLink?: string; /** * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation is taking * place. This field is deprecated, use location instead. */ - zone: string; + zone?: string; } /** * Configuration for the PodSecurityPolicy feature. @@ -1219,7 +1222,7 @@ export namespace container_v1beta1 { * Enable the PodSecurityPolicy controller for this cluster. If enabled, * pods must be valid under a PodSecurityPolicy to be created. */ - enabled: boolean; + enabled?: boolean; } /** * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed @@ -1231,30 +1234,30 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to rollback. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster, node pool id) of the node poll to * rollback upgrade. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to rollback. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * Kubernetes Engine service configuration. @@ -1263,23 +1266,23 @@ export namespace container_v1beta1 { /** * Version of Kubernetes the service deploys by default. */ - defaultClusterVersion: string; + defaultClusterVersion?: string; /** * Default image type. */ - defaultImageType: string; + defaultImageType?: string; /** * List of valid image types. */ - validImageTypes: string[]; + validImageTypes?: string[]; /** * List of valid master versions. */ - validMasterVersions: string[]; + validMasterVersions?: string[]; /** * List of valid node upgrade target versions. */ - validNodeVersions: string[]; + validNodeVersions?: string[]; } /** * SetAddonsRequest sets the addons associated with the cluster. @@ -1289,29 +1292,29 @@ export namespace container_v1beta1 { * The desired configurations for the various addons available to run in the * cluster. */ - addonsConfig: Schema$AddonsConfig; + addonsConfig?: Schema$AddonsConfig; /** * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster) of the cluster to set addons. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLabelsRequest sets the Google Cloud Platform labels on a Google @@ -1323,7 +1326,7 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The fingerprint of the previous set of labels for this resource, used to * detect conflicts. The fingerprint is initially generated by Kubernetes @@ -1332,28 +1335,28 @@ export namespace container_v1beta1 { * changing labels. Make a <code>get()</code> request to the * resource to get the latest fingerprint. */ - labelFingerprint: string; + labelFingerprint?: string; /** * The name (project, location, cluster id) of the cluster to set labels. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * The labels to set for that cluster. */ - resourceLabels: any; + resourceLabels?: any; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism @@ -1364,29 +1367,29 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to update. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * Whether ABAC authorization will be enabled in the cluster. */ - enabled: boolean; + enabled?: boolean; /** * The name (project, location, cluster id) of the cluster to set legacy * abac. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLocationsRequest sets the locations of the cluster. @@ -1396,7 +1399,7 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The desired list of Google Compute Engine * [locations](/compute/docs/zones#available) in which the cluster's @@ -1405,24 +1408,24 @@ export namespace container_v1beta1 { * depending on whether locations are being added or removed. This list * must always include the cluster's primary zone. */ - locations: string[]; + locations?: string[]; /** * The name (project, location, cluster) of the cluster to set locations. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetLoggingServiceRequest sets the logging service of a cluster. @@ -1432,31 +1435,31 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The logging service the cluster should use to write metrics. Currently * available options: * "logging.googleapis.com" - the Google * Cloud Logging service * "none" - no metrics will be exported * from the cluster */ - loggingService: string; + loggingService?: string; /** * The name (project, location, cluster) of the cluster to set logging. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetMaintenancePolicyRequest sets the maintenance policy for a cluster. @@ -1465,28 +1468,28 @@ export namespace container_v1beta1 { /** * The name of the cluster to update. */ - clusterId: string; + clusterId?: string; /** * The maintenance policy to be set for the cluster. An empty field clears * the existing maintenance policy. */ - maintenancePolicy: Schema$MaintenancePolicy; + maintenancePolicy?: Schema$MaintenancePolicy; /** * The name (project, location, cluster id) of the cluster to set * maintenance policy. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). */ - projectId: string; + projectId?: string; /** * The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. */ - zone: string; + zone?: string; } /** * SetMasterAuthRequest updates the admin password of a cluster. @@ -1495,33 +1498,33 @@ export namespace container_v1beta1 { /** * The exact form of action to be taken on the master auth. */ - action: string; + action?: string; /** * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster) of the cluster to set auth. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * A description of the update. */ - update: Schema$MasterAuth; + update?: Schema$MasterAuth; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetMonitoringServiceRequest sets the monitoring service of a cluster. @@ -1531,31 +1534,31 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The monitoring service the cluster should use to write metrics. Currently * available options: * "monitoring.googleapis.com" - the Google * Cloud Monitoring service * "none" - no metrics will be exported * from the cluster */ - monitoringService: string; + monitoringService?: string; /** * The name (project, location, cluster) of the cluster to set monitoring. * Specified in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNetworkPolicyRequest enables/disables network policy for a cluster. @@ -1565,29 +1568,29 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster id) of the cluster to set networking * policy. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Configuration options for the NetworkPolicy feature. */ - networkPolicy: Schema$NetworkPolicy; + networkPolicy?: Schema$NetworkPolicy; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -1596,35 +1599,35 @@ export namespace container_v1beta1 { /** * Autoscaling configuration for the node pool. */ - autoscaling: Schema$NodePoolAutoscaling; + autoscaling?: Schema$NodePoolAutoscaling; /** * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster, node pool) of the node pool to set * autoscaler settings. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to upgrade. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolManagementRequest sets the node management properties of a node @@ -1635,34 +1638,34 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to update. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * NodeManagement configuration for the node pool. */ - management: Schema$NodeManagement; + management?: Schema$NodeManagement; /** * The name (project, location, cluster, node pool id) of the node pool to * set management properties. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to update. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolSizeRequest sets the size a node pool. @@ -1672,34 +1675,34 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to update. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster, node pool id) of the node pool to * set size. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * The desired node count for the pool. */ - nodeCount: number; + nodeCount?: number; /** * Deprecated. The name of the node pool to update. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * StartIPRotationRequest creates a new IP for the cluster and then performs a @@ -1710,29 +1713,29 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster. This field has been deprecated and * replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster id) of the cluster to start IP * rotation. Specified in the format * 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Whether to rotate credentials during IP rotation. */ - rotateCredentials: boolean; + rotateCredentials?: boolean; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * UpdateClusterRequest updates the settings of a cluster. @@ -1742,28 +1745,28 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The name (project, location, cluster) of the cluster to update. Specified * in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * A description of the update. */ - update: Schema$ClusterUpdate; + update?: Schema$ClusterUpdate; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * UpdateMasterRequest updates the master of the cluster. @@ -1773,7 +1776,7 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The Kubernetes version to change the master to. Users may specify either * explicit versions offered by Kubernetes Engine or version aliases, which @@ -1784,24 +1787,24 @@ export namespace container_v1beta1 { * picks an explicit Kubernetes version - "-": picks the default * Kubernetes version */ - masterVersion: string; + masterVersion?: string; /** * The name (project, location, cluster) of the cluster to update. Specified * in the format 'projects/x/locations/x/clusters/*'. */ - name: string; + name?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * SetNodePoolVersionRequest updates the version of a node pool. @@ -1811,22 +1814,22 @@ export namespace container_v1beta1 { * Deprecated. The name of the cluster to upgrade. This field has been * deprecated and replaced by the name field. */ - clusterId: string; + clusterId?: string; /** * The desired image type for the node pool. */ - imageType: string; + imageType?: string; /** * The name (project, location, cluster, node pool) of the node pool to * update. Specified in the format * 'projects/x/locations/x/clusters/x/nodePools/*'. */ - name: string; + name?: string; /** * Deprecated. The name of the node pool to upgrade. This field has been * deprecated and replaced by the name field. */ - nodePoolId: string; + nodePoolId?: string; /** * The Kubernetes version to change the nodes to (typically an upgrade). * Users may specify either explicit versions offered by Kubernetes Engine @@ -1837,19 +1840,19 @@ export namespace container_v1beta1 { * the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes * version - "-": picks the Kubernetes master version */ - nodeVersion: string; + nodeVersion?: string; /** * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has * been deprecated and replaced by the name field. */ - projectId: string; + projectId?: string; /** * Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This * field has been deprecated and replaced by the name field. */ - zone: string; + zone?: string; } /** * UsableSubnetwork resource returns the subnetwork name, its associated @@ -1859,16 +1862,16 @@ export namespace container_v1beta1 { /** * The range of internal addresses that are owned by this subnetwork. */ - ipCidrRange: string; + ipCidrRange?: string; /** * Network Name. Example: projects/my-project/global/networks/my-network */ - network: string; + network?: string; /** * Subnetwork Name. Example: * projects/my-project/regions/us-central1/subnetworks/my-subnet */ - subnetwork: string; + subnetwork?: string; } /** * WorkloadMetadataConfig defines the metadata configuration to expose to @@ -1879,9 +1882,10 @@ export namespace container_v1beta1 { * NodeMetadata is the configuration for how to expose the node metadata to * the workload running on the node. */ - nodeMetadata: string; + nodeMetadata?: string; } + export class Resource$Projects { root: Container; aggregated: Resource$Projects$Aggregated; @@ -1899,6 +1903,8 @@ export namespace container_v1beta1 { return this.root; } } + + export class Resource$Projects$Aggregated { root: Container; usableSubnetworks: Resource$Projects$Aggregated$Usablesubnetworks; @@ -1913,6 +1919,8 @@ export namespace container_v1beta1 { return this.root; } } + + export class Resource$Projects$Aggregated$Usablesubnetworks { root: Container; constructor(root: Container) { @@ -1941,29 +1949,46 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Aggregated$Usablesubnetworks$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Aggregated$Usablesubnetworks$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Aggregated$Usablesubnetworks$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Aggregated$Usablesubnetworks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Aggregated$Usablesubnetworks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Aggregated$Usablesubnetworks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -1988,6 +2013,39 @@ export namespace container_v1beta1 { } } + export interface Params$Resource$Projects$Aggregated$Usablesubnetworks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Filtering currently only supports equality on the networkProjectId and + * must be in the form: "networkProjectId=[PROJECTID]", where + * `networkProjectId` is the project which owns the listed subnetworks. This + * defaults to the parent project ID. + */ + filter?: string; + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + */ + pageSize?: number; + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + */ + pageToken?: string; + /** + * The parent project where subnetworks are usable. Specified in the format + * 'projects/x'. + */ + parent?: string; + } + + export class Resource$Projects$Locations { root: Container; @@ -2019,26 +2077,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getServerConfig(params?: any, options?: MethodOptions): - AxiosPromise; getServerConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Getserverconfig, + options?: MethodOptions): AxiosPromise; + getServerConfig( + params: Params$Resource$Projects$Locations$Getserverconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getServerConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Getserverconfig, + callback: BodyResponseCallback): void; + getServerConfig(callback: BodyResponseCallback): void; + getServerConfig( + paramsOrCallback?: Params$Resource$Projects$Locations$Getserverconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Getserverconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Getserverconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2060,6 +2131,32 @@ export namespace container_v1beta1 { } } } + + export interface Params$Resource$Projects$Locations$Getserverconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project and location) of the server config to get Specified in + * the format 'projects/x/locations/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export class Resource$Projects$Locations$Clusters { root: Container; nodePools: Resource$Projects$Locations$Clusters$Nodepools; @@ -2087,26 +2184,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - completeIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Completeiprotation, + options?: MethodOptions): AxiosPromise; completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Completeiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + completeIpRotation( + params: Params$Resource$Projects$Locations$Clusters$Completeiprotation, + callback: BodyResponseCallback): void; + completeIpRotation(callback: BodyResponseCallback): void; + completeIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Completeiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Completeiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Completeiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2150,26 +2262,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Clusters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2211,26 +2336,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Clusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2267,23 +2405,34 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Clusters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2320,28 +2469,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Clusters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Clusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Clusters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2377,26 +2538,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAddons(params?: any, options?: MethodOptions): - AxiosPromise; setAddons( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setaddons, + options?: MethodOptions): AxiosPromise; setAddons( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setaddons, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAddons( + params: Params$Resource$Projects$Locations$Clusters$Setaddons, + callback: BodyResponseCallback): void; + setAddons(callback: BodyResponseCallback): void; + setAddons( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setaddons| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setaddons; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Setaddons; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2432,26 +2607,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLegacyAbac(params?: any, options?: MethodOptions): - AxiosPromise; setLegacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setlegacyabac, + options?: MethodOptions): AxiosPromise; + setLegacyAbac( + params: Params$Resource$Projects$Locations$Clusters$Setlegacyabac, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setLegacyAbac( + params: Params$Resource$Projects$Locations$Clusters$Setlegacyabac, + callback: BodyResponseCallback): void; + setLegacyAbac(callback: BodyResponseCallback): void; setLegacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setlegacyabac| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setlegacyabac; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setlegacyabac; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2487,26 +2677,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLocations(params?: any, options?: MethodOptions): - AxiosPromise; setLocations( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setlocations, + options?: MethodOptions): AxiosPromise; + setLocations( + params: Params$Resource$Projects$Locations$Clusters$Setlocations, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLocations( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setlocations, + callback: BodyResponseCallback): void; + setLocations(callback: BodyResponseCallback): void; + setLocations( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setlocations| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setlocations; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Setlocations; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2542,26 +2746,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setLogging(params?: any, options?: MethodOptions): - AxiosPromise; setLogging( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setlogging, + options?: MethodOptions): AxiosPromise; + setLogging( + params: Params$Resource$Projects$Locations$Clusters$Setlogging, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setLogging( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setlogging, + callback: BodyResponseCallback): void; + setLogging(callback: BodyResponseCallback): void; + setLogging( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setlogging| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setlogging; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Setlogging; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2597,26 +2815,45 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMaintenancePolicy(params?: any, options?: MethodOptions): - AxiosPromise; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy, + options?: MethodOptions): AxiosPromise; + setMaintenancePolicy( + params: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy, + callback: BodyResponseCallback): void; + setMaintenancePolicy(callback: BodyResponseCallback): + void; + setMaintenancePolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2655,26 +2892,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMasterAuth(params?: any, options?: MethodOptions): - AxiosPromise; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setmasterauth, + options?: MethodOptions): AxiosPromise; + setMasterAuth( + params: Params$Resource$Projects$Locations$Clusters$Setmasterauth, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setmasterauth, + callback: BodyResponseCallback): void; + setMasterAuth(callback: BodyResponseCallback): void; + setMasterAuth( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setmasterauth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setmasterauth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setmasterauth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2710,26 +2962,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMonitoring(params?: any, options?: MethodOptions): - AxiosPromise; setMonitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setmonitoring, + options?: MethodOptions): AxiosPromise; + setMonitoring( + params: Params$Resource$Projects$Locations$Clusters$Setmonitoring, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMonitoring( + params: Params$Resource$Projects$Locations$Clusters$Setmonitoring, + callback: BodyResponseCallback): void; + setMonitoring(callback: BodyResponseCallback): void; setMonitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setmonitoring| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setmonitoring; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setmonitoring; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2765,26 +3032,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNetworkPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy, + options?: MethodOptions): AxiosPromise; + setNetworkPolicy( + params: Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy, + callback: BodyResponseCallback): void; + setNetworkPolicy(callback: BodyResponseCallback): void; + setNetworkPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2820,26 +3102,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setResourceLabels(params?: any, options?: MethodOptions): - AxiosPromise; setResourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Setresourcelabels, + options?: MethodOptions): AxiosPromise; setResourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Setresourcelabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setResourceLabels( + params: Params$Resource$Projects$Locations$Clusters$Setresourcelabels, + callback: BodyResponseCallback): void; + setResourceLabels(callback: BodyResponseCallback): void; + setResourceLabels( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Setresourcelabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Setresourcelabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Setresourcelabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2875,26 +3172,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Startiprotation, + options?: MethodOptions): AxiosPromise; + startIpRotation( + params: Params$Resource$Projects$Locations$Clusters$Startiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Startiprotation, + callback: BodyResponseCallback): void; + startIpRotation(callback: BodyResponseCallback): void; + startIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Startiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Startiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Startiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2930,26 +3242,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Locations$Clusters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Locations$Clusters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Clusters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -2984,26 +3309,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateMaster(params?: any, options?: MethodOptions): - AxiosPromise; updateMaster( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Clusters$Updatemaster, + options?: MethodOptions): AxiosPromise; updateMaster( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Clusters$Updatemaster, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateMaster( + params: Params$Resource$Projects$Locations$Clusters$Updatemaster, + callback: BodyResponseCallback): void; + updateMaster(callback: BodyResponseCallback): void; + updateMaster( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Updatemaster| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Updatemaster; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Clusters$Updatemaster; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -3025,228 +3364,384 @@ export namespace container_v1beta1 { } } } - export class Resource$Projects$Locations$Clusters$Nodepools { - root: Container; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Projects$Locations$Clusters$Completeiprotation { /** - * container.projects.locations.clusters.nodePools.create - * @desc Creates a node pool for a cluster. - * @alias container.projects.locations.clusters.nodePools.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent (project, location, cluster id) where the node pool will be created. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().CreateNodePoolRequest} 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 + * Auth client or API Key for the request */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - create( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+parent}/nodePools') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.locations.clusters.nodePools.delete - * @desc Deletes a node pool from a cluster. - * @alias container.projects.locations.clusters.nodePools.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {string=} params.nodePoolId Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @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 + * The name (project, location, cluster id) of the cluster to complete IP + * rotation. Specified in the format 'projects/x/locations/x/clusters/x'. */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CompleteIPRotationRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format 'projects/x/locations/x'. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateClusterRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.locations.clusters.nodePools.get - * @desc Retrieves the node pool requested. - * @alias container.projects.locations.clusters.nodePools.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {string=} params.nodePoolId Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @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 + * Deprecated. The name of the cluster to delete. This field has been + * deprecated and replaced by the name field. */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to delete. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to retrieve. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides, or + * "-" for all zones. This field has been deprecated and replaced by the + * parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Setaddons { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetAddonsConfigRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setlegacyabac { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set legacy + * abac. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLegacyAbacRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setlocations { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLocationsRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setlogging { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLoggingServiceRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setmaintenancepolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set + * maintenance policy. Specified in the format + * 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMaintenancePolicyRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setmasterauth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMasterAuthRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setmonitoring { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMonitoringServiceRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setnetworkpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set networking + * policy. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNetworkPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Setresourcelabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to set labels. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLabelsRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Startiprotation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster id) of the cluster to start IP + * rotation. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StartIPRotationRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to update. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateClusterRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Updatemaster { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster) of the cluster to update. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateMasterRequest; + } + + export class Resource$Projects$Locations$Clusters$Nodepools { + root: Container; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; } /** - * container.projects.locations.clusters.nodePools.list - * @desc Lists the node pools for a cluster. - * @alias container.projects.locations.clusters.nodePools.list + * container.projects.locations.clusters.nodePools.create + * @desc Creates a node pool for a cluster. + * @alias container.projects.locations.clusters.nodePools.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. - * @param {string} params.parent The parent (project, location, cluster id) where the node pools will be listed. Specified in the format 'projects/x/locations/x/clusters/x'. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. + * @param {string} params.parent The parent (project, location, cluster id) where the node pool will be created. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().CreateNodePoolRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + create( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + '/v1beta1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, @@ -3255,54 +3750,70 @@ export namespace container_v1beta1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.clusters.nodePools.rollback - * @desc Roll back the previously Aborted or Failed NodePool upgrade. This - * will be an no-op if the last upgrade successfully completed. - * @alias container.projects.locations.clusters.nodePools.rollback + * container.projects.locations.clusters.nodePools.delete + * @desc Deletes a node pool from a cluster. + * @alias container.projects.locations.clusters.nodePools.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().RollbackNodePoolUpgradeRequest} params.resource Request body data + * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to delete. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {string=} params.nodePoolId Deprecated. The name of the node pool to delete. This field has been deprecated and replaced by the name field. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. * @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 */ - rollback(params?: any, options?: MethodOptions): - AxiosPromise; - rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + delete( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}:rollback') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' }, options), params, @@ -3319,45 +3830,57 @@ export namespace container_v1beta1 { /** - * container.projects.locations.clusters.nodePools.setAutoscaling - * @desc Sets the autoscaling settings of a specific node pool. - * @alias container.projects.locations.clusters.nodePools.setAutoscaling + * container.projects.locations.clusters.nodePools.get + * @desc Retrieves the node pool requested. + * @alias container.projects.locations.clusters.nodePools.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data + * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to get. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {string=} params.nodePoolId Deprecated. The name of the node pool. This field has been deprecated and replaced by the name field. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. * @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 */ - setAutoscaling(params?: any, options?: MethodOptions): - AxiosPromise; - setAutoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setAutoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + get(params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Clusters$Nodepools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Clusters$Nodepools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}:setAutoscaling') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, @@ -3366,106 +3889,140 @@ export namespace container_v1beta1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.clusters.nodePools.setManagement - * @desc Sets the NodeManagement options for a node pool. - * @alias container.projects.locations.clusters.nodePools.setManagement + * container.projects.locations.clusters.nodePools.list + * @desc Lists the node pools for a cluster. + * @alias container.projects.locations.clusters.nodePools.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolManagementRequest} params.resource Request body data + * @param {string=} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field. + * @param {string} params.parent The parent (project, location, cluster id) where the node pools will be listed. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the parent field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. * @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 */ - setManagement(params?: any, options?: MethodOptions): - AxiosPromise; - setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + list( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}:setManagement') + url: (rootUrl + '/v1beta1/{+parent}/nodePools') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.clusters.nodePools.setSize - * @desc Sets the size of a specific node pool. - * @alias container.projects.locations.clusters.nodePools.setSize + * container.projects.locations.clusters.nodePools.rollback + * @desc Roll back the previously Aborted or Failed NodePool upgrade. This + * will be an no-op if the last upgrade successfully completed. + * @alias container.projects.locations.clusters.nodePools.rollback * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().SetNodePoolSizeRequest} params.resource Request body data + * @param {string} params.name The name (project, location, cluster, node pool id) of the node poll to rollback upgrade. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().RollbackNodePoolUpgradeRequest} 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 */ - setSize(params?: any, options?: MethodOptions): - AxiosPromise; - setSize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setSize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + rollback( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rollback( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; + rollback( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}:setSize') + url: (rootUrl + '/v1beta1/{+name}:rollback') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3484,44 +4041,63 @@ export namespace container_v1beta1 { /** - * container.projects.locations.clusters.nodePools.update - * @desc Updates the version and/or image type of a specific node pool. - * @alias container.projects.locations.clusters.nodePools.update + * container.projects.locations.clusters.nodePools.setAutoscaling + * @desc Sets the autoscaling settings of a specific node pool. + * @alias container.projects.locations.clusters.nodePools.setAutoscaling * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to update. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. - * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to set autoscaler settings. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().SetNodePoolAutoscalingRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + setAutoscaling( + params?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling, + options?: MethodOptions): AxiosPromise; + setAutoscaling( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setAutoscaling( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling, + callback: BodyResponseCallback): void; + setAutoscaling(callback: BodyResponseCallback): void; + setAutoscaling( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' + url: (rootUrl + '/v1beta1/{+name}:setAutoscaling') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, @@ -3535,58 +4111,64 @@ export namespace container_v1beta1 { return createAPIRequest(parameters); } } - } - - - export class Resource$Projects$Locations$Operations { - root: Container; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } /** - * container.projects.locations.operations.cancel - * @desc Cancels the specified operation. - * @alias container.projects.locations.operations.cancel + * container.projects.locations.clusters.nodePools.setManagement + * @desc Sets the NodeManagement options for a node pool. + * @alias container.projects.locations.clusters.nodePools.setManagement * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects/x/locations/x/operations/x'. - * @param {().CancelOperationRequest} params.resource Request body data + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set management properties. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().SetNodePoolManagementRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; - cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + setManagement( + params?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement, + options?: MethodOptions): AxiosPromise; + setManagement( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setManagement( + params: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement, + callback: BodyResponseCallback): void; + setManagement(callback: BodyResponseCallback): void; + setManagement( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}:cancel') + url: (rootUrl + '/v1beta1/{+name}:setManagement') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -3597,51 +4179,68 @@ export namespace container_v1beta1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.locations.operations.get - * @desc Gets the specified operation. - * @alias container.projects.locations.operations.get + * container.projects.locations.clusters.nodePools.setSize + * @desc Sets the size of a specific node pool. + * @alias container.projects.locations.clusters.nodePools.setSize * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name (project, location, operation id) of the operation to get. Specified in the format 'projects/x/locations/x/operations/x'. - * @param {string=} params.operationId Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {string} params.name The name (project, location, cluster, node pool id) of the node pool to set size. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().SetNodePoolSizeRequest} 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 */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + setSize( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize, + options?: MethodOptions): AxiosPromise; + setSize( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSize( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize, + callback: BodyResponseCallback): void; + setSize(callback: BodyResponseCallback): void; + setSize( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + '/v1beta1/{+name}:setSize') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' }, options), params, @@ -3658,143 +4257,283 @@ export namespace container_v1beta1 { /** - * container.projects.locations.operations.list - * @desc Lists all operations in a project in a specific zone or all zones. - * @alias container.projects.locations.operations.list + * container.projects.locations.clusters.nodePools.update + * @desc Updates the version and/or image type of a specific node pool. + * @alias container.projects.locations.clusters.nodePools.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The parent (project and location) where the operations will be listed. Specified in the format 'projects/x/locations/x'. Location "-" matches all zones and all regions. - * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. - * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones. This field has been deprecated and replaced by the parent field. + * @param {string} params.name The name (project, location, cluster, node pool) of the node pool to update. Specified in the format 'projects/x/locations/x/clusters/x/nodePools/x'. + * @param {().UpdateNodePoolRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + update( + params?: Params$Resource$Projects$Locations$Clusters$Nodepools$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Locations$Clusters$Nodepools$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Projects$Locations$Clusters$Nodepools$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Clusters$Nodepools$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Clusters$Nodepools$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/v1beta1/{+parent}/operations') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' }, options), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - - export class Resource$Projects$Zones { - root: Container; - clusters: Resource$Projects$Zones$Clusters; - operations: Resource$Projects$Zones$Operations; - constructor(root: Container) { - this.root = root; - this.getRoot.bind(this); - this.clusters = new Resource$Projects$Zones$Clusters(root); - this.operations = new Resource$Projects$Zones$Operations(root); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.getServerconfig - * @desc Returns configuration info about the Kubernetes Engine service. - * @alias container.projects.zones.getServerconfig - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.name The name (project and location) of the server config to get Specified in the format 'projects/x/locations/x'. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for. This field has been deprecated and replaced by the name field. - * @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 + * The parent (project, location, cluster id) where the node pool will be + * created. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. */ - getServerconfig(params?: any, options?: MethodOptions): - AxiosPromise; - getServerconfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - getServerconfig( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateNodePoolRequest; } - export class Resource$Projects$Zones$Clusters { + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool to delete. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool. This field has been deprecated and + * replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the parent field. + */ + clusterId?: string; + /** + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackNodePoolUpgradeRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Setautoscaling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolAutoscalingRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Setmanagement { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * set management properties. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolManagementRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Setsize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool id) of the node pool to + * set size. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolSizeRequest; + } + export interface Params$Resource$Projects$Locations$Clusters$Nodepools$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateNodePoolRequest; + } + + + + export class Resource$Projects$Locations$Operations { root: Container; - nodePools: Resource$Projects$Zones$Clusters$Nodepools; constructor(root: Container) { this.root = root; this.getRoot.bind(this); - this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(root); } getRoot() { @@ -3803,113 +4542,127 @@ export namespace container_v1beta1 { /** - * container.projects.zones.clusters.addons - * @desc Sets the addons of a specific cluster. - * @alias container.projects.zones.clusters.addons + * container.projects.locations.operations.cancel + * @desc Cancels the specified operation. + * @alias container.projects.locations.operations.cancel * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetAddonsConfigRequest} params.resource Request body data + * @param {string} params.name The name (project, location, operation id) of the operation to cancel. Specified in the format 'projects/x/locations/x/operations/x'. + * @param {().CancelOperationRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addons(params?: any, options?: MethodOptions): - AxiosPromise; - addons( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - addons( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + cancel( + params?: Params$Resource$Projects$Locations$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons') - .replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/v1beta1/{+name}:cancel') + .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.zones.clusters.completeIpRotation - * @desc Completes master IP rotation. - * @alias container.projects.zones.clusters.completeIpRotation + * container.projects.locations.operations.get + * @desc Gets the specified operation. + * @alias container.projects.locations.operations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().CompleteIPRotationRequest} params.resource Request body data + * @param {string} params.name The name (project, location, operation id) of the operation to get. Specified in the format 'projects/x/locations/x/operations/x'. + * @param {string=} params.operationId Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. * @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 */ - completeIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; - completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - completeIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['name'], + pathParams: ['name'], context: this.getRoot() }; if (callback) { @@ -3921,174 +4674,331 @@ export namespace container_v1beta1 { /** - * container.projects.zones.clusters.create - * @desc Creates a cluster, consisting of the specified number and type of - * Google Compute Engine instances. By default, the cluster is created in - * the project's [default - * network](/compute/docs/networks-and-firewalls#networks). One firewall is - * added for the cluster. After cluster creation, the cluster creates routes - * for each node to allow the containers on that node to communicate with - * all other instances in the cluster. Finally, an entry is added to the - * project's global metadata indicating which CIDR range is being used by - * the cluster. - * @alias container.projects.zones.clusters.create + * container.projects.locations.operations.list + * @desc Lists all operations in a project in a specific zone or all zones. + * @alias container.projects.locations.operations.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. - * @param {().CreateClusterRequest} params.resource Request body data + * @param {string} params.parent The parent (project and location) where the operations will be listed. Specified in the format 'projects/x/locations/x'. Location "-" matches all zones and all regions. + * @param {string=} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. + * @param {string=} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones. This field has been deprecated and replaced by the parent field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - create( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( + list( + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( { - url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters') + url: (rootUrl + '/v1beta1/{+parent}/operations') .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' + method: 'GET' }, options), params, - requiredParams: ['projectId', 'zone'], - pathParams: ['projectId', 'zone'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Locations$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.clusters.delete - * @desc Deletes the cluster, including the Kubernetes endpoint and all - * worker nodes. Firewalls and routes that were configured during cluster - * creation are also deleted. Other Google Compute Engine resources that - * might be in use by the cluster (e.g. load balancer resources) will not be - * deleted if they weren't present at the initial create time. - * @alias container.projects.zones.clusters.delete + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format 'projects/x/locations/x/operations/x'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Locations$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/x/locations/x/operations/x'. + */ + name?: string; + /** + * Deprecated. The server-assigned `name` of the operation. This field has + * been deprecated and replaced by the name field. + */ + operationId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or `-` + * for all zones. This field has been deprecated and replaced by the parent + * field. + */ + zone?: string; + } + + + + export class Resource$Projects$Zones { + root: Container; + clusters: Resource$Projects$Zones$Clusters; + operations: Resource$Projects$Zones$Operations; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + this.clusters = new Resource$Projects$Zones$Clusters(root); + this.operations = new Resource$Projects$Zones$Operations(root); + } + + getRoot() { + return this.root; + } + + + /** + * container.projects.zones.getServerconfig + * @desc Returns configuration info about the Kubernetes Engine service. + * @alias container.projects.zones.getServerconfig * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field. - * @param {string=} params.name The name (project, location, cluster) of the cluster to delete. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {string=} params.name The name (project and location) of the server config to get Specified in the format 'projects/x/locations/x'. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) to return operations for. This field has been deprecated and replaced by the name field. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + getServerconfig( + params?: Params$Resource$Projects$Zones$Getserverconfig, + options?: MethodOptions): AxiosPromise; + getServerconfig( + params: Params$Resource$Projects$Zones$Getserverconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getServerconfig( + params: Params$Resource$Projects$Zones$Getserverconfig, + callback: BodyResponseCallback): void; + getServerconfig(callback: BodyResponseCallback): void; + getServerconfig( + paramsOrCallback?: Params$Resource$Projects$Zones$Getserverconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Getserverconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Getserverconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { - url: - (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' }, options), params, - requiredParams: ['projectId', 'zone', 'clusterId'], - pathParams: ['clusterId', 'projectId', 'zone'], + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Zones$Getserverconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.clusters.get - * @desc Gets the details of a specific cluster. - * @alias container.projects.zones.clusters.get + * The name (project and location) of the server config to get Specified in + * the format 'projects/x/locations/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + + export class Resource$Projects$Zones$Clusters { + root: Container; + nodePools: Resource$Projects$Zones$Clusters$Nodepools; + constructor(root: Container) { + this.root = root; + this.getRoot.bind(this); + this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(root); + } + + getRoot() { + return this.root; + } + + + /** + * container.projects.zones.clusters.addons + * @desc Sets the addons of a specific cluster. + * @alias container.projects.zones.clusters.addons * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to retrieve. This field has been deprecated and replaced by the name field. - * @param {string=} params.name The name (project, location, cluster) of the cluster to retrieve. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().SetAddonsConfigRequest} 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 */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + addons( + params?: Params$Resource$Projects$Zones$Clusters$Addons, + options?: MethodOptions): AxiosPromise; + addons( + params: Params$Resource$Projects$Zones$Clusters$Addons, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addons( + params: Params$Resource$Projects$Zones$Clusters$Addons, + callback: BodyResponseCallback): void; + addons(callback: BodyResponseCallback): void; + addons( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Addons| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Addons; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Addons; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}') + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons') .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' + method: 'POST' }, options), params, @@ -4097,55 +5007,70 @@ export namespace container_v1beta1 { context: this.getRoot() }; if (callback) { - createAPIRequest(parameters, callback); + createAPIRequest(parameters, callback); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * container.projects.zones.clusters.legacyAbac - * @desc Enables or disables the ABAC authorization mechanism on a cluster. - * @alias container.projects.zones.clusters.legacyAbac + * container.projects.zones.clusters.completeIpRotation + * @desc Completes master IP rotation. + * @alias container.projects.zones.clusters.completeIpRotation * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.clusterId Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://developers.google.com/console/help/new/#projectnumber). This field has been deprecated and replaced by the name field. * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetLegacyAbacRequest} params.resource Request body data + * @param {().CompleteIPRotationRequest} 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 */ - legacyAbac(params?: any, options?: MethodOptions): - AxiosPromise; - legacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - legacyAbac( - params?: any, - options?: MethodOptions|BodyResponseCallback, + completeIpRotation( + params?: Params$Resource$Projects$Zones$Clusters$Completeiprotation, + options?: MethodOptions): AxiosPromise; + completeIpRotation( + params: Params$Resource$Projects$Zones$Clusters$Completeiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + completeIpRotation( + params: Params$Resource$Projects$Zones$Clusters$Completeiprotation, + callback: BodyResponseCallback): void; + completeIpRotation(callback: BodyResponseCallback): void; + completeIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Completeiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Completeiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Completeiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( { url: (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac') + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation') .replace(/([^:]\/)\/+/g, '$1'), method: 'POST' }, @@ -4164,42 +5089,347 @@ export namespace container_v1beta1 { /** - * container.projects.zones.clusters.list - * @desc Lists all clusters owned by a project in either the specified zone - * or all zones. - * @alias container.projects.zones.clusters.list + * container.projects.zones.clusters.create + * @desc Creates a cluster, consisting of the specified number and type of + * Google Compute Engine instances. By default, the cluster is created in + * the project's [default + * network](/compute/docs/networks-and-firewalls#networks). One firewall is + * added for the cluster. After cluster creation, the cluster creates routes + * for each node to allow the containers on that node to communicate with + * all other instances in the cluster. Finally, an entry is added to the + * project's global metadata indicating which CIDR range is being used by + * the cluster. + * @alias container.projects.zones.clusters.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.parent The parent (project and location) where the clusters will be listed. Specified in the format 'projects/x/locations/x'. Location "-" matches all zones and all regions. * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides, or "-" for all zones. This field has been deprecated and replaced by the parent field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the parent field. + * @param {().CreateClusterRequest} 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 */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + create( + params?: Params$Resource$Projects$Zones$Clusters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Zones$Clusters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Zones$Clusters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.delete + * @desc Deletes the cluster, including the Kubernetes endpoint and all + * worker nodes. Firewalls and routes that were configured during cluster + * creation are also deleted. Other Google Compute Engine resources that + * might be in use by the cluster (e.g. load balancer resources) will not be + * deleted if they weren't present at the initial create time. + * @alias container.projects.zones.clusters.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to delete. This field has been deprecated and replaced by the name field. + * @param {string=} params.name The name (project, location, cluster) of the cluster to delete. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Projects$Zones$Clusters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Zones$Clusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Zones$Clusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.get + * @desc Gets the details of a specific cluster. + * @alias container.projects.zones.clusters.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to retrieve. This field has been deprecated and replaced by the name field. + * @param {string=} params.name The name (project, location, cluster) of the cluster to retrieve. Specified in the format 'projects/x/locations/x/clusters/x'. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Zones$Clusters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Zones$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Zones$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.legacyAbac + * @desc Enables or disables the ABAC authorization mechanism on a cluster. + * @alias container.projects.zones.clusters.legacyAbac + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().SetLegacyAbacRequest} 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 + */ + legacyAbac( + params?: Params$Resource$Projects$Zones$Clusters$Legacyabac, + options?: MethodOptions): AxiosPromise; + legacyAbac( + params: Params$Resource$Projects$Zones$Clusters$Legacyabac, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + legacyAbac( + params: Params$Resource$Projects$Zones$Clusters$Legacyabac, + callback: BodyResponseCallback): void; + legacyAbac(callback: BodyResponseCallback): void; + legacyAbac( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Legacyabac| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Legacyabac; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Legacyabac; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.list + * @desc Lists all clusters owned by a project in either the specified zone + * or all zones. + * @alias container.projects.zones.clusters.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.parent The parent (project and location) where the clusters will be listed. Specified in the format 'projects/x/locations/x'. Location "-" matches all zones and all regions. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides, or "-" for all zones. This field has been deprecated and replaced by the parent field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Zones$Clusters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Zones$Clusters$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Zones$Clusters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4238,26 +5468,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - locations(params?: any, options?: MethodOptions): - AxiosPromise; locations( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Locations, + options?: MethodOptions): AxiosPromise; + locations( + params: Params$Resource$Projects$Zones$Clusters$Locations, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + locations( + params: Params$Resource$Projects$Zones$Clusters$Locations, + callback: BodyResponseCallback): void; + locations(callback: BodyResponseCallback): void; locations( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Locations| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Locations; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Locations; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4297,26 +5540,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - logging(params?: any, options?: MethodOptions): - AxiosPromise; logging( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Logging, + options?: MethodOptions): AxiosPromise; logging( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Logging, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + logging( + params: Params$Resource$Projects$Zones$Clusters$Logging, + callback: BodyResponseCallback): void; + logging(callback: BodyResponseCallback): void; + logging( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Logging| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Logging; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Logging; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4356,26 +5612,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - master(params?: any, options?: MethodOptions): - AxiosPromise; master( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Master, + options?: MethodOptions): AxiosPromise; + master( + params: Params$Resource$Projects$Zones$Clusters$Master, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + master( + params: Params$Resource$Projects$Zones$Clusters$Master, + callback: BodyResponseCallback): void; + master(callback: BodyResponseCallback): void; master( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Master| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Master; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Master; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4415,26 +5684,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - monitoring(params?: any, options?: MethodOptions): - AxiosPromise; monitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Monitoring, + options?: MethodOptions): AxiosPromise; monitoring( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Monitoring, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + monitoring( + params: Params$Resource$Projects$Zones$Clusters$Monitoring, + callback: BodyResponseCallback): void; + monitoring(callback: BodyResponseCallback): void; + monitoring( + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Monitoring| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Monitoring; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Monitoring; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4474,26 +5756,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resourceLabels(params?: any, options?: MethodOptions): - AxiosPromise; resourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Resourcelabels, + options?: MethodOptions): AxiosPromise; + resourceLabels( + params: Params$Resource$Projects$Zones$Clusters$Resourcelabels, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resourceLabels( + params: Params$Resource$Projects$Zones$Clusters$Resourcelabels, + callback: BodyResponseCallback): void; + resourceLabels(callback: BodyResponseCallback): void; resourceLabels( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Resourcelabels| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Resourcelabels; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Resourcelabels; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4533,26 +5829,42 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMaintenancePolicy(params?: any, options?: MethodOptions): - AxiosPromise; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy, + options?: MethodOptions): AxiosPromise; setMaintenancePolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMaintenancePolicy( + params: Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy, + callback: BodyResponseCallback): void; + setMaintenancePolicy(callback: BodyResponseCallback): + void; + setMaintenancePolicy( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4595,26 +5907,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setMasterAuth(params?: any, options?: MethodOptions): - AxiosPromise; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Setmasterauth, + options?: MethodOptions): AxiosPromise; + setMasterAuth( + params: Params$Resource$Projects$Zones$Clusters$Setmasterauth, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setMasterAuth( + params: Params$Resource$Projects$Zones$Clusters$Setmasterauth, + callback: BodyResponseCallback): void; + setMasterAuth(callback: BodyResponseCallback): void; setMasterAuth( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Setmasterauth| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Setmasterauth; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Setmasterauth; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4654,26 +5980,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setNetworkPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy, + options?: MethodOptions): AxiosPromise; setNetworkPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setNetworkPolicy( + params: Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy, + callback: BodyResponseCallback): void; + setNetworkPolicy(callback: BodyResponseCallback): void; + setNetworkPolicy( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4713,26 +6053,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startIpRotation(params?: any, options?: MethodOptions): - AxiosPromise; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Startiprotation, + options?: MethodOptions): AxiosPromise; startIpRotation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Startiprotation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startIpRotation( + params: Params$Resource$Projects$Zones$Clusters$Startiprotation, + callback: BodyResponseCallback): void; + startIpRotation(callback: BodyResponseCallback): void; + startIpRotation( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Startiprotation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Startiprotation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Startiprotation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4772,26 +6126,39 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Zones$Clusters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Zones$Clusters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Zones$Clusters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4815,6 +6182,476 @@ export namespace container_v1beta1 { } } } + + export interface Params$Resource$Projects$Zones$Clusters$Addons { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetAddonsConfigRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Completeiprotation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CompleteIPRotationRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateClusterRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to delete. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to delete. Specified + * in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to retrieve. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/x/locations/x/clusters/x'. + */ + name?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Legacyabac { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLegacyAbacRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides, or + * "-" for all zones. This field has been deprecated and replaced by the + * parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Locations { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLocationsRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Logging { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLoggingServiceRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Master { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateMasterRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Monitoring { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMonitoringServiceRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Resourcelabels { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetLabelsRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Setmaintenancepolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the cluster to update. + */ + clusterId?: string; + /** + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + */ + projectId?: string; + /** + * The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMaintenancePolicyRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Setmasterauth { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetMasterAuthRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Setnetworkpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNetworkPolicyRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Startiprotation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$StartIPRotationRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateClusterRequest; + } + export class Resource$Projects$Zones$Clusters$Nodepools { root: Container; constructor(root: Container) { @@ -4843,26 +6680,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - autoscaling(params?: any, options?: MethodOptions): - AxiosPromise; autoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling, + options?: MethodOptions): AxiosPromise; + autoscaling( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; autoscaling( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling, + callback: BodyResponseCallback): void; + autoscaling(callback: BodyResponseCallback): void; + autoscaling( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4902,26 +6754,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -4962,26 +6828,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5022,23 +6902,35 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Zones$Clusters$Nodepools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Zones$Clusters$Nodepools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5078,28 +6970,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5141,26 +7046,41 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rollback(params?: any, options?: MethodOptions): - AxiosPromise; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; + rollback( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5201,26 +7121,42 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setManagement(params?: any, options?: MethodOptions): - AxiosPromise; setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement, + options?: MethodOptions): AxiosPromise; + setManagement( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setManagement( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement, + callback: BodyResponseCallback): void; + setManagement(callback: BodyResponseCallback): void; setManagement( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5246,126 +7182,449 @@ export namespace container_v1beta1 { /** - * container.projects.zones.clusters.nodePools.setSize - * @desc Sets the size of a specific node pool. - * @alias container.projects.zones.clusters.nodePools.setSize - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. - * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().SetNodePoolSizeRequest} 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 + * container.projects.zones.clusters.nodePools.setSize + * @desc Sets the size of a specific node pool. + * @alias container.projects.zones.clusters.nodePools.setSize + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to update. This field has been deprecated and replaced by the name field. + * @param {string} params.nodePoolId Deprecated. The name of the node pool to update. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().SetNodePoolSizeRequest} 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 + */ + setSize( + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize, + options?: MethodOptions): AxiosPromise; + setSize( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setSize( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize, + callback: BodyResponseCallback): void; + setSize(callback: BodyResponseCallback): void; + setSize( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * container.projects.zones.clusters.nodePools.update + * @desc Updates the version and/or image type of a specific node pool. + * @alias container.projects.zones.clusters.nodePools.update + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. + * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. + * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. + * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. + * @param {().UpdateNodePoolRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + update( + params?: Params$Resource$Projects$Zones$Clusters$Nodepools$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Zones$Clusters$Nodepools$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Projects$Zones$Clusters$Nodepools$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Clusters$Nodepools$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Clusters$Nodepools$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Autoscaling { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to upgrade. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolAutoscalingRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the parent field. + */ + clusterId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateNodePoolRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool to delete. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the name field. + */ + clusterId?: string; + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/x/locations/x/clusters/x/nodePools/x'. + */ + name?: string; + /** + * Deprecated. The name of the node pool. This field has been deprecated and + * replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster. This field has been deprecated and + * replaced by the parent field. + */ + clusterId?: string; + /** + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/x/locations/x/clusters/x'. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the parent field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to rollback. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to rollback. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackNodePoolUpgradeRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Setmanagement { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. */ - setSize(params?: any, options?: MethodOptions): - AxiosPromise; - setSize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - setSize( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + clusterId?: string; + /** + * Deprecated. The name of the node pool to update. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolManagementRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Setsize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + */ + clusterId?: string; + /** + * Deprecated. The name of the node pool to update. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$SetNodePoolSizeRequest; + } + export interface Params$Resource$Projects$Zones$Clusters$Nodepools$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * container.projects.zones.clusters.nodePools.update - * @desc Updates the version and/or image type of a specific node pool. - * @alias container.projects.zones.clusters.nodePools.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. - * @param {string} params.nodePoolId Deprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field. - * @param {string} params.projectId Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. - * @param {string} params.zone Deprecated. The name of the Google Compute Engine [zone](/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. - * @param {().UpdateNodePoolRequest} 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 + * Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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://container.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: - (rootUrl + - '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], - pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + clusterId?: string; + /** + * Deprecated. The name of the node pool to upgrade. This field has been + * deprecated and replaced by the name field. + */ + nodePoolId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateNodePoolRequest; } + export class Resource$Projects$Zones$Operations { root: Container; constructor(root: Container) { @@ -5393,25 +7652,38 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Zones$Operations$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Zones$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Zones$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Zones$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5451,23 +7723,35 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Zones$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Zones$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Zones$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Zones$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5506,28 +7790,40 @@ export namespace container_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Zones$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Zones$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Zones$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Zones$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Zones$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Zones$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; const parameters = { options: Object.assign( @@ -5550,4 +7846,88 @@ export namespace container_v1beta1 { } } } + + export interface Params$Resource$Projects$Zones$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Deprecated. The server-assigned `name` of the operation. This field has + * been deprecated and replaced by the name field. + */ + operationId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the operation resides. + * This field has been deprecated and replaced by the name field. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Zones$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/x/locations/x/operations/x'. + */ + name?: string; + /** + * Deprecated. The server-assigned `name` of the operation. This field has + * been deprecated and replaced by the name field. + */ + operationId?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the name field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. This + * field has been deprecated and replaced by the name field. + */ + zone?: string; + } + export interface Params$Resource$Projects$Zones$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/x/locations/x'. Location "-" matches + * all zones and all regions. + */ + parent?: string; + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). This field has + * been deprecated and replaced by the parent field. + */ + projectId?: string; + /** + * Deprecated. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or `-` + * for all zones. This field has been deprecated and replaced by the parent + * field. + */ + zone?: string; + } } diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index e496ece826b..4fd23f46cd7 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace content_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Content API for Shopping * @@ -95,7 +98,7 @@ export namespace content_v2 { /** * Indicates whether the merchant sells adult content. */ - adultContent: boolean; + adultContent?: boolean; /** * List of linked AdWords accounts that are active or pending approval. To * create a new link request, add a new link with status active to the list. @@ -103,43 +106,43 @@ export namespace content_v2 { * the AdWords interface or through the AdWords API. To delete an active * link, or to cancel a link request, remove it from the list. */ - adwordsLinks: Schema$AccountAdwordsLink[]; + adwordsLinks?: Schema$AccountAdwordsLink[]; /** * The GMB account which is linked or in the process of being linked with * the Merchant Center accounnt. */ - googleMyBusinessLink: Schema$AccountGoogleMyBusinessLink; + googleMyBusinessLink?: Schema$AccountGoogleMyBusinessLink; /** * Merchant Center account ID. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#account". */ - kind: string; + kind?: string; /** * Display name for the account. */ - name: string; + name?: string; /** * [DEPRECATED] This field is never returned and will be ignored if * provided. */ - reviewsUrl: string; + reviewsUrl?: string; /** * Client-specific, locally-unique, internal ID for the child account. */ - sellerId: string; + sellerId?: string; /** * Users with access to the account. Every account (except for subaccounts) * must have at least one admin user. */ - users: Schema$AccountUser[]; + users?: Schema$AccountUser[]; /** * The merchant's website. */ - websiteUrl: string; + websiteUrl?: string; /** * List of linked YouTube channels that are active or pending approval. To * create a new link request, add a new link with status active to the list. @@ -147,13 +150,13 @@ export namespace content_v2 { * Creator Studio interface. To delete an active link, or to cancel a link * request, remove it from the list. */ - youtubeChannelLinks: Schema$AccountYouTubeChannelLink[]; + youtubeChannelLinks?: Schema$AccountYouTubeChannelLink[]; } export interface Schema$AccountAdwordsLink { /** * Customer ID of the AdWords account. */ - adwordsId: string; + adwordsId?: string; /** * Status of the link between this Merchant Center account and the AdWords * account. Upon retrieval, it represents the actual status of the link and @@ -166,7 +169,7 @@ export namespace content_v2 { * at all and will delete the link if it was active or cancel the link * request if it was pending. */ - status: string; + status?: string; } export interface Schema$AccountGoogleMyBusinessLink { /** @@ -174,23 +177,23 @@ export namespace content_v2 { * sample account within a GMB account could be a business account with set * of locations, managed under the GMB account. */ - gmbEmail: string; + gmbEmail?: string; /** * Status of the link between this Merchant Center account and the GMB * account. */ - status: string; + status?: string; } export interface Schema$AccountIdentifier { /** * The aggregator ID, set for aggregators and subaccounts (in that case, it * represents the aggregator of the subaccount). */ - aggregatorId: string; + aggregatorId?: string; /** * The merchant account ID, set for individual accounts and subaccounts. */ - merchantId: string; + merchantId?: string; } export interface Schema$AccountsAuthInfoResponse { /** @@ -199,25 +202,25 @@ export namespace content_v2 { * only the aggregator ID is defined - For a subaccount of an MCA: both the * merchant ID and the aggregator ID are defined. */ - accountIdentifiers: Schema$AccountIdentifier[]; + accountIdentifiers?: Schema$AccountIdentifier[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountsAuthInfoResponse". */ - kind: string; + kind?: string; } export interface Schema$AccountsClaimWebsiteResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountsClaimWebsiteResponse". */ - kind: string; + kind?: string; } export interface Schema$AccountsCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$AccountsCustomBatchRequestEntry[]; + entries?: Schema$AccountsCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch accounts request. @@ -227,42 +230,42 @@ export namespace content_v2 { * The account to create or update. Only defined if the method is insert or * update. */ - account: Schema$Account; + account?: Schema$Account; /** * The ID of the targeted account. Only defined if the method is get, delete * or claimwebsite. */ - accountId: string; + accountId?: string; /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * Whether the account should be deleted if the account has offers. Only * applicable if the method is delete. */ - force: boolean; + force?: boolean; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; /** * Only applicable if the method is claimwebsite. Indicates whether or not * to take the claim from another account in case there is a conflict. */ - overwrite: boolean; + overwrite?: boolean; } export interface Schema$AccountsCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$AccountsCustomBatchResponseEntry[]; + entries?: Schema$AccountsCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountsCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch accounts response. @@ -272,32 +275,32 @@ export namespace content_v2 { * The retrieved, created, or updated account. Not defined if the method was * delete or claimwebsite. */ - account: Schema$Account; + account?: Schema$Account; /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountsCustomBatchResponseEntry". */ - kind: string; + kind?: string; } export interface Schema$AccountsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountsListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of accounts. */ - nextPageToken: string; - resources: Schema$Account[]; + nextPageToken?: string; + resources?: Schema$Account[]; } /** * The status of an account, i.e., information about its products, which is @@ -307,102 +310,102 @@ export namespace content_v2 { /** * The ID of the account for which the status is reported. */ - accountId: string; + accountId?: string; /** * A list of account level issues. */ - accountLevelIssues: Schema$AccountStatusAccountLevelIssue[]; + accountLevelIssues?: Schema$AccountStatusAccountLevelIssue[]; /** * A list of data quality issues. */ - dataQualityIssues: Schema$AccountStatusDataQualityIssue[]; + dataQualityIssues?: Schema$AccountStatusDataQualityIssue[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountStatus". */ - kind: string; + kind?: string; /** * Whether the account's website is claimed or not. */ - websiteClaimed: boolean; + websiteClaimed?: boolean; } export interface Schema$AccountStatusAccountLevelIssue { /** * Country for which this issue is reported. */ - country: string; + country?: string; /** * The destination the issue applies to. */ - destination: string; + destination?: string; /** * Additional details about the issue. */ - detail: string; + detail?: string; /** * Issue identifier. */ - id: string; + id?: string; /** * Severity of the issue. */ - severity: string; + severity?: string; /** * Short description of the issue. */ - title: string; + title?: string; } export interface Schema$AccountStatusDataQualityIssue { /** * Country for which this issue is reported. */ - country: string; + country?: string; /** * The destination the issue applies to. */ - destination: string; + destination?: string; /** * A more detailed description of the issue. */ - detail: string; + detail?: string; /** * Actual value displayed on the landing page. */ - displayedValue: string; + displayedValue?: string; /** * Example items featuring the issue. */ - exampleItems: Schema$AccountStatusExampleItem[]; + exampleItems?: Schema$AccountStatusExampleItem[]; /** * Issue identifier. */ - id: string; + id?: string; /** * Last time the account was checked for this issue. */ - lastChecked: string; + lastChecked?: string; /** * The attribute name that is relevant for the issue. */ - location: string; + location?: string; /** * Number of items in the account found to have the said issue. */ - numItems: number; + numItems?: number; /** * Severity of the problem. */ - severity: string; + severity?: string; /** * Submitted value that causes the issue. */ - submittedValue: string; + submittedValue?: string; } export interface Schema$AccountstatusesCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$AccountstatusesCustomBatchRequestEntry[]; + entries?: Schema$AccountstatusesCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch accountstatuses request. @@ -411,35 +414,35 @@ export namespace content_v2 { /** * The ID of the (sub-)account whose status to get. */ - accountId: string; + accountId?: string; /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * If set, only issues for the specified destinations are returned, * otherwise only issues for the Shopping destination. */ - destinations: string[]; + destinations?: string[]; /** * The ID of the managing account. */ - merchantId: string; + merchantId?: string; /** * The method (get). */ - method: string; + method?: string; } export interface Schema$AccountstatusesCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$AccountstatusesCustomBatchResponseEntry[]; + entries?: Schema$AccountstatusesCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountstatusesCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch accountstatuses response. @@ -449,27 +452,27 @@ export namespace content_v2 { * The requested account status. Defined if and only if the request was * successful. */ - accountStatus: Schema$AccountStatus; + accountStatus?: Schema$AccountStatus; /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; } export interface Schema$AccountstatusesListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountstatusesListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of account statuses. */ - nextPageToken: string; - resources: Schema$AccountStatus[]; + nextPageToken?: string; + resources?: Schema$AccountStatus[]; } /** * An example of an item that has poor data quality. An item value on the @@ -479,23 +482,23 @@ export namespace content_v2 { /** * Unique item ID as specified in the uploaded product data. */ - itemId: string; + itemId?: string; /** * Landing page of the item. */ - link: string; + link?: string; /** * The item value that was submitted. */ - submittedValue: string; + submittedValue?: string; /** * Title of the item. */ - title: string; + title?: string; /** * The actual value on the landing page. */ - valueOnLandingPage: string; + valueOnLandingPage?: string; } /** * The tax settings of a merchant account. @@ -504,23 +507,23 @@ export namespace content_v2 { /** * The ID of the account to which these account tax settings belong. */ - accountId: string; + accountId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accountTax". */ - kind: string; + kind?: string; /** * Tax rules. Updating the tax rules will enable US taxes (not reversible). * Defining no rules is equivalent to not charging tax at all. */ - rules: Schema$AccountTaxTaxRule[]; + rules?: Schema$AccountTaxTaxRule[]; } export interface Schema$AccounttaxCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$AccounttaxCustomBatchRequestEntry[]; + entries?: Schema$AccounttaxCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch accounttax request. @@ -529,31 +532,31 @@ export namespace content_v2 { /** * The ID of the account for which to get/update account tax settings. */ - accountId: string; + accountId?: string; /** * The account tax settings to update. Only defined if the method is update. */ - accountTax: Schema$AccountTax; + accountTax?: Schema$AccountTax; /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; } export interface Schema$AccounttaxCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$AccounttaxCustomBatchResponseEntry[]; + entries?: Schema$AccounttaxCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accounttaxCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch accounttax response. @@ -562,32 +565,32 @@ export namespace content_v2 { /** * The retrieved or updated account tax settings. */ - accountTax: Schema$AccountTax; + accountTax?: Schema$AccountTax; /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * Identifies what kind of resource this is. Value: the fixed string * "content#accounttaxCustomBatchResponseEntry". */ - kind: string; + kind?: string; } export interface Schema$AccounttaxListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#accounttaxListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of account tax settings. */ - nextPageToken: string; - resources: Schema$AccountTax[]; + nextPageToken?: string; + resources?: Schema$AccountTax[]; } /** * Tax calculation rule to apply in a state or province (USA only). @@ -596,42 +599,42 @@ export namespace content_v2 { /** * Country code in which tax is applicable. */ - country: string; + country?: string; /** * State (or province) is which the tax is applicable, described by its * location id (also called criteria id). */ - locationId: string; + locationId?: string; /** * Explicit tax rate in percent, represented as a floating point number * without the percentage character. Must not be negative. */ - ratePercent: string; + ratePercent?: string; /** * If true, shipping charges are also taxed. */ - shippingTaxed: boolean; + shippingTaxed?: boolean; /** * Whether the tax rate is taken from a global tax table or specified * explicitly. */ - useGlobalRate: boolean; + useGlobalRate?: boolean; } export interface Schema$AccountUser { /** * Whether user is an admin. */ - admin: boolean; + admin?: boolean; /** * User's email address. */ - emailAddress: string; + emailAddress?: string; } export interface Schema$AccountYouTubeChannelLink { /** * Channel ID. */ - channelId: string; + channelId?: string; /** * Status of the link between this Merchant Center account and the YouTube * channel. Upon retrieval, it represents the actual status of the link and @@ -644,7 +647,7 @@ export namespace content_v2 { * at all and will delete the link if it was active or cancel the link * request if it was pending. */ - status: string; + status?: string; } export interface Schema$CarrierRate { /** @@ -652,13 +655,13 @@ export namespace content_v2 { * of supported carriers can be retrieved via the getSupportedCarriers * method. Required. */ - carrierName: string; + carrierName?: string; /** * Carrier service, such as "ground" or "2 days". The * list of supported services for a carrier can be retrieved via the * getSupportedCarriers method. Required. */ - carrierService: string; + carrierService?: string; /** * Additive shipping rate modifier. Can be negative. For example { * "value": "1", "currency" : "USD" @@ -666,37 +669,37 @@ export namespace content_v2 { * "currency" : "USD" } removes $3 from the rate. * Optional. */ - flatAdjustment: Schema$Price; + flatAdjustment?: Schema$Price; /** * Name of the carrier rate. Must be unique per rate group. Required. */ - name: string; + name?: string; /** * Shipping origin for this carrier rate. Required. */ - originPostalCode: string; + originPostalCode?: string; /** * Multiplicative shipping rate modifier as a number in decimal notation. * Can be negative. For example "5.4" increases the rate by 5.4%, * "-3" decreases the rate by 3%. Optional. */ - percentageAdjustment: string; + percentageAdjustment?: string; } export interface Schema$CarriersCarrier { /** * The CLDR country code of the carrier (e.g., "US"). Always * present. */ - country: string; + country?: string; /** * The name of the carrier (e.g., "UPS"). Always present. */ - name: string; + name?: string; /** * A list of supported services (e.g., "ground") for that carrier. * Contains at least one service. */ - services: string[]; + services?: string[]; } /** * Datafeed configuration data. @@ -706,59 +709,59 @@ export namespace content_v2 { * The two-letter ISO 639-1 language in which the attributes are defined in * the data feed. */ - attributeLanguage: string; + attributeLanguage?: string; /** * [DEPRECATED] Please use targets[].language instead. The two-letter ISO * 639-1 language of the items in the feed. Must be a valid language for * targetCountry. */ - contentLanguage: string; + contentLanguage?: string; /** * The type of data feed. For product inventory feeds, only feeds for local * stores, not online stores, are supported. */ - contentType: string; + contentType?: string; /** * Fetch schedule for the feed file. */ - fetchSchedule: Schema$DatafeedFetchSchedule; + fetchSchedule?: Schema$DatafeedFetchSchedule; /** * The filename of the feed. All feeds must have a unique file name. */ - fileName: string; + fileName?: string; /** * Format of the feed file. */ - format: Schema$DatafeedFormat; + format?: Schema$DatafeedFormat; /** * The ID of the data feed. */ - id: string; + id?: string; /** * [DEPRECATED] Please use targets[].includedDestinations instead. The list * of intended destinations (corresponds to checked check boxes in Merchant * Center). */ - intendedDestinations: string[]; + intendedDestinations?: string[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeed". */ - kind: string; + kind?: string; /** * A descriptive name of the data feed. */ - name: string; + name?: string; /** * [DEPRECATED] Please use targets[].country instead. The country where the * items in the feed will be included in the search index, represented as a * CLDR territory code. */ - targetCountry: string; + targetCountry?: string; /** * The targets this feed should apply to (country, language, destinations). */ - targets: Schema$DatafeedTarget[]; + targets?: Schema$DatafeedTarget[]; } /** * The required fields vary based on the frequency of fetching. For a monthly @@ -770,43 +773,43 @@ export namespace content_v2 { /** * The day of the month the feed file should be fetched (1-31). */ - dayOfMonth: number; + dayOfMonth?: number; /** * The URL where the feed file can be fetched. Google Merchant Center will * support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP * protocols, so the value will need to be a valid link using one of those * four protocols. */ - fetchUrl: string; + fetchUrl?: string; /** * The hour of the day the feed file should be fetched (0-23). */ - hour: number; + hour?: number; /** * The minute of the hour the feed file should be fetched (0-59). Read-only. */ - minuteOfHour: number; + minuteOfHour?: number; /** * An optional password for fetch_url. */ - password: string; + password?: string; /** * Whether the scheduled fetch is paused or not. */ - paused: boolean; + paused?: boolean; /** * Time zone used for schedule. UTC by default. E.g., * "America/Los_Angeles". */ - timeZone: string; + timeZone?: string; /** * An optional user name for fetch_url. */ - username: string; + username?: string; /** * The day of the week the feed file should be fetched. */ - weekday: string; + weekday?: string; } export interface Schema$DatafeedFormat { /** @@ -814,23 +817,23 @@ export namespace content_v2 { * feed. If not specified, the delimiter will be auto-detected. Ignored for * non-DSV data feeds. */ - columnDelimiter: string; + columnDelimiter?: string; /** * Character encoding scheme of the data feed. If not specified, the * encoding will be auto-detected. */ - fileEncoding: string; + fileEncoding?: string; /** * Specifies how double quotes are interpreted. If not specified, the mode * will be auto-detected. Ignored for non-DSV data feeds. */ - quotingMode: string; + quotingMode?: string; } export interface Schema$DatafeedsCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$DatafeedsCustomBatchRequestEntry[]; + entries?: Schema$DatafeedsCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch datafeeds request. @@ -839,31 +842,31 @@ export namespace content_v2 { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * The data feed to insert. */ - datafeed: Schema$Datafeed; + datafeed?: Schema$Datafeed; /** * The ID of the data feed to get, delete or fetch. */ - datafeedId: string; + datafeedId?: string; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; } export interface Schema$DatafeedsCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$DatafeedsCustomBatchResponseEntry[]; + entries?: Schema$DatafeedsCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeedsCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch datafeeds response. @@ -872,35 +875,35 @@ export namespace content_v2 { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * The requested data feed. Defined if and only if the request was * successful. */ - datafeed: Schema$Datafeed; + datafeed?: Schema$Datafeed; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; } export interface Schema$DatafeedsFetchNowResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeedsFetchNowResponse". */ - kind: string; + kind?: string; } export interface Schema$DatafeedsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeedsListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of datafeeds. */ - nextPageToken: string; - resources: Schema$Datafeed[]; + nextPageToken?: string; + resources?: Schema$Datafeed[]; } /** * The status of a datafeed, i.e., the result of the last retrieval of the @@ -911,44 +914,44 @@ export namespace content_v2 { * The country for which the status is reported, represented as a CLDR * territory code. */ - country: string; + country?: string; /** * The ID of the feed for which the status is reported. */ - datafeedId: string; + datafeedId?: string; /** * The list of errors occurring in the feed. */ - errors: Schema$DatafeedStatusError[]; + errors?: Schema$DatafeedStatusError[]; /** * The number of items in the feed that were processed. */ - itemsTotal: string; + itemsTotal?: string; /** * The number of items in the feed that were valid. */ - itemsValid: string; + itemsValid?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeedStatus". */ - kind: string; + kind?: string; /** * The two-letter ISO 639-1 language for which the status is reported. */ - language: string; + language?: string; /** * The last date at which the feed was uploaded. */ - lastUploadDate: string; + lastUploadDate?: string; /** * The processing status of the feed. */ - processingStatus: string; + processingStatus?: string; /** * The list of errors occurring in the feed. */ - warnings: Schema$DatafeedStatusError[]; + warnings?: Schema$DatafeedStatusError[]; } /** * An error occurring in the feed, like "invalid price". @@ -957,25 +960,25 @@ export namespace content_v2 { /** * The code of the error, e.g., "validation/invalid_value". */ - code: string; + code?: string; /** * The number of occurrences of the error in the feed. */ - count: string; + count?: string; /** * A list of example occurrences of the error, grouped by product. */ - examples: Schema$DatafeedStatusExample[]; + examples?: Schema$DatafeedStatusExample[]; /** * The error message, e.g., "Invalid price". */ - message: string; + message?: string; } export interface Schema$DatafeedstatusesCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$DatafeedstatusesCustomBatchRequestEntry[]; + entries?: Schema$DatafeedstatusesCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch datafeedstatuses request. @@ -984,39 +987,39 @@ export namespace content_v2 { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * The country for which to get the datafeed status. If this parameter is * provided then language must also be provided. Note that for multi-target * datafeeds this parameter is required. */ - country: string; + country?: string; /** * The ID of the data feed to get. */ - datafeedId: string; + datafeedId?: string; /** * The language for which to get the datafeed status. If this parameter is * provided then country must also be provided. Note that for multi-target * datafeeds this parameter is required. */ - language: string; + language?: string; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; } export interface Schema$DatafeedstatusesCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$DatafeedstatusesCustomBatchResponseEntry[]; + entries?: Schema$DatafeedstatusesCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeedstatusesCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch datafeedstatuses response. @@ -1025,28 +1028,28 @@ export namespace content_v2 { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * The requested data feed status. Defined if and only if the request was * successful. */ - datafeedStatus: Schema$DatafeedStatus; + datafeedStatus?: Schema$DatafeedStatus; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; } export interface Schema$DatafeedstatusesListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#datafeedstatusesListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of datafeed statuses. */ - nextPageToken: string; - resources: Schema$DatafeedStatus[]; + nextPageToken?: string; + resources?: Schema$DatafeedStatus[]; } /** * An example occurrence for a particular error. @@ -1055,56 +1058,56 @@ export namespace content_v2 { /** * The ID of the example item. */ - itemId: string; + itemId?: string; /** * Line number in the data feed where the example is found. */ - lineNumber: string; + lineNumber?: string; /** * The problematic value. */ - value: string; + value?: string; } export interface Schema$DatafeedTarget { /** * The country where the items in the feed will be included in the search * index, represented as a CLDR territory code. */ - country: string; + country?: string; /** * The list of destinations to exclude for this target (corresponds to * unchecked check boxes in Merchant Center). */ - excludedDestinations: string[]; + excludedDestinations?: string[]; /** * The list of destinations to include for this target (corresponds to * checked check boxes in Merchant Center). Default destinations are always * included unless provided in the excluded_destination field. */ - includedDestinations: string[]; + includedDestinations?: string[]; /** * The two-letter ISO 639-1 language of the items in the feed. Must be a * valid language for targets[].country. */ - language: string; + language?: string; } export interface Schema$DeliveryTime { /** * Holiday cutoff definitions. If configured, they specify order cutoff * times for holiday-specific shipping. */ - holidayCutoffs: Schema$HolidayCutoff[]; + holidayCutoffs?: Schema$HolidayCutoff[]; /** * Maximum number of business days that is spent in transit. 0 means same * day delivery, 1 means next day delivery. Must be greater than or equal to * minTransitTimeInDays. Required. */ - maxTransitTimeInDays: number; + maxTransitTimeInDays?: number; /** * Minimum number of business days that is spent in transit. 0 means same * day delivery, 1 means next day delivery. Required. */ - minTransitTimeInDays: number; + minTransitTimeInDays?: number; } /** * An error returned by the API. @@ -1113,15 +1116,15 @@ export namespace content_v2 { /** * The domain of the error. */ - domain: string; + domain?: string; /** * A description of the error. */ - message: string; + message?: string; /** * The error code. */ - reason: string; + reason?: string; } /** * A list of errors returned by a failed batch entry. @@ -1130,43 +1133,43 @@ export namespace content_v2 { /** * The HTTP status of the first error in errors. */ - code: number; + code?: number; /** * A list of errors. */ - errors: Schema$Error[]; + errors?: Schema$Error[]; /** * The message of the first error in errors. */ - message: string; + message?: string; } export interface Schema$GmbAccounts { /** * The ID of the account. */ - accountId: string; + accountId?: string; /** * A list of GMB accounts which are available to the merchant. */ - gmbAccounts: Schema$GmbAccountsGmbAccount[]; + gmbAccounts?: Schema$GmbAccountsGmbAccount[]; } export interface Schema$GmbAccountsGmbAccount { /** * The email which identifies the GMB account. */ - email: string; + email?: string; /** * Number of listings under this account. */ - listingCount: string; + listingCount?: string; /** * The name of the GMB account. */ - name: string; + name?: string; /** * The type of the GMB account (User or Business). */ - type: string; + type?: string; } /** * A non-empty list of row or column headers for a table. Exactly one of @@ -1177,7 +1180,7 @@ export namespace content_v2 { * A list of location ID sets. Must be non-empty. Can only be set if all * other fields are not set. */ - locations: Schema$LocationIdSet[]; + locations?: Schema$LocationIdSet[]; /** * A list of inclusive number of items upper bounds. The last value can be * "infinity". For example ["10", "50", @@ -1185,7 +1188,7 @@ export namespace content_v2 { * " 50 items". Must be non-empty. Can only be set if all other * fields are not set. */ - numberOfItems: string[]; + numberOfItems?: string[]; /** * A list of postal group names. The last value can be "all other * locations". Example: ["zone 1", "zone 2", @@ -1193,7 +1196,7 @@ export namespace content_v2 { * match the delivery country of the service. Must be non-empty. Can only be * set if all other fields are not set. */ - postalCodeGroupNames: string[]; + postalCodeGroupNames?: string[]; /** * A list of inclusive order price upper bounds. The last price's value * can be "infinity". For example [{"value": @@ -1205,7 +1208,7 @@ export namespace content_v2 { * must have the same currency. Must be non-empty. Can only be set if all * other fields are not set. */ - prices: Schema$Price[]; + prices?: Schema$Price[]; /** * A list of inclusive order weight upper bounds. The last weight's * value can be "infinity". For example [{"value": @@ -1216,35 +1219,35 @@ export namespace content_v2 { * service must have the same unit. Must be non-empty. Can only be set if * all other fields are not set. */ - weights: Schema$Weight[]; + weights?: Schema$Weight[]; } export interface Schema$HolidayCutoff { /** * Date of the order deadline, in ISO 8601 format. E.g. * "2016-11-29" for 29th November 2016. Required. */ - deadlineDate: string; + deadlineDate?: string; /** * Hour of the day on the deadline date until which the order has to be * placed to qualify for the delivery guarantee. Possible values are: 0 * (midnight), 1, ..., 12 (noon), 13, ..., 23. Required. */ - deadlineHour: number; + deadlineHour?: number; /** * Timezone identifier for the deadline hour. A list of identifiers can be * found in the AdWords API documentation. E.g. "Europe/Zurich". * Required. */ - deadlineTimezone: string; + deadlineTimezone?: string; /** * Unique identifier for the holiday. Required. */ - holidayId: string; + holidayId?: string; /** * Date on which the deadline will become visible to consumers in ISO 8601 * format. E.g. "2016-10-31" for 31st October 2016. Required. */ - visibleFromDate: string; + visibleFromDate?: string; } export interface Schema$HolidaysHoliday { /** @@ -1253,63 +1256,63 @@ export namespace content_v2 { * only be configured in a shipping settings service with matching delivery * country. Always present. */ - countryCode: string; + countryCode?: string; /** * Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for * Christmas 2016. Always present. */ - date: string; + date?: string; /** * Date on which the order has to arrive at the customer's, in ISO 8601 * format. E.g. "2016-12-24" for 24th December 2016. Always * present. */ - deliveryGuaranteeDate: string; + deliveryGuaranteeDate?: string; /** * Hour of the day in the delivery location's timezone on the guaranteed * delivery date by which the order has to arrive at the customer's. * Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. Always * present. */ - deliveryGuaranteeHour: string; + deliveryGuaranteeHour?: string; /** * Unique identifier for the holiday to be used when configuring holiday * cutoffs. Always present. */ - id: string; + id?: string; /** * The holiday type. Always present. */ - type: string; + type?: string; } export interface Schema$Installment { /** * The amount the buyer has to pay per month. */ - amount: Schema$Price; + amount?: Schema$Price; /** * The number of installments the buyer has to pay. */ - months: string; + months?: string; } export interface Schema$Inventory { /** * The availability of the product. */ - availability: string; + availability?: string; /** * Number and amount of installments to pay for an item. Brazil only. */ - installment: Schema$Installment; + installment?: Schema$Installment; /** * Identifies what kind of resource this is. Value: the fixed string * "content#inventory". */ - kind: string; + kind?: string; /** * Loyalty points that users receive after purchasing the item. Japan only. */ - loyaltyPoints: Schema$LoyaltyPoints; + loyaltyPoints?: Schema$LoyaltyPoints; /** * Store pickup information. Only supported for local inventory. Not setting * pickup means "don't update" while setting it to the empty @@ -1317,38 +1320,38 @@ export namespace content_v2 { * pickupSla must be set together, unless pickupMethod is "not * supported". */ - pickup: Schema$InventoryPickup; + pickup?: Schema$InventoryPickup; /** * The price of the product. */ - price: Schema$Price; + price?: Schema$Price; /** * The quantity of the product. Must be equal to or greater than zero. * Supported only for local products. */ - quantity: number; + quantity?: number; /** * The sale price of the product. Mandatory if sale_price_effective_date is * defined. */ - salePrice: Schema$Price; + salePrice?: Schema$Price; /** * A date range represented by a pair of ISO 8601 dates separated by a * space, comma, or slash. Both dates might be specified as 'null' * if undecided. */ - salePriceEffectiveDate: string; + salePriceEffectiveDate?: string; /** * The quantity of the product that is reserved for sell-on-google ads. * Supported only for online products. */ - sellOnGoogleQuantity: number; + sellOnGoogleQuantity?: number; } export interface Schema$InventoryCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$InventoryCustomBatchRequestEntry[]; + entries?: Schema$InventoryCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch inventory request. @@ -1357,35 +1360,35 @@ export namespace content_v2 { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * Price and availability of the product. */ - inventory: Schema$Inventory; + inventory?: Schema$Inventory; /** * The ID of the managing account. */ - merchantId: string; + merchantId?: string; /** * The ID of the product for which to update price and availability. */ - productId: string; + productId?: string; /** * The code of the store for which to update price and availability. Use * online to update price and availability of an online product. */ - storeCode: string; + storeCode?: string; } export interface Schema$InventoryCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$InventoryCustomBatchResponseEntry[]; + entries?: Schema$InventoryCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#inventoryCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch inventory response. @@ -1394,16 +1397,16 @@ export namespace content_v2 { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * Identifies what kind of resource this is. Value: the fixed string * "content#inventoryCustomBatchResponseEntry". */ - kind: string; + kind?: string; } export interface Schema$InventoryPickup { /** @@ -1412,27 +1415,27 @@ export namespace content_v2 { * for local inventory. Unless the value is "not supported", must * be submitted together with pickupSla. */ - pickupMethod: string; + pickupMethod?: string; /** * The expected date that an order will be ready for pickup, relative to * when the order is placed. Only supported for local inventory. Must be * submitted together with pickupMethod. */ - pickupSla: string; + pickupSla?: string; } export interface Schema$InventorySetRequest { /** * The availability of the product. */ - availability: string; + availability?: string; /** * Number and amount of installments to pay for an item. Brazil only. */ - installment: Schema$Installment; + installment?: Schema$Installment; /** * Loyalty points that users receive after purchasing the item. Japan only. */ - loyaltyPoints: Schema$LoyaltyPoints; + loyaltyPoints?: Schema$LoyaltyPoints; /** * Store pickup information. Only supported for local inventory. Not setting * pickup means "don't update" while setting it to the empty @@ -1440,690 +1443,690 @@ export namespace content_v2 { * pickupSla must be set together, unless pickupMethod is "not * supported". */ - pickup: Schema$InventoryPickup; + pickup?: Schema$InventoryPickup; /** * The price of the product. */ - price: Schema$Price; + price?: Schema$Price; /** * The quantity of the product. Must be equal to or greater than zero. * Supported only for local products. */ - quantity: number; + quantity?: number; /** * The sale price of the product. Mandatory if sale_price_effective_date is * defined. */ - salePrice: Schema$Price; + salePrice?: Schema$Price; /** * A date range represented by a pair of ISO 8601 dates separated by a * space, comma, or slash. Both dates might be specified as 'null' * if undecided. */ - salePriceEffectiveDate: string; + salePriceEffectiveDate?: string; /** * The quantity of the product that is reserved for sell-on-google ads. * Supported only for online products. */ - sellOnGoogleQuantity: number; + sellOnGoogleQuantity?: number; } export interface Schema$InventorySetResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#inventorySetResponse". */ - kind: string; + kind?: string; } export interface Schema$LiaAboutPageSettings { /** * The status of the verification process for the About page. */ - status: string; + status?: string; /** * The URL for the About page. */ - url: string; + url?: string; } export interface Schema$LiaCountrySettings { /** * The settings for the About page. */ - about: Schema$LiaAboutPageSettings; + about?: Schema$LiaAboutPageSettings; /** * CLDR country code (e.g. "US"). */ - country: string; + country?: string; /** * The status of the "Merchant hosted local storefront" feature. */ - hostedLocalStorefrontActive: boolean; + hostedLocalStorefrontActive?: boolean; /** * LIA inventory verification settings. */ - inventory: Schema$LiaInventorySettings; + inventory?: Schema$LiaInventorySettings; /** * LIA "On Display To Order" settings. */ - onDisplayToOrder: Schema$LiaOnDisplayToOrderSettings; + onDisplayToOrder?: Schema$LiaOnDisplayToOrderSettings; /** * The status of the "Store pickup" feature. */ - storePickupActive: boolean; + storePickupActive?: boolean; } export interface Schema$LiaInventorySettings { /** * The email of the contact for the inventory verification process. */ - inventoryVerificationContactEmail: string; + inventoryVerificationContactEmail?: string; /** * The name of the contact for the inventory verification process. */ - inventoryVerificationContactName: string; + inventoryVerificationContactName?: string; /** * The status of the verification contact. */ - inventoryVerificationContactStatus: string; + inventoryVerificationContactStatus?: string; /** * The status of the inventory verification process. */ - status: string; + status?: string; } export interface Schema$LiaOnDisplayToOrderSettings { /** * Shipping cost and policy URL. */ - shippingCostPolicyUrl: string; + shippingCostPolicyUrl?: string; /** * The status of the ?On display to order? feature. */ - status: string; + status?: string; } export interface Schema$LiaSettings { /** * The ID of the account to which these LIA settings belong. Ignored upon * update, always present in get request responses. */ - accountId: string; + accountId?: string; /** * The LIA settings for each country. */ - countrySettings: Schema$LiaCountrySettings[]; + countrySettings?: Schema$LiaCountrySettings[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#liaSettings". */ - kind: string; + kind?: string; } export interface Schema$LiasettingsCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$LiasettingsCustomBatchRequestEntry[]; + entries?: Schema$LiasettingsCustomBatchRequestEntry[]; } export interface Schema$LiasettingsCustomBatchRequestEntry { /** * The ID of the account for which to get/update account shipping settings. */ - accountId: string; + accountId?: string; /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * Inventory validation contact email. Required only for * SetInventoryValidationContact. */ - contactEmail: string; + contactEmail?: string; /** * Inventory validation contact name. Required only for * SetInventoryValidationContact. */ - contactName: string; + contactName?: string; /** * The country code. Required only for RequestInventoryVerification. */ - country: string; + country?: string; /** * The GMB account. Required only for RequestGmbAccess. */ - gmbEmail: string; + gmbEmail?: string; /** * The account Lia settings to update. Only defined if the method is update. */ - liaSettings: Schema$LiaSettings; + liaSettings?: Schema$LiaSettings; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; } export interface Schema$LiasettingsCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$LiasettingsCustomBatchResponseEntry[]; + entries?: Schema$LiasettingsCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsCustomBatchResponse". */ - kind: string; + kind?: string; } export interface Schema$LiasettingsCustomBatchResponseEntry { /** * The ID of the request entry to which this entry responds. */ - batchId: number; + batchId?: number; /** * A list of errors defined if, and only if, the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The the list of accessible GMB accounts. */ - gmbAccounts: Schema$GmbAccounts; + gmbAccounts?: Schema$GmbAccounts; /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The retrieved or updated Lia settings. */ - liaSettings: Schema$LiaSettings; + liaSettings?: Schema$LiaSettings; } export interface Schema$LiasettingsGetAccessibleGmbAccountsResponse { /** * The ID of the account. */ - accountId: string; + accountId?: string; /** * A list of GMB accounts which are available to the merchant. */ - gmbAccounts: Schema$GmbAccountsGmbAccount[]; + gmbAccounts?: Schema$GmbAccountsGmbAccount[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsGetAccessibleGmbAccountsResponse". */ - kind: string; + kind?: string; } export interface Schema$LiasettingsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of LIA settings. */ - nextPageToken: string; - resources: Schema$LiaSettings[]; + nextPageToken?: string; + resources?: Schema$LiaSettings[]; } export interface Schema$LiasettingsRequestGmbAccessResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsRequestGmbAccessResponse". */ - kind: string; + kind?: string; } export interface Schema$LiasettingsRequestInventoryVerificationResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsRequestInventoryVerificationResponse". */ - kind: string; + kind?: string; } export interface Schema$LiasettingsSetInventoryVerificationContactResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#liasettingsSetInventoryVerificationContactResponse". */ - kind: string; + kind?: string; } export interface Schema$LocationIdSet { /** * A non-empty list of location IDs. They must all be of the same location * type (e.g., state). */ - locationIds: string[]; + locationIds?: string[]; } export interface Schema$LoyaltyPoints { /** * Name of loyalty points program. It is recommended to limit the name to 12 * full-width characters or 24 Roman characters. */ - name: string; + name?: string; /** * The retailer's loyalty points in absolute value. */ - pointsValue: string; + pointsValue?: string; /** * The ratio of a point when converted to currency. Google assumes currency * based on Merchant Center settings. If ratio is left out, it defaults * to 1.0. */ - ratio: number; + ratio?: number; } export interface Schema$Order { /** * Whether the order was acknowledged. */ - acknowledged: boolean; + acknowledged?: boolean; /** * The channel type of the order: "purchaseOnGoogle" or * "googleExpress". */ - channelType: string; + channelType?: string; /** * The details of the customer who placed the order. */ - customer: Schema$OrderCustomer; + customer?: Schema$OrderCustomer; /** * The details for the delivery. */ - deliveryDetails: Schema$OrderDeliveryDetails; + deliveryDetails?: Schema$OrderDeliveryDetails; /** * The REST id of the order. Globally unique. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#order". */ - kind: string; + kind?: string; /** * Line items that are ordered. */ - lineItems: Schema$OrderLineItem[]; - merchantId: string; + lineItems?: Schema$OrderLineItem[]; + merchantId?: string; /** * Merchant-provided id of the order. */ - merchantOrderId: string; + merchantOrderId?: string; /** * The net amount for the order. For example, if an order was originally for * a grand total of $100 and a refund was issued for $20, the net amount * will be $80. */ - netAmount: Schema$Price; + netAmount?: Schema$Price; /** * The details of the payment method. */ - paymentMethod: Schema$OrderPaymentMethod; + paymentMethod?: Schema$OrderPaymentMethod; /** * The status of the payment. */ - paymentStatus: string; + paymentStatus?: string; /** * The date when the order was placed, in ISO 8601 format. */ - placedDate: string; + placedDate?: string; /** * The details of the merchant provided promotions applied to the order. * More details about the program are here. */ - promotions: Schema$OrderPromotion[]; + promotions?: Schema$OrderPromotion[]; /** * Refunds for the order. */ - refunds: Schema$OrderRefund[]; + refunds?: Schema$OrderRefund[]; /** * Shipments of the order. */ - shipments: Schema$OrderShipment[]; + shipments?: Schema$OrderShipment[]; /** * The total cost of shipping for all items. */ - shippingCost: Schema$Price; + shippingCost?: Schema$Price; /** * The tax for the total shipping cost. */ - shippingCostTax: Schema$Price; + shippingCostTax?: Schema$Price; /** * The requested shipping option. */ - shippingOption: string; + shippingOption?: string; /** * The status of the order. */ - status: string; + status?: string; } export interface Schema$OrderAddress { /** * CLDR country code (e.g. "US"). */ - country: string; + country?: string; /** * Strings representing the lines of the printed label for mailing the * order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, * CA, 94043 United States */ - fullAddress: string[]; + fullAddress?: string[]; /** * Whether the address is a post office box. */ - isPostOfficeBox: boolean; + isPostOfficeBox?: boolean; /** * City, town or commune. May also include dependent localities or * sublocalities (e.g. neighborhoods or suburbs). */ - locality: string; + locality?: string; /** * Postal Code or ZIP (e.g. "94043"). */ - postalCode: string; + postalCode?: string; /** * Name of the recipient. */ - recipientName: string; + recipientName?: string; /** * Top-level administrative subdivision of the country (e.g. * "CA"). */ - region: string; + region?: string; /** * Street-level part of the address. */ - streetAddress: string[]; + streetAddress?: string[]; } export interface Schema$OrderCancellation { /** * The actor that created the cancellation. */ - actor: string; + actor?: string; /** * Date on which the cancellation has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * The quantity that was canceled. */ - quantity: number; + quantity?: number; /** * The reason for the cancellation. Orders that are cancelled with a * noInventory reason will lead to the removal of the product from POG until * you make an update to that product. This will not affect your Shopping * ads. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrderCustomer { /** * Email address that should be used for order related communications. In * certain cases this might not be a real users email, but a proxy email. */ - email: string; + email?: string; /** * Deprecated. Please use marketingRightsInfo instead. */ - explicitMarketingPreference: boolean; + explicitMarketingPreference?: boolean; /** * Full name of the customer. */ - fullName: string; + fullName?: string; /** * Customer's marketing preferences. */ - marketingRightsInfo: Schema$OrderCustomerMarketingRightsInfo; + marketingRightsInfo?: Schema$OrderCustomerMarketingRightsInfo; } export interface Schema$OrderCustomerMarketingRightsInfo { /** * Last known user selection regarding marketing preferences. In certain * cases this selection might not be known, so this field would be empty. */ - explicitMarketingPreference: string; + explicitMarketingPreference?: string; /** * Timestamp when last time marketing preference was updated. Could be * empty, if user wasn't offered a selection yet. */ - lastUpdatedTimestamp: string; + lastUpdatedTimestamp?: string; /** * Email address that can be used for marketing purposes. This field is only * filled when explicitMarketingPreference is equal to 'granted'. */ - marketingEmailAddress: string; + marketingEmailAddress?: string; } export interface Schema$OrderDeliveryDetails { /** * The delivery address */ - address: Schema$OrderAddress; + address?: Schema$OrderAddress; /** * The phone number of the person receiving the delivery. */ - phoneNumber: string; + phoneNumber?: string; } export interface Schema$OrderLineItem { /** * Annotations that are attached to the line item. */ - annotations: Schema$OrderMerchantProvidedAnnotation[]; + annotations?: Schema$OrderMerchantProvidedAnnotation[]; /** * Cancellations of the line item. */ - cancellations: Schema$OrderCancellation[]; + cancellations?: Schema$OrderCancellation[]; /** * The id of the line item. */ - id: string; + id?: string; /** * Total price for the line item. For example, if two items for $10 are * purchased, the total price will be $20. */ - price: Schema$Price; + price?: Schema$Price; /** * Product data from the time of the order placement. */ - product: Schema$OrderLineItemProduct; + product?: Schema$OrderLineItemProduct; /** * Number of items canceled. */ - quantityCanceled: number; + quantityCanceled?: number; /** * Number of items delivered. */ - quantityDelivered: number; + quantityDelivered?: number; /** * Number of items ordered. */ - quantityOrdered: number; + quantityOrdered?: number; /** * Number of items pending. */ - quantityPending: number; + quantityPending?: number; /** * Number of items returned. */ - quantityReturned: number; + quantityReturned?: number; /** * Number of items shipped. */ - quantityShipped: number; + quantityShipped?: number; /** * Details of the return policy for the line item. */ - returnInfo: Schema$OrderLineItemReturnInfo; + returnInfo?: Schema$OrderLineItemReturnInfo; /** * Returns of the line item. */ - returns: Schema$OrderReturn[]; + returns?: Schema$OrderReturn[]; /** * Details of the requested shipping for the line item. */ - shippingDetails: Schema$OrderLineItemShippingDetails; + shippingDetails?: Schema$OrderLineItemShippingDetails; /** * Total tax amount for the line item. For example, if two items are * purchased, and each have a cost tax of $2, the total tax amount will be * $4. */ - tax: Schema$Price; + tax?: Schema$Price; } export interface Schema$OrderLineItemProduct { /** * Brand of the item. */ - brand: string; + brand?: string; /** * The item's channel (online or local). */ - channel: string; + channel?: string; /** * Condition or state of the item. */ - condition: string; + condition?: string; /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number (GTIN) of the item. */ - gtin: string; + gtin?: string; /** * The REST id of the product. */ - id: string; + id?: string; /** * URL of an image of the item. */ - imageLink: string; + imageLink?: string; /** * Shared identifier for all variants of the same product. */ - itemGroupId: string; + itemGroupId?: string; /** * Manufacturer Part Number (MPN) of the item. */ - mpn: string; + mpn?: string; /** * An identifier of the item. */ - offerId: string; + offerId?: string; /** * Price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * URL to the cached image shown to the user when order was placed. */ - shownImage: string; + shownImage?: string; /** * The CLDR territory code of the target country of the product. */ - targetCountry: string; + targetCountry?: string; /** * The title of the product. */ - title: string; + title?: string; /** * Variant attributes for the item. These are dimensions of the product, * such as color, gender, material, pattern, and size. You can find a * comprehensive list of variant attributes here. */ - variantAttributes: Schema$OrderLineItemProductVariantAttribute[]; + variantAttributes?: Schema$OrderLineItemProductVariantAttribute[]; } export interface Schema$OrderLineItemProductVariantAttribute { /** * The dimension of the variant. */ - dimension: string; + dimension?: string; /** * The value for the dimension. */ - value: string; + value?: string; } export interface Schema$OrderLineItemReturnInfo { /** * How many days later the item can be returned. */ - daysToReturn: number; + daysToReturn?: number; /** * Whether the item is returnable. */ - isReturnable: boolean; + isReturnable?: boolean; /** * URL of the item return policy. */ - policyUrl: string; + policyUrl?: string; } export interface Schema$OrderLineItemShippingDetails { /** * The delivery by date, in ISO 8601 format. */ - deliverByDate: string; + deliverByDate?: string; /** * Details of the shipping method. */ - method: Schema$OrderLineItemShippingDetailsMethod; + method?: Schema$OrderLineItemShippingDetailsMethod; /** * The ship by date, in ISO 8601 format. */ - shipByDate: string; + shipByDate?: string; } export interface Schema$OrderLineItemShippingDetailsMethod { /** * The carrier for the shipping. Optional. See shipments[].carrier for a * list of acceptable values. */ - carrier: string; + carrier?: string; /** * Maximum transit time. */ - maxDaysInTransit: number; + maxDaysInTransit?: number; /** * The name of the shipping method. */ - methodName: string; + methodName?: string; /** * Minimum transit time. */ - minDaysInTransit: number; + minDaysInTransit?: number; } export interface Schema$OrderMerchantProvidedAnnotation { /** * Key for additional merchant provided (as key-value pairs) annotation * about the line item. */ - key: string; + key?: string; /** * Value for additional merchant provided (as key-value pairs) annotation * about the line item. */ - value: string; + value?: string; } export interface Schema$OrderPaymentMethod { /** * The billing address. */ - billingAddress: Schema$OrderAddress; + billingAddress?: Schema$OrderAddress; /** * The card expiration month (January = 1, February = 2 etc.). */ - expirationMonth: number; + expirationMonth?: number; /** * The card expiration year (4-digit, e.g. 2015). */ - expirationYear: number; + expirationYear?: number; /** * The last four digits of the card number. */ - lastFourDigits: string; + lastFourDigits?: string; /** * The billing phone number. */ - phoneNumber: string; + phoneNumber?: string; /** * The type of instrument. Acceptable values are: - "AMEX" - * "DISCOVER" - "JCB" - "MASTERCARD" - * "UNIONPAY" - "VISA" - "" */ - type: string; + type?: string; } export interface Schema$OrderPromotion { - benefits: Schema$OrderPromotionBenefit[]; + benefits?: Schema$OrderPromotionBenefit[]; /** * The date and time frame when the promotion is active and ready for * validation review. Note that the promotion live time may be delayed for a @@ -2133,122 +2136,122 @@ export namespace content_v2 { * the sale starts (in Greenwich Mean Time, GMT), followed by an expression * of the time zone for the sale. The end date is in the same format. */ - effectiveDates: string; + effectiveDates?: string; /** * Optional. The text code that corresponds to the promotion when applied on * the retailer?s website. */ - genericRedemptionCode: string; + genericRedemptionCode?: string; /** * The unique ID of the promotion. */ - id: string; + id?: string; /** * The full title of the promotion. */ - longTitle: string; + longTitle?: string; /** * Whether the promotion is applicable to all products or only specific * products. */ - productApplicability: string; + productApplicability?: string; /** * Indicates that the promotion is valid online. */ - redemptionChannel: string; + redemptionChannel?: string; } export interface Schema$OrderPromotionBenefit { /** * The discount in the order price when the promotion is applied. */ - discount: Schema$Price; + discount?: Schema$Price; /** * The OfferId(s) that were purchased in this order and map to this specific * benefit of the promotion. */ - offerIds: string[]; + offerIds?: string[]; /** * Further describes the benefit of the promotion. Note that we will expand * on this enumeration as we support new promotion sub-types. */ - subType: string; + subType?: string; /** * The impact on tax when the promotion is applied. */ - taxImpact: Schema$Price; + taxImpact?: Schema$Price; /** * Describes whether the promotion applies to products (e.g. 20% off) or to * shipping (e.g. Free Shipping). */ - type: string; + type?: string; } export interface Schema$OrderRefund { /** * The actor that created the refund. */ - actor: string; + actor?: string; /** * The amount that is refunded. */ - amount: Schema$Price; + amount?: Schema$Price; /** * Date on which the item has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * The reason for the refund. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrderReturn { /** * The actor that created the refund. */ - actor: string; + actor?: string; /** * Date on which the item has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * Quantity that is returned. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersAcknowledgeRequest { /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; } export interface Schema$OrdersAcknowledgeResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersAcknowledgeResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersAdvanceTestOrderResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersAdvanceTestOrderResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCancelLineItemRequest { /** @@ -2256,79 +2259,79 @@ export namespace content_v2 { * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amount: Schema$Price; + amount?: Schema$Price; /** * Amount to refund for the cancelation. Optional. If not set, Google will * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to cancellation amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to cancel. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to cancel. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to cancel. */ - quantity: number; + quantity?: number; /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCancelLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCancelLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCancelRequest { /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCancelResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCancelResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCreateTestOrderRequest { /** @@ -2336,116 +2339,116 @@ export namespace content_v2 { * a shortcut for retrieving a template and then creating an order using * that template. */ - templateName: string; + templateName?: string; /** * The test order to create. */ - testOrder: Schema$TestOrder; + testOrder?: Schema$TestOrder; } export interface Schema$OrdersCreateTestOrderResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCreateTestOrderResponse". */ - kind: string; + kind?: string; /** * The ID of the newly created test order. */ - orderId: string; + orderId?: string; } export interface Schema$OrdersCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$OrdersCustomBatchRequestEntry[]; + entries?: Schema$OrdersCustomBatchRequestEntry[]; } export interface Schema$OrdersCustomBatchRequestEntry { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * Required for cancel method. */ - cancel: Schema$OrdersCustomBatchRequestEntryCancel; + cancel?: Schema$OrdersCustomBatchRequestEntryCancel; /** * Required for cancelLineItem method. */ - cancelLineItem: Schema$OrdersCustomBatchRequestEntryCancelLineItem; + cancelLineItem?: Schema$OrdersCustomBatchRequestEntryCancelLineItem; /** * Required for inStoreReturnLineItem method. */ - inStoreRefundLineItem: + inStoreRefundLineItem?: Schema$OrdersCustomBatchRequestEntryInStoreRefundLineItem; /** * The ID of the managing account. */ - merchantId: string; + merchantId?: string; /** * The merchant order id. Required for updateMerchantOrderId and * getByMerchantOrderId methods. */ - merchantOrderId: string; + merchantOrderId?: string; /** * The method to apply. */ - method: string; + method?: string; /** * The ID of the operation. Unique across all operations for a given order. * Required for all methods beside get and getByMerchantOrderId. */ - operationId: string; + operationId?: string; /** * The ID of the order. Required for all methods beside * getByMerchantOrderId. */ - orderId: string; + orderId?: string; /** * Required for refund method. */ - refund: Schema$OrdersCustomBatchRequestEntryRefund; + refund?: Schema$OrdersCustomBatchRequestEntryRefund; /** * Required for rejectReturnLineItem method. */ - rejectReturnLineItem: + rejectReturnLineItem?: Schema$OrdersCustomBatchRequestEntryRejectReturnLineItem; /** * Required for returnLineItem method. */ - returnLineItem: Schema$OrdersCustomBatchRequestEntryReturnLineItem; + returnLineItem?: Schema$OrdersCustomBatchRequestEntryReturnLineItem; /** * Required for returnRefundLineItem method. */ - returnRefundLineItem: + returnRefundLineItem?: Schema$OrdersCustomBatchRequestEntryReturnRefundLineItem; /** * Required for setLineItemMetadata method. */ - setLineItemMetadata: + setLineItemMetadata?: Schema$OrdersCustomBatchRequestEntrySetLineItemMetadata; /** * Required for shipLineItems method. */ - shipLineItems: Schema$OrdersCustomBatchRequestEntryShipLineItems; + shipLineItems?: Schema$OrdersCustomBatchRequestEntryShipLineItems; /** * Required for updateLineItemShippingDate method. */ - updateLineItemShippingDetails: + updateLineItemShippingDetails?: Schema$OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails; /** * Required for updateShipment method. */ - updateShipment: Schema$OrdersCustomBatchRequestEntryUpdateShipment; + updateShipment?: Schema$OrdersCustomBatchRequestEntryUpdateShipment; } export interface Schema$OrdersCustomBatchRequestEntryCancel { /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryCancelLineItem { /** @@ -2453,188 +2456,188 @@ export namespace content_v2 { * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amount: Schema$Price; + amount?: Schema$Price; /** * Amount to refund for the cancelation. Optional. If not set, Google will * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to cancellation amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to cancel. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to cancel. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to cancel. */ - quantity: number; + quantity?: number; /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryInStoreRefundLineItem { /** * The amount that is refunded. Required. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. Required. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryRefund { /** * The amount that is refunded. */ - amount: Schema$Price; + amount?: Schema$Price; /** * The amount that is refunded. Either amount or amountPretax and amountTax * should be filled. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The reason for the refund. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryRejectReturnLineItem { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryReturnLineItem { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryReturnRefundLineItem { /** * The amount that is refunded. Optional, but if filled then both * amountPretax and amountTax must be set. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntrySetLineItemMetadata { - annotations: Schema$OrderMerchantProvidedAnnotation[]; + annotations?: Schema$OrderMerchantProvidedAnnotation[]; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; } export interface Schema$OrdersCustomBatchRequestEntryShipLineItems { /** @@ -2642,63 +2645,63 @@ export namespace content_v2 { * shipment. See shipments[].carrier in the Orders resource representation * for a list of acceptable values. */ - carrier: string; + carrier?: string; /** * Line items to ship. */ - lineItems: Schema$OrderShipmentLineItemShipment[]; + lineItems?: Schema$OrderShipmentLineItemShipment[]; /** * Deprecated. Please use shipmentInfo instead. The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * Shipment information. This field is repeated because a single line item * can be shipped in several packages (and have several tracking IDs). */ - shipmentInfos: + shipmentInfos?: Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo[]; /** * Deprecated. Please use shipmentInfo instead. The tracking id for the * shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo { /** * The carrier handling the shipment. See shipments[].carrier in the Orders * resource representation for a list of acceptable values. */ - carrier: string; + carrier?: string; /** * The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * The tracking id for the shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails { /** * Updated delivery by date, in ISO 8601 format. If not specified only ship * by date is updated. */ - deliverByDate: string; + deliverByDate?: string; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * Updated ship by date, in ISO 8601 format. If not specified only deliver * by date is updated. */ - shipByDate: string; + shipByDate?: string; } export interface Schema$OrdersCustomBatchRequestEntryUpdateShipment { /** @@ -2706,77 +2709,77 @@ export namespace content_v2 { * shipments[].carrier in the Orders resource representation for a list of * acceptable values. */ - carrier: string; + carrier?: string; /** * The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * New status for the shipment. Not updated if missing. */ - status: string; + status?: string; /** * The tracking id for the shipment. Not updated if missing. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$OrdersCustomBatchResponseEntry[]; + entries?: Schema$OrdersCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCustomBatchResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCustomBatchResponseEntry { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The status of the execution. Only defined if the method is not get or * getByMerchantOrderId and if the request was successful. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The retrieved order. Only defined if the method is get and if the request * was successful. */ - order: Schema$Order; + order?: Schema$Order; } export interface Schema$OrdersGetByMerchantOrderIdResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersGetByMerchantOrderIdResponse". */ - kind: string; + kind?: string; /** * The requested order. */ - order: Schema$Order; + order?: Schema$Order; } export interface Schema$OrdersGetTestOrderTemplateResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersGetTestOrderTemplateResponse". */ - kind: string; + kind?: string; /** * The requested test order template. */ - template: Schema$TestOrder; + template?: Schema$TestOrder; } export interface Schema$OrderShipment { /** @@ -2788,299 +2791,299 @@ export namespace content_v2 { * "dynamex" - "lasership" - "mpx" - * "uds" */ - carrier: string; + carrier?: string; /** * Date on which the shipment has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * Date on which the shipment has been delivered, in ISO 8601 format. * Present only if status is delievered */ - deliveryDate: string; + deliveryDate?: string; /** * The id of the shipment. */ - id: string; + id?: string; /** * The line items that are shipped. */ - lineItems: Schema$OrderShipmentLineItemShipment[]; + lineItems?: Schema$OrderShipmentLineItemShipment[]; /** * The status of the shipment. */ - status: string; + status?: string; /** * The tracking id for the shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrderShipmentLineItemShipment { /** * The id of the line item that is shipped. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to ship. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity that is shipped. */ - quantity: number; + quantity?: number; } export interface Schema$OrdersInStoreRefundLineItemRequest { /** * The amount that is refunded. Required. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. Required. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersInStoreRefundLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersInStoreRefundLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of orders. */ - nextPageToken: string; - resources: Schema$Order[]; + nextPageToken?: string; + resources?: Schema$Order[]; } export interface Schema$OrdersRefundRequest { /** * The amount that is refunded. */ - amount: Schema$Price; + amount?: Schema$Price; /** * The amount that is refunded. Either amount or amountPretax and amountTax * should be filled. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The reason for the refund. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersRefundResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersRefundResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersRejectReturnLineItemRequest { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersRejectReturnLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersRejectReturnLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersReturnLineItemRequest { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersReturnLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersReturnLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersReturnRefundLineItemRequest { /** * The amount that is refunded. Optional, but if filled then both * amountPretax and amountTax must be set. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersReturnRefundLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersReturnRefundLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersSetLineItemMetadataRequest { - annotations: Schema$OrderMerchantProvidedAnnotation[]; + annotations?: Schema$OrderMerchantProvidedAnnotation[]; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; } export interface Schema$OrdersSetLineItemMetadataResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersSetLineItemMetadataResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersShipLineItemsRequest { /** @@ -3088,100 +3091,100 @@ export namespace content_v2 { * shipment. See shipments[].carrier in the Orders resource representation * for a list of acceptable values. */ - carrier: string; + carrier?: string; /** * Line items to ship. */ - lineItems: Schema$OrderShipmentLineItemShipment[]; + lineItems?: Schema$OrderShipmentLineItemShipment[]; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * Deprecated. Please use shipmentInfo instead. The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * Shipment information. This field is repeated because a single line item * can be shipped in several packages (and have several tracking IDs). */ - shipmentInfos: + shipmentInfos?: Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo[]; /** * Deprecated. Please use shipmentInfo instead. The tracking id for the * shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersShipLineItemsResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersShipLineItemsResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersUpdateLineItemShippingDetailsRequest { /** * Updated delivery by date, in ISO 8601 format. If not specified only ship * by date is updated. */ - deliverByDate: string; + deliverByDate?: string; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * Updated ship by date, in ISO 8601 format. If not specified only deliver * by date is updated. */ - shipByDate: string; + shipByDate?: string; } export interface Schema$OrdersUpdateLineItemShippingDetailsResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersUpdateLineItemShippingDetailsResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersUpdateMerchantOrderIdRequest { /** * The merchant order id to be assigned to the order. Must be unique per * merchant. */ - merchantOrderId: string; + merchantOrderId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; } export interface Schema$OrdersUpdateMerchantOrderIdResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersUpdateMerchantOrderIdResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersUpdateShipmentRequest { /** @@ -3189,109 +3192,109 @@ export namespace content_v2 { * shipments[].carrier in the Orders resource representation for a list of * acceptable values. */ - carrier: string; + carrier?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * New status for the shipment. Not updated if missing. */ - status: string; + status?: string; /** * The tracking id for the shipment. Not updated if missing. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersUpdateShipmentResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersUpdateShipmentResponse". */ - kind: string; + kind?: string; } export interface Schema$PosCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$PosCustomBatchRequestEntry[]; + entries?: Schema$PosCustomBatchRequestEntry[]; } export interface Schema$PosCustomBatchRequestEntry { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * The inventory to submit. Set this only if the method is inventory. */ - inventory: Schema$PosInventory; + inventory?: Schema$PosInventory; /** * The ID of the POS provider. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; /** * The sale information to submit. Set this only if the method is sale. */ - sale: Schema$PosSale; + sale?: Schema$PosSale; /** * The store information to submit. Set this only if the method is insert. */ - store: Schema$PosStore; + store?: Schema$PosStore; /** * The store code. Set this only if the method is delete or get. */ - storeCode: string; + storeCode?: string; /** * The ID of the account for which to get/submit data. */ - targetMerchantId: string; + targetMerchantId?: string; } export interface Schema$PosCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$PosCustomBatchResponseEntry[]; + entries?: Schema$PosCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#posCustomBatchResponse". */ - kind: string; + kind?: string; } export interface Schema$PosCustomBatchResponseEntry { /** * The ID of the request entry to which this entry responds. */ - batchId: number; + batchId?: number; /** * A list of errors defined if, and only if, the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The updated inventory information. */ - inventory: Schema$PosInventory; + inventory?: Schema$PosInventory; /** * Identifies what kind of resource this is. Value: the fixed string * "content#posCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The updated sale information. */ - sale: Schema$PosSale; + sale?: Schema$PosSale; /** * The retrieved or updated store information. */ - store: Schema$PosStore; + store?: Schema$PosStore; } /** * The absolute quantity of an item available at the given store. @@ -3300,124 +3303,124 @@ export namespace content_v2 { /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number. */ - gtin: string; + gtin?: string; /** * A unique identifier for the item. */ - itemId: string; + itemId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#posInventory". */ - kind: string; + kind?: string; /** * The current price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * The available quantity of the item. */ - quantity: string; + quantity?: string; /** * The identifier of the merchant's store. Either a storeCode inserted * via the API or the code of the store in Google My Business. */ - storeCode: string; + storeCode?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * The inventory timestamp, in ISO 8601 format. */ - timestamp: string; + timestamp?: string; } export interface Schema$PosInventoryRequest { /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number. */ - gtin: string; + gtin?: string; /** * A unique identifier for the item. */ - itemId: string; + itemId?: string; /** * The current price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * The available quantity of the item. */ - quantity: string; + quantity?: string; /** * The identifier of the merchant's store. Either a storeCode inserted * via the API or the code of the store in Google My Business. */ - storeCode: string; + storeCode?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * The inventory timestamp, in ISO 8601 format. */ - timestamp: string; + timestamp?: string; } export interface Schema$PosInventoryResponse { /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number. */ - gtin: string; + gtin?: string; /** * A unique identifier for the item. */ - itemId: string; + itemId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#posInventoryResponse". */ - kind: string; + kind?: string; /** * The current price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * The available quantity of the item. */ - quantity: string; + quantity?: string; /** * The identifier of the merchant's store. Either a storeCode inserted * via the API or the code of the store in Google My Business. */ - storeCode: string; + storeCode?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * The inventory timestamp, in ISO 8601 format. */ - timestamp: string; + timestamp?: string; } export interface Schema$PosListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#posListResponse". */ - kind: string; - resources: Schema$PosStore[]; + kind?: string; + resources?: Schema$PosStore[]; } /** * The change of the available quantity of an item at the given store. @@ -3426,128 +3429,128 @@ export namespace content_v2 { /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number. */ - gtin: string; + gtin?: string; /** * A unique identifier for the item. */ - itemId: string; + itemId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#posSale". */ - kind: string; + kind?: string; /** * The price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * The relative change of the available quantity. Negative for items sold. */ - quantity: string; + quantity?: string; /** * A unique ID to group items from the same sale event. */ - saleId: string; + saleId?: string; /** * The identifier of the merchant's store. Either a storeCode inserted * via the API or the code of the store in Google My Business. */ - storeCode: string; + storeCode?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * The inventory timestamp, in ISO 8601 format. */ - timestamp: string; + timestamp?: string; } export interface Schema$PosSaleRequest { /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number. */ - gtin: string; + gtin?: string; /** * A unique identifier for the item. */ - itemId: string; + itemId?: string; /** * The price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * The relative change of the available quantity. Negative for items sold. */ - quantity: string; + quantity?: string; /** * A unique ID to group items from the same sale event. */ - saleId: string; + saleId?: string; /** * The identifier of the merchant's store. Either a storeCode inserted * via the API or the code of the store in Google My Business. */ - storeCode: string; + storeCode?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * The inventory timestamp, in ISO 8601 format. */ - timestamp: string; + timestamp?: string; } export interface Schema$PosSaleResponse { /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number. */ - gtin: string; + gtin?: string; /** * A unique identifier for the item. */ - itemId: string; + itemId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#posSaleResponse". */ - kind: string; + kind?: string; /** * The price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * The relative change of the available quantity. Negative for items sold. */ - quantity: string; + quantity?: string; /** * A unique ID to group items from the same sale event. */ - saleId: string; + saleId?: string; /** * The identifier of the merchant's store. Either a storeCode inserted * via the API or the code of the store in Google My Business. */ - storeCode: string; + storeCode?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * The inventory timestamp, in ISO 8601 format. */ - timestamp: string; + timestamp?: string; } /** * Store resource. @@ -3557,30 +3560,30 @@ export namespace content_v2 { * Identifies what kind of resource this is. Value: the fixed string * "content#posStore". */ - kind: string; + kind?: string; /** * The street address of the store. */ - storeAddress: string; + storeAddress?: string; /** * A store identifier that is unique for the given merchant. */ - storeCode: string; + storeCode?: string; } export interface Schema$PostalCodeGroup { /** * The CLDR territory code of the country the postal code group applies to. * Required. */ - country: string; + country?: string; /** * The name of the postal code group, referred to in headers. Required. */ - name: string; + name?: string; /** * A range of postal codes. Required. */ - postalCodeRanges: Schema$PostalCodeRange[]; + postalCodeRanges?: Schema$PostalCodeRange[]; } export interface Schema$PostalCodeRange { /** @@ -3588,7 +3591,7 @@ export namespace content_v2 { * lower bound of the range defining the area. Examples values: * "94108", "9410*", "9*". Required. */ - postalCodeRangeBegin: string; + postalCodeRangeBegin?: string; /** * A postal code or a pattern of the form prefix* denoting the inclusive * upper bound of the range defining the area. It must have the same length @@ -3598,17 +3601,17 @@ export namespace content_v2 { * length. Optional: if not set, then the area is defined as being all the * postal codes matching postalCodeRangeBegin. */ - postalCodeRangeEnd: string; + postalCodeRangeEnd?: string; } export interface Schema$Price { /** * The currency of the price. */ - currency: string; + currency?: string; /** * The price represented as a number. */ - value: string; + value?: string; } /** * Product data. @@ -3617,67 +3620,67 @@ export namespace content_v2 { /** * Additional URLs of images of the item. */ - additionalImageLinks: string[]; + additionalImageLinks?: string[]; /** * Additional categories of the item (formatted as in products feed * specification). */ - additionalProductTypes: string[]; + additionalProductTypes?: string[]; /** * Set to true if the item is targeted towards adults. */ - adult: boolean; + adult?: boolean; /** * Used to group items in an arbitrary way. Only for CPA%, discouraged * otherwise. */ - adwordsGrouping: string; + adwordsGrouping?: string; /** * Similar to adwords_grouping, but only works on CPC. */ - adwordsLabels: string[]; + adwordsLabels?: string[]; /** * Allows advertisers to override the item URL when the product is shown * within the context of Product Ads. */ - adwordsRedirect: string; + adwordsRedirect?: string; /** * Target age group of the item. */ - ageGroup: string; + ageGroup?: string; /** * Specifies the intended aspects for the product. */ - aspects: Schema$ProductAspect[]; + aspects?: Schema$ProductAspect[]; /** * Availability status of the item. */ - availability: string; + availability?: string; /** * The day a pre-ordered product becomes available for delivery, in ISO 8601 * format. */ - availabilityDate: string; + availabilityDate?: string; /** * Brand of the item. */ - brand: string; + brand?: string; /** * The item's channel (online or local). */ - channel: string; + channel?: string; /** * Color of the item. */ - color: string; + color?: string; /** * Condition or state of the item. */ - condition: string; + condition?: string; /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * A list of custom (merchant-provided) attributes. It can also be used for * submitting any attribute of the feed specification in its generic form @@ -3685,150 +3688,150 @@ export namespace content_v2 { * "text", "value": "regular" }). This is * useful for submitting attributes not explicitly exposed by the API. */ - customAttributes: Schema$ProductCustomAttribute[]; + customAttributes?: Schema$ProductCustomAttribute[]; /** * A list of custom (merchant-provided) custom attribute groups. */ - customGroups: Schema$ProductCustomGroup[]; + customGroups?: Schema$ProductCustomGroup[]; /** * Custom label 0 for custom grouping of items in a Shopping campaign. */ - customLabel0: string; + customLabel0?: string; /** * Custom label 1 for custom grouping of items in a Shopping campaign. */ - customLabel1: string; + customLabel1?: string; /** * Custom label 2 for custom grouping of items in a Shopping campaign. */ - customLabel2: string; + customLabel2?: string; /** * Custom label 3 for custom grouping of items in a Shopping campaign. */ - customLabel3: string; + customLabel3?: string; /** * Custom label 4 for custom grouping of items in a Shopping campaign. */ - customLabel4: string; + customLabel4?: string; /** * Description of the item. */ - description: string; + description?: string; /** * Specifies the intended destinations for the product. */ - destinations: Schema$ProductDestination[]; + destinations?: Schema$ProductDestination[]; /** * An identifier for an item for dynamic remarketing campaigns. */ - displayAdsId: string; + displayAdsId?: string; /** * URL directly to your item's landing page for dynamic remarketing * campaigns. */ - displayAdsLink: string; + displayAdsLink?: string; /** * Advertiser-specified recommendations. */ - displayAdsSimilarIds: string[]; + displayAdsSimilarIds?: string[]; /** * Title of an item for dynamic remarketing campaigns. */ - displayAdsTitle: string; + displayAdsTitle?: string; /** * Offer margin for dynamic remarketing campaigns. */ - displayAdsValue: number; + displayAdsValue?: number; /** * The energy efficiency class as defined in EU directive 2010/30/EU. */ - energyEfficiencyClass: string; + energyEfficiencyClass?: string; /** * Date on which the item should expire, as specified upon insertion, in ISO * 8601 format. The actual expiration date in Google Shopping is exposed in * productstatuses as googleExpirationDate and might be earlier if * expirationDate is too far in the future. */ - expirationDate: string; + expirationDate?: string; /** * Target gender of the item. */ - gender: string; + gender?: string; /** * Google's category of the item (see Google product taxonomy). */ - googleProductCategory: string; + googleProductCategory?: string; /** * Global Trade Item Number (GTIN) of the item. */ - gtin: string; + gtin?: string; /** * The REST id of the product. Content API methods that operate on products * take this as their productId parameter. The REST id for a product is of * the form channel:contentLanguage:targetCountry:offerId. */ - id: string; + id?: string; /** * False when the item does not have unique product identifiers appropriate * to its category, such as GTIN, MPN, and brand. Required according to the * Unique Product Identifier Rules for all target countries except for * Canada. */ - identifierExists: boolean; + identifierExists?: boolean; /** * URL of an image of the item. */ - imageLink: string; + imageLink?: string; /** * Number and amount of installments to pay for an item. Brazil only. */ - installment: Schema$Installment; + installment?: Schema$Installment; /** * Whether the item is a merchant-defined bundle. A bundle is a custom * grouping of different products sold by a merchant for a single price. */ - isBundle: boolean; + isBundle?: boolean; /** * Shared identifier for all variants of the same product. */ - itemGroupId: string; + itemGroupId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#product". */ - kind: string; + kind?: string; /** * URL directly linking to your item's page on your website. */ - link: string; + link?: string; /** * Loyalty points that users receive after purchasing the item. Japan only. */ - loyaltyPoints: Schema$LoyaltyPoints; + loyaltyPoints?: Schema$LoyaltyPoints; /** * The material of which the item is made. */ - material: string; + material?: string; /** * Maximal product handling time (in business days). */ - maxHandlingTime: string; + maxHandlingTime?: string; /** * Minimal product handling time (in business days). */ - minHandlingTime: string; + minHandlingTime?: string; /** * Link to a mobile-optimized version of the landing page. */ - mobileLink: string; + mobileLink?: string; /** * Manufacturer Part Number (MPN) of the item. */ - mpn: string; + mpn?: string; /** * The number of identical products in a merchant-defined multipack. */ - multipack: string; + multipack?: string; /** * A unique identifier for the item. Leading and trailing whitespaces are * stripped and multiple whitespaces are replaced by a single whitespace @@ -3836,166 +3839,166 @@ export namespace content_v2 { * products feed specification for details. Note: Content API methods that * operate on products take the REST id of the product, not this identifier. */ - offerId: string; + offerId?: string; /** * Whether an item is available for purchase only online. */ - onlineOnly: boolean; + onlineOnly?: boolean; /** * The item's pattern (e.g. polka dots). */ - pattern: string; + pattern?: string; /** * Price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * Your category of the item (formatted as in products feed specification). */ - productType: string; + productType?: string; /** * The unique ID of a promotion. */ - promotionIds: string[]; + promotionIds?: string[]; /** * Advertised sale price of the item. */ - salePrice: Schema$Price; + salePrice?: Schema$Price; /** * Date range during which the item is on sale (see products feed * specification). */ - salePriceEffectiveDate: string; + salePriceEffectiveDate?: string; /** * The quantity of the product that is reserved for sell-on-google ads. */ - sellOnGoogleQuantity: string; + sellOnGoogleQuantity?: string; /** * Shipping rules. */ - shipping: Schema$ProductShipping[]; + shipping?: Schema$ProductShipping[]; /** * Height of the item for shipping. */ - shippingHeight: Schema$ProductShippingDimension; + shippingHeight?: Schema$ProductShippingDimension; /** * The shipping label of the product, used to group product in account-level * shipping rules. */ - shippingLabel: string; + shippingLabel?: string; /** * Length of the item for shipping. */ - shippingLength: Schema$ProductShippingDimension; + shippingLength?: Schema$ProductShippingDimension; /** * Weight of the item for shipping. */ - shippingWeight: Schema$ProductShippingWeight; + shippingWeight?: Schema$ProductShippingWeight; /** * Width of the item for shipping. */ - shippingWidth: Schema$ProductShippingDimension; + shippingWidth?: Schema$ProductShippingDimension; /** * Size of the item. */ - sizes: string[]; + sizes?: string[]; /** * System in which the size is specified. Recommended for apparel items. */ - sizeSystem: string; + sizeSystem?: string; /** * The cut of the item. Recommended for apparel items. */ - sizeType: string; + sizeType?: string; /** * The CLDR territory code for the item. */ - targetCountry: string; + targetCountry?: string; /** * Tax information. */ - taxes: Schema$ProductTax[]; + taxes?: Schema$ProductTax[]; /** * Title of the item. */ - title: string; + title?: string; /** * The preference of the denominator of the unit price. */ - unitPricingBaseMeasure: Schema$ProductUnitPricingBaseMeasure; + unitPricingBaseMeasure?: Schema$ProductUnitPricingBaseMeasure; /** * The measure and dimension of an item. */ - unitPricingMeasure: Schema$ProductUnitPricingMeasure; + unitPricingMeasure?: Schema$ProductUnitPricingMeasure; /** * The read-only list of intended destinations which passed validation. */ - validatedDestinations: string[]; + validatedDestinations?: string[]; /** * Read-only warnings. */ - warnings: Schema$Error[]; + warnings?: Schema$Error[]; } export interface Schema$ProductAspect { /** * The name of the aspect. */ - aspectName: string; + aspectName?: string; /** * The name of the destination. Leave out to apply to all destinations. */ - destinationName: string; + destinationName?: string; /** * Whether the aspect is required, excluded or should be validated. */ - intention: string; + intention?: string; } export interface Schema$ProductCustomAttribute { /** * The name of the attribute. Underscores will be replaced by spaces upon * insertion. */ - name: string; + name?: string; /** * The type of the attribute. */ - type: string; + type?: string; /** * Free-form unit of the attribute. Unit can only be used for values of type * INT or FLOAT. */ - unit: string; + unit?: string; /** * The value of the attribute. */ - value: string; + value?: string; } export interface Schema$ProductCustomGroup { /** * The sub-attributes. */ - attributes: Schema$ProductCustomAttribute[]; + attributes?: Schema$ProductCustomAttribute[]; /** * The name of the group. Underscores will be replaced by spaces upon * insertion. */ - name: string; + name?: string; } export interface Schema$ProductDestination { /** * The name of the destination. */ - destinationName: string; + destinationName?: string; /** * Whether the destination is required, excluded or should be validated. */ - intention: string; + intention?: string; } export interface Schema$ProductsCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$ProductsCustomBatchRequestEntry[]; + entries?: Schema$ProductsCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch products request. @@ -4004,32 +4007,32 @@ export namespace content_v2 { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; /** * The product to insert. Only required if the method is insert. */ - product: Schema$Product; + product?: Schema$Product; /** * The ID of the product to get or delete. Only defined if the method is get * or delete. */ - productId: string; + productId?: string; } export interface Schema$ProductsCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$ProductsCustomBatchResponseEntry[]; + entries?: Schema$ProductsCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#productsCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch products response. @@ -4038,90 +4041,90 @@ export namespace content_v2 { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * Identifies what kind of resource this is. Value: the fixed string * "content#productsCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The inserted product. Only defined if the method is insert and if the * request was successful. */ - product: Schema$Product; + product?: Schema$Product; } export interface Schema$ProductShipping { /** * The CLDR territory code of the country to which an item will ship. */ - country: string; + country?: string; /** * The location where the shipping is applicable, represented by a location * group name. */ - locationGroupName: string; + locationGroupName?: string; /** * The numeric id of a location that the shipping rate applies to as defined * in the AdWords API. */ - locationId: string; + locationId?: string; /** * The postal code range that the shipping rate applies to, represented by a * postal code, a postal code prefix followed by a * wildcard, a range * between two postal codes or two postal code prefixes of equal length. */ - postalCode: string; + postalCode?: string; /** * Fixed shipping price, represented as a number. */ - price: Schema$Price; + price?: Schema$Price; /** * The geographic region to which a shipping rate applies. */ - region: string; + region?: string; /** * A free-form description of the service class or delivery speed. */ - service: string; + service?: string; } export interface Schema$ProductShippingDimension { /** * The unit of value. Acceptable values are: - "cm" - * "in" */ - unit: string; + unit?: string; /** * The dimension of the product used to calculate the shipping cost of the * item. */ - value: number; + value?: number; } export interface Schema$ProductShippingWeight { /** * The unit of value. */ - unit: string; + unit?: string; /** * The weight of the product used to calculate the shipping cost of the * item. */ - value: number; + value?: number; } export interface Schema$ProductsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#productsListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of products. */ - nextPageToken: string; - resources: Schema$Product[]; + nextPageToken?: string; + resources?: Schema$Product[]; } /** * The status of a product, i.e., information about a product computed @@ -4131,111 +4134,111 @@ export namespace content_v2 { /** * Date on which the item has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * A list of data quality issues associated with the product. */ - dataQualityIssues: Schema$ProductStatusDataQualityIssue[]; + dataQualityIssues?: Schema$ProductStatusDataQualityIssue[]; /** * The intended destinations for the product. */ - destinationStatuses: Schema$ProductStatusDestinationStatus[]; + destinationStatuses?: Schema$ProductStatusDestinationStatus[]; /** * Date on which the item expires in Google Shopping, in ISO 8601 format. */ - googleExpirationDate: string; + googleExpirationDate?: string; /** * A list of all issues associated with the product. */ - itemLevelIssues: Schema$ProductStatusItemLevelIssue[]; + itemLevelIssues?: Schema$ProductStatusItemLevelIssue[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#productStatus". */ - kind: string; + kind?: string; /** * Date on which the item has been last updated, in ISO 8601 format. */ - lastUpdateDate: string; + lastUpdateDate?: string; /** * The link to the product. */ - link: string; + link?: string; /** * Product data after applying all the join inputs. */ - product: Schema$Product; + product?: Schema$Product; /** * The id of the product for which status is reported. */ - productId: string; + productId?: string; /** * The title of the product. */ - title: string; + title?: string; } export interface Schema$ProductStatusDataQualityIssue { /** * The destination the issue applies to. */ - destination: string; + destination?: string; /** * A more detailed error string. */ - detail: string; + detail?: string; /** * The fetch status for landing_page_errors. */ - fetchStatus: string; + fetchStatus?: string; /** * The id of the data quality issue. */ - id: string; + id?: string; /** * The attribute name that is relevant for the issue. */ - location: string; + location?: string; /** * The severity of the data quality issue. */ - severity: string; + severity?: string; /** * The time stamp of the data quality issue. */ - timestamp: string; + timestamp?: string; /** * The value of that attribute that was found on the landing page */ - valueOnLandingPage: string; + valueOnLandingPage?: string; /** * The value the attribute had at time of evaluation. */ - valueProvided: string; + valueProvided?: string; } export interface Schema$ProductStatusDestinationStatus { /** * Whether the approval status might change due to further processing. */ - approvalPending: boolean; + approvalPending?: boolean; /** * The destination's approval status. */ - approvalStatus: string; + approvalStatus?: string; /** * The name of the destination */ - destination: string; + destination?: string; /** * Provided for backward compatibility only. Always set to * "required". */ - intention: string; + intention?: string; } export interface Schema$ProductstatusesCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$ProductstatusesCustomBatchRequestEntry[]; + entries?: Schema$ProductstatusesCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch productstatuses request. @@ -4244,33 +4247,33 @@ export namespace content_v2 { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * If set, only issues for the specified destinations are returned, * otherwise only issues for the Shopping destination. */ - destinations: string[]; - includeAttributes: boolean; + destinations?: string[]; + includeAttributes?: boolean; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; /** * The ID of the product whose status to get. */ - productId: string; + productId?: string; } export interface Schema$ProductstatusesCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$ProductstatusesCustomBatchResponseEntry[]; + entries?: Schema$ProductstatusesCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#productstatusesCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch productstatuses response. @@ -4279,117 +4282,117 @@ export namespace content_v2 { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors, if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * Identifies what kind of resource this is. Value: the fixed string * "content#productstatusesCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The requested product status. Only defined if the request was successful. */ - productStatus: Schema$ProductStatus; + productStatus?: Schema$ProductStatus; } export interface Schema$ProductstatusesListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#productstatusesListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of products statuses. */ - nextPageToken: string; - resources: Schema$ProductStatus[]; + nextPageToken?: string; + resources?: Schema$ProductStatus[]; } export interface Schema$ProductStatusItemLevelIssue { /** * The attribute's name, if the issue is caused by a single attribute. */ - attributeName: string; + attributeName?: string; /** * The error code of the issue. */ - code: string; + code?: string; /** * A short issue description in English. */ - description: string; + description?: string; /** * The destination the issue applies to. */ - destination: string; + destination?: string; /** * A detailed issue description in English. */ - detail: string; + detail?: string; /** * The URL of a web page to help with resolving this issue. */ - documentation: string; + documentation?: string; /** * Whether the issue can be resolved by the merchant. */ - resolution: string; + resolution?: string; /** * How this issue affects serving of the offer. */ - servability: string; + servability?: string; } export interface Schema$ProductTax { /** * The country within which the item is taxed, specified as a CLDR territory * code. */ - country: string; + country?: string; /** * The numeric id of a location that the tax rate applies to as defined in * the AdWords API. */ - locationId: string; + locationId?: string; /** * The postal code range that the tax rate applies to, represented by a ZIP * code, a ZIP code prefix using * wildcard, a range between two ZIP codes * or two ZIP code prefixes of equal length. Examples: 94114, 94*, * 94002-95460, 94*-95*. */ - postalCode: string; + postalCode?: string; /** * The percentage of tax rate that applies to the item price. */ - rate: number; + rate?: number; /** * The geographic region to which the tax rate applies. */ - region: string; + region?: string; /** * Set to true if tax is charged on shipping. */ - taxShip: boolean; + taxShip?: boolean; } export interface Schema$ProductUnitPricingBaseMeasure { /** * The unit of the denominator. */ - unit: string; + unit?: string; /** * The denominator of the unit price. */ - value: string; + value?: string; } export interface Schema$ProductUnitPricingMeasure { /** * The unit of the measure. */ - unit: string; + unit?: string; /** * The measure of an item. */ - value: number; + value?: number; } export interface Schema$RateGroup { /** @@ -4398,27 +4401,27 @@ export namespace content_v2 { * for the rate group to apply. May only be empty for the last rate group of * a service. Required. */ - applicableShippingLabels: string[]; + applicableShippingLabels?: string[]; /** * A list of carrier rates that can be referred to by mainTable or * singleValue. */ - carrierRates: Schema$CarrierRate[]; + carrierRates?: Schema$CarrierRate[]; /** * A table defining the rate group, when singleValue is not expressive * enough. Can only be set if singleValue is not set. */ - mainTable: Schema$Table; + mainTable?: Schema$Table; /** * The value of the rate group (e.g. flat rate $10). Can only be set if * mainTable and subtables are not set. */ - singleValue: Schema$Value; + singleValue?: Schema$Value; /** * A list of subtables referred to by mainTable. Can only be set if * mainTable is set. */ - subtables: Schema$Table[]; + subtables?: Schema$Table[]; } export interface Schema$Row { /** @@ -4426,49 +4429,49 @@ export namespace content_v2 { * columnHeaders for two-dimensional tables, a length of 1 for * one-dimensional tables. Required. */ - cells: Schema$Value[]; + cells?: Schema$Value[]; } export interface Schema$Service { /** * A boolean exposing the active status of the shipping service. Required. */ - active: boolean; + active?: boolean; /** * The CLDR code of the currency to which this service applies. Must match * that of the prices in rate groups. */ - currency: string; + currency?: string; /** * The CLDR territory code of the country to which the service applies. * Required. */ - deliveryCountry: string; + deliveryCountry?: string; /** * Time spent in various aspects from order to the delivery of the product. * Required. */ - deliveryTime: Schema$DeliveryTime; + deliveryTime?: Schema$DeliveryTime; /** * Eligibility for this service. */ - eligibility: string; + eligibility?: string; /** * Minimum order value for this service. If set, indicates that customers * will have to spend at least this amount. All prices within a service must * have the same currency. */ - minimumOrderValue: Schema$Price; + minimumOrderValue?: Schema$Price; /** * Free-form name of the service. Must be unique within target account. * Required. */ - name: string; + name?: string; /** * Shipping rate group definitions. Only the last one is allowed to have an * empty applicableShippingLabels, which means "everything else". * The other applicableShippingLabels must not overlap. */ - rateGroups: Schema$RateGroup[]; + rateGroups?: Schema$RateGroup[]; } /** * The merchant account's shipping settings. @@ -4478,22 +4481,22 @@ export namespace content_v2 { * The ID of the account to which these account shipping settings belong. * Ignored upon update, always present in get request responses. */ - accountId: string; + accountId?: string; /** * A list of postal code groups that can be referred to in services. * Optional. */ - postalCodeGroups: Schema$PostalCodeGroup[]; + postalCodeGroups?: Schema$PostalCodeGroup[]; /** * The target account's list of services. Optional. */ - services: Schema$Service[]; + services?: Schema$Service[]; } export interface Schema$ShippingsettingsCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$ShippingsettingsCustomBatchRequestEntry[]; + entries?: Schema$ShippingsettingsCustomBatchRequestEntry[]; } /** * A batch entry encoding a single non-batch shippingsettings request. @@ -4502,32 +4505,32 @@ export namespace content_v2 { /** * The ID of the account for which to get/update account shipping settings. */ - accountId: string; + accountId?: string; /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * The ID of the managing account. */ - merchantId: string; - method: string; + merchantId?: string; + method?: string; /** * The account shipping settings to update. Only defined if the method is * update. */ - shippingSettings: Schema$ShippingSettings; + shippingSettings?: Schema$ShippingSettings; } export interface Schema$ShippingsettingsCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$ShippingsettingsCustomBatchResponseEntry[]; + entries?: Schema$ShippingsettingsCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#shippingsettingsCustomBatchResponse". */ - kind: string; + kind?: string; } /** * A batch entry encoding a single non-batch shipping settings response. @@ -4536,248 +4539,248 @@ export namespace content_v2 { /** * The ID of the request entry to which this entry responds. */ - batchId: number; + batchId?: number; /** * A list of errors defined if, and only if, the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * Identifies what kind of resource this is. Value: the fixed string * "content#shippingsettingsCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The retrieved or updated account shipping settings. */ - shippingSettings: Schema$ShippingSettings; + shippingSettings?: Schema$ShippingSettings; } export interface Schema$ShippingsettingsGetSupportedCarriersResponse { /** * A list of supported carriers. May be empty. */ - carriers: Schema$CarriersCarrier[]; + carriers?: Schema$CarriersCarrier[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#shippingsettingsGetSupportedCarriersResponse". */ - kind: string; + kind?: string; } export interface Schema$ShippingsettingsGetSupportedHolidaysResponse { /** * A list of holidays applicable for delivery guarantees. May be empty. */ - holidays: Schema$HolidaysHoliday[]; + holidays?: Schema$HolidaysHoliday[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#shippingsettingsGetSupportedHolidaysResponse". */ - kind: string; + kind?: string; } export interface Schema$ShippingsettingsListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#shippingsettingsListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of shipping settings. */ - nextPageToken: string; - resources: Schema$ShippingSettings[]; + nextPageToken?: string; + resources?: Schema$ShippingSettings[]; } export interface Schema$Table { /** * Headers of the table's columns. Optional: if not set then the table * has only one dimension. */ - columnHeaders: Schema$Headers; + columnHeaders?: Schema$Headers; /** * Name of the table. Required for subtables, ignored for the main table. */ - name: string; + name?: string; /** * Headers of the table's rows. Required. */ - rowHeaders: Schema$Headers; + rowHeaders?: Schema$Headers; /** * The list of rows that constitute the table. Must have the same length as * rowHeaders. Required. */ - rows: Schema$Row[]; + rows?: Schema$Row[]; } export interface Schema$TestOrder { /** * The details of the customer who placed the order. */ - customer: Schema$TestOrderCustomer; + customer?: Schema$TestOrderCustomer; /** * Identifies what kind of resource this is. Value: the fixed string * "content#testOrder". */ - kind: string; + kind?: string; /** * Line items that are ordered. At least one line item must be provided. */ - lineItems: Schema$TestOrderLineItem[]; + lineItems?: Schema$TestOrderLineItem[]; /** * Determines if test order must be pulled by merchant or pushed to merchant * via push integration. */ - notificationMode: string; + notificationMode?: string; /** * The details of the payment method. */ - paymentMethod: Schema$TestOrderPaymentMethod; + paymentMethod?: Schema$TestOrderPaymentMethod; /** * Identifier of one of the predefined delivery addresses for the delivery. */ - predefinedDeliveryAddress: string; + predefinedDeliveryAddress?: string; /** * The details of the merchant provided promotions applied to the order. * More details about the program are here. */ - promotions: Schema$OrderPromotion[]; + promotions?: Schema$OrderPromotion[]; /** * The total cost of shipping for all items. */ - shippingCost: Schema$Price; + shippingCost?: Schema$Price; /** * The tax for the total shipping cost. */ - shippingCostTax: Schema$Price; + shippingCostTax?: Schema$Price; /** * The requested shipping option. */ - shippingOption: string; + shippingOption?: string; } export interface Schema$TestOrderCustomer { /** * Email address of the customer. */ - email: string; + email?: string; /** * Deprecated. Please use marketingRightsInfo instead. */ - explicitMarketingPreference: boolean; + explicitMarketingPreference?: boolean; /** * Full name of the customer. */ - fullName: string; + fullName?: string; /** * Customer's marketing preferences. */ - marketingRightsInfo: Schema$TestOrderCustomerMarketingRightsInfo; + marketingRightsInfo?: Schema$TestOrderCustomerMarketingRightsInfo; } export interface Schema$TestOrderCustomerMarketingRightsInfo { /** * Last know user use selection regards marketing preferences. In certain * cases selection might not be known, so this field would be empty. */ - explicitMarketingPreference: string; + explicitMarketingPreference?: string; /** * Timestamp when last time marketing preference was updated. Could be * empty, if user wasn't offered a selection yet. */ - lastUpdatedTimestamp: string; + lastUpdatedTimestamp?: string; } export interface Schema$TestOrderLineItem { /** * Product data from the time of the order placement. */ - product: Schema$TestOrderLineItemProduct; + product?: Schema$TestOrderLineItemProduct; /** * Number of items ordered. */ - quantityOrdered: number; + quantityOrdered?: number; /** * Details of the return policy for the line item. */ - returnInfo: Schema$OrderLineItemReturnInfo; + returnInfo?: Schema$OrderLineItemReturnInfo; /** * Details of the requested shipping for the line item. */ - shippingDetails: Schema$OrderLineItemShippingDetails; + shippingDetails?: Schema$OrderLineItemShippingDetails; /** * Unit tax for the line item. */ - unitTax: Schema$Price; + unitTax?: Schema$Price; } export interface Schema$TestOrderLineItemProduct { /** * Brand of the item. */ - brand: string; + brand?: string; /** * The item's channel. */ - channel: string; + channel?: string; /** * Condition or state of the item. */ - condition: string; + condition?: string; /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number (GTIN) of the item. Optional. */ - gtin: string; + gtin?: string; /** * URL of an image of the item. */ - imageLink: string; + imageLink?: string; /** * Shared identifier for all variants of the same product. Optional. */ - itemGroupId: string; + itemGroupId?: string; /** * Manufacturer Part Number (MPN) of the item. Optional. */ - mpn: string; + mpn?: string; /** * An identifier of the item. */ - offerId: string; + offerId?: string; /** * The price for the product. */ - price: Schema$Price; + price?: Schema$Price; /** * The CLDR territory code of the target country of the product. */ - targetCountry: string; + targetCountry?: string; /** * The title of the product. */ - title: string; + title?: string; /** * Variant attributes for the item. Optional. */ - variantAttributes: Schema$OrderLineItemProductVariantAttribute[]; + variantAttributes?: Schema$OrderLineItemProductVariantAttribute[]; } export interface Schema$TestOrderPaymentMethod { /** * The card expiration month (January = 1, February = 2 etc.). */ - expirationMonth: number; + expirationMonth?: number; /** * The card expiration year (4-digit, e.g. 2015). */ - expirationYear: number; + expirationYear?: number; /** * The last four digits of the card number. */ - lastFourDigits: string; + lastFourDigits?: string; /** * The billing address. */ - predefinedBillingAddress: string; + predefinedBillingAddress?: string; /** * The type of instrument. Note that real orders might have different values * than the four values accepted by createTestOrder. */ - type: string; + type?: string; } /** * The single value of a rate group or the value of a rate group table's @@ -4789,38 +4792,39 @@ export namespace content_v2 { * The name of a carrier rate referring to a carrier rate defined in the * same rate group. Can only be set if all other fields are not set. */ - carrierRateName: string; + carrierRateName?: string; /** * A flat rate. Can only be set if all other fields are not set. */ - flatRate: Schema$Price; + flatRate?: Schema$Price; /** * If true, then the product can't ship. Must be true when set, can only * be set if all other fields are not set. */ - noShipping: boolean; + noShipping?: boolean; /** * A percentage of the price represented as a number in decimal notation * (e.g., "5.4"). Can only be set if all other fields are not set. */ - pricePercentage: string; + pricePercentage?: string; /** * The name of a subtable. Can only be set in table cells (i.e., not for * single values), and only if all other fields are not set. */ - subtableName: string; + subtableName?: string; } export interface Schema$Weight { /** * The weight unit. */ - unit: string; + unit?: string; /** * The weight represented as a number. */ - value: string; + value?: string; } + export class Resource$Accounts { root: Content; constructor(root: Content) { @@ -4844,28 +4848,41 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - authinfo(params?: any, options?: MethodOptions): - AxiosPromise; authinfo( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Authinfo, + options?: MethodOptions): AxiosPromise; + authinfo( + params: Params$Resource$Accounts$Authinfo, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + authinfo( + params: Params$Resource$Accounts$Authinfo, + callback: BodyResponseCallback): void; + authinfo(callback: BodyResponseCallback): + void; authinfo( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Authinfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Authinfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Authinfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4902,29 +4919,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - claimwebsite(params?: any, options?: MethodOptions): + claimwebsite( + params?: Params$Resource$Accounts$Claimwebsite, + options?: MethodOptions): AxiosPromise; claimwebsite( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Claimwebsite, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; claimwebsite( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Claimwebsite, + callback: BodyResponseCallback): + void; + claimwebsite(callback: + BodyResponseCallback): + void; + claimwebsite( + paramsOrCallback?: Params$Resource$Accounts$Claimwebsite| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Claimwebsite; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Claimwebsite; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4965,29 +4998,44 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Accounts$Custombatch, options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + custombatch( + params: Params$Resource$Accounts$Custombatch, + callback: BodyResponseCallback): + void; + custombatch(callback: + BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5026,22 +5074,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Accounts$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5077,23 +5138,33 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5130,25 +5201,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Accounts$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Accounts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5185,28 +5267,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5245,25 +5337,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Accounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5301,25 +5404,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5342,6 +5456,182 @@ export namespace content_v2 { } } + export interface Params$Resource$Accounts$Authinfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Accounts$Claimwebsite { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account whose website is claimed. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Only available to selected merchants. When set to True, this flag removes + * any existing claim on the requested website by another account and + * replaces it with a claim from this account. + */ + overwrite?: boolean; + } + export interface Params$Resource$Accounts$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$AccountsCustomBatchRequest; + } + export interface Params$Resource$Accounts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Flag to delete sub-accounts with products. The default value is false. + */ + force?: boolean; + /** + * The ID of the managing account. This must be a multi-client account, and + * accountId must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Accounts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of accounts to return in the response, used for + * paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Accounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Accountstatuses { root: Content; constructor(root: Content) { @@ -5365,31 +5655,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Accountstatuses$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountstatuses$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + custombatch( + params: Params$Resource$Accountstatuses$Custombatch, + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + custombatch( + paramsOrCallback?: Params$Resource$Accountstatuses$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountstatuses$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountstatuses$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5428,24 +5736,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountstatuses$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accountstatuses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountstatuses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountstatuses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountstatuses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountstatuses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5485,29 +5804,43 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountstatuses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountstatuses$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accountstatuses$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accountstatuses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountstatuses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountstatuses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5531,6 +5864,61 @@ export namespace content_v2 { } } + export interface Params$Resource$Accountstatuses$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Accountstatuses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account. + */ + accountId?: string; + /** + * 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. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Accountstatuses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set, only issues for the specified destinations are returned, + * otherwise only issues for the Shopping destination. + */ + destinations?: string; + /** + * The maximum number of account statuses to return in the response, used + * for paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Accounttax { root: Content; constructor(root: Content) { @@ -5557,29 +5945,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Accounttax$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounttax$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounttax$Custombatch, + callback: BodyResponseCallback): + void; + custombatch(callback: + BodyResponseCallback): + void; + custombatch( + paramsOrCallback?: Params$Resource$Accounttax$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounttax$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounttax$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5617,23 +6021,34 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounttax$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounttax$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounttax$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounttax$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounttax$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5671,28 +6086,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounttax$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounttax$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounttax$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounttax$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounttax$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5731,26 +6156,37 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Accounttax$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounttax$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounttax$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Accounttax$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounttax$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5788,26 +6224,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Accounttax$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounttax$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounttax$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounttax$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounttax$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounttax$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5830,22 +6278,126 @@ export namespace content_v2 { } } - export class Resource$Datafeeds { - root: Content; - constructor(root: Content) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Accounttax$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * content.datafeeds.custombatch - * @alias content.datafeeds.custombatch - * @memberOf! () + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$AccounttaxCustomBatchRequest; + } + export interface Params$Resource$Accounttax$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get/update account tax settings. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Accounttax$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of tax settings to return in the response, used for + * paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Accounttax$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get/update account tax settings. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountTax; + } + export interface Params$Resource$Accounttax$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get/update account tax settings. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountTax; + } + + + export class Resource$Datafeeds { + root: Content; + constructor(root: Content) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * content.datafeeds.custombatch + * @alias content.datafeeds.custombatch + * @memberOf! () * * @param {object} params Parameters for request * @param {boolean=} params.dryRun Flag to run the request in dry-run mode. @@ -5854,29 +6406,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Datafeeds$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datafeeds$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + custombatch( + params: Params$Resource$Datafeeds$Custombatch, + callback: BodyResponseCallback): + void; + custombatch(callback: + BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Datafeeds$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datafeeds$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5915,22 +6483,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Datafeeds$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Datafeeds$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datafeeds$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Datafeeds$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5967,29 +6548,41 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - fetchnow(params?: any, options?: MethodOptions): + fetchnow( + params?: Params$Resource$Datafeeds$Fetchnow, options?: MethodOptions): AxiosPromise; fetchnow( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datafeeds$Fetchnow, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + fetchnow( + params: Params$Resource$Datafeeds$Fetchnow, + callback: BodyResponseCallback): void; + fetchnow(callback: BodyResponseCallback): void; fetchnow( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Datafeeds$Fetchnow| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datafeeds$Fetchnow; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Fetchnow; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6028,23 +6621,33 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Datafeeds$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Datafeeds$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Datafeeds$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Datafeeds$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6082,26 +6685,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Datafeeds$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datafeeds$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datafeeds$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Datafeeds$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6139,28 +6752,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Datafeeds$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datafeeds$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Datafeeds$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Datafeeds$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6199,25 +6822,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Datafeeds$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datafeeds$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datafeeds$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Datafeeds$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6255,26 +6889,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Datafeeds$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datafeeds$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Datafeeds$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Datafeeds$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeeds$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6297,6 +6941,168 @@ export namespace content_v2 { } } + export interface Params$Resource$Datafeeds$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$DatafeedsCustomBatchRequest; + } + export interface Params$Resource$Datafeeds$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeeds$Fetchnow { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the datafeed to be fetched. + */ + datafeedId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeeds$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeeds$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Datafeed; + } + export interface Params$Resource$Datafeeds$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of products to return in the response, used for + * paging. + */ + maxResults?: number; + /** + * The ID of the account that manages the datafeeds. This account cannot be + * a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Datafeeds$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Datafeed; + } + export interface Params$Resource$Datafeeds$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Datafeed; + } + + export class Resource$Datafeedstatuses { root: Content; constructor(root: Content) { @@ -6320,31 +7126,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Datafeedstatuses$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datafeedstatuses$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datafeedstatuses$Custombatch, + callback: + BodyResponseCallback): + void; + custombatch( + callback: + BodyResponseCallback): + void; + custombatch( + paramsOrCallback?: Params$Resource$Datafeedstatuses$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Datafeedstatuses$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeedstatuses$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6385,24 +7209,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Datafeedstatuses$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Datafeedstatuses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Datafeedstatuses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Datafeedstatuses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datafeedstatuses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeedstatuses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6441,29 +7276,44 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Datafeedstatuses$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datafeedstatuses$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Datafeedstatuses$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Datafeedstatuses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datafeedstatuses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datafeedstatuses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6488,6 +7338,65 @@ export namespace content_v2 { } } + export interface Params$Resource$Datafeedstatuses$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Datafeedstatuses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The country for which to get the datafeed status. If this parameter is + * provided then language must also be provided. Note that this parameter is + * required for feeds targeting multiple countries and languages, since a + * feed may have a different status for each target. + */ + country?: string; + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * The language for which to get the datafeed status. If this parameter is + * provided then country must also be provided. Note that this parameter is + * required for feeds targeting multiple countries and languages, since a + * feed may have a different status for each target. + */ + language?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a + * multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeedstatuses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of products to return in the response, used for + * paging. + */ + maxResults?: number; + /** + * The ID of the account that manages the datafeeds. This account cannot be + * a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Inventory { root: Content; constructor(root: Content) { @@ -6515,29 +7424,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Inventory$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inventory$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inventory$Custombatch, + callback: BodyResponseCallback): + void; + custombatch(callback: + BodyResponseCallback): + void; + custombatch( + paramsOrCallback?: Params$Resource$Inventory$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inventory$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inventory$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6579,26 +7504,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - set(params?: any, + set(params?: Params$Resource$Inventory$Set, options?: MethodOptions): AxiosPromise; - set(params?: any, - options?: MethodOptions| + set(params: Params$Resource$Inventory$Set, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - set(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + set(params: Params$Resource$Inventory$Set, + callback: BodyResponseCallback): void; + set(callback: BodyResponseCallback): void; + set(paramsOrCallback?: Params$Resource$Inventory$Set| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Inventory$Set; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inventory$Set; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6623,6 +7557,52 @@ export namespace content_v2 { } } + export interface Params$Resource$Inventory$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$InventoryCustomBatchRequest; + } + export interface Params$Resource$Inventory$Set { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that contains the product. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The REST id of the product for which to update price and availability. + */ + productId?: string; + /** + * The code of the store for which to update price and availability. Use + * online to update price and availability of an online product. + */ + storeCode?: string; + /** + * Request body metadata + */ + resource?: Schema$InventorySetRequest; + } + + export class Resource$Liasettings { root: Content; constructor(root: Content) { @@ -6649,29 +7629,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Liasettings$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Liasettings$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + custombatch( + params: Params$Resource$Liasettings$Custombatch, + callback: BodyResponseCallback): + void; + custombatch( + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Liasettings$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Liasettings$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6709,24 +7705,34 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Liasettings$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Liasettings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Liasettings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Liasettings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Liasettings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6763,30 +7769,47 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getaccessiblegmbaccounts(params?: any, options?: MethodOptions): + getaccessiblegmbaccounts( + params?: Params$Resource$Liasettings$Getaccessiblegmbaccounts, + options?: MethodOptions): AxiosPromise; getaccessiblegmbaccounts( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, + options: MethodOptions|BodyResponseCallback< Schema$LiasettingsGetAccessibleGmbAccountsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void; getaccessiblegmbaccounts( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, + callback: BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void; + getaccessiblegmbaccounts( + callback: BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void; + getaccessiblegmbaccounts( + paramsOrCallback?: Params$Resource$Liasettings$Getaccessiblegmbaccounts| + BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$LiasettingsGetAccessibleGmbAccountsResponse>, callback?: BodyResponseCallback< Schema$LiasettingsGetAccessibleGmbAccountsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Liasettings$Getaccessiblegmbaccounts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Getaccessiblegmbaccounts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6828,28 +7851,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Liasettings$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Liasettings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Liasettings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Liasettings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Liasettings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6888,26 +7921,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Liasettings$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Liasettings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Liasettings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Liasettings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Liasettings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6945,31 +7990,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - requestgmbaccess(params?: any, options?: MethodOptions): + requestgmbaccess( + params?: Params$Resource$Liasettings$Requestgmbaccess, + options?: MethodOptions): AxiosPromise; requestgmbaccess( - params?: any, - options?: MethodOptions| + params: Params$Resource$Liasettings$Requestgmbaccess, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + requestgmbaccess( + params: Params$Resource$Liasettings$Requestgmbaccess, + callback: + BodyResponseCallback): + void; + requestgmbaccess( + callback: BodyResponseCallback): void; requestgmbaccess( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Liasettings$Requestgmbaccess| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Liasettings$Requestgmbaccess; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Requestgmbaccess; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7010,30 +8073,48 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - requestinventoryverification(params?: any, options?: MethodOptions): + requestinventoryverification( + params?: Params$Resource$Liasettings$Requestinventoryverification, + options?: MethodOptions): AxiosPromise; requestinventoryverification( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Liasettings$Requestinventoryverification, + options: MethodOptions|BodyResponseCallback< Schema$LiasettingsRequestInventoryVerificationResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse>): void; + requestinventoryverification( + params: Params$Resource$Liasettings$Requestinventoryverification, + callback: BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse>): void; + requestinventoryverification( + callback: BodyResponseCallback< Schema$LiasettingsRequestInventoryVerificationResponse>): void; requestinventoryverification( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Liasettings$Requestinventoryverification| + BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$LiasettingsRequestInventoryVerificationResponse>, callback?: BodyResponseCallback< Schema$LiasettingsRequestInventoryVerificationResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Liasettings$Requestinventoryverification; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Requestinventoryverification; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7078,31 +8159,50 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setinventoryverificationcontact(params?: any, options?: MethodOptions): + setinventoryverificationcontact( + params?: Params$Resource$Liasettings$Setinventoryverificationcontact, + options?: MethodOptions): AxiosPromise; setinventoryverificationcontact( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Liasettings$Setinventoryverificationcontact, + options: MethodOptions|BodyResponseCallback< Schema$LiasettingsSetInventoryVerificationContactResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse>): void; + setinventoryverificationcontact( + params: Params$Resource$Liasettings$Setinventoryverificationcontact, + callback: BodyResponseCallback< Schema$LiasettingsSetInventoryVerificationContactResponse>): void; setinventoryverificationcontact( - params?: any, - options?: MethodOptions|BodyResponseCallback< + callback: BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse>): void; + setinventoryverificationcontact( + paramsOrCallback?: + Params$Resource$Liasettings$Setinventoryverificationcontact| + BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$LiasettingsSetInventoryVerificationContactResponse>, callback?: BodyResponseCallback< Schema$LiasettingsSetInventoryVerificationContactResponse>): void|AxiosPromise< Schema$LiasettingsSetInventoryVerificationContactResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Liasettings$Setinventoryverificationcontact; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Liasettings$Setinventoryverificationcontact; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7146,26 +8246,39 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Liasettings$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Liasettings$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Liasettings$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Liasettings$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Liasettings$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Liasettings$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7189,6 +8302,205 @@ export namespace content_v2 { } } + export interface Params$Resource$Liasettings$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LiasettingsCustomBatchRequest; + } + export interface Params$Resource$Liasettings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get or update LIA settings. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$Getaccessiblegmbaccounts { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to retrieve accessible Google My Business + * accounts. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of LIA settings to return in the response, used for + * paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Liasettings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get or update LIA settings. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$LiaSettings; + } + export interface Params$Resource$Liasettings$Requestgmbaccess { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which GMB access is requested. + */ + accountId?: string; + /** + * The email of the Google My Business account. + */ + gmbEmail?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$Requestinventoryverification { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + accountId?: string; + /** + * The country for which inventory validation is requested. + */ + country?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$Setinventoryverificationcontact { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + accountId?: string; + /** + * The email of the inventory verification contact. + */ + contactEmail?: string; + /** + * The name of the inventory verification contact. + */ + contactName?: string; + /** + * The country for which inventory verification is requested. + */ + country?: string; + /** + * The language for which inventory verification is requested. + */ + language?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get or update LIA settings. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$LiaSettings; + } + + export class Resource$Orders { root: Content; constructor(root: Content) { @@ -7215,29 +8527,41 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge(params?: any, options?: MethodOptions): + acknowledge( + params?: Params$Resource$Orders$Acknowledge, options?: MethodOptions): AxiosPromise; acknowledge( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Acknowledge, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + acknowledge( + params: Params$Resource$Orders$Acknowledge, + callback: BodyResponseCallback): void; acknowledge( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + acknowledge( + paramsOrCallback?: Params$Resource$Orders$Acknowledge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Acknowledge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Acknowledge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7276,29 +8600,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - advancetestorder(params?: any, options?: MethodOptions): + advancetestorder( + params?: Params$Resource$Orders$Advancetestorder, + options?: MethodOptions): AxiosPromise; advancetestorder( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Advancetestorder, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + advancetestorder( + params: Params$Resource$Orders$Advancetestorder, + callback: BodyResponseCallback): void; advancetestorder( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + advancetestorder( + paramsOrCallback?: Params$Resource$Orders$Advancetestorder| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Advancetestorder; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Advancetestorder; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7338,28 +8678,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): + cancel(params?: Params$Resource$Orders$Cancel, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Cancel, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Orders$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7397,29 +8747,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancellineitem(params?: any, options?: MethodOptions): + cancellineitem( + params?: Params$Resource$Orders$Cancellineitem, + options?: MethodOptions): AxiosPromise; cancellineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Cancellineitem, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + cancellineitem( + params: Params$Resource$Orders$Cancellineitem, + callback: BodyResponseCallback): + void; + cancellineitem( + callback: BodyResponseCallback): void; cancellineitem( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Cancellineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Cancellineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Cancellineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7458,29 +8824,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createtestorder(params?: any, options?: MethodOptions): + createtestorder( + params?: Params$Resource$Orders$Createtestorder, + options?: MethodOptions): AxiosPromise; createtestorder( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Createtestorder, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; createtestorder( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): + params: Params$Resource$Orders$Createtestorder, + callback: BodyResponseCallback): + void; + createtestorder( + callback: BodyResponseCallback): + void; + createtestorder( + paramsOrCallback?: Params$Resource$Orders$Createtestorder| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Createtestorder; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Createtestorder; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7517,29 +8899,41 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Orders$Custombatch, options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + custombatch( + params: Params$Resource$Orders$Custombatch, + callback: BodyResponseCallback): void; + custombatch( + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7576,23 +8970,33 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Orders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Orders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7628,31 +9032,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getbymerchantorderid(params?: any, options?: MethodOptions): + getbymerchantorderid( + params?: Params$Resource$Orders$Getbymerchantorderid, + options?: MethodOptions): AxiosPromise; getbymerchantorderid( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Getbymerchantorderid, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + getbymerchantorderid( + params: Params$Resource$Orders$Getbymerchantorderid, + callback: BodyResponseCallback): void; getbymerchantorderid( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + getbymerchantorderid( + paramsOrCallback?: Params$Resource$Orders$Getbymerchantorderid| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Getbymerchantorderid; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Getbymerchantorderid; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7693,31 +9115,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - gettestordertemplate(params?: any, options?: MethodOptions): + gettestordertemplate( + params?: Params$Resource$Orders$Gettestordertemplate, + options?: MethodOptions): AxiosPromise; gettestordertemplate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Gettestordertemplate, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; gettestordertemplate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Gettestordertemplate, + callback: + BodyResponseCallback): + void; + gettestordertemplate( + callback: + BodyResponseCallback): + void; + gettestordertemplate( + paramsOrCallback?: Params$Resource$Orders$Gettestordertemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Gettestordertemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Gettestordertemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7758,31 +9198,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instorerefundlineitem(params?: any, options?: MethodOptions): + instorerefundlineitem( + params?: Params$Resource$Orders$Instorerefundlineitem, + options?: MethodOptions): AxiosPromise; instorerefundlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Instorerefundlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + instorerefundlineitem( + params: Params$Resource$Orders$Instorerefundlineitem, + callback: BodyResponseCallback): void; instorerefundlineitem( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + instorerefundlineitem( + paramsOrCallback?: Params$Resource$Orders$Instorerefundlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Instorerefundlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Instorerefundlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7828,26 +9286,37 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Orders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Orders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Orders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7884,28 +9353,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - refund(params?: any, options?: MethodOptions): + refund(params?: Params$Resource$Orders$Refund, options?: MethodOptions): AxiosPromise; refund( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Refund, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; refund( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Refund, + callback: BodyResponseCallback): void; + refund(callback: BodyResponseCallback): void; + refund( + paramsOrCallback?: Params$Resource$Orders$Refund| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Refund; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Refund; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7943,31 +9422,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rejectreturnlineitem(params?: any, options?: MethodOptions): + rejectreturnlineitem( + params?: Params$Resource$Orders$Rejectreturnlineitem, + options?: MethodOptions): AxiosPromise; rejectreturnlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Rejectreturnlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; rejectreturnlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Rejectreturnlineitem, + callback: + BodyResponseCallback): + void; + rejectreturnlineitem( + callback: + BodyResponseCallback): + void; + rejectreturnlineitem( + paramsOrCallback?: Params$Resource$Orders$Rejectreturnlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Rejectreturnlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Rejectreturnlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8008,29 +9505,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - returnlineitem(params?: any, options?: MethodOptions): + returnlineitem( + params?: Params$Resource$Orders$Returnlineitem, + options?: MethodOptions): AxiosPromise; returnlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Returnlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + returnlineitem( + params: Params$Resource$Orders$Returnlineitem, + callback: BodyResponseCallback): + void; + returnlineitem( + callback: BodyResponseCallback): void; returnlineitem( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Returnlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Returnlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Returnlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8071,31 +9584,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - returnrefundlineitem(params?: any, options?: MethodOptions): + returnrefundlineitem( + params?: Params$Resource$Orders$Returnrefundlineitem, + options?: MethodOptions): AxiosPromise; returnrefundlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Returnrefundlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + returnrefundlineitem( + params: Params$Resource$Orders$Returnrefundlineitem, + callback: + BodyResponseCallback): + void; + returnrefundlineitem( + callback: BodyResponseCallback): void; returnrefundlineitem( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Returnrefundlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Returnrefundlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Returnrefundlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8136,31 +9667,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setlineitemmetadata(params?: any, options?: MethodOptions): + setlineitemmetadata( + params?: Params$Resource$Orders$Setlineitemmetadata, + options?: MethodOptions): AxiosPromise; setlineitemmetadata( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Setlineitemmetadata, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; setlineitemmetadata( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Setlineitemmetadata, + callback: + BodyResponseCallback): + void; + setlineitemmetadata( + callback: + BodyResponseCallback): + void; + setlineitemmetadata( + paramsOrCallback?: Params$Resource$Orders$Setlineitemmetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Setlineitemmetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Setlineitemmetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8201,29 +9750,44 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - shiplineitems(params?: any, options?: MethodOptions): + shiplineitems( + params?: Params$Resource$Orders$Shiplineitems, options?: MethodOptions): AxiosPromise; shiplineitems( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Shiplineitems, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + shiplineitems( + params: Params$Resource$Orders$Shiplineitems, + callback: BodyResponseCallback): + void; + shiplineitems(callback: + BodyResponseCallback): void; shiplineitems( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Shiplineitems| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Shiplineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Shiplineitems; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8262,30 +9826,47 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatelineitemshippingdetails(params?: any, options?: MethodOptions): + updatelineitemshippingdetails( + params?: Params$Resource$Orders$Updatelineitemshippingdetails, + options?: MethodOptions): AxiosPromise; updatelineitemshippingdetails( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Orders$Updatelineitemshippingdetails, + options: MethodOptions|BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse>): void; + updatelineitemshippingdetails( + params: Params$Resource$Orders$Updatelineitemshippingdetails, + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse>): void; + updatelineitemshippingdetails( + callback: BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>): void; updatelineitemshippingdetails( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Orders$Updatelineitemshippingdetails| + BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>, callback?: BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Updatelineitemshippingdetails; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updatelineitemshippingdetails; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8326,31 +9907,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatemerchantorderid(params?: any, options?: MethodOptions): + updatemerchantorderid( + params?: Params$Resource$Orders$Updatemerchantorderid, + options?: MethodOptions): AxiosPromise; updatemerchantorderid( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Updatemerchantorderid, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + updatemerchantorderid( + params: Params$Resource$Orders$Updatemerchantorderid, + callback: + BodyResponseCallback): + void; + updatemerchantorderid( + callback: BodyResponseCallback): void; updatemerchantorderid( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Updatemerchantorderid| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Updatemerchantorderid; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updatemerchantorderid; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8391,29 +9990,45 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateshipment(params?: any, options?: MethodOptions): + updateshipment( + params?: Params$Resource$Orders$Updateshipment, + options?: MethodOptions): AxiosPromise; updateshipment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Updateshipment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + updateshipment( + params: Params$Resource$Orders$Updateshipment, + callback: BodyResponseCallback): + void; + updateshipment( + callback: BodyResponseCallback): void; updateshipment( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Updateshipment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Updateshipment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updateshipment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8439,6 +10054,410 @@ export namespace content_v2 { } } + export interface Params$Resource$Orders$Acknowledge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersAcknowledgeRequest; + } + export interface Params$Resource$Orders$Advancetestorder { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the test order to modify. + */ + orderId?: string; + } + export interface Params$Resource$Orders$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order to cancel. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersCancelRequest; + } + export interface Params$Resource$Orders$Cancellineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersCancelLineItemRequest; + } + export interface Params$Resource$Orders$Createtestorder { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that should manage the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersCreateTestOrderRequest; + } + export interface Params$Resource$Orders$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Orders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + } + export interface Params$Resource$Orders$Getbymerchantorderid { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The merchant order id to be looked for. + */ + merchantOrderId?: string; + } + export interface Params$Resource$Orders$Gettestordertemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that should manage the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The name of the template to retrieve. + */ + templateName?: string; + } + export interface Params$Resource$Orders$Instorerefundlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersInStoreRefundLineItemRequest; + } + export interface Params$Resource$Orders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Obtains orders that match the acknowledgement status. When set to true, + * obtains orders that have been acknowledged. When false, obtains orders + * that have not been acknowledged. We recommend using this filter set to + * false, in conjunction with the acknowledge call, such that only + * un-acknowledged orders are returned. + */ + acknowledged?: boolean; + /** + * The maximum number of orders to return in the response, used for paging. + * The default value is 25 orders per page, and the maximum allowed value is + * 250 orders per page. Known issue: All List calls will return all Orders + * without limit regardless of the value of this field. + */ + maxResults?: number; + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ordering of the returned list. The only supported value are + * placedDate desc and placedDate asc for now, which returns orders sorted + * by placement date. "placedDate desc" stands for listing orders by + * placement date, from oldest to most recent. "placedDate asc" stands for + * listing orders by placement date, from most recent to oldest. In future + * releases we'll support other sorting criteria. + */ + orderBy?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * Obtains orders placed before this date (exclusively), in ISO 8601 format. + */ + placedDateEnd?: string; + /** + * Obtains orders placed after this date (inclusively), in ISO 8601 format. + */ + placedDateStart?: string; + /** + * Obtains orders that match any of the specified statuses. Multiple values + * can be specified with comma separation. Additionally, please note that + * active is a shortcut for pendingShipment and partiallyShipped, and + * completed is a shortcut for shipped , partiallyDelivered, delivered, + * partiallyReturned, returned, and canceled. + */ + statuses?: string; + } + export interface Params$Resource$Orders$Refund { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order to refund. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersRefundRequest; + } + export interface Params$Resource$Orders$Rejectreturnlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersRejectReturnLineItemRequest; + } + export interface Params$Resource$Orders$Returnlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersReturnLineItemRequest; + } + export interface Params$Resource$Orders$Returnrefundlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersReturnRefundLineItemRequest; + } + export interface Params$Resource$Orders$Setlineitemmetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersSetLineItemMetadataRequest; + } + export interface Params$Resource$Orders$Shiplineitems { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersShipLineItemsRequest; + } + export interface Params$Resource$Orders$Updatelineitemshippingdetails { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersUpdateLineItemShippingDetailsRequest; + } + export interface Params$Resource$Orders$Updatemerchantorderid { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersUpdateMerchantOrderIdRequest; + } + export interface Params$Resource$Orders$Updateshipment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersUpdateShipmentRequest; + } + + export class Resource$Pos { root: Content; constructor(root: Content) { @@ -8464,28 +10483,40 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): - AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Pos$Custombatch, + options?: MethodOptions): AxiosPromise; + custombatch( + params: Params$Resource$Pos$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + custombatch( + params: Params$Resource$Pos$Custombatch, + callback: BodyResponseCallback): void; + custombatch(callback: BodyResponseCallback): + void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Pos$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8523,22 +10554,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Pos$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Pos$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pos$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pos$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8577,23 +10621,33 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Pos$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Pos$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pos$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pos$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8633,26 +10687,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Pos$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pos$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Pos$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pos$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8691,28 +10755,39 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - inventory(params?: any, options?: MethodOptions): + inventory(params?: Params$Resource$Pos$Inventory, options?: MethodOptions): AxiosPromise; inventory( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pos$Inventory, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; inventory( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pos$Inventory, + callback: BodyResponseCallback): void; + inventory(callback: BodyResponseCallback): + void; + inventory( + paramsOrCallback?: Params$Resource$Pos$Inventory| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Inventory; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Inventory; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8749,26 +10824,37 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Pos$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pos$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Pos$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pos$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8807,26 +10893,37 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sale(params?: any, options?: MethodOptions): + sale(params?: Params$Resource$Pos$Sale, options?: MethodOptions): AxiosPromise; sale( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pos$Sale, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; sale( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pos$Sale, + callback: BodyResponseCallback): void; + sale(callback: BodyResponseCallback): void; + sale( + paramsOrCallback?: Params$Resource$Pos$Sale| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Sale; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Sale; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8850,6 +10947,149 @@ export namespace content_v2 { } } + export interface Params$Resource$Pos$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$PosCustomBatchRequest; + } + export interface Params$Resource$Pos$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * A store code that is unique per merchant. + */ + storeCode?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + } + export interface Params$Resource$Pos$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * A store code that is unique per merchant. + */ + storeCode?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + } + export interface Params$Resource$Pos$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$PosStore; + } + export interface Params$Resource$Pos$Inventory { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$PosInventoryRequest; + } + export interface Params$Resource$Pos$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + } + export interface Params$Resource$Pos$Sale { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$PosSaleRequest; + } + + export class Resource$Products { root: Content; constructor(root: Content) { @@ -8876,29 +11116,44 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Products$Custombatch, options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Products$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + custombatch( + params: Params$Resource$Products$Custombatch, + callback: BodyResponseCallback): + void; + custombatch(callback: + BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Products$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Products$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8936,22 +11191,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Products$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Products$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Products$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Products$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8987,23 +11255,33 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Products$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Products$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Products$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Products$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9042,25 +11320,36 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Products$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Products$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Products$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Products$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9098,28 +11387,38 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Products$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Products$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Products$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Products$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Products$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Products$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9142,6 +11441,106 @@ export namespace content_v2 { } } + export interface Params$Resource$Products$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$ProductsCustomBatchRequest; + } + export interface Params$Resource$Products$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that contains the product. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The REST id of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that contains the product. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The REST id of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the account that contains the product. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$Product; + } + export interface Params$Resource$Products$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * 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). + */ + includeInvalidInsertedItems?: boolean; + /** + * The maximum number of products to return in the response, used for + * paging. + */ + maxResults?: number; + /** + * The ID of the account that contains the products. This account cannot be + * a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Productstatuses { root: Content; constructor(root: Content) { @@ -9167,31 +11566,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Productstatuses$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Productstatuses$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Productstatuses$Custombatch, + callback: + BodyResponseCallback): + void; + custombatch( + callback: + BodyResponseCallback): + void; + custombatch( + paramsOrCallback?: Params$Resource$Productstatuses$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Productstatuses$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Productstatuses$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9231,24 +11648,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Productstatuses$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Productstatuses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Productstatuses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Productstatuses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Productstatuses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Productstatuses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9289,29 +11717,43 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Productstatuses$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Productstatuses$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Productstatuses$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Productstatuses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Productstatuses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Productstatuses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9335,6 +11777,87 @@ export namespace content_v2 { } } + export interface Params$Resource$Productstatuses$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to include full product data in the results of this request. The + * default value is false. + */ + includeAttributes?: boolean; + /** + * Request body metadata + */ + resource?: Schema$ProductstatusesCustomBatchRequest; + } + export interface Params$Resource$Productstatuses$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set, only issues for the specified destinations are returned, + * otherwise only issues for the Shopping destination. + */ + destinations?: string; + /** + * Flag to include full product data in the result of this get request. The + * default value is false. + */ + includeAttributes?: boolean; + /** + * The ID of the account that contains the product. This account cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The REST id of the product. + */ + productId?: string; + } + export interface Params$Resource$Productstatuses$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set, only issues for the specified destinations are returned, + * otherwise only issues for the Shopping destination. + */ + destinations?: string; + /** + * Flag to include full product data in the results of the list request. The + * default value is false. + */ + includeAttributes?: boolean; + /** + * 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). + */ + includeInvalidInsertedItems?: boolean; + /** + * The maximum number of product statuses to return in the response, used + * for paging. + */ + maxResults?: number; + /** + * The ID of the account that contains the products. This account cannot be + * a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Shippingsettings { root: Content; constructor(root: Content) { @@ -9361,31 +11884,49 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Shippingsettings$Custombatch, + options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Shippingsettings$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + custombatch( + params: Params$Resource$Shippingsettings$Custombatch, + callback: + BodyResponseCallback): + void; + custombatch( + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Shippingsettings$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Shippingsettings$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9423,24 +11964,35 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Shippingsettings$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Shippingsettings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Shippingsettings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Shippingsettings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Shippingsettings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9476,30 +12028,48 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getsupportedcarriers(params?: any, options?: MethodOptions): + getsupportedcarriers( + params?: Params$Resource$Shippingsettings$Getsupportedcarriers, + options?: MethodOptions): AxiosPromise; getsupportedcarriers( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Shippingsettings$Getsupportedcarriers, + options: MethodOptions|BodyResponseCallback< Schema$ShippingsettingsGetSupportedCarriersResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ShippingsettingsGetSupportedCarriersResponse>): void; + getsupportedcarriers( + params: Params$Resource$Shippingsettings$Getsupportedcarriers, + callback: BodyResponseCallback< Schema$ShippingsettingsGetSupportedCarriersResponse>): void; + getsupportedcarriers(callback: BodyResponseCallback< + Schema$ShippingsettingsGetSupportedCarriersResponse>): + void; getsupportedcarriers( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Shippingsettings$Getsupportedcarriers| + BodyResponseCallback< + Schema$ShippingsettingsGetSupportedCarriersResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$ShippingsettingsGetSupportedCarriersResponse>, callback?: BodyResponseCallback< Schema$ShippingsettingsGetSupportedCarriersResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Shippingsettings$Getsupportedcarriers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$Getsupportedcarriers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9536,30 +12106,48 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getsupportedholidays(params?: any, options?: MethodOptions): + getsupportedholidays( + params?: Params$Resource$Shippingsettings$Getsupportedholidays, + options?: MethodOptions): AxiosPromise; getsupportedholidays( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Shippingsettings$Getsupportedholidays, + options: MethodOptions|BodyResponseCallback< Schema$ShippingsettingsGetSupportedHolidaysResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ShippingsettingsGetSupportedHolidaysResponse>): void; + getsupportedholidays( + params: Params$Resource$Shippingsettings$Getsupportedholidays, + callback: BodyResponseCallback< Schema$ShippingsettingsGetSupportedHolidaysResponse>): void; + getsupportedholidays(callback: BodyResponseCallback< + Schema$ShippingsettingsGetSupportedHolidaysResponse>): + void; getsupportedholidays( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Shippingsettings$Getsupportedholidays| + BodyResponseCallback< + Schema$ShippingsettingsGetSupportedHolidaysResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$ShippingsettingsGetSupportedHolidaysResponse>, callback?: BodyResponseCallback< Schema$ShippingsettingsGetSupportedHolidaysResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Shippingsettings$Getsupportedholidays; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$Getsupportedholidays; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9599,29 +12187,44 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Shippingsettings$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Shippingsettings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Shippingsettings$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Shippingsettings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Shippingsettings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9662,26 +12265,39 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Shippingsettings$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Shippingsettings$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Shippingsettings$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Shippingsettings$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Shippingsettings$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9720,26 +12336,39 @@ export namespace content_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Shippingsettings$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Shippingsettings$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Shippingsettings$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Shippingsettings$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Shippingsettings$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shippingsettings$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9762,4 +12391,129 @@ export namespace content_v2 { } } } + + export interface Params$Resource$Shippingsettings$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * Request body metadata + */ + resource?: Schema$ShippingsettingsCustomBatchRequest; + } + export interface Params$Resource$Shippingsettings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get/update shipping settings. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Shippingsettings$Getsupportedcarriers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to retrieve the supported carriers. + */ + merchantId?: string; + } + export interface Params$Resource$Shippingsettings$Getsupportedholidays { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to retrieve the supported holidays. + */ + merchantId?: string; + } + export interface Params$Resource$Shippingsettings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of shipping settings to return in the response, used + * for paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Shippingsettings$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get/update shipping settings. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$ShippingSettings; + } + export interface Params$Resource$Shippingsettings$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account for which to get/update shipping settings. + */ + accountId?: string; + /** + * Flag to run the request in dry-run mode. + */ + dryRun?: boolean; + /** + * The ID of the managing account. If this parameter is not the same as + * accountId, then this account must be a multi-client account and accountId + * must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$ShippingSettings; + } } diff --git a/src/apis/content/v2sandbox.ts b/src/apis/content/v2sandbox.ts index 26f4180ae44..39746b98b98 100644 --- a/src/apis/content/v2sandbox.ts +++ b/src/apis/content/v2sandbox.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace content_v2sandbox { + export interface Options extends GlobalOptions { version: 'v2sandbox'; } + /** * Content API for Shopping * @@ -73,15 +76,15 @@ export namespace content_v2sandbox { /** * The domain of the error. */ - domain: string; + domain?: string; /** * A description of the error. */ - message: string; + message?: string; /** * The error code. */ - reason: string; + reason?: string; } /** * A list of errors returned by a failed batch entry. @@ -90,437 +93,437 @@ export namespace content_v2sandbox { /** * The HTTP status of the first error in errors. */ - code: number; + code?: number; /** * A list of errors. */ - errors: Schema$Error[]; + errors?: Schema$Error[]; /** * The message of the first error in errors. */ - message: string; + message?: string; } export interface Schema$Order { /** * Whether the order was acknowledged. */ - acknowledged: boolean; + acknowledged?: boolean; /** * The channel type of the order: "purchaseOnGoogle" or * "googleExpress". */ - channelType: string; + channelType?: string; /** * The details of the customer who placed the order. */ - customer: Schema$OrderCustomer; + customer?: Schema$OrderCustomer; /** * The details for the delivery. */ - deliveryDetails: Schema$OrderDeliveryDetails; + deliveryDetails?: Schema$OrderDeliveryDetails; /** * The REST id of the order. Globally unique. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#order". */ - kind: string; + kind?: string; /** * Line items that are ordered. */ - lineItems: Schema$OrderLineItem[]; - merchantId: string; + lineItems?: Schema$OrderLineItem[]; + merchantId?: string; /** * Merchant-provided id of the order. */ - merchantOrderId: string; + merchantOrderId?: string; /** * The net amount for the order. For example, if an order was originally for * a grand total of $100 and a refund was issued for $20, the net amount * will be $80. */ - netAmount: Schema$Price; + netAmount?: Schema$Price; /** * The details of the payment method. */ - paymentMethod: Schema$OrderPaymentMethod; + paymentMethod?: Schema$OrderPaymentMethod; /** * The status of the payment. */ - paymentStatus: string; + paymentStatus?: string; /** * The date when the order was placed, in ISO 8601 format. */ - placedDate: string; + placedDate?: string; /** * The details of the merchant provided promotions applied to the order. * More details about the program are here. */ - promotions: Schema$OrderPromotion[]; + promotions?: Schema$OrderPromotion[]; /** * Refunds for the order. */ - refunds: Schema$OrderRefund[]; + refunds?: Schema$OrderRefund[]; /** * Shipments of the order. */ - shipments: Schema$OrderShipment[]; + shipments?: Schema$OrderShipment[]; /** * The total cost of shipping for all items. */ - shippingCost: Schema$Price; + shippingCost?: Schema$Price; /** * The tax for the total shipping cost. */ - shippingCostTax: Schema$Price; + shippingCostTax?: Schema$Price; /** * The requested shipping option. */ - shippingOption: string; + shippingOption?: string; /** * The status of the order. */ - status: string; + status?: string; } export interface Schema$OrderAddress { /** * CLDR country code (e.g. "US"). */ - country: string; + country?: string; /** * Strings representing the lines of the printed label for mailing the * order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, * CA, 94043 United States */ - fullAddress: string[]; + fullAddress?: string[]; /** * Whether the address is a post office box. */ - isPostOfficeBox: boolean; + isPostOfficeBox?: boolean; /** * City, town or commune. May also include dependent localities or * sublocalities (e.g. neighborhoods or suburbs). */ - locality: string; + locality?: string; /** * Postal Code or ZIP (e.g. "94043"). */ - postalCode: string; + postalCode?: string; /** * Name of the recipient. */ - recipientName: string; + recipientName?: string; /** * Top-level administrative subdivision of the country (e.g. * "CA"). */ - region: string; + region?: string; /** * Street-level part of the address. */ - streetAddress: string[]; + streetAddress?: string[]; } export interface Schema$OrderCancellation { /** * The actor that created the cancellation. */ - actor: string; + actor?: string; /** * Date on which the cancellation has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * The quantity that was canceled. */ - quantity: number; + quantity?: number; /** * The reason for the cancellation. Orders that are cancelled with a * noInventory reason will lead to the removal of the product from POG until * you make an update to that product. This will not affect your Shopping * ads. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrderCustomer { /** * Email address that should be used for order related communications. In * certain cases this might not be a real users email, but a proxy email. */ - email: string; + email?: string; /** * Deprecated. Please use marketingRightsInfo instead. */ - explicitMarketingPreference: boolean; + explicitMarketingPreference?: boolean; /** * Full name of the customer. */ - fullName: string; + fullName?: string; /** * Customer's marketing preferences. */ - marketingRightsInfo: Schema$OrderCustomerMarketingRightsInfo; + marketingRightsInfo?: Schema$OrderCustomerMarketingRightsInfo; } export interface Schema$OrderCustomerMarketingRightsInfo { /** * Last known user selection regarding marketing preferences. In certain * cases this selection might not be known, so this field would be empty. */ - explicitMarketingPreference: string; + explicitMarketingPreference?: string; /** * Timestamp when last time marketing preference was updated. Could be * empty, if user wasn't offered a selection yet. */ - lastUpdatedTimestamp: string; + lastUpdatedTimestamp?: string; /** * Email address that can be used for marketing purposes. This field is only * filled when explicitMarketingPreference is equal to 'granted'. */ - marketingEmailAddress: string; + marketingEmailAddress?: string; } export interface Schema$OrderDeliveryDetails { /** * The delivery address */ - address: Schema$OrderAddress; + address?: Schema$OrderAddress; /** * The phone number of the person receiving the delivery. */ - phoneNumber: string; + phoneNumber?: string; } export interface Schema$OrderLineItem { /** * Annotations that are attached to the line item. */ - annotations: Schema$OrderMerchantProvidedAnnotation[]; + annotations?: Schema$OrderMerchantProvidedAnnotation[]; /** * Cancellations of the line item. */ - cancellations: Schema$OrderCancellation[]; + cancellations?: Schema$OrderCancellation[]; /** * The id of the line item. */ - id: string; + id?: string; /** * Total price for the line item. For example, if two items for $10 are * purchased, the total price will be $20. */ - price: Schema$Price; + price?: Schema$Price; /** * Product data from the time of the order placement. */ - product: Schema$OrderLineItemProduct; + product?: Schema$OrderLineItemProduct; /** * Number of items canceled. */ - quantityCanceled: number; + quantityCanceled?: number; /** * Number of items delivered. */ - quantityDelivered: number; + quantityDelivered?: number; /** * Number of items ordered. */ - quantityOrdered: number; + quantityOrdered?: number; /** * Number of items pending. */ - quantityPending: number; + quantityPending?: number; /** * Number of items returned. */ - quantityReturned: number; + quantityReturned?: number; /** * Number of items shipped. */ - quantityShipped: number; + quantityShipped?: number; /** * Details of the return policy for the line item. */ - returnInfo: Schema$OrderLineItemReturnInfo; + returnInfo?: Schema$OrderLineItemReturnInfo; /** * Returns of the line item. */ - returns: Schema$OrderReturn[]; + returns?: Schema$OrderReturn[]; /** * Details of the requested shipping for the line item. */ - shippingDetails: Schema$OrderLineItemShippingDetails; + shippingDetails?: Schema$OrderLineItemShippingDetails; /** * Total tax amount for the line item. For example, if two items are * purchased, and each have a cost tax of $2, the total tax amount will be * $4. */ - tax: Schema$Price; + tax?: Schema$Price; } export interface Schema$OrderLineItemProduct { /** * Brand of the item. */ - brand: string; + brand?: string; /** * The item's channel (online or local). */ - channel: string; + channel?: string; /** * Condition or state of the item. */ - condition: string; + condition?: string; /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number (GTIN) of the item. */ - gtin: string; + gtin?: string; /** * The REST id of the product. */ - id: string; + id?: string; /** * URL of an image of the item. */ - imageLink: string; + imageLink?: string; /** * Shared identifier for all variants of the same product. */ - itemGroupId: string; + itemGroupId?: string; /** * Manufacturer Part Number (MPN) of the item. */ - mpn: string; + mpn?: string; /** * An identifier of the item. */ - offerId: string; + offerId?: string; /** * Price of the item. */ - price: Schema$Price; + price?: Schema$Price; /** * URL to the cached image shown to the user when order was placed. */ - shownImage: string; + shownImage?: string; /** * The CLDR territory code of the target country of the product. */ - targetCountry: string; + targetCountry?: string; /** * The title of the product. */ - title: string; + title?: string; /** * Variant attributes for the item. These are dimensions of the product, * such as color, gender, material, pattern, and size. You can find a * comprehensive list of variant attributes here. */ - variantAttributes: Schema$OrderLineItemProductVariantAttribute[]; + variantAttributes?: Schema$OrderLineItemProductVariantAttribute[]; } export interface Schema$OrderLineItemProductVariantAttribute { /** * The dimension of the variant. */ - dimension: string; + dimension?: string; /** * The value for the dimension. */ - value: string; + value?: string; } export interface Schema$OrderLineItemReturnInfo { /** * How many days later the item can be returned. */ - daysToReturn: number; + daysToReturn?: number; /** * Whether the item is returnable. */ - isReturnable: boolean; + isReturnable?: boolean; /** * URL of the item return policy. */ - policyUrl: string; + policyUrl?: string; } export interface Schema$OrderLineItemShippingDetails { /** * The delivery by date, in ISO 8601 format. */ - deliverByDate: string; + deliverByDate?: string; /** * Details of the shipping method. */ - method: Schema$OrderLineItemShippingDetailsMethod; + method?: Schema$OrderLineItemShippingDetailsMethod; /** * The ship by date, in ISO 8601 format. */ - shipByDate: string; + shipByDate?: string; } export interface Schema$OrderLineItemShippingDetailsMethod { /** * The carrier for the shipping. Optional. See shipments[].carrier for a * list of acceptable values. */ - carrier: string; + carrier?: string; /** * Maximum transit time. */ - maxDaysInTransit: number; + maxDaysInTransit?: number; /** * The name of the shipping method. */ - methodName: string; + methodName?: string; /** * Minimum transit time. */ - minDaysInTransit: number; + minDaysInTransit?: number; } export interface Schema$OrderMerchantProvidedAnnotation { /** * Key for additional merchant provided (as key-value pairs) annotation * about the line item. */ - key: string; + key?: string; /** * Value for additional merchant provided (as key-value pairs) annotation * about the line item. */ - value: string; + value?: string; } export interface Schema$OrderPaymentMethod { /** * The billing address. */ - billingAddress: Schema$OrderAddress; + billingAddress?: Schema$OrderAddress; /** * The card expiration month (January = 1, February = 2 etc.). */ - expirationMonth: number; + expirationMonth?: number; /** * The card expiration year (4-digit, e.g. 2015). */ - expirationYear: number; + expirationYear?: number; /** * The last four digits of the card number. */ - lastFourDigits: string; + lastFourDigits?: string; /** * The billing phone number. */ - phoneNumber: string; + phoneNumber?: string; /** * The type of instrument. Acceptable values are: - "AMEX" - * "DISCOVER" - "JCB" - "MASTERCARD" - * "UNIONPAY" - "VISA" - "" */ - type: string; + type?: string; } export interface Schema$OrderPromotion { - benefits: Schema$OrderPromotionBenefit[]; + benefits?: Schema$OrderPromotionBenefit[]; /** * The date and time frame when the promotion is active and ready for * validation review. Note that the promotion live time may be delayed for a @@ -530,122 +533,122 @@ export namespace content_v2sandbox { * the sale starts (in Greenwich Mean Time, GMT), followed by an expression * of the time zone for the sale. The end date is in the same format. */ - effectiveDates: string; + effectiveDates?: string; /** * Optional. The text code that corresponds to the promotion when applied on * the retailer?s website. */ - genericRedemptionCode: string; + genericRedemptionCode?: string; /** * The unique ID of the promotion. */ - id: string; + id?: string; /** * The full title of the promotion. */ - longTitle: string; + longTitle?: string; /** * Whether the promotion is applicable to all products or only specific * products. */ - productApplicability: string; + productApplicability?: string; /** * Indicates that the promotion is valid online. */ - redemptionChannel: string; + redemptionChannel?: string; } export interface Schema$OrderPromotionBenefit { /** * The discount in the order price when the promotion is applied. */ - discount: Schema$Price; + discount?: Schema$Price; /** * The OfferId(s) that were purchased in this order and map to this specific * benefit of the promotion. */ - offerIds: string[]; + offerIds?: string[]; /** * Further describes the benefit of the promotion. Note that we will expand * on this enumeration as we support new promotion sub-types. */ - subType: string; + subType?: string; /** * The impact on tax when the promotion is applied. */ - taxImpact: Schema$Price; + taxImpact?: Schema$Price; /** * Describes whether the promotion applies to products (e.g. 20% off) or to * shipping (e.g. Free Shipping). */ - type: string; + type?: string; } export interface Schema$OrderRefund { /** * The actor that created the refund. */ - actor: string; + actor?: string; /** * The amount that is refunded. */ - amount: Schema$Price; + amount?: Schema$Price; /** * Date on which the item has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * The reason for the refund. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrderReturn { /** * The actor that created the refund. */ - actor: string; + actor?: string; /** * Date on which the item has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * Quantity that is returned. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersAcknowledgeRequest { /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; } export interface Schema$OrdersAcknowledgeResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersAcknowledgeResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersAdvanceTestOrderResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersAdvanceTestOrderResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCancelLineItemRequest { /** @@ -653,79 +656,79 @@ export namespace content_v2sandbox { * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amount: Schema$Price; + amount?: Schema$Price; /** * Amount to refund for the cancelation. Optional. If not set, Google will * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to cancellation amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to cancel. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to cancel. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to cancel. */ - quantity: number; + quantity?: number; /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCancelLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCancelLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCancelRequest { /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCancelResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCancelResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCreateTestOrderRequest { /** @@ -733,116 +736,116 @@ export namespace content_v2sandbox { * a shortcut for retrieving a template and then creating an order using * that template. */ - templateName: string; + templateName?: string; /** * The test order to create. */ - testOrder: Schema$TestOrder; + testOrder?: Schema$TestOrder; } export interface Schema$OrdersCreateTestOrderResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCreateTestOrderResponse". */ - kind: string; + kind?: string; /** * The ID of the newly created test order. */ - orderId: string; + orderId?: string; } export interface Schema$OrdersCustomBatchRequest { /** * The request entries to be processed in the batch. */ - entries: Schema$OrdersCustomBatchRequestEntry[]; + entries?: Schema$OrdersCustomBatchRequestEntry[]; } export interface Schema$OrdersCustomBatchRequestEntry { /** * An entry ID, unique within the batch request. */ - batchId: number; + batchId?: number; /** * Required for cancel method. */ - cancel: Schema$OrdersCustomBatchRequestEntryCancel; + cancel?: Schema$OrdersCustomBatchRequestEntryCancel; /** * Required for cancelLineItem method. */ - cancelLineItem: Schema$OrdersCustomBatchRequestEntryCancelLineItem; + cancelLineItem?: Schema$OrdersCustomBatchRequestEntryCancelLineItem; /** * Required for inStoreReturnLineItem method. */ - inStoreRefundLineItem: + inStoreRefundLineItem?: Schema$OrdersCustomBatchRequestEntryInStoreRefundLineItem; /** * The ID of the managing account. */ - merchantId: string; + merchantId?: string; /** * The merchant order id. Required for updateMerchantOrderId and * getByMerchantOrderId methods. */ - merchantOrderId: string; + merchantOrderId?: string; /** * The method to apply. */ - method: string; + method?: string; /** * The ID of the operation. Unique across all operations for a given order. * Required for all methods beside get and getByMerchantOrderId. */ - operationId: string; + operationId?: string; /** * The ID of the order. Required for all methods beside * getByMerchantOrderId. */ - orderId: string; + orderId?: string; /** * Required for refund method. */ - refund: Schema$OrdersCustomBatchRequestEntryRefund; + refund?: Schema$OrdersCustomBatchRequestEntryRefund; /** * Required for rejectReturnLineItem method. */ - rejectReturnLineItem: + rejectReturnLineItem?: Schema$OrdersCustomBatchRequestEntryRejectReturnLineItem; /** * Required for returnLineItem method. */ - returnLineItem: Schema$OrdersCustomBatchRequestEntryReturnLineItem; + returnLineItem?: Schema$OrdersCustomBatchRequestEntryReturnLineItem; /** * Required for returnRefundLineItem method. */ - returnRefundLineItem: + returnRefundLineItem?: Schema$OrdersCustomBatchRequestEntryReturnRefundLineItem; /** * Required for setLineItemMetadata method. */ - setLineItemMetadata: + setLineItemMetadata?: Schema$OrdersCustomBatchRequestEntrySetLineItemMetadata; /** * Required for shipLineItems method. */ - shipLineItems: Schema$OrdersCustomBatchRequestEntryShipLineItems; + shipLineItems?: Schema$OrdersCustomBatchRequestEntryShipLineItems; /** * Required for updateLineItemShippingDate method. */ - updateLineItemShippingDetails: + updateLineItemShippingDetails?: Schema$OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails; /** * Required for updateShipment method. */ - updateShipment: Schema$OrdersCustomBatchRequestEntryUpdateShipment; + updateShipment?: Schema$OrdersCustomBatchRequestEntryUpdateShipment; } export interface Schema$OrdersCustomBatchRequestEntryCancel { /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryCancelLineItem { /** @@ -850,188 +853,188 @@ export namespace content_v2sandbox { * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amount: Schema$Price; + amount?: Schema$Price; /** * Amount to refund for the cancelation. Optional. If not set, Google will * calculate the default based on the price and tax of the items involved. * The amount must not be larger than the net amount left on the order. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to cancellation amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to cancel. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to cancel. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to cancel. */ - quantity: number; + quantity?: number; /** * The reason for the cancellation. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryInStoreRefundLineItem { /** * The amount that is refunded. Required. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. Required. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryRefund { /** * The amount that is refunded. */ - amount: Schema$Price; + amount?: Schema$Price; /** * The amount that is refunded. Either amount or amountPretax and amountTax * should be filled. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The reason for the refund. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryRejectReturnLineItem { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryReturnLineItem { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntryReturnRefundLineItem { /** * The amount that is refunded. Optional, but if filled then both * amountPretax and amountTax must be set. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersCustomBatchRequestEntrySetLineItemMetadata { - annotations: Schema$OrderMerchantProvidedAnnotation[]; + annotations?: Schema$OrderMerchantProvidedAnnotation[]; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; } export interface Schema$OrdersCustomBatchRequestEntryShipLineItems { /** @@ -1039,63 +1042,63 @@ export namespace content_v2sandbox { * shipment. See shipments[].carrier in the Orders resource representation * for a list of acceptable values. */ - carrier: string; + carrier?: string; /** * Line items to ship. */ - lineItems: Schema$OrderShipmentLineItemShipment[]; + lineItems?: Schema$OrderShipmentLineItemShipment[]; /** * Deprecated. Please use shipmentInfo instead. The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * Shipment information. This field is repeated because a single line item * can be shipped in several packages (and have several tracking IDs). */ - shipmentInfos: + shipmentInfos?: Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo[]; /** * Deprecated. Please use shipmentInfo instead. The tracking id for the * shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo { /** * The carrier handling the shipment. See shipments[].carrier in the Orders * resource representation for a list of acceptable values. */ - carrier: string; + carrier?: string; /** * The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * The tracking id for the shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails { /** * Updated delivery by date, in ISO 8601 format. If not specified only ship * by date is updated. */ - deliverByDate: string; + deliverByDate?: string; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * Updated ship by date, in ISO 8601 format. If not specified only deliver * by date is updated. */ - shipByDate: string; + shipByDate?: string; } export interface Schema$OrdersCustomBatchRequestEntryUpdateShipment { /** @@ -1103,77 +1106,77 @@ export namespace content_v2sandbox { * shipments[].carrier in the Orders resource representation for a list of * acceptable values. */ - carrier: string; + carrier?: string; /** * The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * New status for the shipment. Not updated if missing. */ - status: string; + status?: string; /** * The tracking id for the shipment. Not updated if missing. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersCustomBatchResponse { /** * The result of the execution of the batch requests. */ - entries: Schema$OrdersCustomBatchResponseEntry[]; + entries?: Schema$OrdersCustomBatchResponseEntry[]; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCustomBatchResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersCustomBatchResponseEntry { /** * The ID of the request entry this entry responds to. */ - batchId: number; + batchId?: number; /** * A list of errors defined if and only if the request failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The status of the execution. Only defined if the method is not get or * getByMerchantOrderId and if the request was successful. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersCustomBatchResponseEntry". */ - kind: string; + kind?: string; /** * The retrieved order. Only defined if the method is get and if the request * was successful. */ - order: Schema$Order; + order?: Schema$Order; } export interface Schema$OrdersGetByMerchantOrderIdResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersGetByMerchantOrderIdResponse". */ - kind: string; + kind?: string; /** * The requested order. */ - order: Schema$Order; + order?: Schema$Order; } export interface Schema$OrdersGetTestOrderTemplateResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersGetTestOrderTemplateResponse". */ - kind: string; + kind?: string; /** * The requested test order template. */ - template: Schema$TestOrder; + template?: Schema$TestOrder; } export interface Schema$OrderShipment { /** @@ -1185,299 +1188,299 @@ export namespace content_v2sandbox { * "dynamex" - "lasership" - "mpx" - * "uds" */ - carrier: string; + carrier?: string; /** * Date on which the shipment has been created, in ISO 8601 format. */ - creationDate: string; + creationDate?: string; /** * Date on which the shipment has been delivered, in ISO 8601 format. * Present only if status is delievered */ - deliveryDate: string; + deliveryDate?: string; /** * The id of the shipment. */ - id: string; + id?: string; /** * The line items that are shipped. */ - lineItems: Schema$OrderShipmentLineItemShipment[]; + lineItems?: Schema$OrderShipmentLineItemShipment[]; /** * The status of the shipment. */ - status: string; + status?: string; /** * The tracking id for the shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrderShipmentLineItemShipment { /** * The id of the line item that is shipped. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the product to ship. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity that is shipped. */ - quantity: number; + quantity?: number; } export interface Schema$OrdersInStoreRefundLineItemRequest { /** * The amount that is refunded. Required. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. Required. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersInStoreRefundLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersInStoreRefundLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersListResponse { /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersListResponse". */ - kind: string; + kind?: string; /** * The token for the retrieval of the next page of orders. */ - nextPageToken: string; - resources: Schema$Order[]; + nextPageToken?: string; + resources?: Schema$Order[]; } export interface Schema$OrdersRefundRequest { /** * The amount that is refunded. */ - amount: Schema$Price; + amount?: Schema$Price; /** * The amount that is refunded. Either amount or amountPretax and amountTax * should be filled. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The reason for the refund. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersRefundResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersRefundResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersRejectReturnLineItemRequest { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersRejectReturnLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersRejectReturnLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersReturnLineItemRequest { /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersReturnLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersReturnLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersReturnRefundLineItemRequest { /** * The amount that is refunded. Optional, but if filled then both * amountPretax and amountTax must be set. */ - amountPretax: Schema$Price; + amountPretax?: Schema$Price; /** * Tax amount that correspond to refund amount in amountPretax. */ - amountTax: Schema$Price; + amountTax?: Schema$Price; /** * The ID of the line item to return. Either lineItemId or productId is * required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to return. This is the REST ID used in the products * service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * The quantity to return and refund. */ - quantity: number; + quantity?: number; /** * The reason for the return. */ - reason: string; + reason?: string; /** * The explanation of the reason. */ - reasonText: string; + reasonText?: string; } export interface Schema$OrdersReturnRefundLineItemResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersReturnRefundLineItemResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersSetLineItemMetadataRequest { - annotations: Schema$OrderMerchantProvidedAnnotation[]; + annotations?: Schema$OrderMerchantProvidedAnnotation[]; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; } export interface Schema$OrdersSetLineItemMetadataResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersSetLineItemMetadataResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersShipLineItemsRequest { /** @@ -1485,100 +1488,100 @@ export namespace content_v2sandbox { * shipment. See shipments[].carrier in the Orders resource representation * for a list of acceptable values. */ - carrier: string; + carrier?: string; /** * Line items to ship. */ - lineItems: Schema$OrderShipmentLineItemShipment[]; + lineItems?: Schema$OrderShipmentLineItemShipment[]; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * Deprecated. Please use shipmentInfo instead. The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * Shipment information. This field is repeated because a single line item * can be shipped in several packages (and have several tracking IDs). */ - shipmentInfos: + shipmentInfos?: Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo[]; /** * Deprecated. Please use shipmentInfo instead. The tracking id for the * shipment. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersShipLineItemsResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersShipLineItemsResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersUpdateLineItemShippingDetailsRequest { /** * Updated delivery by date, in ISO 8601 format. If not specified only ship * by date is updated. */ - deliverByDate: string; + deliverByDate?: string; /** * The ID of the line item to set metadata. Either lineItemId or productId * is required. */ - lineItemId: string; + lineItemId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the product to set metadata. This is the REST ID used in the * products service. Either lineItemId or productId is required. */ - productId: string; + productId?: string; /** * Updated ship by date, in ISO 8601 format. If not specified only deliver * by date is updated. */ - shipByDate: string; + shipByDate?: string; } export interface Schema$OrdersUpdateLineItemShippingDetailsResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersUpdateLineItemShippingDetailsResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersUpdateMerchantOrderIdRequest { /** * The merchant order id to be assigned to the order. Must be unique per * merchant. */ - merchantOrderId: string; + merchantOrderId?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; } export interface Schema$OrdersUpdateMerchantOrderIdResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersUpdateMerchantOrderIdResponse". */ - kind: string; + kind?: string; } export interface Schema$OrdersUpdateShipmentRequest { /** @@ -1586,220 +1589,221 @@ export namespace content_v2sandbox { * shipments[].carrier in the Orders resource representation for a list of * acceptable values. */ - carrier: string; + carrier?: string; /** * The ID of the operation. Unique across all operations for a given order. */ - operationId: string; + operationId?: string; /** * The ID of the shipment. */ - shipmentId: string; + shipmentId?: string; /** * New status for the shipment. Not updated if missing. */ - status: string; + status?: string; /** * The tracking id for the shipment. Not updated if missing. */ - trackingId: string; + trackingId?: string; } export interface Schema$OrdersUpdateShipmentResponse { /** * The status of the execution. */ - executionStatus: string; + executionStatus?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "content#ordersUpdateShipmentResponse". */ - kind: string; + kind?: string; } export interface Schema$Price { /** * The currency of the price. */ - currency: string; + currency?: string; /** * The price represented as a number. */ - value: string; + value?: string; } export interface Schema$TestOrder { /** * The details of the customer who placed the order. */ - customer: Schema$TestOrderCustomer; + customer?: Schema$TestOrderCustomer; /** * Identifies what kind of resource this is. Value: the fixed string * "content#testOrder". */ - kind: string; + kind?: string; /** * Line items that are ordered. At least one line item must be provided. */ - lineItems: Schema$TestOrderLineItem[]; + lineItems?: Schema$TestOrderLineItem[]; /** * Determines if test order must be pulled by merchant or pushed to merchant * via push integration. */ - notificationMode: string; + notificationMode?: string; /** * The details of the payment method. */ - paymentMethod: Schema$TestOrderPaymentMethod; + paymentMethod?: Schema$TestOrderPaymentMethod; /** * Identifier of one of the predefined delivery addresses for the delivery. */ - predefinedDeliveryAddress: string; + predefinedDeliveryAddress?: string; /** * The details of the merchant provided promotions applied to the order. * More details about the program are here. */ - promotions: Schema$OrderPromotion[]; + promotions?: Schema$OrderPromotion[]; /** * The total cost of shipping for all items. */ - shippingCost: Schema$Price; + shippingCost?: Schema$Price; /** * The tax for the total shipping cost. */ - shippingCostTax: Schema$Price; + shippingCostTax?: Schema$Price; /** * The requested shipping option. */ - shippingOption: string; + shippingOption?: string; } export interface Schema$TestOrderCustomer { /** * Email address of the customer. */ - email: string; + email?: string; /** * Deprecated. Please use marketingRightsInfo instead. */ - explicitMarketingPreference: boolean; + explicitMarketingPreference?: boolean; /** * Full name of the customer. */ - fullName: string; + fullName?: string; /** * Customer's marketing preferences. */ - marketingRightsInfo: Schema$TestOrderCustomerMarketingRightsInfo; + marketingRightsInfo?: Schema$TestOrderCustomerMarketingRightsInfo; } export interface Schema$TestOrderCustomerMarketingRightsInfo { /** * Last know user use selection regards marketing preferences. In certain * cases selection might not be known, so this field would be empty. */ - explicitMarketingPreference: string; + explicitMarketingPreference?: string; /** * Timestamp when last time marketing preference was updated. Could be * empty, if user wasn't offered a selection yet. */ - lastUpdatedTimestamp: string; + lastUpdatedTimestamp?: string; } export interface Schema$TestOrderLineItem { /** * Product data from the time of the order placement. */ - product: Schema$TestOrderLineItemProduct; + product?: Schema$TestOrderLineItemProduct; /** * Number of items ordered. */ - quantityOrdered: number; + quantityOrdered?: number; /** * Details of the return policy for the line item. */ - returnInfo: Schema$OrderLineItemReturnInfo; + returnInfo?: Schema$OrderLineItemReturnInfo; /** * Details of the requested shipping for the line item. */ - shippingDetails: Schema$OrderLineItemShippingDetails; + shippingDetails?: Schema$OrderLineItemShippingDetails; /** * Unit tax for the line item. */ - unitTax: Schema$Price; + unitTax?: Schema$Price; } export interface Schema$TestOrderLineItemProduct { /** * Brand of the item. */ - brand: string; + brand?: string; /** * The item's channel. */ - channel: string; + channel?: string; /** * Condition or state of the item. */ - condition: string; + condition?: string; /** * The two-letter ISO 639-1 language code for the item. */ - contentLanguage: string; + contentLanguage?: string; /** * Global Trade Item Number (GTIN) of the item. Optional. */ - gtin: string; + gtin?: string; /** * URL of an image of the item. */ - imageLink: string; + imageLink?: string; /** * Shared identifier for all variants of the same product. Optional. */ - itemGroupId: string; + itemGroupId?: string; /** * Manufacturer Part Number (MPN) of the item. Optional. */ - mpn: string; + mpn?: string; /** * An identifier of the item. */ - offerId: string; + offerId?: string; /** * The price for the product. */ - price: Schema$Price; + price?: Schema$Price; /** * The CLDR territory code of the target country of the product. */ - targetCountry: string; + targetCountry?: string; /** * The title of the product. */ - title: string; + title?: string; /** * Variant attributes for the item. Optional. */ - variantAttributes: Schema$OrderLineItemProductVariantAttribute[]; + variantAttributes?: Schema$OrderLineItemProductVariantAttribute[]; } export interface Schema$TestOrderPaymentMethod { /** * The card expiration month (January = 1, February = 2 etc.). */ - expirationMonth: number; + expirationMonth?: number; /** * The card expiration year (4-digit, e.g. 2015). */ - expirationYear: number; + expirationYear?: number; /** * The last four digits of the card number. */ - lastFourDigits: string; + lastFourDigits?: string; /** * The billing address. */ - predefinedBillingAddress: string; + predefinedBillingAddress?: string; /** * The type of instrument. Note that real orders might have different values * than the four values accepted by createTestOrder. */ - type: string; + type?: string; } + export class Resource$Orders { root: Content; constructor(root: Content) { @@ -1826,29 +1830,41 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge(params?: any, options?: MethodOptions): + acknowledge( + params?: Params$Resource$Orders$Acknowledge, options?: MethodOptions): AxiosPromise; acknowledge( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Acknowledge, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + acknowledge( + params: Params$Resource$Orders$Acknowledge, + callback: BodyResponseCallback): void; + acknowledge( + callback: BodyResponseCallback): void; acknowledge( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Acknowledge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Acknowledge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Acknowledge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1888,29 +1904,45 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - advancetestorder(params?: any, options?: MethodOptions): + advancetestorder( + params?: Params$Resource$Orders$Advancetestorder, + options?: MethodOptions): AxiosPromise; advancetestorder( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Advancetestorder, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + advancetestorder( + params: Params$Resource$Orders$Advancetestorder, + callback: BodyResponseCallback): void; advancetestorder( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + advancetestorder( + paramsOrCallback?: Params$Resource$Orders$Advancetestorder| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Advancetestorder; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Advancetestorder; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1951,28 +1983,38 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): + cancel(params?: Params$Resource$Orders$Cancel, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Cancel, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Orders$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2010,29 +2052,45 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancellineitem(params?: any, options?: MethodOptions): + cancellineitem( + params?: Params$Resource$Orders$Cancellineitem, + options?: MethodOptions): AxiosPromise; cancellineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Cancellineitem, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + cancellineitem( + params: Params$Resource$Orders$Cancellineitem, + callback: BodyResponseCallback): void; cancellineitem( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + cancellineitem( + paramsOrCallback?: Params$Resource$Orders$Cancellineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Cancellineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Cancellineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2072,29 +2130,45 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createtestorder(params?: any, options?: MethodOptions): + createtestorder( + params?: Params$Resource$Orders$Createtestorder, + options?: MethodOptions): AxiosPromise; createtestorder( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Createtestorder, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + createtestorder( + params: Params$Resource$Orders$Createtestorder, + callback: BodyResponseCallback): + void; + createtestorder( + callback: BodyResponseCallback): void; createtestorder( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Createtestorder| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Createtestorder; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Createtestorder; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2131,29 +2205,41 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch(params?: any, options?: MethodOptions): + custombatch( + params?: Params$Resource$Orders$Custombatch, options?: MethodOptions): AxiosPromise; custombatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Custombatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + custombatch( + params: Params$Resource$Orders$Custombatch, + callback: BodyResponseCallback): void; custombatch( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + custombatch( + paramsOrCallback?: Params$Resource$Orders$Custombatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Custombatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2190,23 +2276,33 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Orders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Orders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2243,31 +2339,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getbymerchantorderid(params?: any, options?: MethodOptions): + getbymerchantorderid( + params?: Params$Resource$Orders$Getbymerchantorderid, + options?: MethodOptions): AxiosPromise; getbymerchantorderid( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Getbymerchantorderid, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + getbymerchantorderid( + params: Params$Resource$Orders$Getbymerchantorderid, + callback: BodyResponseCallback): void; getbymerchantorderid( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + getbymerchantorderid( + paramsOrCallback?: Params$Resource$Orders$Getbymerchantorderid| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Getbymerchantorderid; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Getbymerchantorderid; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2308,31 +2422,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - gettestordertemplate(params?: any, options?: MethodOptions): + gettestordertemplate( + params?: Params$Resource$Orders$Gettestordertemplate, + options?: MethodOptions): AxiosPromise; gettestordertemplate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Gettestordertemplate, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + gettestordertemplate( + params: Params$Resource$Orders$Gettestordertemplate, + callback: BodyResponseCallback): void; gettestordertemplate( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + gettestordertemplate( + paramsOrCallback?: Params$Resource$Orders$Gettestordertemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Gettestordertemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Gettestordertemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2373,31 +2505,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instorerefundlineitem(params?: any, options?: MethodOptions): + instorerefundlineitem( + params?: Params$Resource$Orders$Instorerefundlineitem, + options?: MethodOptions): AxiosPromise; instorerefundlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Instorerefundlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + instorerefundlineitem( + params: Params$Resource$Orders$Instorerefundlineitem, + callback: + BodyResponseCallback): + void; + instorerefundlineitem( + callback: BodyResponseCallback): void; instorerefundlineitem( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Instorerefundlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Instorerefundlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Instorerefundlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2443,26 +2593,37 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Orders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Orders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Orders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2499,28 +2660,38 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - refund(params?: any, options?: MethodOptions): + refund(params?: Params$Resource$Orders$Refund, options?: MethodOptions): AxiosPromise; refund( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Refund, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + refund( + params: Params$Resource$Orders$Refund, + callback: BodyResponseCallback): void; + refund(callback: BodyResponseCallback): void; refund( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Refund| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Refund; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Refund; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2558,31 +2729,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rejectreturnlineitem(params?: any, options?: MethodOptions): + rejectreturnlineitem( + params?: Params$Resource$Orders$Rejectreturnlineitem, + options?: MethodOptions): AxiosPromise; rejectreturnlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Rejectreturnlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; rejectreturnlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Rejectreturnlineitem, + callback: + BodyResponseCallback): + void; + rejectreturnlineitem( + callback: + BodyResponseCallback): + void; + rejectreturnlineitem( + paramsOrCallback?: Params$Resource$Orders$Rejectreturnlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Rejectreturnlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Rejectreturnlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2623,29 +2812,45 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - returnlineitem(params?: any, options?: MethodOptions): + returnlineitem( + params?: Params$Resource$Orders$Returnlineitem, + options?: MethodOptions): AxiosPromise; returnlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Returnlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + returnlineitem( + params: Params$Resource$Orders$Returnlineitem, + callback: BodyResponseCallback): + void; + returnlineitem( + callback: BodyResponseCallback): void; returnlineitem( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Returnlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Returnlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Returnlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2687,31 +2892,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - returnrefundlineitem(params?: any, options?: MethodOptions): + returnrefundlineitem( + params?: Params$Resource$Orders$Returnrefundlineitem, + options?: MethodOptions): AxiosPromise; returnrefundlineitem( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Returnrefundlineitem, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + returnrefundlineitem( + params: Params$Resource$Orders$Returnrefundlineitem, + callback: + BodyResponseCallback): + void; + returnrefundlineitem( + callback: BodyResponseCallback): void; returnrefundlineitem( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Returnrefundlineitem| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Returnrefundlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Returnrefundlineitem; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2752,31 +2975,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setlineitemmetadata(params?: any, options?: MethodOptions): + setlineitemmetadata( + params?: Params$Resource$Orders$Setlineitemmetadata, + options?: MethodOptions): AxiosPromise; setlineitemmetadata( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Setlineitemmetadata, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; setlineitemmetadata( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Setlineitemmetadata, + callback: + BodyResponseCallback): + void; + setlineitemmetadata( + callback: + BodyResponseCallback): + void; + setlineitemmetadata( + paramsOrCallback?: Params$Resource$Orders$Setlineitemmetadata| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Setlineitemmetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Setlineitemmetadata; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2817,29 +3058,44 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - shiplineitems(params?: any, options?: MethodOptions): + shiplineitems( + params?: Params$Resource$Orders$Shiplineitems, options?: MethodOptions): AxiosPromise; shiplineitems( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Shiplineitems, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + shiplineitems( + params: Params$Resource$Orders$Shiplineitems, + callback: BodyResponseCallback): + void; + shiplineitems(callback: + BodyResponseCallback): void; shiplineitems( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Shiplineitems| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Shiplineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Shiplineitems; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2879,30 +3135,47 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatelineitemshippingdetails(params?: any, options?: MethodOptions): + updatelineitemshippingdetails( + params?: Params$Resource$Orders$Updatelineitemshippingdetails, + options?: MethodOptions): AxiosPromise; updatelineitemshippingdetails( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Orders$Updatelineitemshippingdetails, + options: MethodOptions|BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>): void; updatelineitemshippingdetails( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Orders$Updatelineitemshippingdetails, + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse>): void; + updatelineitemshippingdetails( + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse>): void; + updatelineitemshippingdetails( + paramsOrCallback?: Params$Resource$Orders$Updatelineitemshippingdetails| + BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>, callback?: BodyResponseCallback< Schema$OrdersUpdateLineItemShippingDetailsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Updatelineitemshippingdetails; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updatelineitemshippingdetails; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2943,31 +3216,49 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatemerchantorderid(params?: any, options?: MethodOptions): + updatemerchantorderid( + params?: Params$Resource$Orders$Updatemerchantorderid, + options?: MethodOptions): AxiosPromise; updatemerchantorderid( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Updatemerchantorderid, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; updatemerchantorderid( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Updatemerchantorderid, + callback: + BodyResponseCallback): + void; + updatemerchantorderid( + callback: + BodyResponseCallback): + void; + updatemerchantorderid( + paramsOrCallback?: Params$Resource$Orders$Updatemerchantorderid| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Orders$Updatemerchantorderid; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updatemerchantorderid; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3008,29 +3299,45 @@ export namespace content_v2sandbox { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateshipment(params?: any, options?: MethodOptions): + updateshipment( + params?: Params$Resource$Orders$Updateshipment, + options?: MethodOptions): AxiosPromise; updateshipment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orders$Updateshipment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + updateshipment( + params: Params$Resource$Orders$Updateshipment, + callback: BodyResponseCallback): + void; + updateshipment( + callback: BodyResponseCallback): void; updateshipment( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orders$Updateshipment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orders$Updateshipment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updateshipment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3056,4 +3363,407 @@ export namespace content_v2sandbox { } } } + + export interface Params$Resource$Orders$Acknowledge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersAcknowledgeRequest; + } + export interface Params$Resource$Orders$Advancetestorder { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the test order to modify. + */ + orderId?: string; + } + export interface Params$Resource$Orders$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order to cancel. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersCancelRequest; + } + export interface Params$Resource$Orders$Cancellineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersCancelLineItemRequest; + } + export interface Params$Resource$Orders$Createtestorder { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that should manage the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersCreateTestOrderRequest; + } + export interface Params$Resource$Orders$Custombatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Orders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + } + export interface Params$Resource$Orders$Getbymerchantorderid { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The merchant order id to be looked for. + */ + merchantOrderId?: string; + } + export interface Params$Resource$Orders$Gettestordertemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that should manage the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The name of the template to retrieve. + */ + templateName?: string; + } + export interface Params$Resource$Orders$Instorerefundlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersInStoreRefundLineItemRequest; + } + export interface Params$Resource$Orders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Obtains orders that match the acknowledgement status. When set to true, + * obtains orders that have been acknowledged. When false, obtains orders + * that have not been acknowledged. We recommend using this filter set to + * false, in conjunction with the acknowledge call, such that only + * un-acknowledged orders are returned. + */ + acknowledged?: boolean; + /** + * The maximum number of orders to return in the response, used for paging. + * The default value is 25 orders per page, and the maximum allowed value is + * 250 orders per page. Known issue: All List calls will return all Orders + * without limit regardless of the value of this field. + */ + maxResults?: number; + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ordering of the returned list. The only supported value are + * placedDate desc and placedDate asc for now, which returns orders sorted + * by placement date. "placedDate desc" stands for listing orders by + * placement date, from oldest to most recent. "placedDate asc" stands for + * listing orders by placement date, from most recent to oldest. In future + * releases we'll support other sorting criteria. + */ + orderBy?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * Obtains orders placed before this date (exclusively), in ISO 8601 format. + */ + placedDateEnd?: string; + /** + * Obtains orders placed after this date (inclusively), in ISO 8601 format. + */ + placedDateStart?: string; + /** + * Obtains orders that match any of the specified statuses. Multiple values + * can be specified with comma separation. Additionally, please note that + * active is a shortcut for pendingShipment and partiallyShipped, and + * completed is a shortcut for shipped , partiallyDelivered, delivered, + * partiallyReturned, returned, and canceled. + */ + statuses?: string; + } + export interface Params$Resource$Orders$Refund { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order to refund. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersRefundRequest; + } + export interface Params$Resource$Orders$Rejectreturnlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersRejectReturnLineItemRequest; + } + export interface Params$Resource$Orders$Returnlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersReturnLineItemRequest; + } + export interface Params$Resource$Orders$Returnrefundlineitem { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersReturnRefundLineItemRequest; + } + export interface Params$Resource$Orders$Setlineitemmetadata { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersSetLineItemMetadataRequest; + } + export interface Params$Resource$Orders$Shiplineitems { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersShipLineItemsRequest; + } + export interface Params$Resource$Orders$Updatelineitemshippingdetails { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersUpdateLineItemShippingDetailsRequest; + } + export interface Params$Resource$Orders$Updatemerchantorderid { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersUpdateMerchantOrderIdRequest; + } + export interface Params$Resource$Orders$Updateshipment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account that manages the order. This cannot be a + * multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + /** + * Request body metadata + */ + resource?: Schema$OrdersUpdateShipmentRequest; + } } diff --git a/src/apis/customsearch/v1.ts b/src/apis/customsearch/v1.ts index b673a41a25c..9b08c4b241a 100644 --- a/src/apis/customsearch/v1.ts +++ b/src/apis/customsearch/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace customsearch_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * CustomSearch API * @@ -66,83 +69,84 @@ export namespace customsearch_v1 { } export interface Schema$Context { - facets: any[][]; - title: string; + facets?: any[][]; + title?: string; } export interface Schema$Promotion { - bodyLines: any[]; - displayLink: string; - htmlTitle: string; - image: any; - link: string; - title: string; + bodyLines?: any[]; + displayLink?: string; + htmlTitle?: string; + image?: any; + link?: string; + title?: string; } export interface Schema$Query { - count: number; - cr: string; - cx: string; - dateRestrict: string; - disableCnTwTranslation: string; - exactTerms: string; - excludeTerms: string; - fileType: string; - filter: string; - gl: string; - googleHost: string; - highRange: string; - hl: string; - hq: string; - imgColorType: string; - imgDominantColor: string; - imgSize: string; - imgType: string; - inputEncoding: string; - language: string; - linkSite: string; - lowRange: string; - orTerms: string; - outputEncoding: string; - relatedSite: string; - rights: string; - safe: string; - searchTerms: string; - searchType: string; - siteSearch: string; - siteSearchFilter: string; - sort: string; - startIndex: number; - startPage: number; - title: string; - totalResults: string; + count?: number; + cr?: string; + cx?: string; + dateRestrict?: string; + disableCnTwTranslation?: string; + exactTerms?: string; + excludeTerms?: string; + fileType?: string; + filter?: string; + gl?: string; + googleHost?: string; + highRange?: string; + hl?: string; + hq?: string; + imgColorType?: string; + imgDominantColor?: string; + imgSize?: string; + imgType?: string; + inputEncoding?: string; + language?: string; + linkSite?: string; + lowRange?: string; + orTerms?: string; + outputEncoding?: string; + relatedSite?: string; + rights?: string; + safe?: string; + searchTerms?: string; + searchType?: string; + siteSearch?: string; + siteSearchFilter?: string; + sort?: string; + startIndex?: number; + startPage?: number; + title?: string; + totalResults?: string; } export interface Schema$Result { - cacheId: string; - displayLink: string; - fileFormat: string; - formattedUrl: string; - htmlFormattedUrl: string; - htmlSnippet: string; - htmlTitle: string; - image: any; - kind: string; - labels: any[]; - link: string; - mime: string; - pagemap: any; - snippet: string; - title: string; + cacheId?: string; + displayLink?: string; + fileFormat?: string; + formattedUrl?: string; + htmlFormattedUrl?: string; + htmlSnippet?: string; + htmlTitle?: string; + image?: any; + kind?: string; + labels?: any[]; + link?: string; + mime?: string; + pagemap?: any; + snippet?: string; + title?: string; } export interface Schema$Search { - context: Schema$Context; - items: Schema$Result[]; - kind: string; - promotions: Schema$Promotion[]; - queries: any; - searchInformation: any; - spelling: any; - url: any; + context?: Schema$Context; + items?: Schema$Result[]; + kind?: string; + promotions?: Schema$Promotion[]; + queries?: any; + searchInformation?: any; + spelling?: any; + url?: any; } + export class Resource$Cse { root: Customsearch; siterestrict: Resource$Cse$Siterestrict; @@ -200,25 +204,36 @@ export namespace customsearch_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Cse$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Cse$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Cse$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Cse$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Cse$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cse$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -239,6 +254,154 @@ export namespace customsearch_v1 { } } } + + export interface Params$Resource$Cse$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Turns off the translation between zh-CN and zh-TW. + */ + c2coff?: string; + /** + * Country restrict(s). + */ + cr?: string; + /** + * The custom search engine ID to scope this search query + */ + cx?: string; + /** + * Specifies all search results are from a time period + */ + dateRestrict?: string; + /** + * Identifies a phrase that all documents in the search results must contain + */ + exactTerms?: string; + /** + * Identifies a word or phrase that should not appear in any documents in + * the search results + */ + excludeTerms?: string; + /** + * Returns images of a specified type. Some of the allowed values are: bmp, + * gif, png, jpg, svg, pdf, ... + */ + fileType?: string; + /** + * Controls turning on or off the duplicate content filter. + */ + filter?: string; + /** + * Geolocation of end user. + */ + gl?: string; + /** + * The local Google domain to use to perform the search. + */ + googlehost?: string; + /** + * Creates a range in form as_nlo value..as_nhi value and attempts to append + * it to query + */ + highRange?: string; + /** + * Sets the user interface language. + */ + hl?: string; + /** + * Appends the extra query terms to the query. + */ + hq?: string; + /** + * Returns black and white, grayscale, or color images: mono, gray, and + * color. + */ + imgColorType?: string; + /** + * Returns images of a specific dominant color: yellow, green, teal, blue, + * purple, pink, white, gray, black and brown. + */ + imgDominantColor?: string; + /** + * Returns images of a specified size, where size can be one of: icon, + * small, medium, large, xlarge, xxlarge, and huge. + */ + imgSize?: string; + /** + * Returns images of a type, which can be one of: clipart, face, lineart, + * news, and photo. + */ + imgType?: string; + /** + * Specifies that all search results should contain a link to a particular + * URL + */ + linkSite?: string; + /** + * Creates a range in form as_nlo value..as_nhi value and attempts to append + * it to query + */ + lowRange?: string; + /** + * The language restriction for the search results + */ + lr?: string; + /** + * Number of search results to return + */ + num?: number; + /** + * Provides additional search terms to check for in a document, where each + * document in the search results must contain at least one of the + * additional search terms + */ + orTerms?: string; + /** + * Query + */ + q?: string; + /** + * Specifies that all search results should be pages that are related to the + * specified URL + */ + relatedSite?: string; + /** + * Filters based on licensing. Supported values include: cc_publicdomain, + * cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and + * combinations of these. + */ + rights?: string; + /** + * Search safety level + */ + safe?: string; + /** + * Specifies the search type: image. + */ + searchType?: string; + /** + * Specifies all search results should be pages from a given site + */ + siteSearch?: string; + /** + * Controls whether to include or exclude results from the site named in the + * as_sitesearch parameter + */ + siteSearchFilter?: string; + /** + * The sort expression to apply to the results + */ + sort?: string; + /** + * The index of the first result to return + */ + start?: number; + } + export class Resource$Cse$Siterestrict { root: Customsearch; constructor(root: Customsearch) { @@ -295,25 +458,38 @@ export namespace customsearch_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Cse$Siterestrict$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Cse$Siterestrict$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Cse$Siterestrict$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Cse$Siterestrict$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Cse$Siterestrict$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cse$Siterestrict$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -335,4 +511,151 @@ export namespace customsearch_v1 { } } } + + export interface Params$Resource$Cse$Siterestrict$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Turns off the translation between zh-CN and zh-TW. + */ + c2coff?: string; + /** + * Country restrict(s). + */ + cr?: string; + /** + * The custom search engine ID to scope this search query + */ + cx?: string; + /** + * Specifies all search results are from a time period + */ + dateRestrict?: string; + /** + * Identifies a phrase that all documents in the search results must contain + */ + exactTerms?: string; + /** + * Identifies a word or phrase that should not appear in any documents in + * the search results + */ + excludeTerms?: string; + /** + * Returns images of a specified type. Some of the allowed values are: bmp, + * gif, png, jpg, svg, pdf, ... + */ + fileType?: string; + /** + * Controls turning on or off the duplicate content filter. + */ + filter?: string; + /** + * Geolocation of end user. + */ + gl?: string; + /** + * The local Google domain to use to perform the search. + */ + googlehost?: string; + /** + * Creates a range in form as_nlo value..as_nhi value and attempts to append + * it to query + */ + highRange?: string; + /** + * Sets the user interface language. + */ + hl?: string; + /** + * Appends the extra query terms to the query. + */ + hq?: string; + /** + * Returns black and white, grayscale, or color images: mono, gray, and + * color. + */ + imgColorType?: string; + /** + * Returns images of a specific dominant color: yellow, green, teal, blue, + * purple, pink, white, gray, black and brown. + */ + imgDominantColor?: string; + /** + * Returns images of a specified size, where size can be one of: icon, + * small, medium, large, xlarge, xxlarge, and huge. + */ + imgSize?: string; + /** + * Returns images of a type, which can be one of: clipart, face, lineart, + * news, and photo. + */ + imgType?: string; + /** + * Specifies that all search results should contain a link to a particular + * URL + */ + linkSite?: string; + /** + * Creates a range in form as_nlo value..as_nhi value and attempts to append + * it to query + */ + lowRange?: string; + /** + * The language restriction for the search results + */ + lr?: string; + /** + * Number of search results to return + */ + num?: number; + /** + * Provides additional search terms to check for in a document, where each + * document in the search results must contain at least one of the + * additional search terms + */ + orTerms?: string; + /** + * Query + */ + q?: string; + /** + * Specifies that all search results should be pages that are related to the + * specified URL + */ + relatedSite?: string; + /** + * Filters based on licensing. Supported values include: cc_publicdomain, + * cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and + * combinations of these. + */ + rights?: string; + /** + * Search safety level + */ + safe?: string; + /** + * Specifies the search type: image. + */ + searchType?: string; + /** + * Specifies all search results should be pages from a given site + */ + siteSearch?: string; + /** + * Controls whether to include or exclude results from the site named in the + * as_sitesearch parameter + */ + siteSearchFilter?: string; + /** + * The sort expression to apply to the results + */ + sort?: string; + /** + * The index of the first result to return + */ + start?: number; + } } diff --git a/src/apis/dataflow/v1b3.ts b/src/apis/dataflow/v1b3.ts index 2b7e2538ca8..f26b1567d3b 100644 --- a/src/apis/dataflow/v1b3.ts +++ b/src/apis/dataflow/v1b3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dataflow_v1b3 { + export interface Options extends GlobalOptions { version: 'v1b3'; } + /** * Dataflow API * @@ -73,15 +76,15 @@ export namespace dataflow_v1b3 { /** * Obsolete. */ - percentComplete: number; + percentComplete?: number; /** * Obsolete. */ - position: Schema$Position; + position?: Schema$Position; /** * Obsolete. */ - remainingTime: string; + remainingTime?: string; } /** * A progress measurement of a WorkItem by a worker. @@ -95,16 +98,16 @@ export namespace dataflow_v1b3 { * should equal the total amount of parallelism in this work item. If * specified, must be finite. */ - consumedParallelism: Schema$ReportedParallelism; + consumedParallelism?: Schema$ReportedParallelism; /** * Completion as fraction of the input consumed, from 0.0 (beginning, * nothing consumed), to 1.0 (end of the input, entire input consumed). */ - fractionConsumed: number; + fractionConsumed?: number; /** * A Position within the work to represent a progress. */ - position: Schema$Position; + position?: Schema$Position; /** * Total amount of parallelism in the input of this task that remains, (i.e. * can be delegated to this task and any new tasks via dynamic splitting). @@ -126,7 +129,7 @@ export namespace dataflow_v1b3 { * perfectly splittable input, this value should be 1, because apart from * the current task, no additional remainder can be split off. */ - remainingParallelism: Schema$ReportedParallelism; + remainingParallelism?: Schema$ReportedParallelism; } /** * A suggestion by the service to the worker to dynamically split the @@ -137,11 +140,11 @@ export namespace dataflow_v1b3 { * A fraction at which to split the work item, from 0.0 (beginning of the * input) to 1.0 (end of the input). */ - fractionConsumed: number; + fractionConsumed?: number; /** * A Position at which to split the work item. */ - position: Schema$Position; + position?: Schema$Position; } /** * A structured message reporting an autoscaling decision made by the Dataflow @@ -151,31 +154,31 @@ export namespace dataflow_v1b3 { /** * The current number of workers the job has. */ - currentNumWorkers: string; + currentNumWorkers?: string; /** * A message describing why the system decided to adjust the current number * of workers, why it failed, or why the system decided to not make any * changes to the number of workers. */ - description: Schema$StructuredMessage; + description?: Schema$StructuredMessage; /** * The type of autoscaling event to report. */ - eventType: string; + eventType?: string; /** * The target number of workers the worker pool wants to resize to use. */ - targetNumWorkers: string; + targetNumWorkers?: string; /** * The time this event was emitted to indicate a new target or current * num_workers value. */ - time: string; + time?: string; /** * A short and friendly name for the worker pool this event refers to, * populated from the value of PoolStageRelation::user_pool_name. */ - workerPool: string; + workerPool?: string; } /** * Settings for WorkerPool autoscaling. @@ -184,11 +187,11 @@ export namespace dataflow_v1b3 { /** * The algorithm to use for autoscaling. */ - algorithm: string; + algorithm?: string; /** * The maximum number of workers to cap scaling at. */ - maxNumWorkers: number; + maxNumWorkers?: number; } /** * Description of an interstitial value between transforms in an execution @@ -198,16 +201,16 @@ export namespace dataflow_v1b3 { /** * Dataflow service generated name for this source. */ - name: string; + name?: string; /** * User name for the original user transform or collection with which this * source is most closely associated. */ - originalTransformOrCollection: string; + originalTransformOrCollection?: string; /** * Human-readable name for this transform; may be user or system generated. */ - userName: string; + userName?: string; } /** * Description of a transform executed as part of an execution stage. @@ -216,16 +219,16 @@ export namespace dataflow_v1b3 { /** * Dataflow service generated name for this source. */ - name: string; + name?: string; /** * User name for the original user transform with which this transform is * most closely associated. */ - originalTransform: string; + originalTransform?: string; /** * Human-readable name for this transform; may be user or system generated. */ - userName: string; + userName?: string; } /** * All configuration data for a particular Computation. @@ -234,27 +237,27 @@ export namespace dataflow_v1b3 { /** * The ID of the computation. */ - computationId: string; + computationId?: string; /** * The inputs to the computation. */ - inputs: Schema$StreamLocation[]; + inputs?: Schema$StreamLocation[]; /** * The key ranges processed by the computation. */ - keyRanges: Schema$KeyRangeLocation[]; + keyRanges?: Schema$KeyRangeLocation[]; /** * The outputs from the computation. */ - outputs: Schema$StreamLocation[]; + outputs?: Schema$StreamLocation[]; /** * The state family values. */ - stateFamilies: Schema$StateFamilyConfig[]; + stateFamilies?: Schema$StateFamilyConfig[]; /** * The system stage name. */ - systemStageName: string; + systemStageName?: string; } /** * A position that encapsulates an inner position and an index for the inner @@ -265,11 +268,11 @@ export namespace dataflow_v1b3 { /** * Index of the inner source. */ - index: number; + index?: number; /** * Position within the inner source. */ - position: Schema$Position; + position?: Schema$Position; } /** * CounterMetadata includes all static non-name non-value counter attributes. @@ -278,19 +281,19 @@ export namespace dataflow_v1b3 { /** * Human-readable description of the counter semantics. */ - description: string; + description?: string; /** * Counter aggregation kind. */ - kind: string; + kind?: string; /** * A string referring to the unit type. */ - otherUnits: string; + otherUnits?: string; /** * System defined Units, see above enum. */ - standardUnits: string; + standardUnits?: string; } /** * Identifies a counter within a per-job namespace. Counters whose structured @@ -300,11 +303,11 @@ export namespace dataflow_v1b3 { /** * Name of the optimized step being executed by the workers. */ - componentStepName: string; + componentStepName?: string; /** * Name of the stage. An execution step contains multiple component steps. */ - executionStepName: string; + executionStepName?: string; /** * Index of an input collection that's being read from/written to as a * side input. The index identifies a step's side inputs starting by 1 @@ -312,39 +315,39 @@ export namespace dataflow_v1b3 { * 3). Side inputs are identified by a pair of (original_step_name, * input_index). This field helps uniquely identify them. */ - inputIndex: number; + inputIndex?: number; /** * Counter name. Not necessarily globally-unique, but unique within the * context of the other fields. Required. */ - name: string; + name?: string; /** * One of the standard Origins defined above. */ - origin: string; + origin?: string; /** * The step name requesting an operation, such as GBK. I.e. the ParDo * causing a read/write from shuffle to occur, or a read from side inputs. */ - originalRequestingStepName: string; + originalRequestingStepName?: string; /** * System generated name of the original step in the user's graph, * before optimization. */ - originalStepName: string; + originalStepName?: string; /** * A string containing a more specific namespace of the counter's * origin. */ - originNamespace: string; + originNamespace?: string; /** * Portion of this counter, either key or value. */ - portion: string; + portion?: string; /** * ID of a particular worker. */ - workerId: string; + workerId?: string; } /** * A single message which encapsulates structured name and metadata for a @@ -354,11 +357,11 @@ export namespace dataflow_v1b3 { /** * Metadata associated with a counter */ - metadata: Schema$CounterMetadata; + metadata?: Schema$CounterMetadata; /** * Structured name of the counter. */ - name: Schema$CounterStructuredName; + name?: Schema$CounterStructuredName; } /** * An update to a Counter sent from a worker. @@ -367,66 +370,66 @@ export namespace dataflow_v1b3 { /** * Boolean value for And, Or. */ - boolean: boolean; + boolean?: boolean; /** * True if this counter is reported as the total cumulative aggregate value * accumulated since the worker started working on this WorkItem. By default * this is false, indicating that this counter is reported as a delta. */ - cumulative: boolean; + cumulative?: boolean; /** * Distribution data */ - distribution: Schema$DistributionUpdate; + distribution?: Schema$DistributionUpdate; /** * Floating point value for Sum, Max, Min. */ - floatingPoint: number; + floatingPoint?: number; /** * List of floating point numbers, for Set. */ - floatingPointList: Schema$FloatingPointList; + floatingPointList?: Schema$FloatingPointList; /** * Floating point mean aggregation value for Mean. */ - floatingPointMean: Schema$FloatingPointMean; + floatingPointMean?: Schema$FloatingPointMean; /** * Integer value for Sum, Max, Min. */ - integer: Schema$SplitInt64; + integer?: Schema$SplitInt64; /** * Gauge data */ - integerGauge: Schema$IntegerGauge; + integerGauge?: Schema$IntegerGauge; /** * List of integers, for Set. */ - integerList: Schema$IntegerList; + integerList?: Schema$IntegerList; /** * Integer mean aggregation value for Mean. */ - integerMean: Schema$IntegerMean; + integerMean?: Schema$IntegerMean; /** * Value for internally-defined counters used by the Dataflow service. */ - internal: any; + internal?: any; /** * Counter name and aggregation type. */ - nameAndKind: Schema$NameAndKind; + nameAndKind?: Schema$NameAndKind; /** * The service-generated short identifier for this counter. The short_id * -> (name, metadata) mapping is constant for the lifetime of a job. */ - shortId: string; + shortId?: string; /** * List of strings, for Set. */ - stringList: Schema$StringList; + stringList?: Schema$StringList; /** * Counter structured name and metadata. */ - structuredNameAndMetadata: Schema$CounterStructuredNameAndMetadata; + structuredNameAndMetadata?: Schema$CounterStructuredNameAndMetadata; } /** * Modeled after information exposed by /proc/stat. @@ -436,16 +439,16 @@ export namespace dataflow_v1b3 { * Average CPU utilization rate (% non-idle cpu / second) since previous * sample. */ - rate: number; + rate?: number; /** * Timestamp of the measurement. */ - timestamp: string; + timestamp?: string; /** * Total active CPU time across all cores (ie., non-idle) in milliseconds * since start-up. */ - totalMs: string; + totalMs?: string; } /** * A request to create a Cloud Dataflow job from a template. @@ -454,24 +457,24 @@ export namespace dataflow_v1b3 { /** * The runtime environment for the job. */ - environment: Schema$RuntimeEnvironment; + environment?: Schema$RuntimeEnvironment; /** * Required. A Cloud Storage path to the template from which to create the * job. Must be a valid Cloud Storage URL, beginning with `gs://`. */ - gcsPath: string; + gcsPath?: string; /** * Required. The job name to use for the created job. */ - jobName: string; + jobName?: string; /** * The location to which to direct the request. */ - location: string; + location?: string; /** * The runtime parameters to pass to the job. */ - parameters: any; + parameters?: any; } /** * Identifies the location of a custom souce. @@ -480,7 +483,7 @@ export namespace dataflow_v1b3 { /** * Whether this source is stateful. */ - stateful: boolean; + stateful?: boolean; } /** * Data disk assignment for a given VM instance. @@ -493,12 +496,12 @@ export namespace dataflow_v1b3 { * "myproject-1014-104817-4c2-harness-0-disk-0" }, { * "myproject-1014-104817-4c2-harness-0-disk-1" }. */ - dataDisks: string[]; + dataDisks?: string[]; /** * VM instance name the data disks mounted to, for example * "myproject-1014-104817-4c2-harness-0". */ - vmInstance: string; + vmInstance?: string; } /** * Specification of one of the bundles produced as a result of splitting a @@ -510,11 +513,11 @@ export namespace dataflow_v1b3 { /** * What source to base the produced source on (if any). */ - derivationMode: string; + derivationMode?: string; /** * Specification of the source. */ - source: Schema$Source; + source?: Schema$Source; } /** * Describes the data disk used by a workflow job. @@ -536,16 +539,16 @@ export namespace dataflow_v1b3 { * like this: * compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard */ - diskType: string; + diskType?: string; /** * Directory in a VM where disk is mounted. */ - mountPoint: string; + mountPoint?: string; /** * Size of disk in GB. If zero or unspecified, the service will attempt to * choose a reasonable default. */ - sizeGb: number; + sizeGb?: number; } /** * Data provided with a pipeline or transform to provide descriptive info. @@ -554,39 +557,39 @@ export namespace dataflow_v1b3 { /** * Contains value if the data is of a boolean type. */ - boolValue: boolean; + boolValue?: boolean; /** * Contains value if the data is of duration type. */ - durationValue: string; + durationValue?: string; /** * Contains value if the data is of float type. */ - floatValue: number; + floatValue?: number; /** * Contains value if the data is of int64 type. */ - int64Value: string; + int64Value?: string; /** * Contains value if the data is of java class type. */ - javaClassValue: string; + javaClassValue?: string; /** * The key identifying the display data. This is intended to be used as a * label for the display data when viewed in a dax monitoring system. */ - key: string; + key?: string; /** * An optional label to display in a dax UI for the element. */ - label: string; + label?: string; /** * The namespace for the key. This is usually a class name or programming * language namespace (i.e. python module) which defines the display data. * This allows a dax monitoring system to specially handle the data and * perform custom rendering. */ - namespace: string; + namespace?: string; /** * A possible additional shorter value to display. For example a * java_class_name_value of com.mypackage.MyDoFn will be stored with MyDoFn @@ -594,19 +597,19 @@ export namespace dataflow_v1b3 { * value. short_str_value can be displayed and java_class_name_value will be * displayed as a tooltip. */ - shortStrValue: string; + shortStrValue?: string; /** * Contains value if the data is of string type. */ - strValue: string; + strValue?: string; /** * Contains value if the data is of timestamp type. */ - timestampValue: string; + timestampValue?: string; /** * An optional full URL. */ - url: string; + url?: string; } /** * A metric value representing a distribution. @@ -615,28 +618,28 @@ export namespace dataflow_v1b3 { /** * The count of the number of elements present in the distribution. */ - count: Schema$SplitInt64; + count?: Schema$SplitInt64; /** * (Optional) Histogram of value counts for the distribution. */ - histogram: Schema$Histogram; + histogram?: Schema$Histogram; /** * The maximum value present in the distribution. */ - max: Schema$SplitInt64; + max?: Schema$SplitInt64; /** * The minimum value present in the distribution. */ - min: Schema$SplitInt64; + min?: Schema$SplitInt64; /** * Use an int64 since we'd prefer the added precision. If overflow is a * common problem we can detect it and use an additional int64 or a double. */ - sum: Schema$SplitInt64; + sum?: Schema$SplitInt64; /** * Use a double since the sum of squares is likely to overflow int64. */ - sumOfSquares: number; + sumOfSquares?: number; } /** * When a task splits using WorkItemStatus.dynamic_source_split, this message @@ -648,12 +651,12 @@ export namespace dataflow_v1b3 { * Primary part (continued to be processed by worker). Specified relative to * the previously-current source. Becomes current. */ - primary: Schema$DerivedSource; + primary?: Schema$DerivedSource; /** * Residual part (returned to the pool of work). Specified relative to the * previously-current source. */ - residual: Schema$DerivedSource; + residual?: Schema$DerivedSource; } /** * Describes the environment in which a Dataflow Job runs. @@ -665,32 +668,32 @@ export namespace dataflow_v1b3 { * the form of the API service name, e.g. * "compute.googleapis.com". */ - clusterManagerApiService: string; + clusterManagerApiService?: string; /** * The dataset for the current project where various workflow related tables * are stored. The supported resource type is: Google BigQuery: * bigquery.googleapis.com/{dataset} */ - dataset: string; + dataset?: string; /** * The list of experiments to enable. */ - experiments: string[]; + experiments?: string[]; /** * Experimental settings. */ - internalExperiments: any; + internalExperiments?: any; /** * The Cloud Dataflow SDK pipeline options specified by the user. These * options are passed through the service and are used to recreate the SDK * pipeline options on the worker in a language agnostic and platform * independent way. */ - sdkPipelineOptions: any; + sdkPipelineOptions?: any; /** * Identity to run virtual machines as. Defaults to the default account. */ - serviceAccountEmail: string; + serviceAccountEmail?: string; /** * The prefix of the resources the system should use for temporary storage. * The system will append the suffix "/temp-{JOBNAME} to this resource @@ -701,21 +704,21 @@ export namespace dataflow_v1b3 { * type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} * bucket.storage.googleapis.com/{object} */ - tempStoragePrefix: string; + tempStoragePrefix?: string; /** * A description of the process that generated the request. */ - userAgent: any; + userAgent?: any; /** * A structure describing which components and their versions of the service * are required in order to run the job. */ - version: any; + version?: any; /** * The worker pools. At least one "harness" worker pool must be * specified in order for the job to have workers. */ - workerPools: Schema$WorkerPool[]; + workerPools?: Schema$WorkerPool[]; } /** * A message describing the state of a particular execution stage. @@ -724,15 +727,15 @@ export namespace dataflow_v1b3 { /** * The time at which the stage transitioned to this state. */ - currentStateTime: string; + currentStateTime?: string; /** * The name of the execution stage. */ - executionStageName: string; + executionStageName?: string; /** * Executions stage states allow the same set of values as JobState. */ - executionStageState: string; + executionStageState?: string; } /** * Description of the composing transforms, names/ids, and input/outputs of a @@ -743,31 +746,31 @@ export namespace dataflow_v1b3 { /** * Collections produced and consumed by component transforms of this stage. */ - componentSource: Schema$ComponentSource[]; + componentSource?: Schema$ComponentSource[]; /** * Transforms that comprise this execution stage. */ - componentTransform: Schema$ComponentTransform[]; + componentTransform?: Schema$ComponentTransform[]; /** * Dataflow service generated id for this stage. */ - id: string; + id?: string; /** * Input sources for this stage. */ - inputSource: Schema$StageSource[]; + inputSource?: Schema$StageSource[]; /** * Type of tranform this stage is executing. */ - kind: string; + kind?: string; /** * Dataflow service generated name for this stage. */ - name: string; + name?: string; /** * Output sources for this stage. */ - outputSource: Schema$StageSource[]; + outputSource?: Schema$StageSource[]; } /** * Indicates which location failed to respond to a request for data. @@ -776,7 +779,7 @@ export namespace dataflow_v1b3 { /** * The name of the failed location. */ - name: string; + name?: string; } /** * An instruction that copies its inputs (zero or more) to its (single) @@ -786,7 +789,7 @@ export namespace dataflow_v1b3 { /** * Describes the inputs to the flatten instruction. */ - inputs: Schema$InstructionInput[]; + inputs?: Schema$InstructionInput[]; } /** * A metric value representing a list of floating point numbers. @@ -795,7 +798,7 @@ export namespace dataflow_v1b3 { /** * Elements of the list. */ - elements: number[]; + elements?: number[]; } /** * A representation of a floating point mean metric contribution. @@ -804,11 +807,11 @@ export namespace dataflow_v1b3 { /** * The number of values being aggregated. */ - count: Schema$SplitInt64; + count?: Schema$SplitInt64; /** * The sum of all values being aggregated. */ - sum: number; + sum?: number; } /** * Request to get updated debug configuration for component. @@ -817,15 +820,15 @@ export namespace dataflow_v1b3 { /** * The internal component id for which debug configuration is requested. */ - componentId: string; + componentId?: string; /** * The location which contains the job specified by job_id. */ - location: string; + location?: string; /** * The worker id, i.e., VM hostname. */ - workerId: string; + workerId?: string; } /** * Response to a get debug configuration request. @@ -834,7 +837,7 @@ export namespace dataflow_v1b3 { /** * The encoded debug configuration for the requested component. */ - config: string; + config?: string; } /** * The response to a GetTemplate request. @@ -844,12 +847,12 @@ export namespace dataflow_v1b3 { * The template metadata describing the template name, available parameters, * etc. */ - metadata: Schema$TemplateMetadata; + metadata?: Schema$TemplateMetadata; /** * The status of the get template request. Any problems with the request * will be indicated in the error_details. */ - status: Schema$Status; + status?: Schema$Status; } /** * Histogram of value counts for a distribution. Buckets have an inclusive @@ -866,13 +869,13 @@ export namespace dataflow_v1b3 { * values of an unsigned long, with ULLONG_MAX falling into the 59th bucket * with range [1e19, 2e19). */ - bucketCounts: string[]; + bucketCounts?: string[]; /** * Starting index of first stored bucket. The non-inclusive upper-bound of * the ith bucket is given by: pow(10,(i-first_bucket_offset)/3) * * (1,2,5)[(i-first_bucket_offset)%3] */ - firstBucketOffset: number; + firstBucketOffset?: number; } /** * An input of an instruction, as a reference to an output of a producer @@ -882,13 +885,13 @@ export namespace dataflow_v1b3 { /** * The output index (origin zero) within the producer. */ - outputNum: number; + outputNum?: number; /** * The index (origin zero) of the parallel instruction that produces the * output to be consumed by this input. This index is relative to the list * of instructions in this input's instruction's containing MapTask. */ - producerInstructionIndex: number; + producerInstructionIndex?: number; } /** * An output of an instruction. @@ -897,31 +900,31 @@ export namespace dataflow_v1b3 { /** * The codec to use to encode data being written via this output. */ - codec: any; + codec?: any; /** * The user-provided name of this output. */ - name: string; + name?: string; /** * For system-generated byte and mean byte metrics, certain instructions * should only report the key size. */ - onlyCountKeyBytes: boolean; + onlyCountKeyBytes?: boolean; /** * For system-generated byte and mean byte metrics, certain instructions * should only report the value size. */ - onlyCountValueBytes: boolean; + onlyCountValueBytes?: boolean; /** * System-defined name for this output in the original workflow graph. * Outputs that do not contribute to an original instruction do not set * this. */ - originalName: string; + originalName?: string; /** * System-defined name of this output. Unique across the workflow. */ - systemName: string; + systemName?: string; } /** * A metric value representing temporal values of a variable. @@ -930,11 +933,11 @@ export namespace dataflow_v1b3 { /** * The time at which this value was measured. Measured as msecs from epoch. */ - timestamp: string; + timestamp?: string; /** * The value of the variable represented by this gauge. */ - value: Schema$SplitInt64; + value?: Schema$SplitInt64; } /** * A metric value representing a list of integers. @@ -943,7 +946,7 @@ export namespace dataflow_v1b3 { /** * Elements of the list. */ - elements: Schema$SplitInt64[]; + elements?: Schema$SplitInt64[]; } /** * A representation of an integer mean metric contribution. @@ -952,11 +955,11 @@ export namespace dataflow_v1b3 { /** * The number of values being aggregated. */ - count: Schema$SplitInt64; + count?: Schema$SplitInt64; /** * The sum of all values being aggregated. */ - sum: Schema$SplitInt64; + sum?: Schema$SplitInt64; } /** * Defines a job to be run by the Cloud Dataflow service. @@ -971,12 +974,12 @@ export namespace dataflow_v1b3 { * retried attempts to create a job. By default, the field is empty and, in * that case, the service ignores it. */ - clientRequestId: string; + clientRequestId?: string; /** * The timestamp when the job was initially created. Immutable and set by * the Cloud Dataflow service. */ - createTime: string; + createTime?: string; /** * The current state of the job. Jobs are created in the * `JOB_STATE_STOPPED` state unless otherwise specified. A job in the @@ -985,25 +988,25 @@ export namespace dataflow_v1b3 { * made. This field may be mutated by the Cloud Dataflow service; callers * cannot mutate it. */ - currentState: string; + currentState?: string; /** * The timestamp associated with the current state. */ - currentStateTime: string; + currentStateTime?: string; /** * The environment for the job. */ - environment: Schema$Environment; + environment?: Schema$Environment; /** * Deprecated. */ - executionInfo: Schema$JobExecutionInfo; + executionInfo?: Schema$JobExecutionInfo; /** * The unique ID of this job. This field is set by the Cloud Dataflow * service when the Job is created, and is immutable for the life of the * job. */ - id: string; + id?: string; /** * User-defined labels for this job. The labels map can contain no more * than 64 entries. Entries of the labels map are UTF8 strings that comply @@ -1012,11 +1015,11 @@ export namespace dataflow_v1b3 { * [\p{Ll}\p{Lo}\p{N}_-]{0,63} * Both keys and values are additionally * constrained to be <= 128 bytes in size. */ - labels: any; + labels?: any; /** * The location that contains this job. */ - location: string; + location?: string; /** * The user-specified Cloud Dataflow job name. Only one Job with a given * name may exist in a project at any given time. If a caller attempts to @@ -1024,30 +1027,30 @@ export namespace dataflow_v1b3 { * returns the existing Job. The name must match the regular expression * `[a-z]([-a-z0-9]{0,38}[a-z0-9])?` */ - name: string; + name?: string; /** * Preliminary field: The format of this data may change at any time. A * description of the user pipeline and stages through which it is executed. * Created by Cloud Dataflow service. Only retrieved with * JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. */ - pipelineDescription: Schema$PipelineDescription; + pipelineDescription?: Schema$PipelineDescription; /** * The ID of the Cloud Platform project that the job belongs to. */ - projectId: string; + projectId?: string; /** * If another job is an update of this job (and thus, this job is in * `JOB_STATE_UPDATED`), this field contains the ID of that job. */ - replacedByJobId: string; + replacedByJobId?: string; /** * If this job is an update of an existing job, this field is the job ID of * the job it replaced. When sending a `CreateJobRequest`, you can update a * job by specifying it here. The job named here is stopped, and its * intermediate state is transferred to this job. */ - replaceJobId: string; + replaceJobId?: string; /** * The job's requested state. `UpdateJob` may be used to switch between * the `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING` states, by setting @@ -1056,16 +1059,16 @@ export namespace dataflow_v1b3 { * irrevocably terminating the job if it has not already reached a terminal * state. */ - requestedState: string; + requestedState?: string; /** * This field may be mutated by the Cloud Dataflow service; callers cannot * mutate it. */ - stageStates: Schema$ExecutionStageState[]; + stageStates?: Schema$ExecutionStageState[]; /** * The top-level steps that constitute the entire job. */ - steps: Schema$Step[]; + steps?: Schema$Step[]; /** * 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 @@ -1074,16 +1077,16 @@ export namespace dataflow_v1b3 { * storage.googleapis.com/{bucket}/{object} * bucket.storage.googleapis.com/{object} */ - tempFiles: string[]; + tempFiles?: string[]; /** * The map of transform name prefixes of the job to be replaced to the * corresponding name prefixes of the new job. */ - transformNameMapping: any; + transformNameMapping?: any; /** * The type of Cloud Dataflow job. */ - type: string; + type?: string; } /** * Additional information about how a Cloud Dataflow job will be executed that @@ -1093,7 +1096,7 @@ export namespace dataflow_v1b3 { /** * A mapping from each stage to the information about that stage. */ - stages: any; + stages?: any; } /** * Contains information about how a particular google.dataflow.v1beta3.Step @@ -1104,7 +1107,7 @@ export namespace dataflow_v1b3 { * The steps associated with the execution stage. Note that stages may have * several steps, and that a given step might be run by more than one stage. */ - stepName: string[]; + stepName?: string[]; } /** * A particular message pertaining to a Dataflow job. @@ -1113,19 +1116,19 @@ export namespace dataflow_v1b3 { /** * Deprecated. */ - id: string; + id?: string; /** * Importance level of the message. */ - messageImportance: string; + messageImportance?: string; /** * The text of the message. */ - messageText: string; + messageText?: string; /** * The timestamp of the message. */ - time: string; + time?: string; } /** * JobMetrics contains a collection of metrics descibing the detailed progress @@ -1138,11 +1141,11 @@ export namespace dataflow_v1b3 { /** * All metrics for this job. */ - metrics: Schema$MetricUpdate[]; + metrics?: Schema$MetricUpdate[]; /** * Timestamp as of which metric values are current. */ - metricTime: string; + metricTime?: string; } /** * Data disk assignment information for a specific key-range of a sharded @@ -1156,15 +1159,15 @@ export namespace dataflow_v1b3 { * disk within that project, for example * "myproject-1014-104817-4c2-harness-0-disk-1". */ - dataDisk: string; + dataDisk?: string; /** * The end (exclusive) of the key range. */ - end: string; + end?: string; /** * The start (inclusive) of the key range. */ - start: string; + start?: string; } /** * Location information for a specific key-range of a sharded computation. @@ -1178,25 +1181,25 @@ export namespace dataflow_v1b3 { * disk within that project, for example * "myproject-1014-104817-4c2-harness-0-disk-1". */ - dataDisk: string; + dataDisk?: string; /** * The physical location of this range assignment to be used for streaming * computation cross-worker message delivery. */ - deliveryEndpoint: string; + deliveryEndpoint?: string; /** * DEPRECATED. The location of the persistent state for this range, as a * persistent directory in the worker local filesystem. */ - deprecatedPersistentDirectory: string; + deprecatedPersistentDirectory?: string; /** * The end (exclusive) of the key range. */ - end: string; + end?: string; /** * The start (inclusive) of the key range. */ - start: string; + start?: string; } /** * Parameters to provide to the template being launched. @@ -1205,15 +1208,15 @@ export namespace dataflow_v1b3 { /** * The runtime environment for the job. */ - environment: Schema$RuntimeEnvironment; + environment?: Schema$RuntimeEnvironment; /** * Required. The job name to use for the created job. */ - jobName: string; + jobName?: string; /** * The runtime parameters to pass to the job. */ - parameters: any; + parameters?: any; } /** * Response to the request to launch a template. @@ -1223,7 +1226,7 @@ export namespace dataflow_v1b3 { * The job that was launched, if the request was not a dry run and the job * was successfully launched. */ - job: Schema$Job; + job?: Schema$Job; } /** * Request to lease WorkItems. @@ -1232,29 +1235,29 @@ export namespace dataflow_v1b3 { /** * The current timestamp at the worker. */ - currentWorkerTime: string; + currentWorkerTime?: string; /** * The location which contains the WorkItem's job. */ - location: string; + location?: string; /** * The initial lease period. */ - requestedLeaseDuration: string; + requestedLeaseDuration?: string; /** * Worker capabilities. WorkItems might be limited to workers with specific * capabilities. */ - workerCapabilities: string[]; + workerCapabilities?: string[]; /** * Identifies the worker leasing work -- typically the ID of the virtual * machine running the worker. */ - workerId: string; + workerId?: string; /** * Filter for WorkItem type. */ - workItemTypes: string[]; + workItemTypes?: string[]; } /** * Response to a request to lease WorkItems. @@ -1263,7 +1266,7 @@ export namespace dataflow_v1b3 { /** * A list of the leased WorkItems. */ - workItems: Schema$WorkItem[]; + workItems?: Schema$WorkItem[]; } /** * Response to a request to list job messages. @@ -1272,15 +1275,15 @@ export namespace dataflow_v1b3 { /** * Autoscaling events in ascending timestamp order. */ - autoscalingEvents: Schema$AutoscalingEvent[]; + autoscalingEvents?: Schema$AutoscalingEvent[]; /** * Messages in ascending timestamp order. */ - jobMessages: Schema$JobMessage[]; + jobMessages?: Schema$JobMessage[]; /** * The token to obtain the next page of results if there are more. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response to a request to list Cloud Dataflow jobs. This may be a partial @@ -1290,15 +1293,15 @@ export namespace dataflow_v1b3 { /** * Zero or more messages describing locations that failed to respond. */ - failedLocation: Schema$FailedLocation[]; + failedLocation?: Schema$FailedLocation[]; /** * A subset of the requested job information. */ - jobs: Schema$Job[]; + jobs?: Schema$Job[]; /** * Set if there may be more results than fit in this response. */ - nextPageToken: string; + nextPageToken?: string; } /** * MapTask consists of an ordered set of instructions, each of which describes @@ -1310,16 +1313,16 @@ export namespace dataflow_v1b3 { /** * The instructions in the MapTask. */ - instructions: Schema$ParallelInstruction[]; + instructions?: Schema$ParallelInstruction[]; /** * System-defined name of the stage containing this MapTask. Unique across * the workflow. */ - stageName: string; + stageName?: string; /** * System-defined name of this MapTask. Unique across the workflow. */ - systemName: string; + systemName?: string; } /** * The metric short id is returned to the user alongside an offset into @@ -1330,11 +1333,11 @@ export namespace dataflow_v1b3 { * The index of the corresponding metric in the ReportWorkItemStatusRequest. * Required. */ - metricIndex: number; + metricIndex?: number; /** * The service-generated short identifier for the metric. */ - shortId: string; + shortId?: string; } /** * Identifies a metric, by describing the source which generated the metric. @@ -1348,17 +1351,17 @@ export namespace dataflow_v1b3 { * PCollections in the SDK will have context['pcollection'] = * <pcollection-name>. */ - context: any; + context?: any; /** * Worker-defined metric name. */ - name: string; + name?: string; /** * Origin (namespace) of metric name. May be blank for user-define metrics; * will be "dataflow" for metrics defined by the Dataflow service * or SDK. */ - origin: string; + origin?: string; } /** * Describes the state of a metric. @@ -1370,21 +1373,21 @@ export namespace dataflow_v1b3 { * this is false, indicating that this metric is reported as a delta that is * not associated with any WorkItem. */ - cumulative: boolean; + cumulative?: boolean; /** * A struct value describing properties of a distribution of numeric values. */ - distribution: any; + distribution?: any; /** * A struct value describing properties of a Gauge. Metrics of gauge type * show the value of a metric across time, and is aggregated based on the * newest value. */ - gauge: any; + gauge?: any; /** * Worker-computed aggregate value for internal use by the Dataflow service. */ - internal: any; + internal?: any; /** * Metric aggregation kind. The possible metric aggregation kinds are * "Sum", "Max", "Min", "Mean", @@ -1393,44 +1396,44 @@ export namespace dataflow_v1b3 { * case-insensitive. If omitted, this is not an aggregated value but * instead a single metric sample value. */ - kind: string; + kind?: string; /** * Worker-computed aggregate value for the "Mean" aggregation * kind. This holds the count of the aggregated values and is used in * combination with mean_sum above to obtain the actual mean aggregate * value. The only possible value type is Long. */ - meanCount: any; + meanCount?: any; /** * Worker-computed aggregate value for the "Mean" aggregation * kind. This holds the sum of the aggregated values and is used in * combination with mean_count below to obtain the actual mean aggregate * value. The only possible value types are Long and Double. */ - meanSum: any; + meanSum?: any; /** * Name of the metric. */ - name: Schema$MetricStructuredName; + name?: Schema$MetricStructuredName; /** * Worker-computed aggregate value for aggregation kinds "Sum", * "Max", "Min", "And", and "Or". * The possible value types are Long, Double, and Boolean. */ - scalar: any; + scalar?: any; /** * Worker-computed aggregate value for the "Set" aggregation kind. * The only possible value type is a list of Values whose type can be Long, * Double, or String, according to the metric's type. All Values in the * list must be of the same type. */ - set: any; + set?: any; /** * Timestamp associated with the metric value. Optional when workers are * reporting work progress; it will be filled in responses from the metrics * API. */ - updateTime: string; + updateTime?: string; } /** * Describes mounted data disk. @@ -1441,7 +1444,7 @@ export namespace dataflow_v1b3 { * Platform project and uniquely identifies the disk within that project, * for example "myproject-1014-104817-4c2-harness-0-disk-1". */ - dataDisk: string; + dataDisk?: string; } /** * Information about an output of a multi-output DoFn. @@ -1451,7 +1454,7 @@ export namespace dataflow_v1b3 { * The id of the tag the user code will emit to this output by; this should * correspond to the tag of some SideInputInfo. */ - tag: string; + tag?: string; } /** * Basic metadata about a counter. @@ -1460,11 +1463,11 @@ export namespace dataflow_v1b3 { /** * Counter aggregation kind. */ - kind: string; + kind?: string; /** * Name of the counter. */ - name: string; + name?: string; } /** * The packages that must be installed in order for a worker to run the steps @@ -1481,11 +1484,11 @@ export namespace dataflow_v1b3 { * Google Cloud Storage: storage.googleapis.com/{bucket} * bucket.storage.googleapis.com/ */ - location: string; + location?: string; /** * The name of the package. */ - name: string; + name?: string; } /** * Describes a particular operation comprising a MapTask. @@ -1494,39 +1497,39 @@ export namespace dataflow_v1b3 { /** * Additional information for Flatten instructions. */ - flatten: Schema$FlattenInstruction; + flatten?: Schema$FlattenInstruction; /** * User-provided name of this operation. */ - name: string; + name?: string; /** * System-defined name for the operation in the original workflow graph. */ - originalName: string; + originalName?: string; /** * Describes the outputs of the instruction. */ - outputs: Schema$InstructionOutput[]; + outputs?: Schema$InstructionOutput[]; /** * Additional information for ParDo instructions. */ - parDo: Schema$ParDoInstruction; + parDo?: Schema$ParDoInstruction; /** * Additional information for PartialGroupByKey instructions. */ - partialGroupByKey: Schema$PartialGroupByKeyInstruction; + partialGroupByKey?: Schema$PartialGroupByKeyInstruction; /** * Additional information for Read instructions. */ - read: Schema$ReadInstruction; + read?: Schema$ReadInstruction; /** * System-defined name of this operation. Unique across the workflow. */ - systemName: string; + systemName?: string; /** * Additional information for Write instructions. */ - write: Schema$WriteInstruction; + write?: Schema$WriteInstruction; } /** * Structured data associated with this message. @@ -1535,11 +1538,11 @@ export namespace dataflow_v1b3 { /** * Key or name for this parameter. */ - key: string; + key?: string; /** * Value for this parameter. */ - value: any; + value?: any; } /** * Metadata for a specific parameter. @@ -1548,23 +1551,23 @@ export namespace dataflow_v1b3 { /** * Required. The help text to display for the parameter. */ - helpText: string; + helpText?: string; /** * Optional. Whether the parameter is optional. Defaults to false. */ - isOptional: boolean; + isOptional?: boolean; /** * Required. The label to display for the parameter. */ - label: string; + label?: string; /** * Required. The name of the parameter. */ - name: string; + name?: string; /** * Optional. Regexes that the parameter must match. */ - regexes: string[]; + regexes?: string[]; } /** * An instruction that does a ParDo operation. Takes one main input and zero @@ -1574,23 +1577,23 @@ export namespace dataflow_v1b3 { /** * The input. */ - input: Schema$InstructionInput; + input?: Schema$InstructionInput; /** * Information about each of the outputs, if user_fn is a MultiDoFn. */ - multiOutputInfos: Schema$MultiOutputInfo[]; + multiOutputInfos?: Schema$MultiOutputInfo[]; /** * The number of outputs. */ - numOutputs: number; + numOutputs?: number; /** * Zero or more side inputs. */ - sideInputs: Schema$SideInputInfo[]; + sideInputs?: Schema$SideInputInfo[]; /** * The user function to invoke. */ - userFn: any; + userFn?: any; } /** * An instruction that does a partial group-by-key. One input and one output. @@ -1599,29 +1602,29 @@ export namespace dataflow_v1b3 { /** * Describes the input to the partial group-by-key instruction. */ - input: Schema$InstructionInput; + input?: Schema$InstructionInput; /** * The codec to use for interpreting an element in the input PTable. */ - inputElementCodec: any; + inputElementCodec?: any; /** * If this instruction includes a combining function this is the name of the * intermediate store between the GBK and the CombineValues. */ - originalCombineValuesInputStoreName: string; + originalCombineValuesInputStoreName?: string; /** * If this instruction includes a combining function, this is the name of * the CombineValues instruction lifted into this instruction. */ - originalCombineValuesStepName: string; + originalCombineValuesStepName?: string; /** * Zero or more side inputs. */ - sideInputs: Schema$SideInputInfo[]; + sideInputs?: Schema$SideInputInfo[]; /** * The value combining function to invoke. */ - valueCombiningFn: any; + valueCombiningFn?: any; } /** * A descriptive representation of submitted pipeline as well as the executed @@ -1632,16 +1635,16 @@ export namespace dataflow_v1b3 { /** * Pipeline level display data. */ - displayData: Schema$DisplayData[]; + displayData?: Schema$DisplayData[]; /** * Description of each stage of execution of the pipeline. */ - executionPipelineStage: Schema$ExecutionStageSummary[]; + executionPipelineStage?: Schema$ExecutionStageSummary[]; /** * Description of each transform in the pipeline and collections between * them. */ - originalPipelineTransform: Schema$TransformSummary[]; + originalPipelineTransform?: Schema$TransformSummary[]; } /** * Position defines a position within a collection of data. The value can be @@ -1652,29 +1655,29 @@ export namespace dataflow_v1b3 { /** * Position is a byte offset. */ - byteOffset: string; + byteOffset?: string; /** * CloudPosition is a concat position. */ - concatPosition: Schema$ConcatPosition; + concatPosition?: Schema$ConcatPosition; /** * Position is past all other positions. Also useful for the end position of * an unbounded range. */ - end: boolean; + end?: boolean; /** * Position is a string key, ordered lexicographically. */ - key: string; + key?: string; /** * Position is a record index. */ - recordIndex: string; + recordIndex?: string; /** * CloudPosition is a base64 encoded BatchShufflePosition (with FIXED * sharding). */ - shufflePosition: string; + shufflePosition?: string; } /** * Identifies a pubsub location to use for transferring data into or out of a @@ -1684,36 +1687,36 @@ export namespace dataflow_v1b3 { /** * Indicates whether the pipeline allows late-arriving data. */ - dropLateData: boolean; + dropLateData?: boolean; /** * If set, contains a pubsub label from which to extract record ids. If left * empty, record deduplication will be strictly best effort. */ - idLabel: string; + idLabel?: string; /** * A pubsub subscription, in the form of * "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>" */ - subscription: string; + subscription?: string; /** * If set, contains a pubsub label from which to extract record timestamps. * If left empty, record timestamps will be generated upon arrival. */ - timestampLabel: string; + timestampLabel?: string; /** * A pubsub topic, in the form of * "pubsub.googleapis.com/topics/<project-id>/<topic-name>" */ - topic: string; + topic?: string; /** * If set, specifies the pubsub subscription that will be used for tracking * custom time timestamps for watermark estimation. */ - trackingSubscription: string; + trackingSubscription?: string; /** * If true, then the client has requested to get pubsub attributes. */ - withAttributes: boolean; + withAttributes?: boolean; } /** * An instruction that reads records. Takes no inputs, produces one output. @@ -1722,7 +1725,7 @@ export namespace dataflow_v1b3 { /** * The source to read from. */ - source: Schema$Source; + source?: Schema$Source; } /** * Represents the level of parallelism in a WorkItem's input, reported by @@ -1736,11 +1739,11 @@ export namespace dataflow_v1b3 { * splitting. This is a work-around for lack of support for infinity by the * current JSON-based Java RPC stack. */ - isInfinite: boolean; + isInfinite?: boolean; /** * Specifies the level of parallelism in case it is finite. */ - value: number; + value?: number; } /** * Request to report the status of WorkItems. @@ -1749,24 +1752,24 @@ export namespace dataflow_v1b3 { /** * The current timestamp at the worker. */ - currentWorkerTime: string; + currentWorkerTime?: string; /** * The location which contains the WorkItem's job. */ - location: string; + location?: string; /** * The ID of the worker reporting the WorkItem status. If this does not * match the ID of the worker which the Dataflow service believes currently * has the lease on the WorkItem, the report will be dropped (with an error * response). */ - workerId: string; + workerId?: string; /** * The order is unimportant, except that the order of the * WorkItemServiceState messages in the ReportWorkItemStatusResponse * corresponds to the order of WorkItemStatus messages here. */ - workItemStatuses: Schema$WorkItemStatus[]; + workItemStatuses?: Schema$WorkItemStatus[]; } /** * Response from a request to report the status of WorkItems. @@ -1778,7 +1781,7 @@ export namespace dataflow_v1b3 { * messages in the ReportWorkItemStatusRequest which resulting in this * response. */ - workItemServiceStates: Schema$WorkItemServiceState[]; + workItemServiceStates?: Schema$WorkItemServiceState[]; } /** * Worker metrics exported from workers. This contains resource utilization @@ -1789,7 +1792,7 @@ export namespace dataflow_v1b3 { /** * CPU utilization samples. */ - cpuTime: Schema$CPUTime[]; + cpuTime?: Schema$CPUTime[]; } /** * Service-side response to WorkerMessage reporting resource utilization. @@ -1802,47 +1805,47 @@ export namespace dataflow_v1b3 { /** * Additional experiment flags for the job. */ - additionalExperiments: string[]; + additionalExperiments?: string[]; /** * Whether to bypass the safety checks for the job's temporary * directory. Use with caution. */ - bypassTempDirValidation: boolean; + bypassTempDirValidation?: boolean; /** * The machine type to use for the job. Defaults to the value from the * template if not specified. */ - machineType: string; + machineType?: string; /** * The maximum number of Google Compute Engine instances to be made * available to your pipeline during execution, from 1 to 1000. */ - maxWorkers: number; + maxWorkers?: number; /** * Network to which VMs will be assigned. If empty or unspecified, the * service will use the network "default". */ - network: string; + network?: string; /** * The email address of the service account to run the job as. */ - serviceAccountEmail: string; + serviceAccountEmail?: string; /** * Subnetwork to which VMs will be assigned, if desired. Expected to be of * the form "regions/REGION/subnetworks/SUBNETWORK". */ - subnetwork: string; + subnetwork?: string; /** * The Cloud Storage path to use for temporary files. Must be a valid Cloud * Storage URL, beginning with `gs://`. */ - tempLocation: string; + tempLocation?: string; /** * The Compute Engine [availability * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) * for launching worker instances to run your pipeline. */ - zone: string; + zone?: string; } /** * Request to send encoded debug information. @@ -1851,19 +1854,19 @@ export namespace dataflow_v1b3 { /** * The internal component id for which debug information is sent. */ - componentId: string; + componentId?: string; /** * The encoded debug information. */ - data: string; + data?: string; /** * The location which contains the job specified by job_id. */ - location: string; + location?: string; /** * The worker id, i.e., VM hostname. */ - workerId: string; + workerId?: string; } /** * Response to a send capture request. nothing @@ -1876,11 +1879,11 @@ export namespace dataflow_v1b3 { /** * The location which contains the job */ - location: string; + location?: string; /** * The WorkerMessages to send. */ - workerMessages: Schema$WorkerMessage[]; + workerMessages?: Schema$WorkerMessage[]; } /** * The response to the worker messages. @@ -1889,7 +1892,7 @@ export namespace dataflow_v1b3 { /** * The servers response to the worker messages. */ - workerMessageResponses: Schema$WorkerMessageResponse[]; + workerMessageResponses?: Schema$WorkerMessageResponse[]; } /** * Describes a particular function to invoke. @@ -1898,28 +1901,28 @@ export namespace dataflow_v1b3 { /** * Information about each of the inputs. */ - inputs: Schema$SideInputInfo[]; + inputs?: Schema$SideInputInfo[]; /** * The user-provided name of the SeqDo operation. */ - name: string; + name?: string; /** * Information about each of the outputs. */ - outputInfos: Schema$SeqMapTaskOutputInfo[]; + outputInfos?: Schema$SeqMapTaskOutputInfo[]; /** * System-defined name of the stage containing the SeqDo operation. Unique * across the workflow. */ - stageName: string; + stageName?: string; /** * System-defined name of the SeqDo operation. Unique across the workflow. */ - systemName: string; + systemName?: string; /** * The user function to invoke. */ - userFn: any; + userFn?: any; } /** * Information about an output of a SeqMapTask. @@ -1928,11 +1931,11 @@ export namespace dataflow_v1b3 { /** * The sink to write the output value to. */ - sink: Schema$Sink; + sink?: Schema$Sink; /** * The id of the TupleTag the user code will tag the output value by. */ - tag: string; + tag?: string; } /** * A task which consists of a shell command for the worker to execute. @@ -1941,11 +1944,11 @@ export namespace dataflow_v1b3 { /** * The shell command to run. */ - command: string; + command?: string; /** * Exit code for the task. */ - exitCode: number; + exitCode?: number; } /** * Information about a side input of a DoFn or an input of a SeqDoFn. @@ -1954,19 +1957,19 @@ export namespace dataflow_v1b3 { /** * How to interpret the source element(s) as a side input value. */ - kind: any; + kind?: any; /** * The source(s) to read element(s) from to get the value of this side * input. If more than one source, then the elements are taken from the * sources, in the specified order if order matters. At least one source is * required. */ - sources: Schema$Source[]; + sources?: Schema$Source[]; /** * The id of the tag the user code will access this side input by; this * should correspond to the tag of some MultiOutputInfo. */ - tag: string; + tag?: string; } /** * A sink that records can be encoded and written to. @@ -1975,11 +1978,11 @@ export namespace dataflow_v1b3 { /** * The codec to use to encode data written to the sink. */ - codec: any; + codec?: any; /** * The sink to write to, plus its parameters. */ - spec: any; + spec?: any; } /** * A source that records can be read and decoded from. @@ -1994,11 +1997,11 @@ export namespace dataflow_v1b3 { * order: base_specs (later items win), spec (overrides anything in * base_specs). */ - baseSpecs: any[]; + baseSpecs?: any[]; /** * The codec to use to decode data read from the source. */ - codec: any; + codec?: any; /** * Setting this value to true hints to the framework that the source * doesn't need splitting, and using SourceSplitRequest on it would @@ -2013,7 +2016,7 @@ export namespace dataflow_v1b3 { * supplied by the framework to the user don't have this field * populated. */ - doesNotNeedSplitting: boolean; + doesNotNeedSplitting?: boolean; /** * Optionally, metadata for this source can be supplied right away, avoiding * a SourceGetMetadataOperation roundtrip (see SourceOperationRequest). This @@ -2021,11 +2024,11 @@ export namespace dataflow_v1b3 { * (e.g. when filling in a DerivedSource). Source objects supplied by the * framework to the user don't have this field populated. */ - metadata: Schema$SourceMetadata; + metadata?: Schema$SourceMetadata; /** * The source to read from, plus its parameters. */ - spec: any; + spec?: any; } /** * DEPRECATED in favor of DynamicSourceSplit. @@ -2034,19 +2037,19 @@ export namespace dataflow_v1b3 { /** * DEPRECATED */ - primary: Schema$SourceSplitShard; + primary?: Schema$SourceSplitShard; /** * DEPRECATED */ - primarySource: Schema$DerivedSource; + primarySource?: Schema$DerivedSource; /** * DEPRECATED */ - residual: Schema$SourceSplitShard; + residual?: Schema$SourceSplitShard; /** * DEPRECATED */ - residualSource: Schema$DerivedSource; + residualSource?: Schema$DerivedSource; } /** * A request to compute the SourceMetadata of a Source. @@ -2055,7 +2058,7 @@ export namespace dataflow_v1b3 { /** * Specification of the source whose metadata should be computed. */ - source: Schema$Source; + source?: Schema$Source; } /** * The result of a SourceGetMetadataOperation. @@ -2064,7 +2067,7 @@ export namespace dataflow_v1b3 { /** * The computed metadata. */ - metadata: Schema$SourceMetadata; + metadata?: Schema$SourceMetadata; } /** * Metadata about a Source useful for automatically optimizing and tuning the @@ -2076,17 +2079,17 @@ export namespace dataflow_v1b3 { * from this source. This estimate is in terms of external storage size, * before any decompression or other processing done by the reader. */ - estimatedSizeBytes: string; + estimatedSizeBytes?: string; /** * Specifies that the size of this source is known to be infinite (this is a * streaming source). */ - infinite: boolean; + infinite?: boolean; /** * Whether this source is known to produce key/value pairs with the * (encoded) keys in lexicographically sorted order. */ - producesSortedKeys: boolean; + producesSortedKeys?: boolean; } /** * A work item that represents the different operations that can be performed @@ -2096,30 +2099,30 @@ export namespace dataflow_v1b3 { /** * Information about a request to get metadata about a source. */ - getMetadata: Schema$SourceGetMetadataRequest; + getMetadata?: Schema$SourceGetMetadataRequest; /** * User-provided name of the Read instruction for this source. */ - name: string; + name?: string; /** * System-defined name for the Read instruction for this source in the * original workflow graph. */ - originalName: string; + originalName?: string; /** * Information about a request to split a source. */ - split: Schema$SourceSplitRequest; + split?: Schema$SourceSplitRequest; /** * System-defined name of the stage containing the source operation. Unique * across the workflow. */ - stageName: string; + stageName?: string; /** * System-defined name of the Read instruction for this source. Unique * across the workflow. */ - systemName: string; + systemName?: string; } /** * The result of a SourceOperationRequest, specified in @@ -2130,11 +2133,11 @@ export namespace dataflow_v1b3 { /** * A response to a request to get metadata about a source. */ - getMetadata: Schema$SourceGetMetadataResponse; + getMetadata?: Schema$SourceGetMetadataResponse; /** * A response to a request to split a source. */ - split: Schema$SourceSplitResponse; + split?: Schema$SourceSplitResponse; } /** * Hints for splitting a Source into bundles (parts for parallel processing) @@ -2145,11 +2148,11 @@ export namespace dataflow_v1b3 { * The source should be split into a set of bundles where the estimated size * of each is approximately this many bytes. */ - desiredBundleSizeBytes: string; + desiredBundleSizeBytes?: string; /** * DEPRECATED in favor of desired_bundle_size_bytes. */ - desiredShardSizeBytes: string; + desiredShardSizeBytes?: string; } /** * Represents the operation to split a high-level Source specification into @@ -2168,11 +2171,11 @@ export namespace dataflow_v1b3 { /** * Hints for tuning the splitting process. */ - options: Schema$SourceSplitOptions; + options?: Schema$SourceSplitOptions; /** * Specification of the source to be split. */ - source: Schema$Source; + source?: Schema$Source; } /** * The response to a SourceSplitRequest. @@ -2183,7 +2186,7 @@ export namespace dataflow_v1b3 { * which the source was split. Otherwise this field is ignored. This list * can be empty, which means the source represents an empty input. */ - bundles: Schema$DerivedSource[]; + bundles?: Schema$DerivedSource[]; /** * Indicates whether splitting happened and produced a list of bundles. If * this is USE_CURRENT_SOURCE_AS_IS, the current source should be processed @@ -2191,11 +2194,11 @@ export namespace dataflow_v1b3 { * this case. If this is SPLITTING_HAPPENED, then "bundles" * contains a list of bundles into which the source was split. */ - outcome: string; + outcome?: string; /** * DEPRECATED in favor of bundles. */ - shards: Schema$SourceSplitShard[]; + shards?: Schema$SourceSplitShard[]; } /** * DEPRECATED in favor of DerivedSource. @@ -2204,11 +2207,11 @@ export namespace dataflow_v1b3 { /** * DEPRECATED */ - derivationMode: string; + derivationMode?: string; /** * DEPRECATED */ - source: Schema$Source; + source?: Schema$Source; } /** * A representation of an int64, n, that is immune to precision loss when @@ -2218,11 +2221,11 @@ export namespace dataflow_v1b3 { /** * The high order bits, including the sign: n >> 32. */ - highBits: number; + highBits?: number; /** * The low order bits: n & 0xffffffff. */ - lowBits: number; + lowBits?: number; } /** * Description of an input or output of an execution stage. @@ -2231,20 +2234,20 @@ export namespace dataflow_v1b3 { /** * Dataflow service generated name for this source. */ - name: string; + name?: string; /** * User name for the original user transform or collection with which this * source is most closely associated. */ - originalTransformOrCollection: string; + originalTransformOrCollection?: string; /** * Size of the source, if measurable. */ - sizeBytes: string; + sizeBytes?: string; /** * Human-readable name for this source; may be user or system generated. */ - userName: string; + userName?: string; } /** * State family configuration. @@ -2253,11 +2256,11 @@ export namespace dataflow_v1b3 { /** * If true, this family corresponds to a read operation. */ - isRead: boolean; + isRead?: boolean; /** * The state family value. */ - stateFamily: string; + stateFamily?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -2299,18 +2302,18 @@ export namespace dataflow_v1b3 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Defines a particular step within a Cloud Dataflow job. A job consists of @@ -2330,18 +2333,18 @@ export namespace dataflow_v1b3 { /** * The kind of step in the Cloud Dataflow job. */ - kind: string; + kind?: string; /** * The name that identifies the step. This must be unique for each step with * respect to all other steps in the Cloud Dataflow job. */ - name: string; + name?: string; /** * Named properties associated with the step. Each kind of predefined step * has its own required set of properties. Must be provided on Create. Only * retrieved with JOB_VIEW_ALL. */ - properties: any; + properties?: any; } /** * Configuration information for a single streaming computation. @@ -2350,19 +2353,19 @@ export namespace dataflow_v1b3 { /** * Unique identifier for this computation. */ - computationId: string; + computationId?: string; /** * Instructions that comprise the computation. */ - instructions: Schema$ParallelInstruction[]; + instructions?: Schema$ParallelInstruction[]; /** * Stage name of this computation. */ - stageName: string; + stageName?: string; /** * System defined name for this computation. */ - systemName: string; + systemName?: string; } /** * Describes full or partial data disk assignment information of the @@ -2372,11 +2375,11 @@ export namespace dataflow_v1b3 { /** * The ID of the computation. */ - computationId: string; + computationId?: string; /** * Data disk assignments for ranges from this computation. */ - rangeAssignments: Schema$KeyRangeDataDiskAssignment[]; + rangeAssignments?: Schema$KeyRangeDataDiskAssignment[]; } /** * A task which describes what action should be performed for the specified @@ -2386,15 +2389,15 @@ export namespace dataflow_v1b3 { /** * Contains ranges of a streaming computation this task should apply to. */ - computationRanges: Schema$StreamingComputationRanges[]; + computationRanges?: Schema$StreamingComputationRanges[]; /** * Describes the set of data disks this task should apply to. */ - dataDisks: Schema$MountedDataDisk[]; + dataDisks?: Schema$MountedDataDisk[]; /** * A type of streaming computation task. */ - taskType: string; + taskType?: string; } /** * A task that carries configuration information for streaming computations. @@ -2403,23 +2406,23 @@ export namespace dataflow_v1b3 { /** * Set of computation configuration information. */ - streamingComputationConfigs: Schema$StreamingComputationConfig[]; + streamingComputationConfigs?: Schema$StreamingComputationConfig[]; /** * Map from user step names to state families. */ - userStepToStateFamilyNameMap: any; + userStepToStateFamilyNameMap?: any; /** * If present, the worker must use this endpoint to communicate with * Windmill Service dispatchers, otherwise the worker must continue to use * whatever endpoint it had been using. */ - windmillServiceEndpoint: string; + windmillServiceEndpoint?: string; /** * If present, the worker must use this port to communicate with Windmill * Service dispatchers. Only applicable when windmill_service_endpoint is * specified. */ - windmillServicePort: string; + windmillServicePort?: string; } /** * A task which initializes part of a streaming Dataflow job. @@ -2428,21 +2431,21 @@ export namespace dataflow_v1b3 { /** * The user has requested drain. */ - drain: boolean; + drain?: boolean; /** * The TCP port on which the worker should listen for messages from other * streaming computation workers. */ - receiveWorkPort: number; + receiveWorkPort?: number; /** * The global topology of the streaming Dataflow job. */ - streamingComputationTopology: Schema$TopologyConfig; + streamingComputationTopology?: Schema$TopologyConfig; /** * The TCP port used by the worker to communicate with the Dataflow worker * harness. */ - workerHarnessPort: number; + workerHarnessPort?: number; } /** * Identifies the location of a streaming side input. @@ -2451,11 +2454,11 @@ export namespace dataflow_v1b3 { /** * Identifies the state family where this side input is stored. */ - stateFamily: string; + stateFamily?: string; /** * Identifies the particular side input within the streaming Dataflow job. */ - tag: string; + tag?: string; } /** * Identifies the location of a streaming computation stage, for @@ -2465,7 +2468,7 @@ export namespace dataflow_v1b3 { /** * Identifies the particular stream within the streaming Dataflow job. */ - streamId: string; + streamId?: string; } /** * Describes a stream of data, either as input to be processed or as output of @@ -2475,20 +2478,20 @@ export namespace dataflow_v1b3 { /** * The stream is a custom source. */ - customSourceLocation: Schema$CustomSourceLocation; + customSourceLocation?: Schema$CustomSourceLocation; /** * The stream is a pubsub stream. */ - pubsubLocation: Schema$PubsubLocation; + pubsubLocation?: Schema$PubsubLocation; /** * The stream is a streaming side input. */ - sideInputLocation: Schema$StreamingSideInputLocation; + sideInputLocation?: Schema$StreamingSideInputLocation; /** * The stream is part of another computation within the current streaming * Dataflow job. */ - streamingStageLocation: Schema$StreamingStageLocation; + streamingStageLocation?: Schema$StreamingStageLocation; } /** * A metric value representing a list of strings. @@ -2497,7 +2500,7 @@ export namespace dataflow_v1b3 { /** * Elements of the list. */ - elements: string[]; + elements?: string[]; } /** * A rich message format, including a human readable string, a key for @@ -2509,15 +2512,15 @@ export namespace dataflow_v1b3 { * Idenfier for this message type. Used by external systems to * internationalize or personalize message. */ - messageKey: string; + messageKey?: string; /** * Human-readable version of message. */ - messageText: string; + messageText?: string; /** * The structured data associated with this message. */ - parameters: Schema$Parameter[]; + parameters?: Schema$Parameter[]; } /** * Taskrunner configuration settings. @@ -2526,11 +2529,11 @@ export namespace dataflow_v1b3 { /** * Whether to also send taskrunner log info to stderr. */ - alsologtostderr: boolean; + alsologtostderr?: boolean; /** * The location on the worker for task-specific subdirectories. */ - baseTaskDir: string; + baseTaskDir?: string; /** * The base URL for the taskrunner to use when accessing Google Cloud APIs. * When workers access Google Cloud APIs, they logically do so via relative @@ -2539,81 +2542,81 @@ export namespace dataflow_v1b3 { * by RFC 1808, "Relative Uniform Resource Locators". If not * specified, the default value is "http://www.googleapis.com/" */ - baseUrl: string; + baseUrl?: string; /** * The file to store preprocessing commands in. */ - commandlinesFileName: string; + commandlinesFileName?: string; /** * Whether to continue taskrunner if an exception is hit. */ - continueOnException: boolean; + continueOnException?: boolean; /** * The API version of endpoint, e.g. "v1b3" */ - dataflowApiVersion: string; + dataflowApiVersion?: string; /** * The command to launch the worker harness. */ - harnessCommand: string; + harnessCommand?: string; /** * The suggested backend language. */ - languageHint: string; + languageHint?: string; /** * The directory on the VM to store logs. */ - logDir: string; + logDir?: string; /** * Whether to send taskrunner log info to Google Compute Engine VM serial * console. */ - logToSerialconsole: boolean; + logToSerialconsole?: boolean; /** * Indicates where to put logs. If this is not specified, the logs will not * be uploaded. The supported resource type is: Google Cloud Storage: * storage.googleapis.com/{bucket}/{object} * bucket.storage.googleapis.com/{object} */ - logUploadLocation: string; + logUploadLocation?: string; /** * The OAuth2 scopes to be requested by the taskrunner in order to access * the Cloud Dataflow API. */ - oauthScopes: string[]; + oauthScopes?: string[]; /** * The settings to pass to the parallel worker harness. */ - parallelWorkerSettings: Schema$WorkerSettings; + parallelWorkerSettings?: Schema$WorkerSettings; /** * The streaming worker main class name. */ - streamingWorkerMainClass: string; + streamingWorkerMainClass?: string; /** * The UNIX group ID on the worker VM to use for tasks launched by * taskrunner; e.g. "wheel". */ - taskGroup: string; + taskGroup?: string; /** * The UNIX user ID on the worker VM to use for tasks launched by * taskrunner; e.g. "root". */ - taskUser: string; + taskUser?: string; /** * The prefix of the resources the taskrunner should use for temporary * storage. The supported resource type is: Google Cloud Storage: * storage.googleapis.com/{bucket}/{object} * bucket.storage.googleapis.com/{object} */ - tempStoragePrefix: string; + tempStoragePrefix?: string; /** * The ID string of the VM. */ - vmId: string; + vmId?: string; /** * The file to store the workflow in. */ - workflowFileName: string; + workflowFileName?: string; } /** * Metadata describing a template. @@ -2622,15 +2625,15 @@ export namespace dataflow_v1b3 { /** * Optional. A description of the template. */ - description: string; + description?: string; /** * Required. The name of the template. */ - name: string; + name?: string; /** * The parameters for the template. */ - parameters: Schema$ParameterMetadata[]; + parameters?: Schema$ParameterMetadata[]; } /** * Global topology of the streaming Dataflow job, including all computations @@ -2640,23 +2643,23 @@ export namespace dataflow_v1b3 { /** * The computations associated with a streaming Dataflow job. */ - computations: Schema$ComputationTopology[]; + computations?: Schema$ComputationTopology[]; /** * The disks assigned to a streaming Dataflow job. */ - dataDiskAssignments: Schema$DataDiskAssignment[]; + dataDiskAssignments?: Schema$DataDiskAssignment[]; /** * The size (in bits) of keys that will be assigned to source messages. */ - forwardingKeyBits: number; + forwardingKeyBits?: number; /** * Version number for persistent state. */ - persistentStateVersion: number; + persistentStateVersion?: number; /** * Maps user stage names to stable computation names. */ - userStageToComputationNameMap: any; + userStageToComputationNameMap?: any; } /** * Description of the type, names/ids, and input/outputs for a transform. @@ -2665,27 +2668,27 @@ export namespace dataflow_v1b3 { /** * Transform-specific display data. */ - displayData: Schema$DisplayData[]; + displayData?: Schema$DisplayData[]; /** * SDK generated id of this transform instance. */ - id: string; + id?: string; /** * User names for all collection inputs to this transform. */ - inputCollectionName: string[]; + inputCollectionName?: string[]; /** * Type of transform. */ - kind: string; + kind?: string; /** * User provided name for this transform instance. */ - name: string; + name?: string; /** * User names for all collection outputs to this transform. */ - outputCollectionName: string[]; + outputCollectionName?: string[]; } /** * WorkerHealthReport contains information about the health of a worker. The @@ -2699,21 +2702,21 @@ export namespace dataflow_v1b3 { * This field is used by the worker to send the status of the indvidual * containers running on each worker. */ - pods: any[]; + pods?: any[]; /** * The interval at which the worker is sending health reports. The default * value of 0 should be interpreted as the field is not being explicitly set * by the worker. */ - reportInterval: string; + reportInterval?: string; /** * Whether the VM is healthy. */ - vmIsHealthy: boolean; + vmIsHealthy?: boolean; /** * The time the VM was booted. */ - vmStartupTime: string; + vmStartupTime?: string; } /** * WorkerHealthReportResponse contains information returned to the worker in @@ -2725,7 +2728,7 @@ export namespace dataflow_v1b3 { * interval to the specified value. The default value of zero means no * change in report rate is requested by the server. */ - reportInterval: string; + reportInterval?: string; } /** * A report of an event in a worker's lifecycle. The proto contains one @@ -2739,16 +2742,16 @@ export namespace dataflow_v1b3 { * The start time of this container. All events will report this so that * events can be grouped together across container/VM restarts. */ - containerStartTime: string; + containerStartTime?: string; /** * The event being reported. */ - event: string; + event?: string; /** * Other stats that can accompany an event. E.g. { * "downloaded_bytes" : "123456" } */ - metadata: any; + metadata?: any; } /** * WorkerMessage provides information to the backend about a worker. @@ -2764,31 +2767,31 @@ export namespace dataflow_v1b3 { * of development other strings can be used as tags. LABEL_UNSPECIFIED * should not be used here. */ - labels: any; + labels?: any; /** * The timestamp of the worker_message. */ - time: string; + time?: string; /** * The health of a worker. */ - workerHealthReport: Schema$WorkerHealthReport; + workerHealthReport?: Schema$WorkerHealthReport; /** * Record of worker lifecycle events. */ - workerLifecycleEvent: Schema$WorkerLifecycleEvent; + workerLifecycleEvent?: Schema$WorkerLifecycleEvent; /** * A worker message code. */ - workerMessageCode: Schema$WorkerMessageCode; + workerMessageCode?: Schema$WorkerMessageCode; /** * Resource metrics reported by workers. */ - workerMetrics: Schema$ResourceUtilizationReport; + workerMetrics?: Schema$ResourceUtilizationReport; /** * Shutdown notice by workers. */ - workerShutdownNotice: Schema$WorkerShutdownNotice; + workerShutdownNotice?: Schema$WorkerShutdownNotice; } /** * A message code is used to report status and error messages to the service. @@ -2808,7 +2811,7 @@ export namespace dataflow_v1b3 { * of one of the worker containers. This is a string and not an enum to * make it easy to add new codes without waiting for an API change. */ - code: string; + code?: string; /** * Parameters contains specific information about the code. This is a * struct to allow parameters of different types. Examples: 1. For a @@ -2824,7 +2827,7 @@ export namespace dataflow_v1b3 { * other worker identifiers should almost always be passed as labels since * they will be included on most messages. */ - parameters: any; + parameters?: any; } /** * A worker_message response allows the server to pass information to the @@ -2834,15 +2837,15 @@ export namespace dataflow_v1b3 { /** * The service's response to a worker's health report. */ - workerHealthReportResponse: Schema$WorkerHealthReportResponse; + workerHealthReportResponse?: Schema$WorkerHealthReportResponse; /** * Service's response to reporting worker metrics (currently empty). */ - workerMetricsResponse: Schema$ResourceUtilizationReportResponse; + workerMetricsResponse?: Schema$ResourceUtilizationReportResponse; /** * Service's response to shutdown notice (currently empty). */ - workerShutdownNoticeResponse: Schema$WorkerShutdownNoticeResponse; + workerShutdownNoticeResponse?: Schema$WorkerShutdownNoticeResponse; } /** * Describes one particular pool of Cloud Dataflow workers to be instantiated @@ -2855,90 +2858,90 @@ export namespace dataflow_v1b3 { /** * Settings for autoscaling of this WorkerPool. */ - autoscalingSettings: Schema$AutoscalingSettings; + autoscalingSettings?: Schema$AutoscalingSettings; /** * Data disks that are used by a VM in this workflow. */ - dataDisks: Schema$Disk[]; + dataDisks?: Schema$Disk[]; /** * The default package set to install. This allows the service to select a * default set of packages which are useful to worker harnesses written in a * particular language. */ - defaultPackageSet: string; + defaultPackageSet?: string; /** * Size of root disk for VMs, in GB. If zero or unspecified, the service * will attempt to choose a reasonable default. */ - diskSizeGb: number; + diskSizeGb?: number; /** * Fully qualified source image for disks. */ - diskSourceImage: string; + diskSourceImage?: string; /** * Type of root disk for VMs. If empty or unspecified, the service will * attempt to choose a reasonable default. */ - diskType: string; + diskType?: string; /** * Configuration for VM IPs. */ - ipConfiguration: string; + ipConfiguration?: string; /** * The kind of the worker pool; currently only `harness` and `shuffle` are * supported. */ - kind: string; + kind?: string; /** * Machine type (e.g. "n1-standard-1"). If empty or unspecified, * the service will attempt to choose a reasonable default. */ - machineType: string; + machineType?: string; /** * Metadata to set on the Google Compute Engine VMs. */ - metadata: any; + metadata?: any; /** * Network to which VMs will be assigned. If empty or unspecified, the * service will use the network "default". */ - network: string; + network?: string; /** * The number of threads per worker harness. If empty or unspecified, the * service will choose a number of threads (according to the number of cores * on the selected machine type for batch, or 1 by convention for * streaming). */ - numThreadsPerWorker: number; + numThreadsPerWorker?: number; /** * Number of Google Compute Engine workers in this pool needed to execute * the job. If zero or unspecified, the service will attempt to choose a * reasonable default. */ - numWorkers: number; + numWorkers?: number; /** * The action to take on host maintenance, as defined by the Google Compute * Engine API. */ - onHostMaintenance: string; + onHostMaintenance?: string; /** * Packages to be installed on workers. */ - packages: Schema$Package[]; + packages?: Schema$Package[]; /** * Extra arguments for this worker pool. */ - poolArgs: any; + poolArgs?: any; /** * Subnetwork to which VMs will be assigned, if desired. Expected to be of * the form "regions/REGION/subnetworks/SUBNETWORK". */ - subnetwork: string; + subnetwork?: string; /** * Settings passed through to Google Compute Engine workers when using the * standard Dataflow task runner. Users should ignore this field. */ - taskrunnerSettings: Schema$TaskRunnerSettings; + taskrunnerSettings?: Schema$TaskRunnerSettings; /** * Sets the policy for determining when to turndown worker pool. Allowed * values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and @@ -2953,17 +2956,17 @@ export namespace dataflow_v1b3 { * If unknown or unspecified, the service will attempt to choose a * reasonable default. */ - teardownPolicy: string; + teardownPolicy?: string; /** * Required. Docker container image that executes the Cloud Dataflow worker * harness, residing in Google Container Registry. */ - workerHarnessContainerImage: string; + workerHarnessContainerImage?: string; /** * Zone to run the worker pools in. If empty or unspecified, the service * will attempt to choose a reasonable default. */ - zone: string; + zone?: string; } /** * Provides data to pass through to the worker harness. @@ -2977,32 +2980,32 @@ export namespace dataflow_v1b3 { * "Relative Uniform Resource Locators". If not specified, the * default value is "http://www.googleapis.com/" */ - baseUrl: string; + baseUrl?: string; /** * Whether to send work progress updates to the service. */ - reportingEnabled: boolean; + reportingEnabled?: boolean; /** * The Cloud Dataflow service path relative to the root URL, for example, * "dataflow/v1b3/projects". */ - servicePath: string; + servicePath?: string; /** * The Shuffle service path relative to the root URL, for example, * "shuffle/v1beta1". */ - shuffleServicePath: string; + shuffleServicePath?: string; /** * The prefix of the resources the system should use for temporary storage. * The supported resource type is: Google Cloud Storage: * storage.googleapis.com/{bucket}/{object} * bucket.storage.googleapis.com/{object} */ - tempStoragePrefix: string; + tempStoragePrefix?: string; /** * The ID of the worker running this pipeline. */ - workerId: string; + workerId?: string; } /** * Shutdown notification from workers. This is to be sent by the shutdown @@ -3016,7 +3019,7 @@ export namespace dataflow_v1b3 { * shutdown reason is preemption. Other possible reasons may be added in the * future. */ - reason: string; + reason?: string; } /** * Service-side response to WorkerMessage issuing shutdown notice. @@ -3030,64 +3033,64 @@ export namespace dataflow_v1b3 { /** * Work item-specific configuration as an opaque blob. */ - configuration: string; + configuration?: string; /** * Identifies this WorkItem. */ - id: string; + id?: string; /** * The initial index to use when reporting the status of the WorkItem. */ - initialReportIndex: string; + initialReportIndex?: string; /** * Identifies the workflow job this WorkItem belongs to. */ - jobId: string; + jobId?: string; /** * Time when the lease on this Work will expire. */ - leaseExpireTime: string; + leaseExpireTime?: string; /** * Additional information for MapTask WorkItems. */ - mapTask: Schema$MapTask; + mapTask?: Schema$MapTask; /** * Any required packages that need to be fetched in order to execute this * WorkItem. */ - packages: Schema$Package[]; + packages?: Schema$Package[]; /** * Identifies the cloud project this WorkItem belongs to. */ - projectId: string; + projectId?: string; /** * Recommended reporting interval. */ - reportStatusInterval: string; + reportStatusInterval?: string; /** * Additional information for SeqMapTask WorkItems. */ - seqMapTask: Schema$SeqMapTask; + seqMapTask?: Schema$SeqMapTask; /** * Additional information for ShellTask WorkItems. */ - shellTask: Schema$ShellTask; + shellTask?: Schema$ShellTask; /** * Additional information for source operation WorkItems. */ - sourceOperationTask: Schema$SourceOperationRequest; + sourceOperationTask?: Schema$SourceOperationRequest; /** * Additional information for StreamingComputationTask WorkItems. */ - streamingComputationTask: Schema$StreamingComputationTask; + streamingComputationTask?: Schema$StreamingComputationTask; /** * Additional information for StreamingConfigTask WorkItems. */ - streamingConfigTask: Schema$StreamingConfigTask; + streamingConfigTask?: Schema$StreamingConfigTask; /** * Additional information for StreamingSetupTask WorkItems. */ - streamingSetupTask: Schema$StreamingSetupTask; + streamingSetupTask?: Schema$StreamingSetupTask; } /** * The Dataflow service's idea of the current state of a WorkItem being @@ -3098,11 +3101,11 @@ export namespace dataflow_v1b3 { * Other data returned by the service, specific to the particular worker * harness. */ - harnessData: any; + harnessData?: any; /** * Time at which the current lease will expire. */ - leaseExpireTime: string; + leaseExpireTime?: string; /** * The short ids that workers should use in subsequent metric updates. * Workers should strive to use short ids whenever possible, but it is ok to @@ -3110,30 +3113,30 @@ export namespace dataflow_v1b3 { * worker is recovering from a crash). NOTE: it is possible that the * response may have short ids for a subset of the metrics. */ - metricShortId: Schema$MetricShortId[]; + metricShortId?: Schema$MetricShortId[]; /** * The index value to use for the next report sent by the worker. Note: If * the report call fails for whatever reason, the worker should reuse this * index for subsequent report attempts. */ - nextReportIndex: string; + nextReportIndex?: string; /** * New recommended reporting interval. */ - reportStatusInterval: string; + reportStatusInterval?: string; /** * The progress point in the WorkItem where the Dataflow service suggests * that the worker truncate the task. */ - splitRequest: Schema$ApproximateSplitRequest; + splitRequest?: Schema$ApproximateSplitRequest; /** * DEPRECATED in favor of split_request. */ - suggestedStopPoint: Schema$ApproximateProgress; + suggestedStopPoint?: Schema$ApproximateProgress; /** * Obsolete, always empty. */ - suggestedStopPosition: Schema$Position; + suggestedStopPosition?: Schema$Position; } /** * Conveys a worker's progress through the work described by a WorkItem. @@ -3142,33 +3145,33 @@ export namespace dataflow_v1b3 { /** * True if the WorkItem was completed (successfully or unsuccessfully). */ - completed: boolean; + completed?: boolean; /** * Worker output counters for this WorkItem. */ - counterUpdates: Schema$CounterUpdate[]; + counterUpdates?: Schema$CounterUpdate[]; /** * See documentation of stop_position. */ - dynamicSourceSplit: Schema$DynamicSourceSplit; + dynamicSourceSplit?: Schema$DynamicSourceSplit; /** * Specifies errors which occurred during processing. If errors are * provided, and completed = true, then the WorkItem is considered to have * failed. */ - errors: Schema$Status[]; + errors?: Schema$Status[]; /** * DEPRECATED in favor of counter_updates. */ - metricUpdates: Schema$MetricUpdate[]; + metricUpdates?: Schema$MetricUpdate[]; /** * DEPRECATED in favor of reported_progress. */ - progress: Schema$ApproximateProgress; + progress?: Schema$ApproximateProgress; /** * The worker's progress through this WorkItem. */ - reportedProgress: Schema$ApproximateReportedProgress; + reportedProgress?: Schema$ApproximateReportedProgress; /** * The report index. When a WorkItem is leased, the lease will contain an * initial report index. When a WorkItem's status is reported to the @@ -3181,20 +3184,20 @@ export namespace dataflow_v1b3 { * not submit a subsequent report until the response for the previous report * had been received from the service. */ - reportIndex: string; + reportIndex?: string; /** * Amount of time the worker requests for its lease. */ - requestedLeaseDuration: string; + requestedLeaseDuration?: string; /** * DEPRECATED in favor of dynamic_source_split. */ - sourceFork: Schema$SourceFork; + sourceFork?: Schema$SourceFork; /** * If the work item represented a SourceOperationRequest, and the work is * completed, contains the result of the operation. */ - sourceOperationResponse: Schema$SourceOperationResponse; + sourceOperationResponse?: Schema$SourceOperationResponse; /** * A worker may split an active map task in two parts, "primary" * and "residual", continuing to process the primary part and @@ -3222,15 +3225,15 @@ export namespace dataflow_v1b3 { * and in a potential subsequent dynamic_source_split into {P', R'}, * P' and R' must be together equivalent to P, etc. */ - stopPosition: Schema$Position; + stopPosition?: Schema$Position; /** * Total time the worker spent being throttled by external systems. */ - totalThrottlerWaitTimeSeconds: number; + totalThrottlerWaitTimeSeconds?: number; /** * Identifies the WorkItem. */ - workItemId: string; + workItemId?: string; } /** * An instruction that writes records. Takes one input, produces no outputs. @@ -3239,13 +3242,14 @@ export namespace dataflow_v1b3 { /** * The input. */ - input: Schema$InstructionInput; + input?: Schema$InstructionInput; /** * The sink to write to. */ - sink: Schema$Sink; + sink?: Schema$Sink; } + export class Resource$Projects { root: Dataflow; jobs: Resource$Projects$Jobs; @@ -3277,29 +3281,45 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - workerMessages(params?: any, options?: MethodOptions): + workerMessages( + params?: Params$Resource$Projects$Workermessages, + options?: MethodOptions): AxiosPromise; workerMessages( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Workermessages, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; workerMessages( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Workermessages, + callback: BodyResponseCallback): + void; + workerMessages(callback: + BodyResponseCallback): + void; + workerMessages( + paramsOrCallback?: Params$Resource$Projects$Workermessages| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Workermessages; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Workermessages; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3322,6 +3342,23 @@ export namespace dataflow_v1b3 { } } } + + export interface Params$Resource$Projects$Workermessages { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project to send the WorkerMessages to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SendWorkerMessagesRequest; + } + export class Resource$Projects$Jobs { root: Dataflow; debug: Resource$Projects$Jobs$Debug; @@ -3357,26 +3394,39 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregated(params?: any, options?: MethodOptions): - AxiosPromise; aggregated( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobs$Aggregated, + options?: MethodOptions): AxiosPromise; + aggregated( + params: Params$Resource$Projects$Jobs$Aggregated, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; aggregated( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Jobs$Aggregated, + callback: BodyResponseCallback): void; + aggregated(callback: BodyResponseCallback): void; + aggregated( + paramsOrCallback?: Params$Resource$Projects$Jobs$Aggregated| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Aggregated; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Aggregated; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3415,23 +3465,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Jobs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Jobs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Jobs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3469,21 +3534,34 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Jobs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Jobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3521,26 +3599,39 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getMetrics(params?: any, options?: MethodOptions): - AxiosPromise; getMetrics( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobs$Getmetrics, + options?: MethodOptions): AxiosPromise; + getMetrics( + params: Params$Resource$Projects$Jobs$Getmetrics, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getMetrics( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Jobs$Getmetrics, + callback: BodyResponseCallback): void; + getMetrics(callback: BodyResponseCallback): void; + getMetrics( + paramsOrCallback?: Params$Resource$Projects$Jobs$Getmetrics| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Getmetrics; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Getmetrics; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3580,26 +3671,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Jobs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Jobs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3637,23 +3740,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobs$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Jobs$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Jobs$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Jobs$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3675,6 +3793,175 @@ export namespace dataflow_v1b3 { } } } + + export interface Params$Resource$Projects$Jobs$Aggregated { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The kind of filter to use. + */ + filter?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * If there are many jobs, limit response to at most this many. The actual + * number of jobs returned will be the lesser of max_responses and an + * unspecified server-defined limit. + */ + pageSize?: number; + /** + * Set this to the 'next_page_token' field of a previous response to request + * additional results in a long list. + */ + pageToken?: string; + /** + * The project which owns the jobs. + */ + projectId?: string; + /** + * Level of information requested in response. Default is + * `JOB_VIEW_SUMMARY`. + */ + view?: string; + } + export interface Params$Resource$Projects$Jobs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The location that contains this job. + */ + location?: string; + /** + * The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * Deprecated. This field is now in the Job message. + */ + replaceJobId?: string; + /** + * The level of information requested in response. + */ + view?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export interface Params$Resource$Projects$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job ID. + */ + jobId?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * The level of information requested in response. + */ + view?: string; + } + export interface Params$Resource$Projects$Jobs$Getmetrics { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job to get messages for. + */ + jobId?: string; + /** + * The location which contains the job specified by job_id. + */ + location?: string; + /** + * A project id. + */ + projectId?: string; + /** + * Return only metric data that has changed since this time. Default is to + * return all information about all metrics for the job. + */ + startTime?: string; + } + export interface Params$Resource$Projects$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The kind of filter to use. + */ + filter?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * If there are many jobs, limit response to at most this many. The actual + * number of jobs returned will be the lesser of max_responses and an + * unspecified server-defined limit. + */ + pageSize?: number; + /** + * Set this to the 'next_page_token' field of a previous response to request + * additional results in a long list. + */ + pageToken?: string; + /** + * The project which owns the jobs. + */ + projectId?: string; + /** + * Level of information requested in response. Default is + * `JOB_VIEW_SUMMARY`. + */ + view?: string; + } + export interface Params$Resource$Projects$Jobs$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job ID. + */ + jobId?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export class Resource$Projects$Jobs$Debug { root: Dataflow; constructor(root: Dataflow) { @@ -3701,28 +3988,41 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getConfig(params?: any, options?: MethodOptions): - AxiosPromise; getConfig( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Jobs$Debug$Getconfig, + options?: MethodOptions): AxiosPromise; + getConfig( + params: Params$Resource$Projects$Jobs$Debug$Getconfig, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getConfig( + params: Params$Resource$Projects$Jobs$Debug$Getconfig, + callback: BodyResponseCallback): void; + getConfig(callback: BodyResponseCallback): + void; getConfig( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobs$Debug$Getconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Debug$Getconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Debug$Getconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3760,28 +4060,41 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sendCapture(params?: any, options?: MethodOptions): - AxiosPromise; sendCapture( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Jobs$Debug$Sendcapture, + options?: MethodOptions): AxiosPromise; + sendCapture( + params: Params$Resource$Projects$Jobs$Debug$Sendcapture, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + sendCapture( + params: Params$Resource$Projects$Jobs$Debug$Sendcapture, + callback: BodyResponseCallback): void; + sendCapture( + callback: BodyResponseCallback): void; sendCapture( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobs$Debug$Sendcapture| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Debug$Sendcapture; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Debug$Sendcapture; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3805,6 +4118,46 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Jobs$Debug$Getconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job id. + */ + jobId?: string; + /** + * The project id. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$GetDebugConfigRequest; + } + export interface Params$Resource$Projects$Jobs$Debug$Sendcapture { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job id. + */ + jobId?: string; + /** + * The project id. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SendDebugCaptureRequest; + } + + export class Resource$Projects$Jobs$Messages { root: Dataflow; constructor(root: Dataflow) { @@ -3836,28 +4189,40 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Jobs$Messages$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Jobs$Messages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Messages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Jobs$Messages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Messages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Messages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3881,6 +4246,52 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Jobs$Messages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Return only messages with timestamps < end_time. The default is now (i.e. + * return up to the latest messages available). + */ + endTime?: string; + /** + * The job to get messages about. + */ + jobId?: string; + /** + * The location which contains the job specified by job_id. + */ + location?: string; + /** + * Filter to only get messages with importance >= level + */ + minimumImportance?: string; + /** + * If specified, determines the maximum number of messages to return. If + * unspecified, the service may choose an appropriate default, or may return + * an arbitrarily large number of results. + */ + pageSize?: number; + /** + * If supplied, this should be the value of next_page_token returned by an + * earlier call. This will cause the next page of results to be returned. + */ + pageToken?: string; + /** + * A project id. + */ + projectId?: string; + /** + * If specified, return only messages with timestamps >= start_time. The + * default is the job creation time (i.e. beginning of messages). + */ + startTime?: string; + } + + export class Resource$Projects$Jobs$Workitems { root: Dataflow; constructor(root: Dataflow) { @@ -3907,28 +4318,40 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - lease(params?: any, options?: MethodOptions): - AxiosPromise; lease( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Jobs$Workitems$Lease, + options?: MethodOptions): AxiosPromise; + lease( + params: Params$Resource$Projects$Jobs$Workitems$Lease, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; lease( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Workitems$Lease, + callback: BodyResponseCallback): void; + lease(callback: BodyResponseCallback): void; + lease( + paramsOrCallback?: Params$Resource$Projects$Jobs$Workitems$Lease| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Workitems$Lease; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Workitems$Lease; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3966,29 +4389,45 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reportStatus(params?: any, options?: MethodOptions): + reportStatus( + params?: Params$Resource$Projects$Jobs$Workitems$Reportstatus, + options?: MethodOptions): AxiosPromise; reportStatus( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Workitems$Reportstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + reportStatus( + params: Params$Resource$Projects$Jobs$Workitems$Reportstatus, + callback: BodyResponseCallback): + void; + reportStatus(callback: + BodyResponseCallback): void; reportStatus( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobs$Workitems$Reportstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Workitems$Reportstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Workitems$Reportstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4015,6 +4454,46 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Jobs$Workitems$Lease { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the workflow job this worker belongs to. + */ + jobId?: string; + /** + * Identifies the project this worker belongs to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$LeaseWorkItemRequest; + } + export interface Params$Resource$Projects$Jobs$Workitems$Reportstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job which the WorkItem is part of. + */ + jobId?: string; + /** + * The project which owns the WorkItem's job. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$ReportWorkItemStatusRequest; + } + + export class Resource$Projects$Locations { root: Dataflow; @@ -4046,29 +4525,45 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - workerMessages(params?: any, options?: MethodOptions): + workerMessages( + params?: Params$Resource$Projects$Locations$Workermessages, + options?: MethodOptions): AxiosPromise; workerMessages( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Workermessages, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + workerMessages( + params: Params$Resource$Projects$Locations$Workermessages, + callback: BodyResponseCallback): + void; + workerMessages(callback: + BodyResponseCallback): void; workerMessages( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Workermessages| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workermessages; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Workermessages; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4093,6 +4588,27 @@ export namespace dataflow_v1b3 { } } } + + export interface Params$Resource$Projects$Locations$Workermessages { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The location which contains the job + */ + location?: string; + /** + * The project to send the WorkerMessages to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SendWorkerMessagesRequest; + } + export class Resource$Projects$Locations$Jobs { root: Dataflow; debug: Resource$Projects$Locations$Jobs$Debug; @@ -4127,23 +4643,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Jobs$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Jobs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Jobs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Jobs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4182,21 +4713,34 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Jobs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Jobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4236,26 +4780,39 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getMetrics(params?: any, options?: MethodOptions): - AxiosPromise; getMetrics( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Jobs$Getmetrics, + options?: MethodOptions): AxiosPromise; + getMetrics( + params: Params$Resource$Projects$Locations$Jobs$Getmetrics, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getMetrics( + params: Params$Resource$Projects$Locations$Jobs$Getmetrics, + callback: BodyResponseCallback): void; + getMetrics(callback: BodyResponseCallback): void; getMetrics( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Jobs$Getmetrics| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Getmetrics; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Getmetrics; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4297,26 +4854,39 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Jobs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Jobs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4355,23 +4925,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Jobs$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Jobs$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Locations$Jobs$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Locations$Jobs$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4395,6 +4980,140 @@ export namespace dataflow_v1b3 { } } } + + export interface Params$Resource$Projects$Locations$Jobs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The location that contains this job. + */ + location?: string; + /** + * The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * Deprecated. This field is now in the Job message. + */ + replaceJobId?: string; + /** + * The level of information requested in response. + */ + view?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export interface Params$Resource$Projects$Locations$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job ID. + */ + jobId?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * The level of information requested in response. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Jobs$Getmetrics { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job to get messages for. + */ + jobId?: string; + /** + * The location which contains the job specified by job_id. + */ + location?: string; + /** + * A project id. + */ + projectId?: string; + /** + * Return only metric data that has changed since this time. Default is to + * return all information about all metrics for the job. + */ + startTime?: string; + } + export interface Params$Resource$Projects$Locations$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The kind of filter to use. + */ + filter?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * If there are many jobs, limit response to at most this many. The actual + * number of jobs returned will be the lesser of max_responses and an + * unspecified server-defined limit. + */ + pageSize?: number; + /** + * Set this to the 'next_page_token' field of a previous response to request + * additional results in a long list. + */ + pageToken?: string; + /** + * The project which owns the jobs. + */ + projectId?: string; + /** + * Level of information requested in response. Default is + * `JOB_VIEW_SUMMARY`. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Jobs$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job ID. + */ + jobId?: string; + /** + * The location that contains this job. + */ + location?: string; + /** + * The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export class Resource$Projects$Locations$Jobs$Debug { root: Dataflow; constructor(root: Dataflow) { @@ -4422,28 +5141,42 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getConfig(params?: any, options?: MethodOptions): - AxiosPromise; getConfig( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Jobs$Debug$Getconfig, + options?: MethodOptions): AxiosPromise; + getConfig( + params: Params$Resource$Projects$Locations$Jobs$Debug$Getconfig, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; getConfig( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Jobs$Debug$Getconfig, + callback: BodyResponseCallback): void; + getConfig(callback: BodyResponseCallback): + void; + getConfig( + paramsOrCallback?: + Params$Resource$Projects$Locations$Jobs$Debug$Getconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Debug$Getconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Debug$Getconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4483,28 +5216,43 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sendCapture(params?: any, options?: MethodOptions): - AxiosPromise; sendCapture( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture, + options?: MethodOptions): AxiosPromise; + sendCapture( + params: Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; sendCapture( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture, + callback: BodyResponseCallback): void; + sendCapture( + callback: BodyResponseCallback): void; + sendCapture( + paramsOrCallback?: + Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4529,6 +5277,54 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Locations$Jobs$Debug$Getconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job id. + */ + jobId?: string; + /** + * The location which contains the job specified by job_id. + */ + location?: string; + /** + * The project id. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$GetDebugConfigRequest; + } + export interface Params$Resource$Projects$Locations$Jobs$Debug$Sendcapture { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job id. + */ + jobId?: string; + /** + * The location which contains the job specified by job_id. + */ + location?: string; + /** + * The project id. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SendDebugCaptureRequest; + } + + export class Resource$Projects$Locations$Jobs$Messages { root: Dataflow; constructor(root: Dataflow) { @@ -4560,28 +5356,41 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Jobs$Messages$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Jobs$Messages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Locations$Jobs$Messages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Jobs$Messages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Messages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Messages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4606,6 +5415,52 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Locations$Jobs$Messages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Return only messages with timestamps < end_time. The default is now (i.e. + * return up to the latest messages available). + */ + endTime?: string; + /** + * The job to get messages about. + */ + jobId?: string; + /** + * The location which contains the job specified by job_id. + */ + location?: string; + /** + * Filter to only get messages with importance >= level + */ + minimumImportance?: string; + /** + * If specified, determines the maximum number of messages to return. If + * unspecified, the service may choose an appropriate default, or may return + * an arbitrarily large number of results. + */ + pageSize?: number; + /** + * If supplied, this should be the value of next_page_token returned by an + * earlier call. This will cause the next page of results to be returned. + */ + pageToken?: string; + /** + * A project id. + */ + projectId?: string; + /** + * If specified, return only messages with timestamps >= start_time. The + * default is the job creation time (i.e. beginning of messages). + */ + startTime?: string; + } + + export class Resource$Projects$Locations$Jobs$Workitems { root: Dataflow; constructor(root: Dataflow) { @@ -4633,28 +5488,41 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - lease(params?: any, options?: MethodOptions): - AxiosPromise; lease( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Jobs$Workitems$Lease, + options?: MethodOptions): AxiosPromise; + lease( + params: Params$Resource$Projects$Locations$Jobs$Workitems$Lease, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; lease( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Jobs$Workitems$Lease, + callback: BodyResponseCallback): void; + lease(callback: BodyResponseCallback): void; + lease( + paramsOrCallback?: + Params$Resource$Projects$Locations$Jobs$Workitems$Lease| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Workitems$Lease; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Jobs$Workitems$Lease; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4694,29 +5562,47 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reportStatus(params?: any, options?: MethodOptions): + reportStatus( + params?: Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus, + options?: MethodOptions): AxiosPromise; reportStatus( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; reportStatus( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus, + callback: BodyResponseCallback): + void; + reportStatus(callback: + BodyResponseCallback): + void; + reportStatus( + paramsOrCallback?: + Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4743,6 +5629,54 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Locations$Jobs$Workitems$Lease { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the workflow job this worker belongs to. + */ + jobId?: string; + /** + * The location which contains the WorkItem's job. + */ + location?: string; + /** + * Identifies the project this worker belongs to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$LeaseWorkItemRequest; + } + export interface Params$Resource$Projects$Locations$Jobs$Workitems$Reportstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job which the WorkItem is part of. + */ + jobId?: string; + /** + * The location which contains the WorkItem's job. + */ + location?: string; + /** + * The project which owns the WorkItem's job. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$ReportWorkItemStatusRequest; + } + + export class Resource$Projects$Locations$Templates { root: Dataflow; @@ -4770,23 +5704,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Templates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Templates$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Templates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Locations$Templates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Templates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Templates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4825,26 +5774,35 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Templates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Locations$Templates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Templates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Templates$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Templates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Templates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4885,28 +5843,40 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - launch(params?: any, options?: MethodOptions): - AxiosPromise; launch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Templates$Launch, + options?: MethodOptions): AxiosPromise; + launch( + params: Params$Resource$Projects$Locations$Templates$Launch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + launch( + params: Params$Resource$Projects$Locations$Templates$Launch, + callback: BodyResponseCallback): void; + launch(callback: BodyResponseCallback): void; launch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$Templates$Launch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Templates$Launch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Templates$Launch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4931,6 +5901,80 @@ export namespace dataflow_v1b3 { } } + export interface Params$Resource$Projects$Locations$Templates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The location to which to direct the request. + */ + location?: string; + /** + * Required. The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateJobFromTemplateRequest; + } + export interface Params$Resource$Projects$Locations$Templates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. A Cloud Storage path to the template from which to create the + * job. Must be a valid Cloud Storage URL, beginning with `gs://`. + */ + gcsPath?: string; + /** + * The location to which to direct the request. + */ + location?: string; + /** + * Required. The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * The view to retrieve. Defaults to METADATA_ONLY. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Templates$Launch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. A Cloud Storage path to the template from which to create the + * job. Must be valid Cloud Storage URL, beginning with 'gs://'. + */ + gcsPath?: string; + /** + * The location to which to direct the request. + */ + location?: string; + /** + * Required. The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * If true, the request is validated but not actually executed. Defaults to + * false. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LaunchTemplateParameters; + } + + export class Resource$Projects$Templates { root: Dataflow; @@ -4957,23 +6001,38 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Templates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Templates$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Templates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Templates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Templates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Templates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5011,26 +6070,35 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Templates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Templates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Templates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Templates$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Templates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Templates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5069,28 +6137,40 @@ export namespace dataflow_v1b3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - launch(params?: any, options?: MethodOptions): - AxiosPromise; launch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Templates$Launch, + options?: MethodOptions): AxiosPromise; + launch( + params: Params$Resource$Projects$Templates$Launch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + launch( + params: Params$Resource$Projects$Templates$Launch, + callback: BodyResponseCallback): void; + launch(callback: BodyResponseCallback): void; launch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Templates$Launch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Templates$Launch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Templates$Launch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5112,4 +6192,73 @@ export namespace dataflow_v1b3 { } } } + + export interface Params$Resource$Projects$Templates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateJobFromTemplateRequest; + } + export interface Params$Resource$Projects$Templates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. A Cloud Storage path to the template from which to create the + * job. Must be a valid Cloud Storage URL, beginning with `gs://`. + */ + gcsPath?: string; + /** + * The location to which to direct the request. + */ + location?: string; + /** + * Required. The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * The view to retrieve. Defaults to METADATA_ONLY. + */ + view?: string; + } + export interface Params$Resource$Projects$Templates$Launch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. A Cloud Storage path to the template from which to create the + * job. Must be valid Cloud Storage URL, beginning with 'gs://'. + */ + gcsPath?: string; + /** + * The location to which to direct the request. + */ + location?: string; + /** + * Required. The ID of the Cloud Platform project that the job belongs to. + */ + projectId?: string; + /** + * If true, the request is validated but not actually executed. Defaults to + * false. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LaunchTemplateParameters; + } } diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 44528ec0515..693336927a4 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dataproc_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Dataproc API * @@ -74,7 +77,7 @@ export namespace dataproc_v1 { * The number of the accelerator cards of this type exposed to this * instance. */ - acceleratorCount: number; + acceleratorCount?: number; /** * Full URL, partial URI, or short name of the accelerator type resource to * expose to this instance. See Compute Engine AcceleratorTypes.Examples: @@ -84,7 +87,7 @@ export namespace dataproc_v1 { * Auto Zone Placement feature, you must use the short name of the * accelerator type resource, for example, nvidia-tesla-k80. */ - acceleratorTypeUri: string; + acceleratorTypeUri?: string; } /** * A request to cancel a job. @@ -99,17 +102,17 @@ export namespace dataproc_v1 { * Required. The cluster name. Cluster names within a project must be * unique. Names of deleted clusters can be reused. */ - clusterName: string; + clusterName?: string; /** * Output only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc * generates this value when it creates the cluster. */ - clusterUuid: string; + clusterUuid?: string; /** * Required. The cluster config. Note that Cloud Dataproc may set default * values, and values may change when clusters are updated. */ - config: Schema$ClusterConfig; + config?: Schema$ClusterConfig; /** * Optional. The labels to associate with this cluster. Label keys must * contain 1 to 63 characters, and must conform to RFC 1035 @@ -118,26 +121,26 @@ export namespace dataproc_v1 { * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be * associated with a cluster. */ - labels: any; + labels?: any; /** * Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: * This report is available for testing purposes only. It may be changed * before final release. */ - metrics: Schema$ClusterMetrics; + metrics?: Schema$ClusterMetrics; /** * Required. The Google Cloud Platform project ID that the cluster belongs * to. */ - projectId: string; + projectId?: string; /** * Output only. Cluster status. */ - status: Schema$ClusterStatus; + status?: Schema$ClusterStatus; /** * Output only. The previous cluster status. */ - statusHistory: Schema$ClusterStatus[]; + statusHistory?: Schema$ClusterStatus[]; } /** * The cluster config. @@ -151,12 +154,12 @@ export namespace dataproc_v1 { * Engine zone where your cluster is deployed, and then it will create and * manage this project-level, per-location bucket for you. */ - configBucket: string; + configBucket?: string; /** * Required. The shared Compute Engine config settings for all instances in * a cluster. */ - gceClusterConfig: Schema$GceClusterConfig; + gceClusterConfig?: Schema$GceClusterConfig; /** * Optional. Commands to execute on each node after config is completed. By * default, executables are run on master and all worker nodes. You can test @@ -167,26 +170,26 @@ export namespace dataproc_v1 { * [[ "${ROLE}" == 'Master' ]]; then ... master specific * actions ... else ... worker specific actions ... fi */ - initializationActions: Schema$NodeInitializationAction[]; + initializationActions?: Schema$NodeInitializationAction[]; /** * Optional. The Compute Engine config settings for the master instance in a * cluster. */ - masterConfig: Schema$InstanceGroupConfig; + masterConfig?: Schema$InstanceGroupConfig; /** * Optional. The Compute Engine config settings for additional worker * instances in a cluster. */ - secondaryWorkerConfig: Schema$InstanceGroupConfig; + secondaryWorkerConfig?: Schema$InstanceGroupConfig; /** * Optional. The config settings for software inside the cluster. */ - softwareConfig: Schema$SoftwareConfig; + softwareConfig?: Schema$SoftwareConfig; /** * Optional. The Compute Engine config settings for worker instances in a * cluster. */ - workerConfig: Schema$InstanceGroupConfig; + workerConfig?: Schema$InstanceGroupConfig; } /** * Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: @@ -197,11 +200,11 @@ export namespace dataproc_v1 { /** * The HDFS metrics. */ - hdfsMetrics: any; + hdfsMetrics?: any; /** * The YARN metrics. */ - yarnMetrics: any; + yarnMetrics?: any; } /** * Metadata describing the operation. @@ -210,35 +213,35 @@ export namespace dataproc_v1 { /** * Output only. Name of the cluster for the operation. */ - clusterName: string; + clusterName?: string; /** * Output only. Cluster UUID for the operation. */ - clusterUuid: string; + clusterUuid?: string; /** * Output only. Short description of operation. */ - description: string; + description?: string; /** * Output only. Labels associated with the operation */ - labels: any; + labels?: any; /** * Output only. The operation type. */ - operationType: string; + operationType?: string; /** * Output only. Current operation status. */ - status: Schema$ClusterOperationStatus; + status?: Schema$ClusterOperationStatus; /** * Output only. The previous operation status. */ - statusHistory: Schema$ClusterOperationStatus[]; + statusHistory?: Schema$ClusterOperationStatus[]; /** * Output only. Errors encountered during operation execution. */ - warnings: string[]; + warnings?: string[]; } /** * The status of the operation. @@ -247,19 +250,19 @@ export namespace dataproc_v1 { /** * Output only. A message containing any operation metadata details. */ - details: string; + details?: string; /** * Output only. A message containing the detailed operation state. */ - innerState: string; + innerState?: string; /** * Output only. A message containing the operation state. */ - state: string; + state?: string; /** * Output only. The time this state was entered. */ - stateStartTime: string; + stateStartTime?: string; } /** * The status of a cluster and its instances. @@ -268,20 +271,20 @@ export namespace dataproc_v1 { /** * Output only. Optional details of cluster's state. */ - detail: string; + detail?: string; /** * Output only. The cluster's state. */ - state: string; + state?: string; /** * Output only. Time when this state was entered. */ - stateStartTime: string; + stateStartTime?: string; /** * Output only. Additional state information that includes status reported * by the agent. */ - substate: string; + substate?: string; } /** * A request to collect cluster diagnostic information. @@ -295,7 +298,7 @@ export namespace dataproc_v1 { * 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; + outputUri?: string; } /** * Specifies the config of disk options for a group of VM instances. @@ -304,7 +307,7 @@ export namespace dataproc_v1 { /** * Optional. Size in GB of the boot disk (default is 500GB). */ - bootDiskSizeGb: number; + bootDiskSizeGb?: number; /** * Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs * are not attached, the boot disk is used to store runtime logs and HDFS @@ -312,7 +315,7 @@ export namespace dataproc_v1 { * or more SSDs are attached, this runtime bulk data is spread across them, * and the boot disk contains only basic config and installed binaries. */ - numLocalSsds: number; + numLocalSsds?: number; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -335,13 +338,13 @@ export namespace dataproc_v1 { * subnetwork enabled networks, and all off-cluster dependencies must be * configured to be accessible without external IP addresses. */ - internalIpOnly: boolean; + internalIpOnly?: boolean; /** * The Compute Engine metadata entries to add to all instances (see Project * and instance metadata * (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). */ - metadata: any; + metadata?: any; /** * Optional. The Compute Engine network to be used for machine * communications. Cannot be specified with subnetwork_uri. If neither @@ -352,7 +355,7 @@ export namespace dataproc_v1 { * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default * projects/[project_id]/regions/global/default default */ - networkUri: string; + networkUri?: string; /** * Optional. The service account of the instances. Defaults to the default * Compute Engine service account. Custom service accounts need permissions @@ -362,7 +365,7 @@ export namespace dataproc_v1 { * for more information). Example: * [account_id]@[project_id].iam.gserviceaccount.com */ - serviceAccount: string; + serviceAccount?: string; /** * Optional. The URIs of service account scopes to be included in Compute * Engine instances. The following base set of scopes is always included: @@ -375,7 +378,7 @@ export namespace dataproc_v1 { * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control */ - serviceAccountScopes: string[]; + serviceAccountScopes?: string[]; /** * Optional. The Compute Engine subnetwork to be used for machine * communications. Cannot be specified with network_uri.A full URL, partial @@ -383,11 +386,11 @@ export namespace dataproc_v1 { * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0 * projects/[project_id]/regions/us-east1/sub0 sub0 */ - subnetworkUri: string; + subnetworkUri?: string; /** * The Compute Engine tags to add to all instances (see Tagging instances). */ - tags: string[]; + tags?: string[]; /** * Optional. The zone where the Compute Engine cluster will be located. On a * create request, it is required in the "global" region. If @@ -398,7 +401,7 @@ export namespace dataproc_v1 { * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] * projects/[project_id]/zones/[zone] us-central1-f */ - zoneUri: string; + zoneUri?: string; } /** * A Cloud Dataproc job for running Apache Hadoop MapReduce @@ -412,47 +415,47 @@ export namespace dataproc_v1 { * of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, * .tgz, or .zip. */ - archiveUris: string[]; + archiveUris?: string[]; /** * Optional. The arguments to pass to the driver. Do not include arguments, * such as -libjars or -Dfoo=bar, that can be set as job properties, since a * collision may occur that causes an incorrect job submission. */ - args: string[]; + args?: string[]; /** * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied * to the working directory of Hadoop drivers and distributed tasks. Useful * for naively parallel tasks. */ - fileUris: string[]; + fileUris?: string[]; /** * Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and * tasks. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * The name of the driver's main class. The jar file containing the * class must be in the default CLASSPATH or specified in jar_file_uris. */ - mainClass: string; + mainClass?: string; /** * The HCFS URI of the jar file containing the main class. Examples: * 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' * 'hdfs:/tmp/test-samples/custom-wordcount.jar' * 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' */ - mainJarFileUri: string; + mainJarFileUri?: string; /** * Optional. A mapping of property names to values, used to configure * Hadoop. Properties that conflict with values set by the Cloud Dataproc * API may be overwritten. Can include properties set in * /etc/hadoop/conf/*-site and classes in user code. */ - properties: any; + properties?: any; } /** * A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) @@ -464,32 +467,32 @@ export namespace dataproc_v1 { * default value is false. Setting to true can be useful when executing * independent parallel queries. */ - continueOnFailure: boolean; + continueOnFailure?: boolean; /** * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive * server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. A mapping of property names and values, used to configure Hive. * Properties that conflict with values set by the Cloud Dataproc API may be * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, * /etc/hive/conf/hive-site.xml, and classes in user code. */ - properties: any; + properties?: any; /** * The HCFS URI of the script that contains Hive queries. */ - queryFileUri: string; + queryFileUri?: string; /** * A list of queries. */ - queryList: Schema$QueryList; + queryList?: Schema$QueryList; /** * Optional. Mapping of query variable names to values (equivalent to the * Hive command: SET name="value";). */ - scriptVariables: any; + scriptVariables?: any; } /** * Optional. The config settings for Compute Engine resources in an instance @@ -501,27 +504,26 @@ export namespace dataproc_v1 { * instances.Beta Feature: This feature is still under development. It may * be changed before final release. */ - accelerators: Schema$AcceleratorConfig[]; + accelerators?: Schema$AcceleratorConfig[]; /** * Optional. Disk option config settings. */ - diskConfig: Schema$DiskConfig; + diskConfig?: Schema$DiskConfig; /** * Output only. The Compute Engine image resource used for cluster * instances. Inferred from SoftwareConfig.image_version. */ - imageUri: string; + imageUri?: string; /** - * Optional. The list of instance names. Cloud Dataproc derives the names - * from cluster_name, num_instances, and the instance group if not set by - * user (recommended practice is to let Cloud Dataproc derive the name). + * Output only. The list of instance names. Cloud Dataproc derives the names + * from cluster_name, num_instances, and the instance group. */ - instanceNames: string[]; + instanceNames?: string[]; /** * Optional. Specifies that this instance group contains preemptible * instances. */ - isPreemptible: boolean; + isPreemptible?: boolean; /** * Optional. The Compute Engine machine type used for cluster instances.A * full URL, partial URI, or short name are valid. Examples: @@ -531,17 +533,17 @@ export namespace dataproc_v1 { * Auto Zone Placement feature, you must use the short name of the machine * type resource, for example, n1-standard-2. */ - machineTypeUri: string; + machineTypeUri?: string; /** * Output only. The config for Compute Engine Instance Group Manager that * manages this group. This is only used for preemptible instance groups. */ - managedGroupConfig: Schema$ManagedGroupConfig; + managedGroupConfig?: Schema$ManagedGroupConfig; /** * Optional. The number of VM instances in the instance group. For master * instance groups, must be set to 1. */ - numInstances: number; + numInstances?: number; } /** * A Cloud Dataproc job resource. @@ -552,20 +554,20 @@ export namespace dataproc_v1 { * which may be used as part of job setup and handling. If not present, * control files may be placed in the same location as driver_output_uri. */ - driverControlFilesUri: string; + driverControlFilesUri?: string; /** * Output only. A URI pointing to the location of the stdout of the * job's driver program. */ - driverOutputResourceUri: string; + driverOutputResourceUri?: string; /** * Job is a Hadoop job. */ - hadoopJob: Schema$HadoopJob; + hadoopJob?: Schema$HadoopJob; /** * Job is a Hive job. */ - hiveJob: Schema$HiveJob; + hiveJob?: Schema$HiveJob; /** * Optional. The labels to associate with this job. Label keys must contain * 1 to 63 characters, and must conform to RFC 1035 @@ -574,54 +576,54 @@ export namespace dataproc_v1 { * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be * associated with a job. */ - labels: any; + labels?: any; /** * Job is a Pig job. */ - pigJob: Schema$PigJob; + pigJob?: Schema$PigJob; /** * Required. Job information, including how, when, and where to run the job. */ - placement: Schema$JobPlacement; + placement?: Schema$JobPlacement; /** * Job is a Pyspark job. */ - pysparkJob: Schema$PySparkJob; + pysparkJob?: Schema$PySparkJob; /** * Optional. The fully qualified reference to the job, which can be used to * obtain the equivalent REST path of the job resource. If this property is * not specified when a job is created, the server generates a * <code>job_id</code>. */ - reference: Schema$JobReference; + reference?: Schema$JobReference; /** * Optional. Job scheduling configuration. */ - scheduling: Schema$JobScheduling; + scheduling?: Schema$JobScheduling; /** * Job is a Spark job. */ - sparkJob: Schema$SparkJob; + sparkJob?: Schema$SparkJob; /** * Job is a SparkSql job. */ - sparkSqlJob: Schema$SparkSqlJob; + sparkSqlJob?: Schema$SparkSqlJob; /** * Output only. The job status. Additional application-specific status * information may be contained in the <code>type_job</code> and * <code>yarn_applications</code> fields. */ - status: Schema$JobStatus; + status?: Schema$JobStatus; /** * Output only. The previous job status. */ - statusHistory: Schema$JobStatus[]; + statusHistory?: Schema$JobStatus[]; /** * Output only. The collection of YARN applications spun up by this job.Beta * Feature: This report is available for testing purposes only. It may be * changed before final release. */ - yarnApplications: Schema$YarnApplication[]; + yarnApplications?: Schema$YarnApplication[]; } /** * Cloud Dataproc job config. @@ -630,12 +632,12 @@ export namespace dataproc_v1 { /** * Required. The name of the cluster where the job will be submitted. */ - clusterName: string; + clusterName?: string; /** * Output only. A cluster UUID generated by the Cloud Dataproc service when * the job is submitted. */ - clusterUuid: string; + clusterUuid?: string; } /** * Encapsulates the full scoping used to reference a job. @@ -648,12 +650,12 @@ export namespace dataproc_v1 { * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or * hyphens (-). The maximum length is 100 characters. */ - jobId: string; + jobId?: string; /** * Required. The ID of the Google Cloud Platform project that the job * belongs to. */ - projectId: string; + projectId?: string; } /** * Job scheduling options. @@ -665,7 +667,7 @@ export namespace dataproc_v1 { * failed.A job may be reported as thrashing if driver exits with non-zero * code 4 times within 10 minute window.Maximum value is 10. */ - maxFailuresPerHour: number; + maxFailuresPerHour?: number; } /** * Cloud Dataproc job status. @@ -675,20 +677,20 @@ export namespace dataproc_v1 { * Output only. Optional job state details, such as an error description if * the state is <code>ERROR</code>. */ - details: string; + details?: string; /** * Output only. A state message specifying the overall job state. */ - state: string; + state?: string; /** * Output only. The time when this state was entered. */ - stateStartTime: string; + stateStartTime?: string; /** * Output only. Additional state information, which includes status reported * by the agent. */ - substate: string; + substate?: string; } /** * The list of all clusters in a project. @@ -697,13 +699,13 @@ export namespace dataproc_v1 { /** * Output only. The clusters in the project. */ - clusters: Schema$Cluster[]; + clusters?: Schema$Cluster[]; /** * Output only. This token is included in the response if there are more * results to fetch. To fetch additional results, provide this value as the * page_token in a subsequent ListClustersRequest. */ - nextPageToken: string; + nextPageToken?: string; } /** * A list of jobs in a project. @@ -712,13 +714,13 @@ export namespace dataproc_v1 { /** * Output only. Jobs list. */ - jobs: Schema$Job[]; + jobs?: Schema$Job[]; /** * Optional. This token is included in the response if there are more * results to fetch. To fetch additional results, provide this value as the * page_token in a subsequent <code>ListJobsRequest</code>. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -727,11 +729,11 @@ export namespace dataproc_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * The runtime logging config of the job. @@ -743,7 +745,7 @@ export namespace dataproc_v1 { * 'com.google = FATAL', 'root = INFO', 'org.apache = * DEBUG' */ - driverLogLevels: any; + driverLogLevels?: any; } /** * Specifies the resources used to actively manage an instance group. @@ -752,12 +754,12 @@ export namespace dataproc_v1 { /** * Output only. The name of the Instance Group Manager for this group. */ - instanceGroupManagerName: string; + instanceGroupManagerName?: string; /** * Output only. The name of the Instance Template used for the Managed * Instance Group. */ - instanceTemplateName: string; + instanceTemplateName?: string; } /** * Specifies an executable to run on a fully configured node and a timeout @@ -767,14 +769,14 @@ export namespace dataproc_v1 { /** * Required. Cloud Storage URI of executable file. */ - executableFile: string; + executableFile?: string; /** * Optional. Amount of time executable has to complete. Default is 10 * minutes. Cluster creation fails with an explanatory error message (the * name of the executable that caused the error and the exceeded timeout * period) if the executable is not completed at end of the timeout period. */ - executionTimeout: string; + executionTimeout?: string; } /** * This resource represents a long-running operation that is the result of a @@ -786,24 +788,24 @@ export namespace dataproc_v1 { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -813,7 +815,7 @@ export namespace dataproc_v1 { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) @@ -825,36 +827,36 @@ export namespace dataproc_v1 { * default value is false. Setting to true can be useful when executing * independent parallel queries. */ - continueOnFailure: boolean; + continueOnFailure?: boolean; /** * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig * Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * Optional. A mapping of property names to values, used to configure Pig. * Properties that conflict with values set by the Cloud Dataproc API may be * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, * /etc/pig/conf/pig.properties, and classes in user code. */ - properties: any; + properties?: any; /** * The HCFS URI of the script that contains the Pig queries. */ - queryFileUri: string; + queryFileUri?: string; /** * A list of queries. */ - queryList: Schema$QueryList; + queryList?: Schema$QueryList; /** * Optional. Mapping of query variable names to values (equivalent to the * Pig command: name=[value]). */ - scriptVariables: any; + scriptVariables?: any; } /** * A Cloud Dataproc job for running Apache PySpark @@ -866,44 +868,44 @@ export namespace dataproc_v1 { * Optional. HCFS URIs of archives to be extracted in the working directory * of .jar, .tar, .tar.gz, .tgz, and .zip. */ - archiveUris: string[]; + archiveUris?: string[]; /** * Optional. The arguments to pass to the driver. Do not include arguments, * such as --conf, that can be set as job properties, since a collision may * occur that causes an incorrect job submission. */ - args: string[]; + args?: string[]; /** * Optional. HCFS URIs of files to be copied to the working directory of * Python drivers and distributed tasks. Useful for naively parallel tasks. */ - fileUris: string[]; + fileUris?: string[]; /** * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python * driver and tasks. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * Required. The HCFS URI of the main Python file to use as the driver. Must * be a .py file. */ - mainPythonFileUri: string; + mainPythonFileUri?: string; /** * Optional. A mapping of property names to values, used to configure * PySpark. Properties that conflict with values set by the Cloud Dataproc * API may be overwritten. Can include properties set in * /etc/spark/conf/spark-defaults.conf and classes in user code. */ - properties: any; + properties?: any; /** * Optional. HCFS file URIs of Python files to pass to the PySpark * framework. Supported file types: .py, .egg, and .zip. */ - pythonFileUris: string[]; + pythonFileUris?: string[]; } /** * A list of queries to run on a cluster. @@ -918,7 +920,7 @@ export namespace dataproc_v1 { * "query1", "query2", "query3;query4", * ] } } */ - queries: string[]; + queries?: string[]; } /** * Specifies the selection and config of software inside the cluster. @@ -931,7 +933,7 @@ export namespace dataproc_v1 { * "preview" version. If unspecified, it defaults to the latest * version. */ - imageVersion: string; + imageVersion?: string; /** * Optional. The properties to set on daemon config files.Property keys are * specified in prefix:property format, such as core:fs.defaultFS. The @@ -941,7 +943,7 @@ export namespace dataproc_v1 { * pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more * information, see Cluster properties. */ - properties: any; + properties?: any; } /** * A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) @@ -953,43 +955,43 @@ export namespace dataproc_v1 { * of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, * .tgz, and .zip. */ - archiveUris: string[]; + archiveUris?: string[]; /** * Optional. The arguments to pass to the driver. Do not include arguments, * such as --conf, that can be set as job properties, since a collision may * occur that causes an incorrect job submission. */ - args: string[]; + args?: string[]; /** * Optional. HCFS URIs of files to be copied to the working directory of * Spark drivers and distributed tasks. Useful for naively parallel tasks. */ - fileUris: string[]; + fileUris?: string[]; /** * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark * driver and tasks. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * The name of the driver's main class. The jar file that contains the * class must be in the default CLASSPATH or specified in jar_file_uris. */ - mainClass: string; + mainClass?: string; /** * The HCFS URI of the jar file that contains the main class. */ - mainJarFileUri: string; + mainJarFileUri?: string; /** * Optional. A mapping of property names to values, used to configure Spark. * Properties that conflict with values set by the Cloud Dataproc API may be * overwritten. Can include properties set in * /etc/spark/conf/spark-defaults.conf and classes in user code. */ - properties: any; + properties?: any; } /** * A Cloud Dataproc job for running Apache Spark SQL @@ -999,30 +1001,30 @@ export namespace dataproc_v1 { /** * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * Optional. A mapping of property names to values, used to configure Spark * SQL's SparkConf. Properties that conflict with values set by the * Cloud Dataproc API may be overwritten. */ - properties: any; + properties?: any; /** * The HCFS URI of the script that contains SQL queries. */ - queryFileUri: string; + queryFileUri?: string; /** * A list of queries. */ - queryList: Schema$QueryList; + queryList?: Schema$QueryList; /** * Optional. Mapping of query variable names to values (equivalent to the * Spark SQL command: SET name="value";). */ - scriptVariables: any; + scriptVariables?: any; } /** * The Status type defines a logical error model that is suitable for @@ -1063,18 +1065,18 @@ export namespace dataproc_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A request to submit a job. @@ -1083,7 +1085,7 @@ export namespace dataproc_v1 { /** * Required. The job resource. */ - job: Schema$Job; + job?: Schema$Job; /** * Optional. A unique id used to identify the request. If the server * receives two SubmitJobRequest requests with the same id, then the second @@ -1093,7 +1095,7 @@ export namespace dataproc_v1 { * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and * hyphens (-). The maximum length is 40 characters. */ - requestId: string; + requestId?: string; } /** * A YARN application created by a job. Application information is a subset of @@ -1105,24 +1107,25 @@ export namespace dataproc_v1 { /** * Required. The application name. */ - name: string; + name?: string; /** * Required. The numerical progress of the application, from 1 to 100. */ - progress: number; + progress?: number; /** * Required. The application state. */ - state: string; + state?: string; /** * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or * TimelineServer that provides application-specific information. The URL * uses the internal hostname, and requires a proxy server for resolution * and, possibly, access. */ - trackingUrl: string; + trackingUrl?: string; } + export class Resource$Projects { root: Dataproc; regions: Resource$Projects$Regions; @@ -1136,6 +1139,8 @@ export namespace dataproc_v1 { return this.root; } } + + export class Resource$Projects$Regions { root: Dataproc; clusters: Resource$Projects$Regions$Clusters; @@ -1153,6 +1158,8 @@ export namespace dataproc_v1 { return this.root; } } + + export class Resource$Projects$Regions$Clusters { root: Dataproc; constructor(root: Dataproc) { @@ -1239,26 +1246,39 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Regions$Clusters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Regions$Clusters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1356,26 +1376,39 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Regions$Clusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Clusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1478,26 +1511,39 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - diagnose(params?: any, options?: MethodOptions): - AxiosPromise; diagnose( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Diagnose, + options?: MethodOptions): AxiosPromise; + diagnose( + params: Params$Resource$Projects$Regions$Clusters$Diagnose, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + diagnose( + params: Params$Resource$Projects$Regions$Clusters$Diagnose, + callback: BodyResponseCallback): void; + diagnose(callback: BodyResponseCallback): void; diagnose( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Diagnose| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Diagnose; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Diagnose; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1594,23 +1640,34 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Regions$Clusters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Regions$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1721,28 +1778,40 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Regions$Clusters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Regions$Clusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Regions$Clusters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1848,26 +1917,39 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Clusters$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Regions$Clusters$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1892,6 +1974,224 @@ export namespace dataproc_v1 { } } + export interface Params$Resource$Projects$Regions$Clusters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Optional. A unique id used to identify the request. If the server + * receives two CreateClusterRequest requests with the same id, then the + * second request will be ignored and the first google.longrunning.Operation + * created and stored in the backend is returned.It is recommended to always + * set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + * hyphens (-). The maximum length is 40 characters. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Cluster; + } + export interface Params$Resource$Projects$Regions$Clusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Optional. Specifying the cluster_uuid means the RPC should fail (with + * error NOT_FOUND) if cluster with specified UUID does not exist. + */ + clusterUuid?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Optional. A unique id used to identify the request. If the server + * receives two DeleteClusterRequest requests with the same id, then the + * second request will be ignored and the first google.longrunning.Operation + * created and stored in the backend is returned.It is recommended to always + * set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + * hyphens (-). The maximum length is 40 characters. + */ + requestId?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$Diagnose { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$DiagnoseClusterRequest; + } + export interface Params$Resource$Projects$Regions$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. A filter constraining the clusters to list. Filters are + * case-sensitive and have the following syntax:field = value AND field = + * value ...where field is one of status.state, clusterName, or + * labels.[KEY], and [KEY] is a label key. value can be * to match all + * values. status.state can be one of the following: ACTIVE, INACTIVE, + * CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the + * CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING + * and ERROR states. clusterName is the name of the cluster provided at + * creation time. Only the logical AND operator is supported; + * space-separated items are treated as having an implicit AND + * operator.Example filter:status.state = ACTIVE AND clusterName = mycluster + * AND labels.env = staging AND labels.starred = * + */ + filter?: string; + /** + * Optional. The standard List page size. + */ + pageSize?: number; + /** + * Optional. The standard List page token. + */ + pageToken?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Optional. Timeout for graceful YARN decomissioning. Graceful + * decommissioning allows removing nodes from the cluster without + * interrupting jobs in progress. Timeout specifies how long to wait for + * jobs in progress to finish before forcefully removing nodes (and + * potentially interrupting jobs). Default timeout is 0 (for forceful + * decommission), and the maximum allowed timeout is 1 day.Only supported on + * Dataproc image versions 1.2 and higher. + */ + gracefulDecommissionTimeout?: string; + /** + * Required. The ID of the Google Cloud Platform project the cluster belongs + * to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Optional. A unique id used to identify the request. If the server + * receives two UpdateClusterRequest requests with the same id, then the + * second request will be ignored and the first google.longrunning.Operation + * created and stored in the backend is returned.It is recommended to always + * set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + * hyphens (-). The maximum length is 40 characters. + */ + requestId?: string; + /** + * Required. Specifies the path, relative to Cluster, of the field to + * update. For example, to change the number of workers in a cluster to 5, + * the update_mask parameter would be specified as + * config.worker_config.num_instances, and the PATCH request body would + * specify the new value, as follows: { "config":{ "workerConfig":{ + * "numInstances":"5" } } } Similarly, to change the number of + * preemptible workers in a cluster to 5, the update_mask parameter would be + * config.secondary_worker_config.num_instances, and the PATCH request body + * would be set as follows: { "config":{ "secondaryWorkerConfig":{ + * "numInstances":"5" } } } Note: Currently, only the + * following fields can be updated: + * + * + * + * + * + * + *
Mask Purpose
labels Update labels
config.worker_config.num_instancesResize primary worker group
config.secondary_worker_config.num_instancesResize secondary worker group
+ */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Cluster; + } + + export class Resource$Projects$Regions$Jobs { root: Dataproc; constructor(root: Dataproc) { @@ -1983,23 +2283,38 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Regions$Jobs$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2096,25 +2411,38 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Regions$Jobs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2212,21 +2540,34 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Regions$Jobs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Regions$Jobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Regions$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2338,26 +2679,39 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Regions$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2462,23 +2816,38 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Regions$Jobs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2575,23 +2944,38 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - submit(params?: any, options?: MethodOptions): AxiosPromise; submit( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Submit, + options?: MethodOptions): AxiosPromise; + submit( + params: Params$Resource$Projects$Regions$Jobs$Submit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + submit( + params: Params$Resource$Projects$Regions$Jobs$Submit, + callback: BodyResponseCallback): void; + submit(callback: BodyResponseCallback): void; submit( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Submit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Submit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Submit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2615,6 +2999,171 @@ export namespace dataproc_v1 { } } + export interface Params$Resource$Projects$Regions$Jobs$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelJobRequest; + } + export interface Params$Resource$Projects$Regions$Jobs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. If set, the returned jobs list includes only jobs that were + * submitted to the named cluster. + */ + clusterName?: string; + /** + * Optional. A filter constraining the jobs to list. Filters are + * case-sensitive and have the following syntax:field = value AND field = + * value ...where field is status.state or labels.[KEY], and [KEY] is a + * label key. value can be * to match all values. status.state can be either + * ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; + * space-separated items are treated as having an implicit AND + * operator.Example filter:status.state = ACTIVE AND labels.env = staging + * AND labels.starred = * + */ + filter?: string; + /** + * Optional. Specifies enumerated categories of jobs to list. (default = + * match ALL jobs).If filter is provided, jobStateMatcher will be ignored. + */ + jobStateMatcher?: string; + /** + * Optional. The number of results to return in each response. + */ + pageSize?: number; + /** + * Optional. The page token, returned by a previous call, to request the + * next page of results. + */ + pageToken?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Required. Specifies the path, relative to Job, of the field + * to update. For example, to update the labels of a Job the + * update_mask parameter would be specified as + * labels, and the PATCH request body would specify the new + * value. Note: Currently, labels is the only + * field that can be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export interface Params$Resource$Projects$Regions$Jobs$Submit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$SubmitJobRequest; + } + + export class Resource$Projects$Regions$Operations { root: Dataproc; constructor(root: Dataproc) { @@ -2699,25 +3248,38 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Regions$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Regions$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2807,25 +3369,38 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Operations$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Regions$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Regions$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2914,23 +3489,35 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Regions$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Regions$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Regions$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3043,28 +3630,40 @@ export namespace dataproc_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Regions$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Regions$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Regions$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Regions$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3085,4 +3684,61 @@ export namespace dataproc_v1 { } } } + + export interface Params$Resource$Projects$Regions$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Projects$Regions$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Regions$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Regions$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index 59f807e54a8..3161e296199 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dataproc_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Cloud Dataproc API * @@ -74,7 +77,7 @@ export namespace dataproc_v1beta2 { * The number of the accelerator cards of this type exposed to this * instance. */ - acceleratorCount: number; + acceleratorCount?: number; /** * Full URL, partial URI, or short name of the accelerator type resource to * expose to this instance. See Compute Engine AcceleratorTypes( @@ -86,7 +89,7 @@ export namespace dataproc_v1beta2 { * Dataproc Auto Zone Placement feature, you must use the short name of the * accelerator type resource, for example, nvidia-tesla-k80. */ - acceleratorTypeUri: string; + acceleratorTypeUri?: string; } /** * Associates members with a role. @@ -99,20 +102,19 @@ export namespace dataproc_v1beta2 { * 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. + * account. For example, alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to members. For example, roles/viewer, * roles/editor, or roles/owner. Required */ - role: string; + role?: string; } /** * A request to cancel a job. @@ -127,17 +129,17 @@ export namespace dataproc_v1beta2 { * Required. The cluster name. Cluster names within a project must be * unique. Names of deleted clusters can be reused. */ - clusterName: string; + clusterName?: string; /** * Output only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc * generates this value when it creates the cluster. */ - clusterUuid: string; + clusterUuid?: string; /** * Required. The cluster config. Note that Cloud Dataproc may set default * values, and values may change when clusters are updated. */ - config: Schema$ClusterConfig; + config?: Schema$ClusterConfig; /** * Optional. The labels to associate with this cluster. Label keys must * contain 1 to 63 characters, and must conform to RFC 1035 @@ -146,26 +148,26 @@ export namespace dataproc_v1beta2 { * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be * associated with a cluster. */ - labels: any; + labels?: any; /** * Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: * This report is available for testing purposes only. It may be changed * before final release. */ - metrics: Schema$ClusterMetrics; + metrics?: Schema$ClusterMetrics; /** * Required. The Google Cloud Platform project ID that the cluster belongs * to. */ - projectId: string; + projectId?: string; /** * Output only. Cluster status. */ - status: Schema$ClusterStatus; + status?: Schema$ClusterStatus; /** * Output only. The previous cluster status. */ - statusHistory: Schema$ClusterStatus[]; + statusHistory?: Schema$ClusterStatus[]; } /** * The cluster config. @@ -179,12 +181,12 @@ export namespace dataproc_v1beta2 { * Engine zone where your cluster is deployed, and then it will create and * manage this project-level, per-location bucket for you. */ - configBucket: string; + configBucket?: string; /** * Required. The shared Compute Engine config settings for all instances in * a cluster. */ - gceClusterConfig: Schema$GceClusterConfig; + gceClusterConfig?: Schema$GceClusterConfig; /** * Optional. Commands to execute on each node after config is completed. By * default, executables are run on master and all worker nodes. You can test @@ -195,30 +197,30 @@ export namespace dataproc_v1beta2 { * if [[ "${ROLE}" == 'Master' ]]; then ... master * specific actions ... else ... worker specific actions ... fi */ - initializationActions: Schema$NodeInitializationAction[]; + initializationActions?: Schema$NodeInitializationAction[]; /** * Optional. The config setting for auto delete cluster schedule. */ - lifecycleConfig: Schema$LifecycleConfig; + lifecycleConfig?: Schema$LifecycleConfig; /** * Optional. The Compute Engine config settings for the master instance in a * cluster. */ - masterConfig: Schema$InstanceGroupConfig; + masterConfig?: Schema$InstanceGroupConfig; /** * Optional. The Compute Engine config settings for additional worker * instances in a cluster. */ - secondaryWorkerConfig: Schema$InstanceGroupConfig; + secondaryWorkerConfig?: Schema$InstanceGroupConfig; /** * Optional. The config settings for software inside the cluster. */ - softwareConfig: Schema$SoftwareConfig; + softwareConfig?: Schema$SoftwareConfig; /** * Optional. The Compute Engine config settings for worker instances in a * cluster. */ - workerConfig: Schema$InstanceGroupConfig; + workerConfig?: Schema$InstanceGroupConfig; } /** * Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: @@ -229,11 +231,11 @@ export namespace dataproc_v1beta2 { /** * The HDFS metrics. */ - hdfsMetrics: any; + hdfsMetrics?: any; /** * The YARN metrics. */ - yarnMetrics: any; + yarnMetrics?: any; } /** * The cluster operation triggered by a workflow. @@ -242,15 +244,15 @@ export namespace dataproc_v1beta2 { /** * Output only. Indicates the operation is done. */ - done: boolean; + done?: boolean; /** * Output only. Error, if operation failed. */ - error: string; + error?: string; /** * Output only. The id of the cluster operation. */ - operationId: string; + operationId?: string; } /** * Metadata describing the operation. @@ -259,35 +261,35 @@ export namespace dataproc_v1beta2 { /** * Output only. Name of the cluster for the operation. */ - clusterName: string; + clusterName?: string; /** * Output only. Cluster UUID for the operation. */ - clusterUuid: string; + clusterUuid?: string; /** * Output only. Short description of operation. */ - description: string; + description?: string; /** * Output only. Labels associated with the operation */ - labels: any; + labels?: any; /** * Output only. The operation type. */ - operationType: string; + operationType?: string; /** * Output only. Current operation status. */ - status: Schema$ClusterOperationStatus; + status?: Schema$ClusterOperationStatus; /** * Output only. The previous operation status. */ - statusHistory: Schema$ClusterOperationStatus[]; + statusHistory?: Schema$ClusterOperationStatus[]; /** * Output only. Errors encountered during operation execution. */ - warnings: string[]; + warnings?: string[]; } /** * The status of the operation. @@ -296,19 +298,19 @@ export namespace dataproc_v1beta2 { /** * Output only. A message containing any operation metadata details. */ - details: string; + details?: string; /** * Output only. A message containing the detailed operation state. */ - innerState: string; + innerState?: string; /** * Output only. A message containing the operation state. */ - state: string; + state?: string; /** * Output only. The time this state was entered. */ - stateStartTime: string; + stateStartTime?: string; } /** * A selector that chooses target cluster for jobs based on metadata. @@ -317,13 +319,13 @@ export namespace dataproc_v1beta2 { /** * Required. The cluster labels. Cluster must have all labels to match. */ - clusterLabels: any; + clusterLabels?: any; /** * Optional. The zone where workflow process executes. This parameter does * not affect the selection of the cluster.If unspecified, the zone of the * first cluster matching the selector is used. */ - zone: string; + zone?: string; } /** * The status of a cluster and its instances. @@ -332,20 +334,20 @@ export namespace dataproc_v1beta2 { /** * Output only. Optional details of cluster's state. */ - detail: string; + detail?: string; /** * Output only. The cluster's state. */ - state: string; + state?: string; /** * Output only. Time when this state was entered. */ - stateStartTime: string; + stateStartTime?: string; /** * Output only. Additional state information that includes status reported * by the agent. */ - substate: string; + substate?: string; } /** * A request to collect cluster diagnostic information. @@ -359,7 +361,7 @@ export namespace dataproc_v1beta2 { * 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; + outputUri?: string; } /** * Specifies the config of disk options for a group of VM instances. @@ -368,13 +370,13 @@ export namespace dataproc_v1beta2 { /** * Optional. Size in GB of the boot disk (default is 500GB). */ - bootDiskSizeGb: number; + bootDiskSizeGb?: number; /** * Optional. Type of the boot disk (default is "pd-standard"). * Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or * "pd-standard" (Persistent Disk Hard Disk Drive). */ - bootDiskType: string; + bootDiskType?: string; /** * Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs * are not attached, the boot disk is used to store runtime logs and HDFS @@ -382,7 +384,7 @@ export namespace dataproc_v1beta2 { * or more SSDs are attached, this runtime bulk data is spread across them, * and the boot disk contains only basic config and installed binaries. */ - numLocalSsds: number; + numLocalSsds?: number; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -405,13 +407,13 @@ export namespace dataproc_v1beta2 { * subnetwork enabled networks, and all off-cluster dependencies must be * configured to be accessible without external IP addresses. */ - internalIpOnly: boolean; + internalIpOnly?: boolean; /** * The Compute Engine metadata entries to add to all instances (see Project * and instance metadata * (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). */ - metadata: any; + metadata?: any; /** * Optional. The Compute Engine network to be used for machine * communications. Cannot be specified with subnetwork_uri. If neither @@ -422,7 +424,7 @@ export namespace dataproc_v1beta2 { * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default * projects/[project_id]/regions/global/default default */ - networkUri: string; + networkUri?: string; /** * Optional. The service account of the instances. Defaults to the default * Compute Engine service account. Custom service accounts need permissions @@ -432,7 +434,7 @@ export namespace dataproc_v1beta2 { * for more information). Example: * [account_id]@[project_id].iam.gserviceaccount.com */ - serviceAccount: string; + serviceAccount?: string; /** * Optional. The URIs of service account scopes to be included in Compute * Engine instances. The following base set of scopes is always included: @@ -445,7 +447,7 @@ export namespace dataproc_v1beta2 { * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control */ - serviceAccountScopes: string[]; + serviceAccountScopes?: string[]; /** * Optional. The Compute Engine subnetwork to be used for machine * communications. Cannot be specified with network_uri.A full URL, partial @@ -453,11 +455,11 @@ export namespace dataproc_v1beta2 { * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0 * projects/[project_id]/regions/us-east1/sub0 sub0 */ - subnetworkUri: string; + subnetworkUri?: string; /** * The Compute Engine tags to add to all instances (see Tagging instances). */ - tags: string[]; + tags?: string[]; /** * Optional. The zone where the Compute Engine cluster will be located. On a * create request, it is required in the "global" region. If @@ -468,8 +470,12 @@ export namespace dataproc_v1beta2 { * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] * projects/[project_id]/zones/[zone] us-central1-f */ - zoneUri: string; + zoneUri?: string; } + /** + * Request message for GetIamPolicy method. + */ + export interface Schema$GetIamPolicyRequest {} /** * A Cloud Dataproc job for running Apache Hadoop MapReduce * (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) @@ -482,47 +488,47 @@ export namespace dataproc_v1beta2 { * of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, * .tgz, or .zip. */ - archiveUris: string[]; + archiveUris?: string[]; /** * Optional. The arguments to pass to the driver. Do not include arguments, * such as -libjars or -Dfoo=bar, that can be set as job properties, since a * collision may occur that causes an incorrect job submission. */ - args: string[]; + args?: string[]; /** * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied * to the working directory of Hadoop drivers and distributed tasks. Useful * for naively parallel tasks. */ - fileUris: string[]; + fileUris?: string[]; /** * Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and * tasks. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * The name of the driver's main class. The jar file containing the * class must be in the default CLASSPATH or specified in jar_file_uris. */ - mainClass: string; + mainClass?: string; /** * The HCFS URI of the jar file containing the main class. Examples: * 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' * 'hdfs:/tmp/test-samples/custom-wordcount.jar' * 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' */ - mainJarFileUri: string; + mainJarFileUri?: string; /** * Optional. A mapping of property names to values, used to configure * Hadoop. Properties that conflict with values set by the Cloud Dataproc * API may be overwritten. Can include properties set in * /etc/hadoop/conf/*-site and classes in user code. */ - properties: any; + properties?: any; } /** * A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) @@ -534,32 +540,32 @@ export namespace dataproc_v1beta2 { * default value is false. Setting to true can be useful when executing * independent parallel queries. */ - continueOnFailure: boolean; + continueOnFailure?: boolean; /** * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive * server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. A mapping of property names and values, used to configure Hive. * Properties that conflict with values set by the Cloud Dataproc API may be * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, * /etc/hive/conf/hive-site.xml, and classes in user code. */ - properties: any; + properties?: any; /** * The HCFS URI of the script that contains Hive queries. */ - queryFileUri: string; + queryFileUri?: string; /** * A list of queries. */ - queryList: Schema$QueryList; + queryList?: Schema$QueryList; /** * Optional. Mapping of query variable names to values (equivalent to the * Hive command: SET name="value";). */ - scriptVariables: any; + scriptVariables?: any; } /** * Optional. The config settings for Compute Engine resources in an instance @@ -571,27 +577,27 @@ export namespace dataproc_v1beta2 { * instances.Beta Feature: This feature is still under development. It may * be changed before final release. */ - accelerators: Schema$AcceleratorConfig[]; + accelerators?: Schema$AcceleratorConfig[]; /** * Optional. Disk option config settings. */ - diskConfig: Schema$DiskConfig; + diskConfig?: Schema$DiskConfig; /** * Output only. The Compute Engine image resource used for cluster * instances. Inferred from SoftwareConfig.image_version. */ - imageUri: string; + imageUri?: string; /** * Optional. The list of instance names. Cloud Dataproc derives the names * from cluster_name, num_instances, and the instance group if not set by * user (recommended practice is to let Cloud Dataproc derive the name). */ - instanceNames: string[]; + instanceNames?: string[]; /** * Optional. Specifies that this instance group contains preemptible * instances. */ - isPreemptible: boolean; + isPreemptible?: boolean; /** * Optional. The Compute Engine machine type used for cluster instances.A * full URL, partial URI, or short name are valid. Examples: @@ -601,22 +607,22 @@ export namespace dataproc_v1beta2 { * Auto Zone Placement feature, you must use the short name of the machine * type resource, for example, n1-standard-2. */ - machineTypeUri: string; + machineTypeUri?: string; /** * Output only. The config for Compute Engine Instance Group Manager that * manages this group. This is only used for preemptible instance groups. */ - managedGroupConfig: Schema$ManagedGroupConfig; + managedGroupConfig?: Schema$ManagedGroupConfig; /** * Optional. Specifies the minimum cpu platform for the Instance Group. See * Cloud Dataproc&rarr;Minimum CPU Platform. */ - minCpuPlatform: string; + minCpuPlatform?: string; /** * Optional. The number of VM instances in the instance group. For master * instance groups, must be set to 1. */ - numInstances: number; + numInstances?: number; } /** * A request to instantiate a workflow template. @@ -630,14 +636,14 @@ export namespace dataproc_v1beta2 { * tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), * and hyphens (-). The maximum length is 40 characters. */ - instanceId: string; + instanceId?: string; /** * Optional. The version of workflow template to instantiate. If specified, * the workflow will be instantiated only if the current version of the * workflow template has the supplied version.This option cannot be used to * instantiate a previous version of workflow template. */ - version: number; + version?: number; } /** * A Cloud Dataproc job resource. @@ -648,20 +654,20 @@ export namespace dataproc_v1beta2 { * which may be used as part of job setup and handling. If not present, * control files may be placed in the same location as driver_output_uri. */ - driverControlFilesUri: string; + driverControlFilesUri?: string; /** * Output only. A URI pointing to the location of the stdout of the * job's driver program. */ - driverOutputResourceUri: string; + driverOutputResourceUri?: string; /** * Job is a Hadoop job. */ - hadoopJob: Schema$HadoopJob; + hadoopJob?: Schema$HadoopJob; /** * Job is a Hive job. */ - hiveJob: Schema$HiveJob; + hiveJob?: Schema$HiveJob; /** * Optional. The labels to associate with this job. Label keys must contain * 1 to 63 characters, and must conform to RFC 1035 @@ -670,54 +676,54 @@ export namespace dataproc_v1beta2 { * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be * associated with a job. */ - labels: any; + labels?: any; /** * Job is a Pig job. */ - pigJob: Schema$PigJob; + pigJob?: Schema$PigJob; /** * Required. Job information, including how, when, and where to run the job. */ - placement: Schema$JobPlacement; + placement?: Schema$JobPlacement; /** * Job is a Pyspark job. */ - pysparkJob: Schema$PySparkJob; + pysparkJob?: Schema$PySparkJob; /** * Optional. The fully qualified reference to the job, which can be used to * obtain the equivalent REST path of the job resource. If this property is * not specified when a job is created, the server generates a * <code>job_id</code>. */ - reference: Schema$JobReference; + reference?: Schema$JobReference; /** * Optional. Job scheduling configuration. */ - scheduling: Schema$JobScheduling; + scheduling?: Schema$JobScheduling; /** * Job is a Spark job. */ - sparkJob: Schema$SparkJob; + sparkJob?: Schema$SparkJob; /** * Job is a SparkSql job. */ - sparkSqlJob: Schema$SparkSqlJob; + sparkSqlJob?: Schema$SparkSqlJob; /** * Output only. The job status. Additional application-specific status * information may be contained in the <code>type_job</code> and * <code>yarn_applications</code> fields. */ - status: Schema$JobStatus; + status?: Schema$JobStatus; /** * Output only. The previous job status. */ - statusHistory: Schema$JobStatus[]; + statusHistory?: Schema$JobStatus[]; /** * Output only. The collection of YARN applications spun up by this job.Beta * Feature: This report is available for testing purposes only. It may be * changed before final release. */ - yarnApplications: Schema$YarnApplication[]; + yarnApplications?: Schema$YarnApplication[]; } /** * Cloud Dataproc job config. @@ -726,12 +732,12 @@ export namespace dataproc_v1beta2 { /** * Required. The name of the cluster where the job will be submitted. */ - clusterName: string; + clusterName?: string; /** * Output only. A cluster UUID generated by the Cloud Dataproc service when * the job is submitted. */ - clusterUuid: string; + clusterUuid?: string; } /** * Encapsulates the full scoping used to reference a job. @@ -744,12 +750,12 @@ export namespace dataproc_v1beta2 { * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or * hyphens (-). The maximum length is 100 characters. */ - jobId: string; + jobId?: string; /** * Required. The ID of the Google Cloud Platform project that the job * belongs to. */ - projectId: string; + projectId?: string; } /** * Job scheduling options. @@ -761,7 +767,7 @@ export namespace dataproc_v1beta2 { * failed.A job may be reported as thrashing if driver exits with non-zero * code 4 times within 10 minute window.Maximum value is 10. */ - maxFailuresPerHour: number; + maxFailuresPerHour?: number; } /** * Cloud Dataproc job status. @@ -771,20 +777,20 @@ export namespace dataproc_v1beta2 { * Output only. Optional job state details, such as an error description if * the state is <code>ERROR</code>. */ - details: string; + details?: string; /** * Output only. A state message specifying the overall job state. */ - state: string; + state?: string; /** * Output only. The time when this state was entered. */ - stateStartTime: string; + stateStartTime?: string; /** * Output only. Additional state information, which includes status reported * by the agent. */ - substate: string; + substate?: string; } /** * Specifies the cluster auto delete related schedule configuration. @@ -793,18 +799,18 @@ export namespace dataproc_v1beta2 { /** * Optional. The time when cluster will be auto-deleted. */ - autoDeleteTime: string; + autoDeleteTime?: string; /** * Optional. The life duration of cluster, the cluster will be auto-deleted * at the end of this duration. */ - autoDeleteTtl: string; + autoDeleteTtl?: string; /** * Optional. The longest duration that cluster would keep alive while * staying idle; passing this threshold will cause cluster to be * auto-deleted. */ - idleDeleteTtl: string; + idleDeleteTtl?: string; } /** * The list of all clusters in a project. @@ -813,13 +819,13 @@ export namespace dataproc_v1beta2 { /** * Output only. The clusters in the project. */ - clusters: Schema$Cluster[]; + clusters?: Schema$Cluster[]; /** * Output only. This token is included in the response if there are more * results to fetch. To fetch additional results, provide this value as the * page_token in a subsequent <code>ListClustersRequest</code>. */ - nextPageToken: string; + nextPageToken?: string; } /** * A list of jobs in a project. @@ -828,13 +834,13 @@ export namespace dataproc_v1beta2 { /** * Output only. Jobs list. */ - jobs: Schema$Job[]; + jobs?: Schema$Job[]; /** * Optional. This token is included in the response if there are more * results to fetch. To fetch additional results, provide this value as the * page_token in a subsequent <code>ListJobsRequest</code>. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -843,11 +849,11 @@ export namespace dataproc_v1beta2 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * A response to a request to list workflow templates in a project. @@ -859,11 +865,11 @@ export namespace dataproc_v1beta2 { * page_token in a subsequent * <code>ListWorkflowTemplatesRequest</code>. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. WorkflowTemplates list. */ - templates: Schema$WorkflowTemplate[]; + templates?: Schema$WorkflowTemplate[]; } /** * The runtime logging config of the job. @@ -875,7 +881,7 @@ export namespace dataproc_v1beta2 { * 'com.google = FATAL', 'root = INFO', 'org.apache = * DEBUG' */ - driverLogLevels: any; + driverLogLevels?: any; } /** * Cluster that is managed by the workflow. @@ -888,11 +894,11 @@ export namespace dataproc_v1beta2 { * Cannot begin or end with hyphen. Must consist of between 2 and 35 * characters. */ - clusterName: string; + clusterName?: string; /** * Required. The cluster configuration. */ - config: Schema$ClusterConfig; + config?: Schema$ClusterConfig; /** * Optional. The labels to associate with this cluster.Label keys must be * between 1 and 63 characters long, and must conform to the following PCRE @@ -901,7 +907,7 @@ export namespace dataproc_v1beta2 { * expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be * associated with a given cluster. */ - labels: any; + labels?: any; } /** * Specifies the resources used to actively manage an instance group. @@ -910,12 +916,12 @@ export namespace dataproc_v1beta2 { /** * Output only. The name of the Instance Group Manager for this group. */ - instanceGroupManagerName: string; + instanceGroupManagerName?: string; /** * Output only. The name of the Instance Template used for the Managed * Instance Group. */ - instanceTemplateName: string; + instanceTemplateName?: string; } /** * Specifies an executable to run on a fully configured node and a timeout @@ -925,14 +931,14 @@ export namespace dataproc_v1beta2 { /** * Required. Cloud Storage URI of executable file. */ - executableFile: string; + executableFile?: string; /** * Optional. Amount of time executable has to complete. Default is 10 * minutes. Cluster creation fails with an explanatory error message (the * name of the executable that caused the error and the exceeded timeout * period) if the executable is not completed at end of the timeout period. */ - executionTimeout: string; + executionTimeout?: string; } /** * This resource represents a long-running operation that is the result of a @@ -944,24 +950,24 @@ export namespace dataproc_v1beta2 { * true, the operation is completed, and either error or response is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the name * should have the format of operations/some/unique/name. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as Delete, the response is @@ -971,7 +977,7 @@ export namespace dataproc_v1beta2 { * original method name. For example, if the original method name is * TakeSnapshot(), the inferred response type is TakeSnapshotResponse. */ - response: any; + response?: any; } /** * A job executed by the workflow. @@ -980,11 +986,11 @@ export namespace dataproc_v1beta2 { /** * Job is a Hadoop job. */ - hadoopJob: Schema$HadoopJob; + hadoopJob?: Schema$HadoopJob; /** * Job is a Hive job. */ - hiveJob: Schema$HiveJob; + hiveJob?: Schema$HiveJob; /** * Optional. The labels to associate with this job.Label keys must be * between 1 and 63 characters long, and must conform to the following @@ -993,32 +999,32 @@ export namespace dataproc_v1beta2 { * \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a * given job. */ - labels: any; + labels?: any; /** * Job is a Pig job. */ - pigJob: Schema$PigJob; + pigJob?: Schema$PigJob; /** * Optional. The optional list of prerequisite job step_ids. If not * specified, the job will start at the beginning of workflow. */ - prerequisiteStepIds: string[]; + prerequisiteStepIds?: string[]; /** * Job is a Pyspark job. */ - pysparkJob: Schema$PySparkJob; + pysparkJob?: Schema$PySparkJob; /** * Optional. Job scheduling configuration. */ - scheduling: Schema$JobScheduling; + scheduling?: Schema$JobScheduling; /** * Job is a Spark job. */ - sparkJob: Schema$SparkJob; + sparkJob?: Schema$SparkJob; /** * Job is a SparkSql job. */ - sparkSqlJob: Schema$SparkSqlJob; + sparkSqlJob?: Schema$SparkSqlJob; /** * Required. The step id. The id must be unique among all jobs within the * template.The step id is used as prefix for job id, as job @@ -1027,7 +1033,7 @@ export namespace dataproc_v1beta2 { * (0-9), underscores (_), and hyphens (-). Cannot begin or end with * underscore or hyphen. Must consist of between 3 and 50 characters. */ - stepId: string; + stepId?: string; } /** * A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) @@ -1039,36 +1045,36 @@ export namespace dataproc_v1beta2 { * default value is false. Setting to true can be useful when executing * independent parallel queries. */ - continueOnFailure: boolean; + continueOnFailure?: boolean; /** * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig * Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * Optional. A mapping of property names to values, used to configure Pig. * Properties that conflict with values set by the Cloud Dataproc API may be * overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, * /etc/pig/conf/pig.properties, and classes in user code. */ - properties: any; + properties?: any; /** * The HCFS URI of the script that contains the Pig queries. */ - queryFileUri: string; + queryFileUri?: string; /** * A list of queries. */ - queryList: Schema$QueryList; + queryList?: Schema$QueryList; /** * Optional. Mapping of query variable names to values (equivalent to the * Pig command: name=[value]). */ - scriptVariables: any; + scriptVariables?: any; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -1095,7 +1101,7 @@ export namespace dataproc_v1beta2 { * Associates a list of members to a role. bindings with no members will * result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * etag is used for optimistic concurrency control as a way to help prevent * simultaneous updates of a policy from overwriting each other. It is @@ -1107,11 +1113,11 @@ export namespace dataproc_v1beta2 { * policy.If no etag is provided in the call to setIamPolicy, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A Cloud Dataproc job for running Apache PySpark @@ -1123,44 +1129,44 @@ export namespace dataproc_v1beta2 { * Optional. HCFS URIs of archives to be extracted in the working directory * of .jar, .tar, .tar.gz, .tgz, and .zip. */ - archiveUris: string[]; + archiveUris?: string[]; /** * Optional. The arguments to pass to the driver. Do not include arguments, * such as --conf, that can be set as job properties, since a collision may * occur that causes an incorrect job submission. */ - args: string[]; + args?: string[]; /** * Optional. HCFS URIs of files to be copied to the working directory of * Python drivers and distributed tasks. Useful for naively parallel tasks. */ - fileUris: string[]; + fileUris?: string[]; /** * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python * driver and tasks. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * Required. The HCFS URI of the main Python file to use as the driver. Must * be a .py file. */ - mainPythonFileUri: string; + mainPythonFileUri?: string; /** * Optional. A mapping of property names to values, used to configure * PySpark. Properties that conflict with values set by the Cloud Dataproc * API may be overwritten. Can include properties set in * /etc/spark/conf/spark-defaults.conf and classes in user code. */ - properties: any; + properties?: any; /** * Optional. HCFS file URIs of Python files to pass to the PySpark * framework. Supported file types: .py, .egg, and .zip. */ - pythonFileUris: string[]; + pythonFileUris?: string[]; } /** * A list of queries to run on a cluster. @@ -1175,7 +1181,7 @@ export namespace dataproc_v1beta2 { * "query1", "query2", "query3;query4", * ] } } */ - queries: string[]; + queries?: string[]; } /** * Request message for SetIamPolicy method. @@ -1187,7 +1193,7 @@ export namespace dataproc_v1beta2 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * Specifies the selection and config of software inside the cluster. @@ -1200,7 +1206,7 @@ export namespace dataproc_v1beta2 { * "preview" version. If unspecified, it defaults to the latest * version. */ - imageVersion: string; + imageVersion?: string; /** * Optional. The properties to set on daemon config files.Property keys are * specified in prefix:property format, such as core:fs.defaultFS. The @@ -1210,7 +1216,7 @@ export namespace dataproc_v1beta2 { * pig.properties spark: spark-defaults.conf yarn: yarn-site.xmlFor more * information, see Cluster properties. */ - properties: any; + properties?: any; } /** * A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) @@ -1222,43 +1228,43 @@ export namespace dataproc_v1beta2 { * of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, * .tgz, and .zip. */ - archiveUris: string[]; + archiveUris?: string[]; /** * Optional. The arguments to pass to the driver. Do not include arguments, * such as --conf, that can be set as job properties, since a collision may * occur that causes an incorrect job submission. */ - args: string[]; + args?: string[]; /** * Optional. HCFS URIs of files to be copied to the working directory of * Spark drivers and distributed tasks. Useful for naively parallel tasks. */ - fileUris: string[]; + fileUris?: string[]; /** * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark * driver and tasks. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * The name of the driver's main class. The jar file that contains the * class must be in the default CLASSPATH or specified in jar_file_uris. */ - mainClass: string; + mainClass?: string; /** * The HCFS URI of the jar file that contains the main class. */ - mainJarFileUri: string; + mainJarFileUri?: string; /** * Optional. A mapping of property names to values, used to configure Spark. * Properties that conflict with values set by the Cloud Dataproc API may be * overwritten. Can include properties set in * /etc/spark/conf/spark-defaults.conf and classes in user code. */ - properties: any; + properties?: any; } /** * A Cloud Dataproc job for running Apache Spark SQL @@ -1268,30 +1274,30 @@ export namespace dataproc_v1beta2 { /** * Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. */ - jarFileUris: string[]; + jarFileUris?: string[]; /** * Optional. The runtime log config for job execution. */ - loggingConfig: Schema$LoggingConfig; + loggingConfig?: Schema$LoggingConfig; /** * Optional. A mapping of property names to values, used to configure Spark * SQL's SparkConf. Properties that conflict with values set by the * Cloud Dataproc API may be overwritten. */ - properties: any; + properties?: any; /** * The HCFS URI of the script that contains SQL queries. */ - queryFileUri: string; + queryFileUri?: string; /** * A list of queries. */ - queryList: Schema$QueryList; + queryList?: Schema$QueryList; /** * Optional. Mapping of query variable names to values (equivalent to the * Spark SQL command: SET name="value";). */ - scriptVariables: any; + scriptVariables?: any; } /** * The Status type defines a logical error model that is suitable for @@ -1332,18 +1338,18 @@ export namespace dataproc_v1beta2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A request to submit a job. @@ -1352,7 +1358,7 @@ export namespace dataproc_v1beta2 { /** * Required. The job resource. */ - job: Schema$Job; + job?: Schema$Job; /** * Optional. A unique id used to identify the request. If the server * receives two SubmitJobRequest requests with the same id, then the second @@ -1362,7 +1368,7 @@ export namespace dataproc_v1beta2 { * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and * hyphens (-). The maximum length is 40 characters. */ - requestId: string; + requestId?: string; } /** * Request message for TestIamPermissions method. @@ -1374,7 +1380,7 @@ export namespace dataproc_v1beta2 { * For more information see IAM Overview * (https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for TestIamPermissions method. @@ -1384,7 +1390,7 @@ export namespace dataproc_v1beta2 { * A subset of TestPermissionsRequest.permissions that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The workflow graph. @@ -1393,7 +1399,7 @@ export namespace dataproc_v1beta2 { /** * Output only. The workflow nodes. */ - nodes: Schema$WorkflowNode[]; + nodes?: Schema$WorkflowNode[]; } /** * A Cloud Dataproc workflow template resource. @@ -1402,36 +1408,36 @@ export namespace dataproc_v1beta2 { /** * Output only. The name of the managed cluster. */ - clusterName: string; + clusterName?: string; /** * Output only. The create cluster operation metadata. */ - createCluster: Schema$ClusterOperation; + createCluster?: Schema$ClusterOperation; /** * Output only. The delete cluster operation metadata. */ - deleteCluster: Schema$ClusterOperation; + deleteCluster?: Schema$ClusterOperation; /** * Output only. The workflow graph. */ - graph: Schema$WorkflowGraph; + graph?: Schema$WorkflowGraph; /** * Map from parameter names to values that were used for those parameters. */ - parameters: any; + parameters?: any; /** * Output only. The workflow state. */ - state: string; + state?: string; /** * Output only. The "resource name" of the template. */ - template: string; + template?: string; /** * Output only. The version of template at the time of workflow * instantiation. */ - version: number; + version?: number; } /** * The workflow node. @@ -1440,23 +1446,23 @@ export namespace dataproc_v1beta2 { /** * Output only. The error detail. */ - error: string; + error?: string; /** * Output only. The job id; populated after the node enters RUNNING state. */ - jobId: string; + jobId?: string; /** * Output only. Node's prerequisite nodes. */ - prerequisiteStepIds: string[]; + prerequisiteStepIds?: string[]; /** * Output only. The node state. */ - state: string; + state?: string; /** * Output only. The name of the node. */ - stepId: string; + stepId?: string; } /** * A Cloud Dataproc workflow template resource. @@ -1465,17 +1471,17 @@ export namespace dataproc_v1beta2 { /** * Output only. The time template was created. */ - createTime: string; + createTime?: string; /** * Required. The template id.The id must contain only letters (a-z, A-Z), * numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with * underscore or hyphen. Must consist of between 3 and 50 characters. */ - id: string; + id?: string; /** * Required. The Directed Acyclic Graph of Jobs to submit. */ - jobs: Schema$OrderedJob[]; + jobs?: Schema$OrderedJob[]; /** * Optional. The labels to associate with this template. These labels will * be propagated to all jobs and clusters created by the workflow @@ -1485,21 +1491,21 @@ export namespace dataproc_v1beta2 { * to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels * can be associated with a template. */ - labels: any; + labels?: any; /** * Output only. The "resource name" of the template, as described * in https://cloud.google.com/apis/design/resource_names of the form * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} */ - name: string; + name?: string; /** * Required. WorkflowTemplate scheduling information. */ - placement: Schema$WorkflowTemplatePlacement; + placement?: Schema$WorkflowTemplatePlacement; /** * Output only. The time template was last updated. */ - updateTime: string; + updateTime?: string; /** * Optional. Used to perform a consistent read-modify-write.This field * should be left blank for a CreateWorkflowTemplate request. It is required @@ -1510,7 +1516,7 @@ export namespace dataproc_v1beta2 { * version. The user updates other fields in the template, then returns it * as part of the UpdateWorkflowTemplate request. */ - version: number; + version?: number; } /** * Specifies workflow execution target.Either managed_cluster or @@ -1521,11 +1527,11 @@ export namespace dataproc_v1beta2 { * Optional. A selector that chooses target cluster for jobs based on * metadata.The selector is evaluated at the time each job is submitted. */ - clusterSelector: Schema$ClusterSelector; + clusterSelector?: Schema$ClusterSelector; /** * Optional. A cluster that is managed by the workflow. */ - managedCluster: Schema$ManagedCluster; + managedCluster?: Schema$ManagedCluster; } /** * A YARN application created by a job. Application information is a subset of @@ -1537,24 +1543,25 @@ export namespace dataproc_v1beta2 { /** * Required. The application name. */ - name: string; + name?: string; /** * Required. The numerical progress of the application, from 1 to 100. */ - progress: number; + progress?: number; /** * Required. The application state. */ - state: string; + state?: string; /** * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or * TimelineServer that provides application-specific information. The URL * uses the internal hostname, and requires a proxy server for resolution * and, possibly, access. */ - trackingUrl: string; + trackingUrl?: string; } + export class Resource$Projects { root: Dataproc; locations: Resource$Projects$Locations; @@ -1570,6 +1577,8 @@ export namespace dataproc_v1beta2 { return this.root; } } + + export class Resource$Projects$Locations { root: Dataproc; workflowTemplates: Resource$Projects$Locations$Workflowtemplates; @@ -1584,6 +1593,8 @@ export namespace dataproc_v1beta2 { return this.root; } } + + export class Resource$Projects$Locations$Workflowtemplates { root: Dataproc; constructor(root: Dataproc) { @@ -1609,26 +1620,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Workflowtemplates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Workflowtemplates$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Workflowtemplates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1665,25 +1691,40 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Workflowtemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Workflowtemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Workflowtemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1719,24 +1760,36 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Workflowtemplates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Workflowtemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Workflowtemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Workflowtemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1771,26 +1824,43 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: + Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1832,26 +1902,44 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instantiate(params?: any, options?: MethodOptions): - AxiosPromise; instantiate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiate, + options?: MethodOptions): AxiosPromise; + instantiate( + params: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; instantiate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiate, + callback: BodyResponseCallback): void; + instantiate(callback: BodyResponseCallback): void; + instantiate( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Instantiate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Instantiate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1896,26 +1984,44 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instantiateInline(params?: any, options?: MethodOptions): - AxiosPromise; instantiateInline( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline, + options?: MethodOptions): AxiosPromise; + instantiateInline( + params: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; instantiateInline( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline, + callback: BodyResponseCallback): void; + instantiateInline(callback: BodyResponseCallback): void; + instantiateInline( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -1953,29 +2059,46 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Locations$Workflowtemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Workflowtemplates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Locations$Workflowtemplates$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2014,26 +2137,43 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: + Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2073,29 +2213,50 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: + Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: + Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2133,26 +2294,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Workflowtemplates$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Locations$Workflowtemplates$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Workflowtemplates$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Projects$Locations$Workflowtemplates$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Workflowtemplates$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Workflowtemplates$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2174,6 +2350,189 @@ export namespace dataproc_v1beta2 { } } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the region, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$WorkflowTemplate; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Optional. The version of workflow template to delete. If specified, will + * only delete the template if the current server version matches specified + * version. + */ + version?: number; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Optional. The version of workflow template to retrieve. Only previously + * instatiated versions can be retrieved.If unspecified, retrieves the + * current version. + */ + version?: number; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Instantiate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$InstantiateWorkflowTemplateRequest; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Instantiateinline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. A tag that prevents multiple concurrent workflow instances with + * the same tag from running. This mitigates risk of concurrent instances + * started due to retries.It is recommended to always set this value to a + * UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The + * tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), + * and hyphens (-). The maximum length is 40 characters. + */ + instanceId?: string; + /** + * Required. The "resource name" of the workflow template region, as + * described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$WorkflowTemplate; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return in each response. + */ + pageSize?: number; + /** + * Optional. The page token, returned by a previous call, to request the + * next page of results. + */ + pageToken?: string; + /** + * Required. The "resource name" of the region, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Locations$Workflowtemplates$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The "resource name" of the template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$WorkflowTemplate; + } + + export class Resource$Projects$Regions { root: Dataproc; @@ -2195,6 +2554,8 @@ export namespace dataproc_v1beta2 { return this.root; } } + + export class Resource$Projects$Regions$Clusters { root: Dataproc; constructor(root: Dataproc) { @@ -2222,26 +2583,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Regions$Clusters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Regions$Clusters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2281,26 +2655,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Clusters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Regions$Clusters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2341,26 +2728,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - diagnose(params?: any, options?: MethodOptions): - AxiosPromise; diagnose( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Diagnose, + options?: MethodOptions): AxiosPromise; + diagnose( + params: Params$Resource$Projects$Regions$Clusters$Diagnose, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + diagnose( + params: Params$Resource$Projects$Regions$Clusters$Diagnose, + callback: BodyResponseCallback): void; + diagnose(callback: BodyResponseCallback): void; diagnose( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Diagnose| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Diagnose; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Diagnose; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2399,23 +2799,34 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Regions$Clusters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Regions$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2453,26 +2864,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Clusters$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Regions$Clusters$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Regions$Clusters$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2511,28 +2935,40 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Regions$Clusters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Regions$Clusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Regions$Clusters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2574,26 +3010,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Regions$Clusters$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Clusters$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Regions$Clusters$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2632,26 +3081,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Clusters$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Regions$Clusters$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Clusters$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Regions$Clusters$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Clusters$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2691,29 +3153,47 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Regions$Clusters$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Regions$Clusters$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Regions$Clusters$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Regions$Clusters$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Clusters$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Clusters$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2737,52 +3217,334 @@ export namespace dataproc_v1beta2 { } } - export class Resource$Projects$Regions$Jobs { - root: Dataproc; - constructor(root: Dataproc) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Projects$Regions$Clusters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dataproc.projects.regions.jobs.cancel - * @desc Starts a job cancellation request. To access the job resource after - * cancellation, call regions/{region}/jobs.list or - * regions/{region}/jobs.get. - * @alias dataproc.projects.regions.jobs.cancel - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.jobId Required. The job ID. - * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. - * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Optional. A unique id used to identify the request. If the server + * receives two CreateClusterRequest requests with the same id, then the + * second request will be ignored and the first google.longrunning.Operation + * created and stored in the backend is returned.It is recommended to always + * set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + * hyphens (-). The maximum length is 40 characters. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Cluster; + } + export interface Params$Resource$Projects$Regions$Clusters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Optional. Specifying the cluster_uuid means the RPC should fail (with + * error NOT_FOUND) if cluster with specified UUID does not exist. + */ + clusterUuid?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Optional. A unique id used to identify the request. If the server + * receives two DeleteClusterRequest requests with the same id, then the + * second request will be ignored and the first google.longrunning.Operation + * created and stored in the backend is returned.It is recommended to always + * set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + * hyphens (-). The maximum length is 40 characters. + */ + requestId?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$Diagnose { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$DiagnoseClusterRequest; + } + export interface Params$Resource$Projects$Regions$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. A filter constraining the clusters to list. Filters are + * case-sensitive and have the following syntax:field = value AND field = + * value ...where field is one of status.state, clusterName, or + * labels.[KEY], and [KEY] is a label key. value can be * to match all + * values. status.state can be one of the following: ACTIVE, INACTIVE, + * CREATING, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the + * CREATING, UPDATING, and RUNNING states. INACTIVE contains the DELETING + * and ERROR states. clusterName is the name of the cluster provided at + * creation time. Only the logical AND operator is supported; + * space-separated items are treated as having an implicit AND + * operator.Example filter:status.state = ACTIVE AND clusterName = mycluster + * AND labels.env = staging AND labels.starred = * + */ + filter?: string; + /** + * Optional. The standard List page size. + */ + pageSize?: number; + /** + * Optional. The standard List page token. + */ + pageToken?: string; + /** + * Required. The ID of the Google Cloud Platform project that the cluster + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Clusters$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The cluster name. + */ + clusterName?: string; + /** + * Optional. Timeout for graceful YARN decomissioning. Graceful + * decommissioning allows removing nodes from the cluster without + * interrupting jobs in progress. Timeout specifies how long to wait for + * jobs in progress to finish before forcefully removing nodes (and + * potentially interrupting jobs). Default timeout is 0 (for forceful + * decommission), and the maximum allowed timeout is 1 day.Only supported on + * Dataproc image versions 1.2 and higher. + */ + gracefulDecommissionTimeout?: string; + /** + * Required. The ID of the Google Cloud Platform project the cluster belongs + * to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Optional. A unique id used to identify the request. If the server + * receives two UpdateClusterRequest requests with the same id, then the + * second request will be ignored and the first google.longrunning.Operation + * created and stored in the backend is returned.It is recommended to always + * set this value to a UUID + * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + * hyphens (-). The maximum length is 40 characters. + */ + requestId?: string; + /** + * Required. Specifies the path, relative to Cluster, of the field to + * update. For example, to change the number of workers in a cluster to 5, + * the update_mask parameter would be specified as + * config.worker_config.num_instances, and the PATCH request body would + * specify the new value, as follows: { "config":{ "workerConfig":{ + * "numInstances":"5" } } } Similarly, to change the number of + * preemptible workers in a cluster to 5, the update_mask parameter would be + * config.secondary_worker_config.num_instances, and the PATCH request body + * would be set as follows: { "config":{ "secondaryWorkerConfig":{ + * "numInstances":"5" } } } Note: currently only the + * following fields can be updated: + * + * + * + * + * + * + *
MaskPurpose
labelsUpdates labels
config.worker_config.num_instancesResize primary worker + * group
config.secondary_worker_config.num_instancesResize secondary + * worker group
config.lifecycle_config.auto_delete_ttlReset MAX TTL + * duration
config.lifecycle_config.auto_delete_timeUpdate MAX TTL + * deletion timestamp
config.lifecycle_config.idle_delete_ttlUpdate Idle TTL + * duration
+ */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Cluster; + } + export interface Params$Resource$Projects$Regions$Clusters$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Regions$Clusters$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + + export class Resource$Projects$Regions$Jobs { + root: Dataproc; + constructor(root: Dataproc) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dataproc.projects.regions.jobs.cancel + * @desc Starts a job cancellation request. To access the job resource after + * cancellation, call regions/{region}/jobs.list or + * regions/{region}/jobs.get. + * @alias dataproc.projects.regions.jobs.cancel + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.jobId Required. The job ID. + * @param {string} params.projectId Required. The ID of the Google Cloud Platform project that the job belongs to. + * @param {string} params.region Required. The Cloud Dataproc region in which to handle the request. * @param {().CancelJobRequest} params.resource Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Regions$Jobs$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Regions$Jobs$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2822,25 +3584,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Regions$Jobs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2879,21 +3654,34 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Regions$Jobs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Regions$Jobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Regions$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2931,26 +3719,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Regions$Jobs$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Regions$Jobs$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -2991,26 +3791,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Regions$Jobs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3050,23 +3863,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Regions$Jobs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3105,26 +3933,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Regions$Jobs$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Regions$Jobs$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3161,23 +4001,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - submit(params?: any, options?: MethodOptions): AxiosPromise; submit( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Jobs$Submit, + options?: MethodOptions): AxiosPromise; + submit( + params: Params$Resource$Projects$Regions$Jobs$Submit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; submit( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Jobs$Submit, + callback: BodyResponseCallback): void; + submit(callback: BodyResponseCallback): void; + submit( + paramsOrCallback?: Params$Resource$Projects$Regions$Jobs$Submit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Submit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Submit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3219,29 +4074,46 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Regions$Jobs$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Regions$Jobs$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Regions$Jobs$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Regions$Jobs$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Jobs$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Jobs$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3265,6 +4137,215 @@ export namespace dataproc_v1beta2 { } } + export interface Params$Resource$Projects$Regions$Jobs$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelJobRequest; + } + export interface Params$Resource$Projects$Regions$Jobs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. If set, the returned jobs list includes only jobs that were + * submitted to the named cluster. + */ + clusterName?: string; + /** + * Optional. A filter constraining the jobs to list. Filters are + * case-sensitive and have the following syntax:field = value AND field = + * value ...where field is status.state or labels.[KEY], and [KEY] is a + * label key. value can be * to match all values. status.state can be either + * ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; + * space-separated items are treated as having an implicit AND + * operator.Example filter:status.state = ACTIVE AND labels.env = staging + * AND labels.starred = * + */ + filter?: string; + /** + * Optional. Specifies enumerated categories of jobs to list. (default = + * match ALL jobs).If filter is provided, jobStateMatcher will be ignored. + */ + jobStateMatcher?: string; + /** + * Optional. The number of results to return in each response. + */ + pageSize?: number; + /** + * Optional. The page token, returned by a previous call, to request the + * next page of results. + */ + pageToken?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + } + export interface Params$Resource$Projects$Regions$Jobs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The job ID. + */ + jobId?: string; + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Required. Specifies the path, relative to Job, of the field + * to update. For example, to update the labels of a Job the + * update_mask parameter would be specified as + * labels, and the PATCH request body would specify the new + * value. Note: Currently, labels is the only + * field that can be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export interface Params$Resource$Projects$Regions$Jobs$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Regions$Jobs$Submit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The ID of the Google Cloud Platform project that the job + * belongs to. + */ + projectId?: string; + /** + * Required. The Cloud Dataproc region in which to handle the request. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$SubmitJobRequest; + } + export interface Params$Resource$Projects$Regions$Jobs$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Regions$Operations { root: Dataproc; constructor(root: Dataproc) { @@ -3297,25 +4378,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Regions$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Regions$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3353,25 +4447,38 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Operations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Regions$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Regions$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3407,23 +4514,35 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Regions$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Regions$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Regions$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3458,26 +4577,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Operations$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Regions$Operations$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Operations$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Regions$Operations$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3523,28 +4655,40 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Regions$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Regions$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Regions$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Regions$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3580,26 +4724,39 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Operations$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Regions$Operations$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Regions$Operations$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Regions$Operations$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Operations$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3639,29 +4796,47 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Regions$Operations$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Regions$Operations$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Regions$Operations$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Regions$Operations$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Operations$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Operations$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3685,6 +4860,108 @@ export namespace dataproc_v1beta2 { } } + export interface Params$Resource$Projects$Regions$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Projects$Regions$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Regions$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Regions$Operations$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Regions$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Regions$Operations$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Regions$Operations$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Regions$Workflowtemplates { root: Dataproc; constructor(root: Dataproc) { @@ -3710,26 +4987,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Workflowtemplates$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Regions$Workflowtemplates$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Regions$Workflowtemplates$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3766,25 +5058,40 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Workflowtemplates$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Workflowtemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Regions$Workflowtemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3820,24 +5127,36 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Regions$Workflowtemplates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Regions$Workflowtemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Regions$Workflowtemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Workflowtemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3872,26 +5191,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3933,26 +5267,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instantiate(params?: any, options?: MethodOptions): - AxiosPromise; instantiate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Workflowtemplates$Instantiate, + options?: MethodOptions): AxiosPromise; instantiate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Regions$Workflowtemplates$Instantiate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + instantiate( + params: Params$Resource$Projects$Regions$Workflowtemplates$Instantiate, + callback: BodyResponseCallback): void; + instantiate(callback: BodyResponseCallback): void; + instantiate( + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Instantiate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Instantiate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Instantiate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -3997,26 +5346,44 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instantiateInline(params?: any, options?: MethodOptions): - AxiosPromise; instantiateInline( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline, + options?: MethodOptions): AxiosPromise; + instantiateInline( + params: + Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + instantiateInline( + params: + Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline, + callback: BodyResponseCallback): void; + instantiateInline(callback: BodyResponseCallback): void; instantiateInline( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -4054,29 +5421,45 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Regions$Workflowtemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Regions$Workflowtemplates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Regions$Workflowtemplates$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Regions$Workflowtemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -4115,26 +5498,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -4174,29 +5572,50 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: + Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: + Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -4234,26 +5653,41 @@ export namespace dataproc_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Regions$Workflowtemplates$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Regions$Workflowtemplates$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Regions$Workflowtemplates$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Regions$Workflowtemplates$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Regions$Workflowtemplates$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Regions$Workflowtemplates$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; const parameters = { options: Object.assign( @@ -4274,4 +5708,186 @@ export namespace dataproc_v1beta2 { } } } + + export interface Params$Resource$Projects$Regions$Workflowtemplates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the region, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$WorkflowTemplate; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Optional. The version of workflow template to delete. If specified, will + * only delete the template if the current server version matches specified + * version. + */ + version?: number; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Optional. The version of workflow template to retrieve. Only previously + * instatiated versions can be retrieved.If unspecified, retrieves the + * current version. + */ + version?: number; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Instantiate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The "resource name" of the workflow template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$InstantiateWorkflowTemplateRequest; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Instantiateinline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. A tag that prevents multiple concurrent workflow instances with + * the same tag from running. This mitigates risk of concurrent instances + * started due to retries.It is recommended to always set this value to a + * UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The + * tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), + * and hyphens (-). The maximum length is 40 characters. + */ + instanceId?: string; + /** + * Required. The "resource name" of the workflow template region, as + * described in https://cloud.google.com/apis/design/resource_names of the + * form projects/{project_id}/regions/{region} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$WorkflowTemplate; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return in each response. + */ + pageSize?: number; + /** + * Optional. The page token, returned by a previous call, to request the + * next page of results. + */ + pageToken?: string; + /** + * Required. The "resource name" of the region, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region} + */ + parent?: string; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Regions$Workflowtemplates$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The "resource name" of the template, as described in + * https://cloud.google.com/apis/design/resource_names of the form + * projects/{project_id}/regions/{region}/workflowTemplates/{template_id} + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$WorkflowTemplate; + } } diff --git a/src/apis/datastore/v1.ts b/src/apis/datastore/v1.ts index 44ae0b0cc12..9f27abfe70d 100644 --- a/src/apis/datastore/v1.ts +++ b/src/apis/datastore/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace datastore_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Datastore API * @@ -74,7 +77,7 @@ export namespace datastore_v1 { * A list of keys with incomplete key paths for which to allocate IDs. No * key may be reserved/read-only. */ - keys: Schema$Key[]; + keys?: Schema$Key[]; } /** * The response for Datastore.AllocateIds. @@ -84,7 +87,7 @@ export namespace datastore_v1 { * The keys specified in the request (in the same order), each with its key * path completed with a newly allocated ID. */ - keys: Schema$Key[]; + keys?: Schema$Key[]; } /** * An array value. @@ -94,7 +97,7 @@ export namespace datastore_v1 { * Values in the array. The order of this array may not be preserved if it * contains a mix of indexed and unindexed values. */ - values: Schema$Value[]; + values?: Schema$Value[]; } /** * The request for Datastore.BeginTransaction. @@ -103,7 +106,7 @@ export namespace datastore_v1 { /** * Options for a new transaction. */ - transactionOptions: Schema$TransactionOptions; + transactionOptions?: Schema$TransactionOptions; } /** * The response for Datastore.BeginTransaction. @@ -112,7 +115,7 @@ export namespace datastore_v1 { /** * The transaction identifier (always present). */ - transaction: string; + transaction?: string; } /** * The request for Datastore.Commit. @@ -121,7 +124,7 @@ export namespace datastore_v1 { /** * The type of commit to perform. Defaults to `TRANSACTIONAL`. */ - mode: string; + mode?: string; /** * The mutations to perform. When mode is `TRANSACTIONAL`, mutations * affecting a single entity are applied in order. The following sequences @@ -131,13 +134,13 @@ export namespace datastore_v1 { * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single * entity. */ - mutations: Schema$Mutation[]; + mutations?: Schema$Mutation[]; /** * The identifier of the transaction associated with the commit. A * transaction identifier is returned by a call to * Datastore.BeginTransaction. */ - transaction: string; + transaction?: string; } /** * The response for Datastore.Commit. @@ -147,12 +150,12 @@ export namespace datastore_v1 { * The number of index entries updated during the commit, or zero if none * were updated. */ - indexUpdates: number; + indexUpdates?: number; /** * The result of performing the mutations. The i-th mutation result * corresponds to the i-th mutation in the request. */ - mutationResults: Schema$MutationResult[]; + mutationResults?: Schema$MutationResult[]; } /** * A filter that merges multiple other filters using the given operator. @@ -161,11 +164,11 @@ export namespace datastore_v1 { /** * The list of filters to combine. Must contain at least one filter. */ - filters: Schema$Filter[]; + filters?: Schema$Filter[]; /** * The operator for combining multiple filters. */ - op: string; + op?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -187,14 +190,14 @@ export namespace datastore_v1 { * key). An entity's kind is its key path's last element's kind, * or null if it has no key. */ - key: Schema$Key; + key?: Schema$Key; /** * The entity's properties. The map's keys are property names. A * property name matching regex `__.*__` is reserved. A reserved property * name is forbidden in certain documented contexts. The name must not * contain more than 500 characters. The name cannot be `""`. */ - properties: any; + properties?: any; } /** * The result of fetching an entity from Datastore. @@ -204,11 +207,11 @@ export namespace datastore_v1 { * A cursor that points to the position after the result entity. Set only * when the `EntityResult` is part of a `QueryResultBatch` message. */ - cursor: string; + cursor?: string; /** * The resulting entity. */ - entity: Schema$Entity; + entity?: Schema$Entity; /** * The version of the entity, a strictly positive number that monotonically * increases with changes to the entity. This field is set for `FULL` @@ -216,7 +219,7 @@ export namespace datastore_v1 { * version of the snapshot that was used to look up the entity, and it is * always set except for eventually consistent reads. */ - version: string; + version?: string; } /** * A holder for any type of filter. @@ -225,11 +228,11 @@ export namespace datastore_v1 { /** * A composite filter. */ - compositeFilter: Schema$CompositeFilter; + compositeFilter?: Schema$CompositeFilter; /** * A filter on a property. */ - propertyFilter: Schema$PropertyFilter; + propertyFilter?: Schema$PropertyFilter; } /** * Metadata common to all Datastore Admin operations. @@ -238,25 +241,25 @@ export namespace datastore_v1 { /** * The time the operation ended, either successfully or otherwise. */ - endTime: string; + endTime?: string; /** * The client-assigned labels which were provided when the operation was * created. May also include additional labels. */ - labels: any; + labels?: any; /** * The type of the operation. Can be used as a filter in * ListOperationsRequest. */ - operationType: string; + operationType?: string; /** * The time that work began on the operation. */ - startTime: string; + startTime?: string; /** * The current state of the Operation. */ - state: string; + state?: string; } /** * Identifies a subset of entities in a project. This is specified as @@ -274,7 +277,7 @@ export namespace datastore_v1 { /** * If empty, then this represents all kinds. */ - kinds: string[]; + kinds?: string[]; /** * An empty list represents all namespaces. This is the preferred usage for * projects that don't use namespaces. An empty string element @@ -282,7 +285,7 @@ export namespace datastore_v1 { * data in non-default namespaces, but doesn't want to include them. * Each namespace in this list must be unique. */ - namespaceIds: string[]; + namespaceIds?: string[]; } /** * Metadata for ExportEntities operations. @@ -291,11 +294,11 @@ export namespace datastore_v1 { /** * Metadata common to all Datastore Admin operations. */ - common: Schema$GoogleDatastoreAdminV1beta1CommonMetadata; + common?: Schema$GoogleDatastoreAdminV1beta1CommonMetadata; /** * Description of which entities are being exported. */ - entityFilter: Schema$GoogleDatastoreAdminV1beta1EntityFilter; + entityFilter?: Schema$GoogleDatastoreAdminV1beta1EntityFilter; /** * Location for the export metadata and data files. This will be the same * value as the @@ -303,15 +306,15 @@ export namespace datastore_v1 { * field. The final output location is provided in * google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url. */ - outputUrlPrefix: string; + outputUrlPrefix?: string; /** * An estimate of the number of bytes processed. */ - progressBytes: Schema$GoogleDatastoreAdminV1beta1Progress; + progressBytes?: Schema$GoogleDatastoreAdminV1beta1Progress; /** * An estimate of the number of entities processed. */ - progressEntities: Schema$GoogleDatastoreAdminV1beta1Progress; + progressEntities?: Schema$GoogleDatastoreAdminV1beta1Progress; } /** * The response for @@ -324,7 +327,7 @@ export namespace datastore_v1 { * google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url. Only * present if the operation completed successfully. */ - outputUrl: string; + outputUrl?: string; } /** * Metadata for ImportEntities operations. @@ -333,25 +336,25 @@ export namespace datastore_v1 { /** * Metadata common to all Datastore Admin operations. */ - common: Schema$GoogleDatastoreAdminV1beta1CommonMetadata; + common?: Schema$GoogleDatastoreAdminV1beta1CommonMetadata; /** * Description of which entities are being imported. */ - entityFilter: Schema$GoogleDatastoreAdminV1beta1EntityFilter; + entityFilter?: Schema$GoogleDatastoreAdminV1beta1EntityFilter; /** * The location of the import metadata file. This will be the same value as * the google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url * field. */ - inputUrl: string; + inputUrl?: string; /** * An estimate of the number of bytes processed. */ - progressBytes: Schema$GoogleDatastoreAdminV1beta1Progress; + progressBytes?: Schema$GoogleDatastoreAdminV1beta1Progress; /** * An estimate of the number of entities processed. */ - progressEntities: Schema$GoogleDatastoreAdminV1beta1Progress; + progressEntities?: Schema$GoogleDatastoreAdminV1beta1Progress; } /** * Measures the progress of a particular metric. @@ -361,12 +364,12 @@ export namespace datastore_v1 { * The amount of work that has been completed. Note that this may be greater * than work_estimated. */ - workCompleted: string; + workCompleted?: string; /** * An estimate of how much work needs to be performed. May be zero if the * work estimate is unavailable. */ - workEstimated: string; + workEstimated?: string; } /** * Metadata common to all Datastore Admin operations. @@ -375,25 +378,25 @@ export namespace datastore_v1 { /** * The time the operation ended, either successfully or otherwise. */ - endTime: string; + endTime?: string; /** * The client-assigned labels which were provided when the operation was * created. May also include additional labels. */ - labels: any; + labels?: any; /** * The type of the operation. Can be used as a filter in * ListOperationsRequest. */ - operationType: string; + operationType?: string; /** * The time that work began on the operation. */ - startTime: string; + startTime?: string; /** * The current state of the Operation. */ - state: string; + state?: string; } /** * Identifies a subset of entities in a project. This is specified as @@ -411,7 +414,7 @@ export namespace datastore_v1 { /** * If empty, then this represents all kinds. */ - kinds: string[]; + kinds?: string[]; /** * An empty list represents all namespaces. This is the preferred usage for * projects that don't use namespaces. An empty string element @@ -419,7 +422,7 @@ export namespace datastore_v1 { * data in non-default namespaces, but doesn't want to include them. * Each namespace in this list must be unique. */ - namespaceIds: string[]; + namespaceIds?: string[]; } /** * Metadata for ExportEntities operations. @@ -428,11 +431,11 @@ export namespace datastore_v1 { /** * Metadata common to all Datastore Admin operations. */ - common: Schema$GoogleDatastoreAdminV1CommonMetadata; + common?: Schema$GoogleDatastoreAdminV1CommonMetadata; /** * Description of which entities are being exported. */ - entityFilter: Schema$GoogleDatastoreAdminV1EntityFilter; + entityFilter?: Schema$GoogleDatastoreAdminV1EntityFilter; /** * Location for the export metadata and data files. This will be the same * value as the @@ -440,15 +443,15 @@ export namespace datastore_v1 { * The final output location is provided in * google.datastore.admin.v1.ExportEntitiesResponse.output_url. */ - outputUrlPrefix: string; + outputUrlPrefix?: string; /** * An estimate of the number of bytes processed. */ - progressBytes: Schema$GoogleDatastoreAdminV1Progress; + progressBytes?: Schema$GoogleDatastoreAdminV1Progress; /** * An estimate of the number of entities processed. */ - progressEntities: Schema$GoogleDatastoreAdminV1Progress; + progressEntities?: Schema$GoogleDatastoreAdminV1Progress; } /** * The request for google.datastore.admin.v1.DatastoreAdmin.ExportEntities. @@ -457,11 +460,11 @@ export namespace datastore_v1 { /** * Description of what data from the project is included in the export. */ - entityFilter: Schema$GoogleDatastoreAdminV1EntityFilter; + entityFilter?: Schema$GoogleDatastoreAdminV1EntityFilter; /** * Client-assigned labels. */ - labels: any; + labels?: any; /** * Location for the export metadata and data files. The full resource URL * of the external storage location. Currently, only Google Cloud Storage is @@ -478,7 +481,7 @@ export namespace datastore_v1 { * nesting the data files deeper, the same Cloud Storage bucket can be used * in multiple ExportEntities operations without conflict. */ - outputUrlPrefix: string; + outputUrlPrefix?: string; } /** * The response for google.datastore.admin.v1.DatastoreAdmin.ExportEntities. @@ -490,7 +493,7 @@ export namespace datastore_v1 { * google.datastore.admin.v1.ImportEntitiesRequest.input_url. Only present * if the operation completed successfully. */ - outputUrl: string; + outputUrl?: string; } /** * Metadata for ImportEntities operations. @@ -499,24 +502,24 @@ export namespace datastore_v1 { /** * Metadata common to all Datastore Admin operations. */ - common: Schema$GoogleDatastoreAdminV1CommonMetadata; + common?: Schema$GoogleDatastoreAdminV1CommonMetadata; /** * Description of which entities are being imported. */ - entityFilter: Schema$GoogleDatastoreAdminV1EntityFilter; + entityFilter?: Schema$GoogleDatastoreAdminV1EntityFilter; /** * The location of the import metadata file. This will be the same value as * the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. */ - inputUrl: string; + inputUrl?: string; /** * An estimate of the number of bytes processed. */ - progressBytes: Schema$GoogleDatastoreAdminV1Progress; + progressBytes?: Schema$GoogleDatastoreAdminV1Progress; /** * An estimate of the number of entities processed. */ - progressEntities: Schema$GoogleDatastoreAdminV1Progress; + progressEntities?: Schema$GoogleDatastoreAdminV1Progress; } /** * The request for google.datastore.admin.v1.DatastoreAdmin.ImportEntities. @@ -528,7 +531,7 @@ export namespace datastore_v1 { * the export, otherwise a FAILED_PRECONDITION error will be returned. If no * filter is specified then all entities from the export are imported. */ - entityFilter: Schema$GoogleDatastoreAdminV1EntityFilter; + entityFilter?: Schema$GoogleDatastoreAdminV1EntityFilter; /** * The full resource URL of the external storage location. Currently, only * Google Cloud Storage is supported. So input_url should be of the form: @@ -542,11 +545,11 @@ export namespace datastore_v1 { * For more information, see * google.datastore.admin.v1.ExportEntitiesResponse.output_url. */ - inputUrl: string; + inputUrl?: string; /** * Client-assigned labels. */ - labels: any; + labels?: any; } /** * Measures the progress of a particular metric. @@ -556,12 +559,12 @@ export namespace datastore_v1 { * The amount of work that has been completed. Note that this may be greater * than work_estimated. */ - workCompleted: string; + workCompleted?: string; /** * An estimate of how much work needs to be performed. May be zero if the * work estimate is unavailable. */ - workEstimated: string; + workEstimated?: string; } /** * The response message for Operations.ListOperations. @@ -570,11 +573,11 @@ export namespace datastore_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$GoogleLongrunningOperation[]; + operations?: Schema$GoogleLongrunningOperation[]; } /** * This resource represents a long-running operation that is the result of a @@ -586,24 +589,24 @@ export namespace datastore_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -613,7 +616,7 @@ export namespace datastore_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A [GQL @@ -626,26 +629,26 @@ export namespace datastore_v1 { * 'string literal'` is not allowed, while `SELECT * FROM Kind WHERE * a = @value` is. */ - allowLiterals: boolean; + allowLiterals?: boolean; /** * For each non-reserved named binding site in the query string, there must * be a named parameter with that name, but not necessarily the inverse. Key * must match regex `A-Za-z_$*`, must not match regex `__.*__`, and must not * be `""`. */ - namedBindings: any; + namedBindings?: any; /** * Numbered binding site @1 references the first numbered parameter, * effectively using 1-based indexing, rather than the usual 0. For each * binding site numbered i in `query_string`, there must be an i-th numbered * parameter. The inverse must also be true. */ - positionalBindings: Schema$GqlQueryParameter[]; + positionalBindings?: Schema$GqlQueryParameter[]; /** * A string of the format described * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). */ - queryString: string; + queryString?: string; } /** * A binding parameter for a GQL query. @@ -654,11 +657,11 @@ export namespace datastore_v1 { /** * A query cursor. Query cursors are returned in query result batches. */ - cursor: string; + cursor?: string; /** * A value parameter. */ - value: Schema$Value; + value?: Schema$Value; } /** * A unique identifier for an entity. If a key's partition ID or any of @@ -671,7 +674,7 @@ export namespace datastore_v1 { * Entities are partitioned into subsets, currently identified by a project * ID and namespace ID. Queries are scoped to a single partition. */ - partitionId: Schema$PartitionId; + partitionId?: Schema$PartitionId; /** * The entity path. An entity path consists of one or more elements composed * of a kind and a string or numerical identifier, which identify entities. @@ -687,7 +690,7 @@ export namespace datastore_v1 { * identifier. A path can never be empty, and a path can have at most 100 * elements. */ - path: Schema$PathElement[]; + path?: Schema$PathElement[]; } /** * A representation of a kind. @@ -696,7 +699,7 @@ export namespace datastore_v1 { /** * The name of the kind. */ - name: string; + name?: string; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -709,11 +712,11 @@ export namespace datastore_v1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * The request for Datastore.Lookup. @@ -722,11 +725,11 @@ export namespace datastore_v1 { /** * Keys of entities to look up. */ - keys: Schema$Key[]; + keys?: Schema$Key[]; /** * The options for this lookup request. */ - readOptions: Schema$ReadOptions; + readOptions?: Schema$ReadOptions; } /** * The response for Datastore.Lookup. @@ -737,19 +740,19 @@ export namespace datastore_v1 { * order of results in this field is undefined and has no relation to the * order of the keys in the input. */ - deferred: Schema$Key[]; + deferred?: Schema$Key[]; /** * Entities found as `ResultType.FULL` entities. The order of results in * this field is undefined and has no relation to the order of the keys in * the input. */ - found: Schema$EntityResult[]; + found?: Schema$EntityResult[]; /** * Entities not found as `ResultType.KEY_ONLY` entities. The order of * results in this field is undefined and has no relation to the order of * the keys in the input. */ - missing: Schema$EntityResult[]; + missing?: Schema$EntityResult[]; } /** * A mutation to apply to an entity. @@ -759,27 +762,27 @@ export namespace datastore_v1 { * The version of the entity that this mutation is being applied to. If this * does not match the current version on the server, the mutation conflicts. */ - baseVersion: string; + baseVersion?: string; /** * The key of the entity to delete. The entity may or may not already exist. * Must have a complete key path and must not be reserved/read-only. */ - delete: Schema$Key; + delete?: Schema$Key; /** * The entity to insert. The entity must not already exist. The entity * key's final path element may be incomplete. */ - insert: Schema$Entity; + insert?: Schema$Entity; /** * The entity to update. The entity must already exist. Must have a complete * key path. */ - update: Schema$Entity; + update?: Schema$Entity; /** * The entity to upsert. The entity may or may not already exist. The entity * key's final path element may be incomplete. */ - upsert: Schema$Entity; + upsert?: Schema$Entity; } /** * The result of applying a mutation. @@ -789,12 +792,12 @@ export namespace datastore_v1 { * Whether a conflict was detected for this mutation. Always false when a * conflict detection strategy field is not set in the mutation. */ - conflictDetected: boolean; + conflictDetected?: boolean; /** * The automatically allocated key. Set only when the mutation allocated a * key. */ - key: Schema$Key; + key?: Schema$Key; /** * The version of the entity on the server after processing the mutation. If * the mutation doesn't change anything on the server, then the version @@ -802,7 +805,7 @@ export namespace datastore_v1 { * version that is strictly greater than the version of any previous entity * and less than the version of any possible future entity. */ - version: string; + version?: string; } /** * A partition ID identifies a grouping of entities. The grouping is always by @@ -820,11 +823,11 @@ export namespace datastore_v1 { /** * If not empty, the ID of the namespace to which the entities belong. */ - namespaceId: string; + namespaceId?: string; /** * The ID of the project to which the entities belong. */ - projectId: string; + projectId?: string; } /** * A (kind, ID/name) pair used to construct a key path. If either name or ID @@ -836,19 +839,19 @@ export namespace datastore_v1 { * The auto-allocated ID of the entity. Never equal to zero. Values less * than zero are discouraged and may not be supported in the future. */ - id: string; + id?: string; /** * The kind of the entity. A kind matching regex `__.*__` is * reserved/read-only. A kind must not contain more than 1500 bytes when * UTF-8 encoded. Cannot be `""`. */ - kind: string; + kind?: string; /** * The name of the entity. A name matching regex `__.*__` is * reserved/read-only. A name must not be more than 1500 bytes when UTF-8 * encoded. Cannot be `""`. */ - name: string; + name?: string; } /** * A representation of a property in a projection. @@ -857,7 +860,7 @@ export namespace datastore_v1 { /** * The property to project. */ - property: Schema$PropertyReference; + property?: Schema$PropertyReference; } /** * A filter on a specific property. @@ -866,15 +869,15 @@ export namespace datastore_v1 { /** * The operator to filter by. */ - op: string; + op?: string; /** * The property to filter by. */ - property: Schema$PropertyReference; + property?: Schema$PropertyReference; /** * The value to compare the property to. */ - value: Schema$Value; + value?: Schema$Value; } /** * The desired order for a specific property. @@ -883,11 +886,11 @@ export namespace datastore_v1 { /** * The direction to order by. Defaults to `ASCENDING`. */ - direction: string; + direction?: string; /** * The property to order by. */ - property: Schema$PropertyReference; + property?: Schema$PropertyReference; } /** * A reference to a property relative to the kind expressions. @@ -897,7 +900,7 @@ export namespace datastore_v1 { * The name of the property. If name includes "."s, it may be * interpreted as a property name path. */ - name: string; + name?: string; } /** * A query for entities. @@ -908,47 +911,47 @@ export namespace datastore_v1 { * result for each distinct combination of values for the given properties * (if empty, all results are returned). */ - distinctOn: Schema$PropertyReference[]; + distinctOn?: Schema$PropertyReference[]; /** * An ending point for the query results. Query cursors are returned in * query result batches and [can only be used to limit the same * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). */ - endCursor: string; + endCursor?: string; /** * The filter to apply. */ - filter: Schema$Filter; + filter?: Schema$Filter; /** * The kinds to query (if empty, returns entities of all kinds). Currently * at most 1 kind may be specified. */ - kind: Schema$KindExpression[]; + kind?: Schema$KindExpression[]; /** * The maximum number of results to return. Applies after all other * constraints. Optional. Unspecified is interpreted as no limit. Must be * >= 0 if specified. */ - limit: number; + limit?: number; /** * The number of results to skip. Applies before limit, but after all other * constraints. Optional. Must be >= 0 if specified. */ - offset: number; + offset?: number; /** * The order to apply to the query results (if empty, order is unspecified). */ - order: Schema$PropertyOrder[]; + order?: Schema$PropertyOrder[]; /** * The projection to return. Defaults to returning all properties. */ - projection: Schema$Projection[]; + projection?: Schema$Projection[]; /** * A starting point for the query results. Query cursors are returned in * query result batches and [can only be used to continue the same * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). */ - startCursor: string; + startCursor?: string; } /** * A batch of results produced by a query. @@ -957,28 +960,28 @@ export namespace datastore_v1 { /** * A cursor that points to the position after the last result in the batch. */ - endCursor: string; + endCursor?: string; /** * The results for this batch. */ - entityResults: Schema$EntityResult[]; + entityResults?: Schema$EntityResult[]; /** * The result type for every entity in `entity_results`. */ - entityResultType: string; + entityResultType?: string; /** * The state of the query after the current batch. */ - moreResults: string; + moreResults?: string; /** * A cursor that points to the position after the last skipped result. Will * be set when `skipped_results` != 0. */ - skippedCursor: string; + skippedCursor?: string; /** * The number of results skipped, typically because of an offset. */ - skippedResults: number; + skippedResults?: number; /** * The version number of the snapshot this batch was returned from. This * applies to the range of results from the query's `start_cursor` (or @@ -989,7 +992,7 @@ export namespace datastore_v1 { * valid for all preceding batches. The value will be zero for eventually * consistent queries. */ - snapshotVersion: string; + snapshotVersion?: string; } /** * Options specific to read-only transactions. @@ -1003,12 +1006,12 @@ export namespace datastore_v1 { * The non-transactional read consistency to use. Cannot be set to `STRONG` * for global queries. */ - readConsistency: string; + readConsistency?: string; /** * The identifier of the transaction in which to read. A transaction * identifier is returned by a call to Datastore.BeginTransaction. */ - transaction: string; + transaction?: string; } /** * Options specific to read / write transactions. @@ -1017,7 +1020,7 @@ export namespace datastore_v1 { /** * The transaction identifier of the transaction being retried. */ - previousTransaction: string; + previousTransaction?: string; } /** * The request for Datastore.ReserveIds. @@ -1026,12 +1029,12 @@ export namespace datastore_v1 { /** * If not empty, the ID of the database against which to make the request. */ - databaseId: string; + databaseId?: string; /** * A list of keys with complete key paths whose numeric IDs should not be * auto-allocated. */ - keys: Schema$Key[]; + keys?: Schema$Key[]; } /** * The response for Datastore.ReserveIds. @@ -1045,7 +1048,7 @@ export namespace datastore_v1 { * The transaction identifier, returned by a call to * Datastore.BeginTransaction. */ - transaction: string; + transaction?: string; } /** * The response for Datastore.Rollback. (an empty message). @@ -1058,21 +1061,21 @@ export namespace datastore_v1 { /** * The GQL query to run. */ - gqlQuery: Schema$GqlQuery; + gqlQuery?: Schema$GqlQuery; /** * Entities are partitioned into subsets, identified by a partition ID. * Queries are scoped to a single partition. This partition ID is normalized * with the standard default context partition ID. */ - partitionId: Schema$PartitionId; + partitionId?: Schema$PartitionId; /** * The query to run. */ - query: Schema$Query; + query?: Schema$Query; /** * The options for this query. */ - readOptions: Schema$ReadOptions; + readOptions?: Schema$ReadOptions; } /** * The response for Datastore.RunQuery. @@ -1081,11 +1084,11 @@ export namespace datastore_v1 { /** * A batch of query results (always present). */ - batch: Schema$QueryResultBatch; + batch?: Schema$QueryResultBatch; /** * The parsed form of the `GqlQuery` from the request, if it was set. */ - query: Schema$Query; + query?: Schema$Query; } /** * The `Status` type defines a logical error model that is suitable for @@ -1127,18 +1130,18 @@ export namespace datastore_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Options for beginning a new transaction. Transactions can be created @@ -1149,11 +1152,11 @@ export namespace datastore_v1 { /** * The transaction should only allow reads. */ - readOnly: Schema$ReadOnly; + readOnly?: Schema$ReadOnly; /** * The transaction should allow both reads and writes. */ - readWrite: Schema$ReadWrite; + readWrite?: Schema$ReadWrite; } /** * A message that can hold any of the supported value types and associated @@ -1165,64 +1168,65 @@ export namespace datastore_v1 { * that sets field `array_value` must not set fields `meaning` or * `exclude_from_indexes`. */ - arrayValue: Schema$ArrayValue; + arrayValue?: Schema$ArrayValue; /** * A blob value. May have at most 1,000,000 bytes. When * `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON * requests, must be base64-encoded. */ - blobValue: string; + blobValue?: string; /** * A boolean value. */ - booleanValue: boolean; + booleanValue?: boolean; /** * A double value. */ - doubleValue: number; + doubleValue?: number; /** * An entity value. - May have no key. - May have a key with an incomplete * key path. - May have a reserved/read-only key. */ - entityValue: Schema$Entity; + entityValue?: Schema$Entity; /** * If the value should be excluded from all indexes including those defined * explicitly. */ - excludeFromIndexes: boolean; + excludeFromIndexes?: boolean; /** * A geo point value representing a point on the surface of Earth. */ - geoPointValue: Schema$LatLng; + geoPointValue?: Schema$LatLng; /** * An integer value. */ - integerValue: string; + integerValue?: string; /** * A key value. */ - keyValue: Schema$Key; + keyValue?: Schema$Key; /** * The `meaning` field should only be populated for backwards compatibility. */ - meaning: number; + meaning?: number; /** * A null value. */ - nullValue: string; + nullValue?: string; /** * A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is * indexed) , may have at most 1500 bytes. Otherwise, may be set to at least * 1,000,000 bytes. */ - stringValue: string; + stringValue?: string; /** * A timestamp value. When stored in the Datastore, precise only to * microseconds; any additional precision is rounded down. */ - timestampValue: string; + timestampValue?: string; } + export class Resource$Projects { root: Datastore; operations: Resource$Projects$Operations; @@ -1251,28 +1255,40 @@ export namespace datastore_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - allocateIds(params?: any, options?: MethodOptions): - AxiosPromise; allocateIds( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Allocateids, + options?: MethodOptions): AxiosPromise; + allocateIds( + params: Params$Resource$Projects$Allocateids, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; allocateIds( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Allocateids, + callback: BodyResponseCallback): void; + allocateIds(callback: BodyResponseCallback): + void; + allocateIds( + paramsOrCallback?: Params$Resource$Projects$Allocateids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Allocateids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Allocateids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1308,28 +1324,41 @@ export namespace datastore_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - beginTransaction(params?: any, options?: MethodOptions): - AxiosPromise; beginTransaction( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Begintransaction, + options?: MethodOptions): AxiosPromise; + beginTransaction( + params: Params$Resource$Projects$Begintransaction, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + beginTransaction( + params: Params$Resource$Projects$Begintransaction, + callback: BodyResponseCallback): void; beginTransaction( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + beginTransaction( + paramsOrCallback?: Params$Resource$Projects$Begintransaction| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Begintransaction; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Begintransaction; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1366,26 +1395,37 @@ export namespace datastore_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - commit(params?: any, options?: MethodOptions): + commit(params?: Params$Resource$Projects$Commit, options?: MethodOptions): AxiosPromise; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Commit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Commit, + callback: BodyResponseCallback): void; + commit(callback: BodyResponseCallback): void; + commit( + paramsOrCallback?: Params$Resource$Projects$Commit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Commit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Commit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1428,29 +1468,41 @@ export namespace datastore_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): + export(params?: Params$Resource$Projects$Export, options?: MethodOptions): AxiosPromise; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Export, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Export, + callback: BodyResponseCallback): + void; + export(callback: BodyResponseCallback): + void; + export( + paramsOrCallback?: Params$Resource$Projects$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1492,19 +1544,28 @@ export namespace datastore_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Projects$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Projects$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Projects$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Projects$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Projects$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Import; options = {}; - } if(typeof params === 'function') { - callback = params; - params = {}; - } options = options || {}; const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['projectId'], pathParams: ['projectId'], context: this.getRoot()}; if(callback) { + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['projectId'], pathParams: ['projectId'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { + } else { return createAPIRequest(parameters); - }} + }} /** @@ -1515,30 +1576,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + lookup(params?: Params$Resource$Projects$Lookup, options?: MethodOptions): AxiosPromise; lookup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Lookup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; lookup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Lookup, + callback: BodyResponseCallback): void; + lookup(callback: BodyResponseCallback): void; + lookup( + paramsOrCallback?: Params$Resource$Projects$Lookup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Lookup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Lookup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1575,26 +1647,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; reserveIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Reserveids, + options?: MethodOptions): AxiosPromise; + reserveIds( + params: Params$Resource$Projects$Reserveids, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reserveIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Reserveids, + callback: BodyResponseCallback): void; + reserveIds(callback: BodyResponseCallback): void; + reserveIds( + paramsOrCallback?: Params$Resource$Projects$Reserveids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Reserveids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Reserveids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1630,26 +1715,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; + rollback( + paramsOrCallback?: Params$Resource$Projects$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1685,26 +1783,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; runQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Runquery, + options?: MethodOptions): AxiosPromise; + runQuery( + params: Params$Resource$Projects$Runquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; runQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Runquery, + callback: BodyResponseCallback): void; + runQuery(callback: BodyResponseCallback): void; + runQuery( + paramsOrCallback?: Params$Resource$Projects$Runquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Runquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Runquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1726,6 +1837,143 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Operations$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1814,25 +2075,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Operations$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1868,27 +2142,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Operations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Operations$Get, + callback: BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1934,30 +2221,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleLongrunningListOperationsResponse>): void; + list( + params: Params$Resource$Projects$Operations$List, + callback: BodyResponseCallback< Schema$GoogleLongrunningListOperationsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleLongrunningListOperationsResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleLongrunningListOperationsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1981,4 +2283,61 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Export, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Export, + callback: BodyResponseCallback): + void; + export(callback: BodyResponseCallback): + void; + export( + paramsOrCallback?: Params$Resource$Projects$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -589,18 +605,25 @@ export namespace datastore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Projects$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Projects$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Projects$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Projects$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Import; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Import; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign({ @@ -620,6 +643,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; allocateIds( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Allocateids, + options?: MethodOptions): AxiosPromise; + allocateIds( + params: Params$Resource$Projects$Allocateids, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; allocateIds( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Allocateids, + callback: BodyResponseCallback): void; + allocateIds(callback: BodyResponseCallback): + void; + allocateIds( + paramsOrCallback?: Params$Resource$Projects$Allocateids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Allocateids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Allocateids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1133,28 +1149,41 @@ export namespace datastore_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - beginTransaction(params?: any, options?: MethodOptions): - AxiosPromise; beginTransaction( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Begintransaction, + options?: MethodOptions): AxiosPromise; + beginTransaction( + params: Params$Resource$Projects$Begintransaction, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + beginTransaction( + params: Params$Resource$Projects$Begintransaction, + callback: BodyResponseCallback): void; + beginTransaction( + callback: BodyResponseCallback): void; beginTransaction( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Begintransaction| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Begintransaction; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Begintransaction; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1191,26 +1220,37 @@ export namespace datastore_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - commit(params?: any, options?: MethodOptions): + commit(params?: Params$Resource$Projects$Commit, options?: MethodOptions): AxiosPromise; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Commit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + commit( + params: Params$Resource$Projects$Commit, + callback: BodyResponseCallback): void; + commit(callback: BodyResponseCallback): void; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Commit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Commit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Commit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1246,26 +1286,37 @@ export namespace datastore_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - lookup(params?: any, options?: MethodOptions): + lookup(params?: Params$Resource$Projects$Lookup, options?: MethodOptions): AxiosPromise; lookup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Lookup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; lookup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Lookup, + callback: BodyResponseCallback): void; + lookup(callback: BodyResponseCallback): void; + lookup( + paramsOrCallback?: Params$Resource$Projects$Lookup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Lookup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Lookup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1302,26 +1353,39 @@ export namespace datastore_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reserveIds(params?: any, options?: MethodOptions): - AxiosPromise; reserveIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Reserveids, + options?: MethodOptions): AxiosPromise; + reserveIds( + params: Params$Resource$Projects$Reserveids, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + reserveIds( + params: Params$Resource$Projects$Reserveids, + callback: BodyResponseCallback): void; + reserveIds(callback: BodyResponseCallback): void; reserveIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Reserveids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Reserveids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Reserveids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1357,26 +1421,39 @@ export namespace datastore_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rollback(params?: any, options?: MethodOptions): - AxiosPromise; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rollback( + params: Params$Resource$Projects$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1412,26 +1489,39 @@ export namespace datastore_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - runQuery(params?: any, options?: MethodOptions): - AxiosPromise; runQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Runquery, + options?: MethodOptions): AxiosPromise; + runQuery( + params: Params$Resource$Projects$Runquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; runQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Runquery, + callback: BodyResponseCallback): void; + runQuery(callback: BodyResponseCallback): void; + runQuery( + paramsOrCallback?: Params$Resource$Projects$Runquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Runquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Runquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1453,4 +1543,110 @@ export namespace datastore_v1beta3 { } } } + + export interface Params$Resource$Projects$Allocateids { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$AllocateIdsRequest; + } + export interface Params$Resource$Projects$Begintransaction { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$BeginTransactionRequest; + } + export interface Params$Resource$Projects$Commit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$CommitRequest; + } + export interface Params$Resource$Projects$Lookup { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$LookupRequest; + } + export interface Params$Resource$Projects$Reserveids { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$ReserveIdsRequest; + } + export interface Params$Resource$Projects$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackRequest; + } + export interface Params$Resource$Projects$Runquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the project against which to make the request. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$RunQueryRequest; + } } diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index 73e56d5c226..02ba7ed8d54 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace deploymentmanager_alpha { + export interface Options extends GlobalOptions { version: 'alpha'; } + /** * Google Cloud Deployment Manager Alpha API * @@ -85,13 +88,13 @@ export namespace deploymentmanager_alpha { /** * Method regex where this policy will apply. */ - methodMatch: string; + methodMatch?: string; /** * Deployment manager will poll instances for this API resource setting a * RUNNING state, and blocking until polling conditions tell whether the * resource is completed or failed. */ - pollingOptions: Schema$PollingOptions; + pollingOptions?: Schema$PollingOptions; } /** * Specifies the audit configuration for a service. The configuration @@ -119,14 +122,14 @@ export namespace deploymentmanager_alpha { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; - exemptedMembers: string[]; + auditLogConfigs?: Schema$AuditLogConfig[]; + exemptedMembers?: string[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -142,11 +145,11 @@ export namespace deploymentmanager_alpha { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of [Binding.members][]. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Authorization-related information used by Cloud Audit Logging. @@ -155,14 +158,14 @@ export namespace deploymentmanager_alpha { /** * The type of the permission that was checked. */ - permissionType: string; + permissionType?: string; } /** * Basic Auth used as a credential. */ export interface Schema$BasicAuth { - password: string; - user: string; + password?: string; + user?: string; } /** * Associates `members` with a `role`. @@ -174,7 +177,7 @@ export namespace deploymentmanager_alpha { * bindings, including their conditions, are examined independently. This * field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER. */ - condition: Schema$Expr; + condition?: Schema$Expr; /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * `allUsers`: A special @@ -190,12 +193,12 @@ export namespace deploymentmanager_alpha { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. */ - role: string; + role?: string; } /** * CollectionOverride allows resource handling overrides for specific @@ -205,15 +208,15 @@ export namespace deploymentmanager_alpha { /** * The collection that identifies this resource within its service. */ - collection: string; + collection?: string; /** * Custom verb method mappings to support unordered list API mappings. */ - methodMap: Schema$MethodMap; + methodMap?: Schema$MethodMap; /** * The options to apply to this resource-level override */ - options: Schema$Options; + options?: Schema$Options; } /** * Holds the composite type. @@ -223,16 +226,16 @@ export namespace deploymentmanager_alpha { * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the composite type was created, in RFC3339 * text format. */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -241,30 +244,30 @@ export namespace deploymentmanager_alpha { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$CompositeTypeLabelEntry[]; + labels?: Schema$CompositeTypeLabelEntry[]; /** * Name of the composite type, must follow the expression: * [a-z]([-a-z0-9_.]{0,61}[a-z0-9])?. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this composite type. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the type provider. */ - selfLink: string; - status: string; + selfLink?: string; + status?: string; /** * Files for the template type. */ - templateContents: Schema$TemplateContents; + templateContents?: Schema$TemplateContents; } export interface Schema$CompositeTypeLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * A response that returns all Composite Types supported by Deployment Manager @@ -274,11 +277,11 @@ export namespace deploymentmanager_alpha { * Output only. A list of resource composite types supported by Deployment * Manager. */ - compositeTypes: Schema$CompositeType[]; + compositeTypes?: Schema$CompositeType[]; /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } /** * A condition to be met. @@ -287,35 +290,35 @@ export namespace deploymentmanager_alpha { /** * Trusted attributes supplied by the IAM system. */ - iam: string; + iam?: string; /** * An operator to apply the subject with. */ - op: string; + op?: string; /** * Trusted attributes discharged by the service. */ - svc: string; + svc?: string; /** * Trusted attributes supplied by any service that owns resources and uses * the IAM system for access control. */ - sys: string; + sys?: string; /** * DEPRECATED. Use 'values' instead. */ - value: string; + value?: string; /** * The objects of the condition. This is mutually exclusive with * 'value'. */ - values: string[]; + values?: string[]; } export interface Schema$ConfigFile { /** * The contents of the file. */ - content: string; + content?: string; } /** * BaseType that describes a service-backed Type. @@ -324,19 +327,19 @@ export namespace deploymentmanager_alpha { /** * Allows resource handling overrides for specific collections */ - collectionOverrides: Schema$CollectionOverride[]; + collectionOverrides?: Schema$CollectionOverride[]; /** * Credential used when interacting with this type. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * Descriptor Url for the this type. */ - descriptorUrl: string; + descriptorUrl?: string; /** * Options to apply when handling any resources in this service. */ - options: Schema$Options; + options?: Schema$Options; } /** * The credential used by Deployment Manager and TypeProvider. Only one of the @@ -346,26 +349,26 @@ export namespace deploymentmanager_alpha { /** * Basic Auth Credential, only used by TypeProvider. */ - basicAuth: Schema$BasicAuth; + basicAuth?: Schema$BasicAuth; /** * Service Account Credential, only used by Deployment. */ - serviceAccount: Schema$ServiceAccount; + serviceAccount?: Schema$ServiceAccount; /** * Specify to use the project default credential, only supported by * Deployment. */ - useProjectDefault: boolean; + useProjectDefault?: boolean; } export interface Schema$Deployment { /** * User provided default credential for the deployment. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * An optional user-provided description of the deployment. */ - description: string; + description?: string; /** * Provides a fingerprint to use in requests to modify a deployment, such as * update(), stop(), and cancelPreview() requests. A fingerprint is a @@ -376,16 +379,16 @@ export namespace deploymentmanager_alpha { * after every request to modify data. To get the latest fingerprint value, * perform a get() request to a deployment. */ - fingerprint: string; + fingerprint?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the deployment was created, in RFC3339 text * format . */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -394,12 +397,12 @@ export namespace deploymentmanager_alpha { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$DeploymentLabelEntry[]; + labels?: Schema$DeploymentLabelEntry[]; /** * Output only. URL of the manifest representing the last manifest that was * successfully deployed. */ - manifest: string; + manifest?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -409,39 +412,39 @@ export namespace deploymentmanager_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this deployment. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Map of outputs from the last manifest that deployed * successfully. */ - outputs: Schema$DeploymentOutputsEntry[]; + outputs?: Schema$DeploymentOutputsEntry[]; /** * Output only. Self link for the deployment. */ - selfLink: string; + selfLink?: string; /** * [Input Only] The parameters that define your deployment, including the * deployment configuration and relevant templates. */ - target: Schema$TargetConfiguration; + target?: Schema$TargetConfiguration; /** * Output only. If Deployment Manager is currently updating or previewing an * update to this deployment, the updated configuration appears here. */ - update: Schema$DeploymentUpdate; + update?: Schema$DeploymentUpdate; } export interface Schema$DeploymentLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$DeploymentOutputsEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$DeploymentsCancelPreviewRequest { /** @@ -455,7 +458,7 @@ export namespace deploymentmanager_alpha { * after every request to modify a deployment. To get the latest fingerprint * value, perform a get() request on the deployment. */ - fingerprint: string; + fingerprint?: string; } /** * A response containing a partial list of deployments and a page token used @@ -465,11 +468,11 @@ export namespace deploymentmanager_alpha { /** * Output only. The deployments contained in this response. */ - deployments: Schema$Deployment[]; + deployments?: Schema$Deployment[]; /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$DeploymentsStopRequest { /** @@ -483,19 +486,19 @@ export namespace deploymentmanager_alpha { * request to modify a deployment. To get the latest fingerprint value, * perform a get() request on the deployment. */ - fingerprint: string; + fingerprint?: string; } export interface Schema$DeploymentUpdate { /** * Output only. The user-provided default credential to use when deploying * this preview. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * Output only. An optional user-provided description of the deployment * after the current update has been applied. */ - description: string; + description?: string; /** * Output only. Map of labels; provided by the client when the resource is * created or updated. Specifically: Label keys must be between 1 and 63 @@ -504,27 +507,27 @@ export namespace deploymentmanager_alpha { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$DeploymentUpdateLabelEntry[]; + labels?: Schema$DeploymentUpdateLabelEntry[]; /** * Output only. URL of the manifest representing the update configuration of * this deployment. */ - manifest: string; + manifest?: string; } export interface Schema$DeploymentUpdateLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$Diagnostic { /** * JsonPath expression on the resource that if non empty, indicates that * this field needs to be extracted as a diagnostic. */ - field: string; + field?: string; /** * Level to record this diagnostic. */ - level: string; + level?: string; } /** * Represents an expression text. Example: title: "User account @@ -536,34 +539,34 @@ export namespace deploymentmanager_alpha { * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. */ - description: string; + description?: string; /** * Textual representation of an expression in Common Expression Language * syntax. The application context of the containing message determines * which well-known feature set of CEL is supported. */ - expression: string; + expression?: string; /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. */ - location: string; + location?: string; /** * An optional title for the expression, i.e. a short string describing its * purpose. This can be used e.g. in UIs which allow to enter the * expression. */ - title: string; + title?: string; } export interface Schema$ImportFile { /** * The contents of the file. */ - content: string; + content?: string; /** * The name of the file. */ - name: string; + name?: string; } /** * InputMapping creates a 'virtual' property that will be injected @@ -573,19 +576,19 @@ export namespace deploymentmanager_alpha { /** * The name of the field that is going to be injected. */ - fieldName: string; + fieldName?: string; /** * The location where this mapping applies. */ - location: string; + location?: string; /** * Regex to evaluate on method to decide if input applies. */ - methodMatch: string; + methodMatch?: string; /** * A jsonPath expression to select an element. */ - value: string; + value?: string; } /** * Specifies what kind of log the caller must write @@ -594,15 +597,15 @@ export namespace deploymentmanager_alpha { /** * Cloud audit options. */ - cloudAudit: Schema$LogConfigCloudAuditOptions; + cloudAudit?: Schema$LogConfigCloudAuditOptions; /** * Counter options. */ - counter: Schema$LogConfigCounterOptions; + counter?: Schema$LogConfigCounterOptions; /** * Data access options. */ - dataAccess: Schema$LogConfigDataAccessOptions; + dataAccess?: Schema$LogConfigDataAccessOptions; } /** * Write a Cloud Audit log @@ -611,11 +614,11 @@ export namespace deploymentmanager_alpha { /** * Information used by the Cloud Audit Logging pipeline. */ - authorizationLoggingOptions: Schema$AuthorizationLoggingOptions; + authorizationLoggingOptions?: Schema$AuthorizationLoggingOptions; /** * The log_name to populate in the Cloud Audit Record. */ - logName: string; + logName?: string; } /** * Increment a streamz counter with the specified metric and field names. @@ -638,11 +641,11 @@ export namespace deploymentmanager_alpha { /** * The field value to attribute. */ - field: string; + field?: string; /** * The metric to update. */ - metric: string; + metric?: string; } /** * Write a Data Access (Gin) log @@ -652,43 +655,43 @@ export namespace deploymentmanager_alpha { * Whether Gin logging should happen in a fail-closed manner at the caller. * This is relevant only in the LocalIAM implementation, for now. */ - logMode: string; + logMode?: string; } export interface Schema$Manifest { /** * Output only. The YAML configuration for this manifest. */ - config: Schema$ConfigFile; + config?: Schema$ConfigFile; /** * Output only. The fully-expanded configuration file, including any * templates and references. */ - expandedConfig: string; + expandedConfig?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. The imported files for this manifest. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; /** * Output only. Timestamp when the manifest was created, in RFC3339 text * format. */ - insertTime: string; + insertTime?: string; /** * Output only. The YAML layout for this manifest. */ - layout: string; + layout?: string; /** * Output only. The name of the manifest. */ - name: string; + name?: string; /** * Output only. Self link for the manifest. */ - selfLink: string; + selfLink?: string; } /** * A response containing a partial list of manifests and a page token used to @@ -698,11 +701,11 @@ export namespace deploymentmanager_alpha { /** * Output only. Manifests contained in this list response. */ - manifests: Schema$Manifest[]; + manifests?: Schema$Manifest[]; /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } /** * Deployment Manager will call these methods during the events of @@ -713,26 +716,26 @@ export namespace deploymentmanager_alpha { * The action identifier for the create method to be used for this * collection */ - create: string; + create?: string; /** * The action identifier for the delete method to be used for this * collection */ - delete: string; + delete?: string; /** * The action identifier for the get method to be used for this collection */ - get: string; + get?: string; /** * The action identifier for the setIamPolicy method to be used for this * collection */ - setIamPolicy: string; + setIamPolicy?: string; /** * The action identifier for the update method to be used for this * collection */ - update: string; + update?: string; } /** * An Operation resource, used to manage asynchronous API requests. (== @@ -745,61 +748,61 @@ export namespace deploymentmanager_alpha { /** * [Output Only] Reserved for future use. */ - clientOperationId: string; + clientOperationId?: string; /** * [Deprecated] This field is deprecated. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] A textual description of the operation, which is set when * the operation is created. */ - description: string; + description?: string; /** * [Output Only] The time that this operation was completed. This value is * in RFC3339 text format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors are generated during processing of the operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as NOT FOUND. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output Only] If the operation fails, this field contains the HTTP error * status code that was returned. For example, a 404 means the resource was * not found. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This value is * in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always compute#operation for * Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The type of operation, such as insert, update, or delete, * and so on. */ - operationType: string; + operationType?: string; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -807,61 +810,61 @@ export namespace deploymentmanager_alpha { * complete. This number should monotonically increase as the operation * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The URL of the region where the operation resides. Only * available when performing regional operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] The status of the operation, which can be one of the * following: PENDING, RUNNING, or DONE. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The unique target ID, which identifies a specific * incarnation of the target resource. */ - targetId: string; + targetId?: string; /** * [Output Only] The URL of the resource that the operation modifies. For * operations related to creating a snapshot, this points to the persistent * disk that the snapshot was created from. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If warning messages are generated during processing of the * operation, this field will be populated. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] The URL of the zone where the operation resides. Only * available when performing per-zone operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - zone: string; + zone?: string; } /** * A response containing a partial list of operations and a page token used to @@ -871,11 +874,11 @@ export namespace deploymentmanager_alpha { /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. Operations contained in this list response. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Options allows customized resource handling by Deployment Manager. @@ -884,21 +887,21 @@ export namespace deploymentmanager_alpha { /** * Options regarding how to thread async requests. */ - asyncOptions: Schema$AsyncOptions[]; + asyncOptions?: Schema$AsyncOptions[]; /** * The mappings that apply for requests. */ - inputMappings: Schema$InputMapping[]; + inputMappings?: Schema$InputMapping[]; /** * The json path to the field in the resource JSON body into which the * resource name should be mapped. Leaving this empty indicates that there * should be no mapping performed. */ - nameProperty: string; + nameProperty?: string; /** * Options for how to validate and process properties on a resource. */ - validationOptions: Schema$ValidationOptions; + validationOptions?: Schema$ValidationOptions; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -920,12 +923,12 @@ export namespace deploymentmanager_alpha { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -937,8 +940,8 @@ export namespace deploymentmanager_alpha { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; - iamOwned: boolean; + etag?: string; + iamOwned?: boolean; /** * If more than one rule is specified, the rules are applied in the * following manner: - All matching LOG rules are always applied. - If any @@ -948,103 +951,103 @@ export namespace deploymentmanager_alpha { * will be applied if one or more matching rule requires logging. - * Otherwise, if no rule applies, permission is denied. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; /** * Deprecated. */ - version: number; + version?: number; } export interface Schema$PollingOptions { /** * An array of diagnostics to be collected by Deployment Manager, these * diagnostics will be displayed to the user. */ - diagnostics: Schema$Diagnostic[]; + diagnostics?: Schema$Diagnostic[]; /** * JsonPath expression that determines if the request failed. */ - failCondition: string; + failCondition?: string; /** * JsonPath expression that determines if the request is completed. */ - finishCondition: string; + finishCondition?: string; /** * JsonPath expression that evaluates to string, it indicates where to poll. */ - pollingLink: string; + pollingLink?: string; /** * JsonPath expression, after polling is completed, indicates where to fetch * the resource. */ - targetLink: string; + targetLink?: string; } export interface Schema$Resource { /** * The Access Control Policy set on this resource. */ - accessControl: Schema$ResourceAccessControl; + accessControl?: Schema$ResourceAccessControl; /** * Output only. The evaluated properties of the resource with references * expanded. Returned as serialized YAML. */ - finalProperties: string; + finalProperties?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the resource was created or acquired, in * RFC3339 text format . */ - insertTime: string; + insertTime?: string; /** * Output only. The last used credential that successfully created/updated * the resource. */ - lastUsedCredential: Schema$Credential; + lastUsedCredential?: Schema$Credential; /** * Output only. URL of the manifest representing the current configuration * of this resource. */ - manifest: string; + manifest?: string; /** * Output only. The name of the resource as it appears in the YAML config. */ - name: string; + name?: string; /** * Output only. The current properties of the resource before any references * have been filled in. Returned as serialized YAML. */ - properties: string; + properties?: string; /** * Output only. In case this is an action, it will show the runtimePolicies * on which this action will run in the deployment */ - runtimePolicies: string[]; + runtimePolicies?: string[]; /** * Output only. The type of the resource, for example compute.v1.instance, * or cloudfunctions.v1beta1.function. */ - type: string; + type?: string; /** * Output only. If Deployment Manager is currently updating or previewing an * update to this resource, the updated configuration appears here. */ - update: Schema$ResourceUpdate; + update?: Schema$ResourceUpdate; /** * Output only. Timestamp when the resource was updated, in RFC3339 text * format . */ - updateTime: string; + updateTime?: string; /** * Output only. The URL of the actual resource. */ - url: string; + url?: string; /** * Output only. If warning messages are generated during processing of this * resource, this field will be populated. */ - warnings: any[]; + warnings?: any[]; } /** * The access controls set on the resource. @@ -1053,7 +1056,7 @@ export namespace deploymentmanager_alpha { /** * The GCP IAM Policy to set on the resource. */ - gcpIamPolicy: string; + gcpIamPolicy?: string; } /** * A response containing a partial list of resources and a page token used to @@ -1063,61 +1066,61 @@ export namespace deploymentmanager_alpha { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Resources contained in this list response. */ - resources: Schema$Resource[]; + resources?: Schema$Resource[]; } export interface Schema$ResourceUpdate { /** * The Access Control Policy to set on this resource after updating the * resource itself. */ - accessControl: Schema$ResourceAccessControl; + accessControl?: Schema$ResourceAccessControl; /** * Output only. The credential that will be used creating/updating this * resource. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * Output only. If errors are generated during update of the resource, this * field will be populated. */ - error: any; + error?: any; /** * Output only. The expanded properties of the resource with reference * values expanded. Returned as serialized YAML. */ - finalProperties: string; + finalProperties?: string; /** * Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. */ - intent: string; + intent?: string; /** * Output only. URL of the manifest representing the update configuration of * this resource. */ - manifest: string; + manifest?: string; /** * Output only. The set of updated properties for this resource, before * references are expanded. Returned as serialized YAML. */ - properties: string; + properties?: string; /** * Output only. In case this is an action, it will show the runtimePolicies * that this action will have after updating the deployment. */ - runtimePolicies: string[]; + runtimePolicies?: string[]; /** * Output only. The state of the resource. */ - state: string; + state?: string; /** * Output only. If warning messages are generated during processing of this * resource, this field will be populated. */ - warnings: any[]; + warnings?: any[]; } /** * A rule to be applied in a Policy. @@ -1126,38 +1129,38 @@ export namespace deploymentmanager_alpha { /** * Required */ - action: string; + action?: string; /** * Additional restrictions that must be met. All conditions must pass for * the rule to match. */ - conditions: Schema$Condition[]; + conditions?: Schema$Condition[]; /** * Human-readable description of the rule. */ - description: string; + description?: string; /** * If one or more 'in' clauses are specified, the rule matches if * the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. */ - ins: string[]; + ins?: string[]; /** * The config returned to callers of tech.iam.IAM.CheckPolicy for any * entries that match the LOG action. */ - logConfigs: Schema$LogConfig[]; + logConfigs?: Schema$LogConfig[]; /** * If one or more 'not_in' clauses are specified, the rule matches * if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. */ - notIns: string[]; + notIns?: string[]; /** * A permission is a string of form '..' (e.g., * 'storage.buckets.list'). A value of '*' matches all * permissions, and a verb part of '*' (e.g., * 'storage.buckets.*') matches all verbs. */ - permissions: string[]; + permissions?: string[]; } /** * Service Account used as a credential. @@ -1167,19 +1170,19 @@ export namespace deploymentmanager_alpha { * The IAM service account email address like * test@myproject.iam.gserviceaccount.com */ - email: string; + email?: string; } export interface Schema$TargetConfiguration { /** * The configuration to use for this deployment. */ - config: Schema$ConfigFile; + config?: Schema$ConfigFile; /** * Specifies any files to import for this configuration. This can be used to * import templates or other files. For example, you might import a text * file in order to use the file in a template. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; } /** * Files that make up the template contents of a template type. @@ -1188,23 +1191,23 @@ export namespace deploymentmanager_alpha { /** * Import files referenced by the main template. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; /** * Which interpreter (python or jinja) should be used during expansion. */ - interpreter: string; + interpreter?: string; /** * The filename of the mainTemplate */ - mainTemplate: string; + mainTemplate?: string; /** * The contents of the template schema. */ - schema: string; + schema?: string; /** * The contents of the main template file. */ - template: string; + template?: string; } export interface Schema$TestPermissionsRequest { /** @@ -1212,14 +1215,14 @@ export namespace deploymentmanager_alpha { * with wildcards (such as '*' or 'storage.*') are not * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TestPermissionsResponse { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A resource type supported by Deployment Manager. @@ -1228,20 +1231,20 @@ export namespace deploymentmanager_alpha { /** * Base Type (configurable service) that backs this Type. */ - configurableService: Schema$ConfigurableService; + configurableService?: Schema$ConfigurableService; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the type was created, in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -1250,20 +1253,20 @@ export namespace deploymentmanager_alpha { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$TypeLabelEntry[]; + labels?: Schema$TypeLabelEntry[]; /** * Name of the type. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this type. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the type. */ - selfLink: string; + selfLink?: string; } /** * Contains detailed information about a composite type, base type, or base @@ -1273,51 +1276,51 @@ export namespace deploymentmanager_alpha { /** * The description of the type. */ - description: string; + description?: string; /** * For swagger 2.0 externalDocs field will be used. For swagger 1.2 this * field will be empty. */ - documentationLink: string; + documentationLink?: string; /** * Output only. Type of the output. Always deploymentManager#TypeInfo for * TypeInfo. */ - kind: string; + kind?: string; /** * The base type or composite type name. */ - name: string; + name?: string; /** * For base types with a collection, we return a schema and documentation * link For template types, we return only a schema */ - schema: Schema$TypeInfoSchemaInfo; + schema?: Schema$TypeInfoSchemaInfo; /** * Output only. Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The title on the API descriptor URL provided. */ - title: string; + title?: string; } export interface Schema$TypeInfoSchemaInfo { /** * The properties that this composite type or base type collection accept as * input, represented as a json blob, format is: JSON Schema Draft V4 */ - input: string; + input?: string; /** * The properties that this composite type or base type collection exposes * as output, these properties can be used for references, represented as * json blob, format is: JSON Schema Draft V4 */ - output: string; + output?: string; } export interface Schema$TypeLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * A type provider that describes a service-backed Type. @@ -1326,29 +1329,29 @@ export namespace deploymentmanager_alpha { /** * Allows resource handling overrides for specific collections */ - collectionOverrides: Schema$CollectionOverride[]; + collectionOverrides?: Schema$CollectionOverride[]; /** * Credential used when interacting with this type. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * Descriptor Url for the this type provider. */ - descriptorUrl: string; + descriptorUrl?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the type provider was created, in RFC3339 * text format. */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -1357,7 +1360,7 @@ export namespace deploymentmanager_alpha { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$TypeProviderLabelEntry[]; + labels?: Schema$TypeProviderLabelEntry[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1367,24 +1370,24 @@ export namespace deploymentmanager_alpha { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this type provider. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Options to apply when handling any resources in this service. */ - options: Schema$Options; + options?: Schema$Options; /** * Output only. Self link for the type provider. */ - selfLink: string; + selfLink?: string; } export interface Schema$TypeProviderLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * A response that returns all Type Providers supported by Deployment Manager @@ -1393,22 +1396,22 @@ export namespace deploymentmanager_alpha { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource type providers supported by Deployment * Manager. */ - typeProviders: Schema$TypeProvider[]; + typeProviders?: Schema$TypeProvider[]; } export interface Schema$TypeProvidersListTypesResponse { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource type info. */ - types: Schema$TypeInfo[]; + types?: Schema$TypeInfo[]; } /** * A response that returns all Types supported by Deployment Manager @@ -1417,11 +1420,11 @@ export namespace deploymentmanager_alpha { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource types supported by Deployment Manager. */ - types: Schema$Type[]; + types?: Schema$Type[]; } /** * Options for how to validate and process properties on a resource. @@ -1431,13 +1434,14 @@ export namespace deploymentmanager_alpha { * Customize how deployment manager will validate the resource against * schema errors. */ - schemaValidation: string; + schemaValidation?: string; /** * Specify what to do with extra properties when executing a request. */ - undeclaredProperties: string; + undeclaredProperties?: string; } + export class Resource$Compositetypes { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -1463,26 +1467,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Compositetypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Compositetypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Compositetypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1520,24 +1537,35 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Compositetypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Compositetypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Compositetypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Compositetypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1575,26 +1603,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Compositetypes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Compositetypes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Compositetypes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1635,29 +1676,42 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Compositetypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Compositetypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Compositetypes$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Compositetypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1697,26 +1751,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Compositetypes$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Compositetypes$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Compositetypes$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1755,26 +1822,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Compositetypes$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Compositetypes$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Compositetypes$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1799,6 +1879,145 @@ export namespace deploymentmanager_alpha { } } + export interface Params$Resource$Compositetypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Compositetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the composite type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Compositetypes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$CompositeType; + } + export interface Params$Resource$Compositetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Compositetypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the composite type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$CompositeType; + } + export interface Params$Resource$Compositetypes$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the composite type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$CompositeType; + } + + export class Resource$Deployments { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -1826,26 +2045,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancelPreview(params?: any, options?: MethodOptions): - AxiosPromise; cancelPreview( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Cancelpreview, + options?: MethodOptions): AxiosPromise; + cancelPreview( + params: Params$Resource$Deployments$Cancelpreview, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancelPreview( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Cancelpreview, + callback: BodyResponseCallback): void; + cancelPreview(callback: BodyResponseCallback): void; + cancelPreview( + paramsOrCallback?: Params$Resource$Deployments$Cancelpreview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Cancelpreview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Cancelpreview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1884,26 +2116,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Deployments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Deployments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1941,23 +2186,34 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Deployments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Deployments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Deployments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Deployments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1996,26 +2252,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Deployments$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Deployments$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2056,26 +2324,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Deployments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Deployments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2116,28 +2397,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Deployments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Deployments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Deployments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Deployments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2180,26 +2471,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Deployments$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Deployments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Deployments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2239,26 +2542,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Deployments$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Deployments$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2298,25 +2613,37 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Deployments$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Deployments$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Deployments$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2355,28 +2682,41 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Deployments$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Deployments$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Deployments$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Deployments$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Deployments$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2419,26 +2759,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Deployments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Deployments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2463,112 +2816,422 @@ export namespace deploymentmanager_alpha { } } - export class Resource$Manifests { - root: Deploymentmanager; - constructor(root: Deploymentmanager) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Deployments$Cancelpreview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentsCancelPreviewRequest; + } + export interface Params$Resource$Deployments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * deploymentmanager.manifests.get - * @desc Gets information about a specific manifest. - * @alias deploymentmanager.manifests.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.deployment The name of the deployment for this request. - * @param {string} params.manifest The name of the manifest for this request. - * @param {string} params.project The project ID for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * Sets the policy to use for deleting resources. */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'deployment', 'manifest'], - pathParams: ['deployment', 'manifest', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * deploymentmanager.manifests.list - * @desc Lists all manifests for a given deployment. - * @alias deploymentmanager.manifests.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.deployment The name of the deployment for this request. - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. - * @param {string} params.project The project ID for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * Project ID for this request. */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Deployments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * If set to true, creates a deployment and creates "shell" resources but + * does not actually instantiate these resources. This allows you to preview + * what your deployment looks like. After previewing a deployment, you can + * deploy your resources by making a request with the update() method or you + * can use the cancelPreview() method to cancel the preview altogether. Note + * that the deployment will still exist after you cancel the preview and you + * must separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + export interface Params$Resource$Deployments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * If set to true, updates the deployment and creates and updates the + * "shell" resources but does not actually alter or instantiate these + * resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this + * is set to true. After previewing a deployment, you can deploy your + * resources by making a request with the update() or you can + * cancelPreview() to remove the preview altogether. Note that the + * deployment will still exist after you cancel the preview and you must + * separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + export interface Params$Resource$Deployments$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Deployments$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentsStopRequest; + } + export interface Params$Resource$Deployments$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Deployments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * If set to true, updates the deployment and creates and updates the + * "shell" resources but does not actually alter or instantiate these + * resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this + * is set to true. After previewing a deployment, you can deploy your + * resources by making a request with the update() or you can + * cancelPreview() to remove the preview altogether. Note that the + * deployment will still exist after you cancel the preview and you must + * separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + + + export class Resource$Manifests { + root: Deploymentmanager; + constructor(root: Deploymentmanager) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * deploymentmanager.manifests.get + * @desc Gets information about a specific manifest. + * @alias deploymentmanager.manifests.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.deployment The name of the deployment for this request. + * @param {string} params.manifest The name of the manifest for this request. + * @param {string} params.project The project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Manifests$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Manifests$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Manifests$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Manifests$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Manifests$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Manifests$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * deploymentmanager.manifests.list + * @desc Lists all manifests for a given deployment. + * @alias deploymentmanager.manifests.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.deployment The name of the deployment for this request. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project The project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list(params?: Params$Resource$Manifests$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Manifests$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Manifests$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Manifests$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Manifests$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Manifests$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2593,6 +3256,85 @@ export namespace deploymentmanager_alpha { } } + export interface Params$Resource$Manifests$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The name of the manifest for this request. + */ + manifest?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Manifests$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Operations { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2618,23 +3360,34 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2675,28 +3428,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2721,6 +3484,77 @@ export namespace deploymentmanager_alpha { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation for this request. + */ + operation?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Resources { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2747,23 +3581,33 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Resources$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Resources$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resources$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resources$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Resources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2805,28 +3649,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Resources$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resources$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Resources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Resources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2851,6 +3705,85 @@ export namespace deploymentmanager_alpha { } } + export interface Params$Resource$Resources$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Resources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Typeproviders { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2876,26 +3809,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Typeproviders$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Typeproviders$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2933,24 +3879,35 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Typeproviders$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Typeproviders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Typeproviders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Typeproviders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2989,26 +3946,38 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getType(params?: any, options?: MethodOptions): - AxiosPromise; getType( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Gettype, + options?: MethodOptions): AxiosPromise; + getType( + params: Params$Resource$Typeproviders$Gettype, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getType( + params: Params$Resource$Typeproviders$Gettype, + callback: BodyResponseCallback): void; + getType(callback: BodyResponseCallback): void; getType( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Typeproviders$Gettype| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Gettype; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Gettype; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3046,26 +4015,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Typeproviders$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Typeproviders$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Typeproviders$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3106,29 +4088,40 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Typeproviders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Typeproviders$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Typeproviders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Typeproviders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3171,29 +4164,45 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listTypes(params?: any, options?: MethodOptions): + listTypes( + params?: Params$Resource$Typeproviders$Listtypes, + options?: MethodOptions): AxiosPromise; listTypes( - params?: any, - options?: MethodOptions| + params: Params$Resource$Typeproviders$Listtypes, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + listTypes( + params: Params$Resource$Typeproviders$Listtypes, + callback: BodyResponseCallback): + void; + listTypes(callback: + BodyResponseCallback): void; listTypes( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Typeproviders$Listtypes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Listtypes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Listtypes; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3234,26 +4243,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Typeproviders$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Typeproviders$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3292,26 +4314,39 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Typeproviders$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Typeproviders$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3336,6 +4371,222 @@ export namespace deploymentmanager_alpha { } } + export interface Params$Resource$Typeproviders$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Gettype { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + type?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$TypeProvider; + } + export interface Params$Resource$Typeproviders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Typeproviders$Listtypes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + /** + * Request body metadata + */ + resource?: Schema$TypeProvider; + } + export interface Params$Resource$Typeproviders$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + /** + * Request body metadata + */ + resource?: Schema$TypeProvider; + } + + export class Resource$Types { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -3361,26 +4612,37 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Types$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Types$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Types$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3418,21 +4680,33 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Types$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Types$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Types$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Types$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3470,26 +4744,37 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Types$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Types$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Types$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3529,26 +4814,37 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Types$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Types$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Types$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3586,26 +4882,37 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Types$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Types$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Types$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3644,26 +4951,37 @@ export namespace deploymentmanager_alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Types$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Types$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Types$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3687,4 +5005,142 @@ export namespace deploymentmanager_alpha { } } } + + export interface Params$Resource$Types$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type for this request. + */ + type?: string; + } + export interface Params$Resource$Types$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type for this request. + */ + type?: string; + } + export interface Params$Resource$Types$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Type; + } + export interface Params$Resource$Types$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Types$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type for this request. + */ + type?: string; + /** + * Request body metadata + */ + resource?: Schema$Type; + } + export interface Params$Resource$Types$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type for this request. + */ + type?: string; + /** + * Request body metadata + */ + resource?: Schema$Type; + } } diff --git a/src/apis/deploymentmanager/v2.ts b/src/apis/deploymentmanager/v2.ts index 261c5f6a425..602f719739d 100644 --- a/src/apis/deploymentmanager/v2.ts +++ b/src/apis/deploymentmanager/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace deploymentmanager_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Google Cloud Deployment Manager API * @@ -100,14 +103,14 @@ export namespace deploymentmanager_v2 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; - exemptedMembers: string[]; + auditLogConfigs?: Schema$AuditLogConfig[]; + exemptedMembers?: string[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -123,11 +126,11 @@ export namespace deploymentmanager_v2 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of [Binding.members][]. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Authorization-related information used by Cloud Audit Logging. @@ -136,7 +139,7 @@ export namespace deploymentmanager_v2 { /** * The type of the permission that was checked. */ - permissionType: string; + permissionType?: string; } /** * Associates `members` with a `role`. @@ -148,7 +151,7 @@ export namespace deploymentmanager_v2 { * bindings, including their conditions, are examined independently. This * field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER. */ - condition: Schema$Expr; + condition?: Schema$Expr; /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * `allUsers`: A special @@ -164,12 +167,12 @@ export namespace deploymentmanager_v2 { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. */ - role: string; + role?: string; } /** * A condition to be met. @@ -178,41 +181,41 @@ export namespace deploymentmanager_v2 { /** * Trusted attributes supplied by the IAM system. */ - iam: string; + iam?: string; /** * An operator to apply the subject with. */ - op: string; + op?: string; /** * Trusted attributes discharged by the service. */ - svc: string; + svc?: string; /** * Trusted attributes supplied by any service that owns resources and uses * the IAM system for access control. */ - sys: string; + sys?: string; /** * DEPRECATED. Use 'values' instead. */ - value: string; + value?: string; /** * The objects of the condition. This is mutually exclusive with * 'value'. */ - values: string[]; + values?: string[]; } export interface Schema$ConfigFile { /** * The contents of the file. */ - content: string; + content?: string; } export interface Schema$Deployment { /** * An optional user-provided description of the deployment. */ - description: string; + description?: string; /** * Provides a fingerprint to use in requests to modify a deployment, such as * update(), stop(), and cancelPreview() requests. A fingerprint is a @@ -223,16 +226,16 @@ export namespace deploymentmanager_v2 { * after every request to modify data. To get the latest fingerprint value, * perform a get() request to a deployment. */ - fingerprint: string; + fingerprint?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the deployment was created, in RFC3339 text * format . */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -241,12 +244,12 @@ export namespace deploymentmanager_v2 { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$DeploymentLabelEntry[]; + labels?: Schema$DeploymentLabelEntry[]; /** * Output only. URL of the manifest representing the last manifest that was * successfully deployed. */ - manifest: string; + manifest?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -256,30 +259,30 @@ export namespace deploymentmanager_v2 { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this deployment. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the deployment. */ - selfLink: string; + selfLink?: string; /** * [Input Only] The parameters that define your deployment, including the * deployment configuration and relevant templates. */ - target: Schema$TargetConfiguration; + target?: Schema$TargetConfiguration; /** * Output only. If Deployment Manager is currently updating or previewing an * update to this deployment, the updated configuration appears here. */ - update: Schema$DeploymentUpdate; + update?: Schema$DeploymentUpdate; } export interface Schema$DeploymentLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$DeploymentsCancelPreviewRequest { /** @@ -293,7 +296,7 @@ export namespace deploymentmanager_v2 { * after every request to modify a deployment. To get the latest fingerprint * value, perform a get() request on the deployment. */ - fingerprint: string; + fingerprint?: string; } /** * A response containing a partial list of deployments and a page token used @@ -303,11 +306,11 @@ export namespace deploymentmanager_v2 { /** * Output only. The deployments contained in this response. */ - deployments: Schema$Deployment[]; + deployments?: Schema$Deployment[]; /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$DeploymentsStopRequest { /** @@ -321,14 +324,14 @@ export namespace deploymentmanager_v2 { * request to modify a deployment. To get the latest fingerprint value, * perform a get() request on the deployment. */ - fingerprint: string; + fingerprint?: string; } export interface Schema$DeploymentUpdate { /** * Output only. An optional user-provided description of the deployment * after the current update has been applied. */ - description: string; + description?: string; /** * Output only. Map of labels; provided by the client when the resource is * created or updated. Specifically: Label keys must be between 1 and 63 @@ -337,16 +340,16 @@ export namespace deploymentmanager_v2 { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$DeploymentUpdateLabelEntry[]; + labels?: Schema$DeploymentUpdateLabelEntry[]; /** * Output only. URL of the manifest representing the update configuration of * this deployment. */ - manifest: string; + manifest?: string; } export interface Schema$DeploymentUpdateLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * Represents an expression text. Example: title: "User account @@ -358,34 +361,34 @@ export namespace deploymentmanager_v2 { * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. */ - description: string; + description?: string; /** * Textual representation of an expression in Common Expression Language * syntax. The application context of the containing message determines * which well-known feature set of CEL is supported. */ - expression: string; + expression?: string; /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. */ - location: string; + location?: string; /** * An optional title for the expression, i.e. a short string describing its * purpose. This can be used e.g. in UIs which allow to enter the * expression. */ - title: string; + title?: string; } export interface Schema$ImportFile { /** * The contents of the file. */ - content: string; + content?: string; /** * The name of the file. */ - name: string; + name?: string; } /** * Specifies what kind of log the caller must write @@ -394,15 +397,15 @@ export namespace deploymentmanager_v2 { /** * Cloud audit options. */ - cloudAudit: Schema$LogConfigCloudAuditOptions; + cloudAudit?: Schema$LogConfigCloudAuditOptions; /** * Counter options. */ - counter: Schema$LogConfigCounterOptions; + counter?: Schema$LogConfigCounterOptions; /** * Data access options. */ - dataAccess: Schema$LogConfigDataAccessOptions; + dataAccess?: Schema$LogConfigDataAccessOptions; } /** * Write a Cloud Audit log @@ -411,11 +414,11 @@ export namespace deploymentmanager_v2 { /** * Information used by the Cloud Audit Logging pipeline. */ - authorizationLoggingOptions: Schema$AuthorizationLoggingOptions; + authorizationLoggingOptions?: Schema$AuthorizationLoggingOptions; /** * The log_name to populate in the Cloud Audit Record. */ - logName: string; + logName?: string; } /** * Increment a streamz counter with the specified metric and field names. @@ -438,11 +441,11 @@ export namespace deploymentmanager_v2 { /** * The field value to attribute. */ - field: string; + field?: string; /** * The metric to update. */ - metric: string; + metric?: string; } /** * Write a Data Access (Gin) log @@ -452,43 +455,43 @@ export namespace deploymentmanager_v2 { * Whether Gin logging should happen in a fail-closed manner at the caller. * This is relevant only in the LocalIAM implementation, for now. */ - logMode: string; + logMode?: string; } export interface Schema$Manifest { /** * Output only. The YAML configuration for this manifest. */ - config: Schema$ConfigFile; + config?: Schema$ConfigFile; /** * Output only. The fully-expanded configuration file, including any * templates and references. */ - expandedConfig: string; + expandedConfig?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. The imported files for this manifest. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; /** * Output only. Timestamp when the manifest was created, in RFC3339 text * format. */ - insertTime: string; + insertTime?: string; /** * Output only. The YAML layout for this manifest. */ - layout: string; + layout?: string; /** * Output only. The name of the manifest. */ - name: string; + name?: string; /** * Output only. Self link for the manifest. */ - selfLink: string; + selfLink?: string; } /** * A response containing a partial list of manifests and a page token used to @@ -498,11 +501,11 @@ export namespace deploymentmanager_v2 { /** * Output only. Manifests contained in this list response. */ - manifests: Schema$Manifest[]; + manifests?: Schema$Manifest[]; /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } /** * An Operation resource, used to manage asynchronous API requests. (== @@ -515,61 +518,61 @@ export namespace deploymentmanager_v2 { /** * [Output Only] Reserved for future use. */ - clientOperationId: string; + clientOperationId?: string; /** * [Deprecated] This field is deprecated. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] A textual description of the operation, which is set when * the operation is created. */ - description: string; + description?: string; /** * [Output Only] The time that this operation was completed. This value is * in RFC3339 text format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors are generated during processing of the operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as NOT FOUND. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output Only] If the operation fails, this field contains the HTTP error * status code that was returned. For example, a 404 means the resource was * not found. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This value is * in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always compute#operation for * Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The type of operation, such as insert, update, or delete, * and so on. */ - operationType: string; + operationType?: string; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -577,61 +580,61 @@ export namespace deploymentmanager_v2 { * complete. This number should monotonically increase as the operation * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The URL of the region where the operation resides. Only * available when performing regional operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] The status of the operation, which can be one of the * following: PENDING, RUNNING, or DONE. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The unique target ID, which identifies a specific * incarnation of the target resource. */ - targetId: string; + targetId?: string; /** * [Output Only] The URL of the resource that the operation modifies. For * operations related to creating a snapshot, this points to the persistent * disk that the snapshot was created from. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If warning messages are generated during processing of the * operation, this field will be populated. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] The URL of the zone where the operation resides. Only * available when performing per-zone operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - zone: string; + zone?: string; } /** * A response containing a partial list of operations and a page token used to @@ -641,11 +644,11 @@ export namespace deploymentmanager_v2 { /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. Operations contained in this list response. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -667,12 +670,12 @@ export namespace deploymentmanager_v2 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -684,8 +687,8 @@ export namespace deploymentmanager_v2 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; - iamOwned: boolean; + etag?: string; + iamOwned?: boolean; /** * If more than one rule is specified, the rules are applied in the * following manner: - All matching LOG rules are always applied. - If any @@ -695,69 +698,69 @@ export namespace deploymentmanager_v2 { * will be applied if one or more matching rule requires logging. - * Otherwise, if no rule applies, permission is denied. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; /** * Deprecated. */ - version: number; + version?: number; } export interface Schema$Resource { /** * The Access Control Policy set on this resource. */ - accessControl: Schema$ResourceAccessControl; + accessControl?: Schema$ResourceAccessControl; /** * Output only. The evaluated properties of the resource with references * expanded. Returned as serialized YAML. */ - finalProperties: string; + finalProperties?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the resource was created or acquired, in * RFC3339 text format . */ - insertTime: string; + insertTime?: string; /** * Output only. URL of the manifest representing the current configuration * of this resource. */ - manifest: string; + manifest?: string; /** * Output only. The name of the resource as it appears in the YAML config. */ - name: string; + name?: string; /** * Output only. The current properties of the resource before any references * have been filled in. Returned as serialized YAML. */ - properties: string; + properties?: string; /** * Output only. The type of the resource, for example compute.v1.instance, * or cloudfunctions.v1beta1.function. */ - type: string; + type?: string; /** * Output only. If Deployment Manager is currently updating or previewing an * update to this resource, the updated configuration appears here. */ - update: Schema$ResourceUpdate; + update?: Schema$ResourceUpdate; /** * Output only. Timestamp when the resource was updated, in RFC3339 text * format . */ - updateTime: string; + updateTime?: string; /** * Output only. The URL of the actual resource. */ - url: string; + url?: string; /** * Output only. If warning messages are generated during processing of this * resource, this field will be populated. */ - warnings: any[]; + warnings?: any[]; } /** * The access controls set on the resource. @@ -766,7 +769,7 @@ export namespace deploymentmanager_v2 { /** * The GCP IAM Policy to set on the resource. */ - gcpIamPolicy: string; + gcpIamPolicy?: string; } /** * A response containing a partial list of resources and a page token used to @@ -776,51 +779,51 @@ export namespace deploymentmanager_v2 { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Resources contained in this list response. */ - resources: Schema$Resource[]; + resources?: Schema$Resource[]; } export interface Schema$ResourceUpdate { /** * The Access Control Policy to set on this resource after updating the * resource itself. */ - accessControl: Schema$ResourceAccessControl; + accessControl?: Schema$ResourceAccessControl; /** * Output only. If errors are generated during update of the resource, this * field will be populated. */ - error: any; + error?: any; /** * Output only. The expanded properties of the resource with reference * values expanded. Returned as serialized YAML. */ - finalProperties: string; + finalProperties?: string; /** * Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. */ - intent: string; + intent?: string; /** * Output only. URL of the manifest representing the update configuration of * this resource. */ - manifest: string; + manifest?: string; /** * Output only. The set of updated properties for this resource, before * references are expanded. Returned as serialized YAML. */ - properties: string; + properties?: string; /** * Output only. The state of the resource. */ - state: string; + state?: string; /** * Output only. If warning messages are generated during processing of this * resource, this field will be populated. */ - warnings: any[]; + warnings?: any[]; } /** * A rule to be applied in a Policy. @@ -829,50 +832,50 @@ export namespace deploymentmanager_v2 { /** * Required */ - action: string; + action?: string; /** * Additional restrictions that must be met. All conditions must pass for * the rule to match. */ - conditions: Schema$Condition[]; + conditions?: Schema$Condition[]; /** * Human-readable description of the rule. */ - description: string; + description?: string; /** * If one or more 'in' clauses are specified, the rule matches if * the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. */ - ins: string[]; + ins?: string[]; /** * The config returned to callers of tech.iam.IAM.CheckPolicy for any * entries that match the LOG action. */ - logConfigs: Schema$LogConfig[]; + logConfigs?: Schema$LogConfig[]; /** * If one or more 'not_in' clauses are specified, the rule matches * if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. */ - notIns: string[]; + notIns?: string[]; /** * A permission is a string of form '..' (e.g., * 'storage.buckets.list'). A value of '*' matches all * permissions, and a verb part of '*' (e.g., * 'storage.buckets.*') matches all verbs. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TargetConfiguration { /** * The configuration to use for this deployment. */ - config: Schema$ConfigFile; + config?: Schema$ConfigFile; /** * Specifies any files to import for this configuration. This can be used to * import templates or other files. For example, you might import a text * file in order to use the file in a template. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; } export interface Schema$TestPermissionsRequest { /** @@ -880,14 +883,14 @@ export namespace deploymentmanager_v2 { * with wildcards (such as '*' or 'storage.*') are not * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TestPermissionsResponse { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A resource type supported by Deployment Manager. @@ -896,24 +899,24 @@ export namespace deploymentmanager_v2 { /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the type was created, in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * Name of the type. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this type. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the type. */ - selfLink: string; + selfLink?: string; } /** * A response that returns all Types supported by Deployment Manager @@ -922,13 +925,14 @@ export namespace deploymentmanager_v2 { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource types supported by Deployment Manager. */ - types: Schema$Type[]; + types?: Schema$Type[]; } + export class Resource$Deployments { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -1014,26 +1018,39 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancelPreview(params?: any, options?: MethodOptions): - AxiosPromise; cancelPreview( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Cancelpreview, + options?: MethodOptions): AxiosPromise; + cancelPreview( + params: Params$Resource$Deployments$Cancelpreview, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancelPreview( + params: Params$Resource$Deployments$Cancelpreview, + callback: BodyResponseCallback): void; + cancelPreview(callback: BodyResponseCallback): void; cancelPreview( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Cancelpreview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Cancelpreview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Cancelpreview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1128,26 +1145,39 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Deployments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Deployments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1241,23 +1271,34 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Deployments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Deployments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Deployments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Deployments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1350,26 +1391,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Deployments$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Deployments$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1467,26 +1520,39 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Deployments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Deployments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1594,28 +1660,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Deployments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Deployments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Deployments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Deployments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1720,26 +1796,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Deployments$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Deployments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Deployments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1837,26 +1925,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Deployments$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Deployments$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1956,25 +2056,37 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Deployments$Stop, options?: MethodOptions): + AxiosPromise; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Deployments$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Deployments$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2071,28 +2183,41 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Deployments$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Deployments$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Deployments$Testiampermissions, + callback: BodyResponseCallback): void; + testIamPermissions( + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Deployments$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Deployments$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2197,26 +2322,39 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Deployments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Deployments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2241,6 +2379,296 @@ export namespace deploymentmanager_v2 { } } + export interface Params$Resource$Deployments$Cancelpreview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentsCancelPreviewRequest; + } + export interface Params$Resource$Deployments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Deployments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * If set to true, creates a deployment and creates "shell" resources but + * does not actually instantiate these resources. This allows you to preview + * what your deployment looks like. After previewing a deployment, you can + * deploy your resources by making a request with the update() method or you + * can use the cancelPreview() method to cancel the preview altogether. Note + * that the deployment will still exist after you cancel the preview and you + * must separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + export interface Params$Resource$Deployments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * If set to true, updates the deployment and creates and updates the + * "shell" resources but does not actually alter or instantiate these + * resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this + * is set to true. After previewing a deployment, you can deploy your + * resources by making a request with the update() or you can + * cancelPreview() to remove the preview altogether. Note that the + * deployment will still exist after you cancel the preview and you must + * separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + export interface Params$Resource$Deployments$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Deployments$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentsStopRequest; + } + export interface Params$Resource$Deployments$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Deployments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * If set to true, updates the deployment and creates and updates the + * "shell" resources but does not actually alter or instantiate these + * resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this + * is set to true. After previewing a deployment, you can deploy your + * resources by making a request with the update() or you can + * cancelPreview() to remove the preview altogether. Note that the + * deployment will still exist after you cancel the preview and you must + * separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + + export class Resource$Manifests { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2326,23 +2754,33 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Manifests$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Manifests$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Manifests$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Manifests$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Manifests$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Manifests$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2453,28 +2891,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Manifests$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Manifests$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Manifests$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Manifests$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Manifests$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Manifests$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2499,6 +2947,85 @@ export namespace deploymentmanager_v2 { } } + export interface Params$Resource$Manifests$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The name of the manifest for this request. + */ + manifest?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Manifests$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Operations { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2580,23 +3107,34 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2704,28 +3242,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2750,6 +3298,77 @@ export namespace deploymentmanager_v2 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation for this request. + */ + operation?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Resources { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2835,23 +3454,33 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Resources$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Resources$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resources$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resources$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Resources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2962,28 +3591,38 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Resources$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resources$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Resources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Resources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3008,6 +3647,85 @@ export namespace deploymentmanager_v2 { } } + export interface Params$Resource$Resources$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Resources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Types { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -3102,26 +3820,37 @@ export namespace deploymentmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Types$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Types$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Types$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3144,4 +3873,59 @@ export namespace deploymentmanager_v2 { } } } + + export interface Params$Resource$Types$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } } diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index 27dcef3a445..ca90d22edf4 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace deploymentmanager_v2beta { + export interface Options extends GlobalOptions { version: 'v2beta'; } + /** * Google Cloud Deployment Manager API V2Beta Methods * @@ -85,13 +88,13 @@ export namespace deploymentmanager_v2beta { /** * Method regex where this policy will apply. */ - methodMatch: string; + methodMatch?: string; /** * Deployment manager will poll instances for this API resource setting a * RUNNING state, and blocking until polling conditions tell whether the * resource is completed or failed. */ - pollingOptions: Schema$PollingOptions; + pollingOptions?: Schema$PollingOptions; } /** * Specifies the audit configuration for a service. The configuration @@ -119,14 +122,14 @@ export namespace deploymentmanager_v2beta { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; - exemptedMembers: string[]; + auditLogConfigs?: Schema$AuditLogConfig[]; + exemptedMembers?: string[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -142,11 +145,11 @@ export namespace deploymentmanager_v2beta { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of [Binding.members][]. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Authorization-related information used by Cloud Audit Logging. @@ -155,7 +158,7 @@ export namespace deploymentmanager_v2beta { /** * The type of the permission that was checked. */ - permissionType: string; + permissionType?: string; } /** * BaseType that describes a service-backed Type. @@ -164,26 +167,26 @@ export namespace deploymentmanager_v2beta { /** * Allows resource handling overrides for specific collections */ - collectionOverrides: Schema$CollectionOverride[]; + collectionOverrides?: Schema$CollectionOverride[]; /** * Credential used when interacting with this type. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * Descriptor Url for the this type. */ - descriptorUrl: string; + descriptorUrl?: string; /** * Options to apply when handling any resources in this service. */ - options: Schema$Options; + options?: Schema$Options; } /** * Basic Auth used as a credential. */ export interface Schema$BasicAuth { - password: string; - user: string; + password?: string; + user?: string; } /** * Associates `members` with a `role`. @@ -195,7 +198,7 @@ export namespace deploymentmanager_v2beta { * bindings, including their conditions, are examined independently. This * field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER. */ - condition: Schema$Expr; + condition?: Schema$Expr; /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * `allUsers`: A special @@ -211,12 +214,12 @@ export namespace deploymentmanager_v2beta { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. */ - role: string; + role?: string; } /** * CollectionOverride allows resource handling overrides for specific @@ -226,11 +229,11 @@ export namespace deploymentmanager_v2beta { /** * The collection that identifies this resource within its service. */ - collection: string; + collection?: string; /** * The options to apply to this resource-level override */ - options: Schema$Options; + options?: Schema$Options; } /** * Holds the composite type. @@ -240,16 +243,16 @@ export namespace deploymentmanager_v2beta { * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the composite type was created, in RFC3339 * text format. */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -258,30 +261,30 @@ export namespace deploymentmanager_v2beta { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$CompositeTypeLabelEntry[]; + labels?: Schema$CompositeTypeLabelEntry[]; /** * Name of the composite type, must follow the expression: * [a-z]([-a-z0-9_.]{0,61}[a-z0-9])?. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this composite type. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the type provider. */ - selfLink: string; - status: string; + selfLink?: string; + status?: string; /** * Files for the template type. */ - templateContents: Schema$TemplateContents; + templateContents?: Schema$TemplateContents; } export interface Schema$CompositeTypeLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * A response that returns all Composite Types supported by Deployment Manager @@ -291,11 +294,11 @@ export namespace deploymentmanager_v2beta { * Output only. A list of resource composite types supported by Deployment * Manager. */ - compositeTypes: Schema$CompositeType[]; + compositeTypes?: Schema$CompositeType[]; /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } /** * A condition to be met. @@ -304,35 +307,35 @@ export namespace deploymentmanager_v2beta { /** * Trusted attributes supplied by the IAM system. */ - iam: string; + iam?: string; /** * An operator to apply the subject with. */ - op: string; + op?: string; /** * Trusted attributes discharged by the service. */ - svc: string; + svc?: string; /** * Trusted attributes supplied by any service that owns resources and uses * the IAM system for access control. */ - sys: string; + sys?: string; /** * DEPRECATED. Use 'values' instead. */ - value: string; + value?: string; /** * The objects of the condition. This is mutually exclusive with * 'value'. */ - values: string[]; + values?: string[]; } export interface Schema$ConfigFile { /** * The contents of the file. */ - content: string; + content?: string; } /** * The credential used by Deployment Manager and TypeProvider. Only one of the @@ -342,22 +345,22 @@ export namespace deploymentmanager_v2beta { /** * Basic Auth Credential, only used by TypeProvider. */ - basicAuth: Schema$BasicAuth; + basicAuth?: Schema$BasicAuth; /** * Service Account Credential, only used by Deployment. */ - serviceAccount: Schema$ServiceAccount; + serviceAccount?: Schema$ServiceAccount; /** * Specify to use the project default credential, only supported by * Deployment. */ - useProjectDefault: boolean; + useProjectDefault?: boolean; } export interface Schema$Deployment { /** * An optional user-provided description of the deployment. */ - description: string; + description?: string; /** * Provides a fingerprint to use in requests to modify a deployment, such as * update(), stop(), and cancelPreview() requests. A fingerprint is a @@ -368,16 +371,16 @@ export namespace deploymentmanager_v2beta { * after every request to modify data. To get the latest fingerprint value, * perform a get() request to a deployment. */ - fingerprint: string; + fingerprint?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the deployment was created, in RFC3339 text * format . */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -386,12 +389,12 @@ export namespace deploymentmanager_v2beta { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$DeploymentLabelEntry[]; + labels?: Schema$DeploymentLabelEntry[]; /** * Output only. URL of the manifest representing the last manifest that was * successfully deployed. */ - manifest: string; + manifest?: string; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -401,30 +404,30 @@ export namespace deploymentmanager_v2beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this deployment. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the deployment. */ - selfLink: string; + selfLink?: string; /** * [Input Only] The parameters that define your deployment, including the * deployment configuration and relevant templates. */ - target: Schema$TargetConfiguration; + target?: Schema$TargetConfiguration; /** * Output only. If Deployment Manager is currently updating or previewing an * update to this deployment, the updated configuration appears here. */ - update: Schema$DeploymentUpdate; + update?: Schema$DeploymentUpdate; } export interface Schema$DeploymentLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$DeploymentsCancelPreviewRequest { /** @@ -438,7 +441,7 @@ export namespace deploymentmanager_v2beta { * after every request to modify a deployment. To get the latest fingerprint * value, perform a get() request on the deployment. */ - fingerprint: string; + fingerprint?: string; } /** * A response containing a partial list of deployments and a page token used @@ -448,11 +451,11 @@ export namespace deploymentmanager_v2beta { /** * Output only. The deployments contained in this response. */ - deployments: Schema$Deployment[]; + deployments?: Schema$Deployment[]; /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$DeploymentsStopRequest { /** @@ -466,14 +469,14 @@ export namespace deploymentmanager_v2beta { * request to modify a deployment. To get the latest fingerprint value, * perform a get() request on the deployment. */ - fingerprint: string; + fingerprint?: string; } export interface Schema$DeploymentUpdate { /** * Output only. An optional user-provided description of the deployment * after the current update has been applied. */ - description: string; + description?: string; /** * Output only. Map of labels; provided by the client when the resource is * created or updated. Specifically: Label keys must be between 1 and 63 @@ -482,27 +485,27 @@ export namespace deploymentmanager_v2beta { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$DeploymentUpdateLabelEntry[]; + labels?: Schema$DeploymentUpdateLabelEntry[]; /** * Output only. URL of the manifest representing the update configuration of * this deployment. */ - manifest: string; + manifest?: string; } export interface Schema$DeploymentUpdateLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$Diagnostic { /** * JsonPath expression on the resource that if non empty, indicates that * this field needs to be extracted as a diagnostic. */ - field: string; + field?: string; /** * Level to record this diagnostic. */ - level: string; + level?: string; } /** * Represents an expression text. Example: title: "User account @@ -514,34 +517,34 @@ export namespace deploymentmanager_v2beta { * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. */ - description: string; + description?: string; /** * Textual representation of an expression in Common Expression Language * syntax. The application context of the containing message determines * which well-known feature set of CEL is supported. */ - expression: string; + expression?: string; /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. */ - location: string; + location?: string; /** * An optional title for the expression, i.e. a short string describing its * purpose. This can be used e.g. in UIs which allow to enter the * expression. */ - title: string; + title?: string; } export interface Schema$ImportFile { /** * The contents of the file. */ - content: string; + content?: string; /** * The name of the file. */ - name: string; + name?: string; } /** * InputMapping creates a 'virtual' property that will be injected @@ -551,19 +554,19 @@ export namespace deploymentmanager_v2beta { /** * The name of the field that is going to be injected. */ - fieldName: string; + fieldName?: string; /** * The location where this mapping applies. */ - location: string; + location?: string; /** * Regex to evaluate on method to decide if input applies. */ - methodMatch: string; + methodMatch?: string; /** * A jsonPath expression to select an element. */ - value: string; + value?: string; } /** * Specifies what kind of log the caller must write @@ -572,15 +575,15 @@ export namespace deploymentmanager_v2beta { /** * Cloud audit options. */ - cloudAudit: Schema$LogConfigCloudAuditOptions; + cloudAudit?: Schema$LogConfigCloudAuditOptions; /** * Counter options. */ - counter: Schema$LogConfigCounterOptions; + counter?: Schema$LogConfigCounterOptions; /** * Data access options. */ - dataAccess: Schema$LogConfigDataAccessOptions; + dataAccess?: Schema$LogConfigDataAccessOptions; } /** * Write a Cloud Audit log @@ -589,11 +592,11 @@ export namespace deploymentmanager_v2beta { /** * Information used by the Cloud Audit Logging pipeline. */ - authorizationLoggingOptions: Schema$AuthorizationLoggingOptions; + authorizationLoggingOptions?: Schema$AuthorizationLoggingOptions; /** * The log_name to populate in the Cloud Audit Record. */ - logName: string; + logName?: string; } /** * Increment a streamz counter with the specified metric and field names. @@ -616,11 +619,11 @@ export namespace deploymentmanager_v2beta { /** * The field value to attribute. */ - field: string; + field?: string; /** * The metric to update. */ - metric: string; + metric?: string; } /** * Write a Data Access (Gin) log @@ -630,43 +633,43 @@ export namespace deploymentmanager_v2beta { * Whether Gin logging should happen in a fail-closed manner at the caller. * This is relevant only in the LocalIAM implementation, for now. */ - logMode: string; + logMode?: string; } export interface Schema$Manifest { /** * Output only. The YAML configuration for this manifest. */ - config: Schema$ConfigFile; + config?: Schema$ConfigFile; /** * Output only. The fully-expanded configuration file, including any * templates and references. */ - expandedConfig: string; + expandedConfig?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. The imported files for this manifest. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; /** * Output only. Timestamp when the manifest was created, in RFC3339 text * format. */ - insertTime: string; + insertTime?: string; /** * Output only. The YAML layout for this manifest. */ - layout: string; + layout?: string; /** * Output only. The name of the manifest. */ - name: string; + name?: string; /** * Output only. Self link for the manifest. */ - selfLink: string; + selfLink?: string; } /** * A response containing a partial list of manifests and a page token used to @@ -676,11 +679,11 @@ export namespace deploymentmanager_v2beta { /** * Output only. Manifests contained in this list response. */ - manifests: Schema$Manifest[]; + manifests?: Schema$Manifest[]; /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; } /** * An Operation resource, used to manage asynchronous API requests. (== @@ -693,61 +696,61 @@ export namespace deploymentmanager_v2beta { /** * [Output Only] Reserved for future use. */ - clientOperationId: string; + clientOperationId?: string; /** * [Deprecated] This field is deprecated. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] A textual description of the operation, which is set when * the operation is created. */ - description: string; + description?: string; /** * [Output Only] The time that this operation was completed. This value is * in RFC3339 text format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors are generated during processing of the operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as NOT FOUND. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output Only] If the operation fails, this field contains the HTTP error * status code that was returned. For example, a 404 means the resource was * not found. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This value is * in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always compute#operation for * Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output Only] The type of operation, such as insert, update, or delete, * and so on. */ - operationType: string; + operationType?: string; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -755,61 +758,61 @@ export namespace deploymentmanager_v2beta { * complete. This number should monotonically increase as the operation * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The URL of the region where the operation resides. Only * available when performing regional operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - region: string; + region?: string; /** * [Output Only] Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This value is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] The status of the operation, which can be one of the * following: PENDING, RUNNING, or DONE. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] The unique target ID, which identifies a specific * incarnation of the target resource. */ - targetId: string; + targetId?: string; /** * [Output Only] The URL of the resource that the operation modifies. For * operations related to creating a snapshot, this points to the persistent * disk that the snapshot was created from. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If warning messages are generated during processing of the * operation, this field will be populated. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] The URL of the zone where the operation resides. Only * available when performing per-zone operations. You must specify this * field as part of the HTTP request URL. It is not settable as a field in * the request body. */ - zone: string; + zone?: string; } /** * A response containing a partial list of operations and a page token used to @@ -819,11 +822,11 @@ export namespace deploymentmanager_v2beta { /** * Output only. A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. Operations contained in this list response. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Options allows customized resource handling by Deployment Manager. @@ -832,15 +835,15 @@ export namespace deploymentmanager_v2beta { /** * Options regarding how to thread async requests. */ - asyncOptions: Schema$AsyncOptions[]; + asyncOptions?: Schema$AsyncOptions[]; /** * The mappings that apply for requests. */ - inputMappings: Schema$InputMapping[]; + inputMappings?: Schema$InputMapping[]; /** * Options for how to validate and process properties on a resource. */ - validationOptions: Schema$ValidationOptions; + validationOptions?: Schema$ValidationOptions; /** * Additional properties block described as a jsonSchema, these properties * will never be part of the json payload, but they can be consumed by @@ -850,7 +853,7 @@ export namespace deploymentmanager_v2beta { * From the payload and consumed explicitly by InputMappings. ex: field1: * type: string field2: type: number */ - virtualProperties: string; + virtualProperties?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -872,12 +875,12 @@ export namespace deploymentmanager_v2beta { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -889,8 +892,8 @@ export namespace deploymentmanager_v2beta { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; - iamOwned: boolean; + etag?: string; + iamOwned?: boolean; /** * If more than one rule is specified, the rules are applied in the * following manner: - All matching LOG rules are always applied. - If any @@ -900,93 +903,93 @@ export namespace deploymentmanager_v2beta { * will be applied if one or more matching rule requires logging. - * Otherwise, if no rule applies, permission is denied. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; /** * Deprecated. */ - version: number; + version?: number; } export interface Schema$PollingOptions { /** * An array of diagnostics to be collected by Deployment Manager, these * diagnostics will be displayed to the user. */ - diagnostics: Schema$Diagnostic[]; + diagnostics?: Schema$Diagnostic[]; /** * JsonPath expression that determines if the request failed. */ - failCondition: string; + failCondition?: string; /** * JsonPath expression that determines if the request is completed. */ - finishCondition: string; + finishCondition?: string; /** * JsonPath expression that evaluates to string, it indicates where to poll. */ - pollingLink: string; + pollingLink?: string; /** * JsonPath expression, after polling is completed, indicates where to fetch * the resource. */ - targetLink: string; + targetLink?: string; } export interface Schema$Resource { /** * The Access Control Policy set on this resource. */ - accessControl: Schema$ResourceAccessControl; + accessControl?: Schema$ResourceAccessControl; /** * Output only. The evaluated properties of the resource with references * expanded. Returned as serialized YAML. */ - finalProperties: string; + finalProperties?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the resource was created or acquired, in * RFC3339 text format . */ - insertTime: string; + insertTime?: string; /** * Output only. URL of the manifest representing the current configuration * of this resource. */ - manifest: string; + manifest?: string; /** * Output only. The name of the resource as it appears in the YAML config. */ - name: string; + name?: string; /** * Output only. The current properties of the resource before any references * have been filled in. Returned as serialized YAML. */ - properties: string; + properties?: string; /** * Output only. The type of the resource, for example compute.v1.instance, * or cloudfunctions.v1beta1.function. */ - type: string; + type?: string; /** * Output only. If Deployment Manager is currently updating or previewing an * update to this resource, the updated configuration appears here. */ - update: Schema$ResourceUpdate; + update?: Schema$ResourceUpdate; /** * Output only. Timestamp when the resource was updated, in RFC3339 text * format . */ - updateTime: string; + updateTime?: string; /** * Output only. The URL of the actual resource. */ - url: string; + url?: string; /** * Output only. If warning messages are generated during processing of this * resource, this field will be populated. */ - warnings: any[]; + warnings?: any[]; } /** * The access controls set on the resource. @@ -995,7 +998,7 @@ export namespace deploymentmanager_v2beta { /** * The GCP IAM Policy to set on the resource. */ - gcpIamPolicy: string; + gcpIamPolicy?: string; } /** * A response containing a partial list of resources and a page token used to @@ -1005,51 +1008,51 @@ export namespace deploymentmanager_v2beta { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Resources contained in this list response. */ - resources: Schema$Resource[]; + resources?: Schema$Resource[]; } export interface Schema$ResourceUpdate { /** * The Access Control Policy to set on this resource after updating the * resource itself. */ - accessControl: Schema$ResourceAccessControl; + accessControl?: Schema$ResourceAccessControl; /** * Output only. If errors are generated during update of the resource, this * field will be populated. */ - error: any; + error?: any; /** * Output only. The expanded properties of the resource with reference * values expanded. Returned as serialized YAML. */ - finalProperties: string; + finalProperties?: string; /** * Output only. The intent of the resource: PREVIEW, UPDATE, or CANCEL. */ - intent: string; + intent?: string; /** * Output only. URL of the manifest representing the update configuration of * this resource. */ - manifest: string; + manifest?: string; /** * Output only. The set of updated properties for this resource, before * references are expanded. Returned as serialized YAML. */ - properties: string; + properties?: string; /** * Output only. The state of the resource. */ - state: string; + state?: string; /** * Output only. If warning messages are generated during processing of this * resource, this field will be populated. */ - warnings: any[]; + warnings?: any[]; } /** * A rule to be applied in a Policy. @@ -1058,38 +1061,38 @@ export namespace deploymentmanager_v2beta { /** * Required */ - action: string; + action?: string; /** * Additional restrictions that must be met. All conditions must pass for * the rule to match. */ - conditions: Schema$Condition[]; + conditions?: Schema$Condition[]; /** * Human-readable description of the rule. */ - description: string; + description?: string; /** * If one or more 'in' clauses are specified, the rule matches if * the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. */ - ins: string[]; + ins?: string[]; /** * The config returned to callers of tech.iam.IAM.CheckPolicy for any * entries that match the LOG action. */ - logConfigs: Schema$LogConfig[]; + logConfigs?: Schema$LogConfig[]; /** * If one or more 'not_in' clauses are specified, the rule matches * if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. */ - notIns: string[]; + notIns?: string[]; /** * A permission is a string of form '..' (e.g., * 'storage.buckets.list'). A value of '*' matches all * permissions, and a verb part of '*' (e.g., * 'storage.buckets.*') matches all verbs. */ - permissions: string[]; + permissions?: string[]; } /** * Service Account used as a credential. @@ -1099,19 +1102,19 @@ export namespace deploymentmanager_v2beta { * The IAM service account email address like * test@myproject.iam.gserviceaccount.com */ - email: string; + email?: string; } export interface Schema$TargetConfiguration { /** * The configuration to use for this deployment. */ - config: Schema$ConfigFile; + config?: Schema$ConfigFile; /** * Specifies any files to import for this configuration. This can be used to * import templates or other files. For example, you might import a text * file in order to use the file in a template. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; } /** * Files that make up the template contents of a template type. @@ -1120,23 +1123,23 @@ export namespace deploymentmanager_v2beta { /** * Import files referenced by the main template. */ - imports: Schema$ImportFile[]; + imports?: Schema$ImportFile[]; /** * Which interpreter (python or jinja) should be used during expansion. */ - interpreter: string; + interpreter?: string; /** * The filename of the mainTemplate */ - mainTemplate: string; + mainTemplate?: string; /** * The contents of the template schema. */ - schema: string; + schema?: string; /** * The contents of the main template file. */ - template: string; + template?: string; } export interface Schema$TestPermissionsRequest { /** @@ -1144,14 +1147,14 @@ export namespace deploymentmanager_v2beta { * with wildcards (such as '*' or 'storage.*') are not * allowed. */ - permissions: string[]; + permissions?: string[]; } export interface Schema$TestPermissionsResponse { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A resource type supported by Deployment Manager. @@ -1160,20 +1163,20 @@ export namespace deploymentmanager_v2beta { /** * Base Type (configurable service) that backs this Type. */ - base: Schema$BaseType; + base?: Schema$BaseType; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the type was created, in RFC3339 text format. */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -1182,20 +1185,20 @@ export namespace deploymentmanager_v2beta { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$TypeLabelEntry[]; + labels?: Schema$TypeLabelEntry[]; /** * Name of the type. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this type. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Output only. Self link for the type. */ - selfLink: string; + selfLink?: string; } /** * Contains detailed information about a composite type, base type, or base @@ -1205,51 +1208,51 @@ export namespace deploymentmanager_v2beta { /** * The description of the type. */ - description: string; + description?: string; /** * For swagger 2.0 externalDocs field will be used. For swagger 1.2 this * field will be empty. */ - documentationLink: string; + documentationLink?: string; /** * Output only. Type of the output. Always deploymentManager#TypeInfo for * TypeInfo. */ - kind: string; + kind?: string; /** * The base type or composite type name. */ - name: string; + name?: string; /** * For base types with a collection, we return a schema and documentation * link For template types, we return only a schema */ - schema: Schema$TypeInfoSchemaInfo; + schema?: Schema$TypeInfoSchemaInfo; /** * Output only. Server-defined URL for the resource. */ - selfLink: string; + selfLink?: string; /** * The title on the API descriptor URL provided. */ - title: string; + title?: string; } export interface Schema$TypeInfoSchemaInfo { /** * The properties that this composite type or base type collection accept as * input, represented as a json blob, format is: JSON Schema Draft V4 */ - input: string; + input?: string; /** * The properties that this composite type or base type collection exposes * as output, these properties can be used for references, represented as * json blob, format is: JSON Schema Draft V4 */ - output: string; + output?: string; } export interface Schema$TypeLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * A type provider that describes a service-backed Type. @@ -1258,29 +1261,29 @@ export namespace deploymentmanager_v2beta { /** * Allows resource handling overrides for specific collections */ - collectionOverrides: Schema$CollectionOverride[]; + collectionOverrides?: Schema$CollectionOverride[]; /** * Credential used when interacting with this type. */ - credential: Schema$Credential; + credential?: Schema$Credential; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * Descriptor Url for the this type provider. */ - descriptorUrl: string; + descriptorUrl?: string; /** * Output only. Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Output only. Timestamp when the type provider was created, in RFC3339 * text format. */ - insertTime: string; + insertTime?: string; /** * Map of labels; provided by the client when the resource is created or * updated. Specifically: Label keys must be between 1 and 63 characters @@ -1289,7 +1292,7 @@ export namespace deploymentmanager_v2beta { * characters long and must conform to the regular expression * ([a-z]([-a-z0-9]*[a-z0-9])?)? */ - labels: Schema$TypeProviderLabelEntry[]; + labels?: Schema$TypeProviderLabelEntry[]; /** * Name of the resource; provided by the client when the resource is * created. The name must be 1-63 characters long, and comply with RFC1035. @@ -1299,24 +1302,24 @@ export namespace deploymentmanager_v2beta { * lowercase letter, or digit, except the last character, which cannot be a * dash. */ - name: string; + name?: string; /** * Output only. The Operation that most recently ran, or is currently * running, on this type provider. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Options to apply when handling any resources in this service. */ - options: Schema$Options; + options?: Schema$Options; /** * Output only. Self link for the type provider. */ - selfLink: string; + selfLink?: string; } export interface Schema$TypeProviderLabelEntry { - key: string; - value: string; + key?: string; + value?: string; } /** * A response that returns all Type Providers supported by Deployment Manager @@ -1325,22 +1328,22 @@ export namespace deploymentmanager_v2beta { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource type providers supported by Deployment * Manager. */ - typeProviders: Schema$TypeProvider[]; + typeProviders?: Schema$TypeProvider[]; } export interface Schema$TypeProvidersListTypesResponse { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource type info. */ - types: Schema$TypeInfo[]; + types?: Schema$TypeInfo[]; } /** * A response that returns all Types supported by Deployment Manager @@ -1349,11 +1352,11 @@ export namespace deploymentmanager_v2beta { /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * Output only. A list of resource types supported by Deployment Manager. */ - types: Schema$Type[]; + types?: Schema$Type[]; } /** * Options for how to validate and process properties on a resource. @@ -1363,13 +1366,14 @@ export namespace deploymentmanager_v2beta { * Customize how deployment manager will validate the resource against * schema errors. */ - schemaValidation: string; + schemaValidation?: string; /** * Specify what to do with extra properties when executing a request. */ - undeclaredProperties: string; + undeclaredProperties?: string; } + export class Resource$Compositetypes { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -1395,26 +1399,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Compositetypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Compositetypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Compositetypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1452,24 +1469,35 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Compositetypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Compositetypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Compositetypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Compositetypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1507,26 +1535,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Compositetypes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Compositetypes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Compositetypes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1567,29 +1608,42 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Compositetypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Compositetypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Compositetypes$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Compositetypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1629,26 +1683,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Compositetypes$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Compositetypes$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Compositetypes$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1687,26 +1754,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Compositetypes$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Compositetypes$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Compositetypes$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Compositetypes$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Compositetypes$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Compositetypes$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1731,6 +1811,145 @@ export namespace deploymentmanager_v2beta { } } + export interface Params$Resource$Compositetypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Compositetypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the composite type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Compositetypes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$CompositeType; + } + export interface Params$Resource$Compositetypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Compositetypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the composite type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$CompositeType; + } + export interface Params$Resource$Compositetypes$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the composite type for this request. + */ + compositeType?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$CompositeType; + } + + export class Resource$Deployments { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -1758,26 +1977,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancelPreview(params?: any, options?: MethodOptions): - AxiosPromise; cancelPreview( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Cancelpreview, + options?: MethodOptions): AxiosPromise; + cancelPreview( + params: Params$Resource$Deployments$Cancelpreview, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancelPreview( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Cancelpreview, + callback: BodyResponseCallback): void; + cancelPreview(callback: BodyResponseCallback): void; + cancelPreview( + paramsOrCallback?: Params$Resource$Deployments$Cancelpreview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Cancelpreview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Cancelpreview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1816,26 +2048,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Deployments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Deployments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1873,23 +2118,34 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Deployments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Deployments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Deployments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Deployments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1928,26 +2184,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Deployments$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Deployments$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1988,26 +2256,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Deployments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Deployments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2048,28 +2329,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Deployments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Deployments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Deployments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Deployments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2112,26 +2403,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Deployments$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Deployments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Deployments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2171,26 +2474,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Deployments$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Deployments$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2230,25 +2545,37 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Deployments$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Deployments$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Deployments$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Deployments$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Deployments$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2287,28 +2614,41 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): - AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Deployments$Testiampermissions, + options?: MethodOptions): AxiosPromise; + testIamPermissions( + params: Params$Resource$Deployments$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + testIamPermissions( + params: Params$Resource$Deployments$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Deployments$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Deployments$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2351,26 +2691,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Deployments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Deployments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Deployments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Deployments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Deployments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Deployments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2395,112 +2748,422 @@ export namespace deploymentmanager_v2beta { } } - export class Resource$Manifests { - root: Deploymentmanager; - constructor(root: Deploymentmanager) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Deployments$Cancelpreview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentsCancelPreviewRequest; + } + export interface Params$Resource$Deployments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * deploymentmanager.manifests.get - * @desc Gets information about a specific manifest. - * @alias deploymentmanager.manifests.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.deployment The name of the deployment for this request. - * @param {string} params.manifest The name of the manifest for this request. - * @param {string} params.project The project ID for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * Sets the policy to use for deleting resources. */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'deployment', 'manifest'], - pathParams: ['deployment', 'manifest', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * deploymentmanager.manifests.list - * @desc Lists all manifests for a given deployment. - * @alias deploymentmanager.manifests.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.deployment The name of the deployment for this request. - * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). - * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. - * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. - * @param {string} params.project The project ID for this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * Project ID for this request. */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - params?: any, - options?: MethodOptions| + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Deployments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * If set to true, creates a deployment and creates "shell" resources but + * does not actually instantiate these resources. This allows you to preview + * what your deployment looks like. After previewing a deployment, you can + * deploy your resources by making a request with the update() method or you + * can use the cancelPreview() method to cancel the preview altogether. Note + * that the deployment will still exist after you cancel the preview and you + * must separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + export interface Params$Resource$Deployments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Deployments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * If set to true, updates the deployment and creates and updates the + * "shell" resources but does not actually alter or instantiate these + * resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this + * is set to true. After previewing a deployment, you can deploy your + * resources by making a request with the update() or you can + * cancelPreview() to remove the preview altogether. Note that the + * deployment will still exist after you cancel the preview and you must + * separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + export interface Params$Resource$Deployments$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$Policy; + } + export interface Params$Resource$Deployments$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentsStopRequest; + } + export interface Params$Resource$Deployments$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID for this request. + */ + project?: string; + /** + * Name of the resource for this request. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestPermissionsRequest; + } + export interface Params$Resource$Deployments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Sets the policy to use for creating new resources. + */ + createPolicy?: string; + /** + * Sets the policy to use for deleting resources. + */ + deletePolicy?: string; + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * If set to true, updates the deployment and creates and updates the + * "shell" resources but does not actually alter or instantiate these + * resources. This allows you to preview what your deployment will look + * like. You can use this intent to preview how an update would affect your + * deployment. You must provide a target.config with a configuration if this + * is set to true. After previewing a deployment, you can deploy your + * resources by making a request with the update() or you can + * cancelPreview() to remove the preview altogether. Note that the + * deployment will still exist after you cancel the preview and you must + * separately delete this deployment if you want to remove it. + */ + preview?: boolean; + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Deployment; + } + + + export class Resource$Manifests { + root: Deploymentmanager; + constructor(root: Deploymentmanager) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * deploymentmanager.manifests.get + * @desc Gets information about a specific manifest. + * @alias deploymentmanager.manifests.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.deployment The name of the deployment for this request. + * @param {string} params.manifest The name of the manifest for this request. + * @param {string} params.project The project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Manifests$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Manifests$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Manifests$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Manifests$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Manifests$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Manifests$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * deploymentmanager.manifests.list + * @desc Lists all manifests for a given deployment. + * @alias deploymentmanager.manifests.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.deployment The name of the deployment for this request. + * @param {string=} params.filter A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). + * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. + * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. + * @param {string} params.project The project ID for this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list(params?: Params$Resource$Manifests$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Manifests$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Manifests$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Manifests$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Manifests$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Manifests$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2525,6 +3188,85 @@ export namespace deploymentmanager_v2beta { } } + export interface Params$Resource$Manifests$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The name of the manifest for this request. + */ + manifest?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Manifests$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Operations { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2550,23 +3292,34 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2607,28 +3360,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2653,6 +3416,77 @@ export namespace deploymentmanager_v2beta { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation for this request. + */ + operation?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Resources { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2679,23 +3513,33 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Resources$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Resources$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Resources$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Resources$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Resources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2737,28 +3581,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Resources$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resources$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Resources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Resources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2783,6 +3637,85 @@ export namespace deploymentmanager_v2beta { } } + export interface Params$Resource$Resources$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the resource for this request. + */ + resource?: string; + } + export interface Params$Resource$Resources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the deployment for this request. + */ + deployment?: string; + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + + export class Resource$Typeproviders { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -2808,26 +3741,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Typeproviders$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Typeproviders$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2865,24 +3811,35 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Typeproviders$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Typeproviders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Typeproviders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Typeproviders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2921,26 +3878,38 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getType(params?: any, options?: MethodOptions): - AxiosPromise; getType( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Gettype, + options?: MethodOptions): AxiosPromise; getType( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Gettype, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getType( + params: Params$Resource$Typeproviders$Gettype, + callback: BodyResponseCallback): void; + getType(callback: BodyResponseCallback): void; + getType( + paramsOrCallback?: Params$Resource$Typeproviders$Gettype| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Gettype; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Gettype; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2978,26 +3947,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Typeproviders$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Typeproviders$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3038,29 +4020,40 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Typeproviders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Typeproviders$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Typeproviders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Typeproviders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3103,29 +4096,45 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listTypes(params?: any, options?: MethodOptions): + listTypes( + params?: Params$Resource$Typeproviders$Listtypes, + options?: MethodOptions): AxiosPromise; listTypes( - params?: any, - options?: MethodOptions| + params: Params$Resource$Typeproviders$Listtypes, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + listTypes( + params: Params$Resource$Typeproviders$Listtypes, + callback: BodyResponseCallback): + void; + listTypes(callback: + BodyResponseCallback): void; listTypes( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Typeproviders$Listtypes| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Listtypes; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Listtypes; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3166,26 +4175,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Typeproviders$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Typeproviders$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3224,26 +4246,39 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Typeproviders$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Typeproviders$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Typeproviders$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Typeproviders$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Typeproviders$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Typeproviders$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3268,6 +4303,222 @@ export namespace deploymentmanager_v2beta { } } + export interface Params$Resource$Typeproviders$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Gettype { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + type?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$TypeProvider; + } + export interface Params$Resource$Typeproviders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } + export interface Params$Resource$Typeproviders$Listtypes { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + } + export interface Params$Resource$Typeproviders$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + /** + * Request body metadata + */ + resource?: Schema$TypeProvider; + } + export interface Params$Resource$Typeproviders$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this request. + */ + project?: string; + /** + * The name of the type provider for this request. + */ + typeProvider?: string; + /** + * Request body metadata + */ + resource?: Schema$TypeProvider; + } + + export class Resource$Types { root: Deploymentmanager; constructor(root: Deploymentmanager) { @@ -3296,26 +4547,37 @@ export namespace deploymentmanager_v2beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Types$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Types$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Types$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Types$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Types$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Types$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3338,4 +4600,59 @@ export namespace deploymentmanager_v2beta { } } } + + export interface Params$Resource$Types$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A filter expression that filters resources listed in the response. The + * expression must specify the field name, a comparison operator, and the + * value that you want to use for filtering. The value must be a string, a + * number, or a boolean. The comparison operator must be either =, !=, >, or + * <. For example, if you are filtering Compute Engine instances, you can + * exclude instances named example-instance by specifying name != + * example-instance. You can also filter nested fields. For example, you + * could specify scheduling.automaticRestart = false to include instances + * only if they are not scheduled for automatic restarts. You can use + * filtering on nested fields to filter based on resource labels. To filter + * on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + * expression. However, you can include AND and OR expressions explicitly. + * For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true). + */ + filter?: string; + /** + * The maximum number of results per page that should be returned. If the + * number of available results is larger than maxResults, Compute Engine + * returns a nextPageToken that can be used to get the next page of results + * in subsequent list requests. Acceptable values are 0 to 500, inclusive. + * (Default: 500) + */ + maxResults?: number; + /** + * Sorts list results by a certain order. By default, results are returned + * in alphanumerical order based on the resource name. You can also sort + * results in descending order based on the creation timestamp using + * orderBy="creationTimestamp desc". This sorts results based on the + * creationTimestamp field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. Currently, only sorting by name or + * creationTimestamp desc is supported. + */ + orderBy?: string; + /** + * Specifies a page token to use. Set pageToken to the nextPageToken + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + project?: string; + } } diff --git a/src/apis/dfareporting/v2.8.ts b/src/apis/dfareporting/v2.8.ts index 4495d1b9136..4c6c62b8777 100644 --- a/src/apis/dfareporting/v2.8.ts +++ b/src/apis/dfareporting/v2.8.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dfareporting_v2_8 { + export interface Options extends GlobalOptions { version: 'v2_8'; } + /** * DCM/DFA Reporting And Trafficking API * @@ -196,33 +199,33 @@ export namespace dfareporting_v2_8 { /** * Account permissions assigned to this account. */ - accountPermissionIds: string[]; + accountPermissionIds?: string[]; /** * Profile for this account. This is a read-only field that can be left * blank. */ - accountProfile: string; + accountProfile?: string; /** * Whether this account is active. */ - active: boolean; + active?: boolean; /** * Maximum number of active ads allowed for this account. */ - activeAdsLimitTier: string; + activeAdsLimitTier?: string; /** * Whether to serve creatives with Active View tags. If disabled, * viewability data will not be available for any impressions. */ - activeViewOptOut: boolean; + activeViewOptOut?: boolean; /** * User role permissions available to the user roles of this account. */ - availablePermissionIds: string[]; + availablePermissionIds?: string[]; /** * ID of the country associated with this account. */ - countryId: string; + countryId?: string; /** * ID of currency associated with this account. This is a required field. * Acceptable values are: - "1" for USD - "2" for GBP @@ -245,24 +248,24 @@ export namespace dfareporting_v2_8 { * for BGN - "48" for HRK - "49" for MXN - * "50" for NGN */ - currencyId: string; + currencyId?: string; /** * Default placement dimensions for this account. */ - defaultCreativeSizeId: string; + defaultCreativeSizeId?: string; /** * Description of this account. */ - description: string; + description?: string; /** * ID of this account. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#account". */ - kind: string; + kind?: string; /** * Locale of this account. Acceptable values are: - "cs" (Czech) * - "de" (German) - "en" (English) - @@ -273,35 +276,35 @@ export namespace dfareporting_v2_8 { * "sv" (Swedish) - "tr" (Turkish) - "zh-CN" * (Chinese Simplified) - "zh-TW" (Chinese Traditional) */ - locale: string; + locale?: string; /** * Maximum image size allowed for this account, in kilobytes. Value must be * greater than or equal to 1. */ - maximumImageSize: string; + maximumImageSize?: string; /** * Name of this account. This is a required field, and must be less than 128 * characters long and be globally unique. */ - name: string; + name?: string; /** * Whether campaigns created in this account will be enabled for Nielsen OCR * reach ratings by default. */ - nielsenOcrEnabled: boolean; + nielsenOcrEnabled?: boolean; /** * Reporting configuration of this account. */ - reportsConfiguration: Schema$ReportsConfiguration; + reportsConfiguration?: Schema$ReportsConfiguration; /** * Share Path to Conversion reports with Twitter. */ - shareReportsWithTwitter: boolean; + shareReportsWithTwitter?: boolean; /** * File size limit in kilobytes of Rich Media teaser creatives. Acceptable * values are 1 to 10240, inclusive. */ - teaserSizeLimit: string; + teaserSizeLimit?: string; } /** * Gets a summary of active ads in an account. @@ -310,24 +313,24 @@ export namespace dfareporting_v2_8 { /** * ID of the account. */ - accountId: string; + accountId?: string; /** * Ads that have been activated for the account */ - activeAds: string; + activeAds?: string; /** * Maximum number of active ads allowed for the account. */ - activeAdsLimitTier: string; + activeAdsLimitTier?: string; /** * Ads that can be activated for the account. */ - availableAds: string; + availableAds?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountActiveAdSummary". */ - kind: string; + kind?: string; } /** * AccountPermissions contains information about a particular account @@ -340,28 +343,28 @@ export namespace dfareporting_v2_8 { * values are: - "ACCOUNT_PROFILE_BASIC" - * "ACCOUNT_PROFILE_STANDARD" */ - accountProfiles: string[]; + accountProfiles?: string[]; /** * ID of this account permission. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermission". */ - kind: string; + kind?: string; /** * Administrative level required to enable this account permission. */ - level: string; + level?: string; /** * Name of this account permission. */ - name: string; + name?: string; /** * Permission group of this account permission. */ - permissionGroupId: string; + permissionGroupId?: string; } /** * AccountPermissionGroups contains a mapping of permission group IDs to @@ -371,16 +374,16 @@ export namespace dfareporting_v2_8 { /** * ID of this account permission group. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermissionGroup". */ - kind: string; + kind?: string; /** * Name of this account permission group. */ - name: string; + name?: string; } /** * Account Permission Group List Response @@ -389,12 +392,12 @@ export namespace dfareporting_v2_8 { /** * Account permission group collection. */ - accountPermissionGroups: Schema$AccountPermissionGroup[]; + accountPermissionGroups?: Schema$AccountPermissionGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermissionGroupsListResponse". */ - kind: string; + kind?: string; } /** * Account Permission List Response @@ -403,12 +406,12 @@ export namespace dfareporting_v2_8 { /** * Account permission collection. */ - accountPermissions: Schema$AccountPermission[]; + accountPermissions?: Schema$AccountPermission[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermissionsListResponse". */ - kind: string; + kind?: string; } /** * Account List Response @@ -417,16 +420,16 @@ export namespace dfareporting_v2_8 { /** * Account collection. */ - accounts: Schema$Account[]; + accounts?: Schema$Account[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * AccountUserProfiles contains properties of a DCM user profile. This @@ -438,39 +441,39 @@ export namespace dfareporting_v2_8 { * Account ID of the user profile. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Whether this user profile is active. This defaults to false, and must be * set true on insert for the user profile to be usable. */ - active: boolean; + active?: boolean; /** * Filter that describes which advertisers are visible to the user profile. */ - advertiserFilter: Schema$ObjectFilter; + advertiserFilter?: Schema$ObjectFilter; /** * Filter that describes which campaigns are visible to the user profile. */ - campaignFilter: Schema$ObjectFilter; + campaignFilter?: Schema$ObjectFilter; /** * Comments for this user profile. */ - comments: string; + comments?: string; /** * Email of the user profile. The email addresss must be linked to a Google * Account. This field is required on insertion and is read-only after * insertion. */ - email: string; + email?: string; /** * ID of the user profile. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountUserProfile". */ - kind: string; + kind?: string; /** * Locale of the user profile. This is a required field. Acceptable values * are: - "cs" (Czech) - "de" (German) - @@ -482,39 +485,39 @@ export namespace dfareporting_v2_8 { * (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" * (Chinese Traditional) */ - locale: string; + locale?: string; /** * Name of the user profile. This is a required field. Must be less than 64 * characters long, must be globally unique, and cannot contain whitespace * or any of the following characters: "&;"#%,". */ - name: string; + name?: string; /** * Filter that describes which sites are visible to the user profile. */ - siteFilter: Schema$ObjectFilter; + siteFilter?: Schema$ObjectFilter; /** * Subaccount ID of the user profile. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Trafficker type of this user profile. */ - traffickerType: string; + traffickerType?: string; /** * User type of the user profile. This is a read-only field that can be left * blank. */ - userAccessType: string; + userAccessType?: string; /** * Filter that describes which user roles are visible to the user profile. */ - userRoleFilter: Schema$ObjectFilter; + userRoleFilter?: Schema$ObjectFilter; /** * User role ID of the user profile. This is a required field. */ - userRoleId: string; + userRoleId?: string; } /** * Account User Profile List Response @@ -523,16 +526,16 @@ export namespace dfareporting_v2_8 { /** * Account user profile collection. */ - accountUserProfiles: Schema$AccountUserProfile[]; + accountUserProfiles?: Schema$AccountUserProfile[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountUserProfilesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents an activity group. @@ -542,15 +545,15 @@ export namespace dfareporting_v2_8 { * List of activity filters. The dimension values need to be all either of * type "dfa:activity" or "dfa:activityGroup". */ - filters: Schema$DimensionValue[]; + filters?: Schema$DimensionValue[]; /** * The kind of resource this is, in this case dfareporting#activities. */ - kind: string; + kind?: string; /** * List of names of floodlight activity metrics. */ - metricNames: string[]; + metricNames?: string[]; } /** * Contains properties of a DCM ad. @@ -559,52 +562,52 @@ export namespace dfareporting_v2_8 { /** * Account ID of this ad. This is a read-only field that can be left blank. */ - accountId: string; + accountId?: string; /** * Whether this ad is active. When true, archived must be false. */ - active: boolean; + active?: boolean; /** * Advertiser ID of this ad. This is a required field on insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this ad is archived. When true, active must be false. */ - archived: boolean; + archived?: boolean; /** * Audience segment ID that is being targeted for this ad. Applicable when * type is AD_SERVING_STANDARD_AD. */ - audienceSegmentId: string; + audienceSegmentId?: string; /** * Campaign ID of this ad. This is a required field on insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * Click-through URL for this ad. This is a required field on insertion. * Applicable when type is AD_SERVING_CLICK_TRACKER. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * Click-through URL suffix properties for this ad. Applies to the URL in * the ad or (if overriding ad properties) the URL in the creative. */ - clickThroughUrlSuffixProperties: Schema$ClickThroughUrlSuffixProperties; + clickThroughUrlSuffixProperties?: Schema$ClickThroughUrlSuffixProperties; /** * Comments for this ad. */ - comments: string; + comments?: string; /** * Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. * DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or @@ -615,34 +618,34 @@ export namespace dfareporting_v2_8 { * limited to those compatibility types. IN_STREAM_VIDEO refers to rendering * in-stream video ads developed with the VAST standard. */ - compatibility: string; + compatibility?: string; /** * Information about the creation of this ad. This is a read-only field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * Creative group assignments for this ad. Applicable when type is * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number * is allowed for a maximum of two assignments. */ - creativeGroupAssignments: Schema$CreativeGroupAssignment[]; + creativeGroupAssignments?: Schema$CreativeGroupAssignment[]; /** * Creative rotation for this ad. Applicable when type is * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. * When type is AD_SERVING_DEFAULT_AD, this field should have exactly one * creativeAssignment. */ - creativeRotation: Schema$CreativeRotation; + creativeRotation?: Schema$CreativeRotation; /** * Time and day targeting information for this ad. This field must be left * blank if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - dayPartTargeting: Schema$DayPartTargeting; + dayPartTargeting?: Schema$DayPartTargeting; /** * Default click-through event tag properties for this ad. */ - defaultClickThroughEventTagProperties: + defaultClickThroughEventTagProperties?: Schema$DefaultClickThroughEventTagProperties; /** * Delivery schedule information for this ad. Applicable when type is @@ -650,99 +653,99 @@ export namespace dfareporting_v2_8 { * subfields priority and impressionRatio are required on insertion when * type is AD_SERVING_STANDARD_AD. */ - deliverySchedule: Schema$DeliverySchedule; + deliverySchedule?: Schema$DeliverySchedule; /** * Whether this ad is a dynamic click tracker. Applicable when type is * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is * read-only after insert. */ - dynamicClickTracker: boolean; + dynamicClickTracker?: boolean; /** * Date and time that this ad should stop serving. Must be later than the * start time. This is a required field on insertion. */ - endTime: string; + endTime?: string; /** * Event tag overrides for this ad. */ - eventTagOverrides: Schema$EventTagOverride[]; + eventTagOverrides?: Schema$EventTagOverride[]; /** * Geographical targeting information for this ad. This field must be left * blank if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - geoTargeting: Schema$GeoTargeting; + geoTargeting?: Schema$GeoTargeting; /** * ID of this ad. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this ad. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Key-value targeting information for this ad. This field must be left * blank if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - keyValueTargetingExpression: Schema$KeyValueTargetingExpression; + keyValueTargetingExpression?: Schema$KeyValueTargetingExpression; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#ad". */ - kind: string; + kind?: string; /** * Language targeting information for this ad. This field must be left blank * if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - languageTargeting: Schema$LanguageTargeting; + languageTargeting?: Schema$LanguageTargeting; /** * Information about the most recent modification of this ad. This is a * read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this ad. This is a required field and must be less than 256 * characters long. */ - name: string; + name?: string; /** * Placement assignments for this ad. */ - placementAssignments: Schema$PlacementAssignment[]; + placementAssignments?: Schema$PlacementAssignment[]; /** * Remarketing list targeting expression for this ad. This field must be * left blank if the ad is using a targeting template. Applicable when type * is AD_SERVING_STANDARD_AD. */ - remarketingListExpression: Schema$ListTargetingExpression; + remarketingListExpression?: Schema$ListTargetingExpression; /** * Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ - size: Schema$Size; + size?: Schema$Size; /** * Whether this ad is ssl compliant. This is a read-only field that is * auto-generated when the ad is inserted or updated. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Whether this ad requires ssl. This is a read-only field that is * auto-generated when the ad is inserted or updated. */ - sslRequired: boolean; + sslRequired?: boolean; /** * Date and time that this ad should start serving. If creating an ad, this * field must be a time in the future. This is a required field on * insertion. */ - startTime: string; + startTime?: string; /** * Subaccount ID of this ad. This is a read-only field that can be left * blank. */ - subaccountId: string; + subaccountId?: string; /** * Targeting template ID, used to apply preconfigured targeting information * to this ad. This cannot be set while any of dayPartTargeting, @@ -750,19 +753,19 @@ export namespace dfareporting_v2_8 { * remarketingListExpression, or technologyTargeting are set. Applicable * when type is AD_SERVING_STANDARD_AD. */ - targetingTemplateId: string; + targetingTemplateId?: string; /** * Technology platform targeting information for this ad. This field must be * left blank if the ad is using a targeting template. Applicable when type * is AD_SERVING_STANDARD_AD. */ - technologyTargeting: Schema$TechnologyTargeting; + technologyTargeting?: Schema$TechnologyTargeting; /** * Type of ad. This is a required field on insertion. Note that default ads * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative * resource). */ - type: string; + type?: string; } /** * Campaign ad blocking settings. @@ -772,26 +775,26 @@ export namespace dfareporting_v2_8 { * Click-through URL used by brand-neutral ads. This is a required field * when overrideClickThroughUrl is set to true. */ - clickThroughUrl: string; + clickThroughUrl?: string; /** * ID of a creative bundle to use for this campaign. If set, brand-neutral * ads will select creatives from this bundle. Otherwise, a default * transparent pixel will be used. */ - creativeBundleId: string; + creativeBundleId?: string; /** * Whether this campaign has enabled ad blocking. When true, ad blocking is * enabled for placements in the campaign, but this may be overridden by * site and placement settings. When false, ad blocking is disabled for all * placements under the campaign, regardless of site and placement settings. */ - enabled: boolean; + enabled?: boolean; /** * Whether the brand-neutral ad's click-through URL comes from the * campaign's creative bundle or the override URL. Must be set to true * if ad blocking is enabled and no creative bundle is configured. */ - overrideClickThroughUrl: boolean; + overrideClickThroughUrl?: boolean; } /** * Ad List Response @@ -800,16 +803,16 @@ export namespace dfareporting_v2_8 { /** * Ad collection. */ - ads: Schema$Ad[]; + ads?: Schema$Ad[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#adsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Ad Slot @@ -818,7 +821,7 @@ export namespace dfareporting_v2_8 { /** * Comment for this ad slot. */ - comment: string; + comment?: string; /** * Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to * rendering either on desktop, mobile devices or in mobile apps for regular @@ -826,32 +829,32 @@ export namespace dfareporting_v2_8 { * rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in * in-stream video ads developed with the VAST standard. */ - compatibility: string; + compatibility?: string; /** * Height of this ad slot. */ - height: string; + height?: string; /** * ID of the placement from an external platform that is linked to this ad * slot. */ - linkedPlacementId: string; + linkedPlacementId?: string; /** * Name of this ad slot. */ - name: string; + name?: string; /** * Payment source type of this ad slot. */ - paymentSourceType: string; + paymentSourceType?: string; /** * Primary ad slot of a roadblock inventory item. */ - primary: boolean; + primary?: boolean; /** * Width of this ad slot. */ - width: string; + width?: string; } /** * Contains properties of a DCM advertiser. @@ -861,27 +864,27 @@ export namespace dfareporting_v2_8 { * Account ID of this advertiser.This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * ID of the advertiser group this advertiser belongs to. You can group * advertisers for reporting purposes, allowing you to see aggregated * information for all advertisers in each group. */ - advertiserGroupId: string; + advertiserGroupId?: string; /** * Suffix added to click-through URL of ad creative associations under this * advertiser. Must be less than 129 characters long. */ - clickThroughUrlSuffix: string; + clickThroughUrlSuffix?: string; /** * ID of the click-through event tag to apply by default to the landing * pages of this advertiser's campaigns. */ - defaultClickThroughEventTagId: string; + defaultClickThroughEventTagId?: string; /** * Default email address used in sender field for tag emails. */ - defaultEmail: string; + defaultEmail?: string; /** * Floodlight configuration ID of this advertiser. The floodlight * configuration ID will be created automatically, so on insert this field @@ -893,31 +896,31 @@ export namespace dfareporting_v2_8 { * This advertiser's original floodlight configuration is not already * shared with another advertiser. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * Dimension value for the ID of the floodlight configuration. This is a * read-only, auto-generated field. */ - floodlightConfigurationIdDimensionValue: Schema$DimensionValue; + floodlightConfigurationIdDimensionValue?: Schema$DimensionValue; /** * ID of this advertiser. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this advertiser. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiser". */ - kind: string; + kind?: string; /** * Name of this advertiser. This is a required field and must be less than * 256 characters long and unique among advertisers of the same account. */ - name: string; + name?: string; /** * Original floodlight configuration before any sharing occurred. Set the * floodlightConfigurationId of this advertiser to @@ -926,20 +929,20 @@ export namespace dfareporting_v2_8 { * floodlight configuration if the shared configuration has activities * associated with any campaign or placement. */ - originalFloodlightConfigurationId: string; + originalFloodlightConfigurationId?: string; /** * Status of this advertiser. */ - status: string; + status?: string; /** * Subaccount ID of this advertiser.This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Suspension status of this advertiser. */ - suspended: boolean; + suspended?: boolean; } /** * Groups advertisers together so that reports can be generated for the entire @@ -950,22 +953,22 @@ export namespace dfareporting_v2_8 { * Account ID of this advertiser group. This is a read-only field that can * be left blank. */ - accountId: string; + accountId?: string; /** * ID of this advertiser group. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiserGroup". */ - kind: string; + kind?: string; /** * Name of this advertiser group. This is a required field and must be less * than 256 characters long and unique among advertiser groups of the same * account. */ - name: string; + name?: string; } /** * Advertiser Group List Response @@ -974,16 +977,16 @@ export namespace dfareporting_v2_8 { /** * Advertiser group collection. */ - advertiserGroups: Schema$AdvertiserGroup[]; + advertiserGroups?: Schema$AdvertiserGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiserGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Advertiser List Response @@ -992,16 +995,16 @@ export namespace dfareporting_v2_8 { /** * Advertiser collection. */ - advertisers: Schema$Advertiser[]; + advertisers?: Schema$Advertiser[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertisersListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Audience Segment. @@ -1012,16 +1015,16 @@ export namespace dfareporting_v2_8 { * in proportion to the weights assigned to other segments in the same * segment group. Acceptable values are 1 to 1000, inclusive. */ - allocation: number; + allocation?: number; /** * ID of this audience segment. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Name of this audience segment. This is a required field and must be less * than 65 characters long. */ - name: string; + name?: string; } /** * Audience Segment Group. @@ -1031,17 +1034,17 @@ export namespace dfareporting_v2_8 { * Audience segments assigned to this group. The number of segments must be * between 2 and 100. */ - audienceSegments: Schema$AudienceSegment[]; + audienceSegments?: Schema$AudienceSegment[]; /** * ID of this audience segment group. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Name of this audience segment group. This is a required field and must be * less than 65 characters long. */ - name: string; + name?: string; } /** * Contains information about a browser that can be targeted by ads. @@ -1051,16 +1054,16 @@ export namespace dfareporting_v2_8 { * ID referring to this grouping of browser and version numbers. This is the * ID used for targeting. */ - browserVersionId: string; + browserVersionId?: string; /** * DART ID of this browser. This is the ID used when generating reports. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#browser". */ - kind: string; + kind?: string; /** * Major version number (leftmost number) of this browser. For example, for * Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) @@ -1071,7 +1074,7 @@ export namespace dfareporting_v2_8 { * cases where the ad server knows the browser is Firefox but can't tell * which version it is. */ - majorVersion: string; + majorVersion?: string; /** * Minor version number (number after first dot on left) of this browser. * For example, for Chrome 5.0.375.86 beta, this field should be set to 0. @@ -1082,11 +1085,11 @@ export namespace dfareporting_v2_8 { * not 4.0. Firefox ?.? targets cases where the ad server knows the browser * is Firefox but can't tell which version it is. */ - minorVersion: string; + minorVersion?: string; /** * Name of this browser. */ - name: string; + name?: string; } /** * Browser List Response @@ -1095,12 +1098,12 @@ export namespace dfareporting_v2_8 { /** * Browser collection. */ - browsers: Schema$Browser[]; + browsers?: Schema$Browser[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#browsersListResponse". */ - kind: string; + kind?: string; } /** * Contains properties of a DCM campaign. @@ -1110,69 +1113,70 @@ export namespace dfareporting_v2_8 { * Account ID of this campaign. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Ad blocking settings for this campaign. */ - adBlockingConfiguration: Schema$AdBlockingConfiguration; + adBlockingConfiguration?: Schema$AdBlockingConfiguration; /** * Additional creative optimization configurations for the campaign. */ - additionalCreativeOptimizationConfigurations: + additionalCreativeOptimizationConfigurations?: Schema$CreativeOptimizationConfiguration[]; /** * Advertiser group ID of the associated advertiser. */ - advertiserGroupId: string; + advertiserGroupId?: string; /** * Advertiser ID of this campaign. This is a required field. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the advertiser ID of this campaign. This is a * read-only, auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this campaign has been archived. */ - archived: boolean; + archived?: boolean; /** * Audience segment groups assigned to this campaign. Cannot have more than * 300 segment groups. */ - audienceSegmentGroups: Schema$AudienceSegmentGroup[]; + audienceSegmentGroups?: Schema$AudienceSegmentGroup[]; /** * Billing invoice code included in the DCM client billing invoices * associated with the campaign. */ - billingInvoiceCode: string; + billingInvoiceCode?: string; /** * Click-through URL suffix override properties for this campaign. */ - clickThroughUrlSuffixProperties: Schema$ClickThroughUrlSuffixProperties; + clickThroughUrlSuffixProperties?: Schema$ClickThroughUrlSuffixProperties; /** * Arbitrary comments about this campaign. Must be less than 256 characters * long. */ - comment: string; + comment?: string; /** * Information about the creation of this campaign. This is a read-only * field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * List of creative group IDs that are assigned to the campaign. */ - creativeGroupIds: string[]; + creativeGroupIds?: string[]; /** * Creative optimization configuration for the campaign. */ - creativeOptimizationConfiguration: Schema$CreativeOptimizationConfiguration; + creativeOptimizationConfiguration?: + Schema$CreativeOptimizationConfiguration; /** * Click-through event tag ID override properties for this campaign. */ - defaultClickThroughEventTagProperties: + defaultClickThroughEventTagProperties?: Schema$DefaultClickThroughEventTagProperties; /** * Date on which the campaign will stop running. On insert, the end date @@ -1183,63 +1187,63 @@ export namespace dfareporting_v2_8 { * not be set, as doing so will result in an error. This is a required * field. */ - endDate: string; + endDate?: string; /** * Overrides that can be used to activate or deactivate advertiser event * tags. */ - eventTagOverrides: Schema$EventTagOverride[]; + eventTagOverrides?: Schema$EventTagOverride[]; /** * External ID for this campaign. */ - externalId: string; + externalId?: string; /** * ID of this campaign. This is a read-only auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this campaign. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaign". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this campaign. This is * a read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Lookback window settings for the campaign. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Name of this campaign. This is a required field and must be less than 256 * characters long and unique among campaigns of the same advertiser. */ - name: string; + name?: string; /** * Whether Nielsen reports are enabled for this campaign. */ - nielsenOcrEnabled: boolean; + nielsenOcrEnabled?: boolean; /** * Date on which the campaign starts running. The start date can be any * date. The hours, minutes, and seconds of the start date should not be * set, as doing so will result in an error. This is a required field. */ - startDate: string; + startDate?: string; /** * Subaccount ID of this campaign. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Campaign trafficker contact emails. */ - traffickerEmails: string[]; + traffickerEmails?: string[]; } /** * Identifies a creative which has been associated with a given campaign. @@ -1249,12 +1253,12 @@ export namespace dfareporting_v2_8 { * ID of the creative associated with the campaign. This is a required * field. */ - creativeId: string; + creativeId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaignCreativeAssociation". */ - kind: string; + kind?: string; } /** * Campaign Creative Association List Response @@ -1263,16 +1267,16 @@ export namespace dfareporting_v2_8 { /** * Campaign creative association collection */ - campaignCreativeAssociations: Schema$CampaignCreativeAssociation[]; + campaignCreativeAssociations?: Schema$CampaignCreativeAssociation[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaignCreativeAssociationsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Campaign List Response @@ -1281,16 +1285,16 @@ export namespace dfareporting_v2_8 { /** * Campaign collection. */ - campaigns: Schema$Campaign[]; + campaigns?: Schema$Campaign[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaignsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Describes a change that a user has made to a resource. @@ -1299,63 +1303,63 @@ export namespace dfareporting_v2_8 { /** * Account ID of the modified object. */ - accountId: string; + accountId?: string; /** * Action which caused the change. */ - action: string; + action?: string; /** * Time when the object was modified. */ - changeTime: string; + changeTime?: string; /** * Field name of the object which changed. */ - fieldName: string; + fieldName?: string; /** * ID of this change log. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#changeLog". */ - kind: string; + kind?: string; /** * New value of the object field. */ - newValue: string; + newValue?: string; /** * ID of the object of this change log. The object could be a campaign, * placement, ad, or other type. */ - objectId: string; + objectId?: string; /** * Object type of the change log. */ - objectType: string; + objectType?: string; /** * Old value of the object field. */ - oldValue: string; + oldValue?: string; /** * Subaccount ID of the modified object. */ - subaccountId: string; + subaccountId?: string; /** * Transaction ID of this change log. When a single API call results in many * changes, each change will have a separate ID in the change log but will * share the same transactionId. */ - transactionId: string; + transactionId?: string; /** * ID of the user who modified the object. */ - userProfileId: string; + userProfileId?: string; /** * User profile name of the user who modified the object. */ - userProfileName: string; + userProfileName?: string; } /** * Change Log List Response @@ -1364,16 +1368,16 @@ export namespace dfareporting_v2_8 { /** * Change log collection. */ - changeLogs: Schema$ChangeLog[]; + changeLogs?: Schema$ChangeLog[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#changeLogsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * City List Response @@ -1382,12 +1386,12 @@ export namespace dfareporting_v2_8 { /** * City collection. */ - cities: Schema$City[]; + cities?: Schema$City[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#citiesListResponse". */ - kind: string; + kind?: string; } /** * Contains information about a city that can be targeted by ads. @@ -1396,41 +1400,41 @@ export namespace dfareporting_v2_8 { /** * Country code of the country to which this city belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this city belongs. */ - countryDartId: string; + countryDartId?: string; /** * DART ID of this city. This is the ID used for targeting and generating * reports. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#city". */ - kind: string; + kind?: string; /** * Metro region code of the metro region (DMA) to which this city belongs. */ - metroCode: string; + metroCode?: string; /** * ID of the metro region (DMA) to which this city belongs. */ - metroDmaId: string; + metroDmaId?: string; /** * Name of this city. */ - name: string; + name?: string; /** * Region code of the region to which this city belongs. */ - regionCode: string; + regionCode?: string; /** * DART ID of the region to which this city belongs. */ - regionDartId: string; + regionDartId?: string; } /** * Creative Click Tag. @@ -1441,18 +1445,18 @@ export namespace dfareporting_v2_8 { * by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to * DISPLAY when the primary asset type is not HTML_IMAGE. */ - eventName: string; + eventName?: string; /** * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY * creative assets, this field must match the value of the creative * asset's creativeAssetId.name field. */ - name: string; + name?: string; /** * Parameter value for the specified click tag. This field contains a * click-through url. */ - value: string; + value?: string; } /** * Click-through URL @@ -1467,21 +1471,21 @@ export namespace dfareporting_v2_8 { * is assigned to this field. - If neither of the above cases apply, then * the customClickThroughUrl is assigned to this field. */ - computedClickThroughUrl: string; + computedClickThroughUrl?: string; /** * Custom click-through URL. Applicable if the defaultLandingPage field is * set to false and the landingPageId field is left unset. */ - customClickThroughUrl: string; + customClickThroughUrl?: string; /** * Whether the campaign default landing page is used. */ - defaultLandingPage: boolean; + defaultLandingPage?: boolean; /** * ID of the landing page for the click-through URL. Applicable if the * defaultLandingPage field is set to false. */ - landingPageId: string; + landingPageId?: string; } /** * Click Through URL Suffix settings. @@ -1491,12 +1495,12 @@ export namespace dfareporting_v2_8 { * Click-through URL suffix to apply to all ads in this entity's scope. * Must be less than 128 characters long. */ - clickThroughUrlSuffix: string; + clickThroughUrlSuffix?: string; /** * Whether this entity should override the inherited click-through URL * suffix with its own defined value. */ - overrideInheritedSuffix: boolean; + overrideInheritedSuffix?: boolean; } /** * Companion Click-through override. @@ -1505,11 +1509,11 @@ export namespace dfareporting_v2_8 { /** * Click-through URL of this companion click-through override. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * ID of the creative for this companion click-through override. */ - creativeId: string; + creativeId?: string; } /** * Companion Settings @@ -1518,21 +1522,21 @@ export namespace dfareporting_v2_8 { /** * Whether companions are disabled for this placement. */ - companionsDisabled: boolean; + companionsDisabled?: boolean; /** * Whitelist of companion sizes to be served to this placement. Set this * list to null or empty to serve all companion sizes. */ - enabledSizes: Schema$Size[]; + enabledSizes?: Schema$Size[]; /** * Whether to serve only static images as companions. */ - imageOnly: boolean; + imageOnly?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#companionSetting". */ - kind: string; + kind?: string; } /** * Represents a response to the queryCompatibleFields method. @@ -1542,33 +1546,33 @@ export namespace dfareporting_v2_8 { * Contains items that are compatible to be selected for a report of type * "CROSS_DIMENSION_REACH". */ - crossDimensionReachReportCompatibleFields: + crossDimensionReachReportCompatibleFields?: Schema$CrossDimensionReachReportCompatibleFields; /** * Contains items that are compatible to be selected for a report of type * "FLOODLIGHT". */ - floodlightReportCompatibleFields: Schema$FloodlightReportCompatibleFields; + floodlightReportCompatibleFields?: Schema$FloodlightReportCompatibleFields; /** * The kind of resource this is, in this case dfareporting#compatibleFields. */ - kind: string; + kind?: string; /** * Contains items that are compatible to be selected for a report of type * "PATH_TO_CONVERSION". */ - pathToConversionReportCompatibleFields: + pathToConversionReportCompatibleFields?: Schema$PathToConversionReportCompatibleFields; /** * Contains items that are compatible to be selected for a report of type * "REACH". */ - reachReportCompatibleFields: Schema$ReachReportCompatibleFields; + reachReportCompatibleFields?: Schema$ReachReportCompatibleFields; /** * Contains items that are compatible to be selected for a report of type * "STANDARD". */ - reportCompatibleFields: Schema$ReportCompatibleFields; + reportCompatibleFields?: Schema$ReportCompatibleFields; } /** * Contains information about an internet connection type that can be targeted @@ -1579,16 +1583,16 @@ export namespace dfareporting_v2_8 { /** * ID of this connection type. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#connectionType". */ - kind: string; + kind?: string; /** * Name of this connection type. */ - name: string; + name?: string; } /** * Connection Type List Response @@ -1597,12 +1601,12 @@ export namespace dfareporting_v2_8 { /** * Collection of connection types such as broadband and mobile. */ - connectionTypes: Schema$ConnectionType[]; + connectionTypes?: Schema$ConnectionType[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#connectionTypesListResponse". */ - kind: string; + kind?: string; } /** * Content Category List Response @@ -1611,16 +1615,16 @@ export namespace dfareporting_v2_8 { /** * Content category collection. */ - contentCategories: Schema$ContentCategory[]; + contentCategories?: Schema$ContentCategory[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#contentCategoriesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Organizes placements according to the contents of their associated @@ -1631,22 +1635,22 @@ export namespace dfareporting_v2_8 { * Account ID of this content category. This is a read-only field that can * be left blank. */ - accountId: string; + accountId?: string; /** * ID of this content category. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#contentCategory". */ - kind: string; + kind?: string; /** * Name of this content category. This is a required field and must be less * than 256 characters long and unique among content categories of the same * account. */ - name: string; + name?: string; } /** * A Conversion represents when a user successfully performs a desired action @@ -1656,11 +1660,11 @@ export namespace dfareporting_v2_8 { /** * Whether the conversion was directed toward children. */ - childDirectedTreatment: boolean; + childDirectedTreatment?: boolean; /** * Custom floodlight variables. */ - customVariables: Schema$CustomFloodlightVariable[]; + customVariables?: Schema$CustomFloodlightVariable[]; /** * The alphanumeric encrypted user ID. When set, encryptionInfo should also * be specified. This field is mutually exclusive with @@ -1668,7 +1672,7 @@ export namespace dfareporting_v2_8 { * encryptedUserIdCandidates[] or mobileDeviceId or gclid is a required * field. */ - encryptedUserId: string; + encryptedUserId?: string; /** * A list of the alphanumeric encrypted user IDs. Any user ID with exposure * prior to the conversion timestamp will be used in the inserted @@ -1679,58 +1683,58 @@ export namespace dfareporting_v2_8 { * exclusive with encryptedUserId, mobileDeviceId and gclid. This or * encryptedUserId or mobileDeviceId or gclid is a required field. */ - encryptedUserIdCandidates: string[]; + encryptedUserIdCandidates?: string[]; /** * Floodlight Activity ID of this conversion. This is a required field. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Floodlight Configuration ID of this conversion. This is a required field. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * The Google click ID. This field is mutually exclusive with * encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This or * encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId is a * required field. */ - gclid: string; + gclid?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversion". */ - kind: string; + kind?: string; /** * Whether Limit Ad Tracking is enabled. When set to true, the conversion * will be used for reporting but not targeting. This will prevent * remarketing. */ - limitAdTracking: boolean; + limitAdTracking?: boolean; /** * The mobile device ID. This field is mutually exclusive with * encryptedUserId, encryptedUserIdCandidates[] and gclid. This or * encryptedUserId or encryptedUserIdCandidates[] or gclid is a required * field. */ - mobileDeviceId: string; + mobileDeviceId?: string; /** * The ordinal of the conversion. Use this field to control how conversions * of the same user and day are de-duplicated. This is a required field. */ - ordinal: string; + ordinal?: string; /** * The quantity of the conversion. */ - quantity: string; + quantity?: string; /** * The timestamp of conversion, in Unix epoch micros. This is a required * field. */ - timestampMicros: string; + timestampMicros?: string; /** * The value of the conversion. */ - value: number; + value?: number; } /** * The error code and description for a conversion that failed to insert or @@ -1740,16 +1744,16 @@ export namespace dfareporting_v2_8 { /** * The error code. */ - code: string; + code?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionError". */ - kind: string; + kind?: string; /** * A description of the error. */ - message: string; + message?: string; } /** * Insert Conversions Request. @@ -1758,18 +1762,18 @@ export namespace dfareporting_v2_8 { /** * The set of conversions to insert. */ - conversions: Schema$Conversion[]; + conversions?: Schema$Conversion[]; /** * Describes how encryptedUserId or encryptedUserIdCandidates[] is * encrypted. This is a required field if encryptedUserId or * encryptedUserIdCandidates[] is used. */ - encryptionInfo: Schema$EncryptionInfo; + encryptionInfo?: Schema$EncryptionInfo; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchInsertRequest". */ - kind: string; + kind?: string; } /** * Insert Conversions Response. @@ -1778,17 +1782,17 @@ export namespace dfareporting_v2_8 { /** * Indicates that some or all conversions failed to insert. */ - hasFailures: boolean; + hasFailures?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchInsertResponse". */ - kind: string; + kind?: string; /** * The insert status of each conversion. Statuses are returned in the same * order that conversions are inserted. */ - status: Schema$ConversionStatus[]; + status?: Schema$ConversionStatus[]; } /** * Update Conversions Request. @@ -1797,17 +1801,17 @@ export namespace dfareporting_v2_8 { /** * The set of conversions to update. */ - conversions: Schema$Conversion[]; + conversions?: Schema$Conversion[]; /** * Describes how encryptedUserId is encrypted. This is a required field if * encryptedUserId is used. */ - encryptionInfo: Schema$EncryptionInfo; + encryptionInfo?: Schema$EncryptionInfo; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchUpdateRequest". */ - kind: string; + kind?: string; } /** * Update Conversions Response. @@ -1816,17 +1820,17 @@ export namespace dfareporting_v2_8 { /** * Indicates that some or all conversions failed to update. */ - hasFailures: boolean; + hasFailures?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchUpdateResponse". */ - kind: string; + kind?: string; /** * The update status of each conversion. Statuses are returned in the same * order that conversions are updated. */ - status: Schema$ConversionStatus[]; + status?: Schema$ConversionStatus[]; } /** * The original conversion that was inserted or updated and whether there were @@ -1836,16 +1840,16 @@ export namespace dfareporting_v2_8 { /** * The original conversion that was inserted or updated. */ - conversion: Schema$Conversion; + conversion?: Schema$Conversion; /** * A list of errors related to this conversion. */ - errors: Schema$ConversionError[]; + errors?: Schema$ConversionError[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionStatus". */ - kind: string; + kind?: string; } /** * Country List Response @@ -1854,12 +1858,12 @@ export namespace dfareporting_v2_8 { /** * Country collection. */ - countries: Schema$Country[]; + countries?: Schema$Country[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#countriesListResponse". */ - kind: string; + kind?: string; } /** * Contains information about a country that can be targeted by ads. @@ -1868,25 +1872,25 @@ export namespace dfareporting_v2_8 { /** * Country code. */ - countryCode: string; + countryCode?: string; /** * DART ID of this country. This is the ID used for targeting and generating * reports. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#country". */ - kind: string; + kind?: string; /** * Name of this country. */ - name: string; + name?: string; /** * Whether ad serving supports secure servers in this country. */ - sslEnabled: boolean; + sslEnabled?: boolean; } /** * Contains properties of a Creative. @@ -1897,16 +1901,16 @@ export namespace dfareporting_v2_8 { * auto-generated for both insert and update operations. Applicable to all * creative types. */ - accountId: string; + accountId?: string; /** * Whether the creative is active. Applicable to all creative types. */ - active: boolean; + active?: boolean; /** * Ad parameters user for VPAID creative. This is a read-only field. * Applicable to the following creative types: all VPAID. */ - adParameters: string; + adParameters?: string; /** * Keywords for a Rich Media creative. Keywords let you customize the * creative settings of a Rich Media ad running on your site without having @@ -1914,56 +1918,56 @@ export namespace dfareporting_v2_8 { * look or functionality of a creative. Applicable to the following creative * types: all RICH_MEDIA, and all VPAID. */ - adTagKeys: string[]; + adTagKeys?: string[]; /** * Advertiser ID of this creative. This is a required field. Applicable to * all creative types. */ - advertiserId: string; + advertiserId?: string; /** * Whether script access is allowed for this creative. This is a read-only * and deprecated field which will automatically be set to true on update. * Applicable to the following creative types: FLASH_INPAGE. */ - allowScriptAccess: boolean; + allowScriptAccess?: boolean; /** * Whether the creative is archived. Applicable to all creative types. */ - archived: boolean; + archived?: boolean; /** * Type of artwork used for the creative. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA, and all * VPAID. */ - artworkType: string; + artworkType?: string; /** * Source application where creative was authored. Presently, only DBM * authored creatives will have this field set. Applicable to all creative * types. */ - authoringSource: string; + authoringSource?: string; /** * Authoring tool for HTML5 banner creatives. This is a read-only field. * Applicable to the following creative types: HTML5_BANNER. */ - authoringTool: string; + authoringTool?: string; /** * Whether images are automatically advanced for image gallery creatives. * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. */ - autoAdvanceImages: boolean; + autoAdvanceImages?: boolean; /** * The 6-character HTML color code, beginning with #, for the background of * the window area where the Flash file is displayed. Default is white. * Applicable to the following creative types: FLASH_INPAGE. */ - backgroundColor: string; + backgroundColor?: string; /** * Click-through URL for backup image. Applicable to the following creative * types: FLASH_INPAGE, and HTML5_BANNER. Applicable to DISPLAY when the * primary asset type is not HTML_IMAGE. */ - backupImageClickThroughUrl: string; + backupImageClickThroughUrl?: string; /** * List of feature dependencies that will cause a backup image to be served * if the browser that serves the ad does not support them. Feature @@ -1975,19 +1979,19 @@ export namespace dfareporting_v2_8 { * Applicable to the following creative types: HTML5_BANNER. Applicable to * DISPLAY when the primary asset type is not HTML_IMAGE. */ - backupImageFeatures: string[]; + backupImageFeatures?: string[]; /** * Reporting label used for HTML5 banner backup image. Applicable to the * following creative types: DISPLAY when the primary asset type is not * HTML_IMAGE. */ - backupImageReportingLabel: string; + backupImageReportingLabel?: string; /** * Target window for backup image. Applicable to the following creative * types: FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the * primary asset type is not HTML_IMAGE. */ - backupImageTargetWindow: Schema$TargetWindow; + backupImageTargetWindow?: Schema$TargetWindow; /** * Click tags of the creative. For DISPLAY, FLASH_INPAGE, and HTML5_BANNER * creatives, this is a subset of detected click tags for the assets @@ -2002,19 +2006,19 @@ export namespace dfareporting_v2_8 { * creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ - clickTags: Schema$ClickTag[]; + clickTags?: Schema$ClickTag[]; /** * Industry standard ID assigned to creative for reach and frequency. * Applicable to INSTREAM_VIDEO_REDIRECT creatives. */ - commercialId: string; + commercialId?: string; /** * List of companion creatives assigned to an in-Stream videocreative. * Acceptable values include IDs of existing flash and image creatives. * Applicable to the following creative types: all VPAID and all * INSTREAM_VIDEO with dynamicAssetSelection set to false. */ - companionCreatives: string[]; + companionCreatives?: string[]; /** * Compatibilities associated with this creative. This is a read-only field. * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or @@ -2028,7 +2032,7 @@ export namespace dfareporting_v2_8 { * "IN_STREAM_VIDEO" - "DISPLAY" - * "DISPLAY_INTERSTITIAL" */ - compatibility: string[]; + compatibility?: string[]; /** * Whether Flash assets associated with the creative need to be * automatically converted to HTML5. This flag is enabled by default and @@ -2037,29 +2041,29 @@ export namespace dfareporting_v2_8 { * following creative type: FLASH_INPAGE. Applicable to DISPLAY when the * primary asset type is not HTML_IMAGE. */ - convertFlashToHtml5: boolean; + convertFlashToHtml5?: boolean; /** * List of counter events configured for the creative. For * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated * from clickTags. Applicable to the following creative types: * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. */ - counterCustomEvents: Schema$CreativeCustomEvent[]; + counterCustomEvents?: Schema$CreativeCustomEvent[]; /** * Assets associated with a creative. Applicable to all but the following * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and * REDIRECT */ - creativeAssets: Schema$CreativeAsset[]; + creativeAssets?: Schema$CreativeAsset[]; /** * Required if dynamicAssetSelection is true. */ - creativeAssetSelection: Schema$CreativeAssetSelection; + creativeAssetSelection?: Schema$CreativeAssetSelection; /** * Creative field assignments for this creative. Applicable to all creative * types. */ - creativeFieldAssignments: Schema$CreativeFieldAssignment[]; + creativeFieldAssignments?: Schema$CreativeFieldAssignment[]; /** * Custom key-values for a Rich Media creative. Key-values let you customize * the creative settings of a Rich Media ad running on your site without @@ -2067,7 +2071,7 @@ export namespace dfareporting_v2_8 { * change the look or functionality of a creative. Applicable to the * following creative types: all RICH_MEDIA, and all VPAID. */ - customKeyValues: string[]; + customKeyValues?: string[]; /** * Set this to true to enable the use of rules to target individual assets * in this creative. When set to true creativeAssetSelection must be set. @@ -2075,7 +2079,7 @@ export namespace dfareporting_v2_8 { * creatives should be assigned to creative assets. Learn more. Applicable * to INSTREAM_VIDEO creatives. */ - dynamicAssetSelection: boolean; + dynamicAssetSelection?: boolean; /** * List of exit events configured for the creative. For DISPLAY and * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated @@ -2084,68 +2088,68 @@ export namespace dfareporting_v2_8 { * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to * DISPLAY when the primary asset type is not HTML_IMAGE. */ - exitCustomEvents: Schema$CreativeCustomEvent[]; + exitCustomEvents?: Schema$CreativeCustomEvent[]; /** * OpenWindow FSCommand of this creative. This lets the SWF file communicate * with either Flash Player or the program hosting Flash Player, such as a * web browser. This is only triggered if allowScriptAccess field is true. * Applicable to the following creative types: FLASH_INPAGE. */ - fsCommand: Schema$FsCommand; + fsCommand?: Schema$FsCommand; /** * HTML code for the creative. This is a required field when applicable. * This field is ignored if htmlCodeLocked is true. Applicable to the * following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and * all RICH_MEDIA. */ - htmlCode: string; + htmlCode?: string; /** * Whether HTML code is DCM-generated or manually entered. Set to true to * ignore changes to htmlCode. Applicable to the following creative types: * FLASH_INPAGE and HTML5_BANNER. */ - htmlCodeLocked: boolean; + htmlCodeLocked?: boolean; /** * ID of this creative. This is a read-only, auto-generated field. * Applicable to all creative types. */ - id: string; + id?: string; /** * Dimension value for the ID of this creative. This is a read-only field. * Applicable to all creative types. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creative". */ - kind: string; + kind?: string; /** * Creative last modification information. This is a read-only field. * Applicable to all creative types. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Latest Studio trafficked creative ID associated with rich media and VPAID * creatives. This is a read-only field. Applicable to the following * creative types: all RICH_MEDIA, and all VPAID. */ - latestTraffickedCreativeId: string; + latestTraffickedCreativeId?: string; /** * Name of the creative. This is a required field and must be less than 256 * characters long. Applicable to all creative types. */ - name: string; + name?: string; /** * Override CSS value for rich media creatives. Applicable to the following * creative types: all RICH_MEDIA. */ - overrideCss: string; + overrideCss?: string; /** * Amount of time to play the video before counting a view. Applicable to * the following creative types: all INSTREAM_VIDEO. */ - progressOffset: Schema$VideoOffset; + progressOffset?: Schema$VideoOffset; /** * URL of hosted image or hosted video or another ad tag. For * INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect @@ -2155,30 +2159,30 @@ export namespace dfareporting_v2_8 { * types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, * INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT */ - redirectUrl: string; + redirectUrl?: string; /** * ID of current rendering version. This is a read-only field. Applicable to * all creative types. */ - renderingId: string; + renderingId?: string; /** * Dimension value for the rendering ID of this creative. This is a * read-only field. Applicable to all creative types. */ - renderingIdDimensionValue: Schema$DimensionValue; + renderingIdDimensionValue?: Schema$DimensionValue; /** * The minimum required Flash plugin version for this creative. For * example, 11.2.202.235. This is a read-only field. Applicable to the * following creative types: all RICH_MEDIA, and all VPAID. */ - requiredFlashPluginVersion: string; + requiredFlashPluginVersion?: string; /** * The internal Flash version for this creative as calculated by DoubleClick * Studio. This is a read-only field. Applicable to the following creative * types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY * when the primary asset type is not HTML_IMAGE. */ - requiredFlashVersion: number; + requiredFlashVersion?: number; /** * Size associated with this creative. When inserting or updating a creative * either the size ID field or size width and height fields can be used. @@ -2189,66 +2193,66 @@ export namespace dfareporting_v2_8 { * creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, * HTML5_BANNER, IMAGE, and all RICH_MEDIA. */ - size: Schema$Size; + size?: Schema$Size; /** * Amount of time to play the video before the skip button appears. * Applicable to the following creative types: all INSTREAM_VIDEO. */ - skipOffset: Schema$VideoOffset; + skipOffset?: Schema$VideoOffset; /** * Whether the user can choose to skip the creative. Applicable to the * following creative types: all INSTREAM_VIDEO and all VPAID. */ - skippable: boolean; + skippable?: boolean; /** * Whether the creative is SSL-compliant. This is a read-only field. * Applicable to all creative types. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Whether creative should be treated as SSL compliant even if the system * scan shows it's not. Applicable to all creative types. */ - sslOverride: boolean; + sslOverride?: boolean; /** * Studio advertiser ID associated with rich media and VPAID creatives. This * is a read-only field. Applicable to the following creative types: all * RICH_MEDIA, and all VPAID. */ - studioAdvertiserId: string; + studioAdvertiserId?: string; /** * Studio creative ID associated with rich media and VPAID creatives. This * is a read-only field. Applicable to the following creative types: all * RICH_MEDIA, and all VPAID. */ - studioCreativeId: string; + studioCreativeId?: string; /** * Studio trafficked creative ID associated with rich media and VPAID * creatives. This is a read-only field. Applicable to the following * creative types: all RICH_MEDIA, and all VPAID. */ - studioTraffickedCreativeId: string; + studioTraffickedCreativeId?: string; /** * Subaccount ID of this creative. This field, if left unset, will be * auto-generated for both insert and update operations. Applicable to all * creative types. */ - subaccountId: string; + subaccountId?: string; /** * Third-party URL used to record backup image impressions. Applicable to * the following creative types: all RICH_MEDIA. */ - thirdPartyBackupImageImpressionsUrl: string; + thirdPartyBackupImageImpressionsUrl?: string; /** * Third-party URL used to record rich media impressions. Applicable to the * following creative types: all RICH_MEDIA. */ - thirdPartyRichMediaImpressionsUrl: string; + thirdPartyRichMediaImpressionsUrl?: string; /** * Third-party URLs for tracking in-stream video creative events. Applicable * to the following creative types: all INSTREAM_VIDEO and all VPAID. */ - thirdPartyUrls: Schema$ThirdPartyTrackingUrl[]; + thirdPartyUrls?: Schema$ThirdPartyTrackingUrl[]; /** * List of timer events configured for the creative. For * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated @@ -2256,25 +2260,25 @@ export namespace dfareporting_v2_8 { * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to * DISPLAY when the primary asset is not HTML_IMAGE. */ - timerCustomEvents: Schema$CreativeCustomEvent[]; + timerCustomEvents?: Schema$CreativeCustomEvent[]; /** * Combined size of all creative assets. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA, and all * VPAID. */ - totalFileSize: string; + totalFileSize?: string; /** * Type of this creative. This is a required field. Applicable to all * creative types. Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only * used for existing creatives. New creatives should use DISPLAY as a * replacement for these types. */ - type: string; + type?: string; /** * A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following * creative types: INSTREAM_VIDEO and VPAID. */ - universalAdId: Schema$UniversalAdId; + universalAdId?: Schema$UniversalAdId; /** * The version number helps you keep track of multiple versions of your * creative in your reports. The version number will always be @@ -2285,18 +2289,18 @@ export namespace dfareporting_v2_8 { * incremented by 1 when undergoing Rich Media creative merging. Applicable * to all creative types. */ - version: number; + version?: number; /** * Description of the video ad. Applicable to the following creative types: * all INSTREAM_VIDEO and all VPAID. */ - videoDescription: string; + videoDescription?: string; /** * Creative video duration in seconds. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all * VPAID. */ - videoDuration: number; + videoDuration?: number; } /** * Creative Asset. @@ -2307,65 +2311,65 @@ export namespace dfareporting_v2_8 { * field. Applicable to the following creative type: FLASH_INPAGE. * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ - actionScript3: boolean; + actionScript3?: boolean; /** * Whether the video asset is active. This is a read-only field for * VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative * types: INSTREAM_VIDEO and all VPAID. */ - active: boolean; + active?: boolean; /** * Possible alignments for an asset. This is a read-only field. Applicable * to the following creative types: * RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. */ - alignment: string; + alignment?: string; /** * Artwork type of rich media creative. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA. */ - artworkType: string; + artworkType?: string; /** * Identifier of this asset. This is the same identifier returned during * creative asset insert operation. This is a required field. Applicable to * all but the following creative types: all REDIRECT and TRACKING_TEXT. */ - assetIdentifier: Schema$CreativeAssetId; + assetIdentifier?: Schema$CreativeAssetId; /** * Exit event configured for the backup image. Applicable to the following * creative types: all RICH_MEDIA. */ - backupImageExit: Schema$CreativeCustomEvent; + backupImageExit?: Schema$CreativeCustomEvent; /** * Detected bit-rate for video asset. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO and all VPAID. */ - bitRate: number; + bitRate?: number; /** * Rich media child asset type. This is a read-only field. Applicable to the * following creative types: all VPAID. */ - childAssetType: string; + childAssetType?: string; /** * Size of an asset when collapsed. This is a read-only field. Applicable to * the following creative types: all RICH_MEDIA and all VPAID. Additionally, * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or * ASSET_DISPLAY_TYPE_PEEL_DOWN. */ - collapsedSize: Schema$Size; + collapsedSize?: Schema$Size; /** * List of companion creatives assigned to an in-stream video creative * asset. Acceptable values include IDs of existing flash and image * creatives. Applicable to INSTREAM_VIDEO creative type with * dynamicAssetSelection set to true. */ - companionCreativeIds: string[]; + companionCreativeIds?: string[]; /** * Custom start time in seconds for making the asset visible. Applicable to * the following creative types: all RICH_MEDIA. Value must be greater than * or equal to 0. */ - customStartTimeValue: number; + customStartTimeValue?: number; /** * List of feature dependencies for the creative asset that are detected by * DCM. Feature dependencies are features that a browser must be able to @@ -2374,111 +2378,111 @@ export namespace dfareporting_v2_8 { * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is * not HTML_IMAGE. */ - detectedFeatures: string[]; + detectedFeatures?: string[]; /** * Type of rich media asset. This is a read-only field. Applicable to the * following creative types: all RICH_MEDIA. */ - displayType: string; + displayType?: string; /** * Duration in seconds for which an asset will be displayed. Applicable to * the following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. * Value must be greater than or equal to 1. */ - duration: number; + duration?: number; /** * Duration type for which an asset will be displayed. Applicable to the * following creative types: all RICH_MEDIA. */ - durationType: string; + durationType?: string; /** * Detected expanded dimension for video asset. This is a read-only field. * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. */ - expandedDimension: Schema$Size; + expandedDimension?: Schema$Size; /** * File size associated with this creative asset. This is a read-only field. * Applicable to all but the following creative types: all REDIRECT and * TRACKING_TEXT. */ - fileSize: string; + fileSize?: string; /** * Flash version of the asset. This is a read-only field. Applicable to the * following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ - flashVersion: number; + flashVersion?: number; /** * Whether to hide Flash objects flag for an asset. Applicable to the * following creative types: all RICH_MEDIA. */ - hideFlashObjects: boolean; + hideFlashObjects?: boolean; /** * Whether to hide selection boxes flag for an asset. Applicable to the * following creative types: all RICH_MEDIA. */ - hideSelectionBoxes: boolean; + hideSelectionBoxes?: boolean; /** * Whether the asset is horizontally locked. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA. */ - horizontallyLocked: boolean; + horizontallyLocked?: boolean; /** * Numeric ID of this creative asset. This is a required field and should * not be modified. Applicable to all but the following creative types: all * REDIRECT and TRACKING_TEXT. */ - id: string; + id?: string; /** * Dimension value for the ID of the asset. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Detected MIME type for video asset. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO and all VPAID. */ - mimeType: string; + mimeType?: string; /** * Offset position for an asset in collapsed mode. This is a read-only * field. Applicable to the following creative types: all RICH_MEDIA and all * VPAID. Additionally, only applicable to assets whose displayType is * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. */ - offset: Schema$OffsetPosition; + offset?: Schema$OffsetPosition; /** * Whether the backup asset is original or changed by the user in DCM. * Applicable to the following creative types: all RICH_MEDIA. */ - originalBackup: boolean; + originalBackup?: boolean; /** * Offset position for an asset. Applicable to the following creative types: * all RICH_MEDIA. */ - position: Schema$OffsetPosition; + position?: Schema$OffsetPosition; /** * Offset left unit for an asset. This is a read-only field. Applicable to * the following creative types: all RICH_MEDIA. */ - positionLeftUnit: string; + positionLeftUnit?: string; /** * Offset top unit for an asset. This is a read-only field if the asset * displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following * creative types: all RICH_MEDIA. */ - positionTopUnit: string; + positionTopUnit?: string; /** * Progressive URL for video asset. This is a read-only field. Applicable to * the following creative types: INSTREAM_VIDEO and all VPAID. */ - progressiveServingUrl: string; + progressiveServingUrl?: string; /** * Whether the asset pushes down other content. Applicable to the following * creative types: all RICH_MEDIA. Additionally, only applicable when the * asset offsets are 0, the collapsedSize.width matches size.width, and the * collapsedSize.height is less than size.height. */ - pushdown: boolean; + pushdown?: boolean; /** * Pushdown duration in seconds for an asset. Applicable to the following * creative types: all RICH_MEDIA.Additionally, only applicable when the @@ -2486,7 +2490,7 @@ export namespace dfareporting_v2_8 { * matches size.width, and the collapsedSize.height is less than * size.height. Acceptable values are 0 to 9.99, inclusive. */ - pushdownDuration: number; + pushdownDuration?: number; /** * Role of the asset in relation to creative. Applicable to all but the * following creative types: all REDIRECT and TRACKING_TEXT. This is a @@ -2510,7 +2514,7 @@ export namespace dfareporting_v2_8 { * VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or * removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. */ - role: string; + role?: string; /** * Size associated with this creative asset. This is a required field when * applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, @@ -2520,44 +2524,44 @@ export namespace dfareporting_v2_8 { * RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not * HTML_IMAGE. */ - size: Schema$Size; + size?: Schema$Size; /** * Whether the asset is SSL-compliant. This is a read-only field. Applicable * to all but the following creative types: all REDIRECT and TRACKING_TEXT. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Initial wait time type before making the asset visible. Applicable to the * following creative types: all RICH_MEDIA. */ - startTimeType: string; + startTimeType?: string; /** * Streaming URL for video asset. This is a read-only field. Applicable to * the following creative types: INSTREAM_VIDEO and all VPAID. */ - streamingServingUrl: string; + streamingServingUrl?: string; /** * Whether the asset is transparent. Applicable to the following creative * types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. */ - transparency: boolean; + transparency?: boolean; /** * Whether the asset is vertically locked. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA. */ - verticallyLocked: boolean; + verticallyLocked?: boolean; /** * Detected video duration for video asset. This is a read-only field. * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. */ - videoDuration: number; + videoDuration?: number; /** * Window mode options for flash assets. Applicable to the following * creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, * RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and * RICH_MEDIA_INPAGE_FLOATING. */ - windowMode: string; + windowMode?: string; /** * zIndex value of an asset. Applicable to the following creative types: all * RICH_MEDIA.Additionally, only applicable to assets whose displayType is @@ -2565,17 +2569,17 @@ export namespace dfareporting_v2_8 { * ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to * 999999999, inclusive. */ - zIndex: number; + zIndex?: number; /** * File name of zip file. This is a read-only field. Applicable to the * following creative types: HTML5_BANNER. */ - zipFilename: string; + zipFilename?: string; /** * Size of zip file. This is a read-only field. Applicable to the following * creative types: HTML5_BANNER. */ - zipFilesize: string; + zipFilesize?: string; } /** * Creative Asset ID. @@ -2587,12 +2591,12 @@ export namespace dfareporting_v2_8 { * uploaded asset. Characters in the name must be alphanumeric or one of the * following: ".-_ ". Spaces are allowed. */ - name: string; + name?: string; /** * Type of asset to upload. This is a required field. FLASH and IMAGE are no * longer supported for new uploads. All image assets should use HTML_IMAGE. */ - type: string; + type?: string; } /** * CreativeAssets contains properties of a creative asset file which will be @@ -2603,33 +2607,33 @@ export namespace dfareporting_v2_8 { /** * ID of the creative asset. This is a required field. */ - assetIdentifier: Schema$CreativeAssetId; + assetIdentifier?: Schema$CreativeAssetId; /** * List of detected click tags for assets. This is a read-only * auto-generated field. */ - clickTags: Schema$ClickTag[]; + clickTags?: Schema$ClickTag[]; /** * List of feature dependencies for the creative asset that are detected by * DCM. Feature dependencies are features that a browser must be able to * support in order to render your HTML5 creative correctly. This is a * read-only, auto-generated field. */ - detectedFeatures: string[]; + detectedFeatures?: string[]; /** * Numeric ID of the asset. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the numeric ID of the asset. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeAssetMetadata". */ - kind: string; + kind?: string; /** * Rules validated during code generation that generated a warning. This is * a read-only, auto-generated field. Possible values are: - @@ -2648,7 +2652,7 @@ export namespace dfareporting_v2_8 { * "PRIMARY_HTML_MISSING" - "SVG_INVALID" - * "ZIP_INVALID" */ - warnedValidationRules: string[]; + warnedValidationRules?: string[]; } /** * Encapsulates the list of rules for asset selection and a default asset in @@ -2660,13 +2664,13 @@ export namespace dfareporting_v2_8 { * this creative, and will be served if none of the rules match. This is a * required field. */ - defaultAssetId: string; + defaultAssetId?: string; /** * Rules determine which asset will be served to a viewer. Rules will be * evaluated in the order in which they are stored in this list. This list * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; } /** * Creative Assignment. @@ -2676,43 +2680,43 @@ export namespace dfareporting_v2_8 { * Whether this creative assignment is active. When true, the creative will * be included in the ad's rotation. */ - active: boolean; + active?: boolean; /** * Whether applicable event tags should fire when this creative assignment * is rendered. If this value is unset when the ad is inserted or updated, * it will default to true for all creative types EXCEPT for * INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. */ - applyEventTags: boolean; + applyEventTags?: boolean; /** * Click-through URL of the creative assignment. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * Companion creative overrides for this creative assignment. Applicable to * video ads. */ - companionCreativeOverrides: Schema$CompanionClickThroughOverride[]; + companionCreativeOverrides?: Schema$CompanionClickThroughOverride[]; /** * Creative group assignments for this creative assignment. Only one * assignment per creative group number is allowed for a maximum of two * assignments. */ - creativeGroupAssignments: Schema$CreativeGroupAssignment[]; + creativeGroupAssignments?: Schema$CreativeGroupAssignment[]; /** * ID of the creative to be assigned. This is a required field. */ - creativeId: string; + creativeId?: string; /** * Dimension value for the ID of the creative. This is a read-only, * auto-generated field. */ - creativeIdDimensionValue: Schema$DimensionValue; + creativeIdDimensionValue?: Schema$DimensionValue; /** * Date and time that the assigned creative should stop serving. Must be * later than the start time. */ - endTime: string; + endTime?: string; /** * Rich media exit overrides for this creative assignment. Applicable when * the creative type is any of the following: - DISPLAY - RICH_MEDIA_INPAGE @@ -2721,27 +2725,27 @@ export namespace dfareporting_v2_8 { * RICH_MEDIA_MOBILE_IN_APP - RICH_MEDIA_MULTI_FLOATING - * RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - VPAID_NON_LINEAR */ - richMediaExitOverrides: Schema$RichMediaExitOverride[]; + richMediaExitOverrides?: Schema$RichMediaExitOverride[]; /** * Sequence number of the creative assignment, applicable when the rotation * type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to * 65535, inclusive. */ - sequence: number; + sequence?: number; /** * Whether the creative to be assigned is SSL-compliant. This is a read-only * field that is auto-generated when the ad is inserted or updated. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Date and time that the assigned creative should start serving. */ - startTime: string; + startTime?: string; /** * Weight of the creative assignment, applicable when the rotation type is * CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. */ - weight: number; + weight?: number; } /** * Creative Custom Event. @@ -2751,48 +2755,48 @@ export namespace dfareporting_v2_8 { * Unique ID of this event used by DDM Reporting and Data Transfer. This is * a read-only field. */ - advertiserCustomEventId: string; + advertiserCustomEventId?: string; /** * User-entered name for the event. */ - advertiserCustomEventName: string; + advertiserCustomEventName?: string; /** * Type of the event. This is a read-only field. */ - advertiserCustomEventType: string; + advertiserCustomEventType?: string; /** * Artwork label column, used to link events in DCM back to events in * Studio. This is a required field and should not be modified after * insertion. */ - artworkLabel: string; + artworkLabel?: string; /** * Artwork type used by the creative.This is a read-only field. */ - artworkType: string; + artworkType?: string; /** * Exit URL of the event. This field is used only for exit events. */ - exitUrl: string; + exitUrl?: string; /** * ID of this event. This is a required field and should not be modified * after insertion. */ - id: string; + id?: string; /** * Properties for rich media popup windows. This field is used only for exit * events. */ - popupWindowProperties: Schema$PopupWindowProperties; + popupWindowProperties?: Schema$PopupWindowProperties; /** * Target type used by the event. */ - targetType: string; + targetType?: string; /** * Video reporting ID, used to differentiate multiple videos in a single * creative. This is a read-only field. */ - videoReportingId: string; + videoReportingId?: string; } /** * Contains properties of a creative field. @@ -2802,37 +2806,37 @@ export namespace dfareporting_v2_8 { * Account ID of this creative field. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this creative field. This is a required field on * insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * ID of this creative field. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeField". */ - kind: string; + kind?: string; /** * Name of this creative field. This is a required field and must be less * than 256 characters long and unique among creative fields of the same * advertiser. */ - name: string; + name?: string; /** * Subaccount ID of this creative field. This is a read-only field that can * be left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Creative Field Assignment. @@ -2841,11 +2845,11 @@ export namespace dfareporting_v2_8 { /** * ID of the creative field. */ - creativeFieldId: string; + creativeFieldId?: string; /** * ID of the creative field value. */ - creativeFieldValueId: string; + creativeFieldValueId?: string; } /** * Creative Field List Response @@ -2854,16 +2858,16 @@ export namespace dfareporting_v2_8 { /** * Creative field collection. */ - creativeFields: Schema$CreativeField[]; + creativeFields?: Schema$CreativeField[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeFieldsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a creative field value. @@ -2873,17 +2877,17 @@ export namespace dfareporting_v2_8 { * ID of this creative field value. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeFieldValue". */ - kind: string; + kind?: string; /** * Value of this creative field value. It needs to be less than 256 * characters in length and unique per creative field. */ - value: string; + value?: string; } /** * Creative Field Value List Response @@ -2892,16 +2896,16 @@ export namespace dfareporting_v2_8 { /** * Creative field value collection. */ - creativeFieldValues: Schema$CreativeFieldValue[]; + creativeFieldValues?: Schema$CreativeFieldValue[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeFieldValuesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a creative group. @@ -2911,44 +2915,44 @@ export namespace dfareporting_v2_8 { * Account ID of this creative group. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this creative group. This is a required field on * insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Subgroup of the creative group. Assign your creative groups to a subgroup * in order to filter or manage them more easily. This field is required on * insertion and is read-only after insertion. Acceptable values are 1 to 2, * inclusive. */ - groupNumber: number; + groupNumber?: number; /** * ID of this creative group. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeGroup". */ - kind: string; + kind?: string; /** * Name of this creative group. This is a required field and must be less * than 256 characters long and unique among creative groups of the same * advertiser. */ - name: string; + name?: string; /** * Subaccount ID of this creative group. This is a read-only field that can * be left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Creative Group Assignment. @@ -2957,11 +2961,11 @@ export namespace dfareporting_v2_8 { /** * ID of the creative group to be assigned. */ - creativeGroupId: string; + creativeGroupId?: string; /** * Creative group number of the creative group assignment. */ - creativeGroupNumber: string; + creativeGroupNumber?: string; } /** * Creative Group List Response @@ -2970,16 +2974,16 @@ export namespace dfareporting_v2_8 { /** * Creative group collection. */ - creativeGroups: Schema$CreativeGroup[]; + creativeGroups?: Schema$CreativeGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Creative optimization settings. @@ -2990,20 +2994,20 @@ export namespace dfareporting_v2_8 { * when the campaign is inserted or updated. It can be null for existing * campaigns. */ - id: string; + id?: string; /** * Name of this creative optimization config. This is a required field and * must be less than 129 characters long. */ - name: string; + name?: string; /** * List of optimization activities associated with this configuration. */ - optimizationActivitys: Schema$OptimizationActivity[]; + optimizationActivitys?: Schema$OptimizationActivity[]; /** * Optimization model for this configuration. */ - optimizationModel: string; + optimizationModel?: string; } /** * Creative Rotation. @@ -3012,24 +3016,24 @@ export namespace dfareporting_v2_8 { /** * Creative assignments in this creative rotation. */ - creativeAssignments: Schema$CreativeAssignment[]; + creativeAssignments?: Schema$CreativeAssignment[]; /** * Creative optimization configuration that is used by this ad. It should * refer to one of the existing optimization configurations in the ad's * campaign. If it is unset or set to 0, then the campaign's default * optimization configuration will be used for this ad. */ - creativeOptimizationConfigurationId: string; + creativeOptimizationConfigurationId?: string; /** * Type of creative rotation. Can be used to specify whether to use * sequential or random rotation. */ - type: string; + type?: string; /** * Strategy for calculating weights. Used with * CREATIVE_ROTATION_TYPE_RANDOM. */ - weightCalculationStrategy: string; + weightCalculationStrategy?: string; } /** * Creative Settings @@ -3039,12 +3043,12 @@ export namespace dfareporting_v2_8 { * Header text for iFrames for this site. Must be less than or equal to 2000 * characters long. */ - iFrameFooter: string; + iFrameFooter?: string; /** * Header text for iFrames for this site. Must be less than or equal to 2000 * characters long. */ - iFrameHeader: string; + iFrameHeader?: string; } /** * Creative List Response @@ -3053,16 +3057,16 @@ export namespace dfareporting_v2_8 { /** * Creative collection. */ - creatives: Schema$Creative[]; + creatives?: Schema$Creative[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents fields that are compatible to be selected for a report of type @@ -3073,27 +3077,27 @@ export namespace dfareporting_v2_8 { * Dimensions which are compatible to be selected in the * "breakdown" section of the report. */ - breakdown: Schema$Dimension[]; + breakdown?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#crossDimensionReachReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected in the * "overlapMetricNames" section of the report. */ - overlapMetrics: Schema$Metric[]; + overlapMetrics?: Schema$Metric[]; } /** * A custom floodlight variable. @@ -3103,17 +3107,17 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#customFloodlightVariable". */ - kind: string; + kind?: string; /** * The type of custom floodlight variable to supply a value for. These map * to the "u[1-20]=" in the tags. */ - type: string; + type?: string; /** * The value of the custom floodlight variable. The length of string must * not exceed 50 characters. */ - value: string; + value?: string; } /** * Represents a Custom Rich Media Events group. @@ -3123,12 +3127,12 @@ export namespace dfareporting_v2_8 { * List of custom rich media event IDs. Dimension values must be all of type * dfa:richMediaEventTypeIdAndName. */ - filteredEventIds: Schema$DimensionValue[]; + filteredEventIds?: Schema$DimensionValue[]; /** * The kind of resource this is, in this case * dfareporting#customRichMediaEvents. */ - kind: string; + kind?: string; } /** * Represents a date range. @@ -3138,20 +3142,20 @@ export namespace dfareporting_v2_8 { * The end date of the date range, inclusive. A string of the format: * "yyyy-MM-dd". */ - endDate: string; + endDate?: string; /** * The kind of resource this is, in this case dfareporting#dateRange. */ - kind: string; + kind?: string; /** * The date range relative to the date of when the report is run. */ - relativeDateRange: string; + relativeDateRange?: string; /** * The start date of the date range, inclusive. A string of the format: * "yyyy-MM-dd". */ - startDate: string; + startDate?: string; } /** * Day Part Targeting. @@ -3163,7 +3167,7 @@ export namespace dfareporting_v2_8 { * "WEDNESDAY" - "THURSDAY" - "FRIDAY" - * "SATURDAY" */ - daysOfWeek: string[]; + daysOfWeek?: string[]; /** * Hours of the day when the ad will serve, where 0 is midnight to 1 AM and * 23 is 11 PM to midnight. Can be specified with days of week, in which @@ -3173,12 +3177,12 @@ export namespace dfareporting_v2_8 { * Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values * are 0 to 23, inclusive. */ - hoursOfDay: number[]; + hoursOfDay?: number[]; /** * Whether or not to use the user's local time. If false, the * America/New York time zone applies. */ - userLocalTime: boolean; + userLocalTime?: boolean; } /** * Properties of inheriting and overriding the default click-through event @@ -3190,12 +3194,12 @@ export namespace dfareporting_v2_8 { * ID of the click-through event tag to apply to all ads in this * entity's scope. */ - defaultClickThroughEventTagId: string; + defaultClickThroughEventTagId?: string; /** * Whether this entity should override the inherited default click-through * event tag with its own defined value. */ - overrideInheritedEventTag: boolean; + overrideInheritedEventTag?: boolean; } /** * Delivery Schedule. @@ -3205,25 +3209,25 @@ export namespace dfareporting_v2_8 { * Limit on the number of times an individual user can be served the ad * within a specified period of time. */ - frequencyCap: Schema$FrequencyCap; + frequencyCap?: Schema$FrequencyCap; /** * Whether or not hard cutoff is enabled. If true, the ad will not serve * after the end date and time. Otherwise the ad will continue to be served * until it has reached its delivery goals. */ - hardCutoff: boolean; + hardCutoff?: boolean; /** * Impression ratio for this ad. This ratio determines how often each ad is * served relative to the others. For example, if ad A has an impression * ratio of 1 and ad B has an impression ratio of 3, then DCM will serve ad * B three times as often as ad A. Acceptable values are 1 to 10, inclusive. */ - impressionRatio: string; + impressionRatio?: string; /** * Serving priority of an ad, with respect to other ads. The lower the * priority number, the greater the priority with which it is served. */ - priority: string; + priority?: string; } /** * DFP Settings @@ -3232,24 +3236,24 @@ export namespace dfareporting_v2_8 { /** * DFP network code for this directory site. */ - dfpNetworkCode: string; + dfpNetworkCode?: string; /** * DFP network name for this directory site. */ - dfpNetworkName: string; + dfpNetworkName?: string; /** * Whether this directory site accepts programmatic placements. */ - programmaticPlacementAccepted: boolean; + programmaticPlacementAccepted?: boolean; /** * Whether this directory site is available only via DoubleClick Publisher * Portal. */ - publisherPortalOnly: boolean; + publisherPortalOnly?: boolean; /** * Whether this directory site accepts publisher-paid tags. */ - pubPaidPlacementAccepted: boolean; + pubPaidPlacementAccepted?: boolean; } /** * Represents a dimension. @@ -3258,11 +3262,11 @@ export namespace dfareporting_v2_8 { /** * The kind of resource this is, in this case dfareporting#dimension. */ - kind: string; + kind?: string; /** * The dimension name, e.g. dfa:advertiser */ - name: string; + name?: string; } /** * Represents a dimension filter. @@ -3271,15 +3275,15 @@ export namespace dfareporting_v2_8 { /** * The name of the dimension to filter. */ - dimensionName: string; + dimensionName?: string; /** * The kind of resource this is, in this case dfareporting#dimensionFilter. */ - kind: string; + kind?: string; /** * The value of the dimension to filter. */ - value: string; + value?: string; } /** * Represents a DimensionValue resource. @@ -3288,19 +3292,19 @@ export namespace dfareporting_v2_8 { /** * The name of the dimension. */ - dimensionName: string; + dimensionName?: string; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID associated with the value if available. */ - id: string; + id?: string; /** * The kind of resource this is, in this case dfareporting#dimensionValue. */ - kind: string; + kind?: string; /** * Determines how the 'value' field is matched when filtering. If * not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, @@ -3309,11 +3313,11 @@ export namespace dfareporting_v2_8 { * dimensions ('dfa:paidSearch*') allow a matchType other than * EXACT. */ - matchType: string; + matchType?: string; /** * The value of the dimension. */ - value: string; + value?: string; } /** * Represents the list of DimensionValue resources. @@ -3322,22 +3326,22 @@ export namespace dfareporting_v2_8 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The dimension values returned in this response. */ - items: Schema$DimensionValue[]; + items?: Schema$DimensionValue[]; /** * The kind of list this is, in this case dfareporting#dimensionValueList. */ - kind: string; + kind?: string; /** * Continuation token used to page through dimension values. To retrieve the * next page of results, set the next request's "pageToken" to * the value of this field. The page token is only valid for a limited * amount of time and should not be persisted. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents a DimensionValuesRequest. @@ -3346,26 +3350,26 @@ export namespace dfareporting_v2_8 { /** * The name of the dimension for which values should be requested. */ - dimensionName: string; + dimensionName?: string; /** * The end date of the date range for which to retrieve dimension values. A * string of the format "yyyy-MM-dd". */ - endDate: string; + endDate?: string; /** * The list of filters by which to filter values. The filters are ANDed. */ - filters: Schema$DimensionFilter[]; + filters?: Schema$DimensionFilter[]; /** * The kind of request this is, in this case * dfareporting#dimensionValueRequest. */ - kind: string; + kind?: string; /** * The start date of the date range for which to retrieve dimension values. * A string of the format "yyyy-MM-dd". */ - startDate: string; + startDate?: string; } /** * DirectorySites contains properties of a website from the Site Directory. @@ -3376,15 +3380,15 @@ export namespace dfareporting_v2_8 { /** * Whether this directory site is active. */ - active: boolean; + active?: boolean; /** * Directory site contacts. */ - contactAssignments: Schema$DirectorySiteContactAssignment[]; + contactAssignments?: Schema$DirectorySiteContactAssignment[]; /** * Country ID of this directory site. This is a read-only field. */ - countryId: string; + countryId?: string; /** * Currency ID of this directory site. This is a read-only field. Possible * values are: - "1" for USD - "2" for GBP - @@ -3407,54 +3411,54 @@ export namespace dfareporting_v2_8 { * for BGN - "48" for HRK - "49" for MXN - * "50" for NGN */ - currencyId: string; + currencyId?: string; /** * Description of this directory site. This is a read-only field. */ - description: string; + description?: string; /** * ID of this directory site. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this directory site. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Tag types for regular placements. Acceptable values are: - * "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - * "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" */ - inpageTagFormats: string[]; + inpageTagFormats?: string[]; /** * Tag types for interstitial placements. Acceptable values are: - * "IFRAME_JAVASCRIPT_INTERSTITIAL" - * "INTERNAL_REDIRECT_INTERSTITIAL" - * "JAVASCRIPT_INTERSTITIAL" */ - interstitialTagFormats: string[]; + interstitialTagFormats?: string[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySite". */ - kind: string; + kind?: string; /** * Name of this directory site. */ - name: string; + name?: string; /** * Parent directory site ID. */ - parentId: string; + parentId?: string; /** * Directory site settings. */ - settings: Schema$DirectorySiteSettings; + settings?: Schema$DirectorySiteSettings; /** * URL of this directory site. */ - url: string; + url?: string; } /** * Contains properties of a Site Directory contact. @@ -3463,45 +3467,45 @@ export namespace dfareporting_v2_8 { /** * Address of this directory site contact. */ - address: string; + address?: string; /** * Email address of this directory site contact. */ - email: string; + email?: string; /** * First name of this directory site contact. */ - firstName: string; + firstName?: string; /** * ID of this directory site contact. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySiteContact". */ - kind: string; + kind?: string; /** * Last name of this directory site contact. */ - lastName: string; + lastName?: string; /** * Phone number of this directory site contact. */ - phone: string; + phone?: string; /** * Directory site contact role. */ - role: string; + role?: string; /** * Title or designation of this directory site contact. */ - title: string; + title?: string; /** * Directory site contact type. */ - type: string; + type?: string; } /** * Directory Site Contact Assignment @@ -3511,13 +3515,13 @@ export namespace dfareporting_v2_8 { * ID of this directory site contact. This is a read-only, auto-generated * field. */ - contactId: string; + contactId?: string; /** * Visibility of this directory site contact assignment. When set to PUBLIC * this contact assignment is visible to all account and agency users; when * set to PRIVATE it is visible only to the site. */ - visibility: string; + visibility?: string; } /** * Directory Site Contact List Response @@ -3526,16 +3530,16 @@ export namespace dfareporting_v2_8 { /** * Directory site contact collection */ - directorySiteContacts: Schema$DirectorySiteContact[]; + directorySiteContacts?: Schema$DirectorySiteContact[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySiteContactsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Directory Site Settings @@ -3544,33 +3548,33 @@ export namespace dfareporting_v2_8 { /** * Whether this directory site has disabled active view creatives. */ - activeViewOptOut: boolean; + activeViewOptOut?: boolean; /** * Directory site DFP settings. */ - dfpSettings: Schema$DfpSettings; + dfpSettings?: Schema$DfpSettings; /** * Whether this site accepts in-stream video ads. */ - instreamVideoPlacementAccepted: boolean; + instreamVideoPlacementAccepted?: boolean; /** * Whether this site accepts interstitial ads. */ - interstitialPlacementAccepted: boolean; + interstitialPlacementAccepted?: boolean; /** * Whether this directory site has disabled Nielsen OCR reach ratings. */ - nielsenOcrOptOut: boolean; + nielsenOcrOptOut?: boolean; /** * Whether this directory site has disabled generation of Verification ins * tags. */ - verificationTagOptOut: boolean; + verificationTagOptOut?: boolean; /** * Whether this directory site has disabled active view for in-stream video * creatives. This is a read-only field. */ - videoActiveViewOptOut: boolean; + videoActiveViewOptOut?: boolean; } /** * Directory Site List Response @@ -3579,16 +3583,16 @@ export namespace dfareporting_v2_8 { /** * Directory site collection. */ - directorySites: Schema$DirectorySite[]; + directorySites?: Schema$DirectorySite[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySitesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a dynamic targeting key. Dynamic targeting keys are @@ -3603,22 +3607,22 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#dynamicTargetingKey". */ - kind: string; + kind?: string; /** * Name of this dynamic targeting key. This is a required field. Must be * less than 256 characters long and cannot contain commas. All characters * are converted to lowercase. */ - name: string; + name?: string; /** * ID of the object of this dynamic targeting key. This is a required field. */ - objectId: string; + objectId?: string; /** * Type of the object of this dynamic targeting key. This is a required * field. */ - objectType: string; + objectType?: string; } /** * Dynamic Targeting Key List Response @@ -3627,12 +3631,12 @@ export namespace dfareporting_v2_8 { /** * Dynamic targeting key collection. */ - dynamicTargetingKeys: Schema$DynamicTargetingKey[]; + dynamicTargetingKeys?: Schema$DynamicTargetingKey[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#dynamicTargetingKeysListResponse". */ - kind: string; + kind?: string; } /** * A description of how user IDs are encrypted. @@ -3642,22 +3646,22 @@ export namespace dfareporting_v2_8 { * The encryption entity ID. This should match the encryption configuration * for ad serving or Data Transfer. */ - encryptionEntityId: string; + encryptionEntityId?: string; /** * The encryption entity type. This should match the encryption * configuration for ad serving or Data Transfer. */ - encryptionEntityType: string; + encryptionEntityType?: string; /** * Describes whether the encrypted cookie was received from ad serving (the * %m macro) or from Data Transfer. */ - encryptionSource: string; + encryptionSource?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#encryptionInfo". */ - kind: string; + kind?: string; } /** * Contains properties of an event tag. @@ -3667,96 +3671,96 @@ export namespace dfareporting_v2_8 { * Account ID of this event tag. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this event tag. This field or the campaignId field is * required on insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Campaign ID of this event tag. This field or the advertiserId field is * required on insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * Whether this event tag should be automatically enabled for all of the * advertiser's campaigns and ads. */ - enabledByDefault: boolean; + enabledByDefault?: boolean; /** * Whether to remove this event tag from ads that are trafficked through * DoubleClick Bid Manager to Ad Exchange. This may be useful if the event * tag uses a pixel that is unapproved for Ad Exchange bids on one or more * networks, such as the Google Display Network. */ - excludeFromAdxRequests: boolean; + excludeFromAdxRequests?: boolean; /** * ID of this event tag. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#eventTag". */ - kind: string; + kind?: string; /** * Name of this event tag. This is a required field and must be less than * 256 characters long. */ - name: string; + name?: string; /** * Site filter type for this event tag. If no type is specified then the * event tag will be applied to all sites. */ - siteFilterType: string; + siteFilterType?: string; /** * Filter list of site IDs associated with this event tag. The * siteFilterType determines whether this is a whitelist or blacklist * filter. */ - siteIds: string[]; + siteIds?: string[]; /** * Whether this tag is SSL-compliant or not. This is a read-only field. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Status of this event tag. Must be ENABLED for this event tag to fire. * This is a required field. */ - status: string; + status?: string; /** * Subaccount ID of this event tag. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Event tag type. Can be used to specify whether to use a third-party * pixel, a third-party JavaScript URL, or a third-party click-through URL * for either impression or click tracking. This is a required field. */ - type: string; + type?: string; /** * Payload URL for this event tag. The URL on a click-through event tag * should have a landing page URL appended to the end of it. This field is * required on insertion. */ - url: string; + url?: string; /** * Number of times the landing page URL should be URL-escaped before being * appended to the click-through event tag URL. Only applies to * click-through event tags as specified by the event tag type. */ - urlEscapeLevels: number; + urlEscapeLevels?: number; } /** * Event tag override information. @@ -3765,11 +3769,11 @@ export namespace dfareporting_v2_8 { /** * Whether this override is enabled. */ - enabled: boolean; + enabled?: boolean; /** * ID of this event tag override. This is a read-only, auto-generated field. */ - id: string; + id?: string; } /** * Event Tag List Response @@ -3778,12 +3782,12 @@ export namespace dfareporting_v2_8 { /** * Event tag collection. */ - eventTags: Schema$EventTag[]; + eventTags?: Schema$EventTag[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#eventTagsListResponse". */ - kind: string; + kind?: string; } /** * Represents a File resource. A file contains the metadata for a report run. @@ -3795,45 +3799,45 @@ export namespace dfareporting_v2_8 { * The date range for which the file has report data. The date range will * always be the absolute date range for which the report is run. */ - dateRange: Schema$DateRange; + dateRange?: Schema$DateRange; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The filename of the file. */ - fileName: string; + fileName?: string; /** * The output format of the report. Only available once the file is * available. */ - format: string; + format?: string; /** * The unique ID of this report file. */ - id: string; + id?: string; /** * The kind of resource this is, in this case dfareporting#file. */ - kind: string; + kind?: string; /** * The timestamp in milliseconds since epoch when this file was last * modified. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * The ID of the report this file was generated from. */ - reportId: string; + reportId?: string; /** * The status of the report file. */ - status: string; + status?: string; /** * The URLs where the completed report file can be downloaded. */ - urls: any; + urls?: any; } /** * Represents the list of File resources. @@ -3842,22 +3846,22 @@ export namespace dfareporting_v2_8 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The files returned in this response. */ - items: Schema$File[]; + items?: Schema$File[]; /** * The kind of list this is, in this case dfareporting#fileList. */ - kind: string; + kind?: string; /** * Continuation token used to page through files. To retrieve the next page * of results, set the next request's "pageToken" to the value * of this field. The page token is only valid for a limited amount of time * and should not be persisted. */ - nextPageToken: string; + nextPageToken?: string; } /** * Flight @@ -3866,19 +3870,19 @@ export namespace dfareporting_v2_8 { /** * Inventory item flight end date. */ - endDate: string; + endDate?: string; /** * Rate or cost of this flight. */ - rateOrCost: string; + rateOrCost?: string; /** * Inventory item flight start date. */ - startDate: string; + startDate?: string; /** * Units of this flight. */ - units: string; + units?: string; } /** * Floodlight Activity GenerateTag Response @@ -3888,12 +3892,12 @@ export namespace dfareporting_v2_8 { * Generated tag for this Floodlight activity. For global site tags, this is * the event snippet. */ - floodlightActivityTag: string; + floodlightActivityTag?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivitiesGenerateTagResponse". */ - kind: string; + kind?: string; } /** * Floodlight Activity List Response @@ -3902,16 +3906,16 @@ export namespace dfareporting_v2_8 { /** * Floodlight activity collection. */ - floodlightActivities: Schema$FloodlightActivity[]; + floodlightActivities?: Schema$FloodlightActivity[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivitiesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a Floodlight activity. @@ -3921,129 +3925,129 @@ export namespace dfareporting_v2_8 { * Account ID of this floodlight activity. This is a read-only field that * can be left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this floodlight activity. If this field is left blank, * the value will be copied over either from the activity group's * advertiser or the existing activity's advertiser. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Code type used for cache busting in the generated tag. Applicable only * when floodlightActivityGroupType is COUNTER and countingMethod is * STANDARD_COUNTING or UNIQUE_COUNTING. */ - cacheBustingType: string; + cacheBustingType?: string; /** * Counting method for conversions for this floodlight activity. This is a * required field. */ - countingMethod: string; + countingMethod?: string; /** * Dynamic floodlight tags. */ - defaultTags: Schema$FloodlightActivityDynamicTag[]; + defaultTags?: Schema$FloodlightActivityDynamicTag[]; /** * URL where this tag will be deployed. If specified, must be less than 256 * characters long. */ - expectedUrl: string; + expectedUrl?: string; /** * Floodlight activity group ID of this floodlight activity. This is a * required field. */ - floodlightActivityGroupId: string; + floodlightActivityGroupId?: string; /** * Name of the associated floodlight activity group. This is a read-only * field. */ - floodlightActivityGroupName: string; + floodlightActivityGroupName?: string; /** * Tag string of the associated floodlight activity group. This is a * read-only field. */ - floodlightActivityGroupTagString: string; + floodlightActivityGroupTagString?: string; /** * Type of the associated floodlight activity group. This is a read-only * field. */ - floodlightActivityGroupType: string; + floodlightActivityGroupType?: string; /** * Floodlight configuration ID of this floodlight activity. If this field is * left blank, the value will be copied over either from the activity * group's floodlight configuration or from the existing activity's * floodlight configuration. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * Dimension value for the ID of the floodlight configuration. This is a * read-only, auto-generated field. */ - floodlightConfigurationIdDimensionValue: Schema$DimensionValue; + floodlightConfigurationIdDimensionValue?: Schema$DimensionValue; /** * Whether this activity is archived. */ - hidden: boolean; + hidden?: boolean; /** * ID of this floodlight activity. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Dimension value for the ID of this floodlight activity. This is a * read-only, auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Whether the image tag is enabled for this activity. */ - imageTagEnabled: boolean; + imageTagEnabled?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivity". */ - kind: string; + kind?: string; /** * Name of this floodlight activity. This is a required field. Must be less * than 129 characters long and cannot contain quotes. */ - name: string; + name?: string; /** * General notes or implementation instructions for the tag. */ - notes: string; + notes?: string; /** * Publisher dynamic floodlight tags. */ - publisherTags: Schema$FloodlightActivityPublisherDynamicTag[]; + publisherTags?: Schema$FloodlightActivityPublisherDynamicTag[]; /** * Whether this tag should use SSL. */ - secure: boolean; + secure?: boolean; /** * Whether the floodlight activity is SSL-compliant. This is a read-only * field, its value detected by the system from the floodlight tags. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Whether this floodlight activity must be SSL-compliant. */ - sslRequired: boolean; + sslRequired?: boolean; /** * Subaccount ID of this floodlight activity. This is a read-only field that * can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Tag format type for the floodlight activity. If left blank, the tag * format will default to HTML. */ - tagFormat: string; + tagFormat?: string; /** * Value of the cat= parameter in the floodlight tag, which the ad servers * use to identify the activity. This is optional: if empty, a new tag @@ -4052,13 +4056,13 @@ export namespace dfareporting_v2_8 { * string must also be unique among activities of the same activity group. * This field is read-only after insertion. */ - tagString: string; + tagString?: string; /** * List of the user-defined variables used by this conversion tag. These map * to the "u[1-100]=" in the tags. Each of these can have a user * defined type. Acceptable values are U1 to U100, inclusive. */ - userDefinedVariableTypes: string[]; + userDefinedVariableTypes?: string[]; } /** * Dynamic Tag @@ -4067,15 +4071,15 @@ export namespace dfareporting_v2_8 { /** * ID of this dynamic tag. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Name of this tag. */ - name: string; + name?: string; /** * Tag code. */ - tag: string; + tag?: string; } /** * Contains properties of a Floodlight activity group. @@ -4085,54 +4089,54 @@ export namespace dfareporting_v2_8 { * Account ID of this floodlight activity group. This is a read-only field * that can be left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this floodlight activity group. If this field is left * blank, the value will be copied over either from the floodlight * configuration's advertiser or from the existing activity group's * advertiser. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Floodlight configuration ID of this floodlight activity group. This is a * required field. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * Dimension value for the ID of the floodlight configuration. This is a * read-only, auto-generated field. */ - floodlightConfigurationIdDimensionValue: Schema$DimensionValue; + floodlightConfigurationIdDimensionValue?: Schema$DimensionValue; /** * ID of this floodlight activity group. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Dimension value for the ID of this floodlight activity group. This is a * read-only, auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivityGroup". */ - kind: string; + kind?: string; /** * Name of this floodlight activity group. This is a required field. Must be * less than 65 characters long and cannot contain quotes. */ - name: string; + name?: string; /** * Subaccount ID of this floodlight activity group. This is a read-only * field that can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Value of the type= parameter in the floodlight tag, which the ad servers * use to identify the activity group that the activity belongs to. This is @@ -4142,12 +4146,12 @@ export namespace dfareporting_v2_8 { * activity groups of the same floodlight configuration. This field is * read-only after insertion. */ - tagString: string; + tagString?: string; /** * Type of the floodlight activity group. This is a required field that is * read-only after insertion. */ - type: string; + type?: string; } /** * Floodlight Activity Group List Response @@ -4156,16 +4160,16 @@ export namespace dfareporting_v2_8 { /** * Floodlight activity group collection. */ - floodlightActivityGroups: Schema$FloodlightActivityGroup[]; + floodlightActivityGroups?: Schema$FloodlightActivityGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivityGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Publisher Dynamic Tag @@ -4174,30 +4178,30 @@ export namespace dfareporting_v2_8 { /** * Whether this tag is applicable only for click-throughs. */ - clickThrough: boolean; + clickThrough?: boolean; /** * Directory site ID of this dynamic tag. This is a write-only field that * can be used as an alternative to the siteId field. When this resource is * retrieved, only the siteId field will be populated. */ - directorySiteId: string; + directorySiteId?: string; /** * Dynamic floodlight tag. */ - dynamicTag: Schema$FloodlightActivityDynamicTag; + dynamicTag?: Schema$FloodlightActivityDynamicTag; /** * Site ID of this dynamic tag. */ - siteId: string; + siteId?: string; /** * Dimension value for the ID of the site. This is a read-only, * auto-generated field. */ - siteIdDimensionValue: Schema$DimensionValue; + siteIdDimensionValue?: Schema$DimensionValue; /** * Whether this tag is applicable only for view-throughs. */ - viewThrough: boolean; + viewThrough?: boolean; } /** * Contains properties of a Floodlight configuration. @@ -4207,79 +4211,79 @@ export namespace dfareporting_v2_8 { * Account ID of this floodlight configuration. This is a read-only field * that can be left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of the parent advertiser of this floodlight configuration. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether advertiser data is shared with Google Analytics. */ - analyticsDataSharingEnabled: boolean; + analyticsDataSharingEnabled?: boolean; /** * Whether the exposure-to-conversion report is enabled. This report shows * detailed pathway information on up to 10 of the most recent ad exposures * seen by a user before converting. */ - exposureToConversionEnabled: boolean; + exposureToConversionEnabled?: boolean; /** * Day that will be counted as the first day of the week in reports. This is * a required field. */ - firstDayOfWeek: string; + firstDayOfWeek?: string; /** * ID of this floodlight configuration. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Dimension value for the ID of this floodlight configuration. This is a * read-only, auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Whether in-app attribution tracking is enabled. */ - inAppAttributionTrackingEnabled: boolean; + inAppAttributionTrackingEnabled?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightConfiguration". */ - kind: string; + kind?: string; /** * Lookback window settings for this floodlight configuration. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Types of attribution options for natural search conversions. */ - naturalSearchConversionAttributionOption: string; + naturalSearchConversionAttributionOption?: string; /** * Settings for DCM Omniture integration. */ - omnitureSettings: Schema$OmnitureSettings; + omnitureSettings?: Schema$OmnitureSettings; /** * Subaccount ID of this floodlight configuration. This is a read-only field * that can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Configuration settings for dynamic and image floodlight tags. */ - tagSettings: Schema$TagSettings; + tagSettings?: Schema$TagSettings; /** * List of third-party authentication tokens enabled for this configuration. */ - thirdPartyAuthenticationTokens: Schema$ThirdPartyAuthenticationToken[]; + thirdPartyAuthenticationTokens?: Schema$ThirdPartyAuthenticationToken[]; /** * List of user defined variables enabled for this configuration. */ - userDefinedVariableConfigurations: + userDefinedVariableConfigurations?: Schema$UserDefinedVariableConfiguration[]; } /** @@ -4289,12 +4293,12 @@ export namespace dfareporting_v2_8 { /** * Floodlight configuration collection. */ - floodlightConfigurations: Schema$FloodlightConfiguration[]; + floodlightConfigurations?: Schema$FloodlightConfiguration[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightConfigurationsListResponse". */ - kind: string; + kind?: string; } /** * Represents fields that are compatible to be selected for a report of type @@ -4305,22 +4309,22 @@ export namespace dfareporting_v2_8 { * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensions" section of the report. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#floodlightReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; } /** * Frequency Cap. @@ -4330,12 +4334,12 @@ export namespace dfareporting_v2_8 { * Duration of time, in seconds, for this frequency cap. The maximum * duration is 90 days. Acceptable values are 1 to 7776000, inclusive. */ - duration: string; + duration?: string; /** * Number of times an individual user can be served the ad within the * specified duration. Acceptable values are 1 to 15, inclusive. */ - impressions: string; + impressions?: string; } /** * FsCommand. @@ -4345,24 +4349,24 @@ export namespace dfareporting_v2_8 { * Distance from the left of the browser.Applicable when positionOption is * DISTANCE_FROM_TOP_LEFT_CORNER. */ - left: number; + left?: number; /** * Position in the browser where the window will open. */ - positionOption: string; + positionOption?: string; /** * Distance from the top of the browser. Applicable when positionOption is * DISTANCE_FROM_TOP_LEFT_CORNER. */ - top: number; + top?: number; /** * Height of the window. */ - windowHeight: number; + windowHeight?: number; /** * Width of the window. */ - windowWidth: number; + windowWidth?: number; } /** * Geographical Targeting. @@ -4374,7 +4378,7 @@ export namespace dfareporting_v2_8 { * targeting a city, do not target or exclude the country of the city, and * do not target the metro or region of the city. */ - cities: Schema$City[]; + cities?: Schema$City[]; /** * Countries to be targeted or excluded from targeting, depending on the * setting of the excludeCountries field. For each country only dartId is @@ -4382,33 +4386,33 @@ export namespace dfareporting_v2_8 { * inserted or updated. If targeting or excluding a country, do not target * regions, cities, metros, or postal codes in the same country. */ - countries: Schema$Country[]; + countries?: Schema$Country[]; /** * Whether or not to exclude the countries in the countries field from * targeting. If false, the countries field refers to countries which will * be targeted by the ad. */ - excludeCountries: boolean; + excludeCountries?: boolean; /** * Metros to be targeted. For each metro only dmaId is required. The other * fields are populated automatically when the ad is inserted or updated. If * targeting a metro, do not target or exclude the country of the metro. */ - metros: Schema$Metro[]; + metros?: Schema$Metro[]; /** * Postal codes to be targeted. For each postal code only id is required. * The other fields are populated automatically when the ad is inserted or * updated. If targeting a postal code, do not target or exclude the country * of the postal code. */ - postalCodes: Schema$PostalCode[]; + postalCodes?: Schema$PostalCode[]; /** * Regions to be targeted. For each region only dartId is required. The * other fields are populated automatically when the ad is inserted or * updated. If targeting a region, do not target or exclude the country of * the region. */ - regions: Schema$Region[]; + regions?: Schema$Region[]; } /** * Represents a buy from the DoubleClick Planning inventory store. @@ -4417,89 +4421,89 @@ export namespace dfareporting_v2_8 { /** * Account ID of this inventory item. */ - accountId: string; + accountId?: string; /** * Ad slots of this inventory item. If this inventory item represents a * standalone placement, there will be exactly one ad slot. If this * inventory item represents a placement group, there will be more than one * ad slot, each representing one child placement in that placement group. */ - adSlots: Schema$AdSlot[]; + adSlots?: Schema$AdSlot[]; /** * Advertiser ID of this inventory item. */ - advertiserId: string; + advertiserId?: string; /** * Content category ID of this inventory item. */ - contentCategoryId: string; + contentCategoryId?: string; /** * Estimated click-through rate of this inventory item. */ - estimatedClickThroughRate: string; + estimatedClickThroughRate?: string; /** * Estimated conversion rate of this inventory item. */ - estimatedConversionRate: string; + estimatedConversionRate?: string; /** * ID of this inventory item. */ - id: string; + id?: string; /** * Whether this inventory item is in plan. */ - inPlan: boolean; + inPlan?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#inventoryItem". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this inventory item. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this inventory item. For standalone inventory items, this is the * same name as that of its only ad slot. For group inventory items, this * can differ from the name of any of its ad slots. */ - name: string; + name?: string; /** * Negotiation channel ID of this inventory item. */ - negotiationChannelId: string; + negotiationChannelId?: string; /** * Order ID of this inventory item. */ - orderId: string; + orderId?: string; /** * Placement strategy ID of this inventory item. */ - placementStrategyId: string; + placementStrategyId?: string; /** * Pricing of this inventory item. */ - pricing: Schema$Pricing; + pricing?: Schema$Pricing; /** * Project ID of this inventory item. */ - projectId: string; + projectId?: string; /** * RFP ID of this inventory item. */ - rfpId: string; + rfpId?: string; /** * ID of the site this inventory item is associated with. */ - siteId: string; + siteId?: string; /** * Subaccount ID of this inventory item. */ - subaccountId: string; + subaccountId?: string; /** * Type of inventory item. */ - type: string; + type?: string; } /** * Inventory item List Response @@ -4508,16 +4512,16 @@ export namespace dfareporting_v2_8 { /** * Inventory item collection */ - inventoryItems: Schema$InventoryItem[]; + inventoryItems?: Schema$InventoryItem[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#inventoryItemsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Key Value Targeting Expression. @@ -4526,7 +4530,7 @@ export namespace dfareporting_v2_8 { /** * Keyword expression being targeted by the ad. */ - expression: string; + expression?: string; } /** * Contains information about where a user's browser is taken after the @@ -4538,26 +4542,26 @@ export namespace dfareporting_v2_8 { * that do not have a landing page assigned explicitly. Only one default * landing page is allowed per campaign. */ - default: boolean; + default?: boolean; /** * ID of this landing page. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#landingPage". */ - kind: string; + kind?: string; /** * Name of this landing page. This is a required field. It must be less than * 256 characters long, and must be unique among landing pages of the same * campaign. */ - name: string; + name?: string; /** * URL of this landing page. This is a required field. */ - url: string; + url?: string; } /** * Landing Page List Response @@ -4567,11 +4571,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#landingPagesListResponse". */ - kind: string; + kind?: string; /** * Landing page collection */ - landingPages: Schema$LandingPage[]; + landingPages?: Schema$LandingPage[]; } /** * Contains information about a language that can be targeted by ads. @@ -4581,22 +4585,22 @@ export namespace dfareporting_v2_8 { * Language ID of this language. This is the ID used for targeting and * generating reports. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#language". */ - kind: string; + kind?: string; /** * Format of language code is an ISO 639 two-letter language code optionally * followed by an underscore followed by an ISO 3166 code. Examples are * "en" for English or "zh_CN" for Simplified Chinese. */ - languageCode: string; + languageCode?: string; /** * Name of this language. */ - name: string; + name?: string; } /** * Language List Response @@ -4606,11 +4610,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#languagesListResponse". */ - kind: string; + kind?: string; /** * Language collection. */ - languages: Schema$Language[]; + languages?: Schema$Language[]; } /** * Language Targeting. @@ -4621,7 +4625,7 @@ export namespace dfareporting_v2_8 { * required. The other fields are populated automatically when the ad is * inserted or updated. */ - languages: Schema$Language[]; + languages?: Schema$Language[]; } /** * Modification timestamp. @@ -4630,7 +4634,7 @@ export namespace dfareporting_v2_8 { /** * Timestamp of the last change in milliseconds since epoch. */ - time: string; + time?: string; } /** * A group clause made up of list population terms representing constraints @@ -4641,7 +4645,7 @@ export namespace dfareporting_v2_8 { * Terms of this list population clause. Each clause is made up of list * population terms representing constraints and are joined by ORs. */ - terms: Schema$ListPopulationTerm[]; + terms?: Schema$ListPopulationTerm[]; } /** * Remarketing List Population Rule. @@ -4651,18 +4655,18 @@ export namespace dfareporting_v2_8 { * Floodlight activity ID associated with this rule. This field can be left * blank. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Name of floodlight activity associated with this rule. This is a * read-only, auto-generated field. */ - floodlightActivityName: string; + floodlightActivityName?: string; /** * Clauses that make up this list population rule. Clauses are joined by * ANDs, and the clauses themselves are made up of list population terms * which are joined by ORs. */ - listPopulationClauses: Schema$ListPopulationClause[]; + listPopulationClauses?: Schema$ListPopulationClause[]; } /** * Remarketing List Population Rule Term. @@ -4674,23 +4678,23 @@ export namespace dfareporting_v2_8 { * is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by * default. */ - contains: boolean; + contains?: boolean; /** * Whether to negate the comparison result of this term during rule * evaluation. This field is only relevant when type is left unset or set to * CUSTOM_VARIABLE_TERM or REFERRER_TERM. */ - negation: boolean; + negation?: boolean; /** * Comparison operator of this term. This field is only relevant when type * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. */ - operator: string; + operator?: string; /** * ID of the list in question. This field is only relevant when type is set * to LIST_MEMBERSHIP_TERM. */ - remarketingListId: string; + remarketingListId?: string; /** * List population term type determines the applicable fields in this * object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, @@ -4699,24 +4703,24 @@ export namespace dfareporting_v2_8 { * applicable. If set to REFERRER_TERM then operator, value, and negation * are applicable. */ - type: string; + type?: string; /** * Literal to compare the variable to. This field is only relevant when type * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. */ - value: string; + value?: string; /** * Friendly name of this term's variable. This is a read-only, * auto-generated field. This field is only relevant when type is left unset * or set to CUSTOM_VARIABLE_TERM. */ - variableFriendlyName: string; + variableFriendlyName?: string; /** * Name of the variable (U1, U2, etc.) being compared in this term. This * field is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or * REFERRER_TERM. */ - variableName: string; + variableName?: string; } /** * Remarketing List Targeting Expression. @@ -4725,7 +4729,7 @@ export namespace dfareporting_v2_8 { /** * Expression describing which lists are being targeted by the ad. */ - expression: string; + expression?: string; } /** * Lookback configuration settings. @@ -4738,7 +4742,7 @@ export namespace dfareporting_v2_8 { * default value for your account will be used. Acceptable values are 0 to * 90, inclusive. */ - clickDuration: number; + clickDuration?: number; /** * Lookback window, in days, from the last time a given user viewed one of * your ads. If you enter 0, impressions will not be considered as @@ -4746,7 +4750,7 @@ export namespace dfareporting_v2_8 { * the default value for your account will be used. Acceptable values are 0 * to 90, inclusive. */ - postImpressionActivitiesDuration: number; + postImpressionActivitiesDuration?: number; } /** * Represents a metric. @@ -4755,11 +4759,11 @@ export namespace dfareporting_v2_8 { /** * The kind of resource this is, in this case dfareporting#metric. */ - kind: string; + kind?: string; /** * The metric name, e.g. dfa:impressions */ - name: string; + name?: string; } /** * Contains information about a metro region that can be targeted by ads. @@ -4768,33 +4772,33 @@ export namespace dfareporting_v2_8 { /** * Country code of the country to which this metro region belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this metro region belongs. */ - countryDartId: string; + countryDartId?: string; /** * DART ID of this metro region. */ - dartId: string; + dartId?: string; /** * DMA ID of this metro region. This is the ID used for targeting and * generating reports, and is equivalent to metro_code. */ - dmaId: string; + dmaId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#metro". */ - kind: string; + kind?: string; /** * Metro code of this metro region. This is equivalent to dma_id. */ - metroCode: string; + metroCode?: string; /** * Name of this metro region. */ - name: string; + name?: string; } /** * Metro List Response @@ -4804,11 +4808,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#metrosListResponse". */ - kind: string; + kind?: string; /** * Metro collection. */ - metros: Schema$Metro[]; + metros?: Schema$Metro[]; } /** * Contains information about a mobile carrier that can be targeted by ads. @@ -4817,24 +4821,24 @@ export namespace dfareporting_v2_8 { /** * Country code of the country to which this mobile carrier belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this mobile carrier belongs. */ - countryDartId: string; + countryDartId?: string; /** * ID of this mobile carrier. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#mobileCarrier". */ - kind: string; + kind?: string; /** * Name of this mobile carrier. */ - name: string; + name?: string; } /** * Mobile Carrier List Response @@ -4844,11 +4848,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#mobileCarriersListResponse". */ - kind: string; + kind?: string; /** * Mobile carrier collection. */ - mobileCarriers: Schema$MobileCarrier[]; + mobileCarriers?: Schema$MobileCarrier[]; } /** * Object Filter. @@ -4858,18 +4862,18 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#objectFilter". */ - kind: string; + kind?: string; /** * Applicable when status is ASSIGNED. The user has access to objects with * these object IDs. */ - objectIds: string[]; + objectIds?: string[]; /** * Status of the filter. NONE means the user has access to none of the * objects. ALL means the user has access to all objects. ASSIGNED means the * user has access to the objects with IDs in the objectIds list. */ - status: string; + status?: string; } /** * Offset Position. @@ -4878,11 +4882,11 @@ export namespace dfareporting_v2_8 { /** * Offset distance from left side of an asset or a window. */ - left: number; + left?: number; /** * Offset distance from top side of an asset or a window. */ - top: number; + top?: number; } /** * Omniture Integration Settings. @@ -4892,12 +4896,12 @@ export namespace dfareporting_v2_8 { * Whether placement cost data will be sent to Omniture. This property can * be enabled only if omnitureIntegrationEnabled is true. */ - omnitureCostDataEnabled: boolean; + omnitureCostDataEnabled?: boolean; /** * Whether Omniture integration is enabled. This property can be enabled * only when the "Advanced Ad Serving" account setting is enabled. */ - omnitureIntegrationEnabled: boolean; + omnitureIntegrationEnabled?: boolean; } /** * Contains information about an operating system that can be targeted by ads. @@ -4906,24 +4910,24 @@ export namespace dfareporting_v2_8 { /** * DART ID of this operating system. This is the ID used for targeting. */ - dartId: string; + dartId?: string; /** * Whether this operating system is for desktop. */ - desktop: boolean; + desktop?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystem". */ - kind: string; + kind?: string; /** * Whether this operating system is for mobile. */ - mobile: boolean; + mobile?: boolean; /** * Name of this operating system. */ - name: string; + name?: string; } /** * Operating System List Response @@ -4933,11 +4937,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystemsListResponse". */ - kind: string; + kind?: string; /** * Operating system collection. */ - operatingSystems: Schema$OperatingSystem[]; + operatingSystems?: Schema$OperatingSystem[]; } /** * Contains information about a particular version of an operating system that @@ -4947,29 +4951,29 @@ export namespace dfareporting_v2_8 { /** * ID of this operating system version. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystemVersion". */ - kind: string; + kind?: string; /** * Major version (leftmost number) of this operating system version. */ - majorVersion: string; + majorVersion?: string; /** * Minor version (number after the first dot) of this operating system * version. */ - minorVersion: string; + minorVersion?: string; /** * Name of this operating system version. */ - name: string; + name?: string; /** * Operating system of this operating system version. */ - operatingSystem: Schema$OperatingSystem; + operatingSystem?: Schema$OperatingSystem; } /** * Operating System Version List Response @@ -4979,11 +4983,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystemVersionsListResponse". */ - kind: string; + kind?: string; /** * Operating system version collection. */ - operatingSystemVersions: Schema$OperatingSystemVersion[]; + operatingSystemVersions?: Schema$OperatingSystemVersion[]; } /** * Creative optimization activity. @@ -4993,18 +4997,18 @@ export namespace dfareporting_v2_8 { * Floodlight activity ID of this optimization activity. This is a required * field. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Dimension value for the ID of the floodlight activity. This is a * read-only, auto-generated field. */ - floodlightActivityIdDimensionValue: Schema$DimensionValue; + floodlightActivityIdDimensionValue?: Schema$DimensionValue; /** * Weight associated with this optimization. The weight assigned will be * understood in proportion to the weights assigned to the other * optimization activities. Value must be greater than or equal to 1. */ - weight: number; + weight?: number; } /** * Describes properties of a DoubleClick Planning order. @@ -5013,84 +5017,84 @@ export namespace dfareporting_v2_8 { /** * Account ID of this order. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this order. */ - advertiserId: string; + advertiserId?: string; /** * IDs for users that have to approve documents created for this order. */ - approverUserProfileIds: string[]; + approverUserProfileIds?: string[]; /** * Buyer invoice ID associated with this order. */ - buyerInvoiceId: string; + buyerInvoiceId?: string; /** * Name of the buyer organization. */ - buyerOrganizationName: string; + buyerOrganizationName?: string; /** * Comments in this order. */ - comments: string; + comments?: string; /** * Contacts for this order. */ - contacts: Schema$OrderContact[]; + contacts?: Schema$OrderContact[]; /** * ID of this order. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#order". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this order. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this order. */ - name: string; + name?: string; /** * Notes of this order. */ - notes: string; + notes?: string; /** * ID of the terms and conditions template used in this order. */ - planningTermId: string; + planningTermId?: string; /** * Project ID of this order. */ - projectId: string; + projectId?: string; /** * Seller order ID associated with this order. */ - sellerOrderId: string; + sellerOrderId?: string; /** * Name of the seller organization. */ - sellerOrganizationName: string; + sellerOrganizationName?: string; /** * Site IDs this order is associated with. */ - siteId: string[]; + siteId?: string[]; /** * Free-form site names this order is associated with. */ - siteNames: string[]; + siteNames?: string[]; /** * Subaccount ID of this order. */ - subaccountId: string; + subaccountId?: string; /** * Terms and conditions of this order. */ - termsAndConditions: string; + termsAndConditions?: string; } /** * Contact of an order. @@ -5101,24 +5105,24 @@ export namespace dfareporting_v2_8 { * related to this contact in addition to type, title, name, and signature * user profile ID. */ - contactInfo: string; + contactInfo?: string; /** * Name of this contact. */ - contactName: string; + contactName?: string; /** * Title of this contact. */ - contactTitle: string; + contactTitle?: string; /** * Type of this contact. */ - contactType: string; + contactType?: string; /** * ID of the user profile containing the signature that will be embedded * into order documents. */ - signatureUserProfileId: string; + signatureUserProfileId?: string; } /** * Contains properties of a DoubleClick Planning order document. @@ -5127,74 +5131,74 @@ export namespace dfareporting_v2_8 { /** * Account ID of this order document. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this order document. */ - advertiserId: string; + advertiserId?: string; /** * The amended order document ID of this order document. An order document * can be created by optionally amending another order document so that the * change history can be preserved. */ - amendedOrderDocumentId: string; + amendedOrderDocumentId?: string; /** * IDs of users who have approved this order document. */ - approvedByUserProfileIds: string[]; + approvedByUserProfileIds?: string[]; /** * Whether this order document is cancelled. */ - cancelled: boolean; + cancelled?: boolean; /** * Information about the creation of this order document. */ - createdInfo: Schema$LastModifiedInfo; + createdInfo?: Schema$LastModifiedInfo; /** * Effective date of this order document. */ - effectiveDate: string; + effectiveDate?: string; /** * ID of this order document. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#orderDocument". */ - kind: string; + kind?: string; /** * List of email addresses that received the last sent document. */ - lastSentRecipients: string[]; + lastSentRecipients?: string[]; /** * Timestamp of the last email sent with this order document. */ - lastSentTime: string; + lastSentTime?: string; /** * ID of the order from which this order document is created. */ - orderId: string; + orderId?: string; /** * Project ID of this order document. */ - projectId: string; + projectId?: string; /** * Whether this order document has been signed. */ - signed: boolean; + signed?: boolean; /** * Subaccount ID of this order document. */ - subaccountId: string; + subaccountId?: string; /** * Title of this order document. */ - title: string; + title?: string; /** * Type of this order document */ - type: string; + type?: string; } /** * Order document List Response @@ -5204,15 +5208,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#orderDocumentsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Order document collection */ - orderDocuments: Schema$OrderDocument[]; + orderDocuments?: Schema$OrderDocument[]; } /** * Order List Response @@ -5222,15 +5226,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#ordersListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Order collection. */ - orders: Schema$Order[]; + orders?: Schema$Order[]; } /** * Represents fields that are compatible to be selected for a report of type @@ -5241,27 +5245,27 @@ export namespace dfareporting_v2_8 { * Conversion dimensions which are compatible to be selected in the * "conversionDimensions" section of the report. */ - conversionDimensions: Schema$Dimension[]; + conversionDimensions?: Schema$Dimension[]; /** * Custom floodlight variables which are compatible to be selected in the * "customFloodlightVariables" section of the report. */ - customFloodlightVariables: Schema$Dimension[]; + customFloodlightVariables?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#pathToConversionReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Per-interaction dimensions which are compatible to be selected in the * "perInteractionDimensions" section of the report. */ - perInteractionDimensions: Schema$Dimension[]; + perInteractionDimensions?: Schema$Dimension[]; } /** * Contains properties of a placement. @@ -5270,40 +5274,40 @@ export namespace dfareporting_v2_8 { /** * Account ID of this placement. This field can be left blank. */ - accountId: string; + accountId?: string; /** * Whether this placement opts out of ad blocking. When true, ad blocking is * disabled for this placement. When false, the campaign and site settings * take effect. */ - adBlockingOptOut: boolean; + adBlockingOptOut?: boolean; /** * Advertiser ID of this placement. This field can be left blank. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this placement is archived. */ - archived: boolean; + archived?: boolean; /** * Campaign ID of this placement. This field is a required field on * insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * Comments for this placement. */ - comment: string; + comment?: string; /** * Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to * rendering on desktop, on mobile devices or in mobile apps for regular or @@ -5313,91 +5317,91 @@ export namespace dfareporting_v2_8 { * video ads developed with the VAST standard. This field is required on * insertion. */ - compatibility: string; + compatibility?: string; /** * ID of the content category assigned to this placement. */ - contentCategoryId: string; + contentCategoryId?: string; /** * Information about the creation of this placement. This is a read-only * field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * Directory site ID of this placement. On insert, you must set either this * field or the siteId field to specify the site associated with this * placement. This is a required field that is read-only after insertion. */ - directorySiteId: string; + directorySiteId?: string; /** * Dimension value for the ID of the directory site. This is a read-only, * auto-generated field. */ - directorySiteIdDimensionValue: Schema$DimensionValue; + directorySiteIdDimensionValue?: Schema$DimensionValue; /** * External ID for this placement. */ - externalId: string; + externalId?: string; /** * ID of this placement. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this placement. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Key name of this placement. This is a read-only, auto-generated field. */ - keyName: string; + keyName?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placement". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this placement. This is * a read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Lookback window settings for this placement. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Name of this placement.This is a required field and must be less than 256 * characters long. */ - name: string; + name?: string; /** * Whether payment was approved for this placement. This is a read-only * field relevant only to publisher-paid placements. */ - paymentApproved: boolean; + paymentApproved?: boolean; /** * Payment source for this placement. This is a required field that is * read-only after insertion. */ - paymentSource: string; + paymentSource?: string; /** * ID of this placement's group, if applicable. */ - placementGroupId: string; + placementGroupId?: string; /** * Dimension value for the ID of the placement group. This is a read-only, * auto-generated field. */ - placementGroupIdDimensionValue: Schema$DimensionValue; + placementGroupIdDimensionValue?: Schema$DimensionValue; /** * ID of the placement strategy assigned to this placement. */ - placementStrategyId: string; + placementStrategyId?: string; /** * Pricing schedule of this placement. This field is required on insertion, * specifically subfields startDate, endDate and pricingType. */ - pricingSchedule: Schema$PricingSchedule; + pricingSchedule?: Schema$PricingSchedule; /** * Whether this placement is the primary placement of a roadblock (placement * group). You cannot change this field from true to false. Setting this @@ -5406,41 +5410,41 @@ export namespace dfareporting_v2_8 { * set the roadblock's primaryPlacementId field to the ID of this * placement. */ - primary: boolean; + primary?: boolean; /** * Information about the last publisher update. This is a read-only field. */ - publisherUpdateInfo: Schema$LastModifiedInfo; + publisherUpdateInfo?: Schema$LastModifiedInfo; /** * Site ID associated with this placement. On insert, you must set either * this field or the directorySiteId field to specify the site associated * with this placement. This is a required field that is read-only after * insertion. */ - siteId: string; + siteId?: string; /** * Dimension value for the ID of the site. This is a read-only, * auto-generated field. */ - siteIdDimensionValue: Schema$DimensionValue; + siteIdDimensionValue?: Schema$DimensionValue; /** * Size associated with this placement. When inserting or updating a * placement, only the size ID field is used. This field is required on * insertion. */ - size: Schema$Size; + size?: Schema$Size; /** * Whether creatives assigned to this placement must be SSL-compliant. */ - sslRequired: boolean; + sslRequired?: boolean; /** * Third-party placement status. */ - status: string; + status?: string; /** * Subaccount ID of this placement. This field can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Tag formats to generate for this placement. This field is required on * insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - @@ -5459,11 +5463,11 @@ export namespace dfareporting_v2_8 { * "PLACEMENT_TAG_TRACKING_IFRAME" - * "PLACEMENT_TAG_TRACKING_JAVASCRIPT" */ - tagFormats: string[]; + tagFormats?: string[]; /** * Tag settings for this placement. */ - tagSetting: Schema$TagSetting; + tagSetting?: Schema$TagSetting; /** * Whether Verification and ActiveView are disabled for in-stream video * creatives for this placement. The same setting videoActiveViewOptOut @@ -5474,19 +5478,19 @@ export namespace dfareporting_v2_8 { * However, Accounts.activeViewOptOut opts out both video traffic, as well * as display ads, from Verification and ActiveView. */ - videoActiveViewOptOut: boolean; + videoActiveViewOptOut?: boolean; /** * A collection of settings which affect video creatives served through this * placement. Applicable to placements with IN_STREAM_VIDEO compatibility. */ - videoSettings: Schema$VideoSettings; + videoSettings?: Schema$VideoSettings; /** * VPAID adapter setting for this placement. Controls which VPAID format the * measurement adapter will use for in-stream video creatives assigned to * this placement. Note: Flash is no longer supported. This field now * defaults to HTML5 when the following values are provided: FLASH, BOTH. */ - vpaidAdapterChoice: string; + vpaidAdapterChoice?: string; } /** * Placement Assignment. @@ -5496,21 +5500,21 @@ export namespace dfareporting_v2_8 { * Whether this placement assignment is active. When true, the placement * will be included in the ad's rotation. */ - active: boolean; + active?: boolean; /** * ID of the placement to be assigned. This is a required field. */ - placementId: string; + placementId?: string; /** * Dimension value for the ID of the placement. This is a read-only, * auto-generated field. */ - placementIdDimensionValue: Schema$DimensionValue; + placementIdDimensionValue?: Schema$DimensionValue; /** * Whether the placement to be assigned requires SSL. This is a read-only * field that is auto-generated when the ad is inserted or updated. */ - sslRequired: boolean; + sslRequired?: boolean; } /** * Contains properties of a package or roadblock. @@ -5520,88 +5524,88 @@ export namespace dfareporting_v2_8 { * Account ID of this placement group. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this placement group. This is a required field on * insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this placement group is archived. */ - archived: boolean; + archived?: boolean; /** * Campaign ID of this placement group. This field is required on insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * IDs of placements which are assigned to this placement group. This is a * read-only, auto-generated field. */ - childPlacementIds: string[]; + childPlacementIds?: string[]; /** * Comments for this placement group. */ - comment: string; + comment?: string; /** * ID of the content category assigned to this placement group. */ - contentCategoryId: string; + contentCategoryId?: string; /** * Information about the creation of this placement group. This is a * read-only field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * Directory site ID associated with this placement group. On insert, you * must set either this field or the site_id field to specify the site * associated with this placement group. This is a required field that is * read-only after insertion. */ - directorySiteId: string; + directorySiteId?: string; /** * Dimension value for the ID of the directory site. This is a read-only, * auto-generated field. */ - directorySiteIdDimensionValue: Schema$DimensionValue; + directorySiteIdDimensionValue?: Schema$DimensionValue; /** * External ID for this placement. */ - externalId: string; + externalId?: string; /** * ID of this placement group. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this placement group. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementGroup". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this placement group. * This is a read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this placement group. This is a required field and must be less * than 256 characters long. */ - name: string; + name?: string; /** * Type of this placement group. A package is a simple group of placements * that acts as a single pricing point for a group of tags. A roadblock is a @@ -5610,44 +5614,44 @@ export namespace dfareporting_v2_8 { * roadblock requires one of its assigned placements to be marked as primary * for reporting. This field is required on insertion. */ - placementGroupType: string; + placementGroupType?: string; /** * ID of the placement strategy assigned to this placement group. */ - placementStrategyId: string; + placementStrategyId?: string; /** * Pricing schedule of this placement group. This field is required on * insertion. */ - pricingSchedule: Schema$PricingSchedule; + pricingSchedule?: Schema$PricingSchedule; /** * ID of the primary placement, used to calculate the media cost of a * roadblock (placement group). Modifying this field will automatically * modify the primary field on all affected roadblock child placements. */ - primaryPlacementId: string; + primaryPlacementId?: string; /** * Dimension value for the ID of the primary placement. This is a read-only, * auto-generated field. */ - primaryPlacementIdDimensionValue: Schema$DimensionValue; + primaryPlacementIdDimensionValue?: Schema$DimensionValue; /** * Site ID associated with this placement group. On insert, you must set * either this field or the directorySiteId field to specify the site * associated with this placement group. This is a required field that is * read-only after insertion. */ - siteId: string; + siteId?: string; /** * Dimension value for the ID of the site. This is a read-only, * auto-generated field. */ - siteIdDimensionValue: Schema$DimensionValue; + siteIdDimensionValue?: Schema$DimensionValue; /** * Subaccount ID of this placement group. This is a read-only field that can * be left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Placement Group List Response @@ -5657,15 +5661,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Placement group collection. */ - placementGroups: Schema$PlacementGroup[]; + placementGroups?: Schema$PlacementGroup[]; } /** * Placement GenerateTags Response @@ -5675,11 +5679,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementsGenerateTagsResponse". */ - kind: string; + kind?: string; /** * Set of generated tags for the specified placements. */ - placementTags: Schema$PlacementTag[]; + placementTags?: Schema$PlacementTag[]; } /** * Placement List Response @@ -5689,15 +5693,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Placement collection. */ - placements: Schema$Placement[]; + placements?: Schema$Placement[]; } /** * Placement Strategy List Response @@ -5707,15 +5711,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementStrategiesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Placement strategy collection. */ - placementStrategies: Schema$PlacementStrategy[]; + placementStrategies?: Schema$PlacementStrategy[]; } /** * Contains properties of a placement strategy. @@ -5725,22 +5729,22 @@ export namespace dfareporting_v2_8 { * Account ID of this placement strategy.This is a read-only field that can * be left blank. */ - accountId: string; + accountId?: string; /** * ID of this placement strategy. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementStrategy". */ - kind: string; + kind?: string; /** * Name of this placement strategy. This is a required field. It must be * less than 256 characters long and unique among placement strategies of * the same account. */ - name: string; + name?: string; } /** * Placement Tag @@ -5749,11 +5753,11 @@ export namespace dfareporting_v2_8 { /** * Placement ID */ - placementId: string; + placementId?: string; /** * Tags generated for this placement. */ - tagDatas: Schema$TagData[]; + tagDatas?: Schema$TagData[]; } /** * Contains information about a platform type that can be targeted by ads. @@ -5762,16 +5766,16 @@ export namespace dfareporting_v2_8 { /** * ID of this platform type. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#platformType". */ - kind: string; + kind?: string; /** * Name of this platform type. */ - name: string; + name?: string; } /** * Platform Type List Response @@ -5781,11 +5785,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#platformTypesListResponse". */ - kind: string; + kind?: string; /** * Platform type collection. */ - platformTypes: Schema$PlatformType[]; + platformTypes?: Schema$PlatformType[]; } /** * Popup Window Properties. @@ -5795,40 +5799,40 @@ export namespace dfareporting_v2_8 { * Popup dimension for a creative. This is a read-only field. Applicable to * the following creative types: all RICH_MEDIA and all VPAID */ - dimension: Schema$Size; + dimension?: Schema$Size; /** * Upper-left corner coordinates of the popup window. Applicable if * positionType is COORDINATES. */ - offset: Schema$OffsetPosition; + offset?: Schema$OffsetPosition; /** * Popup window position either centered or at specific coordinate. */ - positionType: string; + positionType?: string; /** * Whether to display the browser address bar. */ - showAddressBar: boolean; + showAddressBar?: boolean; /** * Whether to display the browser menu bar. */ - showMenuBar: boolean; + showMenuBar?: boolean; /** * Whether to display the browser scroll bar. */ - showScrollBar: boolean; + showScrollBar?: boolean; /** * Whether to display the browser status bar. */ - showStatusBar: boolean; + showStatusBar?: boolean; /** * Whether to display the browser tool bar. */ - showToolBar: boolean; + showToolBar?: boolean; /** * Title of popup window. */ - title: string; + title?: string; } /** * Contains information about a postal code that can be targeted by ads. @@ -5837,24 +5841,24 @@ export namespace dfareporting_v2_8 { /** * Postal code. This is equivalent to the id field. */ - code: string; + code?: string; /** * Country code of the country to which this postal code belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this postal code belongs. */ - countryDartId: string; + countryDartId?: string; /** * ID of this postal code. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#postalCode". */ - kind: string; + kind?: string; } /** * Postal Code List Response @@ -5864,11 +5868,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#postalCodesListResponse". */ - kind: string; + kind?: string; /** * Postal code collection. */ - postalCodes: Schema$PostalCode[]; + postalCodes?: Schema$PostalCode[]; } /** * Pricing Information @@ -5877,17 +5881,17 @@ export namespace dfareporting_v2_8 { /** * Cap cost type of this inventory item. */ - capCostType: string; + capCostType?: string; /** * End date of this inventory item. */ - endDate: string; + endDate?: string; /** * Flights of this inventory item. A flight (a.k.a. pricing period) * represents the inventory item pricing information for a specific period * of time. */ - flights: Schema$Flight[]; + flights?: Schema$Flight[]; /** * Group type of this inventory item if it represents a placement group. Is * null otherwise. There are two type of placement groups: @@ -5898,15 +5902,15 @@ export namespace dfareporting_v2_8 { * the tags in it will be served at the same time. A roadblock requires one * of its assigned inventory items to be marked as primary. */ - groupType: string; + groupType?: string; /** * Pricing type of this inventory item. */ - pricingType: string; + pricingType?: string; /** * Start date of this inventory item. */ - startDate: string; + startDate?: string; } /** * Pricing Schedule @@ -5915,11 +5919,11 @@ export namespace dfareporting_v2_8 { /** * Placement cap cost option. */ - capCostOption: string; + capCostOption?: string; /** * Whether cap costs are ignored by ad serving. */ - disregardOverdelivery: boolean; + disregardOverdelivery?: boolean; /** * Placement end date. This date must be later than, or the same day as, the * placement start date, but not later than the campaign end date. If, for @@ -5928,37 +5932,37 @@ export namespace dfareporting_v2_8 { * seconds of the end date should not be set, as doing so will result in an * error. This field is required on insertion. */ - endDate: string; + endDate?: string; /** * Whether this placement is flighted. If true, pricing periods will be * computed automatically. */ - flighted: boolean; + flighted?: boolean; /** * Floodlight activity ID associated with this placement. This field should * be set when placement pricing type is set to PRICING_TYPE_CPA. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Pricing periods for this placement. */ - pricingPeriods: Schema$PricingSchedulePricingPeriod[]; + pricingPeriods?: Schema$PricingSchedulePricingPeriod[]; /** * Placement pricing type. This field is required on insertion. */ - pricingType: string; + pricingType?: string; /** * Placement start date. This date must be later than, or the same day as, * the campaign start date. The hours, minutes, and seconds of the start * date should not be set, as doing so will result in an error. This field * is required on insertion. */ - startDate: string; + startDate?: string; /** * Testing start date of this placement. The hours, minutes, and seconds of * the start date should not be set, as doing so will result in an error. */ - testingStartDate: string; + testingStartDate?: string; } /** * Pricing Period @@ -5973,27 +5977,27 @@ export namespace dfareporting_v2_8 { * hours, minutes, and seconds of the end date should not be set, as doing * so will result in an error. */ - endDate: string; + endDate?: string; /** * Comments for this pricing period. */ - pricingComment: string; + pricingComment?: string; /** * Rate or cost of this pricing period in nanos (i.e., multipled by * 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive. */ - rateOrCostNanos: string; + rateOrCostNanos?: string; /** * Pricing period start date. This date must be later than, or the same day * as, the placement start date. The hours, minutes, and seconds of the * start date should not be set, as doing so will result in an error. */ - startDate: string; + startDate?: string; /** * Units of this pricing period. Acceptable values are 0 to 10000000000, * inclusive. */ - units: string; + units?: string; } /** * Contains properties of a DoubleClick Planning project. @@ -6002,95 +6006,95 @@ export namespace dfareporting_v2_8 { /** * Account ID of this project. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this project. */ - advertiserId: string; + advertiserId?: string; /** * Audience age group of this project. */ - audienceAgeGroup: string; + audienceAgeGroup?: string; /** * Audience gender of this project. */ - audienceGender: string; + audienceGender?: string; /** * Budget of this project in the currency specified by the current account. * The value stored in this field represents only the non-fractional amount. * For example, for USD, the smallest value that can be represented by this * field is 1 US dollar. */ - budget: string; + budget?: string; /** * Client billing code of this project. */ - clientBillingCode: string; + clientBillingCode?: string; /** * Name of the project client. */ - clientName: string; + clientName?: string; /** * End date of the project. */ - endDate: string; + endDate?: string; /** * ID of this project. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#project". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this project. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this project. */ - name: string; + name?: string; /** * Overview of this project. */ - overview: string; + overview?: string; /** * Start date of the project. */ - startDate: string; + startDate?: string; /** * Subaccount ID of this project. */ - subaccountId: string; + subaccountId?: string; /** * Number of clicks that the advertiser is targeting. */ - targetClicks: string; + targetClicks?: string; /** * Number of conversions that the advertiser is targeting. */ - targetConversions: string; + targetConversions?: string; /** * CPA that the advertiser is targeting. */ - targetCpaNanos: string; + targetCpaNanos?: string; /** * CPC that the advertiser is targeting. */ - targetCpcNanos: string; + targetCpcNanos?: string; /** * vCPM from Active View that the advertiser is targeting. */ - targetCpmActiveViewNanos: string; + targetCpmActiveViewNanos?: string; /** * CPM that the advertiser is targeting. */ - targetCpmNanos: string; + targetCpmNanos?: string; /** * Number of impressions that the advertiser is targeting. */ - targetImpressions: string; + targetImpressions?: string; } /** * Project List Response @@ -6100,15 +6104,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#projectsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Project collection. */ - projects: Schema$Project[]; + projects?: Schema$Project[]; } /** * Represents fields that are compatible to be selected for a report of type @@ -6119,32 +6123,32 @@ export namespace dfareporting_v2_8 { * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensions" section of the report. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#reachReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected as activity metrics to pivot * on in the "activities" section of the report. */ - pivotedActivityMetrics: Schema$Metric[]; + pivotedActivityMetrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected in the * "reachByFrequencyMetricNames" section of the report. */ - reachByFrequencyMetrics: Schema$Metric[]; + reachByFrequencyMetrics?: Schema$Metric[]; } /** * Represents a recipient. @@ -6153,15 +6157,15 @@ export namespace dfareporting_v2_8 { /** * The delivery type for the recipient. */ - deliveryType: string; + deliveryType?: string; /** * The email address of the recipient. */ - email: string; + email?: string; /** * The kind of resource this is, in this case dfareporting#recipient. */ - kind: string; + kind?: string; } /** * Contains information about a region that can be targeted by ads. @@ -6170,28 +6174,28 @@ export namespace dfareporting_v2_8 { /** * Country code of the country to which this region belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this region belongs. */ - countryDartId: string; + countryDartId?: string; /** * DART ID of this region. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#region". */ - kind: string; + kind?: string; /** * Name of this region. */ - name: string; + name?: string; /** * Region code. */ - regionCode: string; + regionCode?: string; } /** * Region List Response @@ -6201,11 +6205,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#regionsListResponse". */ - kind: string; + kind?: string; /** * Region collection. */ - regions: Schema$Region[]; + regions?: Schema$Region[]; } /** * Contains properties of a remarketing list. Remarketing enables you to @@ -6221,61 +6225,61 @@ export namespace dfareporting_v2_8 { * Account ID of this remarketing list. This is a read-only, auto-generated * field that is only returned in GET requests. */ - accountId: string; + accountId?: string; /** * Whether this remarketing list is active. */ - active: boolean; + active?: boolean; /** * Dimension value for the advertiser ID that owns this remarketing list. * This is a required field. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Remarketing list description. */ - description: string; + description?: string; /** * Remarketing list ID. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#remarketingList". */ - kind: string; + kind?: string; /** * Number of days that a user should remain in the remarketing list without * an impression. Acceptable values are 1 to 540, inclusive. */ - lifeSpan: string; + lifeSpan?: string; /** * Rule used to populate the remarketing list with users. */ - listPopulationRule: Schema$ListPopulationRule; + listPopulationRule?: Schema$ListPopulationRule; /** * Number of users currently in the list. This is a read-only field. */ - listSize: string; + listSize?: string; /** * Product from which this remarketing list was originated. */ - listSource: string; + listSource?: string; /** * Name of the remarketing list. This is a required field. Must be no * greater than 128 characters long. */ - name: string; + name?: string; /** * Subaccount ID of this remarketing list. This is a read-only, * auto-generated field that is only returned in GET requests. */ - subaccountId: string; + subaccountId?: string; } /** * Contains properties of a remarketing list's sharing information. @@ -6288,19 +6292,19 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#remarketingListShare". */ - kind: string; + kind?: string; /** * Remarketing list ID. This is a read-only, auto-generated field. */ - remarketingListId: string; + remarketingListId?: string; /** * Accounts that the remarketing list is shared with. */ - sharedAccountIds: string[]; + sharedAccountIds?: string[]; /** * Advertisers that the remarketing list is shared with. */ - sharedAdvertiserIds: string[]; + sharedAdvertiserIds?: string[]; } /** * Remarketing list response @@ -6310,15 +6314,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#remarketingListsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Remarketing list collection. */ - remarketingLists: Schema$RemarketingList[]; + remarketingLists?: Schema$RemarketingList[]; } /** * Represents a Report resource. @@ -6327,32 +6331,32 @@ export namespace dfareporting_v2_8 { /** * The account ID to which this report belongs. */ - accountId: string; + accountId?: string; /** * The report criteria for a report of type "STANDARD". */ - criteria: any; + criteria?: any; /** * The report criteria for a report of type * "CROSS_DIMENSION_REACH". */ - crossDimensionReachCriteria: any; + crossDimensionReachCriteria?: any; /** * The report's email delivery settings. */ - delivery: any; + delivery?: any; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The filename used when generating report files for this report. */ - fileName: string; + fileName?: string; /** * The report criteria for a report of type "FLOODLIGHT". */ - floodlightCriteria: any; + floodlightCriteria?: any; /** * The output format of the report. If not specified, default format is * "CSV". Note that the actual format in the completed report file @@ -6360,50 +6364,50 @@ export namespace dfareporting_v2_8 { * format's capabilities. "CSV" will then be the fallback * format. */ - format: string; + format?: string; /** * The unique ID identifying this report resource. */ - id: string; + id?: string; /** * The kind of resource this is, in this case dfareporting#report. */ - kind: string; + kind?: string; /** * The timestamp (in milliseconds since epoch) of when this report was last * modified. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * The name of the report. */ - name: string; + name?: string; /** * The user profile id of the owner of this report. */ - ownerProfileId: string; + ownerProfileId?: string; /** * The report criteria for a report of type "PATH_TO_CONVERSION". */ - pathToConversionCriteria: any; + pathToConversionCriteria?: any; /** * The report criteria for a report of type "REACH". */ - reachCriteria: any; + reachCriteria?: any; /** * The report's schedule. Can only be set if the report's * 'dateRange' is a relative date range and the relative date range * is not "TODAY". */ - schedule: any; + schedule?: any; /** * The subaccount ID to which this report belongs if applicable. */ - subAccountId: string; + subAccountId?: string; /** * The type of the report. */ - type: string; + type?: string; } /** * Represents fields that are compatible to be selected for a report of type @@ -6414,27 +6418,27 @@ export namespace dfareporting_v2_8 { * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensions" section of the report. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#reportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected as activity metrics to pivot * on in the "activities" section of the report. */ - pivotedActivityMetrics: Schema$Metric[]; + pivotedActivityMetrics?: Schema$Metric[]; } /** * Represents the list of reports. @@ -6443,22 +6447,22 @@ export namespace dfareporting_v2_8 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The reports returned in this response. */ - items: Schema$Report[]; + items?: Schema$Report[]; /** * The kind of list this is, in this case dfareporting#reportList. */ - kind: string; + kind?: string; /** * Continuation token used to page through reports. To retrieve the next * page of results, set the next request's "pageToken" to the * value of this field. The page token is only valid for a limited amount of * time and should not be persisted. */ - nextPageToken: string; + nextPageToken?: string; } /** * Reporting Configuration @@ -6469,11 +6473,11 @@ export namespace dfareporting_v2_8 { * detailed pathway information on up to 10 of the most recent ad exposures * seen by a user before converting. */ - exposureToConversionEnabled: boolean; + exposureToConversionEnabled?: boolean; /** * Default lookback windows for new advertisers in this account. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Report generation time zone ID of this account. This is a required field * that can only be changed by a superuser. Acceptable values are: - @@ -6488,7 +6492,7 @@ export namespace dfareporting_v2_8 { * "Pacific/Auckland" - "13" for * "America/Sao_Paulo" */ - reportGenerationTimeZoneId: string; + reportGenerationTimeZoneId?: string; } /** * Rich Media Exit Override. @@ -6498,16 +6502,16 @@ export namespace dfareporting_v2_8 { * Click-through URL of this rich media exit override. Applicable if the * enabled field is set to true. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * Whether to use the clickThroughUrl. If false, the creative-level exit * will be used. */ - enabled: boolean; + enabled?: boolean; /** * ID for the override to refer to a specific exit in the creative. */ - exitId: string; + exitId?: string; } /** * A rule associates an asset with a targeting template for asset-level @@ -6518,17 +6522,17 @@ export namespace dfareporting_v2_8 { * A creativeAssets[].id. This should refer to one of the parent assets in * this creative. This is a required field. */ - assetId: string; + assetId?: string; /** * A user-friendly name for this rule. This is a required field. */ - name: string; + name?: string; /** * A targeting template ID. The targeting from the targeting template will * be used to determine whether this asset should be served. This is a * required field. */ - targetingTemplateId: string; + targetingTemplateId?: string; } /** * Contains properties of a site. @@ -6538,39 +6542,39 @@ export namespace dfareporting_v2_8 { * Account ID of this site. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Whether this site is approved. */ - approved: boolean; + approved?: boolean; /** * Directory site associated with this site. This is a required field that * is read-only after insertion. */ - directorySiteId: string; + directorySiteId?: string; /** * Dimension value for the ID of the directory site. This is a read-only, * auto-generated field. */ - directorySiteIdDimensionValue: Schema$DimensionValue; + directorySiteIdDimensionValue?: Schema$DimensionValue; /** * ID of this site. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this site. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Key name of this site. This is a read-only, auto-generated field. */ - keyName: string; + keyName?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#site". */ - kind: string; + kind?: string; /** * Name of this site.This is a required field. Must be less than 128 * characters long. If this site is under a subaccount, the name must be @@ -6578,20 +6582,20 @@ export namespace dfareporting_v2_8 { * top-level site, and the name must be unique among top-level sites of the * same account. */ - name: string; + name?: string; /** * Site contacts. */ - siteContacts: Schema$SiteContact[]; + siteContacts?: Schema$SiteContact[]; /** * Site-wide settings. */ - siteSettings: Schema$SiteSettings; + siteSettings?: Schema$SiteSettings; /** * Subaccount ID of this site. This is a read-only field that can be left * blank. */ - subaccountId: string; + subaccountId?: string; } /** * Site Contact @@ -6600,35 +6604,35 @@ export namespace dfareporting_v2_8 { /** * Address of this site contact. */ - address: string; + address?: string; /** * Site contact type. */ - contactType: string; + contactType?: string; /** * Email address of this site contact. This is a required field. */ - email: string; + email?: string; /** * First name of this site contact. */ - firstName: string; + firstName?: string; /** * ID of this site contact. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Last name of this site contact. */ - lastName: string; + lastName?: string; /** * Primary phone number of this site contact. */ - phone: string; + phone?: string; /** * Title or designation of this site contact. */ - title: string; + title?: string; } /** * Site Settings @@ -6637,37 +6641,37 @@ export namespace dfareporting_v2_8 { /** * Whether active view creatives are disabled for this site. */ - activeViewOptOut: boolean; + activeViewOptOut?: boolean; /** * Whether this site opts out of ad blocking. When true, ad blocking is * disabled for all placements under the site, regardless of the individual * placement settings. When false, the campaign and placement settings take * effect. */ - adBlockingOptOut: boolean; + adBlockingOptOut?: boolean; /** * Site-wide creative settings. */ - creativeSettings: Schema$CreativeSettings; + creativeSettings?: Schema$CreativeSettings; /** * Whether new cookies are disabled for this site. */ - disableNewCookie: boolean; + disableNewCookie?: boolean; /** * Lookback window settings for this site. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Configuration settings for dynamic and image floodlight tags. */ - tagSetting: Schema$TagSetting; + tagSetting?: Schema$TagSetting; /** * Whether Verification and ActiveView for in-stream video creatives are * disabled by default for new placements created under this site. This * value will be used to populate the placement.videoActiveViewOptOut field, * when no value is specified for the new placement. */ - videoActiveViewOptOutTemplate: boolean; + videoActiveViewOptOutTemplate?: boolean; /** * Default VPAID adapter setting for new placements created under this site. * This value will be used to populate the placements.vpaidAdapterChoice @@ -6679,7 +6683,7 @@ export namespace dfareporting_v2_8 { * adapter). Note: Flash is no longer supported. This field now defaults to * HTML5 when the following values are provided: FLASH, BOTH. */ - vpaidAdapterChoiceTemplate: string; + vpaidAdapterChoiceTemplate?: string; } /** * Site List Response @@ -6689,15 +6693,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#sitesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Site collection. */ - sites: Schema$Site[]; + sites?: Schema$Site[]; } /** * Represents the dimensions of ads, placements, creatives, or creative @@ -6707,24 +6711,24 @@ export namespace dfareporting_v2_8 { /** * Height of this size. Acceptable values are 0 to 32767, inclusive. */ - height: number; + height?: number; /** * IAB standard size. This is a read-only, auto-generated field. */ - iab: boolean; + iab?: boolean; /** * ID of this size. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#size". */ - kind: string; + kind?: string; /** * Width of this size. Acceptable values are 0 to 32767, inclusive. */ - width: number; + width?: number; } /** * Size List Response @@ -6734,11 +6738,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#sizesListResponse". */ - kind: string; + kind?: string; /** * Size collection. */ - sizes: Schema$Size[]; + sizes?: Schema$Size[]; } /** * Skippable Settings @@ -6748,21 +6752,21 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#skippableSetting". */ - kind: string; + kind?: string; /** * Amount of time to play videos served to this placement before counting a * view. Applicable when skippable is true. */ - progressOffset: Schema$VideoOffset; + progressOffset?: Schema$VideoOffset; /** * Amount of time to play videos served to this placement before the skip * button should appear. Applicable when skippable is true. */ - skipOffset: Schema$VideoOffset; + skipOffset?: Schema$VideoOffset; /** * Whether the user can skip creatives served to this placement. */ - skippable: boolean; + skippable?: boolean; } /** * Represents a sorted dimension. @@ -6771,15 +6775,15 @@ export namespace dfareporting_v2_8 { /** * The kind of resource this is, in this case dfareporting#sortedDimension. */ - kind: string; + kind?: string; /** * The name of the dimension. */ - name: string; + name?: string; /** * An optional sort order for the dimension column. */ - sortOrder: string; + sortOrder?: string; } /** * Contains properties of a DCM subaccount. @@ -6789,25 +6793,25 @@ export namespace dfareporting_v2_8 { * ID of the account that contains this subaccount. This is a read-only * field that can be left blank. */ - accountId: string; + accountId?: string; /** * IDs of the available user role permissions for this subaccount. */ - availablePermissionIds: string[]; + availablePermissionIds?: string[]; /** * ID of this subaccount. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#subaccount". */ - kind: string; + kind?: string; /** * Name of this subaccount. This is a required field. Must be less than 128 * characters long and be unique among subaccounts of the same account. */ - name: string; + name?: string; } /** * Subaccount List Response @@ -6817,15 +6821,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#subaccountsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Subaccount collection. */ - subaccounts: Schema$Subaccount[]; + subaccounts?: Schema$Subaccount[]; } /** * Placement Tag Data @@ -6835,24 +6839,24 @@ export namespace dfareporting_v2_8 { * Ad associated with this placement tag. Applicable only when format is * PLACEMENT_TAG_TRACKING. */ - adId: string; + adId?: string; /** * Tag string to record a click. */ - clickTag: string; + clickTag?: string; /** * Creative associated with this placement tag. Applicable only when format * is PLACEMENT_TAG_TRACKING. */ - creativeId: string; + creativeId?: string; /** * TagData tag format of this tag. */ - format: string; + format?: string; /** * Tag string for serving an ad. */ - impressionTag: string; + impressionTag?: string; } /** * Tag Settings @@ -6864,23 +6868,23 @@ export namespace dfareporting_v2_8 { * Keys and values must not contain commas. For example, id=2;color=red is a * valid value for this field. */ - additionalKeyValues: string; + additionalKeyValues?: string; /** * Whether static landing page URLs should be included in the tags. This * setting applies only to placements. */ - includeClickThroughUrls: boolean; + includeClickThroughUrls?: boolean; /** * Whether click-tracking string should be included in the tags. */ - includeClickTracking: boolean; + includeClickTracking?: boolean; /** * Option specifying how keywords are embedded in ad tags. This setting can * be used to specify whether keyword placeholders are inserted in placement * tags for this site. Publishers can then add keywords to those * placeholders. */ - keywordOption: string; + keywordOption?: string; } /** * Dynamic and Image Tag Settings. @@ -6889,11 +6893,11 @@ export namespace dfareporting_v2_8 { /** * Whether dynamic floodlight tags are enabled. */ - dynamicTagEnabled: boolean; + dynamicTagEnabled?: boolean; /** * Whether image tags are enabled. */ - imageTagEnabled: boolean; + imageTagEnabled?: boolean; } /** * Contains properties of a targetable remarketing list. Remarketing enables @@ -6910,56 +6914,56 @@ export namespace dfareporting_v2_8 { * Account ID of this remarketing list. This is a read-only, auto-generated * field that is only returned in GET requests. */ - accountId: string; + accountId?: string; /** * Whether this targetable remarketing list is active. */ - active: boolean; + active?: boolean; /** * Dimension value for the advertiser ID that owns this targetable * remarketing list. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Targetable remarketing list description. */ - description: string; + description?: string; /** * Targetable remarketing list ID. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetableRemarketingList". */ - kind: string; + kind?: string; /** * Number of days that a user should remain in the targetable remarketing * list without an impression. */ - lifeSpan: string; + lifeSpan?: string; /** * Number of users currently in the list. This is a read-only field. */ - listSize: string; + listSize?: string; /** * Product from which this targetable remarketing list was originated. */ - listSource: string; + listSource?: string; /** * Name of the targetable remarketing list. Is no greater than 128 * characters long. */ - name: string; + name?: string; /** * Subaccount ID of this remarketing list. This is a read-only, * auto-generated field that is only returned in GET requests. */ - subaccountId: string; + subaccountId?: string; } /** * Targetable remarketing list response @@ -6969,15 +6973,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetableRemarketingListsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Targetable remarketing list collection. */ - targetableRemarketingLists: Schema$TargetableRemarketingList[]; + targetableRemarketingLists?: Schema$TargetableRemarketingList[]; } /** * Contains properties of a targeting template. A targeting template @@ -6988,60 +6992,60 @@ export namespace dfareporting_v2_8 { * Account ID of this targeting template. This field, if left unset, will be * auto-generated on insert and is read-only after insert. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this targeting template. This is a required field on * insert and is read-only after insert. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Time and day targeting criteria. */ - dayPartTargeting: Schema$DayPartTargeting; + dayPartTargeting?: Schema$DayPartTargeting; /** * Geographical targeting criteria. */ - geoTargeting: Schema$GeoTargeting; + geoTargeting?: Schema$GeoTargeting; /** * ID of this targeting template. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Key-value targeting criteria. */ - keyValueTargetingExpression: Schema$KeyValueTargetingExpression; + keyValueTargetingExpression?: Schema$KeyValueTargetingExpression; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetingTemplate". */ - kind: string; + kind?: string; /** * Language targeting criteria. */ - languageTargeting: Schema$LanguageTargeting; + languageTargeting?: Schema$LanguageTargeting; /** * Remarketing list targeting criteria. */ - listTargetingExpression: Schema$ListTargetingExpression; + listTargetingExpression?: Schema$ListTargetingExpression; /** * Name of this targeting template. This field is required. It must be less * than 256 characters long and unique within an advertiser. */ - name: string; + name?: string; /** * Subaccount ID of this targeting template. This field, if left unset, will * be auto-generated on insert and is read-only after insert. */ - subaccountId: string; + subaccountId?: string; /** * Technology platform targeting criteria. */ - technologyTargeting: Schema$TechnologyTargeting; + technologyTargeting?: Schema$TechnologyTargeting; } /** * Targeting Template List Response @@ -7051,15 +7055,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetingTemplatesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Targeting template collection. */ - targetingTemplates: Schema$TargetingTemplate[]; + targetingTemplates?: Schema$TargetingTemplate[]; } /** * Target Window. @@ -7068,12 +7072,12 @@ export namespace dfareporting_v2_8 { /** * User-entered value. */ - customHtml: string; + customHtml?: string; /** * Type of browser window for which the backup image of the flash creative * can be displayed. */ - targetWindowOption: string; + targetWindowOption?: string; } /** * Technology Targeting. @@ -7085,20 +7089,20 @@ export namespace dfareporting_v2_8 { * specified, only browserVersionId will be used. The other fields are * populated automatically when the ad is inserted or updated. */ - browsers: Schema$Browser[]; + browsers?: Schema$Browser[]; /** * Connection types that this ad targets. For each connection type only id * is required. The other fields are populated automatically when the ad is * inserted or updated. */ - connectionTypes: Schema$ConnectionType[]; + connectionTypes?: Schema$ConnectionType[]; /** * Mobile carriers that this ad targets. For each mobile carrier only id is * required, and the other fields are populated automatically when the ad is * inserted or updated. If targeting a mobile carrier, do not set targeting * for any zip codes. */ - mobileCarriers: Schema$MobileCarrier[]; + mobileCarriers?: Schema$MobileCarrier[]; /** * Operating systems that this ad targets. To target specific versions, use * operatingSystemVersions. For each operating system only dartId is @@ -7106,7 +7110,7 @@ export namespace dfareporting_v2_8 { * inserted or updated. If targeting an operating system, do not set * targeting for operating system versions for the same operating system. */ - operatingSystems: Schema$OperatingSystem[]; + operatingSystems?: Schema$OperatingSystem[]; /** * Operating system versions that this ad targets. To target all versions, * use operatingSystems. For each operating system version, only id is @@ -7114,13 +7118,13 @@ export namespace dfareporting_v2_8 { * inserted or updated. If targeting an operating system version, do not set * targeting for the corresponding operating system in operatingSystems. */ - operatingSystemVersions: Schema$OperatingSystemVersion[]; + operatingSystemVersions?: Schema$OperatingSystemVersion[]; /** * Platform types that this ad targets. For example, desktop, mobile, or * tablet. For each platform type, only id is required, and the other fields * are populated automatically when the ad is inserted or updated. */ - platformTypes: Schema$PlatformType[]; + platformTypes?: Schema$PlatformType[]; } /** * Third Party Authentication Token @@ -7129,12 +7133,12 @@ export namespace dfareporting_v2_8 { /** * Name of the third-party authentication token. */ - name: string; + name?: string; /** * Value of the third-party authentication token. This is a read-only, * auto-generated field. */ - value: string; + value?: string; } /** * Third-party Tracking URL. @@ -7143,11 +7147,11 @@ export namespace dfareporting_v2_8 { /** * Third-party URL type for in-stream video creatives. */ - thirdPartyUrlType: string; + thirdPartyUrlType?: string; /** * URL for the specified third-party URL type. */ - url: string; + url?: string; } /** * Transcode Settings @@ -7157,12 +7161,12 @@ export namespace dfareporting_v2_8 { * Whitelist of video formats to be served to this placement. Set this list * to null or empty to serve all video formats. */ - enabledVideoFormats: number[]; + enabledVideoFormats?: number[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#transcodeSetting". */ - kind: string; + kind?: string; } /** * A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following @@ -7172,13 +7176,13 @@ export namespace dfareporting_v2_8 { /** * Registry used for the Ad ID value. */ - registry: string; + registry?: string; /** * ID value for this creative. Only alphanumeric characters and the * following symbols are valid: "_/\-". Maximum length is 64 * characters. Read only when registry is DCM. */ - value: string; + value?: string; } /** * User Defined Variable configuration. @@ -7187,17 +7191,17 @@ export namespace dfareporting_v2_8 { /** * Data type for the variable. This is a required field. */ - dataType: string; + dataType?: string; /** * User-friendly name for the variable which will appear in reports. This is * a required field, must be less than 64 characters long, and cannot * contain the following characters: ""<>". */ - reportName: string; + reportName?: string; /** * Variable name in the tag. This is a required field. */ - variableType: string; + variableType?: string; } /** * Represents a UserProfile resource. @@ -7206,35 +7210,35 @@ export namespace dfareporting_v2_8 { /** * The account ID to which this profile belongs. */ - accountId: string; + accountId?: string; /** * The account name this profile belongs to. */ - accountName: string; + accountName?: string; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The kind of resource this is, in this case dfareporting#userProfile. */ - kind: string; + kind?: string; /** * The unique ID of the user profile. */ - profileId: string; + profileId?: string; /** * The sub account ID this profile belongs to if applicable. */ - subAccountId: string; + subAccountId?: string; /** * The sub account name this profile belongs to if applicable. */ - subAccountName: string; + subAccountName?: string; /** * The user name. */ - userName: string; + userName?: string; } /** * Represents the list of user profiles. @@ -7243,15 +7247,15 @@ export namespace dfareporting_v2_8 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The user profiles returned in this response. */ - items: Schema$UserProfile[]; + items?: Schema$UserProfile[]; /** * The kind of list this is, in this case dfareporting#userProfileList. */ - kind: string; + kind?: string; } /** * Contains properties of auser role, which is used to manage user access. @@ -7261,22 +7265,22 @@ export namespace dfareporting_v2_8 { * Account ID of this user role. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Whether this is a default user role. Default user roles are created by * the system for the account/subaccount and cannot be modified or deleted. * Each default user role comes with a basic set of preassigned permissions. */ - defaultUserRole: boolean; + defaultUserRole?: boolean; /** * ID of this user role. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRole". */ - kind: string; + kind?: string; /** * Name of this user role. This is a required field. Must be less than 256 * characters long. If this user role is under a subaccount, the name must @@ -7284,21 +7288,21 @@ export namespace dfareporting_v2_8 { * is a top-level user role, and the name must be unique among top-level * user roles of the same account. */ - name: string; + name?: string; /** * ID of the user role that this user role is based on or copied from. This * is a required field. */ - parentUserRoleId: string; + parentUserRoleId?: string; /** * List of permissions associated with this user role. */ - permissions: Schema$UserRolePermission[]; + permissions?: Schema$UserRolePermission[]; /** * Subaccount ID of this user role. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Contains properties of a user role permission. @@ -7307,24 +7311,24 @@ export namespace dfareporting_v2_8 { /** * Levels of availability for a user role permission. */ - availability: string; + availability?: string; /** * ID of this user role permission. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermission". */ - kind: string; + kind?: string; /** * Name of this user role permission. */ - name: string; + name?: string; /** * ID of the permission group that this user role permission belongs to. */ - permissionGroupId: string; + permissionGroupId?: string; } /** * Represents a grouping of related user role permissions. @@ -7333,16 +7337,16 @@ export namespace dfareporting_v2_8 { /** * ID of this user role permission. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermissionGroup". */ - kind: string; + kind?: string; /** * Name of this user role permission group. */ - name: string; + name?: string; } /** * User Role Permission Group List Response @@ -7352,11 +7356,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermissionGroupsListResponse". */ - kind: string; + kind?: string; /** * User role permission group collection. */ - userRolePermissionGroups: Schema$UserRolePermissionGroup[]; + userRolePermissionGroups?: Schema$UserRolePermissionGroup[]; } /** * User Role Permission List Response @@ -7366,11 +7370,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermissionsListResponse". */ - kind: string; + kind?: string; /** * User role permission collection. */ - userRolePermissions: Schema$UserRolePermission[]; + userRolePermissions?: Schema$UserRolePermission[]; } /** * User Role List Response @@ -7380,15 +7384,15 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * User role collection. */ - userRoles: Schema$UserRole[]; + userRoles?: Schema$UserRole[]; } /** * Contains information about supported video formats. @@ -7397,24 +7401,24 @@ export namespace dfareporting_v2_8 { /** * File type of the video format. */ - fileType: string; + fileType?: string; /** * ID of the video format. */ - id: number; + id?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#videoFormat". */ - kind: string; + kind?: string; /** * The resolution of this video format. */ - resolution: Schema$Size; + resolution?: Schema$Size; /** * The target bit rate of this video format. */ - targetBitRate: number; + targetBitRate?: number; } /** * Video Format List Response @@ -7424,11 +7428,11 @@ export namespace dfareporting_v2_8 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#videoFormatsListResponse". */ - kind: string; + kind?: string; /** * Video format collection. */ - videoFormats: Schema$VideoFormat[]; + videoFormats?: Schema$VideoFormat[]; } /** * Video Offset @@ -7438,12 +7442,12 @@ export namespace dfareporting_v2_8 { * Duration, as a percentage of video duration. Do not set when * offsetSeconds is set. Acceptable values are 0 to 100, inclusive. */ - offsetPercentage: number; + offsetPercentage?: number; /** * Duration, in seconds. Do not set when offsetPercentage is set. Acceptable * values are 0 to 86399, inclusive. */ - offsetSeconds: number; + offsetSeconds?: number; } /** * Video Settings @@ -7453,26 +7457,27 @@ export namespace dfareporting_v2_8 { * Settings for the companion creatives of video creatives served to this * placement. */ - companionSettings: Schema$CompanionSetting; + companionSettings?: Schema$CompanionSetting; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#videoSettings". */ - kind: string; + kind?: string; /** * Settings for the skippability of video creatives served to this * placement. If this object is provided, the creative-level skippable * settings will be overridden. */ - skippableSettings: Schema$SkippableSetting; + skippableSettings?: Schema$SkippableSetting; /** * Settings for the transcodes of video creatives served to this placement. * If this object is provided, the creative-level transcode settings will be * overridden. */ - transcodeSettings: Schema$TranscodeSetting; + transcodeSettings?: Schema$TranscodeSetting; } + export class Resource$Accountactiveadsummaries { root: Dfareporting; constructor(root: Dfareporting) { @@ -7547,26 +7552,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountactiveadsummaries$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Accountactiveadsummaries$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountactiveadsummaries$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountactiveadsummaries$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountactiveadsummaries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountactiveadsummaries$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7591,6 +7606,23 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Accountactiveadsummaries$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Account ID. + */ + summaryAccountId?: string; + } + + export class Resource$Accountpermissiongroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -7665,26 +7697,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountpermissiongroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Accountpermissiongroups$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountpermissiongroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountpermissiongroups$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountpermissiongroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissiongroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7767,31 +7809,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountpermissiongroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountpermissiongroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountpermissiongroups$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Accountpermissiongroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountpermissiongroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissiongroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7818,6 +7877,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Accountpermissiongroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account permission group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accountpermissiongroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Accountpermissions { root: Dfareporting; constructor(root: Dfareporting) { @@ -7894,24 +7981,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountpermissions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accountpermissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountpermissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountpermissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountpermissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7996,29 +8094,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountpermissions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountpermissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accountpermissions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accountpermissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountpermissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8045,6 +8158,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Accountpermissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account permission ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accountpermissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Accounts { root: Dfareporting; constructor(root: Dfareporting) { @@ -8121,23 +8262,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8242,28 +8393,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8358,25 +8519,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Accounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8467,25 +8639,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8509,6 +8692,102 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active accounts. Don't set this field to select both active + * and non-active accounts. + */ + active?: boolean; + /** + * Select only accounts with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "account*2015" will return objects with names like "account + * June 2015", "account April 2015", or simply "account 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "account" will match + * objects with name "my account", "account 2015", or simply "account". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Accounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Accountuserprofiles { root: Dfareporting; constructor(root: Dfareporting) { @@ -8585,24 +8864,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountuserprofiles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accountuserprofiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountuserprofiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountuserprofiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountuserprofiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8690,26 +8980,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accountuserprofiles$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Accountuserprofiles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Accountuserprofiles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accountuserprofiles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountuserprofiles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8818,30 +9121,46 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountuserprofiles$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountuserprofiles$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accountuserprofiles$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accountuserprofiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountuserprofiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8938,26 +9257,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accountuserprofiles$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Accountuserprofiles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Accountuserprofiles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accountuserprofiles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountuserprofiles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9047,26 +9379,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accountuserprofiles$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accountuserprofiles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accountuserprofiles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accountuserprofiles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountuserprofiles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9091,6 +9436,125 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Accountuserprofiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accountuserprofiles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountUserProfile; + } + export interface Params$Resource$Accountuserprofiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active user profiles. + */ + active?: boolean; + /** + * Select only user profiles with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or email. Wildcards (*) are + * allowed. For example, "user profile*2015" will return objects with names + * like "user profile June 2015", "user profile April 2015", or simply "user + * profile 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "user profile" will match objects with name "my user profile", "user + * profile 2015", or simply "user profile". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only user profiles with the specified subaccount ID. + */ + subaccountId?: string; + /** + * Select only user profiles with the specified user role ID. + */ + userRoleId?: string; + } + export interface Params$Resource$Accountuserprofiles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountUserProfile; + } + export interface Params$Resource$Accountuserprofiles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountUserProfile; + } + + export class Resource$Ads { root: Dfareporting; constructor(root: Dfareporting) { @@ -9167,21 +9631,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Ads$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Ads$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Ads$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Ads$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9270,23 +9746,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Ads$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Ads$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Ads$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9406,26 +9895,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Ads$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Ads$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Ads$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9519,23 +10019,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Ads$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Ads$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Ads$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9625,23 +10138,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Ads$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Ads$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Ads$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9664,6 +10190,188 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Ads$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Ads$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Ad; + } + export interface Params$Resource$Ads$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active ads. + */ + active?: boolean; + /** + * Select only ads with this advertiser ID. + */ + advertiserId?: string; + /** + * Select only archived ads. + */ + archived?: boolean; + /** + * Select only ads with these audience segment IDs. + */ + audienceSegmentIds?: string; + /** + * Select only ads with these campaign IDs. + */ + campaignIds?: string; + /** + * Select default ads with the specified compatibility. Applicable when type + * is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to + * rendering either on desktop or on mobile devices for regular or + * interstitial ads, respectively. APP and APP_INTERSTITIAL are for + * rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an + * in-stream video ads developed with the VAST standard. + */ + compatibility?: string; + /** + * Select only ads with these creative IDs assigned. + */ + creativeIds?: string; + /** + * Select only ads with these creative optimization configuration IDs. + */ + creativeOptimizationConfigurationIds?: string; + /** + * Select only dynamic click trackers. Applicable when type is + * AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If + * false, select static click trackers. Leave unset to select both. + */ + dynamicClickTracker?: boolean; + /** + * Select only ads with these IDs. + */ + ids?: string; + /** + * Select only ads with these landing page IDs. + */ + landingPageIds?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only ads with this event tag override ID. + */ + overriddenEventTagId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only ads with these placement IDs assigned. + */ + placementIds?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only ads whose list targeting expression use these remarketing + * list IDs. + */ + remarketingListIds?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "ad*2015" will return objects with names like "ad June + * 2015", "ad April 2015", or simply "ad 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. + * For example, a search string of "ad" will match objects with name "my + * ad", "ad 2015", or simply "ad". + */ + searchString?: string; + /** + * Select only ads with these size IDs. + */ + sizeIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only ads that are SSL-compliant. + */ + sslCompliant?: boolean; + /** + * Select only ads that require SSL. + */ + sslRequired?: boolean; + /** + * Select only ads with these types. + */ + type?: string; + } + export interface Params$Resource$Ads$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Ad; + } + export interface Params$Resource$Ads$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Ad; + } + + export class Resource$Advertisergroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -9737,22 +10445,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisergroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Advertisergroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Advertisergroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9841,24 +10564,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Advertisergroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Advertisergroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Advertisergroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Advertisergroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9948,26 +10682,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Advertisergroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisergroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Advertisergroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10073,29 +10820,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Advertisergroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertisergroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Advertisergroups$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Advertisergroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10194,26 +10956,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Advertisergroups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Advertisergroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Advertisergroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10305,26 +11080,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Advertisergroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisergroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Advertisergroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10349,6 +11137,128 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Advertisergroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertisergroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertisergroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdvertiserGroup; + } + export interface Params$Resource$Advertisergroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only advertiser groups with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "advertiser*2015" will return objects with names like + * "advertiser group June 2015", "advertiser group April 2015", or simply + * "advertiser group 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "advertisergroup" will match objects with name "my + * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Advertisergroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdvertiserGroup; + } + export interface Params$Resource$Advertisergroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdvertiserGroup; + } + + export class Resource$Advertisers { root: Dfareporting; constructor(root: Dfareporting) { @@ -10425,23 +11335,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Advertisers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Advertisers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Advertisers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Advertisers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Advertisers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10531,26 +11452,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisers$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Advertisers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Advertisers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10661,28 +11595,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Advertisers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertisers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertisers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Advertisers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Advertisers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10778,26 +11722,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Advertisers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Advertisers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Advertisers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10888,26 +11844,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Advertisers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Advertisers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Advertisers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10931,24 +11900,156 @@ export namespace dfareporting_v2_8 { } } - export class Resource$Browsers { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Advertisers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Advertiser ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertisers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.browsers.list - * @desc Retrieves a list of browsers. - * @example - * * // BEFORE RUNNING: - * // --------------- + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Advertiser; + } + export interface Params$Resource$Advertisers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only advertisers with these advertiser group IDs. + */ + advertiserGroupIds?: string; + /** + * Select only advertisers with these floodlight configuration IDs. + */ + floodlightConfigurationIds?: string; + /** + * Select only advertisers with these IDs. + */ + ids?: string; + /** + * Select only advertisers which do not belong to any advertiser group. + */ + includeAdvertisersWithoutGroupsOnly?: boolean; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only advertisers which use another advertiser's floodlight + * configuration. + */ + onlyParent?: boolean; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "advertiser*2015" will return objects with names like + * "advertiser June 2015", "advertiser April 2015", or simply "advertiser + * 2015". Most of the searches also add wildcards implicitly at the start + * and the end of the search string. For example, a search string of + * "advertiser" will match objects with name "my advertiser", "advertiser + * 2015", or simply "advertiser". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only advertisers with the specified status. + */ + status?: string; + /** + * Select only advertisers with these subaccount IDs. + */ + subaccountId?: string; + } + export interface Params$Resource$Advertisers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Advertiser; + } + export interface Params$Resource$Advertisers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Advertiser; + } + + + export class Resource$Browsers { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.browsers.list + * @desc Retrieves a list of browsers. + * @example + * * // BEFORE RUNNING: + * // --------------- * // 1. If not already done, enable the DCM/DFA Reporting And Trafficking * API * // and check the quota for your project at @@ -11003,28 +12104,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Browsers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Browsers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Browsers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Browsers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Browsers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Browsers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11048,6 +12159,19 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Browsers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Campaigncreativeassociations { root: Dfareporting; constructor(root: Dfareporting) { @@ -11129,29 +12253,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert( + params?: Params$Resource$Campaigncreativeassociations$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigncreativeassociations$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigncreativeassociations$Insert, + callback: BodyResponseCallback): + void; + insert(callback: BodyResponseCallback): + void; + insert( + paramsOrCallback?: Params$Resource$Campaigncreativeassociations$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Campaigncreativeassociations$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigncreativeassociations$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11261,30 +12400,45 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Campaigncreativeassociations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigncreativeassociations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$CampaignCreativeAssociationsListResponse>): void; + list( + params: Params$Resource$Campaigncreativeassociations$List, + callback: BodyResponseCallback< Schema$CampaignCreativeAssociationsListResponse>): void; + list(callback: BodyResponseCallback< + Schema$CampaignCreativeAssociationsListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Campaigncreativeassociations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$CampaignCreativeAssociationsListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Campaigncreativeassociations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigncreativeassociations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11311,6 +12465,54 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Campaigncreativeassociations$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID in this association. + */ + campaignId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CampaignCreativeAssociation; + } + export interface Params$Resource$Campaigncreativeassociations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID in this association. + */ + campaignId?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Campaigns { root: Dfareporting; constructor(root: Dfareporting) { @@ -11387,23 +12589,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Campaigns$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Campaigns$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Campaigns$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Campaigns$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11502,26 +12714,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Campaigns$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Campaigns$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Campaigns$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Campaigns$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11633,28 +12855,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Campaigns$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigns$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Campaigns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11749,25 +12981,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Campaigns$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Campaigns$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Campaigns$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Campaigns$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11858,26 +13101,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Campaigns$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Campaigns$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Campaigns$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Campaigns$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11901,6 +13154,152 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Campaigns$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Campaigns$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Default landing page name for this new campaign. Must be less than 256 + * characters long. + */ + defaultLandingPageName?: string; + /** + * Default landing page URL for this new campaign. + */ + defaultLandingPageUrl?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Campaign; + } + export interface Params$Resource$Campaigns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only campaigns whose advertisers belong to these advertiser + * groups. + */ + advertiserGroupIds?: string; + /** + * Select only campaigns that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived campaigns. Don't set this field to select both + * archived and non-archived campaigns. + */ + archived?: boolean; + /** + * Select only campaigns that have at least one optimization activity. + */ + atLeastOneOptimizationActivity?: boolean; + /** + * Exclude campaigns with these IDs. + */ + excludedIds?: string; + /** + * Select only campaigns with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only campaigns that have overridden this event tag ID. + */ + overriddenEventTagId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for campaigns by name or ID. Wildcards (*) are allowed. + * For example, "campaign*2015" will return campaigns with names like + * "campaign June 2015", "campaign April 2015", or simply "campaign 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "campaign" will + * match campaigns with name "my campaign", "campaign 2015", or simply + * "campaign". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only campaigns that belong to this subaccount. + */ + subaccountId?: string; + } + export interface Params$Resource$Campaigns$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Campaign; + } + export interface Params$Resource$Campaigns$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Campaign; + } + + export class Resource$Changelogs { root: Dfareporting; constructor(root: Dfareporting) { @@ -11977,23 +13376,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Changelogs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Changelogs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Changelogs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Changelogs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changelogs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changelogs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12102,28 +13512,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changelogs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Changelogs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Changelogs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Changelogs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changelogs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changelogs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12147,22 +13567,101 @@ export namespace dfareporting_v2_8 { } } - export class Resource$Cities { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Changelogs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.cities.list - * @desc Retrieves a list of cities, possibly filtered. - * @example + * Change log ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Changelogs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only change logs with the specified action. + */ + action?: string; + /** + * Select only change logs with these IDs. + */ + ids?: string; + /** + * Select only change logs whose change time is before the specified + * maxChangeTime.The time should be formatted as an RFC3339 date/time + * string. For example, for 10:54 PM on July 18th, 2015, in the America/New + * York time zone, the format is "2015-07-18T22:54:00-04:00". In other + * words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + */ + maxChangeTime?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only change logs whose change time is before the specified + * minChangeTime.The time should be formatted as an RFC3339 date/time + * string. For example, for 10:54 PM on July 18th, 2015, in the America/New + * York time zone, the format is "2015-07-18T22:54:00-04:00". In other + * words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + */ + minChangeTime?: string; + /** + * Select only change logs with these object IDs. + */ + objectIds?: string; + /** + * Select only change logs with the specified object type. + */ + objectType?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only change logs whose object ID, user name, old or new values + * match the search string. + */ + searchString?: string; + /** + * Select only change logs with these user profile IDs. + */ + userProfileIds?: string; + } + + + export class Resource$Cities { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.cities.list + * @desc Retrieves a list of cities, possibly filtered. + * @example * * // BEFORE RUNNING: * // --------------- * // 1. If not already done, enable the DCM/DFA Reporting And Trafficking @@ -12223,26 +13722,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Cities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Cities$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Cities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Cities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Cities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12266,6 +13776,35 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Cities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only cities from these countries. + */ + countryDartIds?: string; + /** + * Select only cities with these DART IDs. + */ + dartIds?: string; + /** + * Select only cities with names starting with this prefix. + */ + namePrefix?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only cities from these regions. + */ + regionDartIds?: string; + } + + export class Resource$Connectiontypes { root: Dfareporting; constructor(root: Dfareporting) { @@ -12342,24 +13881,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Connectiontypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Connectiontypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Connectiontypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Connectiontypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Connectiontypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Connectiontypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12444,29 +13994,43 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Connectiontypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Connectiontypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Connectiontypes$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Connectiontypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Connectiontypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Connectiontypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12492,6 +14056,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Connectiontypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Connection type ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Connectiontypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Contentcategories { root: Dfareporting; constructor(root: Dfareporting) { @@ -12565,22 +14157,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Contentcategories$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contentcategories$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Contentcategories$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12669,24 +14276,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Contentcategories$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Contentcategories$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Contentcategories$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Contentcategories$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12774,26 +14392,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Contentcategories$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Contentcategories$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contentcategories$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12899,29 +14530,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Contentcategories$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contentcategories$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Contentcategories$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Contentcategories$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13020,26 +14666,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Contentcategories$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contentcategories$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Contentcategories$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13129,26 +14788,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Contentcategories$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Contentcategories$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contentcategories$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13173,6 +14845,128 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Contentcategories$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Content category ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Contentcategories$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Content category ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Contentcategories$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ContentCategory; + } + export interface Params$Resource$Contentcategories$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only content categories with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "contentcategory*2015" will return objects with names like + * "contentcategory June 2015", "contentcategory April 2015", or simply + * "contentcategory 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "contentcategory" will match objects with name "my + * contentcategory", "contentcategory 2015", or simply "contentcategory". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Contentcategories$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Content category ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ContentCategory; + } + export interface Params$Resource$Contentcategories$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ContentCategory; + } + + export class Resource$Conversions { root: Dfareporting; constructor(root: Dfareporting) { @@ -13250,29 +15044,45 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchinsert(params?: any, options?: MethodOptions): + batchinsert( + params?: Params$Resource$Conversions$Batchinsert, + options?: MethodOptions): AxiosPromise; batchinsert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Conversions$Batchinsert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchinsert( + params: Params$Resource$Conversions$Batchinsert, + callback: BodyResponseCallback): + void; + batchinsert( + callback: BodyResponseCallback): void; batchinsert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Conversions$Batchinsert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Conversions$Batchinsert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversions$Batchinsert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13364,29 +15174,45 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchupdate(params?: any, options?: MethodOptions): + batchupdate( + params?: Params$Resource$Conversions$Batchupdate, + options?: MethodOptions): AxiosPromise; batchupdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Conversions$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchupdate( + params: Params$Resource$Conversions$Batchupdate, + callback: BodyResponseCallback): + void; + batchupdate( + callback: BodyResponseCallback): void; batchupdate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Conversions$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Conversions$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversions$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13413,6 +15239,38 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Conversions$Batchinsert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ConversionsBatchInsertRequest; + } + export interface Params$Resource$Conversions$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ConversionsBatchUpdateRequest; + } + + export class Resource$Countries { root: Dfareporting; constructor(root: Dfareporting) { @@ -13489,23 +15347,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Countries$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Countries$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Countries$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Countries$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Countries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Countries$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13590,28 +15458,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Countries$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Countries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Countries$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Countries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Countries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Countries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13635,10 +15513,38 @@ export namespace dfareporting_v2_8 { } } - export class Resource$Creativeassets { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; + export interface Params$Resource$Countries$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Country DART ID. + */ + dartId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Countries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + + export class Resource$Creativeassets { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; this.getRoot.bind(this); } @@ -13726,28 +15632,40 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Creativeassets$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativeassets$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creativeassets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Creativeassets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativeassets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativeassets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13776,6 +15694,41 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Creativeassets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser ID of this creative. This is a required field. + */ + advertiserId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeAssetMetadata; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Creativefields { root: Dfareporting; constructor(root: Dfareporting) { @@ -13849,22 +15802,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Creativefields$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Creativefields$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefields$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13953,24 +15921,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Creativefields$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Creativefields$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creativefields$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creativefields$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14060,26 +16039,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativefields$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefields$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Creativefields$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14186,29 +16178,42 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creativefields$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativefields$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativefields$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Creativefields$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14306,26 +16311,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Creativefields$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefields$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Creativefields$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14417,26 +16435,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Creativefields$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Creativefields$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefields$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14461,6 +16492,132 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Creativefields$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative Field ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefields$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative Field ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefields$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeField; + } + export interface Params$Resource$Creativefields$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only creative fields that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only creative fields with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for creative fields by name or ID. Wildcards (*) are + * allowed. For example, "creativefield*2015" will return creative fields + * with names like "creativefield June 2015", "creativefield April 2015", or + * simply "creativefield 2015". Most of the searches also add wild-cards + * implicitly at the start and the end of the search string. For example, a + * search string of "creativefield" will match creative fields with the name + * "my creativefield", "creativefield 2015", or simply "creativefield". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Creativefields$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative Field ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeField; + } + export interface Params$Resource$Creativefields$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeField; + } + + export class Resource$Creativefieldvalues { root: Dfareporting; constructor(root: Dfareporting) { @@ -14538,22 +16695,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Creativefieldvalues$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Creativefieldvalues$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefieldvalues$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Creativefieldvalues$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14646,24 +16818,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Creativefieldvalues$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Creativefieldvalues$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creativefieldvalues$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creativefieldvalues$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefieldvalues$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14755,26 +16938,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativefieldvalues$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefieldvalues$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Creativefieldvalues$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Creativefieldvalues$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14884,30 +17080,46 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Creativefieldvalues$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativefieldvalues$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Creativefieldvalues$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Creativefieldvalues$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefieldvalues$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15008,26 +17220,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Creativefieldvalues$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefieldvalues$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Creativefieldvalues$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefieldvalues$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15121,26 +17346,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Creativefieldvalues$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Creativefieldvalues$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefieldvalues$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Creativefieldvalues$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15165,58 +17403,199 @@ export namespace dfareporting_v2_8 { } } - export class Resource$Creativegroups { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Creativefieldvalues$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Creative Field Value ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefieldvalues$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Creative Field Value ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefieldvalues$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.creativeGroups.get - * @desc Gets one creative group by ID. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the DCM/DFA Reporting And Trafficking - * API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/dfareporting - * // 2. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var dfareporting = google.dfareporting('v2.8'); - * - * authorize(function(authClient) { - * var request = { - * // User profile ID associated with this request. - * profileId: '0', // TODO: Update placeholder value. - * - * // Creative group ID. - * id: '0', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * dfareporting.creativeGroups.get(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * // TODO: Change placeholder below to generate authentication + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeFieldValue; + } + export interface Params$Resource$Creativefieldvalues$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Select only creative field values with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for creative field values by their values. Wildcards + * (e.g. *) are not allowed. + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Creativefieldvalues$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Creative Field Value ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeFieldValue; + } + export interface Params$Resource$Creativefieldvalues$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeFieldValue; + } + + + export class Resource$Creativegroups { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.creativeGroups.get + * @desc Gets one creative group by ID. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the DCM/DFA Reporting And Trafficking + * API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/dfareporting + * // 2. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var dfareporting = google.dfareporting('v2.8'); + * + * authorize(function(authClient) { + * var request = { + * // User profile ID associated with this request. + * profileId: '0', // TODO: Update placeholder value. + * + * // Creative group ID. + * id: '0', // TODO: Update placeholder value. + * + * auth: authClient, + * }; + * + * dfareporting.creativeGroups.get(request, function(err, response) { + * if (err) { + * console.error(err); + * return; + * } + * + * // TODO: Change code below to process the `response` object: + * console.log(JSON.stringify(response, null, 2)); + * }); + * }); + * + * function authorize(callback) { + * // TODO: Change placeholder below to generate authentication * credentials. See * // * https://developers.google.com/doubleclick-advertisers/authorizing#examples @@ -15241,24 +17620,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Creativegroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Creativegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creativegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creativegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15348,26 +17738,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativegroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativegroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativegroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Creativegroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15475,29 +17878,42 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creativegroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativegroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativegroups$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Creativegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15595,26 +18011,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativegroups$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativegroups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Creativegroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Creativegroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15706,26 +18135,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativegroups$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativegroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Creativegroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Creativegroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15750,6 +18192,121 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Creativegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativegroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeGroup; + } + export interface Params$Resource$Creativegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only creative groups that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only creative groups that belong to this subgroup. + */ + groupNumber?: number; + /** + * Select only creative groups with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for creative groups by name or ID. Wildcards (*) are + * allowed. For example, "creativegroup*2015" will return creative groups + * with names like "creativegroup June 2015", "creativegroup April 2015", or + * simply "creativegroup 2015". Most of the searches also add wild-cards + * implicitly at the start and the end of the search string. For example, a + * search string of "creativegroup" will match creative groups with the name + * "my creativegroup", "creativegroup 2015", or simply "creativegroup". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Creativegroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeGroup; + } + export interface Params$Resource$Creativegroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeGroup; + } + + export class Resource$Creatives { root: Dfareporting; constructor(root: Dfareporting) { @@ -15826,23 +18383,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Creatives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Creatives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creatives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creatives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15932,26 +18499,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Creatives$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16065,28 +18642,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creatives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creatives$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creatives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Creatives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16181,25 +18768,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Creatives$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Creatives$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16290,26 +18888,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Creatives$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Creatives$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16333,6 +18941,155 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Creatives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creatives$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + export interface Params$Resource$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active creatives. Leave blank to select active and inactive + * creatives. + */ + active?: boolean; + /** + * Select only creatives with this advertiser ID. + */ + advertiserId?: string; + /** + * Select only archived creatives. Leave blank to select archived and + * unarchived creatives. + */ + archived?: boolean; + /** + * Select only creatives with this campaign ID. + */ + campaignId?: string; + /** + * Select only in-stream video creatives with these companion IDs. + */ + companionCreativeIds?: string; + /** + * Select only creatives with these creative field IDs. + */ + creativeFieldIds?: string; + /** + * Select only creatives with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only creatives with these rendering IDs. + */ + renderingIds?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "creative*2015" will return objects with names like + * "creative June 2015", "creative April 2015", or simply "creative 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "creative" will + * match objects with name "my creative", "creative 2015", or simply + * "creative". + */ + searchString?: string; + /** + * Select only creatives with these size IDs. + */ + sizeIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only creatives corresponding to this Studio creative ID. + */ + studioCreativeId?: string; + /** + * Select only creatives with these creative types. + */ + types?: string; + } + export interface Params$Resource$Creatives$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + export interface Params$Resource$Creatives$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + + export class Resource$Dimensionvalues { root: Dfareporting; constructor(root: Dfareporting) { @@ -16425,26 +19182,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): - AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dimensionvalues$Query, + options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Dimensionvalues$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Dimensionvalues$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; + query( + paramsOrCallback?: Params$Resource$Dimensionvalues$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Dimensionvalues$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dimensionvalues$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16469,6 +19239,31 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Dimensionvalues$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$DimensionValueRequest; + } + + export class Resource$Directorysitecontacts { root: Dfareporting; constructor(root: Dfareporting) { @@ -16543,26 +19338,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Directorysitecontacts$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Directorysitecontacts$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Directorysitecontacts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Directorysitecontacts$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysitecontacts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysitecontacts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16669,31 +19474,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Directorysitecontacts$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Directorysitecontacts$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Directorysitecontacts$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Directorysitecontacts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Directorysitecontacts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysitecontacts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16720,6 +19542,70 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Directorysitecontacts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Directory site contact ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Directorysitecontacts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only directory site contacts with these directory site IDs. This + * is a required field. + */ + directorySiteIds?: string; + /** + * Select only directory site contacts with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or email. Wildcards (*) are + * allowed. For example, "directory site contact*2015" will return objects + * with names like "directory site contact June 2015", "directory site + * contact April 2015", or simply "directory site contact 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "directory site contact" + * will match objects with name "my directory site contact", "directory site + * contact 2015", or simply "directory site contact". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Directorysites { root: Dfareporting; constructor(root: Dfareporting) { @@ -16796,24 +19682,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Directorysites$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Directorysites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Directorysites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Directorysites$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16903,26 +19800,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Directorysites$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Directorysites$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Directorysites$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Directorysites$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysites$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysites$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17035,54 +19945,172 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - list( - 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 + - '/dfareporting/v2.8/userprofiles/{profileId}/directorySites') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + list(params?: Params$Resource$Directorysites$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Directorysites$List, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Directorysites$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Directorysites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysites$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/dfareporting/v2.8/userprofiles/{profileId}/directorySites') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Directorysites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Directory site ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Directorysites$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$DirectorySite; + } + export interface Params$Resource$Directorysites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInStreamVideoPlacements?: boolean; + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInterstitialPlacements?: boolean; + /** + * Select only directory sites that accept publisher paid placements. This + * field can be left blank. + */ + acceptsPublisherPaidPlacements?: boolean; + /** + * Select only active directory sites. Leave blank to retrieve both active + * and inactive directory sites. + */ + active?: boolean; + /** + * Select only directory sites with this country ID. + */ + countryId?: string; + /** + * Select only directory sites with this DFP network code. + */ + dfpNetworkCode?: string; + /** + * Select only directory sites with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only directory sites with this parent ID. + */ + parentId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or URL. Wildcards (*) are + * allowed. For example, "directory site*2015" will return objects with + * names like "directory site June 2015", "directory site April 2015", or + * simply "directory site 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "directory site" will match objects with name "my + * directory site", "directory site 2015" or simply, "directory site". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; } + export class Resource$Dynamictargetingkeys { root: Dfareporting; constructor(root: Dfareporting) { @@ -17166,22 +20194,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dynamictargetingkeys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Dynamictargetingkeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Dynamictargetingkeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Dynamictargetingkeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Dynamictargetingkeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dynamictargetingkeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17273,28 +20316,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dynamictargetingkeys$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Dynamictargetingkeys$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Dynamictargetingkeys$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Dynamictargetingkeys$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Dynamictargetingkeys$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dynamictargetingkeys$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17381,31 +20435,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Dynamictargetingkeys$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Dynamictargetingkeys$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Dynamictargetingkeys$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Dynamictargetingkeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Dynamictargetingkeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dynamictargetingkeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17432,6 +20503,76 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Dynamictargetingkeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of this dynamic targeting key. This is a required field. Must be + * less than 256 characters long and cannot contain commas. All characters + * are converted to lowercase. + */ + name?: string; + /** + * ID of the object of this dynamic targeting key. This is a required field. + */ + objectId?: string; + /** + * Type of the object of this dynamic targeting key. This is a required + * field. + */ + objectType?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Dynamictargetingkeys$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$DynamicTargetingKey; + } + export interface Params$Resource$Dynamictargetingkeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only dynamic targeting keys whose object has this advertiser ID. + */ + advertiserId?: string; + /** + * Select only dynamic targeting keys exactly matching these names. + */ + names?: string; + /** + * Select only dynamic targeting keys with this object ID. + */ + objectId?: string; + /** + * Select only dynamic targeting keys with this object type. + */ + objectType?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Eventtags { root: Dfareporting; constructor(root: Dfareporting) { @@ -17505,22 +20646,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Eventtags$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Eventtags$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Eventtags$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17609,23 +20763,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Eventtags$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Eventtags$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Eventtags$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Eventtags$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17715,26 +20879,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Eventtags$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Eventtags$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Eventtags$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17828,28 +21002,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Eventtags$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Eventtags$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Eventtags$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Eventtags$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17945,25 +21129,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Eventtags$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Eventtags$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Eventtags$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18054,26 +21249,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Eventtags$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Eventtags$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Eventtags$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18097,6 +21302,158 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Eventtags$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event tag ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Eventtags$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event tag ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Eventtags$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$EventTag; + } + export interface Params$Resource$Eventtags$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only event tags that belong to this ad. + */ + adId?: string; + /** + * Select only event tags that belong to this advertiser. + */ + advertiserId?: string; + /** + * Select only event tags that belong to this campaign. + */ + campaignId?: string; + /** + * Examine only the specified campaign or advertiser's event tags for + * matching selector criteria. When set to false, the parent advertiser and + * parent campaign of the specified ad or campaign is examined as well. In + * addition, when set to false, the status field is examined as well, along + * with the enabledByDefault field. This parameter can not be set to true + * when adId is specified as ads do not define their own even tags. + */ + definitionsOnly?: boolean; + /** + * Select only enabled event tags. What is considered enabled or disabled + * depends on the definitionsOnly parameter. When definitionsOnly is set to + * true, only the specified advertiser or campaign's event tags' + * enabledByDefault field is examined. When definitionsOnly is set to false, + * the specified ad or specified campaign's parent advertiser's or parent + * campaign's event tags' enabledByDefault and status fields are examined as + * well. + */ + enabled?: boolean; + /** + * Select only event tags with the specified event tag types. Event tag + * types can be used to specify whether to use a third-party pixel, a + * third-party JavaScript URL, or a third-party click-through URL for either + * impression or click tracking. + */ + eventTagTypes?: string; + /** + * Select only event tags with these IDs. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "eventtag*2015" will return objects with names like + * "eventtag June 2015", "eventtag April 2015", or simply "eventtag 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "eventtag" will + * match objects with name "my eventtag", "eventtag 2015", or simply + * "eventtag". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Eventtags$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event tag ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$EventTag; + } + export interface Params$Resource$Eventtags$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$EventTag; + } + + export class Resource$Files { root: Dfareporting; constructor(root: Dfareporting) { @@ -18178,21 +21535,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Files$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Files$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Files$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Files$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18294,25 +21663,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Files$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Files$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18336,6 +21716,54 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Files$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the report file. + */ + fileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Files$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The scope that defines which results are returned. + */ + scope?: string; + /** + * The field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Floodlightactivities { root: Dfareporting; constructor(root: Dfareporting) { @@ -18409,22 +21837,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Floodlightactivities$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Floodlightactivities$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Floodlightactivities$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18508,30 +21951,45 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generatetag(params?: any, options?: MethodOptions): + generatetag( + params?: Params$Resource$Floodlightactivities$Generatetag, + options?: MethodOptions): AxiosPromise; generatetag( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivities$Generatetag, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$FloodlightActivitiesGenerateTagResponse>): void; + generatetag( + params: Params$Resource$Floodlightactivities$Generatetag, + callback: BodyResponseCallback< Schema$FloodlightActivitiesGenerateTagResponse>): void; + generatetag(callback: BodyResponseCallback< + Schema$FloodlightActivitiesGenerateTagResponse>): void; generatetag( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivities$Generatetag| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$FloodlightActivitiesGenerateTagResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Generatetag; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Generatetag; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18620,24 +22078,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Floodlightactivities$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Floodlightactivities$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Floodlightactivities$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Floodlightactivities$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Floodlightactivities$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18725,26 +22194,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Floodlightactivities$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Floodlightactivities$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Floodlightactivities$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18857,31 +22339,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Floodlightactivities$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivities$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Floodlightactivities$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Floodlightactivities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18978,26 +22477,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Floodlightactivities$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Floodlightactivities$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Floodlightactivities$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19087,26 +22599,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Floodlightactivities$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Floodlightactivities$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Floodlightactivities$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19131,6 +22656,182 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Floodlightactivities$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivities$Generatetag { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID for which we want to generate a tag. + */ + floodlightActivityId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivities$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivities$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivity; + } + export interface Params$Resource$Floodlightactivities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only floodlight activities for the specified advertiser ID. Must + * specify either ids, advertiserId, or floodlightConfigurationId for a + * non-empty result. + */ + advertiserId?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group IDs. + */ + floodlightActivityGroupIds?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group name. + */ + floodlightActivityGroupName?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group tag string. + */ + floodlightActivityGroupTagString?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group type. + */ + floodlightActivityGroupType?: string; + /** + * Select only floodlight activities for the specified floodlight + * configuration ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. + */ + floodlightConfigurationId?: string; + /** + * Select only floodlight activities with the specified IDs. Must specify + * either ids, advertiserId, or floodlightConfigurationId for a non-empty + * result. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "floodlightactivity*2015" will return objects with names + * like "floodlightactivity June 2015", "floodlightactivity April 2015", or + * simply "floodlightactivity 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "floodlightactivity" will match objects with name "my + * floodlightactivity activity", "floodlightactivity 2015", or simply + * "floodlightactivity". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only floodlight activities with the specified tag string. + */ + tagString?: string; + } + export interface Params$Resource$Floodlightactivities$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivity; + } + export interface Params$Resource$Floodlightactivities$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivity; + } + + export class Resource$Floodlightactivitygroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -19205,26 +22906,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Floodlightactivitygroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Floodlightactivitygroups$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Floodlightactivitygroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19312,28 +23023,41 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightactivitygroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Floodlightactivitygroups$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Floodlightactivitygroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): + void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19443,31 +23167,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Floodlightactivitygroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivitygroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivitygroups$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19564,28 +23305,40 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightactivitygroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Floodlightactivitygroups$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Floodlightactivitygroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19675,28 +23428,41 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightactivitygroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Floodlightactivitygroups$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Floodlightactivitygroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19721,6 +23487,133 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Floodlightactivitygroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity Group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivitygroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivityGroup; + } + export interface Params$Resource$Floodlightactivitygroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only floodlight activity groups with the specified advertiser ID. + * Must specify either advertiserId or floodlightConfigurationId for a + * non-empty result. + */ + advertiserId?: string; + /** + * Select only floodlight activity groups with the specified floodlight + * configuration ID. Must specify either advertiserId, or + * floodlightConfigurationId for a non-empty result. + */ + floodlightConfigurationId?: string; + /** + * Select only floodlight activity groups with the specified IDs. Must + * specify either advertiserId or floodlightConfigurationId for a non-empty + * result. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "floodlightactivitygroup*2015" will return objects with + * names like "floodlightactivitygroup June 2015", "floodlightactivitygroup + * April 2015", or simply "floodlightactivitygroup 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "floodlightactivitygroup" + * will match objects with name "my floodlightactivitygroup activity", + * "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only floodlight activity groups with the specified floodlight + * activity group type. + */ + type?: string; + } + export interface Params$Resource$Floodlightactivitygroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity Group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivityGroup; + } + export interface Params$Resource$Floodlightactivitygroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivityGroup; + } + + export class Resource$Floodlightconfigurations { root: Dfareporting; constructor(root: Dfareporting) { @@ -19795,26 +23688,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Floodlightconfigurations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Floodlightconfigurations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Floodlightconfigurations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Floodlightconfigurations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19898,31 +23801,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Floodlightconfigurations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightconfigurations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Floodlightconfigurations$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightconfigurations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20019,28 +23939,40 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightconfigurations$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Floodlightconfigurations$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightconfigurations$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Floodlightconfigurations$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20130,28 +24062,41 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightconfigurations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Floodlightconfigurations$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightconfigurations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; + update( + paramsOrCallback?: Params$Resource$Floodlightconfigurations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20176,6 +24121,73 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Floodlightconfigurations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight configuration ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightconfigurations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Set of IDs of floodlight configurations to retrieve. Required field; + * otherwise an empty list will be returned. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightconfigurations$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight configuration ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightConfiguration; + } + export interface Params$Resource$Floodlightconfigurations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightConfiguration; + } + + export class Resource$Inventoryitems { root: Dfareporting; constructor(root: Dfareporting) { @@ -20256,24 +24268,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Inventoryitems$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Inventoryitems$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Inventoryitems$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Inventoryitems$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inventoryitems$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inventoryitems$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20386,29 +24409,42 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Inventoryitems$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inventoryitems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inventoryitems$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Inventoryitems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inventoryitems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inventoryitems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20434,6 +24470,78 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Inventoryitems$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Inventory item ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + } + export interface Params$Resource$Inventoryitems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only inventory items with these IDs. + */ + ids?: string; + /** + * Select only inventory items that are in plan. + */ + inPlan?: boolean; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only inventory items that belong to specified orders. + */ + orderId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + /** + * Select only inventory items that are associated with these sites. + */ + siteId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only inventory items with this type. + */ + type?: string; + } + + export class Resource$Landingpages { root: Dfareporting; constructor(root: Dfareporting) { @@ -20511,22 +24619,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Landingpages$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Landingpages$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Landingpages$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Landingpages$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Landingpages$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Landingpages$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20619,24 +24742,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Landingpages$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Landingpages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Landingpages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Landingpages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Landingpages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Landingpages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20730,26 +24863,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Landingpages$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Landingpages$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Landingpages$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Landingpages$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Landingpages$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Landingpages$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20838,28 +24984,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Landingpages$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Landingpages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Landingpages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Landingpages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Landingpages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Landingpages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20960,26 +25117,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Landingpages$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Landingpages$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Landingpages$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Landingpages$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Landingpages$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Landingpages$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21075,26 +25244,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Landingpages$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Landingpages$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Landingpages$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Landingpages$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Landingpages$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Landingpages$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21119,6 +25301,122 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Landingpages$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page campaign ID. + */ + campaignId?: string; + /** + * Landing page ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Landingpages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page campaign ID. + */ + campaignId?: string; + /** + * Landing page ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Landingpages$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page campaign ID. + */ + campaignId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$LandingPage; + } + export interface Params$Resource$Landingpages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page campaign ID. + */ + campaignId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Landingpages$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page campaign ID. + */ + campaignId?: string; + /** + * Landing page ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$LandingPage; + } + export interface Params$Resource$Landingpages$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page campaign ID. + */ + campaignId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$LandingPage; + } + + export class Resource$Languages { root: Dfareporting; constructor(root: Dfareporting) { @@ -21191,28 +25489,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Languages$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Languages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Languages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Languages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Languages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Languages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21236,6 +25544,19 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Languages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Metros { root: Dfareporting; constructor(root: Dfareporting) { @@ -21308,26 +25629,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Metros$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Metros$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Metros$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Metros$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Metros$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metros$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21351,6 +25683,19 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Metros$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Mobilecarriers { root: Dfareporting; constructor(root: Dfareporting) { @@ -21427,24 +25772,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Mobilecarriers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Mobilecarriers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Mobilecarriers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Mobilecarriers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobilecarriers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobilecarriers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21529,29 +25885,42 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Mobilecarriers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Mobilecarriers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Mobilecarriers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Mobilecarriers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobilecarriers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobilecarriers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21577,6 +25946,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Mobilecarriers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Mobile carrier ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Mobilecarriers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Operatingsystems { root: Dfareporting; constructor(root: Dfareporting) { @@ -21653,24 +26050,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Operatingsystems$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Operatingsystems$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operatingsystems$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operatingsystems$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operatingsystems$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystems$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21755,29 +26163,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Operatingsystems$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operatingsystems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Operatingsystems$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operatingsystems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operatingsystems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21804,6 +26227,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Operatingsystems$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Operating system DART ID. + */ + dartId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Operatingsystems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Operatingsystemversions { root: Dfareporting; constructor(root: Dfareporting) { @@ -21878,26 +26329,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Operatingsystemversions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Operatingsystemversions$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operatingsystemversions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operatingsystemversions$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Operatingsystemversions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystemversions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -21980,31 +26441,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Operatingsystemversions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operatingsystemversions$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Operatingsystemversions$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operatingsystemversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Operatingsystemversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystemversions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22031,6 +26509,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Operatingsystemversions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Operating system version ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Operatingsystemversions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Orderdocuments { root: Dfareporting; constructor(root: Dfareporting) { @@ -22111,24 +26617,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Orderdocuments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Orderdocuments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orderdocuments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orderdocuments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orderdocuments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orderdocuments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22241,29 +26758,42 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Orderdocuments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orderdocuments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orderdocuments$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Orderdocuments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orderdocuments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orderdocuments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22289,6 +26819,84 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Orderdocuments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Order document ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + } + export interface Params$Resource$Orderdocuments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only order documents that have been approved by at least one user. + */ + approved?: boolean; + /** + * Select only order documents with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only order documents for specified orders. + */ + orderId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + /** + * Allows searching for order documents by name or ID. Wildcards (*) are + * allowed. For example, "orderdocument*2015" will return order documents + * with names like "orderdocument June 2015", "orderdocument April 2015", or + * simply "orderdocument 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "orderdocument" will match order documents with name "my + * orderdocument", "orderdocument 2015", or simply "orderdocument". + */ + searchString?: string; + /** + * Select only order documents that are associated with these sites. + */ + siteId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Orders { root: Dfareporting; constructor(root: Dfareporting) { @@ -22369,23 +26977,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Orders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Orders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22495,26 +27113,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Orders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Orders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Orders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22539,6 +27168,75 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Orders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Order ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for orders. + */ + projectId?: string; + } + export interface Params$Resource$Orders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only orders with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for orders. + */ + projectId?: string; + /** + * Allows searching for orders by name or ID. Wildcards (*) are allowed. For + * example, "order*2015" will return orders with names like "order June + * 2015", "order April 2015", or simply "order 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "order" will match orders with + * name "my order", "order 2015", or simply "order". + */ + searchString?: string; + /** + * Select only orders that are associated with these site IDs. + */ + siteId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Placementgroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -22615,24 +27313,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Placementgroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Placementgroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Placementgroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Placementgroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22722,26 +27431,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementgroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Placementgroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Placementgroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementgroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22860,29 +27582,43 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Placementgroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placementgroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Placementgroups$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Placementgroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -22980,26 +27716,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementgroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Placementgroups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementgroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Placementgroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23091,26 +27840,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementgroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Placementgroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Placementgroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementgroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23135,6 +27897,180 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Placementgroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placementgroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementGroup; + } + export interface Params$Resource$Placementgroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only placement groups that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived placements. Don't set this field to select both + * archived and non-archived placements. + */ + archived?: boolean; + /** + * Select only placement groups that belong to these campaigns. + */ + campaignIds?: string; + /** + * Select only placement groups that are associated with these content + * categories. + */ + contentCategoryIds?: string; + /** + * Select only placement groups that are associated with these directory + * sites. + */ + directorySiteIds?: string; + /** + * Select only placement groups with these IDs. + */ + ids?: string; + /** + * Select only placements or placement groups whose end date is on or before + * the specified maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + maxEndDate?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only placements or placement groups whose start date is on or + * before the specified maxStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + maxStartDate?: string; + /** + * Select only placements or placement groups whose end date is on or after + * the specified minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + minEndDate?: string; + /** + * Select only placements or placement groups whose start date is on or + * after the specified minStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + minStartDate?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only placement groups belonging with this group type. A package is + * a simple group of placements that acts as a single pricing point for a + * group of tags. A roadblock is a group of placements that not only acts as + * a single pricing point but also assumes that all the tags in it will be + * served at the same time. A roadblock requires one of its assigned + * placements to be marked as primary for reporting. + */ + placementGroupType?: string; + /** + * Select only placement groups that are associated with these placement + * strategies. + */ + placementStrategyIds?: string; + /** + * Select only placement groups with these pricing types. + */ + pricingTypes?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for placement groups by name or ID. Wildcards (*) are + * allowed. For example, "placement*2015" will return placement groups with + * names like "placement group June 2015", "placement group May 2015", or + * simply "placements 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "placementgroup" will match placement groups with name + * "my placementgroup", "placementgroup 2015", or simply "placementgroup". + */ + searchString?: string; + /** + * Select only placement groups that are associated with these sites. + */ + siteIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Placementgroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementGroup; + } + export interface Params$Resource$Placementgroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementGroup; + } + + export class Resource$Placements { root: Dfareporting; constructor(root: Dfareporting) { @@ -23210,29 +28146,45 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generatetags(params?: any, options?: MethodOptions): + generatetags( + params?: Params$Resource$Placements$Generatetags, + options?: MethodOptions): AxiosPromise; generatetags( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placements$Generatetags, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generatetags( + params: Params$Resource$Placements$Generatetags, + callback: BodyResponseCallback): void; generatetags( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + generatetags( + paramsOrCallback?: Params$Resource$Placements$Generatetags| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placements$Generatetags; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Generatetags; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23323,23 +28275,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Placements$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Placements$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Placements$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Placements$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Placements$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23429,26 +28392,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Placements$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Placements$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Placements$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placements$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placements$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23569,28 +28544,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Placements$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placements$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placements$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Placements$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Placements$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23686,26 +28671,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Placements$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Placements$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placements$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Placements$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Placements$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23796,26 +28792,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Placements$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Placements$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Placements$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placements$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placements$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -23839,6 +28847,213 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Placements$Generatetags { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Generate placements belonging to this campaign. This is a required field. + */ + campaignId?: string; + /** + * Generate tags for these placements. + */ + placementIds?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Tag formats to generate for these placements. Note: + * PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. + */ + tagFormats?: string; + } + export interface Params$Resource$Placements$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placements$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Placement; + } + export interface Params$Resource$Placements$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only placements that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived placements. Don't set this field to select both + * archived and non-archived placements. + */ + archived?: boolean; + /** + * Select only placements that belong to these campaigns. + */ + campaignIds?: string; + /** + * Select only placements that are associated with these compatibilities. + * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or + * on mobile devices for regular or interstitial ads respectively. APP and + * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers + * to rendering in in-stream video ads developed with the VAST standard. + */ + compatibilities?: string; + /** + * Select only placements that are associated with these content categories. + */ + contentCategoryIds?: string; + /** + * Select only placements that are associated with these directory sites. + */ + directorySiteIds?: string; + /** + * Select only placements that belong to these placement groups. + */ + groupIds?: string; + /** + * Select only placements with these IDs. + */ + ids?: string; + /** + * Select only placements or placement groups whose end date is on or before + * the specified maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + maxEndDate?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only placements or placement groups whose start date is on or + * before the specified maxStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + maxStartDate?: string; + /** + * Select only placements or placement groups whose end date is on or after + * the specified minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + minEndDate?: string; + /** + * Select only placements or placement groups whose start date is on or + * after the specified minStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + minStartDate?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only placements with this payment source. + */ + paymentSource?: string; + /** + * Select only placements that are associated with these placement + * strategies. + */ + placementStrategyIds?: string; + /** + * Select only placements with these pricing types. + */ + pricingTypes?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for placements by name or ID. Wildcards (*) are allowed. + * For example, "placement*2015" will return placements with names like + * "placement June 2015", "placement May 2015", or simply "placements 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "placement" + * will match placements with name "my placement", "placement 2015", or + * simply "placement". + */ + searchString?: string; + /** + * Select only placements that are associated with these sites. + */ + siteIds?: string; + /** + * Select only placements that are associated with these sizes. + */ + sizeIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Placements$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Placement; + } + export interface Params$Resource$Placements$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Placement; + } + + export class Resource$Placementstrategies { root: Dfareporting; constructor(root: Dfareporting) { @@ -23912,22 +29127,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Placementstrategies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementstrategies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Placementstrategies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Placementstrategies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24016,24 +29246,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Placementstrategies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Placementstrategies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Placementstrategies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Placementstrategies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementstrategies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24121,26 +29362,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Placementstrategies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Placementstrategies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementstrategies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Placementstrategies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24246,30 +29500,46 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Placementstrategies$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placementstrategies$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Placementstrategies$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Placementstrategies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementstrategies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24366,26 +29636,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Placementstrategies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Placementstrategies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementstrategies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementstrategies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24475,26 +29758,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Placementstrategies$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementstrategies$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Placementstrategies$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Placementstrategies$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24519,6 +29815,129 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Placementstrategies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement strategy ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placementstrategies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement strategy ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placementstrategies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementStrategy; + } + export interface Params$Resource$Placementstrategies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only placement strategies with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "placementstrategy*2015" will return objects with names like + * "placementstrategy June 2015", "placementstrategy April 2015", or simply + * "placementstrategy 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "placementstrategy" will match objects with name "my + * placementstrategy", "placementstrategy 2015", or simply + * "placementstrategy". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Placementstrategies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement strategy ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementStrategy; + } + export interface Params$Resource$Placementstrategies$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementStrategy; + } + + export class Resource$Platformtypes { root: Dfareporting; constructor(root: Dfareporting) { @@ -24595,24 +30014,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Platformtypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Platformtypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Platformtypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Platformtypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Platformtypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Platformtypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24697,29 +30127,40 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Platformtypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Platformtypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Platformtypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Platformtypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Platformtypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Platformtypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24744,6 +30185,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Platformtypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Platform type ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Platformtypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Postalcodes { root: Dfareporting; constructor(root: Dfareporting) { @@ -24820,23 +30289,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Postalcodes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Postalcodes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Postalcodes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Postalcodes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Postalcodes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Postalcodes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24921,28 +30401,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Postalcodes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Postalcodes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Postalcodes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Postalcodes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Postalcodes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Postalcodes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -24966,6 +30456,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Postalcodes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Postal code ID. + */ + code?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Postalcodes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Projects { root: Dfareporting; constructor(root: Dfareporting) { @@ -25042,23 +30560,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25163,28 +30691,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25208,6 +30746,67 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Projects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only projects with these advertiser IDs. + */ + advertiserIds?: string; + /** + * Select only projects with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for projects by name or ID. Wildcards (*) are allowed. + * For example, "project*2015" will return projects with names like "project + * June 2015", "project April 2015", or simply "project 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "project" will match + * projects with name "my project", "project 2015", or simply "project". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Regions { root: Dfareporting; constructor(root: Dfareporting) { @@ -25280,28 +30879,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Regions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Regions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25325,6 +30933,19 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Regions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Remarketinglists { root: Dfareporting; constructor(root: Dfareporting) { @@ -25401,24 +31022,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Remarketinglists$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Remarketinglists$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Remarketinglists$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Remarketinglists$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25508,26 +31140,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Remarketinglists$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Remarketinglists$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Remarketinglists$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Remarketinglists$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25638,29 +31283,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Remarketinglists$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Remarketinglists$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Remarketinglists$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Remarketinglists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25759,26 +31419,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Remarketinglists$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Remarketinglists$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Remarketinglists$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Remarketinglists$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25870,26 +31543,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Remarketinglists$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Remarketinglists$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Remarketinglists$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Remarketinglists$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -25914,6 +31600,121 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Remarketinglists$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Remarketing list ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Remarketinglists$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingList; + } + export interface Params$Resource$Remarketinglists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active or only inactive remarketing lists. + */ + active?: boolean; + /** + * Select only remarketing lists owned by this advertiser. + */ + advertiserId?: string; + /** + * Select only remarketing lists that have this floodlight activity ID. + */ + floodlightActivityId?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "remarketing list*2015" will return objects with names like + * "remarketing list June 2015", "remarketing list April 2015", or simply + * "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + */ + name?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Remarketinglists$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Remarketing list ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingList; + } + export interface Params$Resource$Remarketinglists$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingList; + } + + export class Resource$Remarketinglistshares { root: Dfareporting; constructor(root: Dfareporting) { @@ -25988,26 +31789,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Remarketinglistshares$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Remarketinglistshares$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Remarketinglistshares$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Remarketinglistshares$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglistshares$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglistshares$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26102,28 +31913,40 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Remarketinglistshares$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Remarketinglistshares$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Remarketinglistshares$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Remarketinglistshares$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Remarketinglistshares$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglistshares$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26213,28 +32036,40 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Remarketinglistshares$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Remarketinglistshares$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Remarketinglistshares$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Remarketinglistshares$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Remarketinglistshares$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglistshares$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26259,6 +32094,57 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Remarketinglistshares$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Remarketing list ID. + */ + remarketingListId?: string; + } + export interface Params$Resource$Remarketinglistshares$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Remarketing list ID. + */ + remarketingListId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingListShare; + } + export interface Params$Resource$Remarketinglistshares$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingListShare; + } + + export class Resource$Reports { root: Dfareporting; compatibleFields: Resource$Reports$Compatiblefields; @@ -26336,22 +32222,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Reports$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Reports$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26440,23 +32339,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Reports$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Reports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Reports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Reports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26546,25 +32455,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Reports$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Reports$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26666,26 +32586,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reports$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Reports$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26780,25 +32711,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Reports$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Reports$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26888,21 +32830,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Reports$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Reports$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Reports$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Reports$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -26998,25 +32952,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Reports$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Reports$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27040,6 +33005,141 @@ export namespace dfareporting_v2_8 { } } } + + export interface Params$Resource$Reports$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + export interface Params$Resource$Reports$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The scope that defines which results are returned. + */ + scope?: string; + /** + * The field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Reports$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + export interface Params$Resource$Reports$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + /** + * If set and true, tries to run the report synchronously. + */ + synchronous?: boolean; + } + export interface Params$Resource$Reports$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + export class Resource$Reports$Compatiblefields { root: Dfareporting; constructor(root: Dfareporting) { @@ -27117,26 +33217,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): - AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Compatiblefields$Query, + options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Compatiblefields$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Reports$Compatiblefields$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; + query( + paramsOrCallback?: Params$Resource$Reports$Compatiblefields$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Reports$Compatiblefields$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Compatiblefields$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27161,6 +33274,23 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Reports$Compatiblefields$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + + export class Resource$Reports$Files { root: Dfareporting; constructor(root: Dfareporting) { @@ -27245,21 +33375,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Reports$Files$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Reports$Files$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Reports$Files$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Reports$Files$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Files$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Files$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27365,25 +33508,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Reports$Files$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Files$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Files$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Reports$Files$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Files$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Files$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27408,6 +33563,58 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Reports$Files$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the report file. + */ + fileId?: string; + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Files$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The ID of the parent report. + */ + reportId?: string; + /** + * The field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Sites { root: Dfareporting; @@ -27485,21 +33692,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sites$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sites$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27588,23 +33807,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Sites$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Sites$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sites$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27717,26 +33949,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sites$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sites$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27831,23 +34074,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Sites$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Sites$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sites$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27938,23 +34194,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Sites$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sites$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Sites$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -27978,6 +34247,150 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Sites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Site ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Sites$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Site; + } + export interface Params$Resource$Sites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInStreamVideoPlacements?: boolean; + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInterstitialPlacements?: boolean; + /** + * Select only sites that accept publisher paid placements. + */ + acceptsPublisherPaidPlacements?: boolean; + /** + * Select only AdWords sites. + */ + adWordsSite?: boolean; + /** + * Select only approved sites. + */ + approved?: boolean; + /** + * Select only sites with these campaign IDs. + */ + campaignIds?: string; + /** + * Select only sites with these directory site IDs. + */ + directorySiteIds?: string; + /** + * Select only sites with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or keyName. Wildcards (*) are + * allowed. For example, "site*2015" will return objects with names like + * "site June 2015", "site April 2015", or simply "site 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "site" will match objects + * with name "my site", "site 2015", or simply "site". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only sites with this subaccount ID. + */ + subaccountId?: string; + /** + * Select only sites that have not been mapped to a directory site. + */ + unmappedSite?: boolean; + } + export interface Params$Resource$Sites$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Site ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Site; + } + export interface Params$Resource$Sites$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Site; + } + + export class Resource$Sizes { root: Dfareporting; constructor(root: Dfareporting) { @@ -28054,21 +34467,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sizes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sizes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sizes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sizes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sizes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sizes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28157,23 +34582,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Sizes$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Sizes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sizes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sizes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sizes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sizes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28261,26 +34699,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sizes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sizes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sizes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sizes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sizes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sizes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28304,6 +34753,65 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Sizes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Size ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Sizes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Size; + } + export interface Params$Resource$Sizes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only sizes with this height. + */ + height?: number; + /** + * Select only IAB standard sizes. + */ + iabStandard?: boolean; + /** + * Select only sizes with these IDs. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only sizes with this width. + */ + width?: number; + } + + export class Resource$Subaccounts { root: Dfareporting; constructor(root: Dfareporting) { @@ -28380,23 +34888,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Subaccounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Subaccounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subaccounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subaccounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subaccounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28486,26 +35005,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subaccounts$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subaccounts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Subaccounts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Subaccounts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subaccounts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28610,28 +35142,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subaccounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subaccounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subaccounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Subaccounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subaccounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28727,26 +35269,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Subaccounts$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subaccounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subaccounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Subaccounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subaccounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28837,26 +35391,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subaccounts$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Subaccounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Subaccounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subaccounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subaccounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -28880,6 +35447,113 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Subaccounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Subaccount ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Subaccounts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subaccount; + } + export interface Params$Resource$Subaccounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only subaccounts with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "subaccount*2015" will return objects with names like + * "subaccount June 2015", "subaccount April 2015", or simply "subaccount + * 2015". Most of the searches also add wildcards implicitly at the start + * and the end of the search string. For example, a search string of + * "subaccount" will match objects with name "my subaccount", "subaccount + * 2015", or simply "subaccount". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Subaccounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Subaccount ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subaccount; + } + export interface Params$Resource$Subaccounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subaccount; + } + + export class Resource$Targetableremarketinglists { root: Dfareporting; constructor(root: Dfareporting) { @@ -28954,27 +35628,37 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Targetableremarketinglists$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Targetableremarketinglists$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetableremarketinglists$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetableremarketinglists$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetableremarketinglists$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetableremarketinglists$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29086,30 +35770,45 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Targetableremarketinglists$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetableremarketinglists$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$TargetableRemarketingListsListResponse>): void; + list( + params: Params$Resource$Targetableremarketinglists$List, + callback: BodyResponseCallback< Schema$TargetableRemarketingListsListResponse>): void; + list(callback: BodyResponseCallback< + Schema$TargetableRemarketingListsListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetableremarketinglists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$TargetableRemarketingListsListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetableremarketinglists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetableremarketinglists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29136,6 +35835,68 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Targetableremarketinglists$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Remarketing list ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Targetableremarketinglists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active or only inactive targetable remarketing lists. + */ + active?: boolean; + /** + * Select only targetable remarketing lists targetable by these advertisers. + */ + advertiserId?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "remarketing list*2015" will return objects with names like + * "remarketing list June 2015", "remarketing list April 2015", or simply + * "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + */ + name?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Targetingtemplates { root: Dfareporting; constructor(root: Dfareporting) { @@ -29212,24 +35973,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetingtemplates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetingtemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetingtemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetingtemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29317,26 +36089,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetingtemplates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetingtemplates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetingtemplates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetingtemplates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29443,29 +36228,44 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Targetingtemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetingtemplates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Targetingtemplates$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetingtemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29562,26 +36362,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetingtemplates$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Targetingtemplates$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Targetingtemplates$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetingtemplates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29671,50 +36484,174 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/dfareporting/v2.8/userprofiles/{profileId}/targetingTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + update( + params?: Params$Resource$Targetingtemplates$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Targetingtemplates$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Targetingtemplates$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Targetingtemplates$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/dfareporting/v2.8/userprofiles/{profileId}/targetingTemplates') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Targetingtemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Targeting template ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Targetingtemplates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetingTemplate; + } + export interface Params$Resource$Targetingtemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only targeting templates with this advertiser ID. + */ + advertiserId?: string; + /** + * Select only targeting templates with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "template*2015" will return objects with names like + * "template June 2015", "template April 2015", or simply "template 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "template" will + * match objects with name "my template", "template 2015", or simply + * "template". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Targetingtemplates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Targeting template ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetingTemplate; + } + export interface Params$Resource$Targetingtemplates$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetingTemplate; } + export class Resource$Userprofiles { root: Dfareporting; constructor(root: Dfareporting) { @@ -29788,24 +36725,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userprofiles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userprofiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userprofiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userprofiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userprofiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29885,26 +36832,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Userprofiles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userprofiles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Userprofiles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Userprofiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userprofiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -29927,6 +36886,25 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Userprofiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user profile ID. + */ + profileId?: string; + } + export interface Params$Resource$Userprofiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Userrolepermissiongroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -30001,26 +36979,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userrolepermissiongroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Userrolepermissiongroups$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userrolepermissiongroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userrolepermissiongroups$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userrolepermissiongroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissiongroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30103,31 +37091,48 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Userrolepermissiongroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissiongroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissiongroups$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Userrolepermissiongroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userrolepermissiongroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissiongroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30154,6 +37159,34 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Userrolepermissiongroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role permission group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userrolepermissiongroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Userrolepermissions { root: Dfareporting; constructor(root: Dfareporting) { @@ -30230,24 +37263,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userrolepermissions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userrolepermissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userrolepermissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userrolepermissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userrolepermissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30331,30 +37375,46 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Userrolepermissions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissions$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Userrolepermissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userrolepermissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30381,6 +37441,38 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Userrolepermissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role permission ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userrolepermissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only user role permissions with these IDs. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Userroles { root: Dfareporting; constructor(root: Dfareporting) { @@ -30454,22 +37546,35 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Userroles$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Userroles$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Userroles$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30558,23 +37663,33 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Userroles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Userroles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userroles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userroles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30664,26 +37779,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Userroles$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Userroles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Userroles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30789,28 +37914,38 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Userroles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userroles$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userroles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Userroles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -30906,25 +38041,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Userroles$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Userroles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Userroles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31015,26 +38161,36 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Userroles$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Userroles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Userroles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31058,6 +38214,137 @@ export namespace dfareporting_v2_8 { } } + export interface Params$Resource$Userroles$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userroles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userroles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserRole; + } + export interface Params$Resource$Userroles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only account level user roles not associated with any specific + * subaccount. + */ + accountUserRoleOnly?: boolean; + /** + * Select only user roles with the specified IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "userrole*2015" will return objects with names like + * "userrole June 2015", "userrole April 2015", or simply "userrole 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "userrole" will + * match objects with name "my userrole", "userrole 2015", or simply + * "userrole". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only user roles that belong to this subaccount. + */ + subaccountId?: string; + } + export interface Params$Resource$Userroles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserRole; + } + export interface Params$Resource$Userroles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserRole; + } + + export class Resource$Videoformats { root: Dfareporting; constructor(root: Dfareporting) { @@ -31134,24 +38421,34 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Videoformats$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Videoformats$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Videoformats$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Videoformats$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videoformats$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videoformats$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31236,28 +38533,39 @@ export namespace dfareporting_v2_8 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Videoformats$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videoformats$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Videoformats$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Videoformats$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Videoformats$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videoformats$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -31280,4 +38588,31 @@ export namespace dfareporting_v2_8 { } } } + + export interface Params$Resource$Videoformats$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Video format ID. + */ + id?: number; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Videoformats$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } } diff --git a/src/apis/dfareporting/v3.0.ts b/src/apis/dfareporting/v3.0.ts index 776774f06d4..b83507925b8 100644 --- a/src/apis/dfareporting/v3.0.ts +++ b/src/apis/dfareporting/v3.0.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dfareporting_v3_0 { + export interface Options extends GlobalOptions { version: 'v3_0'; } + /** * DCM/DFA Reporting And Trafficking API * @@ -196,33 +199,33 @@ export namespace dfareporting_v3_0 { /** * Account permissions assigned to this account. */ - accountPermissionIds: string[]; + accountPermissionIds?: string[]; /** * Profile for this account. This is a read-only field that can be left * blank. */ - accountProfile: string; + accountProfile?: string; /** * Whether this account is active. */ - active: boolean; + active?: boolean; /** * Maximum number of active ads allowed for this account. */ - activeAdsLimitTier: string; + activeAdsLimitTier?: string; /** * Whether to serve creatives with Active View tags. If disabled, * viewability data will not be available for any impressions. */ - activeViewOptOut: boolean; + activeViewOptOut?: boolean; /** * User role permissions available to the user roles of this account. */ - availablePermissionIds: string[]; + availablePermissionIds?: string[]; /** * ID of the country associated with this account. */ - countryId: string; + countryId?: string; /** * ID of currency associated with this account. This is a required field. * Acceptable values are: - "1" for USD - "2" for GBP @@ -245,24 +248,24 @@ export namespace dfareporting_v3_0 { * for BGN - "48" for HRK - "49" for MXN - * "50" for NGN */ - currencyId: string; + currencyId?: string; /** * Default placement dimensions for this account. */ - defaultCreativeSizeId: string; + defaultCreativeSizeId?: string; /** * Description of this account. */ - description: string; + description?: string; /** * ID of this account. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#account". */ - kind: string; + kind?: string; /** * Locale of this account. Acceptable values are: - "cs" (Czech) * - "de" (German) - "en" (English) - @@ -273,35 +276,35 @@ export namespace dfareporting_v3_0 { * "sv" (Swedish) - "tr" (Turkish) - "zh-CN" * (Chinese Simplified) - "zh-TW" (Chinese Traditional) */ - locale: string; + locale?: string; /** * Maximum image size allowed for this account, in kilobytes. Value must be * greater than or equal to 1. */ - maximumImageSize: string; + maximumImageSize?: string; /** * Name of this account. This is a required field, and must be less than 128 * characters long and be globally unique. */ - name: string; + name?: string; /** * Whether campaigns created in this account will be enabled for Nielsen OCR * reach ratings by default. */ - nielsenOcrEnabled: boolean; + nielsenOcrEnabled?: boolean; /** * Reporting configuration of this account. */ - reportsConfiguration: Schema$ReportsConfiguration; + reportsConfiguration?: Schema$ReportsConfiguration; /** * Share Path to Conversion reports with Twitter. */ - shareReportsWithTwitter: boolean; + shareReportsWithTwitter?: boolean; /** * File size limit in kilobytes of Rich Media teaser creatives. Acceptable * values are 1 to 10240, inclusive. */ - teaserSizeLimit: string; + teaserSizeLimit?: string; } /** * Gets a summary of active ads in an account. @@ -310,24 +313,24 @@ export namespace dfareporting_v3_0 { /** * ID of the account. */ - accountId: string; + accountId?: string; /** * Ads that have been activated for the account */ - activeAds: string; + activeAds?: string; /** * Maximum number of active ads allowed for the account. */ - activeAdsLimitTier: string; + activeAdsLimitTier?: string; /** * Ads that can be activated for the account. */ - availableAds: string; + availableAds?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountActiveAdSummary". */ - kind: string; + kind?: string; } /** * AccountPermissions contains information about a particular account @@ -340,28 +343,28 @@ export namespace dfareporting_v3_0 { * values are: - "ACCOUNT_PROFILE_BASIC" - * "ACCOUNT_PROFILE_STANDARD" */ - accountProfiles: string[]; + accountProfiles?: string[]; /** * ID of this account permission. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermission". */ - kind: string; + kind?: string; /** * Administrative level required to enable this account permission. */ - level: string; + level?: string; /** * Name of this account permission. */ - name: string; + name?: string; /** * Permission group of this account permission. */ - permissionGroupId: string; + permissionGroupId?: string; } /** * AccountPermissionGroups contains a mapping of permission group IDs to @@ -371,16 +374,16 @@ export namespace dfareporting_v3_0 { /** * ID of this account permission group. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermissionGroup". */ - kind: string; + kind?: string; /** * Name of this account permission group. */ - name: string; + name?: string; } /** * Account Permission Group List Response @@ -389,12 +392,12 @@ export namespace dfareporting_v3_0 { /** * Account permission group collection. */ - accountPermissionGroups: Schema$AccountPermissionGroup[]; + accountPermissionGroups?: Schema$AccountPermissionGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermissionGroupsListResponse". */ - kind: string; + kind?: string; } /** * Account Permission List Response @@ -403,12 +406,12 @@ export namespace dfareporting_v3_0 { /** * Account permission collection. */ - accountPermissions: Schema$AccountPermission[]; + accountPermissions?: Schema$AccountPermission[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountPermissionsListResponse". */ - kind: string; + kind?: string; } /** * Account List Response @@ -417,16 +420,16 @@ export namespace dfareporting_v3_0 { /** * Account collection. */ - accounts: Schema$Account[]; + accounts?: Schema$Account[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * AccountUserProfiles contains properties of a DCM user profile. This @@ -438,39 +441,39 @@ export namespace dfareporting_v3_0 { * Account ID of the user profile. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Whether this user profile is active. This defaults to false, and must be * set true on insert for the user profile to be usable. */ - active: boolean; + active?: boolean; /** * Filter that describes which advertisers are visible to the user profile. */ - advertiserFilter: Schema$ObjectFilter; + advertiserFilter?: Schema$ObjectFilter; /** * Filter that describes which campaigns are visible to the user profile. */ - campaignFilter: Schema$ObjectFilter; + campaignFilter?: Schema$ObjectFilter; /** * Comments for this user profile. */ - comments: string; + comments?: string; /** * Email of the user profile. The email addresss must be linked to a Google * Account. This field is required on insertion and is read-only after * insertion. */ - email: string; + email?: string; /** * ID of the user profile. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountUserProfile". */ - kind: string; + kind?: string; /** * Locale of the user profile. This is a required field. Acceptable values * are: - "cs" (Czech) - "de" (German) - @@ -482,39 +485,39 @@ export namespace dfareporting_v3_0 { * (Turkish) - "zh-CN" (Chinese Simplified) - "zh-TW" * (Chinese Traditional) */ - locale: string; + locale?: string; /** * Name of the user profile. This is a required field. Must be less than 64 * characters long, must be globally unique, and cannot contain whitespace * or any of the following characters: "&;"#%,". */ - name: string; + name?: string; /** * Filter that describes which sites are visible to the user profile. */ - siteFilter: Schema$ObjectFilter; + siteFilter?: Schema$ObjectFilter; /** * Subaccount ID of the user profile. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Trafficker type of this user profile. */ - traffickerType: string; + traffickerType?: string; /** * User type of the user profile. This is a read-only field that can be left * blank. */ - userAccessType: string; + userAccessType?: string; /** * Filter that describes which user roles are visible to the user profile. */ - userRoleFilter: Schema$ObjectFilter; + userRoleFilter?: Schema$ObjectFilter; /** * User role ID of the user profile. This is a required field. */ - userRoleId: string; + userRoleId?: string; } /** * Account User Profile List Response @@ -523,16 +526,16 @@ export namespace dfareporting_v3_0 { /** * Account user profile collection. */ - accountUserProfiles: Schema$AccountUserProfile[]; + accountUserProfiles?: Schema$AccountUserProfile[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#accountUserProfilesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents an activity group. @@ -542,15 +545,15 @@ export namespace dfareporting_v3_0 { * List of activity filters. The dimension values need to be all either of * type "dfa:activity" or "dfa:activityGroup". */ - filters: Schema$DimensionValue[]; + filters?: Schema$DimensionValue[]; /** * The kind of resource this is, in this case dfareporting#activities. */ - kind: string; + kind?: string; /** * List of names of floodlight activity metrics. */ - metricNames: string[]; + metricNames?: string[]; } /** * Contains properties of a DCM ad. @@ -559,52 +562,52 @@ export namespace dfareporting_v3_0 { /** * Account ID of this ad. This is a read-only field that can be left blank. */ - accountId: string; + accountId?: string; /** * Whether this ad is active. When true, archived must be false. */ - active: boolean; + active?: boolean; /** * Advertiser ID of this ad. This is a required field on insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this ad is archived. When true, active must be false. */ - archived: boolean; + archived?: boolean; /** * Audience segment ID that is being targeted for this ad. Applicable when * type is AD_SERVING_STANDARD_AD. */ - audienceSegmentId: string; + audienceSegmentId?: string; /** * Campaign ID of this ad. This is a required field on insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * Click-through URL for this ad. This is a required field on insertion. * Applicable when type is AD_SERVING_CLICK_TRACKER. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * Click-through URL suffix properties for this ad. Applies to the URL in * the ad or (if overriding ad properties) the URL in the creative. */ - clickThroughUrlSuffixProperties: Schema$ClickThroughUrlSuffixProperties; + clickThroughUrlSuffixProperties?: Schema$ClickThroughUrlSuffixProperties; /** * Comments for this ad. */ - comments: string; + comments?: string; /** * Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. * DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or @@ -615,34 +618,34 @@ export namespace dfareporting_v3_0 { * limited to those compatibility types. IN_STREAM_VIDEO refers to rendering * in-stream video ads developed with the VAST standard. */ - compatibility: string; + compatibility?: string; /** * Information about the creation of this ad. This is a read-only field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * Creative group assignments for this ad. Applicable when type is * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number * is allowed for a maximum of two assignments. */ - creativeGroupAssignments: Schema$CreativeGroupAssignment[]; + creativeGroupAssignments?: Schema$CreativeGroupAssignment[]; /** * Creative rotation for this ad. Applicable when type is * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. * When type is AD_SERVING_DEFAULT_AD, this field should have exactly one * creativeAssignment. */ - creativeRotation: Schema$CreativeRotation; + creativeRotation?: Schema$CreativeRotation; /** * Time and day targeting information for this ad. This field must be left * blank if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - dayPartTargeting: Schema$DayPartTargeting; + dayPartTargeting?: Schema$DayPartTargeting; /** * Default click-through event tag properties for this ad. */ - defaultClickThroughEventTagProperties: + defaultClickThroughEventTagProperties?: Schema$DefaultClickThroughEventTagProperties; /** * Delivery schedule information for this ad. Applicable when type is @@ -650,99 +653,99 @@ export namespace dfareporting_v3_0 { * subfields priority and impressionRatio are required on insertion when * type is AD_SERVING_STANDARD_AD. */ - deliverySchedule: Schema$DeliverySchedule; + deliverySchedule?: Schema$DeliverySchedule; /** * Whether this ad is a dynamic click tracker. Applicable when type is * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is * read-only after insert. */ - dynamicClickTracker: boolean; + dynamicClickTracker?: boolean; /** * Date and time that this ad should stop serving. Must be later than the * start time. This is a required field on insertion. */ - endTime: string; + endTime?: string; /** * Event tag overrides for this ad. */ - eventTagOverrides: Schema$EventTagOverride[]; + eventTagOverrides?: Schema$EventTagOverride[]; /** * Geographical targeting information for this ad. This field must be left * blank if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - geoTargeting: Schema$GeoTargeting; + geoTargeting?: Schema$GeoTargeting; /** * ID of this ad. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this ad. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Key-value targeting information for this ad. This field must be left * blank if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - keyValueTargetingExpression: Schema$KeyValueTargetingExpression; + keyValueTargetingExpression?: Schema$KeyValueTargetingExpression; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#ad". */ - kind: string; + kind?: string; /** * Language targeting information for this ad. This field must be left blank * if the ad is using a targeting template. Applicable when type is * AD_SERVING_STANDARD_AD. */ - languageTargeting: Schema$LanguageTargeting; + languageTargeting?: Schema$LanguageTargeting; /** * Information about the most recent modification of this ad. This is a * read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this ad. This is a required field and must be less than 256 * characters long. */ - name: string; + name?: string; /** * Placement assignments for this ad. */ - placementAssignments: Schema$PlacementAssignment[]; + placementAssignments?: Schema$PlacementAssignment[]; /** * Remarketing list targeting expression for this ad. This field must be * left blank if the ad is using a targeting template. Applicable when type * is AD_SERVING_STANDARD_AD. */ - remarketingListExpression: Schema$ListTargetingExpression; + remarketingListExpression?: Schema$ListTargetingExpression; /** * Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ - size: Schema$Size; + size?: Schema$Size; /** * Whether this ad is ssl compliant. This is a read-only field that is * auto-generated when the ad is inserted or updated. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Whether this ad requires ssl. This is a read-only field that is * auto-generated when the ad is inserted or updated. */ - sslRequired: boolean; + sslRequired?: boolean; /** * Date and time that this ad should start serving. If creating an ad, this * field must be a time in the future. This is a required field on * insertion. */ - startTime: string; + startTime?: string; /** * Subaccount ID of this ad. This is a read-only field that can be left * blank. */ - subaccountId: string; + subaccountId?: string; /** * Targeting template ID, used to apply preconfigured targeting information * to this ad. This cannot be set while any of dayPartTargeting, @@ -750,19 +753,19 @@ export namespace dfareporting_v3_0 { * remarketingListExpression, or technologyTargeting are set. Applicable * when type is AD_SERVING_STANDARD_AD. */ - targetingTemplateId: string; + targetingTemplateId?: string; /** * Technology platform targeting information for this ad. This field must be * left blank if the ad is using a targeting template. Applicable when type * is AD_SERVING_STANDARD_AD. */ - technologyTargeting: Schema$TechnologyTargeting; + technologyTargeting?: Schema$TechnologyTargeting; /** * Type of ad. This is a required field on insertion. Note that default ads * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative * resource). */ - type: string; + type?: string; } /** * Campaign ad blocking settings. @@ -772,26 +775,26 @@ export namespace dfareporting_v3_0 { * Click-through URL used by brand-neutral ads. This is a required field * when overrideClickThroughUrl is set to true. */ - clickThroughUrl: string; + clickThroughUrl?: string; /** * ID of a creative bundle to use for this campaign. If set, brand-neutral * ads will select creatives from this bundle. Otherwise, a default * transparent pixel will be used. */ - creativeBundleId: string; + creativeBundleId?: string; /** * Whether this campaign has enabled ad blocking. When true, ad blocking is * enabled for placements in the campaign, but this may be overridden by * site and placement settings. When false, ad blocking is disabled for all * placements under the campaign, regardless of site and placement settings. */ - enabled: boolean; + enabled?: boolean; /** * Whether the brand-neutral ad's click-through URL comes from the * campaign's creative bundle or the override URL. Must be set to true * if ad blocking is enabled and no creative bundle is configured. */ - overrideClickThroughUrl: boolean; + overrideClickThroughUrl?: boolean; } /** * Ad List Response @@ -800,16 +803,16 @@ export namespace dfareporting_v3_0 { /** * Ad collection. */ - ads: Schema$Ad[]; + ads?: Schema$Ad[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#adsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Ad Slot @@ -818,7 +821,7 @@ export namespace dfareporting_v3_0 { /** * Comment for this ad slot. */ - comment: string; + comment?: string; /** * Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to * rendering either on desktop, mobile devices or in mobile apps for regular @@ -826,32 +829,32 @@ export namespace dfareporting_v3_0 { * rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in * in-stream video ads developed with the VAST standard. */ - compatibility: string; + compatibility?: string; /** * Height of this ad slot. */ - height: string; + height?: string; /** * ID of the placement from an external platform that is linked to this ad * slot. */ - linkedPlacementId: string; + linkedPlacementId?: string; /** * Name of this ad slot. */ - name: string; + name?: string; /** * Payment source type of this ad slot. */ - paymentSourceType: string; + paymentSourceType?: string; /** * Primary ad slot of a roadblock inventory item. */ - primary: boolean; + primary?: boolean; /** * Width of this ad slot. */ - width: string; + width?: string; } /** * Contains properties of a DCM advertiser. @@ -861,27 +864,27 @@ export namespace dfareporting_v3_0 { * Account ID of this advertiser.This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * ID of the advertiser group this advertiser belongs to. You can group * advertisers for reporting purposes, allowing you to see aggregated * information for all advertisers in each group. */ - advertiserGroupId: string; + advertiserGroupId?: string; /** * Suffix added to click-through URL of ad creative associations under this * advertiser. Must be less than 129 characters long. */ - clickThroughUrlSuffix: string; + clickThroughUrlSuffix?: string; /** * ID of the click-through event tag to apply by default to the landing * pages of this advertiser's campaigns. */ - defaultClickThroughEventTagId: string; + defaultClickThroughEventTagId?: string; /** * Default email address used in sender field for tag emails. */ - defaultEmail: string; + defaultEmail?: string; /** * Floodlight configuration ID of this advertiser. The floodlight * configuration ID will be created automatically, so on insert this field @@ -893,31 +896,31 @@ export namespace dfareporting_v3_0 { * This advertiser's original floodlight configuration is not already * shared with another advertiser. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * Dimension value for the ID of the floodlight configuration. This is a * read-only, auto-generated field. */ - floodlightConfigurationIdDimensionValue: Schema$DimensionValue; + floodlightConfigurationIdDimensionValue?: Schema$DimensionValue; /** * ID of this advertiser. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this advertiser. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiser". */ - kind: string; + kind?: string; /** * Name of this advertiser. This is a required field and must be less than * 256 characters long and unique among advertisers of the same account. */ - name: string; + name?: string; /** * Original floodlight configuration before any sharing occurred. Set the * floodlightConfigurationId of this advertiser to @@ -926,20 +929,20 @@ export namespace dfareporting_v3_0 { * floodlight configuration if the shared configuration has activities * associated with any campaign or placement. */ - originalFloodlightConfigurationId: string; + originalFloodlightConfigurationId?: string; /** * Status of this advertiser. */ - status: string; + status?: string; /** * Subaccount ID of this advertiser.This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Suspension status of this advertiser. */ - suspended: boolean; + suspended?: boolean; } /** * Groups advertisers together so that reports can be generated for the entire @@ -950,22 +953,22 @@ export namespace dfareporting_v3_0 { * Account ID of this advertiser group. This is a read-only field that can * be left blank. */ - accountId: string; + accountId?: string; /** * ID of this advertiser group. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiserGroup". */ - kind: string; + kind?: string; /** * Name of this advertiser group. This is a required field and must be less * than 256 characters long and unique among advertiser groups of the same * account. */ - name: string; + name?: string; } /** * Advertiser Group List Response @@ -974,16 +977,16 @@ export namespace dfareporting_v3_0 { /** * Advertiser group collection. */ - advertiserGroups: Schema$AdvertiserGroup[]; + advertiserGroups?: Schema$AdvertiserGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiserGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Landing Page List Response @@ -993,15 +996,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertiserLandingPagesListResponse". */ - kind: string; + kind?: string; /** * Landing page collection */ - landingPages: Schema$LandingPage[]; + landingPages?: Schema$LandingPage[]; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Advertiser List Response @@ -1010,16 +1013,16 @@ export namespace dfareporting_v3_0 { /** * Advertiser collection. */ - advertisers: Schema$Advertiser[]; + advertisers?: Schema$Advertiser[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#advertisersListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Audience Segment. @@ -1030,16 +1033,16 @@ export namespace dfareporting_v3_0 { * in proportion to the weights assigned to other segments in the same * segment group. Acceptable values are 1 to 1000, inclusive. */ - allocation: number; + allocation?: number; /** * ID of this audience segment. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Name of this audience segment. This is a required field and must be less * than 65 characters long. */ - name: string; + name?: string; } /** * Audience Segment Group. @@ -1049,17 +1052,17 @@ export namespace dfareporting_v3_0 { * Audience segments assigned to this group. The number of segments must be * between 2 and 100. */ - audienceSegments: Schema$AudienceSegment[]; + audienceSegments?: Schema$AudienceSegment[]; /** * ID of this audience segment group. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Name of this audience segment group. This is a required field and must be * less than 65 characters long. */ - name: string; + name?: string; } /** * Contains information about a browser that can be targeted by ads. @@ -1069,16 +1072,16 @@ export namespace dfareporting_v3_0 { * ID referring to this grouping of browser and version numbers. This is the * ID used for targeting. */ - browserVersionId: string; + browserVersionId?: string; /** * DART ID of this browser. This is the ID used when generating reports. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#browser". */ - kind: string; + kind?: string; /** * Major version number (leftmost number) of this browser. For example, for * Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) @@ -1089,7 +1092,7 @@ export namespace dfareporting_v3_0 { * cases where the ad server knows the browser is Firefox but can't tell * which version it is. */ - majorVersion: string; + majorVersion?: string; /** * Minor version number (number after first dot on left) of this browser. * For example, for Chrome 5.0.375.86 beta, this field should be set to 0. @@ -1100,11 +1103,11 @@ export namespace dfareporting_v3_0 { * not 4.0. Firefox ?.? targets cases where the ad server knows the browser * is Firefox but can't tell which version it is. */ - minorVersion: string; + minorVersion?: string; /** * Name of this browser. */ - name: string; + name?: string; } /** * Browser List Response @@ -1113,12 +1116,12 @@ export namespace dfareporting_v3_0 { /** * Browser collection. */ - browsers: Schema$Browser[]; + browsers?: Schema$Browser[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#browsersListResponse". */ - kind: string; + kind?: string; } /** * Contains properties of a DCM campaign. @@ -1128,74 +1131,75 @@ export namespace dfareporting_v3_0 { * Account ID of this campaign. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Ad blocking settings for this campaign. */ - adBlockingConfiguration: Schema$AdBlockingConfiguration; + adBlockingConfiguration?: Schema$AdBlockingConfiguration; /** * Additional creative optimization configurations for the campaign. */ - additionalCreativeOptimizationConfigurations: + additionalCreativeOptimizationConfigurations?: Schema$CreativeOptimizationConfiguration[]; /** * Advertiser group ID of the associated advertiser. */ - advertiserGroupId: string; + advertiserGroupId?: string; /** * Advertiser ID of this campaign. This is a required field. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the advertiser ID of this campaign. This is a * read-only, auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this campaign has been archived. */ - archived: boolean; + archived?: boolean; /** * Audience segment groups assigned to this campaign. Cannot have more than * 300 segment groups. */ - audienceSegmentGroups: Schema$AudienceSegmentGroup[]; + audienceSegmentGroups?: Schema$AudienceSegmentGroup[]; /** * Billing invoice code included in the DCM client billing invoices * associated with the campaign. */ - billingInvoiceCode: string; + billingInvoiceCode?: string; /** * Click-through URL suffix override properties for this campaign. */ - clickThroughUrlSuffixProperties: Schema$ClickThroughUrlSuffixProperties; + clickThroughUrlSuffixProperties?: Schema$ClickThroughUrlSuffixProperties; /** * Arbitrary comments about this campaign. Must be less than 256 characters * long. */ - comment: string; + comment?: string; /** * Information about the creation of this campaign. This is a read-only * field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * List of creative group IDs that are assigned to the campaign. */ - creativeGroupIds: string[]; + creativeGroupIds?: string[]; /** * Creative optimization configuration for the campaign. */ - creativeOptimizationConfiguration: Schema$CreativeOptimizationConfiguration; + creativeOptimizationConfiguration?: + Schema$CreativeOptimizationConfiguration; /** * Click-through event tag ID override properties for this campaign. */ - defaultClickThroughEventTagProperties: + defaultClickThroughEventTagProperties?: Schema$DefaultClickThroughEventTagProperties; /** * The default landing page ID for this campaign. */ - defaultLandingPageId: string; + defaultLandingPageId?: string; /** * Date on which the campaign will stop running. On insert, the end date * must be today or a future date. The end date must be later than or be the @@ -1205,63 +1209,63 @@ export namespace dfareporting_v3_0 { * not be set, as doing so will result in an error. This is a required * field. */ - endDate: string; + endDate?: string; /** * Overrides that can be used to activate or deactivate advertiser event * tags. */ - eventTagOverrides: Schema$EventTagOverride[]; + eventTagOverrides?: Schema$EventTagOverride[]; /** * External ID for this campaign. */ - externalId: string; + externalId?: string; /** * ID of this campaign. This is a read-only auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this campaign. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaign". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this campaign. This is * a read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Lookback window settings for the campaign. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Name of this campaign. This is a required field and must be less than 256 * characters long and unique among campaigns of the same advertiser. */ - name: string; + name?: string; /** * Whether Nielsen reports are enabled for this campaign. */ - nielsenOcrEnabled: boolean; + nielsenOcrEnabled?: boolean; /** * Date on which the campaign starts running. The start date can be any * date. The hours, minutes, and seconds of the start date should not be * set, as doing so will result in an error. This is a required field. */ - startDate: string; + startDate?: string; /** * Subaccount ID of this campaign. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Campaign trafficker contact emails. */ - traffickerEmails: string[]; + traffickerEmails?: string[]; } /** * Identifies a creative which has been associated with a given campaign. @@ -1271,12 +1275,12 @@ export namespace dfareporting_v3_0 { * ID of the creative associated with the campaign. This is a required * field. */ - creativeId: string; + creativeId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaignCreativeAssociation". */ - kind: string; + kind?: string; } /** * Campaign Creative Association List Response @@ -1285,16 +1289,16 @@ export namespace dfareporting_v3_0 { /** * Campaign creative association collection */ - campaignCreativeAssociations: Schema$CampaignCreativeAssociation[]; + campaignCreativeAssociations?: Schema$CampaignCreativeAssociation[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaignCreativeAssociationsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Campaign List Response @@ -1303,16 +1307,16 @@ export namespace dfareporting_v3_0 { /** * Campaign collection. */ - campaigns: Schema$Campaign[]; + campaigns?: Schema$Campaign[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#campaignsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Describes a change that a user has made to a resource. @@ -1321,63 +1325,63 @@ export namespace dfareporting_v3_0 { /** * Account ID of the modified object. */ - accountId: string; + accountId?: string; /** * Action which caused the change. */ - action: string; + action?: string; /** * Time when the object was modified. */ - changeTime: string; + changeTime?: string; /** * Field name of the object which changed. */ - fieldName: string; + fieldName?: string; /** * ID of this change log. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#changeLog". */ - kind: string; + kind?: string; /** * New value of the object field. */ - newValue: string; + newValue?: string; /** * ID of the object of this change log. The object could be a campaign, * placement, ad, or other type. */ - objectId: string; + objectId?: string; /** * Object type of the change log. */ - objectType: string; + objectType?: string; /** * Old value of the object field. */ - oldValue: string; + oldValue?: string; /** * Subaccount ID of the modified object. */ - subaccountId: string; + subaccountId?: string; /** * Transaction ID of this change log. When a single API call results in many * changes, each change will have a separate ID in the change log but will * share the same transactionId. */ - transactionId: string; + transactionId?: string; /** * ID of the user who modified the object. */ - userProfileId: string; + userProfileId?: string; /** * User profile name of the user who modified the object. */ - userProfileName: string; + userProfileName?: string; } /** * Change Log List Response @@ -1386,16 +1390,16 @@ export namespace dfareporting_v3_0 { /** * Change log collection. */ - changeLogs: Schema$ChangeLog[]; + changeLogs?: Schema$ChangeLog[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#changeLogsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * City List Response @@ -1404,12 +1408,12 @@ export namespace dfareporting_v3_0 { /** * City collection. */ - cities: Schema$City[]; + cities?: Schema$City[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#citiesListResponse". */ - kind: string; + kind?: string; } /** * Contains information about a city that can be targeted by ads. @@ -1418,41 +1422,41 @@ export namespace dfareporting_v3_0 { /** * Country code of the country to which this city belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this city belongs. */ - countryDartId: string; + countryDartId?: string; /** * DART ID of this city. This is the ID used for targeting and generating * reports. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#city". */ - kind: string; + kind?: string; /** * Metro region code of the metro region (DMA) to which this city belongs. */ - metroCode: string; + metroCode?: string; /** * ID of the metro region (DMA) to which this city belongs. */ - metroDmaId: string; + metroDmaId?: string; /** * Name of this city. */ - name: string; + name?: string; /** * Region code of the region to which this city belongs. */ - regionCode: string; + regionCode?: string; /** * DART ID of the region to which this city belongs. */ - regionDartId: string; + regionDartId?: string; } /** * Creative Click Tag. @@ -1462,19 +1466,19 @@ export namespace dfareporting_v3_0 { * Parameter value for the specified click tag. This field contains a * click-through url. */ - clickThroughUrl: Schema$CreativeClickThroughUrl; + clickThroughUrl?: Schema$CreativeClickThroughUrl; /** * Advertiser event name associated with the click tag. This field is used * by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to * DISPLAY when the primary asset type is not HTML_IMAGE. */ - eventName: string; + eventName?: string; /** * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY * creative assets, this field must match the value of the creative * asset's creativeAssetId.name field. */ - name: string; + name?: string; } /** * Click-through URL @@ -1489,21 +1493,21 @@ export namespace dfareporting_v3_0 { * is assigned to this field. - If neither of the above cases apply, then * the customClickThroughUrl is assigned to this field. */ - computedClickThroughUrl: string; + computedClickThroughUrl?: string; /** * Custom click-through URL. Applicable if the defaultLandingPage field is * set to false and the landingPageId field is left unset. */ - customClickThroughUrl: string; + customClickThroughUrl?: string; /** * Whether the campaign default landing page is used. */ - defaultLandingPage: boolean; + defaultLandingPage?: boolean; /** * ID of the landing page for the click-through URL. Applicable if the * defaultLandingPage field is set to false. */ - landingPageId: string; + landingPageId?: string; } /** * Click Through URL Suffix settings. @@ -1513,12 +1517,12 @@ export namespace dfareporting_v3_0 { * Click-through URL suffix to apply to all ads in this entity's scope. * Must be less than 128 characters long. */ - clickThroughUrlSuffix: string; + clickThroughUrlSuffix?: string; /** * Whether this entity should override the inherited click-through URL * suffix with its own defined value. */ - overrideInheritedSuffix: boolean; + overrideInheritedSuffix?: boolean; } /** * Companion Click-through override. @@ -1527,11 +1531,11 @@ export namespace dfareporting_v3_0 { /** * Click-through URL of this companion click-through override. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * ID of the creative for this companion click-through override. */ - creativeId: string; + creativeId?: string; } /** * Companion Settings @@ -1540,21 +1544,21 @@ export namespace dfareporting_v3_0 { /** * Whether companions are disabled for this placement. */ - companionsDisabled: boolean; + companionsDisabled?: boolean; /** * Whitelist of companion sizes to be served to this placement. Set this * list to null or empty to serve all companion sizes. */ - enabledSizes: Schema$Size[]; + enabledSizes?: Schema$Size[]; /** * Whether to serve only static images as companions. */ - imageOnly: boolean; + imageOnly?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#companionSetting". */ - kind: string; + kind?: string; } /** * Represents a response to the queryCompatibleFields method. @@ -1564,33 +1568,33 @@ export namespace dfareporting_v3_0 { * Contains items that are compatible to be selected for a report of type * "CROSS_DIMENSION_REACH". */ - crossDimensionReachReportCompatibleFields: + crossDimensionReachReportCompatibleFields?: Schema$CrossDimensionReachReportCompatibleFields; /** * Contains items that are compatible to be selected for a report of type * "FLOODLIGHT". */ - floodlightReportCompatibleFields: Schema$FloodlightReportCompatibleFields; + floodlightReportCompatibleFields?: Schema$FloodlightReportCompatibleFields; /** * The kind of resource this is, in this case dfareporting#compatibleFields. */ - kind: string; + kind?: string; /** * Contains items that are compatible to be selected for a report of type * "PATH_TO_CONVERSION". */ - pathToConversionReportCompatibleFields: + pathToConversionReportCompatibleFields?: Schema$PathToConversionReportCompatibleFields; /** * Contains items that are compatible to be selected for a report of type * "REACH". */ - reachReportCompatibleFields: Schema$ReachReportCompatibleFields; + reachReportCompatibleFields?: Schema$ReachReportCompatibleFields; /** * Contains items that are compatible to be selected for a report of type * "STANDARD". */ - reportCompatibleFields: Schema$ReportCompatibleFields; + reportCompatibleFields?: Schema$ReportCompatibleFields; } /** * Contains information about an internet connection type that can be targeted @@ -1601,16 +1605,16 @@ export namespace dfareporting_v3_0 { /** * ID of this connection type. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#connectionType". */ - kind: string; + kind?: string; /** * Name of this connection type. */ - name: string; + name?: string; } /** * Connection Type List Response @@ -1619,12 +1623,12 @@ export namespace dfareporting_v3_0 { /** * Collection of connection types such as broadband and mobile. */ - connectionTypes: Schema$ConnectionType[]; + connectionTypes?: Schema$ConnectionType[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#connectionTypesListResponse". */ - kind: string; + kind?: string; } /** * Content Category List Response @@ -1633,16 +1637,16 @@ export namespace dfareporting_v3_0 { /** * Content category collection. */ - contentCategories: Schema$ContentCategory[]; + contentCategories?: Schema$ContentCategory[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#contentCategoriesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Organizes placements according to the contents of their associated @@ -1653,22 +1657,22 @@ export namespace dfareporting_v3_0 { * Account ID of this content category. This is a read-only field that can * be left blank. */ - accountId: string; + accountId?: string; /** * ID of this content category. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#contentCategory". */ - kind: string; + kind?: string; /** * Name of this content category. This is a required field and must be less * than 256 characters long and unique among content categories of the same * account. */ - name: string; + name?: string; } /** * A Conversion represents when a user successfully performs a desired action @@ -1678,11 +1682,11 @@ export namespace dfareporting_v3_0 { /** * Whether the conversion was directed toward children. */ - childDirectedTreatment: boolean; + childDirectedTreatment?: boolean; /** * Custom floodlight variables. */ - customVariables: Schema$CustomFloodlightVariable[]; + customVariables?: Schema$CustomFloodlightVariable[]; /** * The alphanumeric encrypted user ID. When set, encryptionInfo should also * be specified. This field is mutually exclusive with @@ -1690,7 +1694,7 @@ export namespace dfareporting_v3_0 { * encryptedUserIdCandidates[] or mobileDeviceId or gclid is a required * field. */ - encryptedUserId: string; + encryptedUserId?: string; /** * A list of the alphanumeric encrypted user IDs. Any user ID with exposure * prior to the conversion timestamp will be used in the inserted @@ -1701,58 +1705,58 @@ export namespace dfareporting_v3_0 { * exclusive with encryptedUserId, mobileDeviceId and gclid. This or * encryptedUserId or mobileDeviceId or gclid is a required field. */ - encryptedUserIdCandidates: string[]; + encryptedUserIdCandidates?: string[]; /** * Floodlight Activity ID of this conversion. This is a required field. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Floodlight Configuration ID of this conversion. This is a required field. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * The Google click ID. This field is mutually exclusive with * encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This or * encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId is a * required field. */ - gclid: string; + gclid?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversion". */ - kind: string; + kind?: string; /** * Whether Limit Ad Tracking is enabled. When set to true, the conversion * will be used for reporting but not targeting. This will prevent * remarketing. */ - limitAdTracking: boolean; + limitAdTracking?: boolean; /** * The mobile device ID. This field is mutually exclusive with * encryptedUserId, encryptedUserIdCandidates[] and gclid. This or * encryptedUserId or encryptedUserIdCandidates[] or gclid is a required * field. */ - mobileDeviceId: string; + mobileDeviceId?: string; /** * The ordinal of the conversion. Use this field to control how conversions * of the same user and day are de-duplicated. This is a required field. */ - ordinal: string; + ordinal?: string; /** * The quantity of the conversion. */ - quantity: string; + quantity?: string; /** * The timestamp of conversion, in Unix epoch micros. This is a required * field. */ - timestampMicros: string; + timestampMicros?: string; /** * The value of the conversion. */ - value: number; + value?: number; } /** * The error code and description for a conversion that failed to insert or @@ -1762,16 +1766,16 @@ export namespace dfareporting_v3_0 { /** * The error code. */ - code: string; + code?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionError". */ - kind: string; + kind?: string; /** * A description of the error. */ - message: string; + message?: string; } /** * Insert Conversions Request. @@ -1780,18 +1784,18 @@ export namespace dfareporting_v3_0 { /** * The set of conversions to insert. */ - conversions: Schema$Conversion[]; + conversions?: Schema$Conversion[]; /** * Describes how encryptedUserId or encryptedUserIdCandidates[] is * encrypted. This is a required field if encryptedUserId or * encryptedUserIdCandidates[] is used. */ - encryptionInfo: Schema$EncryptionInfo; + encryptionInfo?: Schema$EncryptionInfo; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchInsertRequest". */ - kind: string; + kind?: string; } /** * Insert Conversions Response. @@ -1800,17 +1804,17 @@ export namespace dfareporting_v3_0 { /** * Indicates that some or all conversions failed to insert. */ - hasFailures: boolean; + hasFailures?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchInsertResponse". */ - kind: string; + kind?: string; /** * The insert status of each conversion. Statuses are returned in the same * order that conversions are inserted. */ - status: Schema$ConversionStatus[]; + status?: Schema$ConversionStatus[]; } /** * Update Conversions Request. @@ -1819,17 +1823,17 @@ export namespace dfareporting_v3_0 { /** * The set of conversions to update. */ - conversions: Schema$Conversion[]; + conversions?: Schema$Conversion[]; /** * Describes how encryptedUserId is encrypted. This is a required field if * encryptedUserId is used. */ - encryptionInfo: Schema$EncryptionInfo; + encryptionInfo?: Schema$EncryptionInfo; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchUpdateRequest". */ - kind: string; + kind?: string; } /** * Update Conversions Response. @@ -1838,17 +1842,17 @@ export namespace dfareporting_v3_0 { /** * Indicates that some or all conversions failed to update. */ - hasFailures: boolean; + hasFailures?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionsBatchUpdateResponse". */ - kind: string; + kind?: string; /** * The update status of each conversion. Statuses are returned in the same * order that conversions are updated. */ - status: Schema$ConversionStatus[]; + status?: Schema$ConversionStatus[]; } /** * The original conversion that was inserted or updated and whether there were @@ -1858,16 +1862,16 @@ export namespace dfareporting_v3_0 { /** * The original conversion that was inserted or updated. */ - conversion: Schema$Conversion; + conversion?: Schema$Conversion; /** * A list of errors related to this conversion. */ - errors: Schema$ConversionError[]; + errors?: Schema$ConversionError[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#conversionStatus". */ - kind: string; + kind?: string; } /** * Country List Response @@ -1876,12 +1880,12 @@ export namespace dfareporting_v3_0 { /** * Country collection. */ - countries: Schema$Country[]; + countries?: Schema$Country[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#countriesListResponse". */ - kind: string; + kind?: string; } /** * Contains information about a country that can be targeted by ads. @@ -1890,25 +1894,25 @@ export namespace dfareporting_v3_0 { /** * Country code. */ - countryCode: string; + countryCode?: string; /** * DART ID of this country. This is the ID used for targeting and generating * reports. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#country". */ - kind: string; + kind?: string; /** * Name of this country. */ - name: string; + name?: string; /** * Whether ad serving supports secure servers in this country. */ - sslEnabled: boolean; + sslEnabled?: boolean; } /** * Contains properties of a Creative. @@ -1919,16 +1923,16 @@ export namespace dfareporting_v3_0 { * auto-generated for both insert and update operations. Applicable to all * creative types. */ - accountId: string; + accountId?: string; /** * Whether the creative is active. Applicable to all creative types. */ - active: boolean; + active?: boolean; /** * Ad parameters user for VPAID creative. This is a read-only field. * Applicable to the following creative types: all VPAID. */ - adParameters: string; + adParameters?: string; /** * Keywords for a Rich Media creative. Keywords let you customize the * creative settings of a Rich Media ad running on your site without having @@ -1936,55 +1940,55 @@ export namespace dfareporting_v3_0 { * look or functionality of a creative. Applicable to the following creative * types: all RICH_MEDIA, and all VPAID. */ - adTagKeys: string[]; + adTagKeys?: string[]; /** * Advertiser ID of this creative. This is a required field. Applicable to * all creative types. */ - advertiserId: string; + advertiserId?: string; /** * Whether script access is allowed for this creative. This is a read-only * and deprecated field which will automatically be set to true on update. * Applicable to the following creative types: FLASH_INPAGE. */ - allowScriptAccess: boolean; + allowScriptAccess?: boolean; /** * Whether the creative is archived. Applicable to all creative types. */ - archived: boolean; + archived?: boolean; /** * Type of artwork used for the creative. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA, and all * VPAID. */ - artworkType: string; + artworkType?: string; /** * Source application where creative was authored. Presently, only DBM * authored creatives will have this field set. Applicable to all creative * types. */ - authoringSource: string; + authoringSource?: string; /** * Authoring tool for HTML5 banner creatives. This is a read-only field. * Applicable to the following creative types: HTML5_BANNER. */ - authoringTool: string; + authoringTool?: string; /** * Whether images are automatically advanced for image gallery creatives. * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. */ - autoAdvanceImages: boolean; + autoAdvanceImages?: boolean; /** * The 6-character HTML color code, beginning with #, for the background of * the window area where the Flash file is displayed. Default is white. * Applicable to the following creative types: FLASH_INPAGE. */ - backgroundColor: string; + backgroundColor?: string; /** * Click-through URL for backup image. Applicable to ENHANCED_BANNER when * the primary asset type is not HTML_IMAGE. */ - backupImageClickThroughUrl: Schema$CreativeClickThroughUrl; + backupImageClickThroughUrl?: Schema$CreativeClickThroughUrl; /** * List of feature dependencies that will cause a backup image to be served * if the browser that serves the ad does not support them. Feature @@ -1996,19 +2000,19 @@ export namespace dfareporting_v3_0 { * Applicable to the following creative types: HTML5_BANNER. Applicable to * DISPLAY when the primary asset type is not HTML_IMAGE. */ - backupImageFeatures: string[]; + backupImageFeatures?: string[]; /** * Reporting label used for HTML5 banner backup image. Applicable to the * following creative types: DISPLAY when the primary asset type is not * HTML_IMAGE. */ - backupImageReportingLabel: string; + backupImageReportingLabel?: string; /** * Target window for backup image. Applicable to the following creative * types: FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the * primary asset type is not HTML_IMAGE. */ - backupImageTargetWindow: Schema$TargetWindow; + backupImageTargetWindow?: Schema$TargetWindow; /** * Click tags of the creative. For DISPLAY, FLASH_INPAGE, and HTML5_BANNER * creatives, this is a subset of detected click tags for the assets @@ -2023,19 +2027,19 @@ export namespace dfareporting_v3_0 { * creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ - clickTags: Schema$ClickTag[]; + clickTags?: Schema$ClickTag[]; /** * Industry standard ID assigned to creative for reach and frequency. * Applicable to INSTREAM_VIDEO_REDIRECT creatives. */ - commercialId: string; + commercialId?: string; /** * List of companion creatives assigned to an in-Stream videocreative. * Acceptable values include IDs of existing flash and image creatives. * Applicable to the following creative types: all VPAID and all * INSTREAM_VIDEO with dynamicAssetSelection set to false. */ - companionCreatives: string[]; + companionCreatives?: string[]; /** * Compatibilities associated with this creative. This is a read-only field. * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or @@ -2049,7 +2053,7 @@ export namespace dfareporting_v3_0 { * "IN_STREAM_VIDEO" - "DISPLAY" - * "DISPLAY_INTERSTITIAL" */ - compatibility: string[]; + compatibility?: string[]; /** * Whether Flash assets associated with the creative need to be * automatically converted to HTML5. This flag is enabled by default and @@ -2058,29 +2062,29 @@ export namespace dfareporting_v3_0 { * following creative type: FLASH_INPAGE. Applicable to DISPLAY when the * primary asset type is not HTML_IMAGE. */ - convertFlashToHtml5: boolean; + convertFlashToHtml5?: boolean; /** * List of counter events configured for the creative. For * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated * from clickTags. Applicable to the following creative types: * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. */ - counterCustomEvents: Schema$CreativeCustomEvent[]; + counterCustomEvents?: Schema$CreativeCustomEvent[]; /** * Assets associated with a creative. Applicable to all but the following * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and * REDIRECT */ - creativeAssets: Schema$CreativeAsset[]; + creativeAssets?: Schema$CreativeAsset[]; /** * Required if dynamicAssetSelection is true. */ - creativeAssetSelection: Schema$CreativeAssetSelection; + creativeAssetSelection?: Schema$CreativeAssetSelection; /** * Creative field assignments for this creative. Applicable to all creative * types. */ - creativeFieldAssignments: Schema$CreativeFieldAssignment[]; + creativeFieldAssignments?: Schema$CreativeFieldAssignment[]; /** * Custom key-values for a Rich Media creative. Key-values let you customize * the creative settings of a Rich Media ad running on your site without @@ -2088,7 +2092,7 @@ export namespace dfareporting_v3_0 { * change the look or functionality of a creative. Applicable to the * following creative types: all RICH_MEDIA, and all VPAID. */ - customKeyValues: string[]; + customKeyValues?: string[]; /** * Set this to true to enable the use of rules to target individual assets * in this creative. When set to true creativeAssetSelection must be set. @@ -2096,7 +2100,7 @@ export namespace dfareporting_v3_0 { * creatives should be assigned to creative assets. Learn more. Applicable * to INSTREAM_VIDEO creatives. */ - dynamicAssetSelection: boolean; + dynamicAssetSelection?: boolean; /** * List of exit events configured for the creative. For DISPLAY and * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated @@ -2105,73 +2109,73 @@ export namespace dfareporting_v3_0 { * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to * DISPLAY when the primary asset type is not HTML_IMAGE. */ - exitCustomEvents: Schema$CreativeCustomEvent[]; + exitCustomEvents?: Schema$CreativeCustomEvent[]; /** * OpenWindow FSCommand of this creative. This lets the SWF file communicate * with either Flash Player or the program hosting Flash Player, such as a * web browser. This is only triggered if allowScriptAccess field is true. * Applicable to the following creative types: FLASH_INPAGE. */ - fsCommand: Schema$FsCommand; + fsCommand?: Schema$FsCommand; /** * HTML code for the creative. This is a required field when applicable. * This field is ignored if htmlCodeLocked is true. Applicable to the * following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and * all RICH_MEDIA. */ - htmlCode: string; + htmlCode?: string; /** * Whether HTML code is DCM-generated or manually entered. Set to true to * ignore changes to htmlCode. Applicable to the following creative types: * FLASH_INPAGE and HTML5_BANNER. */ - htmlCodeLocked: boolean; + htmlCodeLocked?: boolean; /** * ID of this creative. This is a read-only, auto-generated field. * Applicable to all creative types. */ - id: string; + id?: string; /** * Dimension value for the ID of this creative. This is a read-only field. * Applicable to all creative types. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creative". */ - kind: string; + kind?: string; /** * Creative last modification information. This is a read-only field. * Applicable to all creative types. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Latest Studio trafficked creative ID associated with rich media and VPAID * creatives. This is a read-only field. Applicable to the following * creative types: all RICH_MEDIA, and all VPAID. */ - latestTraffickedCreativeId: string; + latestTraffickedCreativeId?: string; /** * Name of the creative. This is a required field and must be less than 256 * characters long. Applicable to all creative types. */ - name: string; + name?: string; /** * Override CSS value for rich media creatives. Applicable to the following * creative types: all RICH_MEDIA. */ - overrideCss: string; + overrideCss?: string; /** * The asset ID of the polite load image asset. Applicable to the creative * type: DISPLAY. */ - politeLoadAssetId: string; + politeLoadAssetId?: string; /** * Amount of time to play the video before counting a view. Applicable to * the following creative types: all INSTREAM_VIDEO. */ - progressOffset: Schema$VideoOffset; + progressOffset?: Schema$VideoOffset; /** * URL of hosted image or hosted video or another ad tag. For * INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect @@ -2181,30 +2185,30 @@ export namespace dfareporting_v3_0 { * types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, * INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT */ - redirectUrl: string; + redirectUrl?: string; /** * ID of current rendering version. This is a read-only field. Applicable to * all creative types. */ - renderingId: string; + renderingId?: string; /** * Dimension value for the rendering ID of this creative. This is a * read-only field. Applicable to all creative types. */ - renderingIdDimensionValue: Schema$DimensionValue; + renderingIdDimensionValue?: Schema$DimensionValue; /** * The minimum required Flash plugin version for this creative. For * example, 11.2.202.235. This is a read-only field. Applicable to the * following creative types: all RICH_MEDIA, and all VPAID. */ - requiredFlashPluginVersion: string; + requiredFlashPluginVersion?: string; /** * The internal Flash version for this creative as calculated by DoubleClick * Studio. This is a read-only field. Applicable to the following creative * types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY * when the primary asset type is not HTML_IMAGE. */ - requiredFlashVersion: number; + requiredFlashVersion?: number; /** * Size associated with this creative. When inserting or updating a creative * either the size ID field or size width and height fields can be used. @@ -2215,66 +2219,66 @@ export namespace dfareporting_v3_0 { * creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, * HTML5_BANNER, IMAGE, and all RICH_MEDIA. */ - size: Schema$Size; + size?: Schema$Size; /** * Amount of time to play the video before the skip button appears. * Applicable to the following creative types: all INSTREAM_VIDEO. */ - skipOffset: Schema$VideoOffset; + skipOffset?: Schema$VideoOffset; /** * Whether the user can choose to skip the creative. Applicable to the * following creative types: all INSTREAM_VIDEO and all VPAID. */ - skippable: boolean; + skippable?: boolean; /** * Whether the creative is SSL-compliant. This is a read-only field. * Applicable to all creative types. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Whether creative should be treated as SSL compliant even if the system * scan shows it's not. Applicable to all creative types. */ - sslOverride: boolean; + sslOverride?: boolean; /** * Studio advertiser ID associated with rich media and VPAID creatives. This * is a read-only field. Applicable to the following creative types: all * RICH_MEDIA, and all VPAID. */ - studioAdvertiserId: string; + studioAdvertiserId?: string; /** * Studio creative ID associated with rich media and VPAID creatives. This * is a read-only field. Applicable to the following creative types: all * RICH_MEDIA, and all VPAID. */ - studioCreativeId: string; + studioCreativeId?: string; /** * Studio trafficked creative ID associated with rich media and VPAID * creatives. This is a read-only field. Applicable to the following * creative types: all RICH_MEDIA, and all VPAID. */ - studioTraffickedCreativeId: string; + studioTraffickedCreativeId?: string; /** * Subaccount ID of this creative. This field, if left unset, will be * auto-generated for both insert and update operations. Applicable to all * creative types. */ - subaccountId: string; + subaccountId?: string; /** * Third-party URL used to record backup image impressions. Applicable to * the following creative types: all RICH_MEDIA. */ - thirdPartyBackupImageImpressionsUrl: string; + thirdPartyBackupImageImpressionsUrl?: string; /** * Third-party URL used to record rich media impressions. Applicable to the * following creative types: all RICH_MEDIA. */ - thirdPartyRichMediaImpressionsUrl: string; + thirdPartyRichMediaImpressionsUrl?: string; /** * Third-party URLs for tracking in-stream video creative events. Applicable * to the following creative types: all INSTREAM_VIDEO and all VPAID. */ - thirdPartyUrls: Schema$ThirdPartyTrackingUrl[]; + thirdPartyUrls?: Schema$ThirdPartyTrackingUrl[]; /** * List of timer events configured for the creative. For * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated @@ -2282,25 +2286,25 @@ export namespace dfareporting_v3_0 { * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to * DISPLAY when the primary asset is not HTML_IMAGE. */ - timerCustomEvents: Schema$CreativeCustomEvent[]; + timerCustomEvents?: Schema$CreativeCustomEvent[]; /** * Combined size of all creative assets. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA, and all * VPAID. */ - totalFileSize: string; + totalFileSize?: string; /** * Type of this creative. This is a required field. Applicable to all * creative types. Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only * used for existing creatives. New creatives should use DISPLAY as a * replacement for these types. */ - type: string; + type?: string; /** * A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following * creative types: INSTREAM_VIDEO and VPAID. */ - universalAdId: Schema$UniversalAdId; + universalAdId?: Schema$UniversalAdId; /** * The version number helps you keep track of multiple versions of your * creative in your reports. The version number will always be @@ -2311,18 +2315,18 @@ export namespace dfareporting_v3_0 { * incremented by 1 when undergoing Rich Media creative merging. Applicable * to all creative types. */ - version: number; + version?: number; /** * Description of the video ad. Applicable to the following creative types: * all INSTREAM_VIDEO and all VPAID. */ - videoDescription: string; + videoDescription?: string; /** * Creative video duration in seconds. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all * VPAID. */ - videoDuration: number; + videoDuration?: number; } /** * Creative Asset. @@ -2333,65 +2337,65 @@ export namespace dfareporting_v3_0 { * field. Applicable to the following creative type: FLASH_INPAGE. * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ - actionScript3: boolean; + actionScript3?: boolean; /** * Whether the video asset is active. This is a read-only field for * VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative * types: INSTREAM_VIDEO and all VPAID. */ - active: boolean; + active?: boolean; /** * Possible alignments for an asset. This is a read-only field. Applicable * to the following creative types: * RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. */ - alignment: string; + alignment?: string; /** * Artwork type of rich media creative. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA. */ - artworkType: string; + artworkType?: string; /** * Identifier of this asset. This is the same identifier returned during * creative asset insert operation. This is a required field. Applicable to * all but the following creative types: all REDIRECT and TRACKING_TEXT. */ - assetIdentifier: Schema$CreativeAssetId; + assetIdentifier?: Schema$CreativeAssetId; /** * Exit event configured for the backup image. Applicable to the following * creative types: all RICH_MEDIA. */ - backupImageExit: Schema$CreativeCustomEvent; + backupImageExit?: Schema$CreativeCustomEvent; /** * Detected bit-rate for video asset. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO and all VPAID. */ - bitRate: number; + bitRate?: number; /** * Rich media child asset type. This is a read-only field. Applicable to the * following creative types: all VPAID. */ - childAssetType: string; + childAssetType?: string; /** * Size of an asset when collapsed. This is a read-only field. Applicable to * the following creative types: all RICH_MEDIA and all VPAID. Additionally, * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or * ASSET_DISPLAY_TYPE_PEEL_DOWN. */ - collapsedSize: Schema$Size; + collapsedSize?: Schema$Size; /** * List of companion creatives assigned to an in-stream video creative * asset. Acceptable values include IDs of existing flash and image * creatives. Applicable to INSTREAM_VIDEO creative type with * dynamicAssetSelection set to true. */ - companionCreativeIds: string[]; + companionCreativeIds?: string[]; /** * Custom start time in seconds for making the asset visible. Applicable to * the following creative types: all RICH_MEDIA. Value must be greater than * or equal to 0. */ - customStartTimeValue: number; + customStartTimeValue?: number; /** * List of feature dependencies for the creative asset that are detected by * DCM. Feature dependencies are features that a browser must be able to @@ -2400,115 +2404,115 @@ export namespace dfareporting_v3_0 { * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is * not HTML_IMAGE. */ - detectedFeatures: string[]; + detectedFeatures?: string[]; /** * Type of rich media asset. This is a read-only field. Applicable to the * following creative types: all RICH_MEDIA. */ - displayType: string; + displayType?: string; /** * Duration in seconds for which an asset will be displayed. Applicable to * the following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. * Value must be greater than or equal to 1. */ - duration: number; + duration?: number; /** * Duration type for which an asset will be displayed. Applicable to the * following creative types: all RICH_MEDIA. */ - durationType: string; + durationType?: string; /** * Detected expanded dimension for video asset. This is a read-only field. * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. */ - expandedDimension: Schema$Size; + expandedDimension?: Schema$Size; /** * File size associated with this creative asset. This is a read-only field. * Applicable to all but the following creative types: all REDIRECT and * TRACKING_TEXT. */ - fileSize: string; + fileSize?: string; /** * Flash version of the asset. This is a read-only field. Applicable to the * following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ - flashVersion: number; + flashVersion?: number; /** * Whether to hide Flash objects flag for an asset. Applicable to the * following creative types: all RICH_MEDIA. */ - hideFlashObjects: boolean; + hideFlashObjects?: boolean; /** * Whether to hide selection boxes flag for an asset. Applicable to the * following creative types: all RICH_MEDIA. */ - hideSelectionBoxes: boolean; + hideSelectionBoxes?: boolean; /** * Whether the asset is horizontally locked. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA. */ - horizontallyLocked: boolean; + horizontallyLocked?: boolean; /** * Numeric ID of this creative asset. This is a required field and should * not be modified. Applicable to all but the following creative types: all * REDIRECT and TRACKING_TEXT. */ - id: string; + id?: string; /** * Dimension value for the ID of the asset. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Detected MIME type for video asset. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO and all VPAID. */ - mimeType: string; + mimeType?: string; /** * Offset position for an asset in collapsed mode. This is a read-only * field. Applicable to the following creative types: all RICH_MEDIA and all * VPAID. Additionally, only applicable to assets whose displayType is * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. */ - offset: Schema$OffsetPosition; + offset?: Schema$OffsetPosition; /** * Orientation of video asset. This is a read-only, auto-generated field. */ - orientation: string; + orientation?: string; /** * Whether the backup asset is original or changed by the user in DCM. * Applicable to the following creative types: all RICH_MEDIA. */ - originalBackup: boolean; + originalBackup?: boolean; /** * Offset position for an asset. Applicable to the following creative types: * all RICH_MEDIA. */ - position: Schema$OffsetPosition; + position?: Schema$OffsetPosition; /** * Offset left unit for an asset. This is a read-only field. Applicable to * the following creative types: all RICH_MEDIA. */ - positionLeftUnit: string; + positionLeftUnit?: string; /** * Offset top unit for an asset. This is a read-only field if the asset * displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following * creative types: all RICH_MEDIA. */ - positionTopUnit: string; + positionTopUnit?: string; /** * Progressive URL for video asset. This is a read-only field. Applicable to * the following creative types: INSTREAM_VIDEO and all VPAID. */ - progressiveServingUrl: string; + progressiveServingUrl?: string; /** * Whether the asset pushes down other content. Applicable to the following * creative types: all RICH_MEDIA. Additionally, only applicable when the * asset offsets are 0, the collapsedSize.width matches size.width, and the * collapsedSize.height is less than size.height. */ - pushdown: boolean; + pushdown?: boolean; /** * Pushdown duration in seconds for an asset. Applicable to the following * creative types: all RICH_MEDIA.Additionally, only applicable when the @@ -2516,7 +2520,7 @@ export namespace dfareporting_v3_0 { * matches size.width, and the collapsedSize.height is less than * size.height. Acceptable values are 0 to 9.99, inclusive. */ - pushdownDuration: number; + pushdownDuration?: number; /** * Role of the asset in relation to creative. Applicable to all but the * following creative types: all REDIRECT and TRACKING_TEXT. This is a @@ -2540,7 +2544,7 @@ export namespace dfareporting_v3_0 { * VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or * removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. */ - role: string; + role?: string; /** * Size associated with this creative asset. This is a required field when * applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, @@ -2550,44 +2554,44 @@ export namespace dfareporting_v3_0 { * RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not * HTML_IMAGE. */ - size: Schema$Size; + size?: Schema$Size; /** * Whether the asset is SSL-compliant. This is a read-only field. Applicable * to all but the following creative types: all REDIRECT and TRACKING_TEXT. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Initial wait time type before making the asset visible. Applicable to the * following creative types: all RICH_MEDIA. */ - startTimeType: string; + startTimeType?: string; /** * Streaming URL for video asset. This is a read-only field. Applicable to * the following creative types: INSTREAM_VIDEO and all VPAID. */ - streamingServingUrl: string; + streamingServingUrl?: string; /** * Whether the asset is transparent. Applicable to the following creative * types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. */ - transparency: boolean; + transparency?: boolean; /** * Whether the asset is vertically locked. This is a read-only field. * Applicable to the following creative types: all RICH_MEDIA. */ - verticallyLocked: boolean; + verticallyLocked?: boolean; /** * Detected video duration for video asset. This is a read-only field. * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. */ - videoDuration: number; + videoDuration?: number; /** * Window mode options for flash assets. Applicable to the following * creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, * RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and * RICH_MEDIA_INPAGE_FLOATING. */ - windowMode: string; + windowMode?: string; /** * zIndex value of an asset. Applicable to the following creative types: all * RICH_MEDIA.Additionally, only applicable to assets whose displayType is @@ -2595,17 +2599,17 @@ export namespace dfareporting_v3_0 { * ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to * 999999999, inclusive. */ - zIndex: number; + zIndex?: number; /** * File name of zip file. This is a read-only field. Applicable to the * following creative types: HTML5_BANNER. */ - zipFilename: string; + zipFilename?: string; /** * Size of zip file. This is a read-only field. Applicable to the following * creative types: HTML5_BANNER. */ - zipFilesize: string; + zipFilesize?: string; } /** * Creative Asset ID. @@ -2617,12 +2621,12 @@ export namespace dfareporting_v3_0 { * uploaded asset. Characters in the name must be alphanumeric or one of the * following: ".-_ ". Spaces are allowed. */ - name: string; + name?: string; /** * Type of asset to upload. This is a required field. FLASH and IMAGE are no * longer supported for new uploads. All image assets should use HTML_IMAGE. */ - type: string; + type?: string; } /** * CreativeAssets contains properties of a creative asset file which will be @@ -2633,33 +2637,33 @@ export namespace dfareporting_v3_0 { /** * ID of the creative asset. This is a required field. */ - assetIdentifier: Schema$CreativeAssetId; + assetIdentifier?: Schema$CreativeAssetId; /** * List of detected click tags for assets. This is a read-only * auto-generated field. */ - clickTags: Schema$ClickTag[]; + clickTags?: Schema$ClickTag[]; /** * List of feature dependencies for the creative asset that are detected by * DCM. Feature dependencies are features that a browser must be able to * support in order to render your HTML5 creative correctly. This is a * read-only, auto-generated field. */ - detectedFeatures: string[]; + detectedFeatures?: string[]; /** * Numeric ID of the asset. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the numeric ID of the asset. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeAssetMetadata". */ - kind: string; + kind?: string; /** * Rules validated during code generation that generated a warning. This is * a read-only, auto-generated field. Possible values are: - @@ -2678,7 +2682,7 @@ export namespace dfareporting_v3_0 { * "PRIMARY_HTML_MISSING" - "SVG_INVALID" - * "ZIP_INVALID" */ - warnedValidationRules: string[]; + warnedValidationRules?: string[]; } /** * Encapsulates the list of rules for asset selection and a default asset in @@ -2690,13 +2694,13 @@ export namespace dfareporting_v3_0 { * this creative, and will be served if none of the rules match. This is a * required field. */ - defaultAssetId: string; + defaultAssetId?: string; /** * Rules determine which asset will be served to a viewer. Rules will be * evaluated in the order in which they are stored in this list. This list * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives. */ - rules: Schema$Rule[]; + rules?: Schema$Rule[]; } /** * Creative Assignment. @@ -2706,43 +2710,43 @@ export namespace dfareporting_v3_0 { * Whether this creative assignment is active. When true, the creative will * be included in the ad's rotation. */ - active: boolean; + active?: boolean; /** * Whether applicable event tags should fire when this creative assignment * is rendered. If this value is unset when the ad is inserted or updated, * it will default to true for all creative types EXCEPT for * INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. */ - applyEventTags: boolean; + applyEventTags?: boolean; /** * Click-through URL of the creative assignment. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * Companion creative overrides for this creative assignment. Applicable to * video ads. */ - companionCreativeOverrides: Schema$CompanionClickThroughOverride[]; + companionCreativeOverrides?: Schema$CompanionClickThroughOverride[]; /** * Creative group assignments for this creative assignment. Only one * assignment per creative group number is allowed for a maximum of two * assignments. */ - creativeGroupAssignments: Schema$CreativeGroupAssignment[]; + creativeGroupAssignments?: Schema$CreativeGroupAssignment[]; /** * ID of the creative to be assigned. This is a required field. */ - creativeId: string; + creativeId?: string; /** * Dimension value for the ID of the creative. This is a read-only, * auto-generated field. */ - creativeIdDimensionValue: Schema$DimensionValue; + creativeIdDimensionValue?: Schema$DimensionValue; /** * Date and time that the assigned creative should stop serving. Must be * later than the start time. */ - endTime: string; + endTime?: string; /** * Rich media exit overrides for this creative assignment. Applicable when * the creative type is any of the following: - DISPLAY - RICH_MEDIA_INPAGE @@ -2751,27 +2755,27 @@ export namespace dfareporting_v3_0 { * RICH_MEDIA_MOBILE_IN_APP - RICH_MEDIA_MULTI_FLOATING - * RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - VPAID_NON_LINEAR */ - richMediaExitOverrides: Schema$RichMediaExitOverride[]; + richMediaExitOverrides?: Schema$RichMediaExitOverride[]; /** * Sequence number of the creative assignment, applicable when the rotation * type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to * 65535, inclusive. */ - sequence: number; + sequence?: number; /** * Whether the creative to be assigned is SSL-compliant. This is a read-only * field that is auto-generated when the ad is inserted or updated. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Date and time that the assigned creative should start serving. */ - startTime: string; + startTime?: string; /** * Weight of the creative assignment, applicable when the rotation type is * CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. */ - weight: number; + weight?: number; } /** * Click-through URL @@ -2784,16 +2788,16 @@ export namespace dfareporting_v3_0 { * to this field. - Otherwise, the customClickThroughUrl is assigned to this * field. */ - computedClickThroughUrl: string; + computedClickThroughUrl?: string; /** * Custom click-through URL. Applicable if the landingPageId field is left * unset. */ - customClickThroughUrl: string; + customClickThroughUrl?: string; /** * ID of the landing page for the click-through URL. */ - landingPageId: string; + landingPageId?: string; } /** * Creative Custom Event. @@ -2803,49 +2807,49 @@ export namespace dfareporting_v3_0 { * Unique ID of this event used by DDM Reporting and Data Transfer. This is * a read-only field. */ - advertiserCustomEventId: string; + advertiserCustomEventId?: string; /** * User-entered name for the event. */ - advertiserCustomEventName: string; + advertiserCustomEventName?: string; /** * Type of the event. This is a read-only field. */ - advertiserCustomEventType: string; + advertiserCustomEventType?: string; /** * Artwork label column, used to link events in DCM back to events in * Studio. This is a required field and should not be modified after * insertion. */ - artworkLabel: string; + artworkLabel?: string; /** * Artwork type used by the creative.This is a read-only field. */ - artworkType: string; + artworkType?: string; /** * Exit click-through URL for the event. This field is used only for exit * events. */ - exitClickThroughUrl: Schema$CreativeClickThroughUrl; + exitClickThroughUrl?: Schema$CreativeClickThroughUrl; /** * ID of this event. This is a required field and should not be modified * after insertion. */ - id: string; + id?: string; /** * Properties for rich media popup windows. This field is used only for exit * events. */ - popupWindowProperties: Schema$PopupWindowProperties; + popupWindowProperties?: Schema$PopupWindowProperties; /** * Target type used by the event. */ - targetType: string; + targetType?: string; /** * Video reporting ID, used to differentiate multiple videos in a single * creative. This is a read-only field. */ - videoReportingId: string; + videoReportingId?: string; } /** * Contains properties of a creative field. @@ -2855,37 +2859,37 @@ export namespace dfareporting_v3_0 { * Account ID of this creative field. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this creative field. This is a required field on * insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * ID of this creative field. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeField". */ - kind: string; + kind?: string; /** * Name of this creative field. This is a required field and must be less * than 256 characters long and unique among creative fields of the same * advertiser. */ - name: string; + name?: string; /** * Subaccount ID of this creative field. This is a read-only field that can * be left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Creative Field Assignment. @@ -2894,11 +2898,11 @@ export namespace dfareporting_v3_0 { /** * ID of the creative field. */ - creativeFieldId: string; + creativeFieldId?: string; /** * ID of the creative field value. */ - creativeFieldValueId: string; + creativeFieldValueId?: string; } /** * Creative Field List Response @@ -2907,16 +2911,16 @@ export namespace dfareporting_v3_0 { /** * Creative field collection. */ - creativeFields: Schema$CreativeField[]; + creativeFields?: Schema$CreativeField[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeFieldsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a creative field value. @@ -2926,17 +2930,17 @@ export namespace dfareporting_v3_0 { * ID of this creative field value. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeFieldValue". */ - kind: string; + kind?: string; /** * Value of this creative field value. It needs to be less than 256 * characters in length and unique per creative field. */ - value: string; + value?: string; } /** * Creative Field Value List Response @@ -2945,16 +2949,16 @@ export namespace dfareporting_v3_0 { /** * Creative field value collection. */ - creativeFieldValues: Schema$CreativeFieldValue[]; + creativeFieldValues?: Schema$CreativeFieldValue[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeFieldValuesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a creative group. @@ -2964,44 +2968,44 @@ export namespace dfareporting_v3_0 { * Account ID of this creative group. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this creative group. This is a required field on * insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Subgroup of the creative group. Assign your creative groups to a subgroup * in order to filter or manage them more easily. This field is required on * insertion and is read-only after insertion. Acceptable values are 1 to 2, * inclusive. */ - groupNumber: number; + groupNumber?: number; /** * ID of this creative group. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeGroup". */ - kind: string; + kind?: string; /** * Name of this creative group. This is a required field and must be less * than 256 characters long and unique among creative groups of the same * advertiser. */ - name: string; + name?: string; /** * Subaccount ID of this creative group. This is a read-only field that can * be left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Creative Group Assignment. @@ -3010,11 +3014,11 @@ export namespace dfareporting_v3_0 { /** * ID of the creative group to be assigned. */ - creativeGroupId: string; + creativeGroupId?: string; /** * Creative group number of the creative group assignment. */ - creativeGroupNumber: string; + creativeGroupNumber?: string; } /** * Creative Group List Response @@ -3023,16 +3027,16 @@ export namespace dfareporting_v3_0 { /** * Creative group collection. */ - creativeGroups: Schema$CreativeGroup[]; + creativeGroups?: Schema$CreativeGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Creative optimization settings. @@ -3043,20 +3047,20 @@ export namespace dfareporting_v3_0 { * when the campaign is inserted or updated. It can be null for existing * campaigns. */ - id: string; + id?: string; /** * Name of this creative optimization config. This is a required field and * must be less than 129 characters long. */ - name: string; + name?: string; /** * List of optimization activities associated with this configuration. */ - optimizationActivitys: Schema$OptimizationActivity[]; + optimizationActivitys?: Schema$OptimizationActivity[]; /** * Optimization model for this configuration. */ - optimizationModel: string; + optimizationModel?: string; } /** * Creative Rotation. @@ -3065,24 +3069,24 @@ export namespace dfareporting_v3_0 { /** * Creative assignments in this creative rotation. */ - creativeAssignments: Schema$CreativeAssignment[]; + creativeAssignments?: Schema$CreativeAssignment[]; /** * Creative optimization configuration that is used by this ad. It should * refer to one of the existing optimization configurations in the ad's * campaign. If it is unset or set to 0, then the campaign's default * optimization configuration will be used for this ad. */ - creativeOptimizationConfigurationId: string; + creativeOptimizationConfigurationId?: string; /** * Type of creative rotation. Can be used to specify whether to use * sequential or random rotation. */ - type: string; + type?: string; /** * Strategy for calculating weights. Used with * CREATIVE_ROTATION_TYPE_RANDOM. */ - weightCalculationStrategy: string; + weightCalculationStrategy?: string; } /** * Creative Settings @@ -3092,12 +3096,12 @@ export namespace dfareporting_v3_0 { * Header text for iFrames for this site. Must be less than or equal to 2000 * characters long. */ - iFrameFooter: string; + iFrameFooter?: string; /** * Header text for iFrames for this site. Must be less than or equal to 2000 * characters long. */ - iFrameHeader: string; + iFrameHeader?: string; } /** * Creative List Response @@ -3106,16 +3110,16 @@ export namespace dfareporting_v3_0 { /** * Creative collection. */ - creatives: Schema$Creative[]; + creatives?: Schema$Creative[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents fields that are compatible to be selected for a report of type @@ -3126,27 +3130,27 @@ export namespace dfareporting_v3_0 { * Dimensions which are compatible to be selected in the * "breakdown" section of the report. */ - breakdown: Schema$Dimension[]; + breakdown?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#crossDimensionReachReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected in the * "overlapMetricNames" section of the report. */ - overlapMetrics: Schema$Metric[]; + overlapMetrics?: Schema$Metric[]; } /** * A custom floodlight variable. @@ -3156,17 +3160,17 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#customFloodlightVariable". */ - kind: string; + kind?: string; /** * The type of custom floodlight variable to supply a value for. These map * to the "u[1-20]=" in the tags. */ - type: string; + type?: string; /** * The value of the custom floodlight variable. The length of string must * not exceed 50 characters. */ - value: string; + value?: string; } /** * Represents a Custom Rich Media Events group. @@ -3176,12 +3180,12 @@ export namespace dfareporting_v3_0 { * List of custom rich media event IDs. Dimension values must be all of type * dfa:richMediaEventTypeIdAndName. */ - filteredEventIds: Schema$DimensionValue[]; + filteredEventIds?: Schema$DimensionValue[]; /** * The kind of resource this is, in this case * dfareporting#customRichMediaEvents. */ - kind: string; + kind?: string; } /** * Represents a date range. @@ -3191,20 +3195,20 @@ export namespace dfareporting_v3_0 { * The end date of the date range, inclusive. A string of the format: * "yyyy-MM-dd". */ - endDate: string; + endDate?: string; /** * The kind of resource this is, in this case dfareporting#dateRange. */ - kind: string; + kind?: string; /** * The date range relative to the date of when the report is run. */ - relativeDateRange: string; + relativeDateRange?: string; /** * The start date of the date range, inclusive. A string of the format: * "yyyy-MM-dd". */ - startDate: string; + startDate?: string; } /** * Day Part Targeting. @@ -3216,7 +3220,7 @@ export namespace dfareporting_v3_0 { * "WEDNESDAY" - "THURSDAY" - "FRIDAY" - * "SATURDAY" */ - daysOfWeek: string[]; + daysOfWeek?: string[]; /** * Hours of the day when the ad will serve, where 0 is midnight to 1 AM and * 23 is 11 PM to midnight. Can be specified with days of week, in which @@ -3226,12 +3230,12 @@ export namespace dfareporting_v3_0 { * Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values * are 0 to 23, inclusive. */ - hoursOfDay: number[]; + hoursOfDay?: number[]; /** * Whether or not to use the user's local time. If false, the * America/New York time zone applies. */ - userLocalTime: boolean; + userLocalTime?: boolean; } /** * Properties of inheriting and overriding the default click-through event @@ -3243,12 +3247,12 @@ export namespace dfareporting_v3_0 { * ID of the click-through event tag to apply to all ads in this * entity's scope. */ - defaultClickThroughEventTagId: string; + defaultClickThroughEventTagId?: string; /** * Whether this entity should override the inherited default click-through * event tag with its own defined value. */ - overrideInheritedEventTag: boolean; + overrideInheritedEventTag?: boolean; } /** * Delivery Schedule. @@ -3258,25 +3262,25 @@ export namespace dfareporting_v3_0 { * Limit on the number of times an individual user can be served the ad * within a specified period of time. */ - frequencyCap: Schema$FrequencyCap; + frequencyCap?: Schema$FrequencyCap; /** * Whether or not hard cutoff is enabled. If true, the ad will not serve * after the end date and time. Otherwise the ad will continue to be served * until it has reached its delivery goals. */ - hardCutoff: boolean; + hardCutoff?: boolean; /** * Impression ratio for this ad. This ratio determines how often each ad is * served relative to the others. For example, if ad A has an impression * ratio of 1 and ad B has an impression ratio of 3, then DCM will serve ad * B three times as often as ad A. Acceptable values are 1 to 10, inclusive. */ - impressionRatio: string; + impressionRatio?: string; /** * Serving priority of an ad, with respect to other ads. The lower the * priority number, the greater the priority with which it is served. */ - priority: string; + priority?: string; } /** * DFP Settings @@ -3285,24 +3289,24 @@ export namespace dfareporting_v3_0 { /** * DFP network code for this directory site. */ - dfpNetworkCode: string; + dfpNetworkCode?: string; /** * DFP network name for this directory site. */ - dfpNetworkName: string; + dfpNetworkName?: string; /** * Whether this directory site accepts programmatic placements. */ - programmaticPlacementAccepted: boolean; + programmaticPlacementAccepted?: boolean; /** * Whether this directory site is available only via DoubleClick Publisher * Portal. */ - publisherPortalOnly: boolean; + publisherPortalOnly?: boolean; /** * Whether this directory site accepts publisher-paid tags. */ - pubPaidPlacementAccepted: boolean; + pubPaidPlacementAccepted?: boolean; } /** * Represents a dimension. @@ -3311,11 +3315,11 @@ export namespace dfareporting_v3_0 { /** * The kind of resource this is, in this case dfareporting#dimension. */ - kind: string; + kind?: string; /** * The dimension name, e.g. dfa:advertiser */ - name: string; + name?: string; } /** * Represents a dimension filter. @@ -3324,15 +3328,15 @@ export namespace dfareporting_v3_0 { /** * The name of the dimension to filter. */ - dimensionName: string; + dimensionName?: string; /** * The kind of resource this is, in this case dfareporting#dimensionFilter. */ - kind: string; + kind?: string; /** * The value of the dimension to filter. */ - value: string; + value?: string; } /** * Represents a DimensionValue resource. @@ -3341,19 +3345,19 @@ export namespace dfareporting_v3_0 { /** * The name of the dimension. */ - dimensionName: string; + dimensionName?: string; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID associated with the value if available. */ - id: string; + id?: string; /** * The kind of resource this is, in this case dfareporting#dimensionValue. */ - kind: string; + kind?: string; /** * Determines how the 'value' field is matched when filtering. If * not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, @@ -3362,11 +3366,11 @@ export namespace dfareporting_v3_0 { * dimensions ('dfa:paidSearch*') allow a matchType other than * EXACT. */ - matchType: string; + matchType?: string; /** * The value of the dimension. */ - value: string; + value?: string; } /** * Represents the list of DimensionValue resources. @@ -3375,22 +3379,22 @@ export namespace dfareporting_v3_0 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The dimension values returned in this response. */ - items: Schema$DimensionValue[]; + items?: Schema$DimensionValue[]; /** * The kind of list this is, in this case dfareporting#dimensionValueList. */ - kind: string; + kind?: string; /** * Continuation token used to page through dimension values. To retrieve the * next page of results, set the next request's "pageToken" to * the value of this field. The page token is only valid for a limited * amount of time and should not be persisted. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents a DimensionValuesRequest. @@ -3399,26 +3403,26 @@ export namespace dfareporting_v3_0 { /** * The name of the dimension for which values should be requested. */ - dimensionName: string; + dimensionName?: string; /** * The end date of the date range for which to retrieve dimension values. A * string of the format "yyyy-MM-dd". */ - endDate: string; + endDate?: string; /** * The list of filters by which to filter values. The filters are ANDed. */ - filters: Schema$DimensionFilter[]; + filters?: Schema$DimensionFilter[]; /** * The kind of request this is, in this case * dfareporting#dimensionValueRequest. */ - kind: string; + kind?: string; /** * The start date of the date range for which to retrieve dimension values. * A string of the format "yyyy-MM-dd". */ - startDate: string; + startDate?: string; } /** * DirectorySites contains properties of a website from the Site Directory. @@ -3429,15 +3433,15 @@ export namespace dfareporting_v3_0 { /** * Whether this directory site is active. */ - active: boolean; + active?: boolean; /** * Directory site contacts. */ - contactAssignments: Schema$DirectorySiteContactAssignment[]; + contactAssignments?: Schema$DirectorySiteContactAssignment[]; /** * Country ID of this directory site. This is a read-only field. */ - countryId: string; + countryId?: string; /** * Currency ID of this directory site. This is a read-only field. Possible * values are: - "1" for USD - "2" for GBP - @@ -3460,54 +3464,54 @@ export namespace dfareporting_v3_0 { * for BGN - "48" for HRK - "49" for MXN - * "50" for NGN */ - currencyId: string; + currencyId?: string; /** * Description of this directory site. This is a read-only field. */ - description: string; + description?: string; /** * ID of this directory site. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this directory site. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Tag types for regular placements. Acceptable values are: - * "STANDARD" - "IFRAME_JAVASCRIPT_INPAGE" - * "INTERNAL_REDIRECT_INPAGE" - "JAVASCRIPT_INPAGE" */ - inpageTagFormats: string[]; + inpageTagFormats?: string[]; /** * Tag types for interstitial placements. Acceptable values are: - * "IFRAME_JAVASCRIPT_INTERSTITIAL" - * "INTERNAL_REDIRECT_INTERSTITIAL" - * "JAVASCRIPT_INTERSTITIAL" */ - interstitialTagFormats: string[]; + interstitialTagFormats?: string[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySite". */ - kind: string; + kind?: string; /** * Name of this directory site. */ - name: string; + name?: string; /** * Parent directory site ID. */ - parentId: string; + parentId?: string; /** * Directory site settings. */ - settings: Schema$DirectorySiteSettings; + settings?: Schema$DirectorySiteSettings; /** * URL of this directory site. */ - url: string; + url?: string; } /** * Contains properties of a Site Directory contact. @@ -3516,45 +3520,45 @@ export namespace dfareporting_v3_0 { /** * Address of this directory site contact. */ - address: string; + address?: string; /** * Email address of this directory site contact. */ - email: string; + email?: string; /** * First name of this directory site contact. */ - firstName: string; + firstName?: string; /** * ID of this directory site contact. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySiteContact". */ - kind: string; + kind?: string; /** * Last name of this directory site contact. */ - lastName: string; + lastName?: string; /** * Phone number of this directory site contact. */ - phone: string; + phone?: string; /** * Directory site contact role. */ - role: string; + role?: string; /** * Title or designation of this directory site contact. */ - title: string; + title?: string; /** * Directory site contact type. */ - type: string; + type?: string; } /** * Directory Site Contact Assignment @@ -3564,13 +3568,13 @@ export namespace dfareporting_v3_0 { * ID of this directory site contact. This is a read-only, auto-generated * field. */ - contactId: string; + contactId?: string; /** * Visibility of this directory site contact assignment. When set to PUBLIC * this contact assignment is visible to all account and agency users; when * set to PRIVATE it is visible only to the site. */ - visibility: string; + visibility?: string; } /** * Directory Site Contact List Response @@ -3579,16 +3583,16 @@ export namespace dfareporting_v3_0 { /** * Directory site contact collection */ - directorySiteContacts: Schema$DirectorySiteContact[]; + directorySiteContacts?: Schema$DirectorySiteContact[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySiteContactsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Directory Site Settings @@ -3597,33 +3601,33 @@ export namespace dfareporting_v3_0 { /** * Whether this directory site has disabled active view creatives. */ - activeViewOptOut: boolean; + activeViewOptOut?: boolean; /** * Directory site DFP settings. */ - dfpSettings: Schema$DfpSettings; + dfpSettings?: Schema$DfpSettings; /** * Whether this site accepts in-stream video ads. */ - instreamVideoPlacementAccepted: boolean; + instreamVideoPlacementAccepted?: boolean; /** * Whether this site accepts interstitial ads. */ - interstitialPlacementAccepted: boolean; + interstitialPlacementAccepted?: boolean; /** * Whether this directory site has disabled Nielsen OCR reach ratings. */ - nielsenOcrOptOut: boolean; + nielsenOcrOptOut?: boolean; /** * Whether this directory site has disabled generation of Verification ins * tags. */ - verificationTagOptOut: boolean; + verificationTagOptOut?: boolean; /** * Whether this directory site has disabled active view for in-stream video * creatives. This is a read-only field. */ - videoActiveViewOptOut: boolean; + videoActiveViewOptOut?: boolean; } /** * Directory Site List Response @@ -3632,16 +3636,16 @@ export namespace dfareporting_v3_0 { /** * Directory site collection. */ - directorySites: Schema$DirectorySite[]; + directorySites?: Schema$DirectorySite[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#directorySitesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a dynamic targeting key. Dynamic targeting keys are @@ -3656,22 +3660,22 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#dynamicTargetingKey". */ - kind: string; + kind?: string; /** * Name of this dynamic targeting key. This is a required field. Must be * less than 256 characters long and cannot contain commas. All characters * are converted to lowercase. */ - name: string; + name?: string; /** * ID of the object of this dynamic targeting key. This is a required field. */ - objectId: string; + objectId?: string; /** * Type of the object of this dynamic targeting key. This is a required * field. */ - objectType: string; + objectType?: string; } /** * Dynamic Targeting Key List Response @@ -3680,12 +3684,12 @@ export namespace dfareporting_v3_0 { /** * Dynamic targeting key collection. */ - dynamicTargetingKeys: Schema$DynamicTargetingKey[]; + dynamicTargetingKeys?: Schema$DynamicTargetingKey[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#dynamicTargetingKeysListResponse". */ - kind: string; + kind?: string; } /** * A description of how user IDs are encrypted. @@ -3695,22 +3699,22 @@ export namespace dfareporting_v3_0 { * The encryption entity ID. This should match the encryption configuration * for ad serving or Data Transfer. */ - encryptionEntityId: string; + encryptionEntityId?: string; /** * The encryption entity type. This should match the encryption * configuration for ad serving or Data Transfer. */ - encryptionEntityType: string; + encryptionEntityType?: string; /** * Describes whether the encrypted cookie was received from ad serving (the * %m macro) or from Data Transfer. */ - encryptionSource: string; + encryptionSource?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#encryptionInfo". */ - kind: string; + kind?: string; } /** * Contains properties of an event tag. @@ -3720,96 +3724,96 @@ export namespace dfareporting_v3_0 { * Account ID of this event tag. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this event tag. This field or the campaignId field is * required on insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Campaign ID of this event tag. This field or the advertiserId field is * required on insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * Whether this event tag should be automatically enabled for all of the * advertiser's campaigns and ads. */ - enabledByDefault: boolean; + enabledByDefault?: boolean; /** * Whether to remove this event tag from ads that are trafficked through * DoubleClick Bid Manager to Ad Exchange. This may be useful if the event * tag uses a pixel that is unapproved for Ad Exchange bids on one or more * networks, such as the Google Display Network. */ - excludeFromAdxRequests: boolean; + excludeFromAdxRequests?: boolean; /** * ID of this event tag. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#eventTag". */ - kind: string; + kind?: string; /** * Name of this event tag. This is a required field and must be less than * 256 characters long. */ - name: string; + name?: string; /** * Site filter type for this event tag. If no type is specified then the * event tag will be applied to all sites. */ - siteFilterType: string; + siteFilterType?: string; /** * Filter list of site IDs associated with this event tag. The * siteFilterType determines whether this is a whitelist or blacklist * filter. */ - siteIds: string[]; + siteIds?: string[]; /** * Whether this tag is SSL-compliant or not. This is a read-only field. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Status of this event tag. Must be ENABLED for this event tag to fire. * This is a required field. */ - status: string; + status?: string; /** * Subaccount ID of this event tag. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; /** * Event tag type. Can be used to specify whether to use a third-party * pixel, a third-party JavaScript URL, or a third-party click-through URL * for either impression or click tracking. This is a required field. */ - type: string; + type?: string; /** * Payload URL for this event tag. The URL on a click-through event tag * should have a landing page URL appended to the end of it. This field is * required on insertion. */ - url: string; + url?: string; /** * Number of times the landing page URL should be URL-escaped before being * appended to the click-through event tag URL. Only applies to * click-through event tags as specified by the event tag type. */ - urlEscapeLevels: number; + urlEscapeLevels?: number; } /** * Event tag override information. @@ -3818,11 +3822,11 @@ export namespace dfareporting_v3_0 { /** * Whether this override is enabled. */ - enabled: boolean; + enabled?: boolean; /** * ID of this event tag override. This is a read-only, auto-generated field. */ - id: string; + id?: string; } /** * Event Tag List Response @@ -3831,12 +3835,12 @@ export namespace dfareporting_v3_0 { /** * Event tag collection. */ - eventTags: Schema$EventTag[]; + eventTags?: Schema$EventTag[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#eventTagsListResponse". */ - kind: string; + kind?: string; } /** * Represents a File resource. A file contains the metadata for a report run. @@ -3848,45 +3852,45 @@ export namespace dfareporting_v3_0 { * The date range for which the file has report data. The date range will * always be the absolute date range for which the report is run. */ - dateRange: Schema$DateRange; + dateRange?: Schema$DateRange; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The filename of the file. */ - fileName: string; + fileName?: string; /** * The output format of the report. Only available once the file is * available. */ - format: string; + format?: string; /** * The unique ID of this report file. */ - id: string; + id?: string; /** * The kind of resource this is, in this case dfareporting#file. */ - kind: string; + kind?: string; /** * The timestamp in milliseconds since epoch when this file was last * modified. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * The ID of the report this file was generated from. */ - reportId: string; + reportId?: string; /** * The status of the report file. */ - status: string; + status?: string; /** * The URLs where the completed report file can be downloaded. */ - urls: any; + urls?: any; } /** * Represents the list of File resources. @@ -3895,22 +3899,22 @@ export namespace dfareporting_v3_0 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The files returned in this response. */ - items: Schema$File[]; + items?: Schema$File[]; /** * The kind of list this is, in this case dfareporting#fileList. */ - kind: string; + kind?: string; /** * Continuation token used to page through files. To retrieve the next page * of results, set the next request's "pageToken" to the value * of this field. The page token is only valid for a limited amount of time * and should not be persisted. */ - nextPageToken: string; + nextPageToken?: string; } /** * Flight @@ -3919,19 +3923,19 @@ export namespace dfareporting_v3_0 { /** * Inventory item flight end date. */ - endDate: string; + endDate?: string; /** * Rate or cost of this flight. */ - rateOrCost: string; + rateOrCost?: string; /** * Inventory item flight start date. */ - startDate: string; + startDate?: string; /** * Units of this flight. */ - units: string; + units?: string; } /** * Floodlight Activity GenerateTag Response @@ -3941,18 +3945,18 @@ export namespace dfareporting_v3_0 { * Generated tag for this Floodlight activity. For global site tags, this is * the event snippet. */ - floodlightActivityTag: string; + floodlightActivityTag?: string; /** * The global snippet section of a global site tag. The global site tag sets * new cookies on your domain, which will store a unique identifier for a * user or the ad click that brought the user to your site. Learn more. */ - globalSiteTagGlobalSnippet: string; + globalSiteTagGlobalSnippet?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivitiesGenerateTagResponse". */ - kind: string; + kind?: string; } /** * Floodlight Activity List Response @@ -3961,16 +3965,16 @@ export namespace dfareporting_v3_0 { /** * Floodlight activity collection. */ - floodlightActivities: Schema$FloodlightActivity[]; + floodlightActivities?: Schema$FloodlightActivity[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivitiesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Contains properties of a Floodlight activity. @@ -3980,130 +3984,130 @@ export namespace dfareporting_v3_0 { * Account ID of this floodlight activity. This is a read-only field that * can be left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this floodlight activity. If this field is left blank, * the value will be copied over either from the activity group's * advertiser or the existing activity's advertiser. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Code type used for cache busting in the generated tag. Applicable only * when floodlightActivityGroupType is COUNTER and countingMethod is * STANDARD_COUNTING or UNIQUE_COUNTING. */ - cacheBustingType: string; + cacheBustingType?: string; /** * Counting method for conversions for this floodlight activity. This is a * required field. */ - countingMethod: string; + countingMethod?: string; /** * Dynamic floodlight tags. */ - defaultTags: Schema$FloodlightActivityDynamicTag[]; + defaultTags?: Schema$FloodlightActivityDynamicTag[]; /** * URL where this tag will be deployed. If specified, must be less than 256 * characters long. */ - expectedUrl: string; + expectedUrl?: string; /** * Floodlight activity group ID of this floodlight activity. This is a * required field. */ - floodlightActivityGroupId: string; + floodlightActivityGroupId?: string; /** * Name of the associated floodlight activity group. This is a read-only * field. */ - floodlightActivityGroupName: string; + floodlightActivityGroupName?: string; /** * Tag string of the associated floodlight activity group. This is a * read-only field. */ - floodlightActivityGroupTagString: string; + floodlightActivityGroupTagString?: string; /** * Type of the associated floodlight activity group. This is a read-only * field. */ - floodlightActivityGroupType: string; + floodlightActivityGroupType?: string; /** * Floodlight configuration ID of this floodlight activity. If this field is * left blank, the value will be copied over either from the activity * group's floodlight configuration or from the existing activity's * floodlight configuration. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * Dimension value for the ID of the floodlight configuration. This is a * read-only, auto-generated field. */ - floodlightConfigurationIdDimensionValue: Schema$DimensionValue; + floodlightConfigurationIdDimensionValue?: Schema$DimensionValue; /** * The type of Floodlight tag this activity will generate. This is a * required field. */ - floodlightTagType: string; + floodlightTagType?: string; /** * Whether this activity is archived. */ - hidden: boolean; + hidden?: boolean; /** * ID of this floodlight activity. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Dimension value for the ID of this floodlight activity. This is a * read-only, auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivity". */ - kind: string; + kind?: string; /** * Name of this floodlight activity. This is a required field. Must be less * than 129 characters long and cannot contain quotes. */ - name: string; + name?: string; /** * General notes or implementation instructions for the tag. */ - notes: string; + notes?: string; /** * Publisher dynamic floodlight tags. */ - publisherTags: Schema$FloodlightActivityPublisherDynamicTag[]; + publisherTags?: Schema$FloodlightActivityPublisherDynamicTag[]; /** * Whether this tag should use SSL. */ - secure: boolean; + secure?: boolean; /** * Whether the floodlight activity is SSL-compliant. This is a read-only * field, its value detected by the system from the floodlight tags. */ - sslCompliant: boolean; + sslCompliant?: boolean; /** * Whether this floodlight activity must be SSL-compliant. */ - sslRequired: boolean; + sslRequired?: boolean; /** * Subaccount ID of this floodlight activity. This is a read-only field that * can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Tag format type for the floodlight activity. If left blank, the tag * format will default to HTML. */ - tagFormat: string; + tagFormat?: string; /** * Value of the cat= parameter in the floodlight tag, which the ad servers * use to identify the activity. This is optional: if empty, a new tag @@ -4112,13 +4116,13 @@ export namespace dfareporting_v3_0 { * string must also be unique among activities of the same activity group. * This field is read-only after insertion. */ - tagString: string; + tagString?: string; /** * List of the user-defined variables used by this conversion tag. These map * to the "u[1-100]=" in the tags. Each of these can have a user * defined type. Acceptable values are U1 to U100, inclusive. */ - userDefinedVariableTypes: string[]; + userDefinedVariableTypes?: string[]; } /** * Dynamic Tag @@ -4127,15 +4131,15 @@ export namespace dfareporting_v3_0 { /** * ID of this dynamic tag. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Name of this tag. */ - name: string; + name?: string; /** * Tag code. */ - tag: string; + tag?: string; } /** * Contains properties of a Floodlight activity group. @@ -4145,54 +4149,54 @@ export namespace dfareporting_v3_0 { * Account ID of this floodlight activity group. This is a read-only field * that can be left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this floodlight activity group. If this field is left * blank, the value will be copied over either from the floodlight * configuration's advertiser or from the existing activity group's * advertiser. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Floodlight configuration ID of this floodlight activity group. This is a * required field. */ - floodlightConfigurationId: string; + floodlightConfigurationId?: string; /** * Dimension value for the ID of the floodlight configuration. This is a * read-only, auto-generated field. */ - floodlightConfigurationIdDimensionValue: Schema$DimensionValue; + floodlightConfigurationIdDimensionValue?: Schema$DimensionValue; /** * ID of this floodlight activity group. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Dimension value for the ID of this floodlight activity group. This is a * read-only, auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivityGroup". */ - kind: string; + kind?: string; /** * Name of this floodlight activity group. This is a required field. Must be * less than 65 characters long and cannot contain quotes. */ - name: string; + name?: string; /** * Subaccount ID of this floodlight activity group. This is a read-only * field that can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Value of the type= parameter in the floodlight tag, which the ad servers * use to identify the activity group that the activity belongs to. This is @@ -4202,12 +4206,12 @@ export namespace dfareporting_v3_0 { * activity groups of the same floodlight configuration. This field is * read-only after insertion. */ - tagString: string; + tagString?: string; /** * Type of the floodlight activity group. This is a required field that is * read-only after insertion. */ - type: string; + type?: string; } /** * Floodlight Activity Group List Response @@ -4216,16 +4220,16 @@ export namespace dfareporting_v3_0 { /** * Floodlight activity group collection. */ - floodlightActivityGroups: Schema$FloodlightActivityGroup[]; + floodlightActivityGroups?: Schema$FloodlightActivityGroup[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightActivityGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Publisher Dynamic Tag @@ -4234,30 +4238,30 @@ export namespace dfareporting_v3_0 { /** * Whether this tag is applicable only for click-throughs. */ - clickThrough: boolean; + clickThrough?: boolean; /** * Directory site ID of this dynamic tag. This is a write-only field that * can be used as an alternative to the siteId field. When this resource is * retrieved, only the siteId field will be populated. */ - directorySiteId: string; + directorySiteId?: string; /** * Dynamic floodlight tag. */ - dynamicTag: Schema$FloodlightActivityDynamicTag; + dynamicTag?: Schema$FloodlightActivityDynamicTag; /** * Site ID of this dynamic tag. */ - siteId: string; + siteId?: string; /** * Dimension value for the ID of the site. This is a read-only, * auto-generated field. */ - siteIdDimensionValue: Schema$DimensionValue; + siteIdDimensionValue?: Schema$DimensionValue; /** * Whether this tag is applicable only for view-throughs. */ - viewThrough: boolean; + viewThrough?: boolean; } /** * Contains properties of a Floodlight configuration. @@ -4267,79 +4271,79 @@ export namespace dfareporting_v3_0 { * Account ID of this floodlight configuration. This is a read-only field * that can be left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of the parent advertiser of this floodlight configuration. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether advertiser data is shared with Google Analytics. */ - analyticsDataSharingEnabled: boolean; + analyticsDataSharingEnabled?: boolean; /** * Whether the exposure-to-conversion report is enabled. This report shows * detailed pathway information on up to 10 of the most recent ad exposures * seen by a user before converting. */ - exposureToConversionEnabled: boolean; + exposureToConversionEnabled?: boolean; /** * Day that will be counted as the first day of the week in reports. This is * a required field. */ - firstDayOfWeek: string; + firstDayOfWeek?: string; /** * ID of this floodlight configuration. This is a read-only, auto-generated * field. */ - id: string; + id?: string; /** * Dimension value for the ID of this floodlight configuration. This is a * read-only, auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Whether in-app attribution tracking is enabled. */ - inAppAttributionTrackingEnabled: boolean; + inAppAttributionTrackingEnabled?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightConfiguration". */ - kind: string; + kind?: string; /** * Lookback window settings for this floodlight configuration. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Types of attribution options for natural search conversions. */ - naturalSearchConversionAttributionOption: string; + naturalSearchConversionAttributionOption?: string; /** * Settings for DCM Omniture integration. */ - omnitureSettings: Schema$OmnitureSettings; + omnitureSettings?: Schema$OmnitureSettings; /** * Subaccount ID of this floodlight configuration. This is a read-only field * that can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Configuration settings for dynamic and image floodlight tags. */ - tagSettings: Schema$TagSettings; + tagSettings?: Schema$TagSettings; /** * List of third-party authentication tokens enabled for this configuration. */ - thirdPartyAuthenticationTokens: Schema$ThirdPartyAuthenticationToken[]; + thirdPartyAuthenticationTokens?: Schema$ThirdPartyAuthenticationToken[]; /** * List of user defined variables enabled for this configuration. */ - userDefinedVariableConfigurations: + userDefinedVariableConfigurations?: Schema$UserDefinedVariableConfiguration[]; } /** @@ -4349,12 +4353,12 @@ export namespace dfareporting_v3_0 { /** * Floodlight configuration collection. */ - floodlightConfigurations: Schema$FloodlightConfiguration[]; + floodlightConfigurations?: Schema$FloodlightConfiguration[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#floodlightConfigurationsListResponse". */ - kind: string; + kind?: string; } /** * Represents fields that are compatible to be selected for a report of type @@ -4365,22 +4369,22 @@ export namespace dfareporting_v3_0 { * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensions" section of the report. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#floodlightReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; } /** * Frequency Cap. @@ -4390,12 +4394,12 @@ export namespace dfareporting_v3_0 { * Duration of time, in seconds, for this frequency cap. The maximum * duration is 90 days. Acceptable values are 1 to 7776000, inclusive. */ - duration: string; + duration?: string; /** * Number of times an individual user can be served the ad within the * specified duration. Acceptable values are 1 to 15, inclusive. */ - impressions: string; + impressions?: string; } /** * FsCommand. @@ -4405,24 +4409,24 @@ export namespace dfareporting_v3_0 { * Distance from the left of the browser.Applicable when positionOption is * DISTANCE_FROM_TOP_LEFT_CORNER. */ - left: number; + left?: number; /** * Position in the browser where the window will open. */ - positionOption: string; + positionOption?: string; /** * Distance from the top of the browser. Applicable when positionOption is * DISTANCE_FROM_TOP_LEFT_CORNER. */ - top: number; + top?: number; /** * Height of the window. */ - windowHeight: number; + windowHeight?: number; /** * Width of the window. */ - windowWidth: number; + windowWidth?: number; } /** * Geographical Targeting. @@ -4434,7 +4438,7 @@ export namespace dfareporting_v3_0 { * targeting a city, do not target or exclude the country of the city, and * do not target the metro or region of the city. */ - cities: Schema$City[]; + cities?: Schema$City[]; /** * Countries to be targeted or excluded from targeting, depending on the * setting of the excludeCountries field. For each country only dartId is @@ -4442,33 +4446,33 @@ export namespace dfareporting_v3_0 { * inserted or updated. If targeting or excluding a country, do not target * regions, cities, metros, or postal codes in the same country. */ - countries: Schema$Country[]; + countries?: Schema$Country[]; /** * Whether or not to exclude the countries in the countries field from * targeting. If false, the countries field refers to countries which will * be targeted by the ad. */ - excludeCountries: boolean; + excludeCountries?: boolean; /** * Metros to be targeted. For each metro only dmaId is required. The other * fields are populated automatically when the ad is inserted or updated. If * targeting a metro, do not target or exclude the country of the metro. */ - metros: Schema$Metro[]; + metros?: Schema$Metro[]; /** * Postal codes to be targeted. For each postal code only id is required. * The other fields are populated automatically when the ad is inserted or * updated. If targeting a postal code, do not target or exclude the country * of the postal code. */ - postalCodes: Schema$PostalCode[]; + postalCodes?: Schema$PostalCode[]; /** * Regions to be targeted. For each region only dartId is required. The * other fields are populated automatically when the ad is inserted or * updated. If targeting a region, do not target or exclude the country of * the region. */ - regions: Schema$Region[]; + regions?: Schema$Region[]; } /** * Represents a buy from the DoubleClick Planning inventory store. @@ -4477,89 +4481,89 @@ export namespace dfareporting_v3_0 { /** * Account ID of this inventory item. */ - accountId: string; + accountId?: string; /** * Ad slots of this inventory item. If this inventory item represents a * standalone placement, there will be exactly one ad slot. If this * inventory item represents a placement group, there will be more than one * ad slot, each representing one child placement in that placement group. */ - adSlots: Schema$AdSlot[]; + adSlots?: Schema$AdSlot[]; /** * Advertiser ID of this inventory item. */ - advertiserId: string; + advertiserId?: string; /** * Content category ID of this inventory item. */ - contentCategoryId: string; + contentCategoryId?: string; /** * Estimated click-through rate of this inventory item. */ - estimatedClickThroughRate: string; + estimatedClickThroughRate?: string; /** * Estimated conversion rate of this inventory item. */ - estimatedConversionRate: string; + estimatedConversionRate?: string; /** * ID of this inventory item. */ - id: string; + id?: string; /** * Whether this inventory item is in plan. */ - inPlan: boolean; + inPlan?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#inventoryItem". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this inventory item. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this inventory item. For standalone inventory items, this is the * same name as that of its only ad slot. For group inventory items, this * can differ from the name of any of its ad slots. */ - name: string; + name?: string; /** * Negotiation channel ID of this inventory item. */ - negotiationChannelId: string; + negotiationChannelId?: string; /** * Order ID of this inventory item. */ - orderId: string; + orderId?: string; /** * Placement strategy ID of this inventory item. */ - placementStrategyId: string; + placementStrategyId?: string; /** * Pricing of this inventory item. */ - pricing: Schema$Pricing; + pricing?: Schema$Pricing; /** * Project ID of this inventory item. */ - projectId: string; + projectId?: string; /** * RFP ID of this inventory item. */ - rfpId: string; + rfpId?: string; /** * ID of the site this inventory item is associated with. */ - siteId: string; + siteId?: string; /** * Subaccount ID of this inventory item. */ - subaccountId: string; + subaccountId?: string; /** * Type of inventory item. */ - type: string; + type?: string; } /** * Inventory item List Response @@ -4568,16 +4572,16 @@ export namespace dfareporting_v3_0 { /** * Inventory item collection */ - inventoryItems: Schema$InventoryItem[]; + inventoryItems?: Schema$InventoryItem[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#inventoryItemsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; } /** * Key Value Targeting Expression. @@ -4586,7 +4590,7 @@ export namespace dfareporting_v3_0 { /** * Keyword expression being targeted by the ad. */ - expression: string; + expression?: string; } /** * Contains information about where a user's browser is taken after the @@ -4596,29 +4600,29 @@ export namespace dfareporting_v3_0 { /** * Advertiser ID of this landing page. This is a required field. */ - advertiserId: string; + advertiserId?: string; /** * Whether this landing page has been archived. */ - archived: boolean; + archived?: boolean; /** * ID of this landing page. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#landingPage". */ - kind: string; + kind?: string; /** * Name of this landing page. This is a required field. It must be less than * 256 characters long. */ - name: string; + name?: string; /** * URL of this landing page. This is a required field. */ - url: string; + url?: string; } /** * Contains information about a language that can be targeted by ads. @@ -4628,22 +4632,22 @@ export namespace dfareporting_v3_0 { * Language ID of this language. This is the ID used for targeting and * generating reports. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#language". */ - kind: string; + kind?: string; /** * Format of language code is an ISO 639 two-letter language code optionally * followed by an underscore followed by an ISO 3166 code. Examples are * "en" for English or "zh_CN" for Simplified Chinese. */ - languageCode: string; + languageCode?: string; /** * Name of this language. */ - name: string; + name?: string; } /** * Language List Response @@ -4653,11 +4657,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#languagesListResponse". */ - kind: string; + kind?: string; /** * Language collection. */ - languages: Schema$Language[]; + languages?: Schema$Language[]; } /** * Language Targeting. @@ -4668,7 +4672,7 @@ export namespace dfareporting_v3_0 { * required. The other fields are populated automatically when the ad is * inserted or updated. */ - languages: Schema$Language[]; + languages?: Schema$Language[]; } /** * Modification timestamp. @@ -4677,7 +4681,7 @@ export namespace dfareporting_v3_0 { /** * Timestamp of the last change in milliseconds since epoch. */ - time: string; + time?: string; } /** * A group clause made up of list population terms representing constraints @@ -4688,7 +4692,7 @@ export namespace dfareporting_v3_0 { * Terms of this list population clause. Each clause is made up of list * population terms representing constraints and are joined by ORs. */ - terms: Schema$ListPopulationTerm[]; + terms?: Schema$ListPopulationTerm[]; } /** * Remarketing List Population Rule. @@ -4698,18 +4702,18 @@ export namespace dfareporting_v3_0 { * Floodlight activity ID associated with this rule. This field can be left * blank. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Name of floodlight activity associated with this rule. This is a * read-only, auto-generated field. */ - floodlightActivityName: string; + floodlightActivityName?: string; /** * Clauses that make up this list population rule. Clauses are joined by * ANDs, and the clauses themselves are made up of list population terms * which are joined by ORs. */ - listPopulationClauses: Schema$ListPopulationClause[]; + listPopulationClauses?: Schema$ListPopulationClause[]; } /** * Remarketing List Population Rule Term. @@ -4721,23 +4725,23 @@ export namespace dfareporting_v3_0 { * is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by * default. */ - contains: boolean; + contains?: boolean; /** * Whether to negate the comparison result of this term during rule * evaluation. This field is only relevant when type is left unset or set to * CUSTOM_VARIABLE_TERM or REFERRER_TERM. */ - negation: boolean; + negation?: boolean; /** * Comparison operator of this term. This field is only relevant when type * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. */ - operator: string; + operator?: string; /** * ID of the list in question. This field is only relevant when type is set * to LIST_MEMBERSHIP_TERM. */ - remarketingListId: string; + remarketingListId?: string; /** * List population term type determines the applicable fields in this * object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, @@ -4746,24 +4750,24 @@ export namespace dfareporting_v3_0 { * applicable. If set to REFERRER_TERM then operator, value, and negation * are applicable. */ - type: string; + type?: string; /** * Literal to compare the variable to. This field is only relevant when type * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. */ - value: string; + value?: string; /** * Friendly name of this term's variable. This is a read-only, * auto-generated field. This field is only relevant when type is left unset * or set to CUSTOM_VARIABLE_TERM. */ - variableFriendlyName: string; + variableFriendlyName?: string; /** * Name of the variable (U1, U2, etc.) being compared in this term. This * field is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or * REFERRER_TERM. */ - variableName: string; + variableName?: string; } /** * Remarketing List Targeting Expression. @@ -4772,7 +4776,7 @@ export namespace dfareporting_v3_0 { /** * Expression describing which lists are being targeted by the ad. */ - expression: string; + expression?: string; } /** * Lookback configuration settings. @@ -4785,7 +4789,7 @@ export namespace dfareporting_v3_0 { * default value for your account will be used. Acceptable values are 0 to * 90, inclusive. */ - clickDuration: number; + clickDuration?: number; /** * Lookback window, in days, from the last time a given user viewed one of * your ads. If you enter 0, impressions will not be considered as @@ -4793,7 +4797,7 @@ export namespace dfareporting_v3_0 { * the default value for your account will be used. Acceptable values are 0 * to 90, inclusive. */ - postImpressionActivitiesDuration: number; + postImpressionActivitiesDuration?: number; } /** * Represents a metric. @@ -4802,11 +4806,11 @@ export namespace dfareporting_v3_0 { /** * The kind of resource this is, in this case dfareporting#metric. */ - kind: string; + kind?: string; /** * The metric name, e.g. dfa:impressions */ - name: string; + name?: string; } /** * Contains information about a metro region that can be targeted by ads. @@ -4815,33 +4819,33 @@ export namespace dfareporting_v3_0 { /** * Country code of the country to which this metro region belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this metro region belongs. */ - countryDartId: string; + countryDartId?: string; /** * DART ID of this metro region. */ - dartId: string; + dartId?: string; /** * DMA ID of this metro region. This is the ID used for targeting and * generating reports, and is equivalent to metro_code. */ - dmaId: string; + dmaId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#metro". */ - kind: string; + kind?: string; /** * Metro code of this metro region. This is equivalent to dma_id. */ - metroCode: string; + metroCode?: string; /** * Name of this metro region. */ - name: string; + name?: string; } /** * Metro List Response @@ -4851,11 +4855,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#metrosListResponse". */ - kind: string; + kind?: string; /** * Metro collection. */ - metros: Schema$Metro[]; + metros?: Schema$Metro[]; } /** * Contains information about a mobile carrier that can be targeted by ads. @@ -4864,24 +4868,24 @@ export namespace dfareporting_v3_0 { /** * Country code of the country to which this mobile carrier belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this mobile carrier belongs. */ - countryDartId: string; + countryDartId?: string; /** * ID of this mobile carrier. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#mobileCarrier". */ - kind: string; + kind?: string; /** * Name of this mobile carrier. */ - name: string; + name?: string; } /** * Mobile Carrier List Response @@ -4891,11 +4895,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#mobileCarriersListResponse". */ - kind: string; + kind?: string; /** * Mobile carrier collection. */ - mobileCarriers: Schema$MobileCarrier[]; + mobileCarriers?: Schema$MobileCarrier[]; } /** * Object Filter. @@ -4905,18 +4909,18 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#objectFilter". */ - kind: string; + kind?: string; /** * Applicable when status is ASSIGNED. The user has access to objects with * these object IDs. */ - objectIds: string[]; + objectIds?: string[]; /** * Status of the filter. NONE means the user has access to none of the * objects. ALL means the user has access to all objects. ASSIGNED means the * user has access to the objects with IDs in the objectIds list. */ - status: string; + status?: string; } /** * Offset Position. @@ -4925,11 +4929,11 @@ export namespace dfareporting_v3_0 { /** * Offset distance from left side of an asset or a window. */ - left: number; + left?: number; /** * Offset distance from top side of an asset or a window. */ - top: number; + top?: number; } /** * Omniture Integration Settings. @@ -4939,12 +4943,12 @@ export namespace dfareporting_v3_0 { * Whether placement cost data will be sent to Omniture. This property can * be enabled only if omnitureIntegrationEnabled is true. */ - omnitureCostDataEnabled: boolean; + omnitureCostDataEnabled?: boolean; /** * Whether Omniture integration is enabled. This property can be enabled * only when the "Advanced Ad Serving" account setting is enabled. */ - omnitureIntegrationEnabled: boolean; + omnitureIntegrationEnabled?: boolean; } /** * Contains information about an operating system that can be targeted by ads. @@ -4953,24 +4957,24 @@ export namespace dfareporting_v3_0 { /** * DART ID of this operating system. This is the ID used for targeting. */ - dartId: string; + dartId?: string; /** * Whether this operating system is for desktop. */ - desktop: boolean; + desktop?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystem". */ - kind: string; + kind?: string; /** * Whether this operating system is for mobile. */ - mobile: boolean; + mobile?: boolean; /** * Name of this operating system. */ - name: string; + name?: string; } /** * Operating System List Response @@ -4980,11 +4984,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystemsListResponse". */ - kind: string; + kind?: string; /** * Operating system collection. */ - operatingSystems: Schema$OperatingSystem[]; + operatingSystems?: Schema$OperatingSystem[]; } /** * Contains information about a particular version of an operating system that @@ -4994,29 +4998,29 @@ export namespace dfareporting_v3_0 { /** * ID of this operating system version. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystemVersion". */ - kind: string; + kind?: string; /** * Major version (leftmost number) of this operating system version. */ - majorVersion: string; + majorVersion?: string; /** * Minor version (number after the first dot) of this operating system * version. */ - minorVersion: string; + minorVersion?: string; /** * Name of this operating system version. */ - name: string; + name?: string; /** * Operating system of this operating system version. */ - operatingSystem: Schema$OperatingSystem; + operatingSystem?: Schema$OperatingSystem; } /** * Operating System Version List Response @@ -5026,11 +5030,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#operatingSystemVersionsListResponse". */ - kind: string; + kind?: string; /** * Operating system version collection. */ - operatingSystemVersions: Schema$OperatingSystemVersion[]; + operatingSystemVersions?: Schema$OperatingSystemVersion[]; } /** * Creative optimization activity. @@ -5040,18 +5044,18 @@ export namespace dfareporting_v3_0 { * Floodlight activity ID of this optimization activity. This is a required * field. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Dimension value for the ID of the floodlight activity. This is a * read-only, auto-generated field. */ - floodlightActivityIdDimensionValue: Schema$DimensionValue; + floodlightActivityIdDimensionValue?: Schema$DimensionValue; /** * Weight associated with this optimization. The weight assigned will be * understood in proportion to the weights assigned to the other * optimization activities. Value must be greater than or equal to 1. */ - weight: number; + weight?: number; } /** * Describes properties of a DoubleClick Planning order. @@ -5060,84 +5064,84 @@ export namespace dfareporting_v3_0 { /** * Account ID of this order. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this order. */ - advertiserId: string; + advertiserId?: string; /** * IDs for users that have to approve documents created for this order. */ - approverUserProfileIds: string[]; + approverUserProfileIds?: string[]; /** * Buyer invoice ID associated with this order. */ - buyerInvoiceId: string; + buyerInvoiceId?: string; /** * Name of the buyer organization. */ - buyerOrganizationName: string; + buyerOrganizationName?: string; /** * Comments in this order. */ - comments: string; + comments?: string; /** * Contacts for this order. */ - contacts: Schema$OrderContact[]; + contacts?: Schema$OrderContact[]; /** * ID of this order. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#order". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this order. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this order. */ - name: string; + name?: string; /** * Notes of this order. */ - notes: string; + notes?: string; /** * ID of the terms and conditions template used in this order. */ - planningTermId: string; + planningTermId?: string; /** * Project ID of this order. */ - projectId: string; + projectId?: string; /** * Seller order ID associated with this order. */ - sellerOrderId: string; + sellerOrderId?: string; /** * Name of the seller organization. */ - sellerOrganizationName: string; + sellerOrganizationName?: string; /** * Site IDs this order is associated with. */ - siteId: string[]; + siteId?: string[]; /** * Free-form site names this order is associated with. */ - siteNames: string[]; + siteNames?: string[]; /** * Subaccount ID of this order. */ - subaccountId: string; + subaccountId?: string; /** * Terms and conditions of this order. */ - termsAndConditions: string; + termsAndConditions?: string; } /** * Contact of an order. @@ -5148,24 +5152,24 @@ export namespace dfareporting_v3_0 { * related to this contact in addition to type, title, name, and signature * user profile ID. */ - contactInfo: string; + contactInfo?: string; /** * Name of this contact. */ - contactName: string; + contactName?: string; /** * Title of this contact. */ - contactTitle: string; + contactTitle?: string; /** * Type of this contact. */ - contactType: string; + contactType?: string; /** * ID of the user profile containing the signature that will be embedded * into order documents. */ - signatureUserProfileId: string; + signatureUserProfileId?: string; } /** * Contains properties of a DoubleClick Planning order document. @@ -5174,74 +5178,74 @@ export namespace dfareporting_v3_0 { /** * Account ID of this order document. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this order document. */ - advertiserId: string; + advertiserId?: string; /** * The amended order document ID of this order document. An order document * can be created by optionally amending another order document so that the * change history can be preserved. */ - amendedOrderDocumentId: string; + amendedOrderDocumentId?: string; /** * IDs of users who have approved this order document. */ - approvedByUserProfileIds: string[]; + approvedByUserProfileIds?: string[]; /** * Whether this order document is cancelled. */ - cancelled: boolean; + cancelled?: boolean; /** * Information about the creation of this order document. */ - createdInfo: Schema$LastModifiedInfo; + createdInfo?: Schema$LastModifiedInfo; /** * Effective date of this order document. */ - effectiveDate: string; + effectiveDate?: string; /** * ID of this order document. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#orderDocument". */ - kind: string; + kind?: string; /** * List of email addresses that received the last sent document. */ - lastSentRecipients: string[]; + lastSentRecipients?: string[]; /** * Timestamp of the last email sent with this order document. */ - lastSentTime: string; + lastSentTime?: string; /** * ID of the order from which this order document is created. */ - orderId: string; + orderId?: string; /** * Project ID of this order document. */ - projectId: string; + projectId?: string; /** * Whether this order document has been signed. */ - signed: boolean; + signed?: boolean; /** * Subaccount ID of this order document. */ - subaccountId: string; + subaccountId?: string; /** * Title of this order document. */ - title: string; + title?: string; /** * Type of this order document */ - type: string; + type?: string; } /** * Order document List Response @@ -5251,15 +5255,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#orderDocumentsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Order document collection */ - orderDocuments: Schema$OrderDocument[]; + orderDocuments?: Schema$OrderDocument[]; } /** * Order List Response @@ -5269,15 +5273,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#ordersListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Order collection. */ - orders: Schema$Order[]; + orders?: Schema$Order[]; } /** * Represents fields that are compatible to be selected for a report of type @@ -5288,27 +5292,27 @@ export namespace dfareporting_v3_0 { * Conversion dimensions which are compatible to be selected in the * "conversionDimensions" section of the report. */ - conversionDimensions: Schema$Dimension[]; + conversionDimensions?: Schema$Dimension[]; /** * Custom floodlight variables which are compatible to be selected in the * "customFloodlightVariables" section of the report. */ - customFloodlightVariables: Schema$Dimension[]; + customFloodlightVariables?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#pathToConversionReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Per-interaction dimensions which are compatible to be selected in the * "perInteractionDimensions" section of the report. */ - perInteractionDimensions: Schema$Dimension[]; + perInteractionDimensions?: Schema$Dimension[]; } /** * Contains properties of a placement. @@ -5317,40 +5321,40 @@ export namespace dfareporting_v3_0 { /** * Account ID of this placement. This field can be left blank. */ - accountId: string; + accountId?: string; /** * Whether this placement opts out of ad blocking. When true, ad blocking is * disabled for this placement. When false, the campaign and site settings * take effect. */ - adBlockingOptOut: boolean; + adBlockingOptOut?: boolean; /** * Advertiser ID of this placement. This field can be left blank. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this placement is archived. */ - archived: boolean; + archived?: boolean; /** * Campaign ID of this placement. This field is a required field on * insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * Comments for this placement. */ - comment: string; + comment?: string; /** * Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to * rendering on desktop, on mobile devices or in mobile apps for regular or @@ -5360,91 +5364,91 @@ export namespace dfareporting_v3_0 { * video ads developed with the VAST standard. This field is required on * insertion. */ - compatibility: string; + compatibility?: string; /** * ID of the content category assigned to this placement. */ - contentCategoryId: string; + contentCategoryId?: string; /** * Information about the creation of this placement. This is a read-only * field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * Directory site ID of this placement. On insert, you must set either this * field or the siteId field to specify the site associated with this * placement. This is a required field that is read-only after insertion. */ - directorySiteId: string; + directorySiteId?: string; /** * Dimension value for the ID of the directory site. This is a read-only, * auto-generated field. */ - directorySiteIdDimensionValue: Schema$DimensionValue; + directorySiteIdDimensionValue?: Schema$DimensionValue; /** * External ID for this placement. */ - externalId: string; + externalId?: string; /** * ID of this placement. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this placement. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Key name of this placement. This is a read-only, auto-generated field. */ - keyName: string; + keyName?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placement". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this placement. This is * a read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Lookback window settings for this placement. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Name of this placement.This is a required field and must be less than 256 * characters long. */ - name: string; + name?: string; /** * Whether payment was approved for this placement. This is a read-only * field relevant only to publisher-paid placements. */ - paymentApproved: boolean; + paymentApproved?: boolean; /** * Payment source for this placement. This is a required field that is * read-only after insertion. */ - paymentSource: string; + paymentSource?: string; /** * ID of this placement's group, if applicable. */ - placementGroupId: string; + placementGroupId?: string; /** * Dimension value for the ID of the placement group. This is a read-only, * auto-generated field. */ - placementGroupIdDimensionValue: Schema$DimensionValue; + placementGroupIdDimensionValue?: Schema$DimensionValue; /** * ID of the placement strategy assigned to this placement. */ - placementStrategyId: string; + placementStrategyId?: string; /** * Pricing schedule of this placement. This field is required on insertion, * specifically subfields startDate, endDate and pricingType. */ - pricingSchedule: Schema$PricingSchedule; + pricingSchedule?: Schema$PricingSchedule; /** * Whether this placement is the primary placement of a roadblock (placement * group). You cannot change this field from true to false. Setting this @@ -5453,41 +5457,41 @@ export namespace dfareporting_v3_0 { * set the roadblock's primaryPlacementId field to the ID of this * placement. */ - primary: boolean; + primary?: boolean; /** * Information about the last publisher update. This is a read-only field. */ - publisherUpdateInfo: Schema$LastModifiedInfo; + publisherUpdateInfo?: Schema$LastModifiedInfo; /** * Site ID associated with this placement. On insert, you must set either * this field or the directorySiteId field to specify the site associated * with this placement. This is a required field that is read-only after * insertion. */ - siteId: string; + siteId?: string; /** * Dimension value for the ID of the site. This is a read-only, * auto-generated field. */ - siteIdDimensionValue: Schema$DimensionValue; + siteIdDimensionValue?: Schema$DimensionValue; /** * Size associated with this placement. When inserting or updating a * placement, only the size ID field is used. This field is required on * insertion. */ - size: Schema$Size; + size?: Schema$Size; /** * Whether creatives assigned to this placement must be SSL-compliant. */ - sslRequired: boolean; + sslRequired?: boolean; /** * Third-party placement status. */ - status: string; + status?: string; /** * Subaccount ID of this placement. This field can be left blank. */ - subaccountId: string; + subaccountId?: string; /** * Tag formats to generate for this placement. This field is required on * insertion. Acceptable values are: - "PLACEMENT_TAG_STANDARD" - @@ -5506,11 +5510,11 @@ export namespace dfareporting_v3_0 { * "PLACEMENT_TAG_TRACKING_IFRAME" - * "PLACEMENT_TAG_TRACKING_JAVASCRIPT" */ - tagFormats: string[]; + tagFormats?: string[]; /** * Tag settings for this placement. */ - tagSetting: Schema$TagSetting; + tagSetting?: Schema$TagSetting; /** * Whether Verification and ActiveView are disabled for in-stream video * creatives for this placement. The same setting videoActiveViewOptOut @@ -5521,19 +5525,19 @@ export namespace dfareporting_v3_0 { * However, Accounts.activeViewOptOut opts out both video traffic, as well * as display ads, from Verification and ActiveView. */ - videoActiveViewOptOut: boolean; + videoActiveViewOptOut?: boolean; /** * A collection of settings which affect video creatives served through this * placement. Applicable to placements with IN_STREAM_VIDEO compatibility. */ - videoSettings: Schema$VideoSettings; + videoSettings?: Schema$VideoSettings; /** * VPAID adapter setting for this placement. Controls which VPAID format the * measurement adapter will use for in-stream video creatives assigned to * this placement. Note: Flash is no longer supported. This field now * defaults to HTML5 when the following values are provided: FLASH, BOTH. */ - vpaidAdapterChoice: string; + vpaidAdapterChoice?: string; } /** * Placement Assignment. @@ -5543,21 +5547,21 @@ export namespace dfareporting_v3_0 { * Whether this placement assignment is active. When true, the placement * will be included in the ad's rotation. */ - active: boolean; + active?: boolean; /** * ID of the placement to be assigned. This is a required field. */ - placementId: string; + placementId?: string; /** * Dimension value for the ID of the placement. This is a read-only, * auto-generated field. */ - placementIdDimensionValue: Schema$DimensionValue; + placementIdDimensionValue?: Schema$DimensionValue; /** * Whether the placement to be assigned requires SSL. This is a read-only * field that is auto-generated when the ad is inserted or updated. */ - sslRequired: boolean; + sslRequired?: boolean; } /** * Contains properties of a package or roadblock. @@ -5567,88 +5571,88 @@ export namespace dfareporting_v3_0 { * Account ID of this placement group. This is a read-only field that can be * left blank. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this placement group. This is a required field on * insertion. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Whether this placement group is archived. */ - archived: boolean; + archived?: boolean; /** * Campaign ID of this placement group. This field is required on insertion. */ - campaignId: string; + campaignId?: string; /** * Dimension value for the ID of the campaign. This is a read-only, * auto-generated field. */ - campaignIdDimensionValue: Schema$DimensionValue; + campaignIdDimensionValue?: Schema$DimensionValue; /** * IDs of placements which are assigned to this placement group. This is a * read-only, auto-generated field. */ - childPlacementIds: string[]; + childPlacementIds?: string[]; /** * Comments for this placement group. */ - comment: string; + comment?: string; /** * ID of the content category assigned to this placement group. */ - contentCategoryId: string; + contentCategoryId?: string; /** * Information about the creation of this placement group. This is a * read-only field. */ - createInfo: Schema$LastModifiedInfo; + createInfo?: Schema$LastModifiedInfo; /** * Directory site ID associated with this placement group. On insert, you * must set either this field or the site_id field to specify the site * associated with this placement group. This is a required field that is * read-only after insertion. */ - directorySiteId: string; + directorySiteId?: string; /** * Dimension value for the ID of the directory site. This is a read-only, * auto-generated field. */ - directorySiteIdDimensionValue: Schema$DimensionValue; + directorySiteIdDimensionValue?: Schema$DimensionValue; /** * External ID for this placement. */ - externalId: string; + externalId?: string; /** * ID of this placement group. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this placement group. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementGroup". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this placement group. * This is a read-only field. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this placement group. This is a required field and must be less * than 256 characters long. */ - name: string; + name?: string; /** * Type of this placement group. A package is a simple group of placements * that acts as a single pricing point for a group of tags. A roadblock is a @@ -5657,44 +5661,44 @@ export namespace dfareporting_v3_0 { * roadblock requires one of its assigned placements to be marked as primary * for reporting. This field is required on insertion. */ - placementGroupType: string; + placementGroupType?: string; /** * ID of the placement strategy assigned to this placement group. */ - placementStrategyId: string; + placementStrategyId?: string; /** * Pricing schedule of this placement group. This field is required on * insertion. */ - pricingSchedule: Schema$PricingSchedule; + pricingSchedule?: Schema$PricingSchedule; /** * ID of the primary placement, used to calculate the media cost of a * roadblock (placement group). Modifying this field will automatically * modify the primary field on all affected roadblock child placements. */ - primaryPlacementId: string; + primaryPlacementId?: string; /** * Dimension value for the ID of the primary placement. This is a read-only, * auto-generated field. */ - primaryPlacementIdDimensionValue: Schema$DimensionValue; + primaryPlacementIdDimensionValue?: Schema$DimensionValue; /** * Site ID associated with this placement group. On insert, you must set * either this field or the directorySiteId field to specify the site * associated with this placement group. This is a required field that is * read-only after insertion. */ - siteId: string; + siteId?: string; /** * Dimension value for the ID of the site. This is a read-only, * auto-generated field. */ - siteIdDimensionValue: Schema$DimensionValue; + siteIdDimensionValue?: Schema$DimensionValue; /** * Subaccount ID of this placement group. This is a read-only field that can * be left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Placement Group List Response @@ -5704,15 +5708,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementGroupsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Placement group collection. */ - placementGroups: Schema$PlacementGroup[]; + placementGroups?: Schema$PlacementGroup[]; } /** * Placement GenerateTags Response @@ -5722,11 +5726,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementsGenerateTagsResponse". */ - kind: string; + kind?: string; /** * Set of generated tags for the specified placements. */ - placementTags: Schema$PlacementTag[]; + placementTags?: Schema$PlacementTag[]; } /** * Placement List Response @@ -5736,15 +5740,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Placement collection. */ - placements: Schema$Placement[]; + placements?: Schema$Placement[]; } /** * Placement Strategy List Response @@ -5754,15 +5758,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementStrategiesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Placement strategy collection. */ - placementStrategies: Schema$PlacementStrategy[]; + placementStrategies?: Schema$PlacementStrategy[]; } /** * Contains properties of a placement strategy. @@ -5772,22 +5776,22 @@ export namespace dfareporting_v3_0 { * Account ID of this placement strategy.This is a read-only field that can * be left blank. */ - accountId: string; + accountId?: string; /** * ID of this placement strategy. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#placementStrategy". */ - kind: string; + kind?: string; /** * Name of this placement strategy. This is a required field. It must be * less than 256 characters long and unique among placement strategies of * the same account. */ - name: string; + name?: string; } /** * Placement Tag @@ -5796,11 +5800,11 @@ export namespace dfareporting_v3_0 { /** * Placement ID */ - placementId: string; + placementId?: string; /** * Tags generated for this placement. */ - tagDatas: Schema$TagData[]; + tagDatas?: Schema$TagData[]; } /** * Contains information about a platform type that can be targeted by ads. @@ -5809,16 +5813,16 @@ export namespace dfareporting_v3_0 { /** * ID of this platform type. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#platformType". */ - kind: string; + kind?: string; /** * Name of this platform type. */ - name: string; + name?: string; } /** * Platform Type List Response @@ -5828,11 +5832,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#platformTypesListResponse". */ - kind: string; + kind?: string; /** * Platform type collection. */ - platformTypes: Schema$PlatformType[]; + platformTypes?: Schema$PlatformType[]; } /** * Popup Window Properties. @@ -5842,40 +5846,40 @@ export namespace dfareporting_v3_0 { * Popup dimension for a creative. This is a read-only field. Applicable to * the following creative types: all RICH_MEDIA and all VPAID */ - dimension: Schema$Size; + dimension?: Schema$Size; /** * Upper-left corner coordinates of the popup window. Applicable if * positionType is COORDINATES. */ - offset: Schema$OffsetPosition; + offset?: Schema$OffsetPosition; /** * Popup window position either centered or at specific coordinate. */ - positionType: string; + positionType?: string; /** * Whether to display the browser address bar. */ - showAddressBar: boolean; + showAddressBar?: boolean; /** * Whether to display the browser menu bar. */ - showMenuBar: boolean; + showMenuBar?: boolean; /** * Whether to display the browser scroll bar. */ - showScrollBar: boolean; + showScrollBar?: boolean; /** * Whether to display the browser status bar. */ - showStatusBar: boolean; + showStatusBar?: boolean; /** * Whether to display the browser tool bar. */ - showToolBar: boolean; + showToolBar?: boolean; /** * Title of popup window. */ - title: string; + title?: string; } /** * Contains information about a postal code that can be targeted by ads. @@ -5884,24 +5888,24 @@ export namespace dfareporting_v3_0 { /** * Postal code. This is equivalent to the id field. */ - code: string; + code?: string; /** * Country code of the country to which this postal code belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this postal code belongs. */ - countryDartId: string; + countryDartId?: string; /** * ID of this postal code. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#postalCode". */ - kind: string; + kind?: string; } /** * Postal Code List Response @@ -5911,11 +5915,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#postalCodesListResponse". */ - kind: string; + kind?: string; /** * Postal code collection. */ - postalCodes: Schema$PostalCode[]; + postalCodes?: Schema$PostalCode[]; } /** * Pricing Information @@ -5924,17 +5928,17 @@ export namespace dfareporting_v3_0 { /** * Cap cost type of this inventory item. */ - capCostType: string; + capCostType?: string; /** * End date of this inventory item. */ - endDate: string; + endDate?: string; /** * Flights of this inventory item. A flight (a.k.a. pricing period) * represents the inventory item pricing information for a specific period * of time. */ - flights: Schema$Flight[]; + flights?: Schema$Flight[]; /** * Group type of this inventory item if it represents a placement group. Is * null otherwise. There are two type of placement groups: @@ -5945,15 +5949,15 @@ export namespace dfareporting_v3_0 { * the tags in it will be served at the same time. A roadblock requires one * of its assigned inventory items to be marked as primary. */ - groupType: string; + groupType?: string; /** * Pricing type of this inventory item. */ - pricingType: string; + pricingType?: string; /** * Start date of this inventory item. */ - startDate: string; + startDate?: string; } /** * Pricing Schedule @@ -5962,11 +5966,11 @@ export namespace dfareporting_v3_0 { /** * Placement cap cost option. */ - capCostOption: string; + capCostOption?: string; /** * Whether cap costs are ignored by ad serving. */ - disregardOverdelivery: boolean; + disregardOverdelivery?: boolean; /** * Placement end date. This date must be later than, or the same day as, the * placement start date, but not later than the campaign end date. If, for @@ -5975,37 +5979,37 @@ export namespace dfareporting_v3_0 { * seconds of the end date should not be set, as doing so will result in an * error. This field is required on insertion. */ - endDate: string; + endDate?: string; /** * Whether this placement is flighted. If true, pricing periods will be * computed automatically. */ - flighted: boolean; + flighted?: boolean; /** * Floodlight activity ID associated with this placement. This field should * be set when placement pricing type is set to PRICING_TYPE_CPA. */ - floodlightActivityId: string; + floodlightActivityId?: string; /** * Pricing periods for this placement. */ - pricingPeriods: Schema$PricingSchedulePricingPeriod[]; + pricingPeriods?: Schema$PricingSchedulePricingPeriod[]; /** * Placement pricing type. This field is required on insertion. */ - pricingType: string; + pricingType?: string; /** * Placement start date. This date must be later than, or the same day as, * the campaign start date. The hours, minutes, and seconds of the start * date should not be set, as doing so will result in an error. This field * is required on insertion. */ - startDate: string; + startDate?: string; /** * Testing start date of this placement. The hours, minutes, and seconds of * the start date should not be set, as doing so will result in an error. */ - testingStartDate: string; + testingStartDate?: string; } /** * Pricing Period @@ -6020,27 +6024,27 @@ export namespace dfareporting_v3_0 { * hours, minutes, and seconds of the end date should not be set, as doing * so will result in an error. */ - endDate: string; + endDate?: string; /** * Comments for this pricing period. */ - pricingComment: string; + pricingComment?: string; /** * Rate or cost of this pricing period in nanos (i.e., multipled by * 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive. */ - rateOrCostNanos: string; + rateOrCostNanos?: string; /** * Pricing period start date. This date must be later than, or the same day * as, the placement start date. The hours, minutes, and seconds of the * start date should not be set, as doing so will result in an error. */ - startDate: string; + startDate?: string; /** * Units of this pricing period. Acceptable values are 0 to 10000000000, * inclusive. */ - units: string; + units?: string; } /** * Contains properties of a DoubleClick Planning project. @@ -6049,95 +6053,95 @@ export namespace dfareporting_v3_0 { /** * Account ID of this project. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this project. */ - advertiserId: string; + advertiserId?: string; /** * Audience age group of this project. */ - audienceAgeGroup: string; + audienceAgeGroup?: string; /** * Audience gender of this project. */ - audienceGender: string; + audienceGender?: string; /** * Budget of this project in the currency specified by the current account. * The value stored in this field represents only the non-fractional amount. * For example, for USD, the smallest value that can be represented by this * field is 1 US dollar. */ - budget: string; + budget?: string; /** * Client billing code of this project. */ - clientBillingCode: string; + clientBillingCode?: string; /** * Name of the project client. */ - clientName: string; + clientName?: string; /** * End date of the project. */ - endDate: string; + endDate?: string; /** * ID of this project. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#project". */ - kind: string; + kind?: string; /** * Information about the most recent modification of this project. */ - lastModifiedInfo: Schema$LastModifiedInfo; + lastModifiedInfo?: Schema$LastModifiedInfo; /** * Name of this project. */ - name: string; + name?: string; /** * Overview of this project. */ - overview: string; + overview?: string; /** * Start date of the project. */ - startDate: string; + startDate?: string; /** * Subaccount ID of this project. */ - subaccountId: string; + subaccountId?: string; /** * Number of clicks that the advertiser is targeting. */ - targetClicks: string; + targetClicks?: string; /** * Number of conversions that the advertiser is targeting. */ - targetConversions: string; + targetConversions?: string; /** * CPA that the advertiser is targeting. */ - targetCpaNanos: string; + targetCpaNanos?: string; /** * CPC that the advertiser is targeting. */ - targetCpcNanos: string; + targetCpcNanos?: string; /** * vCPM from Active View that the advertiser is targeting. */ - targetCpmActiveViewNanos: string; + targetCpmActiveViewNanos?: string; /** * CPM that the advertiser is targeting. */ - targetCpmNanos: string; + targetCpmNanos?: string; /** * Number of impressions that the advertiser is targeting. */ - targetImpressions: string; + targetImpressions?: string; } /** * Project List Response @@ -6147,15 +6151,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#projectsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Project collection. */ - projects: Schema$Project[]; + projects?: Schema$Project[]; } /** * Represents fields that are compatible to be selected for a report of type @@ -6166,32 +6170,32 @@ export namespace dfareporting_v3_0 { * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensions" section of the report. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#reachReportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected as activity metrics to pivot * on in the "activities" section of the report. */ - pivotedActivityMetrics: Schema$Metric[]; + pivotedActivityMetrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected in the * "reachByFrequencyMetricNames" section of the report. */ - reachByFrequencyMetrics: Schema$Metric[]; + reachByFrequencyMetrics?: Schema$Metric[]; } /** * Represents a recipient. @@ -6200,15 +6204,15 @@ export namespace dfareporting_v3_0 { /** * The delivery type for the recipient. */ - deliveryType: string; + deliveryType?: string; /** * The email address of the recipient. */ - email: string; + email?: string; /** * The kind of resource this is, in this case dfareporting#recipient. */ - kind: string; + kind?: string; } /** * Contains information about a region that can be targeted by ads. @@ -6217,28 +6221,28 @@ export namespace dfareporting_v3_0 { /** * Country code of the country to which this region belongs. */ - countryCode: string; + countryCode?: string; /** * DART ID of the country to which this region belongs. */ - countryDartId: string; + countryDartId?: string; /** * DART ID of this region. */ - dartId: string; + dartId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#region". */ - kind: string; + kind?: string; /** * Name of this region. */ - name: string; + name?: string; /** * Region code. */ - regionCode: string; + regionCode?: string; } /** * Region List Response @@ -6248,11 +6252,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#regionsListResponse". */ - kind: string; + kind?: string; /** * Region collection. */ - regions: Schema$Region[]; + regions?: Schema$Region[]; } /** * Contains properties of a remarketing list. Remarketing enables you to @@ -6268,61 +6272,61 @@ export namespace dfareporting_v3_0 { * Account ID of this remarketing list. This is a read-only, auto-generated * field that is only returned in GET requests. */ - accountId: string; + accountId?: string; /** * Whether this remarketing list is active. */ - active: boolean; + active?: boolean; /** * Dimension value for the advertiser ID that owns this remarketing list. * This is a required field. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Remarketing list description. */ - description: string; + description?: string; /** * Remarketing list ID. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#remarketingList". */ - kind: string; + kind?: string; /** * Number of days that a user should remain in the remarketing list without * an impression. Acceptable values are 1 to 540, inclusive. */ - lifeSpan: string; + lifeSpan?: string; /** * Rule used to populate the remarketing list with users. */ - listPopulationRule: Schema$ListPopulationRule; + listPopulationRule?: Schema$ListPopulationRule; /** * Number of users currently in the list. This is a read-only field. */ - listSize: string; + listSize?: string; /** * Product from which this remarketing list was originated. */ - listSource: string; + listSource?: string; /** * Name of the remarketing list. This is a required field. Must be no * greater than 128 characters long. */ - name: string; + name?: string; /** * Subaccount ID of this remarketing list. This is a read-only, * auto-generated field that is only returned in GET requests. */ - subaccountId: string; + subaccountId?: string; } /** * Contains properties of a remarketing list's sharing information. @@ -6335,19 +6339,19 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#remarketingListShare". */ - kind: string; + kind?: string; /** * Remarketing list ID. This is a read-only, auto-generated field. */ - remarketingListId: string; + remarketingListId?: string; /** * Accounts that the remarketing list is shared with. */ - sharedAccountIds: string[]; + sharedAccountIds?: string[]; /** * Advertisers that the remarketing list is shared with. */ - sharedAdvertiserIds: string[]; + sharedAdvertiserIds?: string[]; } /** * Remarketing list response @@ -6357,15 +6361,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#remarketingListsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Remarketing list collection. */ - remarketingLists: Schema$RemarketingList[]; + remarketingLists?: Schema$RemarketingList[]; } /** * Represents a Report resource. @@ -6374,32 +6378,32 @@ export namespace dfareporting_v3_0 { /** * The account ID to which this report belongs. */ - accountId: string; + accountId?: string; /** * The report criteria for a report of type "STANDARD". */ - criteria: any; + criteria?: any; /** * The report criteria for a report of type * "CROSS_DIMENSION_REACH". */ - crossDimensionReachCriteria: any; + crossDimensionReachCriteria?: any; /** * The report's email delivery settings. */ - delivery: any; + delivery?: any; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The filename used when generating report files for this report. */ - fileName: string; + fileName?: string; /** * The report criteria for a report of type "FLOODLIGHT". */ - floodlightCriteria: any; + floodlightCriteria?: any; /** * The output format of the report. If not specified, default format is * "CSV". Note that the actual format in the completed report file @@ -6407,50 +6411,50 @@ export namespace dfareporting_v3_0 { * format's capabilities. "CSV" will then be the fallback * format. */ - format: string; + format?: string; /** * The unique ID identifying this report resource. */ - id: string; + id?: string; /** * The kind of resource this is, in this case dfareporting#report. */ - kind: string; + kind?: string; /** * The timestamp (in milliseconds since epoch) of when this report was last * modified. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * The name of the report. */ - name: string; + name?: string; /** * The user profile id of the owner of this report. */ - ownerProfileId: string; + ownerProfileId?: string; /** * The report criteria for a report of type "PATH_TO_CONVERSION". */ - pathToConversionCriteria: any; + pathToConversionCriteria?: any; /** * The report criteria for a report of type "REACH". */ - reachCriteria: any; + reachCriteria?: any; /** * The report's schedule. Can only be set if the report's * 'dateRange' is a relative date range and the relative date range * is not "TODAY". */ - schedule: any; + schedule?: any; /** * The subaccount ID to which this report belongs if applicable. */ - subAccountId: string; + subAccountId?: string; /** * The type of the report. */ - type: string; + type?: string; } /** * Represents fields that are compatible to be selected for a report of type @@ -6461,27 +6465,27 @@ export namespace dfareporting_v3_0 { * Dimensions which are compatible to be selected in the * "dimensionFilters" section of the report. */ - dimensionFilters: Schema$Dimension[]; + dimensionFilters?: Schema$Dimension[]; /** * Dimensions which are compatible to be selected in the * "dimensions" section of the report. */ - dimensions: Schema$Dimension[]; + dimensions?: Schema$Dimension[]; /** * The kind of resource this is, in this case * dfareporting#reportCompatibleFields. */ - kind: string; + kind?: string; /** * Metrics which are compatible to be selected in the * "metricNames" section of the report. */ - metrics: Schema$Metric[]; + metrics?: Schema$Metric[]; /** * Metrics which are compatible to be selected as activity metrics to pivot * on in the "activities" section of the report. */ - pivotedActivityMetrics: Schema$Metric[]; + pivotedActivityMetrics?: Schema$Metric[]; } /** * Represents the list of reports. @@ -6490,22 +6494,22 @@ export namespace dfareporting_v3_0 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The reports returned in this response. */ - items: Schema$Report[]; + items?: Schema$Report[]; /** * The kind of list this is, in this case dfareporting#reportList. */ - kind: string; + kind?: string; /** * Continuation token used to page through reports. To retrieve the next * page of results, set the next request's "pageToken" to the * value of this field. The page token is only valid for a limited amount of * time and should not be persisted. */ - nextPageToken: string; + nextPageToken?: string; } /** * Reporting Configuration @@ -6516,11 +6520,11 @@ export namespace dfareporting_v3_0 { * detailed pathway information on up to 10 of the most recent ad exposures * seen by a user before converting. */ - exposureToConversionEnabled: boolean; + exposureToConversionEnabled?: boolean; /** * Default lookback windows for new advertisers in this account. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Report generation time zone ID of this account. This is a required field * that can only be changed by a superuser. Acceptable values are: - @@ -6535,7 +6539,7 @@ export namespace dfareporting_v3_0 { * "Pacific/Auckland" - "13" for * "America/Sao_Paulo" */ - reportGenerationTimeZoneId: string; + reportGenerationTimeZoneId?: string; } /** * Rich Media Exit Override. @@ -6545,16 +6549,16 @@ export namespace dfareporting_v3_0 { * Click-through URL of this rich media exit override. Applicable if the * enabled field is set to true. */ - clickThroughUrl: Schema$ClickThroughUrl; + clickThroughUrl?: Schema$ClickThroughUrl; /** * Whether to use the clickThroughUrl. If false, the creative-level exit * will be used. */ - enabled: boolean; + enabled?: boolean; /** * ID for the override to refer to a specific exit in the creative. */ - exitId: string; + exitId?: string; } /** * A rule associates an asset with a targeting template for asset-level @@ -6565,17 +6569,17 @@ export namespace dfareporting_v3_0 { * A creativeAssets[].id. This should refer to one of the parent assets in * this creative. This is a required field. */ - assetId: string; + assetId?: string; /** * A user-friendly name for this rule. This is a required field. */ - name: string; + name?: string; /** * A targeting template ID. The targeting from the targeting template will * be used to determine whether this asset should be served. This is a * required field. */ - targetingTemplateId: string; + targetingTemplateId?: string; } /** * Contains properties of a site. @@ -6585,39 +6589,39 @@ export namespace dfareporting_v3_0 { * Account ID of this site. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Whether this site is approved. */ - approved: boolean; + approved?: boolean; /** * Directory site associated with this site. This is a required field that * is read-only after insertion. */ - directorySiteId: string; + directorySiteId?: string; /** * Dimension value for the ID of the directory site. This is a read-only, * auto-generated field. */ - directorySiteIdDimensionValue: Schema$DimensionValue; + directorySiteIdDimensionValue?: Schema$DimensionValue; /** * ID of this site. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Dimension value for the ID of this site. This is a read-only, * auto-generated field. */ - idDimensionValue: Schema$DimensionValue; + idDimensionValue?: Schema$DimensionValue; /** * Key name of this site. This is a read-only, auto-generated field. */ - keyName: string; + keyName?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#site". */ - kind: string; + kind?: string; /** * Name of this site.This is a required field. Must be less than 128 * characters long. If this site is under a subaccount, the name must be @@ -6625,20 +6629,20 @@ export namespace dfareporting_v3_0 { * top-level site, and the name must be unique among top-level sites of the * same account. */ - name: string; + name?: string; /** * Site contacts. */ - siteContacts: Schema$SiteContact[]; + siteContacts?: Schema$SiteContact[]; /** * Site-wide settings. */ - siteSettings: Schema$SiteSettings; + siteSettings?: Schema$SiteSettings; /** * Subaccount ID of this site. This is a read-only field that can be left * blank. */ - subaccountId: string; + subaccountId?: string; } /** * Site Contact @@ -6647,35 +6651,35 @@ export namespace dfareporting_v3_0 { /** * Address of this site contact. */ - address: string; + address?: string; /** * Site contact type. */ - contactType: string; + contactType?: string; /** * Email address of this site contact. This is a required field. */ - email: string; + email?: string; /** * First name of this site contact. */ - firstName: string; + firstName?: string; /** * ID of this site contact. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Last name of this site contact. */ - lastName: string; + lastName?: string; /** * Primary phone number of this site contact. */ - phone: string; + phone?: string; /** * Title or designation of this site contact. */ - title: string; + title?: string; } /** * Site Settings @@ -6684,37 +6688,37 @@ export namespace dfareporting_v3_0 { /** * Whether active view creatives are disabled for this site. */ - activeViewOptOut: boolean; + activeViewOptOut?: boolean; /** * Whether this site opts out of ad blocking. When true, ad blocking is * disabled for all placements under the site, regardless of the individual * placement settings. When false, the campaign and placement settings take * effect. */ - adBlockingOptOut: boolean; + adBlockingOptOut?: boolean; /** * Site-wide creative settings. */ - creativeSettings: Schema$CreativeSettings; + creativeSettings?: Schema$CreativeSettings; /** * Whether new cookies are disabled for this site. */ - disableNewCookie: boolean; + disableNewCookie?: boolean; /** * Lookback window settings for this site. */ - lookbackConfiguration: Schema$LookbackConfiguration; + lookbackConfiguration?: Schema$LookbackConfiguration; /** * Configuration settings for dynamic and image floodlight tags. */ - tagSetting: Schema$TagSetting; + tagSetting?: Schema$TagSetting; /** * Whether Verification and ActiveView for in-stream video creatives are * disabled by default for new placements created under this site. This * value will be used to populate the placement.videoActiveViewOptOut field, * when no value is specified for the new placement. */ - videoActiveViewOptOutTemplate: boolean; + videoActiveViewOptOutTemplate?: boolean; /** * Default VPAID adapter setting for new placements created under this site. * This value will be used to populate the placements.vpaidAdapterChoice @@ -6726,7 +6730,7 @@ export namespace dfareporting_v3_0 { * adapter). Note: Flash is no longer supported. This field now defaults to * HTML5 when the following values are provided: FLASH, BOTH. */ - vpaidAdapterChoiceTemplate: string; + vpaidAdapterChoiceTemplate?: string; } /** * Site List Response @@ -6736,15 +6740,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#sitesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Site collection. */ - sites: Schema$Site[]; + sites?: Schema$Site[]; } /** * Represents the dimensions of ads, placements, creatives, or creative @@ -6754,24 +6758,24 @@ export namespace dfareporting_v3_0 { /** * Height of this size. Acceptable values are 0 to 32767, inclusive. */ - height: number; + height?: number; /** * IAB standard size. This is a read-only, auto-generated field. */ - iab: boolean; + iab?: boolean; /** * ID of this size. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#size". */ - kind: string; + kind?: string; /** * Width of this size. Acceptable values are 0 to 32767, inclusive. */ - width: number; + width?: number; } /** * Size List Response @@ -6781,11 +6785,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#sizesListResponse". */ - kind: string; + kind?: string; /** * Size collection. */ - sizes: Schema$Size[]; + sizes?: Schema$Size[]; } /** * Skippable Settings @@ -6795,21 +6799,21 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#skippableSetting". */ - kind: string; + kind?: string; /** * Amount of time to play videos served to this placement before counting a * view. Applicable when skippable is true. */ - progressOffset: Schema$VideoOffset; + progressOffset?: Schema$VideoOffset; /** * Amount of time to play videos served to this placement before the skip * button should appear. Applicable when skippable is true. */ - skipOffset: Schema$VideoOffset; + skipOffset?: Schema$VideoOffset; /** * Whether the user can skip creatives served to this placement. */ - skippable: boolean; + skippable?: boolean; } /** * Represents a sorted dimension. @@ -6818,15 +6822,15 @@ export namespace dfareporting_v3_0 { /** * The kind of resource this is, in this case dfareporting#sortedDimension. */ - kind: string; + kind?: string; /** * The name of the dimension. */ - name: string; + name?: string; /** * An optional sort order for the dimension column. */ - sortOrder: string; + sortOrder?: string; } /** * Contains properties of a DCM subaccount. @@ -6836,25 +6840,25 @@ export namespace dfareporting_v3_0 { * ID of the account that contains this subaccount. This is a read-only * field that can be left blank. */ - accountId: string; + accountId?: string; /** * IDs of the available user role permissions for this subaccount. */ - availablePermissionIds: string[]; + availablePermissionIds?: string[]; /** * ID of this subaccount. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#subaccount". */ - kind: string; + kind?: string; /** * Name of this subaccount. This is a required field. Must be less than 128 * characters long and be unique among subaccounts of the same account. */ - name: string; + name?: string; } /** * Subaccount List Response @@ -6864,15 +6868,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#subaccountsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Subaccount collection. */ - subaccounts: Schema$Subaccount[]; + subaccounts?: Schema$Subaccount[]; } /** * Placement Tag Data @@ -6882,24 +6886,24 @@ export namespace dfareporting_v3_0 { * Ad associated with this placement tag. Applicable only when format is * PLACEMENT_TAG_TRACKING. */ - adId: string; + adId?: string; /** * Tag string to record a click. */ - clickTag: string; + clickTag?: string; /** * Creative associated with this placement tag. Applicable only when format * is PLACEMENT_TAG_TRACKING. */ - creativeId: string; + creativeId?: string; /** * TagData tag format of this tag. */ - format: string; + format?: string; /** * Tag string for serving an ad. */ - impressionTag: string; + impressionTag?: string; } /** * Tag Settings @@ -6911,23 +6915,23 @@ export namespace dfareporting_v3_0 { * Keys and values must not contain commas. For example, id=2;color=red is a * valid value for this field. */ - additionalKeyValues: string; + additionalKeyValues?: string; /** * Whether static landing page URLs should be included in the tags. This * setting applies only to placements. */ - includeClickThroughUrls: boolean; + includeClickThroughUrls?: boolean; /** * Whether click-tracking string should be included in the tags. */ - includeClickTracking: boolean; + includeClickTracking?: boolean; /** * Option specifying how keywords are embedded in ad tags. This setting can * be used to specify whether keyword placeholders are inserted in placement * tags for this site. Publishers can then add keywords to those * placeholders. */ - keywordOption: string; + keywordOption?: string; } /** * Dynamic and Image Tag Settings. @@ -6936,11 +6940,11 @@ export namespace dfareporting_v3_0 { /** * Whether dynamic floodlight tags are enabled. */ - dynamicTagEnabled: boolean; + dynamicTagEnabled?: boolean; /** * Whether image tags are enabled. */ - imageTagEnabled: boolean; + imageTagEnabled?: boolean; } /** * Contains properties of a targetable remarketing list. Remarketing enables @@ -6957,56 +6961,56 @@ export namespace dfareporting_v3_0 { * Account ID of this remarketing list. This is a read-only, auto-generated * field that is only returned in GET requests. */ - accountId: string; + accountId?: string; /** * Whether this targetable remarketing list is active. */ - active: boolean; + active?: boolean; /** * Dimension value for the advertiser ID that owns this targetable * remarketing list. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Targetable remarketing list description. */ - description: string; + description?: string; /** * Targetable remarketing list ID. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetableRemarketingList". */ - kind: string; + kind?: string; /** * Number of days that a user should remain in the targetable remarketing * list without an impression. */ - lifeSpan: string; + lifeSpan?: string; /** * Number of users currently in the list. This is a read-only field. */ - listSize: string; + listSize?: string; /** * Product from which this targetable remarketing list was originated. */ - listSource: string; + listSource?: string; /** * Name of the targetable remarketing list. Is no greater than 128 * characters long. */ - name: string; + name?: string; /** * Subaccount ID of this remarketing list. This is a read-only, * auto-generated field that is only returned in GET requests. */ - subaccountId: string; + subaccountId?: string; } /** * Targetable remarketing list response @@ -7016,15 +7020,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetableRemarketingListsListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Targetable remarketing list collection. */ - targetableRemarketingLists: Schema$TargetableRemarketingList[]; + targetableRemarketingLists?: Schema$TargetableRemarketingList[]; } /** * Contains properties of a targeting template. A targeting template @@ -7035,60 +7039,60 @@ export namespace dfareporting_v3_0 { * Account ID of this targeting template. This field, if left unset, will be * auto-generated on insert and is read-only after insert. */ - accountId: string; + accountId?: string; /** * Advertiser ID of this targeting template. This is a required field on * insert and is read-only after insert. */ - advertiserId: string; + advertiserId?: string; /** * Dimension value for the ID of the advertiser. This is a read-only, * auto-generated field. */ - advertiserIdDimensionValue: Schema$DimensionValue; + advertiserIdDimensionValue?: Schema$DimensionValue; /** * Time and day targeting criteria. */ - dayPartTargeting: Schema$DayPartTargeting; + dayPartTargeting?: Schema$DayPartTargeting; /** * Geographical targeting criteria. */ - geoTargeting: Schema$GeoTargeting; + geoTargeting?: Schema$GeoTargeting; /** * ID of this targeting template. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Key-value targeting criteria. */ - keyValueTargetingExpression: Schema$KeyValueTargetingExpression; + keyValueTargetingExpression?: Schema$KeyValueTargetingExpression; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetingTemplate". */ - kind: string; + kind?: string; /** * Language targeting criteria. */ - languageTargeting: Schema$LanguageTargeting; + languageTargeting?: Schema$LanguageTargeting; /** * Remarketing list targeting criteria. */ - listTargetingExpression: Schema$ListTargetingExpression; + listTargetingExpression?: Schema$ListTargetingExpression; /** * Name of this targeting template. This field is required. It must be less * than 256 characters long and unique within an advertiser. */ - name: string; + name?: string; /** * Subaccount ID of this targeting template. This field, if left unset, will * be auto-generated on insert and is read-only after insert. */ - subaccountId: string; + subaccountId?: string; /** * Technology platform targeting criteria. */ - technologyTargeting: Schema$TechnologyTargeting; + technologyTargeting?: Schema$TechnologyTargeting; } /** * Targeting Template List Response @@ -7098,15 +7102,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#targetingTemplatesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * Targeting template collection. */ - targetingTemplates: Schema$TargetingTemplate[]; + targetingTemplates?: Schema$TargetingTemplate[]; } /** * Target Window. @@ -7115,12 +7119,12 @@ export namespace dfareporting_v3_0 { /** * User-entered value. */ - customHtml: string; + customHtml?: string; /** * Type of browser window for which the backup image of the flash creative * can be displayed. */ - targetWindowOption: string; + targetWindowOption?: string; } /** * Technology Targeting. @@ -7132,20 +7136,20 @@ export namespace dfareporting_v3_0 { * specified, only browserVersionId will be used. The other fields are * populated automatically when the ad is inserted or updated. */ - browsers: Schema$Browser[]; + browsers?: Schema$Browser[]; /** * Connection types that this ad targets. For each connection type only id * is required. The other fields are populated automatically when the ad is * inserted or updated. */ - connectionTypes: Schema$ConnectionType[]; + connectionTypes?: Schema$ConnectionType[]; /** * Mobile carriers that this ad targets. For each mobile carrier only id is * required, and the other fields are populated automatically when the ad is * inserted or updated. If targeting a mobile carrier, do not set targeting * for any zip codes. */ - mobileCarriers: Schema$MobileCarrier[]; + mobileCarriers?: Schema$MobileCarrier[]; /** * Operating systems that this ad targets. To target specific versions, use * operatingSystemVersions. For each operating system only dartId is @@ -7153,7 +7157,7 @@ export namespace dfareporting_v3_0 { * inserted or updated. If targeting an operating system, do not set * targeting for operating system versions for the same operating system. */ - operatingSystems: Schema$OperatingSystem[]; + operatingSystems?: Schema$OperatingSystem[]; /** * Operating system versions that this ad targets. To target all versions, * use operatingSystems. For each operating system version, only id is @@ -7161,13 +7165,13 @@ export namespace dfareporting_v3_0 { * inserted or updated. If targeting an operating system version, do not set * targeting for the corresponding operating system in operatingSystems. */ - operatingSystemVersions: Schema$OperatingSystemVersion[]; + operatingSystemVersions?: Schema$OperatingSystemVersion[]; /** * Platform types that this ad targets. For example, desktop, mobile, or * tablet. For each platform type, only id is required, and the other fields * are populated automatically when the ad is inserted or updated. */ - platformTypes: Schema$PlatformType[]; + platformTypes?: Schema$PlatformType[]; } /** * Third Party Authentication Token @@ -7176,12 +7180,12 @@ export namespace dfareporting_v3_0 { /** * Name of the third-party authentication token. */ - name: string; + name?: string; /** * Value of the third-party authentication token. This is a read-only, * auto-generated field. */ - value: string; + value?: string; } /** * Third-party Tracking URL. @@ -7190,11 +7194,11 @@ export namespace dfareporting_v3_0 { /** * Third-party URL type for in-stream video creatives. */ - thirdPartyUrlType: string; + thirdPartyUrlType?: string; /** * URL for the specified third-party URL type. */ - url: string; + url?: string; } /** * Transcode Settings @@ -7204,12 +7208,12 @@ export namespace dfareporting_v3_0 { * Whitelist of video formats to be served to this placement. Set this list * to null or empty to serve all video formats. */ - enabledVideoFormats: number[]; + enabledVideoFormats?: number[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#transcodeSetting". */ - kind: string; + kind?: string; } /** * A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following @@ -7219,13 +7223,13 @@ export namespace dfareporting_v3_0 { /** * Registry used for the Ad ID value. */ - registry: string; + registry?: string; /** * ID value for this creative. Only alphanumeric characters and the * following symbols are valid: "_/\-". Maximum length is 64 * characters. Read only when registry is DCM. */ - value: string; + value?: string; } /** * User Defined Variable configuration. @@ -7234,17 +7238,17 @@ export namespace dfareporting_v3_0 { /** * Data type for the variable. This is a required field. */ - dataType: string; + dataType?: string; /** * User-friendly name for the variable which will appear in reports. This is * a required field, must be less than 64 characters long, and cannot * contain the following characters: ""<>". */ - reportName: string; + reportName?: string; /** * Variable name in the tag. This is a required field. */ - variableType: string; + variableType?: string; } /** * Represents a UserProfile resource. @@ -7253,35 +7257,35 @@ export namespace dfareporting_v3_0 { /** * The account ID to which this profile belongs. */ - accountId: string; + accountId?: string; /** * The account name this profile belongs to. */ - accountName: string; + accountName?: string; /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The kind of resource this is, in this case dfareporting#userProfile. */ - kind: string; + kind?: string; /** * The unique ID of the user profile. */ - profileId: string; + profileId?: string; /** * The sub account ID this profile belongs to if applicable. */ - subAccountId: string; + subAccountId?: string; /** * The sub account name this profile belongs to if applicable. */ - subAccountName: string; + subAccountName?: string; /** * The user name. */ - userName: string; + userName?: string; } /** * Represents the list of user profiles. @@ -7290,15 +7294,15 @@ export namespace dfareporting_v3_0 { /** * The eTag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The user profiles returned in this response. */ - items: Schema$UserProfile[]; + items?: Schema$UserProfile[]; /** * The kind of list this is, in this case dfareporting#userProfileList. */ - kind: string; + kind?: string; } /** * Contains properties of auser role, which is used to manage user access. @@ -7308,22 +7312,22 @@ export namespace dfareporting_v3_0 { * Account ID of this user role. This is a read-only field that can be left * blank. */ - accountId: string; + accountId?: string; /** * Whether this is a default user role. Default user roles are created by * the system for the account/subaccount and cannot be modified or deleted. * Each default user role comes with a basic set of preassigned permissions. */ - defaultUserRole: boolean; + defaultUserRole?: boolean; /** * ID of this user role. This is a read-only, auto-generated field. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRole". */ - kind: string; + kind?: string; /** * Name of this user role. This is a required field. Must be less than 256 * characters long. If this user role is under a subaccount, the name must @@ -7331,21 +7335,21 @@ export namespace dfareporting_v3_0 { * is a top-level user role, and the name must be unique among top-level * user roles of the same account. */ - name: string; + name?: string; /** * ID of the user role that this user role is based on or copied from. This * is a required field. */ - parentUserRoleId: string; + parentUserRoleId?: string; /** * List of permissions associated with this user role. */ - permissions: Schema$UserRolePermission[]; + permissions?: Schema$UserRolePermission[]; /** * Subaccount ID of this user role. This is a read-only field that can be * left blank. */ - subaccountId: string; + subaccountId?: string; } /** * Contains properties of a user role permission. @@ -7354,24 +7358,24 @@ export namespace dfareporting_v3_0 { /** * Levels of availability for a user role permission. */ - availability: string; + availability?: string; /** * ID of this user role permission. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermission". */ - kind: string; + kind?: string; /** * Name of this user role permission. */ - name: string; + name?: string; /** * ID of the permission group that this user role permission belongs to. */ - permissionGroupId: string; + permissionGroupId?: string; } /** * Represents a grouping of related user role permissions. @@ -7380,16 +7384,16 @@ export namespace dfareporting_v3_0 { /** * ID of this user role permission. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermissionGroup". */ - kind: string; + kind?: string; /** * Name of this user role permission group. */ - name: string; + name?: string; } /** * User Role Permission Group List Response @@ -7399,11 +7403,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermissionGroupsListResponse". */ - kind: string; + kind?: string; /** * User role permission group collection. */ - userRolePermissionGroups: Schema$UserRolePermissionGroup[]; + userRolePermissionGroups?: Schema$UserRolePermissionGroup[]; } /** * User Role Permission List Response @@ -7413,11 +7417,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolePermissionsListResponse". */ - kind: string; + kind?: string; /** * User role permission collection. */ - userRolePermissions: Schema$UserRolePermission[]; + userRolePermissions?: Schema$UserRolePermission[]; } /** * User Role List Response @@ -7427,15 +7431,15 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#userRolesListResponse". */ - kind: string; + kind?: string; /** * Pagination token to be used for the next list operation. */ - nextPageToken: string; + nextPageToken?: string; /** * User role collection. */ - userRoles: Schema$UserRole[]; + userRoles?: Schema$UserRole[]; } /** * Contains information about supported video formats. @@ -7444,24 +7448,24 @@ export namespace dfareporting_v3_0 { /** * File type of the video format. */ - fileType: string; + fileType?: string; /** * ID of the video format. */ - id: number; + id?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#videoFormat". */ - kind: string; + kind?: string; /** * The resolution of this video format. */ - resolution: Schema$Size; + resolution?: Schema$Size; /** * The target bit rate of this video format. */ - targetBitRate: number; + targetBitRate?: number; } /** * Video Format List Response @@ -7471,11 +7475,11 @@ export namespace dfareporting_v3_0 { * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#videoFormatsListResponse". */ - kind: string; + kind?: string; /** * Video format collection. */ - videoFormats: Schema$VideoFormat[]; + videoFormats?: Schema$VideoFormat[]; } /** * Video Offset @@ -7485,12 +7489,12 @@ export namespace dfareporting_v3_0 { * Duration, as a percentage of video duration. Do not set when * offsetSeconds is set. Acceptable values are 0 to 100, inclusive. */ - offsetPercentage: number; + offsetPercentage?: number; /** * Duration, in seconds. Do not set when offsetPercentage is set. Acceptable * values are 0 to 86399, inclusive. */ - offsetSeconds: number; + offsetSeconds?: number; } /** * Video Settings @@ -7500,31 +7504,32 @@ export namespace dfareporting_v3_0 { * Settings for the companion creatives of video creatives served to this * placement. */ - companionSettings: Schema$CompanionSetting; + companionSettings?: Schema$CompanionSetting; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#videoSettings". */ - kind: string; + kind?: string; /** * Orientation of a video placement. If this value is set, placement will * return assets matching the specified orientation. */ - orientation: string; + orientation?: string; /** * Settings for the skippability of video creatives served to this * placement. If this object is provided, the creative-level skippable * settings will be overridden. */ - skippableSettings: Schema$SkippableSetting; + skippableSettings?: Schema$SkippableSetting; /** * Settings for the transcodes of video creatives served to this placement. * If this object is provided, the creative-level transcode settings will be * overridden. */ - transcodeSettings: Schema$TranscodeSetting; + transcodeSettings?: Schema$TranscodeSetting; } + export class Resource$Accountactiveadsummaries { root: Dfareporting; constructor(root: Dfareporting) { @@ -7550,26 +7555,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountactiveadsummaries$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Accountactiveadsummaries$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountactiveadsummaries$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountactiveadsummaries$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountactiveadsummaries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountactiveadsummaries$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7594,6 +7609,23 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Accountactiveadsummaries$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Account ID. + */ + summaryAccountId?: string; + } + + export class Resource$Accountpermissiongroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -7619,26 +7651,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountpermissiongroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Accountpermissiongroups$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountpermissiongroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountpermissiongroups$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountpermissiongroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissiongroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7675,31 +7717,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountpermissiongroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountpermissiongroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountpermissiongroups$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Accountpermissiongroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountpermissiongroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissiongroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7726,6 +7785,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Accountpermissiongroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account permission group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accountpermissiongroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Accountpermissions { root: Dfareporting; constructor(root: Dfareporting) { @@ -7751,24 +7838,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountpermissions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accountpermissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountpermissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountpermissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountpermissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7805,29 +7903,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountpermissions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountpermissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accountpermissions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accountpermissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountpermissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountpermissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7854,6 +7967,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Accountpermissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account permission ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accountpermissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Accounts { root: Dfareporting; constructor(root: Dfareporting) { @@ -7879,23 +8020,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7939,28 +8090,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7998,25 +8159,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Accounts$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Accounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8053,25 +8225,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8095,6 +8278,102 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active accounts. Don't set this field to select both active + * and non-active accounts. + */ + active?: boolean; + /** + * Select only accounts with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "account*2015" will return objects with names like "account + * June 2015", "account April 2015", or simply "account 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "account" will match + * objects with name "my account", "account 2015", or simply "account". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Accounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Account ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Accountuserprofiles { root: Dfareporting; constructor(root: Dfareporting) { @@ -8120,24 +8399,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accountuserprofiles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accountuserprofiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accountuserprofiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accountuserprofiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountuserprofiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8175,26 +8465,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accountuserprofiles$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Accountuserprofiles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Accountuserprofiles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accountuserprofiles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountuserprofiles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8241,30 +8544,46 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accountuserprofiles$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accountuserprofiles$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accountuserprofiles$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accountuserprofiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountuserprofiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8306,26 +8625,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accountuserprofiles$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Accountuserprofiles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Accountuserprofiles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accountuserprofiles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accountuserprofiles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8363,26 +8695,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accountuserprofiles$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accountuserprofiles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accountuserprofiles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accountuserprofiles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accountuserprofiles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accountuserprofiles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8407,6 +8752,125 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Accountuserprofiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Accountuserprofiles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountUserProfile; + } + export interface Params$Resource$Accountuserprofiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active user profiles. + */ + active?: boolean; + /** + * Select only user profiles with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or email. Wildcards (*) are + * allowed. For example, "user profile*2015" will return objects with names + * like "user profile June 2015", "user profile April 2015", or simply "user + * profile 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "user profile" will match objects with name "my user profile", "user + * profile 2015", or simply "user profile". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only user profiles with the specified subaccount ID. + */ + subaccountId?: string; + /** + * Select only user profiles with the specified user role ID. + */ + userRoleId?: string; + } + export interface Params$Resource$Accountuserprofiles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountUserProfile; + } + export interface Params$Resource$Accountuserprofiles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AccountUserProfile; + } + + export class Resource$Ads { root: Dfareporting; constructor(root: Dfareporting) { @@ -8432,21 +8896,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Ads$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Ads$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Ads$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Ads$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8483,23 +8959,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Ads$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Ads$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Ads$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8558,26 +9047,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Ads$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Ads$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Ads$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8614,23 +9114,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Ads$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Ads$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Ads$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8666,23 +9179,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Ads$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Ads$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Ads$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Ads$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Ads$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Ads$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8705,6 +9231,188 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Ads$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Ads$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Ad; + } + export interface Params$Resource$Ads$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active ads. + */ + active?: boolean; + /** + * Select only ads with this advertiser ID. + */ + advertiserId?: string; + /** + * Select only archived ads. + */ + archived?: boolean; + /** + * Select only ads with these audience segment IDs. + */ + audienceSegmentIds?: string; + /** + * Select only ads with these campaign IDs. + */ + campaignIds?: string; + /** + * Select default ads with the specified compatibility. Applicable when type + * is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to + * rendering either on desktop or on mobile devices for regular or + * interstitial ads, respectively. APP and APP_INTERSTITIAL are for + * rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an + * in-stream video ads developed with the VAST standard. + */ + compatibility?: string; + /** + * Select only ads with these creative IDs assigned. + */ + creativeIds?: string; + /** + * Select only ads with these creative optimization configuration IDs. + */ + creativeOptimizationConfigurationIds?: string; + /** + * Select only dynamic click trackers. Applicable when type is + * AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If + * false, select static click trackers. Leave unset to select both. + */ + dynamicClickTracker?: boolean; + /** + * Select only ads with these IDs. + */ + ids?: string; + /** + * Select only ads with these landing page IDs. + */ + landingPageIds?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only ads with this event tag override ID. + */ + overriddenEventTagId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only ads with these placement IDs assigned. + */ + placementIds?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only ads whose list targeting expression use these remarketing + * list IDs. + */ + remarketingListIds?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "ad*2015" will return objects with names like "ad June + * 2015", "ad April 2015", or simply "ad 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. + * For example, a search string of "ad" will match objects with name "my + * ad", "ad 2015", or simply "ad". + */ + searchString?: string; + /** + * Select only ads with these size IDs. + */ + sizeIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only ads that are SSL-compliant. + */ + sslCompliant?: boolean; + /** + * Select only ads that require SSL. + */ + sslRequired?: boolean; + /** + * Select only ads with these types. + */ + type?: string; + } + export interface Params$Resource$Ads$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Ad ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Ad; + } + export interface Params$Resource$Ads$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Ad; + } + + export class Resource$Advertisergroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -8730,22 +9438,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisergroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Advertisergroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Advertisergroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8783,24 +9506,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Advertisergroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Advertisergroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Advertisergroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Advertisergroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8838,26 +9572,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Advertisergroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisergroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Advertisergroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8901,29 +9648,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Advertisergroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertisergroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Advertisergroups$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Advertisergroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8965,26 +9727,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Advertisergroups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Advertisergroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Advertisergroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9022,26 +9797,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisergroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Advertisergroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisergroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Advertisergroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisergroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisergroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9066,6 +9854,128 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Advertisergroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertisergroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertisergroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdvertiserGroup; + } + export interface Params$Resource$Advertisergroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only advertiser groups with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "advertiser*2015" will return objects with names like + * "advertiser group June 2015", "advertiser group April 2015", or simply + * "advertiser group 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "advertisergroup" will match objects with name "my + * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Advertisergroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdvertiserGroup; + } + export interface Params$Resource$Advertisergroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$AdvertiserGroup; + } + + export class Resource$Advertiserlandingpages { root: Dfareporting; constructor(root: Dfareporting) { @@ -9091,24 +10001,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Advertiserlandingpages$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Advertiserlandingpages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Advertiserlandingpages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Advertiserlandingpages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Advertiserlandingpages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertiserlandingpages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9146,26 +10067,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertiserlandingpages$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Advertiserlandingpages$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Advertiserlandingpages$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Advertiserlandingpages$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Advertiserlandingpages$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertiserlandingpages$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9211,31 +10145,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Advertiserlandingpages$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertiserlandingpages$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertiserlandingpages$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Advertiserlandingpages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Advertiserlandingpages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertiserlandingpages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9277,26 +10228,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertiserlandingpages$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Advertiserlandingpages$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Advertiserlandingpages$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Advertiserlandingpages$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Advertiserlandingpages$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertiserlandingpages$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9334,26 +10298,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertiserlandingpages$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Advertiserlandingpages$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertiserlandingpages$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Advertiserlandingpages$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Advertiserlandingpages$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertiserlandingpages$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9378,23 +10355,143 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Advertisers { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Advertiserlandingpages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.advertisers.get - * @desc Gets one advertiser by ID. - * @alias dfareporting.advertisers.get - * @memberOf! () + * Landing page ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertiserlandingpages$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$LandingPage; + } + export interface Params$Resource$Advertiserlandingpages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only landing pages that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived landing pages. Don't set this field to select both + * archived and non-archived landing pages. + */ + archived?: boolean; + /** + * Select only landing pages with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for landing pages by name or ID. Wildcards (*) are + * allowed. For example, "landingpage*2017" will return landing pages with + * names like "landingpage July 2017", "landingpage March 2017", or simply + * "landingpage 2017". Most of the searches also add wildcards implicitly at + * the start and the end of the search string. For example, a search string + * of "landingpage" will match campaigns with name "my landingpage", + * "landingpage 2015", or simply "landingpage". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only landing pages that belong to this subaccount. + */ + subaccountId?: string; + } + export interface Params$Resource$Advertiserlandingpages$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Landing page ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$LandingPage; + } + export interface Params$Resource$Advertiserlandingpages$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$LandingPage; + } + + + export class Resource$Advertisers { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.advertisers.get + * @desc Gets one advertiser by ID. + * @alias dfareporting.advertisers.get + * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.id Advertiser ID. @@ -9403,23 +10500,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Advertisers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Advertisers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Advertisers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Advertisers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Advertisers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9457,26 +10565,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Advertisers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Advertisers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Advertisers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9525,28 +10646,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Advertisers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertisers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Advertisers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Advertisers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Advertisers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9585,26 +10716,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Advertisers$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Advertisers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Advertisers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9641,26 +10784,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Advertisers$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Advertisers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Advertisers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Advertisers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Advertisers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Advertisers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9684,6 +10840,138 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Advertisers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Advertisers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Advertiser; + } + export interface Params$Resource$Advertisers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only advertisers with these advertiser group IDs. + */ + advertiserGroupIds?: string; + /** + * Select only advertisers with these floodlight configuration IDs. + */ + floodlightConfigurationIds?: string; + /** + * Select only advertisers with these IDs. + */ + ids?: string; + /** + * Select only advertisers which do not belong to any advertiser group. + */ + includeAdvertisersWithoutGroupsOnly?: boolean; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only advertisers which use another advertiser's floodlight + * configuration. + */ + onlyParent?: boolean; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "advertiser*2015" will return objects with names like + * "advertiser June 2015", "advertiser April 2015", or simply "advertiser + * 2015". Most of the searches also add wildcards implicitly at the start + * and the end of the search string. For example, a search string of + * "advertiser" will match objects with name "my advertiser", "advertiser + * 2015", or simply "advertiser". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only advertisers with the specified status. + */ + status?: string; + /** + * Select only advertisers with these subaccount IDs. + */ + subaccountId?: string; + } + export interface Params$Resource$Advertisers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Advertiser; + } + export interface Params$Resource$Advertisers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Advertiser; + } + + export class Resource$Browsers { root: Dfareporting; constructor(root: Dfareporting) { @@ -9708,28 +10996,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Browsers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Browsers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Browsers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Browsers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Browsers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Browsers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9753,6 +11051,19 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Browsers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Campaigncreativeassociations { root: Dfareporting; constructor(root: Dfareporting) { @@ -9781,29 +11092,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert( + params?: Params$Resource$Campaigncreativeassociations$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigncreativeassociations$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigncreativeassociations$Insert, + callback: BodyResponseCallback): + void; + insert(callback: BodyResponseCallback): + void; + insert( + paramsOrCallback?: Params$Resource$Campaigncreativeassociations$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Campaigncreativeassociations$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigncreativeassociations$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9846,30 +11172,45 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Campaigncreativeassociations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigncreativeassociations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$CampaignCreativeAssociationsListResponse>): void; + list( + params: Params$Resource$Campaigncreativeassociations$List, + callback: BodyResponseCallback< Schema$CampaignCreativeAssociationsListResponse>): void; + list(callback: BodyResponseCallback< + Schema$CampaignCreativeAssociationsListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Campaigncreativeassociations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$CampaignCreativeAssociationsListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Campaigncreativeassociations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigncreativeassociations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9896,6 +11237,54 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Campaigncreativeassociations$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID in this association. + */ + campaignId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CampaignCreativeAssociation; + } + export interface Params$Resource$Campaigncreativeassociations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID in this association. + */ + campaignId?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Campaigns { root: Dfareporting; constructor(root: Dfareporting) { @@ -9921,23 +11310,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Campaigns$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Campaigns$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Campaigns$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Campaigns$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9975,26 +11374,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Campaigns$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Campaigns$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Campaigns$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Campaigns$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10044,28 +11453,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Campaigns$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigns$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Campaigns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Campaigns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10103,25 +11522,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Campaigns$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Campaigns$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Campaigns$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Campaigns$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10158,26 +11588,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Campaigns$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Campaigns$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Campaigns$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Campaigns$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Campaigns$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Campaigns$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10201,9 +11641,146 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Changelogs { - root: Dfareporting; - constructor(root: Dfareporting) { + export interface Params$Resource$Campaigns$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Campaigns$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Campaign; + } + export interface Params$Resource$Campaigns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only campaigns whose advertisers belong to these advertiser + * groups. + */ + advertiserGroupIds?: string; + /** + * Select only campaigns that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived campaigns. Don't set this field to select both + * archived and non-archived campaigns. + */ + archived?: boolean; + /** + * Select only campaigns that have at least one optimization activity. + */ + atLeastOneOptimizationActivity?: boolean; + /** + * Exclude campaigns with these IDs. + */ + excludedIds?: string; + /** + * Select only campaigns with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only campaigns that have overridden this event tag ID. + */ + overriddenEventTagId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for campaigns by name or ID. Wildcards (*) are allowed. + * For example, "campaign*2015" will return campaigns with names like + * "campaign June 2015", "campaign April 2015", or simply "campaign 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "campaign" will + * match campaigns with name "my campaign", "campaign 2015", or simply + * "campaign". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only campaigns that belong to this subaccount. + */ + subaccountId?: string; + } + export interface Params$Resource$Campaigns$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Campaign ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Campaign; + } + export interface Params$Resource$Campaigns$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Campaign; + } + + + export class Resource$Changelogs { + root: Dfareporting; + constructor(root: Dfareporting) { this.root = root; this.getRoot.bind(this); } @@ -10226,23 +11803,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Changelogs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Changelogs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Changelogs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Changelogs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changelogs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changelogs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10289,28 +11877,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changelogs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Changelogs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Changelogs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Changelogs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changelogs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changelogs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10334,6 +11932,85 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Changelogs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Change log ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Changelogs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only change logs with the specified action. + */ + action?: string; + /** + * Select only change logs with these IDs. + */ + ids?: string; + /** + * Select only change logs whose change time is before the specified + * maxChangeTime.The time should be formatted as an RFC3339 date/time + * string. For example, for 10:54 PM on July 18th, 2015, in the America/New + * York time zone, the format is "2015-07-18T22:54:00-04:00". In other + * words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + */ + maxChangeTime?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only change logs whose change time is before the specified + * minChangeTime.The time should be formatted as an RFC3339 date/time + * string. For example, for 10:54 PM on July 18th, 2015, in the America/New + * York time zone, the format is "2015-07-18T22:54:00-04:00". In other + * words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + */ + minChangeTime?: string; + /** + * Select only change logs with these object IDs. + */ + objectIds?: string; + /** + * Select only change logs with the specified object type. + */ + objectType?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only change logs whose object ID, user name, old or new values + * match the search string. + */ + searchString?: string; + /** + * Select only change logs with these user profile IDs. + */ + userProfileIds?: string; + } + + export class Resource$Cities { root: Dfareporting; constructor(root: Dfareporting) { @@ -10362,26 +12039,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Cities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Cities$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Cities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Cities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Cities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Cities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10405,6 +12093,35 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Cities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only cities from these countries. + */ + countryDartIds?: string; + /** + * Select only cities with these DART IDs. + */ + dartIds?: string; + /** + * Select only cities with names starting with this prefix. + */ + namePrefix?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only cities from these regions. + */ + regionDartIds?: string; + } + + export class Resource$Connectiontypes { root: Dfareporting; constructor(root: Dfareporting) { @@ -10430,24 +12147,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Connectiontypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Connectiontypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Connectiontypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Connectiontypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Connectiontypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Connectiontypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10484,29 +12212,43 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Connectiontypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Connectiontypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Connectiontypes$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Connectiontypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Connectiontypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Connectiontypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10532,6 +12274,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Connectiontypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Connection type ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Connectiontypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Contentcategories { root: Dfareporting; constructor(root: Dfareporting) { @@ -10557,22 +12327,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contentcategories$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Contentcategories$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Contentcategories$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10610,24 +12395,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Contentcategories$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Contentcategories$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Contentcategories$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Contentcategories$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10665,26 +12461,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Contentcategories$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contentcategories$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Contentcategories$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10728,29 +12537,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Contentcategories$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contentcategories$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Contentcategories$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Contentcategories$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10792,26 +12616,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Contentcategories$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Contentcategories$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contentcategories$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10849,26 +12686,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contentcategories$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Contentcategories$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contentcategories$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Contentcategories$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contentcategories$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contentcategories$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10893,54 +12743,192 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Conversions { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Contentcategories$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * Content category ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Contentcategories$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Content category ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Contentcategories$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.conversions.batchinsert - * @desc Inserts conversions. - * @alias dfareporting.conversions.batchinsert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.profileId User profile ID associated with this request. - * @param {().ConversionsBatchInsertRequest} 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 + * User profile ID associated with this request. */ - batchinsert(params?: any, options?: MethodOptions): - AxiosPromise; - batchinsert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - batchinsert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ContentCategory; + } + export interface Params$Resource$Contentcategories$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only content categories with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "contentcategory*2015" will return objects with names like + * "contentcategory June 2015", "contentcategory April 2015", or simply + * "contentcategory 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "contentcategory" will match objects with name "my + * contentcategory", "contentcategory 2015", or simply "contentcategory". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Contentcategories$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Content category ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ContentCategory; + } + export interface Params$Resource$Contentcategories$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ContentCategory; + } + + + export class Resource$Conversions { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.conversions.batchinsert + * @desc Inserts conversions. + * @alias dfareporting.conversions.batchinsert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.profileId User profile ID associated with this request. + * @param {().ConversionsBatchInsertRequest} 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 + */ + batchinsert( + params?: Params$Resource$Conversions$Batchinsert, + options?: MethodOptions): + AxiosPromise; + batchinsert( + params: Params$Resource$Conversions$Batchinsert, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): + void; + batchinsert( + params: Params$Resource$Conversions$Batchinsert, + callback: BodyResponseCallback): + void; + batchinsert( + callback: BodyResponseCallback): + void; + batchinsert( + paramsOrCallback?: Params$Resource$Conversions$Batchinsert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Conversions$Batchinsert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversions$Batchinsert; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -10980,29 +12968,45 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchupdate(params?: any, options?: MethodOptions): + batchupdate( + params?: Params$Resource$Conversions$Batchupdate, + options?: MethodOptions): AxiosPromise; batchupdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Conversions$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchupdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Conversions$Batchupdate, + callback: BodyResponseCallback): + void; + batchupdate( + callback: BodyResponseCallback): + void; + batchupdate( + paramsOrCallback?: Params$Resource$Conversions$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Conversions$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversions$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11029,6 +13033,38 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Conversions$Batchinsert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ConversionsBatchInsertRequest; + } + export interface Params$Resource$Conversions$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$ConversionsBatchUpdateRequest; + } + + export class Resource$Countries { root: Dfareporting; constructor(root: Dfareporting) { @@ -11054,23 +13090,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Countries$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Countries$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Countries$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Countries$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Countries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Countries$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11107,28 +13153,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Countries$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Countries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Countries$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Countries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Countries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Countries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11152,6 +13208,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Countries$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Country DART ID. + */ + dartId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Countries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Creativeassets { root: Dfareporting; constructor(root: Dfareporting) { @@ -11181,28 +13265,40 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Creativeassets$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativeassets$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativeassets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Creativeassets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativeassets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativeassets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11231,6 +13327,41 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Creativeassets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Advertiser ID of this creative. This is a required field. + */ + advertiserId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeAssetMetadata; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Creativefields { root: Dfareporting; constructor(root: Dfareporting) { @@ -11256,22 +13387,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Creativefields$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefields$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Creativefields$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11309,24 +13455,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Creativefields$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Creativefields$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creativefields$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creativefields$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11364,26 +13521,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativefields$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creativefields$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefields$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11428,29 +13598,42 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creativefields$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativefields$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Creativefields$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Creativefields$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11491,26 +13674,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Creativefields$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Creativefields$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefields$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11548,26 +13744,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefields$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Creativefields$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefields$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Creativefields$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefields$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefields$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11592,58 +13801,199 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Creativefieldvalues { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Creativefields$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * Creative Field ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefields$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Creative Field ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefields$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.creativeFieldValues.delete - * @desc Deletes an existing creative field value. - * @alias dfareporting.creativeFieldValues.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.creativeFieldId Creative field ID for this creative field value. - * @param {string} params.id Creative Field Value ID - * @param {string} params.profileId User profile ID associated with this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * User profile ID associated with this request. */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + - '/dfareporting/v3.0/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeField; + } + export interface Params$Resource$Creativefields$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only creative fields that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only creative fields with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for creative fields by name or ID. Wildcards (*) are + * allowed. For example, "creativefield*2015" will return creative fields + * with names like "creativefield June 2015", "creativefield April 2015", or + * simply "creativefield 2015". Most of the searches also add wild-cards + * implicitly at the start and the end of the search string. For example, a + * search string of "creativefield" will match creative fields with the name + * "my creativefield", "creativefield 2015", or simply "creativefield". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Creativefields$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative Field ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeField; + } + export interface Params$Resource$Creativefields$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeField; + } + + + export class Resource$Creativefieldvalues { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.creativeFieldValues.delete + * @desc Deletes an existing creative field value. + * @alias dfareporting.creativeFieldValues.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.creativeFieldId Creative field ID for this creative field value. + * @param {string} params.id Creative Field Value ID + * @param {string} params.profileId User profile ID associated with this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Creativefieldvalues$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Creativefieldvalues$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Creativefieldvalues$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Creativefieldvalues$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Creativefieldvalues$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/dfareporting/v3.0/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, options), params, requiredParams: ['profileId', 'creativeFieldId', 'id'], @@ -11672,24 +14022,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Creativefieldvalues$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Creativefieldvalues$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creativefieldvalues$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creativefieldvalues$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefieldvalues$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11728,26 +14089,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativefieldvalues$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creativefieldvalues$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefieldvalues$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Creativefieldvalues$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11792,30 +14166,46 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Creativefieldvalues$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativefieldvalues$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Creativefieldvalues$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Creativefieldvalues$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefieldvalues$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11858,26 +14248,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Creativefieldvalues$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Creativefieldvalues$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativefieldvalues$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativefieldvalues$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11916,26 +14319,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativefieldvalues$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Creativefieldvalues$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativefieldvalues$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Creativefieldvalues$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Creativefieldvalues$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativefieldvalues$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -11960,6 +14376,147 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Creativefieldvalues$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Creative Field Value ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefieldvalues$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Creative Field Value ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativefieldvalues$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeFieldValue; + } + export interface Params$Resource$Creativefieldvalues$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Select only creative field values with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for creative field values by their values. Wildcards + * (e.g. *) are not allowed. + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Creativefieldvalues$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * Creative Field Value ID + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeFieldValue; + } + export interface Params$Resource$Creativefieldvalues$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative field ID for this creative field value. + */ + creativeFieldId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeFieldValue; + } + + export class Resource$Creativegroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -11985,24 +14542,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Creativegroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Creativegroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creativegroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creativegroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12040,26 +14608,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativegroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Creativegroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creativegroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativegroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12105,29 +14686,42 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creativegroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creativegroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Creativegroups$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Creativegroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12168,26 +14762,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativegroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Creativegroups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Creativegroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creativegroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12225,26 +14832,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Creativegroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Creativegroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creativegroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Creativegroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Creativegroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creativegroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12269,21 +14889,136 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Creatives { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Creativegroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Creative group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creativegroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.creatives.get - * @desc Gets one creative by ID. + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeGroup; + } + export interface Params$Resource$Creativegroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only creative groups that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only creative groups that belong to this subgroup. + */ + groupNumber?: number; + /** + * Select only creative groups with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for creative groups by name or ID. Wildcards (*) are + * allowed. For example, "creativegroup*2015" will return creative groups + * with names like "creativegroup June 2015", "creativegroup April 2015", or + * simply "creativegroup 2015". Most of the searches also add wild-cards + * implicitly at the start and the end of the search string. For example, a + * search string of "creativegroup" will match creative groups with the name + * "my creativegroup", "creativegroup 2015", or simply "creativegroup". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Creativegroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeGroup; + } + export interface Params$Resource$Creativegroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreativeGroup; + } + + + export class Resource$Creatives { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.creatives.get + * @desc Gets one creative by ID. * @alias dfareporting.creatives.get * @memberOf! () * @@ -12294,23 +15029,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Creatives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Creatives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Creatives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Creatives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12348,26 +15093,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Creatives$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Creatives$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12420,28 +15175,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Creatives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creatives$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Creatives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Creatives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12479,25 +15244,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Creatives$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Creatives$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Creatives$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12534,26 +15310,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Creatives$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Creatives$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Creatives$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Creatives$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Creatives$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Creatives$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12577,6 +15363,155 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Creatives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Creatives$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + export interface Params$Resource$Creatives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active creatives. Leave blank to select active and inactive + * creatives. + */ + active?: boolean; + /** + * Select only creatives with this advertiser ID. + */ + advertiserId?: string; + /** + * Select only archived creatives. Leave blank to select archived and + * unarchived creatives. + */ + archived?: boolean; + /** + * Select only creatives with this campaign ID. + */ + campaignId?: string; + /** + * Select only in-stream video creatives with these companion IDs. + */ + companionCreativeIds?: string; + /** + * Select only creatives with these creative field IDs. + */ + creativeFieldIds?: string; + /** + * Select only creatives with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only creatives with these rendering IDs. + */ + renderingIds?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "creative*2015" will return objects with names like + * "creative June 2015", "creative April 2015", or simply "creative 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "creative" will + * match objects with name "my creative", "creative 2015", or simply + * "creative". + */ + searchString?: string; + /** + * Select only creatives with these size IDs. + */ + sizeIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only creatives corresponding to this Studio creative ID. + */ + studioCreativeId?: string; + /** + * Select only creatives with these creative types. + */ + types?: string; + } + export interface Params$Resource$Creatives$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Creative ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + export interface Params$Resource$Creatives$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Creative; + } + + export class Resource$Dimensionvalues { root: Dfareporting; constructor(root: Dfareporting) { @@ -12604,26 +15539,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): - AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dimensionvalues$Query, + options?: MethodOptions): AxiosPromise; + query( + params: Params$Resource$Dimensionvalues$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Dimensionvalues$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; + query( + paramsOrCallback?: Params$Resource$Dimensionvalues$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Dimensionvalues$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dimensionvalues$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12648,6 +15596,31 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Dimensionvalues$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$DimensionValueRequest; + } + + export class Resource$Directorysitecontacts { root: Dfareporting; constructor(root: Dfareporting) { @@ -12673,26 +15646,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Directorysitecontacts$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Directorysitecontacts$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Directorysitecontacts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Directorysitecontacts$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysitecontacts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysitecontacts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12737,31 +15720,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Directorysitecontacts$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Directorysitecontacts$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Directorysitecontacts$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Directorysitecontacts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Directorysitecontacts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysitecontacts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12788,6 +15788,70 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Directorysitecontacts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Directory site contact ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Directorysitecontacts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only directory site contacts with these directory site IDs. This + * is a required field. + */ + directorySiteIds?: string; + /** + * Select only directory site contacts with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or email. Wildcards (*) are + * allowed. For example, "directory site contact*2015" will return objects + * with names like "directory site contact June 2015", "directory site + * contact April 2015", or simply "directory site contact 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "directory site contact" + * will match objects with name "my directory site contact", "directory site + * contact 2015", or simply "directory site contact". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Directorysites { root: Dfareporting; constructor(root: Dfareporting) { @@ -12813,24 +15877,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Directorysites$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Directorysites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Directorysites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Directorysites$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12868,26 +15943,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Directorysites$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Directorysites$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Directorysites$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Directorysites$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysites$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysites$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12938,29 +16026,42 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Directorysites$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Directorysites$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Directorysites$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Directorysites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Directorysites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Directorysites$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -12986,12 +16087,117 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Dynamictargetingkeys { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Directorysites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Directory site ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Directorysites$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$DirectorySite; + } + export interface Params$Resource$Directorysites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInStreamVideoPlacements?: boolean; + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInterstitialPlacements?: boolean; + /** + * Select only directory sites that accept publisher paid placements. This + * field can be left blank. + */ + acceptsPublisherPaidPlacements?: boolean; + /** + * Select only active directory sites. Leave blank to retrieve both active + * and inactive directory sites. + */ + active?: boolean; + /** + * Select only directory sites with this country ID. + */ + countryId?: string; + /** + * Select only directory sites with this DFP network code. + */ + dfpNetworkCode?: string; + /** + * Select only directory sites with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only directory sites with this parent ID. + */ + parentId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or URL. Wildcards (*) are + * allowed. For example, "directory site*2015" will return objects with + * names like "directory site June 2015", "directory site April 2015", or + * simply "directory site 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "directory site" will match objects with name "my + * directory site", "directory site 2015" or simply, "directory site". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + + export class Resource$Dynamictargetingkeys { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } getRoot() { return this.root; @@ -13013,22 +16219,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dynamictargetingkeys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Dynamictargetingkeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Dynamictargetingkeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Dynamictargetingkeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Dynamictargetingkeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dynamictargetingkeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13070,28 +16291,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Dynamictargetingkeys$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Dynamictargetingkeys$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Dynamictargetingkeys$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Dynamictargetingkeys$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Dynamictargetingkeys$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dynamictargetingkeys$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13132,31 +16364,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Dynamictargetingkeys$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Dynamictargetingkeys$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Dynamictargetingkeys$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Dynamictargetingkeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Dynamictargetingkeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dynamictargetingkeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13183,6 +16432,76 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Dynamictargetingkeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of this dynamic targeting key. This is a required field. Must be + * less than 256 characters long and cannot contain commas. All characters + * are converted to lowercase. + */ + name?: string; + /** + * ID of the object of this dynamic targeting key. This is a required field. + */ + objectId?: string; + /** + * Type of the object of this dynamic targeting key. This is a required + * field. + */ + objectType?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Dynamictargetingkeys$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$DynamicTargetingKey; + } + export interface Params$Resource$Dynamictargetingkeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only dynamic targeting keys whose object has this advertiser ID. + */ + advertiserId?: string; + /** + * Select only dynamic targeting keys exactly matching these names. + */ + names?: string; + /** + * Select only dynamic targeting keys with this object ID. + */ + objectId?: string; + /** + * Select only dynamic targeting keys with this object type. + */ + objectType?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Eventtags { root: Dfareporting; constructor(root: Dfareporting) { @@ -13208,22 +16527,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Eventtags$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Eventtags$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Eventtags$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13261,23 +16593,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Eventtags$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Eventtags$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Eventtags$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Eventtags$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13315,26 +16657,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Eventtags$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Eventtags$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Eventtags$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13380,28 +16732,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Eventtags$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Eventtags$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Eventtags$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Eventtags$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13440,25 +16802,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Eventtags$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Eventtags$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Eventtags$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13495,26 +16868,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Eventtags$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Eventtags$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Eventtags$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Eventtags$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Eventtags$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Eventtags$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13538,6 +16921,158 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Eventtags$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event tag ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Eventtags$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event tag ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Eventtags$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$EventTag; + } + export interface Params$Resource$Eventtags$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only event tags that belong to this ad. + */ + adId?: string; + /** + * Select only event tags that belong to this advertiser. + */ + advertiserId?: string; + /** + * Select only event tags that belong to this campaign. + */ + campaignId?: string; + /** + * Examine only the specified campaign or advertiser's event tags for + * matching selector criteria. When set to false, the parent advertiser and + * parent campaign of the specified ad or campaign is examined as well. In + * addition, when set to false, the status field is examined as well, along + * with the enabledByDefault field. This parameter can not be set to true + * when adId is specified as ads do not define their own even tags. + */ + definitionsOnly?: boolean; + /** + * Select only enabled event tags. What is considered enabled or disabled + * depends on the definitionsOnly parameter. When definitionsOnly is set to + * true, only the specified advertiser or campaign's event tags' + * enabledByDefault field is examined. When definitionsOnly is set to false, + * the specified ad or specified campaign's parent advertiser's or parent + * campaign's event tags' enabledByDefault and status fields are examined as + * well. + */ + enabled?: boolean; + /** + * Select only event tags with the specified event tag types. Event tag + * types can be used to specify whether to use a third-party pixel, a + * third-party JavaScript URL, or a third-party click-through URL for either + * impression or click tracking. + */ + eventTagTypes?: string; + /** + * Select only event tags with these IDs. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "eventtag*2015" will return objects with names like + * "eventtag June 2015", "eventtag April 2015", or simply "eventtag 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "eventtag" will + * match objects with name "my eventtag", "eventtag 2015", or simply + * "eventtag". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Eventtags$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Event tag ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$EventTag; + } + export interface Params$Resource$Eventtags$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$EventTag; + } + + export class Resource$Files { root: Dfareporting; constructor(root: Dfareporting) { @@ -13564,21 +17099,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Files$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Files$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Files$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Files$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13619,25 +17166,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Files$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Files$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13661,47 +17219,110 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Floodlightactivities { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Files$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.floodlightActivities.delete - * @desc Deletes an existing floodlight activity. - * @alias dfareporting.floodlightActivities.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id Floodlight activity ID. - * @param {string} params.profileId User profile ID associated with this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * The ID of the report file. */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + fileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Files$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The scope that defines which results are returned. + */ + scope?: string; + /** + * The field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + + export class Resource$Floodlightactivities { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.floodlightActivities.delete + * @desc Deletes an existing floodlight activity. + * @alias dfareporting.floodlightActivities.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.id Floodlight activity ID. + * @param {string} params.profileId User profile ID associated with this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Floodlightactivities$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Floodlightactivities$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Floodlightactivities$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Floodlightactivities$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13739,30 +17360,45 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generatetag(params?: any, options?: MethodOptions): + generatetag( + params?: Params$Resource$Floodlightactivities$Generatetag, + options?: MethodOptions): AxiosPromise; generatetag( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivities$Generatetag, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$FloodlightActivitiesGenerateTagResponse>): void; + generatetag( + params: Params$Resource$Floodlightactivities$Generatetag, + callback: BodyResponseCallback< Schema$FloodlightActivitiesGenerateTagResponse>): void; + generatetag(callback: BodyResponseCallback< + Schema$FloodlightActivitiesGenerateTagResponse>): void; generatetag( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivities$Generatetag| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$FloodlightActivitiesGenerateTagResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Generatetag; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Generatetag; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13802,24 +17438,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Floodlightactivities$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Floodlightactivities$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Floodlightactivities$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Floodlightactivities$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Floodlightactivities$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13857,26 +17504,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Floodlightactivities$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Floodlightactivities$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Floodlightactivities$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13927,31 +17587,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Floodlightactivities$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivities$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Floodlightactivities$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Floodlightactivities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -13993,26 +17670,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Floodlightactivities$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Floodlightactivities$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Floodlightactivities$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14050,26 +17740,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Floodlightactivities$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Floodlightactivities$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Floodlightactivities$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Floodlightactivities$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivities$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivities$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14094,6 +17797,182 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Floodlightactivities$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivities$Generatetag { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID for which we want to generate a tag. + */ + floodlightActivityId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivities$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivities$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivity; + } + export interface Params$Resource$Floodlightactivities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only floodlight activities for the specified advertiser ID. Must + * specify either ids, advertiserId, or floodlightConfigurationId for a + * non-empty result. + */ + advertiserId?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group IDs. + */ + floodlightActivityGroupIds?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group name. + */ + floodlightActivityGroupName?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group tag string. + */ + floodlightActivityGroupTagString?: string; + /** + * Select only floodlight activities with the specified floodlight activity + * group type. + */ + floodlightActivityGroupType?: string; + /** + * Select only floodlight activities for the specified floodlight + * configuration ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. + */ + floodlightConfigurationId?: string; + /** + * Select only floodlight activities with the specified IDs. Must specify + * either ids, advertiserId, or floodlightConfigurationId for a non-empty + * result. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "floodlightactivity*2015" will return objects with names + * like "floodlightactivity June 2015", "floodlightactivity April 2015", or + * simply "floodlightactivity 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "floodlightactivity" will match objects with name "my + * floodlightactivity activity", "floodlightactivity 2015", or simply + * "floodlightactivity". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only floodlight activities with the specified tag string. + */ + tagString?: string; + } + export interface Params$Resource$Floodlightactivities$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivity; + } + export interface Params$Resource$Floodlightactivities$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivity; + } + + export class Resource$Floodlightactivitygroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -14119,26 +17998,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Floodlightactivitygroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Floodlightactivitygroups$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Floodlightactivitygroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14176,28 +18065,41 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightactivitygroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Floodlightactivitygroups$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Floodlightactivitygroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): + void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14244,31 +18146,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Floodlightactivitygroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightactivitygroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Floodlightactivitygroups$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14310,28 +18229,40 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightactivitygroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Floodlightactivitygroups$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Floodlightactivitygroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14369,28 +18300,41 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightactivitygroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Floodlightactivitygroups$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Floodlightactivitygroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightactivitygroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightactivitygroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightactivitygroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14415,51 +18359,188 @@ export namespace dfareporting_v3_0 { } } - export class Resource$Floodlightconfigurations { - root: Dfareporting; - constructor(root: Dfareporting) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Floodlightactivitygroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Floodlight activity Group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightactivitygroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * dfareporting.floodlightConfigurations.get - * @desc Gets one floodlight configuration by ID. - * @alias dfareporting.floodlightConfigurations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id Floodlight configuration ID. - * @param {string} params.profileId User profile ID associated with this request. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object + * User profile ID associated with this request. */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivityGroup; + } + export interface Params$Resource$Floodlightactivitygroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only floodlight activity groups with the specified advertiser ID. + * Must specify either advertiserId or floodlightConfigurationId for a + * non-empty result. + */ + advertiserId?: string; + /** + * Select only floodlight activity groups with the specified floodlight + * configuration ID. Must specify either advertiserId, or + * floodlightConfigurationId for a non-empty result. + */ + floodlightConfigurationId?: string; + /** + * Select only floodlight activity groups with the specified IDs. Must + * specify either advertiserId or floodlightConfigurationId for a non-empty + * result. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "floodlightactivitygroup*2015" will return objects with + * names like "floodlightactivitygroup June 2015", "floodlightactivitygroup + * April 2015", or simply "floodlightactivitygroup 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "floodlightactivitygroup" + * will match objects with name "my floodlightactivitygroup activity", + * "floodlightactivitygroup 2015", or simply "floodlightactivitygroup". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only floodlight activity groups with the specified floodlight + * activity group type. + */ + type?: string; + } + export interface Params$Resource$Floodlightactivitygroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight activity Group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivityGroup; + } + export interface Params$Resource$Floodlightactivitygroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightActivityGroup; + } + + + export class Resource$Floodlightconfigurations { + root: Dfareporting; + constructor(root: Dfareporting) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * dfareporting.floodlightConfigurations.get + * @desc Gets one floodlight configuration by ID. + * @alias dfareporting.floodlightConfigurations.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.id Floodlight configuration ID. + * @param {string} params.profileId User profile ID associated with this request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Floodlightconfigurations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Floodlightconfigurations$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Floodlightconfigurations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Floodlightconfigurations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14497,31 +18578,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Floodlightconfigurations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightconfigurations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Floodlightconfigurations$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Floodlightconfigurations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14563,28 +18661,40 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightconfigurations$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Floodlightconfigurations$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightconfigurations$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Floodlightconfigurations$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14622,28 +18732,41 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Floodlightconfigurations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Floodlightconfigurations$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Floodlightconfigurations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; + update( + paramsOrCallback?: Params$Resource$Floodlightconfigurations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Floodlightconfigurations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Floodlightconfigurations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14668,6 +18791,73 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Floodlightconfigurations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight configuration ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightconfigurations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Set of IDs of floodlight configurations to retrieve. Required field; + * otherwise an empty list will be returned. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Floodlightconfigurations$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Floodlight configuration ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightConfiguration; + } + export interface Params$Resource$Floodlightconfigurations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$FloodlightConfiguration; + } + + export class Resource$Inventoryitems { root: Dfareporting; constructor(root: Dfareporting) { @@ -14694,24 +18884,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Inventoryitems$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Inventoryitems$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Inventoryitems$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Inventoryitems$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inventoryitems$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inventoryitems$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14759,29 +18960,42 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Inventoryitems$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inventoryitems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Inventoryitems$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Inventoryitems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Inventoryitems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Inventoryitems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14807,6 +19021,78 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Inventoryitems$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Inventory item ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + } + export interface Params$Resource$Inventoryitems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only inventory items with these IDs. + */ + ids?: string; + /** + * Select only inventory items that are in plan. + */ + inPlan?: boolean; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only inventory items that belong to specified orders. + */ + orderId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + /** + * Select only inventory items that are associated with these sites. + */ + siteId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only inventory items with this type. + */ + type?: string; + } + + export class Resource$Languages { root: Dfareporting; constructor(root: Dfareporting) { @@ -14831,28 +19117,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Languages$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Languages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Languages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Languages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Languages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Languages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14876,6 +19172,19 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Languages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Metros { root: Dfareporting; constructor(root: Dfareporting) { @@ -14900,26 +19209,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Metros$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Metros$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Metros$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Metros$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Metros$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metros$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -14943,6 +19263,19 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Metros$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Mobilecarriers { root: Dfareporting; constructor(root: Dfareporting) { @@ -14968,24 +19301,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Mobilecarriers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Mobilecarriers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Mobilecarriers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Mobilecarriers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobilecarriers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobilecarriers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15022,29 +19366,42 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Mobilecarriers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Mobilecarriers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Mobilecarriers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Mobilecarriers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobilecarriers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobilecarriers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15070,6 +19427,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Mobilecarriers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Mobile carrier ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Mobilecarriers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Operatingsystems { root: Dfareporting; constructor(root: Dfareporting) { @@ -15095,24 +19480,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Operatingsystems$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Operatingsystems$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operatingsystems$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operatingsystems$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operatingsystems$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystems$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15149,29 +19545,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Operatingsystems$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operatingsystems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operatingsystems$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Operatingsystems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operatingsystems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15198,6 +19609,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Operatingsystems$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Operating system DART ID. + */ + dartId?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Operatingsystems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Operatingsystemversions { root: Dfareporting; constructor(root: Dfareporting) { @@ -15223,26 +19662,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Operatingsystemversions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Operatingsystemversions$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operatingsystemversions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operatingsystemversions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Operatingsystemversions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystemversions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15279,31 +19728,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Operatingsystemversions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operatingsystemversions$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operatingsystemversions$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Operatingsystemversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Operatingsystemversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operatingsystemversions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15330,6 +19796,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Operatingsystemversions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Operating system version ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Operatingsystemversions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Orderdocuments { root: Dfareporting; constructor(root: Dfareporting) { @@ -15356,24 +19850,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Orderdocuments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Orderdocuments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orderdocuments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orderdocuments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orderdocuments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orderdocuments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15421,29 +19926,42 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Orderdocuments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Orderdocuments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Orderdocuments$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Orderdocuments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Orderdocuments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orderdocuments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15469,6 +19987,84 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Orderdocuments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Order document ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + } + export interface Params$Resource$Orderdocuments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only order documents that have been approved by at least one user. + */ + approved?: boolean; + /** + * Select only order documents with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only order documents for specified orders. + */ + orderId?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for order documents. + */ + projectId?: string; + /** + * Allows searching for order documents by name or ID. Wildcards (*) are + * allowed. For example, "orderdocument*2015" will return order documents + * with names like "orderdocument June 2015", "orderdocument April 2015", or + * simply "orderdocument 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "orderdocument" will match order documents with name "my + * orderdocument", "orderdocument 2015", or simply "orderdocument". + */ + searchString?: string; + /** + * Select only order documents that are associated with these sites. + */ + siteId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Orders { root: Dfareporting; constructor(root: Dfareporting) { @@ -15495,23 +20091,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Orders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Orders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Orders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Orders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15557,26 +20163,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Orders$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Orders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Orders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Orders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15601,6 +20218,75 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Orders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Order ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for orders. + */ + projectId?: string; + } + export interface Params$Resource$Orders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only orders with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Project ID for orders. + */ + projectId?: string; + /** + * Allows searching for orders by name or ID. Wildcards (*) are allowed. For + * example, "order*2015" will return orders with names like "order June + * 2015", "order April 2015", or simply "order 2015". Most of the searches + * also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "order" will match orders with + * name "my order", "order 2015", or simply "order". + */ + searchString?: string; + /** + * Select only orders that are associated with these site IDs. + */ + siteId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Placementgroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -15626,24 +20312,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Placementgroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Placementgroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Placementgroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Placementgroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15681,26 +20378,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementgroups$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Placementgroups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementgroups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Placementgroups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15757,29 +20467,43 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Placementgroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placementgroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Placementgroups$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Placementgroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15820,26 +20544,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementgroups$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Placementgroups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Placementgroups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementgroups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15877,26 +20614,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementgroups$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementgroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Placementgroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Placementgroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementgroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementgroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -15921,6 +20671,180 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Placementgroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placementgroups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementGroup; + } + export interface Params$Resource$Placementgroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only placement groups that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived placements. Don't set this field to select both + * archived and non-archived placements. + */ + archived?: boolean; + /** + * Select only placement groups that belong to these campaigns. + */ + campaignIds?: string; + /** + * Select only placement groups that are associated with these content + * categories. + */ + contentCategoryIds?: string; + /** + * Select only placement groups that are associated with these directory + * sites. + */ + directorySiteIds?: string; + /** + * Select only placement groups with these IDs. + */ + ids?: string; + /** + * Select only placements or placement groups whose end date is on or before + * the specified maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + maxEndDate?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only placements or placement groups whose start date is on or + * before the specified maxStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + maxStartDate?: string; + /** + * Select only placements or placement groups whose end date is on or after + * the specified minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + minEndDate?: string; + /** + * Select only placements or placement groups whose start date is on or + * after the specified minStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + minStartDate?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only placement groups belonging with this group type. A package is + * a simple group of placements that acts as a single pricing point for a + * group of tags. A roadblock is a group of placements that not only acts as + * a single pricing point but also assumes that all the tags in it will be + * served at the same time. A roadblock requires one of its assigned + * placements to be marked as primary for reporting. + */ + placementGroupType?: string; + /** + * Select only placement groups that are associated with these placement + * strategies. + */ + placementStrategyIds?: string; + /** + * Select only placement groups with these pricing types. + */ + pricingTypes?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for placement groups by name or ID. Wildcards (*) are + * allowed. For example, "placement*2015" will return placement groups with + * names like "placement group June 2015", "placement group May 2015", or + * simply "placements 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "placementgroup" will match placement groups with name + * "my placementgroup", "placementgroup 2015", or simply "placementgroup". + */ + searchString?: string; + /** + * Select only placement groups that are associated with these sites. + */ + siteIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Placementgroups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementGroup; + } + export interface Params$Resource$Placementgroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementGroup; + } + + export class Resource$Placements { root: Dfareporting; constructor(root: Dfareporting) { @@ -15948,29 +20872,45 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generatetags(params?: any, options?: MethodOptions): + generatetags( + params?: Params$Resource$Placements$Generatetags, + options?: MethodOptions): AxiosPromise; generatetags( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placements$Generatetags, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generatetags( + params: Params$Resource$Placements$Generatetags, + callback: BodyResponseCallback): + void; + generatetags( + callback: BodyResponseCallback): void; generatetags( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Placements$Generatetags| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placements$Generatetags; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Generatetags; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16010,23 +20950,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Placements$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Placements$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Placements$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Placements$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Placements$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16064,26 +21015,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Placements$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Placements$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Placements$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placements$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placements$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16142,28 +21105,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Placements$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placements$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Placements$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Placements$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Placements$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16202,26 +21175,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Placements$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Placements$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Placements$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placements$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Placements$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16258,49 +21242,268 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/dfareporting/v3.0/userprofiles/{profileId}/placements') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + update(params?: Params$Resource$Placements$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Placements$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Placements$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Placements$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Placements$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placements$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/dfareporting/v3.0/userprofiles/{profileId}/placements') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Placements$Generatetags { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Generate placements belonging to this campaign. This is a required field. + */ + campaignId?: string; + /** + * Generate tags for these placements. + */ + placementIds?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Tag formats to generate for these placements. Note: + * PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. + */ + tagFormats?: string; + } + export interface Params$Resource$Placements$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placements$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Placement; + } + export interface Params$Resource$Placements$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only placements that belong to these advertisers. + */ + advertiserIds?: string; + /** + * Select only archived placements. Don't set this field to select both + * archived and non-archived placements. + */ + archived?: boolean; + /** + * Select only placements that belong to these campaigns. + */ + campaignIds?: string; + /** + * Select only placements that are associated with these compatibilities. + * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or + * on mobile devices for regular or interstitial ads respectively. APP and + * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers + * to rendering in in-stream video ads developed with the VAST standard. + */ + compatibilities?: string; + /** + * Select only placements that are associated with these content categories. + */ + contentCategoryIds?: string; + /** + * Select only placements that are associated with these directory sites. + */ + directorySiteIds?: string; + /** + * Select only placements that belong to these placement groups. + */ + groupIds?: string; + /** + * Select only placements with these IDs. + */ + ids?: string; + /** + * Select only placements or placement groups whose end date is on or before + * the specified maxEndDate. The date should be formatted as "yyyy-MM-dd". + */ + maxEndDate?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Select only placements or placement groups whose start date is on or + * before the specified maxStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + maxStartDate?: string; + /** + * Select only placements or placement groups whose end date is on or after + * the specified minEndDate. The date should be formatted as "yyyy-MM-dd". + */ + minEndDate?: string; + /** + * Select only placements or placement groups whose start date is on or + * after the specified minStartDate. The date should be formatted as + * "yyyy-MM-dd". + */ + minStartDate?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * Select only placements with this payment source. + */ + paymentSource?: string; + /** + * Select only placements that are associated with these placement + * strategies. + */ + placementStrategyIds?: string; + /** + * Select only placements with these pricing types. + */ + pricingTypes?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for placements by name or ID. Wildcards (*) are allowed. + * For example, "placement*2015" will return placements with names like + * "placement June 2015", "placement May 2015", or simply "placements 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "placement" + * will match placements with name "my placement", "placement 2015", or + * simply "placement". + */ + searchString?: string; + /** + * Select only placements that are associated with these sites. + */ + siteIds?: string; + /** + * Select only placements that are associated with these sizes. + */ + sizeIds?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Placements$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Placement; + } + export interface Params$Resource$Placements$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Placement; } + export class Resource$Placementstrategies { root: Dfareporting; constructor(root: Dfareporting) { @@ -16326,22 +21529,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Placementstrategies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementstrategies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Placementstrategies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Placementstrategies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16379,24 +21597,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Placementstrategies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Placementstrategies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Placementstrategies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Placementstrategies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementstrategies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16434,26 +21663,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Placementstrategies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Placementstrategies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementstrategies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Placementstrategies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16497,30 +21739,46 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Placementstrategies$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Placementstrategies$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Placementstrategies$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Placementstrategies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementstrategies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16562,26 +21820,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Placementstrategies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Placementstrategies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Placementstrategies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Placementstrategies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16619,26 +21890,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Placementstrategies$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Placementstrategies$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Placementstrategies$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Placementstrategies$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Placementstrategies$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Placementstrategies$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16663,6 +21947,129 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Placementstrategies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement strategy ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placementstrategies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement strategy ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Placementstrategies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementStrategy; + } + export interface Params$Resource$Placementstrategies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only placement strategies with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "placementstrategy*2015" will return objects with names like + * "placementstrategy June 2015", "placementstrategy April 2015", or simply + * "placementstrategy 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "placementstrategy" will match objects with name "my + * placementstrategy", "placementstrategy 2015", or simply + * "placementstrategy". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Placementstrategies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Placement strategy ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementStrategy; + } + export interface Params$Resource$Placementstrategies$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$PlacementStrategy; + } + + export class Resource$Platformtypes { root: Dfareporting; constructor(root: Dfareporting) { @@ -16688,24 +22095,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Platformtypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Platformtypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Platformtypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Platformtypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Platformtypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Platformtypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16742,29 +22160,40 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Platformtypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Platformtypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Platformtypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Platformtypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Platformtypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Platformtypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16789,6 +22218,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Platformtypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Platform type ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Platformtypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Postalcodes { root: Dfareporting; constructor(root: Dfareporting) { @@ -16814,23 +22271,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Postalcodes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Postalcodes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Postalcodes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Postalcodes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Postalcodes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Postalcodes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16867,28 +22335,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Postalcodes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Postalcodes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Postalcodes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Postalcodes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Postalcodes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Postalcodes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16912,6 +22390,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Postalcodes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Postal code ID. + */ + code?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Postalcodes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Projects { root: Dfareporting; constructor(root: Dfareporting) { @@ -16937,23 +22443,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -16997,28 +22513,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17042,6 +22568,67 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Projects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only projects with these advertiser IDs. + */ + advertiserIds?: string; + /** + * Select only projects with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for projects by name or ID. Wildcards (*) are allowed. + * For example, "project*2015" will return projects with names like "project + * June 2015", "project April 2015", or simply "project 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "project" will match + * projects with name "my project", "project 2015", or simply "project". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Regions { root: Dfareporting; constructor(root: Dfareporting) { @@ -17066,28 +22653,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Regions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Regions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Regions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17111,6 +22707,19 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Regions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Remarketinglists { root: Dfareporting; constructor(root: Dfareporting) { @@ -17136,24 +22745,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Remarketinglists$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Remarketinglists$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Remarketinglists$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Remarketinglists$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17191,26 +22811,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Remarketinglists$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Remarketinglists$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Remarketinglists$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Remarketinglists$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17256,29 +22889,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Remarketinglists$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Remarketinglists$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Remarketinglists$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Remarketinglists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17320,26 +22968,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Remarketinglists$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Remarketinglists$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Remarketinglists$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Remarketinglists$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17377,26 +23038,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Remarketinglists$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Remarketinglists$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Remarketinglists$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Remarketinglists$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglists$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglists$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17421,6 +23095,121 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Remarketinglists$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Remarketing list ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Remarketinglists$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingList; + } + export interface Params$Resource$Remarketinglists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active or only inactive remarketing lists. + */ + active?: boolean; + /** + * Select only remarketing lists owned by this advertiser. + */ + advertiserId?: string; + /** + * Select only remarketing lists that have this floodlight activity ID. + */ + floodlightActivityId?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "remarketing list*2015" will return objects with names like + * "remarketing list June 2015", "remarketing list April 2015", or simply + * "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + */ + name?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Remarketinglists$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Remarketing list ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingList; + } + export interface Params$Resource$Remarketinglists$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingList; + } + + export class Resource$Remarketinglistshares { root: Dfareporting; constructor(root: Dfareporting) { @@ -17446,26 +23235,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Remarketinglistshares$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Remarketinglistshares$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Remarketinglistshares$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Remarketinglistshares$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Remarketinglistshares$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglistshares$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17505,28 +23304,40 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Remarketinglistshares$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Remarketinglistshares$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Remarketinglistshares$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Remarketinglistshares$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Remarketinglistshares$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglistshares$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17564,28 +23375,40 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Remarketinglistshares$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Remarketinglistshares$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Remarketinglistshares$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Remarketinglistshares$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Remarketinglistshares$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Remarketinglistshares$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17610,6 +23433,57 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Remarketinglistshares$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Remarketing list ID. + */ + remarketingListId?: string; + } + export interface Params$Resource$Remarketinglistshares$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Remarketing list ID. + */ + remarketingListId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingListShare; + } + export interface Params$Resource$Remarketinglistshares$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemarketingListShare; + } + + export class Resource$Reports { root: Dfareporting; compatibleFields: Resource$Reports$Compatiblefields; @@ -17639,22 +23513,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Reports$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Reports$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17692,23 +23579,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Reports$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Reports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Reports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Reports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17746,25 +23643,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Reports$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Reports$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17805,26 +23713,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reports$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Reports$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17862,25 +23781,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Reports$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Reports$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17919,21 +23849,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Reports$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Reports$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Reports$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Reports$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -17959,61 +23901,207 @@ export namespace dfareporting_v3_0 { /** - * dfareporting.reports.update - * @desc Updates a report. - * @alias dfareporting.reports.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.profileId The DFA user profile ID. - * @param {string} params.reportId The ID of the report. - * @param {().Report} 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 + * dfareporting.reports.update + * @desc Updates a report. + * @alias dfareporting.reports.update + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.profileId The DFA user profile ID. + * @param {string} params.reportId The ID of the report. + * @param {().Report} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + update(params?: Params$Resource$Reports$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Reports$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Reports$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Reports$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/dfareporting/v3.0/userprofiles/{profileId}/reports/{reportId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Reports$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + export interface Params$Resource$Reports$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The scope that defines which results are returned. + */ + scope?: string; + /** + * The field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Reports$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + export interface Params$Resource$Reports$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA profile ID. */ - update(params?: any, options?: MethodOptions): AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/dfareporting/v3.0/userprofiles/{profileId}/reports/{reportId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['profileId', 'reportId'], - pathParams: ['profileId', 'reportId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + /** + * If set and true, tries to run the report synchronously. + */ + synchronous?: boolean; + } + export interface Params$Resource$Reports$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; } + export class Resource$Reports$Compatiblefields { root: Dfareporting; constructor(root: Dfareporting) { @@ -18041,26 +24129,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): - AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Compatiblefields$Query, + options?: MethodOptions): AxiosPromise; + query( + params: Params$Resource$Reports$Compatiblefields$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Reports$Compatiblefields$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Compatiblefields$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Reports$Compatiblefields$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Compatiblefields$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18085,6 +24186,23 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Reports$Compatiblefields$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The DFA user profile ID. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Report; + } + + export class Resource$Reports$Files { root: Dfareporting; constructor(root: Dfareporting) { @@ -18111,21 +24229,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Reports$Files$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Reports$Files$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Reports$Files$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Reports$Files$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Files$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Files$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18167,25 +24298,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Reports$Files$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Files$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Files$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Reports$Files$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Files$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Files$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18210,6 +24353,58 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Reports$Files$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the report file. + */ + fileId?: string; + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Files$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * The value of the nextToken from the previous result page. + */ + pageToken?: string; + /** + * The DFA profile ID. + */ + profileId?: string; + /** + * The ID of the parent report. + */ + reportId?: string; + /** + * The field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Sites { root: Dfareporting; @@ -18236,21 +24431,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sites$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sites$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18287,23 +24494,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Sites$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Sites$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sites$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18355,26 +24575,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sites$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sites$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18412,23 +24643,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Sites$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Sites$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sites$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18465,23 +24709,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Sites$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sites$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Sites$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18505,6 +24762,150 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Sites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Site ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Sites$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Site; + } + export interface Params$Resource$Sites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInStreamVideoPlacements?: boolean; + /** + * This search filter is no longer supported and will have no effect on the + * results returned. + */ + acceptsInterstitialPlacements?: boolean; + /** + * Select only sites that accept publisher paid placements. + */ + acceptsPublisherPaidPlacements?: boolean; + /** + * Select only AdWords sites. + */ + adWordsSite?: boolean; + /** + * Select only approved sites. + */ + approved?: boolean; + /** + * Select only sites with these campaign IDs. + */ + campaignIds?: string; + /** + * Select only sites with these directory site IDs. + */ + directorySiteIds?: string; + /** + * Select only sites with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name, ID or keyName. Wildcards (*) are + * allowed. For example, "site*2015" will return objects with names like + * "site June 2015", "site April 2015", or simply "site 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the + * search string. For example, a search string of "site" will match objects + * with name "my site", "site 2015", or simply "site". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only sites with this subaccount ID. + */ + subaccountId?: string; + /** + * Select only sites that have not been mapped to a directory site. + */ + unmappedSite?: boolean; + } + export interface Params$Resource$Sites$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Site ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Site; + } + export interface Params$Resource$Sites$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Site; + } + + export class Resource$Sizes { root: Dfareporting; constructor(root: Dfareporting) { @@ -18530,21 +24931,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sizes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sizes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sizes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sizes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sizes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sizes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18581,23 +24994,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Sizes$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Sizes$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sizes$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sizes$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sizes$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sizes$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18637,26 +25063,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sizes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sizes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sizes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sizes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sizes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sizes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18680,6 +25117,65 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Sizes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Size ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Sizes$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Size; + } + export interface Params$Resource$Sizes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only sizes with this height. + */ + height?: number; + /** + * Select only IAB standard sizes. + */ + iabStandard?: boolean; + /** + * Select only sizes with these IDs. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Select only sizes with this width. + */ + width?: number; + } + + export class Resource$Subaccounts { root: Dfareporting; constructor(root: Dfareporting) { @@ -18705,23 +25201,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Subaccounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Subaccounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subaccounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subaccounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subaccounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18759,26 +25266,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subaccounts$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Subaccounts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Subaccounts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subaccounts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subaccounts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18821,28 +25341,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subaccounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subaccounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subaccounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Subaccounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Subaccounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18881,26 +25411,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Subaccounts$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subaccounts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subaccounts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Subaccounts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subaccounts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18937,26 +25479,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subaccounts$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subaccounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Subaccounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Subaccounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subaccounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subaccounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -18980,6 +25535,113 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Subaccounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Subaccount ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Subaccounts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subaccount; + } + export interface Params$Resource$Subaccounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only subaccounts with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "subaccount*2015" will return objects with names like + * "subaccount June 2015", "subaccount April 2015", or simply "subaccount + * 2015". Most of the searches also add wildcards implicitly at the start + * and the end of the search string. For example, a search string of + * "subaccount" will match objects with name "my subaccount", "subaccount + * 2015", or simply "subaccount". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Subaccounts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Subaccount ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subaccount; + } + export interface Params$Resource$Subaccounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subaccount; + } + + export class Resource$Targetableremarketinglists { root: Dfareporting; constructor(root: Dfareporting) { @@ -19005,27 +25667,37 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Targetableremarketinglists$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Targetableremarketinglists$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetableremarketinglists$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetableremarketinglists$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetableremarketinglists$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetableremarketinglists$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19071,30 +25743,45 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Targetableremarketinglists$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetableremarketinglists$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$TargetableRemarketingListsListResponse>): void; + list( + params: Params$Resource$Targetableremarketinglists$List, + callback: BodyResponseCallback< Schema$TargetableRemarketingListsListResponse>): void; + list(callback: BodyResponseCallback< + Schema$TargetableRemarketingListsListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetableremarketinglists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$TargetableRemarketingListsListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Targetableremarketinglists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetableremarketinglists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19121,6 +25808,68 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Targetableremarketinglists$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Remarketing list ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Targetableremarketinglists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only active or only inactive targetable remarketing lists. + */ + active?: boolean; + /** + * Select only targetable remarketing lists targetable by these advertisers. + */ + advertiserId?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "remarketing list*2015" will return objects with names like + * "remarketing list June 2015", "remarketing list April 2015", or simply + * "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + */ + name?: string; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + + export class Resource$Targetingtemplates { root: Dfareporting; constructor(root: Dfareporting) { @@ -19146,24 +25895,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Targetingtemplates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Targetingtemplates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Targetingtemplates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Targetingtemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19201,26 +25961,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetingtemplates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Targetingtemplates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Targetingtemplates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Targetingtemplates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19265,29 +26038,44 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Targetingtemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Targetingtemplates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Targetingtemplates$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Targetingtemplates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19329,26 +26117,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Targetingtemplates$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Targetingtemplates$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Targetingtemplates$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Targetingtemplates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19374,62 +26175,186 @@ export namespace dfareporting_v3_0 { /** - * dfareporting.targetingTemplates.update - * @desc Updates an existing targeting template. - * @alias dfareporting.targetingTemplates.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.profileId User profile ID associated with this request. - * @param {().TargetingTemplate} 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 + * dfareporting.targetingTemplates.update + * @desc Updates an existing targeting template. + * @alias dfareporting.targetingTemplates.update + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.profileId User profile ID associated with this request. + * @param {().TargetingTemplate} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + update( + params?: Params$Resource$Targetingtemplates$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Targetingtemplates$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Targetingtemplates$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Targetingtemplates$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Targetingtemplates$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Targetingtemplates$Update; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/dfareporting/v3.0/userprofiles/{profileId}/targetingTemplates') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Targetingtemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Targeting template ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Targetingtemplates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetingTemplate; + } + export interface Params$Resource$Targetingtemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only targeting templates with this advertiser ID. + */ + advertiserId?: string; + /** + * Select only targeting templates with these IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "template*2015" will return objects with names like + * "template June 2015", "template April 2015", or simply "template 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "template" will + * match objects with name "my template", "template 2015", or simply + * "template". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + } + export interface Params$Resource$Targetingtemplates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Targeting template ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetingTemplate; + } + export interface Params$Resource$Targetingtemplates$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/dfareporting/v3.0/userprofiles/{profileId}/targetingTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['profileId'], - pathParams: ['profileId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$TargetingTemplate; } + export class Resource$Userprofiles { root: Dfareporting; constructor(root: Dfareporting) { @@ -19454,24 +26379,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userprofiles$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userprofiles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userprofiles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userprofiles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userprofiles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19505,26 +26440,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Userprofiles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userprofiles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Userprofiles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Userprofiles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userprofiles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userprofiles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19547,6 +26494,25 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Userprofiles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user profile ID. + */ + profileId?: string; + } + export interface Params$Resource$Userprofiles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Userrolepermissiongroups { root: Dfareporting; constructor(root: Dfareporting) { @@ -19572,26 +26538,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userrolepermissiongroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Userrolepermissiongroups$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userrolepermissiongroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userrolepermissiongroups$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userrolepermissiongroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissiongroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19628,31 +26604,48 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Userrolepermissiongroups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissiongroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissiongroups$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Userrolepermissiongroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Userrolepermissiongroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissiongroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19679,6 +26672,34 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Userrolepermissiongroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role permission group ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userrolepermissiongroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Userrolepermissions { root: Dfareporting; constructor(root: Dfareporting) { @@ -19704,24 +26725,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userrolepermissions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userrolepermissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userrolepermissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userrolepermissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userrolepermissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19759,30 +26791,46 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Userrolepermissions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userrolepermissions$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Userrolepermissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userrolepermissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userrolepermissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19809,6 +26857,38 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Userrolepermissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role permission ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userrolepermissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only user role permissions with these IDs. + */ + ids?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + + export class Resource$Userroles { root: Dfareporting; constructor(root: Dfareporting) { @@ -19834,22 +26914,35 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Userroles$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Userroles$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Userroles$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19887,23 +26980,33 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Userroles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Userroles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userroles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userroles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -19941,26 +27044,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Userroles$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Userroles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Userroles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20005,28 +27118,38 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Userroles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userroles$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userroles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Userroles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20065,25 +27188,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Userroles$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Userroles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Userroles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20120,26 +27254,36 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Userroles$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Userroles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Userroles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Userroles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userroles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userroles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20163,6 +27307,137 @@ export namespace dfareporting_v3_0 { } } + export interface Params$Resource$Userroles$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userroles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Userroles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserRole; + } + export interface Params$Resource$Userroles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Select only account level user roles not associated with any specific + * subaccount. + */ + accountUserRoleOnly?: boolean; + /** + * Select only user roles with the specified IDs. + */ + ids?: string; + /** + * Maximum number of results to return. + */ + maxResults?: number; + /** + * Value of the nextPageToken from the previous result page. + */ + pageToken?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Allows searching for objects by name or ID. Wildcards (*) are allowed. + * For example, "userrole*2015" will return objects with names like + * "userrole June 2015", "userrole April 2015", or simply "userrole 2015". + * Most of the searches also add wildcards implicitly at the start and the + * end of the search string. For example, a search string of "userrole" will + * match objects with name "my userrole", "userrole 2015", or simply + * "userrole". + */ + searchString?: string; + /** + * Field by which to sort the list. + */ + sortField?: string; + /** + * Order of sorted results. + */ + sortOrder?: string; + /** + * Select only user roles that belong to this subaccount. + */ + subaccountId?: string; + } + export interface Params$Resource$Userroles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User role ID. + */ + id?: string; + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserRole; + } + export interface Params$Resource$Userroles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserRole; + } + + export class Resource$Videoformats { root: Dfareporting; constructor(root: Dfareporting) { @@ -20188,24 +27463,34 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Videoformats$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Videoformats$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Videoformats$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Videoformats$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videoformats$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videoformats$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20242,28 +27527,39 @@ export namespace dfareporting_v3_0 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Videoformats$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videoformats$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Videoformats$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Videoformats$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Videoformats$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videoformats$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -20286,4 +27582,31 @@ export namespace dfareporting_v3_0 { } } } + + export interface Params$Resource$Videoformats$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Video format ID. + */ + id?: number; + /** + * User profile ID associated with this request. + */ + profileId?: string; + } + export interface Params$Resource$Videoformats$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * User profile ID associated with this request. + */ + profileId?: string; + } } diff --git a/src/apis/dialogflow/v2.ts b/src/apis/dialogflow/v2.ts index a19e150b0e8..6d2004f0622 100644 --- a/src/apis/dialogflow/v2.ts +++ b/src/apis/dialogflow/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dialogflow_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Dialogflow API * @@ -75,7 +78,7 @@ export namespace dialogflow_v2 { * the Dialogflow console and in the self-hosted [Web * Demo](https://dialogflow.com/docs/integrations/web-demo) integration. */ - avatarUri: string; + avatarUri?: string; /** * Optional. To filter out false positive results and still get variety in * matched natural language inputs for your agent, you can tune the machine @@ -85,47 +88,47 @@ export namespace dialogflow_v2 { * score values range from 0.0 (completely uncertain) to 1.0 (completely * certain). If set to 0.0, the default of 0.3 is used. */ - classificationThreshold: number; + classificationThreshold?: number; /** * Required. The default language of the agent as a language tag. See * [Language Support](https://dialogflow.com/docs/reference/language) for a * list of the currently supported language codes. This field cannot be set * by the `Update` method. */ - defaultLanguageCode: string; + defaultLanguageCode?: string; /** * Optional. The description of this agent. The maximum length is 500 * characters. If exceeded, the request is rejected. */ - description: string; + description?: string; /** * Required. The name of this agent. */ - displayName: string; + displayName?: string; /** * Optional. Determines whether this agent should log conversation queries. */ - enableLogging: boolean; + enableLogging?: boolean; /** * Optional. Determines how intents are detected from user queries. */ - matchMode: string; + matchMode?: string; /** * Required. The project of this agent. Format: `projects/<Project * ID>`. */ - parent: string; + parent?: string; /** * Optional. The list of all languages supported by this agent (except for * the `default_language_code`). */ - supportedLanguageCodes: string[]; + supportedLanguageCodes?: string[]; /** * Required. The time zone of this agent from the [time zone * database](https://www.iana.org/time-zones), e.g., America/New_York, * Europe/Paris. */ - timeZone: string; + timeZone?: string; } /** * The request message for EntityTypes.BatchCreateEntities. @@ -134,14 +137,14 @@ export namespace dialogflow_v2 { /** * Required. The collection of entities to create. */ - entities: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; + entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. */ - languageCode: string; + languageCode?: string; } /** * The request message for EntityTypes.BatchDeleteEntities. @@ -152,14 +155,14 @@ export namespace dialogflow_v2 { * these are not fully-qualified names, i.e. they don't start with * `projects/<Project ID>`. */ - entityValues: string[]; + entityValues?: string[]; /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. */ - languageCode: string; + languageCode?: string; } /** * The request message for EntityTypes.BatchDeleteEntityTypes. @@ -169,7 +172,7 @@ export namespace dialogflow_v2 { * Required. The names entity types to delete. All names must point to the * same agent as `parent`. */ - entityTypeNames: string[]; + entityTypeNames?: string[]; } /** * The request message for Intents.BatchDeleteIntents. @@ -179,7 +182,7 @@ export namespace dialogflow_v2 { * Required. The collection of intents to delete. Only intent `name` must be * filled in. */ - intents: Schema$GoogleCloudDialogflowV2Intent[]; + intents?: Schema$GoogleCloudDialogflowV2Intent[]; } /** * The response message for EntityTypes.BatchCreateEntities. @@ -189,18 +192,18 @@ export namespace dialogflow_v2 { * Required. The collection of new entities to replace the existing * entities. */ - entities: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; + entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. */ - languageCode: string; + languageCode?: string; /** * Optional. The mask to control which fields get updated. */ - updateMask: string; + updateMask?: string; } /** * The request message for EntityTypes.BatchUpdateEntityTypes. @@ -209,14 +212,14 @@ export namespace dialogflow_v2 { /** * The collection of entity type to update or create. */ - entityTypeBatchInline: Schema$GoogleCloudDialogflowV2EntityTypeBatch; + entityTypeBatchInline?: Schema$GoogleCloudDialogflowV2EntityTypeBatch; /** * The URI to a Google Cloud Storage file containing entity types to update * or create. The file format can either be a serialized proto (of * EntityBatch type) or a JSON object. Note: The URI must start with * "gs://". */ - entityTypeBatchUri: string; + entityTypeBatchUri?: string; /** * Optional. The language of entity synonyms defined in `entity_types`. If * not specified, the agent's default language is used. [More than a @@ -224,11 +227,11 @@ export namespace dialogflow_v2 { * supported. Note: languages must be enabled in the agent, before they can * be used. */ - languageCode: string; + languageCode?: string; /** * Optional. The mask to control which fields get updated. */ - updateMask: string; + updateMask?: string; } /** * The response message for EntityTypes.BatchUpdateEntityTypes. @@ -237,7 +240,7 @@ export namespace dialogflow_v2 { /** * The collection of updated or created entity types. */ - entityTypes: Schema$GoogleCloudDialogflowV2EntityType[]; + entityTypes?: Schema$GoogleCloudDialogflowV2EntityType[]; } /** * The request message for Intents.BatchUpdateIntents. @@ -246,17 +249,17 @@ export namespace dialogflow_v2 { /** * The collection of intents to update or create. */ - intentBatchInline: Schema$GoogleCloudDialogflowV2IntentBatch; + intentBatchInline?: Schema$GoogleCloudDialogflowV2IntentBatch; /** * The URI to a Google Cloud Storage file containing intents to update or * create. The file format can either be a serialized proto (of IntentBatch * type) or JSON object. Note: The URI must start with "gs://". */ - intentBatchUri: string; + intentBatchUri?: string; /** * Optional. The resource view to apply to the returned intent. */ - intentView: string; + intentView?: string; /** * Optional. The language of training phrases, parameters and rich messages * defined in `intents`. If not specified, the agent's default language @@ -264,11 +267,11 @@ export namespace dialogflow_v2 { * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. */ - languageCode: string; + languageCode?: string; /** * Optional. The mask to control which fields get updated. */ - updateMask: string; + updateMask?: string; } /** * The response message for Intents.BatchUpdateIntents. @@ -277,7 +280,7 @@ export namespace dialogflow_v2 { /** * The collection of updated or created intents. */ - intents: Schema$GoogleCloudDialogflowV2Intent[]; + intents?: Schema$GoogleCloudDialogflowV2Intent[]; } /** * The response message for EntityTypes.BatchUpdateEntityTypes. @@ -286,7 +289,7 @@ export namespace dialogflow_v2 { /** * The collection of updated or created entity types. */ - entityTypes: Schema$GoogleCloudDialogflowV2beta1EntityType[]; + entityTypes?: Schema$GoogleCloudDialogflowV2beta1EntityType[]; } /** * The response message for Intents.BatchUpdateIntents. @@ -295,7 +298,7 @@ export namespace dialogflow_v2 { /** * The collection of updated or created intents. */ - intents: Schema$GoogleCloudDialogflowV2beta1Intent[]; + intents?: Schema$GoogleCloudDialogflowV2beta1Intent[]; } /** * Represents a context. @@ -307,7 +310,7 @@ export namespace dialogflow_v2 { * immediately. Contexts expire automatically after 10 minutes even if there * are no matching queries. */ - lifespanCount: number; + lifespanCount?: number; /** * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session @@ -319,13 +322,13 @@ export namespace dialogflow_v2 { * ID> is not specified, we assume default 'draft' environment. * If <User ID> is not specified, we assume default '-' user. */ - name: string; + name?: string; /** * Optional. The collection of parameters associated with this context. * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) * for syntax. */ - parameters: any; + parameters?: any; } /** * Represents an entity type. Entity types serve as a tool for extracting @@ -336,25 +339,25 @@ export namespace dialogflow_v2 { * Optional. Indicates whether the entity type can be automatically * expanded. */ - autoExpansionMode: string; + autoExpansionMode?: string; /** * Required. The name of the entity. */ - displayName: string; + displayName?: string; /** * Optional. The collection of entities associated with the entity type. */ - entities: Schema$GoogleCloudDialogflowV2beta1EntityTypeEntity[]; + entities?: Schema$GoogleCloudDialogflowV2beta1EntityTypeEntity[]; /** * Required. Indicates the kind of entity type. */ - kind: string; + kind?: string; /** * Required for all methods except `create` (`create` populates the name * automatically. The unique identifier of the entity type. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. */ - name: string; + name?: string; } /** * Optional. Represents an entity. @@ -364,13 +367,13 @@ export namespace dialogflow_v2 { * Required. A collection of synonyms. For `KIND_LIST` entity types this * must contain exactly one synonym equal to `value`. */ - synonyms: string[]; + synonyms?: string[]; /** * Required. For `KIND_MAP` entity types: A canonical name to be used in * place of synonyms. For `KIND_LIST` entity types: A string that can * contain references to other entity types (with or without aliases). */ - value: string; + value?: string; } /** * Events allow for matching intents by event name instead of the natural @@ -386,15 +389,15 @@ export namespace dialogflow_v2 { * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. */ - languageCode: string; + languageCode?: string; /** * Required. The unique identifier of the event. */ - name: string; + name?: string; /** * Optional. The collection of parameters associated with the event. */ - parameters: any; + parameters?: any; } /** * The response message for Agents.ExportAgent. @@ -411,12 +414,12 @@ export namespace dialogflow_v2 { * 's/.*"agentContent": "\([^"]*\)".x/\1/' * \ | base64 --decode > <agent zip file> */ - agentContent: string; + agentContent?: string; /** * The URI to a file containing the exported agent. This field is populated * only if `agent_uri` is specified in `ExportAgentRequest`. */ - agentUri: string; + agentUri?: string; } /** * Represents an intent. Intents convert a number of user expressions or @@ -427,50 +430,50 @@ export namespace dialogflow_v2 { /** * Optional. The name of the action associated with the intent. */ - action: string; + action?: string; /** * Optional. The list of platforms for which the first response will be * taken from among the messages assigned to the DEFAULT_PLATFORM. */ - defaultResponsePlatforms: string[]; + defaultResponsePlatforms?: string[]; /** * Required. The name of this intent. */ - displayName: string; + displayName?: string; /** * Optional. The collection of event names that trigger the intent. If the * collection of input contexts is not empty, all of the contexts must be * present in the active user session for an event to trigger this intent. */ - events: string[]; + events?: string[]; /** * Optional. Collection of information about all followup intents that have * name of this intent as a root_name. */ - followupIntentInfo: + followupIntentInfo?: Schema$GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo[]; /** * Optional. The list of context names required for this intent to be * triggered. Format: `projects/<Project * ID>/agent/sessions/-/contexts/<Context ID>`. */ - inputContextNames: string[]; + inputContextNames?: string[]; /** * Optional. Indicates whether this is a fallback intent. */ - isFallback: boolean; + isFallback?: boolean; /** * Optional. The collection of rich messages corresponding to the `Response` * field in the Dialogflow console. */ - messages: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; + messages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; /** * Optional. Indicates whether Machine Learning is disabled for the intent. * Note: If `ml_disabled` setting is set to true, then this intent is not * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. */ - mlDisabled: boolean; + mlDisabled?: boolean; /** * Optional. Indicates whether Machine Learning is enabled for the intent. * Note: If `ml_enabled` setting is set to false, then this intent is not @@ -482,13 +485,13 @@ export namespace dialogflow_v2 { * After April 15th, 2018 the default is: ml_enabled = true / ml_disabled * = false. */ - mlEnabled: boolean; + mlEnabled?: boolean; /** * Required for all methods except `create` (`create` populates the name * automatically. The unique identifier of this intent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - name: string; + name?: string; /** * Optional. The collection of contexts that are activated when the intent * is matched. Context messages in this collection should not set the @@ -496,43 +499,43 @@ export namespace dialogflow_v2 { * context when the intent is matched. Format: `projects/<Project * ID>/agent/sessions/-/contexts/<Context ID>`. */ - outputContexts: Schema$GoogleCloudDialogflowV2beta1Context[]; + outputContexts?: Schema$GoogleCloudDialogflowV2beta1Context[]; /** * Optional. The collection of parameters associated with the intent. */ - parameters: Schema$GoogleCloudDialogflowV2beta1IntentParameter[]; + parameters?: Schema$GoogleCloudDialogflowV2beta1IntentParameter[]; /** * The unique identifier of the parent intent in the chain of followup * intents. It identifies the parent followup intent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - parentFollowupIntentName: string; + parentFollowupIntentName?: string; /** * Optional. The priority of this intent. Higher numbers represent higher * priorities. Zero or negative numbers mean that the intent is disabled. */ - priority: number; + priority?: number; /** * Optional. Indicates whether to delete all contexts in the current session * when this intent is matched. */ - resetContexts: boolean; + resetContexts?: boolean; /** * The unique identifier of the root intent in the chain of followup * intents. It identifies the correct followup intents chain for this * intent. Format: `projects/<Project ID>/agent/intents/<Intent * ID>`. */ - rootFollowupIntentName: string; + rootFollowupIntentName?: string; /** * Optional. The collection of examples/templates that the agent is trained * on. */ - trainingPhrases: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]; + trainingPhrases?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrase[]; /** * Required. Indicates whether webhooks are enabled for the intent. */ - webhookState: string; + webhookState?: string; } /** * Represents a single followup intent in the chain. @@ -542,12 +545,12 @@ export namespace dialogflow_v2 { * The unique identifier of the followup intent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - followupIntentName: string; + followupIntentName?: string; /** * The unique identifier of the followup intent parent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - parentFollowupIntentName: string; + parentFollowupIntentName?: string; } /** * Corresponds to the `Response` field in the Dialogflow console. @@ -556,56 +559,56 @@ export namespace dialogflow_v2 { /** * Displays a basic card for Actions on Google. */ - basicCard: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCard; + basicCard?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCard; /** * Displays a card. */ - card: Schema$GoogleCloudDialogflowV2beta1IntentMessageCard; + card?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCard; /** * Displays a carousel card for Actions on Google. */ - carouselSelect: + carouselSelect?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect; /** * Displays an image. */ - image: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; /** * Displays a link out suggestion chip for Actions on Google. */ - linkOutSuggestion: + linkOutSuggestion?: Schema$GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion; /** * Displays a list card for Actions on Google. */ - listSelect: Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelect; + listSelect?: Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelect; /** * Returns a response containing a custom, platform-specific payload. See * the Intent.Message.Platform type for a description of the structure that * may be required for your platform. */ - payload: any; + payload?: any; /** * Optional. The platform that this message is intended for. */ - platform: string; + platform?: string; /** * Displays quick replies. */ - quickReplies: Schema$GoogleCloudDialogflowV2beta1IntentMessageQuickReplies; + quickReplies?: Schema$GoogleCloudDialogflowV2beta1IntentMessageQuickReplies; /** * Returns a voice or text-only response for Actions on Google. */ - simpleResponses: + simpleResponses?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses; /** * Displays suggestion chips for Actions on Google. */ - suggestions: Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestions; + suggestions?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestions; /** * Returns a text response. */ - text: Schema$GoogleCloudDialogflowV2beta1IntentMessageText; + text?: Schema$GoogleCloudDialogflowV2beta1IntentMessageText; } /** * The basic card message. Useful for displaying information. @@ -614,23 +617,23 @@ export namespace dialogflow_v2 { /** * Optional. The collection of card buttons. */ - buttons: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton[]; + buttons?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton[]; /** * Required, unless image is present. The body text of the card. */ - formattedText: string; + formattedText?: string; /** * Optional. The image for the card. */ - image: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; /** * Optional. The subtitle of the card. */ - subtitle: string; + subtitle?: string; /** * Optional. The title of the card. */ - title: string; + title?: string; } /** * The button object that appears at the bottom of a card. @@ -639,12 +642,12 @@ export namespace dialogflow_v2 { /** * Required. Action to take when a user taps on the button. */ - openUriAction: + openUriAction?: Schema$GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction; /** * Required. The title of the button. */ - title: string; + title?: string; } /** * Opens the given URI. @@ -653,7 +656,7 @@ export namespace dialogflow_v2 { /** * Required. The HTTP or HTTPS scheme URI. */ - uri: string; + uri?: string; } /** * The card response message. @@ -662,19 +665,19 @@ export namespace dialogflow_v2 { /** * Optional. The collection of card buttons. */ - buttons: Schema$GoogleCloudDialogflowV2beta1IntentMessageCardButton[]; + buttons?: Schema$GoogleCloudDialogflowV2beta1IntentMessageCardButton[]; /** * Optional. The public URI to an image file for the card. */ - imageUri: string; + imageUri?: string; /** * Optional. The subtitle of the card. */ - subtitle: string; + subtitle?: string; /** * Optional. The title of the card. */ - title: string; + title?: string; } /** * Optional. Contains information about a button. @@ -683,11 +686,11 @@ export namespace dialogflow_v2 { /** * Optional. The text to send back to the Dialogflow API or a URI to open. */ - postback: string; + postback?: string; /** * Optional. The text to show on the button. */ - text: string; + text?: string; } /** * The card for presenting a carousel of options to select from. @@ -696,7 +699,8 @@ export namespace dialogflow_v2 { /** * Required. Carousel items. */ - items: Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem[]; + items?: + Schema$GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem[]; } /** * An item in the carousel. @@ -705,19 +709,19 @@ export namespace dialogflow_v2 { /** * Optional. The body text of the card. */ - description: string; + description?: string; /** * Optional. The image to display. */ - image: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; /** * Required. Additional info about the option item. */ - info: Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; + info?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; /** * Required. Title of the carousel item. */ - title: string; + title?: string; } /** * The image response message. @@ -727,11 +731,11 @@ export namespace dialogflow_v2 { * Optional. A text description of the image to be used for accessibility, * e.g., screen readers. */ - accessibilityText: string; + accessibilityText?: string; /** * Optional. The public URI to an image file. */ - imageUri: string; + imageUri?: string; } /** * The suggestion chip message that allows the user to jump out to the app or @@ -741,12 +745,12 @@ export namespace dialogflow_v2 { /** * Required. The name of the app or site this chip is linking to. */ - destinationName: string; + destinationName?: string; /** * Required. The URI of the app or site to open when the user taps the * suggestion chip. */ - uri: string; + uri?: string; } /** * The card for presenting a list of options to select from. @@ -755,11 +759,11 @@ export namespace dialogflow_v2 { /** * Required. List items. */ - items: Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelectItem[]; + items?: Schema$GoogleCloudDialogflowV2beta1IntentMessageListSelectItem[]; /** * Optional. The overall title of the list. */ - title: string; + title?: string; } /** * An item in the list. @@ -768,19 +772,19 @@ export namespace dialogflow_v2 { /** * Optional. The main text describing the item. */ - description: string; + description?: string; /** * Optional. The image to display. */ - image: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2beta1IntentMessageImage; /** * Required. Additional information about this option. */ - info: Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; + info?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo; /** * Required. The title of the list item. */ - title: string; + title?: string; } /** * The quick replies response message. @@ -789,11 +793,11 @@ export namespace dialogflow_v2 { /** * Optional. The collection of quick replies. */ - quickReplies: string[]; + quickReplies?: string[]; /** * Optional. The title of the collection of quick replies. */ - title: string; + title?: string; } /** * Additional info about the select item for when it is triggered in a dialog. @@ -803,12 +807,12 @@ export namespace dialogflow_v2 { * Required. A unique key that will be sent back to the agent if this * response is given. */ - key: string; + key?: string; /** * Optional. A list of synonyms that can also be used to trigger this item * in dialog. */ - synonyms: string[]; + synonyms?: string[]; } /** * The simple response message containing speech or text. @@ -817,18 +821,18 @@ export namespace dialogflow_v2 { /** * Optional. The text to display. */ - displayText: string; + displayText?: string; /** * One of text_to_speech or ssml must be provided. Structured spoken * response to the user in the SSML format. Mutually exclusive with * text_to_speech. */ - ssml: string; + ssml?: string; /** * One of text_to_speech or ssml must be provided. The plain text of the * speech output. Mutually exclusive with ssml. */ - textToSpeech: string; + textToSpeech?: string; } /** * The collection of simple response candidates. This message in @@ -840,7 +844,7 @@ export namespace dialogflow_v2 { /** * Required. The list of simple responses. */ - simpleResponses: + simpleResponses?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse[]; } /** @@ -851,7 +855,7 @@ export namespace dialogflow_v2 { /** * Required. The text shown the in the suggestion chip. */ - title: string; + title?: string; } /** * The collection of suggestions. @@ -860,7 +864,7 @@ export namespace dialogflow_v2 { /** * Required. The list of suggested replies. */ - suggestions: Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestion[]; + suggestions?: Schema$GoogleCloudDialogflowV2beta1IntentMessageSuggestion[]; } /** * The text response message. @@ -869,7 +873,7 @@ export namespace dialogflow_v2 { /** * Optional. The collection of the agent's responses. */ - text: string[]; + text?: string[]; } /** * Represents intent parameters. @@ -880,42 +884,42 @@ export namespace dialogflow_v2 { * result. Default values can be extracted from contexts by using the * following syntax: `#context_name.parameter_name`. */ - defaultValue: string; + defaultValue?: string; /** * Required. The name of the parameter. */ - displayName: string; + displayName?: string; /** * Optional. The name of the entity type, prefixed with `@`, that describes * values of the parameter. If the parameter is required, this must be * provided. */ - entityTypeDisplayName: string; + entityTypeDisplayName?: string; /** * Optional. Indicates whether the parameter represents a list of values. */ - isList: boolean; + isList?: boolean; /** * Optional. Indicates whether the parameter is required. That is, whether * the intent cannot be completed without collecting the parameter value. */ - mandatory: boolean; + mandatory?: boolean; /** * The unique identifier of this parameter. */ - name: string; + name?: string; /** * Optional. The collection of prompts that the agent can present to the * user in order to collect value for the parameter. */ - prompts: string[]; + prompts?: string[]; /** * Optional. The definition of the parameter value. It can be: - a constant * string, - a parameter value defined as `$parameter_name`, - an original * parameter value defined as `$parameter_name.original`, - a parameter * value from some context defined as `#context_name.parameter_name`. */ - value: string; + value?: string; } /** * Represents an example or template that the agent is trained on. @@ -924,23 +928,23 @@ export namespace dialogflow_v2 { /** * Required. The unique identifier of this training phrase. */ - name: string; + name?: string; /** * Required. The collection of training phrase parts (can be annotated). * Fields: `entity_type`, `alias` and `user_defined` should be populated * only for the annotated parts of the training phrase. */ - parts: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart[]; + parts?: Schema$GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart[]; /** * Optional. Indicates how many times this example or template was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. */ - timesAddedCount: number; + timesAddedCount?: number; /** * Required. The type of the training phrase. */ - type: string; + type?: string; } /** * Represents a part of a training phrase. @@ -950,23 +954,23 @@ export namespace dialogflow_v2 { * Optional. The parameter name for the value extracted from the annotated * part of the example. */ - alias: string; + alias?: string; /** * Optional. The entity type name prefixed with `@`. This field is required * for the annotated part of the text and applies only to examples. */ - entityType: string; + entityType?: string; /** * Required. The text corresponding to the example or template, if there are * no annotations. For annotated examples, it is the text for one of the * example's parts. */ - text: string; + text?: string; /** * Optional. Indicates whether the text was manually annotated by the * developer. */ - userDefined: boolean; + userDefined?: boolean; } /** * Metadata in google::longrunning::Operation for Knowledge operations. @@ -975,7 +979,7 @@ export namespace dialogflow_v2 { /** * Required. The current state of this operation. */ - state: string; + state?: string; } /** * Represents the contents of the original request that was passed to the @@ -986,12 +990,12 @@ export namespace dialogflow_v2 { * Optional. This field is set to the value of `QueryParameters.payload` * field passed in the request. */ - payload: any; + payload?: any; /** * The source of this request, e.g., `google`, `facebook`, `slack`. It is * set by Dialogflow-owned servers. */ - source: string; + source?: string; } /** * Represents the result of conversational query or event processing. @@ -1000,55 +1004,55 @@ export namespace dialogflow_v2 { /** * The action name from the matched intent. */ - action: string; + action?: string; /** * This field is set to: - `false` if the matched intent has required * parameters and not all of the required parameter values have been * collected. - `true` if all required parameter values have been collected, * or if the matched intent doesn't contain any required parameters. */ - allRequiredParamsPresent: boolean; + allRequiredParamsPresent?: boolean; /** * The free-form diagnostic info. For example, this field could contain * webhook call latency. */ - diagnosticInfo: any; + diagnosticInfo?: any; /** * The collection of rich messages to present to the user. */ - fulfillmentMessages: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; + fulfillmentMessages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; /** * The text to be pronounced to the user or shown on the screen. */ - fulfillmentText: string; + fulfillmentText?: string; /** * The intent that matched the conversational query. Some, not all fields * are filled in this message, including but not limited to: `name`, * `display_name` and `webhook_state`. */ - intent: Schema$GoogleCloudDialogflowV2beta1Intent; + intent?: Schema$GoogleCloudDialogflowV2beta1Intent; /** * The intent detection confidence. Values range from 0.0 (completely * uncertain) to 1.0 (completely certain). */ - intentDetectionConfidence: number; + intentDetectionConfidence?: number; /** * The language that was triggered during intent detection. See [Language * Support](https://dialogflow.com/docs/reference/language) for a list of * the currently supported language codes. */ - languageCode: string; + languageCode?: string; /** * The collection of output contexts. If applicable, * `output_contexts.parameters` contains entries with name `<parameter * name>.original` containing the original parameter values before the * query. */ - outputContexts: Schema$GoogleCloudDialogflowV2beta1Context[]; + outputContexts?: Schema$GoogleCloudDialogflowV2beta1Context[]; /** * The collection of extracted parameters. */ - parameters: any; + parameters?: any; /** * The original conversational query text: - If natural language text was * provided as input, `query_text` contains a copy of the input. - If @@ -1057,7 +1061,7 @@ export namespace dialogflow_v2 { * multiple alternatives, a particular one is picked. - If an event was * provided as input, `query_text` is not set. */ - queryText: string; + queryText?: string; /** * The Speech recognition confidence between 0.0 and 1.0. A higher number * indicates an estimated greater likelihood that the recognized words are @@ -1068,17 +1072,17 @@ export namespace dialogflow_v2 { * the streaming endpoint has separate confidence estimates per portion of * the audio in StreamingRecognitionResult. */ - speechRecognitionConfidence: number; + speechRecognitionConfidence?: number; /** * If the query was fulfilled by a webhook call, this field is set to the * value of the `payload` field returned in the webhook response. */ - webhookPayload: any; + webhookPayload?: any; /** * If the query was fulfilled by a webhook call, this field is set to the * value of the `source` field returned in the webhook response. */ - webhookSource: string; + webhookSource?: string; } /** * The request message for a webhook call. @@ -1088,24 +1092,24 @@ export namespace dialogflow_v2 { * Optional. The contents of the original request that was passed to * `[Streaming]DetectIntent` call. */ - originalDetectIntentRequest: + originalDetectIntentRequest?: Schema$GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest; /** * The result of the conversational query or event processing. Contains the * same value as `[Streaming]DetectIntentResponse.query_result`. */ - queryResult: Schema$GoogleCloudDialogflowV2beta1QueryResult; + queryResult?: Schema$GoogleCloudDialogflowV2beta1QueryResult; /** * The unique identifier of the response. Contains the same value as * `[Streaming]DetectIntentResponse.response_id`. */ - responseId: string; + responseId?: string; /** * The unique identifier of detectIntent request session. Can be used to * identify end-user inside webhook implementation. Format: * `projects/<Project ID>/agent/sessions/<Session ID>`. */ - session: string; + session?: string; } /** * The response message for a webhook call. @@ -1115,22 +1119,22 @@ export namespace dialogflow_v2 { * Optional. Makes the platform immediately invoke another `DetectIntent` * call internally with the specified event as input. */ - followupEventInput: Schema$GoogleCloudDialogflowV2beta1EventInput; + followupEventInput?: Schema$GoogleCloudDialogflowV2beta1EventInput; /** * Optional. The collection of rich messages to present to the user. This * value is passed directly to `QueryResult.fulfillment_messages`. */ - fulfillmentMessages: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; + fulfillmentMessages?: Schema$GoogleCloudDialogflowV2beta1IntentMessage[]; /** * Optional. The text to be shown on the screen. This value is passed * directly to `QueryResult.fulfillment_text`. */ - fulfillmentText: string; + fulfillmentText?: string; /** * Optional. The collection of output contexts. This value is passed * directly to `QueryResult.output_contexts`. */ - outputContexts: Schema$GoogleCloudDialogflowV2beta1Context[]; + outputContexts?: Schema$GoogleCloudDialogflowV2beta1Context[]; /** * Optional. This value is passed directly to `QueryResult.webhook_payload`. * See the related `fulfillment_messages[i].payload field`, which may be @@ -1144,11 +1148,11 @@ export namespace dialogflow_v2 { * "this is a simple response" } } ] } * } }</pre> */ - payload: any; + payload?: any; /** * Optional. This value is passed directly to `QueryResult.webhook_source`. */ - source: string; + source?: string; } /** * Represents a context. @@ -1160,19 +1164,19 @@ export namespace dialogflow_v2 { * immediately. Contexts expire automatically after 10 minutes even if there * are no matching queries. */ - lifespanCount: number; + lifespanCount?: number; /** * Required. The unique identifier of the context. Format: * `projects/<Project ID>/agent/sessions/<Session * ID>/contexts/<Context ID>`. */ - name: string; + name?: string; /** * Optional. The collection of parameters associated with this context. * Refer to [this doc](https://dialogflow.com/docs/actions-and-parameters) * for syntax. */ - parameters: any; + parameters?: any; } /** * The request to detect user's intent. @@ -1183,18 +1187,18 @@ export namespace dialogflow_v2 { * should be populated iff `query_input` is set to an input audio config. A * single request can contain up to 1 minute of speech audio data. */ - inputAudio: string; + inputAudio?: string; /** * Required. The input specification. It can be set to: 1. an audio config * which instructs the speech recognizer how to process the speech audio, 2. * a conversational query in the form of text, or 3. an event that * specifies which intent to trigger. */ - queryInput: Schema$GoogleCloudDialogflowV2QueryInput; + queryInput?: Schema$GoogleCloudDialogflowV2QueryInput; /** * Optional. The parameters of this query. */ - queryParams: Schema$GoogleCloudDialogflowV2QueryParameters; + queryParams?: Schema$GoogleCloudDialogflowV2QueryParameters; } /** * The message returned from the DetectIntent method. @@ -1203,17 +1207,17 @@ export namespace dialogflow_v2 { /** * The results of the conversational query or event processing. */ - queryResult: Schema$GoogleCloudDialogflowV2QueryResult; + queryResult?: Schema$GoogleCloudDialogflowV2QueryResult; /** * The unique identifier of the response. It can be used to locate a * response in the training example set or for reporting issues. */ - responseId: string; + responseId?: string; /** * Specifies the status of the webhook request. `webhook_status` is never * populated in webhook requests. */ - webhookStatus: Schema$GoogleRpcStatus; + webhookStatus?: Schema$GoogleRpcStatus; } /** * Represents an entity type. Entity types serve as a tool for extracting @@ -1224,25 +1228,25 @@ export namespace dialogflow_v2 { * Optional. Indicates whether the entity type can be automatically * expanded. */ - autoExpansionMode: string; + autoExpansionMode?: string; /** * Required. The name of the entity. */ - displayName: string; + displayName?: string; /** * Optional. The collection of entities associated with the entity type. */ - entities: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; + entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; /** * Required. Indicates the kind of entity type. */ - kind: string; + kind?: string; /** * Required for all methods except `create` (`create` populates the name * automatically. The unique identifier of the entity type. Format: * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`. */ - name: string; + name?: string; } /** * This message is a wrapper around a collection of entity types. @@ -1251,7 +1255,7 @@ export namespace dialogflow_v2 { /** * A collection of entity types. */ - entityTypes: Schema$GoogleCloudDialogflowV2EntityType[]; + entityTypes?: Schema$GoogleCloudDialogflowV2EntityType[]; } /** * Optional. Represents an entity. @@ -1261,13 +1265,13 @@ export namespace dialogflow_v2 { * Required. A collection of synonyms. For `KIND_LIST` entity types this * must contain exactly one synonym equal to `value`. */ - synonyms: string[]; + synonyms?: string[]; /** * Required. For `KIND_MAP` entity types: A canonical name to be used in * place of synonyms. For `KIND_LIST` entity types: A string that can * contain references to other entity types (with or without aliases). */ - value: string; + value?: string; } /** * Events allow for matching intents by event name instead of the natural @@ -1283,15 +1287,15 @@ export namespace dialogflow_v2 { * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. */ - languageCode: string; + languageCode?: string; /** * Required. The unique identifier of the event. */ - name: string; + name?: string; /** * Optional. The collection of parameters associated with the event. */ - parameters: any; + parameters?: any; } /** * The request message for Agents.ExportAgent. @@ -1302,7 +1306,7 @@ export namespace dialogflow_v2 { * URI must start with "gs://". If left unspecified, the * serialized agent is returned inline. */ - agentUri: string; + agentUri?: string; } /** * The response message for Agents.ExportAgent. @@ -1319,12 +1323,12 @@ export namespace dialogflow_v2 { * 's/.*"agentContent": "\([^"]*\)".x/\1/' * \ | base64 --decode > <agent zip file> */ - agentContent: string; + agentContent?: string; /** * The URI to a file containing the exported agent. This field is populated * only if `agent_uri` is specified in `ExportAgentRequest`. */ - agentUri: string; + agentUri?: string; } /** * The request message for Agents.ImportAgent. @@ -1340,12 +1344,12 @@ export namespace dialogflow_v2 { * --data-binary "{ 'agentContent': '$(cat <agent * zip file> | base64 -w 0)' }" */ - agentContent: string; + agentContent?: string; /** * The URI to a Google Cloud Storage file containing the agent to import. * Note: The URI must start with "gs://". */ - agentUri: string; + agentUri?: string; } /** * Instructs the speech recognizer how to process the audio content. @@ -1354,7 +1358,7 @@ export namespace dialogflow_v2 { /** * Required. Audio encoding of the audio content to process. */ - audioEncoding: string; + audioEncoding?: string; /** * Required. The language of the supplied audio. Dialogflow does not do * translations. See [Language @@ -1362,19 +1366,21 @@ export namespace dialogflow_v2 { * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. */ - languageCode: string; + languageCode?: string; /** * Optional. The collection of phrase hints which are used to boost accuracy * of speech recognition. Refer to [Cloud Speech API - * documentation](/speech/docs/basics#phrase-hints) for more details. + * documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + * for more details. */ - phraseHints: string[]; + phraseHints?: string[]; /** * Required. Sample rate (in Hertz) of the audio content sent in the query. - * Refer to [Cloud Speech API documentation](/speech/docs/basics) for more - * details. + * Refer to [Cloud Speech API + * documentation](https://cloud.google.com/speech-to-text/docs/basics) for + * more details. */ - sampleRateHertz: number; + sampleRateHertz?: number; } /** * Represents an intent. Intents convert a number of user expressions or @@ -1385,56 +1391,56 @@ export namespace dialogflow_v2 { /** * Optional. The name of the action associated with the intent. */ - action: string; + action?: string; /** * Optional. The list of platforms for which the first response will be * taken from among the messages assigned to the DEFAULT_PLATFORM. */ - defaultResponsePlatforms: string[]; + defaultResponsePlatforms?: string[]; /** * Required. The name of this intent. */ - displayName: string; + displayName?: string; /** * Optional. The collection of event names that trigger the intent. If the * collection of input contexts is not empty, all of the contexts must be * present in the active user session for an event to trigger this intent. */ - events: string[]; + events?: string[]; /** * Optional. Collection of information about all followup intents that have * name of this intent as a root_name. */ - followupIntentInfo: + followupIntentInfo?: Schema$GoogleCloudDialogflowV2IntentFollowupIntentInfo[]; /** * Optional. The list of context names required for this intent to be * triggered. Format: `projects/<Project * ID>/agent/sessions/-/contexts/<Context ID>`. */ - inputContextNames: string[]; + inputContextNames?: string[]; /** * Optional. Indicates whether this is a fallback intent. */ - isFallback: boolean; + isFallback?: boolean; /** * Optional. The collection of rich messages corresponding to the `Response` * field in the Dialogflow console. */ - messages: Schema$GoogleCloudDialogflowV2IntentMessage[]; + messages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; /** * Optional. Indicates whether Machine Learning is disabled for the intent. * Note: If `ml_diabled` setting is set to true, then this intent is not * taken into account during inference in `ML ONLY` match mode. Also, * auto-markup in the UI is turned off. */ - mlDisabled: boolean; + mlDisabled?: boolean; /** * Required for all methods except `create` (`create` populates the name * automatically. The unique identifier of this intent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - name: string; + name?: string; /** * Optional. The collection of contexts that are activated when the intent * is matched. Context messages in this collection should not set the @@ -1442,43 +1448,43 @@ export namespace dialogflow_v2 { * context when the intent is matched. Format: `projects/<Project * ID>/agent/sessions/-/contexts/<Context ID>`. */ - outputContexts: Schema$GoogleCloudDialogflowV2Context[]; + outputContexts?: Schema$GoogleCloudDialogflowV2Context[]; /** * Optional. The collection of parameters associated with the intent. */ - parameters: Schema$GoogleCloudDialogflowV2IntentParameter[]; + parameters?: Schema$GoogleCloudDialogflowV2IntentParameter[]; /** * The unique identifier of the parent intent in the chain of followup * intents. It identifies the parent followup intent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - parentFollowupIntentName: string; + parentFollowupIntentName?: string; /** * Optional. The priority of this intent. Higher numbers represent higher * priorities. Zero or negative numbers mean that the intent is disabled. */ - priority: number; + priority?: number; /** * Optional. Indicates whether to delete all contexts in the current session * when this intent is matched. */ - resetContexts: boolean; + resetContexts?: boolean; /** * The unique identifier of the root intent in the chain of followup * intents. It identifies the correct followup intents chain for this * intent. Format: `projects/<Project ID>/agent/intents/<Intent * ID>`. */ - rootFollowupIntentName: string; + rootFollowupIntentName?: string; /** * Optional. The collection of examples/templates that the agent is trained * on. */ - trainingPhrases: Schema$GoogleCloudDialogflowV2IntentTrainingPhrase[]; + trainingPhrases?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrase[]; /** * Required. Indicates whether webhooks are enabled for the intent. */ - webhookState: string; + webhookState?: string; } /** * This message is a wrapper around a collection of intents. @@ -1487,7 +1493,7 @@ export namespace dialogflow_v2 { /** * A collection of intents. */ - intents: Schema$GoogleCloudDialogflowV2Intent[]; + intents?: Schema$GoogleCloudDialogflowV2Intent[]; } /** * Represents a single followup intent in the chain. @@ -1497,12 +1503,12 @@ export namespace dialogflow_v2 { * The unique identifier of the followup intent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - followupIntentName: string; + followupIntentName?: string; /** * The unique identifier of the followup intent parent. Format: * `projects/<Project ID>/agent/intents/<Intent ID>`. */ - parentFollowupIntentName: string; + parentFollowupIntentName?: string; } /** * Corresponds to the `Response` field in the Dialogflow console. @@ -1511,54 +1517,55 @@ export namespace dialogflow_v2 { /** * The basic card response for Actions on Google. */ - basicCard: Schema$GoogleCloudDialogflowV2IntentMessageBasicCard; + basicCard?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCard; /** * The card response. */ - card: Schema$GoogleCloudDialogflowV2IntentMessageCard; + card?: Schema$GoogleCloudDialogflowV2IntentMessageCard; /** * The carousel card response for Actions on Google. */ - carouselSelect: Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelect; + carouselSelect?: Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelect; /** * The image response. */ - image: Schema$GoogleCloudDialogflowV2IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; /** * The link out suggestion chip for Actions on Google. */ - linkOutSuggestion: + linkOutSuggestion?: Schema$GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion; /** * The list card response for Actions on Google. */ - listSelect: Schema$GoogleCloudDialogflowV2IntentMessageListSelect; + listSelect?: Schema$GoogleCloudDialogflowV2IntentMessageListSelect; /** * Returns a response containing a custom, platform-specific payload. See * the Intent.Message.Platform type for a description of the structure that * may be required for your platform. */ - payload: any; + payload?: any; /** * Optional. The platform that this message is intended for. */ - platform: string; + platform?: string; /** * The quick replies response. */ - quickReplies: Schema$GoogleCloudDialogflowV2IntentMessageQuickReplies; + quickReplies?: Schema$GoogleCloudDialogflowV2IntentMessageQuickReplies; /** * The voice and text-only responses for Actions on Google. */ - simpleResponses: Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponses; + simpleResponses?: + Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponses; /** * The suggestion chips for Actions on Google. */ - suggestions: Schema$GoogleCloudDialogflowV2IntentMessageSuggestions; + suggestions?: Schema$GoogleCloudDialogflowV2IntentMessageSuggestions; /** * The text response. */ - text: Schema$GoogleCloudDialogflowV2IntentMessageText; + text?: Schema$GoogleCloudDialogflowV2IntentMessageText; } /** * The basic card message. Useful for displaying information. @@ -1567,23 +1574,23 @@ export namespace dialogflow_v2 { /** * Optional. The collection of card buttons. */ - buttons: Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButton[]; + buttons?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButton[]; /** * Required, unless image is present. The body text of the card. */ - formattedText: string; + formattedText?: string; /** * Optional. The image for the card. */ - image: Schema$GoogleCloudDialogflowV2IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; /** * Optional. The subtitle of the card. */ - subtitle: string; + subtitle?: string; /** * Optional. The title of the card. */ - title: string; + title?: string; } /** * The button object that appears at the bottom of a card. @@ -1592,12 +1599,12 @@ export namespace dialogflow_v2 { /** * Required. Action to take when a user taps on the button. */ - openUriAction: + openUriAction?: Schema$GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction; /** * Required. The title of the button. */ - title: string; + title?: string; } /** * Opens the given URI. @@ -1606,7 +1613,7 @@ export namespace dialogflow_v2 { /** * Required. The HTTP or HTTPS scheme URI. */ - uri: string; + uri?: string; } /** * The card response message. @@ -1615,19 +1622,19 @@ export namespace dialogflow_v2 { /** * Optional. The collection of card buttons. */ - buttons: Schema$GoogleCloudDialogflowV2IntentMessageCardButton[]; + buttons?: Schema$GoogleCloudDialogflowV2IntentMessageCardButton[]; /** * Optional. The public URI to an image file for the card. */ - imageUri: string; + imageUri?: string; /** * Optional. The subtitle of the card. */ - subtitle: string; + subtitle?: string; /** * Optional. The title of the card. */ - title: string; + title?: string; } /** * Optional. Contains information about a button. @@ -1636,11 +1643,11 @@ export namespace dialogflow_v2 { /** * Optional. The text to send back to the Dialogflow API or a URI to open. */ - postback: string; + postback?: string; /** * Optional. The text to show on the button. */ - text: string; + text?: string; } /** * The card for presenting a carousel of options to select from. @@ -1649,7 +1656,7 @@ export namespace dialogflow_v2 { /** * Required. Carousel items. */ - items: Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelectItem[]; + items?: Schema$GoogleCloudDialogflowV2IntentMessageCarouselSelectItem[]; } /** * An item in the carousel. @@ -1658,19 +1665,19 @@ export namespace dialogflow_v2 { /** * Optional. The body text of the card. */ - description: string; + description?: string; /** * Optional. The image to display. */ - image: Schema$GoogleCloudDialogflowV2IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; /** * Required. Additional info about the option item. */ - info: Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo; + info?: Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo; /** * Required. Title of the carousel item. */ - title: string; + title?: string; } /** * The image response message. @@ -1680,11 +1687,11 @@ export namespace dialogflow_v2 { * Optional. A text description of the image to be used for accessibility, * e.g., screen readers. */ - accessibilityText: string; + accessibilityText?: string; /** * Optional. The public URI to an image file. */ - imageUri: string; + imageUri?: string; } /** * The suggestion chip message that allows the user to jump out to the app or @@ -1694,12 +1701,12 @@ export namespace dialogflow_v2 { /** * Required. The name of the app or site this chip is linking to. */ - destinationName: string; + destinationName?: string; /** * Required. The URI of the app or site to open when the user taps the * suggestion chip. */ - uri: string; + uri?: string; } /** * The card for presenting a list of options to select from. @@ -1708,11 +1715,11 @@ export namespace dialogflow_v2 { /** * Required. List items. */ - items: Schema$GoogleCloudDialogflowV2IntentMessageListSelectItem[]; + items?: Schema$GoogleCloudDialogflowV2IntentMessageListSelectItem[]; /** * Optional. The overall title of the list. */ - title: string; + title?: string; } /** * An item in the list. @@ -1721,19 +1728,19 @@ export namespace dialogflow_v2 { /** * Optional. The main text describing the item. */ - description: string; + description?: string; /** * Optional. The image to display. */ - image: Schema$GoogleCloudDialogflowV2IntentMessageImage; + image?: Schema$GoogleCloudDialogflowV2IntentMessageImage; /** * Required. Additional information about this option. */ - info: Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo; + info?: Schema$GoogleCloudDialogflowV2IntentMessageSelectItemInfo; /** * Required. The title of the list item. */ - title: string; + title?: string; } /** * The quick replies response message. @@ -1742,11 +1749,11 @@ export namespace dialogflow_v2 { /** * Optional. The collection of quick replies. */ - quickReplies: string[]; + quickReplies?: string[]; /** * Optional. The title of the collection of quick replies. */ - title: string; + title?: string; } /** * Additional info about the select item for when it is triggered in a dialog. @@ -1756,12 +1763,12 @@ export namespace dialogflow_v2 { * Required. A unique key that will be sent back to the agent if this * response is given. */ - key: string; + key?: string; /** * Optional. A list of synonyms that can also be used to trigger this item * in dialog. */ - synonyms: string[]; + synonyms?: string[]; } /** * The simple response message containing speech or text. @@ -1770,18 +1777,18 @@ export namespace dialogflow_v2 { /** * Optional. The text to display. */ - displayText: string; + displayText?: string; /** * One of text_to_speech or ssml must be provided. Structured spoken * response to the user in the SSML format. Mutually exclusive with * text_to_speech. */ - ssml: string; + ssml?: string; /** * One of text_to_speech or ssml must be provided. The plain text of the * speech output. Mutually exclusive with ssml. */ - textToSpeech: string; + textToSpeech?: string; } /** * The collection of simple response candidates. This message in @@ -1793,7 +1800,7 @@ export namespace dialogflow_v2 { /** * Required. The list of simple responses. */ - simpleResponses: + simpleResponses?: Schema$GoogleCloudDialogflowV2IntentMessageSimpleResponse[]; } /** @@ -1804,7 +1811,7 @@ export namespace dialogflow_v2 { /** * Required. The text shown the in the suggestion chip. */ - title: string; + title?: string; } /** * The collection of suggestions. @@ -1813,7 +1820,7 @@ export namespace dialogflow_v2 { /** * Required. The list of suggested replies. */ - suggestions: Schema$GoogleCloudDialogflowV2IntentMessageSuggestion[]; + suggestions?: Schema$GoogleCloudDialogflowV2IntentMessageSuggestion[]; } /** * The text response message. @@ -1822,7 +1829,7 @@ export namespace dialogflow_v2 { /** * Optional. The collection of the agent's responses. */ - text: string[]; + text?: string[]; } /** * Represents intent parameters. @@ -1833,42 +1840,42 @@ export namespace dialogflow_v2 { * result. Default values can be extracted from contexts by using the * following syntax: `#context_name.parameter_name`. */ - defaultValue: string; + defaultValue?: string; /** * Required. The name of the parameter. */ - displayName: string; + displayName?: string; /** * Optional. The name of the entity type, prefixed with `@`, that describes * values of the parameter. If the parameter is required, this must be * provided. */ - entityTypeDisplayName: string; + entityTypeDisplayName?: string; /** * Optional. Indicates whether the parameter represents a list of values. */ - isList: boolean; + isList?: boolean; /** * Optional. Indicates whether the parameter is required. That is, whether * the intent cannot be completed without collecting the parameter value. */ - mandatory: boolean; + mandatory?: boolean; /** * The unique identifier of this parameter. */ - name: string; + name?: string; /** * Optional. The collection of prompts that the agent can present to the * user in order to collect value for the parameter. */ - prompts: string[]; + prompts?: string[]; /** * Optional. The definition of the parameter value. It can be: - a constant * string, - a parameter value defined as `$parameter_name`, - an original * parameter value defined as `$parameter_name.original`, - a parameter * value from some context defined as `#context_name.parameter_name`. */ - value: string; + value?: string; } /** * Represents an example or template that the agent is trained on. @@ -1877,23 +1884,23 @@ export namespace dialogflow_v2 { /** * Required. The unique identifier of this training phrase. */ - name: string; + name?: string; /** * Required. The collection of training phrase parts (can be annotated). * Fields: `entity_type`, `alias` and `user_defined` should be populated * only for the annotated parts of the training phrase. */ - parts: Schema$GoogleCloudDialogflowV2IntentTrainingPhrasePart[]; + parts?: Schema$GoogleCloudDialogflowV2IntentTrainingPhrasePart[]; /** * Optional. Indicates how many times this example or template was added to * the intent. Each time a developer adds an existing sample by editing an * intent or training, this counter is increased. */ - timesAddedCount: number; + timesAddedCount?: number; /** * Required. The type of the training phrase. */ - type: string; + type?: string; } /** * Represents a part of a training phrase. @@ -1903,23 +1910,23 @@ export namespace dialogflow_v2 { * Optional. The parameter name for the value extracted from the annotated * part of the example. */ - alias: string; + alias?: string; /** * Optional. The entity type name prefixed with `@`. This field is required * for the annotated part of the text and applies only to examples. */ - entityType: string; + entityType?: string; /** * Required. The text corresponding to the example or template, if there are * no annotations. For annotated examples, it is the text for one of the * example's parts. */ - text: string; + text?: string; /** * Optional. Indicates whether the text was manually annotated by the * developer. */ - userDefined: boolean; + userDefined?: boolean; } /** * The response message for Contexts.ListContexts. @@ -1929,12 +1936,12 @@ export namespace dialogflow_v2 { * The list of contexts. There will be a maximum number of items returned * based on the page_size field in the request. */ - contexts: Schema$GoogleCloudDialogflowV2Context[]; + contexts?: Schema$GoogleCloudDialogflowV2Context[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for EntityTypes.ListEntityTypes. @@ -1944,12 +1951,12 @@ export namespace dialogflow_v2 { * The list of agent entity types. There will be a maximum number of items * returned based on the page_size field in the request. */ - entityTypes: Schema$GoogleCloudDialogflowV2EntityType[]; + entityTypes?: Schema$GoogleCloudDialogflowV2EntityType[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Intents.ListIntents. @@ -1959,12 +1966,12 @@ export namespace dialogflow_v2 { * The list of agent intents. There will be a maximum number of items * returned based on the page_size field in the request. */ - intents: Schema$GoogleCloudDialogflowV2Intent[]; + intents?: Schema$GoogleCloudDialogflowV2Intent[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for SessionEntityTypes.ListSessionEntityTypes. @@ -1974,12 +1981,12 @@ export namespace dialogflow_v2 { * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of session entity types. There will be a maximum number of items * returned based on the page_size field in the request. */ - sessionEntityTypes: Schema$GoogleCloudDialogflowV2SessionEntityType[]; + sessionEntityTypes?: Schema$GoogleCloudDialogflowV2SessionEntityType[]; } /** * Represents the contents of the original request that was passed to the @@ -1990,12 +1997,12 @@ export namespace dialogflow_v2 { * Optional. This field is set to the value of `QueryParameters.payload` * field passed in the request. */ - payload: any; + payload?: any; /** * The source of this request, e.g., `google`, `facebook`, `slack`. It is * set by Dialogflow-owned servers. */ - source: string; + source?: string; } /** * Represents the query input. It can contain either: 1. An audio config @@ -2007,15 +2014,15 @@ export namespace dialogflow_v2 { /** * Instructs the speech recognizer how to process the speech audio. */ - audioConfig: Schema$GoogleCloudDialogflowV2InputAudioConfig; + audioConfig?: Schema$GoogleCloudDialogflowV2InputAudioConfig; /** * The event to be processed. */ - event: Schema$GoogleCloudDialogflowV2EventInput; + event?: Schema$GoogleCloudDialogflowV2EventInput; /** * The natural language text to be processed. */ - text: Schema$GoogleCloudDialogflowV2TextInput; + text?: Schema$GoogleCloudDialogflowV2TextInput; } /** * Represents the parameters of the conversational query. @@ -2025,34 +2032,34 @@ export namespace dialogflow_v2 { * Optional. The collection of contexts to be activated before this query is * executed. */ - contexts: Schema$GoogleCloudDialogflowV2Context[]; + contexts?: Schema$GoogleCloudDialogflowV2Context[]; /** * Optional. The geo location of this conversational query. */ - geoLocation: Schema$GoogleTypeLatLng; + geoLocation?: Schema$GoogleTypeLatLng; /** * Optional. This field can be used to pass custom data into the webhook * associated with the agent. Arbitrary JSON objects are supported. */ - payload: any; + payload?: any; /** * Optional. Specifies whether to delete all contexts in the current session * before the new ones are activated. */ - resetContexts: boolean; + resetContexts?: boolean; /** * Optional. The collection of session entity types to replace or extend * developer entities with for this query only. The entity synonyms apply to * all languages. */ - sessionEntityTypes: Schema$GoogleCloudDialogflowV2SessionEntityType[]; + sessionEntityTypes?: Schema$GoogleCloudDialogflowV2SessionEntityType[]; /** * Optional. The time zone of this conversational query from the [time zone * database](https://www.iana.org/time-zones), e.g., America/New_York, * Europe/Paris. If not provided, the time zone specified in agent settings * is used. */ - timeZone: string; + timeZone?: string; } /** * Represents the result of conversational query or event processing. @@ -2061,55 +2068,55 @@ export namespace dialogflow_v2 { /** * The action name from the matched intent. */ - action: string; + action?: string; /** * This field is set to: - `false` if the matched intent has required * parameters and not all of the required parameter values have been * collected. - `true` if all required parameter values have been collected, * or if the matched intent doesn't contain any required parameters. */ - allRequiredParamsPresent: boolean; + allRequiredParamsPresent?: boolean; /** * The free-form diagnostic info. For example, this field could contain * webhook call latency. */ - diagnosticInfo: any; + diagnosticInfo?: any; /** * The collection of rich messages to present to the user. */ - fulfillmentMessages: Schema$GoogleCloudDialogflowV2IntentMessage[]; + fulfillmentMessages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; /** * The text to be pronounced to the user or shown on the screen. */ - fulfillmentText: string; + fulfillmentText?: string; /** * The intent that matched the conversational query. Some, not all fields * are filled in this message, including but not limited to: `name`, * `display_name` and `webhook_state`. */ - intent: Schema$GoogleCloudDialogflowV2Intent; + intent?: Schema$GoogleCloudDialogflowV2Intent; /** * The intent detection confidence. Values range from 0.0 (completely * uncertain) to 1.0 (completely certain). */ - intentDetectionConfidence: number; + intentDetectionConfidence?: number; /** * The language that was triggered during intent detection. See [Language * Support](https://dialogflow.com/docs/reference/language) for a list of * the currently supported language codes. */ - languageCode: string; + languageCode?: string; /** * The collection of output contexts. If applicable, * `output_contexts.parameters` contains entries with name `<parameter * name>.original` containing the original parameter values before the * query. */ - outputContexts: Schema$GoogleCloudDialogflowV2Context[]; + outputContexts?: Schema$GoogleCloudDialogflowV2Context[]; /** * The collection of extracted parameters. */ - parameters: any; + parameters?: any; /** * The original conversational query text: - If natural language text was * provided as input, `query_text` contains a copy of the input. - If @@ -2118,7 +2125,7 @@ export namespace dialogflow_v2 { * multiple alternatives, a particular one is picked. - If an event was * provided as input, `query_text` is not set. */ - queryText: string; + queryText?: string; /** * The Speech recognition confidence between 0.0 and 1.0. A higher number * indicates an estimated greater likelihood that the recognized words are @@ -2129,17 +2136,17 @@ export namespace dialogflow_v2 { * the streaming endpoint has separate confidence estimates per portion of * the audio in StreamingRecognitionResult. */ - speechRecognitionConfidence: number; + speechRecognitionConfidence?: number; /** * If the query was fulfilled by a webhook call, this field is set to the * value of the `payload` field returned in the webhook response. */ - webhookPayload: any; + webhookPayload?: any; /** * If the query was fulfilled by a webhook call, this field is set to the * value of the `source` field returned in the webhook response. */ - webhookSource: string; + webhookSource?: string; } /** * The request message for Agents.RestoreAgent. @@ -2155,12 +2162,12 @@ export namespace dialogflow_v2 { * --data-binary "{ 'agentContent': '$(cat <agent * zip file> | base64 -w 0)' }" \ */ - agentContent: string; + agentContent?: string; /** * The URI to a Google Cloud Storage file containing the agent to restore. * Note: The URI must start with "gs://". */ - agentUri: string; + agentUri?: string; } /** * The response message for Agents.SearchAgents. @@ -2170,12 +2177,12 @@ export namespace dialogflow_v2 { * The list of agents. There will be a maximum number of items returned * based on the page_size field in the request. */ - agents: Schema$GoogleCloudDialogflowV2Agent[]; + agents?: Schema$GoogleCloudDialogflowV2Agent[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents a session entity type. Extends or replaces a developer entity @@ -2188,18 +2195,18 @@ export namespace dialogflow_v2 { * Required. The collection of entities associated with this session entity * type. */ - entities: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; + entities?: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]; /** * Required. Indicates whether the additional data should override or * supplement the developer entity type definition. */ - entityOverrideMode: string; + entityOverrideMode?: string; /** * Required. The unique identifier of this session entity type. Format: * `projects/<Project ID>/agent/sessions/<Session * ID>/entityTypes/<Entity Type Display Name>`. */ - name: string; + name?: string; } /** * Represents the natural language text to be processed. @@ -2211,12 +2218,12 @@ export namespace dialogflow_v2 { * currently supported language codes. Note that queries in the same session * do not necessarily need to specify the same language. */ - languageCode: string; + languageCode?: string; /** * Required. The UTF-8 encoded natural language text to be processed. Text * length must not exceed 256 bytes. */ - text: string; + text?: string; } /** * The request message for Agents.TrainAgent. @@ -2230,24 +2237,24 @@ export namespace dialogflow_v2 { * Optional. The contents of the original request that was passed to * `[Streaming]DetectIntent` call. */ - originalDetectIntentRequest: + originalDetectIntentRequest?: Schema$GoogleCloudDialogflowV2OriginalDetectIntentRequest; /** * The result of the conversational query or event processing. Contains the * same value as `[Streaming]DetectIntentResponse.query_result`. */ - queryResult: Schema$GoogleCloudDialogflowV2QueryResult; + queryResult?: Schema$GoogleCloudDialogflowV2QueryResult; /** * The unique identifier of the response. Contains the same value as * `[Streaming]DetectIntentResponse.response_id`. */ - responseId: string; + responseId?: string; /** * The unique identifier of detectIntent request session. Can be used to * identify end-user inside webhook implementation. Format: * `projects/<Project ID>/agent/sessions/<Session ID>`. */ - session: string; + session?: string; } /** * The response message for a webhook call. @@ -2257,22 +2264,22 @@ export namespace dialogflow_v2 { * Optional. Makes the platform immediately invoke another `DetectIntent` * call internally with the specified event as input. */ - followupEventInput: Schema$GoogleCloudDialogflowV2EventInput; + followupEventInput?: Schema$GoogleCloudDialogflowV2EventInput; /** * Optional. The collection of rich messages to present to the user. This * value is passed directly to `QueryResult.fulfillment_messages`. */ - fulfillmentMessages: Schema$GoogleCloudDialogflowV2IntentMessage[]; + fulfillmentMessages?: Schema$GoogleCloudDialogflowV2IntentMessage[]; /** * Optional. The text to be shown on the screen. This value is passed * directly to `QueryResult.fulfillment_text`. */ - fulfillmentText: string; + fulfillmentText?: string; /** * Optional. The collection of output contexts. This value is passed * directly to `QueryResult.output_contexts`. */ - outputContexts: Schema$GoogleCloudDialogflowV2Context[]; + outputContexts?: Schema$GoogleCloudDialogflowV2Context[]; /** * Optional. This value is passed directly to `QueryResult.webhook_payload`. * See the related `fulfillment_messages[i].payload field`, which may be @@ -2286,11 +2293,11 @@ export namespace dialogflow_v2 { * "this is a simple response" } } ] } * } }</pre> */ - payload: any; + payload?: any; /** * Optional. This value is passed directly to `QueryResult.webhook_source`. */ - source: string; + source?: string; } /** * This resource represents a long-running operation that is the result of a @@ -2302,24 +2309,24 @@ export namespace dialogflow_v2 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$GoogleRpcStatus; + error?: Schema$GoogleRpcStatus; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -2329,7 +2336,7 @@ export namespace dialogflow_v2 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -2379,18 +2386,18 @@ export namespace dialogflow_v2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -2403,13 +2410,14 @@ export namespace dialogflow_v2 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } + export class Resource$Projects { root: Dialogflow; agent: Resource$Projects$Agent; @@ -2438,29 +2446,44 @@ export namespace dialogflow_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAgent(params?: any, options?: MethodOptions): + getAgent( + params?: Params$Resource$Projects$Getagent, options?: MethodOptions): AxiosPromise; getAgent( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getagent, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; getAgent( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getagent, + callback: BodyResponseCallback): + void; + getAgent(callback: + BodyResponseCallback): + void; + getAgent( + paramsOrCallback?: Params$Resource$Projects$Getagent| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getagent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getagent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2484,6 +2507,20 @@ export namespace dialogflow_v2 { } } } + + export interface Params$Resource$Projects$Getagent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to fetch is associated with. Format: + * `projects/`. + */ + parent?: string; + } + export class Resource$Projects$Agent { root: Dialogflow; entityTypes: Resource$Projects$Agent$Entitytypes; @@ -2516,29 +2553,44 @@ export namespace dialogflow_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): + export( + params?: Params$Resource$Projects$Agent$Export, + options?: MethodOptions): AxiosPromise; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Export, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + export( + params: Params$Resource$Projects$Agent$Export, + callback: BodyResponseCallback): + void; + export(callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2579,19 +2631,28 @@ export namespace dialogflow_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Projects$Agent$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Projects$Agent$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Projects$Agent$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Import; + options = {}; + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; options = {}; - } if(typeof params === 'function') { - callback = params; - params = {}; - } options = options || {}; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.getRoot()}; if(callback) { + } + + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { + } else { return createAPIRequest(parameters); - }} + }} /** @@ -2602,33 +2663,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback`. - * @param {().GoogleCloudDialogflowV2RestoreAgentRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {().GoogleCloudDialogflowV2RestoreAgentRequest} 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 */ - restore(params?: any, options?: MethodOptions): AxiosPromise; + restore(params?: Params$Resource$Projects$Agent$Restore, options?: MethodOptions): AxiosPromise; restore( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Restore, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + restore( + params: Params$Resource$Projects$Agent$Restore, + callback: BodyResponseCallback): + void; + restore(callback: BodyResponseCallback): void; restore( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Restore| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Restore; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Restore; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2670,30 +2744,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Search, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2SearchAgentsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SearchAgentsResponse>): void; + search( + params: Params$Resource$Projects$Agent$Search, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SearchAgentsResponse>): void; + search(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SearchAgentsResponse>): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Agent$Search| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SearchAgentsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2SearchAgentsResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SearchAgentsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2732,29 +2822,43 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; train( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Train, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + train( + params: Params$Resource$Projects$Agent$Train, + callback: BodyResponseCallback): + void; + train(callback: BodyResponseCallback): void; train( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Train| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Train; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Train; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2777,6 +2881,94 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2ExportAgentRequest; + } + export interface Params$Resource$Projects$Agent$Import { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to import is associated with. + * Format: `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2ImportAgentRequest; + } + export interface Params$Resource$Projects$Agent$Restore { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to restore is associated with. + * Format: `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2RestoreAgentRequest; + } + export interface Params$Resource$Projects$Agent$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The project to list agents from. Format: `projects/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Train { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to train is associated with. Format: + * `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2TrainAgentRequest; + } + export class Resource$Projects$Agent$Entitytypes { root: Dialogflow; entities: Resource$Projects$Agent$Entitytypes$Entities; @@ -2805,29 +2997,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, + callback: BodyResponseCallback): + void; + batchDelete(callback: + BodyResponseCallback): + void; + batchDelete( + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2866,29 +3075,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, + callback: BodyResponseCallback): + void; + batchUpdate(callback: + BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2926,31 +3152,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Create, + callback: + BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2987,28 +3230,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Entitytypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Entitytypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Agent$Entitytypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3043,29 +3297,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Entitytypes$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Agent$Entitytypes$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: + BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3104,30 +3373,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Entitytypes$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>): void; + list( + params: Params$Resource$Projects$Agent$Entitytypes$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListEntityTypesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3167,31 +3452,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + patch( + params: Params$Resource$Projects$Agent$Entitytypes$Patch, + callback: BodyResponseCallback): void; + patch(callback: + BodyResponseCallback): + void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3214,6 +3516,151 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the agent to update or create entity types in. + * Format: `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language of entity synonyms defined in `entity_type`. If + * not specified, the agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The agent to create a entity type for. Format: + * `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2EntityType; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete. Format: + * `projects//agent/entityTypes/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language to retrieve entity synonyms for. If not specified, + * the agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The name of the entity type. Format: `projects//agent/entityTypes/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Entitytypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language to list entity synonyms for. If not specified, the + * agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The agent to list all entity types from. Format: + * `projects//agent`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language of entity synonyms defined in `entity_type`. If + * not specified, the agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required for all methods except `create` (`create` populates the name + * automatically. The unique identifier of the entity type. Format: + * `projects//agent/entityTypes/`. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2EntityType; + } + export class Resource$Projects$Agent$Entitytypes$Entities { root: Dialogflow; constructor(root: Dialogflow) { @@ -3241,29 +3688,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchCreate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchCreate( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, + callback: BodyResponseCallback): + void; + batchCreate(callback: + BodyResponseCallback): + void; + batchCreate( + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3302,29 +3768,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchDelete( + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, + callback: BodyResponseCallback): + void; + batchDelete(callback: + BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3363,29 +3848,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, + callback: BodyResponseCallback): + void; + batchUpdate(callback: + BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3409,6 +3913,56 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/entityTypes/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchCreateEntitiesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete entries for. Format: + * `projects//agent/entityTypes/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchDeleteEntitiesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to update the entities in. Format: + * `projects//agent/entityTypes/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchUpdateEntitiesRequest; + } + + export class Resource$Projects$Agent$Intents { root: Dialogflow; @@ -3436,29 +3990,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchdelete, + callback: BodyResponseCallback): + void; + batchDelete(callback: + BodyResponseCallback): + void; + batchDelete( + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3496,29 +4066,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchupdate, + callback: BodyResponseCallback): + void; + batchUpdate(callback: + BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3557,29 +4143,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + create( + params: Params$Resource$Projects$Agent$Intents$Create, + callback: BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3616,28 +4218,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Intents$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Intents$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Agent$Intents$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3673,27 +4286,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Intents$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Agent$Intents$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3733,30 +4359,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListIntentsResponse>): void; + list( + params: Params$Resource$Projects$Agent$Intents$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListIntentsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListIntentsResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListIntentsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3797,29 +4438,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + patch( + params: Params$Resource$Projects$Agent$Intents$Patch, + callback: BodyResponseCallback): + void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3843,6 +4499,171 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchDeleteIntentsRequest; + } + export interface Params$Resource$Projects$Agent$Intents$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the agent to update or create intents in. Format: + * `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2BatchUpdateIntentsRequest; + } + export interface Params$Resource$Projects$Agent$Intents$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language of training phrases, parameters and rich messages + * defined in `intent`. If not specified, the agent's default language is + * used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The agent to create a intent for. Format: `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2Intent; + } + export interface Params$Resource$Projects$Agent$Intents$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the intent to delete. Format: `projects//agent/intents/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Intents$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language to retrieve training phrases, parameters and rich + * messages for. If not specified, the agent's default language is used. + * [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The name of the intent. Format: `projects//agent/intents/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Intents$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language to list training phrases, parameters and rich + * messages for. If not specified, the agent's default language is used. + * [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent before they can be used. + */ + languageCode?: string; + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The agent to list all intents from. Format: `projects//agent`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Intents$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language of training phrases, parameters and rich messages + * defined in `intent`. If not specified, the agent's default language is + * used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required for all methods except `create` (`create` populates the name + * automatically. The unique identifier of this intent. Format: + * `projects//agent/intents/`. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2Intent; + } + + export class Resource$Projects$Agent$Sessions { root: Dialogflow; contexts: Resource$Projects$Agent$Sessions$Contexts; @@ -3871,28 +4692,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; deleteContexts( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Sessions$Deletecontexts, + options?: MethodOptions): AxiosPromise; deleteContexts( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteContexts( + params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, + callback: BodyResponseCallback): void; + deleteContexts(callback: BodyResponseCallback): + void; + deleteContexts( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Deletecontexts| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Deletecontexts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Deletecontexts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3931,30 +4765,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; detectIntent( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Detectintent, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2DetectIntentResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2DetectIntentResponse>): void; detectIntent( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Detectintent, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2DetectIntentResponse>): void; + detectIntent(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2DetectIntentResponse>): void; + detectIntent( + paramsOrCallback?: Params$Resource$Projects$Agent$Sessions$Detectintent| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2DetectIntentResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2DetectIntentResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2DetectIntentResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Detectintent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Detectintent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3978,6 +4828,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Detectintent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session this query is sent to. Format: + * `projects//agent/sessions/`. It's up to the API + * caller to choose an appropriate session ID. It can be a random number or + * some type of user identifier (preferably hashed). The length of the + * session ID must not exceed 36 bytes. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2DetectIntentRequest; + } + export class Resource$Projects$Agent$Sessions$Contexts { root: Dialogflow; constructor(root: Dialogflow) { @@ -4003,29 +4886,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + create( + params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, + callback: BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4062,28 +4962,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4117,27 +5029,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, + callback: BodyResponseCallback): + void; + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Projects$Agent$Sessions$Contexts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4175,30 +5100,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Contexts$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListContextsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListContextsResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Contexts$List, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListContextsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListContextsResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListContextsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListContextsResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListContextsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4237,29 +5179,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, + callback: BodyResponseCallback): + void; + patch(callback: + BodyResponseCallback): + void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4283,6 +5242,91 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2Context; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the context to delete. Format: `projects//agent/sessions//contexts/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the context. Format: `projects//agent/sessions//contexts/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The session to list all contexts from. Format: + * `projects//agent/sessions/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The unique identifier of the context. Format: + * `projects//agent/sessions//contexts/`. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2Context; + } + + export class Resource$Projects$Agent$Sessions$Entitytypes { root: Dialogflow; constructor(root: Dialogflow) { @@ -4308,30 +5352,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SessionEntityType>): void; + create( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SessionEntityType>): void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SessionEntityType>): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SessionEntityType>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4368,28 +5429,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4423,28 +5497,42 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SessionEntityType>): void; + get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SessionEntityType>): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SessionEntityType>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SessionEntityType>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Entitytypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4483,32 +5571,51 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>; + list( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>): + void; + list( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse>): void|AxiosPromise< Schema$GoogleCloudDialogflowV2ListSessionEntityTypesResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Entitytypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4549,30 +5656,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SessionEntityType>): void; + patch( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SessionEntityType>): void; + patch(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2SessionEntityType>): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2SessionEntityType>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4596,6 +5720,91 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2SessionEntityType; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete. Format: + * `projects//agent/sessions//entityTypes/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session entity type. Format: `projects//agent/sessions//entityTypes/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The session to list all session entity types from. Format: + * `projects//agent/sessions/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The unique identifier of this session entity type. Format: + * `projects//agent/sessions//entityTypes/`. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2SessionEntityType; + } + export class Resource$Projects$Operations { @@ -4624,27 +5833,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Operations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Operations$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Projects$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4666,4 +5888,16 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; getAgent( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getagent, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + getAgent( + params: Params$Resource$Projects$Getagent, + callback: + BodyResponseCallback): + void; + getAgent( + callback: BodyResponseCallback): void; getAgent( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Getagent| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getagent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getagent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2493,6 +2518,20 @@ export namespace dialogflow_v2beta1 { } } } + + export interface Params$Resource$Projects$Getagent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to fetch is associated with. Format: + * `projects/`. + */ + parent?: string; + } + export class Resource$Projects$Agent { root: Dialogflow; entityTypes: Resource$Projects$Agent$Entitytypes; @@ -2527,29 +2566,44 @@ export namespace dialogflow_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): + export( + params?: Params$Resource$Projects$Agent$Export, + options?: MethodOptions): AxiosPromise; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Export, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + export( + params: Params$Resource$Projects$Agent$Export, + callback: BodyResponseCallback): + void; + export(callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2590,19 +2644,28 @@ export namespace dialogflow_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Projects$Agent$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Projects$Agent$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Projects$Agent$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Projects$Agent$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Import; + options = {}; + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; options = {}; - } if(typeof params === 'function') { - callback = params; - params = {}; - } options = options || {}; const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.getRoot()}; if(callback) { + } + + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['parent'], pathParams: ['parent'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { + } else { return createAPIRequest(parameters); - }} + }} /** @@ -2613,33 +2676,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback`. - * @param {().GoogleCloudDialogflowV2beta1RestoreAgentRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {().GoogleCloudDialogflowV2beta1RestoreAgentRequest} 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 */ - restore(params?: any, options?: MethodOptions): AxiosPromise; + restore(params?: Params$Resource$Projects$Agent$Restore, options?: MethodOptions): AxiosPromise; restore( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Restore, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + restore( + params: Params$Resource$Projects$Agent$Restore, + callback: BodyResponseCallback): + void; + restore(callback: BodyResponseCallback): void; restore( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Restore| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Restore; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Restore; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2681,30 +2757,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Search, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Search, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>): void; + search(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>): void; + search( + paramsOrCallback?: Params$Resource$Projects$Agent$Search| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SearchAgentsResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2745,29 +2837,43 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; train( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Train, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + train( + params: Params$Resource$Projects$Agent$Train, + callback: BodyResponseCallback): + void; + train(callback: BodyResponseCallback): void; train( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Train| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Agent$Train; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Train; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2790,6 +2896,94 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1ExportAgentRequest; + } + export interface Params$Resource$Projects$Agent$Import { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to import is associated with. + * Format: `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1ImportAgentRequest; + } + export interface Params$Resource$Projects$Agent$Restore { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to restore is associated with. + * Format: `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1RestoreAgentRequest; + } + export interface Params$Resource$Projects$Agent$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The project to list agents from. Format: `projects/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Train { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project that the agent to train is associated with. Format: + * `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1TrainAgentRequest; + } + export class Resource$Projects$Agent$Entitytypes { root: Dialogflow; entities: Resource$Projects$Agent$Entitytypes$Entities; @@ -2818,29 +3012,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchDelete( + params: Params$Resource$Projects$Agent$Entitytypes$Batchdelete, + callback: BodyResponseCallback): + void; + batchDelete(callback: + BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2879,29 +3090,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Projects$Agent$Entitytypes$Batchupdate, + callback: BodyResponseCallback): + void; + batchUpdate(callback: + BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2939,30 +3167,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1EntityType>): void; + create( + params: Params$Resource$Projects$Agent$Entitytypes$Create, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1EntityType>): void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1EntityType>): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1EntityType>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -2999,28 +3242,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Entitytypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Entitytypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3055,28 +3309,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Entitytypes$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1EntityType>): void; + get(params: Params$Resource$Projects$Agent$Entitytypes$Get, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1EntityType>): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1EntityType>): void; + get(paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1EntityType>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3115,31 +3382,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Projects$Agent$Entitytypes$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>; + list( + params: Params$Resource$Projects$Agent$Entitytypes$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>): void; + list( + params: Params$Resource$Projects$Agent$Entitytypes$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse>): void|AxiosPromise< Schema$GoogleCloudDialogflowV2beta1ListEntityTypesResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3181,30 +3465,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1EntityType>): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1EntityType>): void; + patch(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1EntityType>): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Agent$Entitytypes$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1EntityType>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Entitytypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3227,6 +3526,151 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the agent to update or create entity types in. + * Format: `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language of entity synonyms defined in `entity_type`. If + * not specified, the agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The agent to create a entity type for. Format: + * `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1EntityType; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete. Format: + * `projects//agent/entityTypes/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language to retrieve entity synonyms for. If not specified, + * the agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The name of the entity type. Format: `projects//agent/entityTypes/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Entitytypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language to list entity synonyms for. If not specified, the + * agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The agent to list all entity types from. Format: + * `projects//agent`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The language of entity synonyms defined in `entity_type`. If + * not specified, the agent's default language is used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required for all methods except `create` (`create` populates the name + * automatically. The unique identifier of the entity type. Format: + * `projects//agent/entityTypes/`. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1EntityType; + } + export class Resource$Projects$Agent$Entitytypes$Entities { root: Dialogflow; constructor(root: Dialogflow) { @@ -3254,29 +3698,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchCreate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchCreate( + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate, + callback: BodyResponseCallback): + void; + batchCreate(callback: + BodyResponseCallback): void; batchCreate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchcreate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3315,29 +3778,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchDelete( + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete, + callback: BodyResponseCallback): + void; + batchDelete(callback: + BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3376,29 +3858,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate, + callback: BodyResponseCallback): + void; + batchUpdate(callback: + BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3422,6 +3923,56 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/entityTypes/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchdelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete entries for. Format: + * `projects//agent/entityTypes/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest; + } + export interface Params$Resource$Projects$Agent$Entitytypes$Entities$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to update the entities in. Format: + * `projects//agent/entityTypes/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest; + } + + export class Resource$Projects$Agent$Environments { root: Dialogflow; @@ -3436,6 +3987,8 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; deleteContexts( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, + options?: MethodOptions): AxiosPromise; + deleteContexts( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteContexts( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts, + callback: BodyResponseCallback): void; + deleteContexts(callback: BodyResponseCallback): + void; deleteContexts( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Deletecontexts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3544,30 +4116,52 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; detectIntent( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): void; + detectIntent( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): void; + detectIntent(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): + void; detectIntent( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3593,6 +4187,49 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/` or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be + * available soon. If is not specified we assume default + * 'draft' environment. If is not specified, we assume default '-' + * user. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Detectintent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session this query is sent to. Format: + * `projects//agent/sessions/`, or + * `projects//agent/environments//users//sessions/`. Note: Environments and users are under + * construction and will be available soon. If is not + * specified, we assume default 'draft' environment. If is not + * specified, we are using "-". It’s up to the API caller to choose an + * appropriate . and . They can be a random numbers or + * some type of user and session identifiers (preferably hashed). The length + * of the and must not exceed 36 characters. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1DetectIntentRequest; + } + export class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { root: Dialogflow; constructor(root: Dialogflow) { @@ -3619,31 +4256,54 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + create( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create, + callback: + BodyResponseCallback): + void; + create( + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3681,28 +4341,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3736,29 +4412,49 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: + BodyResponseCallback): + void; + get(paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3797,30 +4493,51 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3862,31 +4579,53 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch, + callback: + BodyResponseCallback): + void; + patch(callback: + BodyResponseCallback): + void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3910,6 +4649,116 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/` or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be + * available soon. If is not specified, we assume default + * 'draft' environment. If is not specified, we assume default '-' + * user. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1Context; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the context to delete. Format: `projects//agent/sessions//contexts/` or + * `projects//agent/environments//users//sessions//contexts/`. Note: Environments and + * users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If + * is not specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the context. Format: `projects//agent/sessions//contexts/` or + * `projects//agent/environments//users//sessions//contexts/`. Note: Environments and + * users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If + * is not specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The session to list all contexts from. Format: + * `projects//agent/sessions/` or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be + * available soon. If is not specified, we assume default + * 'draft' environment. If is not specified, we assume default '-' + * user. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Contexts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The unique identifier of the context. Format: + * `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. Note: + * Environments and users are under construction and will be available soon. + * The Context ID is always converted to lowercase. If is + * not specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1Context; + } + + export class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { root: Dialogflow; constructor(root: Dialogflow) { @@ -3936,30 +4785,51 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + create( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -3997,28 +4867,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4053,28 +4939,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback< + get(params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + get(params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback< + get(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4114,32 +5019,56 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>; + list( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): + void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): void|AxiosPromise< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4181,30 +5110,51 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + patch( + params: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + patch(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4228,6 +5178,116 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/` or `projects//agent/environments//users// + * sessions/`. Note: Environments and users are under + * construction and will be available soon. If is not + * specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1SessionEntityType; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete. Format: + * `projects//agent/sessions//entityTypes/` or `projects//agent/environments//users//sessions//entityTypes/`. Note: Environments and users + * are under construction and will be available soon. If is + * not specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session entity type. Format: `projects//agent/sessions//entityTypes/` + * or `projects//agent/environments//users//sessions// entityTypes/`. Note: + * Environments and users re under construction and will be available soon. + * If is not specified, we assume default 'draft' + * environment. If is not specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The session to list all session entity types from. Format: + * `projects//agent/sessions/` or `projects//agent/environments//users// + * sessions/`. Note: Environments and users are under + * construction and will be available soon. If is not + * specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The unique identifier of this session entity type. Format: + * `projects//agent/sessions//entityTypes/`, or `projects//agent/environments//users//sessions + * //entityTypes/`. Note: Environments + * and users are under construction and will be available soon. If + * is not specified, we assume default 'draft' environment. + * If is not specified, we assume default '-' user. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1SessionEntityType; + } + export class Resource$Projects$Agent$Intents { @@ -4256,29 +5316,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchdelete, + callback: BodyResponseCallback): + void; + batchDelete(callback: + BodyResponseCallback): + void; + batchDelete( + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4316,29 +5392,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Batchupdate, + callback: BodyResponseCallback): + void; + batchUpdate(callback: + BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4377,31 +5469,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Create, + callback: + BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4438,28 +5547,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Intents$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Intents$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Agent$Intents$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4495,29 +5615,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Intents$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Agent$Intents$Get, + callback: + BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4557,30 +5692,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Intents$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>): void; + list( + params: Params$Resource$Projects$Agent$Intents$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListIntentsResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4622,31 +5773,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Intents$Patch, + callback: + BodyResponseCallback): + void; + patch(callback: + BodyResponseCallback): + void; + patch( + paramsOrCallback?: Params$Resource$Projects$Agent$Intents$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Intents$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Intents$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4670,6 +5838,171 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest; + } + export interface Params$Resource$Projects$Agent$Intents$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the agent to update or create intents in. Format: + * `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest; + } + export interface Params$Resource$Projects$Agent$Intents$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language of training phrases, parameters and rich messages + * defined in `intent`. If not specified, the agent's default language is + * used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The agent to create a intent for. Format: `projects//agent`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1Intent; + } + export interface Params$Resource$Projects$Agent$Intents$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the intent to delete. Format: `projects//agent/intents/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Intents$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language to retrieve training phrases, parameters and rich + * messages for. If not specified, the agent's default language is used. + * [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required. The name of the intent. Format: `projects//agent/intents/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Intents$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language to list training phrases, parameters and rich + * messages for. If not specified, the agent's default language is used. + * [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent before they can be used. + */ + languageCode?: string; + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The agent to list all intents from. Format: `projects//agent`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Intents$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The resource view to apply to the returned intent. + */ + intentView?: string; + /** + * Optional. The language of training phrases, parameters and rich messages + * defined in `intent`. If not specified, the agent's default language is + * used. [More than a dozen + * languages](https://dialogflow.com/docs/reference/language) are supported. + * Note: languages must be enabled in the agent, before they can be used. + */ + languageCode?: string; + /** + * Required for all methods except `create` (`create` populates the name + * automatically. The unique identifier of this intent. Format: + * `projects//agent/intents/`. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1Intent; + } + + export class Resource$Projects$Agent$Sessions { root: Dialogflow; contexts: Resource$Projects$Agent$Sessions$Contexts; @@ -4698,28 +6031,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; deleteContexts( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Sessions$Deletecontexts, + options?: MethodOptions): AxiosPromise; + deleteContexts( + params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteContexts( + params: Params$Resource$Projects$Agent$Sessions$Deletecontexts, + callback: BodyResponseCallback): void; + deleteContexts(callback: BodyResponseCallback): + void; deleteContexts( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Deletecontexts| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Deletecontexts; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Deletecontexts; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4758,30 +6104,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; detectIntent( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Detectintent, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): void; + detectIntent( + params: Params$Resource$Projects$Agent$Sessions$Detectintent, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): void; + detectIntent(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): + void; detectIntent( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Agent$Sessions$Detectintent| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1DetectIntentResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Detectintent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Detectintent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4807,6 +6170,49 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/` or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be + * available soon. If is not specified we assume default + * 'draft' environment. If is not specified, we assume default '-' + * user. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Detectintent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session this query is sent to. Format: + * `projects//agent/sessions/`, or + * `projects//agent/environments//users//sessions/`. Note: Environments and users are under + * construction and will be available soon. If is not + * specified, we assume default 'draft' environment. If is not + * specified, we are using "-". It’s up to the API caller to choose an + * appropriate . and . They can be a random numbers or + * some type of user and session identifiers (preferably hashed). The length + * of the and must not exceed 36 characters. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1DetectIntentRequest; + } + export class Resource$Projects$Agent$Sessions$Contexts { root: Dialogflow; constructor(root: Dialogflow) { @@ -4832,31 +6238,50 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + create( + params: Params$Resource$Projects$Agent$Sessions$Contexts$Create, + callback: + BodyResponseCallback): + void; + create( + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4893,28 +6318,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Agent$Sessions$Contexts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -4948,29 +6385,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Agent$Sessions$Contexts$Get, + callback: + BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Agent$Sessions$Contexts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5008,30 +6460,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Contexts$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void; + list( + params: Params$Resource$Projects$Agent$Sessions$Contexts$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListContextsResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5072,31 +6541,49 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + patch( + params: Params$Resource$Projects$Agent$Sessions$Contexts$Patch, + callback: BodyResponseCallback): void; + patch(callback: + BodyResponseCallback): + void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Contexts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Contexts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Contexts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5120,6 +6607,116 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/` or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be + * available soon. If is not specified, we assume default + * 'draft' environment. If is not specified, we assume default '-' + * user. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1Context; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the context to delete. Format: `projects//agent/sessions//contexts/` or + * `projects//agent/environments//users//sessions//contexts/`. Note: Environments and + * users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If + * is not specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the context. Format: `projects//agent/sessions//contexts/` or + * `projects//agent/environments//users//sessions//contexts/`. Note: Environments and + * users are under construction and will be available soon. If is not specified, we assume default 'draft' environment. If + * is not specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The session to list all contexts from. Format: + * `projects//agent/sessions/` or `projects//agent/environments//users//sessions/`. Note: Environments and users are under construction and will be + * available soon. If is not specified, we assume default + * 'draft' environment. If is not specified, we assume default '-' + * user. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Contexts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The unique identifier of the context. Format: + * `projects//agent/sessions//contexts/`, or `projects//agent/environments//users//sessions//contexts/`. Note: + * Environments and users are under construction and will be available soon. + * The Context ID is always converted to lowercase. If is + * not specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1Context; + } + + export class Resource$Projects$Agent$Sessions$Entitytypes { root: Dialogflow; constructor(root: Dialogflow) { @@ -5145,30 +6742,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Create| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5205,28 +6820,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5260,28 +6888,43 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback< + get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback< + get(params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Get| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Entitytypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5320,32 +6963,52 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>; + list( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): + void; + list( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$List, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): + void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$List| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse>): void|AxiosPromise< Schema$GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Agent$Sessions$Entitytypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5386,30 +7049,48 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + patch( + params: Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch, + callback: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; + patch(callback: BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch| + BodyResponseCallback< + Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>, callback?: BodyResponseCallback< Schema$GoogleCloudDialogflowV2beta1SessionEntityType>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5433,6 +7114,116 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback/agent/sessions/` or `projects//agent/environments//users// + * sessions/`. Note: Environments and users are under + * construction and will be available soon. If is not + * specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1SessionEntityType; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the entity type to delete. Format: + * `projects//agent/sessions//entityTypes/` or `projects//agent/environments//users//sessions//entityTypes/`. Note: Environments and users + * are under construction and will be available soon. If is + * not specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session entity type. Format: `projects//agent/sessions//entityTypes/` + * or `projects//agent/environments//users//sessions// entityTypes/`. Note: + * Environments and users re under construction and will be available soon. + * If is not specified, we assume default 'draft' + * environment. If is not specified, we assume default '-' user. + */ + name?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of items to return in a single page. By + * default 100 and at most 1000. + */ + pageSize?: number; + /** + * Optional. The next_page_token value returned from a previous list + * request. + */ + pageToken?: string; + /** + * Required. The session to list all session entity types from. Format: + * `projects//agent/sessions/` or `projects//agent/environments//users// + * sessions/`. Note: Environments and users are under + * construction and will be available soon. If is not + * specified, we assume default 'draft' environment. If is not + * specified, we assume default '-' user. + */ + parent?: string; + } + export interface Params$Resource$Projects$Agent$Sessions$Entitytypes$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The unique identifier of this session entity type. Format: + * `projects//agent/sessions//entityTypes/`, or `projects//agent/environments//users//sessions + * //entityTypes/`. Note: Environments + * and users are under construction and will be available soon. If + * is not specified, we assume default 'draft' environment. + * If is not specified, we assume default '-' user. + */ + name?: string; + /** + * Optional. The mask to control which fields get updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudDialogflowV2beta1SessionEntityType; + } + export class Resource$Projects$Operations { @@ -5461,27 +7252,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Operations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Operations$Get, + callback: BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; const parameters = { options: Object.assign( @@ -5503,4 +7307,16 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; check( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Assetlinks$Check, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; check( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Assetlinks$Check, + callback: BodyResponseCallback): void; + check(callback: BodyResponseCallback): void; + check( + paramsOrCallback?: Params$Resource$Assetlinks$Check| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Assetlinks$Check; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Assetlinks$Check; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; const parameters = { @@ -337,6 +352,115 @@ export namespace digitalassetlinks_v1 { } } + export interface Params$Resource$Assetlinks$Check { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query string for the relation. We identify relations with strings of the + * format `/`, where `` must be one of a set of + * pre-defined purpose categories, and `` is a free-form lowercase + * alphanumeric string that describes the specific use case of the + * statement. Refer to [our API + * documentation](/digital-asset-links/v1/relation-strings) for the current + * list of supported relations. For a query to match an asset link, both + * the query's and the asset link's relation strings must match exactly. + * Example: A query with relation + * `delegate_permission/common.handle_all_urls` matches an asset link with + * relation `delegate_permission/common.handle_all_urls`. + */ + relation?: string; + /** + * The uppercase SHA-265 fingerprint of the certificate. From the PEM + * certificate, it can be acquired like this: $ keytool -printcert + * -file $CERTFILE | grep SHA256: SHA256: + * 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \ + * 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5 or like this: $ openssl x509 + * -in $CERTFILE -noout -fingerprint -sha256 SHA256 + * Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \ + * 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5 In this example, the + * contents of this field would be `14:6D:E9:83:C5:73: + * 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF: + * 44:E5`. If these tools are not available to you, you can convert the PEM + * certificate into the DER format, compute the SHA-256 hash of that string + * and represent the result as a hexstring (that is, uppercase hexadecimal + * representations of each octet, separated by colons). + */ + 'source.androidApp.certificate.sha256Fingerprint'?: string; + /** + * Android App assets are naturally identified by their Java package name. + * For example, the Google Maps app uses the package name + * `com.google.android.apps.maps`. REQUIRED + */ + 'source.androidApp.packageName'?: string; + /** + * Web assets are identified by a URL that contains only the scheme, + * hostname and port parts. The format is http[s]://[:] + * Hostnames must be fully qualified: they must end in a single period + * ("`.`"). Only the schemes "http" and "https" are currently allowed. Port + * numbers are given as a decimal number, and they must be omitted if the + * standard port numbers are used: 80 for http and 443 for https. We call + * this limited URL the "site". All URLs that share the same scheme, + * hostname and port are considered to be a part of the site and thus belong + * to the web asset. Example: the asset with the site + * `https://www.google.com` contains all these URLs: * + * `https://www.google.com/` * `https://www.google.com:443/` * + * `https://www.google.com/foo` * `https://www.google.com/foo?bar` * + * `https://www.google.com/foo#bar` * + * `https://user@password:www.google.com/` But it does not contain these + * URLs: * `http://www.google.com/` (wrong scheme) * + * `https://google.com/` (hostname does not match) * + * `https://www.google.com:444/` (port does not match) REQUIRED + */ + 'source.web.site'?: string; + /** + * The uppercase SHA-265 fingerprint of the certificate. From the PEM + * certificate, it can be acquired like this: $ keytool -printcert + * -file $CERTFILE | grep SHA256: SHA256: + * 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \ + * 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5 or like this: $ openssl x509 + * -in $CERTFILE -noout -fingerprint -sha256 SHA256 + * Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \ + * 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5 In this example, the + * contents of this field would be `14:6D:E9:83:C5:73: + * 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF: + * 44:E5`. If these tools are not available to you, you can convert the PEM + * certificate into the DER format, compute the SHA-256 hash of that string + * and represent the result as a hexstring (that is, uppercase hexadecimal + * representations of each octet, separated by colons). + */ + 'target.androidApp.certificate.sha256Fingerprint'?: string; + /** + * Android App assets are naturally identified by their Java package name. + * For example, the Google Maps app uses the package name + * `com.google.android.apps.maps`. REQUIRED + */ + 'target.androidApp.packageName'?: string; + /** + * Web assets are identified by a URL that contains only the scheme, + * hostname and port parts. The format is http[s]://[:] + * Hostnames must be fully qualified: they must end in a single period + * ("`.`"). Only the schemes "http" and "https" are currently allowed. Port + * numbers are given as a decimal number, and they must be omitted if the + * standard port numbers are used: 80 for http and 443 for https. We call + * this limited URL the "site". All URLs that share the same scheme, + * hostname and port are considered to be a part of the site and thus belong + * to the web asset. Example: the asset with the site + * `https://www.google.com` contains all these URLs: * + * `https://www.google.com/` * `https://www.google.com:443/` * + * `https://www.google.com/foo` * `https://www.google.com/foo?bar` * + * `https://www.google.com/foo#bar` * + * `https://user@password:www.google.com/` But it does not contain these + * URLs: * `http://www.google.com/` (wrong scheme) * + * `https://google.com/` (hostname does not match) * + * `https://www.google.com:444/` (port does not match) REQUIRED + */ + 'target.web.site'?: string; + } + + export class Resource$Statements { root: Digitalassetlinks; constructor(root: Digitalassetlinks) { @@ -377,26 +501,37 @@ export namespace digitalassetlinks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Statements$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Statements$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Statements$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Statements$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Statements$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Statements$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; const parameters = { @@ -419,4 +554,66 @@ export namespace digitalassetlinks_v1 { } } } + + export interface Params$Resource$Statements$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Use only associations that match the specified relation. See the + * [`Statement`](#Statement) message for a detailed definition of relation + * strings. For a query to match a statement, one of the following must be + * true: * both the query's and the statement's relation strings match + * exactly, or * the query's relation string is empty or missing. + * Example: A query with relation + * `delegate_permission/common.handle_all_urls` matches an asset link with + * relation `delegate_permission/common.handle_all_urls`. + */ + relation?: string; + /** + * The uppercase SHA-265 fingerprint of the certificate. From the PEM + * certificate, it can be acquired like this: $ keytool -printcert + * -file $CERTFILE | grep SHA256: SHA256: + * 14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83: \ + * 42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5 or like this: $ openssl x509 + * -in $CERTFILE -noout -fingerprint -sha256 SHA256 + * Fingerprint=14:6D:E9:83:C5:73:06:50:D8:EE:B9:95:2F:34:FC:64: \ + * 16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF:44:E5 In this example, the + * contents of this field would be `14:6D:E9:83:C5:73: + * 06:50:D8:EE:B9:95:2F:34:FC:64:16:A0:83:42:E6:1D:BE:A8:8A:04:96:B2:3F:CF: + * 44:E5`. If these tools are not available to you, you can convert the PEM + * certificate into the DER format, compute the SHA-256 hash of that string + * and represent the result as a hexstring (that is, uppercase hexadecimal + * representations of each octet, separated by colons). + */ + 'source.androidApp.certificate.sha256Fingerprint'?: string; + /** + * Android App assets are naturally identified by their Java package name. + * For example, the Google Maps app uses the package name + * `com.google.android.apps.maps`. REQUIRED + */ + 'source.androidApp.packageName'?: string; + /** + * Web assets are identified by a URL that contains only the scheme, + * hostname and port parts. The format is http[s]://[:] + * Hostnames must be fully qualified: they must end in a single period + * ("`.`"). Only the schemes "http" and "https" are currently allowed. Port + * numbers are given as a decimal number, and they must be omitted if the + * standard port numbers are used: 80 for http and 443 for https. We call + * this limited URL the "site". All URLs that share the same scheme, + * hostname and port are considered to be a part of the site and thus belong + * to the web asset. Example: the asset with the site + * `https://www.google.com` contains all these URLs: * + * `https://www.google.com/` * `https://www.google.com:443/` * + * `https://www.google.com/foo` * `https://www.google.com/foo?bar` * + * `https://www.google.com/foo#bar` * + * `https://user@password:www.google.com/` But it does not contain these + * URLs: * `http://www.google.com/` (wrong scheme) * + * `https://google.com/` (hostname does not match) * + * `https://www.google.com:444/` (port does not match) REQUIRED + */ + 'source.web.site'?: string; + } } diff --git a/src/apis/discovery/v1.ts b/src/apis/discovery/v1.ts index 9ee66f1adda..7fd7ba36e44 100644 --- a/src/apis/discovery/v1.ts +++ b/src/apis/discovery/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace discovery_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * APIs Discovery Service * @@ -70,314 +73,315 @@ export namespace discovery_v1 { /** * Indicate the version of the Discovery API used to generate this doc. */ - discoveryVersion: string; + discoveryVersion?: string; /** * The individual directory entries. One entry per api/version pair. */ - items: any[]; + items?: any[]; /** * The kind for this response. */ - kind: string; + kind?: string; } export interface Schema$JsonSchema { /** * A reference to another schema. The value of this property is the * "id" of another schema. */ - $ref: string; + $ref?: string; /** * If this is a schema for an object, this property is the schema for any * additional properties with dynamic keys on this object. */ - additionalProperties: Schema$JsonSchema; + additionalProperties?: Schema$JsonSchema; /** * Additional information about this property. */ - annotations: any; + annotations?: any; /** * The default value of this property (if one exists). */ - default: string; + default?: string; /** * A description of this object. */ - description: string; + description?: string; /** * Values this parameter may take (if it is an enum). */ - enum: string[]; + enum?: string[]; /** * The descriptions for the enums. Each position maps to the corresponding * value in the "enum" array. */ - enumDescriptions: string[]; + enumDescriptions?: string[]; /** * An additional regular expression or key that helps constrain the value. * For more details see: * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23 */ - format: string; + format?: string; /** * Unique identifier for this schema. */ - id: string; + id?: string; /** * If this is a schema for an array, this property is the schema for each * element in the array. */ - items: Schema$JsonSchema; + items?: Schema$JsonSchema; /** * Whether this parameter goes in the query or the path for REST requests. */ - location: string; + location?: string; /** * The maximum value of this parameter. */ - maximum: string; + maximum?: string; /** * The minimum value of this parameter. */ - minimum: string; + minimum?: string; /** * The regular expression this parameter must conform to. Uses Java 6 regex * format: * http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html */ - pattern: string; + pattern?: string; /** * If this is a schema for an object, list the schema for each property of * this object. */ - properties: any; + properties?: any; /** * The value is read-only, generated by the service. The value cannot be * modified by the client. If the value is included in a POST, PUT, or PATCH * request, it is ignored by the service. */ - readOnly: boolean; + readOnly?: boolean; /** * Whether this parameter may appear multiple times. */ - repeated: boolean; + repeated?: boolean; /** * Whether the parameter is required. */ - required: boolean; + required?: boolean; /** * The value type for this schema. A list of values can be found here: * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 */ - type: string; + type?: string; /** * In a variant data type, the value of one property is used to determine * how to interpret the entire entity. Its value must exist in a map of * descriminant values to schema names. */ - variant: any; + variant?: any; } export interface Schema$RestDescription { /** * Authentication information. */ - auth: any; + auth?: any; /** * [DEPRECATED] The base path for REST requests. */ - basePath: string; + basePath?: string; /** * [DEPRECATED] The base URL for REST requests. */ - baseUrl: string; + baseUrl?: string; /** * The path for REST batch requests. */ - batchPath: string; + batchPath?: string; /** * Indicates how the API name should be capitalized and split into various * parts. Useful for generating pretty class names. */ - canonicalName: string; + canonicalName?: string; /** * The description of this API. */ - description: string; + description?: string; /** * Indicate the version of the Discovery API used to generate this doc. */ - discoveryVersion: string; + discoveryVersion?: string; /** * A link to human readable documentation for the API. */ - documentationLink: string; + documentationLink?: string; /** * The ETag for this response. */ - etag: string; + etag?: string; /** * Enable exponential backoff for suitable methods in the generated clients. */ - exponentialBackoffDefault: boolean; + exponentialBackoffDefault?: boolean; /** * A list of supported features for this API. */ - features: string[]; + features?: string[]; /** * Links to 16x16 and 32x32 icons representing the API. */ - icons: any; + icons?: any; /** * The ID of this API. */ - id: string; + id?: string; /** * The kind for this response. */ - kind: string; + kind?: string; /** * Labels for the status of this API, such as labs or deprecated. */ - labels: string[]; + labels?: string[]; /** * API-level methods for this API. */ - methods: any; + methods?: any; /** * The name of this API. */ - name: string; + name?: string; /** * The domain of the owner of this API. Together with the ownerName and a * packagePath values, this can be used to generate a library for this API * which would have a unique fully qualified name. */ - ownerDomain: string; + ownerDomain?: string; /** * The name of the owner of this API. See ownerDomain. */ - ownerName: string; + ownerName?: string; /** * The package of the owner of this API. See ownerDomain. */ - packagePath: string; + packagePath?: string; /** * Common parameters that apply across all apis. */ - parameters: any; + parameters?: any; /** * The protocol described by this document. */ - protocol: string; + protocol?: string; /** * The resources in this API. */ - resources: any; + resources?: any; /** * The version of this API. */ - revision: string; + revision?: string; /** * The root URL under which all API services live. */ - rootUrl: string; + rootUrl?: string; /** * The schemas for this API. */ - schemas: any; + schemas?: any; /** * The base path for all REST requests. */ - servicePath: string; + servicePath?: string; /** * The title of this API. */ - title: string; + title?: string; /** * The version of this API. */ - version: string; - version_module: boolean; + version?: string; + version_module?: boolean; } export interface Schema$RestMethod { /** * Description of this method. */ - description: string; + description?: string; /** * Whether this method requires an ETag to be specified. The ETag is sent as * an HTTP If-Match or If-None-Match header. */ - etagRequired: boolean; + etagRequired?: boolean; /** * HTTP method used by this method. */ - httpMethod: string; + httpMethod?: string; /** * A unique ID for this method. This property can be used to match methods * between different versions of Discovery. */ - id: string; + id?: string; /** * Media upload parameters. */ - mediaUpload: any; + mediaUpload?: any; /** * Ordered list of required parameters, serves as a hint to clients on how * to structure their method signatures. The array is ordered such that the * "most-significant" parameter appears first. */ - parameterOrder: string[]; + parameterOrder?: string[]; /** * Details for all parameters in this method. */ - parameters: any; + parameters?: any; /** * The URI path of this REST method. Should be used in conjunction with the * basePath property at the api-level. */ - path: string; + path?: string; /** * The schema for the request. */ - request: any; + request?: any; /** * The schema for the response. */ - response: any; + response?: any; /** * OAuth 2.0 scopes applicable to this method. */ - scopes: string[]; + scopes?: string[]; /** * Whether this method supports media downloads. */ - supportsMediaDownload: boolean; + supportsMediaDownload?: boolean; /** * Whether this method supports media uploads. */ - supportsMediaUpload: boolean; + supportsMediaUpload?: boolean; /** * Whether this method supports subscriptions. */ - supportsSubscription: boolean; + supportsSubscription?: boolean; /** * Indicates that downloads from this method should use the download service * URL (i.e. "/download"). Only applies if the method supports * media download. */ - useMediaDownloadService: boolean; + useMediaDownloadService?: boolean; } export interface Schema$RestResource { /** * Methods on this resource. */ - methods: any; + methods?: any; /** * Sub-resources on this resource. */ - resources: any; + resources?: any; } + export class Resource$Apis { root: Discovery; constructor(root: Discovery) { @@ -403,26 +407,37 @@ export namespace discovery_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRest(params?: any, options?: MethodOptions): + getRest(params?: Params$Resource$Apis$Getrest, options?: MethodOptions): AxiosPromise; getRest( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apis$Getrest, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getRest( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apis$Getrest, + callback: BodyResponseCallback): void; + getRest(callback: BodyResponseCallback): void; + getRest( + paramsOrCallback?: Params$Resource$Apis$Getrest| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apis$Getrest; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apis$Getrest; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -458,26 +473,37 @@ export namespace discovery_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Apis$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apis$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Apis$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Apis$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apis$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apis$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -499,4 +525,35 @@ export namespace discovery_v1 { } } } + + export interface Params$Resource$Apis$Getrest { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the API. + */ + api?: string; + /** + * The version of the API. + */ + version?: string; + } + export interface Params$Resource$Apis$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Only include APIs with the given name. + */ + name?: string; + /** + * Return only the preferred version of an API. + */ + preferred?: boolean; + } } diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index 7dc56dd1a79..eefaa817cac 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,905 +31,99 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dlp_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** - * Cloud Data Loss Prevention (DLP) API - * - * Provides methods for detection, risk analysis, and de-identification of - * privacy-sensitive fragments in text, images, and Google Cloud Platform - * storage repositories. - * - * @example - * const google = require('googleapis'); - * const dlp = google.dlp('v2'); - * - * @namespace dlp - * @type {Function} - * @version v2 - * @variation v2 - * @param {object=} options Options for Dlp - */ - export class Dlp { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - infoTypes: Resource$Infotypes; - organizations: Resource$Organizations; - projects: Resource$Projects; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.infoTypes = new Resource$Infotypes(this); - this.organizations = new Resource$Organizations(this); - this.projects = new Resource$Projects(this); - } - - getRoot() { - return this.root; - } - } - - /** - * A task to execute on the completion of a job. - */ - export interface Schema$GooglePrivacyDlpV2Action { - /** - * Publish a notification to a pubsub topic. - */ - pubSub: Schema$GooglePrivacyDlpV2PublishToPubSub; - /** - * Save resulting findings in a provided location. - */ - saveFindings: Schema$GooglePrivacyDlpV2SaveFindings; - } - /** - * Result of a risk analysis operation request. - */ - export interface Schema$GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails { - categoricalStatsResult: Schema$GooglePrivacyDlpV2CategoricalStatsResult; - kAnonymityResult: Schema$GooglePrivacyDlpV2KAnonymityResult; - kMapEstimationResult: Schema$GooglePrivacyDlpV2KMapEstimationResult; - lDiversityResult: Schema$GooglePrivacyDlpV2LDiversityResult; - numericalStatsResult: Schema$GooglePrivacyDlpV2NumericalStatsResult; - /** - * Privacy metric to compute. - */ - requestedPrivacyMetric: Schema$GooglePrivacyDlpV2PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - requestedSourceTable: Schema$GooglePrivacyDlpV2BigQueryTable; - } - /** - * An auxiliary table contains statistical information on the relative - * frequency of different quasi-identifiers values. It has one or several - * quasi-identifiers columns, and one column that indicates the relative - * frequency of each quasi-identifier tuple. If a tuple is present in the data - * but not in the auxiliary table, the corresponding relative frequency is - * assumed to be zero (and thus, the tuple is highly reidentifiable). - */ - export interface Schema$GooglePrivacyDlpV2AuxiliaryTable { - /** - * Quasi-identifier columns. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2QuasiIdField[]; - /** - * The relative frequency column must contain a floating-point number - * between 0 and 1 (inclusive). Null values are assumed to be zero. - * [required] - */ - relativeFrequency: Schema$GooglePrivacyDlpV2FieldId; - /** - * Auxiliary table location. [required] - */ - table: Schema$GooglePrivacyDlpV2BigQueryTable; - } - /** - * An auxiliary table contains statistical information on the relative - * frequency of different quasi-identifiers values. It has one or several - * quasi-identifiers columns, and one column that indicates the relative - * frequency of each quasi-identifier tuple. If a tuple is present in the data - * but not in the auxiliary table, the corresponding relative frequency is - * assumed to be zero (and thus, the tuple is highly reidentifiable). - */ - export interface Schema$GooglePrivacyDlpV2beta1AuxiliaryTable { - /** - * Quasi-identifier columns. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1QuasiIdField[]; - /** - * The relative frequency column must contain a floating-point number - * between 0 and 1 (inclusive). Null values are assumed to be zero. - * [required] - */ - relativeFrequency: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * Auxiliary table location. [required] - */ - table: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Options defining BigQuery table and row identifiers. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryOptions { - /** - * References to fields uniquely identifying rows within the table. Nested - * fields in the format, like `person.birthdate.year`, are allowed. - */ - identifyingFields: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Complete BigQuery table reference. - */ - tableReference: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Message defining the location of a BigQuery table. A table is uniquely - * identified by its project_id, dataset_id, and table_name. Within a query a - * table is often referenced with a string in the format of: - * `<project_id>:<dataset_id>.<table_id>` or - * `<project_id>.<dataset_id>.<table_id>`. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryTable { - /** - * Dataset ID of the table. - */ - datasetId: string; - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - */ - projectId: string; - /** - * Name of the table. - */ - tableId: string; - } - /** - * Compute numerical stats over an individual column, including number of - * distinct values and value count distribution. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsConfig { - /** - * Field to compute categorical stats on. All column types are supported - * except for arrays and structs. However, it may be more informative to use - * NumericalStats when the field type is supported, depending on the data. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Histogram bucket of value frequencies in the column. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of value frequencies in this bucket. The total number of values - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1ValueFrequency[]; - /** - * Lower bound on the value frequency of the values in this bucket. - */ - valueFrequencyLowerBound: string; - /** - * Upper bound on the value frequency of the values in this bucket. - */ - valueFrequencyUpperBound: string; - } - /** - * Result of the categorical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsResult { - /** - * Histogram of value frequencies in the column. - */ - valueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket[]; - } - /** - * Options defining a file or a set of files (path ending with *) within a - * Google Cloud Storage bucket. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStorageOptions { - fileSet: Schema$GooglePrivacyDlpV2beta1FileSet; - } - /** - * A location in Cloud Storage. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStoragePath { - /** - * The url, in the format of `gs://bucket/<path>`. - */ - path: string; - } - /** - * Custom information type provided by the user. Used to find domain-specific - * sensitive information configurable to the data in question. - */ - export interface Schema$GooglePrivacyDlpV2beta1CustomInfoType { - /** - * Dictionary-based custom info type. - */ - dictionary: Schema$GooglePrivacyDlpV2beta1Dictionary; - /** - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Surrogate info type. - */ - surrogateType: Schema$GooglePrivacyDlpV2beta1SurrogateType; - } - /** - * Options defining a data set within Google Cloud Datastore. - */ - export interface Schema$GooglePrivacyDlpV2beta1DatastoreOptions { - /** - * The kind to process. - */ - kind: Schema$GooglePrivacyDlpV2beta1KindExpression; - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - */ - partitionId: Schema$GooglePrivacyDlpV2beta1PartitionId; - /** - * Properties to scan. If none are specified, all properties will be scanned - * by default. - */ - projection: Schema$GooglePrivacyDlpV2beta1Projection[]; - } - /** - * Custom information type based on a dictionary of words or phrases. This can - * be used to match sensitive information specific to the data, such as a list - * of employee IDs or job titles. Dictionary words are case-insensitive and - * all characters other than letters and digits in the unicode [Basic - * Multilingual - * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) - * will be replaced with whitespace when scanning for matches, so the - * dictionary phrase "Sam Johnson" will match all three phrases - * "sam johnson", "Sam, Johnson", and "Sam - * (Johnson)". Additionally, the characters surrounding any match must be - * of a different type than the adjacent characters within the word, so - * letters must be next to non-letters and digits next to non-digits. For - * example, the dictionary word "jen" will match the first three - * letters of the text "jen123" but will return no matches for - * "jennifer". Dictionary words containing a large number of - * characters that are not letters or digits may result in unexpected findings - * because such characters are treated as whitespace. - */ - export interface Schema$GooglePrivacyDlpV2beta1Dictionary { - /** - * List of words or phrases to search for. - */ - wordList: Schema$GooglePrivacyDlpV2beta1WordList; - } - /** - * An entity in a dataset is a field or set of fields that correspond to a - * single person. For example, in medical records the `EntityId` might be a - * patient identifier, or for financial records it might be an account - * identifier. This message is used when generalizations or analysis must be - * consistent across multiple rows pertaining to the same entity. - */ - export interface Schema$GooglePrivacyDlpV2beta1EntityId { - /** - * Composite key indicating which field contains the entity identifier. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * General identifier of a data field in a storage service. - */ - export interface Schema$GooglePrivacyDlpV2beta1FieldId { - /** - * Name describing the field. - */ - columnName: string; - } - /** - * Set of files to scan. - */ - export interface Schema$GooglePrivacyDlpV2beta1FileSet { - /** - * The url, in the format `gs://<bucket>/<path>`. Trailing - * wildcard in the path is allowed. - */ - url: string; - } - /** - * Type of information detected by the API. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoType { - /** - * Name of the information type. - */ - name: string; - } - /** - * Max findings configuration per info type, per content item or long running - * operation. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeLimit { - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that are - * found but not specified in another InfoTypeLimit. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Max findings limit for the given infoType. - */ - maxFindings: number; - } - /** - * Statistics regarding a specific InfoType. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeStatistics { - /** - * Number of findings for this info type. - */ - count: string; - /** - * The type of finding this stat is for. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * Configuration description of the scanning process. When used with - * redactContent only info_types and min_likelihood are currently used. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectConfig { - /** - * Custom info types provided by the user. - */ - customInfoTypes: Schema$GooglePrivacyDlpV2beta1CustomInfoType[]; - /** - * When true, excludes type information of the findings. - */ - excludeTypes: boolean; - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see Finding.quote. - */ - includeQuote: boolean; - /** - * Configuration of findings limit given for specified info types. - */ - infoTypeLimits: Schema$GooglePrivacyDlpV2beta1InfoTypeLimit[]; - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or found in documentation. - * Empty info_types runs all enabled detectors. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta1InfoType[]; - /** - * Limits the number of findings per content item or long running operation. - */ - maxFindings: number; - /** - * Only returns findings equal or above this threshold. - */ - minLikelihood: string; - } - /** - * Metadata returned within GetOperation for an inspect request. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectOperationMetadata { - /** - * The time which this request was started. - */ - createTime: string; - infoTypeStats: Schema$GooglePrivacyDlpV2beta1InfoTypeStatistics[]; - /** - * Total size in bytes that were processed. - */ - processedBytes: string; - /** - * The inspect config used to create the Operation. - */ - requestInspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * Optional location to store findings. - */ - requestOutputConfig: Schema$GooglePrivacyDlpV2beta1OutputStorageConfig; - /** - * The storage config used to create the Operation. - */ - requestStorageConfig: Schema$GooglePrivacyDlpV2beta1StorageConfig; - /** - * Estimate of the number of bytes to process. - */ - totalEstimatedBytes: string; - } - /** - * The operational data. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectOperationResult { - /** - * The server-assigned name, which is only unique within the same service - * that originally returns it. If you use the default HTTP mapping, the - * `name` should have the format of `inspect/results/{id}`. - */ - name: string; - } - /** - * k-anonymity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityConfig { - /** - * Optional message indicating that each distinct entity_id should not - * contribute to the k-anonymity count more than once per equivalence class. - * If an entity_id appears on several rows with different quasi-identifier - * tuples, it will contribute to each count exactly once. This can lead to - * unexpected results. Consider a table where ID 1 is associated to - * quasi-identifier "foo", ID 2 to "bar", and ID 3 to - * *both* quasi-identifiers "foo" and "bar" (on separate - * rows), and where this ID is used as entity_id. Then, the anonymity value - * associated to ID 3 will be 2, even if it is the only ID to be associated - * to both values "foo" and "bar". - */ - entityId: Schema$GooglePrivacyDlpV2beta1EntityId; - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within a - * repeated field. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1FieldId[]; - } - /** - * The set of columns' values that share the same k-anonymity value. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass { - /** - * Size of the equivalence class, for example number of rows with the above - * set of values. - */ - equivalenceClassSize: string; - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Histogram bucket of equivalence class sizes in the table. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass[]; - /** - * Lower bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeLowerBound: string; - /** - * Upper bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeUpperBound: string; - } - /** - * Result of the k-anonymity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityResult { - /** - * Histogram of k-anonymity equivalence classes. - */ - equivalenceClassHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1KAnonymityHistogramBucket[]; - } - /** - * A representation of a Datastore kind. - */ - export interface Schema$GooglePrivacyDlpV2beta1KindExpression { - /** - * The name of the kind. - */ - name: string; - } - /** - * Reidentifiability metric. This corresponds to a risk model similar to what - * is called "journalist risk" in the literature, except the attack - * dataset is statistically modeled instead of being perfectly known. This can - * be done using publicly available data (like the US Census), or using a - * custom statistical model (indicated as one or several BigQuery tables), or - * by extrapolating from the distribution of values in the input dataset. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationConfig { - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - */ - auxiliaryTables: Schema$GooglePrivacyDlpV2beta1AuxiliaryTable[]; - /** - * Fields considered to be quasi-identifiers. No two columns can have the - * same tag. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1TaggedField[]; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Required if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - */ - regionCode: string; - } - /** - * A KMapEstimationHistogramBucket message with the following values: - * min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42 - * records whose quasi-identifier values correspond to 3, 4 or 5 people in the - * overlying population. An important particular case is when min_anonymity = - * max_anonymity = 1: the frequency field then corresponds to the number of - * uniquely identifiable records. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket { - /** - * Number of records within these anonymity bounds. - */ - bucketSize: string; - /** - * Sample of quasi-identifier tuple values in this bucket. The total number - * of classes returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues[]; - /** - * Always greater than or equal to min_anonymity. - */ - maxAnonymity: string; - /** - * Always positive. - */ - minAnonymity: string; - } - /** - * A tuple of values for the quasi-identifier columns. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues { - /** - * The estimated anonymity for these quasi-identifier values. - */ - estimatedAnonymity: string; - /** - * The quasi-identifier values. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Result of the reidentifiability analysis. Note that these results are an - * estimation, not exact values. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationResult { - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: {min_anonymity: 1, - * max_anonymity: 1, frequency: 17} {min_anonymity: 2, max_anonymity: 3, - * frequency: 42} {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - */ - kMapEstimationHistogram: - Schema$GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket[]; - } - /** - * l-diversity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityConfig { - /** - * Set of quasi-identifiers indicating how equivalence classes are defined - * for the l-diversity computation. When multiple fields are specified, they - * are considered a single composite key. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Sensitive field for computing the l-value. - */ - sensitiveAttribute: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * The set of columns' values that share the same l-diversity value. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityEquivalenceClass { - /** - * Size of the k-anonymity equivalence class. - */ - equivalenceClassSize: string; - /** - * Number of distinct sensitive values in this equivalence class. - */ - numDistinctSensitiveValues: string; - /** - * Quasi-identifier values defining the k-anonymity equivalence class. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - /** - * Estimated frequencies of top sensitive values. - */ - topSensitiveValues: Schema$GooglePrivacyDlpV2beta1ValueFrequency[]; - } - /** - * Histogram bucket of sensitive value frequencies in the table. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1LDiversityEquivalenceClass[]; - /** - * Lower bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyLowerBound: string; - /** - * Upper bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyUpperBound: string; - } - /** - * Result of the l-diversity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityResult { - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - */ - sensitiveValueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1LDiversityHistogramBucket[]; - } - /** - * Compute numerical stats over an individual column, including min, max, and - * quantiles. - */ - export interface Schema$GooglePrivacyDlpV2beta1NumericalStatsConfig { - /** - * Field to compute numerical stats on. Supported types are integer, float, - * date, datetime, timestamp, time. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Result of the numerical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1NumericalStatsResult { - /** - * Maximum value appearing in the column. - */ - maxValue: Schema$GooglePrivacyDlpV2beta1Value; - /** - * Minimum value appearing in the column. - */ - minValue: Schema$GooglePrivacyDlpV2beta1Value; - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - */ - quantileValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Cloud repository for storing output. - */ - export interface Schema$GooglePrivacyDlpV2beta1OutputStorageConfig { - /** - * The path to a Google Cloud Storage location to store output. The bucket - * must already exist and the Google APIs service account for DLP must have - * write permission to write to the given bucket. Results are split over - * multiple csv files with each file name matching the pattern - * "[operation_id]_[count].csv", for example - * `3094877188788974909_1.csv`. The `operation_id` matches the identifier - * for the Operation, and the `count` is a counter used for tracking the - * number of files written. The CSV file(s) contain the following columns - * regardless of storage type scanned: - id - info_type - likelihood - byte - * size of finding - quote - timestamp For Cloud Storage the next columns - * are: - file_path - start_offset For Cloud Datastore the next columns - * are: - project_id - namespace_id - path - column_name - offset For - * BigQuery the next columns are: - row_number - project_id - dataset_id - - * table_id - */ - storagePath: Schema$GooglePrivacyDlpV2beta1CloudStoragePath; - /** - * Store findings in a new table in the dataset. - */ - table: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Datastore partition ID. A partition ID identifies a grouping of entities. - * The grouping is always by project and namespace, however the namespace ID - * may be empty. A partition ID contains several dimensions: project ID and - * namespace ID. - */ - export interface Schema$GooglePrivacyDlpV2beta1PartitionId { - /** - * If not empty, the ID of the namespace to which the entities belong. - */ - namespaceId: string; - /** - * The ID of the project to which the entities belong. - */ - projectId: string; - } - /** - * Privacy metric to compute for reidentification risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta1PrivacyMetric { - categoricalStatsConfig: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsConfig; - kAnonymityConfig: Schema$GooglePrivacyDlpV2beta1KAnonymityConfig; - kMapEstimationConfig: Schema$GooglePrivacyDlpV2beta1KMapEstimationConfig; - lDiversityConfig: Schema$GooglePrivacyDlpV2beta1LDiversityConfig; - numericalStatsConfig: Schema$GooglePrivacyDlpV2beta1NumericalStatsConfig; - } - /** - * A representation of a Datastore property in a projection. - */ - export interface Schema$GooglePrivacyDlpV2beta1Projection { - /** - * The property to project. - */ - property: Schema$GooglePrivacyDlpV2beta1PropertyReference; - } - /** - * A reference to a property relative to the Datastore kind expressions. - */ - export interface Schema$GooglePrivacyDlpV2beta1PropertyReference { - /** - * The name of the property. If name includes "."s, it may be - * interpreted as a property name path. - */ - name: string; - } - /** - * A quasi-identifier column has a custom_tag, used to know which column in - * the data corresponds to which column in the statistical model. - */ - export interface Schema$GooglePrivacyDlpV2beta1QuasiIdField { - customTag: string; - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Metadata returned within the - * [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.operations/get) - * for risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata { - /** - * The time which this request was started. - */ - createTime: string; - /** - * Privacy metric to compute. - */ - requestedPrivacyMetric: Schema$GooglePrivacyDlpV2beta1PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - requestedSourceTable: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Result of a risk analysis - * [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations) request. + * Cloud Data Loss Prevention (DLP) API + * + * Provides methods for detection, risk analysis, and de-identification of + * privacy-sensitive fragments in text, images, and Google Cloud Platform + * storage repositories. + * + * @example + * const google = require('googleapis'); + * const dlp = google.dlp('v2'); + * + * @namespace dlp + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Dlp */ - export interface Schema$GooglePrivacyDlpV2beta1RiskAnalysisOperationResult { - categoricalStatsResult: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsResult; - kAnonymityResult: Schema$GooglePrivacyDlpV2beta1KAnonymityResult; - kMapEstimationResult: Schema$GooglePrivacyDlpV2beta1KMapEstimationResult; - lDiversityResult: Schema$GooglePrivacyDlpV2beta1LDiversityResult; - numericalStatsResult: Schema$GooglePrivacyDlpV2beta1NumericalStatsResult; + export class Dlp { + _options: GlobalOptions; + google: GoogleApis; + root = this; + + infoTypes: Resource$Infotypes; + organizations: Resource$Organizations; + projects: Resource$Projects; + + constructor(options: GlobalOptions, google: GoogleApis) { + this._options = options || {}; + this.google = google; + this.getRoot.bind(this); + + this.infoTypes = new Resource$Infotypes(this); + this.organizations = new Resource$Organizations(this); + this.projects = new Resource$Projects(this); + } + + getRoot() { + return this.root; + } } + /** - * Shared message indicating Cloud storage type. + * A task to execute on the completion of a job. */ - export interface Schema$GooglePrivacyDlpV2beta1StorageConfig { + export interface Schema$GooglePrivacyDlpV2Action { /** - * BigQuery options specification. + * Publish summary to Cloud Security Command Center (Alpha). */ - bigQueryOptions: Schema$GooglePrivacyDlpV2beta1BigQueryOptions; + publishSummaryToCscc?: Schema$GooglePrivacyDlpV2PublishSummaryToCscc; /** - * Google Cloud Storage options specification. + * Publish a notification to a pubsub topic. */ - cloudStorageOptions: Schema$GooglePrivacyDlpV2beta1CloudStorageOptions; + pubSub?: Schema$GooglePrivacyDlpV2PublishToPubSub; /** - * Google Cloud Datastore options specification. + * Save resulting findings in a provided location. */ - datastoreOptions: Schema$GooglePrivacyDlpV2beta1DatastoreOptions; + saveFindings?: Schema$GooglePrivacyDlpV2SaveFindings; } /** - * Message for detecting output from deidentification transformations such as - * [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/deidentify#CryptoReplaceFfxFpeConfig). - * These types of transformations are those that perform pseudonymization, - * thereby producing a "surrogate" as output. This should be used in - * conjunction with a field on the transformation such as - * `surrogate_info_type`. This custom info type does not support the use of - * `detection_rules`. - */ - export interface Schema$GooglePrivacyDlpV2beta1SurrogateType {} - /** - * A column with a semantic tag attached. + * Result of a risk analysis operation request. */ - export interface Schema$GooglePrivacyDlpV2beta1TaggedField { - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on the - * possible values of this column (below). - */ - customTag: string; - /** - * Identifies the column. [required] - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; + export interface Schema$GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails { + categoricalStatsResult?: Schema$GooglePrivacyDlpV2CategoricalStatsResult; + kAnonymityResult?: Schema$GooglePrivacyDlpV2KAnonymityResult; + kMapEstimationResult?: Schema$GooglePrivacyDlpV2KMapEstimationResult; + lDiversityResult?: Schema$GooglePrivacyDlpV2LDiversityResult; + numericalStatsResult?: Schema$GooglePrivacyDlpV2NumericalStatsResult; /** - * If no semantic tag is indicated, we infer the statistical model from the - * distribution of values in the input data + * Privacy metric to compute. */ - inferred: Schema$GoogleProtobufEmpty; + requestedPrivacyMetric?: Schema$GooglePrivacyDlpV2PrivacyMetric; /** - * A column can be tagged with a InfoType to use the relevant public dataset - * as a statistical model of population, if available. We currently support - * US ZIP codes, region codes, ages and genders. + * Input dataset to compute metrics over. */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * Set of primitive values supported by the system. Note that for the purposes - * of inspection or transformation, the number of bytes considered to comprise - * a 'Value' is based on its representation as a UTF-8 encoded string. - * For example, if 'integer_value' is set to 123456789, the number of - * bytes would be counted as 9, even though an int64 only holds up to 8 bytes - * of data. - */ - export interface Schema$GooglePrivacyDlpV2beta1Value { - booleanValue: boolean; - dateValue: Schema$GoogleTypeDate; - floatValue: number; - integerValue: string; - stringValue: string; - timestampValue: string; - timeValue: Schema$GoogleTypeTimeOfDay; + requestedSourceTable?: Schema$GooglePrivacyDlpV2BigQueryTable; } - /** - * A value of a field, including its frequency. - */ - export interface Schema$GooglePrivacyDlpV2beta1ValueFrequency { + export interface Schema$GooglePrivacyDlpV2AuxiliaryTable { /** - * How many times the value is contained in the field. + * Quasi-identifier columns. [required] */ - count: string; + quasiIds?: Schema$GooglePrivacyDlpV2QuasiIdField[]; /** - * A value contained in the field in question. + * The relative frequency column must contain a floating-point number + * between 0 and 1 (inclusive). Null values are assumed to be zero. + * [required] */ - value: Schema$GooglePrivacyDlpV2beta1Value; - } - /** - * Message defining a list of words or phrases to search for in the data. - */ - export interface Schema$GooglePrivacyDlpV2beta1WordList { + relativeFrequency?: Schema$GooglePrivacyDlpV2FieldId; /** - * Words or phrases defining the dictionary. The dictionary must contain at - * least one phrase and every phrase must contain at least 2 characters that - * are letters or digits. [required] + * Auxiliary table location. [required] */ - words: string[]; + table?: Schema$GooglePrivacyDlpV2BigQueryTable; } /** * Row key for identifying a record in BigQuery table. @@ -938,11 +133,11 @@ export namespace dlp_v2 { * Absolute number of the row from the beginning of the table at the time of * scanning. */ - rowNumber: string; + rowNumber?: string; /** * Complete BigQuery table reference. */ - tableReference: Schema$GooglePrivacyDlpV2BigQueryTable; + tableReference?: Schema$GooglePrivacyDlpV2BigQueryTable; } /** * Options defining BigQuery table and row identifiers. @@ -952,17 +147,17 @@ export namespace dlp_v2 { * References to fields uniquely identifying rows within the table. Nested * fields in the format, like `person.birthdate.year`, are allowed. */ - identifyingFields: Schema$GooglePrivacyDlpV2FieldId[]; + identifyingFields?: Schema$GooglePrivacyDlpV2FieldId[]; /** * Max number of rows to scan. If the table has more rows than this value, * the rest of the rows are omitted. If not set, or if set to 0, all rows * will be scanned. Cannot be used in conjunction with TimespanConfig. */ - rowsLimit: string; + rowsLimit?: string; /** * Complete BigQuery table reference. */ - tableReference: Schema$GooglePrivacyDlpV2BigQueryTable; + tableReference?: Schema$GooglePrivacyDlpV2BigQueryTable; } /** * Message defining the location of a BigQuery table. A table is uniquely @@ -975,16 +170,16 @@ export namespace dlp_v2 { /** * Dataset ID of the table. */ - datasetId: string; + datasetId?: string; /** * The Google Cloud Platform project ID of the project containing the table. * If omitted, project ID is inferred from the API call. */ - projectId: string; + projectId?: string; /** * Name of the table. */ - tableId: string; + tableId?: string; } /** * Bounding box encompassing detected text within an image. @@ -993,19 +188,19 @@ export namespace dlp_v2 { /** * Height of the bounding box in pixels. */ - height: number; + height?: number; /** * Left coordinate of the bounding box. (0,0) is upper left. */ - left: number; + left?: number; /** * Top coordinate of the bounding box. (0,0) is upper left. */ - top: number; + top?: number; /** * Width of the bounding box in pixels. */ - width: number; + width?: number; } /** * Bucket is represented as a range, along with replacement values. @@ -1014,17 +209,17 @@ export namespace dlp_v2 { /** * Upper bound of the range, exclusive; type must match min. */ - max: Schema$GooglePrivacyDlpV2Value; + max?: Schema$GooglePrivacyDlpV2Value; /** * Lower bound of the range, inclusive. Type should be the same as max if * used. */ - min: Schema$GooglePrivacyDlpV2Value; + min?: Schema$GooglePrivacyDlpV2Value; /** * Replacement value for this bucket. If not provided the default behavior * will be to hyphenate the min-max range. */ - replacementValue: Schema$GooglePrivacyDlpV2Value; + replacementValue?: Schema$GooglePrivacyDlpV2Value; } /** * Generalization function that buckets values based on ranges. The ranges and @@ -1039,7 +234,7 @@ export namespace dlp_v2 { /** * Set of buckets. Ranges must be non-overlapping. */ - buckets: Schema$GooglePrivacyDlpV2Bucket[]; + buckets?: Schema$GooglePrivacyDlpV2Bucket[]; } /** * Container for bytes to inspect or redact. @@ -1048,11 +243,11 @@ export namespace dlp_v2 { /** * Content data to inspect or redact. */ - data: string; + data?: string; /** * The type of data stored in the bytes string. Default will be TEXT_UTF8. */ - type: string; + type?: string; } /** * The request message for canceling a DLP job. @@ -1068,30 +263,30 @@ export namespace dlp_v2 { * except for arrays and structs. However, it may be more informative to use * NumericalStats when the field type is supported, depending on the data. */ - field: Schema$GooglePrivacyDlpV2FieldId; + field?: Schema$GooglePrivacyDlpV2FieldId; } export interface Schema$GooglePrivacyDlpV2CategoricalStatsHistogramBucket { /** * Total number of values in this bucket. */ - bucketSize: string; + bucketSize?: string; /** * Total number of distinct values in this bucket. */ - bucketValueCount: string; + bucketValueCount?: string; /** * Sample of value frequencies in this bucket. The total number of values * returned per bucket is capped at 20. */ - bucketValues: Schema$GooglePrivacyDlpV2ValueFrequency[]; + bucketValues?: Schema$GooglePrivacyDlpV2ValueFrequency[]; /** * Lower bound on the value frequency of the values in this bucket. */ - valueFrequencyLowerBound: string; + valueFrequencyLowerBound?: string; /** * Upper bound on the value frequency of the values in this bucket. */ - valueFrequencyUpperBound: string; + valueFrequencyUpperBound?: string; } /** * Result of the categorical stats computation. @@ -1100,7 +295,7 @@ export namespace dlp_v2 { /** * Histogram of value frequencies in the column. */ - valueFrequencyHistogramBuckets: + valueFrequencyHistogramBuckets?: Schema$GooglePrivacyDlpV2CategoricalStatsHistogramBucket[]; } /** @@ -1117,7 +312,7 @@ export namespace dlp_v2 { * For example, if your string is 555-555-5555 and you ask us to skip `-` * and mask 5 chars with * we would produce ***-*55-5555. */ - charactersToIgnore: Schema$GooglePrivacyDlpV2CharsToIgnore[]; + charactersToIgnore?: Schema$GooglePrivacyDlpV2CharsToIgnore[]; /** * Character to mask the sensitive values&mdash;for example, * "*" for an alphabetic string such as name, or "0" for @@ -1125,12 +320,12 @@ export namespace dlp_v2 { * length 1. If not supplied, we will default to "*" for strings, * 0 for digits. */ - maskingCharacter: string; + maskingCharacter?: string; /** * Number of characters to mask. If not set, all matching chars will be * masked. Skipped characters do not count towards this tally. */ - numberToMask: number; + numberToMask?: number; /** * Mask characters in reverse order. For example, if `masking_character` is * '0', number_to_mask is 14, and `reverse_order` is false, then @@ -1138,15 +333,15 @@ export namespace dlp_v2 { * '*', `number_to_mask` is 3, and `reverse_order` is true, then * 12345 -> 12*** */ - reverseOrder: boolean; + reverseOrder?: boolean; } /** * Characters to skip when doing deidentification of a value. These will be * left alone and skipped. */ export interface Schema$GooglePrivacyDlpV2CharsToIgnore { - charactersToSkip: string; - commonCharactersToIgnore: string; + charactersToSkip?: string; + commonCharactersToIgnore?: string; } /** * Options defining a file or a set of files (path ending with *) within a @@ -1157,13 +352,23 @@ export namespace dlp_v2 { * Max number of bytes to scan from a file. If a scanned file's size is * bigger than this value then the rest of the bytes are omitted. */ - bytesLimitPerFile: string; - fileSet: Schema$GooglePrivacyDlpV2FileSet; + bytesLimitPerFile?: string; + fileSet?: Schema$GooglePrivacyDlpV2FileSet; /** * List of file type groups to include in the scan. If empty, all files are * scanned and available data format processors are applied. */ - fileTypes: string[]; + fileTypes?: string[]; + } + /** + * Message representing a path in Cloud Storage. + */ + export interface Schema$GooglePrivacyDlpV2CloudStoragePath { + /** + * A url representing a file or path (no wildcards) in Cloud Storage. + * Example: gs://[BUCKET_NAME]/dictionary.txt + */ + path?: string; } /** * Represents a color in the RGB color space. @@ -1172,15 +377,15 @@ export namespace dlp_v2 { /** * The amount of blue in the color as a value in the interval [0, 1]. */ - blue: number; + blue?: number; /** * The amount of green in the color as a value in the interval [0, 1]. */ - green: number; + green?: number; /** * The amount of red in the color as a value in the interval [0, 1]. */ - red: number; + red?: number; } /** * The field type of `value` and `field` do not need to match to be considered @@ -1198,21 +403,21 @@ export namespace dlp_v2 { /** * Field within the record this condition is evaluated against. [required] */ - field: Schema$GooglePrivacyDlpV2FieldId; + field?: Schema$GooglePrivacyDlpV2FieldId; /** * Operator used to compare the field or infoType to the value. [required] */ - operator: string; + operator?: string; /** * Value to compare against. [Required, except for `EXISTS` tests.] */ - value: Schema$GooglePrivacyDlpV2Value; + value?: Schema$GooglePrivacyDlpV2Value; } /** * A collection of conditions. */ export interface Schema$GooglePrivacyDlpV2Conditions { - conditions: Schema$GooglePrivacyDlpV2Condition[]; + conditions?: Schema$GooglePrivacyDlpV2Condition[]; } /** * Container structure for the content to inspect. @@ -1221,15 +426,15 @@ export namespace dlp_v2 { /** * Content data to inspect or redact. Replaces `type` and `data`. */ - byteItem: Schema$GooglePrivacyDlpV2ByteContentItem; + byteItem?: Schema$GooglePrivacyDlpV2ByteContentItem; /** * Structured content for inspection. */ - table: Schema$GooglePrivacyDlpV2Table; + table?: Schema$GooglePrivacyDlpV2Table; /** * String data to inspect or redact. */ - value: string; + value?: string; } /** * Findings container location data. @@ -1241,31 +446,31 @@ export namespace dlp_v2 { * embedded object has no string identifier (for an example an image * contained within a document). */ - containerName: string; + containerName?: string; /** * Findings container modification timestamp, if applicable. For Google * Cloud Storage contains last file modification timestamp. For BigQuery * table contains last_modified_time property. For Datastore - not * populated. */ - containerTimestamp: string; + containerTimestamp?: string; /** * Findings container version, if available ("generation" for * Google Cloud Storage). */ - containerVersion: string; + containerVersion?: string; /** * Location data for document files. */ - documentLocation: Schema$GooglePrivacyDlpV2DocumentLocation; + documentLocation?: Schema$GooglePrivacyDlpV2DocumentLocation; /** * Location within an image's pixels. */ - imageLocation: Schema$GooglePrivacyDlpV2ImageLocation; + imageLocation?: Schema$GooglePrivacyDlpV2ImageLocation; /** * Location within a row or record of a database table. */ - recordLocation: Schema$GooglePrivacyDlpV2RecordLocation; + recordLocation?: Schema$GooglePrivacyDlpV2RecordLocation; } /** * Request message for CreateDeidentifyTemplate. @@ -1274,29 +479,29 @@ export namespace dlp_v2 { /** * The DeidentifyTemplate to create. */ - deidentifyTemplate: Schema$GooglePrivacyDlpV2DeidentifyTemplate; + deidentifyTemplate?: Schema$GooglePrivacyDlpV2DeidentifyTemplate; /** * The template id can contain uppercase and lowercase letters, numbers, and * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. * The maximum length is 100 characters. Can be empty to allow the system to * generate one. */ - templateId: string; + templateId?: string; } /** * Request message for CreateDlpJobRequest. Used to initiate long running jobs * such as calculating risk metrics or inspecting Google Cloud Storage. */ export interface Schema$GooglePrivacyDlpV2CreateDlpJobRequest { - inspectJob: Schema$GooglePrivacyDlpV2InspectJobConfig; + inspectJob?: Schema$GooglePrivacyDlpV2InspectJobConfig; /** * The job id can contain uppercase and lowercase letters, numbers, and * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. * The maximum length is 100 characters. Can be empty to allow the system to * generate one. */ - jobId: string; - riskJob: Schema$GooglePrivacyDlpV2RiskAnalysisJobConfig; + jobId?: string; + riskJob?: Schema$GooglePrivacyDlpV2RiskAnalysisJobConfig; } /** * Request message for CreateInspectTemplate. @@ -1305,14 +510,14 @@ export namespace dlp_v2 { /** * The InspectTemplate to create. */ - inspectTemplate: Schema$GooglePrivacyDlpV2InspectTemplate; + inspectTemplate?: Schema$GooglePrivacyDlpV2InspectTemplate; /** * The template id can contain uppercase and lowercase letters, numbers, and * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. * The maximum length is 100 characters. Can be empty to allow the system to * generate one. */ - templateId: string; + templateId?: string; } /** * Request message for CreateJobTrigger. @@ -1321,14 +526,14 @@ export namespace dlp_v2 { /** * The JobTrigger to create. */ - jobTrigger: Schema$GooglePrivacyDlpV2JobTrigger; + jobTrigger?: Schema$GooglePrivacyDlpV2JobTrigger; /** * The trigger id can contain uppercase and lowercase letters, numbers, and * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. * The maximum length is 100 characters. Can be empty to allow the system to * generate one. */ - triggerId: string; + triggerId?: string; } /** * Pseudonymization method that generates surrogates via cryptographic @@ -1341,7 +546,7 @@ export namespace dlp_v2 { /** * The key used by the hash function. */ - cryptoKey: Schema$GooglePrivacyDlpV2CryptoKey; + cryptoKey?: Schema$GooglePrivacyDlpV2CryptoKey; } /** * This is a data encryption key (DEK) (as opposed to a key encryption key @@ -1350,9 +555,9 @@ export namespace dlp_v2 { * cannot unwrap the data crypto key. */ export interface Schema$GooglePrivacyDlpV2CryptoKey { - kmsWrapped: Schema$GooglePrivacyDlpV2KmsWrappedCryptoKey; - transient: Schema$GooglePrivacyDlpV2TransientCryptoKey; - unwrapped: Schema$GooglePrivacyDlpV2UnwrappedCryptoKey; + kmsWrapped?: Schema$GooglePrivacyDlpV2KmsWrappedCryptoKey; + transient?: Schema$GooglePrivacyDlpV2TransientCryptoKey; + unwrapped?: Schema$GooglePrivacyDlpV2UnwrappedCryptoKey; } /** * Replaces an identifier with a surrogate using FPE with the FFX mode of @@ -1365,7 +570,7 @@ export namespace dlp_v2 { * [Pseudonymization](/dlp/docs/pseudonymization) for example usage. */ export interface Schema$GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig { - commonAlphabet: string; + commonAlphabet?: string; /** * The 'tweak', a context may be used for higher security since the * same identifier in two different contexts won't be given the same @@ -1380,11 +585,11 @@ export namespace dlp_v2 { * followed by a single byte of value 1 - a string is encoded in UTF-8 * format followed by a single byte of value å 2 */ - context: Schema$GooglePrivacyDlpV2FieldId; + context?: Schema$GooglePrivacyDlpV2FieldId; /** * The key used by the encryption algorithm. [required] */ - cryptoKey: Schema$GooglePrivacyDlpV2CryptoKey; + cryptoKey?: Schema$GooglePrivacyDlpV2CryptoKey; /** * This is supported by mapping these to the alphanumeric characters that * the FFX mode natively supports. This happens before/after @@ -1392,11 +597,11 @@ export namespace dlp_v2 { * Number of characters must be in the range [2, 62]. This must be encoded * as ASCII. The order of characters does not matter. */ - customAlphabet: string; + customAlphabet?: string; /** * The native way to select the alphabet. Must be in the range [2, 62]. */ - radix: number; + radix?: number; /** * The custom infoType to annotate the surrogate with. This annotation will * be applied to the surrogate by prefixing it with the name of the custom @@ -1419,7 +624,7 @@ export namespace dlp_v2 { * your data is entered from a regular ASCII keyboard, the symbol with the * hex code point 29DD might be used like so: ⧝MY_TOKEN_TYPE */ - surrogateInfoType: Schema$GooglePrivacyDlpV2InfoType; + surrogateInfoType?: Schema$GooglePrivacyDlpV2InfoType; } /** * Custom information type provided by the user. Used to find domain-specific @@ -1431,30 +636,30 @@ export namespace dlp_v2 { * Rules are applied in order that they are specified. Not supported for the * `surrogate_type` custom info type. */ - detectionRules: Schema$GooglePrivacyDlpV2DetectionRule[]; + detectionRules?: Schema$GooglePrivacyDlpV2DetectionRule[]; /** * Dictionary-based custom info type. */ - dictionary: Schema$GooglePrivacyDlpV2Dictionary; + dictionary?: Schema$GooglePrivacyDlpV2Dictionary; /** * Info type configuration. All custom info types must have configurations * that do not conflict with built-in info types or other custom info types. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; /** * Likelihood to return for this custom info type. This base value can be * altered by a detection rule if the finding meets the criteria specified * by the rule. Defaults to `VERY_LIKELY` if not specified. */ - likelihood: string; + likelihood?: string; /** * Regex-based custom info type. */ - regex: Schema$GooglePrivacyDlpV2Regex; + regex?: Schema$GooglePrivacyDlpV2Regex; /** * Surrogate info type. */ - surrogateType: Schema$GooglePrivacyDlpV2SurrogateType; + surrogateType?: Schema$GooglePrivacyDlpV2SurrogateType; } /** * Record key for a finding in Cloud Datastore. @@ -1463,7 +668,7 @@ export namespace dlp_v2 { /** * Datastore entity key. */ - entityKey: Schema$GooglePrivacyDlpV2Key; + entityKey?: Schema$GooglePrivacyDlpV2Key; } /** * Options defining a data set within Google Cloud Datastore. @@ -1472,12 +677,12 @@ export namespace dlp_v2 { /** * The kind to process. */ - kind: Schema$GooglePrivacyDlpV2KindExpression; + kind?: Schema$GooglePrivacyDlpV2KindExpression; /** * A partition ID identifies a grouping of entities. The grouping is always * by project and namespace, however the namespace ID may be empty. */ - partitionId: Schema$GooglePrivacyDlpV2PartitionId; + partitionId?: Schema$GooglePrivacyDlpV2PartitionId; } /** * Shifts dates by random number of days, with option to be consistent for the @@ -1489,24 +694,24 @@ export namespace dlp_v2 { * If set, must also set method. If set, shift will be consistent for the * given context. */ - context: Schema$GooglePrivacyDlpV2FieldId; + context?: Schema$GooglePrivacyDlpV2FieldId; /** * Causes the shift to be computed based on this key and the context. This * results in the same shift for the same context and crypto_key. */ - cryptoKey: Schema$GooglePrivacyDlpV2CryptoKey; + cryptoKey?: Schema$GooglePrivacyDlpV2CryptoKey; /** * For example, -5 means shift date to at most 5 days back in the past. * [Required] */ - lowerBoundDays: number; + lowerBoundDays?: number; /** * Range of shift in days. Actual shift will be selected at random within * this range (inclusive ends). Negative means shift to earlier in time. * Must not be more than 365250 days (1000 years) each direction. For * example, 3 means shift date to at most 3 days into the future. [Required] */ - upperBoundDays: number; + upperBoundDays?: number; } /** * Message for a date time object. @@ -1516,10 +721,10 @@ export namespace dlp_v2 { * One or more of the following must be set. All fields are optional, but * when set must be valid date or time values. */ - date: Schema$GoogleTypeDate; - dayOfWeek: string; - time: Schema$GoogleTypeTimeOfDay; - timeZone: Schema$GooglePrivacyDlpV2TimeZone; + date?: Schema$GoogleTypeDate; + dayOfWeek?: string; + time?: Schema$GoogleTypeTimeOfDay; + timeZone?: Schema$GooglePrivacyDlpV2TimeZone; } /** * The configuration that controls how the data will change. @@ -1529,13 +734,13 @@ export namespace dlp_v2 { * Treat the dataset as free-form text and apply the same free text * transformation everywhere. */ - infoTypeTransformations: Schema$GooglePrivacyDlpV2InfoTypeTransformations; + infoTypeTransformations?: Schema$GooglePrivacyDlpV2InfoTypeTransformations; /** * Treat the dataset as structured. Transformations can be applied to * specific locations within structured datasets, such as transforming a * column within a table. */ - recordTransformations: Schema$GooglePrivacyDlpV2RecordTransformations; + recordTransformations?: Schema$GooglePrivacyDlpV2RecordTransformations; } /** * Request to de-identify a list of items. @@ -1546,7 +751,7 @@ export namespace dlp_v2 { * specified here will override the template referenced by the * deidentify_template_name argument. */ - deidentifyConfig: Schema$GooglePrivacyDlpV2DeidentifyConfig; + deidentifyConfig?: Schema$GooglePrivacyDlpV2DeidentifyConfig; /** * Optional template to use. Any configuration directly specified in * deidentify_config will override those set in the template. Singular @@ -1554,12 +759,12 @@ export namespace dlp_v2 { * fields in the template. Repeated fields are appended. Singular * sub-messages and groups are recursively merged. */ - deidentifyTemplateName: string; + deidentifyTemplateName?: string; /** * Configuration for the inspector. Items specified here will override the * template referenced by the inspect_template_name argument. */ - inspectConfig: Schema$GooglePrivacyDlpV2InspectConfig; + inspectConfig?: Schema$GooglePrivacyDlpV2InspectConfig; /** * Optional template to use. Any configuration directly specified in * inspect_config will override those set in the template. Singular fields @@ -1567,11 +772,11 @@ export namespace dlp_v2 { * the template. Repeated fields are appended. Singular sub-messages and * groups are recursively merged. */ - inspectTemplateName: string; + inspectTemplateName?: string; /** * The item to de-identify. Will be treated as text. */ - item: Schema$GooglePrivacyDlpV2ContentItem; + item?: Schema$GooglePrivacyDlpV2ContentItem; } /** * Results of de-identifying a ContentItem. @@ -1580,11 +785,11 @@ export namespace dlp_v2 { /** * The de-identified item. */ - item: Schema$GooglePrivacyDlpV2ContentItem; + item?: Schema$GooglePrivacyDlpV2ContentItem; /** * An overview of the changes that were made on the `item`. */ - overview: Schema$GooglePrivacyDlpV2TransformationOverview; + overview?: Schema$GooglePrivacyDlpV2TransformationOverview; } /** * The DeidentifyTemplates contains instructions on how to deidentify content. @@ -1593,29 +798,29 @@ export namespace dlp_v2 { /** * The creation timestamp of a inspectTemplate, output only field. */ - createTime: string; + createTime?: string; /** * ///////////// // The core content of the template // /////////////// */ - deidentifyConfig: Schema$GooglePrivacyDlpV2DeidentifyConfig; + deidentifyConfig?: Schema$GooglePrivacyDlpV2DeidentifyConfig; /** * Short description (max 256 chars). */ - description: string; + description?: string; /** * Display name (max 256 chars). */ - displayName: string; + displayName?: string; /** * The template name. Output only. The template will have one of the * following formats: `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` * OR `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` */ - name: string; + name?: string; /** * The last update timestamp of a inspectTemplate, output only field. */ - updateTime: string; + updateTime?: string; } /** * Rule for modifying a custom info type to alter behavior under certain @@ -1626,7 +831,7 @@ export namespace dlp_v2 { /** * Hotword-based detection rule. */ - hotwordRule: Schema$GooglePrivacyDlpV2HotwordRule; + hotwordRule?: Schema$GooglePrivacyDlpV2HotwordRule; } /** * Custom information type based on a dictionary of words or phrases. This can @@ -1648,10 +853,15 @@ export namespace dlp_v2 { * because such characters are treated as whitespace. */ export interface Schema$GooglePrivacyDlpV2Dictionary { + /** + * Newline-delimited file of words in Cloud Storage. Only a single file is + * accepted. + */ + cloudStoragePath?: Schema$GooglePrivacyDlpV2CloudStoragePath; /** * List of words or phrases to search for. */ - wordList: Schema$GooglePrivacyDlpV2WordList; + wordList?: Schema$GooglePrivacyDlpV2WordList; } /** * Combines all of the information about a DLP job. @@ -1660,44 +870,44 @@ export namespace dlp_v2 { /** * Time when the job was created. */ - createTime: string; + createTime?: string; /** * Time when the job finished. */ - endTime: string; + endTime?: string; /** * A stream of errors encountered running the job. */ - errors: Schema$GooglePrivacyDlpV2Error[]; + errors?: Schema$GooglePrivacyDlpV2Error[]; /** * Results from inspecting a data source. */ - inspectDetails: Schema$GooglePrivacyDlpV2InspectDataSourceDetails; + inspectDetails?: Schema$GooglePrivacyDlpV2InspectDataSourceDetails; /** * If created by a job trigger, the resource name of the trigger that * instantiated the job. */ - jobTriggerName: string; + jobTriggerName?: string; /** * The server-assigned name. */ - name: string; + name?: string; /** * Results from analyzing risk of a data source. */ - riskDetails: Schema$GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails; + riskDetails?: Schema$GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails; /** * Time when the job started. */ - startTime: string; + startTime?: string; /** * State of a job. */ - state: string; + state?: string; /** * The type of job. */ - type: string; + type?: string; } /** * Location of a finding within a document. @@ -1707,29 +917,42 @@ export namespace dlp_v2 { * Offset of the line, from the beginning of the file, where the finding is * located. */ - fileOffset: string; + fileOffset?: string; + } + /** + * An entity in a dataset is a field or set of fields that correspond to a + * single person. For example, in medical records the `EntityId` might be a + * patient identifier, or for financial records it might be an account + * identifier. This message is used when generalizations or analysis must take + * into account that multiple rows correspond to the same entity. + */ + export interface Schema$GooglePrivacyDlpV2EntityId { + /** + * Composite key indicating which field contains the entity identifier. + */ + field?: Schema$GooglePrivacyDlpV2FieldId; } /** * Details information about an error encountered during job execution or the * results of an unsuccessful activation of the JobTrigger. Output only field. */ export interface Schema$GooglePrivacyDlpV2Error { - details: Schema$GoogleRpcStatus; + details?: Schema$GoogleRpcStatus; /** * The times the error occurred. */ - timestamps: string[]; + timestamps?: string[]; } /** * An expression, consisting or an operator and conditions. */ export interface Schema$GooglePrivacyDlpV2Expressions { - conditions: Schema$GooglePrivacyDlpV2Conditions; + conditions?: Schema$GooglePrivacyDlpV2Conditions; /** * The operator to apply to the result of conditions. Default and currently * only supported value is `AND`. */ - logicalOperator: string; + logicalOperator?: string; } /** * General identifier of a data field in a storage service. @@ -1738,7 +961,7 @@ export namespace dlp_v2 { /** * Name describing the field. */ - name: string; + name?: string; } /** * The transformation to apply to the field. @@ -1752,20 +975,20 @@ export namespace dlp_v2 { * zip code column for the same record is within a specific range. - Redact * a field if the date of birth field is greater than 85. */ - condition: Schema$GooglePrivacyDlpV2RecordCondition; + condition?: Schema$GooglePrivacyDlpV2RecordCondition; /** * Input field(s) to apply the transformation to. [required] */ - fields: Schema$GooglePrivacyDlpV2FieldId[]; + fields?: Schema$GooglePrivacyDlpV2FieldId[]; /** * Treat the contents of the field as free text, and selectively transform * content that matches an `InfoType`. */ - infoTypeTransformations: Schema$GooglePrivacyDlpV2InfoTypeTransformations; + infoTypeTransformations?: Schema$GooglePrivacyDlpV2InfoTypeTransformations; /** * Apply the transformation to the entire field. */ - primitiveTransformation: Schema$GooglePrivacyDlpV2PrimitiveTransformation; + primitiveTransformation?: Schema$GooglePrivacyDlpV2PrimitiveTransformation; } /** * Set of files to scan. @@ -1775,7 +998,7 @@ export namespace dlp_v2 { * The url, in the format `gs://<bucket>/<path>`. Trailing * wildcard in the path is allowed. */ - url: string; + url?: string; } /** * Represents a piece of potentially sensitive content. @@ -1784,52 +1007,52 @@ export namespace dlp_v2 { /** * Timestamp when finding was detected. */ - createTime: string; + createTime?: string; /** * The type of content that might have been found. Provided if requested by * the `InspectConfig`. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; /** * Estimate of how likely it is that the `info_type` is correct. */ - likelihood: string; + likelihood?: string; /** * Where the content was found. */ - location: Schema$GooglePrivacyDlpV2Location; + location?: Schema$GooglePrivacyDlpV2Location; /** * The content that was found. Even if the content is not textual, it may be * converted to a textual representation here. Provided if requested by the * `InspectConfig` and the finding is less than or equal to 4096 bytes long. * If the finding exceeds 4096 bytes in length, the quote may be omitted. */ - quote: string; + quote?: string; /** * Contains data parsed from quotes. Only populated if include_quote was set * to true and a supported infoType was requested. Currently supported * infoTypes: DATE, DATE_OF_BIRTH and TIME. */ - quoteInfo: Schema$GooglePrivacyDlpV2QuoteInfo; + quoteInfo?: Schema$GooglePrivacyDlpV2QuoteInfo; } export interface Schema$GooglePrivacyDlpV2FindingLimits { /** * Configuration of findings limit given for specified infoTypes. */ - maxFindingsPerInfoType: Schema$GooglePrivacyDlpV2InfoTypeLimit[]; + maxFindingsPerInfoType?: Schema$GooglePrivacyDlpV2InfoTypeLimit[]; /** * Max number of findings that will be returned for each item scanned. When * set within `InspectDataSourceRequest`, the maximum returned is 1000 * regardless if this is set higher. When set within * `InspectContentRequest`, this field is ignored. */ - maxFindingsPerItem: number; + maxFindingsPerItem?: number; /** * Max number of findings that will be returned per request/job. When set * within `InspectContentRequest`, the maximum returned is 1000 regardless * if this is set higher. */ - maxFindingsPerRequest: number; + maxFindingsPerRequest?: number; } /** * Buckets values based on fixed size ranges. The Bucketing transformation can @@ -1850,21 +1073,21 @@ export namespace dlp_v2 { * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required]. */ - bucketSize: number; + bucketSize?: number; /** * Lower bound value of buckets. All values less than `lower_bound` are * grouped together into a single bucket; for example if `lower_bound` = 10, * then all values less than 10 are replaced with the value “-10”. * [Required]. */ - lowerBound: Schema$GooglePrivacyDlpV2Value; + lowerBound?: Schema$GooglePrivacyDlpV2Value; /** * Upper bound value of buckets. All values greater than upper_bound are * grouped together into a single bucket; for example if `upper_bound` = 89, * then all values greater than 89 are replaced with the value “89+”. * [Required]. */ - upperBound: Schema$GooglePrivacyDlpV2Value; + upperBound?: Schema$GooglePrivacyDlpV2Value; } /** * Detection rule that adjusts the likelihood of findings within a certain @@ -1874,11 +1097,11 @@ export namespace dlp_v2 { /** * Regex pattern defining what qualifies as a hotword. */ - hotwordRegex: Schema$GooglePrivacyDlpV2Regex; + hotwordRegex?: Schema$GooglePrivacyDlpV2Regex; /** * Likelihood adjustment to apply to all matching findings. */ - likelihoodAdjustment: Schema$GooglePrivacyDlpV2LikelihoodAdjustment; + likelihoodAdjustment?: Schema$GooglePrivacyDlpV2LikelihoodAdjustment; /** * Proximity of the finding within which the entire hotword must reside. The * total length of the window cannot exceed 1000 characters. Note that the @@ -1889,7 +1112,7 @@ export namespace dlp_v2 { * of a company office using the hotword regex "\(xxx\)", where * "xxx" is the area code in question. */ - proximity: Schema$GooglePrivacyDlpV2Proximity; + proximity?: Schema$GooglePrivacyDlpV2Proximity; } /** * Location of the finding within an image. @@ -1899,7 +1122,7 @@ export namespace dlp_v2 { * Bounding boxes locating the pixels within the image containing the * finding. */ - boundingBoxes: Schema$GooglePrivacyDlpV2BoundingBox[]; + boundingBoxes?: Schema$GooglePrivacyDlpV2BoundingBox[]; } /** * Configuration for determining how redaction of images should occur. @@ -1911,17 +1134,17 @@ export namespace dlp_v2 { * matches against all info_types that are found, but not specified in * another ImageRedactionConfig. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; /** * If true, all text found in the image, regardless whether it matches an * info_type, is redacted. */ - redactAllText: boolean; + redactAllText?: boolean; /** * The color to use when redacting content from an image. If not specified, * the default is black. */ - redactionColor: Schema$GooglePrivacyDlpV2Color; + redactionColor?: Schema$GooglePrivacyDlpV2Color; } /** * Type of information detected by the API. @@ -1930,7 +1153,7 @@ export namespace dlp_v2 { /** * Name of the information type. */ - name: string; + name?: string; } /** * InfoType description. @@ -1939,15 +1162,15 @@ export namespace dlp_v2 { /** * Human readable form of the infoType name. */ - displayName: string; + displayName?: string; /** * Internal name of the infoType. */ - name: string; + name?: string; /** * Which parts of the API supports this InfoType. */ - supportedBy: string[]; + supportedBy?: string[]; } /** * Max findings configuration per infoType, per content item or long running @@ -1960,11 +1183,11 @@ export namespace dlp_v2 { * info_type, the DLP API applies the limit against all info_types that are * found but not specified in another InfoTypeLimit. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; /** * Max findings limit for the given infoType. */ - maxFindings: number; + maxFindings?: number; } /** * Statistics regarding a specific InfoType. @@ -1973,11 +1196,11 @@ export namespace dlp_v2 { /** * Number of findings for this infoType. */ - count: string; + count?: string; /** * The type of finding this stat is for. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; } /** * A transformation to apply to text that is identified as a specific @@ -1988,11 +1211,11 @@ export namespace dlp_v2 { * InfoTypes to apply the transformation to. Empty list will match all * available infoTypes for this transformation. */ - infoTypes: Schema$GooglePrivacyDlpV2InfoType[]; + infoTypes?: Schema$GooglePrivacyDlpV2InfoType[]; /** * Primitive transformation to apply to the infoType. [required] */ - primitiveTransformation: Schema$GooglePrivacyDlpV2PrimitiveTransformation; + primitiveTransformation?: Schema$GooglePrivacyDlpV2PrimitiveTransformation; } /** * A type of transformation that will scan unstructured text and apply various @@ -2004,7 +1227,7 @@ export namespace dlp_v2 { * Transformation for each infoType. Cannot specify more than one for a * given infoType. [required] */ - transformations: Schema$GooglePrivacyDlpV2InfoTypeTransformation[]; + transformations?: Schema$GooglePrivacyDlpV2InfoTypeTransformation[]; } /** * Configuration description of the scanning process. When used with @@ -2015,31 +1238,31 @@ export namespace dlp_v2 { * List of options defining data content to scan. If empty, text, images, * and other content will be included. */ - contentOptions: string[]; + contentOptions?: string[]; /** * Custom infoTypes provided by the user. */ - customInfoTypes: Schema$GooglePrivacyDlpV2CustomInfoType[]; + customInfoTypes?: Schema$GooglePrivacyDlpV2CustomInfoType[]; /** * When true, excludes type information of the findings. */ - excludeInfoTypes: boolean; + excludeInfoTypes?: boolean; /** * When true, a contextual quote from the data that triggered a finding is * included in the response; see Finding.quote. */ - includeQuote: boolean; + includeQuote?: boolean; /** * Restricts what info_types to look for. The values must correspond to * InfoType values returned by ListInfoTypes or found in documentation. */ - infoTypes: Schema$GooglePrivacyDlpV2InfoType[]; - limits: Schema$GooglePrivacyDlpV2FindingLimits; + infoTypes?: Schema$GooglePrivacyDlpV2InfoType[]; + limits?: Schema$GooglePrivacyDlpV2FindingLimits; /** * Only returns findings equal or above this threshold. The default is * POSSIBLE. */ - minLikelihood: string; + minLikelihood?: string; } /** * Request to search for potentially sensitive info in a ContentItem. @@ -2049,7 +1272,7 @@ export namespace dlp_v2 { * Configuration for the inspector. What specified here will override the * template referenced by the inspect_template_name argument. */ - inspectConfig: Schema$GooglePrivacyDlpV2InspectConfig; + inspectConfig?: Schema$GooglePrivacyDlpV2InspectConfig; /** * Optional template to use. Any configuration directly specified in * inspect_config will override those set in the template. Singular fields @@ -2057,11 +1280,11 @@ export namespace dlp_v2 { * the template. Repeated fields are appended. Singular sub-messages and * groups are recursively merged. */ - inspectTemplateName: string; + inspectTemplateName?: string; /** * The item to inspect. */ - item: Schema$GooglePrivacyDlpV2ContentItem; + item?: Schema$GooglePrivacyDlpV2ContentItem; } /** * Results of inspecting an item. @@ -2070,7 +1293,7 @@ export namespace dlp_v2 { /** * The findings. */ - result: Schema$GooglePrivacyDlpV2InspectResult; + result?: Schema$GooglePrivacyDlpV2InspectResult; } /** * The results of an inspect DataSource job. @@ -2079,32 +1302,32 @@ export namespace dlp_v2 { /** * The configuration used for this job. */ - requestedOptions: Schema$GooglePrivacyDlpV2RequestedOptions; + requestedOptions?: Schema$GooglePrivacyDlpV2RequestedOptions; /** * A summary of the outcome of this inspect job. */ - result: Schema$GooglePrivacyDlpV2Result; + result?: Schema$GooglePrivacyDlpV2Result; } export interface Schema$GooglePrivacyDlpV2InspectJobConfig { /** * Actions to execute at the completion of the job. Are executed in the * order provided. */ - actions: Schema$GooglePrivacyDlpV2Action[]; + actions?: Schema$GooglePrivacyDlpV2Action[]; /** * How and what to scan for. */ - inspectConfig: Schema$GooglePrivacyDlpV2InspectConfig; + inspectConfig?: Schema$GooglePrivacyDlpV2InspectConfig; /** * If provided, will be used as the default for all values in InspectConfig. * `inspect_config` will be merged into the values persisted as part of the * template. */ - inspectTemplateName: string; + inspectTemplateName?: string; /** * The data to scan. */ - storageConfig: Schema$GooglePrivacyDlpV2StorageConfig; + storageConfig?: Schema$GooglePrivacyDlpV2StorageConfig; } /** * All the findings for a single scanned item. @@ -2113,7 +1336,7 @@ export namespace dlp_v2 { /** * List of findings for an item. */ - findings: Schema$GooglePrivacyDlpV2Finding[]; + findings?: Schema$GooglePrivacyDlpV2Finding[]; /** * If true, then this item might have more findings than were returned, and * the findings returned are an arbitrary subset of all findings. The @@ -2122,7 +1345,7 @@ export namespace dlp_v2 { * a single API call. For best results, divide the input into smaller * batches. */ - findingsTruncated: boolean; + findingsTruncated?: boolean; } /** * The inspectTemplate contains a configuration (set of types of sensitive @@ -2133,29 +1356,29 @@ export namespace dlp_v2 { /** * The creation timestamp of a inspectTemplate, output only field. */ - createTime: string; + createTime?: string; /** * Short description (max 256 chars). */ - description: string; + description?: string; /** * Display name (max 256 chars). */ - displayName: string; + displayName?: string; /** * The core content of the template. Configuration of the scanning process. */ - inspectConfig: Schema$GooglePrivacyDlpV2InspectConfig; + inspectConfig?: Schema$GooglePrivacyDlpV2InspectConfig; /** * The template name. Output only. The template will have one of the * following formats: `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` */ - name: string; + name?: string; /** * The last update timestamp of a inspectTemplate, output only field. */ - updateTime: string; + updateTime?: string; } /** * Contains a configuration to make dlp api calls on a repeating basis. @@ -2164,52 +1387,63 @@ export namespace dlp_v2 { /** * The creation timestamp of a triggeredJob, output only field. */ - createTime: string; + createTime?: string; /** * User provided description (max 256 chars) */ - description: string; + description?: string; /** * Display name (max 100 chars) */ - displayName: string; + displayName?: string; /** * A stream of errors encountered when the trigger was activated. Repeated * errors may result in the JobTrigger automaticaly being paused. Will * return the last 100 errors. Whenever the JobTrigger is modified this list * will be cleared. Output only field. */ - errors: Schema$GooglePrivacyDlpV2Error[]; - inspectJob: Schema$GooglePrivacyDlpV2InspectJobConfig; + errors?: Schema$GooglePrivacyDlpV2Error[]; + inspectJob?: Schema$GooglePrivacyDlpV2InspectJobConfig; /** * The timestamp of the last time this trigger executed, output only field. */ - lastRunTime: string; + lastRunTime?: string; /** * Unique resource name for the triggeredJob, assigned by the service when * the triggeredJob is created, for example * `projects/dlp-test-project/triggeredJobs/53234423`. */ - name: string; + name?: string; /** * A status for this trigger. [required] */ - status: string; + status?: string; /** * A list of triggers which will be OR'ed together. Only one in the list * needs to trigger for a job to be started. The list may contain only a * single Schedule trigger and must have at least one object. */ - triggers: Schema$GooglePrivacyDlpV2Trigger[]; + triggers?: Schema$GooglePrivacyDlpV2Trigger[]; /** * The last update timestamp of a triggeredJob, output only field. */ - updateTime: string; + updateTime?: string; } /** * k-anonymity metric, used for analysis of reidentification risk. */ export interface Schema$GooglePrivacyDlpV2KAnonymityConfig { + /** + * Optional message indicating that multiple rows might be associated to a + * single individual. If the same entity_id is associated to multiple + * quasi-identifier tuples over distict rows, we consider the entire + * collection of tuples as the composite quasi-identifier. This collection + * is a multiset: the order in which the different tuples appear in the + * dataset is ignored, but their frequency is taken into account. Important + * note: a maximum of 1000 rows can be associated to a single entity ID. If + * more rows are associated with the same entity ID, some might be ignored. + */ + entityId?: Schema$GooglePrivacyDlpV2EntityId; /** * Set of fields to compute k-anonymity over. When multiple fields are * specified, they are considered a single composite key. Structs and @@ -2217,7 +1451,7 @@ export namespace dlp_v2 { * supported so long as they are not structs themselves or nested within a * repeated field. */ - quasiIds: Schema$GooglePrivacyDlpV2FieldId[]; + quasiIds?: Schema$GooglePrivacyDlpV2FieldId[]; } /** * The set of columns' values that share the same ldiversity value @@ -2227,36 +1461,36 @@ export namespace dlp_v2 { * Size of the equivalence class, for example number of rows with the above * set of values. */ - equivalenceClassSize: string; + equivalenceClassSize?: string; /** * Set of values defining the equivalence class. One value per * quasi-identifier column in the original KAnonymity metric message. The * order is always the same as the original request. */ - quasiIdsValues: Schema$GooglePrivacyDlpV2Value[]; + quasiIdsValues?: Schema$GooglePrivacyDlpV2Value[]; } export interface Schema$GooglePrivacyDlpV2KAnonymityHistogramBucket { /** * Total number of equivalence classes in this bucket. */ - bucketSize: string; + bucketSize?: string; /** * Total number of distinct equivalence classes in this bucket. */ - bucketValueCount: string; + bucketValueCount?: string; /** * Sample of equivalence classes in this bucket. The total number of classes * returned per bucket is capped at 20. */ - bucketValues: Schema$GooglePrivacyDlpV2KAnonymityEquivalenceClass[]; + bucketValues?: Schema$GooglePrivacyDlpV2KAnonymityEquivalenceClass[]; /** * Lower bound on the size of the equivalence classes in this bucket. */ - equivalenceClassSizeLowerBound: string; + equivalenceClassSizeLowerBound?: string; /** * Upper bound on the size of the equivalence classes in this bucket. */ - equivalenceClassSizeUpperBound: string; + equivalenceClassSizeUpperBound?: string; } /** * Result of the k-anonymity computation. @@ -2265,7 +1499,7 @@ export namespace dlp_v2 { /** * Histogram of k-anonymity equivalence classes. */ - equivalenceClassHistogramBuckets: + equivalenceClassHistogramBuckets?: Schema$GooglePrivacyDlpV2KAnonymityHistogramBucket[]; } /** @@ -2279,7 +1513,7 @@ export namespace dlp_v2 { * Entities are partitioned into subsets, currently identified by a project * ID and namespace ID. Queries are scoped to a single partition. */ - partitionId: Schema$GooglePrivacyDlpV2PartitionId; + partitionId?: Schema$GooglePrivacyDlpV2PartitionId; /** * The entity path. An entity path consists of one or more elements composed * of a kind and a string or numerical identifier, which identify entities. @@ -2289,7 +1523,7 @@ export namespace dlp_v2 { * prefixes of the path are called the element's _ancestors_. A path * can never be empty, and a path can have at most 100 elements. */ - path: Schema$GooglePrivacyDlpV2PathElement[]; + path?: Schema$GooglePrivacyDlpV2PathElement[]; } /** * A representation of a Datastore kind. @@ -2298,7 +1532,7 @@ export namespace dlp_v2 { /** * The name of the kind. */ - name: string; + name?: string; } /** * Reidentifiability metric. This corresponds to a risk model similar to what @@ -2306,7 +1540,8 @@ export namespace dlp_v2 { * dataset is statistically modeled instead of being perfectly known. This can * be done using publicly available data (like the US Census), or using a * custom statistical model (indicated as one or several BigQuery tables), or - * by extrapolating from the distribution of values in the input dataset. + * by extrapolating from the distribution of values in the input dataset. A + * column with a semantic tag attached. */ export interface Schema$GooglePrivacyDlpV2KMapEstimationConfig { /** @@ -2314,18 +1549,18 @@ export namespace dlp_v2 { * used to tag a quasi-identifiers column must appear in exactly one column * of one auxiliary table. */ - auxiliaryTables: Schema$GooglePrivacyDlpV2AuxiliaryTable[]; + auxiliaryTables?: Schema$GooglePrivacyDlpV2AuxiliaryTable[]; /** * Fields considered to be quasi-identifiers. No two columns can have the * same tag. [required] */ - quasiIds: Schema$GooglePrivacyDlpV2TaggedField[]; + quasiIds?: Schema$GooglePrivacyDlpV2TaggedField[]; /** * ISO 3166-1 alpha-2 region code to use in the statistical modeling. * Required if no column is tagged with a region-specific InfoType (like * US_ZIP_5) or a region code. */ - regionCode: string; + regionCode?: string; } /** * A KMapEstimationHistogramBucket message with the following values: @@ -2339,24 +1574,24 @@ export namespace dlp_v2 { /** * Number of records within these anonymity bounds. */ - bucketSize: string; + bucketSize?: string; /** * Total number of distinct quasi-identifier tuple values in this bucket. */ - bucketValueCount: string; + bucketValueCount?: string; /** * Sample of quasi-identifier tuple values in this bucket. The total number * of classes returned per bucket is capped at 20. */ - bucketValues: Schema$GooglePrivacyDlpV2KMapEstimationQuasiIdValues[]; + bucketValues?: Schema$GooglePrivacyDlpV2KMapEstimationQuasiIdValues[]; /** * Always greater than or equal to min_anonymity. */ - maxAnonymity: string; + maxAnonymity?: string; /** * Always positive. */ - minAnonymity: string; + minAnonymity?: string; } /** * A tuple of values for the quasi-identifier columns. @@ -2365,11 +1600,11 @@ export namespace dlp_v2 { /** * The estimated anonymity for these quasi-identifier values. */ - estimatedAnonymity: string; + estimatedAnonymity?: string; /** * The quasi-identifier values. */ - quasiIdsValues: Schema$GooglePrivacyDlpV2Value[]; + quasiIdsValues?: Schema$GooglePrivacyDlpV2Value[]; } /** * Result of the reidentifiability analysis. Note that these results are an @@ -2385,7 +1620,7 @@ export namespace dlp_v2 { * mean that there are no record with an estimated anonymity of 4, 5, or * larger than 10. */ - kMapEstimationHistogram: + kMapEstimationHistogram?: Schema$GooglePrivacyDlpV2KMapEstimationHistogramBucket[]; } /** @@ -2397,11 +1632,11 @@ export namespace dlp_v2 { /** * The resource name of the KMS CryptoKey to use for unwrapping. [required] */ - cryptoKeyName: string; + cryptoKeyName?: string; /** * The wrapped data crypto key. [required] */ - wrappedKey: string; + wrappedKey?: string; } /** * l-diversity metric, used for analysis of reidentification risk. @@ -2412,11 +1647,11 @@ export namespace dlp_v2 { * for the l-diversity computation. When multiple fields are specified, they * are considered a single composite key. */ - quasiIds: Schema$GooglePrivacyDlpV2FieldId[]; + quasiIds?: Schema$GooglePrivacyDlpV2FieldId[]; /** * Sensitive field for computing the l-value. */ - sensitiveAttribute: Schema$GooglePrivacyDlpV2FieldId; + sensitiveAttribute?: Schema$GooglePrivacyDlpV2FieldId; } /** * The set of columns' values that share the same ldiversity value. @@ -2425,45 +1660,45 @@ export namespace dlp_v2 { /** * Size of the k-anonymity equivalence class. */ - equivalenceClassSize: string; + equivalenceClassSize?: string; /** * Number of distinct sensitive values in this equivalence class. */ - numDistinctSensitiveValues: string; + numDistinctSensitiveValues?: string; /** * Quasi-identifier values defining the k-anonymity equivalence class. The * order is always the same as the original request. */ - quasiIdsValues: Schema$GooglePrivacyDlpV2Value[]; + quasiIdsValues?: Schema$GooglePrivacyDlpV2Value[]; /** * Estimated frequencies of top sensitive values. */ - topSensitiveValues: Schema$GooglePrivacyDlpV2ValueFrequency[]; + topSensitiveValues?: Schema$GooglePrivacyDlpV2ValueFrequency[]; } export interface Schema$GooglePrivacyDlpV2LDiversityHistogramBucket { /** * Total number of equivalence classes in this bucket. */ - bucketSize: string; + bucketSize?: string; /** * Total number of distinct equivalence classes in this bucket. */ - bucketValueCount: string; + bucketValueCount?: string; /** * Sample of equivalence classes in this bucket. The total number of classes * returned per bucket is capped at 20. */ - bucketValues: Schema$GooglePrivacyDlpV2LDiversityEquivalenceClass[]; + bucketValues?: Schema$GooglePrivacyDlpV2LDiversityEquivalenceClass[]; /** * Lower bound on the sensitive value frequencies of the equivalence classes * in this bucket. */ - sensitiveValueFrequencyLowerBound: string; + sensitiveValueFrequencyLowerBound?: string; /** * Upper bound on the sensitive value frequencies of the equivalence classes * in this bucket. */ - sensitiveValueFrequencyUpperBound: string; + sensitiveValueFrequencyUpperBound?: string; } /** * Result of the l-diversity computation. @@ -2472,7 +1707,7 @@ export namespace dlp_v2 { /** * Histogram of l-diversity equivalence class sensitive value frequencies. */ - sensitiveValueFrequencyHistogramBuckets: + sensitiveValueFrequencyHistogramBuckets?: Schema$GooglePrivacyDlpV2LDiversityHistogramBucket[]; } /** @@ -2483,7 +1718,7 @@ export namespace dlp_v2 { /** * Set the likelihood of a finding to a fixed value. */ - fixedLikelihood: string; + fixedLikelihood?: string; /** * Increase or decrease the likelihood by the specified number of levels. * For example, if a finding would be `POSSIBLE` without the detection rule @@ -2493,7 +1728,7 @@ export namespace dlp_v2 { * of 1 followed by an adjustment of -1 when base likelihood is * `VERY_LIKELY` will result in a final likelihood of `LIKELY`. */ - relativeLikelihood: number; + relativeLikelihood?: number; } /** * Response message for ListDeidentifyTemplates. @@ -2503,12 +1738,12 @@ export namespace dlp_v2 { * List of deidentify templates, up to page_size in * ListDeidentifyTemplatesRequest. */ - deidentifyTemplates: Schema$GooglePrivacyDlpV2DeidentifyTemplate[]; + deidentifyTemplates?: Schema$GooglePrivacyDlpV2DeidentifyTemplate[]; /** * If the next page is available then the next page token to be used in * following ListDeidentifyTemplates request. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for listing DLP jobs. @@ -2517,11 +1752,11 @@ export namespace dlp_v2 { /** * A list of DlpJobs that matches the specified filter in the request. */ - jobs: Schema$GooglePrivacyDlpV2DlpJob[]; + jobs?: Schema$GooglePrivacyDlpV2DlpJob[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response to the ListInfoTypes request. @@ -2530,7 +1765,7 @@ export namespace dlp_v2 { /** * Set of sensitive infoTypes. */ - infoTypes: Schema$GooglePrivacyDlpV2InfoTypeDescription[]; + infoTypes?: Schema$GooglePrivacyDlpV2InfoTypeDescription[]; } /** * Response message for ListInspectTemplates. @@ -2539,12 +1774,12 @@ export namespace dlp_v2 { /** * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. */ - inspectTemplates: Schema$GooglePrivacyDlpV2InspectTemplate[]; + inspectTemplates?: Schema$GooglePrivacyDlpV2InspectTemplate[]; /** * If the next page is available then the next page token to be used in * following ListInspectTemplates request. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for ListJobTriggers. @@ -2553,12 +1788,12 @@ export namespace dlp_v2 { /** * List of triggeredJobs, up to page_size in ListJobTriggersRequest. */ - jobTriggers: Schema$GooglePrivacyDlpV2JobTrigger[]; + jobTriggers?: Schema$GooglePrivacyDlpV2JobTrigger[]; /** * If the next page is available then the next page token to be used in * following ListJobTriggers request. */ - nextPageToken: string; + nextPageToken?: string; } /** * Specifies the location of the finding. @@ -2570,17 +1805,17 @@ export namespace dlp_v2 { * textual, this references the UTF-8 encoded textual representation of the * content. Omitted if content is an image. */ - byteRange: Schema$GooglePrivacyDlpV2Range; + byteRange?: Schema$GooglePrivacyDlpV2Range; /** * Unicode character offsets delimiting the finding. These are relative to * the finding's containing element. Provided when the content is text. */ - codepointRange: Schema$GooglePrivacyDlpV2Range; + codepointRange?: Schema$GooglePrivacyDlpV2Range; /** * List of nested objects pointing to the precise location of the finding * within the file or record. */ - contentLocations: Schema$GooglePrivacyDlpV2ContentLocation[]; + contentLocations?: Schema$GooglePrivacyDlpV2ContentLocation[]; } /** * Compute numerical stats over an individual column, including min, max, and @@ -2591,7 +1826,7 @@ export namespace dlp_v2 { * Field to compute numerical stats on. Supported types are integer, float, * date, datetime, timestamp, time. */ - field: Schema$GooglePrivacyDlpV2FieldId; + field?: Schema$GooglePrivacyDlpV2FieldId; } /** * Result of the numerical stats computation. @@ -2600,16 +1835,16 @@ export namespace dlp_v2 { /** * Maximum value appearing in the column. */ - maxValue: Schema$GooglePrivacyDlpV2Value; + maxValue?: Schema$GooglePrivacyDlpV2Value; /** * Minimum value appearing in the column. */ - minValue: Schema$GooglePrivacyDlpV2Value; + minValue?: Schema$GooglePrivacyDlpV2Value; /** * List of 99 values that partition the set of field values into 100 equal * sized buckets. */ - quantileValues: Schema$GooglePrivacyDlpV2Value[]; + quantileValues?: Schema$GooglePrivacyDlpV2Value[]; } /** * Cloud repository for storing output. @@ -2623,7 +1858,7 @@ export namespace dlp_v2 { * columns will be used for a new table, and no changes will be made to an * existing table. */ - outputSchema: string; + outputSchema?: string; /** * Store findings in an existing table or a new table in an existing * dataset. Each column in an existing table must have the same name, type, @@ -2632,7 +1867,7 @@ export namespace dlp_v2 { * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for * generating the date details. */ - table: Schema$GooglePrivacyDlpV2BigQueryTable; + table?: Schema$GooglePrivacyDlpV2BigQueryTable; } /** * Datastore partition ID. A partition ID identifies a grouping of entities. @@ -2644,11 +1879,11 @@ export namespace dlp_v2 { /** * If not empty, the ID of the namespace to which the entities belong. */ - namespaceId: string; + namespaceId?: string; /** * The ID of the project to which the entities belong. */ - projectId: string; + projectId?: string; } /** * A (kind, ID/name) pair used to construct a key path. If either name or ID @@ -2660,46 +1895,47 @@ export namespace dlp_v2 { * The auto-allocated ID of the entity. Never equal to zero. Values less * than zero are discouraged and may not be supported in the future. */ - id: string; + id?: string; /** * The kind of the entity. A kind matching regex `__.*__` is * reserved/read-only. A kind must not contain more than 1500 bytes when * UTF-8 encoded. Cannot be `""`. */ - kind: string; + kind?: string; /** * The name of the entity. A name matching regex `__.*__` is * reserved/read-only. A name must not be more than 1500 bytes when UTF-8 * encoded. Cannot be `""`. */ - name: string; + name?: string; } /** * A rule for transforming a value. */ export interface Schema$GooglePrivacyDlpV2PrimitiveTransformation { - bucketingConfig: Schema$GooglePrivacyDlpV2BucketingConfig; - characterMaskConfig: Schema$GooglePrivacyDlpV2CharacterMaskConfig; - cryptoHashConfig: Schema$GooglePrivacyDlpV2CryptoHashConfig; - cryptoReplaceFfxFpeConfig: + bucketingConfig?: Schema$GooglePrivacyDlpV2BucketingConfig; + characterMaskConfig?: Schema$GooglePrivacyDlpV2CharacterMaskConfig; + cryptoHashConfig?: Schema$GooglePrivacyDlpV2CryptoHashConfig; + cryptoReplaceFfxFpeConfig?: Schema$GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig; - dateShiftConfig: Schema$GooglePrivacyDlpV2DateShiftConfig; - fixedSizeBucketingConfig: Schema$GooglePrivacyDlpV2FixedSizeBucketingConfig; - redactConfig: Schema$GooglePrivacyDlpV2RedactConfig; - replaceConfig: Schema$GooglePrivacyDlpV2ReplaceValueConfig; - replaceWithInfoTypeConfig: + dateShiftConfig?: Schema$GooglePrivacyDlpV2DateShiftConfig; + fixedSizeBucketingConfig?: + Schema$GooglePrivacyDlpV2FixedSizeBucketingConfig; + redactConfig?: Schema$GooglePrivacyDlpV2RedactConfig; + replaceConfig?: Schema$GooglePrivacyDlpV2ReplaceValueConfig; + replaceWithInfoTypeConfig?: Schema$GooglePrivacyDlpV2ReplaceWithInfoTypeConfig; - timePartConfig: Schema$GooglePrivacyDlpV2TimePartConfig; + timePartConfig?: Schema$GooglePrivacyDlpV2TimePartConfig; } /** * Privacy metric to compute for reidentification risk analysis. */ export interface Schema$GooglePrivacyDlpV2PrivacyMetric { - categoricalStatsConfig: Schema$GooglePrivacyDlpV2CategoricalStatsConfig; - kAnonymityConfig: Schema$GooglePrivacyDlpV2KAnonymityConfig; - kMapEstimationConfig: Schema$GooglePrivacyDlpV2KMapEstimationConfig; - lDiversityConfig: Schema$GooglePrivacyDlpV2LDiversityConfig; - numericalStatsConfig: Schema$GooglePrivacyDlpV2NumericalStatsConfig; + categoricalStatsConfig?: Schema$GooglePrivacyDlpV2CategoricalStatsConfig; + kAnonymityConfig?: Schema$GooglePrivacyDlpV2KAnonymityConfig; + kMapEstimationConfig?: Schema$GooglePrivacyDlpV2KMapEstimationConfig; + lDiversityConfig?: Schema$GooglePrivacyDlpV2LDiversityConfig; + numericalStatsConfig?: Schema$GooglePrivacyDlpV2NumericalStatsConfig; } /** * Message for specifying a window around a finding to apply a detection rule. @@ -2708,12 +1944,23 @@ export namespace dlp_v2 { /** * Number of characters after the finding to consider. */ - windowAfter: number; + windowAfter?: number; /** * Number of characters before the finding to consider. */ - windowBefore: number; + windowBefore?: number; } + /** + * Publish the result summary of a DlpJob to the Cloud Security Command Center + * (CSCC Alpha). This action is only available for projects which are parts of + * an organization and whitelisted for the alpha Cloud Security Command + * Center. The action will publish count of finding instances and their info + * types. The summary of findings will be persisted in CSCC and are governed + * by CSCC service-specific policy, see + * https://cloud.google.com/terms/service-terms Only a single instance of this + * action can be specified. Compatible with: Inspect + */ + export interface Schema$GooglePrivacyDlpV2PublishSummaryToCscc {} /** * Publish the results of a DlpJob to a pub sub channel. Compatible with: * Inspect, Risk @@ -2725,21 +1972,21 @@ export namespace dlp_v2 { * long running DlpJob sending the notifications. Format is * projects/{project}/topics/{topic}. */ - topic: string; + topic?: string; } /** * A quasi-identifier column has a custom_tag, used to know which column in * the data corresponds to which column in the statistical model. */ export interface Schema$GooglePrivacyDlpV2QuasiIdField { - customTag: string; - field: Schema$GooglePrivacyDlpV2FieldId; + customTag?: string; + field?: Schema$GooglePrivacyDlpV2FieldId; } /** * Message for infoType-dependent details parsed from quote. */ export interface Schema$GooglePrivacyDlpV2QuoteInfo { - dateTime: Schema$GooglePrivacyDlpV2DateTime; + dateTime?: Schema$GooglePrivacyDlpV2DateTime; } /** * Generic half-open interval [start, end) @@ -2748,11 +1995,11 @@ export namespace dlp_v2 { /** * Index of the last character of the range (exclusive). */ - end: string; + end?: string; /** * Index of the first character of the range (inclusive). */ - start: string; + start?: string; } /** * A condition for determining whether a transformation should be applied to a @@ -2762,14 +2009,14 @@ export namespace dlp_v2 { /** * An expression. */ - expressions: Schema$GooglePrivacyDlpV2Expressions; + expressions?: Schema$GooglePrivacyDlpV2Expressions; } /** * Message for a unique key indicating a record that contains a finding. */ export interface Schema$GooglePrivacyDlpV2RecordKey { - bigQueryKey: Schema$GooglePrivacyDlpV2BigQueryKey; - datastoreKey: Schema$GooglePrivacyDlpV2DatastoreKey; + bigQueryKey?: Schema$GooglePrivacyDlpV2BigQueryKey; + datastoreKey?: Schema$GooglePrivacyDlpV2DatastoreKey; } /** * Location of a finding within a row or record. @@ -2778,15 +2025,15 @@ export namespace dlp_v2 { /** * Field id of the field containing the finding. */ - fieldId: Schema$GooglePrivacyDlpV2FieldId; + fieldId?: Schema$GooglePrivacyDlpV2FieldId; /** * Key of the finding. */ - recordKey: Schema$GooglePrivacyDlpV2RecordKey; + recordKey?: Schema$GooglePrivacyDlpV2RecordKey; /** * Location within a `ContentItem.Table`. */ - tableLocation: Schema$GooglePrivacyDlpV2TableLocation; + tableLocation?: Schema$GooglePrivacyDlpV2TableLocation; } /** * Configuration to suppress records whose suppression conditions evaluate to @@ -2797,7 +2044,7 @@ export namespace dlp_v2 { * A condition that when it evaluates to true will result in the record * being evaluated to be suppressed from the transformed content. */ - condition: Schema$GooglePrivacyDlpV2RecordCondition; + condition?: Schema$GooglePrivacyDlpV2RecordCondition; } /** * A type of transformation that is applied over structured data such as a @@ -2807,12 +2054,12 @@ export namespace dlp_v2 { /** * Transform the record by applying various field transformations. */ - fieldTransformations: Schema$GooglePrivacyDlpV2FieldTransformation[]; + fieldTransformations?: Schema$GooglePrivacyDlpV2FieldTransformation[]; /** * Configuration defining which records get suppressed entirely. Records * that match any suppression rule are omitted from the output [optional]. */ - recordSuppressions: Schema$GooglePrivacyDlpV2RecordSuppression[]; + recordSuppressions?: Schema$GooglePrivacyDlpV2RecordSuppression[]; } /** * Redact a given value. For example, if used with an `InfoTypeTransformation` @@ -2828,15 +2075,15 @@ export namespace dlp_v2 { /** * The content must be PNG, JPEG, SVG or BMP. */ - byteItem: Schema$GooglePrivacyDlpV2ByteContentItem; + byteItem?: Schema$GooglePrivacyDlpV2ByteContentItem; /** * The configuration for specifying what content to redact from images. */ - imageRedactionConfigs: Schema$GooglePrivacyDlpV2ImageRedactionConfig[]; + imageRedactionConfigs?: Schema$GooglePrivacyDlpV2ImageRedactionConfig[]; /** * Configuration for the inspector. */ - inspectConfig: Schema$GooglePrivacyDlpV2InspectConfig; + inspectConfig?: Schema$GooglePrivacyDlpV2InspectConfig; } /** * Results of redacting an image. @@ -2847,11 +2094,11 @@ export namespace dlp_v2 { * was set to true, then this field will include all text, if any, that was * found in the image. */ - extractedText: string; + extractedText?: string; /** * The redacted image. The type will be the same as the original image. */ - redactedImage: string; + redactedImage?: string; } /** * Message defining a custom regular expression. @@ -2860,7 +2107,7 @@ export namespace dlp_v2 { /** * Pattern defining the regular expression. */ - pattern: string; + pattern?: string; } /** * Request to re-identify an item. @@ -2869,7 +2116,7 @@ export namespace dlp_v2 { /** * Configuration for the inspector. */ - inspectConfig: Schema$GooglePrivacyDlpV2InspectConfig; + inspectConfig?: Schema$GooglePrivacyDlpV2InspectConfig; /** * Optional template to use. Any configuration directly specified in * `inspect_config` will override those set in the template. Singular fields @@ -2877,11 +2124,11 @@ export namespace dlp_v2 { * the template. Repeated fields are appended. Singular sub-messages and * groups are recursively merged. */ - inspectTemplateName: string; + inspectTemplateName?: string; /** * The item to re-identify. Will be treated as text. */ - item: Schema$GooglePrivacyDlpV2ContentItem; + item?: Schema$GooglePrivacyDlpV2ContentItem; /** * Configuration for the re-identification of the content item. This field * shares the same proto message type that is used for de-identification, @@ -2891,7 +2138,7 @@ export namespace dlp_v2 { * This requires that only reversible transformations be provided here. The * reversible transformations are: - `CryptoReplaceFfxFpeConfig` */ - reidentifyConfig: Schema$GooglePrivacyDlpV2DeidentifyConfig; + reidentifyConfig?: Schema$GooglePrivacyDlpV2DeidentifyConfig; /** * Optional template to use. References an instance of `DeidentifyTemplate`. * Any configuration directly specified in `reidentify_config` or @@ -2900,7 +2147,7 @@ export namespace dlp_v2 { * the template. Repeated fields are appended. Singular sub-messages and * groups are recursively merged. */ - reidentifyTemplateName: string; + reidentifyTemplateName?: string; } /** * Results of re-identifying a item. @@ -2909,11 +2156,11 @@ export namespace dlp_v2 { /** * The re-identified item. */ - item: Schema$GooglePrivacyDlpV2ContentItem; + item?: Schema$GooglePrivacyDlpV2ContentItem; /** * An overview of the changes that were made to the `item`. */ - overview: Schema$GooglePrivacyDlpV2TransformationOverview; + overview?: Schema$GooglePrivacyDlpV2TransformationOverview; } /** * Replace each input value with a given `Value`. @@ -2922,34 +2169,34 @@ export namespace dlp_v2 { /** * Value to replace it with. */ - newValue: Schema$GooglePrivacyDlpV2Value; + newValue?: Schema$GooglePrivacyDlpV2Value; } /** * Replace each matching finding with the name of the info_type. */ export interface Schema$GooglePrivacyDlpV2ReplaceWithInfoTypeConfig {} export interface Schema$GooglePrivacyDlpV2RequestedOptions { - jobConfig: Schema$GooglePrivacyDlpV2InspectJobConfig; + jobConfig?: Schema$GooglePrivacyDlpV2InspectJobConfig; /** * If run with an InspectTemplate, a snapshot of its state at the time of * this run. */ - snapshotInspectTemplate: Schema$GooglePrivacyDlpV2InspectTemplate; + snapshotInspectTemplate?: Schema$GooglePrivacyDlpV2InspectTemplate; } export interface Schema$GooglePrivacyDlpV2Result { /** * Statistics of how many instances of each info type were found during * inspect job. */ - infoTypeStats: Schema$GooglePrivacyDlpV2InfoTypeStats[]; + infoTypeStats?: Schema$GooglePrivacyDlpV2InfoTypeStats[]; /** * Total size in bytes that were processed. */ - processedBytes: string; + processedBytes?: string; /** * Estimate of the number of bytes to process. */ - totalEstimatedBytes: string; + totalEstimatedBytes?: string; } /** * Configuration for a risk analysis job. @@ -2959,18 +2206,18 @@ export namespace dlp_v2 { * Actions to execute at the completion of the job. Are executed in the * order provided. */ - actions: Schema$GooglePrivacyDlpV2Action[]; + actions?: Schema$GooglePrivacyDlpV2Action[]; /** * Privacy metric to compute. */ - privacyMetric: Schema$GooglePrivacyDlpV2PrivacyMetric; + privacyMetric?: Schema$GooglePrivacyDlpV2PrivacyMetric; /** * Input dataset to compute metrics over. */ - sourceTable: Schema$GooglePrivacyDlpV2BigQueryTable; + sourceTable?: Schema$GooglePrivacyDlpV2BigQueryTable; } export interface Schema$GooglePrivacyDlpV2Row { - values: Schema$GooglePrivacyDlpV2Value[]; + values?: Schema$GooglePrivacyDlpV2Value[]; } /** * If set, the detailed findings will be persisted to the specified @@ -2978,7 +2225,7 @@ export namespace dlp_v2 { * specified. Compatible with: Inspect */ export interface Schema$GooglePrivacyDlpV2SaveFindings { - outputConfig: Schema$GooglePrivacyDlpV2OutputStorageConfig; + outputConfig?: Schema$GooglePrivacyDlpV2OutputStorageConfig; } /** * Schedule for triggeredJobs. @@ -2991,7 +2238,7 @@ export namespace dlp_v2 { * be set to a time duration greater than or equal to 60 minutes and can be * no longer than 60 days. */ - recurrencePeriodDuration: string; + recurrencePeriodDuration?: string; } /** * Shared message indicating Cloud storage type. @@ -3000,29 +2247,29 @@ export namespace dlp_v2 { /** * BigQuery options specification. */ - bigQueryOptions: Schema$GooglePrivacyDlpV2BigQueryOptions; + bigQueryOptions?: Schema$GooglePrivacyDlpV2BigQueryOptions; /** * Google Cloud Storage options specification. */ - cloudStorageOptions: Schema$GooglePrivacyDlpV2CloudStorageOptions; + cloudStorageOptions?: Schema$GooglePrivacyDlpV2CloudStorageOptions; /** * Google Cloud Datastore options specification. */ - datastoreOptions: Schema$GooglePrivacyDlpV2DatastoreOptions; - timespanConfig: Schema$GooglePrivacyDlpV2TimespanConfig; + datastoreOptions?: Schema$GooglePrivacyDlpV2DatastoreOptions; + timespanConfig?: Schema$GooglePrivacyDlpV2TimespanConfig; } /** * A collection that informs the user the number of times a particular * `TransformationResultCode` and error details occurred. */ export interface Schema$GooglePrivacyDlpV2SummaryResult { - code: string; - count: string; + code?: string; + count?: string; /** * A place for warnings or errors to show up if a transformation didn't * work as expected. */ - details: string; + details?: string; } /** * Message for detecting output from deidentification transformations such as @@ -3038,8 +2285,8 @@ export namespace dlp_v2 { * Structured content to inspect. Up to 50,000 `Value`s per request allowed. */ export interface Schema$GooglePrivacyDlpV2Table { - headers: Schema$GooglePrivacyDlpV2FieldId[]; - rows: Schema$GooglePrivacyDlpV2Row[]; + headers?: Schema$GooglePrivacyDlpV2FieldId[]; + rows?: Schema$GooglePrivacyDlpV2Row[]; } /** * Location of a finding within a table. @@ -3048,27 +2295,24 @@ export namespace dlp_v2 { /** * The zero-based index of the row where the finding is located. */ - rowIndex: string; + rowIndex?: string; } - /** - * A column with a semantic tag attached. - */ export interface Schema$GooglePrivacyDlpV2TaggedField { /** * A column can be tagged with a custom tag. In this case, the user must * indicate an auxiliary table that contains statistical information on the * possible values of this column (below). */ - customTag: string; + customTag?: string; /** * Identifies the column. [required] */ - field: Schema$GooglePrivacyDlpV2FieldId; + field?: Schema$GooglePrivacyDlpV2FieldId; /** * If no semantic tag is indicated, we infer the statistical model from the * distribution of values in the input data */ - inferred: Schema$GoogleProtobufEmpty; + inferred?: Schema$GoogleProtobufEmpty; /** * A column can be tagged with a InfoType to use the relevant public dataset * as a statistical model of population, if available. We currently support @@ -3076,14 +2320,14 @@ export namespace dlp_v2 { * the list of supported InfoTypes, use ListInfoTypes with the * supported_by=RISK_ANALYSIS filter. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; } /** * For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a * portion of the value. */ export interface Schema$GooglePrivacyDlpV2TimePartConfig { - partToExtract: string; + partToExtract?: string; } /** * Configuration of the timespan of the items to include in scanning. @@ -3096,16 +2340,16 @@ export namespace dlp_v2 { * since the last time the JobTrigger executed. This will be based on the * time of the execution of the last run of the JobTrigger. */ - enableAutoPopulationOfTimespanConfig: boolean; + enableAutoPopulationOfTimespanConfig?: boolean; /** * Exclude files newer than this value. If set to zero, no upper time limit * is applied. */ - endTime: string; + endTime?: string; /** * Exclude files older than this value. */ - startTime: string; + startTime?: string; /** * Specification of the field containing the timestamp of scanned items. * Required for data sources like Datastore or BigQuery. The valid data @@ -3113,14 +2357,14 @@ export namespace dlp_v2 { * datetime; for Datastore - timestamp. Datastore entity will be scanned if * the timestamp property does not exist or its value is empty or invalid. */ - timestampField: Schema$GooglePrivacyDlpV2FieldId; + timestampField?: Schema$GooglePrivacyDlpV2FieldId; } export interface Schema$GooglePrivacyDlpV2TimeZone { /** * Set only if the offset can be determined. Positive for time ahead of UTC. * E.g. For "UTC-9", this value is -540. */ - offsetMinutes: number; + offsetMinutes?: number; } /** * Overview of the modifications that occurred. @@ -3129,11 +2373,11 @@ export namespace dlp_v2 { /** * Transformations applied to the dataset. */ - transformationSummaries: Schema$GooglePrivacyDlpV2TransformationSummary[]; + transformationSummaries?: Schema$GooglePrivacyDlpV2TransformationSummary[]; /** * Total size in bytes that were transformed in some way. */ - transformedBytes: string; + transformedBytes?: string; } /** * Summary of a single tranformation. Only one of 'transformation', @@ -3143,30 +2387,30 @@ export namespace dlp_v2 { /** * Set if the transformation was limited to a specific FieldId. */ - field: Schema$GooglePrivacyDlpV2FieldId; + field?: Schema$GooglePrivacyDlpV2FieldId; /** * The field transformation that was applied. If multiple field * transformations are requested for a single field, this list will contain * all of them; otherwise, only one is supplied. */ - fieldTransformations: Schema$GooglePrivacyDlpV2FieldTransformation[]; + fieldTransformations?: Schema$GooglePrivacyDlpV2FieldTransformation[]; /** * Set if the transformation was limited to a specific info_type. */ - infoType: Schema$GooglePrivacyDlpV2InfoType; + infoType?: Schema$GooglePrivacyDlpV2InfoType; /** * The specific suppression option these stats apply to. */ - recordSuppress: Schema$GooglePrivacyDlpV2RecordSuppression; - results: Schema$GooglePrivacyDlpV2SummaryResult[]; + recordSuppress?: Schema$GooglePrivacyDlpV2RecordSuppression; + results?: Schema$GooglePrivacyDlpV2SummaryResult[]; /** * The specific transformation these stats apply to. */ - transformation: Schema$GooglePrivacyDlpV2PrimitiveTransformation; + transformation?: Schema$GooglePrivacyDlpV2PrimitiveTransformation; /** * Total size in bytes that were transformed in some way. */ - transformedBytes: string; + transformedBytes?: string; } /** * Use this to have a random data crypto key generated. It will be discarded @@ -3181,7 +2425,7 @@ export namespace dlp_v2 { * name is not used in any way (repeating the api call will result in a * different key being generated). */ - name: string; + name?: string; } /** * What event needs to occur for a new job to be started. @@ -3190,7 +2434,7 @@ export namespace dlp_v2 { /** * Create a job on a repeating basis based on the elapse of time. */ - schedule: Schema$GooglePrivacyDlpV2Schedule; + schedule?: Schema$GooglePrivacyDlpV2Schedule; } /** * Using raw keys is prone to security risks due to accidentally leaking the @@ -3200,7 +2444,7 @@ export namespace dlp_v2 { /** * The AES 128/192/256 bit key. [required] */ - key: string; + key?: string; } /** * Request message for UpdateDeidentifyTemplate. @@ -3209,11 +2453,11 @@ export namespace dlp_v2 { /** * New DeidentifyTemplate value. */ - deidentifyTemplate: Schema$GooglePrivacyDlpV2DeidentifyTemplate; + deidentifyTemplate?: Schema$GooglePrivacyDlpV2DeidentifyTemplate; /** * Mask to control which fields get updated. */ - updateMask: string; + updateMask?: string; } /** * Request message for UpdateInspectTemplate. @@ -3222,11 +2466,11 @@ export namespace dlp_v2 { /** * New InspectTemplate value. */ - inspectTemplate: Schema$GooglePrivacyDlpV2InspectTemplate; + inspectTemplate?: Schema$GooglePrivacyDlpV2InspectTemplate; /** * Mask to control which fields get updated. */ - updateMask: string; + updateMask?: string; } /** * Request message for UpdateJobTrigger. @@ -3235,11 +2479,11 @@ export namespace dlp_v2 { /** * New JobTrigger value. */ - jobTrigger: Schema$GooglePrivacyDlpV2JobTrigger; + jobTrigger?: Schema$GooglePrivacyDlpV2JobTrigger; /** * Mask to control which fields get updated. */ - updateMask: string; + updateMask?: string; } /** * Set of primitive values supported by the system. Note that for the purposes @@ -3250,14 +2494,14 @@ export namespace dlp_v2 { * of data. */ export interface Schema$GooglePrivacyDlpV2Value { - booleanValue: boolean; - dateValue: Schema$GoogleTypeDate; - dayOfWeekValue: string; - floatValue: number; - integerValue: string; - stringValue: string; - timestampValue: string; - timeValue: Schema$GoogleTypeTimeOfDay; + booleanValue?: boolean; + dateValue?: Schema$GoogleTypeDate; + dayOfWeekValue?: string; + floatValue?: number; + integerValue?: string; + stringValue?: string; + timestampValue?: string; + timeValue?: Schema$GoogleTypeTimeOfDay; } /** * A value of a field, including its frequency. @@ -3266,11 +2510,11 @@ export namespace dlp_v2 { /** * How many times the value is contained in the field. */ - count: string; + count?: string; /** * A value contained in the field in question. */ - value: Schema$GooglePrivacyDlpV2Value; + value?: Schema$GooglePrivacyDlpV2Value; } /** * Message defining a list of words or phrases to search for in the data. @@ -3281,7 +2525,7 @@ export namespace dlp_v2 { * least one phrase and every phrase must contain at least 2 characters that * are letters or digits. [required] */ - words: string[]; + words?: string[]; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -3331,18 +2575,18 @@ export namespace dlp_v2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -3358,17 +2602,17 @@ export namespace dlp_v2 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * Represents a time of day. The date and time zone are either not significant @@ -3381,22 +2625,23 @@ export namespace dlp_v2 { * to allow the value "24:00:00" for scenarios like business * closing time. */ - hours: number; + hours?: number; /** * Minutes of hour of day. Must be from 0 to 59. */ - minutes: number; + minutes?: number; /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */ - nanos: number; + nanos?: number; /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. */ - seconds: number; + seconds?: number; } + export class Resource$Infotypes { root: Dlp; constructor(root: Dlp) { @@ -3424,30 +2669,42 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Infotypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Infotypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInfoTypesResponse>): void; + list( + params: Params$Resource$Infotypes$List, + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInfoTypesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInfoTypesResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Infotypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInfoTypesResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Infotypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Infotypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3471,6 +2728,26 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Infotypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional filter to only return infoTypes supported by certain parts of + * the API. Defaults to supported_by=INSPECT. + */ + filter?: string; + /** + * Optional BCP-47 language code for localized infoType friendly names. If + * omitted, or if localized strings are not available, en-US strings will be + * returned. + */ + languageCode?: string; + } + + export class Resource$Organizations { root: Dlp; deidentifyTemplates: Resource$Organizations$Deidentifytemplates; @@ -3487,6 +2764,8 @@ export namespace dlp_v2 { return this.root; } } + + export class Resource$Organizations$Deidentifytemplates { root: Dlp; constructor(root: Dlp) { @@ -3513,31 +2792,50 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Organizations$Deidentifytemplates$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Deidentifytemplates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + create( + params: Params$Resource$Organizations$Deidentifytemplates$Create, + callback: + BodyResponseCallback): + void; + create( + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Organizations$Deidentifytemplates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Deidentifytemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Deidentifytemplates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3574,28 +2872,40 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Deidentifytemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Organizations$Deidentifytemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Organizations$Deidentifytemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Organizations$Deidentifytemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Deidentifytemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Deidentifytemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3629,29 +2939,45 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Organizations$Deidentifytemplates$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Organizations$Deidentifytemplates$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Organizations$Deidentifytemplates$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: + BodyResponseCallback): + void; + get(paramsOrCallback?: + Params$Resource$Organizations$Deidentifytemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Deidentifytemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Deidentifytemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3689,30 +3015,47 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Organizations$Deidentifytemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Organizations$Deidentifytemplates$List, + options: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void; + list( + params: Params$Resource$Organizations$Deidentifytemplates$List, + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: + Params$Resource$Organizations$Deidentifytemplates$List| + BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Deidentifytemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Deidentifytemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3752,31 +3095,50 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Organizations$Deidentifytemplates$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Deidentifytemplates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + patch( + params: Params$Resource$Organizations$Deidentifytemplates$Patch, + callback: + BodyResponseCallback): + void; + patch( + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Organizations$Deidentifytemplates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Deidentifytemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Deidentifytemplates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3800,6 +3162,89 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Organizations$Deidentifytemplates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; + } + export interface Params$Resource$Organizations$Deidentifytemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and deidentify template to be deleted, + * for example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Deidentifytemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and deidentify template to be read, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Deidentifytemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional size of the page, can be limited by server. If zero server + * returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to + * `ListDeidentifyTemplates`. + */ + pageToken?: string; + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Organizations$Deidentifytemplates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of organization and deidentify template to be updated, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; + } + + export class Resource$Organizations$Inspecttemplates { root: Dlp; constructor(root: Dlp) { @@ -3826,31 +3271,49 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Organizations$Inspecttemplates$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Inspecttemplates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + create( + params: Params$Resource$Organizations$Inspecttemplates$Create, + callback: BodyResponseCallback): void; + create(callback: + BodyResponseCallback): + void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Organizations$Inspecttemplates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Inspecttemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Inspecttemplates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3887,28 +3350,40 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Inspecttemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Organizations$Inspecttemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Inspecttemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Organizations$Inspecttemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Inspecttemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Inspecttemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -3942,29 +3417,44 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Organizations$Inspecttemplates$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Organizations$Inspecttemplates$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Organizations$Inspecttemplates$Get, + callback: + BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Organizations$Inspecttemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Inspecttemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Inspecttemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4002,30 +3492,46 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Organizations$Inspecttemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Organizations$Inspecttemplates$List, + options: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Organizations$Inspecttemplates$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void; + list( + paramsOrCallback?: Params$Resource$Organizations$Inspecttemplates$List| + BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Inspecttemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Inspecttemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4063,31 +3569,48 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Organizations$Inspecttemplates$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Inspecttemplates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + patch( + params: Params$Resource$Organizations$Inspecttemplates$Patch, + callback: BodyResponseCallback): void; + patch(callback: + BodyResponseCallback): + void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Organizations$Inspecttemplates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Inspecttemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Inspecttemplates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4111,6 +3634,89 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Organizations$Inspecttemplates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; + } + export interface Params$Resource$Organizations$Inspecttemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and inspectTemplate to be deleted, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Inspecttemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and inspectTemplate to be read, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Organizations$Inspecttemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional size of the page, can be limited by server. If zero server + * returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to + * `ListInspectTemplates`. + */ + pageToken?: string; + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Organizations$Inspecttemplates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of organization and inspectTemplate to be updated, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; + } + + export class Resource$Projects { root: Dlp; @@ -4136,6 +3742,8 @@ export namespace dlp_v2 { return this.root; } } + + export class Resource$Projects$Content { root: Dlp; constructor(root: Dlp) { @@ -4163,30 +3771,46 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deidentify(params?: any, options?: MethodOptions): + deidentify( + params?: Params$Resource$Projects$Content$Deidentify, + options?: MethodOptions): AxiosPromise; deidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Content$Deidentify, + options: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyContentResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse>): void; + deidentify( + params: Params$Resource$Projects$Content$Deidentify, + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyContentResponse>): void; + deidentify(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse>): void; deidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Content$Deidentify| + BodyResponseCallback< + Schema$GooglePrivacyDlpV2DeidentifyContentResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyContentResponse>, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2DeidentifyContentResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Content$Deidentify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Content$Deidentify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4227,30 +3851,45 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - inspect(params?: any, options?: MethodOptions): + inspect( + params?: Params$Resource$Projects$Content$Inspect, + options?: MethodOptions): AxiosPromise; inspect( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Content$Inspect, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2InspectContentResponse>): void; + inspect( + params: Params$Resource$Projects$Content$Inspect, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2InspectContentResponse>): void; + inspect(callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2InspectContentResponse>): void; inspect( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Content$Inspect| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2InspectContentResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Content$Inspect; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Content$Inspect; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4288,30 +3927,46 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reidentify(params?: any, options?: MethodOptions): + reidentify( + params?: Params$Resource$Projects$Content$Reidentify, + options?: MethodOptions): AxiosPromise; reidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Content$Reidentify, + options: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ReidentifyContentResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse>): void; + reidentify( + params: Params$Resource$Projects$Content$Reidentify, + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ReidentifyContentResponse>): void; + reidentify(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse>): void; reidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Content$Reidentify| + BodyResponseCallback< + Schema$GooglePrivacyDlpV2ReidentifyContentResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ReidentifyContentResponse>, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ReidentifyContentResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Content$Reidentify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Content$Reidentify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4336,6 +3991,53 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Projects$Content$Deidentify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2DeidentifyContentRequest; + } + export interface Params$Resource$Projects$Content$Inspect { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2InspectContentRequest; + } + export interface Params$Resource$Projects$Content$Reidentify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2ReidentifyContentRequest; + } + + export class Resource$Projects$Deidentifytemplates { root: Dlp; constructor(root: Dlp) { @@ -4362,31 +4064,49 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Projects$Deidentifytemplates$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Deidentifytemplates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Deidentifytemplates$Create, + callback: + BodyResponseCallback): + void; + create( + callback: + BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Projects$Deidentifytemplates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deidentifytemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4423,28 +4143,39 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Deidentifytemplates$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Deidentifytemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Deidentifytemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Deidentifytemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deidentifytemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4478,29 +4209,44 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Deidentifytemplates$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Deidentifytemplates$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Deidentifytemplates$Get, + callback: + BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Deidentifytemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deidentifytemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4538,30 +4284,46 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Deidentifytemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Deidentifytemplates$List, + options: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void; + list( + params: Params$Resource$Projects$Deidentifytemplates$List, + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Projects$Deidentifytemplates$List| + BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListDeidentifyTemplatesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deidentifytemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4601,31 +4363,49 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Projects$Deidentifytemplates$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Deidentifytemplates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Deidentifytemplates$Patch, + callback: + BodyResponseCallback): + void; + patch( + callback: + BodyResponseCallback): + void; + patch( + paramsOrCallback?: Params$Resource$Projects$Deidentifytemplates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deidentifytemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deidentifytemplates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4649,6 +4429,89 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Projects$Deidentifytemplates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CreateDeidentifyTemplateRequest; + } + export interface Params$Resource$Projects$Deidentifytemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and deidentify template to be deleted, + * for example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and deidentify template to be read, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional size of the page, can be limited by server. If zero server + * returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to + * `ListDeidentifyTemplates`. + */ + pageToken?: string; + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Projects$Deidentifytemplates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of organization and deidentify template to be updated, for + * example `organizations/433245324/deidentifyTemplates/432452342` or + * projects/project-id/deidentifyTemplates/432452342. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest; + } + + export class Resource$Projects$Dlpjobs { root: Dlp; constructor(root: Dlp) { @@ -4676,28 +4539,39 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; cancel( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Dlpjobs$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Dlpjobs$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Dlpjobs$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Dlpjobs$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Dlpjobs$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4734,28 +4608,41 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Dlpjobs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Dlpjobs$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Dlpjobs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): + void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Dlpjobs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Dlpjobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4792,28 +4679,39 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Dlpjobs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Dlpjobs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Dlpjobs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Dlpjobs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Dlpjobs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4847,26 +4745,36 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Dlpjobs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Dlpjobs$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Dlpjobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Dlpjobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Dlpjobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4904,31 +4812,49 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Dlpjobs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Dlpjobs$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Dlpjobs$List, + callback: + BodyResponseCallback): + void; + list( + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Dlpjobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Dlpjobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Dlpjobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -4953,6 +4879,100 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Projects$Dlpjobs$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the DlpJob resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CancelDlpJobRequest; + } + export interface Params$Resource$Projects$Dlpjobs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CreateDlpJobRequest; + } + export interface Params$Resource$Projects$Dlpjobs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the DlpJob resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Dlpjobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the DlpJob resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Dlpjobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Allows filtering. Supported syntax: * Filter expressions are + * made up of one or more restrictions. * Restrictions can be combined by + * `AND` or `OR` logical operators. A sequence of restrictions implicitly + * uses `AND`. * A restriction has the form of ` `. + * * Supported fields/values for inspect jobs: - `state` - + * PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - + * DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The resource name + * of the trigger that created job. * Supported fields for risk analysis + * jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED * The operator + * must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND + * state = done * inspected_storage = cloud_storage OR inspected_storage = + * bigquery * inspected_storage = cloud_storage AND (state = done OR state = + * canceled) The length of this field should be no more than 500 + * characters. + */ + filter?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * The type of job. Defaults to `DlpJobType.INSPECT` + */ + type?: string; + } + + export class Resource$Projects$Image { root: Dlp; constructor(root: Dlp) { @@ -4980,31 +5000,49 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - redact(params?: any, options?: MethodOptions): + redact( + params?: Params$Resource$Projects$Image$Redact, + options?: MethodOptions): AxiosPromise; redact( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Image$Redact, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + redact( + params: Params$Resource$Projects$Image$Redact, + callback: + BodyResponseCallback): + void; + redact( + callback: BodyResponseCallback): void; redact( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Image$Redact| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Image$Redact; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Image$Redact; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5029,6 +5067,23 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Projects$Image$Redact { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2RedactImageRequest; + } + + export class Resource$Projects$Inspecttemplates { root: Dlp; constructor(root: Dlp) { @@ -5055,31 +5110,48 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Projects$Inspecttemplates$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Inspecttemplates$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + create( + params: Params$Resource$Projects$Inspecttemplates$Create, + callback: BodyResponseCallback): void; + create(callback: + BodyResponseCallback): + void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Inspecttemplates$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Inspecttemplates$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5116,28 +5188,39 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Inspecttemplates$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Inspecttemplates$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Inspecttemplates$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Inspecttemplates$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Inspecttemplates$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5171,29 +5254,44 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Inspecttemplates$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Inspecttemplates$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Inspecttemplates$Get, + callback: + BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Inspecttemplates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Inspecttemplates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5231,30 +5329,46 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Inspecttemplates$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Inspecttemplates$List, + options: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Projects$Inspecttemplates$List, + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void; + list(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void; + list( + paramsOrCallback?: Params$Resource$Projects$Inspecttemplates$List| + BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListInspectTemplatesResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Inspecttemplates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5292,31 +5406,48 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Projects$Inspecttemplates$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Inspecttemplates$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + patch( + params: Params$Resource$Projects$Inspecttemplates$Patch, + callback: BodyResponseCallback): void; + patch(callback: + BodyResponseCallback): + void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Inspecttemplates$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Inspecttemplates$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Inspecttemplates$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5340,6 +5471,89 @@ export namespace dlp_v2 { } } + export interface Params$Resource$Projects$Inspecttemplates$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CreateInspectTemplateRequest; + } + export interface Params$Resource$Projects$Inspecttemplates$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and inspectTemplate to be deleted, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Inspecttemplates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the organization and inspectTemplate to be read, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + */ + name?: string; + } + export interface Params$Resource$Projects$Inspecttemplates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional size of the page, can be limited by server. If zero server + * returns a page of max size 100. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to + * `ListInspectTemplates`. + */ + pageToken?: string; + /** + * The parent resource name, for example projects/my-project-id or + * organizations/my-org-id. + */ + parent?: string; + } + export interface Params$Resource$Projects$Inspecttemplates$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of organization and inspectTemplate to be updated, for + * example `organizations/433245324/inspectTemplates/432452342` or + * projects/project-id/inspectTemplates/432452342. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2UpdateInspectTemplateRequest; + } + + export class Resource$Projects$Jobtriggers { root: Dlp; constructor(root: Dlp) { @@ -5366,29 +5580,44 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Projects$Jobtriggers$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobtriggers$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobtriggers$Create, + callback: BodyResponseCallback): + void; + create(callback: BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Projects$Jobtriggers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobtriggers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5425,28 +5654,39 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobtriggers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Jobtriggers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobtriggers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Jobtriggers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobtriggers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5480,27 +5720,40 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Jobtriggers$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Jobtriggers$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Jobtriggers$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Projects$Jobtriggers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobtriggers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5539,30 +5792,45 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Jobtriggers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobtriggers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse>): void; + list( + params: Params$Resource$Projects$Jobtriggers$List, + callback: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListJobTriggersResponse>): void; + list(callback: BodyResponseCallback< + Schema$GooglePrivacyDlpV2ListJobTriggersResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobtriggers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GooglePrivacyDlpV2ListJobTriggersResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobtriggers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5600,29 +5868,44 @@ export namespace dlp_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Projects$Jobtriggers$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobtriggers$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + patch( + params: Params$Resource$Projects$Jobtriggers$Patch, + callback: BodyResponseCallback): + void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobtriggers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobtriggers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobtriggers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; const parameters = { options: Object.assign( @@ -5645,4 +5928,92 @@ export namespace dlp_v2 { } } } + + export interface Params$Resource$Projects$Jobtriggers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2CreateJobTriggerRequest; + } + export interface Params$Resource$Projects$Jobtriggers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobtriggers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobtriggers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional comma separated list of triggeredJob fields to order by, + * followed by 'asc/desc' postfix, i.e. `"create_time asc,name + * desc,schedule_mode asc"`. This list is case-insensitive. Example: `"name + * asc,schedule_mode desc, status desc"` Supported filters keys and values + * are: - `create_time`: corresponds to time the triggeredJob was created. + * - `update_time`: corresponds to time the triggeredJob was last updated. - + * `name`: corresponds to JobTrigger's display name. - `status`: corresponds + * to the triggeredJob status. + */ + orderBy?: string; + /** + * Optional size of the page, can be limited by a server. + */ + pageSize?: number; + /** + * Optional page token to continue retrieval. Comes from previous call to + * ListJobTriggers. `order_by` and `filter` should not change for subsequent + * calls, but can be omitted if token is specified. + */ + pageToken?: string; + /** + * The parent resource name, for example projects/my-project-id. + */ + parent?: string; + } + export interface Params$Resource$Projects$Jobtriggers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the project and the triggeredJob, for example + * `projects/dlp-test-project/jobTriggers/53234423`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GooglePrivacyDlpV2UpdateJobTriggerRequest; + } } diff --git a/src/apis/dlp/v2beta1.ts b/src/apis/dlp/v2beta1.ts deleted file mode 100644 index b29d809320f..00000000000 --- a/src/apis/dlp/v2beta1.ts +++ /dev/null @@ -1,3119 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace dlp_v2beta1 { - /** - * Cloud Data Loss Prevention (DLP) API - * - * Provides methods for detection, risk analysis, and de-identification of - * privacy-sensitive fragments in text, images, and Google Cloud Platform - * storage repositories. - * - * @example - * const google = require('googleapis'); - * const dlp = google.dlp('v2beta1'); - * - * @namespace dlp - * @type {Function} - * @version v2beta1 - * @variation v2beta1 - * @param {object=} options Options for Dlp - */ - export class Dlp { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - content: Resource$Content; - dataSource: Resource$Datasource; - inspect: Resource$Inspect; - riskAnalysis: Resource$Riskanalysis; - rootCategories: Resource$Rootcategories; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.content = new Resource$Content(this); - this.dataSource = new Resource$Datasource(this); - this.inspect = new Resource$Inspect(this); - this.riskAnalysis = new Resource$Riskanalysis(this); - this.rootCategories = new Resource$Rootcategories(this); - } - - getRoot() { - return this.root; - } - } - - /** - * The request message for Operations.CancelOperation. - */ - export interface Schema$GoogleLongrunningCancelOperationRequest {} - /** - * The response message for Operations.ListOperations. - */ - export interface Schema$GoogleLongrunningListOperationsResponse { - /** - * The standard List next-page token. - */ - nextPageToken: string; - /** - * A list of operations that matches the specified filter in the request. - */ - operations: Schema$GoogleLongrunningOperation[]; - } - /** - * This resource represents a long-running operation that is the result of a - * network API call. - */ - export interface Schema$GoogleLongrunningOperation { - /** - * If the value is `false`, it means the operation is still in progress. If - * `true`, the operation is completed, and either `error` or `response` is - * available. - */ - done: boolean; - /** - * The error result of the operation in case of failure or cancellation. - */ - error: Schema$GoogleRpcStatus; - /** - * This field will contain an InspectOperationMetadata object for - * `inspect.operations.create` or a RiskAnalysisOperationMetadata object for - * `dataSource.analyze`. This will always be returned with the Operation. - */ - metadata: any; - /** - * The server-assigned name. The `name` should have the format of - * `inspect/operations/<identifier>`. - */ - name: string; - /** - * This field will contain an InspectOperationResult object for - * `inspect.operations.create` or a RiskAnalysisOperationResult object for - * `dataSource.analyze`. - */ - response: any; - } - /** - * Request for creating a risk analysis operation. - */ - export interface Schema$GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest { - /** - * Privacy metric to compute. - */ - privacyMetric: Schema$GooglePrivacyDlpV2beta1PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - sourceTable: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * An auxiliary table contains statistical information on the relative - * frequency of different quasi-identifiers values. It has one or several - * quasi-identifiers columns, and one column that indicates the relative - * frequency of each quasi-identifier tuple. If a tuple is present in the data - * but not in the auxiliary table, the corresponding relative frequency is - * assumed to be zero (and thus, the tuple is highly reidentifiable). - */ - export interface Schema$GooglePrivacyDlpV2beta1AuxiliaryTable { - /** - * Quasi-identifier columns. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1QuasiIdField[]; - /** - * The relative frequency column must contain a floating-point number - * between 0 and 1 (inclusive). Null values are assumed to be zero. - * [required] - */ - relativeFrequency: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * Auxiliary table location. [required] - */ - table: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * LINT.IfChange Row key for identifying a record in BigQuery table. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryKey { - /** - * Absolute number of the row from the beginning of the table at the time of - * scanning. - */ - rowNumber: string; - /** - * Complete BigQuery table reference. - */ - tableReference: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Options defining BigQuery table and row identifiers. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryOptions { - /** - * References to fields uniquely identifying rows within the table. Nested - * fields in the format, like `person.birthdate.year`, are allowed. - */ - identifyingFields: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Complete BigQuery table reference. - */ - tableReference: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Message defining the location of a BigQuery table. A table is uniquely - * identified by its project_id, dataset_id, and table_name. Within a query a - * table is often referenced with a string in the format of: - * `<project_id>:<dataset_id>.<table_id>` or - * `<project_id>.<dataset_id>.<table_id>`. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryTable { - /** - * Dataset ID of the table. - */ - datasetId: string; - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - */ - projectId: string; - /** - * Name of the table. - */ - tableId: string; - } - /** - * Buckets represented as ranges, along with replacement values. Ranges must - * be non-overlapping. - */ - export interface Schema$GooglePrivacyDlpV2beta1Bucket { - /** - * Upper bound of the range, exclusive; type must match min. - */ - max: Schema$GooglePrivacyDlpV2beta1Value; - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - */ - min: Schema$GooglePrivacyDlpV2beta1Value; - /** - * Replacement value for this bucket. If not provided the default behavior - * will be to hyphenate the min-max range. - */ - replacementValue: Schema$GooglePrivacyDlpV2beta1Value; - } - /** - * Generalization function that buckets values based on ranges. The ranges and - * replacement values are dynamically provided by the user for custom - * behavior, such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH This - * can be used on data of type: number, long, string, timestamp. If the bound - * `Value` type differs from the type of data being transformed, we will first - * attempt converting the type of the data to be transformed to match the type - * of the bound before comparing. - */ - export interface Schema$GooglePrivacyDlpV2beta1BucketingConfig { - buckets: Schema$GooglePrivacyDlpV2beta1Bucket[]; - } - /** - * Compute numerical stats over an individual column, including number of - * distinct values and value count distribution. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsConfig { - /** - * Field to compute categorical stats on. All column types are supported - * except for arrays and structs. However, it may be more informative to use - * NumericalStats when the field type is supported, depending on the data. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Histogram bucket of value frequencies in the column. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of value frequencies in this bucket. The total number of values - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1ValueFrequency[]; - /** - * Lower bound on the value frequency of the values in this bucket. - */ - valueFrequencyLowerBound: string; - /** - * Upper bound on the value frequency of the values in this bucket. - */ - valueFrequencyUpperBound: string; - } - /** - * Result of the categorical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsResult { - /** - * Histogram of value frequencies in the column. - */ - valueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket[]; - } - /** - * Info Type Category description. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoryDescription { - /** - * Human readable form of the category name. - */ - displayName: string; - /** - * Internal name of the category. - */ - name: string; - } - /** - * Partially mask a string by replacing a given number of characters with a - * fixed character. Masking can start from the beginning or end of the string. - * This can be used on data of any type (numbers, longs, and so on) and when - * de-identifying structured data we'll attempt to preserve the original - * data's type. (This allows you to take a long like 123 and modify it to - * a string like **3. - */ - export interface Schema$GooglePrivacyDlpV2beta1CharacterMaskConfig { - /** - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` - * and mask 5 chars with * we would produce ***-*55-5555. - */ - charactersToIgnore: Schema$GooglePrivacyDlpV2beta1CharsToIgnore[]; - /** - * Character to mask the sensitive values&mdash;for example, - * "*" for an alphabetic string such as name, or "0" for - * a numeric string such as ZIP code or credit card number. String must have - * length 1. If not supplied, we will default to "*" for strings, - * 0 for digits. - */ - maskingCharacter: string; - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - */ - numberToMask: number; - /** - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 If `masking_character` is - * '*', `number_to_mask` is 3, and `reverse_order` is true, then - * 12345 -> 12*** - */ - reverseOrder: boolean; - } - /** - * Characters to skip when doing deidentification of a value. These will be - * left alone and skipped. - */ - export interface Schema$GooglePrivacyDlpV2beta1CharsToIgnore { - charactersToSkip: string; - commonCharactersToIgnore: string; - } - /** - * Record key for a finding in a Cloud Storage file. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStorageKey { - /** - * Path to the file. - */ - filePath: string; - /** - * Byte offset of the referenced data in the file. - */ - startOffset: string; - } - /** - * Options defining a file or a set of files (path ending with *) within a - * Google Cloud Storage bucket. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStorageOptions { - fileSet: Schema$GooglePrivacyDlpV2beta1FileSet; - } - /** - * A location in Cloud Storage. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStoragePath { - /** - * The url, in the format of `gs://bucket/<path>`. - */ - path: string; - } - /** - * Represents a color in the RGB color space. - */ - export interface Schema$GooglePrivacyDlpV2beta1Color { - /** - * The amount of blue in the color as a value in the interval [0, 1]. - */ - blue: number; - /** - * The amount of green in the color as a value in the interval [0, 1]. - */ - green: number; - /** - * The amount of red in the color as a value in the interval [0, 1]. - */ - red: number; - } - /** - * The field type of `value` and `field` do not need to match to be considered - * equal, but not all comparisons are possible. A `value` of type: - - * `string` can be compared against all other types - `boolean` can only be - * compared against other booleans - `integer` can be compared against doubles - * or a string if the string value can be parsed as an integer. - `double` can - * be compared against integers or a string if the string can be parsed as a - * double. - `Timestamp` can be compared against strings in RFC 3339 date - * string format. - `TimeOfDay` can be compared against timestamps and strings - * in the format of 'HH:mm:ss'. If we fail to compare do to type - * mismatch, a warning will be given and the condition will evaluate to false. - */ - export interface Schema$GooglePrivacyDlpV2beta1Condition { - /** - * Field within the record this condition is evaluated against. [required] - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * Operator used to compare the field or info type to the value. [required] - */ - operator: string; - /** - * Value to compare against. [Required, except for `EXISTS` tests.] - */ - value: Schema$GooglePrivacyDlpV2beta1Value; - } - export interface Schema$GooglePrivacyDlpV2beta1Conditions { - conditions: Schema$GooglePrivacyDlpV2beta1Condition[]; - } - /** - * Container structure for the content to inspect. - */ - export interface Schema$GooglePrivacyDlpV2beta1ContentItem { - /** - * Content data to inspect or redact. - */ - data: string; - /** - * Structured content for inspection. - */ - table: Schema$GooglePrivacyDlpV2beta1Table; - /** - * Type of the content, as defined in Content-Type HTTP header. Supported - * types are: all "text" types, octet streams, PNG images, JPEG - * images. - */ - type: string; - /** - * String data to inspect or redact. - */ - value: string; - } - /** - * Request for scheduling a scan of a data subset from a Google Platform data - * repository. - */ - export interface Schema$GooglePrivacyDlpV2beta1CreateInspectOperationRequest { - /** - * Configuration for the inspector. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * Additional configuration settings for long running operations. - */ - operationConfig: Schema$GooglePrivacyDlpV2beta1OperationConfig; - /** - * Optional location to store findings. - */ - outputConfig: Schema$GooglePrivacyDlpV2beta1OutputStorageConfig; - /** - * Specification of the data set to process. - */ - storageConfig: Schema$GooglePrivacyDlpV2beta1StorageConfig; - } - /** - * Pseudonymization method that generates surrogates via cryptographic - * hashing. Uses SHA-256. Outputs a 32 byte digest as an uppercase hex string - * (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). Currently, only string and - * integer values can be hashed. - */ - export interface Schema$GooglePrivacyDlpV2beta1CryptoHashConfig { - /** - * The key used by the hash function. - */ - cryptoKey: Schema$GooglePrivacyDlpV2beta1CryptoKey; - } - /** - * This is a data encryption key (DEK) (as opposed to a key encryption key - * (KEK) stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an - * appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker - * cannot unwrap the data crypto key. - */ - export interface Schema$GooglePrivacyDlpV2beta1CryptoKey { - kmsWrapped: Schema$GooglePrivacyDlpV2beta1KmsWrappedCryptoKey; - transient: Schema$GooglePrivacyDlpV2beta1TransientCryptoKey; - unwrapped: Schema$GooglePrivacyDlpV2beta1UnwrappedCryptoKey; - } - /** - * Replaces an identifier with a surrogate using FPE with the FFX mode of - * operation. The identifier must be representable by the US-ASCII character - * set. For a given crypto key and context, the same identifier will be - * replaced with the same surrogate. Identifiers must be at least two - * characters long. In the case that the identifier is the empty string, it - * will be skipped. - */ - export interface Schema$GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig { - commonAlphabet: string; - /** - * A context may be used for higher security since the same identifier in - * two different contexts likely will be given a distinct surrogate. The - * principle is that the likeliness is inversely related to the ratio of the - * number of distinct identifiers per context over the number of possible - * surrogates: As long as this ratio is small, the likehood is large. If - * the context is not set, a default tweak will be used. If the context is - * set but: 1. there is no record present when transforming a given value - * or 1. the field is not present when transforming a given value, a - * default tweak will be used. Note that case (1) is expected when an - * `InfoTypeTransformation` is applied to both structured and non-structured - * `ContentItem`s. Currently, the referenced field may be of value type - * integer or string. The tweak is constructed as a sequence of bytes in - * big endian byte order such that: - a 64 bit integer is encoded followed - * by a single byte of value 1 - a string is encoded in UTF-8 format - * followed by a single byte of value 2 This is also known as the - * 'tweak', as in tweakable encryption. - */ - context: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * The key used by the encryption algorithm. [required] - */ - cryptoKey: Schema$GooglePrivacyDlpV2beta1CryptoKey; - /** - * This is supported by mapping these to the alphanumeric characters that - * the FFX mode natively supports. This happens before/after - * encryption/decryption. Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. This must be encoded - * as ASCII. The order of characters does not matter. - */ - customAlphabet: string; - /** - * The native way to select the alphabet. Must be in the range [2, 62]. - */ - radix: number; - /** - * The custom info type to annotate the surrogate with. This annotation will - * be applied to the surrogate by prefixing it with the name of the custom - * info type followed by the number of characters comprising the surrogate. - * The following scheme defines the format: - * info_type_name(surrogate_character_count):surrogate For example, if the - * name of custom info type is 'MY_TOKEN_INFO_TYPE' and the - * surrogate is 'abc', the full replacement value will be: - * 'MY_TOKEN_INFO_TYPE(3):abc' This annotation identifies the - * surrogate when inspecting content using the custom info type - * [`SurrogateType`](/dlp/docs/reference/rest/v2beta1/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may find - * a surrogate that does not correspond to an actual identifier. Therefore, - * choose your custom info type name carefully after considering what your - * data looks like. One way to select a name that has a high chance of - * yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. For example, assuming - * your data is entered from a regular ASCII keyboard, the symbol with the - * hex code point 29DD might be used like so: ⧝MY_TOKEN_TYPE - */ - surrogateInfoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * Custom information type provided by the user. Used to find domain-specific - * sensitive information configurable to the data in question. - */ - export interface Schema$GooglePrivacyDlpV2beta1CustomInfoType { - /** - * Dictionary-based custom info type. - */ - dictionary: Schema$GooglePrivacyDlpV2beta1Dictionary; - /** - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Surrogate info type. - */ - surrogateType: Schema$GooglePrivacyDlpV2beta1SurrogateType; - } - /** - * Record key for a finding in Cloud Datastore. - */ - export interface Schema$GooglePrivacyDlpV2beta1DatastoreKey { - /** - * Datastore entity key. - */ - entityKey: Schema$GooglePrivacyDlpV2beta1Key; - } - /** - * Options defining a data set within Google Cloud Datastore. - */ - export interface Schema$GooglePrivacyDlpV2beta1DatastoreOptions { - /** - * The kind to process. - */ - kind: Schema$GooglePrivacyDlpV2beta1KindExpression; - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - */ - partitionId: Schema$GooglePrivacyDlpV2beta1PartitionId; - /** - * Properties to scan. If none are specified, all properties will be scanned - * by default. - */ - projection: Schema$GooglePrivacyDlpV2beta1Projection[]; - } - /** - * High level summary of deidentification. - */ - export interface Schema$GooglePrivacyDlpV2beta1DeidentificationSummary { - /** - * Transformations applied to the dataset. - */ - transformationSummaries: - Schema$GooglePrivacyDlpV2beta1TransformationSummary[]; - /** - * Total size in bytes that were transformed in some way. - */ - transformedBytes: string; - } - /** - * The configuration that controls how the data will change. - */ - export interface Schema$GooglePrivacyDlpV2beta1DeidentifyConfig { - /** - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - */ - infoTypeTransformations: - Schema$GooglePrivacyDlpV2beta1InfoTypeTransformations; - /** - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming a - * column within a table. - */ - recordTransformations: Schema$GooglePrivacyDlpV2beta1RecordTransformations; - } - /** - * Request to de-identify a list of items. - */ - export interface Schema$GooglePrivacyDlpV2beta1DeidentifyContentRequest { - /** - * Configuration for the de-identification of the list of content items. - */ - deidentifyConfig: Schema$GooglePrivacyDlpV2beta1DeidentifyConfig; - /** - * Configuration for the inspector. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * The list of items to inspect. Up to 100 are allowed per request. All - * items will be treated as text/*. - */ - items: Schema$GooglePrivacyDlpV2beta1ContentItem[]; - } - /** - * Results of de-identifying a list of items. - */ - export interface Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse { - items: Schema$GooglePrivacyDlpV2beta1ContentItem[]; - /** - * A review of the transformations that took place for each item. - */ - summaries: Schema$GooglePrivacyDlpV2beta1DeidentificationSummary[]; - } - /** - * Custom information type based on a dictionary of words or phrases. This can - * be used to match sensitive information specific to the data, such as a list - * of employee IDs or job titles. Dictionary words are case-insensitive and - * all characters other than letters and digits in the unicode [Basic - * Multilingual - * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) - * will be replaced with whitespace when scanning for matches, so the - * dictionary phrase "Sam Johnson" will match all three phrases - * "sam johnson", "Sam, Johnson", and "Sam - * (Johnson)". Additionally, the characters surrounding any match must be - * of a different type than the adjacent characters within the word, so - * letters must be next to non-letters and digits next to non-digits. For - * example, the dictionary word "jen" will match the first three - * letters of the text "jen123" but will return no matches for - * "jennifer". Dictionary words containing a large number of - * characters that are not letters or digits may result in unexpected findings - * because such characters are treated as whitespace. - */ - export interface Schema$GooglePrivacyDlpV2beta1Dictionary { - /** - * List of words or phrases to search for. - */ - wordList: Schema$GooglePrivacyDlpV2beta1WordList; - } - /** - * An entity in a dataset is a field or set of fields that correspond to a - * single person. For example, in medical records the `EntityId` might be a - * patient identifier, or for financial records it might be an account - * identifier. This message is used when generalizations or analysis must be - * consistent across multiple rows pertaining to the same entity. - */ - export interface Schema$GooglePrivacyDlpV2beta1EntityId { - /** - * Composite key indicating which field contains the entity identifier. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * A collection of expressions - */ - export interface Schema$GooglePrivacyDlpV2beta1Expressions { - conditions: Schema$GooglePrivacyDlpV2beta1Conditions; - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - */ - logicalOperator: string; - } - /** - * General identifier of a data field in a storage service. - */ - export interface Schema$GooglePrivacyDlpV2beta1FieldId { - /** - * Name describing the field. - */ - columnName: string; - } - /** - * The transformation to apply to the field. - */ - export interface Schema$GooglePrivacyDlpV2beta1FieldTransformation { - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. [optional] Example Use - * Cases: - Apply a different bucket transformation to an age column if the - * zip code column for the same record is within a specific range. - Redact - * a field if the date of birth field is greater than 85. - */ - condition: Schema$GooglePrivacyDlpV2beta1RecordCondition; - /** - * Input field(s) to apply the transformation to. [required] - */ - fields: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Treat the contents of the field as free text, and selectively transform - * content that matches an `InfoType`. - */ - infoTypeTransformations: - Schema$GooglePrivacyDlpV2beta1InfoTypeTransformations; - /** - * Apply the transformation to the entire field. - */ - primitiveTransformation: - Schema$GooglePrivacyDlpV2beta1PrimitiveTransformation; - } - /** - * Set of files to scan. - */ - export interface Schema$GooglePrivacyDlpV2beta1FileSet { - /** - * The url, in the format `gs://<bucket>/<path>`. Trailing - * wildcard in the path is allowed. - */ - url: string; - } - /** - * Represents a piece of potentially sensitive content. - */ - export interface Schema$GooglePrivacyDlpV2beta1Finding { - /** - * Timestamp when finding was detected. - */ - createTime: string; - /** - * The type of content that might have been found. Provided if requested by - * the `InspectConfig`. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Estimate of how likely it is that the `info_type` is correct. - */ - likelihood: string; - /** - * Where the content was found. - */ - location: Schema$GooglePrivacyDlpV2beta1Location; - /** - * The content that was found. Even if the content is not textual, it may be - * converted to a textual representation here. Provided if requested by the - * `InspectConfig` and the finding is less than or equal to 4096 bytes long. - * If the finding exceeds 4096 bytes in length, the quote may be omitted. - */ - quote: string; - } - /** - * Buckets values based on fixed size ranges. The Bucketing transformation can - * provide all of this functionality, but requires more configuration. This - * message is provided as a convenience to the user for simple bucketing - * strategies. The resulting value will be a hyphenated string of - * lower_bound-upper_bound. This can be used on data of type: double, long. If - * the bound Value type differs from the type of data being transformed, we - * will first attempt converting the type of the data to be transformed to - * match the type of the bound before comparing. - */ - export interface Schema$GooglePrivacyDlpV2beta1FixedSizeBucketingConfig { - /** - * Size of each bucket (except for minimum and maximum buckets). So if - * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required]. - */ - bucketSize: number; - /** - * Lower bound value of buckets. All values less than `lower_bound` are - * grouped together into a single bucket; for example if `lower_bound` = 10, - * then all values less than 10 are replaced with the value “-10”. - * [Required]. - */ - lowerBound: Schema$GooglePrivacyDlpV2beta1Value; - /** - * Upper bound value of buckets. All values greater than upper_bound are - * grouped together into a single bucket; for example if `upper_bound` = 89, - * then all values greater than 89 are replaced with the value “89+”. - * [Required]. - */ - upperBound: Schema$GooglePrivacyDlpV2beta1Value; - } - /** - * Bounding box encompassing detected text within an image. - */ - export interface Schema$GooglePrivacyDlpV2beta1ImageLocation { - /** - * Height of the bounding box in pixels. - */ - height: number; - /** - * Left coordinate of the bounding box. (0,0) is upper left. - */ - left: number; - /** - * Top coordinate of the bounding box. (0,0) is upper left. - */ - top: number; - /** - * Width of the bounding box in pixels. - */ - width: number; - } - /** - * Configuration for determining how redaction of images should occur. - */ - export interface Schema$GooglePrivacyDlpV2beta1ImageRedactionConfig { - /** - * Only one per info_type should be provided per request. If not specified, - * and redact_all_text is false, the DLP API will redact all text that it - * matches against all info_types that are found, but not specified in - * another ImageRedactionConfig. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. - */ - redactAllText: boolean; - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - */ - redactionColor: Schema$GooglePrivacyDlpV2beta1Color; - } - /** - * Type of information detected by the API. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoType { - /** - * Name of the information type. - */ - name: string; - } - /** - * Description of the information type (infoType). - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeDescription { - /** - * List of categories this infoType belongs to. - */ - categories: Schema$GooglePrivacyDlpV2beta1CategoryDescription[]; - /** - * Human readable form of the infoType name. - */ - displayName: string; - /** - * Internal name of the infoType. - */ - name: string; - } - /** - * Max findings configuration per info type, per content item or long running - * operation. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeLimit { - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that are - * found but not specified in another InfoTypeLimit. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Max findings limit for the given infoType. - */ - maxFindings: number; - } - /** - * Statistics regarding a specific InfoType. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeStatistics { - /** - * Number of findings for this info type. - */ - count: string; - /** - * The type of finding this stat is for. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * A transformation to apply to text that is identified as a specific - * info_type. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeTransformation { - /** - * Info types to apply the transformation to. Empty list will match all - * available info types for this transformation. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta1InfoType[]; - /** - * Primitive transformation to apply to the info type. [required] - */ - primitiveTransformation: - Schema$GooglePrivacyDlpV2beta1PrimitiveTransformation; - } - /** - * A type of transformation that will scan unstructured text and apply various - * `PrimitiveTransformation`s to each finding, where the transformation is - * applied to only values that were identified as a specific info_type. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeTransformations { - /** - * Transformation for each info type. Cannot specify more than one for a - * given info type. [required] - */ - transformations: Schema$GooglePrivacyDlpV2beta1InfoTypeTransformation[]; - } - /** - * Configuration description of the scanning process. When used with - * redactContent only info_types and min_likelihood are currently used. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectConfig { - /** - * Custom info types provided by the user. - */ - customInfoTypes: Schema$GooglePrivacyDlpV2beta1CustomInfoType[]; - /** - * When true, excludes type information of the findings. - */ - excludeTypes: boolean; - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see Finding.quote. - */ - includeQuote: boolean; - /** - * Configuration of findings limit given for specified info types. - */ - infoTypeLimits: Schema$GooglePrivacyDlpV2beta1InfoTypeLimit[]; - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or found in documentation. - * Empty info_types runs all enabled detectors. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta1InfoType[]; - /** - * Limits the number of findings per content item or long running operation. - */ - maxFindings: number; - /** - * Only returns findings equal or above this threshold. - */ - minLikelihood: string; - } - /** - * Request to search for potentially sensitive info in a list of items. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectContentRequest { - /** - * Configuration for the inspector. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * The list of items to inspect. Items in a single request are considered - * "related" unless inspect_config.independent_inputs is true. Up - * to 100 are allowed per request. - */ - items: Schema$GooglePrivacyDlpV2beta1ContentItem[]; - } - /** - * Results of inspecting a list of items. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectContentResponse { - /** - * Each content_item from the request has a result in this list, in the same - * order as the request. - */ - results: Schema$GooglePrivacyDlpV2beta1InspectResult[]; - } - /** - * Metadata returned within GetOperation for an inspect request. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectOperationMetadata { - /** - * The time which this request was started. - */ - createTime: string; - infoTypeStats: Schema$GooglePrivacyDlpV2beta1InfoTypeStatistics[]; - /** - * Total size in bytes that were processed. - */ - processedBytes: string; - /** - * The inspect config used to create the Operation. - */ - requestInspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * Optional location to store findings. - */ - requestOutputConfig: Schema$GooglePrivacyDlpV2beta1OutputStorageConfig; - /** - * The storage config used to create the Operation. - */ - requestStorageConfig: Schema$GooglePrivacyDlpV2beta1StorageConfig; - /** - * Estimate of the number of bytes to process. - */ - totalEstimatedBytes: string; - } - /** - * The operational data. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectOperationResult { - /** - * The server-assigned name, which is only unique within the same service - * that originally returns it. If you use the default HTTP mapping, the - * `name` should have the format of `inspect/results/{id}`. - */ - name: string; - } - /** - * All the findings for a single scanned item. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectResult { - /** - * List of findings for an item. - */ - findings: Schema$GooglePrivacyDlpV2beta1Finding[]; - /** - * If true, then this item might have more findings than were returned, and - * the findings returned are an arbitrary subset of all findings. The - * findings list might be truncated because the input items were too large, - * or because the server reached the maximum amount of resources allowed for - * a single API call. For best results, divide the input into smaller - * batches. - */ - findingsTruncated: boolean; - } - /** - * k-anonymity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityConfig { - /** - * Optional message indicating that each distinct entity_id should not - * contribute to the k-anonymity count more than once per equivalence class. - * If an entity_id appears on several rows with different quasi-identifier - * tuples, it will contribute to each count exactly once. This can lead to - * unexpected results. Consider a table where ID 1 is associated to - * quasi-identifier "foo", ID 2 to "bar", and ID 3 to - * *both* quasi-identifiers "foo" and "bar" (on separate - * rows), and where this ID is used as entity_id. Then, the anonymity value - * associated to ID 3 will be 2, even if it is the only ID to be associated - * to both values "foo" and "bar". - */ - entityId: Schema$GooglePrivacyDlpV2beta1EntityId; - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within a - * repeated field. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1FieldId[]; - } - /** - * The set of columns' values that share the same k-anonymity value. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass { - /** - * Size of the equivalence class, for example number of rows with the above - * set of values. - */ - equivalenceClassSize: string; - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Histogram bucket of equivalence class sizes in the table. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass[]; - /** - * Lower bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeLowerBound: string; - /** - * Upper bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeUpperBound: string; - } - /** - * Result of the k-anonymity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityResult { - /** - * Histogram of k-anonymity equivalence classes. - */ - equivalenceClassHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1KAnonymityHistogramBucket[]; - } - /** - * A unique identifier for a Datastore entity. If a key's partition ID or - * any of its path kinds or names are reserved/read-only, the key is - * reserved/read-only. A reserved/read-only key is forbidden in certain - * documented contexts. - */ - export interface Schema$GooglePrivacyDlpV2beta1Key { - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. Queries are scoped to a single partition. - */ - partitionId: Schema$GooglePrivacyDlpV2beta1PartitionId; - /** - * The entity path. An entity path consists of one or more elements composed - * of a kind and a string or numerical identifier, which identify entities. - * The first element identifies a _root entity_, the second element - * identifies a _child_ of the root entity, the third element identifies a - * child of the second entity, and so forth. The entities identified by all - * prefixes of the path are called the element's _ancestors_. A path - * can never be empty, and a path can have at most 100 elements. - */ - path: Schema$GooglePrivacyDlpV2beta1PathElement[]; - } - /** - * A representation of a Datastore kind. - */ - export interface Schema$GooglePrivacyDlpV2beta1KindExpression { - /** - * The name of the kind. - */ - name: string; - } - /** - * Reidentifiability metric. This corresponds to a risk model similar to what - * is called "journalist risk" in the literature, except the attack - * dataset is statistically modeled instead of being perfectly known. This can - * be done using publicly available data (like the US Census), or using a - * custom statistical model (indicated as one or several BigQuery tables), or - * by extrapolating from the distribution of values in the input dataset. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationConfig { - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - */ - auxiliaryTables: Schema$GooglePrivacyDlpV2beta1AuxiliaryTable[]; - /** - * Fields considered to be quasi-identifiers. No two columns can have the - * same tag. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1TaggedField[]; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Required if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - */ - regionCode: string; - } - /** - * A KMapEstimationHistogramBucket message with the following values: - * min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42 - * records whose quasi-identifier values correspond to 3, 4 or 5 people in the - * overlying population. An important particular case is when min_anonymity = - * max_anonymity = 1: the frequency field then corresponds to the number of - * uniquely identifiable records. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket { - /** - * Number of records within these anonymity bounds. - */ - bucketSize: string; - /** - * Sample of quasi-identifier tuple values in this bucket. The total number - * of classes returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues[]; - /** - * Always greater than or equal to min_anonymity. - */ - maxAnonymity: string; - /** - * Always positive. - */ - minAnonymity: string; - } - /** - * A tuple of values for the quasi-identifier columns. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues { - /** - * The estimated anonymity for these quasi-identifier values. - */ - estimatedAnonymity: string; - /** - * The quasi-identifier values. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Result of the reidentifiability analysis. Note that these results are an - * estimation, not exact values. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationResult { - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: {min_anonymity: 1, - * max_anonymity: 1, frequency: 17} {min_anonymity: 2, max_anonymity: 3, - * frequency: 42} {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - */ - kMapEstimationHistogram: - Schema$GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket[]; - } - /** - * Include to use an existing data crypto key wrapped by KMS. Authorization - * requires the following IAM permissions when sending a request to perform a - * crypto transformation using a kms-wrapped crypto key: dlp.kms.encrypt - */ - export interface Schema$GooglePrivacyDlpV2beta1KmsWrappedCryptoKey { - /** - * The resource name of the KMS CryptoKey to use for unwrapping. [required] - */ - cryptoKeyName: string; - /** - * The wrapped data crypto key. [required] - */ - wrappedKey: string; - } - /** - * l-diversity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityConfig { - /** - * Set of quasi-identifiers indicating how equivalence classes are defined - * for the l-diversity computation. When multiple fields are specified, they - * are considered a single composite key. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Sensitive field for computing the l-value. - */ - sensitiveAttribute: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * The set of columns' values that share the same l-diversity value. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityEquivalenceClass { - /** - * Size of the k-anonymity equivalence class. - */ - equivalenceClassSize: string; - /** - * Number of distinct sensitive values in this equivalence class. - */ - numDistinctSensitiveValues: string; - /** - * Quasi-identifier values defining the k-anonymity equivalence class. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - /** - * Estimated frequencies of top sensitive values. - */ - topSensitiveValues: Schema$GooglePrivacyDlpV2beta1ValueFrequency[]; - } - /** - * Histogram bucket of sensitive value frequencies in the table. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1LDiversityEquivalenceClass[]; - /** - * Lower bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyLowerBound: string; - /** - * Upper bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyUpperBound: string; - } - /** - * Result of the l-diversity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityResult { - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - */ - sensitiveValueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1LDiversityHistogramBucket[]; - } - /** - * Response to the ListInfoTypes request. - */ - export interface Schema$GooglePrivacyDlpV2beta1ListInfoTypesResponse { - /** - * Set of sensitive info types belonging to a category. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta1InfoTypeDescription[]; - } - /** - * Response to the ListInspectFindings request. - */ - export interface Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse { - /** - * If not empty, indicates that there may be more results that match the - * request; this value should be passed in a new - * `ListInspectFindingsRequest`. - */ - nextPageToken: string; - /** - * The results. - */ - result: Schema$GooglePrivacyDlpV2beta1InspectResult; - } - /** - * Response for ListRootCategories request. - */ - export interface Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse { - /** - * List of all into type categories supported by the API. - */ - categories: Schema$GooglePrivacyDlpV2beta1CategoryDescription[]; - } - /** - * Specifies the location of the finding. - */ - export interface Schema$GooglePrivacyDlpV2beta1Location { - /** - * Zero-based byte offsets delimiting the finding. These are relative to the - * finding's containing element. Note that when the content is not - * textual, this references the UTF-8 encoded textual representation of the - * content. Omitted if content is an image. - */ - byteRange: Schema$GooglePrivacyDlpV2beta1Range; - /** - * Unicode character offsets delimiting the finding. These are relative to - * the finding's containing element. Provided when the content is text. - */ - codepointRange: Schema$GooglePrivacyDlpV2beta1Range; - /** - * The pointer to the property or cell that contained the finding. Provided - * when the finding's containing element is a cell in a table or a - * property of storage object. - */ - fieldId: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * The area within the image that contained the finding. Provided when the - * content is an image. - */ - imageBoxes: Schema$GooglePrivacyDlpV2beta1ImageLocation[]; - /** - * The pointer to the record in storage that contained the field the finding - * was found in. Provided when the finding's containing element is a - * property of a storage object. - */ - recordKey: Schema$GooglePrivacyDlpV2beta1RecordKey; - /** - * The pointer to the row of the table that contained the finding. Provided - * when the finding's containing element is a cell of a table. - */ - tableLocation: Schema$GooglePrivacyDlpV2beta1TableLocation; - } - /** - * Compute numerical stats over an individual column, including min, max, and - * quantiles. - */ - export interface Schema$GooglePrivacyDlpV2beta1NumericalStatsConfig { - /** - * Field to compute numerical stats on. Supported types are integer, float, - * date, datetime, timestamp, time. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Result of the numerical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1NumericalStatsResult { - /** - * Maximum value appearing in the column. - */ - maxValue: Schema$GooglePrivacyDlpV2beta1Value; - /** - * Minimum value appearing in the column. - */ - minValue: Schema$GooglePrivacyDlpV2beta1Value; - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - */ - quantileValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Additional configuration for inspect long running operations. - */ - export interface Schema$GooglePrivacyDlpV2beta1OperationConfig { - /** - * Max number of findings per file, Datastore entity, or database row. - */ - maxItemFindings: string; - } - /** - * Cloud repository for storing output. - */ - export interface Schema$GooglePrivacyDlpV2beta1OutputStorageConfig { - /** - * The path to a Google Cloud Storage location to store output. The bucket - * must already exist and the Google APIs service account for DLP must have - * write permission to write to the given bucket. Results are split over - * multiple csv files with each file name matching the pattern - * "[operation_id]_[count].csv", for example - * `3094877188788974909_1.csv`. The `operation_id` matches the identifier - * for the Operation, and the `count` is a counter used for tracking the - * number of files written. The CSV file(s) contain the following columns - * regardless of storage type scanned: - id - info_type - likelihood - byte - * size of finding - quote - timestamp For Cloud Storage the next columns - * are: - file_path - start_offset For Cloud Datastore the next columns - * are: - project_id - namespace_id - path - column_name - offset For - * BigQuery the next columns are: - row_number - project_id - dataset_id - - * table_id - */ - storagePath: Schema$GooglePrivacyDlpV2beta1CloudStoragePath; - /** - * Store findings in a new table in the dataset. - */ - table: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Datastore partition ID. A partition ID identifies a grouping of entities. - * The grouping is always by project and namespace, however the namespace ID - * may be empty. A partition ID contains several dimensions: project ID and - * namespace ID. - */ - export interface Schema$GooglePrivacyDlpV2beta1PartitionId { - /** - * If not empty, the ID of the namespace to which the entities belong. - */ - namespaceId: string; - /** - * The ID of the project to which the entities belong. - */ - projectId: string; - } - /** - * A (kind, ID/name) pair used to construct a key path. If either name or ID - * is set, the element is complete. If neither is set, the element is - * incomplete. - */ - export interface Schema$GooglePrivacyDlpV2beta1PathElement { - /** - * The auto-allocated ID of the entity. Never equal to zero. Values less - * than zero are discouraged and may not be supported in the future. - */ - id: string; - /** - * The kind of the entity. A kind matching regex `__.*__` is - * reserved/read-only. A kind must not contain more than 1500 bytes when - * UTF-8 encoded. Cannot be `""`. - */ - kind: string; - /** - * The name of the entity. A name matching regex `__.*__` is - * reserved/read-only. A name must not be more than 1500 bytes when UTF-8 - * encoded. Cannot be `""`. - */ - name: string; - } - /** - * A rule for transforming a value. - */ - export interface Schema$GooglePrivacyDlpV2beta1PrimitiveTransformation { - bucketingConfig: Schema$GooglePrivacyDlpV2beta1BucketingConfig; - characterMaskConfig: Schema$GooglePrivacyDlpV2beta1CharacterMaskConfig; - cryptoHashConfig: Schema$GooglePrivacyDlpV2beta1CryptoHashConfig; - cryptoReplaceFfxFpeConfig: - Schema$GooglePrivacyDlpV2beta1CryptoReplaceFfxFpeConfig; - fixedSizeBucketingConfig: - Schema$GooglePrivacyDlpV2beta1FixedSizeBucketingConfig; - redactConfig: Schema$GooglePrivacyDlpV2beta1RedactConfig; - replaceConfig: Schema$GooglePrivacyDlpV2beta1ReplaceValueConfig; - replaceWithInfoTypeConfig: - Schema$GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig; - timePartConfig: Schema$GooglePrivacyDlpV2beta1TimePartConfig; - } - /** - * Privacy metric to compute for reidentification risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta1PrivacyMetric { - categoricalStatsConfig: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsConfig; - kAnonymityConfig: Schema$GooglePrivacyDlpV2beta1KAnonymityConfig; - kMapEstimationConfig: Schema$GooglePrivacyDlpV2beta1KMapEstimationConfig; - lDiversityConfig: Schema$GooglePrivacyDlpV2beta1LDiversityConfig; - numericalStatsConfig: Schema$GooglePrivacyDlpV2beta1NumericalStatsConfig; - } - /** - * A representation of a Datastore property in a projection. - */ - export interface Schema$GooglePrivacyDlpV2beta1Projection { - /** - * The property to project. - */ - property: Schema$GooglePrivacyDlpV2beta1PropertyReference; - } - /** - * A reference to a property relative to the Datastore kind expressions. - */ - export interface Schema$GooglePrivacyDlpV2beta1PropertyReference { - /** - * The name of the property. If name includes "."s, it may be - * interpreted as a property name path. - */ - name: string; - } - /** - * A quasi-identifier column has a custom_tag, used to know which column in - * the data corresponds to which column in the statistical model. - */ - export interface Schema$GooglePrivacyDlpV2beta1QuasiIdField { - customTag: string; - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Generic half-open interval [start, end) - */ - export interface Schema$GooglePrivacyDlpV2beta1Range { - /** - * Index of the last character of the range (exclusive). - */ - end: string; - /** - * Index of the first character of the range (inclusive). - */ - start: string; - } - /** - * A condition for determining whether a transformation should be applied to a - * field. - */ - export interface Schema$GooglePrivacyDlpV2beta1RecordCondition { - expressions: Schema$GooglePrivacyDlpV2beta1Expressions; - } - /** - * Message for a unique key indicating a record that contains a finding. - */ - export interface Schema$GooglePrivacyDlpV2beta1RecordKey { - bigQueryKey: Schema$GooglePrivacyDlpV2beta1BigQueryKey; - cloudStorageKey: Schema$GooglePrivacyDlpV2beta1CloudStorageKey; - datastoreKey: Schema$GooglePrivacyDlpV2beta1DatastoreKey; - } - /** - * Configuration to suppress records whose suppression conditions evaluate to - * true. - */ - export interface Schema$GooglePrivacyDlpV2beta1RecordSuppression { - condition: Schema$GooglePrivacyDlpV2beta1RecordCondition; - } - /** - * A type of transformation that is applied over structured data such as a - * table. - */ - export interface Schema$GooglePrivacyDlpV2beta1RecordTransformations { - /** - * Transform the record by applying various field transformations. - */ - fieldTransformations: Schema$GooglePrivacyDlpV2beta1FieldTransformation[]; - /** - * Configuration defining which records get suppressed entirely. Records - * that match any suppression rule are omitted from the output [optional]. - */ - recordSuppressions: Schema$GooglePrivacyDlpV2beta1RecordSuppression[]; - } - /** - * Redact a given value. For example, if used with an `InfoTypeTransformation` - * transforming PHONE_NUMBER, and input 'My phone number is - * 206-555-0123', the output would be 'My phone number is '. - */ - export interface Schema$GooglePrivacyDlpV2beta1RedactConfig {} - /** - * Request to search for potentially sensitive info in a list of items and - * replace it with a default or provided content. - */ - export interface Schema$GooglePrivacyDlpV2beta1RedactContentRequest { - /** - * The configuration for specifying what content to redact from images. - */ - imageRedactionConfigs: Schema$GooglePrivacyDlpV2beta1ImageRedactionConfig[]; - /** - * Configuration for the inspector. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * The list of items to inspect. Up to 100 are allowed per request. - */ - items: Schema$GooglePrivacyDlpV2beta1ContentItem[]; - /** - * The strings to replace findings text findings with. Must specify at least - * one of these or one ImageRedactionConfig if redacting images. - */ - replaceConfigs: Schema$GooglePrivacyDlpV2beta1ReplaceConfig[]; - } - /** - * Results of redacting a list of items. - */ - export interface Schema$GooglePrivacyDlpV2beta1RedactContentResponse { - /** - * The redacted content. - */ - items: Schema$GooglePrivacyDlpV2beta1ContentItem[]; - } - export interface Schema$GooglePrivacyDlpV2beta1ReplaceConfig { - /** - * Type of information to replace. Only one ReplaceConfig per info_type - * should be provided. If ReplaceConfig does not have an info_type, the DLP - * API matches it against all info_types that are found but not specified in - * another ReplaceConfig. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Content replacing sensitive information of given type. Max 256 chars. - */ - replaceWith: string; - } - /** - * Replace each input value with a given `Value`. - */ - export interface Schema$GooglePrivacyDlpV2beta1ReplaceValueConfig { - /** - * Value to replace it with. - */ - newValue: Schema$GooglePrivacyDlpV2beta1Value; - } - /** - * Replace each matching finding with the name of the info_type. - */ - export interface Schema$GooglePrivacyDlpV2beta1ReplaceWithInfoTypeConfig {} - /** - * Metadata returned within the - * [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.operations/get) - * for risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata { - /** - * The time which this request was started. - */ - createTime: string; - /** - * Privacy metric to compute. - */ - requestedPrivacyMetric: Schema$GooglePrivacyDlpV2beta1PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - requestedSourceTable: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Result of a risk analysis - * [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations) request. - */ - export interface Schema$GooglePrivacyDlpV2beta1RiskAnalysisOperationResult { - categoricalStatsResult: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsResult; - kAnonymityResult: Schema$GooglePrivacyDlpV2beta1KAnonymityResult; - kMapEstimationResult: Schema$GooglePrivacyDlpV2beta1KMapEstimationResult; - lDiversityResult: Schema$GooglePrivacyDlpV2beta1LDiversityResult; - numericalStatsResult: Schema$GooglePrivacyDlpV2beta1NumericalStatsResult; - } - export interface Schema$GooglePrivacyDlpV2beta1Row { - values: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Shared message indicating Cloud storage type. - */ - export interface Schema$GooglePrivacyDlpV2beta1StorageConfig { - /** - * BigQuery options specification. - */ - bigQueryOptions: Schema$GooglePrivacyDlpV2beta1BigQueryOptions; - /** - * Google Cloud Storage options specification. - */ - cloudStorageOptions: Schema$GooglePrivacyDlpV2beta1CloudStorageOptions; - /** - * Google Cloud Datastore options specification. - */ - datastoreOptions: Schema$GooglePrivacyDlpV2beta1DatastoreOptions; - } - /** - * A collection that informs the user the number of times a particular - * `TransformationResultCode` and error details occurred. - */ - export interface Schema$GooglePrivacyDlpV2beta1SummaryResult { - code: string; - count: string; - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - */ - details: string; - } - /** - * Message for detecting output from deidentification transformations such as - * [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/deidentify#CryptoReplaceFfxFpeConfig). - * These types of transformations are those that perform pseudonymization, - * thereby producing a "surrogate" as output. This should be used in - * conjunction with a field on the transformation such as - * `surrogate_info_type`. This custom info type does not support the use of - * `detection_rules`. - */ - export interface Schema$GooglePrivacyDlpV2beta1SurrogateType {} - /** - * Structured content to inspect. Up to 50,000 `Value`s per request allowed. - */ - export interface Schema$GooglePrivacyDlpV2beta1Table { - headers: Schema$GooglePrivacyDlpV2beta1FieldId[]; - rows: Schema$GooglePrivacyDlpV2beta1Row[]; - } - /** - * Location of a finding within a table. - */ - export interface Schema$GooglePrivacyDlpV2beta1TableLocation { - /** - * The zero-based index of the row where the finding is located. - */ - rowIndex: string; - } - /** - * A column with a semantic tag attached. - */ - export interface Schema$GooglePrivacyDlpV2beta1TaggedField { - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on the - * possible values of this column (below). - */ - customTag: string; - /** - * Identifies the column. [required] - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * If no semantic tag is indicated, we infer the statistical model from the - * distribution of values in the input data - */ - inferred: Schema$GoogleProtobufEmpty; - /** - * A column can be tagged with a InfoType to use the relevant public dataset - * as a statistical model of population, if available. We currently support - * US ZIP codes, region codes, ages and genders. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a - * portion of the value. - */ - export interface Schema$GooglePrivacyDlpV2beta1TimePartConfig { - partToExtract: string; - } - /** - * Summary of a single tranformation. Only one of 'transformation', - * 'field_transformation', or 'record_suppress' will be set. - */ - export interface Schema$GooglePrivacyDlpV2beta1TransformationSummary { - /** - * Set if the transformation was limited to a specific FieldId. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * The field transformation that was applied. If multiple field - * transformations are requested for a single field, this list will contain - * all of them; otherwise, only one is supplied. - */ - fieldTransformations: Schema$GooglePrivacyDlpV2beta1FieldTransformation[]; - /** - * Set if the transformation was limited to a specific info_type. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * The specific suppression option these stats apply to. - */ - recordSuppress: Schema$GooglePrivacyDlpV2beta1RecordSuppression; - results: Schema$GooglePrivacyDlpV2beta1SummaryResult[]; - /** - * The specific transformation these stats apply to. - */ - transformation: Schema$GooglePrivacyDlpV2beta1PrimitiveTransformation; - /** - * Total size in bytes that were transformed in some way. - */ - transformedBytes: string; - } - /** - * Use this to have a random data crypto key generated. It will be discarded - * after the operation/request finishes. - */ - export interface Schema$GooglePrivacyDlpV2beta1TransientCryptoKey { - /** - * Name of the key. [required] This is an arbitrary string used to - * differentiate different keys. A unique key is generated per name: two - * separate `TransientCryptoKey` protos share the same generated key if - * their names are the same. When the data crypto key is generated, this - * name is not used in any way (repeating the api call will result in a - * different key being generated). - */ - name: string; - } - /** - * Using raw keys is prone to security risks due to accidentally leaking the - * key. Choose another type of key if possible. - */ - export interface Schema$GooglePrivacyDlpV2beta1UnwrappedCryptoKey { - /** - * The AES 128/192/256 bit key. [required] - */ - key: string; - } - /** - * Set of primitive values supported by the system. Note that for the purposes - * of inspection or transformation, the number of bytes considered to comprise - * a 'Value' is based on its representation as a UTF-8 encoded string. - * For example, if 'integer_value' is set to 123456789, the number of - * bytes would be counted as 9, even though an int64 only holds up to 8 bytes - * of data. - */ - export interface Schema$GooglePrivacyDlpV2beta1Value { - booleanValue: boolean; - dateValue: Schema$GoogleTypeDate; - floatValue: number; - integerValue: string; - stringValue: string; - timestampValue: string; - timeValue: Schema$GoogleTypeTimeOfDay; - } - /** - * A value of a field, including its frequency. - */ - export interface Schema$GooglePrivacyDlpV2beta1ValueFrequency { - /** - * How many times the value is contained in the field. - */ - count: string; - /** - * A value contained in the field in question. - */ - value: Schema$GooglePrivacyDlpV2beta1Value; - } - /** - * Message defining a list of words or phrases to search for in the data. - */ - export interface Schema$GooglePrivacyDlpV2beta1WordList { - /** - * Words or phrases defining the dictionary. The dictionary must contain at - * least one phrase and every phrase must contain at least 2 characters that - * are letters or digits. [required] - */ - words: string[]; - } - /** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: service Foo { rpc - * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON - * representation for `Empty` is empty JSON object `{}`. - */ - export interface Schema$GoogleProtobufEmpty {} - /** - * The `Status` type defines a logical error model that is suitable for - * different programming environments, including REST APIs and RPC APIs. It is - * used by [gRPC](https://github.com/grpc). The error model is designed to be: - * - Simple to use and understand for most users - Flexible enough to meet - * unexpected needs # Overview The `Status` message contains three pieces of - * data: error code, error message, and error details. The error code should - * be an enum value of google.rpc.Code, but it may accept additional error - * codes if needed. The error message should be a developer-facing English - * message that helps developers *understand* and *resolve* the error. If a - * localized user-facing error message is needed, put the localized message in - * the error details or localize it in the client. The optional error details - * may contain arbitrary information about the error. There is a predefined - * set of error detail types in the package `google.rpc` that can be used for - * common error conditions. # Language mapping The `Status` message is the - * logical representation of the error model, but it is not necessarily the - * actual wire format. When the `Status` message is exposed in different - * client libraries and different wire protocols, it can be mapped - * differently. For example, it will likely be mapped to some exceptions in - * Java, but more likely mapped to some error codes in C. # Other uses The - * error model and the `Status` message can be used in a variety of - * environments, either with or without APIs, to provide a consistent - * developer experience across different environments. Example uses of this - * error model include: - Partial errors. If a service needs to return - * partial errors to the client, it may embed the `Status` in the normal - * response to indicate the partial errors. - Workflow errors. A typical - * workflow has multiple steps. Each step may have a `Status` message for - * error reporting. - Batch operations. If a client uses batch request and - * batch response, the `Status` message should be used directly inside - * batch response, one for each error sub-response. - Asynchronous - * operations. If an API call embeds asynchronous operation results in its - * response, the status of those operations should be represented directly - * using the `Status` message. - Logging. If some API errors are stored in - * logs, the message `Status` could be used directly after any stripping - * needed for security/privacy reasons. - */ - export interface Schema$GoogleRpcStatus { - /** - * The status code, which should be an enum value of google.rpc.Code. - */ - code: number; - /** - * A list of messages that carry the error details. There is a common set - * of message types for APIs to use. - */ - details: any[]; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * google.rpc.Status.details field, or localized by the client. - */ - message: string; - } - /** - * Represents a whole calendar date, e.g. date of birth. The time of day and - * time zone are either specified elsewhere or are not significant. The date - * is relative to the Proleptic Gregorian Calendar. The day may be 0 to - * represent a year and month where the day is not significant, e.g. credit - * card expiration date. The year may be 0 to represent a month and day - * independent of year, e.g. anniversary date. Related types are - * google.type.TimeOfDay and `google.protobuf.Timestamp`. - */ - export interface Schema$GoogleTypeDate { - /** - * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - * if specifying a year/month where the day is not significant. - */ - day: number; - /** - * Month of year. Must be from 1 to 12, or 0 if specifying a date without a - * month. - */ - month: number; - /** - * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a - * year. - */ - year: number; - } - /** - * Represents a time of day. The date and time zone are either not significant - * or are specified elsewhere. An API may choose to allow leap seconds. - * Related types are google.type.Date and `google.protobuf.Timestamp`. - */ - export interface Schema$GoogleTypeTimeOfDay { - /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business - * closing time. - */ - hours: number; - /** - * Minutes of hour of day. Must be from 0 to 59. - */ - minutes: number; - /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - */ - nanos: number; - /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. - */ - seconds: number; - } - - export class Resource$Content { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.content.deidentify - * @desc De-identifies potentially sensitive info from a list of strings. - * This method has limits on input size and output size. - * @alias dlp.content.deidentify - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().GooglePrivacyDlpV2beta1DeidentifyContentRequest} 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 - */ - deidentify(params?: any, options?: MethodOptions): - AxiosPromise; - deidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse>): void; - deidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/content:deidentify') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta1DeidentifyContentResponse>( - parameters); - } - } - - - /** - * dlp.content.inspect - * @desc Finds potentially sensitive info in a list of strings. This method - * has limits on input size, processing time, and output size. - * @alias dlp.content.inspect - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().GooglePrivacyDlpV2beta1InspectContentRequest} 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 - */ - inspect(params?: any, options?: MethodOptions): - AxiosPromise; - inspect( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1InspectContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1InspectContentResponse>): void; - inspect( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1InspectContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1InspectContentResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/content:inspect') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta1InspectContentResponse>(parameters); - } - } - - - /** - * dlp.content.redact - * @desc Redacts potentially sensitive info from a list of strings. This - * method has limits on input size, processing time, and output size. - * @alias dlp.content.redact - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().GooglePrivacyDlpV2beta1RedactContentRequest} 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 - */ - redact(params?: any, options?: MethodOptions): - AxiosPromise; - redact( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1RedactContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1RedactContentResponse>): void; - redact( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1RedactContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1RedactContentResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/content:redact') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta1RedactContentResponse>(parameters); - } - } - } - - export class Resource$Datasource { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.dataSource.analyze - * @desc Schedules a job to compute risk analysis metrics over content in a - * Google Cloud Platform repository. - * @alias dlp.dataSource.analyze - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest} 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 - */ - analyze(params?: any, options?: MethodOptions): - AxiosPromise; - analyze( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - analyze( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/dataSource:analyze') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Inspect { - root: Dlp; - operations: Resource$Inspect$Operations; - results: Resource$Inspect$Results; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - this.operations = new Resource$Inspect$Operations(root); - this.results = new Resource$Inspect$Results(root); - } - - getRoot() { - return this.root; - } - } - export class Resource$Inspect$Operations { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.inspect.operations.cancel - * @desc Cancels an operation. Use the `inspect.operations.get` to check - * whether the cancellation succeeded or the operation completed despite - * cancellation. - * @alias dlp.inspect.operations.cancel - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().GoogleLongrunningCancelOperationRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; - cancel( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - cancel( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}:cancel') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.inspect.operations.create - * @desc Schedules a job scanning content in a Google Cloud Platform data - * repository. - * @alias dlp.inspect.operations.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().GooglePrivacyDlpV2beta1CreateInspectOperationRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - create( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/inspect/operations') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.inspect.operations.delete - * @desc This method is not supported and the server returns - * `UNIMPLEMENTED`. - * @alias dlp.inspect.operations.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource to be deleted. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.inspect.operations.get - * @desc Gets the latest state of a long-running operation. Clients can use - * this method to poll the operation result at intervals as recommended by - * the API service. - * @alias dlp.inspect.operations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - get(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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.inspect.operations.list - * @desc Fetches the list of long running operations. - * @alias dlp.inspect.operations.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Filters by `done`. That is, `done=true` or `done=false`. - * @param {string} params.name The name of the operation's parent resource. - * @param {integer=} params.pageSize The list page size. The maximum allowed value is 256 and the default is 100. - * @param {string=} params.pageToken The standard list page token. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GoogleLongrunningListOperationsResponse>): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GoogleLongrunningListOperationsResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - export class Resource$Inspect$Results { - root: Dlp; - findings: Resource$Inspect$Results$Findings; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - this.findings = new Resource$Inspect$Results$Findings(root); - } - - getRoot() { - return this.root; - } - } - export class Resource$Inspect$Results$Findings { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.inspect.results.findings.list - * @desc Returns list of results for given inspect operation result set id. - * @alias dlp.inspect.results.findings.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Restricts findings to items that match. Supports info_type and likelihood. Examples: - info_type=EMAIL_ADDRESS - info_type=PHONE_NUMBER,EMAIL_ADDRESS - likelihood=VERY_LIKELY - likelihood=VERY_LIKELY,LIKELY - info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY - * @param {string} params.name Identifier of the results set returned as metadata of the longrunning operation created by a call to InspectDataSource. Should be in the format of `inspect/results/{id}`. - * @param {integer=} params.pageSize Maximum number of results to return. If 0, the implementation selects a reasonable value. - * @param {string=} params.pageToken The value returned by the last `ListInspectFindingsResponse`; indicates that this is a continuation of a prior `ListInspectFindings` call, and that the system should return the next page of 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 - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse>): - void|AxiosPromise< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse> { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}/findings') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta1ListInspectFindingsResponse>( - parameters); - } - } - } - - - - export class Resource$Riskanalysis { - root: Dlp; - operations: Resource$Riskanalysis$Operations; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - this.operations = new Resource$Riskanalysis$Operations(root); - } - - getRoot() { - return this.root; - } - } - export class Resource$Riskanalysis$Operations { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.riskAnalysis.operations.cancel - * @desc Cancels an operation. Use the `inspect.operations.get` to check - * whether the cancellation succeeded or the operation completed despite - * cancellation. - * @alias dlp.riskAnalysis.operations.cancel - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource to be cancelled. - * @param {().GoogleLongrunningCancelOperationRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; - cancel( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - cancel( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}:cancel') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.riskAnalysis.operations.delete - * @desc This method is not supported and the server returns - * `UNIMPLEMENTED`. - * @alias dlp.riskAnalysis.operations.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource to be deleted. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.riskAnalysis.operations.get - * @desc Gets the latest state of a long-running operation. Clients can use - * this method to poll the operation result at intervals as recommended by - * the API service. - * @alias dlp.riskAnalysis.operations.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - get(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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.riskAnalysis.operations.list - * @desc Fetches the list of long running operations. - * @alias dlp.riskAnalysis.operations.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Filters by `done`. That is, `done=true` or `done=false`. - * @param {string} params.name The name of the operation's parent resource. - * @param {integer=} params.pageSize The list page size. The maximum allowed value is 256 and the default is 100. - * @param {string=} params.pageToken The standard list page token. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GoogleLongrunningListOperationsResponse>): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GoogleLongrunningListOperationsResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - - export class Resource$Rootcategories { - root: Dlp; - infoTypes: Resource$Rootcategories$Infotypes; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - this.infoTypes = new Resource$Rootcategories$Infotypes(root); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.rootCategories.list - * @desc Returns the list of root categories of sensitive information. - * @alias dlp.rootCategories.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.languageCode Optional language code for localized friendly category names. If omitted or if localized strings are not available, en-US strings will be returned. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/rootCategories') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta1ListRootCategoriesResponse>( - parameters); - } - } - } - export class Resource$Rootcategories$Infotypes { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.rootCategories.infoTypes.list - * @desc Returns sensitive information types for given category. - * @alias dlp.rootCategories.infoTypes.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.category Category name as returned by ListRootCategories. - * @param {string=} params.languageCode Optional BCP-47 language code for localized info type friendly names. If omitted, or if localized strings are not available, en-US strings will be returned. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInfoTypesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInfoTypesResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInfoTypesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta1ListInfoTypesResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta1/rootCategories/{+category}/infoTypes') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['category'], - pathParams: ['category'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta1ListInfoTypesResponse>(parameters); - } - } - } -} diff --git a/src/apis/dlp/v2beta2.ts b/src/apis/dlp/v2beta2.ts deleted file mode 100644 index 64e61102156..00000000000 --- a/src/apis/dlp/v2beta2.ts +++ /dev/null @@ -1,5726 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace dlp_v2beta2 { - /** - * Cloud Data Loss Prevention (DLP) API - * - * Provides methods for detection, risk analysis, and de-identification of - * privacy-sensitive fragments in text, images, and Google Cloud Platform - * storage repositories. - * - * @example - * const google = require('googleapis'); - * const dlp = google.dlp('v2beta2'); - * - * @namespace dlp - * @type {Function} - * @version v2beta2 - * @variation v2beta2 - * @param {object=} options Options for Dlp - */ - export class Dlp { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - infoTypes: Resource$Infotypes; - organizations: Resource$Organizations; - projects: Resource$Projects; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.infoTypes = new Resource$Infotypes(this); - this.organizations = new Resource$Organizations(this); - this.projects = new Resource$Projects(this); - } - - getRoot() { - return this.root; - } - } - - /** - * An auxiliary table contains statistical information on the relative - * frequency of different quasi-identifiers values. It has one or several - * quasi-identifiers columns, and one column that indicates the relative - * frequency of each quasi-identifier tuple. If a tuple is present in the data - * but not in the auxiliary table, the corresponding relative frequency is - * assumed to be zero (and thus, the tuple is highly reidentifiable). - */ - export interface Schema$GooglePrivacyDlpV2beta1AuxiliaryTable { - /** - * Quasi-identifier columns. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1QuasiIdField[]; - /** - * The relative frequency column must contain a floating-point number - * between 0 and 1 (inclusive). Null values are assumed to be zero. - * [required] - */ - relativeFrequency: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * Auxiliary table location. [required] - */ - table: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Options defining BigQuery table and row identifiers. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryOptions { - /** - * References to fields uniquely identifying rows within the table. Nested - * fields in the format, like `person.birthdate.year`, are allowed. - */ - identifyingFields: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Complete BigQuery table reference. - */ - tableReference: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Message defining the location of a BigQuery table. A table is uniquely - * identified by its project_id, dataset_id, and table_name. Within a query a - * table is often referenced with a string in the format of: - * `<project_id>:<dataset_id>.<table_id>` or - * `<project_id>.<dataset_id>.<table_id>`. - */ - export interface Schema$GooglePrivacyDlpV2beta1BigQueryTable { - /** - * Dataset ID of the table. - */ - datasetId: string; - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - */ - projectId: string; - /** - * Name of the table. - */ - tableId: string; - } - /** - * Compute numerical stats over an individual column, including number of - * distinct values and value count distribution. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsConfig { - /** - * Field to compute categorical stats on. All column types are supported - * except for arrays and structs. However, it may be more informative to use - * NumericalStats when the field type is supported, depending on the data. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Histogram bucket of value frequencies in the column. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of value frequencies in this bucket. The total number of values - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1ValueFrequency[]; - /** - * Lower bound on the value frequency of the values in this bucket. - */ - valueFrequencyLowerBound: string; - /** - * Upper bound on the value frequency of the values in this bucket. - */ - valueFrequencyUpperBound: string; - } - /** - * Result of the categorical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1CategoricalStatsResult { - /** - * Histogram of value frequencies in the column. - */ - valueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsHistogramBucket[]; - } - /** - * Options defining a file or a set of files (path ending with *) within a - * Google Cloud Storage bucket. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStorageOptions { - fileSet: Schema$GooglePrivacyDlpV2beta1FileSet; - } - /** - * A location in Cloud Storage. - */ - export interface Schema$GooglePrivacyDlpV2beta1CloudStoragePath { - /** - * The url, in the format of `gs://bucket/<path>`. - */ - path: string; - } - /** - * Custom information type provided by the user. Used to find domain-specific - * sensitive information configurable to the data in question. - */ - export interface Schema$GooglePrivacyDlpV2beta1CustomInfoType { - /** - * Dictionary-based custom info type. - */ - dictionary: Schema$GooglePrivacyDlpV2beta1Dictionary; - /** - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Surrogate info type. - */ - surrogateType: Schema$GooglePrivacyDlpV2beta1SurrogateType; - } - /** - * Options defining a data set within Google Cloud Datastore. - */ - export interface Schema$GooglePrivacyDlpV2beta1DatastoreOptions { - /** - * The kind to process. - */ - kind: Schema$GooglePrivacyDlpV2beta1KindExpression; - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - */ - partitionId: Schema$GooglePrivacyDlpV2beta1PartitionId; - /** - * Properties to scan. If none are specified, all properties will be scanned - * by default. - */ - projection: Schema$GooglePrivacyDlpV2beta1Projection[]; - } - /** - * Custom information type based on a dictionary of words or phrases. This can - * be used to match sensitive information specific to the data, such as a list - * of employee IDs or job titles. Dictionary words are case-insensitive and - * all characters other than letters and digits in the unicode [Basic - * Multilingual - * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) - * will be replaced with whitespace when scanning for matches, so the - * dictionary phrase "Sam Johnson" will match all three phrases - * "sam johnson", "Sam, Johnson", and "Sam - * (Johnson)". Additionally, the characters surrounding any match must be - * of a different type than the adjacent characters within the word, so - * letters must be next to non-letters and digits next to non-digits. For - * example, the dictionary word "jen" will match the first three - * letters of the text "jen123" but will return no matches for - * "jennifer". Dictionary words containing a large number of - * characters that are not letters or digits may result in unexpected findings - * because such characters are treated as whitespace. - */ - export interface Schema$GooglePrivacyDlpV2beta1Dictionary { - /** - * List of words or phrases to search for. - */ - wordList: Schema$GooglePrivacyDlpV2beta1WordList; - } - /** - * An entity in a dataset is a field or set of fields that correspond to a - * single person. For example, in medical records the `EntityId` might be a - * patient identifier, or for financial records it might be an account - * identifier. This message is used when generalizations or analysis must be - * consistent across multiple rows pertaining to the same entity. - */ - export interface Schema$GooglePrivacyDlpV2beta1EntityId { - /** - * Composite key indicating which field contains the entity identifier. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * General identifier of a data field in a storage service. - */ - export interface Schema$GooglePrivacyDlpV2beta1FieldId { - /** - * Name describing the field. - */ - columnName: string; - } - /** - * Set of files to scan. - */ - export interface Schema$GooglePrivacyDlpV2beta1FileSet { - /** - * The url, in the format `gs://<bucket>/<path>`. Trailing - * wildcard in the path is allowed. - */ - url: string; - } - /** - * Type of information detected by the API. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoType { - /** - * Name of the information type. - */ - name: string; - } - /** - * Max findings configuration per info type, per content item or long running - * operation. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeLimit { - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that are - * found but not specified in another InfoTypeLimit. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - /** - * Max findings limit for the given infoType. - */ - maxFindings: number; - } - /** - * Statistics regarding a specific InfoType. - */ - export interface Schema$GooglePrivacyDlpV2beta1InfoTypeStatistics { - /** - * Number of findings for this info type. - */ - count: string; - /** - * The type of finding this stat is for. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * Configuration description of the scanning process. When used with - * redactContent only info_types and min_likelihood are currently used. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectConfig { - /** - * Custom info types provided by the user. - */ - customInfoTypes: Schema$GooglePrivacyDlpV2beta1CustomInfoType[]; - /** - * When true, excludes type information of the findings. - */ - excludeTypes: boolean; - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see Finding.quote. - */ - includeQuote: boolean; - /** - * Configuration of findings limit given for specified info types. - */ - infoTypeLimits: Schema$GooglePrivacyDlpV2beta1InfoTypeLimit[]; - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or found in documentation. - * Empty info_types runs all enabled detectors. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta1InfoType[]; - /** - * Limits the number of findings per content item or long running operation. - */ - maxFindings: number; - /** - * Only returns findings equal or above this threshold. - */ - minLikelihood: string; - } - /** - * Metadata returned within GetOperation for an inspect request. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectOperationMetadata { - /** - * The time which this request was started. - */ - createTime: string; - infoTypeStats: Schema$GooglePrivacyDlpV2beta1InfoTypeStatistics[]; - /** - * Total size in bytes that were processed. - */ - processedBytes: string; - /** - * The inspect config used to create the Operation. - */ - requestInspectConfig: Schema$GooglePrivacyDlpV2beta1InspectConfig; - /** - * Optional location to store findings. - */ - requestOutputConfig: Schema$GooglePrivacyDlpV2beta1OutputStorageConfig; - /** - * The storage config used to create the Operation. - */ - requestStorageConfig: Schema$GooglePrivacyDlpV2beta1StorageConfig; - /** - * Estimate of the number of bytes to process. - */ - totalEstimatedBytes: string; - } - /** - * The operational data. - */ - export interface Schema$GooglePrivacyDlpV2beta1InspectOperationResult { - /** - * The server-assigned name, which is only unique within the same service - * that originally returns it. If you use the default HTTP mapping, the - * `name` should have the format of `inspect/results/{id}`. - */ - name: string; - } - /** - * k-anonymity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityConfig { - /** - * Optional message indicating that each distinct entity_id should not - * contribute to the k-anonymity count more than once per equivalence class. - * If an entity_id appears on several rows with different quasi-identifier - * tuples, it will contribute to each count exactly once. This can lead to - * unexpected results. Consider a table where ID 1 is associated to - * quasi-identifier "foo", ID 2 to "bar", and ID 3 to - * *both* quasi-identifiers "foo" and "bar" (on separate - * rows), and where this ID is used as entity_id. Then, the anonymity value - * associated to ID 3 will be 2, even if it is the only ID to be associated - * to both values "foo" and "bar". - */ - entityId: Schema$GooglePrivacyDlpV2beta1EntityId; - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within a - * repeated field. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1FieldId[]; - } - /** - * The set of columns' values that share the same k-anonymity value. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass { - /** - * Size of the equivalence class, for example number of rows with the above - * set of values. - */ - equivalenceClassSize: string; - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Histogram bucket of equivalence class sizes in the table. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1KAnonymityEquivalenceClass[]; - /** - * Lower bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeLowerBound: string; - /** - * Upper bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeUpperBound: string; - } - /** - * Result of the k-anonymity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1KAnonymityResult { - /** - * Histogram of k-anonymity equivalence classes. - */ - equivalenceClassHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1KAnonymityHistogramBucket[]; - } - /** - * A representation of a Datastore kind. - */ - export interface Schema$GooglePrivacyDlpV2beta1KindExpression { - /** - * The name of the kind. - */ - name: string; - } - /** - * Reidentifiability metric. This corresponds to a risk model similar to what - * is called "journalist risk" in the literature, except the attack - * dataset is statistically modeled instead of being perfectly known. This can - * be done using publicly available data (like the US Census), or using a - * custom statistical model (indicated as one or several BigQuery tables), or - * by extrapolating from the distribution of values in the input dataset. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationConfig { - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - */ - auxiliaryTables: Schema$GooglePrivacyDlpV2beta1AuxiliaryTable[]; - /** - * Fields considered to be quasi-identifiers. No two columns can have the - * same tag. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1TaggedField[]; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Required if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - */ - regionCode: string; - } - /** - * A KMapEstimationHistogramBucket message with the following values: - * min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42 - * records whose quasi-identifier values correspond to 3, 4 or 5 people in the - * overlying population. An important particular case is when min_anonymity = - * max_anonymity = 1: the frequency field then corresponds to the number of - * uniquely identifiable records. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket { - /** - * Number of records within these anonymity bounds. - */ - bucketSize: string; - /** - * Sample of quasi-identifier tuple values in this bucket. The total number - * of classes returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues[]; - /** - * Always greater than or equal to min_anonymity. - */ - maxAnonymity: string; - /** - * Always positive. - */ - minAnonymity: string; - } - /** - * A tuple of values for the quasi-identifier columns. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues { - /** - * The estimated anonymity for these quasi-identifier values. - */ - estimatedAnonymity: string; - /** - * The quasi-identifier values. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Result of the reidentifiability analysis. Note that these results are an - * estimation, not exact values. - */ - export interface Schema$GooglePrivacyDlpV2beta1KMapEstimationResult { - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: {min_anonymity: 1, - * max_anonymity: 1, frequency: 17} {min_anonymity: 2, max_anonymity: 3, - * frequency: 42} {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - */ - kMapEstimationHistogram: - Schema$GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket[]; - } - /** - * l-diversity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityConfig { - /** - * Set of quasi-identifiers indicating how equivalence classes are defined - * for the l-diversity computation. When multiple fields are specified, they - * are considered a single composite key. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta1FieldId[]; - /** - * Sensitive field for computing the l-value. - */ - sensitiveAttribute: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * The set of columns' values that share the same l-diversity value. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityEquivalenceClass { - /** - * Size of the k-anonymity equivalence class. - */ - equivalenceClassSize: string; - /** - * Number of distinct sensitive values in this equivalence class. - */ - numDistinctSensitiveValues: string; - /** - * Quasi-identifier values defining the k-anonymity equivalence class. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta1Value[]; - /** - * Estimated frequencies of top sensitive values. - */ - topSensitiveValues: Schema$GooglePrivacyDlpV2beta1ValueFrequency[]; - } - /** - * Histogram bucket of sensitive value frequencies in the table. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityHistogramBucket { - /** - * Total number of records in this bucket. - */ - bucketSize: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta1LDiversityEquivalenceClass[]; - /** - * Lower bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyLowerBound: string; - /** - * Upper bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyUpperBound: string; - } - /** - * Result of the l-diversity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1LDiversityResult { - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - */ - sensitiveValueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta1LDiversityHistogramBucket[]; - } - /** - * Compute numerical stats over an individual column, including min, max, and - * quantiles. - */ - export interface Schema$GooglePrivacyDlpV2beta1NumericalStatsConfig { - /** - * Field to compute numerical stats on. Supported types are integer, float, - * date, datetime, timestamp, time. - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Result of the numerical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta1NumericalStatsResult { - /** - * Maximum value appearing in the column. - */ - maxValue: Schema$GooglePrivacyDlpV2beta1Value; - /** - * Minimum value appearing in the column. - */ - minValue: Schema$GooglePrivacyDlpV2beta1Value; - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - */ - quantileValues: Schema$GooglePrivacyDlpV2beta1Value[]; - } - /** - * Cloud repository for storing output. - */ - export interface Schema$GooglePrivacyDlpV2beta1OutputStorageConfig { - /** - * The path to a Google Cloud Storage location to store output. The bucket - * must already exist and the Google APIs service account for DLP must have - * write permission to write to the given bucket. Results are split over - * multiple csv files with each file name matching the pattern - * "[operation_id]_[count].csv", for example - * `3094877188788974909_1.csv`. The `operation_id` matches the identifier - * for the Operation, and the `count` is a counter used for tracking the - * number of files written. The CSV file(s) contain the following columns - * regardless of storage type scanned: - id - info_type - likelihood - byte - * size of finding - quote - timestamp For Cloud Storage the next columns - * are: - file_path - start_offset For Cloud Datastore the next columns - * are: - project_id - namespace_id - path - column_name - offset For - * BigQuery the next columns are: - row_number - project_id - dataset_id - - * table_id - */ - storagePath: Schema$GooglePrivacyDlpV2beta1CloudStoragePath; - /** - * Store findings in a new table in the dataset. - */ - table: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Datastore partition ID. A partition ID identifies a grouping of entities. - * The grouping is always by project and namespace, however the namespace ID - * may be empty. A partition ID contains several dimensions: project ID and - * namespace ID. - */ - export interface Schema$GooglePrivacyDlpV2beta1PartitionId { - /** - * If not empty, the ID of the namespace to which the entities belong. - */ - namespaceId: string; - /** - * The ID of the project to which the entities belong. - */ - projectId: string; - } - /** - * Privacy metric to compute for reidentification risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta1PrivacyMetric { - categoricalStatsConfig: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsConfig; - kAnonymityConfig: Schema$GooglePrivacyDlpV2beta1KAnonymityConfig; - kMapEstimationConfig: Schema$GooglePrivacyDlpV2beta1KMapEstimationConfig; - lDiversityConfig: Schema$GooglePrivacyDlpV2beta1LDiversityConfig; - numericalStatsConfig: Schema$GooglePrivacyDlpV2beta1NumericalStatsConfig; - } - /** - * A representation of a Datastore property in a projection. - */ - export interface Schema$GooglePrivacyDlpV2beta1Projection { - /** - * The property to project. - */ - property: Schema$GooglePrivacyDlpV2beta1PropertyReference; - } - /** - * A reference to a property relative to the Datastore kind expressions. - */ - export interface Schema$GooglePrivacyDlpV2beta1PropertyReference { - /** - * The name of the property. If name includes "."s, it may be - * interpreted as a property name path. - */ - name: string; - } - /** - * A quasi-identifier column has a custom_tag, used to know which column in - * the data corresponds to which column in the statistical model. - */ - export interface Schema$GooglePrivacyDlpV2beta1QuasiIdField { - customTag: string; - field: Schema$GooglePrivacyDlpV2beta1FieldId; - } - /** - * Metadata returned within the - * [`riskAnalysis.operations.get`](/dlp/docs/reference/rest/v2beta1/riskAnalysis.operations/get) - * for risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta1RiskAnalysisOperationMetadata { - /** - * The time which this request was started. - */ - createTime: string; - /** - * Privacy metric to compute. - */ - requestedPrivacyMetric: Schema$GooglePrivacyDlpV2beta1PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - requestedSourceTable: Schema$GooglePrivacyDlpV2beta1BigQueryTable; - } - /** - * Result of a risk analysis - * [`Operation`](/dlp/docs/reference/rest/v2beta1/inspect.operations) request. - */ - export interface Schema$GooglePrivacyDlpV2beta1RiskAnalysisOperationResult { - categoricalStatsResult: - Schema$GooglePrivacyDlpV2beta1CategoricalStatsResult; - kAnonymityResult: Schema$GooglePrivacyDlpV2beta1KAnonymityResult; - kMapEstimationResult: Schema$GooglePrivacyDlpV2beta1KMapEstimationResult; - lDiversityResult: Schema$GooglePrivacyDlpV2beta1LDiversityResult; - numericalStatsResult: Schema$GooglePrivacyDlpV2beta1NumericalStatsResult; - } - /** - * Shared message indicating Cloud storage type. - */ - export interface Schema$GooglePrivacyDlpV2beta1StorageConfig { - /** - * BigQuery options specification. - */ - bigQueryOptions: Schema$GooglePrivacyDlpV2beta1BigQueryOptions; - /** - * Google Cloud Storage options specification. - */ - cloudStorageOptions: Schema$GooglePrivacyDlpV2beta1CloudStorageOptions; - /** - * Google Cloud Datastore options specification. - */ - datastoreOptions: Schema$GooglePrivacyDlpV2beta1DatastoreOptions; - } - /** - * Message for detecting output from deidentification transformations such as - * [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/deidentify#CryptoReplaceFfxFpeConfig). - * These types of transformations are those that perform pseudonymization, - * thereby producing a "surrogate" as output. This should be used in - * conjunction with a field on the transformation such as - * `surrogate_info_type`. This custom info type does not support the use of - * `detection_rules`. - */ - export interface Schema$GooglePrivacyDlpV2beta1SurrogateType {} - /** - * A column with a semantic tag attached. - */ - export interface Schema$GooglePrivacyDlpV2beta1TaggedField { - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on the - * possible values of this column (below). - */ - customTag: string; - /** - * Identifies the column. [required] - */ - field: Schema$GooglePrivacyDlpV2beta1FieldId; - /** - * If no semantic tag is indicated, we infer the statistical model from the - * distribution of values in the input data - */ - inferred: Schema$GoogleProtobufEmpty; - /** - * A column can be tagged with a InfoType to use the relevant public dataset - * as a statistical model of population, if available. We currently support - * US ZIP codes, region codes, ages and genders. - */ - infoType: Schema$GooglePrivacyDlpV2beta1InfoType; - } - /** - * Set of primitive values supported by the system. Note that for the purposes - * of inspection or transformation, the number of bytes considered to comprise - * a 'Value' is based on its representation as a UTF-8 encoded string. - * For example, if 'integer_value' is set to 123456789, the number of - * bytes would be counted as 9, even though an int64 only holds up to 8 bytes - * of data. - */ - export interface Schema$GooglePrivacyDlpV2beta1Value { - booleanValue: boolean; - dateValue: Schema$GoogleTypeDate; - floatValue: number; - integerValue: string; - stringValue: string; - timestampValue: string; - timeValue: Schema$GoogleTypeTimeOfDay; - } - /** - * A value of a field, including its frequency. - */ - export interface Schema$GooglePrivacyDlpV2beta1ValueFrequency { - /** - * How many times the value is contained in the field. - */ - count: string; - /** - * A value contained in the field in question. - */ - value: Schema$GooglePrivacyDlpV2beta1Value; - } - /** - * Message defining a list of words or phrases to search for in the data. - */ - export interface Schema$GooglePrivacyDlpV2beta1WordList { - /** - * Words or phrases defining the dictionary. The dictionary must contain at - * least one phrase and every phrase must contain at least 2 characters that - * are letters or digits. [required] - */ - words: string[]; - } - /** - * A task to execute on the completion of a job. - */ - export interface Schema$GooglePrivacyDlpV2beta2Action { - /** - * Publish a notification to a pubsub topic. - */ - pubSub: Schema$GooglePrivacyDlpV2beta2PublishToPubSub; - /** - * Save resulting findings in a provided location. - */ - saveFindings: Schema$GooglePrivacyDlpV2beta2SaveFindings; - } - /** - * Result of a risk analysis operation request. - */ - export interface Schema$GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails { - categoricalStatsResult: - Schema$GooglePrivacyDlpV2beta2CategoricalStatsResult; - kAnonymityResult: Schema$GooglePrivacyDlpV2beta2KAnonymityResult; - kMapEstimationResult: Schema$GooglePrivacyDlpV2beta2KMapEstimationResult; - lDiversityResult: Schema$GooglePrivacyDlpV2beta2LDiversityResult; - numericalStatsResult: Schema$GooglePrivacyDlpV2beta2NumericalStatsResult; - /** - * Privacy metric to compute. - */ - requestedPrivacyMetric: Schema$GooglePrivacyDlpV2beta2PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - requestedSourceTable: Schema$GooglePrivacyDlpV2beta2BigQueryTable; - } - /** - * Request for creating a risk analysis DlpJob. - */ - export interface Schema$GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest { - /** - * Configuration for this risk analysis job. - */ - jobConfig: Schema$GooglePrivacyDlpV2beta2RiskAnalysisJobConfig; - /** - * Optional job ID to use for the created job. If not provided, a job ID - * will automatically be generated. Must be unique within the project. The - * job ID can contain uppercase and lowercase letters, numbers, and hyphens; - * that is, it must match the regular expression: `[a-zA-Z\\d-]+`. The - * maximum length is 100 characters. Can be empty to allow the system to - * generate one. - */ - jobId: string; - } - /** - * An auxiliary table contains statistical information on the relative - * frequency of different quasi-identifiers values. It has one or several - * quasi-identifiers columns, and one column that indicates the relative - * frequency of each quasi-identifier tuple. If a tuple is present in the data - * but not in the auxiliary table, the corresponding relative frequency is - * assumed to be zero (and thus, the tuple is highly reidentifiable). - */ - export interface Schema$GooglePrivacyDlpV2beta2AuxiliaryTable { - /** - * Quasi-identifier columns. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta2QuasiIdField[]; - /** - * The relative frequency column must contain a floating-point number - * between 0 and 1 (inclusive). Null values are assumed to be zero. - * [required] - */ - relativeFrequency: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * Auxiliary table location. [required] - */ - table: Schema$GooglePrivacyDlpV2beta2BigQueryTable; - } - /** - * Row key for identifying a record in BigQuery table. - */ - export interface Schema$GooglePrivacyDlpV2beta2BigQueryKey { - /** - * Absolute number of the row from the beginning of the table at the time of - * scanning. - */ - rowNumber: string; - /** - * Complete BigQuery table reference. - */ - tableReference: Schema$GooglePrivacyDlpV2beta2BigQueryTable; - } - /** - * Options defining BigQuery table and row identifiers. - */ - export interface Schema$GooglePrivacyDlpV2beta2BigQueryOptions { - /** - * References to fields uniquely identifying rows within the table. Nested - * fields in the format, like `person.birthdate.year`, are allowed. - */ - identifyingFields: Schema$GooglePrivacyDlpV2beta2FieldId[]; - /** - * Complete BigQuery table reference. - */ - tableReference: Schema$GooglePrivacyDlpV2beta2BigQueryTable; - } - /** - * Message defining the location of a BigQuery table. A table is uniquely - * identified by its project_id, dataset_id, and table_name. Within a query a - * table is often referenced with a string in the format of: - * `<project_id>:<dataset_id>.<table_id>` or - * `<project_id>.<dataset_id>.<table_id>`. - */ - export interface Schema$GooglePrivacyDlpV2beta2BigQueryTable { - /** - * Dataset ID of the table. - */ - datasetId: string; - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - */ - projectId: string; - /** - * Name of the table. - */ - tableId: string; - } - /** - * Bucket is represented as a range, along with replacement values. - */ - export interface Schema$GooglePrivacyDlpV2beta2Bucket { - /** - * Upper bound of the range, exclusive; type must match min. - */ - max: Schema$GooglePrivacyDlpV2beta2Value; - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - */ - min: Schema$GooglePrivacyDlpV2beta2Value; - /** - * Replacement value for this bucket. If not provided the default behavior - * will be to hyphenate the min-max range. - */ - replacementValue: Schema$GooglePrivacyDlpV2beta2Value; - } - /** - * Generalization function that buckets values based on ranges. The ranges and - * replacement values are dynamically provided by the user for custom - * behavior, such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH This - * can be used on data of type: number, long, string, timestamp. If the bound - * `Value` type differs from the type of data being transformed, we will first - * attempt converting the type of the data to be transformed to match the type - * of the bound before comparing. - */ - export interface Schema$GooglePrivacyDlpV2beta2BucketingConfig { - /** - * Set of buckets. Ranges must be non-overlapping. - */ - buckets: Schema$GooglePrivacyDlpV2beta2Bucket[]; - } - /** - * The request message for canceling a DLP job. - */ - export interface Schema$GooglePrivacyDlpV2beta2CancelDlpJobRequest {} - /** - * Compute numerical stats over an individual column, including number of - * distinct values and value count distribution. - */ - export interface Schema$GooglePrivacyDlpV2beta2CategoricalStatsConfig { - /** - * Field to compute categorical stats on. All column types are supported - * except for arrays and structs. However, it may be more informative to use - * NumericalStats when the field type is supported, depending on the data. - */ - field: Schema$GooglePrivacyDlpV2beta2FieldId; - } - export interface Schema$GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket { - /** - * Total number of values in this bucket. - */ - bucketSize: string; - /** - * Total number of distinct values in this bucket. - */ - bucketValueCount: string; - /** - * Sample of value frequencies in this bucket. The total number of values - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta2ValueFrequency[]; - /** - * Lower bound on the value frequency of the values in this bucket. - */ - valueFrequencyLowerBound: string; - /** - * Upper bound on the value frequency of the values in this bucket. - */ - valueFrequencyUpperBound: string; - } - /** - * Result of the categorical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta2CategoricalStatsResult { - /** - * Histogram of value frequencies in the column. - */ - valueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta2CategoricalStatsHistogramBucket[]; - } - /** - * Partially mask a string by replacing a given number of characters with a - * fixed character. Masking can start from the beginning or end of the string. - * This can be used on data of any type (numbers, longs, and so on) and when - * de-identifying structured data we'll attempt to preserve the original - * data's type. (This allows you to take a long like 123 and modify it to - * a string like **3. - */ - export interface Schema$GooglePrivacyDlpV2beta2CharacterMaskConfig { - /** - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` - * and mask 5 chars with * we would produce ***-*55-5555. - */ - charactersToIgnore: Schema$GooglePrivacyDlpV2beta2CharsToIgnore[]; - /** - * Character to mask the sensitive values&mdash;for example, - * "*" for an alphabetic string such as name, or "0" for - * a numeric string such as ZIP code or credit card number. String must have - * length 1. If not supplied, we will default to "*" for strings, - * 0 for digits. - */ - maskingCharacter: string; - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - */ - numberToMask: number; - /** - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 If `masking_character` is - * '*', `number_to_mask` is 3, and `reverse_order` is true, then - * 12345 -> 12*** - */ - reverseOrder: boolean; - } - /** - * Characters to skip when doing deidentification of a value. These will be - * left alone and skipped. - */ - export interface Schema$GooglePrivacyDlpV2beta2CharsToIgnore { - charactersToSkip: string; - commonCharactersToIgnore: string; - } - /** - * Record key for a finding in a Cloud Storage file. - */ - export interface Schema$GooglePrivacyDlpV2beta2CloudStorageKey { - /** - * Path to the file. - */ - filePath: string; - /** - * Byte offset of the referenced data in the file. - */ - startOffset: string; - } - /** - * Options defining a file or a set of files (path ending with *) within a - * Google Cloud Storage bucket. - */ - export interface Schema$GooglePrivacyDlpV2beta2CloudStorageOptions { - /** - * Max number of bytes to scan from a file. If a scanned file's size is - * bigger than this value then the rest of the bytes are omitted. - */ - bytesLimitPerFile: string; - fileSet: Schema$GooglePrivacyDlpV2beta2FileSet; - } - /** - * Represents a color in the RGB color space. - */ - export interface Schema$GooglePrivacyDlpV2beta2Color { - /** - * The amount of blue in the color as a value in the interval [0, 1]. - */ - blue: number; - /** - * The amount of green in the color as a value in the interval [0, 1]. - */ - green: number; - /** - * The amount of red in the color as a value in the interval [0, 1]. - */ - red: number; - } - /** - * The field type of `value` and `field` do not need to match to be considered - * equal, but not all comparisons are possible. A `value` of type: - - * `string` can be compared against all other types - `boolean` can only be - * compared against other booleans - `integer` can be compared against doubles - * or a string if the string value can be parsed as an integer. - `double` can - * be compared against integers or a string if the string can be parsed as a - * double. - `Timestamp` can be compared against strings in RFC 3339 date - * string format. - `TimeOfDay` can be compared against timestamps and strings - * in the format of 'HH:mm:ss'. If we fail to compare do to type - * mismatch, a warning will be given and the condition will evaluate to false. - */ - export interface Schema$GooglePrivacyDlpV2beta2Condition { - /** - * Field within the record this condition is evaluated against. [required] - */ - field: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * Operator used to compare the field or infoType to the value. [required] - */ - operator: string; - /** - * Value to compare against. [Required, except for `EXISTS` tests.] - */ - value: Schema$GooglePrivacyDlpV2beta2Value; - } - /** - * A collection of conditions. - */ - export interface Schema$GooglePrivacyDlpV2beta2Conditions { - conditions: Schema$GooglePrivacyDlpV2beta2Condition[]; - } - /** - * Container structure for the content to inspect. - */ - export interface Schema$GooglePrivacyDlpV2beta2ContentItem { - /** - * Content data to inspect or redact. - */ - data: string; - /** - * Structured content for inspection. - */ - table: Schema$GooglePrivacyDlpV2beta2Table; - /** - * Type of the content, as defined in Content-Type HTTP header. Supported - * types are: all "text" types, octet streams, PNG images, JPEG - * images. - */ - type: string; - /** - * String data to inspect or redact. - */ - value: string; - } - /** - * Request message for CreateDeidentifyTemplate. - */ - export interface Schema$GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest { - /** - * The DeidentifyTemplate to create. - */ - deidentifyTemplate: Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate; - /** - * The template id can contain uppercase and lowercase letters, numbers, and - * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. - * The maximum length is 100 characters. Can be empty to allow the system to - * generate one. - */ - templateId: string; - } - /** - * Request message for CreateInspectTemplate. - */ - export interface Schema$GooglePrivacyDlpV2beta2CreateInspectTemplateRequest { - /** - * The InspectTemplate to create. - */ - inspectTemplate: Schema$GooglePrivacyDlpV2beta2InspectTemplate; - /** - * The template id can contain uppercase and lowercase letters, numbers, and - * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. - * The maximum length is 100 characters. Can be empty to allow the system to - * generate one. - */ - templateId: string; - } - /** - * Request message for CreateJobTrigger. - */ - export interface Schema$GooglePrivacyDlpV2beta2CreateJobTriggerRequest { - /** - * The JobTrigger to create. - */ - jobTrigger: Schema$GooglePrivacyDlpV2beta2JobTrigger; - /** - * The trigger id can contain uppercase and lowercase letters, numbers, and - * hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-]+`. - * The maximum length is 100 characters. Can be empty to allow the system to - * generate one. - */ - triggerId: string; - } - /** - * Pseudonymization method that generates surrogates via cryptographic - * hashing. Uses SHA-256. The key size must be either 32 or 64 bytes. Outputs - * a 32 byte digest as an uppercase hex string (for example, - * 41D1567F7F99F1DC2A5FAB886DEE5BEE). Currently, only string and integer - * values can be hashed. - */ - export interface Schema$GooglePrivacyDlpV2beta2CryptoHashConfig { - /** - * The key used by the hash function. - */ - cryptoKey: Schema$GooglePrivacyDlpV2beta2CryptoKey; - } - /** - * This is a data encryption key (DEK) (as opposed to a key encryption key - * (KEK) stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an - * appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker - * cannot unwrap the data crypto key. - */ - export interface Schema$GooglePrivacyDlpV2beta2CryptoKey { - kmsWrapped: Schema$GooglePrivacyDlpV2beta2KmsWrappedCryptoKey; - transient: Schema$GooglePrivacyDlpV2beta2TransientCryptoKey; - unwrapped: Schema$GooglePrivacyDlpV2beta2UnwrappedCryptoKey; - } - /** - * Replaces an identifier with a surrogate using FPE with the FFX mode of - * operation; however when used in the `ReidentifyContent` API method, it - * serves the opposite function by reversing the surrogate back into the - * original identifier. The identifier must be encoded as ASCII. For a given - * crypto key and context, the same identifier will be replaced with the same - * surrogate. Identifiers must be at least two characters long. In the case - * that the identifier is the empty string, it will be skipped. See - * [Pseudonymization](/dlp/docs/pseudonymization) for example usage. - */ - export interface Schema$GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig { - commonAlphabet: string; - /** - * The 'tweak', a context may be used for higher security since the - * same identifier in two different contexts won't be given the same - * surrogate. If the context is not set, a default tweak will be used. If - * the context is set but: 1. there is no record present when transforming - * a given value or 1. the field is not present when transforming a given - * value, a default tweak will be used. Note that case (1) is expected - * when an `InfoTypeTransformation` is applied to both structured and - * non-structured `ContentItem`s. Currently, the referenced field may be of - * value type integer or string. The tweak is constructed as a sequence of - * bytes in big endian byte order such that: - a 64 bit integer is encoded - * followed by a single byte of value 1 - a string is encoded in UTF-8 - * format followed by a single byte of value å 2 - */ - context: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * The key used by the encryption algorithm. [required] - */ - cryptoKey: Schema$GooglePrivacyDlpV2beta2CryptoKey; - /** - * This is supported by mapping these to the alphanumeric characters that - * the FFX mode natively supports. This happens before/after - * encryption/decryption. Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. This must be encoded - * as ASCII. The order of characters does not matter. - */ - customAlphabet: string; - /** - * The native way to select the alphabet. Must be in the range [2, 62]. - */ - radix: number; - /** - * The custom infoType to annotate the surrogate with. This annotation will - * be applied to the surrogate by prefixing it with the name of the custom - * infoType followed by the number of characters comprising the surrogate. - * The following scheme defines the format: - * info_type_name(surrogate_character_count):surrogate For example, if the - * name of custom infoType is 'MY_TOKEN_INFO_TYPE' and the surrogate - * is 'abc', the full replacement value will be: - * 'MY_TOKEN_INFO_TYPE(3):abc' This annotation identifies the - * surrogate when inspecting content using the custom infoType - * [`SurrogateType`](/dlp/docs/reference/rest/v2beta2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may find - * a surrogate that does not correspond to an actual identifier. Therefore, - * choose your custom infoType name carefully after considering what your - * data looks like. One way to select a name that has a high chance of - * yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. For example, assuming - * your data is entered from a regular ASCII keyboard, the symbol with the - * hex code point 29DD might be used like so: ⧝MY_TOKEN_TYPE - */ - surrogateInfoType: Schema$GooglePrivacyDlpV2beta2InfoType; - } - /** - * Custom information type provided by the user. Used to find domain-specific - * sensitive information configurable to the data in question. - */ - export interface Schema$GooglePrivacyDlpV2beta2CustomInfoType { - /** - * Set of detection rules to apply to all findings of this custom info type. - * Rules are applied in order that they are specified. Not supported for the - * `surrogate_type` custom info type. - */ - detectionRules: Schema$GooglePrivacyDlpV2beta2DetectionRule[]; - /** - * Dictionary-based custom info type. - */ - dictionary: Schema$GooglePrivacyDlpV2beta2Dictionary; - /** - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - /** - * Likelihood to return for this custom info type. This base value can be - * altered by a detection rule if the finding meets the criteria specified - * by the rule. Defaults to `VERY_LIKELY` if not specified. - */ - likelihood: string; - /** - * Regex-based custom info type. - */ - regex: Schema$GooglePrivacyDlpV2beta2Regex; - /** - * Surrogate info type. - */ - surrogateType: Schema$GooglePrivacyDlpV2beta2SurrogateType; - } - /** - * Record key for a finding in Cloud Datastore. - */ - export interface Schema$GooglePrivacyDlpV2beta2DatastoreKey { - /** - * Datastore entity key. - */ - entityKey: Schema$GooglePrivacyDlpV2beta2Key; - } - /** - * Options defining a data set within Google Cloud Datastore. - */ - export interface Schema$GooglePrivacyDlpV2beta2DatastoreOptions { - /** - * The kind to process. - */ - kind: Schema$GooglePrivacyDlpV2beta2KindExpression; - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - */ - partitionId: Schema$GooglePrivacyDlpV2beta2PartitionId; - } - /** - * Shifts dates by random number of days, with option to be consistent for the - * same context. - */ - export interface Schema$GooglePrivacyDlpV2beta2DateShiftConfig { - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set method. If set, shift will be consistent for the - * given context. - */ - context: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. - */ - cryptoKey: Schema$GooglePrivacyDlpV2beta2CryptoKey; - /** - * For example, -5 means shift date to at most 5 days back in the past. - * [Required] - */ - lowerBoundDays: number; - /** - * Range of shift in days. Actual shift will be selected at random within - * this range (inclusive ends). Negative means shift to earlier in time. - * Must not be more than 365250 days (1000 years) each direction. For - * example, 3 means shift date to at most 3 days into the future. [Required] - */ - upperBoundDays: number; - } - /** - * Message for a date time object. - */ - export interface Schema$GooglePrivacyDlpV2beta2DateTime { - /** - * One or more of the following must be set. All fields are optional, but - * when set must be valid date or time values. - */ - date: Schema$GoogleTypeDate; - dayOfWeek: string; - time: Schema$GoogleTypeTimeOfDay; - timeZone: Schema$GooglePrivacyDlpV2beta2TimeZone; - } - /** - * The configuration that controls how the data will change. - */ - export interface Schema$GooglePrivacyDlpV2beta2DeidentifyConfig { - /** - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - */ - infoTypeTransformations: - Schema$GooglePrivacyDlpV2beta2InfoTypeTransformations; - /** - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming a - * column within a table. - */ - recordTransformations: Schema$GooglePrivacyDlpV2beta2RecordTransformations; - } - /** - * Request to de-identify a list of items. - */ - export interface Schema$GooglePrivacyDlpV2beta2DeidentifyContentRequest { - /** - * Configuration for the de-identification of the content item. Items - * specified here will override the template referenced by the - * deidentify_template_name argument. - */ - deidentifyConfig: Schema$GooglePrivacyDlpV2beta2DeidentifyConfig; - /** - * Optional template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular - * fields that are set in this request will replace their corresponding - * fields in the template. Repeated fields are appended. Singular - * sub-messages and groups are recursively merged. - */ - deidentifyTemplateName: string; - /** - * Configuration for the inspector. Items specified here will override the - * template referenced by the inspect_template_name argument. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta2InspectConfig; - /** - * Optional template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in - * the template. Repeated fields are appended. Singular sub-messages and - * groups are recursively merged. - */ - inspectTemplateName: string; - /** - * The item to de-identify. Will be treated as text. - */ - item: Schema$GooglePrivacyDlpV2beta2ContentItem; - } - /** - * Results of de-identifying a ContentItem. - */ - export interface Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse { - /** - * The de-identified item. - */ - item: Schema$GooglePrivacyDlpV2beta2ContentItem; - /** - * An overview of the changes that were made on the `item`. - */ - overview: Schema$GooglePrivacyDlpV2beta2TransformationOverview; - } - /** - * The DeidentifyTemplates contains instructions on how to deidentify content. - */ - export interface Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate { - /** - * The creation timestamp of a inspectTemplate, output only field. - */ - createTime: string; - /** - * ///////////// // The core content of the template // /////////////// - */ - deidentifyConfig: Schema$GooglePrivacyDlpV2beta2DeidentifyConfig; - /** - * Short description (max 256 chars). - */ - description: string; - /** - * Display name (max 256 chars). - */ - displayName: string; - /** - * The template name. Output only. The template will have one of the - * following formats: `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` - * OR `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - */ - name: string; - /** - * The last update timestamp of a inspectTemplate, output only field. - */ - updateTime: string; - } - /** - * Rule for modifying a custom info type to alter behavior under certain - * circumstances, depending on the specific details of the rule. Not supported - * for the `surrogate_type` custom info type. - */ - export interface Schema$GooglePrivacyDlpV2beta2DetectionRule { - /** - * Hotword-based detection rule. - */ - hotwordRule: Schema$GooglePrivacyDlpV2beta2HotwordRule; - } - /** - * Custom information type based on a dictionary of words or phrases. This can - * be used to match sensitive information specific to the data, such as a list - * of employee IDs or job titles. Dictionary words are case-insensitive and - * all characters other than letters and digits in the unicode [Basic - * Multilingual - * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) - * will be replaced with whitespace when scanning for matches, so the - * dictionary phrase "Sam Johnson" will match all three phrases - * "sam johnson", "Sam, Johnson", and "Sam - * (Johnson)". Additionally, the characters surrounding any match must be - * of a different type than the adjacent characters within the word, so - * letters must be next to non-letters and digits next to non-digits. For - * example, the dictionary word "jen" will match the first three - * letters of the text "jen123" but will return no matches for - * "jennifer". Dictionary words containing a large number of - * characters that are not letters or digits may result in unexpected findings - * because such characters are treated as whitespace. - */ - export interface Schema$GooglePrivacyDlpV2beta2Dictionary { - /** - * List of words or phrases to search for. - */ - wordList: Schema$GooglePrivacyDlpV2beta2WordList; - } - /** - * Combines all of the information about a DLP job. - */ - export interface Schema$GooglePrivacyDlpV2beta2DlpJob { - /** - * Time when the job was created. - */ - createTime: string; - /** - * Time when the job finished. - */ - endTime: string; - /** - * A stream of errors encountered running the job. - */ - errorResults: Schema$GoogleRpcStatus[]; - /** - * Results from inspecting a data source. - */ - inspectDetails: Schema$GooglePrivacyDlpV2beta2InspectDataSourceDetails; - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - */ - jobTriggerName: string; - /** - * The server-assigned name. - */ - name: string; - /** - * Results from analyzing risk of a data source. - */ - riskDetails: Schema$GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskDetails; - /** - * Time when the job started. - */ - startTime: string; - /** - * State of a job. - */ - state: string; - /** - * The type of job. - */ - type: string; - } - /** - * An entity in a dataset is a field or set of fields that correspond to a - * single person. For example, in medical records the `EntityId` might be a - * patient identifier, or for financial records it might be an account - * identifier. This message is used when generalizations or analysis must be - * consistent across multiple rows pertaining to the same entity. - */ - export interface Schema$GooglePrivacyDlpV2beta2EntityId { - /** - * Composite key indicating which field contains the entity identifier. - */ - field: Schema$GooglePrivacyDlpV2beta2FieldId; - } - /** - * The results of an unsuccessful activation of the JobTrigger. - */ - export interface Schema$GooglePrivacyDlpV2beta2Error { - details: Schema$GoogleRpcStatus; - /** - * The times the error occurred. - */ - timestamps: string[]; - } - /** - * An expression, consisting or an operator and conditions. - */ - export interface Schema$GooglePrivacyDlpV2beta2Expressions { - conditions: Schema$GooglePrivacyDlpV2beta2Conditions; - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - */ - logicalOperator: string; - } - /** - * General identifier of a data field in a storage service. - */ - export interface Schema$GooglePrivacyDlpV2beta2FieldId { - /** - * Name describing the field. - */ - name: string; - } - /** - * The transformation to apply to the field. - */ - export interface Schema$GooglePrivacyDlpV2beta2FieldTransformation { - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. [optional] Example Use - * Cases: - Apply a different bucket transformation to an age column if the - * zip code column for the same record is within a specific range. - Redact - * a field if the date of birth field is greater than 85. - */ - condition: Schema$GooglePrivacyDlpV2beta2RecordCondition; - /** - * Input field(s) to apply the transformation to. [required] - */ - fields: Schema$GooglePrivacyDlpV2beta2FieldId[]; - /** - * Treat the contents of the field as free text, and selectively transform - * content that matches an `InfoType`. - */ - infoTypeTransformations: - Schema$GooglePrivacyDlpV2beta2InfoTypeTransformations; - /** - * Apply the transformation to the entire field. - */ - primitiveTransformation: - Schema$GooglePrivacyDlpV2beta2PrimitiveTransformation; - } - /** - * Set of files to scan. - */ - export interface Schema$GooglePrivacyDlpV2beta2FileSet { - /** - * The url, in the format `gs://<bucket>/<path>`. Trailing - * wildcard in the path is allowed. - */ - url: string; - } - /** - * Represents a piece of potentially sensitive content. - */ - export interface Schema$GooglePrivacyDlpV2beta2Finding { - /** - * Timestamp when finding was detected. - */ - createTime: string; - /** - * The type of content that might have been found. Provided if requested by - * the `InspectConfig`. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - /** - * Estimate of how likely it is that the `info_type` is correct. - */ - likelihood: string; - /** - * Where the content was found. - */ - location: Schema$GooglePrivacyDlpV2beta2Location; - /** - * The content that was found. Even if the content is not textual, it may be - * converted to a textual representation here. Provided if requested by the - * `InspectConfig` and the finding is less than or equal to 4096 bytes long. - * If the finding exceeds 4096 bytes in length, the quote may be omitted. - */ - quote: string; - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - */ - quoteInfo: Schema$GooglePrivacyDlpV2beta2QuoteInfo; - } - export interface Schema$GooglePrivacyDlpV2beta2FindingLimits { - /** - * Configuration of findings limit given for specified infoTypes. - */ - maxFindingsPerInfoType: Schema$GooglePrivacyDlpV2beta2InfoTypeLimit[]; - /** - * Max number of findings that will be returned for each item scanned. When - * set within `InspectDataSourceRequest`, the maximum returned is 1000 - * regardless if this is set higher. When set within - * `InspectContentRequest`, this field is ignored. - */ - maxFindingsPerItem: number; - /** - * Max number of findings that will be returned per request/job. When set - * within `InspectContentRequest`, the maximum returned is 1000 regardless - * if this is set higher. - */ - maxFindingsPerRequest: number; - } - /** - * Buckets values based on fixed size ranges. The Bucketing transformation can - * provide all of this functionality, but requires more configuration. This - * message is provided as a convenience to the user for simple bucketing - * strategies. The transformed value will be a hyphenated string of - * <lower_bound>-<upper_bound>, i.e if lower_bound = 10 and - * upper_bound = 20 all values that are within this bucket will be replaced - * with "10-20". This can be used on data of type: double, long. If - * the bound Value type differs from the type of data being transformed, we - * will first attempt converting the type of the data to be transformed to - * match the type of the bound before comparing. - */ - export interface Schema$GooglePrivacyDlpV2beta2FixedSizeBucketingConfig { - /** - * Size of each bucket (except for minimum and maximum buckets). So if - * `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. [Required]. - */ - bucketSize: number; - /** - * Lower bound value of buckets. All values less than `lower_bound` are - * grouped together into a single bucket; for example if `lower_bound` = 10, - * then all values less than 10 are replaced with the value “-10”. - * [Required]. - */ - lowerBound: Schema$GooglePrivacyDlpV2beta2Value; - /** - * Upper bound value of buckets. All values greater than upper_bound are - * grouped together into a single bucket; for example if `upper_bound` = 89, - * then all values greater than 89 are replaced with the value “89+”. - * [Required]. - */ - upperBound: Schema$GooglePrivacyDlpV2beta2Value; - } - /** - * Detection rule that adjusts the likelihood of findings within a certain - * proximity of hotwords. - */ - export interface Schema$GooglePrivacyDlpV2beta2HotwordRule { - /** - * Regex pattern defining what qualifies as a hotword. - */ - hotwordRegex: Schema$GooglePrivacyDlpV2beta2Regex; - /** - * Likelihood adjustment to apply to all matching findings. - */ - likelihoodAdjustment: Schema$GooglePrivacyDlpV2beta2LikelihoodAdjustment; - /** - * Proximity of the finding within which the entire hotword must reside. The - * total length of the window cannot exceed 1000 characters. Note that the - * finding itself will be included in the window, so that hotwords may be - * used to match substrings of the finding itself. For example, the - * certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could - * be adjusted upwards if the area code is known to be the local area code - * of a company office using the hotword regex "\(xxx\)", where - * "xxx" is the area code in question. - */ - proximity: Schema$GooglePrivacyDlpV2beta2Proximity; - } - /** - * Bounding box encompassing detected text within an image. - */ - export interface Schema$GooglePrivacyDlpV2beta2ImageLocation { - /** - * Height of the bounding box in pixels. - */ - height: number; - /** - * Left coordinate of the bounding box. (0,0) is upper left. - */ - left: number; - /** - * Top coordinate of the bounding box. (0,0) is upper left. - */ - top: number; - /** - * Width of the bounding box in pixels. - */ - width: number; - } - /** - * Configuration for determining how redaction of images should occur. - */ - export interface Schema$GooglePrivacyDlpV2beta2ImageRedactionConfig { - /** - * Only one per info_type should be provided per request. If not specified, - * and redact_all_text is false, the DLP API will redact all text that it - * matches against all info_types that are found, but not specified in - * another ImageRedactionConfig. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - /** - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. - */ - redactAllText: boolean; - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - */ - redactionColor: Schema$GooglePrivacyDlpV2beta2Color; - } - /** - * Type of information detected by the API. - */ - export interface Schema$GooglePrivacyDlpV2beta2InfoType { - /** - * Name of the information type. - */ - name: string; - } - /** - * InfoType description. - */ - export interface Schema$GooglePrivacyDlpV2beta2InfoTypeDescription { - /** - * Human readable form of the infoType name. - */ - displayName: string; - /** - * Internal name of the infoType. - */ - name: string; - /** - * Which parts of the API supports this InfoType. - */ - supportedBy: string[]; - } - /** - * Max findings configuration per infoType, per content item or long running - * DlpJob. - */ - export interface Schema$GooglePrivacyDlpV2beta2InfoTypeLimit { - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that are - * found but not specified in another InfoTypeLimit. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - /** - * Max findings limit for the given infoType. - */ - maxFindings: number; - } - /** - * Statistics regarding a specific InfoType. - */ - export interface Schema$GooglePrivacyDlpV2beta2InfoTypeStatistics { - /** - * Number of findings for this infoType. - */ - count: string; - /** - * The type of finding this stat is for. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - } - /** - * A transformation to apply to text that is identified as a specific - * info_type. - */ - export interface Schema$GooglePrivacyDlpV2beta2InfoTypeTransformation { - /** - * InfoTypes to apply the transformation to. Empty list will match all - * available infoTypes for this transformation. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta2InfoType[]; - /** - * Primitive transformation to apply to the infoType. [required] - */ - primitiveTransformation: - Schema$GooglePrivacyDlpV2beta2PrimitiveTransformation; - } - /** - * A type of transformation that will scan unstructured text and apply various - * `PrimitiveTransformation`s to each finding, where the transformation is - * applied to only values that were identified as a specific info_type. - */ - export interface Schema$GooglePrivacyDlpV2beta2InfoTypeTransformations { - /** - * Transformation for each infoType. Cannot specify more than one for a - * given infoType. [required] - */ - transformations: Schema$GooglePrivacyDlpV2beta2InfoTypeTransformation[]; - } - /** - * Configuration description of the scanning process. When used with - * redactContent only info_types and min_likelihood are currently used. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectConfig { - /** - * Custom infoTypes provided by the user. - */ - customInfoTypes: Schema$GooglePrivacyDlpV2beta2CustomInfoType[]; - /** - * When true, excludes type information of the findings. - */ - excludeInfoTypes: boolean; - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see Finding.quote. - */ - includeQuote: boolean; - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or found in documentation. - * Empty info_types runs all enabled detectors. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta2InfoType[]; - limits: Schema$GooglePrivacyDlpV2beta2FindingLimits; - /** - * Only returns findings equal or above this threshold. The default is - * POSSIBLE. - */ - minLikelihood: string; - } - /** - * Request to search for potentially sensitive info in a ContentItem. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectContentRequest { - /** - * Configuration for the inspector. What specified here will override the - * template referenced by the inspect_template_name argument. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta2InspectConfig; - /** - * Optional template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in - * the template. Repeated fields are appended. Singular sub-messages and - * groups are recursively merged. - */ - inspectTemplateName: string; - /** - * The item to inspect. - */ - item: Schema$GooglePrivacyDlpV2beta2ContentItem; - } - /** - * Results of inspecting an item. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectContentResponse { - /** - * The findings. - */ - result: Schema$GooglePrivacyDlpV2beta2InspectResult; - } - /** - * The results of an inspect DataSource job. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectDataSourceDetails { - /** - * The configuration used for this job. - */ - requestedOptions: Schema$GooglePrivacyDlpV2beta2RequestedOptions; - /** - * A summary of the outcome of this inspect job. - */ - result: Schema$GooglePrivacyDlpV2beta2Result; - } - /** - * Request for scheduling a scan of a data subset from a Google Platform data - * repository. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectDataSourceRequest { - /** - * A configuration for the job. - */ - jobConfig: Schema$GooglePrivacyDlpV2beta2InspectJobConfig; - /** - * Optional job ID to use for the created job. If not provided, a job ID - * will automatically be generated. Must be unique within the project. The - * job ID can contain uppercase and lowercase letters, numbers, and hyphens; - * that is, it must match the regular expression: `[a-zA-Z\\d-]+`. The - * maximum length is 100 characters. Can be empty to allow the system to - * generate one. - */ - jobId: string; - } - export interface Schema$GooglePrivacyDlpV2beta2InspectJobConfig { - /** - * Actions to execute at the completion of the job. Are executed in the - * order provided. - */ - actions: Schema$GooglePrivacyDlpV2beta2Action[]; - /** - * How and what to scan for. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta2InspectConfig; - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - */ - inspectTemplateName: string; - /** - * Where to put the findings. - */ - outputConfig: Schema$GooglePrivacyDlpV2beta2OutputStorageConfig; - /** - * The data to scan. - */ - storageConfig: Schema$GooglePrivacyDlpV2beta2StorageConfig; - } - /** - * All the findings for a single scanned item. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectResult { - /** - * List of findings for an item. - */ - findings: Schema$GooglePrivacyDlpV2beta2Finding[]; - /** - * If true, then this item might have more findings than were returned, and - * the findings returned are an arbitrary subset of all findings. The - * findings list might be truncated because the input items were too large, - * or because the server reached the maximum amount of resources allowed for - * a single API call. For best results, divide the input into smaller - * batches. - */ - findingsTruncated: boolean; - } - /** - * The inspectTemplate contains a configuration (set of types of sensitive - * data to be detected) to be used anywhere you otherwise would normally - * specify InspectConfig. - */ - export interface Schema$GooglePrivacyDlpV2beta2InspectTemplate { - /** - * The creation timestamp of a inspectTemplate, output only field. - */ - createTime: string; - /** - * Short description (max 256 chars). - */ - description: string; - /** - * Display name (max 256 chars). - */ - displayName: string; - /** - * The core content of the template. Configuration of the scanning process. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta2InspectConfig; - /** - * The template name. Output only. The template will have one of the - * following formats: `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` - */ - name: string; - /** - * The last update timestamp of a inspectTemplate, output only field. - */ - updateTime: string; - } - /** - * Contains a configuration to make dlp api calls on a repeating basis. - */ - export interface Schema$GooglePrivacyDlpV2beta2JobTrigger { - /** - * The creation timestamp of a triggeredJob, output only field. - */ - createTime: string; - /** - * User provided description (max 256 chars) - */ - description: string; - /** - * Display name (max 100 chars) - */ - displayName: string; - /** - * A stream of errors encountered when the trigger was activated. Repeated - * errors may result in the JobTrigger automaticaly being paused. Will - * return the last 100 errors. Whenever the JobTrigger is modified this list - * will be cleared. Output only field. - */ - errors: Schema$GooglePrivacyDlpV2beta2Error[]; - inspectJob: Schema$GooglePrivacyDlpV2beta2InspectJobConfig; - /** - * The timestamp of the last time this trigger executed. - */ - lastRunTime: string; - /** - * Unique resource name for the triggeredJob, assigned by the service when - * the triggeredJob is created, for example - * `projects/dlp-test-project/triggeredJobs/53234423`. - */ - name: string; - /** - * A status for this trigger. [required] - */ - status: string; - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only a - * single Schedule trigger and must have at least one object. - */ - triggers: Schema$GooglePrivacyDlpV2beta2Trigger[]; - /** - * The last update timestamp of a triggeredJob, output only field. - */ - updateTime: string; - } - /** - * k-anonymity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta2KAnonymityConfig { - /** - * Optional message indicating that each distinct entity_id should not - * contribute to the k-anonymity count more than once per equivalence class. - * If an entity_id appears on several rows with different quasi-identifier - * tuples, it will contribute to each count exactly once. This can lead to - * unexpected results. Consider a table where ID 1 is associated to - * quasi-identifier "foo", ID 2 to "bar", and ID 3 to - * *both* quasi-identifiers "foo" and "bar" (on separate - * rows), and where this ID is used as entity_id. Then, the anonymity value - * associated to ID 3 will be 2, even if it is the only ID to be associated - * to both values "foo" and "bar". - */ - entityId: Schema$GooglePrivacyDlpV2beta2EntityId; - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within a - * repeated field. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta2FieldId[]; - } - /** - * The set of columns' values that share the same ldiversity value - */ - export interface Schema$GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass { - /** - * Size of the equivalence class, for example number of rows with the above - * set of values. - */ - equivalenceClassSize: string; - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta2Value[]; - } - export interface Schema$GooglePrivacyDlpV2beta2KAnonymityHistogramBucket { - /** - * Total number of equivalence classes in this bucket. - */ - bucketSize: string; - /** - * Total number of distinct equivalence classes in this bucket. - */ - bucketValueCount: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta2KAnonymityEquivalenceClass[]; - /** - * Lower bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeLowerBound: string; - /** - * Upper bound on the size of the equivalence classes in this bucket. - */ - equivalenceClassSizeUpperBound: string; - } - /** - * Result of the k-anonymity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta2KAnonymityResult { - /** - * Histogram of k-anonymity equivalence classes. - */ - equivalenceClassHistogramBuckets: - Schema$GooglePrivacyDlpV2beta2KAnonymityHistogramBucket[]; - } - /** - * A unique identifier for a Datastore entity. If a key's partition ID or - * any of its path kinds or names are reserved/read-only, the key is - * reserved/read-only. A reserved/read-only key is forbidden in certain - * documented contexts. - */ - export interface Schema$GooglePrivacyDlpV2beta2Key { - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. Queries are scoped to a single partition. - */ - partitionId: Schema$GooglePrivacyDlpV2beta2PartitionId; - /** - * The entity path. An entity path consists of one or more elements composed - * of a kind and a string or numerical identifier, which identify entities. - * The first element identifies a _root entity_, the second element - * identifies a _child_ of the root entity, the third element identifies a - * child of the second entity, and so forth. The entities identified by all - * prefixes of the path are called the element's _ancestors_. A path - * can never be empty, and a path can have at most 100 elements. - */ - path: Schema$GooglePrivacyDlpV2beta2PathElement[]; - } - /** - * A representation of a Datastore kind. - */ - export interface Schema$GooglePrivacyDlpV2beta2KindExpression { - /** - * The name of the kind. - */ - name: string; - } - /** - * Reidentifiability metric. This corresponds to a risk model similar to what - * is called "journalist risk" in the literature, except the attack - * dataset is statistically modeled instead of being perfectly known. This can - * be done using publicly available data (like the US Census), or using a - * custom statistical model (indicated as one or several BigQuery tables), or - * by extrapolating from the distribution of values in the input dataset. - */ - export interface Schema$GooglePrivacyDlpV2beta2KMapEstimationConfig { - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - */ - auxiliaryTables: Schema$GooglePrivacyDlpV2beta2AuxiliaryTable[]; - /** - * Fields considered to be quasi-identifiers. No two columns can have the - * same tag. [required] - */ - quasiIds: Schema$GooglePrivacyDlpV2beta2TaggedField[]; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Required if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - */ - regionCode: string; - } - /** - * A KMapEstimationHistogramBucket message with the following values: - * min_anonymity: 3 max_anonymity: 5 frequency: 42 means that there are 42 - * records whose quasi-identifier values correspond to 3, 4 or 5 people in the - * overlying population. An important particular case is when min_anonymity = - * max_anonymity = 1: the frequency field then corresponds to the number of - * uniquely identifiable records. - */ - export interface Schema$GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket { - /** - * Number of records within these anonymity bounds. - */ - bucketSize: string; - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - */ - bucketValueCount: string; - /** - * Sample of quasi-identifier tuple values in this bucket. The total number - * of classes returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues[]; - /** - * Always greater than or equal to min_anonymity. - */ - maxAnonymity: string; - /** - * Always positive. - */ - minAnonymity: string; - } - /** - * A tuple of values for the quasi-identifier columns. - */ - export interface Schema$GooglePrivacyDlpV2beta2KMapEstimationQuasiIdValues { - /** - * The estimated anonymity for these quasi-identifier values. - */ - estimatedAnonymity: string; - /** - * The quasi-identifier values. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta2Value[]; - } - /** - * Result of the reidentifiability analysis. Note that these results are an - * estimation, not exact values. - */ - export interface Schema$GooglePrivacyDlpV2beta2KMapEstimationResult { - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: {min_anonymity: 1, - * max_anonymity: 1, frequency: 17} {min_anonymity: 2, max_anonymity: 3, - * frequency: 42} {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - */ - kMapEstimationHistogram: - Schema$GooglePrivacyDlpV2beta2KMapEstimationHistogramBucket[]; - } - /** - * Include to use an existing data crypto key wrapped by KMS. Authorization - * requires the following IAM permissions when sending a request to perform a - * crypto transformation using a kms-wrapped crypto key: dlp.kms.encrypt - */ - export interface Schema$GooglePrivacyDlpV2beta2KmsWrappedCryptoKey { - /** - * The resource name of the KMS CryptoKey to use for unwrapping. [required] - */ - cryptoKeyName: string; - /** - * The wrapped data crypto key. [required] - */ - wrappedKey: string; - } - /** - * l-diversity metric, used for analysis of reidentification risk. - */ - export interface Schema$GooglePrivacyDlpV2beta2LDiversityConfig { - /** - * Set of quasi-identifiers indicating how equivalence classes are defined - * for the l-diversity computation. When multiple fields are specified, they - * are considered a single composite key. - */ - quasiIds: Schema$GooglePrivacyDlpV2beta2FieldId[]; - /** - * Sensitive field for computing the l-value. - */ - sensitiveAttribute: Schema$GooglePrivacyDlpV2beta2FieldId; - } - /** - * The set of columns' values that share the same ldiversity value. - */ - export interface Schema$GooglePrivacyDlpV2beta2LDiversityEquivalenceClass { - /** - * Size of the k-anonymity equivalence class. - */ - equivalenceClassSize: string; - /** - * Number of distinct sensitive values in this equivalence class. - */ - numDistinctSensitiveValues: string; - /** - * Quasi-identifier values defining the k-anonymity equivalence class. The - * order is always the same as the original request. - */ - quasiIdsValues: Schema$GooglePrivacyDlpV2beta2Value[]; - /** - * Estimated frequencies of top sensitive values. - */ - topSensitiveValues: Schema$GooglePrivacyDlpV2beta2ValueFrequency[]; - } - export interface Schema$GooglePrivacyDlpV2beta2LDiversityHistogramBucket { - /** - * Total number of equivalence classes in this bucket. - */ - bucketSize: string; - /** - * Total number of distinct equivalence classes in this bucket. - */ - bucketValueCount: string; - /** - * Sample of equivalence classes in this bucket. The total number of classes - * returned per bucket is capped at 20. - */ - bucketValues: Schema$GooglePrivacyDlpV2beta2LDiversityEquivalenceClass[]; - /** - * Lower bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyLowerBound: string; - /** - * Upper bound on the sensitive value frequencies of the equivalence classes - * in this bucket. - */ - sensitiveValueFrequencyUpperBound: string; - } - /** - * Result of the l-diversity computation. - */ - export interface Schema$GooglePrivacyDlpV2beta2LDiversityResult { - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - */ - sensitiveValueFrequencyHistogramBuckets: - Schema$GooglePrivacyDlpV2beta2LDiversityHistogramBucket[]; - } - /** - * Message for specifying an adjustment to the likelihood of a finding as part - * of a detection rule. - */ - export interface Schema$GooglePrivacyDlpV2beta2LikelihoodAdjustment { - /** - * Set the likelihood of a finding to a fixed value. - */ - fixedLikelihood: string; - /** - * Increase or decrease the likelihood by the specified number of levels. - * For example, if a finding would be `POSSIBLE` without the detection rule - * and `relative_likelihood` is 1, then it is upgraded to `LIKELY`, while a - * value of -1 would downgrade it to `UNLIKELY`. Likelihood may never drop - * below `VERY_UNLIKELY` or exceed `VERY_LIKELY`, so applying an adjustment - * of 1 followed by an adjustment of -1 when base likelihood is - * `VERY_LIKELY` will result in a final likelihood of `LIKELY`. - */ - relativeLikelihood: number; - } - /** - * Response message for ListDeidentifyTemplates. - */ - export interface Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse { - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - */ - deidentifyTemplates: Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate[]; - /** - * If the next page is available then the next page token to be used in - * following ListDeidentifyTemplates request. - */ - nextPageToken: string; - } - /** - * The response message for listing DLP jobs. - */ - export interface Schema$GooglePrivacyDlpV2beta2ListDlpJobsResponse { - /** - * A list of DlpJobs that matches the specified filter in the request. - */ - jobs: Schema$GooglePrivacyDlpV2beta2DlpJob[]; - /** - * The standard List next-page token. - */ - nextPageToken: string; - } - /** - * Response to the ListInfoTypes request. - */ - export interface Schema$GooglePrivacyDlpV2beta2ListInfoTypesResponse { - /** - * Set of sensitive infoTypes. - */ - infoTypes: Schema$GooglePrivacyDlpV2beta2InfoTypeDescription[]; - } - /** - * Response message for ListInspectTemplates. - */ - export interface Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse { - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - */ - inspectTemplates: Schema$GooglePrivacyDlpV2beta2InspectTemplate[]; - /** - * If the next page is available then the next page token to be used in - * following ListInspectTemplates request. - */ - nextPageToken: string; - } - /** - * Response message for ListJobTriggers. - */ - export interface Schema$GooglePrivacyDlpV2beta2ListJobTriggersResponse { - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - */ - jobTriggers: Schema$GooglePrivacyDlpV2beta2JobTrigger[]; - /** - * If the next page is available then the next page token to be used in - * following ListJobTriggers request. - */ - nextPageToken: string; - } - /** - * Specifies the location of the finding. - */ - export interface Schema$GooglePrivacyDlpV2beta2Location { - /** - * Zero-based byte offsets delimiting the finding. These are relative to the - * finding's containing element. Note that when the content is not - * textual, this references the UTF-8 encoded textual representation of the - * content. Omitted if content is an image. - */ - byteRange: Schema$GooglePrivacyDlpV2beta2Range; - /** - * Unicode character offsets delimiting the finding. These are relative to - * the finding's containing element. Provided when the content is text. - */ - codepointRange: Schema$GooglePrivacyDlpV2beta2Range; - /** - * The pointer to the property or cell that contained the finding. Provided - * when the finding's containing element is a cell in a table or a - * property of storage object. - */ - fieldId: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * The area within the image that contained the finding. Provided when the - * content is an image. - */ - imageBoxes: Schema$GooglePrivacyDlpV2beta2ImageLocation[]; - /** - * The pointer to the record in storage that contained the field the finding - * was found in. Provided when the finding's containing element is a - * property of a storage object. - */ - recordKey: Schema$GooglePrivacyDlpV2beta2RecordKey; - /** - * The pointer to the row of the table that contained the finding. Provided - * when the finding's containing element is a cell of a table. - */ - tableLocation: Schema$GooglePrivacyDlpV2beta2TableLocation; - } - /** - * Compute numerical stats over an individual column, including min, max, and - * quantiles. - */ - export interface Schema$GooglePrivacyDlpV2beta2NumericalStatsConfig { - /** - * Field to compute numerical stats on. Supported types are integer, float, - * date, datetime, timestamp, time. - */ - field: Schema$GooglePrivacyDlpV2beta2FieldId; - } - /** - * Result of the numerical stats computation. - */ - export interface Schema$GooglePrivacyDlpV2beta2NumericalStatsResult { - /** - * Maximum value appearing in the column. - */ - maxValue: Schema$GooglePrivacyDlpV2beta2Value; - /** - * Minimum value appearing in the column. - */ - minValue: Schema$GooglePrivacyDlpV2beta2Value; - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - */ - quantileValues: Schema$GooglePrivacyDlpV2beta2Value[]; - } - /** - * Cloud repository for storing output. - */ - export interface Schema$GooglePrivacyDlpV2beta2OutputStorageConfig { - /** - * Schema used for writing the findings. Columns are derived from the - * `Finding` object. If appending to an existing table, any columns from the - * predefined schema that are missing will be added. No columns in the - * existing table will be deleted. If unspecified, then all available - * columns will be used for a new table, and no changes will be made to an - * existing table. - */ - outputSchema: string; - /** - * Store findings in an existing table or a new table in an existing - * dataset. Each column in an existing table must have the same name, type, - * and mode of a field in the `Finding` object. If table_id is not set a new - * one will be generated for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific timezone will be used for - * generating the date details. - */ - table: Schema$GooglePrivacyDlpV2beta2BigQueryTable; - } - /** - * Datastore partition ID. A partition ID identifies a grouping of entities. - * The grouping is always by project and namespace, however the namespace ID - * may be empty. A partition ID contains several dimensions: project ID and - * namespace ID. - */ - export interface Schema$GooglePrivacyDlpV2beta2PartitionId { - /** - * If not empty, the ID of the namespace to which the entities belong. - */ - namespaceId: string; - /** - * The ID of the project to which the entities belong. - */ - projectId: string; - } - /** - * A (kind, ID/name) pair used to construct a key path. If either name or ID - * is set, the element is complete. If neither is set, the element is - * incomplete. - */ - export interface Schema$GooglePrivacyDlpV2beta2PathElement { - /** - * The auto-allocated ID of the entity. Never equal to zero. Values less - * than zero are discouraged and may not be supported in the future. - */ - id: string; - /** - * The kind of the entity. A kind matching regex `__.*__` is - * reserved/read-only. A kind must not contain more than 1500 bytes when - * UTF-8 encoded. Cannot be `""`. - */ - kind: string; - /** - * The name of the entity. A name matching regex `__.*__` is - * reserved/read-only. A name must not be more than 1500 bytes when UTF-8 - * encoded. Cannot be `""`. - */ - name: string; - } - /** - * A rule for transforming a value. - */ - export interface Schema$GooglePrivacyDlpV2beta2PrimitiveTransformation { - bucketingConfig: Schema$GooglePrivacyDlpV2beta2BucketingConfig; - characterMaskConfig: Schema$GooglePrivacyDlpV2beta2CharacterMaskConfig; - cryptoHashConfig: Schema$GooglePrivacyDlpV2beta2CryptoHashConfig; - cryptoReplaceFfxFpeConfig: - Schema$GooglePrivacyDlpV2beta2CryptoReplaceFfxFpeConfig; - dateShiftConfig: Schema$GooglePrivacyDlpV2beta2DateShiftConfig; - fixedSizeBucketingConfig: - Schema$GooglePrivacyDlpV2beta2FixedSizeBucketingConfig; - redactConfig: Schema$GooglePrivacyDlpV2beta2RedactConfig; - replaceConfig: Schema$GooglePrivacyDlpV2beta2ReplaceValueConfig; - replaceWithInfoTypeConfig: - Schema$GooglePrivacyDlpV2beta2ReplaceWithInfoTypeConfig; - timePartConfig: Schema$GooglePrivacyDlpV2beta2TimePartConfig; - } - /** - * Privacy metric to compute for reidentification risk analysis. - */ - export interface Schema$GooglePrivacyDlpV2beta2PrivacyMetric { - categoricalStatsConfig: - Schema$GooglePrivacyDlpV2beta2CategoricalStatsConfig; - kAnonymityConfig: Schema$GooglePrivacyDlpV2beta2KAnonymityConfig; - kMapEstimationConfig: Schema$GooglePrivacyDlpV2beta2KMapEstimationConfig; - lDiversityConfig: Schema$GooglePrivacyDlpV2beta2LDiversityConfig; - numericalStatsConfig: Schema$GooglePrivacyDlpV2beta2NumericalStatsConfig; - } - /** - * Message for specifying a window around a finding to apply a detection rule. - */ - export interface Schema$GooglePrivacyDlpV2beta2Proximity { - /** - * Number of characters after the finding to consider. - */ - windowAfter: number; - /** - * Number of characters before the finding to consider. - */ - windowBefore: number; - } - /** - * Publish the results of a DlpJob to a pub sub channel. Compatible with: - * Inpect, Risk - */ - export interface Schema$GooglePrivacyDlpV2beta2PublishToPubSub { - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing the - * long running DlpJob sending the notifications. Format is - * projects/{project}/topics/{topic}. - */ - topic: string; - } - /** - * A quasi-identifier column has a custom_tag, used to know which column in - * the data corresponds to which column in the statistical model. - */ - export interface Schema$GooglePrivacyDlpV2beta2QuasiIdField { - customTag: string; - field: Schema$GooglePrivacyDlpV2beta2FieldId; - } - /** - * Message for infoType-dependent details parsed from quote. - */ - export interface Schema$GooglePrivacyDlpV2beta2QuoteInfo { - dateTime: Schema$GooglePrivacyDlpV2beta2DateTime; - } - /** - * Generic half-open interval [start, end) - */ - export interface Schema$GooglePrivacyDlpV2beta2Range { - /** - * Index of the last character of the range (exclusive). - */ - end: string; - /** - * Index of the first character of the range (inclusive). - */ - start: string; - } - /** - * A condition for determining whether a transformation should be applied to a - * field. - */ - export interface Schema$GooglePrivacyDlpV2beta2RecordCondition { - /** - * An expression. - */ - expressions: Schema$GooglePrivacyDlpV2beta2Expressions; - } - /** - * Message for a unique key indicating a record that contains a finding. - */ - export interface Schema$GooglePrivacyDlpV2beta2RecordKey { - bigQueryKey: Schema$GooglePrivacyDlpV2beta2BigQueryKey; - cloudStorageKey: Schema$GooglePrivacyDlpV2beta2CloudStorageKey; - datastoreKey: Schema$GooglePrivacyDlpV2beta2DatastoreKey; - } - /** - * Configuration to suppress records whose suppression conditions evaluate to - * true. - */ - export interface Schema$GooglePrivacyDlpV2beta2RecordSuppression { - /** - * A condition that when it evaluates to true will result in the record - * being evaluated to be suppressed from the transformed content. - */ - condition: Schema$GooglePrivacyDlpV2beta2RecordCondition; - } - /** - * A type of transformation that is applied over structured data such as a - * table. - */ - export interface Schema$GooglePrivacyDlpV2beta2RecordTransformations { - /** - * Transform the record by applying various field transformations. - */ - fieldTransformations: Schema$GooglePrivacyDlpV2beta2FieldTransformation[]; - /** - * Configuration defining which records get suppressed entirely. Records - * that match any suppression rule are omitted from the output [optional]. - */ - recordSuppressions: Schema$GooglePrivacyDlpV2beta2RecordSuppression[]; - } - /** - * Redact a given value. For example, if used with an `InfoTypeTransformation` - * transforming PHONE_NUMBER, and input 'My phone number is - * 206-555-0123', the output would be 'My phone number is '. - */ - export interface Schema$GooglePrivacyDlpV2beta2RedactConfig {} - /** - * Request to search for potentially sensitive info in a list of items and - * replace it with a default or provided content. - */ - export interface Schema$GooglePrivacyDlpV2beta2RedactImageRequest { - /** - * The bytes of the image to redact. - */ - imageData: string; - /** - * The configuration for specifying what content to redact from images. - */ - imageRedactionConfigs: Schema$GooglePrivacyDlpV2beta2ImageRedactionConfig[]; - /** - * Type of the content, as defined in Content-Type HTTP header. Supported - * types are: PNG, JPEG, SVG, & BMP. - */ - imageType: string; - /** - * Configuration for the inspector. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta2InspectConfig; - } - /** - * Results of redacting an image. - */ - export interface Schema$GooglePrivacyDlpV2beta2RedactImageResponse { - /** - * If an image was being inspected and the InspectConfig's include_quote - * was set to true, then this field will include all text, if any, that was - * found in the image. - */ - extractedText: string; - /** - * The redacted image. The type will be the same as the original image. - */ - redactedImage: string; - } - /** - * Message defining a custom regular expression. - */ - export interface Schema$GooglePrivacyDlpV2beta2Regex { - /** - * Pattern defining the regular expression. - */ - pattern: string; - } - /** - * Request to re-identify an item. - */ - export interface Schema$GooglePrivacyDlpV2beta2ReidentifyContentRequest { - /** - * Configuration for the inspector. - */ - inspectConfig: Schema$GooglePrivacyDlpV2beta2InspectConfig; - /** - * Optional template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in - * the template. Repeated fields are appended. Singular sub-messages and - * groups are recursively merged. - */ - inspectTemplateName: string; - /** - * The item to re-identify. Will be treated as text. - */ - item: Schema$GooglePrivacyDlpV2beta2ContentItem; - /** - * Configuration for the re-identification of the content item. This field - * shares the same proto message type that is used for de-identification, - * however its usage here is for the reversal of the previous - * de-identification. Re-identification is performed by examining the - * transformations used to de-identify the items and executing the reverse. - * This requires that only reversible transformations be provided here. The - * reversible transformations are: - `CryptoReplaceFfxFpeConfig` - */ - reidentifyConfig: Schema$GooglePrivacyDlpV2beta2DeidentifyConfig; - /** - * Optional template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in - * the template. Repeated fields are appended. Singular sub-messages and - * groups are recursively merged. - */ - reidentifyTemplateName: string; - } - /** - * Results of re-identifying a item. - */ - export interface Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse { - /** - * The re-identified item. - */ - item: Schema$GooglePrivacyDlpV2beta2ContentItem; - /** - * An overview of the changes that were made to the `item`. - */ - overview: Schema$GooglePrivacyDlpV2beta2TransformationOverview; - } - /** - * Replace each input value with a given `Value`. - */ - export interface Schema$GooglePrivacyDlpV2beta2ReplaceValueConfig { - /** - * Value to replace it with. - */ - newValue: Schema$GooglePrivacyDlpV2beta2Value; - } - /** - * Replace each matching finding with the name of the info_type. - */ - export interface Schema$GooglePrivacyDlpV2beta2ReplaceWithInfoTypeConfig {} - export interface Schema$GooglePrivacyDlpV2beta2RequestedOptions { - jobConfig: Schema$GooglePrivacyDlpV2beta2InspectJobConfig; - /** - * If run with an inspect template, a snapshot of it's state at the time - * of this run. - */ - snapshotInspectTemplate: Schema$GooglePrivacyDlpV2beta2InspectTemplate; - } - export interface Schema$GooglePrivacyDlpV2beta2Result { - /** - * Statistics of how many instances of each info type were found during - * inspect job. - */ - infoTypeStats: Schema$GooglePrivacyDlpV2beta2InfoTypeStatistics[]; - /** - * Total size in bytes that were processed. - */ - processedBytes: string; - /** - * Estimate of the number of bytes to process. - */ - totalEstimatedBytes: string; - } - /** - * Configuration for a risk analysis job. - */ - export interface Schema$GooglePrivacyDlpV2beta2RiskAnalysisJobConfig { - /** - * Actions to execute at the completion of the job. Are executed in the - * order provided. - */ - actions: Schema$GooglePrivacyDlpV2beta2Action[]; - /** - * Privacy metric to compute. - */ - privacyMetric: Schema$GooglePrivacyDlpV2beta2PrivacyMetric; - /** - * Input dataset to compute metrics over. - */ - sourceTable: Schema$GooglePrivacyDlpV2beta2BigQueryTable; - } - export interface Schema$GooglePrivacyDlpV2beta2Row { - values: Schema$GooglePrivacyDlpV2beta2Value[]; - } - /** - * If set, the detailed findings will be persisted to the specified - * OutputStorageConfig. Compatible with: Inspect - */ - export interface Schema$GooglePrivacyDlpV2beta2SaveFindings { - outputConfig: Schema$GooglePrivacyDlpV2beta2OutputStorageConfig; - } - /** - * Schedule for triggeredJobs. - */ - export interface Schema$GooglePrivacyDlpV2beta2Schedule { - /** - * With this option a job is started a regular periodic basis. For example: - * every 10 minutes. A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. This value must - * be set to a time duration greater than or equal to 60 minutes and can be - * no longer than 60 days. - */ - reccurrencePeriodDuration: string; - } - /** - * Shared message indicating Cloud storage type. - */ - export interface Schema$GooglePrivacyDlpV2beta2StorageConfig { - /** - * BigQuery options specification. - */ - bigQueryOptions: Schema$GooglePrivacyDlpV2beta2BigQueryOptions; - /** - * Google Cloud Storage options specification. - */ - cloudStorageOptions: Schema$GooglePrivacyDlpV2beta2CloudStorageOptions; - /** - * Google Cloud Datastore options specification. - */ - datastoreOptions: Schema$GooglePrivacyDlpV2beta2DatastoreOptions; - timespanConfig: Schema$GooglePrivacyDlpV2beta2TimespanConfig; - } - /** - * A collection that informs the user the number of times a particular - * `TransformationResultCode` and error details occurred. - */ - export interface Schema$GooglePrivacyDlpV2beta2SummaryResult { - code: string; - count: string; - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - */ - details: string; - } - /** - * Message for detecting output from deidentification transformations such as - * [`CryptoReplaceFfxFpeConfig`](/dlp/docs/reference/rest/v2beta1/content/deidentify#CryptoReplaceFfxFpeConfig). - * These types of transformations are those that perform pseudonymization, - * thereby producing a "surrogate" as output. This should be used in - * conjunction with a field on the transformation such as - * `surrogate_info_type`. This custom info type does not support the use of - * `detection_rules`. - */ - export interface Schema$GooglePrivacyDlpV2beta2SurrogateType {} - /** - * Structured content to inspect. Up to 50,000 `Value`s per request allowed. - */ - export interface Schema$GooglePrivacyDlpV2beta2Table { - headers: Schema$GooglePrivacyDlpV2beta2FieldId[]; - rows: Schema$GooglePrivacyDlpV2beta2Row[]; - } - /** - * Location of a finding within a table. - */ - export interface Schema$GooglePrivacyDlpV2beta2TableLocation { - /** - * The zero-based index of the row where the finding is located. - */ - rowIndex: string; - } - /** - * A column with a semantic tag attached. - */ - export interface Schema$GooglePrivacyDlpV2beta2TaggedField { - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on the - * possible values of this column (below). - */ - customTag: string; - /** - * Identifies the column. [required] - */ - field: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * If no semantic tag is indicated, we infer the statistical model from the - * distribution of values in the input data - */ - inferred: Schema$GoogleProtobufEmpty; - /** - * A column can be tagged with a InfoType to use the relevant public dataset - * as a statistical model of population, if available. We currently support - * US ZIP codes, region codes, ages and genders. To programmatically obtain - * the list of supported InfoTypes, use ListInfoTypes with the - * supported_by=RISK_ANALYSIS filter. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - } - /** - * For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a - * portion of the value. - */ - export interface Schema$GooglePrivacyDlpV2beta2TimePartConfig { - partToExtract: string; - } - /** - * Configuration of the timespan of the items to include in scanning. - * Currently only supported when inspecting Google Cloud Storage and BigQuery. - */ - export interface Schema$GooglePrivacyDlpV2beta2TimespanConfig { - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger. - */ - enableAutoPopulationOfTimespanConfig: boolean; - /** - * Exclude files newer than this value. If set to zero, no upper time limit - * is applied. - */ - endTime: string; - /** - * Exclude files older than this value. - */ - startTime: string; - } - export interface Schema$GooglePrivacyDlpV2beta2TimeZone { - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - */ - offsetMinutes: number; - } - /** - * Overview of the modifications that occurred. - */ - export interface Schema$GooglePrivacyDlpV2beta2TransformationOverview { - /** - * Transformations applied to the dataset. - */ - transformationSummaries: - Schema$GooglePrivacyDlpV2beta2TransformationSummary[]; - /** - * Total size in bytes that were transformed in some way. - */ - transformedBytes: string; - } - /** - * Summary of a single tranformation. Only one of 'transformation', - * 'field_transformation', or 'record_suppress' will be set. - */ - export interface Schema$GooglePrivacyDlpV2beta2TransformationSummary { - /** - * Set if the transformation was limited to a specific FieldId. - */ - field: Schema$GooglePrivacyDlpV2beta2FieldId; - /** - * The field transformation that was applied. If multiple field - * transformations are requested for a single field, this list will contain - * all of them; otherwise, only one is supplied. - */ - fieldTransformations: Schema$GooglePrivacyDlpV2beta2FieldTransformation[]; - /** - * Set if the transformation was limited to a specific info_type. - */ - infoType: Schema$GooglePrivacyDlpV2beta2InfoType; - /** - * The specific suppression option these stats apply to. - */ - recordSuppress: Schema$GooglePrivacyDlpV2beta2RecordSuppression; - results: Schema$GooglePrivacyDlpV2beta2SummaryResult[]; - /** - * The specific transformation these stats apply to. - */ - transformation: Schema$GooglePrivacyDlpV2beta2PrimitiveTransformation; - /** - * Total size in bytes that were transformed in some way. - */ - transformedBytes: string; - } - /** - * Use this to have a random data crypto key generated. It will be discarded - * after the request finishes. - */ - export interface Schema$GooglePrivacyDlpV2beta2TransientCryptoKey { - /** - * Name of the key. [required] This is an arbitrary string used to - * differentiate different keys. A unique key is generated per name: two - * separate `TransientCryptoKey` protos share the same generated key if - * their names are the same. When the data crypto key is generated, this - * name is not used in any way (repeating the api call will result in a - * different key being generated). - */ - name: string; - } - /** - * What event needs to occur for a new job to be started. - */ - export interface Schema$GooglePrivacyDlpV2beta2Trigger { - /** - * Create a job on a repeating basis based on the elapse of time. - */ - schedule: Schema$GooglePrivacyDlpV2beta2Schedule; - } - /** - * Using raw keys is prone to security risks due to accidentally leaking the - * key. Choose another type of key if possible. - */ - export interface Schema$GooglePrivacyDlpV2beta2UnwrappedCryptoKey { - /** - * The AES 128/192/256 bit key. [required] - */ - key: string; - } - /** - * Request message for UpdateDeidentifyTemplate. - */ - export interface Schema$GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest { - /** - * New DeidentifyTemplate value. - */ - deidentifyTemplate: Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate; - /** - * Mask to control which fields get updated. - */ - updateMask: string; - } - /** - * Request message for UpdateInspectTemplate. - */ - export interface Schema$GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest { - /** - * New InspectTemplate value. - */ - inspectTemplate: Schema$GooglePrivacyDlpV2beta2InspectTemplate; - /** - * Mask to control which fields get updated. - */ - updateMask: string; - } - /** - * Request message for UpdateJobTrigger. - */ - export interface Schema$GooglePrivacyDlpV2beta2UpdateJobTriggerRequest { - /** - * New JobTrigger value. - */ - jobTrigger: Schema$GooglePrivacyDlpV2beta2JobTrigger; - /** - * Mask to control which fields get updated. - */ - updateMask: string; - } - /** - * Set of primitive values supported by the system. Note that for the purposes - * of inspection or transformation, the number of bytes considered to comprise - * a 'Value' is based on its representation as a UTF-8 encoded string. - * For example, if 'integer_value' is set to 123456789, the number of - * bytes would be counted as 9, even though an int64 only holds up to 8 bytes - * of data. - */ - export interface Schema$GooglePrivacyDlpV2beta2Value { - booleanValue: boolean; - dateValue: Schema$GoogleTypeDate; - dayOfWeekValue: string; - floatValue: number; - integerValue: string; - stringValue: string; - timestampValue: string; - timeValue: Schema$GoogleTypeTimeOfDay; - } - /** - * A value of a field, including its frequency. - */ - export interface Schema$GooglePrivacyDlpV2beta2ValueFrequency { - /** - * How many times the value is contained in the field. - */ - count: string; - /** - * A value contained in the field in question. - */ - value: Schema$GooglePrivacyDlpV2beta2Value; - } - /** - * Message defining a list of words or phrases to search for in the data. - */ - export interface Schema$GooglePrivacyDlpV2beta2WordList { - /** - * Words or phrases defining the dictionary. The dictionary must contain at - * least one phrase and every phrase must contain at least 2 characters that - * are letters or digits. [required] - */ - words: string[]; - } - /** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: service Foo { rpc - * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON - * representation for `Empty` is empty JSON object `{}`. - */ - export interface Schema$GoogleProtobufEmpty {} - /** - * The `Status` type defines a logical error model that is suitable for - * different programming environments, including REST APIs and RPC APIs. It is - * used by [gRPC](https://github.com/grpc). The error model is designed to be: - * - Simple to use and understand for most users - Flexible enough to meet - * unexpected needs # Overview The `Status` message contains three pieces of - * data: error code, error message, and error details. The error code should - * be an enum value of google.rpc.Code, but it may accept additional error - * codes if needed. The error message should be a developer-facing English - * message that helps developers *understand* and *resolve* the error. If a - * localized user-facing error message is needed, put the localized message in - * the error details or localize it in the client. The optional error details - * may contain arbitrary information about the error. There is a predefined - * set of error detail types in the package `google.rpc` that can be used for - * common error conditions. # Language mapping The `Status` message is the - * logical representation of the error model, but it is not necessarily the - * actual wire format. When the `Status` message is exposed in different - * client libraries and different wire protocols, it can be mapped - * differently. For example, it will likely be mapped to some exceptions in - * Java, but more likely mapped to some error codes in C. # Other uses The - * error model and the `Status` message can be used in a variety of - * environments, either with or without APIs, to provide a consistent - * developer experience across different environments. Example uses of this - * error model include: - Partial errors. If a service needs to return - * partial errors to the client, it may embed the `Status` in the normal - * response to indicate the partial errors. - Workflow errors. A typical - * workflow has multiple steps. Each step may have a `Status` message for - * error reporting. - Batch operations. If a client uses batch request and - * batch response, the `Status` message should be used directly inside - * batch response, one for each error sub-response. - Asynchronous - * operations. If an API call embeds asynchronous operation results in its - * response, the status of those operations should be represented directly - * using the `Status` message. - Logging. If some API errors are stored in - * logs, the message `Status` could be used directly after any stripping - * needed for security/privacy reasons. - */ - export interface Schema$GoogleRpcStatus { - /** - * The status code, which should be an enum value of google.rpc.Code. - */ - code: number; - /** - * A list of messages that carry the error details. There is a common set - * of message types for APIs to use. - */ - details: any[]; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * google.rpc.Status.details field, or localized by the client. - */ - message: string; - } - /** - * Represents a whole calendar date, e.g. date of birth. The time of day and - * time zone are either specified elsewhere or are not significant. The date - * is relative to the Proleptic Gregorian Calendar. The day may be 0 to - * represent a year and month where the day is not significant, e.g. credit - * card expiration date. The year may be 0 to represent a month and day - * independent of year, e.g. anniversary date. Related types are - * google.type.TimeOfDay and `google.protobuf.Timestamp`. - */ - export interface Schema$GoogleTypeDate { - /** - * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 - * if specifying a year/month where the day is not significant. - */ - day: number; - /** - * Month of year. Must be from 1 to 12, or 0 if specifying a date without a - * month. - */ - month: number; - /** - * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a - * year. - */ - year: number; - } - /** - * Represents a time of day. The date and time zone are either not significant - * or are specified elsewhere. An API may choose to allow leap seconds. - * Related types are google.type.Date and `google.protobuf.Timestamp`. - */ - export interface Schema$GoogleTypeTimeOfDay { - /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose - * to allow the value "24:00:00" for scenarios like business - * closing time. - */ - hours: number; - /** - * Minutes of hour of day. Must be from 0 to 59. - */ - minutes: number; - /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. - */ - nanos: number; - /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may - * allow the value 60 if it allows leap-seconds. - */ - seconds: number; - } - - export class Resource$Infotypes { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.infoTypes.list - * @desc Returns sensitive information types DLP supports. - * @alias dlp.infoTypes.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Optional filter to only return infoTypes supported by certain parts of the API. Defaults to supported_by=INSPECT. - * @param {string=} params.languageCode Optional BCP-47 language code for localized infoType friendly names. If omitted, or if localized strings are not available, en-US strings will be returned. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInfoTypesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInfoTypesResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInfoTypesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInfoTypesResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/infoTypes') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListInfoTypesResponse>(parameters); - } - } - } - - export class Resource$Organizations { - root: Dlp; - deidentifyTemplates: Resource$Organizations$Deidentifytemplates; - inspectTemplates: Resource$Organizations$Inspecttemplates; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - this.deidentifyTemplates = - new Resource$Organizations$Deidentifytemplates(root); - this.inspectTemplates = new Resource$Organizations$Inspecttemplates(root); - } - - getRoot() { - return this.root; - } - } - export class Resource$Organizations$Deidentifytemplates { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.organizations.deidentifyTemplates.create - * @desc Creates an Deidentify template for re-using frequently used - * configuration for Deidentifying content, images, and storage. - * @alias dlp.organizations.deidentifyTemplates.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): void; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/deidentifyTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>(parameters); - } - } - - - /** - * dlp.organizations.deidentifyTemplates.delete - * @desc Deletes inspect templates. - * @alias dlp.organizations.deidentifyTemplates.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.organizations.deidentifyTemplates.get - * @desc Gets an inspect template. - * @alias dlp.organizations.deidentifyTemplates.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>(parameters); - } - } - - - /** - * dlp.organizations.deidentifyTemplates.list - * @desc Lists inspect templates. - * @alias dlp.organizations.deidentifyTemplates.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>): - void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>): - void|AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse> { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/deidentifyTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>( - parameters); - } - } - - - /** - * dlp.organizations.deidentifyTemplates.patch - * @desc Updates the inspect template. - * @alias dlp.organizations.deidentifyTemplates.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {().GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): void; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>(parameters); - } - } - } - - export class Resource$Organizations$Inspecttemplates { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.organizations.inspectTemplates.create - * @desc Creates an inspect template for re-using frequently used - * configuration for inspecting content, images, and storage. - * @alias dlp.organizations.inspectTemplates.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2beta2CreateInspectTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): void; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/inspectTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.organizations.inspectTemplates.delete - * @desc Deletes inspect templates. - * @alias dlp.organizations.inspectTemplates.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.organizations.inspectTemplates.get - * @desc Gets an inspect template. - * @alias dlp.organizations.inspectTemplates.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.organizations.inspectTemplates.list - * @desc Lists inspect templates. - * @alias dlp.organizations.inspectTemplates.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>): - void|AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse> { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/inspectTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>( - parameters); - } - } - - - /** - * dlp.organizations.inspectTemplates.patch - * @desc Updates the inspect template. - * @alias dlp.organizations.inspectTemplates.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {().GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): void; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - - export class Resource$Projects { - root: Dlp; - content: Resource$Projects$Content; - dataSource: Resource$Projects$Datasource; - deidentifyTemplates: Resource$Projects$Deidentifytemplates; - dlpJobs: Resource$Projects$Dlpjobs; - image: Resource$Projects$Image; - inspectTemplates: Resource$Projects$Inspecttemplates; - jobTriggers: Resource$Projects$Jobtriggers; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - this.content = new Resource$Projects$Content(root); - this.dataSource = new Resource$Projects$Datasource(root); - this.deidentifyTemplates = - new Resource$Projects$Deidentifytemplates(root); - this.dlpJobs = new Resource$Projects$Dlpjobs(root); - this.image = new Resource$Projects$Image(root); - this.inspectTemplates = new Resource$Projects$Inspecttemplates(root); - this.jobTriggers = new Resource$Projects$Jobtriggers(root); - } - - getRoot() { - return this.root; - } - } - export class Resource$Projects$Content { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.content.deidentify - * @desc De-identifies potentially sensitive info from a ContentItem. This - * method has limits on input size and output size. [How-to - * guide](/dlp/docs/deidentify-sensitive-data) - * @alias dlp.projects.content.deidentify - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2beta2DeidentifyContentRequest} 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 - */ - deidentify(params?: any, options?: MethodOptions): - AxiosPromise; - deidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse>): void; - deidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/content:deidentify') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyContentResponse>( - parameters); - } - } - - - /** - * dlp.projects.content.inspect - * @desc Finds potentially sensitive info in content. This method has limits - * on input size, processing time, and output size. [How-to guide for - * text](/dlp/docs/inspecting-text), [How-to guide for - * images](/dlp/docs/inspecting-images) - * @alias dlp.projects.content.inspect - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2beta2InspectContentRequest} 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 - */ - inspect(params?: any, options?: MethodOptions): - AxiosPromise; - inspect( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectContentResponse>): void; - inspect( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectContentResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/content:inspect') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2InspectContentResponse>(parameters); - } - } - - - /** - * dlp.projects.content.reidentify - * @desc Re-identify content that has been de-identified. - * @alias dlp.projects.content.reidentify - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name. - * @param {().GooglePrivacyDlpV2beta2ReidentifyContentRequest} 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 - */ - reidentify(params?: any, options?: MethodOptions): - AxiosPromise; - reidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse>): void; - reidentify( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/content:reidentify') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ReidentifyContentResponse>( - parameters); - } - } - } - - export class Resource$Projects$Datasource { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.dataSource.analyze - * @desc Schedules a job to compute risk analysis metrics over content in a - * Google Cloud Platform repository. [How-to - * guide](/dlp/docs/compute-risk-analysis) - * @alias dlp.projects.dataSource.analyze - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2beta2AnalyzeDataSourceRiskRequest} 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 - */ - analyze(params?: any, options?: MethodOptions): - AxiosPromise; - analyze( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - analyze( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/dataSource:analyze') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.projects.dataSource.inspect - * @desc Schedules a job scanning content in a Google Cloud Platform data - * repository. [How-to guide](/dlp/docs/inspecting-storage) - * @alias dlp.projects.dataSource.inspect - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2beta2InspectDataSourceRequest} 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 - */ - inspect(params?: any, options?: MethodOptions): - AxiosPromise; - inspect( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - inspect( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/dataSource:inspect') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - export class Resource$Projects$Deidentifytemplates { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.deidentifyTemplates.create - * @desc Creates an Deidentify template for re-using frequently used - * configuration for Deidentifying content, images, and storage. - * @alias dlp.projects.deidentifyTemplates.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2beta2CreateDeidentifyTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): void; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/deidentifyTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>(parameters); - } - } - - - /** - * dlp.projects.deidentifyTemplates.delete - * @desc Deletes inspect templates. - * @alias dlp.projects.deidentifyTemplates.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be deleted, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.projects.deidentifyTemplates.get - * @desc Gets an inspect template. - * @alias dlp.projects.deidentifyTemplates.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and deidentify template to be read, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>(parameters); - } - } - - - /** - * dlp.projects.deidentifyTemplates.list - * @desc Lists inspect templates. - * @alias dlp.projects.deidentifyTemplates.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListDeidentifyTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>): - void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>): - void|AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse> { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/deidentifyTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListDeidentifyTemplatesResponse>( - parameters); - } - } - - - /** - * dlp.projects.deidentifyTemplates.patch - * @desc Updates the inspect template. - * @alias dlp.projects.deidentifyTemplates.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and deidentify template to be updated, for example `organizations/433245324/deidentifyTemplates/432452342` or projects/project-id/deidentifyTemplates/432452342. - * @param {().GooglePrivacyDlpV2beta2UpdateDeidentifyTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): void; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2DeidentifyTemplate>(parameters); - } - } - } - - export class Resource$Projects$Dlpjobs { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.dlpJobs.cancel - * @desc Starts asynchronous cancellation on a long-running DlpJob. The - * server makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * @alias dlp.projects.dlpJobs.cancel - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the DlpJob resource to be cancelled. - * @param {().GooglePrivacyDlpV2beta2CancelDlpJobRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; - cancel( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - cancel( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}:cancel') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.projects.dlpJobs.delete - * @desc Deletes a long-running DlpJob. This method indicates that the - * client is no longer interested in the DlpJob result. The job will be - * cancelled if possible. - * @alias dlp.projects.dlpJobs.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the DlpJob resource to be deleted. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.projects.dlpJobs.get - * @desc Gets the latest state of a long-running DlpJob. - * @alias dlp.projects.dlpJobs.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the DlpJob resource. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - get(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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.projects.dlpJobs.list - * @desc Lists DlpJobs that match the specified filter in the request. - * @alias dlp.projects.dlpJobs.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.filter Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of ` `. * Supported fields/values for inspect jobs: - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - `trigger_name` - The resource name of the trigger that created job. * Supported fields for risk analysis jobs: - `state` - RUNNING|CANCELED|FINISHED|FAILED * The operator must be `=` or `!=`. Examples: * inspected_storage = cloud_storage AND state = done * inspected_storage = cloud_storage OR inspected_storage = bigquery * inspected_storage = cloud_storage AND (state = done OR state = canceled) The length of this field should be no more than 500 characters. - * @param {integer=} params.pageSize The standard list page size. - * @param {string=} params.pageToken The standard list page token. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {string=} params.type The type of job. Defaults to `DlpJobType.INSPECT` - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDlpJobsResponse>): void; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListDlpJobsResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/dlpJobs') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListDlpJobsResponse>(parameters); - } - } - } - - export class Resource$Projects$Image { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.image.redact - * @desc Redacts potentially sensitive info from an image. This method has - * limits on input size, processing time, and output size. [How-to - * guide](/dlp/docs/redacting-sensitive-data-images) - * @alias dlp.projects.image.redact - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2beta2RedactImageRequest} 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 - */ - redact(params?: any, options?: MethodOptions): - AxiosPromise; - redact( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2RedactImageResponse>): void; - redact( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2RedactImageResponse>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/image:redact') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2RedactImageResponse>(parameters); - } - } - } - - export class Resource$Projects$Inspecttemplates { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.inspectTemplates.create - * @desc Creates an inspect template for re-using frequently used - * configuration for inspecting content, images, and storage. - * @alias dlp.projects.inspectTemplates.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {().GooglePrivacyDlpV2beta2CreateInspectTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): void; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/inspectTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.projects.inspectTemplates.delete - * @desc Deletes inspect templates. - * @alias dlp.projects.inspectTemplates.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be deleted, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.projects.inspectTemplates.get - * @desc Gets an inspect template. - * @alias dlp.projects.inspectTemplates.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the organization and inspectTemplate to be read, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): void; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.projects.inspectTemplates.list - * @desc Lists inspect templates. - * @alias dlp.projects.inspectTemplates.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.pageSize Optional size of the page, can be limited by server. If zero server returns a page of max size 100. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to `ListInspectTemplates`. - * @param {string} params.parent The parent resource name, for example projects/my-project-id or organizations/my-org-id. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>): - void|AxiosPromise< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse> { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/inspectTemplates') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListInspectTemplatesResponse>( - parameters); - } - } - - - /** - * dlp.projects.inspectTemplates.patch - * @desc Updates the inspect template. - * @alias dlp.projects.inspectTemplates.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of organization and inspectTemplate to be updated, for example `organizations/433245324/inspectTemplates/432452342` or projects/project-id/inspectTemplates/432452342. - * @param {().GooglePrivacyDlpV2beta2UpdateInspectTemplateRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): void; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2InspectTemplate>): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } - - export class Resource$Projects$Jobtriggers { - root: Dlp; - constructor(root: Dlp) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * dlp.projects.jobTriggers.create - * @desc Creates a job to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * @alias dlp.projects.jobTriggers.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {().GooglePrivacyDlpV2beta2CreateJobTriggerRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create(params?: any, options?: MethodOptions): - AxiosPromise; - create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; - create( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/jobTriggers') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.projects.jobTriggers.delete - * @desc Deletes a job trigger. - * @alias dlp.projects.jobTriggers.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; - delete( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * dlp.projects.jobTriggers.get - * @desc Gets a job trigger. - * @alias dlp.projects.jobTriggers.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): - AxiosPromise; - get(params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; - get(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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - - - /** - * dlp.projects.jobTriggers.list - * @desc Lists job triggers. - * @alias dlp.projects.jobTriggers.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.orderBy Optional comma separated list of triggeredJob fields to order by, followed by 'asc/desc' postfix, i.e. `"create_time asc,name desc,schedule_mode asc"`. This list is case-insensitive. Example: `"name asc,schedule_mode desc, status desc"` Supported filters keys and values are: - `create_time`: corresponds to time the triggeredJob was created. - `update_time`: corresponds to time the triggeredJob was last updated. - `name`: corresponds to JobTrigger's display name. - `status`: corresponds to the triggeredJob status. - * @param {integer=} params.pageSize Optional size of the page, can be limited by a server. - * @param {string=} params.pageToken Optional page token to continue retrieval. Comes from previous call to ListJobTriggers. `order_by` and `filter` should not change for subsequent calls, but can be omitted if token is specified. - * @param {string} params.parent The parent resource name, for example projects/my-project-id. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListJobTriggersResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListJobTriggersResponse>): void; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListJobTriggersResponse>, - callback?: BodyResponseCallback< - Schema$GooglePrivacyDlpV2beta2ListJobTriggersResponse>): void| - AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; - } - if (typeof params === 'function') { - callback = params; - params = {}; - } - options = options || {}; - const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+parent}/jobTriggers') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest< - Schema$GooglePrivacyDlpV2beta2ListJobTriggersResponse>(parameters); - } - } - - - /** - * dlp.projects.jobTriggers.patch - * @desc Updates a job trigger. - * @alias dlp.projects.jobTriggers.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Resource name of the project and the triggeredJob, for example `projects/dlp-test-project/jobTriggers/53234423`. - * @param {().GooglePrivacyDlpV2beta2UpdateJobTriggerRequest} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; - patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: - BodyResponseCallback): - void; - patch( - 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://dlp.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest( - parameters); - } - } - } -} diff --git a/src/apis/dns/v1.ts b/src/apis/dns/v1.ts index 3c880ac0ec4..cc59bd762de 100644 --- a/src/apis/dns/v1.ts +++ b/src/apis/dns/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dns_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Cloud DNS API * @@ -82,33 +85,33 @@ export namespace dns_v1 { /** * Which ResourceRecordSets to add? */ - additions: Schema$ResourceRecordSet[]; + additions?: Schema$ResourceRecordSet[]; /** * Which ResourceRecordSets to remove? Must match existing data exactly. */ - deletions: Schema$ResourceRecordSet[]; + deletions?: Schema$ResourceRecordSet[]; /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * If the DNS queries for the zone will be served. */ - isServing: boolean; + isServing?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#change". */ - kind: string; + kind?: string; /** * The time that this operation was started by the server (output only). * This is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * Status of the operation (output only). */ - status: string; + status?: string; } /** * The response to a request to enumerate Changes to a ResourceRecordSets @@ -118,12 +121,12 @@ export namespace dns_v1 { /** * The requested changes. */ - changes: Schema$Change[]; - header: Schema$ResponseHeader; + changes?: Schema$Change[]; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -135,7 +138,7 @@ export namespace dns_v1 { * collection. There is no way to retrieve a "snapshot" of * collections larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * A DNSSEC key pair. @@ -145,38 +148,38 @@ export namespace dns_v1 { * String mnemonic specifying the DNSSEC algorithm of this key. Immutable * after creation time. */ - algorithm: string; + algorithm?: string; /** * The time that this resource was created in the control plane. This is in * RFC3339 text format. Output only. */ - creationTime: string; + creationTime?: string; /** * A mutable string of at most 1024 characters associated with this resource * for the user's convenience. Has no effect on the resource's * function. */ - description: string; + description?: string; /** * Cryptographic hashes of the DNSKEY resource record associated with this * DnsKey. These digests are needed to construct a DS record that points at * this DNS key. Output only. */ - digests: Schema$DnsKeyDigest[]; + digests?: Schema$DnsKeyDigest[]; /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * Active keys will be used to sign subsequent changes to the ManagedZone. * Inactive keys will still be present as DNSKEY Resource Records for the * use of resolvers validating existing signatures. */ - isActive: boolean; + isActive?: boolean; /** * Length of the key in bits. Specified at creation time then immutable. */ - keyLength: number; + keyLength?: number; /** * The key tag is a non-cryptographic hash of the a DNSKEY resource record * associated with this DnsKey. The key tag can be used to identify a DNSKEY @@ -186,16 +189,16 @@ export namespace dns_v1 { * and the algorithm to calculate it is specified in RFC4034 Appendix B. * Output only. */ - keyTag: number; + keyTag?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#dnsKey". */ - kind: string; + kind?: string; /** * Base64 encoded public half of this key. Output only. */ - publicKey: string; + publicKey?: string; /** * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type * KEY_SIGNING have the Secure Entry Point flag set and, when active, will @@ -203,18 +206,18 @@ export namespace dns_v1 { * Secure Entry Point flag will be cleared and this key will be used to sign * only resource record sets of other types. Immutable after creation time. */ - type: string; + type?: string; } export interface Schema$DnsKeyDigest { /** * The base-16 encoded bytes of this digest. Suitable for use in a DS * resource record. */ - digest: string; + digest?: string; /** * Specifies the algorithm used to calculate this digest. */ - type: string; + type?: string; } /** * The response to a request to enumerate DnsKeys in a ManagedZone. @@ -223,12 +226,12 @@ export namespace dns_v1 { /** * The requested resources. */ - dnsKeys: Schema$DnsKey[]; - header: Schema$ResponseHeader; + dnsKeys?: Schema$DnsKey[]; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -240,7 +243,7 @@ export namespace dns_v1 { * collection. There is no way to retrieve a "snapshot" of * collections larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * Parameters for DnsKey key generation. Used for generating initial keys for @@ -250,11 +253,11 @@ export namespace dns_v1 { /** * String mnemonic specifying the DNSSEC algorithm of this key. */ - algorithm: string; + algorithm?: string; /** * Length of the keys in bits. */ - keyLength: number; + keyLength?: number; /** * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type * KEY_SIGNING have the Secure Entry Point flag set and, when active, will @@ -262,12 +265,12 @@ export namespace dns_v1 { * Secure Entry Point flag will be cleared and this key will be used to sign * only resource record sets of other types. */ - keyType: string; + keyType?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#dnsKeySpec". */ - kind: string; + kind?: string; } /** * A zone is a subtree of the DNS namespace under one administrative @@ -279,79 +282,79 @@ export namespace dns_v1 { * The time that this resource was created on the server. This is in RFC3339 * text format. Output only. */ - creationTime: string; + creationTime?: string; /** * A mutable string of at most 1024 characters associated with this resource * for the user's convenience. Has no effect on the managed zone's * function. */ - description: string; + description?: string; /** * The DNS name of this managed zone, for instance "example.com.". */ - dnsName: string; + dnsName?: string; /** * DNSSEC configuration. */ - dnssecConfig: Schema$ManagedZoneDnsSecConfig; + dnssecConfig?: Schema$ManagedZoneDnsSecConfig; /** * Unique identifier for the resource; defined by the server (output only) */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#managedZone". */ - kind: string; + kind?: string; /** * User labels. */ - labels: any; + labels?: any; /** * User assigned name for this resource. Must be unique within the project. * The name must be 1-63 characters long, must begin with a letter, end with * a letter or digit, and only contain lowercase letters, digits or dashes. */ - name: string; + name?: string; /** * Delegate your managed_zone to these virtual name servers; defined by the * server (output only) */ - nameServers: string[]; + nameServers?: string[]; /** * Optionally specifies the NameServerSet for this ManagedZone. A * NameServerSet is a set of DNS name servers that all host the same * ManagedZones. Most users will leave this field unset. */ - nameServerSet: string; + nameServerSet?: string; } export interface Schema$ManagedZoneDnsSecConfig { /** * Specifies parameters that will be used for generating initial DnsKeys for * this ManagedZone. Output only while state is not OFF. */ - defaultKeySpecs: Schema$DnsKeySpec[]; + defaultKeySpecs?: Schema$DnsKeySpec[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#managedZoneDnsSecConfig". */ - kind: string; + kind?: string; /** * Specifies the mechanism used to provide authenticated denial-of-existence * responses. Output only while state is not OFF. */ - nonExistence: string; + nonExistence?: string; /** * Specifies whether DNSSEC is enabled, and what mode it is in. */ - state: string; + state?: string; } export interface Schema$ManagedZoneOperationsListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -363,22 +366,22 @@ export namespace dns_v1 { * is no way to retrieve a consistent snapshot of a collection larger than * the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; /** * The operation resources. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } export interface Schema$ManagedZonesListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The managed zone resources. */ - managedZones: Schema$ManagedZone[]; + managedZones?: Schema$ManagedZone[]; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -390,7 +393,7 @@ export namespace dns_v1 { * is no way to retrieve a consistent snapshot of a collection larger than * the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * An operation represents a successful mutation performed on a Cloud DNS @@ -402,64 +405,64 @@ export namespace dns_v1 { /** * Only populated if the operation targeted a DnsKey (output only). */ - dnsKeyContext: Schema$OperationDnsKeyContext; + dnsKeyContext?: Schema$OperationDnsKeyContext; /** * Unique identifier for the resource. This is the client_operation_id if * the client specified it when the mutation was initiated, otherwise, it is * generated by the server. The name must be 1-63 characters long and match * the regular expression [-a-z0-9]? (output only) */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#operation". */ - kind: string; + kind?: string; /** * The time that this operation was started by the server. This is in * RFC3339 text format (output only). */ - startTime: string; + startTime?: string; /** * Status of the operation. Can be one of the following: "PENDING" * or "DONE" (output only). */ - status: string; + status?: string; /** * Type of the operation. Operations include insert, update, and delete * (output only). */ - type: string; + type?: string; /** * User who requested the operation, for example: user@example.com. * cloud-dns-system for operations automatically done by the system. (output * only) */ - user: string; + user?: string; /** * Only populated if the operation targeted a ManagedZone (output only). */ - zoneContext: Schema$OperationManagedZoneContext; + zoneContext?: Schema$OperationManagedZoneContext; } export interface Schema$OperationDnsKeyContext { /** * The post-operation DnsKey resource. */ - newValue: Schema$DnsKey; + newValue?: Schema$DnsKey; /** * The pre-operation DnsKey resource. */ - oldValue: Schema$DnsKey; + oldValue?: Schema$DnsKey; } export interface Schema$OperationManagedZoneContext { /** * The post-operation ManagedZone resource. */ - newValue: Schema$ManagedZone; + newValue?: Schema$ManagedZone; /** * The pre-operation ManagedZone resource. */ - oldValue: Schema$ManagedZone; + oldValue?: Schema$ManagedZone; } /** * A project resource. The project is a top level container for resources @@ -470,21 +473,21 @@ export namespace dns_v1 { /** * User assigned unique identifier for the resource (output only). */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#project". */ - kind: string; + kind?: string; /** * Unique numeric identifier for the resource; defined by the server (output * only). */ - number: string; + number?: string; /** * Quotas assigned to this project (output only). */ - quota: Schema$Quota; + quota?: Schema$Quota; } /** * Limits associated with a Project. @@ -493,47 +496,47 @@ export namespace dns_v1 { /** * Whether a black hole zone should suppress system zones for this project. */ - blackHoleHidesSystemZones: boolean; + blackHoleHidesSystemZones?: boolean; /** * Maximum allowed number of DnsKeys per ManagedZone. */ - dnsKeysPerManagedZone: number; + dnsKeysPerManagedZone?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#quota". */ - kind: string; + kind?: string; /** * Maximum allowed number of managed zones in the project. */ - managedZones: number; + managedZones?: number; /** * Maximum allowed number of ResourceRecords per ResourceRecordSet. */ - resourceRecordsPerRrset: number; + resourceRecordsPerRrset?: number; /** * Maximum allowed number of ResourceRecordSets to add per * ChangesCreateRequest. */ - rrsetAdditionsPerChange: number; + rrsetAdditionsPerChange?: number; /** * Maximum allowed number of ResourceRecordSets to delete per * ChangesCreateRequest. */ - rrsetDeletionsPerChange: number; + rrsetDeletionsPerChange?: number; /** * Maximum allowed number of ResourceRecordSets per zone in the project. */ - rrsetsPerManagedZone: number; + rrsetsPerManagedZone?: number; /** * Maximum allowed size for total rrdata in one ChangesCreateRequest in * bytes. */ - totalRrdataSizePerChange: number; + totalRrdataSizePerChange?: number; /** * DNSSEC algorithm and key length types that can be used for DnsKeys. */ - whitelistedKeySpecs: Schema$DnsKeySpec[]; + whitelistedKeySpecs?: Schema$DnsKeySpec[]; } /** * A unit of data that will be returned by the DNS servers. @@ -543,35 +546,35 @@ export namespace dns_v1 { * Identifies what kind of resource this is. Value: the fixed string * "dns#resourceRecordSet". */ - kind: string; + kind?: string; /** * For example, www.example.com. */ - name: string; + name?: string; /** * As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */ - rrdatas: string[]; + rrdatas?: string[]; /** * As defined in RFC 4034 (section 3.2). */ - signatureRrdatas: string[]; + signatureRrdatas?: string[]; /** * Number of seconds that this ResourceRecordSet can be cached by resolvers. */ - ttl: number; + ttl?: number; /** * The identifier of a supported record type, for example, A, AAAA, MX, TXT, * and so on. */ - type: string; + type?: string; } export interface Schema$ResourceRecordSetsListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -583,11 +586,11 @@ export namespace dns_v1 { * collection. There is no way to retrieve a consistent snapshot of a * collection larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; /** * The resource record set resources. */ - rrsets: Schema$ResourceRecordSet[]; + rrsets?: Schema$ResourceRecordSet[]; } /** * Elements common to every response. @@ -598,9 +601,10 @@ export namespace dns_v1 { * client_operation_id if the client specified it, otherwise it is generated * by the server (output only). */ - operationId: string; + operationId?: string; } + export class Resource$Changes { root: Dns; constructor(root: Dns) { @@ -689,25 +693,36 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Changes$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Changes$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Changes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -808,23 +823,33 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Changes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Changes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Changes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Changes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -936,28 +961,37 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Changes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Changes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -982,6 +1016,95 @@ export namespace dns_v1 { } } + export interface Params$Resource$Changes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Change; + } + export interface Params$Resource$Changes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The identifier of the requested change, from a previous + * ResourceRecordSetsChangeResponse. + */ + changeId?: string; + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Changes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Sorting criterion. The only supported value is change sequence. + */ + sortBy?: string; + /** + * Sorting order direction: 'ascending' or 'descending'. + */ + sortOrder?: string; + } + + export class Resource$Dnskeys { root: Dns; constructor(root: Dns) { @@ -1010,23 +1133,33 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Dnskeys$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Dnskeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Dnskeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Dnskeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dnskeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1067,28 +1200,37 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Dnskeys$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Dnskeys$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Dnskeys$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Dnskeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dnskeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1113,6 +1255,72 @@ export namespace dns_v1 { } } + export interface Params$Resource$Dnskeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * An optional comma-separated list of digest types to compute and display + * for key signing keys. If omitted, the recommended digest type will be + * computed and displayed. + */ + digestType?: string; + /** + * The identifier of the requested DnsKey. + */ + dnsKeyId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Dnskeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An optional comma-separated list of digest types to compute and display + * for key signing keys. If omitted, the recommended digest type will be + * computed and displayed. + */ + digestType?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + + export class Resource$Managedzoneoperations { root: Dns; constructor(root: Dns) { @@ -1140,23 +1348,35 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Managedzoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Managedzoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedzoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedzoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1197,31 +1417,48 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Managedzoneoperations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedzoneoperations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Managedzoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedzoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedzoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1248,6 +1485,62 @@ export namespace dns_v1 { } } + export interface Params$Resource$Managedzoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. + */ + managedZone?: string; + /** + * Identifies the operation addressed by this request. + */ + operation?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Sorting criterion. The only supported values are START_TIME and ID. + */ + sortBy?: string; + } + + export class Resource$Managedzones { root: Dns; constructor(root: Dns) { @@ -1331,26 +1624,39 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Managedzones$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Managedzones$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedzones$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1441,22 +1747,37 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Managedzones$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Managedzones$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedzones$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1551,24 +1872,34 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Managedzones$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Managedzones$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedzones$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedzones$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1674,28 +2005,39 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Managedzones$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedzones$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Managedzones$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedzones$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1720,8 +2062,7 @@ export namespace dns_v1 { /** * dns.managedZones.patch - * @desc Update an existing ManagedZone. This method supports patch - * semantics. + * @desc Apply a partial update to an existing ManagedZone. * @alias dns.managedZones.patch * @memberOf! () * @@ -1734,26 +2075,38 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Managedzones$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Managedzones$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Managedzones$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Managedzones$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1792,26 +2145,39 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Managedzones$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Managedzones$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Managedzones$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1835,6 +2201,150 @@ export namespace dns_v1 { } } + export interface Params$Resource$Managedzones$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + export interface Params$Resource$Managedzones$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restricts the list to return only zones with this domain name. + */ + dnsName?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + export interface Params$Resource$Managedzones$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + + export class Resource$Projects { root: Dns; constructor(root: Dns) { @@ -1913,23 +2423,33 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1952,6 +2472,25 @@ export namespace dns_v1 { } } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + + export class Resource$Resourcerecordsets { root: Dns; constructor(root: Dns) { @@ -2052,29 +2591,44 @@ export namespace dns_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Resourcerecordsets$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resourcerecordsets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Resourcerecordsets$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resourcerecordsets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcerecordsets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcerecordsets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2100,4 +2654,41 @@ export namespace dns_v1 { } } } + + export interface Params$Resource$Resourcerecordsets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Restricts the list to return only records with this fully qualified + * domain name. + */ + name?: string; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Restricts the list to return only records of this type. If present, the + * "name" parameter must also be present. + */ + type?: string; + } } diff --git a/src/apis/dns/v1beta2.ts b/src/apis/dns/v1beta2.ts index beb358106ce..f8fc435cedf 100644 --- a/src/apis/dns/v1beta2.ts +++ b/src/apis/dns/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dns_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Google Cloud DNS API * @@ -82,33 +85,33 @@ export namespace dns_v1beta2 { /** * Which ResourceRecordSets to add? */ - additions: Schema$ResourceRecordSet[]; + additions?: Schema$ResourceRecordSet[]; /** * Which ResourceRecordSets to remove? Must match existing data exactly. */ - deletions: Schema$ResourceRecordSet[]; + deletions?: Schema$ResourceRecordSet[]; /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * If the DNS queries for the zone will be served. */ - isServing: boolean; + isServing?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#change". */ - kind: string; + kind?: string; /** * The time that this operation was started by the server (output only). * This is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * Status of the operation (output only). */ - status: string; + status?: string; } /** * The response to a request to enumerate Changes to a ResourceRecordSets @@ -118,12 +121,12 @@ export namespace dns_v1beta2 { /** * The requested changes. */ - changes: Schema$Change[]; - header: Schema$ResponseHeader; + changes?: Schema$Change[]; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -135,7 +138,7 @@ export namespace dns_v1beta2 { * collection. There is no way to retrieve a "snapshot" of * collections larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * A DNSSEC key pair. @@ -145,38 +148,38 @@ export namespace dns_v1beta2 { * String mnemonic specifying the DNSSEC algorithm of this key. Immutable * after creation time. */ - algorithm: string; + algorithm?: string; /** * The time that this resource was created in the control plane. This is in * RFC3339 text format. Output only. */ - creationTime: string; + creationTime?: string; /** * A mutable string of at most 1024 characters associated with this resource * for the user's convenience. Has no effect on the resource's * function. */ - description: string; + description?: string; /** * Cryptographic hashes of the DNSKEY resource record associated with this * DnsKey. These digests are needed to construct a DS record that points at * this DNS key. Output only. */ - digests: Schema$DnsKeyDigest[]; + digests?: Schema$DnsKeyDigest[]; /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * Active keys will be used to sign subsequent changes to the ManagedZone. * Inactive keys will still be present as DNSKEY Resource Records for the * use of resolvers validating existing signatures. */ - isActive: boolean; + isActive?: boolean; /** * Length of the key in bits. Specified at creation time then immutable. */ - keyLength: number; + keyLength?: number; /** * The key tag is a non-cryptographic hash of the a DNSKEY resource record * associated with this DnsKey. The key tag can be used to identify a DNSKEY @@ -186,16 +189,16 @@ export namespace dns_v1beta2 { * and the algorithm to calculate it is specified in RFC4034 Appendix B. * Output only. */ - keyTag: number; + keyTag?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#dnsKey". */ - kind: string; + kind?: string; /** * Base64 encoded public half of this key. Output only. */ - publicKey: string; + publicKey?: string; /** * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type * KEY_SIGNING have the Secure Entry Point flag set and, when active, will @@ -203,18 +206,18 @@ export namespace dns_v1beta2 { * Secure Entry Point flag will be cleared and this key will be used to sign * only resource record sets of other types. Immutable after creation time. */ - type: string; + type?: string; } export interface Schema$DnsKeyDigest { /** * The base-16 encoded bytes of this digest. Suitable for use in a DS * resource record. */ - digest: string; + digest?: string; /** * Specifies the algorithm used to calculate this digest. */ - type: string; + type?: string; } /** * The response to a request to enumerate DnsKeys in a ManagedZone. @@ -223,12 +226,12 @@ export namespace dns_v1beta2 { /** * The requested resources. */ - dnsKeys: Schema$DnsKey[]; - header: Schema$ResponseHeader; + dnsKeys?: Schema$DnsKey[]; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -240,7 +243,7 @@ export namespace dns_v1beta2 { * collection. There is no way to retrieve a "snapshot" of * collections larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * Parameters for DnsKey key generation. Used for generating initial keys for @@ -250,11 +253,11 @@ export namespace dns_v1beta2 { /** * String mnemonic specifying the DNSSEC algorithm of this key. */ - algorithm: string; + algorithm?: string; /** * Length of the keys in bits. */ - keyLength: number; + keyLength?: number; /** * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type * KEY_SIGNING have the Secure Entry Point flag set and, when active, will @@ -262,12 +265,12 @@ export namespace dns_v1beta2 { * Secure Entry Point flag will be cleared and this key will be used to sign * only resource record sets of other types. */ - keyType: string; + keyType?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#dnsKeySpec". */ - kind: string; + kind?: string; } /** * A zone is a subtree of the DNS namespace under one administrative @@ -279,79 +282,79 @@ export namespace dns_v1beta2 { * The time that this resource was created on the server. This is in RFC3339 * text format. Output only. */ - creationTime: string; + creationTime?: string; /** * A mutable string of at most 1024 characters associated with this resource * for the user's convenience. Has no effect on the managed zone's * function. */ - description: string; + description?: string; /** * The DNS name of this managed zone, for instance "example.com.". */ - dnsName: string; + dnsName?: string; /** * DNSSEC configuration. */ - dnssecConfig: Schema$ManagedZoneDnsSecConfig; + dnssecConfig?: Schema$ManagedZoneDnsSecConfig; /** * Unique identifier for the resource; defined by the server (output only) */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#managedZone". */ - kind: string; + kind?: string; /** * User labels. */ - labels: any; + labels?: any; /** * User assigned name for this resource. Must be unique within the project. * The name must be 1-63 characters long, must begin with a letter, end with * a letter or digit, and only contain lowercase letters, digits or dashes. */ - name: string; + name?: string; /** * Delegate your managed_zone to these virtual name servers; defined by the * server (output only) */ - nameServers: string[]; + nameServers?: string[]; /** * Optionally specifies the NameServerSet for this ManagedZone. A * NameServerSet is a set of DNS name servers that all host the same * ManagedZones. Most users will leave this field unset. */ - nameServerSet: string; + nameServerSet?: string; } export interface Schema$ManagedZoneDnsSecConfig { /** * Specifies parameters that will be used for generating initial DnsKeys for * this ManagedZone. Output only while state is not OFF. */ - defaultKeySpecs: Schema$DnsKeySpec[]; + defaultKeySpecs?: Schema$DnsKeySpec[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#managedZoneDnsSecConfig". */ - kind: string; + kind?: string; /** * Specifies the mechanism used to provide authenticated denial-of-existence * responses. Output only while state is not OFF. */ - nonExistence: string; + nonExistence?: string; /** * Specifies whether DNSSEC is enabled, and what mode it is in. */ - state: string; + state?: string; } export interface Schema$ManagedZoneOperationsListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -363,22 +366,22 @@ export namespace dns_v1beta2 { * is no way to retrieve a consistent snapshot of a collection larger than * the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; /** * The operation resources. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } export interface Schema$ManagedZonesListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The managed zone resources. */ - managedZones: Schema$ManagedZone[]; + managedZones?: Schema$ManagedZone[]; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -390,7 +393,7 @@ export namespace dns_v1beta2 { * is no way to retrieve a consistent snapshot of a collection larger than * the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * An operation represents a successful mutation performed on a Cloud DNS @@ -402,64 +405,64 @@ export namespace dns_v1beta2 { /** * Only populated if the operation targeted a DnsKey (output only). */ - dnsKeyContext: Schema$OperationDnsKeyContext; + dnsKeyContext?: Schema$OperationDnsKeyContext; /** * Unique identifier for the resource. This is the client_operation_id if * the client specified it when the mutation was initiated, otherwise, it is * generated by the server. The name must be 1-63 characters long and match * the regular expression [-a-z0-9]? (output only) */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#operation". */ - kind: string; + kind?: string; /** * The time that this operation was started by the server. This is in * RFC3339 text format (output only). */ - startTime: string; + startTime?: string; /** * Status of the operation. Can be one of the following: "PENDING" * or "DONE" (output only). */ - status: string; + status?: string; /** * Type of the operation. Operations include insert, update, and delete * (output only). */ - type: string; + type?: string; /** * User who requested the operation, for example: user@example.com. * cloud-dns-system for operations automatically done by the system. (output * only) */ - user: string; + user?: string; /** * Only populated if the operation targeted a ManagedZone (output only). */ - zoneContext: Schema$OperationManagedZoneContext; + zoneContext?: Schema$OperationManagedZoneContext; } export interface Schema$OperationDnsKeyContext { /** * The post-operation DnsKey resource. */ - newValue: Schema$DnsKey; + newValue?: Schema$DnsKey; /** * The pre-operation DnsKey resource. */ - oldValue: Schema$DnsKey; + oldValue?: Schema$DnsKey; } export interface Schema$OperationManagedZoneContext { /** * The post-operation ManagedZone resource. */ - newValue: Schema$ManagedZone; + newValue?: Schema$ManagedZone; /** * The pre-operation ManagedZone resource. */ - oldValue: Schema$ManagedZone; + oldValue?: Schema$ManagedZone; } /** * A project resource. The project is a top level container for resources @@ -470,21 +473,21 @@ export namespace dns_v1beta2 { /** * User assigned unique identifier for the resource (output only). */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#project". */ - kind: string; + kind?: string; /** * Unique numeric identifier for the resource; defined by the server (output * only). */ - number: string; + number?: string; /** * Quotas assigned to this project (output only). */ - quota: Schema$Quota; + quota?: Schema$Quota; } /** * Limits associated with a Project. @@ -493,47 +496,47 @@ export namespace dns_v1beta2 { /** * Whether a black hole zone should suppress system zones for this project. */ - blackHoleHidesSystemZones: boolean; + blackHoleHidesSystemZones?: boolean; /** * Maximum allowed number of DnsKeys per ManagedZone. */ - dnsKeysPerManagedZone: number; + dnsKeysPerManagedZone?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#quota". */ - kind: string; + kind?: string; /** * Maximum allowed number of managed zones in the project. */ - managedZones: number; + managedZones?: number; /** * Maximum allowed number of ResourceRecords per ResourceRecordSet. */ - resourceRecordsPerRrset: number; + resourceRecordsPerRrset?: number; /** * Maximum allowed number of ResourceRecordSets to add per * ChangesCreateRequest. */ - rrsetAdditionsPerChange: number; + rrsetAdditionsPerChange?: number; /** * Maximum allowed number of ResourceRecordSets to delete per * ChangesCreateRequest. */ - rrsetDeletionsPerChange: number; + rrsetDeletionsPerChange?: number; /** * Maximum allowed number of ResourceRecordSets per zone in the project. */ - rrsetsPerManagedZone: number; + rrsetsPerManagedZone?: number; /** * Maximum allowed size for total rrdata in one ChangesCreateRequest in * bytes. */ - totalRrdataSizePerChange: number; + totalRrdataSizePerChange?: number; /** * DNSSEC algorithm and key length types that can be used for DnsKeys. */ - whitelistedKeySpecs: Schema$DnsKeySpec[]; + whitelistedKeySpecs?: Schema$DnsKeySpec[]; } /** * A unit of data that will be returned by the DNS servers. @@ -543,35 +546,35 @@ export namespace dns_v1beta2 { * Identifies what kind of resource this is. Value: the fixed string * "dns#resourceRecordSet". */ - kind: string; + kind?: string; /** * For example, www.example.com. */ - name: string; + name?: string; /** * As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */ - rrdatas: string[]; + rrdatas?: string[]; /** * As defined in RFC 4034 (section 3.2). */ - signatureRrdatas: string[]; + signatureRrdatas?: string[]; /** * Number of seconds that this ResourceRecordSet can be cached by resolvers. */ - ttl: number; + ttl?: number; /** * The identifier of a supported record type, for example, A, AAAA, MX, TXT, * and so on. */ - type: string; + type?: string; } export interface Schema$ResourceRecordSetsListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -583,11 +586,11 @@ export namespace dns_v1beta2 { * collection. There is no way to retrieve a consistent snapshot of a * collection larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; /** * The resource record set resources. */ - rrsets: Schema$ResourceRecordSet[]; + rrsets?: Schema$ResourceRecordSet[]; } /** * Elements common to every response. @@ -598,9 +601,10 @@ export namespace dns_v1beta2 { * client_operation_id if the client specified it, otherwise it is generated * by the server (output only). */ - operationId: string; + operationId?: string; } + export class Resource$Changes { root: Dns; constructor(root: Dns) { @@ -628,25 +632,36 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Changes$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Changes$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Changes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -686,23 +701,33 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Changes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Changes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Changes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Changes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -744,28 +769,37 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Changes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Changes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -790,6 +824,95 @@ export namespace dns_v1beta2 { } } + export interface Params$Resource$Changes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Change; + } + export interface Params$Resource$Changes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The identifier of the requested change, from a previous + * ResourceRecordSetsChangeResponse. + */ + changeId?: string; + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Changes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Sorting criterion. The only supported value is change sequence. + */ + sortBy?: string; + /** + * Sorting order direction: 'ascending' or 'descending'. + */ + sortOrder?: string; + } + + export class Resource$Dnskeys { root: Dns; constructor(root: Dns) { @@ -818,23 +941,33 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Dnskeys$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Dnskeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Dnskeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Dnskeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dnskeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -875,28 +1008,37 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Dnskeys$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Dnskeys$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Dnskeys$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Dnskeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dnskeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -921,6 +1063,72 @@ export namespace dns_v1beta2 { } } + export interface Params$Resource$Dnskeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * An optional comma-separated list of digest types to compute and display + * for key signing keys. If omitted, the recommended digest type will be + * computed and displayed. + */ + digestType?: string; + /** + * The identifier of the requested DnsKey. + */ + dnsKeyId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Dnskeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An optional comma-separated list of digest types to compute and display + * for key signing keys. If omitted, the recommended digest type will be + * computed and displayed. + */ + digestType?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + + export class Resource$Managedzoneoperations { root: Dns; constructor(root: Dns) { @@ -948,23 +1156,35 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Managedzoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Managedzoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedzoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedzoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1005,31 +1225,48 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Managedzoneoperations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedzoneoperations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Managedzoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedzoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedzoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1056,6 +1293,62 @@ export namespace dns_v1beta2 { } } + export interface Params$Resource$Managedzoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. + */ + managedZone?: string; + /** + * Identifies the operation addressed by this request. + */ + operation?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Sorting criterion. The only supported values are START_TIME and ID. + */ + sortBy?: string; + } + + export class Resource$Managedzones { root: Dns; constructor(root: Dns) { @@ -1082,26 +1375,39 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Managedzones$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Managedzones$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedzones$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1138,22 +1444,37 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Managedzones$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Managedzones$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedzones$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1192,24 +1513,34 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Managedzones$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Managedzones$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedzones$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedzones$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1249,28 +1580,39 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Managedzones$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedzones$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Managedzones$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedzones$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1308,26 +1650,38 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Managedzones$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Managedzones$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Managedzones$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Managedzones$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1367,26 +1721,39 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Managedzones$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Managedzones$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Managedzones$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1411,6 +1778,150 @@ export namespace dns_v1beta2 { } } + export interface Params$Resource$Managedzones$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + export interface Params$Resource$Managedzones$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restricts the list to return only zones with this domain name. + */ + dnsName?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + export interface Params$Resource$Managedzones$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + + export class Resource$Projects { root: Dns; constructor(root: Dns) { @@ -1436,23 +1947,33 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1475,6 +1996,25 @@ export namespace dns_v1beta2 { } } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + + export class Resource$Resourcerecordsets { root: Dns; constructor(root: Dns) { @@ -1505,29 +2045,44 @@ export namespace dns_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Resourcerecordsets$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resourcerecordsets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Resourcerecordsets$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resourcerecordsets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcerecordsets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcerecordsets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1553,4 +2108,41 @@ export namespace dns_v1beta2 { } } } + + export interface Params$Resource$Resourcerecordsets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Restricts the list to return only records with this fully qualified + * domain name. + */ + name?: string; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Restricts the list to return only records of this type. If present, the + * "name" parameter must also be present. + */ + type?: string; + } } diff --git a/src/apis/dns/v2beta1.ts b/src/apis/dns/v2beta1.ts index 179254bbfb9..4763931316f 100644 --- a/src/apis/dns/v2beta1.ts +++ b/src/apis/dns/v2beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace dns_v2beta1 { + export interface Options extends GlobalOptions { version: 'v2beta1'; } + /** * Google Cloud DNS API * @@ -82,33 +85,33 @@ export namespace dns_v2beta1 { /** * Which ResourceRecordSets to add? */ - additions: Schema$ResourceRecordSet[]; + additions?: Schema$ResourceRecordSet[]; /** * Which ResourceRecordSets to remove? Must match existing data exactly. */ - deletions: Schema$ResourceRecordSet[]; + deletions?: Schema$ResourceRecordSet[]; /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * If the DNS queries for the zone will be served. */ - isServing: boolean; + isServing?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#change". */ - kind: string; + kind?: string; /** * The time that this operation was started by the server (output only). * This is in RFC3339 text format. */ - startTime: string; + startTime?: string; /** * Status of the operation (output only). */ - status: string; + status?: string; } /** * The response to a request to enumerate Changes to a ResourceRecordSets @@ -118,12 +121,12 @@ export namespace dns_v2beta1 { /** * The requested changes. */ - changes: Schema$Change[]; - header: Schema$ResponseHeader; + changes?: Schema$Change[]; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -135,7 +138,7 @@ export namespace dns_v2beta1 { * collection. There is no way to retrieve a "snapshot" of * collections larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * A DNSSEC key pair. @@ -145,38 +148,38 @@ export namespace dns_v2beta1 { * String mnemonic specifying the DNSSEC algorithm of this key. Immutable * after creation time. */ - algorithm: string; + algorithm?: string; /** * The time that this resource was created in the control plane. This is in * RFC3339 text format. Output only. */ - creationTime: string; + creationTime?: string; /** * A mutable string of at most 1024 characters associated with this resource * for the user's convenience. Has no effect on the resource's * function. */ - description: string; + description?: string; /** * Cryptographic hashes of the DNSKEY resource record associated with this * DnsKey. These digests are needed to construct a DS record that points at * this DNS key. Output only. */ - digests: Schema$DnsKeyDigest[]; + digests?: Schema$DnsKeyDigest[]; /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * Active keys will be used to sign subsequent changes to the ManagedZone. * Inactive keys will still be present as DNSKEY Resource Records for the * use of resolvers validating existing signatures. */ - isActive: boolean; + isActive?: boolean; /** * Length of the key in bits. Specified at creation time then immutable. */ - keyLength: number; + keyLength?: number; /** * The key tag is a non-cryptographic hash of the a DNSKEY resource record * associated with this DnsKey. The key tag can be used to identify a DNSKEY @@ -186,16 +189,16 @@ export namespace dns_v2beta1 { * and the algorithm to calculate it is specified in RFC4034 Appendix B. * Output only. */ - keyTag: number; + keyTag?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#dnsKey". */ - kind: string; + kind?: string; /** * Base64 encoded public half of this key. Output only. */ - publicKey: string; + publicKey?: string; /** * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type * KEY_SIGNING have the Secure Entry Point flag set and, when active, will @@ -203,18 +206,18 @@ export namespace dns_v2beta1 { * Secure Entry Point flag will be cleared and this key will be used to sign * only resource record sets of other types. Immutable after creation time. */ - type: string; + type?: string; } export interface Schema$DnsKeyDigest { /** * The base-16 encoded bytes of this digest. Suitable for use in a DS * resource record. */ - digest: string; + digest?: string; /** * Specifies the algorithm used to calculate this digest. */ - type: string; + type?: string; } /** * The response to a request to enumerate DnsKeys in a ManagedZone. @@ -223,12 +226,12 @@ export namespace dns_v2beta1 { /** * The requested resources. */ - dnsKeys: Schema$DnsKey[]; - header: Schema$ResponseHeader; + dnsKeys?: Schema$DnsKey[]; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -240,7 +243,7 @@ export namespace dns_v2beta1 { * collection. There is no way to retrieve a "snapshot" of * collections larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * Parameters for DnsKey key generation. Used for generating initial keys for @@ -250,11 +253,11 @@ export namespace dns_v2beta1 { /** * String mnemonic specifying the DNSSEC algorithm of this key. */ - algorithm: string; + algorithm?: string; /** * Length of the keys in bits. */ - keyLength: number; + keyLength?: number; /** * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type * KEY_SIGNING have the Secure Entry Point flag set and, when active, will @@ -262,12 +265,12 @@ export namespace dns_v2beta1 { * Secure Entry Point flag will be cleared and this key will be used to sign * only resource record sets of other types. */ - keyType: string; + keyType?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#dnsKeySpec". */ - kind: string; + kind?: string; } /** * A zone is a subtree of the DNS namespace under one administrative @@ -279,79 +282,79 @@ export namespace dns_v2beta1 { * The time that this resource was created on the server. This is in RFC3339 * text format. Output only. */ - creationTime: string; + creationTime?: string; /** * A mutable string of at most 1024 characters associated with this resource * for the user's convenience. Has no effect on the managed zone's * function. */ - description: string; + description?: string; /** * The DNS name of this managed zone, for instance "example.com.". */ - dnsName: string; + dnsName?: string; /** * DNSSEC configuration. */ - dnssecConfig: Schema$ManagedZoneDnsSecConfig; + dnssecConfig?: Schema$ManagedZoneDnsSecConfig; /** * Unique identifier for the resource; defined by the server (output only) */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#managedZone". */ - kind: string; + kind?: string; /** * User labels. */ - labels: any; + labels?: any; /** * User assigned name for this resource. Must be unique within the project. * The name must be 1-63 characters long, must begin with a letter, end with * a letter or digit, and only contain lowercase letters, digits or dashes. */ - name: string; + name?: string; /** * Delegate your managed_zone to these virtual name servers; defined by the * server (output only) */ - nameServers: string[]; + nameServers?: string[]; /** * Optionally specifies the NameServerSet for this ManagedZone. A * NameServerSet is a set of DNS name servers that all host the same * ManagedZones. Most users will leave this field unset. */ - nameServerSet: string; + nameServerSet?: string; } export interface Schema$ManagedZoneDnsSecConfig { /** * Specifies parameters that will be used for generating initial DnsKeys for * this ManagedZone. Output only while state is not OFF. */ - defaultKeySpecs: Schema$DnsKeySpec[]; + defaultKeySpecs?: Schema$DnsKeySpec[]; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#managedZoneDnsSecConfig". */ - kind: string; + kind?: string; /** * Specifies the mechanism used to provide authenticated denial-of-existence * responses. Output only while state is not OFF. */ - nonExistence: string; + nonExistence?: string; /** * Specifies whether DNSSEC is enabled, and what mode it is in. */ - state: string; + state?: string; } export interface Schema$ManagedZoneOperationsListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -363,22 +366,22 @@ export namespace dns_v2beta1 { * is no way to retrieve a consistent snapshot of a collection larger than * the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; /** * The operation resources. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } export interface Schema$ManagedZonesListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The managed zone resources. */ - managedZones: Schema$ManagedZone[]; + managedZones?: Schema$ManagedZone[]; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -390,7 +393,7 @@ export namespace dns_v2beta1 { * is no way to retrieve a consistent snapshot of a collection larger than * the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; } /** * An operation represents a successful mutation performed on a Cloud DNS @@ -402,64 +405,64 @@ export namespace dns_v2beta1 { /** * Only populated if the operation targeted a DnsKey (output only). */ - dnsKeyContext: Schema$OperationDnsKeyContext; + dnsKeyContext?: Schema$OperationDnsKeyContext; /** * Unique identifier for the resource. This is the client_operation_id if * the client specified it when the mutation was initiated, otherwise, it is * generated by the server. The name must be 1-63 characters long and match * the regular expression [-a-z0-9]? (output only) */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#operation". */ - kind: string; + kind?: string; /** * The time that this operation was started by the server. This is in * RFC3339 text format (output only). */ - startTime: string; + startTime?: string; /** * Status of the operation. Can be one of the following: "PENDING" * or "DONE" (output only). */ - status: string; + status?: string; /** * Type of the operation. Operations include insert, update, and delete * (output only). */ - type: string; + type?: string; /** * User who requested the operation, for example: user@example.com. * cloud-dns-system for operations automatically done by the system. (output * only) */ - user: string; + user?: string; /** * Only populated if the operation targeted a ManagedZone (output only). */ - zoneContext: Schema$OperationManagedZoneContext; + zoneContext?: Schema$OperationManagedZoneContext; } export interface Schema$OperationDnsKeyContext { /** * The post-operation DnsKey resource. */ - newValue: Schema$DnsKey; + newValue?: Schema$DnsKey; /** * The pre-operation DnsKey resource. */ - oldValue: Schema$DnsKey; + oldValue?: Schema$DnsKey; } export interface Schema$OperationManagedZoneContext { /** * The post-operation ManagedZone resource. */ - newValue: Schema$ManagedZone; + newValue?: Schema$ManagedZone; /** * The pre-operation ManagedZone resource. */ - oldValue: Schema$ManagedZone; + oldValue?: Schema$ManagedZone; } /** * A project resource. The project is a top level container for resources @@ -470,21 +473,21 @@ export namespace dns_v2beta1 { /** * User assigned unique identifier for the resource (output only). */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#project". */ - kind: string; + kind?: string; /** * Unique numeric identifier for the resource; defined by the server (output * only). */ - number: string; + number?: string; /** * Quotas assigned to this project (output only). */ - quota: Schema$Quota; + quota?: Schema$Quota; } /** * Limits associated with a Project. @@ -493,47 +496,47 @@ export namespace dns_v2beta1 { /** * Whether a black hole zone should suppress system zones for this project. */ - blackHoleHidesSystemZones: boolean; + blackHoleHidesSystemZones?: boolean; /** * Maximum allowed number of DnsKeys per ManagedZone. */ - dnsKeysPerManagedZone: number; + dnsKeysPerManagedZone?: number; /** * Identifies what kind of resource this is. Value: the fixed string * "dns#quota". */ - kind: string; + kind?: string; /** * Maximum allowed number of managed zones in the project. */ - managedZones: number; + managedZones?: number; /** * Maximum allowed number of ResourceRecords per ResourceRecordSet. */ - resourceRecordsPerRrset: number; + resourceRecordsPerRrset?: number; /** * Maximum allowed number of ResourceRecordSets to add per * ChangesCreateRequest. */ - rrsetAdditionsPerChange: number; + rrsetAdditionsPerChange?: number; /** * Maximum allowed number of ResourceRecordSets to delete per * ChangesCreateRequest. */ - rrsetDeletionsPerChange: number; + rrsetDeletionsPerChange?: number; /** * Maximum allowed number of ResourceRecordSets per zone in the project. */ - rrsetsPerManagedZone: number; + rrsetsPerManagedZone?: number; /** * Maximum allowed size for total rrdata in one ChangesCreateRequest in * bytes. */ - totalRrdataSizePerChange: number; + totalRrdataSizePerChange?: number; /** * DNSSEC algorithm and key length types that can be used for DnsKeys. */ - whitelistedKeySpecs: Schema$DnsKeySpec[]; + whitelistedKeySpecs?: Schema$DnsKeySpec[]; } /** * A unit of data that will be returned by the DNS servers. @@ -543,35 +546,35 @@ export namespace dns_v2beta1 { * Identifies what kind of resource this is. Value: the fixed string * "dns#resourceRecordSet". */ - kind: string; + kind?: string; /** * For example, www.example.com. */ - name: string; + name?: string; /** * As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */ - rrdatas: string[]; + rrdatas?: string[]; /** * As defined in RFC 4034 (section 3.2). */ - signatureRrdatas: string[]; + signatureRrdatas?: string[]; /** * Number of seconds that this ResourceRecordSet can be cached by resolvers. */ - ttl: number; + ttl?: number; /** * The identifier of a supported record type, for example, A, AAAA, MX, TXT, * and so on. */ - type: string; + type?: string; } export interface Schema$ResourceRecordSetsListResponse { - header: Schema$ResponseHeader; + header?: Schema$ResponseHeader; /** * Type of resource. */ - kind: string; + kind?: string; /** * The presence of this field indicates that there exist more results * following your last page of results in pagination order. To fetch them, @@ -583,11 +586,11 @@ export namespace dns_v2beta1 { * collection. There is no way to retrieve a consistent snapshot of a * collection larger than the maximum page size. */ - nextPageToken: string; + nextPageToken?: string; /** * The resource record set resources. */ - rrsets: Schema$ResourceRecordSet[]; + rrsets?: Schema$ResourceRecordSet[]; } /** * Elements common to every response. @@ -598,9 +601,10 @@ export namespace dns_v2beta1 { * client_operation_id if the client specified it, otherwise it is generated * by the server (output only). */ - operationId: string; + operationId?: string; } + export class Resource$Changes { root: Dns; constructor(root: Dns) { @@ -689,25 +693,36 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Changes$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Changes$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Changes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -808,23 +823,33 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Changes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Changes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Changes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Changes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -936,28 +961,37 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Changes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Changes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -982,6 +1016,95 @@ export namespace dns_v2beta1 { } } + export interface Params$Resource$Changes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Change; + } + export interface Params$Resource$Changes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The identifier of the requested change, from a previous + * ResourceRecordSetsChangeResponse. + */ + changeId?: string; + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Changes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Sorting criterion. The only supported value is change sequence. + */ + sortBy?: string; + /** + * Sorting order direction: 'ascending' or 'descending'. + */ + sortOrder?: string; + } + + export class Resource$Dnskeys { root: Dns; constructor(root: Dns) { @@ -1070,23 +1193,33 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Dnskeys$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Dnskeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Dnskeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Dnskeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dnskeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1197,28 +1330,37 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Dnskeys$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Dnskeys$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Dnskeys$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Dnskeys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Dnskeys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Dnskeys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1243,6 +1385,72 @@ export namespace dns_v2beta1 { } } + export interface Params$Resource$Dnskeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * An optional comma-separated list of digest types to compute and display + * for key signing keys. If omitted, the recommended digest type will be + * computed and displayed. + */ + digestType?: string; + /** + * The identifier of the requested DnsKey. + */ + dnsKeyId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Dnskeys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An optional comma-separated list of digest types to compute and display + * for key signing keys. If omitted, the recommended digest type will be + * computed and displayed. + */ + digestType?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + + export class Resource$Managedzoneoperations { root: Dns; constructor(root: Dns) { @@ -1329,23 +1537,35 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Managedzoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Managedzoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedzoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedzoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1456,31 +1676,48 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Managedzoneoperations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedzoneoperations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Managedzoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedzoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Managedzoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1507,6 +1744,62 @@ export namespace dns_v2beta1 { } } + export interface Params$Resource$Managedzoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. + */ + managedZone?: string; + /** + * Identifies the operation addressed by this request. + */ + operation?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Sorting criterion. The only supported values are START_TIME and ID. + */ + sortBy?: string; + } + + export class Resource$Managedzones { root: Dns; constructor(root: Dns) { @@ -1590,26 +1883,39 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Managedzones$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Managedzones$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedzones$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1703,22 +2009,37 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Managedzones$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Managedzones$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Managedzones$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1814,24 +2135,34 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Managedzones$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Managedzones$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Managedzones$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Managedzones$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Managedzones$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1938,28 +2269,39 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Managedzones$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedzones$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Managedzones$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Managedzones$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1984,8 +2326,7 @@ export namespace dns_v2beta1 { /** * dns.managedZones.patch - * @desc Update an existing ManagedZone. This method supports patch - * semantics. + * @desc Apply a partial update to an existing ManagedZone. * @example * * // BEFORE RUNNING: * // --------------- @@ -2061,26 +2402,38 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Managedzones$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Managedzones$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Managedzones$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Managedzones$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2183,26 +2536,39 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Managedzones$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Managedzones$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Managedzones$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Managedzones$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedzones$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedzones$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2227,6 +2593,150 @@ export namespace dns_v2beta1 { } } + export interface Params$Resource$Managedzones$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + export interface Params$Resource$Managedzones$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Restricts the list to return only zones with this domain name. + */ + dnsName?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + export interface Params$Resource$Managedzones$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + export interface Params$Resource$Managedzones$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$ManagedZone; + } + + export class Resource$Projects { root: Dns; constructor(root: Dns) { @@ -2305,23 +2815,33 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2344,6 +2864,25 @@ export namespace dns_v2beta1 { } } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * For mutating operation requests only. An optional identifier specified by + * the client. Must be unique for operation resources in the Operations + * collection. + */ + clientOperationId?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + } + + export class Resource$Resourcerecordsets { root: Dns; constructor(root: Dns) { @@ -2444,29 +2983,44 @@ export namespace dns_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Resourcerecordsets$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resourcerecordsets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Resourcerecordsets$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resourcerecordsets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resourcerecordsets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resourcerecordsets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2492,4 +3046,41 @@ export namespace dns_v2beta1 { } } } + + export interface Params$Resource$Resourcerecordsets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifies the managed zone addressed by this request. Can be the managed + * zone name or id. + */ + managedZone?: string; + /** + * Optional. Maximum number of results to be returned. If unspecified, the + * server will decide how many results to return. + */ + maxResults?: number; + /** + * Restricts the list to return only records with this fully qualified + * domain name. + */ + name?: string; + /** + * Optional. A tag returned by a previous list request that was truncated. + * Use this parameter to continue a previous list request. + */ + pageToken?: string; + /** + * Identifies the project addressed by this request. + */ + project?: string; + /** + * Restricts the list to return only records of this type. If present, the + * "name" parameter must also be present. + */ + type?: string; + } } diff --git a/src/apis/doubleclickbidmanager/v1.ts b/src/apis/doubleclickbidmanager/v1.ts index 631d6d80b59..b3cd0934213 100644 --- a/src/apis/doubleclickbidmanager/v1.ts +++ b/src/apis/doubleclickbidmanager/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace doubleclickbidmanager_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * DoubleClick Bid Manager API * @@ -79,20 +82,20 @@ export namespace doubleclickbidmanager_v1 { * File specification (column names, types, order) in which the line items * will be returned. Default to EWF. */ - fileSpec: string; + fileSpec?: string; /** * Ids of the specified filter type used to filter line items to fetch. If * omitted, all the line items will be returned. */ - filterIds: string[]; + filterIds?: string[]; /** * Filter type used to filter line items to fetch. */ - filterType: string; + filterType?: string; /** * Format in which the line items will be returned. Default to CSV. */ - format: string; + format?: string; } /** * Download line items response. @@ -102,7 +105,7 @@ export namespace doubleclickbidmanager_v1 { * Retrieved line items in CSV format. For more information about file * formats, see Entity Write File Format. */ - lineItems: string; + lineItems?: string; } /** * Request to fetch stored insertion orders, line items, TrueView ad groups @@ -112,23 +115,23 @@ export namespace doubleclickbidmanager_v1 { /** * File types that will be returned. */ - fileTypes: string[]; + fileTypes?: string[]; /** * The IDs of the specified filter type. This is used to filter entities to * fetch. At least one ID must be specified. Only one ID is allowed for the * ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter * types, all IDs must be from the same Advertiser. */ - filterIds: string[]; + filterIds?: string[]; /** * Filter type used to filter line items to fetch. */ - filterType: string; + filterType?: string; /** * SDF Version (column names, types, order) in which the entities will be * returned. Default to 3. */ - version: string; + version?: string; } /** * Download response. @@ -137,23 +140,23 @@ export namespace doubleclickbidmanager_v1 { /** * Retrieved ad groups in SDF format. */ - adGroups: string; + adGroups?: string; /** * Retrieved ads in SDF format. */ - ads: string; + ads?: string; /** * Retrieved campaigns in SDF format. */ - campaigns: string; + campaigns?: string; /** * Retrieved insertion orders in SDF format. */ - insertionOrders: string; + insertionOrders?: string; /** * Retrieved line items in SDF format. */ - lineItems: string; + lineItems?: string; } /** * Filter used to match traffic data in your report. @@ -162,11 +165,11 @@ export namespace doubleclickbidmanager_v1 { /** * Filter type. */ - type: string; + type?: string; /** * Filter value. */ - value: string; + value?: string; } /** * List queries response. @@ -176,11 +179,11 @@ export namespace doubleclickbidmanager_v1 { * Identifies what kind of resource this is. Value: the fixed string * "doubleclickbidmanager#listQueriesResponse". */ - kind: string; + kind?: string; /** * Retrieved queries. */ - queries: Schema$Query[]; + queries?: Schema$Query[]; } /** * List reports response. @@ -190,11 +193,11 @@ export namespace doubleclickbidmanager_v1 { * Identifies what kind of resource this is. Value: the fixed string * "doubleclickbidmanager#listReportsResponse". */ - kind: string; + kind?: string; /** * Retrieved reports. */ - reports: Schema$Report[]; + reports?: Schema$Report[]; } /** * Parameters of a query or report. @@ -203,23 +206,23 @@ export namespace doubleclickbidmanager_v1 { /** * Filters used to match traffic data in your report. */ - filters: Schema$FilterPair[]; + filters?: Schema$FilterPair[]; /** * Data is grouped by the filters listed in this field. */ - groupBys: string[]; + groupBys?: string[]; /** * Whether to include data from Invite Media. */ - includeInviteData: boolean; + includeInviteData?: boolean; /** * Metrics to include as columns in your report. */ - metrics: string[]; + metrics?: string[]; /** * Report type. */ - type: string; + type?: string; } /** * Represents a query. @@ -229,40 +232,40 @@ export namespace doubleclickbidmanager_v1 { * Identifies what kind of resource this is. Value: the fixed string * "doubleclickbidmanager#query". */ - kind: string; + kind?: string; /** * Query metadata. */ - metadata: Schema$QueryMetadata; + metadata?: Schema$QueryMetadata; /** * Query parameters. */ - params: Schema$Parameters; + params?: Schema$Parameters; /** * Query ID. */ - queryId: string; + queryId?: string; /** * The ending time for the data that is shown in the report. Note, * reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and * ignored otherwise. */ - reportDataEndTimeMs: string; + reportDataEndTimeMs?: string; /** * The starting time for the data that is shown in the report. Note, * reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES * and ignored otherwise. */ - reportDataStartTimeMs: string; + reportDataStartTimeMs?: string; /** * Information on how often and when to run a query. */ - schedule: Schema$QuerySchedule; + schedule?: Schema$QuerySchedule; /** * Canonical timezone code for report data time. Defaults to * America/New_York. */ - timezoneCode: string; + timezoneCode?: string; } /** * Query metadata. @@ -271,24 +274,24 @@ export namespace doubleclickbidmanager_v1 { /** * Range of report data. */ - dataRange: string; + dataRange?: string; /** * Format of the generated report. */ - format: string; + format?: string; /** * The path to the location in Google Cloud Storage where the latest report * is stored. */ - googleCloudStoragePathForLatestReport: string; + googleCloudStoragePathForLatestReport?: string; /** * The path in Google Drive for the latest report. */ - googleDrivePathForLatestReport: string; + googleDrivePathForLatestReport?: string; /** * The time when the latest report started to run. */ - latestReportRunTimeMs: string; + latestReportRunTimeMs?: string; /** * Locale of the generated reports. Valid values are cs CZECH de GERMAN en * ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH @@ -296,29 +299,29 @@ export namespace doubleclickbidmanager_v1 { * CHINA_CHINESE zh-TW TAIWAN_CHINESE An locale string not in the list * above will generate reports in English. */ - locale: string; + locale?: string; /** * Number of reports that have been generated for the query. */ - reportCount: number; + reportCount?: number; /** * Whether the latest report is currently running. */ - running: boolean; + running?: boolean; /** * Whether to send an email notification when a report is ready. Default to * false. */ - sendNotification: boolean; + sendNotification?: boolean; /** * List of email addresses which are sent email notifications when the * report is finished. Separate from sendNotification. */ - shareEmailAddress: string[]; + shareEmailAddress?: string[]; /** * Query title. It is used to name the reports generated from this query. */ - title: string; + title?: string; } /** * Information on how frequently and when to run a query. @@ -327,22 +330,22 @@ export namespace doubleclickbidmanager_v1 { /** * Datetime to periodically run the query until. */ - endTimeMs: string; + endTimeMs?: string; /** * How often the query is run. */ - frequency: string; + frequency?: string; /** * Time of day at which a new report will be generated, represented as * minutes past midnight. Range is 0 to 1439. Only applies to scheduled * reports. */ - nextRunMinuteOfDay: number; + nextRunMinuteOfDay?: number; /** * Canonical timezone code for report generation time. Defaults to * America/New_York. */ - nextRunTimezoneCode: string; + nextRunTimezoneCode?: string; } /** * Represents a report. @@ -351,15 +354,15 @@ export namespace doubleclickbidmanager_v1 { /** * Key used to identify a report. */ - key: Schema$ReportKey; + key?: Schema$ReportKey; /** * Report metadata. */ - metadata: Schema$ReportMetadata; + metadata?: Schema$ReportMetadata; /** * Report parameters. */ - params: Schema$Parameters; + params?: Schema$Parameters; } /** * An explanation of a report failure. @@ -368,7 +371,7 @@ export namespace doubleclickbidmanager_v1 { /** * Error code that shows why the report was not created. */ - errorCode: string; + errorCode?: string; } /** * Key used to identify a report. @@ -377,11 +380,11 @@ export namespace doubleclickbidmanager_v1 { /** * Query ID. */ - queryId: string; + queryId?: string; /** * Report ID. */ - reportId: string; + reportId?: string; } /** * Report metadata. @@ -391,19 +394,19 @@ export namespace doubleclickbidmanager_v1 { * The path to the location in Google Cloud Storage where the report is * stored. */ - googleCloudStoragePath: string; + googleCloudStoragePath?: string; /** * The ending time for the data that is shown in the report. */ - reportDataEndTimeMs: string; + reportDataEndTimeMs?: string; /** * The starting time for the data that is shown in the report. */ - reportDataStartTimeMs: string; + reportDataStartTimeMs?: string; /** * Report status. */ - status: Schema$ReportStatus; + status?: Schema$ReportStatus; } /** * Report status. @@ -412,19 +415,19 @@ export namespace doubleclickbidmanager_v1 { /** * If the report failed, this records the cause. */ - failure: Schema$ReportFailure; + failure?: Schema$ReportFailure; /** * The time when this report either completed successfully or failed. */ - finishTimeMs: string; + finishTimeMs?: string; /** * The file type of the report. */ - format: string; + format?: string; /** * The state of the report. */ - state: string; + state?: string; } /** * Represents the upload status of a row in the request. @@ -433,27 +436,27 @@ export namespace doubleclickbidmanager_v1 { /** * Whether the stored entity is changed as a result of upload. */ - changed: boolean; + changed?: boolean; /** * Entity Id. */ - entityId: string; + entityId?: string; /** * Entity name. */ - entityName: string; + entityName?: string; /** * Reasons why the entity can't be uploaded. */ - errors: string[]; + errors?: string[]; /** * Whether the entity is persisted. */ - persisted: boolean; + persisted?: boolean; /** * Row number. */ - rowNumber: number; + rowNumber?: number; } /** * Request to run a stored query to generate a report. @@ -462,24 +465,24 @@ export namespace doubleclickbidmanager_v1 { /** * Report data range used to generate the report. */ - dataRange: string; + dataRange?: string; /** * The ending time for the data that is shown in the report. Note, * reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored * otherwise. */ - reportDataEndTimeMs: string; + reportDataEndTimeMs?: string; /** * The starting time for the data that is shown in the report. Note, * reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and * ignored otherwise. */ - reportDataStartTimeMs: string; + reportDataStartTimeMs?: string; /** * Canonical timezone code for report data time. Defaults to * America/New_York. */ - timezoneCode: string; + timezoneCode?: string; } /** * Request to upload line items. @@ -489,16 +492,16 @@ export namespace doubleclickbidmanager_v1 { * Set to true to get upload status without actually persisting the line * items. */ - dryRun: boolean; + dryRun?: boolean; /** * Format the line items are in. Default to CSV. */ - format: string; + format?: string; /** * Line items in CSV to upload. Refer to Entity Write File Format for more * information on file format. */ - lineItems: string; + lineItems?: string; } /** * Upload line items response. @@ -507,7 +510,7 @@ export namespace doubleclickbidmanager_v1 { /** * Status of upload. */ - uploadStatus: Schema$UploadStatus; + uploadStatus?: Schema$UploadStatus; } /** * Represents the status of upload. @@ -516,13 +519,14 @@ export namespace doubleclickbidmanager_v1 { /** * Reasons why upload can't be completed. */ - errors: string[]; + errors?: string[]; /** * Per-row upload status. */ - rowStatus: Schema$RowStatus[]; + rowStatus?: Schema$RowStatus[]; } + export class Resource$Lineitems { root: Doubleclickbidmanager; constructor(root: Doubleclickbidmanager) { @@ -548,29 +552,42 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - downloadlineitems(params?: any, options?: MethodOptions): + downloadlineitems( + params?: Params$Resource$Lineitems$Downloadlineitems, + options?: MethodOptions): AxiosPromise; downloadlineitems( - params?: any, - options?: MethodOptions| + params: Params$Resource$Lineitems$Downloadlineitems, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + downloadlineitems( + params: Params$Resource$Lineitems$Downloadlineitems, + callback: BodyResponseCallback): void; downloadlineitems( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + downloadlineitems( + paramsOrCallback?: Params$Resource$Lineitems$Downloadlineitems| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Lineitems$Downloadlineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Lineitems$Downloadlineitems; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -608,28 +625,41 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - uploadlineitems(params?: any, options?: MethodOptions): - AxiosPromise; uploadlineitems( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Lineitems$Uploadlineitems, + options?: MethodOptions): AxiosPromise; + uploadlineitems( + params: Params$Resource$Lineitems$Uploadlineitems, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + uploadlineitems( + params: Params$Resource$Lineitems$Uploadlineitems, + callback: BodyResponseCallback): void; + uploadlineitems( + callback: BodyResponseCallback): void; uploadlineitems( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Lineitems$Uploadlineitems| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Lineitems$Uploadlineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Lineitems$Uploadlineitems; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -653,6 +683,20 @@ export namespace doubleclickbidmanager_v1 { } } + export interface Params$Resource$Lineitems$Downloadlineitems { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Lineitems$Uploadlineitems { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Queries { root: Doubleclickbidmanager; constructor(root: Doubleclickbidmanager) { @@ -677,26 +721,38 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createquery(params?: any, options?: MethodOptions): - AxiosPromise; createquery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Queries$Createquery, + options?: MethodOptions): AxiosPromise; + createquery( + params: Params$Resource$Queries$Createquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; createquery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Queries$Createquery, + callback: BodyResponseCallback): void; + createquery(callback: BodyResponseCallback): void; + createquery( + paramsOrCallback?: Params$Resource$Queries$Createquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Queries$Createquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Createquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -731,22 +787,37 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deletequery(params?: any, options?: MethodOptions): AxiosPromise; deletequery( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Queries$Deletequery, + options?: MethodOptions): AxiosPromise; + deletequery( + params: Params$Resource$Queries$Deletequery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deletequery( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Queries$Deletequery, + callback: BodyResponseCallback): void; + deletequery(callback: BodyResponseCallback): void; + deletequery( + paramsOrCallback?: Params$Resource$Queries$Deletequery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Queries$Deletequery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Deletequery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -781,25 +852,37 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getquery(params?: any, options?: MethodOptions): AxiosPromise; getquery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Queries$Getquery, + options?: MethodOptions): AxiosPromise; + getquery( + params: Params$Resource$Queries$Getquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getquery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Queries$Getquery, + callback: BodyResponseCallback): void; + getquery(callback: BodyResponseCallback): void; + getquery( + paramsOrCallback?: Params$Resource$Queries$Getquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Queries$Getquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Getquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -833,28 +916,40 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listqueries(params?: any, options?: MethodOptions): - AxiosPromise; listqueries( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Queries$Listqueries, + options?: MethodOptions): AxiosPromise; + listqueries( + params: Params$Resource$Queries$Listqueries, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listqueries( - params?: any, - options?: MethodOptions| + params: Params$Resource$Queries$Listqueries, + callback: BodyResponseCallback): void; + listqueries(callback: BodyResponseCallback): + void; + listqueries( + paramsOrCallback?: Params$Resource$Queries$Listqueries| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Queries$Listqueries; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Listqueries; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -890,22 +985,36 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - runquery(params?: any, options?: MethodOptions): AxiosPromise; runquery( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Queries$Runquery, + options?: MethodOptions): AxiosPromise; runquery( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Queries$Runquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + runquery( + params: Params$Resource$Queries$Runquery, + callback: BodyResponseCallback): void; + runquery(callback: BodyResponseCallback): void; + runquery( + paramsOrCallback?: Params$Resource$Queries$Runquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Queries$Runquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Queries$Runquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -928,6 +1037,57 @@ export namespace doubleclickbidmanager_v1 { } } + export interface Params$Resource$Queries$Createquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Queries$Deletequery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query ID to delete. + */ + queryId?: string; + } + export interface Params$Resource$Queries$Getquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query ID to retrieve. + */ + queryId?: string; + } + export interface Params$Resource$Queries$Listqueries { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Queries$Runquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query ID to run. + */ + queryId?: string; + /** + * Request body metadata + */ + resource?: Schema$RunQueryRequest; + } + + export class Resource$Reports { root: Doubleclickbidmanager; constructor(root: Doubleclickbidmanager) { @@ -952,28 +1112,40 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listreports(params?: any, options?: MethodOptions): - AxiosPromise; listreports( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Listreports, + options?: MethodOptions): AxiosPromise; + listreports( + params: Params$Resource$Reports$Listreports, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listreports( - params?: any, - options?: MethodOptions| + params: Params$Resource$Reports$Listreports, + callback: BodyResponseCallback): void; + listreports(callback: BodyResponseCallback): + void; + listreports( + paramsOrCallback?: Params$Resource$Reports$Listreports| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Reports$Listreports; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Listreports; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -997,6 +1169,19 @@ export namespace doubleclickbidmanager_v1 { } } + export interface Params$Resource$Reports$Listreports { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Query ID with which the reports are associated. + */ + queryId?: string; + } + + export class Resource$Sdf { root: Doubleclickbidmanager; constructor(root: Doubleclickbidmanager) { @@ -1021,26 +1206,37 @@ export namespace doubleclickbidmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - download(params?: any, options?: MethodOptions): + download(params?: Params$Resource$Sdf$Download, options?: MethodOptions): AxiosPromise; download( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sdf$Download, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + download( + params: Params$Resource$Sdf$Download, + callback: BodyResponseCallback): void; + download(callback: BodyResponseCallback): void; download( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sdf$Download| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sdf$Download; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sdf$Download; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1062,4 +1258,11 @@ export namespace doubleclickbidmanager_v1 { } } } + + export interface Params$Resource$Sdf$Download { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/doubleclicksearch/v2.ts b/src/apis/doubleclicksearch/v2.ts index 354741c22a8..0c1e0d61cbe 100644 --- a/src/apis/doubleclicksearch/v2.ts +++ b/src/apis/doubleclicksearch/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace doubleclicksearch_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * DoubleClick Search API * @@ -77,31 +80,31 @@ export namespace doubleclicksearch_v2 { /** * DS advertiser ID. */ - advertiserId: string; + advertiserId?: string; /** * DS agency ID. */ - agencyId: string; + agencyId?: string; /** * The time by which all conversions have been uploaded, in epoch millis * UTC. */ - availabilityTimestamp: string; + availabilityTimestamp?: string; /** * The numeric segmentation identifier (for example, DoubleClick Search * Floodlight activity ID). */ - segmentationId: string; + segmentationId?: string; /** * The friendly segmentation identifier (for example, DoubleClick Search * Floodlight activity name). */ - segmentationName: string; + segmentationName?: string; /** * The segmentation type that this availability is for (its default value is * FLOODLIGHT). */ - segmentationType: string; + segmentationType?: string; } /** * A conversion containing data relevant to DoubleClick Search. @@ -110,38 +113,38 @@ export namespace doubleclicksearch_v2 { /** * DS ad group ID. */ - adGroupId: string; + adGroupId?: string; /** * DS ad ID. */ - adId: string; + adId?: string; /** * DS advertiser ID. */ - advertiserId: string; + advertiserId?: string; /** * DS agency ID. */ - agencyId: string; + agencyId?: string; /** * Available to advertisers only after contacting DoubleClick Search * customer support. */ - attributionModel: string; + attributionModel?: string; /** * DS campaign ID. */ - campaignId: string; + campaignId?: string; /** * Sales channel for the product. Acceptable values are: - * "local": a physical store - "online": an online * store */ - channel: string; + channel?: string; /** * DS click ID for the conversion. */ - clickId: string; + clickId?: string; /** * For offline conversions, advertisers provide this ID. Advertisers can * specify any ID that is meaningful to them. Each conversion in a request @@ -150,112 +153,112 @@ export namespace doubleclicksearch_v2 { * conversions, DS copies the dsConversionId or floodlightOrderId into this * property depending on the advertiser's Floodlight instructions. */ - conversionId: string; + conversionId?: string; /** * The time at which the conversion was last modified, in epoch millis UTC. */ - conversionModifiedTimestamp: string; + conversionModifiedTimestamp?: string; /** * The time at which the conversion took place, in epoch millis UTC. */ - conversionTimestamp: string; + conversionTimestamp?: string; /** * Available to advertisers only after contacting DoubleClick Search * customer support. */ - countMillis: string; + countMillis?: string; /** * DS criterion (keyword) ID. */ - criterionId: string; + criterionId?: string; /** * The currency code for the conversion's revenue. Should be in ISO 4217 * alphabetic (3-char) format. */ - currencyCode: string; + currencyCode?: string; /** * Custom dimensions for the conversion, which can be used to filter data in * a report. */ - customDimension: Schema$CustomDimension[]; + customDimension?: Schema$CustomDimension[]; /** * Custom metrics for the conversion. */ - customMetric: Schema$CustomMetric[]; + customMetric?: Schema$CustomMetric[]; /** * The type of device on which the conversion occurred. */ - deviceType: string; + deviceType?: string; /** * ID that DoubleClick Search generates for each conversion. */ - dsConversionId: string; + dsConversionId?: string; /** * DS engine account ID. */ - engineAccountId: string; + engineAccountId?: string; /** * The Floodlight order ID provided by the advertiser for the conversion. */ - floodlightOrderId: string; + floodlightOrderId?: string; /** * ID that DS generates and uses to uniquely identify the inventory account * that contains the product. */ - inventoryAccountId: string; + inventoryAccountId?: string; /** * The country registered for the Merchant Center feed that contains the * product. Use an ISO 3166 code to specify a country. */ - productCountry: string; + productCountry?: string; /** * DS product group ID. */ - productGroupId: string; + productGroupId?: string; /** * The product ID (SKU). */ - productId: string; + productId?: string; /** * The language registered for the Merchant Center feed that contains the * product. Use an ISO 639 code to specify a language. */ - productLanguage: string; + productLanguage?: string; /** * The quantity of this conversion, in millis. */ - quantityMillis: string; + quantityMillis?: string; /** * The revenue amount of this TRANSACTION conversion, in micros (value * multiplied by 1000000, no decimal). For example, to specify a revenue * value of "10" enter "10000000" (10 million) in your * request. */ - revenueMicros: string; + revenueMicros?: string; /** * The numeric segmentation identifier (for example, DoubleClick Search * Floodlight activity ID). */ - segmentationId: string; + segmentationId?: string; /** * The friendly segmentation identifier (for example, DoubleClick Search * Floodlight activity name). */ - segmentationName: string; + segmentationName?: string; /** * The segmentation type of this conversion (for example, FLOODLIGHT). */ - segmentationType: string; + segmentationType?: string; /** * The state of the conversion, that is, either ACTIVE or REMOVED. Note: * state DELETED is deprecated. */ - state: string; + state?: string; /** * The ID of the local store for which the product was advertised. * Applicable only when the channel is "local". */ - storeId: string; + storeId?: string; /** * The type of the conversion, that is, either ACTION or TRANSACTION. An * ACTION conversion is an action by the user that has no monetarily @@ -263,7 +266,7 @@ export namespace doubleclicksearch_v2 { * have a monetarily quantifiable value. Examples are email list signups * (ACTION) versus ecommerce purchases (TRANSACTION). */ - type: string; + type?: string; } /** * A list of conversions. @@ -272,12 +275,12 @@ export namespace doubleclicksearch_v2 { /** * The conversions being requested. */ - conversion: Schema$Conversion[]; + conversion?: Schema$Conversion[]; /** * Identifies this as a ConversionList resource. Value: the fixed string * doubleclicksearch#conversionList. */ - kind: string; + kind?: string; } /** * A message containing the custome dimension. @@ -286,11 +289,11 @@ export namespace doubleclicksearch_v2 { /** * Custom dimension name. */ - name: string; + name?: string; /** * Custom dimension value. */ - value: string; + value?: string; } /** * A message containing the custome metric. @@ -299,11 +302,11 @@ export namespace doubleclicksearch_v2 { /** * Custom metric name. */ - name: string; + name?: string; /** * Custom metric numeric value. */ - value: number; + value?: number; } /** * A DoubleClick Search report. This object contains the report request, some @@ -315,46 +318,46 @@ export namespace doubleclicksearch_v2 { * Asynchronous report only. Contains a list of generated report files once * the report has succesfully completed. */ - files: any[]; + files?: any[]; /** * Asynchronous report only. Id of the report. */ - id: string; + id?: string; /** * Asynchronous report only. True if and only if the report has completed * successfully and the report files are ready to be downloaded. */ - isReportReady: boolean; + isReportReady?: boolean; /** * Identifies this as a Report resource. Value: the fixed string * doubleclicksearch#report. */ - kind: string; + kind?: string; /** * The request that created the report. Optional fields not specified in the * original request are filled with default values. */ - request: Schema$ReportRequest; + request?: Schema$ReportRequest; /** * The number of report rows generated by the report, not including headers. */ - rowCount: number; + rowCount?: number; /** * Synchronous report only. Generated report rows. */ - rows: Schema$ReportRow[]; + rows?: Schema$ReportRow[]; /** * The currency code of all monetary values produced in the report, * including values that are set by users (e.g., keyword bid settings) and * metrics (e.g., cost and revenue). The currency code of a report is * determined by the statisticsCurrency field of the report request. */ - statisticsCurrencyCode: string; + statisticsCurrencyCode?: string; /** * If all statistics of the report are sourced from the same time zone, this * would be it. Otherwise the field is unset. */ - statisticsTimeZone: string; + statisticsTimeZone?: string; } /** * A request object used to create a DoubleClick Search report. @@ -363,7 +366,7 @@ export namespace doubleclicksearch_v2 { /** * Name of a DoubleClick Search column to include in the report. */ - columnName: string; + columnName?: string; /** * Segments a report by a custom dimension. The report must be scoped to an * advertiser or lower, and the custom dimension must already be set up in @@ -372,37 +375,37 @@ export namespace doubleclicksearch_v2 { * returns the value of the specified custom dimension for the given * conversion, if set. This column does not segment the conversion report. */ - customDimensionName: string; + customDimensionName?: string; /** * Name of a custom metric to include in the report. The report must be * scoped to an advertiser or lower, and the custom metric must already be * set up in DoubleClick Search. The custom metric name, which appears in * DoubleClick Search, is case sensitive. */ - customMetricName: string; + customMetricName?: string; /** * Inclusive day in YYYY-MM-DD format. When provided, this overrides the * overall time range of the report for this column only. Must be provided * together with startDate. */ - endDate: string; + endDate?: string; /** * Synchronous report only. Set to true to group by this column. Defaults to * false. */ - groupByColumn: boolean; + groupByColumn?: boolean; /** * Text used to identify this column in the report output; defaults to * columnName or savedColumnName when not specified. This can be used to * prevent collisions between DoubleClick Search columns and saved columns * with the same name. */ - headerText: string; + headerText?: string; /** * The platform that is used to provide data for the custom dimension. * Acceptable values are "floodlight". */ - platformSource: string; + platformSource?: string; /** * Returns metrics only for a specific type of product activity. Accepted * values are: - "sold": returns metrics only for products that @@ -410,19 +413,19 @@ export namespace doubleclicksearch_v2 { * that were advertised in a Shopping campaign, and that might or might not * have been sold */ - productReportPerspective: string; + productReportPerspective?: string; /** * Name of a saved column to include in the report. The report must be * scoped at advertiser or lower, and this saved column must already be * created in the DoubleClick Search UI. */ - savedColumnName: string; + savedColumnName?: string; /** * Inclusive date in YYYY-MM-DD format. When provided, this overrides the * overall time range of the report for this column only. Must be provided * together with endDate. */ - startDate: string; + startDate?: string; } /** * A request object used to create a DoubleClick Search report. @@ -436,63 +439,63 @@ export namespace doubleclicksearch_v2 { * savedColumnName cannot be set in the same stanza. The maximum number of * columns per request is 300. */ - columns: Schema$ReportApiColumnSpec[]; + columns?: Schema$ReportApiColumnSpec[]; /** * Format that the report should be returned in. Currently csv or tsv is * supported. */ - downloadFormat: string; + downloadFormat?: string; /** * A list of filters to be applied to the report. The maximum number of * filters per request is 300. */ - filters: any[]; + filters?: any[]; /** * Determines if removed entities should be included in the report. Defaults * to false. Deprecated, please use includeRemovedEntities instead. */ - includeDeletedEntities: boolean; + includeDeletedEntities?: boolean; /** * Determines if removed entities should be included in the report. Defaults * to false. */ - includeRemovedEntities: boolean; + includeRemovedEntities?: boolean; /** * Asynchronous report only. The maximum number of rows per report file. A * large report is split into many files based on this field. Acceptable * values are 1000000 to 100000000, inclusive. */ - maxRowsPerFile: number; + maxRowsPerFile?: number; /** * Synchronous report only. A list of columns and directions defining * sorting to be performed on the report rows. The maximum number of * orderings per request is 300. */ - orderBy: any[]; + orderBy?: any[]; /** * The reportScope is a set of IDs that are used to determine which subset * of entities will be returned in the report. The full lineage of IDs from * the lowest scoped level desired up through agency is required. */ - reportScope: any; + reportScope?: any; /** * Determines the type of rows that are returned in the report. For example, * if you specify reportType: keyword, each row in the report will contain * data about a keyword. See the Types of Reports reference for the columns * that are available for each type. */ - reportType: string; + reportType?: string; /** * Synchronous report only. The maxinum number of rows to return; additional * rows are dropped. Acceptable values are 0 to 10000, inclusive. Defaults * to 10000. */ - rowCount: number; + rowCount?: number; /** * Synchronous report only. Zero-based index of the first row to return. * Acceptable values are 0 to 50000, inclusive. Defaults to 0. */ - startRow: number; + startRow?: number; /** * Specifies the currency in which monetary will be returned. Possible * values are: usd, agency (valid if the report is scoped to agency or @@ -500,17 +503,17 @@ export namespace doubleclicksearch_v2 { * lower), or account (valid if the report is scoped to engine account or * lower). */ - statisticsCurrency: string; + statisticsCurrency?: string; /** * If metrics are requested in a report, this argument will be used to * restrict the metrics to a specific time range. */ - timeRange: any; + timeRange?: any; /** * If true, the report would only be created if all the requested stat data * are sourced from a single timezone. Defaults to false. */ - verifySingleTimeZone: boolean; + verifySingleTimeZone?: boolean; } /** * A row in a DoubleClick Search report. @@ -524,15 +527,15 @@ export namespace doubleclicksearch_v2 { * Identifies this as a SavedColumn resource. Value: the fixed string * doubleclicksearch#savedColumn. */ - kind: string; + kind?: string; /** * The name of the saved column. */ - savedColumnName: string; + savedColumnName?: string; /** * The type of data this saved column will produce. */ - type: string; + type?: string; } /** * A list of saved columns. Advertisers create saved columns to report on @@ -544,12 +547,12 @@ export namespace doubleclicksearch_v2 { /** * The saved columns being requested. */ - items: Schema$SavedColumn[]; + items?: Schema$SavedColumn[]; /** * Identifies this as a SavedColumnList resource. Value: the fixed string * doubleclicksearch#savedColumnList. */ - kind: string; + kind?: string; } /** * The request to update availability. @@ -558,7 +561,7 @@ export namespace doubleclicksearch_v2 { /** * The availabilities being requested. */ - availabilities: Schema$Availability[]; + availabilities?: Schema$Availability[]; } /** * The response to a update availability request. @@ -567,9 +570,10 @@ export namespace doubleclicksearch_v2 { /** * The availabilities being returned. */ - availabilities: Schema$Availability[]; + availabilities?: Schema$Availability[]; } + export class Resource$Conversion { root: Doubleclicksearch; constructor(root: Doubleclicksearch) { @@ -605,24 +609,34 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Conversion$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Conversion$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Conversion$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Conversion$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Conversion$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversion$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -662,26 +676,38 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Conversion$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Conversion$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Conversion$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Conversion$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Conversion$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversion$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -724,26 +750,37 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Conversion$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Conversion$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Conversion$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Conversion$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Conversion$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversion$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -781,26 +818,38 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Conversion$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Conversion$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Conversion$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Conversion$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Conversion$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversion$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -836,29 +885,45 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateAvailability(params?: any, options?: MethodOptions): + updateAvailability( + params?: Params$Resource$Conversion$Updateavailability, + options?: MethodOptions): AxiosPromise; updateAvailability( - params?: any, - options?: MethodOptions| + params: Params$Resource$Conversion$Updateavailability, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; updateAvailability( - params?: any, - options?: MethodOptions| + params: Params$Resource$Conversion$Updateavailability, + callback: BodyResponseCallback): + void; + updateAvailability( + callback: BodyResponseCallback): + void; + updateAvailability( + paramsOrCallback?: Params$Resource$Conversion$Updateavailability| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Conversion$Updateavailability; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Conversion$Updateavailability; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -883,6 +948,120 @@ export namespace doubleclicksearch_v2 { } } + export interface Params$Resource$Conversion$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numeric ID of the ad group. + */ + adGroupId?: string; + /** + * Numeric ID of the ad. + */ + adId?: string; + /** + * Numeric ID of the advertiser. + */ + advertiserId?: string; + /** + * Numeric ID of the agency. + */ + agencyId?: string; + /** + * Numeric ID of the campaign. + */ + campaignId?: string; + /** + * Numeric ID of the criterion. + */ + criterionId?: string; + /** + * Last date (inclusive) on which to retrieve conversions. Format is + * yyyymmdd. + */ + endDate?: number; + /** + * Numeric ID of the engine account. + */ + engineAccountId?: string; + /** + * The number of conversions to return per call. + */ + rowCount?: number; + /** + * First date (inclusive) on which to retrieve conversions. Format is + * yyyymmdd. + */ + startDate?: number; + /** + * The 0-based starting index for retrieving conversions results. + */ + startRow?: number; + } + export interface Params$Resource$Conversion$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Conversion$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Numeric ID of the advertiser. + */ + advertiserId?: string; + /** + * Numeric ID of the agency. + */ + agencyId?: string; + /** + * Last date (inclusive) on which to retrieve conversions. Format is + * yyyymmdd. + */ + endDate?: number; + /** + * Numeric ID of the engine account. + */ + engineAccountId?: string; + /** + * The number of conversions to return per call. + */ + rowCount?: number; + /** + * First date (inclusive) on which to retrieve conversions. Format is + * yyyymmdd. + */ + startDate?: number; + /** + * The 0-based starting index for retrieving conversions results. + */ + startRow?: number; + /** + * Request body metadata + */ + resource?: Schema$ConversionList; + } + export interface Params$Resource$Conversion$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Conversion$Updateavailability { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Reports { root: Doubleclicksearch; constructor(root: Doubleclicksearch) { @@ -907,26 +1086,37 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generate(params?: any, options?: MethodOptions): - AxiosPromise; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Reports$Generate, + options?: MethodOptions): AxiosPromise; + generate( + params: Params$Resource$Reports$Generate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; generate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Generate, + callback: BodyResponseCallback): void; + generate(callback: BodyResponseCallback): void; + generate( + paramsOrCallback?: Params$Resource$Reports$Generate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Generate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Generate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -961,23 +1151,33 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Reports$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Reports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Reports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Reports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1013,22 +1213,35 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getFile(params?: any, options?: MethodOptions): AxiosPromise; + getFile(params?: Params$Resource$Reports$Getfile, options?: MethodOptions): + AxiosPromise; getFile( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Getfile, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getFile( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Reports$Getfile, + callback: BodyResponseCallback): void; + getFile(callback: BodyResponseCallback): void; + getFile( + paramsOrCallback?: Params$Resource$Reports$Getfile| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Getfile; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Getfile; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1065,25 +1278,36 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - request(params?: any, options?: MethodOptions): AxiosPromise; + request(params?: Params$Resource$Reports$Request, options?: MethodOptions): + AxiosPromise; + request( + params: Params$Resource$Reports$Request, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; request( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Request, + callback: BodyResponseCallback): void; + request(callback: BodyResponseCallback): void; request( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Request| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Request; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Request; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1106,6 +1330,46 @@ export namespace doubleclicksearch_v2 { } } + export interface Params$Resource$Reports$Generate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Reports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the report request being polled. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Getfile { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The index of the report fragment to download. + */ + reportFragment?: number; + /** + * ID of the report. + */ + reportId?: string; + } + export interface Params$Resource$Reports$Request { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Savedcolumns { root: Doubleclicksearch; constructor(root: Doubleclicksearch) { @@ -1131,26 +1395,38 @@ export namespace doubleclicksearch_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Savedcolumns$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Savedcolumns$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Savedcolumns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Savedcolumns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Savedcolumns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Savedcolumns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1174,4 +1450,20 @@ export namespace doubleclicksearch_v2 { } } } + + export interface Params$Resource$Savedcolumns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * DS ID of the advertiser. + */ + advertiserId?: string; + /** + * DS ID of the agency. + */ + agencyId?: string; + } } diff --git a/src/apis/drive/v2.ts b/src/apis/drive/v2.ts index 60d5416196a..f235f798ac7 100644 --- a/src/apis/drive/v2.ts +++ b/src/apis/drive/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace drive_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Drive API * @@ -100,113 +103,113 @@ export namespace drive_v2 { * Information about supported additional roles per file type. The most * specific type takes precedence. */ - additionalRoleInfo: any[]; + additionalRoleInfo?: any[]; /** * Whether the user can create Team Drives. */ - canCreateTeamDrives: boolean; + canCreateTeamDrives?: boolean; /** * The domain sharing policy for the current user. Possible values are: - * allowed - allowedWithWarning - incomingOnly - disallowed */ - domainSharingPolicy: string; + domainSharingPolicy?: string; /** * The ETag of the item. */ - etag: string; + etag?: string; /** * The allowable export formats. */ - exportFormats: any[]; + exportFormats?: any[]; /** * List of additional features enabled on this account. */ - features: any[]; + features?: any[]; /** * The palette of allowable folder colors as RGB hex strings. */ - folderColorPalette: string[]; + folderColorPalette?: string[]; /** * The allowable import formats. */ - importFormats: any[]; + importFormats?: any[]; /** * A boolean indicating whether the authenticated app is installed by the * authenticated user. */ - isCurrentAppInstalled: boolean; + isCurrentAppInstalled?: boolean; /** * This is always drive#about. */ - kind: string; + kind?: string; /** * The user's language or locale code, as defined by BCP 47, with some * extensions from Unicode's LDML format * (http://www.unicode.org/reports/tr35/). */ - languageCode: string; + languageCode?: string; /** * The largest change id. */ - largestChangeId: string; + largestChangeId?: string; /** * List of max upload sizes for each file type. The most specific type takes * precedence. */ - maxUploadSizes: any[]; + maxUploadSizes?: any[]; /** * The name of the current user. */ - name: string; + name?: string; /** * The current user's ID as visible in the permissions collection. */ - permissionId: string; + permissionId?: string; /** * The amount of storage quota used by different Google services. */ - quotaBytesByService: any[]; + quotaBytesByService?: any[]; /** * The total number of quota bytes. */ - quotaBytesTotal: string; + quotaBytesTotal?: string; /** * The number of quota bytes used by Google Drive. */ - quotaBytesUsed: string; + quotaBytesUsed?: string; /** * The number of quota bytes used by all Google apps (Drive, Picasa, etc.). */ - quotaBytesUsedAggregate: string; + quotaBytesUsedAggregate?: string; /** * The number of quota bytes used by trashed items. */ - quotaBytesUsedInTrash: string; + quotaBytesUsedInTrash?: string; /** * The type of the user's storage quota. Possible values are: - * LIMITED - UNLIMITED */ - quotaType: string; + quotaType?: string; /** * The number of remaining change ids, limited to no more than 2500. */ - remainingChangeIds: string; + remainingChangeIds?: string; /** * The id of the root folder. */ - rootFolderId: string; + rootFolderId?: string; /** * A link back to this item. */ - selfLink: string; + selfLink?: string; /** * A list of themes that are supported for Team Drives. */ - teamDriveThemes: any[]; + teamDriveThemes?: any[]; /** * The authenticated user. */ - user: Schema$User; + user?: Schema$User; } /** * The apps resource provides a list of the apps that a user has installed, @@ -217,106 +220,106 @@ export namespace drive_v2 { /** * Whether the app is authorized to access data on the user's Drive. */ - authorized: boolean; + authorized?: boolean; /** * The template url to create a new file with this app in a given folder. * The template will contain {folderId} to be replaced by the folder to * create the new file in. */ - createInFolderTemplate: string; + createInFolderTemplate?: string; /** * The url to create a new file with this app. */ - createUrl: string; + createUrl?: string; /** * Whether the app has drive-wide scope. An app with drive-wide scope can * access all files in the user's drive. */ - hasDriveWideScope: boolean; + hasDriveWideScope?: boolean; /** * The various icons for the app. */ - icons: any[]; + icons?: any[]; /** * The ID of the app. */ - id: string; + id?: string; /** * Whether the app is installed. */ - installed: boolean; + installed?: boolean; /** * This is always drive#app. */ - kind: string; + kind?: string; /** * A long description of the app. */ - longDescription: string; + longDescription?: string; /** * The name of the app. */ - name: string; + name?: string; /** * The type of object this app creates (e.g. Chart). If empty, the app name * should be used instead. */ - objectType: string; + objectType?: string; /** * The template url for opening files with this app. The template will * contain {ids} and/or {exportIds} to be replaced by the actual file ids. * See Open Files for the full documentation. */ - openUrlTemplate: string; + openUrlTemplate?: string; /** * The list of primary file extensions. */ - primaryFileExtensions: string[]; + primaryFileExtensions?: string[]; /** * The list of primary mime types. */ - primaryMimeTypes: string[]; + primaryMimeTypes?: string[]; /** * The ID of the product listing for this app. */ - productId: string; + productId?: string; /** * A link to the product listing for this app. */ - productUrl: string; + productUrl?: string; /** * The list of secondary file extensions. */ - secondaryFileExtensions: string[]; + secondaryFileExtensions?: string[]; /** * The list of secondary mime types. */ - secondaryMimeTypes: string[]; + secondaryMimeTypes?: string[]; /** * A short description of the app. */ - shortDescription: string; + shortDescription?: string; /** * Whether this app supports creating new objects. */ - supportsCreate: boolean; + supportsCreate?: boolean; /** * Whether this app supports importing Google Docs. */ - supportsImport: boolean; + supportsImport?: boolean; /** * Whether this app supports opening more than one file. */ - supportsMultiOpen: boolean; + supportsMultiOpen?: boolean; /** * Whether this app supports creating new files when offline. */ - supportsOfflineCreate: boolean; + supportsOfflineCreate?: boolean; /** * Whether the app is selected as the default handler for the types it * supports. */ - useByDefault: boolean; + useByDefault?: boolean; } /** * A list of third-party applications which the user has installed or given @@ -327,23 +330,23 @@ export namespace drive_v2 { * List of app IDs that the user has specified to use by default. The list * is in reverse-priority order (lowest to highest). */ - defaultAppIds: string[]; + defaultAppIds?: string[]; /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of apps. */ - items: Schema$App[]; + items?: Schema$App[]; /** * This is always drive#appList. */ - kind: string; + kind?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * Representation of a change to a file or Team Drive. @@ -353,46 +356,46 @@ export namespace drive_v2 { * Whether the file or Team Drive has been removed from this list of * changes, for example by deletion or loss of access. */ - deleted: boolean; + deleted?: boolean; /** * The updated state of the file. Present if the type is file and the file * has not been removed from this list of changes. */ - file: Schema$File; + file?: Schema$File; /** * The ID of the file associated with this change. */ - fileId: string; + fileId?: string; /** * The ID of the change. */ - id: string; + id?: string; /** * This is always drive#change. */ - kind: string; + kind?: string; /** * The time of this modification. */ - modificationDate: string; + modificationDate?: string; /** * A link back to this change. */ - selfLink: string; + selfLink?: string; /** * The updated state of the Team Drive. Present if the type is teamDrive, * the user is still a member of the Team Drive, and the Team Drive has not * been deleted. */ - teamDrive: Schema$TeamDrive; + teamDrive?: Schema$TeamDrive; /** * The ID of the Team Drive associated with this change. */ - teamDriveId: string; + teamDriveId?: string; /** * The type of the change. Possible values are file and teamDrive. */ - type: string; + type?: string; } /** * A list of changes for a user. @@ -401,40 +404,40 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of changes. If nextPageToken is populated, then this list may be * incomplete and an additional page of results should be fetched. */ - items: Schema$Change[]; + items?: Schema$Change[]; /** * This is always drive#changeList. */ - kind: string; + kind?: string; /** * The current largest change ID. */ - largestChangeId: string; + largestChangeId?: string; /** * The starting page token for future changes. This will be present only if * the end of the current changes list has been reached. */ - newStartPageToken: string; + newStartPageToken?: string; /** * A link to the next page of changes. */ - nextLink: string; + nextLink?: string; /** * The page token for the next page of changes. This will be absent if the * end of the changes list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * An notification channel used to watch for resource changes. @@ -443,47 +446,47 @@ export namespace drive_v2 { /** * The address where notifications are delivered for this channel. */ - address: string; + address?: string; /** * Date and time of notification channel expiration, expressed as a Unix * timestamp, in milliseconds. Optional. */ - expiration: string; + expiration?: string; /** * A UUID or similar unique string that identifies this channel. */ - id: string; + id?: string; /** * Identifies this as a notification channel used to watch for changes to a * resource. Value: the fixed string "api#channel". */ - kind: string; + kind?: string; /** * Additional parameters controlling delivery channel behavior. Optional. */ - params: any; + params?: any; /** * A Boolean value to indicate whether payload is wanted. Optional. */ - payload: boolean; + payload?: boolean; /** * An opaque ID that identifies the resource being watched on this channel. * Stable across different API versions. */ - resourceId: string; + resourceId?: string; /** * A version-specific identifier for the watched resource. */ - resourceUri: string; + resourceUri?: string; /** * An arbitrary string delivered to the target address with each * notification delivered over this channel. Optional. */ - token: string; + token?: string; /** * The type of delivery mechanism used for this channel. */ - type: string; + type?: string; } /** * A list of children of a file. @@ -492,31 +495,31 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of children. If nextPageToken is populated, then this list may * be incomplete and an additional page of results should be fetched. */ - items: Schema$ChildReference[]; + items?: Schema$ChildReference[]; /** * This is always drive#childList. */ - kind: string; + kind?: string; /** * A link to the next page of children. */ - nextLink: string; + nextLink?: string; /** * The page token for the next page of children. This will be absent if the * end of the children list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * A reference to a folder's child. @@ -525,19 +528,19 @@ export namespace drive_v2 { /** * A link to the child. */ - childLink: string; + childLink?: string; /** * The ID of the child. */ - id: string; + id?: string; /** * This is always drive#childReference. */ - kind: string; + kind?: string; /** * A link back to this reference. */ - selfLink: string; + selfLink?: string; } /** * A comment on a file in Google Drive. @@ -548,70 +551,70 @@ export namespace drive_v2 { * documentation for details on how to define and interpret anchor * properties. */ - anchor: string; + anchor?: string; /** * The user who wrote this comment. */ - author: Schema$User; + author?: Schema$User; /** * The ID of the comment. */ - commentId: string; + commentId?: string; /** * The plain text content used to create this comment. This is not HTML safe * and should only be used as a starting point to make edits to a * comment's content. */ - content: string; + content?: string; /** * The context of the file which is being commented on. */ - context: any; + context?: any; /** * The date when this comment was first created. */ - createdDate: string; + createdDate?: string; /** * Whether this comment has been deleted. If a comment has been deleted the * content will be cleared and this will only represent a comment that once * existed. */ - deleted: boolean; + deleted?: boolean; /** * The file which this comment is addressing. */ - fileId: string; + fileId?: string; /** * The title of the file which this comment is addressing. */ - fileTitle: string; + fileTitle?: string; /** * HTML formatted content for this comment. */ - htmlContent: string; + htmlContent?: string; /** * This is always drive#comment. */ - kind: string; + kind?: string; /** * The date when this comment or any of its replies were last modified. */ - modifiedDate: string; + modifiedDate?: string; /** * Replies to this post. */ - replies: Schema$CommentReply[]; + replies?: Schema$CommentReply[]; /** * A link back to this comment. */ - selfLink: string; + selfLink?: string; /** * The status of this comment. Status can be changed by posting a reply to a * comment with the desired status. - "open" - The comment is * still open. - "resolved" - The comment has been resolved by * one of its replies. */ - status: string; + status?: string; } /** * A list of comments on a file in Google Drive. @@ -621,26 +624,26 @@ export namespace drive_v2 { * The list of comments. If nextPageToken is populated, then this list may * be incomplete and an additional page of results should be fetched. */ - items: Schema$Comment[]; + items?: Schema$Comment[]; /** * This is always drive#commentList. */ - kind: string; + kind?: string; /** * A link to the next page of comments. */ - nextLink: string; + nextLink?: string; /** * The page token for the next page of comments. This will be absent if the * end of the comments list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * A comment on a file in Google Drive. @@ -649,47 +652,47 @@ export namespace drive_v2 { /** * The user who wrote this reply. */ - author: Schema$User; + author?: Schema$User; /** * The plain text content used to create this reply. This is not HTML safe * and should only be used as a starting point to make edits to a * reply's content. This field is required on inserts if no verb is * specified (resolve/reopen). */ - content: string; + content?: string; /** * The date when this reply was first created. */ - createdDate: string; + createdDate?: string; /** * Whether this reply has been deleted. If a reply has been deleted the * content will be cleared and this will only represent a reply that once * existed. */ - deleted: boolean; + deleted?: boolean; /** * HTML formatted content for this reply. */ - htmlContent: string; + htmlContent?: string; /** * This is always drive#commentReply. */ - kind: string; + kind?: string; /** * The date when this reply was last modified. */ - modifiedDate: string; + modifiedDate?: string; /** * The ID of the reply. */ - replyId: string; + replyId?: string; /** * The action this reply performed to the parent comment. When creating a * new reply this is the action to be perform to the parent comment. * Possible values are: - "resolve" - To resolve a comment. - * "reopen" - To reopen (un-resolve) a comment. */ - verb: string; + verb?: string; } /** * A list of replies to a comment on a file in Google Drive. @@ -699,26 +702,26 @@ export namespace drive_v2 { * The list of replies. If nextPageToken is populated, then this list may be * incomplete and an additional page of results should be fetched. */ - items: Schema$CommentReply[]; + items?: Schema$CommentReply[]; /** * This is always drive#commentReplyList. */ - kind: string; + kind?: string; /** * A link to the next page of replies. */ - nextLink: string; + nextLink?: string; /** * The page token for the next page of replies. This will be absent if the * end of the replies list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * The metadata for a file. @@ -727,83 +730,83 @@ export namespace drive_v2 { /** * A link for opening the file in a relevant Google editor or viewer. */ - alternateLink: string; + alternateLink?: string; /** * Whether this file is in the Application Data folder. */ - appDataContents: boolean; + appDataContents?: boolean; /** * Deprecated: use capabilities/canComment. */ - canComment: boolean; + canComment?: boolean; /** * Deprecated: use capabilities/canReadRevisions. */ - canReadRevisions: boolean; + canReadRevisions?: boolean; /** * Capabilities the current user has on this file. Each capability * corresponds to a fine-grained action that a user may take. */ - capabilities: any; + capabilities?: any; /** * Deprecated: use capabilities/canCopy. */ - copyable: boolean; + copyable?: boolean; /** * Create time for this file (formatted RFC 3339 timestamp). */ - createdDate: string; + createdDate?: string; /** * A link to open this file with the user's default app for this file. * Only populated when the drive.apps.readonly scope is used. */ - defaultOpenWithLink: string; + defaultOpenWithLink?: string; /** * A short description of the file. */ - description: string; - downloadUrl: string; + description?: string; + downloadUrl?: string; /** * Deprecated: use capabilities/canEdit. */ - editable: boolean; + editable?: boolean; /** * A link for embedding the file. */ - embedLink: string; + embedLink?: string; /** * ETag of the file. */ - etag: string; + etag?: string; /** * Whether this file has been explicitly trashed, as opposed to recursively * trashed. */ - explicitlyTrashed: boolean; + explicitlyTrashed?: boolean; /** * Links for exporting Google Docs to specific formats. */ - exportLinks: any; + exportLinks?: any; /** * The final component of fullFileExtension with trailing text that does not * appear to be part of the extension removed. This field is only populated * for files with content stored in Drive; it is not populated for Google * Docs or shortcut files. */ - fileExtension: string; + fileExtension?: string; /** * The size of the file in bytes. This field is only populated for files * with content stored in Drive; it is not populated for Google Docs or * shortcut files. */ - fileSize: string; + fileSize?: string; /** * Folder color as an RGB hex string if the file is a folder. The list of * supported colors is available in the folderColorPalette field of the * About resource. If an unsupported color is specified, it will be changed * to the closest color in the palette. Not populated for Team Drive files. */ - folderColorRgb: string; + folderColorRgb?: string; /** * The full file extension; extracted from the title. May contain multiple * concatenated extensions, such as "tar.gz". Removing an @@ -812,120 +815,120 @@ export namespace drive_v2 { * populated for files with content stored in Drive; it is not populated for * Google Docs or shortcut files. */ - fullFileExtension: string; + fullFileExtension?: string; /** * Whether any users are granted file access directly on this file. This * field is only populated for Team Drive files. */ - hasAugmentedPermissions: boolean; + hasAugmentedPermissions?: boolean; /** * Whether this file has a thumbnail. This does not indicate whether the * requesting app has access to the thumbnail. To check access, look for the * presence of the thumbnailLink field. */ - hasThumbnail: boolean; + hasThumbnail?: boolean; /** * The ID of the file's head revision. This field is only populated for * files with content stored in Drive; it is not populated for Google Docs * or shortcut files. */ - headRevisionId: string; + headRevisionId?: string; /** * A link to the file's icon. */ - iconLink: string; + iconLink?: string; /** * The ID of the file. */ - id: string; + id?: string; /** * Metadata about image media. This will only be present for image types, * and its contents will depend on what can be parsed from the image * content. */ - imageMediaMetadata: any; + imageMediaMetadata?: any; /** * Indexable text attributes for the file (can only be written) */ - indexableText: any; + indexableText?: any; /** * Whether the file was created or opened by the requesting app. */ - isAppAuthorized: boolean; + isAppAuthorized?: boolean; /** * The type of file. This is always drive#file. */ - kind: string; + kind?: string; /** * A group of labels for the file. */ - labels: any; + labels?: any; /** * The last user to modify this file. */ - lastModifyingUser: Schema$User; + lastModifyingUser?: Schema$User; /** * Name of the last user to modify this file. */ - lastModifyingUserName: string; + lastModifyingUserName?: string; /** * Last time this file was viewed by the user (formatted RFC 3339 * timestamp). */ - lastViewedByMeDate: string; + lastViewedByMeDate?: string; /** * Deprecated. */ - markedViewedByMeDate: string; + markedViewedByMeDate?: string; /** * An MD5 checksum for the content of this file. This field is only * populated for files with content stored in Drive; it is not populated for * Google Docs or shortcut files. */ - md5Checksum: string; + md5Checksum?: string; /** * The MIME type of the file. This is only mutable on update when uploading * new content. This field can be left blank, and the mimetype will be * determined from the uploaded content's MIME type. */ - mimeType: string; + mimeType?: string; /** * Last time this file was modified by the user (formatted RFC 3339 * timestamp). Note that setting modifiedDate will also update the * modifiedByMe date for the user which set the date. */ - modifiedByMeDate: string; + modifiedByMeDate?: string; /** * Last time this file was modified by anyone (formatted RFC 3339 * timestamp). This is only mutable on update when the setModifiedDate * parameter is set. */ - modifiedDate: string; + modifiedDate?: string; /** * A map of the id of each of the user's apps to a link to open this * file with that app. Only populated when the drive.apps.readonly scope is * used. */ - openWithLinks: any; + openWithLinks?: any; /** * The original filename of the uploaded content if available, or else the * original value of the title field. This is only available for files with * binary content in Drive. */ - originalFilename: string; + originalFilename?: string; /** * Whether the file is owned by the current user. Not populated for Team * Drive files. */ - ownedByMe: boolean; + ownedByMe?: boolean; /** * Name(s) of the owner(s) of this file. Not populated for Team Drive files. */ - ownerNames: string[]; + ownerNames?: string[]; /** * The owner(s) of this file. Not populated for Team Drive files. */ - owners: Schema$User[]; + owners?: Schema$User[]; /** * Collection of parent folders which contain this file. If not specified as * part of an insert request, the file will be placed directly in the @@ -934,115 +937,115 @@ export namespace drive_v2 { * requests can also use the addParents and removeParents parameters to * modify the parents list. */ - parents: Schema$ParentReference[]; + parents?: Schema$ParentReference[]; /** * List of permission IDs for users with access to this file. */ - permissionIds: string[]; + permissionIds?: string[]; /** * The list of permissions for users with access to this file. Not populated * for Team Drive files. */ - permissions: Schema$Permission[]; + permissions?: Schema$Permission[]; /** * The list of properties. */ - properties: Schema$Property[]; + properties?: Schema$Property[]; /** * The number of quota bytes used by this file. */ - quotaBytesUsed: string; + quotaBytesUsed?: string; /** * A link back to this file. */ - selfLink: string; + selfLink?: string; /** * Deprecated: use capabilities/canShare. */ - shareable: boolean; + shareable?: boolean; /** * Whether the file has been shared. Not populated for Team Drive files. */ - shared: boolean; + shared?: boolean; /** * Time at which this file was shared with the user (formatted RFC 3339 * timestamp). */ - sharedWithMeDate: string; + sharedWithMeDate?: string; /** * User that shared the item with the current user, if available. */ - sharingUser: Schema$User; + sharingUser?: Schema$User; /** * The list of spaces which contain the file. Supported values are * 'drive', 'appDataFolder' and 'photos'. */ - spaces: string[]; + spaces?: string[]; /** * ID of the Team Drive the file resides in. */ - teamDriveId: string; + teamDriveId?: string; /** * A thumbnail for the file. This will only be used if Drive cannot generate * a standard thumbnail. */ - thumbnail: any; + thumbnail?: any; /** * A short-lived link to the file's thumbnail. Typically lasts on the * order of hours. Only populated when the requesting app can access the * file's content. */ - thumbnailLink: string; + thumbnailLink?: string; /** * The thumbnail version for use in thumbnail cache invalidation. */ - thumbnailVersion: string; + thumbnailVersion?: string; /** * The title of this file. Note that for immutable items such as the top * level folders of Team Drives, My Drive root folder, and Application Data * folder the title is constant. */ - title: string; + title?: string; /** * The time that the item was trashed (formatted RFC 3339 timestamp). Only * populated for Team Drive files. */ - trashedDate: string; + trashedDate?: string; /** * If the file has been explicitly trashed, the user who trashed it. Only * populated for Team Drive files. */ - trashingUser: Schema$User; + trashingUser?: Schema$User; /** * The permissions for the authenticated user on this file. */ - userPermission: Schema$Permission; + userPermission?: Schema$Permission; /** * A monotonically increasing version number for the file. This reflects * every change made to the file on the server, even those not visible to * the requesting user. */ - version: string; + version?: string; /** * Metadata about video media. This will only be present for video types. */ - videoMediaMetadata: any; + videoMediaMetadata?: any; /** * A link for downloading the content of the file in a browser using cookie * based authentication. In cases where the content is shared publicly, the * content can be downloaded without any credentials. */ - webContentLink: string; + webContentLink?: string; /** * A link only available on public folders for viewing their static web * assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting. */ - webViewLink: string; + webViewLink?: string; /** * Whether writers can share the document with other users. Not populated * for Team Drive files. */ - writersCanShare: boolean; + writersCanShare?: boolean; } /** * A list of files. @@ -1051,7 +1054,7 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * Whether the search process was incomplete. If true, then some search * results may be missing, since all documents were not searched. This may @@ -1061,31 +1064,31 @@ export namespace drive_v2 { * query by choosing a different corpus such as "default" or * "teamDrive". */ - incompleteSearch: boolean; + incompleteSearch?: boolean; /** * The list of files. If nextPageToken is populated, then this list may be * incomplete and an additional page of results should be fetched. */ - items: Schema$File[]; + items?: Schema$File[]; /** * This is always drive#fileList. */ - kind: string; + kind?: string; /** * A link to the next page of files. */ - nextLink: string; + nextLink?: string; /** * The page token for the next page of files. This will be absent if the end * of the files list has been reached. If the token is rejected for any * reason, it should be discarded, and pagination should be restarted from * the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * A list of generated IDs which can be provided in insert requests @@ -1094,15 +1097,15 @@ export namespace drive_v2 { /** * The IDs generated for the requesting user in the specified space. */ - ids: string[]; + ids?: string[]; /** * This is always drive#generatedIds */ - kind: string; + kind?: string; /** * The type of file that can be created with these IDs. */ - space: string; + space?: string; } /** * A list of a file's parents. @@ -1111,19 +1114,19 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of parents. */ - items: Schema$ParentReference[]; + items?: Schema$ParentReference[]; /** * This is always drive#parentList. */ - kind: string; + kind?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * A reference to a file's parent. @@ -1132,23 +1135,23 @@ export namespace drive_v2 { /** * The ID of the parent. */ - id: string; + id?: string; /** * Whether or not the parent is the root folder. */ - isRoot: boolean; + isRoot?: boolean; /** * This is always drive#parentReference. */ - kind: string; + kind?: string; /** * A link to the parent. */ - parentLink: string; + parentLink?: string; /** * A link back to this reference. */ - selfLink: string; + selfLink?: string; } /** * A permission for a file. @@ -1158,32 +1161,32 @@ export namespace drive_v2 { * Additional roles for this user. Only commenter is currently allowed, * though more may be supported in the future. */ - additionalRoles: string[]; + additionalRoles?: string[]; /** * Deprecated. */ - authKey: string; + authKey?: string; /** * Whether the account associated with this permission has been deleted. * This field only pertains to user and group permissions. */ - deleted: boolean; + deleted?: boolean; /** * The domain name of the entity this permission refers to. This is an * output-only field which is present when the permission type is user, * group or domain. */ - domain: string; + domain?: string; /** * The email address of the user or group this permission refers to. This is * an output-only field which is present when the permission type is user or * group. */ - emailAddress: string; + emailAddress?: string; /** * The ETag of the permission. */ - etag: string; + etag?: string; /** * The time at which this permission will expire (RFC 3339 date-time). * Expiration dates have the following restrictions: - They can only be @@ -1191,7 +1194,7 @@ export namespace drive_v2 { * The date cannot be more than a year in the future - The date can only be * set on drive.permissions.update or drive.permissions.patch requests */ - expirationDate: string; + expirationDate?: string; /** * The ID of the user this permission refers to, and identical to the * permissionId in the About and Files resources. When making a @@ -1199,40 +1202,40 @@ export namespace drive_v2 { * must be specified unless the permission type is anyone, in which case * both id and value are ignored. */ - id: string; + id?: string; /** * This is always drive#permission. */ - kind: string; + kind?: string; /** * The name for this permission. */ - name: string; + name?: string; /** * A link to the profile photo, if available. */ - photoLink: string; + photoLink?: string; /** * The primary role for this user. While new values may be supported in the * future, the following are currently allowed: - organizer - owner - * reader - writer */ - role: string; + role?: string; /** * A link back to this permission. */ - selfLink: string; + selfLink?: string; /** * Details of whether the permissions on this Team Drive item are inherited * or directly on this item. This is an output-only field which is present * only for Team Drive items. */ - teamDrivePermissionDetails: any[]; + teamDrivePermissionDetails?: any[]; /** * The account type. Allowed values are: - user - group - domain - * anyone */ - type: string; + type?: string; /** * The email address or domain name for the entity. This is used during * inserts and is not populated in responses. When making a @@ -1240,11 +1243,11 @@ export namespace drive_v2 { * must be specified unless the permission type is anyone, in which case * both id and value are ignored. */ - value: string; + value?: string; /** * Whether the link is required for this permission. */ - withLink: boolean; + withLink?: boolean; } /** * An ID for a user or group as seen in Permission items. @@ -1253,11 +1256,11 @@ export namespace drive_v2 { /** * The permission ID. */ - id: string; + id?: string; /** * This is always drive#permissionId. */ - kind: string; + kind?: string; } /** * A list of permissions associated with a file. @@ -1266,26 +1269,26 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of permissions. */ - items: Schema$Permission[]; + items?: Schema$Permission[]; /** * This is always drive#permissionList. */ - kind: string; + kind?: string; /** * The page token for the next page of permissions. This field will be * absent if the end of the permissions list has been reached. If the token * is rejected for any reason, it should be discarded, and pagination should * be restarted from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } /** * A key-value pair attached to a file that is either public or private to an @@ -1298,28 +1301,28 @@ export namespace drive_v2 { /** * ETag of the property. */ - etag: string; + etag?: string; /** * The key of this property. */ - key: string; + key?: string; /** * This is always drive#property. */ - kind: string; + kind?: string; /** * The link back to this property. */ - selfLink: string; + selfLink?: string; /** * The value of this property. */ - value: string; + value?: string; /** * The visibility of this property. Allowed values are PRIVATE and PUBLIC. * (Default: PRIVATE) */ - visibility: string; + visibility?: string; } /** * A collection of properties, key-value pairs that are either public or @@ -1329,19 +1332,19 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of properties. */ - items: Schema$Property[]; + items?: Schema$Property[]; /** * This is always drive#propertyList. */ - kind: string; + kind?: string; /** * The link back to this list. */ - selfLink: string; + selfLink?: string; } /** * A revision of a file. @@ -1351,54 +1354,54 @@ export namespace drive_v2 { * Short term download URL for the file. This will only be populated on * files with content stored in Drive. */ - downloadUrl: string; + downloadUrl?: string; /** * The ETag of the revision. */ - etag: string; + etag?: string; /** * Links for exporting Google Docs to specific formats. */ - exportLinks: any; + exportLinks?: any; /** * The size of the revision in bytes. This will only be populated on files * with content stored in Drive. */ - fileSize: string; + fileSize?: string; /** * The ID of the revision. */ - id: string; + id?: string; /** * This is always drive#revision. */ - kind: string; + kind?: string; /** * The last user to modify this revision. */ - lastModifyingUser: Schema$User; + lastModifyingUser?: Schema$User; /** * Name of the last user to modify this revision. */ - lastModifyingUserName: string; + lastModifyingUserName?: string; /** * An MD5 checksum for the content of this revision. This will only be * populated on files with content stored in Drive. */ - md5Checksum: string; + md5Checksum?: string; /** * The MIME type of the revision. */ - mimeType: string; + mimeType?: string; /** * Last time this revision was modified (formatted RFC 3339 timestamp). */ - modifiedDate: string; + modifiedDate?: string; /** * The original filename when this revision was created. This will only be * populated on files with content stored in Drive. */ - originalFilename: string; + originalFilename?: string; /** * Whether this revision is pinned to prevent automatic purging. This will * only be populated and can only be modified on files with content stored @@ -1406,30 +1409,30 @@ export namespace drive_v2 { * they are created through the drive.files.insert/update/copy by using the * pinned query parameter. */ - pinned: boolean; + pinned?: boolean; /** * Whether subsequent revisions will be automatically republished. This is * only populated and can only be modified for Google Docs. */ - publishAuto: boolean; + publishAuto?: boolean; /** * Whether this revision is published. This is only populated and can only * be modified for Google Docs. */ - published: boolean; + published?: boolean; /** * A link to the published revision. */ - publishedLink: string; + publishedLink?: string; /** * Whether this revision is published outside the domain. This is only * populated and can only be modified for Google Docs. */ - publishedOutsideDomain: boolean; + publishedOutsideDomain?: boolean; /** * A link back to this revision. */ - selfLink: string; + selfLink?: string; } /** * A list of revisions of a file. @@ -1438,38 +1441,38 @@ export namespace drive_v2 { /** * The ETag of the list. */ - etag: string; + etag?: string; /** * The list of revisions. If nextPageToken is populated, then this list may * be incomplete and an additional page of results should be fetched. */ - items: Schema$Revision[]; + items?: Schema$Revision[]; /** * This is always drive#revisionList. */ - kind: string; + kind?: string; /** * The page token for the next page of revisions. This field will be absent * if the end of the revisions list has been reached. If the token is * rejected for any reason, it should be discarded and pagination should be * restarted from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * A link back to this list. */ - selfLink: string; + selfLink?: string; } export interface Schema$StartPageToken { /** * Identifies what kind of resource this is. Value: the fixed string * "drive#startPageToken". */ - kind: string; + kind?: string; /** * The starting page token for listing changes. */ - startPageToken: string; + startPageToken?: string; } /** * Representation of a Team Drive. @@ -1481,37 +1484,37 @@ export namespace drive_v2 { * drive.teamdrives.update requests that don't set themeId. When * specified, all fields of the backgroundImageFile must be set. */ - backgroundImageFile: any; + backgroundImageFile?: any; /** * A short-lived link to this Team Drive's background image. */ - backgroundImageLink: string; + backgroundImageLink?: string; /** * Capabilities the current user has on this Team Drive. */ - capabilities: any; + capabilities?: any; /** * The color of this Team Drive as an RGB hex string. It can only be set on * a drive.teamdrives.update request that does not set themeId. */ - colorRgb: string; + colorRgb?: string; /** * The time at which the Team Drive was created (RFC 3339 date-time). */ - createdDate: string; + createdDate?: string; /** * The ID of this Team Drive which is also the ID of the top level folder * for this Team Drive. */ - id: string; + id?: string; /** * This is always drive#teamDrive */ - kind: string; + kind?: string; /** * The name of this Team Drive. */ - name: string; + name?: string; /** * The ID of the theme from which the background image and color will be * set. The set of possible teamDriveThemes can be retrieved from a @@ -1520,7 +1523,7 @@ export namespace drive_v2 { * color are set. This is a write-only field; it can only be set on requests * that don't set colorRgb or backgroundImageFile. */ - themeId: string; + themeId?: string; } /** * A list of Team Drives. @@ -1529,15 +1532,15 @@ export namespace drive_v2 { /** * The list of Team Drives. */ - items: Schema$TeamDrive[]; + items?: Schema$TeamDrive[]; /** * This is always drive#teamDriveList */ - kind: string; + kind?: string; /** * The page token for the next page of Team Drives. */ - nextPageToken: string; + nextPageToken?: string; } /** * Information about a Drive user. @@ -1546,30 +1549,31 @@ export namespace drive_v2 { /** * A plain text displayable name for this user. */ - displayName: string; + displayName?: string; /** * The email address of the user. */ - emailAddress: string; + emailAddress?: string; /** * Whether this user is the same as the authenticated user for whom the * request was made. */ - isAuthenticatedUser: boolean; + isAuthenticatedUser?: boolean; /** * This is always drive#user. */ - kind: string; + kind?: string; /** * The user's ID as visible in the permissions collection. */ - permissionId: string; + permissionId?: string; /** * The user's profile picture. */ - picture: any; + picture?: any; } + export class Resource$About { root: Drive; constructor(root: Drive) { @@ -1597,23 +1601,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$About$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$About$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$About$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$About$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$About$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$About$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1635,6 +1649,31 @@ export namespace drive_v2 { } } + export interface Params$Resource$About$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to count changes outside the My Drive hierarchy. When set to + * false, changes to files such as those in the Application Data folder or + * shared files which have not been added to My Drive will be omitted from + * the maxChangeIdCount. + */ + includeSubscribed?: boolean; + /** + * Maximum number of remaining change IDs to count + */ + maxChangeIdCount?: string; + /** + * Change ID to start counting from when calculating number of remaining + * change IDs + */ + startChangeId?: string; + } + + export class Resource$Apps { root: Drive; constructor(root: Drive) { @@ -1659,21 +1698,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Apps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Apps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Apps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Apps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1710,25 +1761,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Apps$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Apps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Apps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Apps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Apps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Apps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1750,6 +1812,46 @@ export namespace drive_v2 { } } + export interface Params$Resource$Apps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the app. + */ + appId?: string; + } + export interface Params$Resource$Apps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A comma-separated list of file extensions for open with filtering. All + * apps within the given app query scope which can open any of the given + * file extensions will be included in the response. If appFilterMimeTypes + * are provided as well, the result is a union of the two resulting app + * lists. + */ + appFilterExtensions?: string; + /** + * A comma-separated list of MIME types for open with filtering. All apps + * within the given app query scope which can open any of the given MIME + * types will be included in the response. If appFilterExtensions are + * provided as well, the result is a union of the two resulting app lists. + */ + appFilterMimeTypes?: string; + /** + * A language or locale code, as defined by BCP 47, with some extensions + * from Unicode's LDML format (http://www.unicode.org/reports/tr35/). + */ + languageCode?: string; + } + + export class Resource$Changes { root: Drive; constructor(root: Drive) { @@ -1777,23 +1879,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Changes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Changes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Changes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Changes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1829,26 +1941,40 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getStartPageToken(params?: any, options?: MethodOptions): - AxiosPromise; getStartPageToken( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Changes$Getstartpagetoken, + options?: MethodOptions): AxiosPromise; + getStartPageToken( + params: Params$Resource$Changes$Getstartpagetoken, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getStartPageToken( + params: Params$Resource$Changes$Getstartpagetoken, + callback: BodyResponseCallback): void; + getStartPageToken(callback: BodyResponseCallback): + void; getStartPageToken( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Changes$Getstartpagetoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Changes$Getstartpagetoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Getstartpagetoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1892,26 +2018,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Changes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Changes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1956,25 +2093,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Changes$Watch, options?: MethodOptions): + AxiosPromise; + watch( + params: Params$Resource$Changes$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Changes$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1997,6 +2145,165 @@ export namespace drive_v2 { } } + export interface Params$Resource$Changes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the change. + */ + changeId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The Team Drive from which the change will be returned. + */ + teamDriveId?: string; + } + export interface Params$Resource$Changes$Getstartpagetoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The ID of the Team Drive for which the starting pageToken for listing + * future changes from that Team Drive will be returned. + */ + teamDriveId?: string; + } + export interface Params$Resource$Changes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether changes should include the file resource if the file is still + * accessible by the user at the time of the request, even when a file was + * removed from the list of changes and there will be no further change + * entries for this file. + */ + includeCorpusRemovals?: boolean; + /** + * Whether to include changes indicating that items have been removed from + * the list of changes, for example by deletion or loss of access. + */ + includeDeleted?: boolean; + /** + * Whether to include changes outside the My Drive hierarchy in the result. + * When set to false, changes to files such as those in the Application Data + * folder or shared files which have not been added to My Drive will be + * omitted from the result. + */ + includeSubscribed?: boolean; + /** + * Whether Team Drive files or changes should be included in results. + */ + includeTeamDriveItems?: boolean; + /** + * Maximum number of changes to return. + */ + maxResults?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response + * or to the response from the getStartPageToken method. + */ + pageToken?: string; + /** + * A comma-separated list of spaces to query. Supported values are 'drive', + * 'appDataFolder' and 'photos'. + */ + spaces?: string; + /** + * Deprecated - use pageToken instead. + */ + startChangeId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The Team Drive from which changes will be returned. If specified the + * change IDs will be reflective of the Team Drive; use the combined Team + * Drive ID and change ID as an identifier. + */ + teamDriveId?: string; + } + export interface Params$Resource$Changes$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether changes should include the file resource if the file is still + * accessible by the user at the time of the request, even when a file was + * removed from the list of changes and there will be no further change + * entries for this file. + */ + includeCorpusRemovals?: boolean; + /** + * Whether to include changes indicating that items have been removed from + * the list of changes, for example by deletion or loss of access. + */ + includeDeleted?: boolean; + /** + * Whether to include changes outside the My Drive hierarchy in the result. + * When set to false, changes to files such as those in the Application Data + * folder or shared files which have not been added to My Drive will be + * omitted from the result. + */ + includeSubscribed?: boolean; + /** + * Whether Team Drive files or changes should be included in results. + */ + includeTeamDriveItems?: boolean; + /** + * Maximum number of changes to return. + */ + maxResults?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response + * or to the response from the getStartPageToken method. + */ + pageToken?: string; + /** + * A comma-separated list of spaces to query. Supported values are 'drive', + * 'appDataFolder' and 'photos'. + */ + spaces?: string; + /** + * Deprecated - use pageToken instead. + */ + startChangeId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The Team Drive from which changes will be returned. If specified the + * change IDs will be reflective of the Team Drive; use the combined Team + * Drive ID and change ID as an identifier. + */ + teamDriveId?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Channels { root: Drive; constructor(root: Drive) { @@ -2021,22 +2328,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2059,6 +2379,14 @@ export namespace drive_v2 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Children { root: Drive; constructor(root: Drive) { @@ -2084,22 +2412,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Children$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Children$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Children$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Children$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Children$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Children$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2135,24 +2476,34 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Children$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Children$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Children$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Children$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Children$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Children$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2189,26 +2540,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Children$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Children$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Children$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Children$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Children$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Children$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2247,25 +2609,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Children$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Children$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Children$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Children$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Children$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Children$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2288,6 +2662,90 @@ export namespace drive_v2 { } } + export interface Params$Resource$Children$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the child. + */ + childId?: string; + /** + * The ID of the folder. + */ + folderId?: string; + } + export interface Params$Resource$Children$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the child. + */ + childId?: string; + /** + * The ID of the folder. + */ + folderId?: string; + } + export interface Params$Resource$Children$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the folder. + */ + folderId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Request body metadata + */ + resource?: Schema$ChildReference; + } + export interface Params$Resource$Children$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the folder. + */ + folderId?: string; + /** + * Maximum number of children to return. + */ + maxResults?: number; + /** + * A comma-separated list of sort keys. Valid keys are 'createdDate', + * 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', + * 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and 'title'. + * Each key sorts ascending by default, but may be reversed with the 'desc' + * modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please + * note that there is a current limitation for users with approximately one + * million files in which the requested sort order is ignored. + */ + orderBy?: string; + /** + * Page token for children. + */ + pageToken?: string; + /** + * Query string for searching children. + */ + q?: string; + } + + export class Resource$Comments { root: Drive; constructor(root: Drive) { @@ -2313,22 +2771,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Comments$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Comments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2365,23 +2836,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Comments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Comments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Comments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Comments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2417,25 +2898,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Comments$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Comments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2474,26 +2966,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2530,25 +3033,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Comments$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Comments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2585,25 +3099,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Comments$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Comments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2626,23 +3151,145 @@ export namespace drive_v2 { } } - export class Resource$Files { - root: Drive; - constructor(root: Drive) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Comments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * drive.files.copy - * @desc Creates a copy of the specified file. - * @alias drive.files.copy - * @memberOf! () + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + } + export interface Params$Resource$Comments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * If set, this will succeed when retrieving a deleted comment, and will + * include any deleted replies. + */ + includeDeleted?: boolean; + } + export interface Params$Resource$Comments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * If set, all comments and replies, including deleted comments and replies + * (with content stripped) will be returned. + */ + includeDeleted?: boolean; + /** + * The maximum number of discussions to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * The continuation token, used to page through large result sets. To get + * the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * Only discussions that were updated after this timestamp will be returned. + * Formatted as an RFC 3339 timestamp. + */ + updatedMin?: string; + } + export interface Params$Resource$Comments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + export interface Params$Resource$Comments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + + + export class Resource$Files { + root: Drive; + constructor(root: Drive) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * drive.files.copy + * @desc Creates a copy of the specified file. + * @alias drive.files.copy + * @memberOf! () * * @param {object} params Parameters for request * @param {boolean=} params.convert Whether to convert this file to the corresponding Google Docs format. @@ -2659,23 +3306,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copy(params?: any, options?: MethodOptions): AxiosPromise; + copy(params?: Params$Resource$Files$Copy, options?: MethodOptions): + AxiosPromise; + copy( + params: Params$Resource$Files$Copy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; copy( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Copy, + callback: BodyResponseCallback): void; + copy(callback: BodyResponseCallback): void; copy( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Copy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Copy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Copy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2713,22 +3373,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Files$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Files$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2762,22 +3435,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - emptyTrash(params?: any, options?: MethodOptions): AxiosPromise; emptyTrash( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Files$Emptytrash, + options?: MethodOptions): AxiosPromise; + emptyTrash( + params: Params$Resource$Files$Emptytrash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; emptyTrash( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Emptytrash, + callback: BodyResponseCallback): void; + emptyTrash(callback: BodyResponseCallback): void; + emptyTrash( + paramsOrCallback?: Params$Resource$Files$Emptytrash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Emptytrash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Emptytrash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2815,22 +3502,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): AxiosPromise; + export(params?: Params$Resource$Files$Export, options?: MethodOptions): + AxiosPromise; + export( + params: Params$Resource$Files$Export, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; export( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Export, + callback: BodyResponseCallback): void; + export(callback: BodyResponseCallback): void; export( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2867,26 +3567,39 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateIds(params?: any, options?: MethodOptions): - AxiosPromise; generateIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Files$Generateids, + options?: MethodOptions): AxiosPromise; + generateIds( + params: Params$Resource$Files$Generateids, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generateIds( + params: Params$Resource$Files$Generateids, + callback: BodyResponseCallback): void; + generateIds(callback: BodyResponseCallback): void; generateIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Generateids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Files$Generateids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Generateids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2926,21 +3639,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Files$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Files$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Files$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Files$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2987,23 +3712,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Files$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Files$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3049,25 +3787,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Files$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Files$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3117,23 +3866,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Files$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Files$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3169,23 +3931,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - touch(params?: any, options?: MethodOptions): AxiosPromise; + touch(params?: Params$Resource$Files$Touch, options?: MethodOptions): + AxiosPromise; + touch( + params: Params$Resource$Files$Touch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; touch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Touch, + callback: BodyResponseCallback): void; + touch(callback: BodyResponseCallback): void; touch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Touch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Touch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Touch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3222,23 +3997,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - trash(params?: any, options?: MethodOptions): AxiosPromise; + trash(params?: Params$Resource$Files$Trash, options?: MethodOptions): + AxiosPromise; trash( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Trash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; trash( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Trash, + callback: BodyResponseCallback): void; + trash(callback: BodyResponseCallback): void; + trash( + paramsOrCallback?: Params$Resource$Files$Trash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Trash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Trash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3274,23 +4062,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - untrash(params?: any, options?: MethodOptions): AxiosPromise; + untrash(params?: Params$Resource$Files$Untrash, options?: MethodOptions): + AxiosPromise; + untrash( + params: Params$Resource$Files$Untrash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; untrash( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Untrash, + callback: BodyResponseCallback): void; + untrash(callback: BodyResponseCallback): void; untrash( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Untrash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Untrash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Untrash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3343,23 +4144,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Files$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Files$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3402,25 +4216,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Files$Watch, options?: MethodOptions): + AxiosPromise; + watch( + params: Params$Resource$Files$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3443,100 +4268,656 @@ export namespace drive_v2 { } } - export class Resource$Parents { - root: Drive; - constructor(root: Drive) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Files$Copy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Whether to convert this file to the corresponding Google Docs format. + */ + convert?: boolean; + /** + * The ID of the file to copy. + */ + fileId?: string; + /** + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + */ + ocr?: boolean; + /** + * If ocr is true, hints at the language to use. Valid values are BCP 47 + * codes. + */ + ocrLanguage?: string; + /** + * Whether to pin the head revision of the new copy. A file can have a + * maximum of 200 pinned revisions. + */ + pinned?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The language of the timed text. + */ + timedTextLanguage?: string; + /** + * The timed text track name. + */ + timedTextTrackName?: string; + /** + * The visibility of the new file. This parameter is only relevant when the + * source is not a native Google Doc and convert=false. + */ + visibility?: string; + /** + * Request body metadata + */ + resource?: Schema$File; + } + export interface Params$Resource$Files$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * drive.parents.delete - * @desc Removes a parent from a file. - * @alias drive.parents.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.fileId The ID of the file. - * @param {string} params.parentId The ID of the parent. - * @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 + * The ID of the file to delete. */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + '/drive/v2/files/{fileId}/parents/{parentId}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['fileId', 'parentId'], - pathParams: ['fileId', 'parentId'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + } + export interface Params$Resource$Files$Emptytrash { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Files$Export { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The MIME type of the format requested for this export. + */ + mimeType?: string; + } + export interface Params$Resource$Files$Generateids { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * drive.parents.get - * @desc Gets a specific parent reference. - * @alias drive.parents.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.fileId The ID of the file. - * @param {string} params.parentId The ID of the parent. - * @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 + * Maximum number of IDs to return. */ - get(params?: any, - options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + maxResults?: number; + /** + * The space in which the IDs can be used to create new files. Supported + * values are 'drive' and 'appDataFolder'. + */ + space?: string; + } + export interface Params$Resource$Files$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the user is acknowledging the risk of downloading known malware + * or other abusive files. + */ + acknowledgeAbuse?: boolean; + /** + * The ID for the file in question. + */ + fileId?: string; + /** + * This parameter is deprecated and has no function. + */ + projection?: string; + /** + * Specifies the Revision ID that should be downloaded. Ignored unless + * alt=media is specified. + */ + revisionId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Deprecated: Use files.update with modifiedDateBehavior=noChange, + * updateViewedDate=true and an empty request body. + */ + updateViewedDate?: boolean; + } + export interface Params$Resource$Files$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to convert this file to the corresponding Google Docs format. + */ + convert?: boolean; + /** + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + */ + ocr?: boolean; + /** + * If ocr is true, hints at the language to use. Valid values are BCP 47 + * codes. + */ + ocrLanguage?: string; + /** + * Whether to pin the head revision of the uploaded file. A file can have a + * maximum of 200 pinned revisions. + */ + pinned?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The language of the timed text. + */ + timedTextLanguage?: string; + /** + * The timed text track name. + */ + timedTextTrackName?: string; + /** + * Whether to use the content as indexable text. + */ + useContentAsIndexableText?: boolean; + /** + * The visibility of the new file. This parameter is only relevant when + * convert=false. + */ + visibility?: string; + /** + * Request body metadata + */ + resource?: Schema$File; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Files$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Comma-separated list of bodies of items (files/documents) to which the + * query applies. Supported bodies are 'default', 'domain', 'teamDrive' and + * 'allTeamDrives'. 'allTeamDrives' must be combined with 'default'; all + * other values must be used in isolation. Prefer 'default' or 'teamDrive' + * to 'allTeamDrives' for efficiency. + */ + corpora?: string; + /** + * The body of items (files/documents) to which the query applies. + * Deprecated: use 'corpora' instead. + */ + corpus?: string; + /** + * Whether Team Drive items should be included in results. + */ + includeTeamDriveItems?: boolean; + /** + * The maximum number of files to return per page. Partial or empty result + * pages are possible even before the end of the files list has been + * reached. + */ + maxResults?: number; + /** + * A comma-separated list of sort keys. Valid keys are 'createdDate', + * 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', + * 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', 'title', and + * 'title_natural'. Each key sorts ascending by default, but may be reversed + * with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate + * desc,title. Please note that there is a current limitation for users with + * approximately one million files in which the requested sort order is + * ignored. + */ + orderBy?: string; + /** + * Page token for files. + */ + pageToken?: string; + /** + * This parameter is deprecated and has no function. + */ + projection?: string; + /** + * Query string for searching files. + */ + q?: string; + /** + * A comma-separated list of spaces to query. Supported values are 'drive', + * 'appDataFolder' and 'photos'. + */ + spaces?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * ID of Team Drive to search. + */ + teamDriveId?: string; + } + export interface Params$Resource$Files$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Comma-separated list of parent IDs to add. + */ + addParents?: string; + /** + * This parameter is deprecated and has no function. + */ + convert?: boolean; + /** + * The ID of the file to update. + */ + fileId?: string; + /** + * Determines the behavior in which modifiedDate is updated. This overrides + * setModifiedDate. + */ + modifiedDateBehavior?: string; + /** + * Whether a blob upload should create a new revision. If false, the blob + * data in the current head revision is replaced. If true or not set, a new + * blob is created as head revision, and previous unpinned revisions are + * preserved for a short period of time. Pinned revisions are stored + * indefinitely, using additional storage quota, up to a maximum of 200 + * revisions. For details on how revisions are retained, see the Drive Help + * Center. + */ + newRevision?: boolean; + /** + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + */ + ocr?: boolean; + /** + * If ocr is true, hints at the language to use. Valid values are BCP 47 + * codes. + */ + ocrLanguage?: string; + /** + * Whether to pin the new revision. A file can have a maximum of 200 pinned + * revisions. + */ + pinned?: boolean; + /** + * Comma-separated list of parent IDs to remove. + */ + removeParents?: string; + /** + * Whether to set the modified date using the value supplied in the request + * body. Setting this field to true is equivalent to + * modifiedDateBehavior=fromBodyOrNow, and false is equivalent to + * modifiedDateBehavior=now. To prevent any changes to the modified date set + * modifiedDateBehavior=noChange. + */ + setModifiedDate?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The language of the timed text. + */ + timedTextLanguage?: string; + /** + * The timed text track name. + */ + timedTextTrackName?: string; + /** + * Whether to update the view date after successfully updating the file. + */ + updateViewedDate?: boolean; + /** + * Whether to use the content as indexable text. + */ + useContentAsIndexableText?: boolean; + /** + * Request body metadata + */ + resource?: Schema$File; + } + export interface Params$Resource$Files$Touch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file to update. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + } + export interface Params$Resource$Files$Trash { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file to trash. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + } + export interface Params$Resource$Files$Untrash { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file to untrash. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + } + export interface Params$Resource$Files$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Comma-separated list of parent IDs to add. + */ + addParents?: string; + /** + * This parameter is deprecated and has no function. + */ + convert?: boolean; + /** + * The ID of the file to update. + */ + fileId?: string; + /** + * Determines the behavior in which modifiedDate is updated. This overrides + * setModifiedDate. + */ + modifiedDateBehavior?: string; + /** + * Whether a blob upload should create a new revision. If false, the blob + * data in the current head revision is replaced. If true or not set, a new + * blob is created as head revision, and previous unpinned revisions are + * preserved for a short period of time. Pinned revisions are stored + * indefinitely, using additional storage quota, up to a maximum of 200 + * revisions. For details on how revisions are retained, see the Drive Help + * Center. + */ + newRevision?: boolean; + /** + * Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads. + */ + ocr?: boolean; + /** + * If ocr is true, hints at the language to use. Valid values are BCP 47 + * codes. + */ + ocrLanguage?: string; + /** + * Whether to pin the new revision. A file can have a maximum of 200 pinned + * revisions. + */ + pinned?: boolean; + /** + * Comma-separated list of parent IDs to remove. + */ + removeParents?: string; + /** + * Whether to set the modified date using the value supplied in the request + * body. Setting this field to true is equivalent to + * modifiedDateBehavior=fromBodyOrNow, and false is equivalent to + * modifiedDateBehavior=now. To prevent any changes to the modified date set + * modifiedDateBehavior=noChange. + */ + setModifiedDate?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The language of the timed text. + */ + timedTextLanguage?: string; + /** + * The timed text track name. + */ + timedTextTrackName?: string; + /** + * Whether to update the view date after successfully updating the file. + */ + updateViewedDate?: boolean; + /** + * Whether to use the content as indexable text. + */ + useContentAsIndexableText?: boolean; + /** + * Request body metadata + */ + resource?: Schema$File; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Files$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the user is acknowledging the risk of downloading known malware + * or other abusive files. + */ + acknowledgeAbuse?: boolean; + /** + * The ID for the file in question. + */ + fileId?: string; + /** + * This parameter is deprecated and has no function. + */ + projection?: string; + /** + * Specifies the Revision ID that should be downloaded. Ignored unless + * alt=media is specified. + */ + revisionId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Deprecated: Use files.update with modifiedDateBehavior=noChange, + * updateViewedDate=true and an empty request body. + */ + updateViewedDate?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + + export class Resource$Parents { + root: Drive; + constructor(root: Drive) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * drive.parents.delete + * @desc Removes a parent from a file. + * @alias drive.parents.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.fileId The ID of the file. + * @param {string} params.parentId The ID of the parent. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete(params?: Params$Resource$Parents$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Parents$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Parents$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Parents$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Parents$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Parents$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * drive.parents.get + * @desc Gets a specific parent reference. + * @alias drive.parents.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.fileId The ID of the file. + * @param {string} params.parentId The ID of the parent. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Parents$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Parents$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Parents$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Parents$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Parents$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Parents$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3573,26 +4954,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Parents$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Parents$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Parents$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Parents$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Parents$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Parents$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3627,26 +5019,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Parents$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Parents$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Parents$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Parents$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Parents$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Parents$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3669,6 +5072,68 @@ export namespace drive_v2 { } } + export interface Params$Resource$Parents$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the parent. + */ + parentId?: string; + } + export interface Params$Resource$Parents$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the parent. + */ + parentId?: string; + } + export interface Params$Resource$Parents$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Request body metadata + */ + resource?: Schema$ParentReference; + } + export interface Params$Resource$Parents$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + } + + export class Resource$Permissions { root: Drive; constructor(root: Drive) { @@ -3696,22 +5161,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Permissions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Permissions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Permissions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3750,23 +5230,34 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Permissions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Permissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Permissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Permissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Permissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3802,26 +5293,39 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIdForEmail(params?: any, options?: MethodOptions): - AxiosPromise; getIdForEmail( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Getidforemail, + options?: MethodOptions): AxiosPromise; + getIdForEmail( + params: Params$Resource$Permissions$Getidforemail, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIdForEmail( + params: Params$Resource$Permissions$Getidforemail, + callback: BodyResponseCallback): void; + getIdForEmail(callback: BodyResponseCallback): void; getIdForEmail( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Permissions$Getidforemail| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Getidforemail; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Getidforemail; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3861,26 +5365,39 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Permissions$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Permissions$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Permissions$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3919,26 +5436,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Permissions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Permissions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Permissions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Permissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Permissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3979,26 +5507,38 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Permissions$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Permissions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Permissions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Permissions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4040,26 +5580,39 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Permissions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Permissions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Permissions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4083,6 +5636,211 @@ export namespace drive_v2 { } } + export interface Params$Resource$Permissions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file or Team Drive. + */ + fileId?: string; + /** + * The ID for the permission. + */ + permissionId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Permissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file or Team Drive. + */ + fileId?: string; + /** + * The ID for the permission. + */ + permissionId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Permissions$Getidforemail { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The email address for which to return a permission ID + */ + email?: string; + } + export interface Params$Resource$Permissions$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A plain text custom message to include in notification emails. + */ + emailMessage?: string; + /** + * The ID for the file or Team Drive. + */ + fileId?: string; + /** + * Whether to send notification emails when sharing to users or groups. This + * parameter is ignored and an email is sent if the role is owner. + */ + sendNotificationEmails?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Permission; + } + export interface Params$Resource$Permissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file or Team Drive. + */ + fileId?: string; + /** + * The maximum number of permissions to return per page. When not set for + * files in a Team Drive, at most 100 results will be returned. When not set + * for files that are not in a Team Drive, the entire list will be returned. + */ + maxResults?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response. + */ + pageToken?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Permissions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file or Team Drive. + */ + fileId?: string; + /** + * The ID for the permission. + */ + permissionId?: string; + /** + * Whether to remove the expiration date. + */ + removeExpiration?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether changing a role to 'owner' downgrades the current owners to + * writers. Does nothing if the specified role is not 'owner'. + */ + transferOwnership?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Permission; + } + export interface Params$Resource$Permissions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file or Team Drive. + */ + fileId?: string; + /** + * The ID for the permission. + */ + permissionId?: string; + /** + * Whether to remove the expiration date. + */ + removeExpiration?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether changing a role to 'owner' downgrades the current owners to + * writers. Does nothing if the specified role is not 'owner'. + */ + transferOwnership?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Permission; + } + + export class Resource$Properties { root: Drive; constructor(root: Drive) { @@ -4109,22 +5867,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Properties$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Properties$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Properties$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Properties$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Properties$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Properties$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4162,23 +5934,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Properties$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Properties$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Properties$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Properties$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Properties$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Properties$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4215,26 +5997,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Properties$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Properties$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Properties$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Properties$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Properties$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Properties$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4269,26 +6062,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Properties$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Properties$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Properties$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Properties$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Properties$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Properties$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4313,7 +6117,7 @@ export namespace drive_v2 { /** * drive.properties.patch - * @desc Updates a property. This method supports patch semantics. + * @desc Updates a property. * @alias drive.properties.patch * @memberOf! () * @@ -4326,25 +6130,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Properties$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Properties$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Properties$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Properties$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Properties$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Properties$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4383,26 +6198,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Properties$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Properties$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Properties$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Properties$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Properties$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Properties$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4426,6 +6252,120 @@ export namespace drive_v2 { } } + export interface Params$Resource$Properties$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The key of the property. + */ + propertyKey?: string; + /** + * The visibility of the property. + */ + visibility?: string; + } + export interface Params$Resource$Properties$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The key of the property. + */ + propertyKey?: string; + /** + * The visibility of the property. + */ + visibility?: string; + } + export interface Params$Resource$Properties$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Property; + } + export interface Params$Resource$Properties$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + } + export interface Params$Resource$Properties$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The key of the property. + */ + propertyKey?: string; + /** + * The visibility of the property. Allowed values are PRIVATE and PUBLIC. + * (Default: PRIVATE) + */ + visibility?: string; + /** + * Request body metadata + */ + resource?: Schema$Property; + } + export interface Params$Resource$Properties$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The key of the property. + */ + propertyKey?: string; + /** + * The visibility of the property. Allowed values are PRIVATE and PUBLIC. + * (Default: PRIVATE) + */ + visibility?: string; + /** + * Request body metadata + */ + resource?: Schema$Property; + } + + export class Resource$Realtime { root: Drive; constructor(root: Drive) { @@ -4452,20 +6392,32 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Realtime$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Realtime$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Realtime$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Realtime$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Realtime$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Realtime$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4505,22 +6457,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Realtime$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Realtime$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Realtime$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Realtime$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Realtime$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Realtime$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4545,6 +6510,58 @@ export namespace drive_v2 { } } + export interface Params$Resource$Realtime$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file that the Realtime API data model is associated with. + */ + fileId?: string; + /** + * The revision of the Realtime API data model to export. Revisions start at + * 1 (the initial empty data model) and are incremented with each change. If + * this parameter is excluded, the most recent data model will be returned. + */ + revision?: number; + } + export interface Params$Resource$Realtime$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The revision of the model to diff the uploaded model against. If set, the + * uploaded model is diffed against the provided revision and those + * differences are merged with any changes made to the model after the + * provided revision. If not set, the uploaded model replaces the current + * model on the server. + */ + baseRevision?: string; + /** + * The ID of the file that the Realtime API data model is associated with. + */ + fileId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Replies { root: Drive; constructor(root: Drive) { @@ -4571,22 +6588,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Replies$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Replies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Replies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4626,24 +6656,34 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Replies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Replies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Replies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Replies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4682,26 +6722,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Replies$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Replies$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Replies$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4741,26 +6792,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Replies$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Replies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Replies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4799,26 +6861,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Replies$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Replies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Replies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4858,26 +6931,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Replies$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Replies$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Replies$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4902,6 +6986,146 @@ export namespace drive_v2 { } } + export interface Params$Resource$Replies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the reply. + */ + replyId?: string; + } + export interface Params$Resource$Replies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * If set, this will succeed when retrieving a deleted reply. + */ + includeDeleted?: boolean; + /** + * The ID of the reply. + */ + replyId?: string; + } + export interface Params$Resource$Replies$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$CommentReply; + } + export interface Params$Resource$Replies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * If set, all replies, including deleted replies (with content stripped) + * will be returned. + */ + includeDeleted?: boolean; + /** + * The maximum number of replies to include in the response, used for + * paging. + */ + maxResults?: number; + /** + * The continuation token, used to page through large result sets. To get + * the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$Replies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the reply. + */ + replyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CommentReply; + } + export interface Params$Resource$Replies$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the reply. + */ + replyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CommentReply; + } + + export class Resource$Revisions { root: Drive; constructor(root: Drive) { @@ -4927,22 +7151,35 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Revisions$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Revisions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Revisions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4978,23 +7215,33 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Revisions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Revisions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Revisions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Revisions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5031,26 +7278,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Revisions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Revisions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Revisions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5087,25 +7345,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Revisions$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Revisions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Revisions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5142,26 +7411,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Revisions$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Revisions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Revisions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5184,6 +7463,96 @@ export namespace drive_v2 { } } + export interface Params$Resource$Revisions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the revision. + */ + revisionId?: string; + } + export interface Params$Resource$Revisions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the revision. + */ + revisionId?: string; + } + export interface Params$Resource$Revisions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Maximum number of revisions to return. + */ + maxResults?: number; + /** + * Page token for revisions. To get the next page of results, set this + * parameter to the value of "nextPageToken" from the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$Revisions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file. + */ + fileId?: string; + /** + * The ID for the revision. + */ + revisionId?: string; + /** + * Request body metadata + */ + resource?: Schema$Revision; + } + export interface Params$Resource$Revisions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID for the file. + */ + fileId?: string; + /** + * The ID for the revision. + */ + revisionId?: string; + /** + * Request body metadata + */ + resource?: Schema$Revision; + } + + export class Resource$Teamdrives { root: Drive; constructor(root: Drive) { @@ -5209,22 +7578,36 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Teamdrives$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Teamdrives$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Teamdrives$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Teamdrives$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5260,23 +7643,34 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Teamdrives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Teamdrives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Teamdrives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Teamdrives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Teamdrives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5312,26 +7706,38 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Teamdrives$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Teamdrives$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Teamdrives$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Teamdrives$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5369,26 +7775,37 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Teamdrives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Teamdrives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Teamdrives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Teamdrives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5424,26 +7841,38 @@ export namespace drive_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Teamdrives$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Teamdrives$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Teamdrives$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Teamdrives$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5465,4 +7894,93 @@ export namespace drive_v2 { } } } + + export interface Params$Resource$Teamdrives$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Team Drive + */ + teamDriveId?: string; + } + export interface Params$Resource$Teamdrives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Team Drive + */ + teamDriveId?: string; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the Team Drive + * belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Teamdrives$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An ID, such as a random UUID, which uniquely identifies this user's + * request for idempotent creation of a Team Drive. A repeated request by + * the same user and with the same request ID will avoid creating duplicates + * by attempting to create the same Team Drive. If the Team Drive already + * exists a 409 error will be returned. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TeamDrive; + } + export interface Params$Resource$Teamdrives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of Team Drives to return. + */ + maxResults?: number; + /** + * Page token for Team Drives. + */ + pageToken?: string; + /** + * Query string for searching Team Drives. + */ + q?: string; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then all Team Drives of the domain in + * which the requester is an administrator are returned. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Teamdrives$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Team Drive + */ + teamDriveId?: string; + /** + * Request body metadata + */ + resource?: Schema$TeamDrive; + } } diff --git a/src/apis/drive/v3.ts b/src/apis/drive/v3.ts index 677d65252f2..09591316f4a 100644 --- a/src/apis/drive/v3.ts +++ b/src/apis/drive/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace drive_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Drive API * @@ -89,49 +92,49 @@ export namespace drive_v3 { /** * Whether the user has installed the requesting app. */ - appInstalled: boolean; + appInstalled?: boolean; /** * Whether the user can create Team Drives. */ - canCreateTeamDrives: boolean; + canCreateTeamDrives?: boolean; /** * A map of source MIME type to possible targets for all supported exports. */ - exportFormats: any; + exportFormats?: any; /** * The currently supported folder colors as RGB hex strings. */ - folderColorPalette: string[]; + folderColorPalette?: string[]; /** * A map of source MIME type to possible targets for all supported imports. */ - importFormats: any; + importFormats?: any; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#about". */ - kind: string; + kind?: string; /** * A map of maximum import sizes by MIME type, in bytes. */ - maxImportSizes: any; + maxImportSizes?: any; /** * The maximum upload size in bytes. */ - maxUploadSize: string; + maxUploadSize?: string; /** * The user's storage quota limits and usage. All fields are measured in * bytes. */ - storageQuota: any; + storageQuota?: any; /** * A list of themes that are supported for Team Drives. */ - teamDriveThemes: any[]; + teamDriveThemes?: any[]; /** * The authenticated user. */ - user: Schema$User; + user?: Schema$User; } /** * A change to a file or Team Drive. @@ -141,39 +144,39 @@ export namespace drive_v3 { * The updated state of the file. Present if the type is file and the file * has not been removed from this list of changes. */ - file: Schema$File; + file?: Schema$File; /** * The ID of the file which has changed. */ - fileId: string; + fileId?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#change". */ - kind: string; + kind?: string; /** * Whether the file or Team Drive has been removed from this list of * changes, for example by deletion or loss of access. */ - removed: boolean; + removed?: boolean; /** * The updated state of the Team Drive. Present if the type is teamDrive, * the user is still a member of the Team Drive, and the Team Drive has not * been removed. */ - teamDrive: Schema$TeamDrive; + teamDrive?: Schema$TeamDrive; /** * The ID of the Team Drive associated with this change. */ - teamDriveId: string; + teamDriveId?: string; /** * The time of this change (RFC 3339 date-time). */ - time: string; + time?: string; /** * The type of the change. Possible values are file and teamDrive. */ - type: string; + type?: string; } /** * A list of changes for a user. @@ -183,24 +186,24 @@ export namespace drive_v3 { * The list of changes. If nextPageToken is populated, then this list may be * incomplete and an additional page of results should be fetched. */ - changes: Schema$Change[]; + changes?: Schema$Change[]; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#changeList". */ - kind: string; + kind?: string; /** * The starting page token for future changes. This will be present only if * the end of the current changes list has been reached. */ - newStartPageToken: string; + newStartPageToken?: string; /** * The page token for the next page of changes. This will be absent if the * end of the changes list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * An notification channel used to watch for resource changes. @@ -209,47 +212,47 @@ export namespace drive_v3 { /** * The address where notifications are delivered for this channel. */ - address: string; + address?: string; /** * Date and time of notification channel expiration, expressed as a Unix * timestamp, in milliseconds. Optional. */ - expiration: string; + expiration?: string; /** * A UUID or similar unique string that identifies this channel. */ - id: string; + id?: string; /** * Identifies this as a notification channel used to watch for changes to a * resource. Value: the fixed string "api#channel". */ - kind: string; + kind?: string; /** * Additional parameters controlling delivery channel behavior. Optional. */ - params: any; + params?: any; /** * A Boolean value to indicate whether payload is wanted. Optional. */ - payload: boolean; + payload?: boolean; /** * An opaque ID that identifies the resource being watched on this channel. * Stable across different API versions. */ - resourceId: string; + resourceId?: string; /** * A version-specific identifier for the watched resource. */ - resourceUri: string; + resourceUri?: string; /** * An arbitrary string delivered to the target address with each * notification delivered over this channel. Optional. */ - token: string; + token?: string; /** * The type of delivery mechanism used for this channel. */ - type: string; + type?: string; } /** * A comment on a file. @@ -260,56 +263,56 @@ export namespace drive_v3 { * documentation for details on how to define and interpret anchor * properties. */ - anchor: string; + anchor?: string; /** * The user who created the comment. */ - author: Schema$User; + author?: Schema$User; /** * The plain text content of the comment. This field is used for setting the * content, while htmlContent should be displayed. */ - content: string; + content?: string; /** * The time at which the comment was created (RFC 3339 date-time). */ - createdTime: string; + createdTime?: string; /** * Whether the comment has been deleted. A deleted comment has no content. */ - deleted: boolean; + deleted?: boolean; /** * The content of the comment with HTML formatting. */ - htmlContent: string; + htmlContent?: string; /** * The ID of the comment. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#comment". */ - kind: string; + kind?: string; /** * The last time the comment or any of its replies was modified (RFC 3339 * date-time). */ - modifiedTime: string; + modifiedTime?: string; /** * The file content to which the comment refers, typically within the anchor * region. For a text file, for example, this would be the text at the * location of the comment. */ - quotedFileContent: any; + quotedFileContent?: any; /** * The full list of replies to the comment in chronological order. */ - replies: Schema$Reply[]; + replies?: Schema$Reply[]; /** * Whether the comment has been resolved by one of its replies. */ - resolved: boolean; + resolved?: boolean; } /** * A list of comments on a file. @@ -319,19 +322,19 @@ export namespace drive_v3 { * The list of comments. If nextPageToken is populated, then this list may * be incomplete and an additional page of results should be fetched. */ - comments: Schema$Comment[]; + comments?: Schema$Comment[]; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#commentList". */ - kind: string; + kind?: string; /** * The page token for the next page of comments. This will be absent if the * end of the comments list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The metadata for a file. @@ -342,42 +345,42 @@ export namespace drive_v3 { * requesting app. Entries with null values are cleared in update and copy * requests. */ - appProperties: any; + appProperties?: any; /** * Capabilities the current user has on this file. Each capability * corresponds to a fine-grained action that a user may take. */ - capabilities: any; + capabilities?: any; /** * Additional information about the content of the file. These fields are * never populated in responses. */ - contentHints: any; + contentHints?: any; /** * The time at which the file was created (RFC 3339 date-time). */ - createdTime: string; + createdTime?: string; /** * A short description of the file. */ - description: string; + description?: string; /** * Whether the file has been explicitly trashed, as opposed to recursively * trashed from a parent folder. */ - explicitlyTrashed: boolean; + explicitlyTrashed?: boolean; /** * The final component of fullFileExtension. This is only available for * files with binary content in Drive. */ - fileExtension: string; + fileExtension?: string; /** * The color for a folder as an RGB hex string. The supported colors are * published in the folderColorPalette field of the About resource. If an * unsupported color is specified, the closest color in the palette will be * used instead. */ - folderColorRgb: string; + folderColorRgb?: string; /** * The full file extension extracted from the name field. May contain * multiple concatenated extensions, such as "tar.gz". This is @@ -385,53 +388,53 @@ export namespace drive_v3 { * automatically updated when the name field changes, however it is not * cleared if the new name does not contain a valid extension. */ - fullFileExtension: string; + fullFileExtension?: string; /** * Whether any users are granted file access directly on this file. This * field is only populated for Team Drive files. */ - hasAugmentedPermissions: boolean; + hasAugmentedPermissions?: boolean; /** * Whether this file has a thumbnail. This does not indicate whether the * requesting app has access to the thumbnail. To check access, look for the * presence of the thumbnailLink field. */ - hasThumbnail: boolean; + hasThumbnail?: boolean; /** * The ID of the file's head revision. This is currently only available * for files with binary content in Drive. */ - headRevisionId: string; + headRevisionId?: string; /** * A static, unauthenticated link to the file's icon. */ - iconLink: string; + iconLink?: string; /** * The ID of the file. */ - id: string; + id?: string; /** * Additional metadata about image media, if available. */ - imageMediaMetadata: any; + imageMediaMetadata?: any; /** * Whether the file was created or opened by the requesting app. */ - isAppAuthorized: boolean; + isAppAuthorized?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#file". */ - kind: string; + kind?: string; /** * The last user to modify the file. */ - lastModifyingUser: Schema$User; + lastModifyingUser?: Schema$User; /** * The MD5 checksum for the content of the file. This is only applicable to * files with binary content in Drive. */ - md5Checksum: string; + md5Checksum?: string; /** * The MIME type of the file. Drive will attempt to automatically detect an * appropriate value from uploaded content if no value is provided. The @@ -440,42 +443,42 @@ export namespace drive_v3 { * imported if possible. The supported import formats are published in the * About resource. */ - mimeType: string; + mimeType?: string; /** * Whether the file has been modified by this user. */ - modifiedByMe: boolean; + modifiedByMe?: boolean; /** * The last time the file was modified by the user (RFC 3339 date-time). */ - modifiedByMeTime: string; + modifiedByMeTime?: string; /** * The last time the file was modified by anyone (RFC 3339 date-time). Note * that setting modifiedTime will also update modifiedByMeTime for the user. */ - modifiedTime: string; + modifiedTime?: string; /** * The name of the file. This is not necessarily unique within a folder. * Note that for immutable items such as the top level folders of Team * Drives, My Drive root folder, and Application Data folder the name is * constant. */ - name: string; + name?: string; /** * The original filename of the uploaded content if available, or else the * original value of the name field. This is only available for files with * binary content in Drive. */ - originalFilename: string; + originalFilename?: string; /** * Whether the user owns the file. Not populated for Team Drive files. */ - ownedByMe: boolean; + ownedByMe?: boolean; /** * The owners of the file. Currently, only certain legacy files may have * more than one owner. Not populated for Team Drive files. */ - owners: Schema$User[]; + owners?: Schema$User[]; /** * The IDs of the parent folders which contain the file. If not specified as * part of a create request, the file will be placed directly in the @@ -484,122 +487,122 @@ export namespace drive_v3 { * requests must use the addParents and removeParents parameters to modify * the parents list. */ - parents: string[]; + parents?: string[]; /** * List of permission IDs for users with access to this file. */ - permissionIds: string[]; + permissionIds?: string[]; /** * The full list of permissions for the file. This is only available if the * requesting user can share the file. Not populated for Team Drive files. */ - permissions: Schema$Permission[]; + permissions?: Schema$Permission[]; /** * A collection of arbitrary key-value pairs which are visible to all apps. * Entries with null values are cleared in update and copy requests. */ - properties: any; + properties?: any; /** * The number of storage quota bytes used by the file. This includes the * head revision as well as previous revisions with keepForever enabled. */ - quotaBytesUsed: string; + quotaBytesUsed?: string; /** * Whether the file has been shared. Not populated for Team Drive files. */ - shared: boolean; + shared?: boolean; /** * The time at which the file was shared with the user, if applicable (RFC * 3339 date-time). */ - sharedWithMeTime: string; + sharedWithMeTime?: string; /** * The user who shared the file with the requesting user, if applicable. */ - sharingUser: Schema$User; + sharingUser?: Schema$User; /** * The size of the file's content in bytes. This is only applicable to * files with binary content in Drive. */ - size: string; + size?: string; /** * The list of spaces which contain the file. The currently supported values * are 'drive', 'appDataFolder' and 'photos'. */ - spaces: string[]; + spaces?: string[]; /** * Whether the user has starred the file. */ - starred: boolean; + starred?: boolean; /** * ID of the Team Drive the file resides in. */ - teamDriveId: string; + teamDriveId?: string; /** * A short-lived link to the file's thumbnail, if available. Typically * lasts on the order of hours. Only populated when the requesting app can * access the file's content. */ - thumbnailLink: string; + thumbnailLink?: string; /** * The thumbnail version for use in thumbnail cache invalidation. */ - thumbnailVersion: string; + thumbnailVersion?: string; /** * Whether the file has been trashed, either explicitly or from a trashed * parent folder. Only the owner may trash a file, and other users cannot * see files in the owner's trash. */ - trashed: boolean; + trashed?: boolean; /** * The time that the item was trashed (RFC 3339 date-time). Only populated * for Team Drive files. */ - trashedTime: string; + trashedTime?: string; /** * If the file has been explicitly trashed, the user who trashed it. Only * populated for Team Drive files. */ - trashingUser: Schema$User; + trashingUser?: Schema$User; /** * A monotonically increasing version number for the file. This reflects * every change made to the file on the server, even those not visible to * the user. */ - version: string; + version?: string; /** * Additional metadata about video media. This may not be available * immediately upon upload. */ - videoMediaMetadata: any; + videoMediaMetadata?: any; /** * Whether the file has been viewed by this user. */ - viewedByMe: boolean; + viewedByMe?: boolean; /** * The last time the file was viewed by the user (RFC 3339 date-time). */ - viewedByMeTime: string; + viewedByMeTime?: string; /** * Whether users with only reader or commenter permission can copy the * file's content. This affects copy, download, and print operations. */ - viewersCanCopyContent: boolean; + viewersCanCopyContent?: boolean; /** * A link for downloading the content of the file in a browser. This is only * available for files with binary content in Drive. */ - webContentLink: string; + webContentLink?: string; /** * A link for opening the file in a relevant Google editor or viewer in a * browser. */ - webViewLink: string; + webViewLink?: string; /** * Whether users with only writer permission can modify the file's * permissions. Not populated for Team Drive files. */ - writersCanShare: boolean; + writersCanShare?: boolean; } /** * A list of files. @@ -609,7 +612,7 @@ export namespace drive_v3 { * The list of files. If nextPageToken is populated, then this list may be * incomplete and an additional page of results should be fetched. */ - files: Schema$File[]; + files?: Schema$File[]; /** * Whether the search process was incomplete. If true, then some search * results may be missing, since all documents were not searched. This may @@ -619,19 +622,19 @@ export namespace drive_v3 { * query by choosing a different corpus such as "user" or * "teamDrive". */ - incompleteSearch: boolean; + incompleteSearch?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#fileList". */ - kind: string; + kind?: string; /** * The page token for the next page of files. This will be absent if the end * of the files list has been reached. If the token is rejected for any * reason, it should be discarded, and pagination should be restarted from * the first page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * A list of generated file IDs which can be provided in create requests. @@ -640,16 +643,16 @@ export namespace drive_v3 { /** * The IDs generated for the requesting user in the specified space. */ - ids: string[]; + ids?: string[]; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#generatedIds". */ - kind: string; + kind?: string; /** * The type of file that can be created with these IDs. */ - space: string; + space?: string; } /** * A permission for a file. A permission grants a user, group, domain or the @@ -660,62 +663,62 @@ export namespace drive_v3 { * Whether the permission allows the file to be discovered through search. * This is only applicable for permissions of type domain or anyone. */ - allowFileDiscovery: boolean; + allowFileDiscovery?: boolean; /** * Whether the account associated with this permission has been deleted. * This field only pertains to user and group permissions. */ - deleted: boolean; + deleted?: boolean; /** * A displayable name for users, groups or domains. */ - displayName: string; + displayName?: string; /** * The domain to which this permission refers. */ - domain: string; + domain?: string; /** * The email address of the user or group to which this permission refers. */ - emailAddress: string; + emailAddress?: string; /** * The time at which this permission will expire (RFC 3339 date-time). * Expiration times have the following restrictions: - They can only be * set on user and group permissions - The time must be in the future - * The time cannot be more than a year in the future */ - expirationTime: string; + expirationTime?: string; /** * The ID of this permission. This is a unique identifier for the grantee, * and is published in User resources as permissionId. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#permission". */ - kind: string; + kind?: string; /** * A link to the user's profile photo, if available. */ - photoLink: string; + photoLink?: string; /** * The role granted by this permission. While new values may be supported in * the future, the following are currently allowed: - organizer - owner * - writer - commenter - reader */ - role: string; + role?: string; /** * Details of whether the permissions on this Team Drive item are inherited * or directly on this item. This is an output-only field which is present * only for Team Drive items. */ - teamDrivePermissionDetails: any[]; + teamDrivePermissionDetails?: any[]; /** * The type of the grantee. Valid values are: - user - group - domain - * anyone */ - type: string; + type?: string; } /** * A list of permissions for a file. @@ -725,19 +728,19 @@ export namespace drive_v3 { * Identifies what kind of resource this is. Value: the fixed string * "drive#permissionList". */ - kind: string; + kind?: string; /** * The page token for the next page of permissions. This field will be * absent if the end of the permissions list has been reached. If the token * is rejected for any reason, it should be discarded, and pagination should * be restarted from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of permissions. If nextPageToken is populated, then this list * may be incomplete and an additional page of results should be fetched. */ - permissions: Schema$Permission[]; + permissions?: Schema$Permission[]; } /** * A reply to a comment on a file. @@ -747,42 +750,42 @@ export namespace drive_v3 { * The action the reply performed to the parent comment. Valid values are: * - resolve - reopen */ - action: string; + action?: string; /** * The user who created the reply. */ - author: Schema$User; + author?: Schema$User; /** * The plain text content of the reply. This field is used for setting the * content, while htmlContent should be displayed. This is required on * creates if no action is specified. */ - content: string; + content?: string; /** * The time at which the reply was created (RFC 3339 date-time). */ - createdTime: string; + createdTime?: string; /** * Whether the reply has been deleted. A deleted reply has no content. */ - deleted: boolean; + deleted?: boolean; /** * The content of the reply with HTML formatting. */ - htmlContent: string; + htmlContent?: string; /** * The ID of the reply. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#reply". */ - kind: string; + kind?: string; /** * The last time the reply was modified (RFC 3339 date-time). */ - modifiedTime: string; + modifiedTime?: string; } /** * A list of replies to a comment on a file. @@ -792,19 +795,19 @@ export namespace drive_v3 { * Identifies what kind of resource this is. Value: the fixed string * "drive#replyList". */ - kind: string; + kind?: string; /** * The page token for the next page of replies. This will be absent if the * end of the replies list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of replies. If nextPageToken is populated, then this list may be * incomplete and an additional page of results should be fetched. */ - replies: Schema$Reply[]; + replies?: Schema$Reply[]; } /** * The metadata for a revision to a file. @@ -813,7 +816,7 @@ export namespace drive_v3 { /** * The ID of the revision. */ - id: string; + id?: string; /** * Whether to keep this revision forever, even if it is no longer the head * revision. If not set, the revision will be automatically purged 30 days @@ -821,54 +824,54 @@ export namespace drive_v3 { * revisions for a file. This field is only applicable to files with binary * content in Drive. */ - keepForever: boolean; + keepForever?: boolean; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#revision". */ - kind: string; + kind?: string; /** * The last user to modify this revision. */ - lastModifyingUser: Schema$User; + lastModifyingUser?: Schema$User; /** * The MD5 checksum of the revision's content. This is only applicable * to files with binary content in Drive. */ - md5Checksum: string; + md5Checksum?: string; /** * The MIME type of the revision. */ - mimeType: string; + mimeType?: string; /** * The last time the revision was modified (RFC 3339 date-time). */ - modifiedTime: string; + modifiedTime?: string; /** * The original filename used to create this revision. This is only * applicable to files with binary content in Drive. */ - originalFilename: string; + originalFilename?: string; /** * Whether subsequent revisions will be automatically republished. This is * only applicable to Google Docs. */ - publishAuto: boolean; + publishAuto?: boolean; /** * Whether this revision is published. This is only applicable to Google * Docs. */ - published: boolean; + published?: boolean; /** * Whether this revision is published outside the domain. This is only * applicable to Google Docs. */ - publishedOutsideDomain: boolean; + publishedOutsideDomain?: boolean; /** * The size of the revision's content in bytes. This is only applicable * to files with binary content in Drive. */ - size: string; + size?: string; } /** * A list of revisions of a file. @@ -878,30 +881,30 @@ export namespace drive_v3 { * Identifies what kind of resource this is. Value: the fixed string * "drive#revisionList". */ - kind: string; + kind?: string; /** * The page token for the next page of revisions. This will be absent if the * end of the revisions list has been reached. If the token is rejected for * any reason, it should be discarded, and pagination should be restarted * from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of revisions. If nextPageToken is populated, then this list may * be incomplete and an additional page of results should be fetched. */ - revisions: Schema$Revision[]; + revisions?: Schema$Revision[]; } export interface Schema$StartPageToken { /** * Identifies what kind of resource this is. Value: the fixed string * "drive#startPageToken". */ - kind: string; + kind?: string; /** * The starting page token for listing changes. */ - startPageToken: string; + startPageToken?: string; } /** * Representation of a Team Drive. @@ -913,38 +916,38 @@ export namespace drive_v3 { * drive.teamdrives.update requests that don't set themeId. When * specified, all fields of the backgroundImageFile must be set. */ - backgroundImageFile: any; + backgroundImageFile?: any; /** * A short-lived link to this Team Drive's background image. */ - backgroundImageLink: string; + backgroundImageLink?: string; /** * Capabilities the current user has on this Team Drive. */ - capabilities: any; + capabilities?: any; /** * The color of this Team Drive as an RGB hex string. It can only be set on * a drive.teamdrives.update request that does not set themeId. */ - colorRgb: string; + colorRgb?: string; /** * The time at which the Team Drive was created (RFC 3339 date-time). */ - createdTime: string; + createdTime?: string; /** * The ID of this Team Drive which is also the ID of the top level folder * for this Team Drive. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#teamDrive". */ - kind: string; + kind?: string; /** * The name of this Team Drive. */ - name: string; + name?: string; /** * The ID of the theme from which the background image and color will be * set. The set of possible teamDriveThemes can be retrieved from a @@ -953,7 +956,7 @@ export namespace drive_v3 { * color are set. This is a write-only field; it can only be set on requests * that don't set colorRgb or backgroundImageFile. */ - themeId: string; + themeId?: string; } /** * A list of Team Drives. @@ -963,19 +966,19 @@ export namespace drive_v3 { * Identifies what kind of resource this is. Value: the fixed string * "drive#teamDriveList". */ - kind: string; + kind?: string; /** * The page token for the next page of Team Drives. This will be absent if * the end of the Team Drives list has been reached. If the token is * rejected for any reason, it should be discarded, and pagination should be * restarted from the first page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of Team Drives. If nextPageToken is populated, then this list * may be incomplete and an additional page of results should be fetched. */ - teamDrives: Schema$TeamDrive[]; + teamDrives?: Schema$TeamDrive[]; } /** * Information about a Drive user. @@ -984,32 +987,33 @@ export namespace drive_v3 { /** * A plain text displayable name for this user. */ - displayName: string; + displayName?: string; /** * The email address of the user. This may not be present in certain * contexts if the user has not made their email address visible to the * requester. */ - emailAddress: string; + emailAddress?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "drive#user". */ - kind: string; + kind?: string; /** * Whether this user is the requesting user. */ - me: boolean; + me?: boolean; /** * The user's ID as visible in Permission resources. */ - permissionId: string; + permissionId?: string; /** * A link to the user's profile photo, if available. */ - photoLink: string; + photoLink?: string; } + export class Resource$About { root: Drive; constructor(root: Drive) { @@ -1034,23 +1038,33 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$About$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$About$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$About$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$About$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$About$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$About$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1072,6 +1086,14 @@ export namespace drive_v3 { } } + export interface Params$Resource$About$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Changes { root: Drive; constructor(root: Drive) { @@ -1097,26 +1119,40 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getStartPageToken(params?: any, options?: MethodOptions): - AxiosPromise; getStartPageToken( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Changes$Getstartpagetoken, + options?: MethodOptions): AxiosPromise; + getStartPageToken( + params: Params$Resource$Changes$Getstartpagetoken, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getStartPageToken( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Changes$Getstartpagetoken, + callback: BodyResponseCallback): void; + getStartPageToken(callback: BodyResponseCallback): + void; + getStartPageToken( + paramsOrCallback?: Params$Resource$Changes$Getstartpagetoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Changes$Getstartpagetoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Getstartpagetoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1159,26 +1195,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Changes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Changes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Changes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1222,25 +1269,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Changes$Watch, options?: MethodOptions): + AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Changes$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Changes$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Changes$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Changes$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Changes$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1263,6 +1321,136 @@ export namespace drive_v3 { } } + export interface Params$Resource$Changes$Getstartpagetoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The ID of the Team Drive for which the starting pageToken for listing + * future changes from that Team Drive will be returned. + */ + teamDriveId?: string; + } + export interface Params$Resource$Changes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether changes should include the file resource if the file is still + * accessible by the user at the time of the request, even when a file was + * removed from the list of changes and there will be no further change + * entries for this file. + */ + includeCorpusRemovals?: boolean; + /** + * Whether to include changes indicating that items have been removed from + * the list of changes, for example by deletion or loss of access. + */ + includeRemoved?: boolean; + /** + * Whether Team Drive files or changes should be included in results. + */ + includeTeamDriveItems?: boolean; + /** + * The maximum number of changes to return per page. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response + * or to the response from the getStartPageToken method. + */ + pageToken?: string; + /** + * Whether to restrict the results to changes inside the My Drive hierarchy. + * This omits changes to files such as those in the Application Data folder + * or shared files which have not been added to My Drive. + */ + restrictToMyDrive?: boolean; + /** + * A comma-separated list of spaces to query within the user corpus. + * Supported values are 'drive', 'appDataFolder' and 'photos'. + */ + spaces?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The Team Drive from which changes will be returned. If specified the + * change IDs will be reflective of the Team Drive; use the combined Team + * Drive ID and change ID as an identifier. + */ + teamDriveId?: string; + } + export interface Params$Resource$Changes$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether changes should include the file resource if the file is still + * accessible by the user at the time of the request, even when a file was + * removed from the list of changes and there will be no further change + * entries for this file. + */ + includeCorpusRemovals?: boolean; + /** + * Whether to include changes indicating that items have been removed from + * the list of changes, for example by deletion or loss of access. + */ + includeRemoved?: boolean; + /** + * Whether Team Drive files or changes should be included in results. + */ + includeTeamDriveItems?: boolean; + /** + * The maximum number of changes to return per page. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response + * or to the response from the getStartPageToken method. + */ + pageToken?: string; + /** + * Whether to restrict the results to changes inside the My Drive hierarchy. + * This omits changes to files such as those in the Application Data folder + * or shared files which have not been added to My Drive. + */ + restrictToMyDrive?: boolean; + /** + * A comma-separated list of spaces to query within the user corpus. + * Supported values are 'drive', 'appDataFolder' and 'photos'. + */ + spaces?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * The Team Drive from which changes will be returned. If specified the + * change IDs will be reflective of the Team Drive; use the combined Team + * Drive ID and change ID as an identifier. + */ + teamDriveId?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Channels { root: Drive; constructor(root: Drive) { @@ -1287,22 +1475,35 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1325,6 +1526,14 @@ export namespace drive_v3 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Comments { root: Drive; constructor(root: Drive) { @@ -1350,25 +1559,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Comments$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Comments$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1404,22 +1624,35 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Comments$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Comments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1456,23 +1689,33 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Comments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Comments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Comments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Comments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1511,26 +1754,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1567,25 +1821,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Comments$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Comments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1608,6 +1873,107 @@ export namespace drive_v3 { } } + export interface Params$Resource$Comments$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + export interface Params$Resource$Comments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + } + export interface Params$Resource$Comments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether to return deleted comments. Deleted comments will not include + * their original content. + */ + includeDeleted?: boolean; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether to include deleted comments. Deleted comments will not include + * their original content. + */ + includeDeleted?: boolean; + /** + * The maximum number of comments to return per page. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response. + */ + pageToken?: string; + /** + * The minimum value of 'modifiedTime' for the result comments (RFC 3339 + * date-time). + */ + startModifiedTime?: string; + } + export interface Params$Resource$Comments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + + export class Resource$Files { root: Drive; constructor(root: Drive) { @@ -1638,23 +2004,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copy(params?: any, options?: MethodOptions): AxiosPromise; + copy(params?: Params$Resource$Files$Copy, options?: MethodOptions): + AxiosPromise; copy( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Copy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; copy( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Copy, + callback: BodyResponseCallback): void; + copy(callback: BodyResponseCallback): void; + copy( + paramsOrCallback?: Params$Resource$Files$Copy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Copy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Copy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1697,23 +2076,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Files$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Files$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1753,22 +2145,35 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Files$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Files$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1802,22 +2207,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - emptyTrash(params?: any, options?: MethodOptions): AxiosPromise; emptyTrash( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Files$Emptytrash, + options?: MethodOptions): AxiosPromise; + emptyTrash( + params: Params$Resource$Files$Emptytrash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; emptyTrash( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Emptytrash, + callback: BodyResponseCallback): void; + emptyTrash(callback: BodyResponseCallback): void; + emptyTrash( + paramsOrCallback?: Params$Resource$Files$Emptytrash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Emptytrash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Emptytrash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1855,22 +2274,35 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): AxiosPromise; + export(params?: Params$Resource$Files$Export, options?: MethodOptions): + AxiosPromise; + export( + params: Params$Resource$Files$Export, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; export( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Export, + callback: BodyResponseCallback): void; + export(callback: BodyResponseCallback): void; export( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1907,26 +2339,39 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateIds(params?: any, options?: MethodOptions): - AxiosPromise; generateIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Files$Generateids, + options?: MethodOptions): AxiosPromise; generateIds( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Generateids, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + generateIds( + params: Params$Resource$Files$Generateids, + callback: BodyResponseCallback): void; + generateIds(callback: BodyResponseCallback): void; + generateIds( + paramsOrCallback?: Params$Resource$Files$Generateids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Files$Generateids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Generateids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1963,21 +2408,33 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Files$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Files$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Files$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Files$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2021,25 +2478,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Files$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Files$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2083,23 +2551,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Files$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Files$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Files$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2139,25 +2620,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; + watch(params?: Params$Resource$Files$Watch, options?: MethodOptions): + AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Files$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Files$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Files$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2180,56 +2672,368 @@ export namespace drive_v3 { } } - export class Resource$Permissions { - root: Drive; - constructor(root: Drive) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Files$Copy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * drive.permissions.create - * @desc Creates a permission for a file or Team Drive. - * @alias drive.permissions.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.emailMessage A plain text custom message to include in the notification email. - * @param {string} params.fileId The ID of the file or Team Drive. - * @param {boolean=} params.sendNotificationEmail Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers. - * @param {boolean=} params.supportsTeamDrives Whether the requesting application supports Team Drives. - * @param {boolean=} params.transferOwnership Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. - * @param {boolean=} params.useDomainAdminAccess Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs. - * @param {().Permission} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * The ID of the file. + */ + fileId?: string; + /** + * Whether to ignore the domain's default visibility settings for the + * created file. Domain administrators can choose to make all uploaded files + * visible to the domain by default; this parameter bypasses that behavior + * for the request. Permissions are still inherited from parent folders. + */ + ignoreDefaultVisibility?: boolean; + /** + * Whether to set the 'keepForever' field in the new head revision. This is + * only applicable to files with binary content in Drive. + */ + keepRevisionForever?: boolean; + /** + * A language hint for OCR processing during image import (ISO 639-1 code). + */ + ocrLanguage?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Request body metadata + */ + resource?: Schema$File; + } + export interface Params$Resource$Files$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to ignore the domain's default visibility settings for the + * created file. Domain administrators can choose to make all uploaded files + * visible to the domain by default; this parameter bypasses that behavior + * for the request. Permissions are still inherited from parent folders. + */ + ignoreDefaultVisibility?: boolean; + /** + * Whether to set the 'keepForever' field in the new head revision. This is + * only applicable to files with binary content in Drive. + */ + keepRevisionForever?: boolean; + /** + * A language hint for OCR processing during image import (ISO 639-1 code). + */ + ocrLanguage?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether to use the uploaded content as indexable text. + */ + useContentAsIndexableText?: boolean; + /** + * Request body metadata + */ + resource?: Schema$File; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Files$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + } + export interface Params$Resource$Files$Emptytrash { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Files$Export { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The MIME type of the format requested for this export. + */ + mimeType?: string; + } + export interface Params$Resource$Files$Generateids { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The number of IDs to return. + */ + count?: number; + /** + * The space in which the IDs can be used to create new files. Supported + * values are 'drive' and 'appDataFolder'. + */ + space?: string; + } + export interface Params$Resource$Files$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the user is acknowledging the risk of downloading known malware + * or other abusive files. This is only applicable when alt=media. + */ + acknowledgeAbuse?: boolean; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + } + export interface Params$Resource$Files$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Comma-separated list of bodies of items (files/documents) to which the + * query applies. Supported bodies are 'user', 'domain', 'teamDrive' and + * 'allTeamDrives'. 'allTeamDrives' must be combined with 'user'; all other + * values must be used in isolation. Prefer 'user' or 'teamDrive' to + * 'allTeamDrives' for efficiency. + */ + corpora?: string; + /** + * The source of files to list. Deprecated: use 'corpora' instead. + */ + corpus?: string; + /** + * Whether Team Drive items should be included in results. + */ + includeTeamDriveItems?: boolean; + /** + * A comma-separated list of sort keys. Valid keys are 'createdTime', + * 'folder', 'modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', + * 'quotaBytesUsed', 'recency', 'sharedWithMeTime', 'starred', and + * 'viewedByMeTime'. Each key sorts ascending by default, but may be + * reversed with the 'desc' modifier. Example usage: + * ?orderBy=folder,modifiedTime desc,name. Please note that there is a + * current limitation for users with approximately one million files in + * which the requested sort order is ignored. + */ + orderBy?: string; + /** + * The maximum number of files to return per page. Partial or empty result + * pages are possible even before the end of the files list has been + * reached. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response. + */ + pageToken?: string; + /** + * A query for filtering the file results. See the "Search for Files" guide + * for supported syntax. + */ + q?: string; + /** + * A comma-separated list of spaces to query within the corpus. Supported + * values are 'drive', 'appDataFolder' and 'photos'. + */ + spaces?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * ID of Team Drive to search. + */ + teamDriveId?: string; + } + export interface Params$Resource$Files$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A comma-separated list of parent IDs to add. + */ + addParents?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether to set the 'keepForever' field in the new head revision. This is + * only applicable to files with binary content in Drive. + */ + keepRevisionForever?: boolean; + /** + * A language hint for OCR processing during image import (ISO 639-1 code). + */ + ocrLanguage?: string; + /** + * A comma-separated list of parent IDs to remove. + */ + removeParents?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether to use the uploaded content as indexable text. + */ + useContentAsIndexableText?: boolean; + /** + * Request body metadata + */ + resource?: Schema$File; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Files$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the user is acknowledging the risk of downloading known malware + * or other abusive files. This is only applicable when alt=media. + */ + acknowledgeAbuse?: boolean; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + + export class Resource$Permissions { + root: Drive; + constructor(root: Drive) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * drive.permissions.create + * @desc Creates a permission for a file or Team Drive. + * @alias drive.permissions.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.emailMessage A plain text custom message to include in the notification email. + * @param {string} params.fileId The ID of the file or Team Drive. + * @param {boolean=} params.sendNotificationEmail Whether to send a notification email when sharing to users or groups. This defaults to true for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers. + * @param {boolean=} params.supportsTeamDrives Whether the requesting application supports Team Drives. + * @param {boolean=} params.transferOwnership Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. + * @param {boolean=} params.useDomainAdminAccess Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs. + * @param {().Permission} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Permissions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Permissions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Permissions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2267,22 +3071,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Permissions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Permissions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Permissions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2321,23 +3140,34 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Permissions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Permissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Permissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Permissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Permissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2377,26 +3207,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Permissions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Permissions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Permissions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Permissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Permissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2437,26 +3278,39 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Permissions$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Permissions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Permissions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Permissions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Permissions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2480,6 +3334,170 @@ export namespace drive_v3 { } } + export interface Params$Resource$Permissions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A plain text custom message to include in the notification email. + */ + emailMessage?: string; + /** + * The ID of the file or Team Drive. + */ + fileId?: string; + /** + * Whether to send a notification email when sharing to users or groups. + * This defaults to true for users and groups, and is not allowed for other + * requests. It must not be disabled for ownership transfers. + */ + sendNotificationEmail?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether to transfer ownership to the specified user and downgrade the + * current owner to a writer. This parameter is required as an + * acknowledgement of the side effect. + */ + transferOwnership?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Permission; + } + export interface Params$Resource$Permissions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file or Team Drive. + */ + fileId?: string; + /** + * The ID of the permission. + */ + permissionId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Permissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the permission. + */ + permissionId?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Permissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file or Team Drive. + */ + fileId?: string; + /** + * The maximum number of permissions to return per page. When not set for + * files in a Team Drive, at most 100 results will be returned. When not set + * for files that are not in a Team Drive, the entire list will be returned. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response. + */ + pageToken?: string; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Permissions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file or Team Drive. + */ + fileId?: string; + /** + * The ID of the permission. + */ + permissionId?: string; + /** + * Whether to remove the expiration date. + */ + removeExpiration?: boolean; + /** + * Whether the requesting application supports Team Drives. + */ + supportsTeamDrives?: boolean; + /** + * Whether to transfer ownership to the specified user and downgrade the + * current owner to a writer. This parameter is required as an + * acknowledgement of the side effect. + */ + transferOwnership?: boolean; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the item belongs. + */ + useDomainAdminAccess?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Permission; + } + + export class Resource$Replies { root: Drive; constructor(root: Drive) { @@ -2506,25 +3524,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Replies$Create, options?: MethodOptions): + AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Replies$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Replies$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2562,22 +3591,35 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Replies$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Replies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Replies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2617,23 +3659,33 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Replies$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Replies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Replies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Replies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2674,25 +3726,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Replies$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Replies$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Replies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2731,25 +3795,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Replies$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replies$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Replies$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Replies$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replies$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replies$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2774,6 +3849,122 @@ export namespace drive_v3 { } } + export interface Params$Resource$Replies$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Request body metadata + */ + resource?: Schema$Reply; + } + export interface Params$Resource$Replies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the reply. + */ + replyId?: string; + } + export interface Params$Resource$Replies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether to return deleted replies. Deleted replies will not include their + * original content. + */ + includeDeleted?: boolean; + /** + * The ID of the reply. + */ + replyId?: string; + } + export interface Params$Resource$Replies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * Whether to include deleted replies. Deleted replies will not include + * their original content. + */ + includeDeleted?: boolean; + /** + * The maximum number of replies to return per page. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$Replies$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment. + */ + commentId?: string; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the reply. + */ + replyId?: string; + /** + * Request body metadata + */ + resource?: Schema$Reply; + } + + export class Resource$Revisions { root: Drive; constructor(root: Drive) { @@ -2800,22 +3991,35 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Revisions$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Revisions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Revisions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2852,23 +4056,33 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Revisions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Revisions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Revisions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Revisions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2905,26 +4119,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Revisions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Revisions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Revisions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2961,26 +4186,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Revisions$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Revisions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Revisions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Revisions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3003,6 +4238,82 @@ export namespace drive_v3 { } } + export interface Params$Resource$Revisions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the revision. + */ + revisionId?: string; + } + export interface Params$Resource$Revisions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the user is acknowledging the risk of downloading known malware + * or other abusive files. This is only applicable when alt=media. + */ + acknowledgeAbuse?: boolean; + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the revision. + */ + revisionId?: string; + } + export interface Params$Resource$Revisions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The maximum number of revisions to return per page. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of 'nextPageToken' from the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$Revisions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the file. + */ + fileId?: string; + /** + * The ID of the revision. + */ + revisionId?: string; + /** + * Request body metadata + */ + resource?: Schema$Revision; + } + + export class Resource$Teamdrives { root: Drive; constructor(root: Drive) { @@ -3028,26 +4339,38 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Teamdrives$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Teamdrives$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Teamdrives$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Teamdrives$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3083,22 +4406,36 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Teamdrives$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Teamdrives$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Teamdrives$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Teamdrives$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3134,23 +4471,34 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Teamdrives$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Teamdrives$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Teamdrives$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Teamdrives$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Teamdrives$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3188,26 +4536,37 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Teamdrives$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Teamdrives$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Teamdrives$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Teamdrives$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3243,26 +4602,38 @@ export namespace drive_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Teamdrives$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Teamdrives$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Teamdrives$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Teamdrives$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Teamdrives$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Teamdrives$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3284,4 +4655,93 @@ export namespace drive_v3 { } } } + + export interface Params$Resource$Teamdrives$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An ID, such as a random UUID, which uniquely identifies this user's + * request for idempotent creation of a Team Drive. A repeated request by + * the same user and with the same request ID will avoid creating duplicates + * by attempting to create the same Team Drive. If the Team Drive already + * exists a 409 error will be returned. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TeamDrive; + } + export interface Params$Resource$Teamdrives$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Team Drive + */ + teamDriveId?: string; + } + export interface Params$Resource$Teamdrives$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Team Drive + */ + teamDriveId?: string; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then the requester will be granted access + * if they are an administrator of the domain to which the Team Drive + * belongs. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Teamdrives$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of Team Drives to return. + */ + pageSize?: number; + /** + * Page token for Team Drives. + */ + pageToken?: string; + /** + * Query string for searching Team Drives. + */ + q?: string; + /** + * Whether the request should be treated as if it was issued by a domain + * administrator; if set to true, then all Team Drives of the domain in + * which the requester is an administrator are returned. + */ + useDomainAdminAccess?: boolean; + } + export interface Params$Resource$Teamdrives$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Team Drive + */ + teamDriveId?: string; + /** + * Request body metadata + */ + resource?: Schema$TeamDrive; + } } diff --git a/src/apis/firebasedynamiclinks/v1.ts b/src/apis/firebasedynamiclinks/v1.ts index 7555ba35a69..3bef26c58bc 100644 --- a/src/apis/firebasedynamiclinks/v1.ts +++ b/src/apis/firebasedynamiclinks/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace firebasedynamiclinks_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Firebase Dynamic Links API * @@ -76,11 +79,11 @@ export namespace firebasedynamiclinks_v1 { /** * Google Play Campaign Measurements. */ - googlePlayAnalytics: Schema$GooglePlayAnalytics; + googlePlayAnalytics?: Schema$GooglePlayAnalytics; /** * iTunes Connect App Analytics. */ - itunesConnectAnalytics: Schema$ITunesConnectAnalytics; + itunesConnectAnalytics?: Schema$ITunesConnectAnalytics; } /** * Android related attributes to the Dynamic Link. @@ -89,20 +92,20 @@ export namespace firebasedynamiclinks_v1 { /** * Link to open on Android if the app is not installed. */ - androidFallbackLink: string; + androidFallbackLink?: string; /** * If specified, this overrides the ‘link’ parameter on Android. */ - androidLink: string; + androidLink?: string; /** * Minimum version code for the Android app. If the installed app’s version * code is lower, then the user is taken to the Play Store. */ - androidMinPackageVersionCode: string; + androidMinPackageVersionCode?: string; /** * Android package name of the app. */ - androidPackageName: string; + androidPackageName?: string; } /** * Request to create a managed Short Dynamic Link. @@ -112,7 +115,7 @@ export namespace firebasedynamiclinks_v1 { * Information about the Dynamic Link to be shortened. [Learn * more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */ - dynamicLinkInfo: Schema$DynamicLinkInfo; + dynamicLinkInfo?: Schema$DynamicLinkInfo; /** * Full long Dynamic Link URL with desired query parameters specified. For * example, @@ -120,18 +123,18 @@ export namespace firebasedynamiclinks_v1 { * [Learn * more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */ - longDynamicLink: string; + longDynamicLink?: string; /** * Link name to associate with the link. It's used for marketer to * identify manually-created links in the Firebase console * (https://console.firebase.google.com/). Links must be named to be * tracked. */ - name: string; + name?: string; /** * Short Dynamic Link suffix. Optional. */ - suffix: Schema$Suffix; + suffix?: Schema$Suffix; } /** * Response to create a short Dynamic Link. @@ -140,15 +143,15 @@ export namespace firebasedynamiclinks_v1 { /** * Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */ - managedShortLink: Schema$ManagedShortLink; + managedShortLink?: Schema$ManagedShortLink; /** * Preview link to show the link flow chart. (debug info.) */ - previewLink: string; + previewLink?: string; /** * Information about potential warnings on link creation. */ - warning: Schema$DynamicLinkWarning[]; + warning?: Schema$DynamicLinkWarning[]; } /** * Request to create a short Dynamic Link. @@ -158,7 +161,7 @@ export namespace firebasedynamiclinks_v1 { * Information about the Dynamic Link to be shortened. [Learn * more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */ - dynamicLinkInfo: Schema$DynamicLinkInfo; + dynamicLinkInfo?: Schema$DynamicLinkInfo; /** * Full long Dynamic Link URL with desired query parameters specified. For * example, @@ -166,11 +169,11 @@ export namespace firebasedynamiclinks_v1 { * [Learn * more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */ - longDynamicLink: string; + longDynamicLink?: string; /** * Short Dynamic Link suffix. Optional. */ - suffix: Schema$Suffix; + suffix?: Schema$Suffix; } /** * Response to create a short Dynamic Link. @@ -179,15 +182,15 @@ export namespace firebasedynamiclinks_v1 { /** * Preview link to show the link flow chart. (debug info.) */ - previewLink: string; + previewLink?: string; /** * Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */ - shortLink: string; + shortLink?: string; /** * Information about potential warnings on link creation. */ - warning: Schema$DynamicLinkWarning[]; + warning?: Schema$DynamicLinkWarning[]; } /** * Desktop related attributes to the Dynamic Link. @@ -196,7 +199,7 @@ export namespace firebasedynamiclinks_v1 { /** * Link to open on desktop. */ - desktopFallbackLink: string; + desktopFallbackLink?: string; } /** * Signals associated with the device making the request. @@ -205,34 +208,34 @@ export namespace firebasedynamiclinks_v1 { /** * Device model name. */ - deviceModelName: string; + deviceModelName?: string; /** * Device language code setting. */ - languageCode: string; + languageCode?: string; /** * Device language code setting obtained by executing JavaScript code in * WebView. */ - languageCodeFromWebview: string; + languageCodeFromWebview?: string; /** * Device language code raw setting. iOS does returns language code in * different format than iOS WebView. For example WebView returns en_US, but * iOS returns en-US. Field below will return raw value returned by iOS. */ - languageCodeRaw: string; + languageCodeRaw?: string; /** * Device display resolution height. */ - screenResolutionHeight: string; + screenResolutionHeight?: string; /** * Device display resolution width. */ - screenResolutionWidth: string; + screenResolutionWidth?: string; /** * Device timezone setting. */ - timezone: string; + timezone?: string; } /** * Dynamic Link event stat. @@ -241,15 +244,15 @@ export namespace firebasedynamiclinks_v1 { /** * The number of times this event occurred. */ - count: string; + count?: string; /** * Link event. */ - event: string; + event?: string; /** * Requested platform. */ - platform: string; + platform?: string; } /** * Information about a Dynamic Link. @@ -259,35 +262,35 @@ export namespace firebasedynamiclinks_v1 { * Parameters used for tracking. See all tracking parameters in the * [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */ - analyticsInfo: Schema$AnalyticsInfo; + analyticsInfo?: Schema$AnalyticsInfo; /** * Android related information. See Android related parameters in the * [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */ - androidInfo: Schema$AndroidInfo; + androidInfo?: Schema$AndroidInfo; /** * Desktop related information. See desktop related parameters in the * [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */ - desktopInfo: Schema$DesktopInfo; + desktopInfo?: Schema$DesktopInfo; /** * E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps * More examples can be found in description of getNormalizedUriPrefix in * j/c/g/firebase/dynamiclinks/uri/DdlDomain.java */ - domainUriPrefix: string; + domainUriPrefix?: string; /** * Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl [Learn * more](https://firebase.google.com/docs/dynamic-links/android/receive) on * how to set up Dynamic Link domain associated with your Firebase project. * Required. */ - dynamicLinkDomain: string; + dynamicLinkDomain?: string; /** * iOS related information. See iOS related parameters in the * [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */ - iosInfo: Schema$IosInfo; + iosInfo?: Schema$IosInfo; /** * The link your app will open, You can specify any URL your app can handle. * This link must be a well-formatted URL, be properly URL-encoded, and use @@ -295,16 +298,16 @@ export namespace firebasedynamiclinks_v1 { * [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). * Required. */ - link: string; + link?: string; /** * Information of navigation behavior of a Firebase Dynamic Links. */ - navigationInfo: Schema$NavigationInfo; + navigationInfo?: Schema$NavigationInfo; /** * Parameters for social meta tag params. Used to set meta tag data for link * previews on social sites. */ - socialMetaTagInfo: Schema$SocialMetaTagInfo; + socialMetaTagInfo?: Schema$SocialMetaTagInfo; } /** * Analytics stats of a Dynamic Link for a given timeframe. @@ -313,7 +316,7 @@ export namespace firebasedynamiclinks_v1 { /** * Dynamic Link event stats. */ - linkEventStats: Schema$DynamicLinkEventStat[]; + linkEventStats?: Schema$DynamicLinkEventStat[]; } /** * Dynamic Links warning messages. @@ -322,15 +325,15 @@ export namespace firebasedynamiclinks_v1 { /** * The warning code. */ - warningCode: string; + warningCode?: string; /** * The document describing the warning, and helps resolve. */ - warningDocumentLink: string; + warningDocumentLink?: string; /** * The warning message to help developers improve their requests. */ - warningMessage: string; + warningMessage?: string; } /** * Request for iSDK to execute strong match flow for post-install attribution. @@ -342,40 +345,40 @@ export namespace firebasedynamiclinks_v1 { * App installation epoch time (https://en.wikipedia.org/wiki/Unix_time). * This is a client signal for a more accurate weak match. */ - appInstallationTime: string; + appInstallationTime?: string; /** * APP bundle ID. */ - bundleId: string; + bundleId?: string; /** * Device information. */ - device: Schema$DeviceInfo; + device?: Schema$DeviceInfo; /** * iOS version, ie: 9.3.5. Consider adding "build". */ - iosVersion: string; + iosVersion?: string; /** * App post install attribution retrieval information. Disambiguates * mechanism (iSDK or developer invoked) to retrieve payload from clicked * link. */ - retrievalMethod: string; + retrievalMethod?: string; /** * Google SDK version. */ - sdkVersion: string; + sdkVersion?: string; /** * Possible unique matched link that server need to check before performing * fingerprint match. If passed link is short server need to expand the * link. If link is long server need to vslidate the link. */ - uniqueMatchLinkToCheck: string; + uniqueMatchLinkToCheck?: string; /** * Strong match page information. Disambiguates between default UI and * custom page to present when strong match succeeds/fails to find cookie. */ - visualStyle: string; + visualStyle?: string; } /** * Response for iSDK to execute strong match flow for post-install @@ -386,16 +389,16 @@ export namespace firebasedynamiclinks_v1 { * The minimum version for app, specified by dev through ?imv= parameter. * Return to iSDK to allow app to evaluate if current version meets this. */ - appMinimumVersion: string; + appMinimumVersion?: string; /** * The confidence of the returned attribution. */ - attributionConfidence: string; + attributionConfidence?: string; /** * The deep-link attributed post-install via one of several techniques * (fingerprint, copy unique). */ - deepLink: string; + deepLink?: string; /** * User-agent specific custom-scheme URIs for iSDK to open. This will be set * according to the user-agent tha the click was originally made in. There @@ -404,35 +407,35 @@ export namespace firebasedynamiclinks_v1 { * firefox://open-url?url=http://www.example.com ie: * opera-http://example.com */ - externalBrowserDestinationLink: string; + externalBrowserDestinationLink?: string; /** * The link to navigate to update the app if min version is not met. This is * either (in order): 1) fallback link (from ?ifl= parameter, if specified * by developer) or 2) AppStore URL (from ?isi= parameter, if specified), or * 3) the payload link (from required link= parameter). */ - fallbackLink: string; + fallbackLink?: string; /** * Invitation ID attributed post-install via one of several techniques * (fingerprint, copy unique). */ - invitationId: string; + invitationId?: string; /** * Instruction for iSDK to attemmpt to perform strong match. For instance, * if browser does not support/allow cookie or outside of support browsers, * this will be false. */ - isStrongMatchExecutable: boolean; + isStrongMatchExecutable?: boolean; /** * Describes why match failed, ie: "discarded due to low * confidence". This message will be publicly visible. */ - matchMessage: string; + matchMessage?: string; /** * Entire FDL (short or long) attributed post-install via one of several * techniques (fingerprint, copy unique). */ - requestedLink: string; + requestedLink?: string; /** * The entire FDL, expanded from a short link. It is the same as the * requested_link, if it is long. Parameters from this should not be used @@ -440,19 +443,19 @@ export namespace firebasedynamiclinks_v1 { * when requested_link lack them, server determine the best fallback_link * when requested_link specifies >1 fallback links). */ - resolvedLink: string; + resolvedLink?: string; /** * Scion campaign value to be propagated by iSDK to Scion at post-install. */ - utmCampaign: string; + utmCampaign?: string; /** * Scion medium value to be propagated by iSDK to Scion at post-install. */ - utmMedium: string; + utmMedium?: string; /** * Scion source value to be propagated by iSDK to Scion at post-install. */ - utmSource: string; + utmSource?: string; } /** * Parameters for Google Play Campaign Measurements. [Learn @@ -465,31 +468,31 @@ export namespace firebasedynamiclinks_v1 { * used to measure Google AdWords ads. This value is generated dynamically * and should never be modified. */ - gclid: string; + gclid?: string; /** * Campaign name; used for keyword analysis to identify a specific product * promotion or strategic campaign. */ - utmCampaign: string; + utmCampaign?: string; /** * Campaign content; used for A/B testing and content-targeted ads to * differentiate ads or links that point to the same URL. */ - utmContent: string; + utmContent?: string; /** * Campaign medium; used to identify a medium such as email or * cost-per-click. */ - utmMedium: string; + utmMedium?: string; /** * Campaign source; used to identify a search engine, newsletter, or other * source. */ - utmSource: string; + utmSource?: string; /** * Campaign term; used with paid search to supply the keywords for ads. */ - utmTerm: string; + utmTerm?: string; } /** * iOS related attributes to the Dynamic Link.. @@ -498,29 +501,29 @@ export namespace firebasedynamiclinks_v1 { /** * iOS App Store ID. */ - iosAppStoreId: string; + iosAppStoreId?: string; /** * iOS bundle ID of the app. */ - iosBundleId: string; + iosBundleId?: string; /** * Custom (destination) scheme to use for iOS. By default, we’ll use the * bundle ID as the custom scheme. Developer can override this behavior * using this param. */ - iosCustomScheme: string; + iosCustomScheme?: string; /** * Link to open on iOS if the app is not installed. */ - iosFallbackLink: string; + iosFallbackLink?: string; /** * iPad bundle ID of the app. */ - iosIpadBundleId: string; + iosIpadBundleId?: string; /** * If specified, this overrides the ios_fallback_link value on iPads. */ - iosIpadFallbackLink: string; + iosIpadFallbackLink?: string; } /** * Parameters for iTunes Connect App Analytics. @@ -529,21 +532,21 @@ export namespace firebasedynamiclinks_v1 { /** * Affiliate token used to create affiliate-coded links. */ - at: string; + at?: string; /** * Campaign text that developers can optionally add to any link in order to * track sales from a specific marketing campaign. */ - ct: string; + ct?: string; /** * iTune media types, including music, podcasts, audiobooks and so on. */ - mt: string; + mt?: string; /** * Provider token that enables analytics for Dynamic Links from within * iTunes Connect. */ - pt: string; + pt?: string; } /** * Managed Short Link. @@ -552,28 +555,28 @@ export namespace firebasedynamiclinks_v1 { /** * Creation timestamp of the short link. */ - creationTime: string; + creationTime?: string; /** * Attributes that have been flagged about this short url. */ - flaggedAttribute: string[]; + flaggedAttribute?: string[]; /** * Full Dyamic Link info */ - info: Schema$DynamicLinkInfo; + info?: Schema$DynamicLinkInfo; /** * Short durable link url, for example, * "https://sample.app.goo.gl/xyz123". Required. */ - link: string; + link?: string; /** * Link name defined by the creator. Required. */ - linkName: string; + linkName?: string; /** * Visibility status of link. */ - visibility: string; + visibility?: string; } /** * Information of navigation behavior. @@ -583,7 +586,7 @@ export namespace firebasedynamiclinks_v1 { * If this option is on, FDL click will be forced to redirect rather than * show an interstitial page. */ - enableForcedRedirect: boolean; + enableForcedRedirect?: boolean; } /** * Parameters for social meta tag params. Used to set meta tag data for link @@ -593,15 +596,15 @@ export namespace firebasedynamiclinks_v1 { /** * A short description of the link. Optional. */ - socialDescription: string; + socialDescription?: string; /** * An image url string. Optional. */ - socialImageLink: string; + socialImageLink?: string; /** * Title to be displayed. Optional. */ - socialTitle: string; + socialTitle?: string; } /** * Short Dynamic Link suffix. @@ -610,13 +613,14 @@ export namespace firebasedynamiclinks_v1 { /** * Only applies to Option.CUSTOM. */ - customSuffix: string; + customSuffix?: string; /** * Suffix option. */ - option: string; + option?: string; } + export class Resource$Managedshortlinks { root: Firebasedynamiclinks; constructor(root: Firebasedynamiclinks) { @@ -649,31 +653,47 @@ export namespace firebasedynamiclinks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Managedshortlinks$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedshortlinks$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Managedshortlinks$Create, + callback: BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Managedshortlinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Managedshortlinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Managedshortlinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; - const rootUrl = options.rootUrl || - 'https://firebasedynamiclinks-ipv6.googleapis.com/'; + + const rootUrl = + options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -697,6 +717,19 @@ export namespace firebasedynamiclinks_v1 { } } + export interface Params$Resource$Managedshortlinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$CreateManagedShortLinkRequest; + } + + export class Resource$Shortlinks { root: Firebasedynamiclinks; constructor(root: Firebasedynamiclinks) { @@ -726,31 +759,45 @@ export namespace firebasedynamiclinks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Shortlinks$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Shortlinks$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Shortlinks$Create, + callback: BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Shortlinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Shortlinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Shortlinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; - const rootUrl = options.rootUrl || - 'https://firebasedynamiclinks-ipv6.googleapis.com/'; + + const rootUrl = + options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -773,6 +820,19 @@ export namespace firebasedynamiclinks_v1 { } } + export interface Params$Resource$Shortlinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$CreateShortDynamicLinkRequest; + } + + export class Resource$V1 { root: Firebasedynamiclinks; constructor(root: Firebasedynamiclinks) { @@ -800,28 +860,40 @@ export namespace firebasedynamiclinks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getLinkStats(params?: any, options?: MethodOptions): - AxiosPromise; getLinkStats( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$V1$Getlinkstats, + options?: MethodOptions): AxiosPromise; + getLinkStats( + params: Params$Resource$V1$Getlinkstats, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getLinkStats( + params: Params$Resource$V1$Getlinkstats, + callback: BodyResponseCallback): void; + getLinkStats(callback: BodyResponseCallback): void; getLinkStats( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$V1$Getlinkstats| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$V1$Getlinkstats; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1$Getlinkstats; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; - const rootUrl = options.rootUrl || - 'https://firebasedynamiclinks-ipv6.googleapis.com/'; + + const rootUrl = + options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -855,33 +927,51 @@ export namespace firebasedynamiclinks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - installAttribution(params?: any, options?: MethodOptions): + installAttribution( + params?: Params$Resource$V1$Installattribution, + options?: MethodOptions): AxiosPromise; installAttribution( - params?: any, - options?: MethodOptions| + params: Params$Resource$V1$Installattribution, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; installAttribution( - params?: any, - options?: MethodOptions| + params: Params$Resource$V1$Installattribution, + callback: + BodyResponseCallback): + void; + installAttribution( + callback: + BodyResponseCallback): + void; + installAttribution( + paramsOrCallback?: Params$Resource$V1$Installattribution| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$V1$Installattribution; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1$Installattribution; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; - const rootUrl = options.rootUrl || - 'https://firebasedynamiclinks-ipv6.googleapis.com/'; + + const rootUrl = + options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; const parameters = { options: Object.assign( { @@ -904,4 +994,31 @@ export namespace firebasedynamiclinks_v1 { } } } + + export interface Params$Resource$V1$Getlinkstats { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The span of time requested in days. + */ + durationDays?: string; + /** + * Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz + */ + dynamicLink?: string; + } + export interface Params$Resource$V1$Installattribution { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GetIosPostInstallAttributionRequest; + } } diff --git a/src/apis/firebaserules/v1.ts b/src/apis/firebaserules/v1.ts index 5f58dbf4cdf..5048a3a0cd9 100644 --- a/src/apis/firebaserules/v1.ts +++ b/src/apis/firebaserules/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace firebaserules_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Firebase Rules API * @@ -73,11 +76,11 @@ export namespace firebaserules_v1 { /** * Argument matches any value provided. */ - anyValue: Schema$Empty; + anyValue?: Schema$Empty; /** * Argument exactly matches value provided. */ - exactValue: any; + exactValue?: any; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -94,15 +97,15 @@ export namespace firebaserules_v1 { /** * Textual Content. */ - content: string; + content?: string; /** * Fingerprint (e.g. github sha) associated with the `File`. */ - fingerprint: string; + fingerprint?: string; /** * File name. */ - name: string; + name?: string; } /** * Represents a service-defined function call that was invoked during test @@ -112,11 +115,11 @@ export namespace firebaserules_v1 { /** * The arguments that were provided to the function. */ - args: any[]; + args?: any[]; /** * Name of the function invoked. */ - function: string; + function?: string; } /** * Mock function definition. Mocks must refer to a function declared by the @@ -133,16 +136,16 @@ export namespace firebaserules_v1 { * provided is the order in which they must appear in the function * invocation. */ - args: Schema$Arg[]; + args?: Schema$Arg[]; /** * The name of the function. The function name must match one provided by a * service declaration. */ - function: string; + function?: string; /** * The mock result of the function call. */ - result: Schema$Result; + result?: Schema$Result; } /** * The response for FirebaseRulesService.GetReleaseExecutable @@ -151,23 +154,23 @@ export namespace firebaserules_v1 { /** * Executable view of the `Ruleset` referenced by the `Release`. */ - executable: string; + executable?: string; /** * The Rules runtime version of the executable. */ - executableVersion: string; + executableVersion?: string; /** * `Language` used to generate the executable bytes. */ - language: string; + language?: string; /** * `Ruleset` name associated with the `Release` executable. */ - rulesetName: string; + rulesetName?: string; /** * Timestamp for the most recent `Release.update_time`. */ - updateTime: string; + updateTime?: string; } /** * Issues include warnings, errors, and deprecation notices. @@ -176,15 +179,15 @@ export namespace firebaserules_v1 { /** * Short error description. */ - description: string; + description?: string; /** * The severity of the issue. */ - severity: string; + severity?: string; /** * Position of the issue in the `Source`. */ - sourcePosition: Schema$SourcePosition; + sourcePosition?: Schema$SourcePosition; } /** * The response for FirebaseRulesService.ListReleases. @@ -194,11 +197,11 @@ export namespace firebaserules_v1 { * The pagination token to retrieve the next page of results. If the value * is empty, no further results remain. */ - nextPageToken: string; + nextPageToken?: string; /** * List of `Release` instances. */ - releases: Schema$Release[]; + releases?: Schema$Release[]; } /** * The response for FirebaseRulesService.ListRulesets. @@ -208,11 +211,11 @@ export namespace firebaserules_v1 { * The pagination token to retrieve the next page of results. If the value * is empty, no further results remain. */ - nextPageToken: string; + nextPageToken?: string; /** * List of `Ruleset` instances. */ - rulesets: Schema$Ruleset[]; + rulesets?: Schema$Ruleset[]; } /** * `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a @@ -222,7 +225,7 @@ export namespace firebaserules_v1 { /** * Time the release was created. Output only. */ - createTime: string; + createTime?: string; /** * Resource name for the `Release`. `Release` names may be structured * `app1/prod/v2` or flat `app1_prod_v2` which affords developers a great @@ -241,16 +244,16 @@ export namespace firebaserules_v1 { * clearer picture of the relationship between `Release` instances. Format: * `projects/{project_id}/releases/{release_id}` */ - name: string; + name?: string; /** * Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must * exist the `Release` to be created. */ - rulesetName: string; + rulesetName?: string; /** * Time the release was updated. Output only. */ - updateTime: string; + updateTime?: string; } /** * Possible result values from the function mock invocation. @@ -259,12 +262,12 @@ export namespace firebaserules_v1 { /** * The result is undefined, meaning the result could not be computed. */ - undefined: Schema$Empty; + undefined?: Schema$Empty; /** * The result is an actual value. The type of the value must match that of * the type declared by the service. */ - value: any; + value?: any; } /** * `Ruleset` is an immutable copy of `Source` with a globally unique @@ -274,16 +277,16 @@ export namespace firebaserules_v1 { /** * Time the `Ruleset` was created. Output only. */ - createTime: string; + createTime?: string; /** * Name of the `Ruleset`. The ruleset_id is auto generated by the service. * Format: `projects/{project_id}/rulesets/{ruleset_id}` Output only. */ - name: string; + name?: string; /** * `Source` for the `Ruleset`. */ - source: Schema$Source; + source?: Schema$Source; } /** * `Source` is one or more `File` messages comprising a logical set of rules. @@ -292,7 +295,7 @@ export namespace firebaserules_v1 { /** * `File` set constituting the `Source` bundle. */ - files: Schema$File[]; + files?: Schema$File[]; } /** * Position in the `Source` content including its line, column number, and an @@ -302,15 +305,15 @@ export namespace firebaserules_v1 { /** * First column on the source line associated with the source fragment. */ - column: number; + column?: number; /** * Name of the `File`. */ - fileName: string; + fileName?: string; /** * Line number of the source fragment. 1-based. */ - line: number; + line?: number; } /** * `TestCase` messages provide the request context and an expectation as to @@ -325,13 +328,13 @@ export namespace firebaserules_v1 { /** * Test expectation. */ - expectation: string; + expectation?: string; /** * Optional function mocks for service-defined functions. If not set, any * service defined function is expected to return an error, which may or may * not influence the test outcome. */ - functionMocks: Schema$FunctionMock[]; + functionMocks?: Schema$FunctionMock[]; /** * Request context. The exact format of the request context is * service-dependent. See the appropriate service documentation for @@ -344,13 +347,13 @@ export namespace firebaserules_v1 { * `google.protobuf.Timestamp` If the request value is not well-formed for * the service, the request will be rejected as an invalid argument. */ - request: any; + request?: any; /** * Optional resource value as it appears in persistent storage before the * request is fulfilled. The resource type depends on the `request.path` * value. */ - resource: any; + resource?: any; } /** * Test result message containing the state of the test as well as a @@ -364,7 +367,7 @@ export namespace firebaserules_v1 { * evaluation. For example: ```Unable to read variable [name: * "resource"]``` */ - debugMessages: string[]; + debugMessages?: string[]; /** * Position in the `Source` or `Ruleset` where the principle runtime error * occurs. Evaluation of an expression may result in an error. Rules are @@ -372,18 +375,18 @@ export namespace firebaserules_v1 { * valid. When there is a `DENY` with an error, the `SourcePosition` is * returned. E.g. `error_position { line: 19 column: 37 }` */ - errorPosition: Schema$SourcePosition; + errorPosition?: Schema$SourcePosition; /** * The set of function calls made to service-defined methods. Function * calls are included in the order in which they are encountered during * evaluation, are provided for both mocked and unmocked functions, and * included on the response regardless of the test `state`. */ - functionCalls: Schema$FunctionCall[]; + functionCalls?: Schema$FunctionCall[]; /** * State of the test. */ - state: string; + state?: string; } /** * The request for FirebaseRulesService.TestRuleset. @@ -393,11 +396,11 @@ export namespace firebaserules_v1 { * Optional `Source` to be checked for correctness. This field must not be * set when the resource name refers to a `Ruleset`. */ - source: Schema$Source; + source?: Schema$Source; /** * Inline `TestSuite` to run. */ - testSuite: Schema$TestSuite; + testSuite?: Schema$TestSuite; } /** * The response for FirebaseRulesService.TestRuleset. @@ -407,13 +410,13 @@ export namespace firebaserules_v1 { * Syntactic and semantic `Source` issues of varying severity. Issues of * `ERROR` severity will prevent tests from executing. */ - issues: Schema$Issue[]; + issues?: Schema$Issue[]; /** * The set of test results given the test cases in the `TestSuite`. The * results will appear in the same order as the test cases appear in the * `TestSuite`. */ - testResults: Schema$TestResult[]; + testResults?: Schema$TestResult[]; } /** * `TestSuite` is a collection of `TestCase` instances that validate the @@ -425,7 +428,7 @@ export namespace firebaserules_v1 { /** * Collection of test cases associated with the `TestSuite`. */ - testCases: Schema$TestCase[]; + testCases?: Schema$TestCase[]; } /** * The request for FirebaseRulesService.UpdateReleasePatch. @@ -434,13 +437,14 @@ export namespace firebaserules_v1 { /** * `Release` to update. */ - release: Schema$Release; + release?: Schema$Release; /** * Specifies which fields to update. */ - updateMask: string; + updateMask?: string; } + export class Resource$Projects { root: Firebaserules; releases: Resource$Projects$Releases; @@ -482,28 +486,37 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - test(params?: any, options?: MethodOptions): + test(params?: Params$Resource$Projects$Test, options?: MethodOptions): AxiosPromise; test( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Test, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; test( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Test, + callback: BodyResponseCallback): void; + test(callback: BodyResponseCallback): void; + test( + paramsOrCallback?: Params$Resource$Projects$Test| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Test; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Test; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -525,6 +538,27 @@ export namespace firebaserules_v1 { } } } + + export interface Params$Resource$Projects$Test { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Tests may either provide `source` or a `Ruleset` resource name. For + * tests against `source`, the resource name must refer to the project: + * Format: `projects/{project_id}` For tests against a `Ruleset`, this must + * be the `Ruleset` resource name: Format: + * `projects/{project_id}/rulesets/{ruleset_id}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$TestRulesetRequest; + } + export class Resource$Projects$Releases { root: Firebaserules; constructor(root: Firebaserules) { @@ -564,25 +598,38 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Releases$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Releases$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Releases$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Releases$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Releases$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Releases$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -618,25 +665,38 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Releases$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Releases$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Releases$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Releases$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Releases$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Releases$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -671,23 +731,34 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Releases$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Releases$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Releases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Releases$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Releases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Releases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -723,29 +794,45 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getExecutable(params?: any, options?: MethodOptions): + getExecutable( + params?: Params$Resource$Projects$Releases$Getexecutable, + options?: MethodOptions): AxiosPromise; getExecutable( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Releases$Getexecutable, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; getExecutable( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Releases$Getexecutable, + callback: BodyResponseCallback): + void; + getExecutable( + callback: BodyResponseCallback): + void; + getExecutable( + paramsOrCallback?: Params$Resource$Projects$Releases$Getexecutable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Releases$Getexecutable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Releases$Getexecutable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -788,28 +875,40 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Releases$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Releases$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Releases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Releases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Releases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Releases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -848,25 +947,38 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Releases$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Releases$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Releases$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Releases$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Releases$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Releases$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -889,6 +1001,125 @@ export namespace firebaserules_v1 { } } + export interface Params$Resource$Projects$Releases$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the project which owns this `Release`. Format: + * `projects/{project_id}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Release; + } + export interface Params$Resource$Projects$Releases$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the `Release` to delete. Format: + * `projects/{project_id}/releases/{release_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Releases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of the `Release`. Format: + * `projects/{project_id}/releases/{release_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Releases$Getexecutable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The requested runtime executable version. Defaults to + * FIREBASE_RULES_EXECUTABLE_V1 + */ + executableVersion?: string; + /** + * Resource name of the `Release`. Format: + * `projects/{project_id}/releases/{release_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Releases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * `Release` filter. The list method supports filters with restrictions on + * the `Release.name`, `Release.ruleset_name`, and + * `Release.test_suite_name`. Example 1: A filter of 'name=prod*' might + * return `Release`s with names within 'projects/foo' prefixed with 'prod': + * Name | Ruleset Name + * ------------------------------|------------- projects/foo/releases/prod + * | projects/foo/rulesets/uuid1234 projects/foo/releases/prod/v1 | + * projects/foo/rulesets/uuid1234 projects/foo/releases/prod/v2 | + * projects/foo/rulesets/uuid8888 Example 2: A filter of `name=prod* + * ruleset_name=uuid1234` would return only `Release` instances for + * 'projects/foo' with names prefixed with 'prod' referring to the same + * `Ruleset` name of 'uuid1234': Name | Ruleset + * Name ------------------------------|------------- + * projects/foo/releases/prod | projects/foo/rulesets/1234 + * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 In the + * examples, the filter parameters refer to the search filters are relative + * to the project. Fully qualified prefixed may also be used. e.g. + * `test_suite_name=projects/foo/testsuites/uuid1` + */ + filter?: string; + /** + * Resource name for the project. Format: `projects/{project_id}` + */ + name?: string; + /** + * Page size to load. Maximum of 100. Defaults to 10. Note: `page_size` is + * just a hint and the service may choose to load fewer than `page_size` + * results due to the size of the output. To traverse all of the releases, + * the caller should iterate until the `page_token` on the response is + * empty. + */ + pageSize?: number; + /** + * Next page token for the next batch of `Release` instances. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Releases$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the project which owns this `Release`. Format: + * `projects/{project_id}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateReleaseRequest; + } + + export class Resource$Projects$Rulesets { root: Firebaserules; constructor(root: Firebaserules) { @@ -918,25 +1149,38 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Rulesets$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Rulesets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Rulesets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Rulesets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Rulesets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Rulesets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -973,25 +1217,38 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Rulesets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Rulesets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Rulesets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Rulesets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Rulesets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Rulesets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -1026,23 +1283,34 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Rulesets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Rulesets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Rulesets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Rulesets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Rulesets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Rulesets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -1082,28 +1350,40 @@ export namespace firebaserules_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Rulesets$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Rulesets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Rulesets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Rulesets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Rulesets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Rulesets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; const parameters = { @@ -1126,4 +1406,75 @@ export namespace firebaserules_v1 { } } } + + export interface Params$Resource$Projects$Rulesets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for Project which owns this `Ruleset`. Format: + * `projects/{project_id}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Ruleset; + } + export interface Params$Resource$Projects$Rulesets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the ruleset to delete. Format: + * `projects/{project_id}/rulesets/{ruleset_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Rulesets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the ruleset to get. Format: + * `projects/{project_id}/rulesets/{ruleset_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Rulesets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * `Ruleset` filter. The list method supports filters with restrictions on + * `Ruleset.name`. Filters on `Ruleset.create_time` should use the `date` + * function which parses strings that conform to the RFC 3339 date/time + * specifications. Example: `create_time > date("2017-01-01") AND + * name=UUID-*` + */ + filter?: string; + /** + * Resource name for the project. Format: `projects/{project_id}` + */ + name?: string; + /** + * Page size to load. Maximum of 100. Defaults to 10. Note: `page_size` is + * just a hint and the service may choose to load less than `page_size` due + * to the size of the output. To traverse all of the releases, caller should + * iterate until the `page_token` is empty. + */ + pageSize?: number; + /** + * Next page token for loading the next batch of `Ruleset` instances. + */ + pageToken?: string; + } } diff --git a/src/apis/firestore/v1beta1.ts b/src/apis/firestore/v1beta1.ts index 1618d0341f2..c783059bc92 100644 --- a/src/apis/firestore/v1beta1.ts +++ b/src/apis/firestore/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace firestore_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Firestore API * @@ -72,7 +75,7 @@ export namespace firestore_v1beta1 { /** * Values in the array. */ - values: Schema$Value[]; + values?: Schema$Value[]; } /** * The request for Firestore.BatchGetDocuments. @@ -84,28 +87,28 @@ export namespace firestore_v1beta1 { * The request will fail if any of the document is not a child resource of * the given `database`. Duplicate names will be elided. */ - documents: string[]; + documents?: string[]; /** * The fields to return. If not set, returns all fields. If a document has * a field that is not present in this mask, that field will not be returned * in the response. */ - mask: Schema$DocumentMask; + mask?: Schema$DocumentMask; /** * Starts a new transaction and reads the documents. Defaults to a read-only * transaction. The new transaction ID will be returned as the first * response in the stream. */ - newTransaction: Schema$TransactionOptions; + newTransaction?: Schema$TransactionOptions; /** * Reads documents as they were at the given time. This may not be older * than 60 seconds. */ - readTime: string; + readTime?: string; /** * Reads documents in a transaction. */ - transaction: string; + transaction?: string; } /** * The streamed response for Firestore.BatchGetDocuments. @@ -114,24 +117,24 @@ export namespace firestore_v1beta1 { /** * A document that was requested. */ - found: Schema$Document; + found?: Schema$Document; /** * A document name that was requested but does not exist. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */ - missing: string; + missing?: string; /** * The time at which the document was read. This may be monotically * increasing, in this case the previous documents in the result stream are * guaranteed not to have changed between their read_time and this one. */ - readTime: string; + readTime?: string; /** * The transaction that was started as part of this request. Will only be * set in the first response, and only if * BatchGetDocumentsRequest.new_transaction was set in the request. */ - transaction: string; + transaction?: string; } /** * The request for Firestore.BeginTransaction. @@ -140,7 +143,7 @@ export namespace firestore_v1beta1 { /** * The options for the transaction. Defaults to a read-write transaction. */ - options: Schema$TransactionOptions; + options?: Schema$TransactionOptions; } /** * The response for Firestore.BeginTransaction. @@ -149,7 +152,7 @@ export namespace firestore_v1beta1 { /** * The transaction that was started. */ - transaction: string; + transaction?: string; } /** * A selection of a collection, such as `messages as m1`. @@ -160,11 +163,11 @@ export namespace firestore_v1beta1 { * `parent` specified in the containing `RunQueryRequest`. When true, * selects all descendant collections. */ - allDescendants: boolean; + allDescendants?: boolean; /** * The collection ID. When set, selects only collections with this ID. */ - collectionId: string; + collectionId?: string; } /** * The request for Firestore.Commit. @@ -173,11 +176,11 @@ export namespace firestore_v1beta1 { /** * If set, applies all writes in this transaction, and commits it. */ - transaction: string; + transaction?: string; /** * The writes to apply. Always executed atomically and in order. */ - writes: Schema$Write[]; + writes?: Schema$Write[]; } /** * The response for Firestore.Commit. @@ -186,12 +189,12 @@ export namespace firestore_v1beta1 { /** * The time at which the commit occurred. */ - commitTime: string; + commitTime?: string; /** * The result of applying the writes. This i-th write result corresponds to * the i-th write in the request. */ - writeResults: Schema$WriteResult[]; + writeResults?: Schema$WriteResult[]; } /** * A filter that merges multiple other filters using the given operator. @@ -200,11 +203,11 @@ export namespace firestore_v1beta1 { /** * The list of filters to combine. Must contain at least one filter. */ - filters: Schema$Filter[]; + filters?: Schema$Filter[]; /** * The operator for combining multiple filters. */ - op: string; + op?: string; } /** * A position in a query result set. @@ -214,13 +217,13 @@ export namespace firestore_v1beta1 { * If the position is just before or just after the given values, relative * to the sort order defined by the query. */ - before: boolean; + before?: boolean; /** * The values that represent a position, in the order they appear in the * order by clause of a query. Can contain fewer values than specified in * the order by clause. */ - values: Schema$Value[]; + values?: Schema$Value[]; } /** * A Firestore document. Must not exceed 1 MiB - 4 bytes. @@ -232,7 +235,7 @@ export namespace firestore_v1beta1 { * also be compared to values from other documents and the `read_time` of a * query. */ - createTime: string; + createTime?: string; /** * The document's fields. The map keys represent field names. A simple * field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, @@ -251,19 +254,19 @@ export namespace firestore_v1beta1 { * a `\`. For example, `` `x&y` `` represents `x&y` and `` * `bak\`tik` `` represents `` bak`tik ``. */ - fields: any; + fields?: any; /** * The resource name of the document, for example * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */ - name: string; + name?: string; /** * Output only. The time at which the document was last changed. This value * is initially set to the `create_time` then increases monotonically with * each change to the document. It can also be compared to values from other * documents and the `read_time` of a query. */ - updateTime: string; + updateTime?: string; } /** * A Document has changed. May be the result of multiple writes, including @@ -276,15 +279,15 @@ export namespace firestore_v1beta1 { * The new state of the Document. If `mask` is set, contains only fields * that were updated or added. */ - document: Schema$Document; + document?: Schema$Document; /** * A set of target IDs for targets that no longer match this document. */ - removedTargetIds: number[]; + removedTargetIds?: number[]; /** * A set of target IDs of targets that match this document. */ - targetIds: number[]; + targetIds?: number[]; } /** * A Document has been deleted. May be the result of multiple writes, @@ -296,16 +299,16 @@ export namespace firestore_v1beta1 { /** * The resource name of the Document that was deleted. */ - document: string; + document?: string; /** * The read timestamp at which the delete was observed. Greater or equal to * the `commit_time` of the delete. */ - readTime: string; + readTime?: string; /** * A set of target IDs for targets that previously matched this entity. */ - removedTargetIds: number[]; + removedTargetIds?: number[]; } /** * A set of field paths on a document. Used to restrict a get or update @@ -318,7 +321,7 @@ export namespace firestore_v1beta1 { * The list of field paths in the mask. See Document.fields for a field path * syntax reference. */ - fieldPaths: string[]; + fieldPaths?: string[]; } /** * A Document has been removed from the view of the targets. Sent if the @@ -332,16 +335,16 @@ export namespace firestore_v1beta1 { /** * The resource name of the Document that has gone out of view. */ - document: string; + document?: string; /** * The read timestamp at which the remove was observed. Greater or equal to * the `commit_time` of the change/delete/remove. */ - readTime: string; + readTime?: string; /** * A set of target IDs for targets that previously matched this document. */ - removedTargetIds: number[]; + removedTargetIds?: number[]; } /** * A target specified by a set of documents names. @@ -353,7 +356,7 @@ export namespace firestore_v1beta1 { * The request will fail if any of the document is not a child resource of * the given `database`. Duplicate names will be elided. */ - documents: string[]; + documents?: string[]; } /** * A transformation of a document. @@ -362,12 +365,12 @@ export namespace firestore_v1beta1 { /** * The name of the document to transform. */ - document: string; + document?: string; /** * The list of transformations to apply to the fields of the document, in * order. This must not be empty. */ - fieldTransforms: Schema$FieldTransform[]; + fieldTransforms?: Schema$FieldTransform[]; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -386,11 +389,11 @@ export namespace firestore_v1beta1 { * count of documents in the client that match, the client must manually * determine which documents no longer match the target. */ - count: number; + count?: number; /** * The target ID to which this filter applies. */ - targetId: number; + targetId?: number; } /** * A filter on a specific field. @@ -399,20 +402,20 @@ export namespace firestore_v1beta1 { /** * The field to filter by. */ - field: Schema$FieldReference; + field?: Schema$FieldReference; /** * The operator to filter by. */ - op: string; + op?: string; /** * The value to compare to. */ - value: Schema$Value; + value?: Schema$Value; } /** * A reference to a field, such as `max(messages.time) as max_time`. */ - export interface Schema$FieldReference { fieldPath: string; } + export interface Schema$FieldReference { fieldPath?: string; } /** * A transformation of a field of the document. */ @@ -421,11 +424,11 @@ export namespace firestore_v1beta1 { * The path of the field. See Document.fields for the field path syntax * reference. */ - fieldPath: string; + fieldPath?: string; /** * Sets the field to the given server value. */ - setToServerValue: string; + setToServerValue?: string; } /** * A filter. @@ -434,15 +437,15 @@ export namespace firestore_v1beta1 { /** * A composite filter. */ - compositeFilter: Schema$CompositeFilter; + compositeFilter?: Schema$CompositeFilter; /** * A filter on a document field. */ - fieldFilter: Schema$FieldFilter; + fieldFilter?: Schema$FieldFilter; /** * A filter that takes exactly one argument. */ - unaryFilter: Schema$UnaryFilter; + unaryFilter?: Schema$UnaryFilter; } /** * An index definition. @@ -451,19 +454,19 @@ export namespace firestore_v1beta1 { /** * The collection ID to which this index applies. Required. */ - collectionId: string; + collectionId?: string; /** * The fields to index. */ - fields: Schema$IndexField[]; + fields?: Schema$IndexField[]; /** * The resource name of the index. Output only. */ - name: string; + name?: string; /** * The state of the index. Output only. */ - state: string; + state?: string; } /** * A field of an index. @@ -475,11 +478,11 @@ export namespace firestore_v1beta1 { * `__name__` may be used by itself or at the end of a path. `__type__` may * be used only at the end of path. */ - fieldPath: string; + fieldPath?: string; /** * The field's mode. */ - mode: string; + mode?: string; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -492,11 +495,11 @@ export namespace firestore_v1beta1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * The request for Firestore.ListCollectionIds. @@ -505,11 +508,11 @@ export namespace firestore_v1beta1 { /** * The maximum number of results to return. */ - pageSize: number; + pageSize?: number; /** * A page token. Must be a value from ListCollectionIdsResponse. */ - pageToken: string; + pageToken?: string; } /** * The response from Firestore.ListCollectionIds. @@ -518,11 +521,11 @@ export namespace firestore_v1beta1 { /** * The collection ids. */ - collectionIds: string[]; + collectionIds?: string[]; /** * A page token that may be used to continue the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response for Firestore.ListDocuments. @@ -531,11 +534,11 @@ export namespace firestore_v1beta1 { /** * The Documents found. */ - documents: Schema$Document[]; + documents?: Schema$Document[]; /** * The next page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * A request for Firestore.Listen @@ -544,15 +547,15 @@ export namespace firestore_v1beta1 { /** * A target to add to this stream. */ - addTarget: Schema$Target; + addTarget?: Schema$Target; /** * Labels associated with this target change. */ - labels: any; + labels?: any; /** * The ID of a target to remove from this stream. */ - removeTarget: number; + removeTarget?: number; } /** * The response for Firestore.Listen. @@ -561,26 +564,26 @@ export namespace firestore_v1beta1 { /** * A Document has changed. */ - documentChange: Schema$DocumentChange; + documentChange?: Schema$DocumentChange; /** * A Document has been deleted. */ - documentDelete: Schema$DocumentDelete; + documentDelete?: Schema$DocumentDelete; /** * A Document has been removed from a target (because it is no longer * relevant to that target). */ - documentRemove: Schema$DocumentRemove; + documentRemove?: Schema$DocumentRemove; /** * A filter to apply to the set of documents previously returned for the * given target. Returned when documents may have been removed from the * given target, but the exact documents are unknown. */ - filter: Schema$ExistenceFilter; + filter?: Schema$ExistenceFilter; /** * Targets have changed. */ - targetChange: Schema$TargetChange; + targetChange?: Schema$TargetChange; } /** * The response for FirestoreAdmin.ListIndexes. @@ -589,11 +592,11 @@ export namespace firestore_v1beta1 { /** * The indexes. */ - indexes: Schema$Index[]; + indexes?: Schema$Index[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * A map value. @@ -605,7 +608,7 @@ export namespace firestore_v1beta1 { * names are forbidden except in certain documented contexts. The map keys, * represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. */ - fields: any; + fields?: any; } /** * This resource represents a long-running operation that is the result of a @@ -617,24 +620,24 @@ export namespace firestore_v1beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -644,7 +647,7 @@ export namespace firestore_v1beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * An order on a field. @@ -653,11 +656,11 @@ export namespace firestore_v1beta1 { /** * The direction to order by. Defaults to `ASCENDING`. */ - direction: string; + direction?: string; /** * The field to order by. */ - field: Schema$FieldReference; + field?: Schema$FieldReference; } /** * A precondition on a document, used for conditional operations. @@ -667,12 +670,12 @@ export namespace firestore_v1beta1 { * When set to `true`, the target document must exist. When set to `false`, * the target document must not exist. */ - exists: boolean; + exists?: boolean; /** * When set, the target document must exist and have been last updated at * that time. */ - updateTime: string; + updateTime?: string; } /** * The projection of document's fields to return. @@ -682,7 +685,7 @@ export namespace firestore_v1beta1 { * The fields to return. If empty, all fields are returned. To only return * the name of the document, use `['__name__']`. */ - fields: Schema$FieldReference[]; + fields?: Schema$FieldReference[]; } /** * A target specified by a query. @@ -695,11 +698,11 @@ export namespace firestore_v1beta1 { * For example: `projects/my-project/databases/my-database/documents` or * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` */ - parent: string; + parent?: string; /** * A structured query. */ - structuredQuery: Schema$StructuredQuery; + structuredQuery?: Schema$StructuredQuery; } /** * Options for a transaction that can only be used to read documents. @@ -708,7 +711,7 @@ export namespace firestore_v1beta1 { /** * Reads documents at the given time. This may not be older than 60 seconds. */ - readTime: string; + readTime?: string; } /** * Options for a transaction that can be used to read and write documents. @@ -717,7 +720,7 @@ export namespace firestore_v1beta1 { /** * An optional transaction to retry. */ - retryTransaction: string; + retryTransaction?: string; } /** * The request for Firestore.Rollback. @@ -726,7 +729,7 @@ export namespace firestore_v1beta1 { /** * The transaction to roll back. */ - transaction: string; + transaction?: string; } /** * The request for Firestore.RunQuery. @@ -737,20 +740,20 @@ export namespace firestore_v1beta1 { * transaction. The new transaction ID will be returned as the first * response in the stream. */ - newTransaction: Schema$TransactionOptions; + newTransaction?: Schema$TransactionOptions; /** * Reads documents as they were at the given time. This may not be older * than 60 seconds. */ - readTime: string; + readTime?: string; /** * A structured query. */ - structuredQuery: Schema$StructuredQuery; + structuredQuery?: Schema$StructuredQuery; /** * Reads documents in a transaction. */ - transaction: string; + transaction?: string; } /** * The response for Firestore.RunQuery. @@ -759,7 +762,7 @@ export namespace firestore_v1beta1 { /** * A query result. Not set when reporting partial progress. */ - document: Schema$Document; + document?: Schema$Document; /** * The time at which the document was read. This may be monotonically * increasing; in this case, the previous documents in the result stream are @@ -768,18 +771,18 @@ export namespace firestore_v1beta1 { * `document` will be sent, and this represents the time at which the query * was run. */ - readTime: string; + readTime?: string; /** * The number of results that have been skipped due to an offset between the * last response and the current response. */ - skippedResults: number; + skippedResults?: number; /** * The transaction that was started as part of this request. Can only be set * in the first response, and only if RunQueryRequest.new_transaction was * set in the request. If set, no other fields will be set in this response. */ - transaction: string; + transaction?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -821,18 +824,18 @@ export namespace firestore_v1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A Firestore query. @@ -841,21 +844,21 @@ export namespace firestore_v1beta1 { /** * A end point for the query results. */ - endAt: Schema$Cursor; + endAt?: Schema$Cursor; /** * The collections to query. */ - from: Schema$CollectionSelector[]; + from?: Schema$CollectionSelector[]; /** * The maximum number of results to return. Applies after all other * constraints. Must be >= 0 if specified. */ - limit: number; + limit?: number; /** * The number of results to skip. Applies before limit, but after all other * constraints. Must be >= 0 if specified. */ - offset: number; + offset?: number; /** * The order to apply to the query results. Firestore guarantees a stable * ordering through the following rules: * Any field required to appear in @@ -869,19 +872,19 @@ export namespace firestore_v1beta1 { * BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A > 1` becomes * `SELECT * FROM Foo WHERE A > 1 ORDER BY A, __name__` */ - orderBy: Schema$Order[]; + orderBy?: Schema$Order[]; /** * The projection to return. */ - select: Schema$Projection; + select?: Schema$Projection; /** * A starting point for the query results. */ - startAt: Schema$Cursor; + startAt?: Schema$Cursor; /** * The filter to apply. */ - where: Schema$Filter; + where?: Schema$Filter; } /** * A specification of a set of documents to listen to. @@ -890,25 +893,25 @@ export namespace firestore_v1beta1 { /** * A target specified by a set of document names. */ - documents: Schema$DocumentsTarget; + documents?: Schema$DocumentsTarget; /** * If the target should be removed once it is current and consistent. */ - once: boolean; + once?: boolean; /** * A target specified by a query. */ - query: Schema$QueryTarget; + query?: Schema$QueryTarget; /** * Start listening after a specific `read_time`. The client must know the * state of matching documents at this time. */ - readTime: string; + readTime?: string; /** * A resume token from a prior TargetChange for an identical target. Using * a resume token with a different target is unsupported and may fail. */ - resumeToken: string; + resumeToken?: string; /** * A client provided target ID. If not set, the server will assign an ID * for the target. Used for resuming a target without changing IDs. The IDs @@ -916,7 +919,7 @@ export namespace firestore_v1beta1 { * All targets with client provided IDs must be added before adding a target * that needs a server-assigned id. */ - targetId: number; + targetId?: number; } /** * Targets being watched have changed. @@ -925,7 +928,7 @@ export namespace firestore_v1beta1 { /** * The error that resulted in this change, if applicable. */ - cause: Schema$Status; + cause?: Schema$Status; /** * The consistent `read_time` for the given `target_ids` (omitted when the * target_ids are not at a consistent snapshot). The stream is guaranteed @@ -935,16 +938,16 @@ export namespace firestore_v1beta1 { * NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` * is guaranteed to be monotonically increasing. */ - readTime: string; + readTime?: string; /** * A token that can be used to resume the stream for the given `target_ids`, * or all targets if `target_ids` is empty. Not set on every target change. */ - resumeToken: string; + resumeToken?: string; /** * The type of change that occurred. */ - targetChangeType: string; + targetChangeType?: string; /** * The target IDs of targets that have changed. If empty, the change * applies to all targets. For `target_change_type=ADD`, the order of the @@ -953,7 +956,7 @@ export namespace firestore_v1beta1 { * added targets. For other states, the order of the target IDs is not * defined. */ - targetIds: number[]; + targetIds?: number[]; } /** * Options for creating a new transaction. @@ -962,11 +965,11 @@ export namespace firestore_v1beta1 { /** * The transaction can only be used for read operations. */ - readOnly: Schema$ReadOnly; + readOnly?: Schema$ReadOnly; /** * The transaction can be used for both read and write operations. */ - readWrite: Schema$ReadWrite; + readWrite?: Schema$ReadWrite; } /** * A filter with a single operand. @@ -975,11 +978,11 @@ export namespace firestore_v1beta1 { /** * The field to which to apply the operator. */ - field: Schema$FieldReference; + field?: Schema$FieldReference; /** * The unary operator to apply. */ - op: string; + op?: string; } /** * A message that can hold any of the supported value types. @@ -989,52 +992,52 @@ export namespace firestore_v1beta1 { * An array value. Cannot directly contain another array value, though can * contain an map which contains another array. */ - arrayValue: Schema$ArrayValue; + arrayValue?: Schema$ArrayValue; /** * A boolean value. */ - booleanValue: boolean; + booleanValue?: boolean; /** * A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 * bytes are considered by queries. */ - bytesValue: string; + bytesValue?: string; /** * A double value. */ - doubleValue: number; + doubleValue?: number; /** * A geo point value representing a point on the surface of Earth. */ - geoPointValue: Schema$LatLng; + geoPointValue?: Schema$LatLng; /** * An integer value. */ - integerValue: string; + integerValue?: string; /** * A map value. */ - mapValue: Schema$MapValue; + mapValue?: Schema$MapValue; /** * A null value. */ - nullValue: string; + nullValue?: string; /** * A reference to a document. For example: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */ - referenceValue: string; + referenceValue?: string; /** * A string value. The string, represented as UTF-8, must not exceed 1 MiB * - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are * considered by queries. */ - stringValue: string; + stringValue?: string; /** * A timestamp value. Precise only to microseconds. When stored, any * additional precision is rounded down. */ - timestampValue: string; + timestampValue?: string; } /** * A write on a document. @@ -1044,22 +1047,22 @@ export namespace firestore_v1beta1 { * An optional precondition on the document. The write will fail if this is * set and not met by the target document. */ - currentDocument: Schema$Precondition; + currentDocument?: Schema$Precondition; /** * A document name to delete. In the format: * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. */ - delete: string; + delete?: string; /** * Applies a tranformation to a document. At most one `transform` per * document is allowed in a given request. An `update` cannot follow a * `transform` on the same document in a given request. */ - transform: Schema$DocumentTransform; + transform?: Schema$DocumentTransform; /** * A document to write. */ - update: Schema$Document; + update?: Schema$Document; /** * The fields to update in this write. This field can be set only when the * operation is `update`. If the mask is not set for an `update` and the @@ -1069,7 +1072,7 @@ export namespace firestore_v1beta1 { * in the input document, are deleted from the document on the server. The * field paths in this mask must not contain a reserved field name. */ - updateMask: Schema$DocumentMask; + updateMask?: Schema$DocumentMask; } /** * The request for Firestore.Write. The first request creates a stream, or @@ -1083,12 +1086,12 @@ export namespace firestore_v1beta1 { /** * Labels associated with this write request. */ - labels: any; + labels?: any; /** * The ID of the write stream to resume. This may only be set in the first * message. When left empty, a new write stream will be created. */ - streamId: string; + streamId?: string; /** * A stream token that was previously sent by the server. The client should * set this field to the token from the most recent WriteResponse it has @@ -1099,13 +1102,13 @@ export namespace firestore_v1beta1 { * stream. To resume a stream at a specific point, set this field and the * `stream_id` field. Leave this field unset when creating a new stream. */ - streamToken: string; + streamToken?: string; /** * The writes to apply. Always executed atomically and in order. This must * be empty on the first request. This may be empty on the last request. * This must not be empty on all other requests. */ - writes: Schema$Write[]; + writes?: Schema$Write[]; } /** * The response for Firestore.Write. @@ -1114,23 +1117,23 @@ export namespace firestore_v1beta1 { /** * The time at which the commit occurred. */ - commitTime: string; + commitTime?: string; /** * The ID of the stream. Only set on the first message, when a new stream * was created. */ - streamId: string; + streamId?: string; /** * A token that represents the position of this response in the stream. This * can be used by a client to resume the stream at this point. This field * is always set. */ - streamToken: string; + streamToken?: string; /** * The result of applying the writes. This i-th write result corresponds to * the i-th write in the request. */ - writeResults: Schema$WriteResult[]; + writeResults?: Schema$WriteResult[]; } /** * The result of applying a write. @@ -1140,15 +1143,16 @@ export namespace firestore_v1beta1 { * The results of applying each DocumentTransform.FieldTransform, in the * same order. */ - transformResults: Schema$Value[]; + transformResults?: Schema$Value[]; /** * The last update time of the document after applying the write. Not set * after a `delete`. If the write did not actually change the document, * this will be the previous update_time. */ - updateTime: string; + updateTime?: string; } + export class Resource$Projects { root: Firestore; databases: Resource$Projects$Databases; @@ -1162,6 +1166,8 @@ export namespace firestore_v1beta1 { return this.root; } } + + export class Resource$Projects$Databases { root: Firestore; documents: Resource$Projects$Databases$Documents; @@ -1177,6 +1183,8 @@ export namespace firestore_v1beta1 { return this.root; } } + + export class Resource$Projects$Databases$Documents { root: Firestore; constructor(root: Firestore) { @@ -1203,29 +1211,43 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGet(params?: any, options?: MethodOptions): + batchGet( + params?: Params$Resource$Projects$Databases$Documents$Batchget, + options?: MethodOptions): AxiosPromise; batchGet( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Databases$Documents$Batchget, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + batchGet( + params: Params$Resource$Projects$Databases$Documents$Batchget, + callback: BodyResponseCallback): void; + batchGet(callback: BodyResponseCallback): void; batchGet( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Databases$Documents$Batchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Batchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Batchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1262,28 +1284,43 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - beginTransaction(params?: any, options?: MethodOptions): - AxiosPromise; beginTransaction( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Databases$Documents$Begintransaction, + options?: MethodOptions): AxiosPromise; + beginTransaction( + params: Params$Resource$Projects$Databases$Documents$Begintransaction, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + beginTransaction( + params: Params$Resource$Projects$Databases$Documents$Begintransaction, + callback: BodyResponseCallback): void; beginTransaction( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + beginTransaction( + paramsOrCallback?: + Params$Resource$Projects$Databases$Documents$Begintransaction| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Begintransaction; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Databases$Documents$Begintransaction; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1319,26 +1356,39 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - commit(params?: any, options?: MethodOptions): - AxiosPromise; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Commit, + options?: MethodOptions): AxiosPromise; + commit( + params: Params$Resource$Projects$Databases$Documents$Commit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + commit( + params: Params$Resource$Projects$Databases$Documents$Commit, + callback: BodyResponseCallback): void; + commit(callback: BodyResponseCallback): void; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Databases$Documents$Commit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Commit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Commit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1377,26 +1427,40 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createDocument(params?: any, options?: MethodOptions): - AxiosPromise; createDocument( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Createdocument, + options?: MethodOptions): AxiosPromise; + createDocument( + params: Params$Resource$Projects$Databases$Documents$Createdocument, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; createDocument( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Databases$Documents$Createdocument, + callback: BodyResponseCallback): void; + createDocument(callback: BodyResponseCallback): void; + createDocument( + paramsOrCallback?: + Params$Resource$Projects$Databases$Documents$Createdocument| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Createdocument; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Databases$Documents$Createdocument; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1433,25 +1497,38 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Databases$Documents$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Databases$Documents$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Databases$Documents$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1488,23 +1565,34 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Databases$Documents$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Databases$Documents$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Databases$Documents$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Databases$Documents$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1546,28 +1634,40 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Databases$Documents$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Databases$Documents$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Databases$Documents$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Databases$Documents$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1603,29 +1703,44 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listCollectionIds(params?: any, options?: MethodOptions): + listCollectionIds( + params?: Params$Resource$Projects$Databases$Documents$Listcollectionids, + options?: MethodOptions): AxiosPromise; listCollectionIds( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Databases$Documents$Listcollectionids, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + listCollectionIds( + params: Params$Resource$Projects$Databases$Documents$Listcollectionids, + callback: BodyResponseCallback): void; listCollectionIds( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + listCollectionIds( + paramsOrCallback?: + Params$Resource$Projects$Databases$Documents$Listcollectionids| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Listcollectionids; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Databases$Documents$Listcollectionids; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1662,26 +1777,39 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listen(params?: any, options?: MethodOptions): - AxiosPromise; listen( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Listen, + options?: MethodOptions): AxiosPromise; + listen( + params: Params$Resource$Projects$Databases$Documents$Listen, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listen( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Databases$Documents$Listen, + callback: BodyResponseCallback): void; + listen(callback: BodyResponseCallback): void; + listen( + paramsOrCallback?: Params$Resource$Projects$Databases$Documents$Listen| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Listen; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Listen; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1721,25 +1849,38 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Databases$Documents$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Databases$Documents$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Databases$Documents$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1774,25 +1915,39 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rollback(params?: any, options?: MethodOptions): AxiosPromise; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Databases$Documents$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rollback( + params: Params$Resource$Projects$Databases$Documents$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Databases$Documents$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1828,26 +1983,40 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - runQuery(params?: any, options?: MethodOptions): - AxiosPromise; runQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Runquery, + options?: MethodOptions): AxiosPromise; + runQuery( + params: Params$Resource$Projects$Databases$Documents$Runquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; runQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Databases$Documents$Runquery, + callback: BodyResponseCallback): void; + runQuery(callback: BodyResponseCallback): void; + runQuery( + paramsOrCallback?: + Params$Resource$Projects$Databases$Documents$Runquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Runquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Runquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1883,26 +2052,39 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - write(params?: any, options?: MethodOptions): - AxiosPromise; write( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Documents$Write, + options?: MethodOptions): AxiosPromise; write( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Databases$Documents$Write, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + write( + params: Params$Resource$Projects$Databases$Documents$Write, + callback: BodyResponseCallback): void; + write(callback: BodyResponseCallback): void; + write( + paramsOrCallback?: Params$Resource$Projects$Databases$Documents$Write| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Documents$Write; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Documents$Write; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -1925,6 +2107,313 @@ export namespace firestore_v1beta1 { } } + export interface Params$Resource$Projects$Databases$Documents$Batchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The database name. In the format: + * `projects/{project_id}/databases/{database_id}`. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchGetDocumentsRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Begintransaction { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The database name. In the format: + * `projects/{project_id}/databases/{database_id}`. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$BeginTransactionRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Commit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The database name. In the format: + * `projects/{project_id}/databases/{database_id}`. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$CommitRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Createdocument { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection ID, relative to `parent`, to list. For example: + * `chatrooms`. + */ + collectionId?: string; + /** + * The client-assigned document ID to use for this document. Optional. If + * not specified, an ID will be assigned by the service. + */ + documentId?: string; + /** + * The list of field paths in the mask. See Document.fields for a field path + * syntax reference. + */ + 'mask.fieldPaths'?: string; + /** + * The parent resource. For example: + * `projects/{project_id}/databases/{database_id}/documents` or + * `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Document; + } + export interface Params$Resource$Projects$Databases$Documents$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When set to `true`, the target document must exist. When set to `false`, + * the target document must not exist. + */ + 'currentDocument.exists'?: boolean; + /** + * When set, the target document must exist and have been last updated at + * that time. + */ + 'currentDocument.updateTime'?: string; + /** + * The resource name of the Document to delete. In the format: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + */ + name?: string; + } + export interface Params$Resource$Projects$Databases$Documents$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The list of field paths in the mask. See Document.fields for a field path + * syntax reference. + */ + 'mask.fieldPaths'?: string; + /** + * The resource name of the Document to get. In the format: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + */ + name?: string; + /** + * Reads the version of the document at the given time. This may not be + * older than 60 seconds. + */ + readTime?: string; + /** + * Reads the document in a transaction. + */ + transaction?: string; + } + export interface Params$Resource$Projects$Databases$Documents$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection ID, relative to `parent`, to list. For example: + * `chatrooms` or `messages`. + */ + collectionId?: string; + /** + * The list of field paths in the mask. See Document.fields for a field path + * syntax reference. + */ + 'mask.fieldPaths'?: string; + /** + * The order to sort results by. For example: `priority desc, name`. + */ + orderBy?: string; + /** + * The maximum number of documents to return. + */ + pageSize?: number; + /** + * The `next_page_token` value returned from a previous List request, if + * any. + */ + pageToken?: string; + /** + * The parent resource name. In the format: + * `projects/{project_id}/databases/{database_id}/documents` or + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * For example: `projects/my-project/databases/my-database/documents` or + * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + */ + parent?: string; + /** + * Reads documents as they were at the given time. This may not be older + * than 60 seconds. + */ + readTime?: string; + /** + * If the list should show missing documents. A missing document is a + * document that does not exist but has sub-documents. These documents will + * be returned with a key but will not have fields, Document.create_time, or + * Document.update_time set. Requests with `show_missing` may not specify + * `where` or `order_by`. + */ + showMissing?: boolean; + /** + * Reads documents in a transaction. + */ + transaction?: string; + } + export interface Params$Resource$Projects$Databases$Documents$Listcollectionids { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent document. In the format: + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * For example: + * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$ListCollectionIdsRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Listen { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The database name. In the format: + * `projects/{project_id}/databases/{database_id}`. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$ListenRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When set to `true`, the target document must exist. When set to `false`, + * the target document must not exist. + */ + 'currentDocument.exists'?: boolean; + /** + * When set, the target document must exist and have been last updated at + * that time. + */ + 'currentDocument.updateTime'?: string; + /** + * The list of field paths in the mask. See Document.fields for a field path + * syntax reference. + */ + 'mask.fieldPaths'?: string; + /** + * The resource name of the document, for example + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + */ + name?: string; + /** + * The list of field paths in the mask. See Document.fields for a field path + * syntax reference. + */ + 'updateMask.fieldPaths'?: string; + /** + * Request body metadata + */ + resource?: Schema$Document; + } + export interface Params$Resource$Projects$Databases$Documents$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The database name. In the format: + * `projects/{project_id}/databases/{database_id}`. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Runquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent resource name. In the format: + * `projects/{project_id}/databases/{database_id}/documents` or + * `projects/{project_id}/databases/{database_id}/documents/{document_path}`. + * For example: `projects/my-project/databases/my-database/documents` or + * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$RunQueryRequest; + } + export interface Params$Resource$Projects$Databases$Documents$Write { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The database name. In the format: + * `projects/{project_id}/databases/{database_id}`. This is only required in + * the first message. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$WriteRequest; + } + + export class Resource$Projects$Databases$Indexes { root: Firestore; constructor(root: Firestore) { @@ -1958,26 +2447,39 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Indexes$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Databases$Indexes$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Databases$Indexes$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Databases$Indexes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Indexes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Indexes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -2012,25 +2514,38 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Indexes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Databases$Indexes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Databases$Indexes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Databases$Indexes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Indexes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Indexes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -2064,23 +2579,34 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Databases$Indexes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Databases$Indexes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Databases$Indexes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Databases$Indexes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Indexes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Indexes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -2117,28 +2643,39 @@ export namespace firestore_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Databases$Indexes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Databases$Indexes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Databases$Indexes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Databases$Indexes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Databases$Indexes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Databases$Indexes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; const parameters = { options: Object.assign( @@ -2160,4 +2697,69 @@ export namespace firestore_v1beta1 { } } } + + export interface Params$Resource$Projects$Databases$Indexes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the database this index will apply to. For example: + * `projects/{project_id}/databases/{database_id}` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Index; + } + export interface Params$Resource$Projects$Databases$Indexes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The index name. For example: + * `projects/{project_id}/databases/{database_id}/indexes/{index_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Databases$Indexes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the index. For example: + * `projects/{project_id}/databases/{database_id}/indexes/{index_id}` + */ + name?: string; + } + export interface Params$Resource$Projects$Databases$Indexes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + filter?: string; + /** + * The standard List page size. + */ + pageSize?: number; + /** + * The standard List page token. + */ + pageToken?: string; + /** + * The database name. For example: + * `projects/{project_id}/databases/{database_id}` + */ + parent?: string; + } } diff --git a/src/apis/fitness/v1.ts b/src/apis/fitness/v1.ts index 68067152df5..4fb109f5e84 100644 --- a/src/apis/fitness/v1.ts +++ b/src/apis/fitness/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace fitness_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Fitness * @@ -70,30 +73,30 @@ export namespace fitness_v1 { /** * Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT */ - activity: number; + activity?: number; /** * There will be one dataset per AggregateBy in the request. */ - dataset: Schema$Dataset[]; + dataset?: Schema$Dataset[]; /** * The end time for the aggregated data, in milliseconds since epoch, * inclusive. */ - endTimeMillis: string; + endTimeMillis?: string; /** * Available for Bucket.Type.SESSION */ - session: Schema$Session; + session?: Schema$Session; /** * The start time for the aggregated data, in milliseconds since epoch, * inclusive. */ - startTimeMillis: string; + startTimeMillis?: string; /** * The type of a bucket signifies how the data aggregation is performed in * the bucket. */ - type: string; + type?: string; } /** * The specification of which data to aggregate. @@ -105,14 +108,14 @@ export namespace fitness_v1 { * aggregation. The dataset in the response will have the same data source * ID. */ - dataSourceId: string; + dataSourceId?: string; /** * The data type to aggregate. All data sources providing this data type * will contribute data to the aggregation. The response will contain a * single dataset for this data type name. The dataset will have a data * source ID of derived:com.google.:com.google.android.gms:aggregated */ - dataTypeName: string; + dataTypeName?: string; } /** * Next id: 10 @@ -124,14 +127,14 @@ export namespace fitness_v1 { * same bucketing criteria. There will be one dataset in the response for * every aggregateBy spec. */ - aggregateBy: Schema$AggregateBy[]; + aggregateBy?: Schema$AggregateBy[]; /** * Specifies that data be aggregated each activity segment recored for a * user. Similar to bucketByActivitySegment, but bucketing is done for each * activity segment rather than all segments of the same type. Mutually * exclusive of other bucketing specifications. */ - bucketByActivitySegment: Schema$BucketByActivity; + bucketByActivitySegment?: Schema$BucketByActivity; /** * Specifies that data be aggregated by the type of activity being performed * when the data was recorded. All data that was recorded during a certain @@ -140,85 +143,85 @@ export namespace fitness_v1 { * included in the response. Mutually exclusive of other bucketing * specifications. */ - bucketByActivityType: Schema$BucketByActivity; + bucketByActivityType?: Schema$BucketByActivity; /** * Specifies that data be aggregated by user sessions. Data that does not * fall within the time range of a session will not be included in the * response. Mutually exclusive of other bucketing specifications. */ - bucketBySession: Schema$BucketBySession; + bucketBySession?: Schema$BucketBySession; /** * Specifies that data be aggregated by a single time interval. Mutually * exclusive of other bucketing specifications. */ - bucketByTime: Schema$BucketByTime; + bucketByTime?: Schema$BucketByTime; /** * The end of a window of time. Data that intersects with this time window * will be aggregated. The time is in milliseconds since epoch, inclusive. */ - endTimeMillis: string; + endTimeMillis?: string; /** * A list of acceptable data quality standards. Only data points which * conform to at least one of the specified data quality standards will be * returned. If the list is empty, all data points are returned. */ - filteredDataQualityStandard: string[]; + filteredDataQualityStandard?: string[]; /** * The start of a window of time. Data that intersects with this time window * will be aggregated. The time is in milliseconds since epoch, inclusive. */ - startTimeMillis: string; + startTimeMillis?: string; } export interface Schema$AggregateResponse { /** * A list of buckets containing the aggregated data. */ - bucket: Schema$AggregateBucket[]; + bucket?: Schema$AggregateBucket[]; } export interface Schema$Application { /** * An optional URI that can be used to link back to the application. */ - detailsUrl: string; + detailsUrl?: string; /** * The name of this application. This is required for REST clients, but we * do not enforce uniqueness of this name. It is provided as a matter of * convenience for other developers who would like to identify which REST * created an Application or Data Source. */ - name: string; + name?: string; /** * Package name for this application. This is used as a unique identifier * when created by Android applications, but cannot be specified by REST * clients. REST clients will have their developer project number reflected * into the Data Source data stream IDs, instead of the packageName. */ - packageName: string; + packageName?: string; /** * Version of the application. You should update this field whenever the * application changes in a way that affects the computation of the data. */ - version: string; + version?: string; } export interface Schema$BucketByActivity { /** * The default activity stream will be used if a specific * activityDataSourceId is not specified. */ - activityDataSourceId: string; + activityDataSourceId?: string; /** * Specifies that only activity segments of duration longer than * minDurationMillis are considered and used as a container for aggregated * data. */ - minDurationMillis: string; + minDurationMillis?: string; } export interface Schema$BucketBySession { /** * Specifies that only sessions of duration longer than minDurationMillis * are considered and used as a container for aggregated data. */ - minDurationMillis: string; + minDurationMillis?: string; } export interface Schema$BucketByTime { /** @@ -226,16 +229,16 @@ export namespace fitness_v1 { * time frames. Time frames that contain no data will be included in the * response with an empty dataset. */ - durationMillis: string; - period: Schema$BucketByTimePeriod; + durationMillis?: string; + period?: Schema$BucketByTimePeriod; } export interface Schema$BucketByTimePeriod { /** * org.joda.timezone.DateTimeZone */ - timeZoneId: string; - type: string; - value: number; + timeZoneId?: string; + type?: string; + value?: number; } /** * Represents a single data point, generated by a particular data source. A @@ -252,37 +255,37 @@ export namespace fitness_v1 { * Used for version checking during transformation; that is, a datapoint can * only replace another datapoint that has an older computation time stamp. */ - computationTimeMillis: string; + computationTimeMillis?: string; /** * The data type defining the format of the values in this data point. */ - dataTypeName: string; + dataTypeName?: string; /** * The end time of the interval represented by this data point, in * nanoseconds since epoch. */ - endTimeNanos: string; + endTimeNanos?: string; /** * Indicates the last time this data point was modified. Useful only in * contexts where we are listing the data changes, rather than representing * the current state of the data. */ - modifiedTimeMillis: string; + modifiedTimeMillis?: string; /** * If the data point is contained in a dataset for a derived data source, * this field will be populated with the data source stream ID that created * the data point originally. */ - originDataSourceId: string; + originDataSourceId?: string; /** * The raw timestamp from the original SensorEvent. */ - rawTimestampNanos: string; + rawTimestampNanos?: string; /** * The start time of the interval represented by this data point, in * nanoseconds since epoch. */ - startTimeNanos: string; + startTimeNanos?: string; /** * Values of each data type field for the data point. It is expected that * each value corresponding to a data type field will occur in the same @@ -290,7 +293,7 @@ export namespace fitness_v1 { * source. Only one of integer and floating point fields will be populated, * depending on the format enum value within data source's type field. */ - value: Schema$Value[]; + value?: Schema$Value[]; } /** * A dataset represents a projection container for data points. They do not @@ -302,33 +305,33 @@ export namespace fitness_v1 { * The data stream ID of the data source that created the points in this * dataset. */ - dataSourceId: string; + dataSourceId?: string; /** * The largest end time of all data points in this possibly partial * representation of the dataset. Time is in nanoseconds from epoch. This * should also match the first part of the dataset identifier. */ - maxEndTimeNs: string; + maxEndTimeNs?: string; /** * The smallest start time of all data points in this possibly partial * representation of the dataset. Time is in nanoseconds from epoch. This * should also match the first part of the dataset identifier. */ - minStartTimeNs: string; + minStartTimeNs?: string; /** * This token will be set when a dataset is received in response to a GET * request and the dataset is too large to be included in a single response. * Provide this value in a subsequent GET request to return the next page of * data points within this dataset. */ - nextPageToken: string; + nextPageToken?: string; /** * A partial list of data points contained in the dataset, ordered by * largest endTimeNanos first. This list is considered complete when * retrieving a small dataset and partial when patching a dataset or * retrieving a dataset that is too large to include in a single response. */ - point: Schema$DataPoint[]; + point?: Schema$DataPoint[]; } /** * Definition of a unique source of sensor data. Data sources can expose raw @@ -350,8 +353,8 @@ export namespace fitness_v1 { * Information about an application which feeds sensor data into the * platform. */ - application: Schema$Application; - dataQualityStandard: string[]; + application?: Schema$Application; + dataQualityStandard?: string[]; /** * A unique identifier for the data stream produced by this data source. The * identifier includes: - The physical device's manufacturer, model, @@ -377,7 +380,7 @@ export namespace fitness_v1 { * Android client that did not create the data source. Only the data source * creator will see the developer project number in clear and normal form. */ - dataStreamId: string; + dataStreamId?: string; /** * The stream name uniquely identifies this particular data source among * other data sources of the same type from the same underlying producer. @@ -385,37 +388,37 @@ export namespace fitness_v1 { * application exposes two streams for the same data type, or when a device * has two equivalent sensors. */ - dataStreamName: string; + dataStreamName?: string; /** * The data type defines the schema for a stream of data being collected by, * inserted into, or queried from the Fitness API. */ - dataType: Schema$DataType; + dataType?: Schema$DataType; /** * Representation of an integrated device (such as a phone or a wearable) * that can hold sensors. */ - device: Schema$Device; + device?: Schema$Device; /** * An end-user visible name for this data source. */ - name: string; + name?: string; /** * A constant describing the type of this data source. Indicates whether * this data source produces raw or derived data. */ - type: string; + type?: string; } export interface Schema$DataType { /** * A field represents one dimension of a data type. */ - field: Schema$DataTypeField[]; + field?: Schema$DataTypeField[]; /** * Each data type has a unique, namespaced, name. All data types in the * com.google namespace are shared as part of the platform. */ - name: string; + name?: string; } /** * In case of multi-dimensional data (such as an accelerometer with x, y, and @@ -428,13 +431,13 @@ export namespace fitness_v1 { /** * The different supported formats for each field in a data type. */ - format: string; + format?: string; /** * Defines the name and format of data. Unlike data type names, field names * are not namespaced, and only need to be unique within the data type. */ - name: string; - optional: boolean; + name?: string; + optional?: boolean; } /** * Representation of an integrated device (such as a phone or a wearable) that @@ -452,53 +455,53 @@ export namespace fitness_v1 { /** * Manufacturer of the product/hardware. */ - manufacturer: string; + manufacturer?: string; /** * End-user visible model name for the device. */ - model: string; + model?: string; /** * A constant representing the type of the device. */ - type: string; + type?: string; /** * The serial number or other unique ID for the hardware. This field is * obfuscated when read by any REST or Android client that did not create * the data source. Only the data source creator will see the uid field in * clear and normal form. */ - uid: string; + uid?: string; /** * Version string for the device hardware/software. */ - version: string; + version?: string; } export interface Schema$ListDataPointChangesResponse { /** * The data stream ID of the data source with data point changes. */ - dataSourceId: string; + dataSourceId?: string; /** * Deleted data points for the user. Note, for modifications this should be * parsed before handling insertions. */ - deletedDataPoint: Schema$DataPoint[]; + deletedDataPoint?: Schema$DataPoint[]; /** * Inserted data points for the user. */ - insertedDataPoint: Schema$DataPoint[]; + insertedDataPoint?: Schema$DataPoint[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListDataSourcesResponse { /** * A previously created data source. */ - dataSource: Schema$DataSource[]; + dataSource?: Schema$DataSource[]; } export interface Schema$ListSessionsResponse { /** @@ -506,22 +509,22 @@ export namespace fitness_v1 { * sessions deleted with original end times that are within the startTime * and endTime frame. */ - deletedSession: Schema$Session[]; + deletedSession?: Schema$Session[]; /** * Flag to indicate server has more data to transfer */ - hasMoreData: boolean; + hasMoreData?: boolean; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * Sessions with an end time that is between startTime and endTime of the * request. */ - session: Schema$Session[]; + session?: Schema$Session[]; } /** * Holder object for the value of an entry in a map field of a data point. A @@ -531,7 +534,7 @@ export namespace fitness_v1 { /** * Floating point value. */ - fpVal: number; + fpVal?: number; } /** * Sessions contain metadata, such as a user-friendly name and time interval @@ -545,40 +548,40 @@ export namespace fitness_v1 { * should also be inserted via a com.google.activity.segment data point with * a STILL activity value */ - activeTimeMillis: string; + activeTimeMillis?: string; /** * The type of activity this session represents. */ - activityType: number; + activityType?: number; /** * The application that created the session. */ - application: Schema$Application; + application?: Schema$Application; /** * A description for this session. */ - description: string; + description?: string; /** * An end time, in milliseconds since epoch, inclusive. */ - endTimeMillis: string; + endTimeMillis?: string; /** * A client-generated identifier that is unique across all sessions owned by * this particular user. */ - id: string; + id?: string; /** * A timestamp that indicates when the session was last modified. */ - modifiedTimeMillis: string; + modifiedTimeMillis?: string; /** * A human readable name of the session. */ - name: string; + name?: string; /** * A start time, in milliseconds since epoch, inclusive. */ - startTimeMillis: string; + startTimeMillis?: string; } /** * Holder object for the value of a single field in a data point. A field @@ -589,30 +592,31 @@ export namespace fitness_v1 { /** * Floating point value. When this is set, other values must not be set. */ - fpVal: number; + fpVal?: number; /** * Integer value. When this is set, other values must not be set. */ - intVal: number; + intVal?: number; /** * Map value. The valid key space and units for the corresponding value of * each entry should be documented as part of the data type definition. Keys * should be kept small whenever possible. Data streams with large keys and * high data frequency may be down sampled. */ - mapVal: Schema$ValueMapValEntry[]; + mapVal?: Schema$ValueMapValEntry[]; /** * String value. When this is set, other values must not be set. Strings * should be kept small whenever possible. Data streams with large string * values and high data frequency may be down sampled. */ - stringVal: string; + stringVal?: string; } export interface Schema$ValueMapValEntry { - key: string; - value: Schema$MapValue; + key?: string; + value?: Schema$MapValue; } + export class Resource$Users { root: Fitness; dataset: Resource$Users$Dataset; @@ -630,6 +634,8 @@ export namespace fitness_v1 { return this.root; } } + + export class Resource$Users$Dataset { root: Fitness; constructor(root: Fitness) { @@ -658,26 +664,39 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - aggregate(params?: any, options?: MethodOptions): - AxiosPromise; aggregate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Dataset$Aggregate, + options?: MethodOptions): AxiosPromise; aggregate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Dataset$Aggregate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + aggregate( + params: Params$Resource$Users$Dataset$Aggregate, + callback: BodyResponseCallback): void; + aggregate(callback: BodyResponseCallback): void; + aggregate( + paramsOrCallback?: Params$Resource$Users$Dataset$Aggregate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Dataset$Aggregate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Dataset$Aggregate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -700,6 +719,24 @@ export namespace fitness_v1 { } } + export interface Params$Resource$Users$Dataset$Aggregate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Aggregate data for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$AggregateRequest; + } + + export class Resource$Users$Datasources { root: Fitness; dataPointChanges: Resource$Users$Datasources$Datapointchanges; @@ -737,26 +774,39 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Datasources$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Datasources$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Users$Datasources$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Users$Datasources$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Datasources$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -793,26 +843,39 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Datasources$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Datasources$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Datasources$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Datasources$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Datasources$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -849,23 +912,35 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Datasources$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Datasources$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Datasources$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Datasources$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Datasources$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -905,28 +980,40 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Users$Datasources$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Users$Datasources$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$Datasources$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Users$Datasources$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Datasources$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -966,26 +1053,39 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Datasources$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Datasources$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Datasources$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Datasources$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Datasources$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1026,26 +1126,39 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Datasources$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Users$Datasources$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Datasources$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Datasources$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Datasources$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1068,6 +1181,113 @@ export namespace fitness_v1 { } } } + + export interface Params$Resource$Users$Datasources$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Create the data source for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$DataSource; + } + export interface Params$Resource$Users$Datasources$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data stream ID of the data source to delete. + */ + dataSourceId?: string; + /** + * Retrieve a data source for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Datasources$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data stream ID of the data source to retrieve. + */ + dataSourceId?: string; + /** + * Retrieve a data source for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Datasources$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The names of data types to include in the list. If not specified, all + * data sources will be returned. + */ + dataTypeName?: string; + /** + * List data sources for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Datasources$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data stream ID of the data source to update. + */ + dataSourceId?: string; + /** + * Update the data source for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$DataSource; + } + export interface Params$Resource$Users$Datasources$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data stream ID of the data source to update. + */ + dataSourceId?: string; + /** + * Update the data source for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$DataSource; + } + export class Resource$Users$Datasources$Datapointchanges { root: Fitness; constructor(root: Fitness) { @@ -1095,29 +1315,45 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Users$Datasources$Datapointchanges$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Datasources$Datapointchanges$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Users$Datasources$Datapointchanges$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Users$Datasources$Datapointchanges$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Datasources$Datapointchanges$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Datapointchanges$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1144,6 +1380,35 @@ export namespace fitness_v1 { } } + export interface Params$Resource$Users$Datasources$Datapointchanges$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The data stream ID of the data source that created the dataset. + */ + dataSourceId?: string; + /** + * If specified, no more than this many data point changes will be included + * in the response. + */ + limit?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * nextPageToken from the previous response. + */ + pageToken?: string; + /** + * List data points for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + + export class Resource$Users$Datasources$Datasets { root: Fitness; constructor(root: Fitness) { @@ -1178,22 +1443,37 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Datasources$Datasets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Datasources$Datasets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Datasources$Datasets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Datasources$Datasets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Datasources$Datasets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Datasets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1238,23 +1518,34 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Datasources$Datasets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Datasources$Datasets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Datasources$Datasets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Datasources$Datasets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Datasources$Datasets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Datasets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1298,25 +1589,38 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Datasources$Datasets$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Datasources$Datasets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Datasources$Datasets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Datasources$Datasets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Datasources$Datasets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Datasources$Datasets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1341,6 +1645,109 @@ export namespace fitness_v1 { } } + export interface Params$Resource$Users$Datasources$Datasets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The client's current time in milliseconds since epoch. + */ + currentTimeMillis?: string; + /** + * Dataset identifier that is a composite of the minimum data point start + * time and maximum data point end time represented as nanoseconds from the + * epoch. The ID is formatted like: "startTime-endTime" where startTime and + * endTime are 64 bit integers. + */ + datasetId?: string; + /** + * The data stream ID of the data source that created the dataset. + */ + dataSourceId?: string; + /** + * When the operation was performed on the client. + */ + modifiedTimeMillis?: string; + /** + * Delete a dataset for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Datasources$Datasets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Dataset identifier that is a composite of the minimum data point start + * time and maximum data point end time represented as nanoseconds from the + * epoch. The ID is formatted like: "startTime-endTime" where startTime and + * endTime are 64 bit integers. + */ + datasetId?: string; + /** + * The data stream ID of the data source that created the dataset. + */ + dataSourceId?: string; + /** + * If specified, no more than this many data points will be included in the + * dataset. If there are more data points in the dataset, nextPageToken will + * be set in the dataset response. + */ + limit?: number; + /** + * The continuation token, which is used to page through large datasets. To + * get the next page of a dataset, set this parameter to the value of + * nextPageToken from the previous response. Each subsequent call will yield + * a partial dataset with data point end timestamps that are strictly + * smaller than those in the previous partial response. + */ + pageToken?: string; + /** + * Retrieve a dataset for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Datasources$Datasets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The client's current time in milliseconds since epoch. Note that the + * minStartTimeNs and maxEndTimeNs properties in the request body are in + * nanoseconds instead of milliseconds. + */ + currentTimeMillis?: string; + /** + * Dataset identifier that is a composite of the minimum data point start + * time and maximum data point end time represented as nanoseconds from the + * epoch. The ID is formatted like: "startTime-endTime" where startTime and + * endTime are 64 bit integers. + */ + datasetId?: string; + /** + * The data stream ID of the data source that created the dataset. + */ + dataSourceId?: string; + /** + * Patch a dataset for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Dataset; + } + + export class Resource$Users$Sessions { root: Fitness; @@ -1368,22 +1775,37 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sessions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Sessions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Sessions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Sessions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sessions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sessions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1422,28 +1844,39 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Users$Sessions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Sessions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Sessions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Sessions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sessions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sessions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1481,25 +1914,38 @@ export namespace fitness_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sessions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Users$Sessions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Users$Sessions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Sessions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sessions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sessions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1521,4 +1967,83 @@ export namespace fitness_v1 { } } } + + export interface Params$Resource$Users$Sessions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The client's current time in milliseconds since epoch. + */ + currentTimeMillis?: string; + /** + * The ID of the session to be deleted. + */ + sessionId?: string; + /** + * Delete a session for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Sessions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An RFC3339 timestamp. Only sessions ending between the start and end + * times will be included in the response. + */ + endTime?: string; + /** + * If true, deleted sessions will be returned. When set to true, sessions + * returned in this response will only have an ID and will not have any + * other fields. + */ + includeDeleted?: boolean; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * nextPageToken from the previous response. + */ + pageToken?: string; + /** + * An RFC3339 timestamp. Only sessions ending between the start and end + * times will be included in the response. + */ + startTime?: string; + /** + * List sessions for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + } + export interface Params$Resource$Users$Sessions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The client's current time in milliseconds since epoch. + */ + currentTimeMillis?: string; + /** + * The ID of the session to be created. + */ + sessionId?: string; + /** + * Create sessions for the person identified. Use me to indicate the + * authenticated user. Only me is supported at this time. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Session; + } } diff --git a/src/apis/fusiontables/v1.ts b/src/apis/fusiontables/v1.ts index 2fca0720139..2597ab3b4e0 100644 --- a/src/apis/fusiontables/v1.ts +++ b/src/apis/fusiontables/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace fusiontables_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Fusion Tables API * @@ -83,29 +86,29 @@ export namespace fusiontables_v1 { /** * Color of line or the interior of a polygon in #RRGGBB format. */ - color: string; + color?: string; /** * Icon name used for a point. */ - icon: string; + icon?: string; /** * Maximum value in the selected column for a row to be styled according to * the bucket color, opacity, icon, or weight. */ - max: number; + max?: number; /** * Minimum value in the selected column for a row to be styled according to * the bucket color, opacity, icon, or weight. */ - min: number; + min?: number; /** * Opacity of the color: 0.0 (transparent) to 1.0 (opaque). */ - opacity: number; + opacity?: number; /** * Width of a line (in pixels). */ - weight: number; + weight?: number; } /** * Specifies the id, name and type of a column in a table. @@ -115,33 +118,33 @@ export namespace fusiontables_v1 { * Optional identifier of the base column. If present, this column is * derived from the specified base column. */ - baseColumn: any; + baseColumn?: any; /** * Identifier for the column. */ - columnId: number; + columnId?: number; /** * Optional column description. */ - description: string; + description?: string; /** * Optional column predicate. Used to map table to graph data model * (subject,predicate,object) See * http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model */ - graph_predicate: string; + graph_predicate?: string; /** * Type name: a template for an individual column. */ - kind: string; + kind?: string; /** * Required name of the column. */ - name: string; + name?: string; /** * Required type of the column. */ - type: string; + type?: string; } /** * Represents a list of columns in a table. @@ -150,20 +153,20 @@ export namespace fusiontables_v1 { /** * List of all requested columns. */ - items: Schema$Column[]; + items?: Schema$Column[]; /** * Type name: a list of all columns. */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of columns for the table. */ - totalItems: number; + totalItems?: number; } /** * Represents a Geometry object. @@ -172,12 +175,12 @@ export namespace fusiontables_v1 { /** * The list of geometries in this geometry collection. */ - geometries: any[]; - geometry: any; + geometries?: any[]; + geometry?: any; /** * Type: A collection of geometries. */ - type: string; + type?: string; } /** * Represents an import request. @@ -186,11 +189,11 @@ export namespace fusiontables_v1 { /** * Type name: a template for an import request. */ - kind: string; + kind?: string; /** * The number of rows received from the import request. */ - numRowsReceived: string; + numRowsReceived?: string; } /** * Represents a line geometry. @@ -199,11 +202,11 @@ export namespace fusiontables_v1 { /** * The coordinates that define the line. */ - coordinates: number[][]; + coordinates?: number[][]; /** * Type: A line geometry. */ - type: string; + type?: string; } /** * Represents a LineStyle within a StyleSetting @@ -212,25 +215,25 @@ export namespace fusiontables_v1 { /** * Color of the line in #RRGGBB format. */ - strokeColor: string; + strokeColor?: string; /** * Column-value, gradient or buckets styler that is used to determine the * line color and opacity. */ - strokeColorStyler: Schema$StyleFunction; + strokeColorStyler?: Schema$StyleFunction; /** * Opacity of the line : 0.0 (transparent) to 1.0 (opaque). */ - strokeOpacity: number; + strokeOpacity?: number; /** * Width of the line in pixels. */ - strokeWeight: number; + strokeWeight?: number; /** * Column-value or bucket styler that is used to determine the width of the * line. */ - strokeWeightStyler: Schema$StyleFunction; + strokeWeightStyler?: Schema$StyleFunction; } /** * Represents a point object. @@ -239,11 +242,11 @@ export namespace fusiontables_v1 { /** * The coordinates that define the point. */ - coordinates: number[]; + coordinates?: number[]; /** * Point: A point geometry. */ - type: string; + type?: string; } /** * Represents a PointStyle within a StyleSetting @@ -253,11 +256,11 @@ export namespace fusiontables_v1 { * Name of the icon. Use values defined in * http://www.google.com/fusiontables/DataSource?dsrcid=308519 */ - iconName: string; + iconName?: string; /** * Column or a bucket value from which the icon name is to be determined. */ - iconStyler: Schema$StyleFunction; + iconStyler?: Schema$StyleFunction; } /** * Represents a polygon object. @@ -266,11 +269,11 @@ export namespace fusiontables_v1 { /** * The coordinates that define the polygon. */ - coordinates: number[][][]; + coordinates?: number[][][]; /** * Type: A polygon geometry. */ - type: string; + type?: string; } /** * Represents a PolygonStyle within a StyleSetting @@ -279,39 +282,39 @@ export namespace fusiontables_v1 { /** * Color of the interior of the polygon in #RRGGBB format. */ - fillColor: string; + fillColor?: string; /** * Column-value, gradient, or bucket styler that is used to determine the * interior color and opacity of the polygon. */ - fillColorStyler: Schema$StyleFunction; + fillColorStyler?: Schema$StyleFunction; /** * Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 * (opaque). */ - fillOpacity: number; + fillOpacity?: number; /** * Color of the polygon border in #RRGGBB format. */ - strokeColor: string; + strokeColor?: string; /** * Column-value, gradient or buckets styler that is used to determine the * border color and opacity. */ - strokeColorStyler: Schema$StyleFunction; + strokeColorStyler?: Schema$StyleFunction; /** * Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). */ - strokeOpacity: number; + strokeOpacity?: number; /** * Width of the polyon border in pixels. */ - strokeWeight: number; + strokeWeight?: number; /** * Column-value or bucket styler that is used to determine the width of the * polygon border. */ - strokeWeightStyler: Schema$StyleFunction; + strokeWeightStyler?: Schema$StyleFunction; } /** * Represents a response to an sql statement. @@ -320,17 +323,17 @@ export namespace fusiontables_v1 { /** * Columns in the table. */ - columns: string[]; + columns?: string[]; /** * Type name: a template for an individual table. */ - kind: string; + kind?: string; /** * The rows in the table. For each cell we print out whatever cell value * (e.g., numeric, string) exists. Thus it is important that each cell * contains only one value. */ - rows: any[][]; + rows?: any[][]; } /** * Represents a StyleFunction within a StyleSetting @@ -340,16 +343,16 @@ export namespace fusiontables_v1 { * Bucket function that assigns a style based on the range a column value * falls into. */ - buckets: Schema$Bucket[]; + buckets?: Schema$Bucket[]; /** * Name of the column whose value is used in the style. */ - columnName: string; + columnName?: string; /** * Gradient function that interpolates a range of colors based on column * value. */ - gradient: any; + gradient?: any; /** * Stylers can be one of three kinds: "fusiontables#fromColumn" if * the column value is to be used as is, i.e., the column values can have @@ -359,7 +362,7 @@ export namespace fusiontables_v1 { * "fusiontables#buckets" if the styling is to based on the bucket * into which the the column value falls. */ - kind: string; + kind?: string; } /** * Represents a complete StyleSettings object. The primary key is a @@ -372,31 +375,31 @@ export namespace fusiontables_v1 { * have any one or all of them, a style definition can have point, line and * polygon style definitions. */ - kind: string; + kind?: string; /** * Style definition for points in the table. */ - markerOptions: Schema$PointStyle; + markerOptions?: Schema$PointStyle; /** * Optional name for the style setting. */ - name: string; + name?: string; /** * Style definition for polygons in the table. */ - polygonOptions: Schema$PolygonStyle; + polygonOptions?: Schema$PolygonStyle; /** * Style definition for lines in the table. */ - polylineOptions: Schema$LineStyle; + polylineOptions?: Schema$LineStyle; /** * Identifier for the style setting (unique only within tables). */ - styleId: number; + styleId?: number; /** * Identifier for the table. */ - tableId: string; + tableId?: string; } /** * Represents a list of styles for a given table. @@ -405,20 +408,20 @@ export namespace fusiontables_v1 { /** * All requested style settings. */ - items: Schema$StyleSetting[]; + items?: Schema$StyleSetting[]; /** * Type name: in this case, a list of style settings. */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of styles for the table. */ - totalItems: number; + totalItems?: number; } /** * Represents a table. Specifies the name, whether it is exportable, @@ -428,43 +431,43 @@ export namespace fusiontables_v1 { /** * Optional attribution assigned to the table. */ - attribution: string; + attribution?: string; /** * Optional link for attribution. */ - attributionLink: string; + attributionLink?: string; /** * Optional base table identifier if this table is a view or merged table. */ - baseTableIds: string[]; + baseTableIds?: string[]; /** * Columns in the table. */ - columns: Schema$Column[]; + columns?: Schema$Column[]; /** * Optional description assigned to the table. */ - description: string; + description?: string; /** * Variable for whether table is exportable. */ - isExportable: boolean; + isExportable?: boolean; /** * Type name: a template for an individual table. */ - kind: string; + kind?: string; /** * Name assigned to a table. */ - name: string; + name?: string; /** * Optional sql that encodes the table definition for derived tables. */ - sql: string; + sql?: string; /** * Encrypted unique alphanumeric identifier for the table. */ - tableId: string; + tableId?: string; } /** * Represents a list of tables. @@ -473,16 +476,16 @@ export namespace fusiontables_v1 { /** * List of all requested tables. */ - items: Schema$Table[]; + items?: Schema$Table[]; /** * Type name: a list of all tables. */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; } /** * Specifies the identifier, name, and type of a task in a table. @@ -491,20 +494,20 @@ export namespace fusiontables_v1 { /** * Type of the resource. This is always "fusiontables#task". */ - kind: string; + kind?: string; /** * An indication of task progress. */ - progress: string; + progress?: string; /** * false while the table is busy with some other task. true if this * background task is currently running. */ - started: boolean; + started?: boolean; /** * Identifier for the task. */ - taskId: string; + taskId?: string; /** * Type of background task. One of DELETE_ROWS Deletes one or more rows * from the table. ADD_ROWS "Adds one or more rows to a table. Includes @@ -512,7 +515,7 @@ export namespace fusiontables_v1 { * table. ADD_COLUMN Adds a new column to the table. CHANGE_TYPE Changes the * type of a column. */ - type: string; + type?: string; } /** * Represents a list of tasks for a table. @@ -521,20 +524,20 @@ export namespace fusiontables_v1 { /** * List of all requested tasks. */ - items: Schema$Task[]; + items?: Schema$Task[]; /** * Type of the resource. This is always "fusiontables#taskList". */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of tasks for the table. */ - totalItems: number; + totalItems?: number; } /** * Represents the contents of InfoWindow templates. @@ -544,33 +547,33 @@ export namespace fusiontables_v1 { * List of columns from which the template is to be automatically * constructed. Only one of body or automaticColumns can be specified. */ - automaticColumnNames: string[]; + automaticColumnNames?: string[]; /** * Body of the template. It contains HTML with {column_name} to insert * values from a particular column. The body is sanitized to remove certain * tags, e.g., script. Only one of body or automaticColumns can be * specified. */ - body: string; + body?: string; /** * Type name: a template for the info window contents. The template can * either include an HTML body or a list of columns from which the template * is computed automatically. */ - kind: string; + kind?: string; /** * Optional name assigned to a template. */ - name: string; + name?: string; /** * Identifier for the table for which the template is defined. */ - tableId: string; + tableId?: string; /** * Identifier for the template, unique within the context of a particular * table. */ - templateId: number; + templateId?: number; } /** * Represents a list of templates for a given table. @@ -579,22 +582,23 @@ export namespace fusiontables_v1 { /** * List of all requested templates. */ - items: Schema$Template[]; + items?: Schema$Template[]; /** * Type name: a list of all templates. */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of templates for the table. */ - totalItems: number; + totalItems?: number; } + export class Resource$Column { root: Fusiontables; constructor(root: Fusiontables) { @@ -620,22 +624,35 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Column$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Column$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Column$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -672,23 +689,33 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Column$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Column$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Column$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Column$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -725,25 +752,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Column$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Column$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Column$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -780,26 +818,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Column$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Column$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Column$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -837,25 +886,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Column$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Column$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Column$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -893,25 +953,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Column$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Column$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Column$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -935,6 +1006,110 @@ export namespace fusiontables_v1 { } } + export interface Params$Resource$Column$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column being deleted. + */ + columnId?: string; + /** + * Table from which the column is being deleted. + */ + tableId?: string; + } + export interface Params$Resource$Column$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column that is being requested. + */ + columnId?: string; + /** + * Table to which the column belongs. + */ + tableId?: string; + } + export interface Params$Resource$Column$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table for which a new column is being added. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Column; + } + export interface Params$Resource$Column$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of columns to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Table whose columns are being listed. + */ + tableId?: string; + } + export interface Params$Resource$Column$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column that is being updated. + */ + columnId?: string; + /** + * Table for which the column is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Column; + } + export interface Params$Resource$Column$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column that is being updated. + */ + columnId?: string; + /** + * Table for which the column is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Column; + } + + export class Resource$Query { root: Fusiontables; constructor(root: Fusiontables) { @@ -962,24 +1137,34 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sql(params?: any, + sql(params?: Params$Resource$Query$Sql, options?: MethodOptions): AxiosPromise; - sql(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - sql(params?: any, - options?: MethodOptions|BodyResponseCallback, + sql(params: Params$Resource$Query$Sql, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + sql(params: Params$Resource$Query$Sql, + callback: BodyResponseCallback): void; + sql(callback: BodyResponseCallback): void; + sql(paramsOrCallback?: Params$Resource$Query$Sql| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Query$Sql; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Query$Sql; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1016,26 +1201,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sqlGet(params?: any, options?: MethodOptions): + sqlGet(params?: Params$Resource$Query$Sqlget, options?: MethodOptions): AxiosPromise; sqlGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Query$Sqlget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; sqlGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Query$Sqlget, + callback: BodyResponseCallback): void; + sqlGet(callback: BodyResponseCallback): void; + sqlGet( + paramsOrCallback?: Params$Resource$Query$Sqlget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Query$Sqlget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Query$Sqlget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1058,6 +1254,48 @@ export namespace fusiontables_v1 { } } + export interface Params$Resource$Query$Sql { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Should column names be included (in the first row)?. Default is true. + */ + hdrs?: boolean; + /** + * An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement. + */ + sql?: string; + /** + * Should typed values be returned in the (JSON) response -- numbers for + * numeric values and parsed geometries for KML values? Default is true. + */ + typed?: boolean; + } + export interface Params$Resource$Query$Sqlget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Should column names be included (in the first row)?. Default is true. + */ + hdrs?: boolean; + /** + * An SQL SELECT/SHOW/DESCRIBE statement. + */ + sql?: string; + /** + * Should typed values be returned in the (JSON) response -- numbers for + * numeric values and parsed geometries for KML values? Default is true. + */ + typed?: boolean; + } + + export class Resource$Style { root: Fusiontables; constructor(root: Fusiontables) { @@ -1083,22 +1321,35 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Style$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Style$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Style$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1135,24 +1386,34 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Style$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Style$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Style$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Style$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1189,26 +1450,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Style$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Style$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Style$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1245,26 +1517,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Style$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Style$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Style$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1301,26 +1584,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Style$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Style$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Style$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1358,26 +1652,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Style$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Style$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Style$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1401,6 +1706,110 @@ export namespace fusiontables_v1 { } } + export interface Params$Resource$Style$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (within a table) for the style being deleted + */ + styleId?: number; + /** + * Table from which the style is being deleted + */ + tableId?: string; + } + export interface Params$Resource$Style$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (integer) for a specific style in a table + */ + styleId?: number; + /** + * Table to which the requested style belongs + */ + tableId?: string; + } + export interface Params$Resource$Style$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table for which a new style is being added + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$StyleSetting; + } + export interface Params$Resource$Style$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of styles to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Table whose styles are being listed + */ + tableId?: string; + } + export interface Params$Resource$Style$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (within a table) for the style being updated. + */ + styleId?: number; + /** + * Table whose style is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$StyleSetting; + } + export interface Params$Resource$Style$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (within a table) for the style being updated. + */ + styleId?: number; + /** + * Table whose style is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$StyleSetting; + } + + export class Resource$Table { root: Fusiontables; constructor(root: Fusiontables) { @@ -1426,25 +1835,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copy(params?: any, options?: MethodOptions): AxiosPromise; + copy(params?: Params$Resource$Table$Copy, options?: MethodOptions): + AxiosPromise; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Copy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Copy, + callback: BodyResponseCallback): void; + copy(callback: BodyResponseCallback): void; + copy( + paramsOrCallback?: Params$Resource$Table$Copy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Copy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Copy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1479,22 +1899,35 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Table$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Table$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1529,23 +1962,33 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Table$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Table$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Table$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Table$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1588,26 +2031,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importRows(params?: any, options?: MethodOptions): - AxiosPromise; importRows( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Table$Importrows, + options?: MethodOptions): AxiosPromise; + importRows( + params: Params$Resource$Table$Importrows, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; importRows( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Importrows, + callback: BodyResponseCallback): void; + importRows(callback: BodyResponseCallback): void; + importRows( + paramsOrCallback?: Params$Resource$Table$Importrows| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Importrows; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Importrows; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1649,26 +2103,38 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importTable(params?: any, options?: MethodOptions): - AxiosPromise; importTable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Table$Importtable, + options?: MethodOptions): AxiosPromise; + importTable( + params: Params$Resource$Table$Importtable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; importTable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Importtable, + callback: BodyResponseCallback): void; + importTable(callback: BodyResponseCallback): void; + importTable( + paramsOrCallback?: Params$Resource$Table$Importtable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Table$Importtable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Importtable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1705,25 +2171,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Table$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Table$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1759,25 +2236,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Table$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Table$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1816,25 +2305,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Table$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Table$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1872,25 +2372,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Table$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Table$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1913,6 +2424,200 @@ export namespace fusiontables_v1 { } } + export interface Params$Resource$Table$Copy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to also copy tabs, styles, and templates. Default is false. + */ + copyPresentation?: boolean; + /** + * ID of the table that is being copied. + */ + tableId?: string; + } + export interface Params$Resource$Table$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the table that is being deleted. + */ + tableId?: string; + } + export interface Params$Resource$Table$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier(ID) for the table being requested. + */ + tableId?: string; + } + export interface Params$Resource$Table$Importrows { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The delimiter used to separate cell values. This can only consist of a + * single character. Default is ','. + */ + delimiter?: string; + /** + * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you + * are unsure of the encoding. + */ + encoding?: string; + /** + * The index of the last line from which to start importing, exclusive. + * Thus, the number of imported lines is endLine - startLine. If this + * parameter is not provided, the file will be imported until the last line + * of the file. If endLine is negative, then the imported content will + * exclude the last endLine lines. That is, if endline is negative, no line + * will be imported whose index is greater than N + endLine where N is the + * number of lines in the file, and the number of imported lines will be N + + * endLine - startLine. + */ + endLine?: number; + /** + * Whether the CSV must have the same number of values for each row. If + * false, rows with fewer values will be padded with empty values. Default + * is true. + */ + isStrict?: boolean; + /** + * The index of the first line from which to start importing, inclusive. + * Default is 0. + */ + startLine?: number; + /** + * The table into which new rows are being imported. + */ + tableId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Table$Importtable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The delimiter used to separate cell values. This can only consist of a + * single character. Default is ','. + */ + delimiter?: string; + /** + * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you + * are unsure of the encoding. + */ + encoding?: string; + /** + * The name to be assigned to the new table. + */ + name?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Table$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Table$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of styles to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. Optional. + */ + pageToken?: string; + } + export interface Params$Resource$Table$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Should the view definition also be updated? The specified view definition + * replaces the existing one. Only a view can be updated with a new + * definition. + */ + replaceViewDefinition?: boolean; + /** + * ID of the table that is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } + export interface Params$Resource$Table$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Should the view definition also be updated? The specified view definition + * replaces the existing one. Only a view can be updated with a new + * definition. + */ + replaceViewDefinition?: boolean; + /** + * ID of the table that is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } + + export class Resource$Task { root: Fusiontables; constructor(root: Fusiontables) { @@ -1938,22 +2643,35 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Task$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Task$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Task$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Task$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Task$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Task$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1990,21 +2708,33 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Task$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Task$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Task$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Task$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Task$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Task$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2043,25 +2773,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Task$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Task$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Task$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Task$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Task$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Task$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2084,6 +2825,61 @@ export namespace fusiontables_v1 { } } + export interface Params$Resource$Task$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table from which the task is being deleted. + */ + tableId?: string; + /** + * + */ + taskId?: string; + } + export interface Params$Resource$Task$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the task belongs. + */ + tableId?: string; + /** + * + */ + taskId?: string; + } + export interface Params$Resource$Task$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of columns to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * + */ + pageToken?: string; + /** + * + */ + startIndex?: number; + /** + * Table whose tasks are being listed. + */ + tableId?: string; + } + + export class Resource$Template { root: Fusiontables; constructor(root: Fusiontables) { @@ -2109,22 +2905,35 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Template$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Template$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2161,23 +2970,33 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Template$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Template$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Template$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Template$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2214,26 +3033,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Template$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Template$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Template$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2270,26 +3099,37 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Template$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Template$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Template$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2326,25 +3166,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Template$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Template$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2382,26 +3233,36 @@ export namespace fusiontables_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Template$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Template$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2424,4 +3285,107 @@ export namespace fusiontables_v1 { } } } + + export interface Params$Resource$Template$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table from which the template is being deleted + */ + tableId?: string; + /** + * Identifier for the template which is being deleted + */ + templateId?: number; + } + export interface Params$Resource$Template$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the template belongs + */ + tableId?: string; + /** + * Identifier for the template that is being requested + */ + templateId?: number; + } + export interface Params$Resource$Template$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table for which a new template is being created + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Template; + } + export interface Params$Resource$Template$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of templates to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which results page to return. Optional. + */ + pageToken?: string; + /** + * Identifier for the table whose templates are being requested + */ + tableId?: string; + } + export interface Params$Resource$Template$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the updated template belongs + */ + tableId?: string; + /** + * Identifier for the template that is being updated + */ + templateId?: number; + /** + * Request body metadata + */ + resource?: Schema$Template; + } + export interface Params$Resource$Template$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the updated template belongs + */ + tableId?: string; + /** + * Identifier for the template that is being updated + */ + templateId?: number; + /** + * Request body metadata + */ + resource?: Schema$Template; + } } diff --git a/src/apis/fusiontables/v2.ts b/src/apis/fusiontables/v2.ts index 7a278f761d7..f51df9ad7e4 100644 --- a/src/apis/fusiontables/v2.ts +++ b/src/apis/fusiontables/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace fusiontables_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Fusion Tables API * @@ -83,29 +86,29 @@ export namespace fusiontables_v2 { /** * Color of line or the interior of a polygon in #RRGGBB format. */ - color: string; + color?: string; /** * Icon name used for a point. */ - icon: string; + icon?: string; /** * Maximum value in the selected column for a row to be styled according to * the bucket color, opacity, icon, or weight. */ - max: number; + max?: number; /** * Minimum value in the selected column for a row to be styled according to * the bucket color, opacity, icon, or weight. */ - min: number; + min?: number; /** * Opacity of the color: 0.0 (transparent) to 1.0 (opaque). */ - opacity: number; + opacity?: number; /** * Width of a line (in pixels). */ - weight: number; + weight?: number; } /** * Specifies the details of a column in a table. @@ -115,23 +118,23 @@ export namespace fusiontables_v2 { * Identifier of the base column. If present, this column is derived from * the specified base column. */ - baseColumn: any; + baseColumn?: any; /** * Identifier for the column. */ - columnId: number; + columnId?: number; /** * JSON schema for interpreting JSON in this column. */ - columnJsonSchema: string; + columnJsonSchema?: string; /** * JSON object containing custom column properties. */ - columnPropertiesJson: string; + columnPropertiesJson?: string; /** * Column description. */ - description: string; + description?: string; /** * Format pattern. Acceptable values are DT_DATE_MEDIUMe.g Dec 24, 2008 * DT_DATE_SHORTfor example 12/24/08 DT_DATE_TIME_MEDIUMfor example Dec 24, @@ -159,34 +162,34 @@ export namespace fusiontables_v2 { * STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line of * text STRING_VIDEO_OR_MAPDisplay a video or map thumbnail */ - formatPattern: string; + formatPattern?: string; /** * Column graph predicate. Used to map table to graph data model * (subject,predicate,object) See W3C Graph-based Data Model. */ - graphPredicate: string; + graphPredicate?: string; /** * The kind of item this is. For a column, this is always * fusiontables#column. */ - kind: string; + kind?: string; /** * Name of the column. */ - name: string; + name?: string; /** * Type of the column. */ - type: string; + type?: string; /** * If true, data entered via the web application is validated. */ - validateData: boolean; + validateData?: boolean; /** * List of valid values used to validate data and supply a drop-down list of * values in the web application. */ - validValues: string[]; + validValues?: string[]; } /** * Represents a list of columns in a table. @@ -195,21 +198,21 @@ export namespace fusiontables_v2 { /** * List of all requested columns. */ - items: Schema$Column[]; + items?: Schema$Column[]; /** * The kind of item this is. For a column list, this is always * fusiontables#columnList. */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of columns for the table. */ - totalItems: number; + totalItems?: number; } /** * Represents a Geometry object. @@ -218,12 +221,12 @@ export namespace fusiontables_v2 { /** * The list of geometries in this geometry collection. */ - geometries: any[]; - geometry: any; + geometries?: any[]; + geometry?: any; /** * Type: A collection of geometries. */ - type: string; + type?: string; } /** * Represents an import request. @@ -233,11 +236,11 @@ export namespace fusiontables_v2 { * The kind of item this is. For an import, this is always * fusiontables#import. */ - kind: string; + kind?: string; /** * The number of rows received from the import request. */ - numRowsReceived: string; + numRowsReceived?: string; } /** * Represents a line geometry. @@ -246,11 +249,11 @@ export namespace fusiontables_v2 { /** * The coordinates that define the line. */ - coordinates: number[][]; + coordinates?: number[][]; /** * Type: A line geometry. */ - type: string; + type?: string; } /** * Represents a LineStyle within a StyleSetting @@ -259,25 +262,25 @@ export namespace fusiontables_v2 { /** * Color of the line in #RRGGBB format. */ - strokeColor: string; + strokeColor?: string; /** * Column-value, gradient or buckets styler that is used to determine the * line color and opacity. */ - strokeColorStyler: Schema$StyleFunction; + strokeColorStyler?: Schema$StyleFunction; /** * Opacity of the line : 0.0 (transparent) to 1.0 (opaque). */ - strokeOpacity: number; + strokeOpacity?: number; /** * Width of the line in pixels. */ - strokeWeight: number; + strokeWeight?: number; /** * Column-value or bucket styler that is used to determine the width of the * line. */ - strokeWeightStyler: Schema$StyleFunction; + strokeWeightStyler?: Schema$StyleFunction; } /** * Represents a point object. @@ -286,11 +289,11 @@ export namespace fusiontables_v2 { /** * The coordinates that define the point. */ - coordinates: number[]; + coordinates?: number[]; /** * Point: A point geometry. */ - type: string; + type?: string; } /** * Represents a PointStyle within a StyleSetting @@ -300,11 +303,11 @@ export namespace fusiontables_v2 { * Name of the icon. Use values defined in * http://www.google.com/fusiontables/DataSource?dsrcid=308519 */ - iconName: string; + iconName?: string; /** * Column or a bucket value from which the icon name is to be determined. */ - iconStyler: Schema$StyleFunction; + iconStyler?: Schema$StyleFunction; } /** * Represents a polygon object. @@ -313,11 +316,11 @@ export namespace fusiontables_v2 { /** * The coordinates that define the polygon. */ - coordinates: number[][][]; + coordinates?: number[][][]; /** * Type: A polygon geometry. */ - type: string; + type?: string; } /** * Represents a PolygonStyle within a StyleSetting @@ -326,39 +329,39 @@ export namespace fusiontables_v2 { /** * Color of the interior of the polygon in #RRGGBB format. */ - fillColor: string; + fillColor?: string; /** * Column-value, gradient, or bucket styler that is used to determine the * interior color and opacity of the polygon. */ - fillColorStyler: Schema$StyleFunction; + fillColorStyler?: Schema$StyleFunction; /** * Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 * (opaque). */ - fillOpacity: number; + fillOpacity?: number; /** * Color of the polygon border in #RRGGBB format. */ - strokeColor: string; + strokeColor?: string; /** * Column-value, gradient or buckets styler that is used to determine the * border color and opacity. */ - strokeColorStyler: Schema$StyleFunction; + strokeColorStyler?: Schema$StyleFunction; /** * Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). */ - strokeOpacity: number; + strokeOpacity?: number; /** * Width of the polyon border in pixels. */ - strokeWeight: number; + strokeWeight?: number; /** * Column-value or bucket styler that is used to determine the width of the * polygon border. */ - strokeWeightStyler: Schema$StyleFunction; + strokeWeightStyler?: Schema$StyleFunction; } /** * Represents a response to a SQL statement. @@ -367,18 +370,18 @@ export namespace fusiontables_v2 { /** * Columns in the table. */ - columns: string[]; + columns?: string[]; /** * The kind of item this is. For responses to SQL queries, this is always * fusiontables#sqlresponse. */ - kind: string; + kind?: string; /** * The rows in the table. For each cell we print out whatever cell value * (e.g., numeric, string) exists. Thus it is important that each cell * contains only one value. */ - rows: any[][]; + rows?: any[][]; } /** * Represents a StyleFunction within a StyleSetting @@ -388,16 +391,16 @@ export namespace fusiontables_v2 { * Bucket function that assigns a style based on the range a column value * falls into. */ - buckets: Schema$Bucket[]; + buckets?: Schema$Bucket[]; /** * Name of the column whose value is used in the style. */ - columnName: string; + columnName?: string; /** * Gradient function that interpolates a range of colors based on column * value. */ - gradient: any; + gradient?: any; /** * Stylers can be one of three kinds: "fusiontables#fromColumn if the * column value is to be used as is, i.e., the column values can have colors @@ -407,7 +410,7 @@ export namespace fusiontables_v2 { * fusiontables#buckets if the styling is to based on the bucket into which * the the column value falls. */ - kind: string; + kind?: string; } /** * Represents a complete StyleSettings object. The primary key is a @@ -420,31 +423,31 @@ export namespace fusiontables_v2 { * one or all of them, a style definition can have point, line and polygon * style definitions. */ - kind: string; + kind?: string; /** * Style definition for points in the table. */ - markerOptions: Schema$PointStyle; + markerOptions?: Schema$PointStyle; /** * Optional name for the style setting. */ - name: string; + name?: string; /** * Style definition for polygons in the table. */ - polygonOptions: Schema$PolygonStyle; + polygonOptions?: Schema$PolygonStyle; /** * Style definition for lines in the table. */ - polylineOptions: Schema$LineStyle; + polylineOptions?: Schema$LineStyle; /** * Identifier for the style setting (unique only within tables). */ - styleId: number; + styleId?: number; /** * Identifier for the table. */ - tableId: string; + tableId?: string; } /** * Represents a list of styles for a given table. @@ -453,21 +456,21 @@ export namespace fusiontables_v2 { /** * All requested style settings. */ - items: Schema$StyleSetting[]; + items?: Schema$StyleSetting[]; /** * The kind of item this is. For a style list, this is always * fusiontables#styleSettingList . */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more styles left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of styles for the table. */ - totalItems: number; + totalItems?: number; } /** * Represents a table. @@ -476,55 +479,55 @@ export namespace fusiontables_v2 { /** * Attribution assigned to the table. */ - attribution: string; + attribution?: string; /** * Optional link for attribution. */ - attributionLink: string; + attributionLink?: string; /** * Base table identifier if this table is a view or merged table. */ - baseTableIds: string[]; + baseTableIds?: string[]; /** * Default JSON schema for validating all JSON column properties. */ - columnPropertiesJsonSchema: string; + columnPropertiesJsonSchema?: string; /** * Columns in the table. */ - columns: Schema$Column[]; + columns?: Schema$Column[]; /** * Description assigned to the table. */ - description: string; + description?: string; /** * Variable for whether table is exportable. */ - isExportable: boolean; + isExportable?: boolean; /** * The kind of item this is. For a table, this is always fusiontables#table. */ - kind: string; + kind?: string; /** * Name assigned to a table. */ - name: string; + name?: string; /** * SQL that encodes the table definition for derived tables. */ - sql: string; + sql?: string; /** * Encrypted unique alphanumeric identifier for the table. */ - tableId: string; + tableId?: string; /** * JSON object containing custom table properties. */ - tablePropertiesJson: string; + tablePropertiesJson?: string; /** * JSON schema for validating the JSON table properties. */ - tablePropertiesJsonSchema: string; + tablePropertiesJsonSchema?: string; } /** * Represents a list of tables. @@ -533,17 +536,17 @@ export namespace fusiontables_v2 { /** * List of all requested tables. */ - items: Schema$Table[]; + items?: Schema$Table[]; /** * The kind of item this is. For table list, this is always * fusiontables#tableList. */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; } /** * A background task on a table, initiated for time- or resource-consuming @@ -553,24 +556,24 @@ export namespace fusiontables_v2 { /** * Type of the resource. This is always "fusiontables#task". */ - kind: string; + kind?: string; /** * Task percentage completion. */ - progress: string; + progress?: string; /** * false while the table is busy with some other task. true if this * background task is currently running. */ - started: boolean; + started?: boolean; /** * Identifier for the task. */ - taskId: string; + taskId?: string; /** * Type of background task. */ - type: string; + type?: string; } /** * Represents a list of tasks for a table. @@ -579,20 +582,20 @@ export namespace fusiontables_v2 { /** * List of all requested tasks. */ - items: Schema$Task[]; + items?: Schema$Task[]; /** * Type of the resource. This is always "fusiontables#taskList". */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of tasks for the table. */ - totalItems: number; + totalItems?: number; } /** * Represents the contents of InfoWindow templates. @@ -602,32 +605,32 @@ export namespace fusiontables_v2 { * List of columns from which the template is to be automatically * constructed. Only one of body or automaticColumns can be specified. */ - automaticColumnNames: string[]; + automaticColumnNames?: string[]; /** * Body of the template. It contains HTML with {column_name} to insert * values from a particular column. The body is sanitized to remove certain * tags, e.g., script. Only one of body or automaticColumns can be * specified. */ - body: string; + body?: string; /** * The kind of item this is. For a template, this is always * fusiontables#template. */ - kind: string; + kind?: string; /** * Optional name assigned to a template. */ - name: string; + name?: string; /** * Identifier for the table for which the template is defined. */ - tableId: string; + tableId?: string; /** * Identifier for the template, unique within the context of a particular * table. */ - templateId: number; + templateId?: number; } /** * Represents a list of templates for a given table. @@ -636,23 +639,24 @@ export namespace fusiontables_v2 { /** * List of all requested templates. */ - items: Schema$Template[]; + items?: Schema$Template[]; /** * The kind of item this is. For a template list, this is always * fusiontables#templateList . */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. No token is displayed * if there are no more pages left. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of templates for the table. */ - totalItems: number; + totalItems?: number; } + export class Resource$Column { root: Fusiontables; constructor(root: Fusiontables) { @@ -678,22 +682,35 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Column$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Column$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Column$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -730,23 +747,33 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Column$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Column$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Column$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Column$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -783,25 +810,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Column$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Column$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Column$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -838,26 +876,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Column$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Column$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Column$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -895,25 +944,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Column$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Column$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Column$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -951,25 +1011,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Column$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Column$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Column$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Column$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Column$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Column$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -993,6 +1064,110 @@ export namespace fusiontables_v2 { } } + export interface Params$Resource$Column$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column being deleted. + */ + columnId?: string; + /** + * Table from which the column is being deleted. + */ + tableId?: string; + } + export interface Params$Resource$Column$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column that is being requested. + */ + columnId?: string; + /** + * Table to which the column belongs. + */ + tableId?: string; + } + export interface Params$Resource$Column$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table for which a new column is being added. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Column; + } + export interface Params$Resource$Column$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of columns to return. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. + */ + pageToken?: string; + /** + * Table whose columns are being listed. + */ + tableId?: string; + } + export interface Params$Resource$Column$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column that is being updated. + */ + columnId?: string; + /** + * Table for which the column is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Column; + } + export interface Params$Resource$Column$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name or identifier for the column that is being updated. + */ + columnId?: string; + /** + * Table for which the column is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Column; + } + + export class Resource$Query { root: Fusiontables; constructor(root: Fusiontables) { @@ -1020,24 +1195,34 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sql(params?: any, + sql(params?: Params$Resource$Query$Sql, options?: MethodOptions): AxiosPromise; - sql(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - sql(params?: any, - options?: MethodOptions|BodyResponseCallback, + sql(params: Params$Resource$Query$Sql, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + sql(params: Params$Resource$Query$Sql, + callback: BodyResponseCallback): void; + sql(callback: BodyResponseCallback): void; + sql(paramsOrCallback?: Params$Resource$Query$Sql| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Query$Sql; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Query$Sql; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1075,26 +1260,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sqlGet(params?: any, options?: MethodOptions): + sqlGet(params?: Params$Resource$Query$Sqlget, options?: MethodOptions): AxiosPromise; sqlGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Query$Sqlget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + sqlGet( + params: Params$Resource$Query$Sqlget, + callback: BodyResponseCallback): void; + sqlGet(callback: BodyResponseCallback): void; sqlGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Query$Sqlget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Query$Sqlget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Query$Sqlget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1117,6 +1313,49 @@ export namespace fusiontables_v2 { } } + export interface Params$Resource$Query$Sql { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether column names are included in the first row. Default is true. + */ + hdrs?: boolean; + /** + * A Fusion Tables SQL statement, which can be any of - SELECT - INSERT - + * UPDATE - DELETE - SHOW - DESCRIBE - CREATE + */ + sql?: string; + /** + * Whether typed values are returned in the (JSON) response: numbers for + * numeric values and parsed geometries for KML values. Default is true. + */ + typed?: boolean; + } + export interface Params$Resource$Query$Sqlget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether column names are included (in the first row). Default is true. + */ + hdrs?: boolean; + /** + * A SQL statement which can be any of - SELECT - SHOW - DESCRIBE + */ + sql?: string; + /** + * Whether typed values are returned in the (JSON) response: numbers for + * numeric values and parsed geometries for KML values. Default is true. + */ + typed?: boolean; + } + + export class Resource$Style { root: Fusiontables; constructor(root: Fusiontables) { @@ -1142,22 +1381,35 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Style$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Style$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Style$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1194,24 +1446,34 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Style$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Style$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Style$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Style$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1248,26 +1510,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Style$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Style$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Style$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1304,26 +1577,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Style$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Style$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Style$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1360,26 +1644,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Style$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Style$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Style$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1417,26 +1712,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Style$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Style$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Style$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Style$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Style$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Style$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1460,6 +1766,110 @@ export namespace fusiontables_v2 { } } + export interface Params$Resource$Style$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (within a table) for the style being deleted + */ + styleId?: number; + /** + * Table from which the style is being deleted + */ + tableId?: string; + } + export interface Params$Resource$Style$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (integer) for a specific style in a table + */ + styleId?: number; + /** + * Table to which the requested style belongs + */ + tableId?: string; + } + export interface Params$Resource$Style$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table for which a new style is being added + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$StyleSetting; + } + export interface Params$Resource$Style$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of styles to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. Optional. + */ + pageToken?: string; + /** + * Table whose styles are being listed + */ + tableId?: string; + } + export interface Params$Resource$Style$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (within a table) for the style being updated. + */ + styleId?: number; + /** + * Table whose style is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$StyleSetting; + } + export interface Params$Resource$Style$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier (within a table) for the style being updated. + */ + styleId?: number; + /** + * Table whose style is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$StyleSetting; + } + + export class Resource$Table { root: Fusiontables; constructor(root: Fusiontables) { @@ -1485,25 +1895,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copy(params?: any, options?: MethodOptions): AxiosPromise; + copy(params?: Params$Resource$Table$Copy, options?: MethodOptions): + AxiosPromise; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Copy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Copy, + callback: BodyResponseCallback): void; + copy(callback: BodyResponseCallback): void; + copy( + paramsOrCallback?: Params$Resource$Table$Copy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Copy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Copy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1538,22 +1959,35 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Table$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Table$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1588,23 +2022,33 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Table$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Table$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Table$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Table$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1647,26 +2091,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importRows(params?: any, options?: MethodOptions): - AxiosPromise; importRows( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Table$Importrows, + options?: MethodOptions): AxiosPromise; importRows( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Importrows, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + importRows( + params: Params$Resource$Table$Importrows, + callback: BodyResponseCallback): void; + importRows(callback: BodyResponseCallback): void; + importRows( + paramsOrCallback?: Params$Resource$Table$Importrows| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Importrows; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Importrows; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1708,26 +2163,38 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importTable(params?: any, options?: MethodOptions): - AxiosPromise; importTable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Table$Importtable, + options?: MethodOptions): AxiosPromise; + importTable( + params: Params$Resource$Table$Importtable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; importTable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Importtable, + callback: BodyResponseCallback): void; + importTable(callback: BodyResponseCallback): void; + importTable( + paramsOrCallback?: Params$Resource$Table$Importtable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Table$Importtable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Importtable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1764,25 +2231,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Table$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Table$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1818,25 +2296,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Table$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Table$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1875,25 +2365,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Table$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Table$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1930,24 +2431,38 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - refetchSheet(params?: any, options?: MethodOptions): - AxiosPromise; refetchSheet( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Table$Refetchsheet, + options?: MethodOptions): AxiosPromise; + refetchSheet( + params: Params$Resource$Table$Refetchsheet, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + refetchSheet( + params: Params$Resource$Table$Refetchsheet, + callback: BodyResponseCallback): void; + refetchSheet(callback: BodyResponseCallback): void; refetchSheet( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Table$Refetchsheet| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Table$Refetchsheet; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Refetchsheet; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1991,24 +2506,38 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - replaceRows(params?: any, options?: MethodOptions): - AxiosPromise; replaceRows( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Table$Replacerows, + options?: MethodOptions): AxiosPromise; + replaceRows( + params: Params$Resource$Table$Replacerows, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; replaceRows( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Replacerows, + callback: BodyResponseCallback): void; + replaceRows(callback: BodyResponseCallback): void; + replaceRows( + paramsOrCallback?: Params$Resource$Table$Replacerows| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Table$Replacerows; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Replacerows; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2048,25 +2577,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Table$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Table$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Table$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Table$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Table$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Table$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2089,6 +2629,261 @@ export namespace fusiontables_v2 { } } + export interface Params$Resource$Table$Copy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether to also copy tabs, styles, and templates. Default is false. + */ + copyPresentation?: boolean; + /** + * ID of the table that is being copied. + */ + tableId?: string; + } + export interface Params$Resource$Table$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the table to be deleted. + */ + tableId?: string; + } + export interface Params$Resource$Table$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier for the table being requested. + */ + tableId?: string; + } + export interface Params$Resource$Table$Importrows { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The delimiter used to separate cell values. This can only consist of a + * single character. Default is ,. + */ + delimiter?: string; + /** + * The encoding of the content. Default is UTF-8. Use auto-detect if you are + * unsure of the encoding. + */ + encoding?: string; + /** + * The index of the line up to which data will be imported. Default is to + * import the entire file. If endLine is negative, it is an offset from the + * end of the file; the imported content will exclude the last endLine + * lines. + */ + endLine?: number; + /** + * Whether the imported CSV must have the same number of values for each + * row. If false, rows with fewer values will be padded with empty values. + * Default is true. + */ + isStrict?: boolean; + /** + * The index of the first line from which to start importing, inclusive. + * Default is 0. + */ + startLine?: number; + /** + * The table into which new rows are being imported. + */ + tableId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Table$Importtable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The delimiter used to separate cell values. This can only consist of a + * single character. Default is ,. + */ + delimiter?: string; + /** + * The encoding of the content. Default is UTF-8. Use auto-detect if you are + * unsure of the encoding. + */ + encoding?: string; + /** + * The name to be assigned to the new table. + */ + name?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Table$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Table$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of tables to return. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. + */ + pageToken?: string; + } + export interface Params$Resource$Table$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the view definition is also updated. The specified view + * definition replaces the existing one. Only a view can be updated with a + * new definition. + */ + replaceViewDefinition?: boolean; + /** + * ID of the table that is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } + export interface Params$Resource$Table$Refetchsheet { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table whose rows will be replaced from the spreadsheet. + */ + tableId?: string; + } + export interface Params$Resource$Table$Replacerows { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The delimiter used to separate cell values. This can only consist of a + * single character. Default is ,. + */ + delimiter?: string; + /** + * The encoding of the content. Default is UTF-8. Use 'auto-detect' if you + * are unsure of the encoding. + */ + encoding?: string; + /** + * The index of the line up to which data will be imported. Default is to + * import the entire file. If endLine is negative, it is an offset from the + * end of the file; the imported content will exclude the last endLine + * lines. + */ + endLine?: number; + /** + * Whether the imported CSV must have the same number of column values for + * each row. If true, throws an exception if the CSV does not have the same + * number of columns. If false, rows with fewer column values will be padded + * with empty values. Default is true. + */ + isStrict?: boolean; + /** + * The index of the first line from which to start importing, inclusive. + * Default is 0. + */ + startLine?: number; + /** + * Table whose rows will be replaced. + */ + tableId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Table$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Whether the view definition is also updated. The specified view + * definition replaces the existing one. Only a view can be updated with a + * new definition. + */ + replaceViewDefinition?: boolean; + /** + * ID of the table that is being updated. + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Table; + } + + export class Resource$Task { root: Fusiontables; constructor(root: Fusiontables) { @@ -2115,22 +2910,35 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Task$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Task$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Task$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Task$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Task$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Task$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2167,21 +2975,33 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Task$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Task$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Task$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Task$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Task$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Task$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2220,25 +3040,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Task$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Task$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Task$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Task$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Task$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Task$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2261,6 +3092,61 @@ export namespace fusiontables_v2 { } } + export interface Params$Resource$Task$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table from which the task is being deleted. + */ + tableId?: string; + /** + * The identifier of the task to delete. + */ + taskId?: string; + } + export interface Params$Resource$Task$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the task belongs. + */ + tableId?: string; + /** + * The identifier of the task to get. + */ + taskId?: string; + } + export interface Params$Resource$Task$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of tasks to return. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which result page to return. + */ + pageToken?: string; + /** + * Index of the first result returned in the current page. + */ + startIndex?: number; + /** + * Table whose tasks are being listed. + */ + tableId?: string; + } + + export class Resource$Template { root: Fusiontables; constructor(root: Fusiontables) { @@ -2286,22 +3172,35 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Template$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Template$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2338,23 +3237,33 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Template$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Template$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Template$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Template$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2391,26 +3300,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Template$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Template$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Template$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2447,26 +3366,37 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Template$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Template$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2503,25 +3433,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Template$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Template$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2559,26 +3500,36 @@ export namespace fusiontables_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Template$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Template$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Template$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Template$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Template$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Template$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2601,4 +3552,107 @@ export namespace fusiontables_v2 { } } } + + export interface Params$Resource$Template$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table from which the template is being deleted + */ + tableId?: string; + /** + * Identifier for the template which is being deleted + */ + templateId?: number; + } + export interface Params$Resource$Template$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the template belongs + */ + tableId?: string; + /** + * Identifier for the template that is being requested + */ + templateId?: number; + } + export interface Params$Resource$Template$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table for which a new template is being created + */ + tableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Template; + } + export interface Params$Resource$Template$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of templates to return. Optional. Default is 5. + */ + maxResults?: number; + /** + * Continuation token specifying which results page to return. Optional. + */ + pageToken?: string; + /** + * Identifier for the table whose templates are being requested + */ + tableId?: string; + } + export interface Params$Resource$Template$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the updated template belongs + */ + tableId?: string; + /** + * Identifier for the template that is being updated + */ + templateId?: number; + /** + * Request body metadata + */ + resource?: Schema$Template; + } + export interface Params$Resource$Template$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Table to which the updated template belongs + */ + tableId?: string; + /** + * Identifier for the template that is being updated + */ + templateId?: number; + /** + * Request body metadata + */ + resource?: Schema$Template; + } } diff --git a/src/apis/games/v1.ts b/src/apis/games/v1.ts index 757d974cb02..d2ea5cb1e97 100644 --- a/src/apis/games/v1.ts +++ b/src/apis/games/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace games_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Play Game Services API * @@ -102,61 +105,61 @@ export namespace games_v1 { * "STANDARD" - Achievement is either locked or unlocked. - * "INCREMENTAL" - Achievement is incremental. */ - achievementType: string; + achievementType?: string; /** * The description of the achievement. */ - description: string; + description?: string; /** * Experience points which will be earned when unlocking this achievement. */ - experiencePoints: string; + experiencePoints?: string; /** * The total steps for an incremental achievement as a string. */ - formattedTotalSteps: string; + formattedTotalSteps?: string; /** * The ID of the achievement. */ - id: string; + id?: string; /** * The initial state of the achievement. Possible values are: - * "HIDDEN" - Achievement is hidden. - "REVEALED" - * Achievement is revealed. - "UNLOCKED" - Achievement is * unlocked. */ - initialState: string; + initialState?: string; /** * Indicates whether the revealed icon image being returned is a default * image, or is provided by the game. */ - isRevealedIconUrlDefault: boolean; + isRevealedIconUrlDefault?: boolean; /** * Indicates whether the unlocked icon image being returned is a default * image, or is game-provided. */ - isUnlockedIconUrlDefault: boolean; + isUnlockedIconUrlDefault?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementDefinition. */ - kind: string; + kind?: string; /** * The name of the achievement. */ - name: string; + name?: string; /** * The image URL for the revealed achievement icon. */ - revealedIconUrl: string; + revealedIconUrl?: string; /** * The total steps for an incremental achievement. */ - totalSteps: number; + totalSteps?: number; /** * The image URL for the unlocked achievement icon. */ - unlockedIconUrl: string; + unlockedIconUrl?: string; } /** * This is a JSON template for a list of achievement definition objects. @@ -165,16 +168,16 @@ export namespace games_v1 { /** * The achievement definitions. */ - items: Schema$AchievementDefinition[]; + items?: Schema$AchievementDefinition[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementDefinitionsListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for an achievement increment response @@ -183,17 +186,17 @@ export namespace games_v1 { /** * The current steps recorded for this incremental achievement. */ - currentSteps: number; + currentSteps?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementIncrementResponse. */ - kind: string; + kind?: string; /** * Whether the current steps for the achievement has reached the number of * steps required to unlock. */ - newlyUnlocked: boolean; + newlyUnlocked?: boolean; } /** * This is a JSON template for an achievement reveal response @@ -205,12 +208,12 @@ export namespace games_v1 { * values are: - "REVEALED" - Achievement is revealed. - * "UNLOCKED" - Achievement is unlocked. */ - currentState: string; + currentState?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementRevealResponse. */ - kind: string; + kind?: string; } /** * This is a JSON template for an achievement set steps at least response. @@ -219,17 +222,17 @@ export namespace games_v1 { /** * The current steps recorded for this incremental achievement. */ - currentSteps: number; + currentSteps?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementSetStepsAtLeastResponse. */ - kind: string; + kind?: string; /** * Whether the the current steps for the achievement has reached the number * of steps required to unlock. */ - newlyUnlocked: boolean; + newlyUnlocked?: boolean; } /** * This is a JSON template for an achievement unlock response @@ -239,12 +242,12 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementUnlockResponse. */ - kind: string; + kind?: string; /** * Whether this achievement was newly unlocked (that is, whether the unlock * request for the achievement was the first for the player). */ - newlyUnlocked: boolean; + newlyUnlocked?: boolean; } /** * This is a JSON template for a list of achievement update requests. @@ -254,11 +257,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementUpdateMultipleRequest. */ - kind: string; + kind?: string; /** * The individual achievement update requests. */ - updates: Schema$AchievementUpdateRequest[]; + updates?: Schema$AchievementUpdateRequest[]; } /** * This is a JSON template for an achievement unlock response. @@ -268,11 +271,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementUpdateListResponse. */ - kind: string; + kind?: string; /** * The updated state of the achievements. */ - updatedAchievements: Schema$AchievementUpdateResponse[]; + updatedAchievements?: Schema$AchievementUpdateResponse[]; } /** * This is a JSON template for a request to update an achievement. @@ -281,22 +284,22 @@ export namespace games_v1 { /** * The achievement this update is being applied to. */ - achievementId: string; + achievementId?: string; /** * The payload if an update of type INCREMENT was requested for the * achievement. */ - incrementPayload: Schema$GamesAchievementIncrement; + incrementPayload?: Schema$GamesAchievementIncrement; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementUpdateRequest. */ - kind: string; + kind?: string; /** * The payload if an update of type SET_STEPS_AT_LEAST was requested for the * achievement. */ - setStepsAtLeastPayload: Schema$GamesAchievementSetStepsAtLeast; + setStepsAtLeastPayload?: Schema$GamesAchievementSetStepsAtLeast; /** * The type of update being applied. Possible values are: - * "REVEAL" - Achievement is revealed. - "UNLOCK" - @@ -304,7 +307,7 @@ export namespace games_v1 { * incremented. - "SET_STEPS_AT_LEAST" - Achievement progress is * set to at least the passed value. */ - updateType: string; + updateType?: string; } /** * This is a JSON template for an achievement update response. @@ -313,32 +316,32 @@ export namespace games_v1 { /** * The achievement this update is was applied to. */ - achievementId: string; + achievementId?: string; /** * The current state of the achievement. Possible values are: - * "HIDDEN" - Achievement is hidden. - "REVEALED" - * Achievement is revealed. - "UNLOCKED" - Achievement is * unlocked. */ - currentState: string; + currentState?: string; /** * The current steps recorded for this achievement if it is incremental. */ - currentSteps: number; + currentSteps?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementUpdateResponse. */ - kind: string; + kind?: string; /** * Whether this achievement was newly unlocked (that is, whether the unlock * request for the achievement was the first for the player). */ - newlyUnlocked: boolean; + newlyUnlocked?: boolean; /** * Whether the requested updates actually affected the achievement. */ - updateOccurred: boolean; + updateOccurred?: boolean; } /** * This is a JSON template for aggregate stats. @@ -347,24 +350,24 @@ export namespace games_v1 { /** * The number of messages sent between a pair of peers. */ - count: string; + count?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#aggregateStats. */ - kind: string; + kind?: string; /** * The maximum amount. */ - max: string; + max?: string; /** * The minimum amount. */ - min: string; + min?: string; /** * The total number of bytes sent for messages between a pair of peers. */ - sum: string; + sum?: string; } /** * This is a JSON template for an anonymous player @@ -373,16 +376,16 @@ export namespace games_v1 { /** * The base URL for the image to display for the anonymous player. */ - avatarImageUrl: string; + avatarImageUrl?: string; /** * The name to display for the anonymous player. */ - displayName: string; + displayName?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#anonymousPlayer. */ - kind: string; + kind?: string; } /** * This is a JSON template for the Application resource. @@ -391,58 +394,58 @@ export namespace games_v1 { /** * The number of achievements visible to the currently authenticated player. */ - achievement_count: number; + achievement_count?: number; /** * The assets of the application. */ - assets: Schema$ImageAsset[]; + assets?: Schema$ImageAsset[]; /** * The author of the application. */ - author: string; + author?: string; /** * The category of the application. */ - category: Schema$ApplicationCategory; + category?: Schema$ApplicationCategory; /** * The description of the application. */ - description: string; + description?: string; /** * A list of features that have been enabled for the application. Possible * values are: - "SNAPSHOTS" - Snapshots has been enabled */ - enabledFeatures: string[]; + enabledFeatures?: string[]; /** * The ID of the application. */ - id: string; + id?: string; /** * The instances of the application. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#application. */ - kind: string; + kind?: string; /** * The last updated timestamp of the application. */ - lastUpdatedTimestamp: string; + lastUpdatedTimestamp?: string; /** * The number of leaderboards visible to the currently authenticated player. */ - leaderboard_count: number; + leaderboard_count?: number; /** * The name of the application. */ - name: string; + name?: string; /** * A hint to the client UI for what color to use as an app-themed color. The * color is given as an RGB triplet (e.g. "E0E0E0"). */ - themeColor: string; + themeColor?: string; } /** * This is a JSON template for an application category object. @@ -452,15 +455,15 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#applicationCategory. */ - kind: string; + kind?: string; /** * The primary category. */ - primary: string; + primary?: string; /** * The secondary category. */ - secondary: string; + secondary?: string; } /** * This is a JSON template for a third party application verification response @@ -471,16 +474,16 @@ export namespace games_v1 { * An alternate ID that was once used for the player that was issued the * auth token used in this request. (This field is not normally populated.) */ - alternate_player_id: string; + alternate_player_id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#applicationVerifyResponse. */ - kind: string; + kind?: string; /** * The ID of the player that was issued the auth token used in this request. */ - player_id: string; + player_id?: string; } /** * This is a JSON template for data related to individual game categories. @@ -489,16 +492,16 @@ export namespace games_v1 { /** * The category name. */ - category: string; + category?: string; /** * Experience points earned in this category. */ - experiencePoints: string; + experiencePoints?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#category. */ - kind: string; + kind?: string; } /** * This is a JSON template for a list of category data objects. @@ -507,16 +510,16 @@ export namespace games_v1 { /** * The list of categories with usage data. */ - items: Schema$Category[]; + items?: Schema$Category[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#categoryListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a batch update failure resource. @@ -534,16 +537,16 @@ export namespace games_v1 { * "RECORD_RATE_HIGH": An attempt was made to record data faster * than the server will apply updates. */ - failureCause: string; + failureCause?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventBatchRecordFailure. */ - kind: string; + kind?: string; /** * The time range which was rejected; empty for a request-wide failure. */ - range: Schema$EventPeriodRange; + range?: Schema$EventPeriodRange; } /** * This is a JSON template for an event child relationship resource. @@ -552,12 +555,12 @@ export namespace games_v1 { /** * The ID of the child event. */ - childId: string; + childId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventChild. */ - kind: string; + kind?: string; } /** * This is a JSON template for an event definition resource. @@ -566,40 +569,40 @@ export namespace games_v1 { /** * A list of events that are a child of this event. */ - childEvents: Schema$EventChild[]; + childEvents?: Schema$EventChild[]; /** * Description of what this event represents. */ - description: string; + description?: string; /** * The name to display for the event. */ - displayName: string; + displayName?: string; /** * The ID of the event. */ - id: string; + id?: string; /** * The base URL for the image that represents the event. */ - imageUrl: string; + imageUrl?: string; /** * Indicates whether the icon image being returned is a default image, or is * game-provided. */ - isDefaultImageUrl: boolean; + isDefaultImageUrl?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventDefinition. */ - kind: string; + kind?: string; /** * The visibility of event being tracked in this definition. Possible values * are: - "REVEALED": This event should be visible to all users. * - "HIDDEN": This event should only be shown to users that have * recorded this event at least once. */ - visibility: string; + visibility?: string; } /** * This is a JSON template for a ListDefinitions response. @@ -608,16 +611,16 @@ export namespace games_v1 { /** * The event definitions. */ - items: Schema$EventDefinition[]; + items?: Schema$EventDefinition[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventDefinitionListResponse. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for an event period time range. @@ -627,17 +630,17 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventPeriodRange. */ - kind: string; + kind?: string; /** * The time when this update period ends, in millis, since 1970 UTC (Unix * Epoch). */ - periodEndMillis: string; + periodEndMillis?: string; /** * The time when this update period begins, in millis, since 1970 UTC (Unix * Epoch). */ - periodStartMillis: string; + periodStartMillis?: string; } /** * This is a JSON template for an event period update resource. @@ -647,15 +650,15 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventPeriodUpdate. */ - kind: string; + kind?: string; /** * The time period being covered by this update. */ - timePeriod: Schema$EventPeriodRange; + timePeriod?: Schema$EventPeriodRange; /** * The updates being made for this time period. */ - updates: Schema$EventUpdateRequest[]; + updates?: Schema$EventUpdateRequest[]; } /** * This is a JSON template for an event update failure resource. @@ -664,19 +667,19 @@ export namespace games_v1 { /** * The ID of the event that was not updated. */ - eventId: string; + eventId?: string; /** * The cause for the update failure. Possible values are: - * "NOT_FOUND" - An attempt was made to set an event that was not * defined. - "INVALID_UPDATE_VALUE" - An attempt was made to * increment an event by a non-positive value. */ - failureCause: string; + failureCause?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventRecordFailure. */ - kind: string; + kind?: string; } /** * This is a JSON template for an event period update resource. @@ -686,20 +689,20 @@ export namespace games_v1 { * The current time when this update was sent, in milliseconds, since 1970 * UTC (Unix Epoch). */ - currentTimeMillis: string; + currentTimeMillis?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventRecordRequest. */ - kind: string; + kind?: string; /** * The request ID used to identify this attempt to record events. */ - requestId: string; + requestId?: string; /** * A list of the time period updates being made in this request. */ - timePeriods: Schema$EventPeriodUpdate[]; + timePeriods?: Schema$EventPeriodUpdate[]; } /** * This is a JSON template for an event period update resource. @@ -708,16 +711,16 @@ export namespace games_v1 { /** * The ID of the event being modified in this update. */ - definitionId: string; + definitionId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventUpdateRequest. */ - kind: string; + kind?: string; /** * The number of times this event occurred in this time period. */ - updateCount: string; + updateCount?: string; } /** * This is a JSON template for an event period update resource. @@ -726,20 +729,20 @@ export namespace games_v1 { /** * Any batch-wide failures which occurred applying updates. */ - batchFailures: Schema$EventBatchRecordFailure[]; + batchFailures?: Schema$EventBatchRecordFailure[]; /** * Any failures updating a particular event. */ - eventFailures: Schema$EventRecordFailure[]; + eventFailures?: Schema$EventRecordFailure[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#eventUpdateResponse. */ - kind: string; + kind?: string; /** * The current status of any updated events */ - playerEvents: Schema$PlayerEvent[]; + playerEvents?: Schema$PlayerEvent[]; } /** * This is a JSON template for the payload to request to increment an @@ -750,15 +753,15 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#GamesAchievementIncrement. */ - kind: string; + kind?: string; /** * The requestId associated with an increment to an achievement. */ - requestId: string; + requestId?: string; /** * The number of steps to be incremented. */ - steps: number; + steps?: number; } /** * This is a JSON template for the payload to request to increment an @@ -769,11 +772,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#GamesAchievementSetStepsAtLeast. */ - kind: string; + kind?: string; /** * The minimum number of steps for the achievement to be set to. */ - steps: number; + steps?: number; } /** * This is a JSON template for an image asset object. @@ -782,24 +785,24 @@ export namespace games_v1 { /** * The height of the asset. */ - height: number; + height?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#imageAsset. */ - kind: string; + kind?: string; /** * The name of the asset. */ - name: string; + name?: string; /** * The URL of the asset. */ - url: string; + url?: string; /** * The width of the asset. */ - width: number; + width?: number; } /** * This is a JSON template for the Instance resource. @@ -808,42 +811,42 @@ export namespace games_v1 { /** * URI which shows where a user can acquire this instance. */ - acquisitionUri: string; + acquisitionUri?: string; /** * Platform dependent details for Android. */ - androidInstance: Schema$InstanceAndroidDetails; + androidInstance?: Schema$InstanceAndroidDetails; /** * Platform dependent details for iOS. */ - iosInstance: Schema$InstanceIosDetails; + iosInstance?: Schema$InstanceIosDetails; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#instance. */ - kind: string; + kind?: string; /** * Localized display name. */ - name: string; + name?: string; /** * The platform type. Possible values are: - "ANDROID" - * Instance is for Android. - "IOS" - Instance is for iOS - * "WEB_APP" - Instance is for Web App. */ - platformType: string; + platformType?: string; /** * Flag to show if this game instance supports realtime play. */ - realtimePlay: boolean; + realtimePlay?: boolean; /** * Flag to show if this game instance supports turn based play. */ - turnBasedPlay: boolean; + turnBasedPlay?: boolean; /** * Platform dependent details for Web. */ - webInstance: Schema$InstanceWebDetails; + webInstance?: Schema$InstanceWebDetails; } /** * This is a JSON template for the Android instance details resource. @@ -852,20 +855,20 @@ export namespace games_v1 { /** * Flag indicating whether the anti-piracy check is enabled. */ - enablePiracyCheck: boolean; + enablePiracyCheck?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#instanceAndroidDetails. */ - kind: string; + kind?: string; /** * Android package name which maps to Google Play URL. */ - packageName: string; + packageName?: string; /** * Indicates that this instance is the default for new installations. */ - preferred: boolean; + preferred?: boolean; } /** * This is a JSON template for the iOS details resource. @@ -874,34 +877,34 @@ export namespace games_v1 { /** * Bundle identifier. */ - bundleIdentifier: string; + bundleIdentifier?: string; /** * iTunes App ID. */ - itunesAppId: string; + itunesAppId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#instanceIosDetails. */ - kind: string; + kind?: string; /** * Indicates that this instance is the default for new installations on iPad * devices. */ - preferredForIpad: boolean; + preferredForIpad?: boolean; /** * Indicates that this instance is the default for new installations on * iPhone devices. */ - preferredForIphone: boolean; + preferredForIphone?: boolean; /** * Flag to indicate if this instance supports iPad. */ - supportIpad: boolean; + supportIpad?: boolean; /** * Flag to indicate if this instance supports iPhone. */ - supportIphone: boolean; + supportIphone?: boolean; } /** * This is a JSON template for the Web details resource. @@ -911,15 +914,15 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#instanceWebDetails. */ - kind: string; + kind?: string; /** * Launch URL for the game. */ - launchUrl: string; + launchUrl?: string; /** * Indicates that this instance is the default for new installations. */ - preferred: boolean; + preferred?: boolean; } /** * This is a JSON template for the Leaderboard resource. @@ -928,32 +931,32 @@ export namespace games_v1 { /** * The icon for the leaderboard. */ - iconUrl: string; + iconUrl?: string; /** * The leaderboard ID. */ - id: string; + id?: string; /** * Indicates whether the icon image being returned is a default image, or is * game-provided. */ - isIconUrlDefault: boolean; + isIconUrlDefault?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#leaderboard. */ - kind: string; + kind?: string; /** * The name of the leaderboard. */ - name: string; + name?: string; /** * How scores are ordered. Possible values are: - * "LARGER_IS_BETTER" - Larger values are better; scores are * sorted in descending order. - "SMALLER_IS_BETTER" - Smaller * values are better; scores are sorted in ascending order. */ - order: string; + order?: string; } /** * This is a JSON template for the Leaderboard Entry resource. @@ -962,45 +965,45 @@ export namespace games_v1 { /** * The localized string for the numerical value of this score. */ - formattedScore: string; + formattedScore?: string; /** * The localized string for the rank of this score for this leaderboard. */ - formattedScoreRank: string; + formattedScoreRank?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#leaderboardEntry. */ - kind: string; + kind?: string; /** * The player who holds this score. */ - player: Schema$Player; + player?: Schema$Player; /** * The rank of this score for this leaderboard. */ - scoreRank: string; + scoreRank?: string; /** * Additional information about the score. Values must contain no more than * 64 URI-safe characters as defined by section 2.3 of RFC 3986. */ - scoreTag: string; + scoreTag?: string; /** * The numerical value of this score. */ - scoreValue: string; + scoreValue?: string; /** * The time span of this high score. Possible values are: - * "ALL_TIME" - The score is an all-time high score. - * "WEEKLY" - The score is a weekly high score. - * "DAILY" - The score is a daily high score. */ - timeSpan: string; + timeSpan?: string; /** * The timestamp at which this score was recorded, in milliseconds since the * epoch in UTC. */ - writeTimestampMillis: string; + writeTimestampMillis?: string; } /** * This is a JSON template for a list of leaderboard objects. @@ -1009,16 +1012,16 @@ export namespace games_v1 { /** * The leaderboards. */ - items: Schema$Leaderboard[]; + items?: Schema$Leaderboard[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#leaderboardListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a score rank in a leaderboard. @@ -1027,24 +1030,24 @@ export namespace games_v1 { /** * The number of scores in the leaderboard as a string. */ - formattedNumScores: string; + formattedNumScores?: string; /** * The rank in the leaderboard as a string. */ - formattedRank: string; + formattedRank?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#leaderboardScoreRank. */ - kind: string; + kind?: string; /** * The number of scores in the leaderboard. */ - numScores: string; + numScores?: string; /** * The rank in the leaderboard. */ - rank: string; + rank?: string; } /** * This is a JSON template for a ListScores response. @@ -1053,20 +1056,20 @@ export namespace games_v1 { /** * The scores in the leaderboard. */ - items: Schema$LeaderboardEntry[]; + items?: Schema$LeaderboardEntry[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#leaderboardScores. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of scores in the leaderboard. */ - numScores: string; + numScores?: string; /** * The score of the requesting player on the leaderboard. The player's * score may appear both here and in the list of scores above. If you are @@ -1074,11 +1077,11 @@ export namespace games_v1 { * information publicly, the scoreRank and formattedScoreRank values will * not be present. */ - playerScore: Schema$LeaderboardEntry; + playerScore?: Schema$LeaderboardEntry; /** * The pagination token for the previous page of results. */ - prevPageToken: string; + prevPageToken?: string; } /** * This is a JSON template for the metagame config resource @@ -1088,16 +1091,16 @@ export namespace games_v1 { * Current version of the metagame configuration data. When this data is * updated, the version number will be increased by one. */ - currentVersion: number; + currentVersion?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#metagameConfig. */ - kind: string; + kind?: string; /** * The list of player levels. */ - playerLevels: Schema$PlayerLevel[]; + playerLevels?: Schema$PlayerLevel[]; } /** * This is a JSON template for network diagnostics reported for a client. @@ -1106,27 +1109,27 @@ export namespace games_v1 { /** * The Android network subtype. */ - androidNetworkSubtype: number; + androidNetworkSubtype?: number; /** * The Android network type. */ - androidNetworkType: number; + androidNetworkType?: number; /** * iOS network type as defined in Reachability.h. */ - iosNetworkType: number; + iosNetworkType?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#networkDiagnostics. */ - kind: string; + kind?: string; /** * The MCC+MNC code for the client's network connection. On Android: * http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() * On iOS, see: * https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html */ - networkOperatorCode: string; + networkOperatorCode?: string; /** * The name of the carrier of the client's network connection. On * Android: @@ -1134,12 +1137,12 @@ export namespace games_v1 { * On iOS: * https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName */ - networkOperatorName: string; + networkOperatorName?: string; /** * The amount of time in milliseconds it took for the client to establish a * connection with the XMPP server. */ - registrationLatencyMillis: number; + registrationLatencyMillis?: number; } /** * This is a JSON template for a result for a match participant. @@ -1149,17 +1152,17 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#participantResult. */ - kind: string; + kind?: string; /** * The ID of the participant. */ - participantId: string; + participantId?: string; /** * The placement or ranking of the participant in the match results; a * number from one to the number of participants in the match. Multiple * participants may have the same placing value in case of a type. */ - placing: number; + placing?: number; /** * The result of the participant for this match. Possible values are: - * "MATCH_RESULT_WIN" - The participant won the match. - @@ -1171,7 +1174,7 @@ export namespace games_v1 { * "MATCH_RESULT_DISAGREED" - Different clients reported different * results for this participant. */ - result: string; + result?: string; } /** * This is a JSON template for peer channel diagnostics. @@ -1180,36 +1183,36 @@ export namespace games_v1 { /** * Number of bytes received. */ - bytesReceived: Schema$AggregateStats; + bytesReceived?: Schema$AggregateStats; /** * Number of bytes sent. */ - bytesSent: Schema$AggregateStats; + bytesSent?: Schema$AggregateStats; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#peerChannelDiagnostics. */ - kind: string; + kind?: string; /** * Number of messages lost. */ - numMessagesLost: number; + numMessagesLost?: number; /** * Number of messages received. */ - numMessagesReceived: number; + numMessagesReceived?: number; /** * Number of messages sent. */ - numMessagesSent: number; + numMessagesSent?: number; /** * Number of send failures. */ - numSendFailures: number; + numSendFailures?: number; /** * Roundtrip latency stats in milliseconds. */ - roundtripLatencyMillis: Schema$AggregateStats; + roundtripLatencyMillis?: Schema$AggregateStats; } /** * This is a JSON template for peer session diagnostics. @@ -1218,24 +1221,24 @@ export namespace games_v1 { /** * Connected time in milliseconds. */ - connectedTimestampMillis: string; + connectedTimestampMillis?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#peerSessionDiagnostics. */ - kind: string; + kind?: string; /** * The participant ID of the peer. */ - participantId: string; + participantId?: string; /** * Reliable channel diagnostics. */ - reliableChannel: Schema$PeerChannelDiagnostics; + reliableChannel?: Schema$PeerChannelDiagnostics; /** * Unreliable channel diagnostics. */ - unreliableChannel: Schema$PeerChannelDiagnostics; + unreliableChannel?: Schema$PeerChannelDiagnostics; } /** * This is a JSON template for metadata about a player playing a game with the @@ -1246,17 +1249,17 @@ export namespace games_v1 { * True if the player was auto-matched with the currently authenticated * user. */ - autoMatched: boolean; + autoMatched?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#played. */ - kind: string; + kind?: string; /** * The last time the player played the game in milliseconds since the epoch * in UTC. */ - timeMillis: string; + timeMillis?: string; } /** * This is a JSON template for a Player resource. @@ -1265,59 +1268,59 @@ export namespace games_v1 { /** * The base URL for the image that represents the player. */ - avatarImageUrl: string; + avatarImageUrl?: string; /** * The url to the landscape mode player banner image. */ - bannerUrlLandscape: string; + bannerUrlLandscape?: string; /** * The url to the portrait mode player banner image. */ - bannerUrlPortrait: string; + bannerUrlPortrait?: string; /** * The name to display for the player. */ - displayName: string; + displayName?: string; /** * An object to represent Play Game experience information for the player. */ - experienceInfo: Schema$PlayerExperienceInfo; + experienceInfo?: Schema$PlayerExperienceInfo; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#player. */ - kind: string; + kind?: string; /** * Details about the last time this player played a multiplayer game with * the currently authenticated player. Populated for PLAYED_WITH player * collection members. */ - lastPlayedWith: Schema$Played; + lastPlayedWith?: Schema$Played; /** * An object representation of the individual components of the player's * name. For some players, these fields may not be present. */ - name: any; + name?: any; /** * The player ID that was used for this player the first time they signed * into the game in question. This is only populated for calls to player.get * for the requesting player, only if the player ID has subsequently * changed, and only to clients that support remapping player IDs. */ - originalPlayerId: string; + originalPlayerId?: string; /** * The ID of the player. */ - playerId: string; + playerId?: string; /** * The player's profile settings. Controls whether or not the * player's profile is visible to other players. */ - profileSettings: Schema$ProfileSettings; + profileSettings?: Schema$ProfileSettings; /** * The player's title rewarded for their game activities. */ - title: string; + title?: string; } /** * This is a JSON template for an achievement object. @@ -1328,34 +1331,34 @@ export namespace games_v1 { * - Achievement is hidden. - "REVEALED" - Achievement is * revealed. - "UNLOCKED" - Achievement is unlocked. */ - achievementState: string; + achievementState?: string; /** * The current steps for an incremental achievement. */ - currentSteps: number; + currentSteps?: number; /** * Experience points earned for the achievement. This field is absent for * achievements that have not yet been unlocked and 0 for achievements that * have been unlocked by testers but that are unpublished. */ - experiencePoints: string; + experiencePoints?: string; /** * The current steps for an incremental achievement as a string. */ - formattedCurrentStepsString: string; + formattedCurrentStepsString?: string; /** * The ID of the achievement. */ - id: string; + id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerAchievement. */ - kind: string; + kind?: string; /** * The timestamp of the last modification to this achievement's state. */ - lastUpdatedTimestamp: string; + lastUpdatedTimestamp?: string; } /** * This is a JSON template for a list of achievement objects. @@ -1364,16 +1367,16 @@ export namespace games_v1 { /** * The achievements. */ - items: Schema$PlayerAchievement[]; + items?: Schema$PlayerAchievement[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerAchievementListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for an event status resource. @@ -1382,26 +1385,26 @@ export namespace games_v1 { /** * The ID of the event definition. */ - definitionId: string; + definitionId?: string; /** * The current number of times this event has occurred, as a string. The * formatting of this string depends on the configuration of your event in * the Play Games Developer Console. */ - formattedNumEvents: string; + formattedNumEvents?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerEvent. */ - kind: string; + kind?: string; /** * The current number of times this event has occurred. */ - numEvents: string; + numEvents?: string; /** * The ID of the player. */ - playerId: string; + playerId?: string; } /** * This is a JSON template for a ListByPlayer response. @@ -1410,16 +1413,16 @@ export namespace games_v1 { /** * The player events. */ - items: Schema$PlayerEvent[]; + items?: Schema$PlayerEvent[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerEventListResponse. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for 1P/3P metadata about the player's @@ -1429,26 +1432,26 @@ export namespace games_v1 { /** * The current number of experience points for the player. */ - currentExperiencePoints: string; + currentExperiencePoints?: string; /** * The current level of the player. */ - currentLevel: Schema$PlayerLevel; + currentLevel?: Schema$PlayerLevel; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerExperienceInfo. */ - kind: string; + kind?: string; /** * The timestamp when the player was leveled up, in millis since Unix epoch * UTC. */ - lastLevelUpTimestampMillis: string; + lastLevelUpTimestampMillis?: string; /** * The next level of the player. If the current level is the maximum level, * this should be same as the current level. */ - nextLevel: Schema$PlayerLevel; + nextLevel?: Schema$PlayerLevel; } /** * This is a JSON template for a player leaderboard score object. @@ -1458,45 +1461,45 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerLeaderboardScore. */ - kind: string; + kind?: string; /** * The ID of the leaderboard this score is in. */ - leaderboard_id: string; + leaderboard_id?: string; /** * The public rank of the score in this leaderboard. This object will not be * present if the user is not sharing their scores publicly. */ - publicRank: Schema$LeaderboardScoreRank; + publicRank?: Schema$LeaderboardScoreRank; /** * The formatted value of this score. */ - scoreString: string; + scoreString?: string; /** * Additional information about the score. Values must contain no more than * 64 URI-safe characters as defined by section 2.3 of RFC 3986. */ - scoreTag: string; + scoreTag?: string; /** * The numerical value of this score. */ - scoreValue: string; + scoreValue?: string; /** * The social rank of the score in this leaderboard. */ - socialRank: Schema$LeaderboardScoreRank; + socialRank?: Schema$LeaderboardScoreRank; /** * The time span of this score. Possible values are: - * "ALL_TIME" - The score is an all-time score. - * "WEEKLY" - The score is a weekly score. - "DAILY" - * The score is a daily score. */ - timeSpan: string; + timeSpan?: string; /** * The timestamp at which this score was recorded, in milliseconds since the * epoch in UTC. */ - writeTimestamp: string; + writeTimestamp?: string; } /** * This is a JSON template for a list of player leaderboard scores. @@ -1505,20 +1508,20 @@ export namespace games_v1 { /** * The leaderboard scores. */ - items: Schema$PlayerLeaderboardScore[]; + items?: Schema$PlayerLeaderboardScore[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerLeaderboardScoreListResponse. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The Player resources for the owner of this score. */ - player: Schema$Player; + player?: Schema$Player; } /** * This is a JSON template for 1P/3P metadata about a user's level. @@ -1528,19 +1531,19 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerLevel. */ - kind: string; + kind?: string; /** * The level for the user. */ - level: number; + level?: number; /** * The maximum experience points for this level. */ - maxExperiencePoints: string; + maxExperiencePoints?: string; /** * The minimum experience points for this level. */ - minExperiencePoints: string; + minExperiencePoints?: string; } /** * This is a JSON template for a third party player list response. @@ -1549,16 +1552,16 @@ export namespace games_v1 { /** * The players. */ - items: Schema$Player[]; + items?: Schema$Player[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a player score. @@ -1567,28 +1570,28 @@ export namespace games_v1 { /** * The formatted score for this player score. */ - formattedScore: string; + formattedScore?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerScore. */ - kind: string; + kind?: string; /** * The numerical value for this player score. */ - score: string; + score?: string; /** * Additional information about this score. Values will contain no more than * 64 URI-safe characters as defined by section 2.3 of RFC 3986. */ - scoreTag: string; + scoreTag?: string; /** * The time span for this player score. Possible values are: - * "ALL_TIME" - The score is an all-time score. - * "WEEKLY" - The score is a weekly score. - "DAILY" - * The score is a daily score. */ - timeSpan: string; + timeSpan?: string; } /** * This is a JSON template for a list of score submission statuses. @@ -1598,11 +1601,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerScoreListResponse. */ - kind: string; + kind?: string; /** * The score submissions statuses. */ - submittedScores: Schema$PlayerScoreResponse[]; + submittedScores?: Schema$PlayerScoreResponse[]; } /** * This is a JSON template for a list of leaderboard entry resources. @@ -1614,32 +1617,32 @@ export namespace games_v1 { * The score is an all-time score. - "WEEKLY" - The score is a * weekly score. - "DAILY" - The score is a daily score. */ - beatenScoreTimeSpans: string[]; + beatenScoreTimeSpans?: string[]; /** * The formatted value of the submitted score. */ - formattedScore: string; + formattedScore?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerScoreResponse. */ - kind: string; + kind?: string; /** * The leaderboard ID that this score was submitted to. */ - leaderboardId: string; + leaderboardId?: string; /** * Additional information about this score. Values will contain no more than * 64 URI-safe characters as defined by section 2.3 of RFC 3986. */ - scoreTag: string; + scoreTag?: string; /** * The scores in time spans that have not been beaten. As an example, the * submitted score may be better than the player's DAILY score, but not * better than the player's scores for the WEEKLY or ALL_TIME time * spans. */ - unbeatenScores: Schema$PlayerScore[]; + unbeatenScores?: Schema$PlayerScore[]; } /** * This is a JSON template for a list of score submission requests @@ -1649,11 +1652,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#playerScoreSubmissionList. */ - kind: string; + kind?: string; /** * The score submissions. */ - scores: Schema$ScoreSubmission[]; + scores?: Schema$ScoreSubmission[]; } /** * This is a JSON template for profile settings @@ -1663,12 +1666,12 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#profileSettings. */ - kind: string; + kind?: string; /** * The player's current profile visibility. This field is visible to * both 1P and 3P APIs. */ - profileVisible: boolean; + profileVisible?: boolean; } /** * This is a JSON template for a push token resource. @@ -1680,20 +1683,20 @@ export namespace games_v1 { * compatible messages. Format: [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible * values of PLATFORM_TYPE are: - IOS - Push token is for iOS */ - clientRevision: string; + clientRevision?: string; /** * Unique identifier for this push token. */ - id: Schema$PushTokenId; + id?: Schema$PushTokenId; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#pushToken. */ - kind: string; + kind?: string; /** * The preferred language for notifications that are sent using this token. */ - language: string; + language?: string; } /** * This is a JSON template for a push token ID resource. @@ -1702,12 +1705,12 @@ export namespace games_v1 { /** * A push token ID for iOS devices. */ - ios: any; + ios?: any; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#pushTokenId. */ - kind: string; + kind?: string; } /** * This is a JSON template for a Quest resource. @@ -1717,71 +1720,71 @@ export namespace games_v1 { * The timestamp at which the user accepted the quest in milliseconds since * the epoch in UTC. Only present if the player has accepted the quest. */ - acceptedTimestampMillis: string; + acceptedTimestampMillis?: string; /** * The ID of the application this quest is part of. */ - applicationId: string; + applicationId?: string; /** * The banner image URL for the quest. */ - bannerUrl: string; + bannerUrl?: string; /** * The description of the quest. */ - description: string; + description?: string; /** * The timestamp at which the quest ceases to be active in milliseconds * since the epoch in UTC. */ - endTimestampMillis: string; + endTimestampMillis?: string; /** * The icon image URL for the quest. */ - iconUrl: string; + iconUrl?: string; /** * The ID of the quest. */ - id: string; + id?: string; /** * Indicates whether the banner image being returned is a default image, or * is game-provided. */ - isDefaultBannerUrl: boolean; + isDefaultBannerUrl?: boolean; /** * Indicates whether the icon image being returned is a default image, or is * game-provided. */ - isDefaultIconUrl: boolean; + isDefaultIconUrl?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#quest. */ - kind: string; + kind?: string; /** * The timestamp at which the quest was last updated by the user in * milliseconds since the epoch in UTC. Only present if the player has * accepted the quest. */ - lastUpdatedTimestampMillis: string; + lastUpdatedTimestampMillis?: string; /** * The quest milestones. */ - milestones: Schema$QuestMilestone[]; + milestones?: Schema$QuestMilestone[]; /** * The name of the quest. */ - name: string; + name?: string; /** * The timestamp at which the user should be notified that the quest will * end soon in milliseconds since the epoch in UTC. */ - notifyTimestampMillis: string; + notifyTimestampMillis?: string; /** * The timestamp at which the quest becomes active in milliseconds since the * epoch in UTC. */ - startTimestampMillis: string; + startTimestampMillis?: string; /** * The state of the quest. Possible values are: - "UPCOMING": * The quest is upcoming. The user can see the quest, but cannot accept it @@ -1793,7 +1796,7 @@ export namespace games_v1 { * "EXPIRED": The quest has expired and was not accepted. - * "DELETED": The quest should be deleted from the local database. */ - state: string; + state?: string; } /** * This is a JSON template for a Quest Criterion Contribution resource. @@ -1804,16 +1807,16 @@ export namespace games_v1 { * the configuration for the associated event definition in the Play Games * Developer Console. */ - formattedValue: string; + formattedValue?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#questContribution. */ - kind: string; + kind?: string; /** * The value of the contribution. */ - value: string; + value?: string; } /** * This is a JSON template for a Quest Criterion resource. @@ -1823,18 +1826,18 @@ export namespace games_v1 { * The total number of times the associated event must be incremented for * the player to complete this quest. */ - completionContribution: Schema$QuestContribution; + completionContribution?: Schema$QuestContribution; /** * The number of increments the player has made toward the completion count * event increments required to complete the quest. This value will not * exceed the completion contribution. There will be no currentContribution * until the player has accepted the quest. */ - currentContribution: Schema$QuestContribution; + currentContribution?: Schema$QuestContribution; /** * The ID of the event the criterion corresponds to. */ - eventId: string; + eventId?: string; /** * The value of the event associated with this quest at the time that the * quest was accepted. This value may change if event increments that took @@ -1842,12 +1845,12 @@ export namespace games_v1 { * There will be no initialPlayerProgress until the player has accepted the * quest. */ - initialPlayerProgress: Schema$QuestContribution; + initialPlayerProgress?: Schema$QuestContribution; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#questCriterion. */ - kind: string; + kind?: string; } /** * This is a JSON template for a list of quest objects. @@ -1856,16 +1859,16 @@ export namespace games_v1 { /** * The quests. */ - items: Schema$Quest[]; + items?: Schema$Quest[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#questListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a Quest Milestone resource. @@ -1876,20 +1879,20 @@ export namespace games_v1 { * Base64-encoded string. This is a developer-specified binary blob with * size between 0 and 2 KB before encoding. */ - completionRewardData: string; + completionRewardData?: string; /** * The criteria of the milestone. */ - criteria: Schema$QuestCriterion[]; + criteria?: Schema$QuestCriterion[]; /** * The milestone ID. */ - id: string; + id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#questMilestone. */ - kind: string; + kind?: string; /** * The current state of the milestone. Possible values are: - * "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has @@ -1898,7 +1901,7 @@ export namespace games_v1 { * not yet been completed. - "NOT_STARTED" - The milestone is for * a quest that has not yet been accepted. */ - state: string; + state?: string; } /** * This is a JSON template for the result of checking a revision. @@ -1908,12 +1911,12 @@ export namespace games_v1 { * The version of the API this client revision should use when calling API * methods. */ - apiVersion: string; + apiVersion?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#revisionCheckResponse. */ - kind: string; + kind?: string; /** * The result of the revision check. Possible values are: - "OK" * - The revision being used is current. - "DEPRECATED" - There @@ -1921,7 +1924,7 @@ export namespace games_v1 { * works. - "INVALID" - The revision being used is not supported * in any released version. */ - revisionStatus: string; + revisionStatus?: string; } /** * This is a JSON template for a room resource object. @@ -1930,54 +1933,54 @@ export namespace games_v1 { /** * The ID of the application being played. */ - applicationId: string; + applicationId?: string; /** * Criteria for auto-matching players into this room. */ - autoMatchingCriteria: Schema$RoomAutoMatchingCriteria; + autoMatchingCriteria?: Schema$RoomAutoMatchingCriteria; /** * Auto-matching status for this room. Not set if the room is not currently * in the auto-matching queue. */ - autoMatchingStatus: Schema$RoomAutoMatchStatus; + autoMatchingStatus?: Schema$RoomAutoMatchStatus; /** * Details about the room creation. */ - creationDetails: Schema$RoomModification; + creationDetails?: Schema$RoomModification; /** * This short description is generated by our servers and worded relative to * the player requesting the room. It is intended to be displayed when the * room is shown in a list (that is, an invitation to a room.) */ - description: string; + description?: string; /** * The ID of the participant that invited the user to the room. Not set if * the user was not invited to the room. */ - inviterId: string; + inviterId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#room. */ - kind: string; + kind?: string; /** * Details about the last update to the room. */ - lastUpdateDetails: Schema$RoomModification; + lastUpdateDetails?: Schema$RoomModification; /** * The participants involved in the room, along with their statuses. * Includes participants who have left or declined invitations. */ - participants: Schema$RoomParticipant[]; + participants?: Schema$RoomParticipant[]; /** * Globally unique ID for a room. */ - roomId: string; + roomId?: string; /** * The version of the room status: an increasing counter, used by the client * to ignore out-of-order updates to room status. */ - roomStatusVersion: number; + roomStatusVersion?: number; /** * The status of the room. Possible values are: - * "ROOM_INVITING" - One or more players have been invited and not @@ -1990,12 +1993,12 @@ export namespace games_v1 { * a room (as a tombstone), or for rooms where all joined participants have * left. */ - status: string; + status?: string; /** * The variant / mode of the application being played; can be any integer * value, or left blank. */ - variant: number; + variant?: number; } /** * This is a JSON template for a room auto-match criteria object. @@ -2006,22 +2009,22 @@ export namespace games_v1 { * exclusive bitmasks, the result must be zero. Can be used to support * exclusive roles within a game. */ - exclusiveBitmask: string; + exclusiveBitmask?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomAutoMatchingCriteria. */ - kind: string; + kind?: string; /** * The maximum number of players that should be added to the room by * auto-matching. */ - maxAutoMatchingPlayers: number; + maxAutoMatchingPlayers?: number; /** * The minimum number of players that should be added to the room by * auto-matching. */ - minAutoMatchingPlayers: number; + minAutoMatchingPlayers?: number; } /** * This is a JSON template for status of room automatching that is in @@ -2032,12 +2035,12 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomAutoMatchStatus. */ - kind: string; + kind?: string; /** * An estimate for the amount of time (in seconds) that auto-matching is * expected to take to complete. */ - waitEstimateSeconds: number; + waitEstimateSeconds?: number; } /** * This is a JSON template for the client address when setting up a room. @@ -2047,11 +2050,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomClientAddress. */ - kind: string; + kind?: string; /** * The XMPP address of the client on the Google Games XMPP network. */ - xmppAddress: string; + xmppAddress?: string; } /** * This is a JSON template for a room creation request. @@ -2060,39 +2063,39 @@ export namespace games_v1 { /** * Criteria for auto-matching players into this room. */ - autoMatchingCriteria: Schema$RoomAutoMatchingCriteria; + autoMatchingCriteria?: Schema$RoomAutoMatchingCriteria; /** * The capabilities that this client supports for realtime communication. */ - capabilities: string[]; + capabilities?: string[]; /** * Client address for the player creating the room. */ - clientAddress: Schema$RoomClientAddress; + clientAddress?: Schema$RoomClientAddress; /** * The player IDs to invite to the room. */ - invitedPlayerIds: string[]; + invitedPlayerIds?: string[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomCreateRequest. */ - kind: string; + kind?: string; /** * Network diagnostics for the client creating the room. */ - networkDiagnostics: Schema$NetworkDiagnostics; + networkDiagnostics?: Schema$NetworkDiagnostics; /** * A randomly generated numeric ID. This number is used at the server to * ensure that the request is handled correctly across retries. */ - requestId: string; + requestId?: string; /** * The variant / mode of the application to be played. This can be any * integer value, or left blank. You should use a small number of variants * to keep the auto-matching pool as large as possible. */ - variant: number; + variant?: number; } /** * This is a JSON template for a join room request. @@ -2101,20 +2104,20 @@ export namespace games_v1 { /** * The capabilities that this client supports for realtime communication. */ - capabilities: string[]; + capabilities?: string[]; /** * Client address for the player joining the room. */ - clientAddress: Schema$RoomClientAddress; + clientAddress?: Schema$RoomClientAddress; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomJoinRequest. */ - kind: string; + kind?: string; /** * Network diagnostics for the client joining the room. */ - networkDiagnostics: Schema$NetworkDiagnostics; + networkDiagnostics?: Schema$NetworkDiagnostics; } /** * This is a JSON template for room leave diagnostics. @@ -2124,28 +2127,28 @@ export namespace games_v1 { * Android network subtype. * http://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype() */ - androidNetworkSubtype: number; + androidNetworkSubtype?: number; /** * Android network type. * http://developer.android.com/reference/android/net/NetworkInfo.html#getType() */ - androidNetworkType: number; + androidNetworkType?: number; /** * iOS network type as defined in Reachability.h. */ - iosNetworkType: number; + iosNetworkType?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomLeaveDiagnostics. */ - kind: string; + kind?: string; /** * The MCC+MNC code for the client's network connection. On Android: * http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator() * On iOS, see: * https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html */ - networkOperatorCode: string; + networkOperatorCode?: string; /** * The name of the carrier of the client's network connection. On * Android: @@ -2153,15 +2156,15 @@ export namespace games_v1 { * On iOS: * https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/CTCarrier/Reference/Reference.html#//apple_ref/occ/instp/CTCarrier/carrierName */ - networkOperatorName: string; + networkOperatorName?: string; /** * Diagnostics about all peer sessions. */ - peerSession: Schema$PeerSessionDiagnostics[]; + peerSession?: Schema$PeerSessionDiagnostics[]; /** * Whether or not sockets were used. */ - socketsUsed: boolean; + socketsUsed?: boolean; } /** * This is a JSON template for a leave room request. @@ -2171,11 +2174,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomLeaveRequest. */ - kind: string; + kind?: string; /** * Diagnostics for a player leaving the room. */ - leaveDiagnostics: Schema$RoomLeaveDiagnostics; + leaveDiagnostics?: Schema$RoomLeaveDiagnostics; /** * Reason for leaving the match. Possible values are: - * "PLAYER_LEFT" - The player chose to leave the room.. - @@ -2198,7 +2201,7 @@ export namespace games_v1 { * "REALTIME_SAME_CLIENT_ROOM_OPERATION" - The same client is * trying to enter a new room. */ - reason: string; + reason?: string; } /** * This is a JSON template for a list of rooms. @@ -2207,16 +2210,16 @@ export namespace games_v1 { /** * The rooms. */ - items: Schema$Room[]; + items?: Schema$Room[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomList. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for room modification metadata. @@ -2226,16 +2229,16 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomModification. */ - kind: string; + kind?: string; /** * The timestamp at which they modified the room, in milliseconds since the * epoch in UTC. */ - modifiedTimestampMillis: string; + modifiedTimestampMillis?: string; /** * The ID of the participant that modified the room. */ - participantId: string; + participantId?: string; } /** * This is a JSON template for an update on the status of a peer in a room. @@ -2245,7 +2248,7 @@ export namespace games_v1 { * The amount of time in milliseconds it took to establish connections with * this peer. */ - connectionSetupLatencyMillis: number; + connectionSetupLatencyMillis?: number; /** * The error code in event of a failure. Possible values are: - * "P2P_FAILED" - The client failed to establish a P2P connection @@ -2254,32 +2257,32 @@ export namespace games_v1 { * The client received an error when trying to use the relay server to * establish a P2P connection with the peer. */ - error: string; + error?: string; /** * More detailed diagnostic message returned in event of a failure. */ - error_reason: string; + error_reason?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomP2PStatus. */ - kind: string; + kind?: string; /** * The ID of the participant. */ - participantId: string; + participantId?: string; /** * The status of the peer in the room. Possible values are: - * "CONNECTION_ESTABLISHED" - The client established a P2P * connection with the peer. - "CONNECTION_FAILED" - The client * failed to establish directed presence with the peer. */ - status: string; + status?: string; /** * The amount of time in milliseconds it took to send packets back and forth * on the unreliable channel with this peer. */ - unreliableRoundtripLatencyMillis: number; + unreliableRoundtripLatencyMillis?: number; } /** * This is a JSON template for an update on the status of peers in a room. @@ -2289,11 +2292,11 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomP2PStatuses. */ - kind: string; + kind?: string; /** * The updates for the peers. */ - updates: Schema$RoomP2PStatus[]; + updates?: Schema$RoomP2PStatus[]; } /** * This is a JSON template for a participant in a room. @@ -2302,36 +2305,36 @@ export namespace games_v1 { /** * True if this participant was auto-matched with the requesting player. */ - autoMatched: boolean; + autoMatched?: boolean; /** * Information about a player that has been anonymously auto-matched against * the requesting player. (Either player or autoMatchedPlayer will be set.) */ - autoMatchedPlayer: Schema$AnonymousPlayer; + autoMatchedPlayer?: Schema$AnonymousPlayer; /** * The capabilities which can be used when communicating with this * participant. */ - capabilities: string[]; + capabilities?: string[]; /** * Client address for the participant. */ - clientAddress: Schema$RoomClientAddress; + clientAddress?: Schema$RoomClientAddress; /** * True if this participant is in the fully connected set of peers in the * room. */ - connected: boolean; + connected?: boolean; /** * An identifier for the participant in the scope of the room. Cannot be * used to identify a player across rooms or in other contexts. */ - id: string; + id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomParticipant. */ - kind: string; + kind?: string; /** * The reason the participant left the room; populated if the participant * status is PARTICIPANT_LEFT. Possible values are: - @@ -2346,13 +2349,13 @@ export namespace games_v1 { * join and connect. - "PRESENCE_FAILURE" - The client's XMPP * connection ended abruptly. */ - leaveReason: string; + leaveReason?: string; /** * Information about the player. Not populated if this player was * anonymously auto-matched against the requesting player. (Either player or * autoMatchedPlayer will be set.) */ - player: Schema$Player; + player?: Schema$Player; /** * The status of the participant with respect to the room. Possible values * are: - "PARTICIPANT_INVITED" - The participant has been @@ -2363,7 +2366,7 @@ export namespace games_v1 { * to join the room. - "PARTICIPANT_LEFT" - The participant * joined the room and then left it. */ - status: string; + status?: string; } /** * This is a JSON template for the status of a room that the player has @@ -2374,21 +2377,21 @@ export namespace games_v1 { * Auto-matching status for this room. Not set if the room is not currently * in the automatching queue. */ - autoMatchingStatus: Schema$RoomAutoMatchStatus; + autoMatchingStatus?: Schema$RoomAutoMatchStatus; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#roomStatus. */ - kind: string; + kind?: string; /** * The participants involved in the room, along with their statuses. * Includes participants who have left or declined invitations. */ - participants: Schema$RoomParticipant[]; + participants?: Schema$RoomParticipant[]; /** * Globally unique ID for a room. */ - roomId: string; + roomId?: string; /** * The status of the room. Possible values are: - * "ROOM_INVITING" - One or more players have been invited and not @@ -2399,12 +2402,12 @@ export namespace games_v1 { * connected to each other. - "ROOM_DELETED" - All joined players * have left. */ - status: string; + status?: string; /** * The version of the status for the room: an increasing counter, used by * the client to ignore out-of-order updates to room status. */ - statusVersion: number; + statusVersion?: number; } /** * This is a JSON template for a request to submit a score to leaderboards. @@ -2414,25 +2417,25 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#scoreSubmission. */ - kind: string; + kind?: string; /** * The leaderboard this score is being submitted to. */ - leaderboardId: string; + leaderboardId?: string; /** * The new score being submitted. */ - score: string; + score?: string; /** * Additional information about this score. Values will contain no more than * 64 URI-safe characters as defined by section 2.3 of RFC 3986. */ - scoreTag: string; + scoreTag?: string; /** * Signature Values will contain URI-safe characters as defined by * section 2.3 of RFC 3986. */ - signature: string; + signature?: string; } /** * This is a JSON template for an snapshot object. @@ -2441,53 +2444,53 @@ export namespace games_v1 { /** * The cover image of this snapshot. May be absent if there is no image. */ - coverImage: Schema$SnapshotImage; + coverImage?: Schema$SnapshotImage; /** * The description of this snapshot. */ - description: string; + description?: string; /** * The ID of the file underlying this snapshot in the Drive API. Only * present if the snapshot is a view on a Drive file and the file is owned * by the caller. */ - driveId: string; + driveId?: string; /** * The duration associated with this snapshot, in millis. */ - durationMillis: string; + durationMillis?: string; /** * The ID of the snapshot. */ - id: string; + id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#snapshot. */ - kind: string; + kind?: string; /** * The timestamp (in millis since Unix epoch) of the last modification to * this snapshot. */ - lastModifiedMillis: string; + lastModifiedMillis?: string; /** * The progress value (64-bit integer set by developer) associated with this * snapshot. */ - progressValue: string; + progressValue?: string; /** * The title of this snapshot. */ - title: string; + title?: string; /** * The type of this snapshot. Possible values are: - "SAVE_GAME" * - A snapshot representing a save game. */ - type: string; + type?: string; /** * The unique name provided when the snapshot was created. */ - uniqueName: string; + uniqueName?: string; } /** * This is a JSON template for an image of a snapshot. @@ -2496,25 +2499,25 @@ export namespace games_v1 { /** * The height of the image. */ - height: number; + height?: number; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#snapshotImage. */ - kind: string; + kind?: string; /** * The MIME type of the image. */ - mime_type: string; + mime_type?: string; /** * The URL of the image. This URL may be invalidated at any time and should * not be cached. */ - url: string; + url?: string; /** * The width of the image. */ - width: number; + width?: number; } /** * This is a JSON template for a list of snapshot objects. @@ -2523,17 +2526,17 @@ export namespace games_v1 { /** * The snapshots. */ - items: Schema$Snapshot[]; + items?: Schema$Snapshot[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#snapshotListResponse. */ - kind: string; + kind?: string; /** * Token corresponding to the next page of results. If there are no more * results, the token is omitted. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for an turn-based auto-match criteria object. @@ -2544,22 +2547,22 @@ export namespace games_v1 { * exclusive bitmasks, the result must be zero. Can be used to support * exclusive roles within a game. */ - exclusiveBitmask: string; + exclusiveBitmask?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedAutoMatchingCriteria. */ - kind: string; + kind?: string; /** * The maximum number of players that should be added to the match by * auto-matching. */ - maxAutoMatchingPlayers: number; + maxAutoMatchingPlayers?: number; /** * The minimum number of players that should be added to the match by * auto-matching. */ - minAutoMatchingPlayers: number; + minAutoMatchingPlayers?: number; } /** * This is a JSON template for a turn-based match resource object. @@ -2568,76 +2571,76 @@ export namespace games_v1 { /** * The ID of the application being played. */ - applicationId: string; + applicationId?: string; /** * Criteria for auto-matching players into this match. */ - autoMatchingCriteria: Schema$TurnBasedAutoMatchingCriteria; + autoMatchingCriteria?: Schema$TurnBasedAutoMatchingCriteria; /** * Details about the match creation. */ - creationDetails: Schema$TurnBasedMatchModification; + creationDetails?: Schema$TurnBasedMatchModification; /** * The data / game state for this match. */ - data: Schema$TurnBasedMatchData; + data?: Schema$TurnBasedMatchData; /** * This short description is generated by our servers based on turn state * and is localized and worded relative to the player requesting the match. * It is intended to be displayed when the match is shown in a list. */ - description: string; + description?: string; /** * The ID of the participant that invited the user to the match. Not set if * the user was not invited to the match. */ - inviterId: string; + inviterId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatch. */ - kind: string; + kind?: string; /** * Details about the last update to the match. */ - lastUpdateDetails: Schema$TurnBasedMatchModification; + lastUpdateDetails?: Schema$TurnBasedMatchModification; /** * Globally unique ID for a turn-based match. */ - matchId: string; + matchId?: string; /** * The number of the match in a chain of rematches. Will be set to 1 for the * first match and incremented by 1 for each rematch. */ - matchNumber: number; + matchNumber?: number; /** * The version of this match: an increasing counter, used to avoid * out-of-date updates to the match. */ - matchVersion: number; + matchVersion?: number; /** * The participants involved in the match, along with their statuses. * Includes participants who have left or declined invitations. */ - participants: Schema$TurnBasedMatchParticipant[]; + participants?: Schema$TurnBasedMatchParticipant[]; /** * The ID of the participant that is taking a turn. */ - pendingParticipantId: string; + pendingParticipantId?: string; /** * The data / game state for the previous match; set for the first turn of * rematches only. */ - previousMatchData: Schema$TurnBasedMatchData; + previousMatchData?: Schema$TurnBasedMatchData; /** * The ID of a rematch of this match. Only set for completed matches that * have been rematched. */ - rematchId: string; + rematchId?: string; /** * The results reported for this match. */ - results: Schema$ParticipantResult[]; + results?: Schema$ParticipantResult[]; /** * The status of the match. Possible values are: - * "MATCH_AUTO_MATCHING" - One or more slots need to be filled by @@ -2649,7 +2652,7 @@ export namespace games_v1 { * "MATCH_DELETED" - The match should no longer be shown on the * client. Returned only for tombstones for matches when sync is called. */ - status: string; + status?: string; /** * The status of the current user in the match. Derived from the match type, * match status, the user's participant status, and the pending @@ -2660,17 +2663,17 @@ export namespace games_v1 { * action to take in the match. - "USER_MATCH_COMPLETED" - The * match has ended (it is completed, canceled, or expired.) */ - userMatchStatus: string; + userMatchStatus?: string; /** * The variant / mode of the application being played; can be any integer * value, or left blank. */ - variant: number; + variant?: number; /** * The ID of another participant in the match that can be used when * describing the participants the user is playing with. */ - withParticipantId: string; + withParticipantId?: string; } /** * This is a JSON template for a turn-based match creation request. @@ -2679,27 +2682,27 @@ export namespace games_v1 { /** * Criteria for auto-matching players into this match. */ - autoMatchingCriteria: Schema$TurnBasedAutoMatchingCriteria; + autoMatchingCriteria?: Schema$TurnBasedAutoMatchingCriteria; /** * The player ids to invite to the match. */ - invitedPlayerIds: string[]; + invitedPlayerIds?: string[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchCreateRequest. */ - kind: string; + kind?: string; /** * A randomly generated numeric ID. This number is used at the server to * ensure that the request is handled correctly across retries. */ - requestId: string; + requestId?: string; /** * The variant / mode of the application to be played. This can be any * integer value, or left blank. You should use a small number of variants * to keep the auto-matching pool as large as possible. */ - variant: number; + variant?: number; } /** * This is a JSON template for a turn-based match data object. @@ -2709,17 +2712,17 @@ export namespace games_v1 { * The byte representation of the data (limited to 128 kB), as a * Base64-encoded string with the URL_SAFE encoding option. */ - data: string; + data?: string; /** * True if this match has data available but it wasn't returned in a * list response; fetching the match individually will retrieve this data. */ - dataAvailable: boolean; + dataAvailable?: boolean; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchData. */ - kind: string; + kind?: string; } /** * This is a JSON template for sending a turn-based match data object. @@ -2729,12 +2732,12 @@ export namespace games_v1 { * The byte representation of the data (limited to 128 kB), as a * Base64-encoded string with the URL_SAFE encoding option. */ - data: string; + data?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchDataRequest. */ - kind: string; + kind?: string; } /** * This is a JSON template for a list of turn-based matches. @@ -2743,16 +2746,16 @@ export namespace games_v1 { /** * The matches. */ - items: Schema$TurnBasedMatch[]; + items?: Schema$TurnBasedMatch[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchList. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for turn-based match modification metadata. @@ -2762,16 +2765,16 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchModification. */ - kind: string; + kind?: string; /** * The timestamp at which they modified the match, in milliseconds since the * epoch in UTC. */ - modifiedTimestampMillis: string; + modifiedTimestampMillis?: string; /** * The ID of the participant that modified the match. */ - participantId: string; + participantId?: string; } /** * This is a JSON template for a participant in a turn-based match. @@ -2780,28 +2783,28 @@ export namespace games_v1 { /** * True if this participant was auto-matched with the requesting player. */ - autoMatched: boolean; + autoMatched?: boolean; /** * Information about a player that has been anonymously auto-matched against * the requesting player. (Either player or autoMatchedPlayer will be set.) */ - autoMatchedPlayer: Schema$AnonymousPlayer; + autoMatchedPlayer?: Schema$AnonymousPlayer; /** * An identifier for the participant in the scope of the match. Cannot be * used to identify a player across matches or in other contexts. */ - id: string; + id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchParticipant. */ - kind: string; + kind?: string; /** * Information about the player. Not populated if this player was * anonymously auto-matched against the requesting player. (Either player or * autoMatchedPlayer will be set.) */ - player: Schema$Player; + player?: Schema$Player; /** * The status of the participant with respect to the match. Possible values * are: - "PARTICIPANT_NOT_INVITED_YET" - The participant is @@ -2818,7 +2821,7 @@ export namespace games_v1 { * "PARTICIPANT_UNRESPONSIVE" - The participant did not take their * turn in the allotted time. */ - status: string; + status?: string; } /** * This is a JSON template for a rematch response. @@ -2828,17 +2831,17 @@ export namespace games_v1 { * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchRematch. */ - kind: string; + kind?: string; /** * The old match that the rematch was created from; will be updated such * that the rematchId field will point at the new match. */ - previousMatch: Schema$TurnBasedMatch; + previousMatch?: Schema$TurnBasedMatch; /** * The newly created match; a rematch of the old match with the same * participants. */ - rematch: Schema$TurnBasedMatch; + rematch?: Schema$TurnBasedMatch; } /** * This is a JSON template for a turn-based match results object. @@ -2847,20 +2850,20 @@ export namespace games_v1 { /** * The final match data. */ - data: Schema$TurnBasedMatchDataRequest; + data?: Schema$TurnBasedMatchDataRequest; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchResults. */ - kind: string; + kind?: string; /** * The version of the match being updated. */ - matchVersion: number; + matchVersion?: number; /** * The match results for the participants in the match. */ - results: Schema$ParticipantResult[]; + results?: Schema$ParticipantResult[]; } /** * This is a JSON template for a list of turn-based matches returned from a @@ -2870,21 +2873,21 @@ export namespace games_v1 { /** * The matches. */ - items: Schema$TurnBasedMatch[]; + items?: Schema$TurnBasedMatch[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchSync. */ - kind: string; + kind?: string; /** * True if there were more matches available to fetch at the time the * response was generated (which were not returned due to page size limits.) */ - moreAvailable: boolean; + moreAvailable?: boolean; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for the object representing a turn. @@ -2893,17 +2896,17 @@ export namespace games_v1 { /** * The shared game state data after the turn is over. */ - data: Schema$TurnBasedMatchDataRequest; + data?: Schema$TurnBasedMatchDataRequest; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#turnBasedMatchTurn. */ - kind: string; + kind?: string; /** * The version of this match: an increasing counter, used to avoid * out-of-date updates to the match. */ - matchVersion: number; + matchVersion?: number; /** * The ID of the participant who should take their turn next. May be set to * the current player's participant ID to update match state without @@ -2911,13 +2914,14 @@ export namespace games_v1 { * join via automatching; this is only valid if automatch criteria is set on * the match with remaining slots for automatched players. */ - pendingParticipantId: string; + pendingParticipantId?: string; /** * The match results for the participants in the match. */ - results: Schema$ParticipantResult[]; + results?: Schema$ParticipantResult[]; } + export class Resource$Achievementdefinitions { root: Games; constructor(root: Games) { @@ -2944,31 +2948,48 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Achievementdefinitions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievementdefinitions$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievementdefinitions$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Achievementdefinitions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementdefinitions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementdefinitions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2993,6 +3014,29 @@ export namespace games_v1 { } } + export interface Params$Resource$Achievementdefinitions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of achievement resources to return in the response, + * used for paging. For any response, the actual number of achievement + * resources returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Achievements { root: Games; constructor(root: Games) { @@ -3020,29 +3064,45 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - increment(params?: any, options?: MethodOptions): + increment( + params?: Params$Resource$Achievements$Increment, + options?: MethodOptions): AxiosPromise; increment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Increment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + increment( + params: Params$Resource$Achievements$Increment, + callback: BodyResponseCallback): + void; + increment(callback: + BodyResponseCallback): void; increment( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievements$Increment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Achievements$Increment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Increment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3085,29 +3145,42 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Achievements$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Achievements$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Achievements$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3145,29 +3218,41 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reveal(params?: any, options?: MethodOptions): + reveal( + params?: Params$Resource$Achievements$Reveal, options?: MethodOptions): AxiosPromise; reveal( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Reveal, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + reveal( + params: Params$Resource$Achievements$Reveal, + callback: BodyResponseCallback): void; + reveal(callback: BodyResponseCallback): void; reveal( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievements$Reveal| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Achievements$Reveal; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Reveal; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3207,31 +3292,49 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setStepsAtLeast(params?: any, options?: MethodOptions): + setStepsAtLeast( + params?: Params$Resource$Achievements$Setstepsatleast, + options?: MethodOptions): AxiosPromise; setStepsAtLeast( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Setstepsatleast, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + setStepsAtLeast( + params: Params$Resource$Achievements$Setstepsatleast, + callback: + BodyResponseCallback): + void; + setStepsAtLeast( + callback: BodyResponseCallback): void; setStepsAtLeast( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievements$Setstepsatleast| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievements$Setstepsatleast; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Setstepsatleast; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3269,29 +3372,41 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unlock(params?: any, options?: MethodOptions): + unlock( + params?: Params$Resource$Achievements$Unlock, options?: MethodOptions): AxiosPromise; unlock( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Unlock, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + unlock( + params: Params$Resource$Achievements$Unlock, + callback: BodyResponseCallback): void; + unlock(callback: BodyResponseCallback): void; unlock( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievements$Unlock| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Achievements$Unlock; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Unlock; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3328,31 +3443,49 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateMultiple(params?: any, options?: MethodOptions): + updateMultiple( + params?: Params$Resource$Achievements$Updatemultiple, + options?: MethodOptions): AxiosPromise; updateMultiple( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Updatemultiple, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + updateMultiple( + params: Params$Resource$Achievements$Updatemultiple, + callback: + BodyResponseCallback): + void; + updateMultiple( + callback: BodyResponseCallback): void; updateMultiple( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievements$Updatemultiple| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievements$Updatemultiple; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Updatemultiple; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3377,6 +3510,103 @@ export namespace games_v1 { } } + export interface Params$Resource$Achievements$Increment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + /** + * A randomly generated numeric ID for each request specified by the caller. + * This number is used at the server to ensure that the request is handled + * correctly across retries. + */ + requestId?: string; + /** + * The number of steps to increment. + */ + stepsToIncrement?: number; + } + export interface Params$Resource$Achievements$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of achievement resources to return in the response, + * used for paging. For any response, the actual number of achievement + * resources returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + /** + * Tells the server to return only achievements with the specified state. If + * this parameter isn't specified, all achievements are returned. + */ + state?: string; + } + export interface Params$Resource$Achievements$Reveal { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + } + export interface Params$Resource$Achievements$Setstepsatleast { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + /** + * The minimum value to set the steps to. + */ + steps?: number; + } + export interface Params$Resource$Achievements$Unlock { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + } + export interface Params$Resource$Achievements$Updatemultiple { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Applications { root: Games; constructor(root: Games) { @@ -3405,24 +3635,34 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Applications$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Applications$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Applications$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Applications$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Applications$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applications$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3457,22 +3697,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - played(params?: any, options?: MethodOptions): AxiosPromise; played( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Applications$Played, + options?: MethodOptions): AxiosPromise; + played( + params: Params$Resource$Applications$Played, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; played( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Applications$Played, + callback: BodyResponseCallback): void; + played(callback: BodyResponseCallback): void; + played( + paramsOrCallback?: Params$Resource$Applications$Played| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Applications$Played; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applications$Played; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3509,29 +3764,41 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verify(params?: any, options?: MethodOptions): + verify( + params?: Params$Resource$Applications$Verify, options?: MethodOptions): AxiosPromise; verify( - params?: any, - options?: MethodOptions| + params: Params$Resource$Applications$Verify, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + verify( + params: Params$Resource$Applications$Verify, + callback: BodyResponseCallback): void; + verify(callback: BodyResponseCallback): void; verify( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Applications$Verify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Applications$Verify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applications$Verify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3555,6 +3822,44 @@ export namespace games_v1 { } } + export interface Params$Resource$Applications$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * Restrict application details returned to the specific platform. + */ + platformType?: string; + } + export interface Params$Resource$Applications$Played { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Applications$Verify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + } + + export class Resource$Events { root: Games; constructor(root: Games) { @@ -3582,28 +3887,41 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listByPlayer(params?: any, options?: MethodOptions): - AxiosPromise; listByPlayer( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Events$Listbyplayer, + options?: MethodOptions): AxiosPromise; + listByPlayer( + params: Params$Resource$Events$Listbyplayer, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listByPlayer( + params: Params$Resource$Events$Listbyplayer, + callback: BodyResponseCallback): void; listByPlayer( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + listByPlayer( + paramsOrCallback?: Params$Resource$Events$Listbyplayer| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Events$Listbyplayer; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Listbyplayer; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3639,29 +3957,45 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listDefinitions(params?: any, options?: MethodOptions): + listDefinitions( + params?: Params$Resource$Events$Listdefinitions, + options?: MethodOptions): AxiosPromise; listDefinitions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Events$Listdefinitions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; listDefinitions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Events$Listdefinitions, + callback: BodyResponseCallback): + void; + listDefinitions( + callback: BodyResponseCallback): + void; + listDefinitions( + paramsOrCallback?: Params$Resource$Events$Listdefinitions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Events$Listdefinitions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Listdefinitions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3699,28 +4033,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - record(params?: any, options?: MethodOptions): + record(params?: Params$Resource$Events$Record, options?: MethodOptions): AxiosPromise; record( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Record, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; record( - params?: any, - options?: MethodOptions| + params: Params$Resource$Events$Record, + callback: BodyResponseCallback): void; + record(callback: BodyResponseCallback): void; + record( + paramsOrCallback?: Params$Resource$Events$Record| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Record; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Record; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3742,6 +4085,65 @@ export namespace games_v1 { } } + export interface Params$Resource$Events$Listbyplayer { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of events to return in the response, used for paging. + * For any response, the actual number of events to return may be less than + * the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Events$Listdefinitions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of event definitions to return in the response, used + * for paging. For any response, the actual number of event definitions to + * return may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Events$Record { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * Request body metadata + */ + resource?: Schema$EventRecordRequest; + } + + export class Resource$Leaderboards { root: Games; constructor(root: Games) { @@ -3767,24 +4169,34 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Leaderboards$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Leaderboards$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Leaderboards$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Leaderboards$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Leaderboards$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboards$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3821,28 +4233,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Leaderboards$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Leaderboards$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Leaderboards$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Leaderboards$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Leaderboards$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboards$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3865,22 +4288,60 @@ export namespace games_v1 { } } - export class Resource$Metagame { - root: Games; - constructor(root: Games) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Leaderboards$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * games.metagame.getMetagameConfig - * @desc Return the metagame configuration data for the calling application. - * @alias games.metagame.getMetagameConfig + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + } + export interface Params$Resource$Leaderboards$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of leaderboards to return in the response. For any + * response, the actual number of leaderboards returned may be less than the + * specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + + export class Resource$Metagame { + root: Games; + constructor(root: Games) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * games.metagame.getMetagameConfig + * @desc Return the metagame configuration data for the calling application. + * @alias games.metagame.getMetagameConfig * @memberOf! () * * @param {object=} params Parameters for request @@ -3888,26 +4349,40 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getMetagameConfig(params?: any, options?: MethodOptions): - AxiosPromise; getMetagameConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Metagame$Getmetagameconfig, + options?: MethodOptions): AxiosPromise; getMetagameConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Metagame$Getmetagameconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getMetagameConfig( + params: Params$Resource$Metagame$Getmetagameconfig, + callback: BodyResponseCallback): void; + getMetagameConfig(callback: BodyResponseCallback): + void; + getMetagameConfig( + paramsOrCallback?: Params$Resource$Metagame$Getmetagameconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Metagame$Getmetagameconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metagame$Getmetagameconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3947,28 +4422,41 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listCategoriesByPlayer(params?: any, options?: MethodOptions): - AxiosPromise; listCategoriesByPlayer( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Metagame$Listcategoriesbyplayer, + options?: MethodOptions): AxiosPromise; + listCategoriesByPlayer( + params: Params$Resource$Metagame$Listcategoriesbyplayer, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; listCategoriesByPlayer( - params?: any, - options?: MethodOptions| + params: Params$Resource$Metagame$Listcategoriesbyplayer, + callback: BodyResponseCallback): void; + listCategoriesByPlayer( + callback: BodyResponseCallback): void; + listCategoriesByPlayer( + paramsOrCallback?: Params$Resource$Metagame$Listcategoriesbyplayer| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Metagame$Listcategoriesbyplayer; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Metagame$Listcategoriesbyplayer; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3992,6 +4480,44 @@ export namespace games_v1 { } } + export interface Params$Resource$Metagame$Getmetagameconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Metagame$Listcategoriesbyplayer { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of categories for which data will be returned. + */ + collection?: string; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of category resources to return in the response, used + * for paging. For any response, the actual number of category resources + * returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + } + + export class Resource$Players { root: Games; constructor(root: Games) { @@ -4018,23 +4544,33 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Players$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Players$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Players$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Players$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Players$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Players$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4072,26 +4608,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Players$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Players$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Players$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Players$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Players$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Players$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4114,6 +4661,49 @@ export namespace games_v1 { } } + export interface Params$Resource$Players$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + } + export interface Params$Resource$Players$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Collection of players being retrieved + */ + collection?: string; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of player resources to return in the response, used + * for paging. For any response, the actual number of player resources + * returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Pushtokens { root: Games; constructor(root: Games) { @@ -4139,22 +4729,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - remove(params?: any, options?: MethodOptions): AxiosPromise; + remove(params?: Params$Resource$Pushtokens$Remove, options?: MethodOptions): + AxiosPromise; + remove( + params: Params$Resource$Pushtokens$Remove, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; remove( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pushtokens$Remove, + callback: BodyResponseCallback): void; + remove(callback: BodyResponseCallback): void; remove( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pushtokens$Remove| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pushtokens$Remove; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pushtokens$Remove; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4189,22 +4793,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Pushtokens$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pushtokens$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pushtokens$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Pushtokens$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pushtokens$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pushtokens$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4227,6 +4845,20 @@ export namespace games_v1 { } } + export interface Params$Resource$Pushtokens$Remove { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Pushtokens$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Questmilestones { root: Games; constructor(root: Games) { @@ -4255,22 +4887,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - claim(params?: any, options?: MethodOptions): AxiosPromise; claim( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Questmilestones$Claim, + options?: MethodOptions): AxiosPromise; + claim( + params: Params$Resource$Questmilestones$Claim, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; claim( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Questmilestones$Claim, + callback: BodyResponseCallback): void; + claim(callback: BodyResponseCallback): void; + claim( + paramsOrCallback?: Params$Resource$Questmilestones$Claim| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Questmilestones$Claim; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Questmilestones$Claim; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4294,6 +4941,28 @@ export namespace games_v1 { } } + export interface Params$Resource$Questmilestones$Claim { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the milestone. + */ + milestoneId?: string; + /** + * The ID of the quest. + */ + questId?: string; + /** + * A numeric ID to ensure that the request is handled correctly across + * retries. Your client application must generate this ID randomly. + */ + requestId?: string; + } + + export class Resource$Quests { root: Games; constructor(root: Games) { @@ -4320,25 +4989,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - accept(params?: any, options?: MethodOptions): AxiosPromise; + accept(params?: Params$Resource$Quests$Accept, options?: MethodOptions): + AxiosPromise; accept( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Quests$Accept, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; accept( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Quests$Accept, + callback: BodyResponseCallback): void; + accept(callback: BodyResponseCallback): void; + accept( + paramsOrCallback?: Params$Resource$Quests$Accept| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Quests$Accept; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$Accept; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4377,26 +5057,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Quests$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Quests$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Quests$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Quests$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Quests$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4419,6 +5110,50 @@ export namespace games_v1 { } } + export interface Params$Resource$Quests$Accept { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the quest. + */ + questId?: string; + } + export interface Params$Resource$Quests$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of quest resources to return in the response, used for + * paging. For any response, the actual number of quest resources returned + * may be less than the specified maxResults. Acceptable values are 1 to 50, + * inclusive. (Default: 50). + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + } + + export class Resource$Revisions { root: Games; constructor(root: Games) { @@ -4443,28 +5178,38 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - check(params?: any, options?: MethodOptions): + check(params?: Params$Resource$Revisions$Check, options?: MethodOptions): AxiosPromise; check( - params?: any, - options?: MethodOptions| + params: Params$Resource$Revisions$Check, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + check( + params: Params$Resource$Revisions$Check, + callback: BodyResponseCallback): void; + check(callback: BodyResponseCallback): void; check( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Revisions$Check| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Revisions$Check; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Revisions$Check; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4487,6 +5232,22 @@ export namespace games_v1 { } } + export interface Params$Resource$Revisions$Check { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The revision of the client SDK used by your application. Format: + * [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are: + * - "ANDROID" - Client is running the Android SDK. - "IOS" - Client is + * running the iOS SDK. - "WEB_APP" - Client is running as a Web App. + */ + clientRevision?: string; + } + + export class Resource$Rooms { root: Games; constructor(root: Games) { @@ -4513,23 +5274,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Rooms$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Rooms$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rooms$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4566,23 +5340,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - decline(params?: any, options?: MethodOptions): AxiosPromise; + decline(params?: Params$Resource$Rooms$Decline, options?: MethodOptions): + AxiosPromise; decline( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$Decline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; decline( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rooms$Decline, + callback: BodyResponseCallback): void; + decline(callback: BodyResponseCallback): void; + decline( + paramsOrCallback?: Params$Resource$Rooms$Decline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Decline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Decline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4618,22 +5405,35 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - dismiss(params?: any, options?: MethodOptions): AxiosPromise; + dismiss(params?: Params$Resource$Rooms$Dismiss, options?: MethodOptions): + AxiosPromise; + dismiss( + params: Params$Resource$Rooms$Dismiss, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; dismiss( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$Dismiss, + callback: BodyResponseCallback): void; + dismiss(callback: BodyResponseCallback): void; dismiss( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rooms$Dismiss| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Dismiss; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Dismiss; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4669,21 +5469,33 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Rooms$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Rooms$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Rooms$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Rooms$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4721,23 +5533,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - join(params?: any, options?: MethodOptions): AxiosPromise; + join(params?: Params$Resource$Rooms$Join, options?: MethodOptions): + AxiosPromise; join( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$Join, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; join( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rooms$Join, + callback: BodyResponseCallback): void; + join(callback: BodyResponseCallback): void; + join( + paramsOrCallback?: Params$Resource$Rooms$Join| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Join; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Join; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4775,23 +5600,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - leave(params?: any, options?: MethodOptions): AxiosPromise; + leave(params?: Params$Resource$Rooms$Leave, options?: MethodOptions): + AxiosPromise; + leave( + params: Params$Resource$Rooms$Leave, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; leave( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$Leave, + callback: BodyResponseCallback): void; + leave(callback: BodyResponseCallback): void; leave( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rooms$Leave| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Leave; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Leave; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4828,25 +5666,36 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Rooms$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rooms$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Rooms$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4884,26 +5733,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reportStatus(params?: any, options?: MethodOptions): - AxiosPromise; reportStatus( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rooms$Reportstatus, + options?: MethodOptions): AxiosPromise; + reportStatus( + params: Params$Resource$Rooms$Reportstatus, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reportStatus( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rooms$Reportstatus, + callback: BodyResponseCallback): void; + reportStatus(callback: BodyResponseCallback): void; + reportStatus( + paramsOrCallback?: Params$Resource$Rooms$Reportstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rooms$Reportstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Reportstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4926,29 +5788,165 @@ export namespace games_v1 { } } - export class Resource$Scores { - root: Games; - constructor(root: Games) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Rooms$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * Request body metadata + */ + resource?: Schema$RoomCreateRequest; + } + export interface Params$Resource$Rooms$Decline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the room. + */ + roomId?: string; + } + export interface Params$Resource$Rooms$Dismiss { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * games.scores.get - * @desc Get high scores, and optionally ranks, in leaderboards for the - * currently authenticated player. For a specific time span, leaderboardId - * can be set to ALL to retrieve data for all leaderboards in a given time - * span. NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in - * the same request; only one parameter may be set to 'ALL'. - * @alias games.scores.get - * @memberOf! () - * - * @param {object} params Parameters for request + * The ID of the room. + */ + roomId?: string; + } + export interface Params$Resource$Rooms$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the room. + */ + roomId?: string; + } + export interface Params$Resource$Rooms$Join { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the room. + */ + roomId?: string; + /** + * Request body metadata + */ + resource?: Schema$RoomJoinRequest; + } + export interface Params$Resource$Rooms$Leave { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the room. + */ + roomId?: string; + /** + * Request body metadata + */ + resource?: Schema$RoomLeaveRequest; + } + export interface Params$Resource$Rooms$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of rooms to return in the response, used for paging. + * For any response, the actual number of rooms to return may be less than + * the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Rooms$Reportstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the room. + */ + roomId?: string; + /** + * Request body metadata + */ + resource?: Schema$RoomP2PStatuses; + } + + + export class Resource$Scores { + root: Games; + constructor(root: Games) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * games.scores.get + * @desc Get high scores, and optionally ranks, in leaderboards for the + * currently authenticated player. For a specific time span, leaderboardId + * can be set to ALL to retrieve data for all leaderboards in a given time + * span. NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in + * the same request; only one parameter may be set to 'ALL'. + * @alias games.scores.get + * @memberOf! () + * + * @param {object} params Parameters for request * @param {string=} params.includeRankType The types of ranks to return. If the parameter is omitted, no ranks will be returned. * @param {string=} params.language The preferred language to use for strings returned by this method. * @param {string} params.leaderboardId The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application. @@ -4960,29 +5958,42 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Scores$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Scores$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Scores$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: + BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Scores$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Scores$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5026,26 +6037,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Scores$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Scores$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Scores$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Scores$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Scores$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5090,26 +6112,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listWindow(params?: any, options?: MethodOptions): - AxiosPromise; listWindow( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Scores$Listwindow, + options?: MethodOptions): AxiosPromise; + listWindow( + params: Params$Resource$Scores$Listwindow, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listWindow( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Scores$Listwindow, + callback: BodyResponseCallback): void; + listWindow(callback: BodyResponseCallback): void; + listWindow( + paramsOrCallback?: Params$Resource$Scores$Listwindow| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Scores$Listwindow; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Listwindow; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5149,28 +6184,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - submit(params?: any, options?: MethodOptions): + submit(params?: Params$Resource$Scores$Submit, options?: MethodOptions): AxiosPromise; submit( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Scores$Submit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + submit( + params: Params$Resource$Scores$Submit, + callback: BodyResponseCallback): void; + submit(callback: BodyResponseCallback): void; submit( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Scores$Submit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Scores$Submit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Submit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5206,28 +6250,41 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - submitMultiple(params?: any, options?: MethodOptions): - AxiosPromise; submitMultiple( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Scores$Submitmultiple, + options?: MethodOptions): AxiosPromise; + submitMultiple( + params: Params$Resource$Scores$Submitmultiple, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; submitMultiple( - params?: any, - options?: MethodOptions| + params: Params$Resource$Scores$Submitmultiple, + callback: BodyResponseCallback): void; + submitMultiple( + callback: BodyResponseCallback): void; + submitMultiple( + paramsOrCallback?: Params$Resource$Scores$Submitmultiple| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Scores$Submitmultiple; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Submitmultiple; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5250,6 +6307,171 @@ export namespace games_v1 { } } + export interface Params$Resource$Scores$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The types of ranks to return. If the parameter is omitted, no ranks will + * be returned. + */ + includeRankType?: string; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all + * leaderboards for this application. + */ + leaderboardId?: string; + /** + * The maximum number of leaderboard scores to return in the response. For + * any response, the actual number of leaderboard scores returned may be + * less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + /** + * The time span for the scores and ranks you're requesting. + */ + timeSpan?: string; + } + export interface Params$Resource$Scores$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of scores you're requesting. + */ + collection?: string; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + /** + * The maximum number of leaderboard scores to return in the response. For + * any response, the actual number of leaderboard scores returned may be + * less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * The time span for the scores and ranks you're requesting. + */ + timeSpan?: string; + } + export interface Params$Resource$Scores$Listwindow { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of scores you're requesting. + */ + collection?: string; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + /** + * The maximum number of leaderboard scores to return in the response. For + * any response, the actual number of leaderboard scores returned may be + * less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * The preferred number of scores to return above the player's score. More + * scores may be returned if the player is at the bottom of the leaderboard; + * fewer may be returned if the player is at the top. Must be less than or + * equal to maxResults. + */ + resultsAbove?: number; + /** + * True if the top scores should be returned when the player is not in the + * leaderboard. Defaults to true. + */ + returnTopIfAbsent?: boolean; + /** + * The time span for the scores and ranks you're requesting. + */ + timeSpan?: string; + } + export interface Params$Resource$Scores$Submit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + /** + * The score you're submitting. The submitted score is ignored if it is + * worse than a previously submitted score, where worse depends on the + * leaderboard sort order. The meaning of the score value depends on the + * leaderboard format type. For fixed-point, the score represents the raw + * value. For time, the score represents elapsed time in milliseconds. For + * currency, the score represents a value in micro units. + */ + score?: string; + /** + * Additional information about the score you're submitting. Values must + * contain no more than 64 URI-safe characters as defined by section 2.3 of + * RFC 3986. + */ + scoreTag?: string; + } + export interface Params$Resource$Scores$Submitmultiple { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * Request body metadata + */ + resource?: Schema$PlayerScoreSubmissionList; + } + + export class Resource$Snapshots { root: Games; constructor(root: Games) { @@ -5275,23 +6497,33 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Snapshots$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Snapshots$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Snapshots$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Snapshots$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5330,28 +6562,38 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Snapshots$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Snapshots$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Snapshots$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Snapshots$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Snapshots$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Snapshots$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5374,6 +6616,49 @@ export namespace games_v1 { } } + export interface Params$Resource$Snapshots$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the snapshot. + */ + snapshotId?: string; + } + export interface Params$Resource$Snapshots$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of snapshot resources to return in the response, used + * for paging. For any response, the actual number of snapshot resources + * returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + } + + export class Resource$Turnbasedmatches { root: Games; constructor(root: Games) { @@ -5398,22 +6683,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Turnbasedmatches$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Turnbasedmatches$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5449,26 +6749,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Turnbasedmatches$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Turnbasedmatches$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5504,26 +6817,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - decline(params?: any, options?: MethodOptions): - AxiosPromise; decline( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Decline, + options?: MethodOptions): AxiosPromise; + decline( + params: Params$Resource$Turnbasedmatches$Decline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + decline( + params: Params$Resource$Turnbasedmatches$Decline, + callback: BodyResponseCallback): void; + decline(callback: BodyResponseCallback): void; decline( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Decline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Decline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Decline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5559,22 +6885,37 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - dismiss(params?: any, options?: MethodOptions): AxiosPromise; dismiss( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Dismiss, + options?: MethodOptions): AxiosPromise; + dismiss( + params: Params$Resource$Turnbasedmatches$Dismiss, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + dismiss( + params: Params$Resource$Turnbasedmatches$Dismiss, + callback: BodyResponseCallback): void; + dismiss(callback: BodyResponseCallback): void; dismiss( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Dismiss| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Dismiss; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Dismiss; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5613,26 +6954,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - finish(params?: any, options?: MethodOptions): - AxiosPromise; finish( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Finish, + options?: MethodOptions): AxiosPromise; + finish( + params: Params$Resource$Turnbasedmatches$Finish, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + finish( + params: Params$Resource$Turnbasedmatches$Finish, + callback: BodyResponseCallback): void; + finish(callback: BodyResponseCallback): void; finish( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Finish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Finish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Finish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5669,24 +7023,35 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Turnbasedmatches$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Turnbasedmatches$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Turnbasedmatches$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Turnbasedmatches$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5722,26 +7087,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - join(params?: any, options?: MethodOptions): - AxiosPromise; join( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Join, + options?: MethodOptions): AxiosPromise; + join( + params: Params$Resource$Turnbasedmatches$Join, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + join( + params: Params$Resource$Turnbasedmatches$Join, + callback: BodyResponseCallback): void; + join(callback: BodyResponseCallback): void; join( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Join| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Join; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Join; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5778,26 +7156,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - leave(params?: any, options?: MethodOptions): - AxiosPromise; leave( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Leave, + options?: MethodOptions): AxiosPromise; + leave( + params: Params$Resource$Turnbasedmatches$Leave, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; leave( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Turnbasedmatches$Leave, + callback: BodyResponseCallback): void; + leave(callback: BodyResponseCallback): void; + leave( + paramsOrCallback?: Params$Resource$Turnbasedmatches$Leave| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Leave; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Leave; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5836,26 +7227,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - leaveTurn(params?: any, options?: MethodOptions): - AxiosPromise; leaveTurn( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Leaveturn, + options?: MethodOptions): AxiosPromise; + leaveTurn( + params: Params$Resource$Turnbasedmatches$Leaveturn, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; leaveTurn( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Turnbasedmatches$Leaveturn, + callback: BodyResponseCallback): void; + leaveTurn(callback: BodyResponseCallback): void; + leaveTurn( + paramsOrCallback?: Params$Resource$Turnbasedmatches$Leaveturn| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Turnbasedmatches$Leaveturn; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Leaveturn; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5894,26 +7298,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Turnbasedmatches$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Turnbasedmatches$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5953,28 +7370,40 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rematch(params?: any, options?: MethodOptions): - AxiosPromise; rematch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Turnbasedmatches$Rematch, + options?: MethodOptions): AxiosPromise; + rematch( + params: Params$Resource$Turnbasedmatches$Rematch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; rematch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Turnbasedmatches$Rematch, + callback: BodyResponseCallback): void; + rematch(callback: BodyResponseCallback): void; + rematch( + paramsOrCallback?: Params$Resource$Turnbasedmatches$Rematch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Rematch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Rematch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6016,26 +7445,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sync(params?: any, options?: MethodOptions): - AxiosPromise; sync( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Sync, + options?: MethodOptions): AxiosPromise; + sync( + params: Params$Resource$Turnbasedmatches$Sync, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + sync( + params: Params$Resource$Turnbasedmatches$Sync, + callback: BodyResponseCallback): void; + sync(callback: BodyResponseCallback): void; sync( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Sync| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Sync; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Sync; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6072,26 +7514,39 @@ export namespace games_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - takeTurn(params?: any, options?: MethodOptions): - AxiosPromise; takeTurn( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Taketurn, + options?: MethodOptions): AxiosPromise; + takeTurn( + params: Params$Resource$Turnbasedmatches$Taketurn, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + takeTurn( + params: Params$Resource$Turnbasedmatches$Taketurn, + callback: BodyResponseCallback): void; + takeTurn(callback: BodyResponseCallback): void; takeTurn( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Turnbasedmatches$Taketurn| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Taketurn; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Taketurn; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6113,4 +7568,261 @@ export namespace games_v1 { } } } + + export interface Params$Resource$Turnbasedmatches$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the match. + */ + matchId?: string; + } + export interface Params$Resource$Turnbasedmatches$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * Request body metadata + */ + resource?: Schema$TurnBasedMatchCreateRequest; + } + export interface Params$Resource$Turnbasedmatches$Decline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + } + export interface Params$Resource$Turnbasedmatches$Dismiss { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the match. + */ + matchId?: string; + } + export interface Params$Resource$Turnbasedmatches$Finish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + /** + * Request body metadata + */ + resource?: Schema$TurnBasedMatchResults; + } + export interface Params$Resource$Turnbasedmatches$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Get match data along with metadata. + */ + includeMatchData?: boolean; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + } + export interface Params$Resource$Turnbasedmatches$Join { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + } + export interface Params$Resource$Turnbasedmatches$Leave { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + } + export interface Params$Resource$Turnbasedmatches$Leaveturn { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + /** + * The version of the match being updated. + */ + matchVersion?: number; + /** + * The ID of another participant who should take their turn next. If not + * set, the match will wait for other player(s) to join via automatching; + * this is only valid if automatch criteria is set on the match with + * remaining slots for automatched players. + */ + pendingParticipantId?: string; + } + export interface Params$Resource$Turnbasedmatches$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * True if match data should be returned in the response. Note that not all + * data will necessarily be returned if include_match_data is true; the + * server may decide to only return data for some of the matches to limit + * download size for the client. The remainder of the data for these matches + * will be retrievable on request. + */ + includeMatchData?: boolean; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of completed or canceled matches to return in the + * response. If not set, all matches returned could be completed or + * canceled. + */ + maxCompletedMatches?: number; + /** + * The maximum number of matches to return in the response, used for paging. + * For any response, the actual number of matches to return may be less than + * the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Turnbasedmatches$Rematch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + /** + * A randomly generated numeric ID for each request specified by the caller. + * This number is used at the server to ensure that the request is handled + * correctly across retries. + */ + requestId?: string; + } + export interface Params$Resource$Turnbasedmatches$Sync { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * True if match data should be returned in the response. Note that not all + * data will necessarily be returned if include_match_data is true; the + * server may decide to only return data for some of the matches to limit + * download size for the client. The remainder of the data for these matches + * will be retrievable on request. + */ + includeMatchData?: boolean; + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The maximum number of completed or canceled matches to return in the + * response. If not set, all matches returned could be completed or + * canceled. + */ + maxCompletedMatches?: number; + /** + * The maximum number of matches to return in the response, used for paging. + * For any response, the actual number of matches to return may be less than + * the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Turnbasedmatches$Taketurn { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The preferred language to use for strings returned by this method. + */ + language?: string; + /** + * The ID of the match. + */ + matchId?: string; + /** + * Request body metadata + */ + resource?: Schema$TurnBasedMatchTurn; + } } diff --git a/src/apis/gamesConfiguration/v1configuration.ts b/src/apis/gamesConfiguration/v1configuration.ts index feaa30c3fdd..ec99f83cbb3 100644 --- a/src/apis/gamesConfiguration/v1configuration.ts +++ b/src/apis/gamesConfiguration/v1configuration.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace gamesConfiguration_v1configuration { + export interface Options extends GlobalOptions { version: 'v1configuration'; } + /** * Google Play Game Services Publishing API * @@ -80,39 +83,39 @@ export namespace gamesConfiguration_v1configuration { * "STANDARD" - Achievement is either locked or unlocked. - * "INCREMENTAL" - Achievement is incremental. */ - achievementType: string; + achievementType?: string; /** * The draft data of the achievement. */ - draft: Schema$AchievementConfigurationDetail; + draft?: Schema$AchievementConfigurationDetail; /** * The ID of the achievement. */ - id: string; + id?: string; /** * The initial state of the achievement. Possible values are: - * "HIDDEN" - Achievement is hidden. - "REVEALED" - * Achievement is revealed. - "UNLOCKED" - Achievement is * unlocked. */ - initialState: string; + initialState?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#achievementConfiguration. */ - kind: string; + kind?: string; /** * The read-only published data of the achievement. */ - published: Schema$AchievementConfigurationDetail; + published?: Schema$AchievementConfigurationDetail; /** * Steps to unlock. Only applicable to incremental achievements. */ - stepsToUnlock: number; + stepsToUnlock?: number; /** * The token for this resource. */ - token: string; + token?: string; } /** * This is a JSON template for an achievement configuration detail. @@ -121,28 +124,28 @@ export namespace gamesConfiguration_v1configuration { /** * Localized strings for the achievement description. */ - description: Schema$LocalizedStringBundle; + description?: Schema$LocalizedStringBundle; /** * The icon url of this achievement. Writes to this field are ignored. */ - iconUrl: string; + iconUrl?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#achievementConfigurationDetail. */ - kind: string; + kind?: string; /** * Localized strings for the achievement name. */ - name: Schema$LocalizedStringBundle; + name?: Schema$LocalizedStringBundle; /** * Point value for the achievement. */ - pointValue: number; + pointValue?: number; /** * The sort rank of this achievement. Writes to this field are ignored. */ - sortRank: number; + sortRank?: number; } /** * This is a JSON template for a ListConfigurations response. @@ -151,16 +154,16 @@ export namespace gamesConfiguration_v1configuration { /** * The achievement configurations. */ - items: Schema$AchievementConfiguration[]; + items?: Schema$AchievementConfiguration[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#achievementConfigurationListResponse. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a number affix resource. @@ -171,33 +174,33 @@ export namespace gamesConfiguration_v1configuration { * (as with 2, 3, and 4 in Czech; or numbers ending 2, 3, or 4 but not 12, * 13, or 14 in Polish). */ - few: Schema$LocalizedStringBundle; + few?: Schema$LocalizedStringBundle; /** * When the language requires special treatment of "large" numbers * (as with numbers ending 11-99 in Maltese). */ - many: Schema$LocalizedStringBundle; + many?: Schema$LocalizedStringBundle; /** * When the language requires special treatment of numbers like one (as with * the number 1 in English and most other languages; in Russian, any number * ending in 1 but not ending in 11 is in this class). */ - one: Schema$LocalizedStringBundle; + one?: Schema$LocalizedStringBundle; /** * When the language does not require special treatment of the given * quantity (as with all numbers in Chinese, or 42 in English). */ - other: Schema$LocalizedStringBundle; + other?: Schema$LocalizedStringBundle; /** * When the language requires special treatment of numbers like two (as with * 2 in Welsh, or 102 in Slovenian). */ - two: Schema$LocalizedStringBundle; + two?: Schema$LocalizedStringBundle; /** * When the language requires special treatment of the number 0 (as in * Arabic). */ - zero: Schema$LocalizedStringBundle; + zero?: Schema$LocalizedStringBundle; } /** * This is a JSON template for a number format resource. @@ -206,7 +209,7 @@ export namespace gamesConfiguration_v1configuration { /** * The curreny code string. Only used for CURRENCY format type. */ - currencyCode: string; + currencyCode?: string; /** * The formatting for the number. Possible values are: - * "NUMERIC" - Numbers are formatted to have no digits or a fixed @@ -215,17 +218,17 @@ export namespace gamesConfiguration_v1configuration { * formatted to hours, minutes and seconds. - "CURRENCY" - Numbers * are formatted to currency according to locale. */ - numberFormatType: string; + numberFormatType?: string; /** * The number of decimal places for number. Only used for NUMERIC format * type. */ - numDecimalPlaces: number; + numDecimalPlaces?: number; /** * An optional suffix for the NUMERIC format type. These strings follow the * same plural rules as all Android string resources. */ - suffix: Schema$GamesNumberAffixConfiguration; + suffix?: Schema$GamesNumberAffixConfiguration; } /** * This is a JSON template for an image configuration resource. @@ -234,20 +237,20 @@ export namespace gamesConfiguration_v1configuration { /** * The image type for the image. */ - imageType: string; + imageType?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#imageConfiguration. */ - kind: string; + kind?: string; /** * The resource ID of resource which the image belongs to. */ - resourceId: string; + resourceId?: string; /** * The url for this image. */ - url: string; + url?: string; } /** * This is a JSON template for an leaderboard configuration resource. @@ -256,38 +259,38 @@ export namespace gamesConfiguration_v1configuration { /** * The draft data of the leaderboard. */ - draft: Schema$LeaderboardConfigurationDetail; + draft?: Schema$LeaderboardConfigurationDetail; /** * The ID of the leaderboard. */ - id: string; + id?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#leaderboardConfiguration. */ - kind: string; + kind?: string; /** * The read-only published data of the leaderboard. */ - published: Schema$LeaderboardConfigurationDetail; + published?: Schema$LeaderboardConfigurationDetail; /** * Maximum score that can be posted to this leaderboard. */ - scoreMax: string; + scoreMax?: string; /** * Minimum score that can be posted to this leaderboard. */ - scoreMin: string; + scoreMin?: string; /** * The type of the leaderboard. Possible values are: - * "LARGER_IS_BETTER" - Larger scores posted are ranked higher. - * "SMALLER_IS_BETTER" - Smaller scores posted are ranked higher. */ - scoreOrder: string; + scoreOrder?: string; /** * The token for this resource. */ - token: string; + token?: string; } /** * This is a JSON template for a leaderboard configuration detail. @@ -296,24 +299,24 @@ export namespace gamesConfiguration_v1configuration { /** * The icon url of this leaderboard. Writes to this field are ignored. */ - iconUrl: string; + iconUrl?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#leaderboardConfigurationDetail. */ - kind: string; + kind?: string; /** * Localized strings for the leaderboard name. */ - name: Schema$LocalizedStringBundle; + name?: Schema$LocalizedStringBundle; /** * The score formatting for the leaderboard. */ - scoreFormat: Schema$GamesNumberFormatConfiguration; + scoreFormat?: Schema$GamesNumberFormatConfiguration; /** * The sort rank of this leaderboard. Writes to this field are ignored. */ - sortRank: number; + sortRank?: number; } /** * This is a JSON template for a ListConfigurations response. @@ -322,16 +325,16 @@ export namespace gamesConfiguration_v1configuration { /** * The leaderboard configurations. */ - items: Schema$LeaderboardConfiguration[]; + items?: Schema$LeaderboardConfiguration[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string games#leaderboardConfigurationListResponse. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a localized string resource. @@ -341,15 +344,15 @@ export namespace gamesConfiguration_v1configuration { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#localizedString. */ - kind: string; + kind?: string; /** * The locale string. */ - locale: string; + locale?: string; /** * The string value. */ - value: string; + value?: string; } /** * This is a JSON template for a localized string bundle resource. @@ -359,13 +362,14 @@ export namespace gamesConfiguration_v1configuration { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesConfiguration#localizedStringBundle. */ - kind: string; + kind?: string; /** * The locale strings. */ - translations: Schema$LocalizedString[]; + translations?: Schema$LocalizedString[]; } + export class Resource$Achievementconfigurations { root: Gamesconfiguration; constructor(root: Gamesconfiguration) { @@ -390,22 +394,37 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Achievementconfigurations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Achievementconfigurations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Achievementconfigurations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Achievementconfigurations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementconfigurations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementconfigurations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -442,26 +461,36 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Achievementconfigurations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Achievementconfigurations$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Achievementconfigurations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Achievementconfigurations$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementconfigurations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementconfigurations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -498,28 +527,41 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Achievementconfigurations$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Achievementconfigurations$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Achievementconfigurations$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): + void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievementconfigurations$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementconfigurations$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementconfigurations$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -559,31 +601,48 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Achievementconfigurations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievementconfigurations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievementconfigurations$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Achievementconfigurations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementconfigurations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementconfigurations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -624,28 +683,41 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Achievementconfigurations$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Achievementconfigurations$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievementconfigurations$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): + void; + patch( + paramsOrCallback?: Params$Resource$Achievementconfigurations$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementconfigurations$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementconfigurations$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -683,28 +755,41 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Achievementconfigurations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Achievementconfigurations$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Achievementconfigurations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievementconfigurations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievementconfigurations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievementconfigurations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -728,6 +813,96 @@ export namespace gamesConfiguration_v1configuration { } } + export interface Params$Resource$Achievementconfigurations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + } + export interface Params$Resource$Achievementconfigurations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + } + export interface Params$Resource$Achievementconfigurations$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * Request body metadata + */ + resource?: Schema$AchievementConfiguration; + } + export interface Params$Resource$Achievementconfigurations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * The maximum number of resource configurations to return in the response, + * used for paging. For any response, the actual number of resources + * returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Achievementconfigurations$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + /** + * Request body metadata + */ + resource?: Schema$AchievementConfiguration; + } + export interface Params$Resource$Achievementconfigurations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + /** + * Request body metadata + */ + resource?: Schema$AchievementConfiguration; + } + + export class Resource$Imageconfigurations { root: Gamesconfiguration; constructor(root: Gamesconfiguration) { @@ -756,26 +931,39 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - upload(params?: any, options?: MethodOptions): - AxiosPromise; upload( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Imageconfigurations$Upload, + options?: MethodOptions): AxiosPromise; + upload( + params: Params$Resource$Imageconfigurations$Upload, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; upload( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Imageconfigurations$Upload, + callback: BodyResponseCallback): void; + upload(callback: BodyResponseCallback): void; + upload( + paramsOrCallback?: Params$Resource$Imageconfigurations$Upload| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Imageconfigurations$Upload; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Imageconfigurations$Upload; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -804,6 +992,37 @@ export namespace gamesConfiguration_v1configuration { } } + export interface Params$Resource$Imageconfigurations$Upload { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Selects which image in a resource for this method. + */ + imageType?: string; + /** + * The ID of the resource used by this method. + */ + resourceId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Leaderboardconfigurations { root: Gamesconfiguration; constructor(root: Gamesconfiguration) { @@ -828,22 +1047,37 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Leaderboardconfigurations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Leaderboardconfigurations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Leaderboardconfigurations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Leaderboardconfigurations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Leaderboardconfigurations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboardconfigurations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -880,26 +1114,36 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Leaderboardconfigurations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Leaderboardconfigurations$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Leaderboardconfigurations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Leaderboardconfigurations$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Leaderboardconfigurations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboardconfigurations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -936,28 +1180,41 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Leaderboardconfigurations$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Leaderboardconfigurations$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Leaderboardconfigurations$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): + void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Leaderboardconfigurations$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Leaderboardconfigurations$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboardconfigurations$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -997,31 +1254,48 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Leaderboardconfigurations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Leaderboardconfigurations$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Leaderboardconfigurations$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Leaderboardconfigurations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Leaderboardconfigurations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboardconfigurations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1062,28 +1336,41 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Leaderboardconfigurations$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Leaderboardconfigurations$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Leaderboardconfigurations$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): + void; + patch( + paramsOrCallback?: Params$Resource$Leaderboardconfigurations$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Leaderboardconfigurations$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboardconfigurations$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1121,28 +1408,41 @@ export namespace gamesConfiguration_v1configuration { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Leaderboardconfigurations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Leaderboardconfigurations$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Leaderboardconfigurations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Leaderboardconfigurations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Leaderboardconfigurations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leaderboardconfigurations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1165,4 +1465,93 @@ export namespace gamesConfiguration_v1configuration { } } } + + export interface Params$Resource$Leaderboardconfigurations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + } + export interface Params$Resource$Leaderboardconfigurations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + } + export interface Params$Resource$Leaderboardconfigurations$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * Request body metadata + */ + resource?: Schema$LeaderboardConfiguration; + } + export interface Params$Resource$Leaderboardconfigurations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * The maximum number of resource configurations to return in the response, + * used for paging. For any response, the actual number of resources + * returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Leaderboardconfigurations$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + /** + * Request body metadata + */ + resource?: Schema$LeaderboardConfiguration; + } + export interface Params$Resource$Leaderboardconfigurations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + /** + * Request body metadata + */ + resource?: Schema$LeaderboardConfiguration; + } } diff --git a/src/apis/gamesManagement/v1management.ts b/src/apis/gamesManagement/v1management.ts index eab4cc85057..a76cda285e6 100644 --- a/src/apis/gamesManagement/v1management.ts +++ b/src/apis/gamesManagement/v1management.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace gamesManagement_v1management { + export interface Options extends GlobalOptions { version: 'v1management'; } + /** * Google Play Game Services Management API * @@ -87,11 +90,11 @@ export namespace gamesManagement_v1management { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#achievementResetAllResponse. */ - kind: string; + kind?: string; /** * The achievement reset results. */ - results: Schema$AchievementResetResponse[]; + results?: Schema$AchievementResetResponse[]; } /** * This is a JSON template for multiple achievements reset all request. @@ -100,12 +103,12 @@ export namespace gamesManagement_v1management { /** * The IDs of achievements to reset. */ - achievement_ids: string[]; + achievement_ids?: string[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#achievementResetMultipleForAllRequest. */ - kind: string; + kind?: string; } /** * This is a JSON template for an achievement reset response. @@ -117,20 +120,20 @@ export namespace gamesManagement_v1management { * Achievement is hidden. - "REVEALED" - Achievement is revealed. * - "UNLOCKED" - Achievement is unlocked. */ - currentState: string; + currentState?: string; /** * The ID of an achievement for which player state has been updated. */ - definitionId: string; + definitionId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#achievementResetResponse. */ - kind: string; + kind?: string; /** * Flag to indicate if the requested update actually occurred. */ - updateOccurred: boolean; + updateOccurred?: boolean; } /** * This is a JSON template for multiple events reset all request. @@ -139,12 +142,12 @@ export namespace gamesManagement_v1management { /** * The IDs of events to reset. */ - event_ids: string[]; + event_ids?: string[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#eventsResetMultipleForAllRequest. */ - kind: string; + kind?: string; } /** * This is a JSON template for metadata about a player playing a game with the @@ -155,12 +158,12 @@ export namespace gamesManagement_v1management { * True if the player was auto-matched with the currently authenticated * user. */ - autoMatched: boolean; + autoMatched?: boolean; /** * The last time the player played the game in milliseconds since the epoch * in UTC. */ - timeMillis: string; + timeMillis?: string; } /** * This is a JSON template for 1P/3P metadata about the player's @@ -170,21 +173,21 @@ export namespace gamesManagement_v1management { /** * The current number of experience points for the player. */ - currentExperiencePoints: string; + currentExperiencePoints?: string; /** * The current level of the player. */ - currentLevel: Schema$GamesPlayerLevelResource; + currentLevel?: Schema$GamesPlayerLevelResource; /** * The timestamp when the player was leveled up, in millis since Unix epoch * UTC. */ - lastLevelUpTimestampMillis: string; + lastLevelUpTimestampMillis?: string; /** * The next level of the player. If the current level is the maximum level, * this should be same as the current level. */ - nextLevel: Schema$GamesPlayerLevelResource; + nextLevel?: Schema$GamesPlayerLevelResource; } /** * This is a JSON template for 1P/3P metadata about a user's level. @@ -193,15 +196,15 @@ export namespace gamesManagement_v1management { /** * The level for the user. */ - level: number; + level?: number; /** * The maximum experience points for this level. */ - maxExperiencePoints: string; + maxExperiencePoints?: string; /** * The minimum experience points for this level. */ - minExperiencePoints: string; + minExperiencePoints?: string; } /** * This is a JSON template for the HiddenPlayer resource. @@ -210,16 +213,16 @@ export namespace gamesManagement_v1management { /** * The time this player was hidden. */ - hiddenTimeMillis: string; + hiddenTimeMillis?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#hiddenPlayer. */ - kind: string; + kind?: string; /** * The player information. */ - player: Schema$Player; + player?: Schema$Player; } /** * This is a JSON template for a list of hidden players. @@ -228,16 +231,16 @@ export namespace gamesManagement_v1management { /** * The players. */ - items: Schema$HiddenPlayer[]; + items?: Schema$HiddenPlayer[]; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#hiddenPlayerList. */ - kind: string; + kind?: string; /** * The pagination token for the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * This is a JSON template for a Player resource. @@ -246,59 +249,59 @@ export namespace gamesManagement_v1management { /** * The base URL for the image that represents the player. */ - avatarImageUrl: string; + avatarImageUrl?: string; /** * The url to the landscape mode player banner image. */ - bannerUrlLandscape: string; + bannerUrlLandscape?: string; /** * The url to the portrait mode player banner image. */ - bannerUrlPortrait: string; + bannerUrlPortrait?: string; /** * The name to display for the player. */ - displayName: string; + displayName?: string; /** * An object to represent Play Game experience information for the player. */ - experienceInfo: Schema$GamesPlayerExperienceInfoResource; + experienceInfo?: Schema$GamesPlayerExperienceInfoResource; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#player. */ - kind: string; + kind?: string; /** * Details about the last time this player played a multiplayer game with * the currently authenticated player. Populated for PLAYED_WITH player * collection members. */ - lastPlayedWith: Schema$GamesPlayedResource; + lastPlayedWith?: Schema$GamesPlayedResource; /** * An object representation of the individual components of the player's * name. For some players, these fields may not be present. */ - name: any; + name?: any; /** * The player ID that was used for this player the first time they signed * into the game in question. This is only populated for calls to player.get * for the requesting player, only if the player ID has subsequently * changed, and only to clients that support remapping player IDs. */ - originalPlayerId: string; + originalPlayerId?: string; /** * The ID of the player. */ - playerId: string; + playerId?: string; /** * The player's profile settings. Controls whether or not the * player's profile is visible to other players. */ - profileSettings: Schema$ProfileSettings; + profileSettings?: Schema$ProfileSettings; /** * The player's title rewarded for their game activities. */ - title: string; + title?: string; } /** * This is a JSON template for a list of leaderboard reset resources. @@ -308,11 +311,11 @@ export namespace gamesManagement_v1management { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#playerScoreResetResponse. */ - kind: string; + kind?: string; /** * The leaderboard reset results. */ - results: Schema$PlayerScoreResetResponse[]; + results?: Schema$PlayerScoreResetResponse[]; } /** * This is a JSON template for a list of reset leaderboard entry resources. @@ -321,19 +324,19 @@ export namespace gamesManagement_v1management { /** * The ID of an leaderboard for which player state has been updated. */ - definitionId: string; + definitionId?: string; /** * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#playerScoreResetResponse. */ - kind: string; + kind?: string; /** * The time spans of the updated score. Possible values are: - * "ALL_TIME" - The score is an all-time score. - * "WEEKLY" - The score is a weekly score. - "DAILY" - * The score is a daily score. */ - resetScoreTimeSpans: string[]; + resetScoreTimeSpans?: string[]; } /** * This is a JSON template for profile settings @@ -343,12 +346,12 @@ export namespace gamesManagement_v1management { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#profileSettings. */ - kind: string; + kind?: string; /** * The player's current profile visibility. This field is visible to * both 1P and 3P APIs. */ - profileVisible: boolean; + profileVisible?: boolean; } /** * This is a JSON template for multiple quests reset all request. @@ -358,11 +361,11 @@ export namespace gamesManagement_v1management { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#questsResetMultipleForAllRequest. */ - kind: string; + kind?: string; /** * The IDs of quests to reset. */ - quest_ids: string[]; + quest_ids?: string[]; } /** * This is a JSON template for multiple scores reset all request. @@ -372,13 +375,14 @@ export namespace gamesManagement_v1management { * Uniquely identifies the type of this resource. Value is always the fixed * string gamesManagement#scoresResetMultipleForAllRequest. */ - kind: string; + kind?: string; /** * The IDs of leaderboards to reset. */ - leaderboard_ids: string[]; + leaderboard_ids?: string[]; } + export class Resource$Achievements { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -405,28 +409,40 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): + reset(params?: Params$Resource$Achievements$Reset, options?: MethodOptions): AxiosPromise; reset( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Reset, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + reset( + params: Params$Resource$Achievements$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): + void; reset( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Achievements$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Achievements$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -463,29 +479,45 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAll(params?: any, options?: MethodOptions): + resetAll( + params?: Params$Resource$Achievements$Resetall, + options?: MethodOptions): AxiosPromise; resetAll( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Resetall, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; resetAll( - params?: any, - options?: MethodOptions| + params: Params$Resource$Achievements$Resetall, + callback: BodyResponseCallback): + void; + resetAll(callback: + BodyResponseCallback): + void; + resetAll( + paramsOrCallback?: Params$Resource$Achievements$Resetall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Achievements$Resetall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Resetall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -521,23 +553,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAllForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Achievements$Resetallforallplayers, + options?: MethodOptions): AxiosPromise; + resetAllForAllPlayers( + params: Params$Resource$Achievements$Resetallforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Achievements$Resetallforallplayers, + callback: BodyResponseCallback): void; + resetAllForAllPlayers(callback: BodyResponseCallback): void; + resetAllForAllPlayers( + paramsOrCallback?: Params$Resource$Achievements$Resetallforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievements$Resetallforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Resetallforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -575,23 +621,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Achievements$Resetforallplayers, + options?: MethodOptions): AxiosPromise; + resetForAllPlayers( + params: Params$Resource$Achievements$Resetforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resetForAllPlayers( + params: Params$Resource$Achievements$Resetforallplayers, + callback: BodyResponseCallback): void; + resetForAllPlayers(callback: BodyResponseCallback): void; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Achievements$Resetforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievements$Resetforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Resetforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -630,23 +690,38 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetMultipleForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Achievements$Resetmultipleforallplayers, + options?: MethodOptions): AxiosPromise; + resetMultipleForAllPlayers( + params: Params$Resource$Achievements$Resetmultipleforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers( + params: Params$Resource$Achievements$Resetmultipleforallplayers, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers(callback: BodyResponseCallback): void; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Achievements$Resetmultipleforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Achievements$Resetmultipleforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Achievements$Resetmultipleforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -671,6 +746,48 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Achievements$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + } + export interface Params$Resource$Achievements$Resetall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Achievements$Resetallforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Achievements$Resetforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the achievement used by this method. + */ + achievementId?: string; + } + export interface Params$Resource$Achievements$Resetmultipleforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Applications { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -698,26 +815,39 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listHidden(params?: any, options?: MethodOptions): - AxiosPromise; listHidden( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Applications$Listhidden, + options?: MethodOptions): AxiosPromise; + listHidden( + params: Params$Resource$Applications$Listhidden, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listHidden( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Applications$Listhidden, + callback: BodyResponseCallback): void; + listHidden(callback: BodyResponseCallback): void; + listHidden( + paramsOrCallback?: Params$Resource$Applications$Listhidden| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Applications$Listhidden; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applications$Listhidden; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -742,6 +872,29 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Applications$Listhidden { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * The maximum number of player resources to return in the response, used + * for paging. For any response, the actual number of player resources + * returned may be less than the specified maxResults. + */ + maxResults?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Events { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -769,22 +922,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): AxiosPromise; + reset(params?: Params$Resource$Events$Reset, options?: MethodOptions): + AxiosPromise; + reset( + params: Params$Resource$Events$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -821,22 +987,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAll(params?: any, options?: MethodOptions): AxiosPromise; + resetAll(params?: Params$Resource$Events$Resetall, options?: MethodOptions): + AxiosPromise; + resetAll( + params: Params$Resource$Events$Resetall, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetAll( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Events$Resetall, + callback: BodyResponseCallback): void; + resetAll(callback: BodyResponseCallback): void; resetAll( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Resetall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Events$Resetall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Resetall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -872,23 +1051,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAllForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Events$Resetallforallplayers, + options?: MethodOptions): AxiosPromise; + resetAllForAllPlayers( + params: Params$Resource$Events$Resetallforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Events$Resetallforallplayers, + callback: BodyResponseCallback): void; + resetAllForAllPlayers(callback: BodyResponseCallback): void; + resetAllForAllPlayers( + paramsOrCallback?: Params$Resource$Events$Resetallforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Events$Resetallforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Resetallforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -926,23 +1119,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Events$Resetforallplayers, + options?: MethodOptions): AxiosPromise; + resetForAllPlayers( + params: Params$Resource$Events$Resetforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Events$Resetforallplayers, + callback: BodyResponseCallback): void; + resetForAllPlayers(callback: BodyResponseCallback): void; + resetForAllPlayers( + paramsOrCallback?: Params$Resource$Events$Resetforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Events$Resetforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Resetforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -981,23 +1188,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetMultipleForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Events$Resetmultipleforallplayers, + options?: MethodOptions): AxiosPromise; + resetMultipleForAllPlayers( + params: Params$Resource$Events$Resetmultipleforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers( + params: Params$Resource$Events$Resetmultipleforallplayers, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers(callback: BodyResponseCallback): void; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Events$Resetmultipleforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Events$Resetmultipleforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Events$Resetmultipleforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1021,6 +1242,48 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Events$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the event. + */ + eventId?: string; + } + export interface Params$Resource$Events$Resetall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Events$Resetallforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Events$Resetforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the event. + */ + eventId?: string; + } + export interface Params$Resource$Events$Resetmultipleforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Players { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -1048,22 +1311,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - hide(params?: any, options?: MethodOptions): AxiosPromise; + hide(params?: Params$Resource$Players$Hide, options?: MethodOptions): + AxiosPromise; + hide( + params: Params$Resource$Players$Hide, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; hide( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Players$Hide, + callback: BodyResponseCallback): void; + hide(callback: BodyResponseCallback): void; hide( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Players$Hide| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Players$Hide; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Players$Hide; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1103,22 +1379,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unhide(params?: any, options?: MethodOptions): AxiosPromise; + unhide(params?: Params$Resource$Players$Unhide, options?: MethodOptions): + AxiosPromise; + unhide( + params: Params$Resource$Players$Unhide, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; unhide( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Players$Unhide, + callback: BodyResponseCallback): void; + unhide(callback: BodyResponseCallback): void; unhide( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Players$Unhide| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Players$Unhide; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Players$Unhide; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1143,6 +1432,40 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Players$Hide { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + } + export interface Params$Resource$Players$Unhide { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The application ID from the Google Play developer console. + */ + applicationId?: string; + /** + * A player ID. A value of me may be used in place of the authenticated + * player's ID. + */ + playerId?: string; + } + + export class Resource$Quests { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -1169,22 +1492,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): AxiosPromise; + reset(params?: Params$Resource$Quests$Reset, options?: MethodOptions): + AxiosPromise; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Quests$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Quests$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; + reset( + paramsOrCallback?: Params$Resource$Quests$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Quests$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1220,22 +1556,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAll(params?: any, options?: MethodOptions): AxiosPromise; + resetAll(params?: Params$Resource$Quests$Resetall, options?: MethodOptions): + AxiosPromise; + resetAll( + params: Params$Resource$Quests$Resetall, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetAll( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Quests$Resetall, + callback: BodyResponseCallback): void; + resetAll(callback: BodyResponseCallback): void; resetAll( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Quests$Resetall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Quests$Resetall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$Resetall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1270,23 +1619,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAllForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Quests$Resetallforallplayers, + options?: MethodOptions): AxiosPromise; + resetAllForAllPlayers( + params: Params$Resource$Quests$Resetallforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Quests$Resetallforallplayers, + callback: BodyResponseCallback): void; + resetAllForAllPlayers(callback: BodyResponseCallback): void; + resetAllForAllPlayers( + paramsOrCallback?: Params$Resource$Quests$Resetallforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Quests$Resetallforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$Resetallforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1324,23 +1687,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Quests$Resetforallplayers, + options?: MethodOptions): AxiosPromise; + resetForAllPlayers( + params: Params$Resource$Quests$Resetforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Quests$Resetforallplayers, + callback: BodyResponseCallback): void; + resetForAllPlayers(callback: BodyResponseCallback): void; + resetForAllPlayers( + paramsOrCallback?: Params$Resource$Quests$Resetforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Quests$Resetforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$Resetforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1378,23 +1755,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetMultipleForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Quests$Resetmultipleforallplayers, + options?: MethodOptions): AxiosPromise; + resetMultipleForAllPlayers( + params: Params$Resource$Quests$Resetmultipleforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers( + params: Params$Resource$Quests$Resetmultipleforallplayers, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers(callback: BodyResponseCallback): void; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Quests$Resetmultipleforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Quests$Resetmultipleforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Quests$Resetmultipleforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1418,6 +1809,48 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Quests$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the quest. + */ + questId?: string; + } + export interface Params$Resource$Quests$Resetall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Quests$Resetallforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Quests$Resetforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the quest. + */ + questId?: string; + } + export interface Params$Resource$Quests$Resetmultipleforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Rooms { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -1443,22 +1876,35 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): AxiosPromise; + reset(params?: Params$Resource$Rooms$Reset, options?: MethodOptions): + AxiosPromise; + reset( + params: Params$Resource$Rooms$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rooms$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rooms$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Rooms$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1494,23 +1940,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rooms$Resetforallplayers, + options?: MethodOptions): AxiosPromise; + resetForAllPlayers( + params: Params$Resource$Rooms$Resetforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rooms$Resetforallplayers, + callback: BodyResponseCallback): void; + resetForAllPlayers(callback: BodyResponseCallback): void; + resetForAllPlayers( + paramsOrCallback?: Params$Resource$Rooms$Resetforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rooms$Resetforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rooms$Resetforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1533,6 +1993,20 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Rooms$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Rooms$Resetforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Scores { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -1559,28 +2033,39 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): + reset(params?: Params$Resource$Scores$Reset, options?: MethodOptions): AxiosPromise; reset( - params?: any, - options?: MethodOptions| + params: Params$Resource$Scores$Reset, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + reset( + params: Params$Resource$Scores$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): + void; reset( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Scores$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Scores$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1618,29 +2103,42 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAll(params?: any, options?: MethodOptions): + resetAll(params?: Params$Resource$Scores$Resetall, options?: MethodOptions): AxiosPromise; resetAll( - params?: any, - options?: MethodOptions| + params: Params$Resource$Scores$Resetall, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; resetAll( - params?: any, - options?: MethodOptions| + params: Params$Resource$Scores$Resetall, + callback: BodyResponseCallback): + void; + resetAll(callback: + BodyResponseCallback): + void; + resetAll( + paramsOrCallback?: Params$Resource$Scores$Resetall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Scores$Resetall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Resetall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1676,23 +2174,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetAllForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Scores$Resetallforallplayers, + options?: MethodOptions): AxiosPromise; + resetAllForAllPlayers( + params: Params$Resource$Scores$Resetallforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetAllForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Scores$Resetallforallplayers, + callback: BodyResponseCallback): void; + resetAllForAllPlayers(callback: BodyResponseCallback): void; + resetAllForAllPlayers( + paramsOrCallback?: Params$Resource$Scores$Resetallforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Scores$Resetallforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Resetallforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1730,23 +2242,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Scores$Resetforallplayers, + options?: MethodOptions): AxiosPromise; + resetForAllPlayers( + params: Params$Resource$Scores$Resetforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Scores$Resetforallplayers, + callback: BodyResponseCallback): void; + resetForAllPlayers(callback: BodyResponseCallback): void; + resetForAllPlayers( + paramsOrCallback?: Params$Resource$Scores$Resetforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Scores$Resetforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Resetforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1785,23 +2311,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetMultipleForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Scores$Resetmultipleforallplayers, + options?: MethodOptions): AxiosPromise; + resetMultipleForAllPlayers( + params: Params$Resource$Scores$Resetmultipleforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers( + params: Params$Resource$Scores$Resetmultipleforallplayers, + callback: BodyResponseCallback): void; + resetMultipleForAllPlayers(callback: BodyResponseCallback): void; resetMultipleForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Scores$Resetmultipleforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Scores$Resetmultipleforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scores$Resetmultipleforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1825,6 +2365,48 @@ export namespace gamesManagement_v1management { } } + export interface Params$Resource$Scores$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + } + export interface Params$Resource$Scores$Resetall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Scores$Resetallforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Scores$Resetforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the leaderboard. + */ + leaderboardId?: string; + } + export interface Params$Resource$Scores$Resetmultipleforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Turnbasedmatches { root: Gamesmanagement; constructor(root: Gamesmanagement) { @@ -1849,22 +2431,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): AxiosPromise; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Reset, + options?: MethodOptions): AxiosPromise; reset( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Turnbasedmatches$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + reset( + params: Params$Resource$Turnbasedmatches$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; + reset( + paramsOrCallback?: Params$Resource$Turnbasedmatches$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Turnbasedmatches$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1900,23 +2497,37 @@ export namespace gamesManagement_v1management { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetForAllPlayers(params?: any, options?: MethodOptions): - AxiosPromise; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Turnbasedmatches$Resetforallplayers, + options?: MethodOptions): AxiosPromise; + resetForAllPlayers( + params: Params$Resource$Turnbasedmatches$Resetforallplayers, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resetForAllPlayers( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Turnbasedmatches$Resetforallplayers, + callback: BodyResponseCallback): void; + resetForAllPlayers(callback: BodyResponseCallback): void; + resetForAllPlayers( + paramsOrCallback?: Params$Resource$Turnbasedmatches$Resetforallplayers| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Turnbasedmatches$Resetforallplayers; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Turnbasedmatches$Resetforallplayers; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1939,4 +2550,17 @@ export namespace gamesManagement_v1management { } } } + + export interface Params$Resource$Turnbasedmatches$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Turnbasedmatches$Resetforallplayers { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/genomics/v1.ts b/src/apis/genomics/v1.ts index 80a9346d02d..49bc9156816 100644 --- a/src/apis/genomics/v1.ts +++ b/src/apis/genomics/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace genomics_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Genomics API * @@ -96,63 +99,63 @@ export namespace genomics_v1 { /** * The annotation set to which this annotation belongs. */ - annotationSetId: string; + annotationSetId?: string; /** * The end position of the range on the reference, 0-based exclusive. */ - end: string; + end?: string; /** * The server-generated annotation ID, unique across all annotations. */ - id: string; + id?: string; /** * A map of additional read alignment information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * The display name of this annotation. */ - name: string; + name?: string; /** * The ID of the Google Genomics reference associated with this range. */ - referenceId: string; + referenceId?: string; /** * The display name corresponding to the reference specified by * `referenceId`, for example `chr1`, `1`, or `chrX`. */ - referenceName: string; + referenceName?: string; /** * Whether this range refers to the reverse strand, as opposed to the * forward strand. Note that regardless of this field, the start/end * position of the range always refer to the forward strand. */ - reverseStrand: boolean; + reverseStrand?: boolean; /** * The start position of the range on the reference, 0-based inclusive. */ - start: string; + start?: string; /** * A transcript value represents the assertion that a particular region of * the reference genome may be transcribed as RNA. An alternative splicing * pattern would be represented as a separate transcript object. This field * is only set for annotations of type `TRANSCRIPT`. */ - transcript: Schema$Transcript; + transcript?: Schema$Transcript; /** * The data type for this annotation. Must match the containing annotation * set's type. */ - type: string; + type?: string; /** * A variant annotation, which describes the effect of a variant on the * genome, the coding sequence, and/or higher level consequences at the * organism level e.g. pathogenicity. This field is only set for annotations * of type `VARIANT`. */ - variant: Schema$VariantAnnotation; + variant?: Schema$VariantAnnotation; } /** * An annotation set is a logical grouping of annotations that share @@ -164,43 +167,43 @@ export namespace genomics_v1 { /** * The dataset to which this annotation set belongs. */ - datasetId: string; + datasetId?: string; /** * The server-generated annotation set ID, unique across all annotation * sets. */ - id: string; + id?: string; /** * A map of additional read alignment information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * The display name for this annotation set. */ - name: string; + name?: string; /** * The ID of the reference set that defines the coordinate space for this * set's annotations. */ - referenceSetId: string; + referenceSetId?: string; /** * The source URI describing the file from which this annotation set was * generated, if any. */ - sourceUri: string; + sourceUri?: string; /** * The type of annotations contained within this set. */ - type: string; + type?: string; } export interface Schema$BatchCreateAnnotationsRequest { /** * The annotations to be created. At most 4096 can be specified in a single * request. */ - annotations: Schema$Annotation[]; + annotations?: Schema$Annotation[]; /** * A unique request ID which enables the server to detect duplicated * requests. If provided, duplicated requests will result in the same @@ -211,14 +214,14 @@ export namespace genomics_v1 { * worker crashes are a possibility, consider using some unique variant of a * worker or run ID. */ - requestId: string; + requestId?: string; } export interface Schema$BatchCreateAnnotationsResponse { /** * The resulting per-annotation entries, ordered consistently with the * original request. */ - entries: Schema$Entry[]; + entries?: Schema$Entry[]; } /** * Associates `members` with a `role`. @@ -231,21 +234,20 @@ export namespace genomics_v1 { * 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, + * represents a specific Google account. For example, `alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A call set is a collection of variant calls, typically for one sample. It @@ -255,32 +257,32 @@ export namespace genomics_v1 { /** * The date this call set was created in milliseconds from the epoch. */ - created: string; + created?: string; /** * The server-generated call set ID, unique across all call sets. */ - id: string; + id?: string; /** * A map of additional call set information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * The call set name. */ - name: string; + name?: string; /** * The sample ID this call set corresponds to. */ - sampleId: string; + sampleId?: string; /** * The IDs of the variant sets this call set belongs to. This field must * have exactly length one, as a call set belongs to a single variant set. * This field is repeated for compatibility with the [GA4GH 0.5.1 * API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variants.avdl#L76). */ - variantSetIds: string[]; + variantSetIds?: string[]; } /** * The request message for Operations.CancelOperation. @@ -290,36 +292,36 @@ export namespace genomics_v1 { * A single CIGAR operation. */ export interface Schema$CigarUnit { - operation: string; + operation?: string; /** * The number of genomic bases that the operation runs for. Required. */ - operationLength: string; + operationLength?: string; /** * `referenceSequence` is only used at mismatches (`SEQUENCE_MISMATCH`) and * deletions (`DELETE`). Filling this field replaces SAM's MD tag. If * the relevant information is not available, this field is unset. */ - referenceSequence: string; + referenceSequence?: string; } export interface Schema$ClinicalCondition { /** * The MedGen concept id associated with this gene. Search for these IDs at * http://www.ncbi.nlm.nih.gov/medgen/ */ - conceptId: string; + conceptId?: string; /** * The set of external IDs for this condition. */ - externalIds: Schema$ExternalId[]; + externalIds?: Schema$ExternalId[]; /** * A set of names for the condition. */ - names: string[]; + names?: string[]; /** * The OMIM id for this condition. Search for these IDs at http://omim.org/ */ - omimId: string; + omimId?: string; } export interface Schema$CodingSequence { /** @@ -327,13 +329,13 @@ export namespace genomics_v1 { * sequence, 0-based exclusive. Note that this position is relative to the * reference start, and *not* the containing annotation start. */ - end: string; + end?: string; /** * The start of the coding sequence on this annotation's reference * sequence, 0-based inclusive. Note that this position is relative to the * reference start, and *not* the containing annotation start. */ - start: string; + start?: string; } /** * Describes a Compute Engine resource that is being managed by a running @@ -343,19 +345,19 @@ export namespace genomics_v1 { /** * The names of the disks that were created for this pipeline. */ - diskNames: string[]; + diskNames?: string[]; /** * The instance on which the operation is running. */ - instanceName: string; + instanceName?: string; /** * The machine type of the instance. */ - machineType: string; + machineType?: string; /** * The availability zone in which the instance resides. */ - zone: string; + zone?: string; } /** * This event is generated when a container starts. @@ -364,20 +366,20 @@ export namespace genomics_v1 { /** * The numeric ID of the action that started this container. */ - actionId: number; + actionId?: number; /** * The public IP address that can be used to connect to the container. This * field is only populated when at least one port mapping is present. If * the instance was created with a private address this field will be empty * even if port mappings exist. */ - ipAddress: string; + ipAddress?: string; /** * The container to host port mappings installed for this container. This * set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag * as well as any specified in the Action definition. */ - portMappings: any; + portMappings?: any; } /** * This event is generated when a container exits. @@ -386,11 +388,21 @@ export namespace genomics_v1 { /** * The numeric ID of the action that started this container. */ - actionId: number; + actionId?: number; /** * The exit status of the container. */ - exitStatus: number; + exitStatus?: number; + /** + * The tail end of any content written to standard error by the container. + * To prevent this from being recorded if the action is known to emit large + * amounts of debugging noise or sensitive information, set the + * DISABLE_STANDARD_ERROR_CAPTURE flag. Note that only a small amount of + * the end of the stream is captured here. The entire stream is stored in + * the /google/logs directory mounted into each action, and may be copied + * off the machine as described elsewhere. + */ + stderr?: string; } /** * A bucket over which read coverage has been precomputed. A bucket @@ -401,11 +413,11 @@ export namespace genomics_v1 { * The average number of reads which are aligned to each individual * reference base in this bucket. */ - meanCoverage: number; + meanCoverage?: number; /** * The genomic coordinate range spanned by this bucket. */ - range: Schema$Range; + range?: Schema$Range; } /** * A Dataset is a collection of genomic data. @@ -414,19 +426,19 @@ export namespace genomics_v1 { /** * The time this dataset was created, in seconds from the epoch. */ - createTime: string; + createTime?: string; /** * The server-generated dataset ID, unique across all datasets. */ - id: string; + id?: string; /** * The dataset name. */ - name: string; + name?: string; /** * The Google Cloud project ID that this dataset belongs to. */ - projectId: string; + projectId?: string; } /** * This event is generated whenever a resource limitation or transient error @@ -438,14 +450,14 @@ export namespace genomics_v1 { * without notice since it is often generated by another service (such as * Compute Engine). */ - cause: string; + cause?: string; /** * If the delay was caused by a resource shortage, this field lists the * Compute Engine metrics that are preventing this operation from running * (for example, CPUS or INSTANCES). If the particular metric is not known, * a single UNKNOWN metric will be present. */ - metrics: string[]; + metrics?: string[]; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -459,11 +471,11 @@ export namespace genomics_v1 { /** * The created annotation, if creation was successful. */ - annotation: Schema$Annotation; + annotation?: Schema$Annotation; /** * The creation status. */ - status: Schema$Status; + status?: Schema$Status; } /** * Event carries information about events that occur during pipeline @@ -475,15 +487,15 @@ export namespace genomics_v1 { * change at any time without notice. Any application logic must use the * information in the details field. */ - description: string; + description?: string; /** * Machine readable details about the event. */ - details: any; + details?: any; /** * The time that the event occurred. */ - timestamp: string; + timestamp?: string; } export interface Schema$Exon { /** @@ -491,7 +503,7 @@ export namespace genomics_v1 { * 0-based exclusive. Note that this is relative to the reference start, and * *not* the containing annotation start. */ - end: string; + end?: string; /** * The frame of this exon. Contains a value of 0, 1, or 2, which indicates * the offset of the first coding base of the exon within the reading frame @@ -503,37 +515,37 @@ export namespace genomics_v1 { * creation of a transcript, the frame must be populated for all or none of * the coding exons. */ - frame: number; + frame?: number; /** * The start position of the exon on this annotation's reference * sequence, 0-based inclusive. Note that this is relative to the reference * start, and **not** the containing annotation start. */ - start: string; + start?: string; } export interface Schema$Experiment { /** * The instrument model used as part of this experiment. This maps to * sequencing technology in the SAM spec. */ - instrumentModel: string; + instrumentModel?: string; /** * A client-supplied library identifier; a library is a collection of DNA * fragments which have been prepared for sequencing from a sample. This * field is important for quality control as error or bias can be introduced * during sample preparation. */ - libraryId: string; + libraryId?: string; /** * The platform unit used as part of this experiment, for example * flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the * @RG PU field in the SAM spec. */ - platformUnit: string; + platformUnit?: string; /** * The sequencing center used as part of this experiment. */ - sequencingCenter: string; + sequencingCenter?: string; } /** * The read group set export request. @@ -544,18 +556,18 @@ export namespace genomics_v1 { * currently authenticated user must have write access to the new file. An * error will be returned if the URI already contains data. */ - exportUri: string; + exportUri?: string; /** * Required. The Google Cloud project ID that owns this export. The caller * must have WRITE access to this project. */ - projectId: string; + projectId?: string; /** * The reference names to export. If this is not specified, all reference * sequences, including unmapped reads, are exported. Use `*` to export only * unmapped reads. */ - referenceNames: string[]; + referenceNames?: string[]; } /** * The variant data export request. @@ -566,37 +578,37 @@ export namespace genomics_v1 { * already exist. Note that this is distinct from the Genomics concept of * "dataset". */ - bigqueryDataset: string; + bigqueryDataset?: string; /** * Required. The BigQuery table to export data to. If the table doesn't * exist, it will be created. If it already exists, it will be overwritten. */ - bigqueryTable: string; + bigqueryTable?: string; /** * If provided, only variant call information from the specified call sets * will be exported. By default all variant calls are exported. */ - callSetIds: string[]; + callSetIds?: string[]; /** * The format for the exported data. */ - format: string; + format?: string; /** * Required. The Google Cloud project ID that owns the destination BigQuery * dataset. The caller must have WRITE access to this project. This project * will also own the resulting export job. */ - projectId: string; + projectId?: string; } export interface Schema$ExternalId { /** * The id used by the source of this data. */ - id: string; + id?: string; /** * The name of the source of this data. */ - sourceName: string; + sourceName?: string; } /** * This event is generated when the execution of a pipeline has failed. Note @@ -606,11 +618,11 @@ export namespace genomics_v1 { /** * The human readable description of the cause of the failure. */ - cause: string; + cause?: string; /** * The Google standard error code that best describes this failure. */ - code: string; + code?: string; } /** * Request message for `GetIamPolicy` method. @@ -624,12 +636,12 @@ export namespace genomics_v1 { * Required. The ID of the dataset these read group sets will belong to. The * caller must have WRITE permissions to this dataset. */ - datasetId: string; + datasetId?: string; /** * The partition strategy describes how read groups are partitioned into * read group sets. */ - partitionStrategy: string; + partitionStrategy?: string; /** * The reference set to which the imported read group sets are aligned to, * if any. The reference names of this reference set must be a superset of @@ -637,7 +649,7 @@ export namespace genomics_v1 { * provided, a best effort is made to associate with a matching reference * set. */ - referenceSetId: string; + referenceSetId?: string; /** * A list of URIs pointing at [BAM * files](https://samtools.github.io/hts-specs/SAMv1.pdf) in Google Cloud @@ -648,7 +660,7 @@ export namespace genomics_v1 { * preferable not to start the import immediately after the files are * created. */ - sourceUris: string[]; + sourceUris?: string[]; } /** * The read group set import response. @@ -657,7 +669,7 @@ export namespace genomics_v1 { /** * IDs of the read group sets that were created. */ - readGroupSetIds: string[]; + readGroupSetIds?: string[]; } /** * The variant data import request. @@ -667,13 +679,13 @@ export namespace genomics_v1 { * The format of the variant data being imported. If unspecified, defaults * to to `VCF`. */ - format: string; + format?: string; /** * A mapping between info field keys and the InfoMergeOperations to be * performed on them. This is plumbed down to the MergeVariantRequests * generated by the resulting import job. */ - infoMergeConfig: any; + infoMergeConfig?: any; /** * Convert reference names to the canonical representation. hg19 haploytypes * (those reference names containing "_hap") are not modified in @@ -684,18 +696,18 @@ export namespace genomics_v1 { * "X". All mitochondrial chromosomes ("chrM", * "chrMT", etc) become "MT". */ - normalizeReferenceNames: boolean; + normalizeReferenceNames?: boolean; /** * A list of URIs referencing variant files in Google Cloud Storage. URIs * can include wildcards [as described * here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). * Note that recursive wildcards ('**') are not supported. */ - sourceUris: string[]; + sourceUris?: string[]; /** * Required. The variant set to which variant data should be imported. */ - variantSetId: string; + variantSetId?: string; } /** * The variant data import response. @@ -704,7 +716,7 @@ export namespace genomics_v1 { /** * IDs of the call sets created during the import. */ - callSetIds: string[]; + callSetIds?: string[]; } /** * A linear alignment can be represented by one CIGAR string. Describes the @@ -715,18 +727,18 @@ export namespace genomics_v1 { * Represents the local alignment of this sequence (alignment matches, * indels, etc) against the reference. */ - cigar: Schema$CigarUnit[]; + cigar?: Schema$CigarUnit[]; /** * The mapping quality of this alignment. Represents how likely the read * maps to this position as opposed to other locations. Specifically, this * is -10 log10 Pr(mapping position is wrong), rounded to the nearest * integer. */ - mappingQuality: number; + mappingQuality?: number; /** * The position of this alignment. */ - position: Schema$Position; + position?: Schema$Position; } export interface Schema$ListBasesResponse { /** @@ -735,17 +747,17 @@ export namespace genomics_v1 { * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The offset position (0-based) of the given `sequence` from the start of * this `Reference`. This value will differ for each page in a paginated * request. */ - offset: string; + offset?: string; /** * A substring of the bases that make up this reference. */ - sequence: string; + sequence?: string; } export interface Schema$ListCoverageBucketsResponse { /** @@ -754,21 +766,21 @@ export namespace genomics_v1 { * the bucket width is infinity (the default behaviour, with no range or * `targetBucketWidth`). */ - bucketWidth: string; + bucketWidth?: string; /** * The coverage buckets. The list of buckets is sparse; a bucket with 0 * overlapping reads is not returned. A bucket never crosses more than one * reference sequence. Each bucket has width `bucketWidth`, unless its end * is the end of the reference sequence. */ - coverageBuckets: Schema$CoverageBucket[]; + coverageBuckets?: Schema$CoverageBucket[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The dataset list response. @@ -777,14 +789,14 @@ export namespace genomics_v1 { /** * The list of matching Datasets. */ - datasets: Schema$Dataset[]; + datasets?: Schema$Dataset[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -793,26 +805,26 @@ export namespace genomics_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } export interface Schema$MergeVariantsRequest { /** * A mapping between info field keys and the InfoMergeOperations to be * performed on them. */ - infoMergeConfig: any; + infoMergeConfig?: any; /** * The variants to be merged with existing variants. */ - variants: Schema$Variant[]; + variants?: Schema$Variant[]; /** * The destination variant set. */ - variantSetId: string; + variantSetId?: string; } /** * This resource represents a long-running operation that is the result of a @@ -824,28 +836,28 @@ export namespace genomics_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * An OperationMetadata or Metadata object. This will always be returned * with the Operation. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. For example&#58; * `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw` */ - name: string; + name?: string; /** * If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. * If importing Variants, an ImportVariantsResponse is returned. For * pipelines and exports, an Empty response is returned. */ - response: any; + response?: any; } /** * An event that occurred during an Operation. @@ -854,17 +866,17 @@ export namespace genomics_v1 { /** * Required description of event. */ - description: string; + description?: string; /** * Optional time of when event finished. An event can have a start time and * no finish time. If an event has a finish time, there must be a start * time. */ - endTime: string; + endTime?: string; /** * Optional time of when event started. */ - startTime: string; + startTime?: string; } /** * Metadata describing an Operation. @@ -874,68 +886,72 @@ export namespace genomics_v1 { * This field is deprecated. Use `labels` instead. Optionally provided by * the caller when submitting the request that creates the operation. */ - clientId: string; + clientId?: string; /** * The time at which the job was submitted to the Genomics service. */ - createTime: string; + createTime?: string; /** * The time at which the job stopped running. */ - endTime: string; + endTime?: string; /** * Optional event messages that were generated during the job's * execution. This also contains any warnings that were generated during * import or export. */ - events: Schema$OperationEvent[]; + events?: Schema$OperationEvent[]; /** * Optionally provided by the caller when submitting the request that * creates the operation. */ - labels: any; + labels?: any; /** * The Google Cloud Project in which the job is scoped. */ - projectId: string; + projectId?: string; /** * The original request that started the operation. Note that this will be * in current version of the API. If the operation was started with v1beta2 * API and a GetOperation is performed on v1 API, a v1 request will be * returned. */ - request: any; + request?: any; /** * Runtime metadata on this Operation. */ - runtimeMetadata: any; + runtimeMetadata?: any; /** * The time at which the job began to run. */ - startTime: string; + startTime?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ { + * defined by IAM. **JSON 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 - * guide](https://cloud.google.com/iam/docs). + * "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -947,11 +963,11 @@ export namespace genomics_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * An abstraction for referring to a genomic position, in relation to some @@ -964,40 +980,40 @@ export namespace genomics_v1 { * The 0-based offset from the start of the forward strand for that * reference. */ - position: string; + position?: string; /** * The name of the reference in whatever reference set is being used. */ - referenceName: string; + referenceName?: string; /** * Whether this position is on the reverse strand, as opposed to the forward * strand. */ - reverseStrand: boolean; + reverseStrand?: boolean; } export interface Schema$Program { /** * The command line used to run this program. */ - commandLine: string; + commandLine?: string; /** * The user specified locally unique ID of the program. Used along with * `prevProgramId` to define an ordering between programs. */ - id: string; + id?: string; /** * The display name of the program. This is typically the colloquial name of * the tool used, for example 'bwa' or 'picard'. */ - name: string; + name?: string; /** * The ID of the program run before this one. */ - prevProgramId: string; + prevProgramId?: string; /** * The version of the program run. */ - version: string; + version?: string; } /** * This event is generated when the worker starts pulling an image. @@ -1006,7 +1022,7 @@ export namespace genomics_v1 { /** * The URI of the image that was pulled. */ - imageUri: string; + imageUri?: string; } /** * This event is generated when the worker stops pulling an image. @@ -1015,7 +1031,7 @@ export namespace genomics_v1 { /** * The URI of the image that was pulled. */ - imageUri: string; + imageUri?: string; } /** * A 0-based half-open genomic coordinate range for search requests. @@ -1024,15 +1040,15 @@ export namespace genomics_v1 { /** * The end position of the range on the reference, 0-based exclusive. */ - end: string; + end?: string; /** * The reference sequence name, for example `chr1`, `1`, or `chrX`. */ - referenceName: string; + referenceName?: string; /** * The start position of the range on the reference, 0-based inclusive. */ - start: string; + start?: string; } /** * A read alignment describes a linear alignment of a string of DNA to a @@ -1090,7 +1106,7 @@ export namespace genomics_v1 { * trimmed. When this occurs, the CIGAR for this read will begin/end with a * hard clip operator that will indicate the length of the excised sequence. */ - alignedQuality: number[]; + alignedQuality?: number[]; /** * The bases of the read sequence contained in this alignment record, * **without CIGAR operations applied** (equivalent to SEQ in SAM). @@ -1100,70 +1116,70 @@ export namespace genomics_v1 { * CIGAR for this read will begin/end with a hard clip operator that will * indicate the length of the excised sequence. */ - alignedSequence: string; + alignedSequence?: string; /** * The linear alignment for this alignment record. This field is null for * unmapped reads. */ - alignment: Schema$LinearAlignment; + alignment?: Schema$LinearAlignment; /** * The fragment is a PCR or optical duplicate (SAM flag 0x400). */ - duplicateFragment: boolean; + duplicateFragment?: boolean; /** * Whether this read did not pass filters, such as platform or vendor * quality controls (SAM flag 0x200). */ - failedVendorQualityChecks: boolean; + failedVendorQualityChecks?: boolean; /** * The observed length of the fragment, equivalent to TLEN in SAM. */ - fragmentLength: number; + fragmentLength?: number; /** * The fragment name. Equivalent to QNAME (query template name) in SAM. */ - fragmentName: string; + fragmentName?: string; /** * The server-generated read ID, unique across all reads. This is different * from the `fragmentName`. */ - id: string; + id?: string; /** * A map of additional read alignment information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * The mapping of the primary alignment of the `(readNumber+1)%numberReads` * read in the fragment. It replaces mate position and mate strand in SAM. */ - nextMatePosition: Schema$Position; + nextMatePosition?: Schema$Position; /** * The number of reads in the fragment (extension to SAM flag 0x1). */ - numberReads: number; + numberReads?: number; /** * The orientation and the distance between reads from the fragment are * consistent with the sequencing protocol (SAM flag 0x2). */ - properPlacement: boolean; + properPlacement?: boolean; /** * The ID of the read group this read belongs to. A read belongs to exactly * one read group. This is a server-generated ID which is distinct from * SAM's RG tag (for that value, see ReadGroup.name). */ - readGroupId: string; + readGroupId?: string; /** * The ID of the read group set this read belongs to. A read belongs to * exactly one read group set. */ - readGroupSetId: string; + readGroupSetId?: string; /** * The read number in sequencing. 0-based and less than numberReads. This * field replaces SAM flag 0x40 and 0x80. */ - readNumber: number; + readNumber?: number; /** * Whether this alignment is secondary. Equivalent to SAM flag 0x100. A * secondary alignment represents an alternative to the primary alignment @@ -1172,7 +1188,7 @@ export namespace genomics_v1 { * read has one and only one alignment where both `secondaryAlignment` and * `supplementaryAlignment` are false. */ - secondaryAlignment: boolean; + secondaryAlignment?: boolean; /** * Whether this alignment is supplementary. Equivalent to SAM flag 0x800. * Supplementary alignments are used in the representation of a chimeric @@ -1186,7 +1202,7 @@ export namespace genomics_v1 { * alignment record will only represent the bases for its respective linear * alignment. */ - supplementaryAlignment: boolean; + supplementaryAlignment?: boolean; } /** * A read group is all the data that's processed the same way by the @@ -1196,53 +1212,53 @@ export namespace genomics_v1 { /** * The dataset to which this read group belongs. */ - datasetId: string; + datasetId?: string; /** * A free-form text description of this read group. */ - description: string; + description?: string; /** * The experiment used to generate this read group. */ - experiment: Schema$Experiment; + experiment?: Schema$Experiment; /** * The server-generated read group ID, unique for all read groups. Note: * This is different than the @RG ID field in the SAM spec. For that value, * see name. */ - id: string; + id?: string; /** * A map of additional read group information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * The read group name. This corresponds to the @RG ID field in the SAM * spec. */ - name: string; + name?: string; /** * The predicted insert size of this read group. The insert size is the * length the sequenced DNA fragment from end-to-end, not including the * adapters. */ - predictedInsertSize: number; + predictedInsertSize?: number; /** * The programs used to generate this read group. Programs are always * identical for all read groups within a read group set. For this reason, * only the first read group in a returned set will have this field * populated. */ - programs: Schema$Program[]; + programs?: Schema$Program[]; /** * The reference set the reads in this read group are aligned to. */ - referenceSetId: string; + referenceSetId?: string; /** * A client-supplied sample identifier for the reads in this read group. */ - sampleId: string; + sampleId?: string; } /** * A read group set is a logical collection of read groups, which are @@ -1255,33 +1271,33 @@ export namespace genomics_v1 { /** * The dataset to which this read group set belongs. */ - datasetId: string; + datasetId?: string; /** * The filename of the original source file for this read group set, if any. */ - filename: string; + filename?: string; /** * The server-generated read group set ID, unique for all read group sets. */ - id: string; + id?: string; /** * A map of additional read group set information. */ - info: any; + info?: any; /** * The read group set name. By default this will be initialized to the * sample name of the sequenced data contained in this set. */ - name: string; + name?: string; /** * The read groups in this set. There are typically 1-10 read groups in a * read group set. */ - readGroups: Schema$ReadGroup[]; + readGroups?: Schema$ReadGroup[]; /** * The reference set to which the reads in this read group set are aligned. */ - referenceSetId: string; + referenceSetId?: string; } /** * A reference is a canonical assembled DNA sequence, intended to act as a @@ -1293,36 +1309,36 @@ export namespace genomics_v1 { /** * The server-generated reference ID, unique across all references. */ - id: string; + id?: string; /** * The length of this reference's sequence. */ - length: string; + length?: string; /** * MD5 of the upper-case sequence excluding all whitespace characters (this * is equivalent to SQ:M5 in SAM). This value is represented in lower case * hexadecimal format. */ - md5checksum: string; + md5checksum?: string; /** * The name of this reference, for example `22`. */ - name: string; + name?: string; /** * ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for * human. */ - ncbiTaxonId: number; + ncbiTaxonId?: number; /** * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally * with a version number, for example `GCF_000001405.26`. */ - sourceAccessions: string[]; + sourceAccessions?: string[]; /** * The URI from which the sequence was obtained. Typically specifies a FASTA * format file. */ - sourceUri: string; + sourceUri?: string; } /** * ReferenceBound records an upper bound for the starting coordinate of @@ -1332,12 +1348,12 @@ export namespace genomics_v1 { /** * The name of the reference associated with this reference bound. */ - referenceName: string; + referenceName?: string; /** * An upper bound (inclusive) on the starting coordinate of any variant in * the reference sequence. */ - upperBound: string; + upperBound?: string; } /** * A reference set is a set of references which typically comprise a reference @@ -1350,15 +1366,15 @@ export namespace genomics_v1 { /** * Public id of this reference set, such as `GRCh37`. */ - assemblyId: string; + assemblyId?: string; /** * Free text description of this reference set. */ - description: string; + description?: string; /** * The server-generated reference set ID, unique across all reference sets. */ - id: string; + id?: string; /** * Order-independent MD5 checksum which identifies this reference set. The * checksum is computed by sorting all lower case hexidecimal string @@ -1366,7 +1382,7 @@ export namespace genomics_v1 { * lexicographic order, concatenating, and taking the MD5 of that value. The * resulting value is represented in lower case hexadecimal format. */ - md5checksum: string; + md5checksum?: string; /** * ID from http://www.ncbi.nlm.nih.gov/taxonomy (for example, 9606 for * human) indicating the species which this reference set is intended to @@ -1375,21 +1391,21 @@ export namespace genomics_v1 { * belong to the modeled species, for example EBV in a human reference * genome. */ - ncbiTaxonId: number; + ncbiTaxonId?: number; /** * The IDs of the reference objects that are part of this set. * `Reference.md5checksum` must be unique within this set. */ - referenceIds: string[]; + referenceIds?: string[]; /** * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally * with a version number, for example `NC_000001.11`. */ - sourceAccessions: string[]; + sourceAccessions?: string[]; /** * The URI from which the references were obtained. */ - sourceUri: string; + sourceUri?: string; } /** * Runtime metadata that will be populated in the runtimeMetadata field of the @@ -1399,53 +1415,53 @@ export namespace genomics_v1 { /** * Execution information specific to Google Compute Engine. */ - computeEngine: Schema$ComputeEngine; + computeEngine?: Schema$ComputeEngine; } export interface Schema$SearchAnnotationSetsRequest { /** * Required. The dataset IDs to search within. Caller must have `READ` * access to these datasets. */ - datasetIds: string[]; + datasetIds?: string[]; /** * Only return annotations sets for which a substring of the name matches * this string (case insensitive). */ - name: string; + name?: string; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 128. The maximum value is 1024. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; /** * If specified, only annotation sets associated with the given reference * set are returned. */ - referenceSetId: string; + referenceSetId?: string; /** * If specified, only annotation sets that have any of these types are * returned. */ - types: string[]; + types?: string[]; } export interface Schema$SearchAnnotationSetsResponse { /** * The matching annotation sets. */ - annotationSets: Schema$AnnotationSet[]; + annotationSets?: Schema$AnnotationSet[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$SearchAnnotationsRequest { /** @@ -1453,51 +1469,51 @@ export namespace genomics_v1 { * `READ` access to these annotation sets. All queried annotation sets must * have the same type. */ - annotationSetIds: string[]; + annotationSetIds?: string[]; /** * The end position of the range on the reference, 0-based exclusive. If * referenceId or referenceName must be specified, Defaults to the length of * the reference. */ - end: string; + end?: string; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 256. The maximum value is 2048. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; /** * The ID of the reference to query. */ - referenceId: string; + referenceId?: string; /** * The name of the reference to query, within the reference set associated * with this query. */ - referenceName: string; + referenceName?: string; /** * The start position of the range on the reference, 0-based inclusive. If * specified, referenceId or referenceName must be specified. Defaults to 0. */ - start: string; + start?: string; } export interface Schema$SearchAnnotationsResponse { /** * The matching annotations. */ - annotations: Schema$Annotation[]; + annotations?: Schema$Annotation[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The call set search request. @@ -1507,23 +1523,23 @@ export namespace genomics_v1 { * Only return call sets for which a substring of the name matches this * string. */ - name: string; + name?: string; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 1024. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; /** * Restrict the query to call sets within the given variant sets. At least * one ID must be provided. */ - variantSetIds: string[]; + variantSetIds?: string[]; } /** * The call set search response. @@ -1532,14 +1548,14 @@ export namespace genomics_v1 { /** * The list of matching call sets. */ - callSets: Schema$CallSet[]; + callSets?: Schema$CallSet[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; } /** * The read group set search request. @@ -1549,23 +1565,23 @@ export namespace genomics_v1 { * Restricts this query to read group sets within the given datasets. At * least one ID must be provided. */ - datasetIds: string[]; + datasetIds?: string[]; /** * Only return read group sets for which a substring of the name matches * this string. */ - name: string; + name?: string; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 256. The maximum value is 1024. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; } /** * The read group set search response. @@ -1577,11 +1593,11 @@ export namespace genomics_v1 { * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of matching read group sets. */ - readGroupSets: Schema$ReadGroupSet[]; + readGroupSets?: Schema$ReadGroupSet[]; } /** * The read search request. @@ -1591,42 +1607,42 @@ export namespace genomics_v1 { * The end position of the range on the reference, 0-based exclusive. If * specified, `referenceName` must also be specified. */ - end: string; + end?: string; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 256. The maximum value is 2048. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; /** * The IDs of the read groups within which to search for reads. All * specified read groups must belong to the same read group sets. Must * specify one of `readGroupSetIds` or `readGroupIds`. */ - readGroupIds: string[]; + readGroupIds?: string[]; /** * The IDs of the read groups sets within which to search for reads. All * specified read group sets must be aligned against a common set of * reference sequences; this defines the genomic coordinates for the query. * Must specify one of `readGroupSetIds` or `readGroupIds`. */ - readGroupSetIds: string[]; + readGroupSetIds?: string[]; /** * The reference sequence name, for example `chr1`, `1`, or `chrX`. If set * to `*`, only unmapped reads are returned. If unspecified, all reads * (mapped and unmapped) are returned. */ - referenceName: string; + referenceName?: string; /** * The start position of the range on the reference, 0-based inclusive. If * specified, `referenceName` must also be specified. */ - start: string; + start?: string; } /** * The read search response. @@ -1638,14 +1654,14 @@ export namespace genomics_v1 { * which have no position, are returned contiguously and are sorted in * ascending lexicographic order by fragment name. */ - alignments: Schema$Read[]; + alignments?: Schema$Read[]; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$SearchReferenceSetsRequest { /** @@ -1653,28 +1669,28 @@ export namespace genomics_v1 { * sourceAccessions match any of these strings. Accession numbers typically * have a main number and a version, for example `NC_000001.11`. */ - accessions: string[]; + accessions?: string[]; /** * If present, return reference sets for which a substring of their * `assemblyId` matches this string (case insensitive). */ - assemblyId: string; + assemblyId?: string; /** * If present, return reference sets for which the md5checksum matches * exactly. */ - md5checksums: string[]; + md5checksums?: string[]; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 1024. The maximum value is 4096. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; } export interface Schema$SearchReferenceSetsResponse { /** @@ -1683,11 +1699,11 @@ export namespace genomics_v1 { * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The matching references sets. */ - referenceSets: Schema$ReferenceSet[]; + referenceSets?: Schema$ReferenceSet[]; } export interface Schema$SearchReferencesRequest { /** @@ -1695,26 +1711,26 @@ export namespace genomics_v1 { * sourceAccessions match any of these strings. Accession numbers typically * have a main number and a version, for example `GCF_000001405.26`. */ - accessions: string[]; + accessions?: string[]; /** * If present, return references for which the md5checksum matches exactly. */ - md5checksums: string[]; + md5checksums?: string[]; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 1024. The maximum value is 4096. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; /** * If present, return only references which belong to this reference set. */ - referenceSetId: string; + referenceSetId?: string; } export interface Schema$SearchReferencesResponse { /** @@ -1723,11 +1739,11 @@ export namespace genomics_v1 { * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The matching references. */ - references: Schema$Reference[]; + references?: Schema$Reference[]; } /** * The search variant sets request. @@ -1737,18 +1753,18 @@ export namespace genomics_v1 { * Exactly one dataset ID must be provided here. Only variant sets which * belong to this dataset will be returned. */ - datasetIds: string[]; + datasetIds?: string[]; /** * The maximum number of results to return in a single page. If unspecified, * defaults to 1024. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; } /** * The search variant sets response. @@ -1760,11 +1776,11 @@ export namespace genomics_v1 { * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The variant sets belonging to the requested dataset. */ - variantSets: Schema$VariantSet[]; + variantSets?: Schema$VariantSet[]; } /** * The variant search request. @@ -1775,49 +1791,49 @@ export namespace genomics_v1 { * Leaving this blank returns all variant calls. If a variant has no calls * belonging to any of these call sets, it won't be returned at all. */ - callSetIds: string[]; + callSetIds?: string[]; /** * The end of the window, 0-based exclusive. If unspecified or 0, defaults * to the length of the reference. */ - end: string; + end?: string; /** * The maximum number of calls to return in a single page. Note that this * limit may be exceeded in the event that a matching variant contains more * calls than the requested maximum. If unspecified, defaults to 5000. The * maximum value is 10000. */ - maxCalls: number; + maxCalls?: number; /** * The maximum number of variants to return in a single page. If * unspecified, defaults to 5000. The maximum value is 10000. */ - pageSize: number; + pageSize?: number; /** * The continuation token, which is used to page through large result sets. * To get the next page of results, set this parameter to the value of * `nextPageToken` from the previous response. */ - pageToken: string; + pageToken?: string; /** * Required. Only return variants in this reference sequence. */ - referenceName: string; + referenceName?: string; /** * The beginning of the window (0-based, inclusive) for which overlapping * variants should be returned. If unspecified, defaults to 0. */ - start: string; + start?: string; /** * Only return variants which have exactly this name. */ - variantName: string; + variantName?: string; /** * At most one variant set ID must be provided. Only variants from this * variant set will be returned. If omitted, a call set id must be included * in the request. */ - variantSetIds: string[]; + variantSetIds?: string[]; } /** * The variant search response. @@ -1829,11 +1845,11 @@ export namespace genomics_v1 { * results. This field will be empty if there aren't any additional * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of matching Variants. */ - variants: Schema$Variant[]; + variants?: Schema$Variant[]; } /** * Request message for `SetIamPolicy` method. @@ -1845,7 +1861,7 @@ export namespace genomics_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * The `Status` type defines a logical error model that is suitable for @@ -1887,18 +1903,18 @@ export namespace genomics_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message for `TestIamPermissions` method. @@ -1913,7 +1929,7 @@ export namespace genomics_v1 { * `genomics.datasets.update` * `genomics.datasets.getIamPolicy` * * `genomics.datasets.setIamPolicy` */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -1923,7 +1939,7 @@ export namespace genomics_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A transcript represents the assertion that a particular region of the @@ -1941,7 +1957,7 @@ export namespace genomics_v1 { * coding exon reference bases cannot necessarily be concatenated to produce * the original transcript mRNA. */ - codingSequence: Schema$CodingSequence; + codingSequence?: Schema$CodingSequence; /** * The <a * href="http://en.wikipedia.org/wiki/Exon">exons</a> @@ -1955,11 +1971,11 @@ export namespace genomics_v1 { * codingSequence correspond to coding DNA sequence. Exons are ordered by * start position and may not overlap. */ - exons: Schema$Exon[]; + exons?: Schema$Exon[]; /** * The annotation ID of the gene from which this transcript is transcribed. */ - geneId: string; + geneId?: string; } export interface Schema$UndeleteDatasetRequest {} /** @@ -1972,11 +1988,11 @@ export namespace genomics_v1 { /** * The numeric ID of the action that started the container. */ - actionId: number; + actionId?: number; /** * The exit status of the container. */ - exitStatus: number; + exitStatus?: number; } /** * A variant represents a change in DNA sequence relative to a reference @@ -1991,64 +2007,64 @@ export namespace genomics_v1 { /** * The bases that appear instead of the reference bases. */ - alternateBases: string[]; + alternateBases?: string[]; /** * The variant calls for this particular variant. Each one represents the * determination of genotype with respect to this variant. */ - calls: Schema$VariantCall[]; + calls?: Schema$VariantCall[]; /** * The date this variant was created, in milliseconds from the epoch. */ - created: string; + created?: string; /** * The end position (0-based) of this variant. This corresponds to the first * base after the last base in the reference allele. So, the length of the * reference allele is (end - start). This is useful for variants that * don't explicitly give alternate bases, for example large deletions. */ - end: string; + end?: string; /** * A list of filters (normally quality filters) this variant has failed. * `PASS` indicates this variant has passed all filters. */ - filter: string[]; + filter?: string[]; /** * The server-generated variant ID, unique across all variants. */ - id: string; + id?: string; /** * A map of additional variant information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * Names for the variant, for example a RefSNP ID. */ - names: string[]; + names?: string[]; /** * A measure of how likely this variant is to be real. A higher value is * better. */ - quality: number; + quality?: number; /** * The reference bases for this variant. They start at the given position. */ - referenceBases: string; + referenceBases?: string; /** * The reference on which this variant occurs. (such as `chr20` or `X`) */ - referenceName: string; + referenceName?: string; /** * The position at which this variant occurs (0-based). This corresponds to * the first base of the string of reference bases. */ - start: string; + start?: string; /** * The ID of the variant set this variant belongs to. */ - variantSetId: string; + variantSetId?: string; } export interface Schema$VariantAnnotation { /** @@ -2056,36 +2072,36 @@ export namespace genomics_v1 { * exist at this location, create a separate variant for each one, as they * may represent distinct conditions. */ - alternateBases: string; + alternateBases?: string; /** * Describes the clinical significance of a variant. It is adapted from the * ClinVar controlled vocabulary for clinical significance described at: * http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ */ - clinicalSignificance: string; + clinicalSignificance?: string; /** * The set of conditions associated with this variant. A condition describes * the way a variant influences human health. */ - conditions: Schema$ClinicalCondition[]; + conditions?: Schema$ClinicalCondition[]; /** * Effect of the variant on the coding sequence. */ - effect: string; + effect?: string; /** * Google annotation ID of the gene affected by this variant. This should be * provided when the variant is created. */ - geneId: string; + geneId?: string; /** * Google annotation IDs of the transcripts affected by this variant. These * should be provided when the variant is created. */ - transcriptIds: string[]; + transcriptIds?: string[]; /** * Type has been adapted from ClinVar's list of variant types. */ - type: string; + type?: string; } /** * A call represents the determination of genotype with respect to a @@ -2097,11 +2113,11 @@ export namespace genomics_v1 { /** * The ID of the call set this variant call belongs to. */ - callSetId: string; + callSetId?: string; /** * The name of the call set this variant call belongs to. */ - callSetName: string; + callSetName?: string; /** * The genotype of this variant call. Each value represents either the value * of the `referenceBases` field or a 1-based index into `alternateBases`. @@ -2113,7 +2129,7 @@ export namespace genomics_v1 { * `phaseset` is present. If a genotype is not called (that is, a `.` is * present in the GT string) -1 is returned. */ - genotype: number[]; + genotype?: number[]; /** * The genotype likelihoods for this variant call. Each array entry * represents how likely a specific genotype is for this call. The value @@ -2122,13 +2138,13 @@ export namespace genomics_v1 { * likelihood scores (GL) are not, PL scores are converted to GL scores. If * both are available, PL scores are stored in `info`. */ - genotypeLikelihood: number[]; + genotypeLikelihood?: number[]; /** * A map of additional variant call information. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * If this field is present, this variant call's genotype ordering * implies the phase of the bases and is consistent with any other variant @@ -2136,7 +2152,7 @@ export namespace genomics_v1 { * When importing data from VCF, if the genotype data was phased but no * phase set was specified this field will be set to `*`. */ - phaseset: string; + phaseset?: string; } /** * A variant set is a collection of call sets and variants. It contains @@ -2146,28 +2162,28 @@ export namespace genomics_v1 { /** * The dataset to which this variant set belongs. */ - datasetId: string; + datasetId?: string; /** * A textual description of this variant set. */ - description: string; + description?: string; /** * The server-generated variant set ID, unique across all variant sets. */ - id: string; + id?: string; /** * The metadata associated with this variant set. */ - metadata: Schema$VariantSetMetadata[]; + metadata?: Schema$VariantSetMetadata[]; /** * User-specified, mutable name. */ - name: string; + name?: string; /** * A list of all references used by the variants in a variant set with * associated coordinate upper bounds for each one. */ - referenceBounds: Schema$ReferenceBound[]; + referenceBounds?: Schema$ReferenceBound[]; /** * The reference set to which the variant set is mapped. The reference set * describes the alignment provenance of the variant set, while the @@ -2180,7 +2196,7 @@ export namespace genomics_v1 { * references: '1', '2', 'X', 'Y', * 'MT', etc. */ - referenceSetId: string; + referenceSetId?: string; } /** * Metadata describes a single piece of variant call metadata. These data @@ -2191,37 +2207,37 @@ export namespace genomics_v1 { /** * A textual description of this metadata. */ - description: string; + description?: string; /** * User-provided ID field, not enforced by this API. Two or more pieces of * structured metadata with identical id and key fields are considered * equivalent. */ - id: string; + id?: string; /** * Remaining structured metadata key-value pairs. This must be of the form * map<string, string[]> (string key mapping to a list of string * values). */ - info: any; + info?: any; /** * The top-level key. */ - key: string; + key?: string; /** * The number of values that can be included in a field described by this * metadata. */ - number: string; + number?: string; /** * The type of data. Possible types include: Integer, Float, Flag, * Character, and String. */ - type: string; + type?: string; /** * The value field for simple metadata */ - value: string; + value?: string; } /** * This event is generated once a worker VM has been assigned to run the @@ -2231,11 +2247,11 @@ export namespace genomics_v1 { /** * The worker's instance name. */ - instance: string; + instance?: string; /** * The zone the worker is running in. */ - zone: string; + zone?: string; } /** * This event is generated when the worker VM that was assigned to the @@ -2245,13 +2261,14 @@ export namespace genomics_v1 { /** * The worker's instance name. */ - instance: string; + instance?: string; /** * The zone the worker was running in. */ - zone: string; + zone?: string; } + export class Resource$Annotations { root: Genomics; constructor(root: Genomics) { @@ -2339,29 +2356,45 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchCreate(params?: any, options?: MethodOptions): + batchCreate( + params?: Params$Resource$Annotations$Batchcreate, + options?: MethodOptions): AxiosPromise; batchCreate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Annotations$Batchcreate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchCreate( + params: Params$Resource$Annotations$Batchcreate, + callback: BodyResponseCallback): void; batchCreate( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + batchCreate( + paramsOrCallback?: Params$Resource$Annotations$Batchcreate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotations$Batchcreate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotations$Batchcreate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2460,26 +2493,39 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Annotations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Annotations$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Annotations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Annotations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2564,25 +2610,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Annotations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Annotations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Annotations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Annotations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2671,23 +2730,34 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Annotations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Annotations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Annotations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Annotations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Annotations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2796,29 +2866,41 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search( + params?: Params$Resource$Annotations$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Annotations$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Annotations$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Annotations$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotations$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotations$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2916,26 +2998,39 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Annotations$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Annotations$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Annotations$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Annotations$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotations$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotations$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2958,6 +3053,84 @@ export namespace genomics_v1 { } } + export interface Params$Resource$Annotations$Batchcreate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$BatchCreateAnnotationsRequest; + } + export interface Params$Resource$Annotations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Annotation; + } + export interface Params$Resource$Annotations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the annotation to be deleted. + */ + annotationId?: string; + } + export interface Params$Resource$Annotations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the annotation to be retrieved. + */ + annotationId?: string; + } + export interface Params$Resource$Annotations$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SearchAnnotationsRequest; + } + export interface Params$Resource$Annotations$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the annotation to be updated. + */ + annotationId?: string; + /** + * An optional mask specifying which fields to update. Mutable fields are + * name, variant, transcript, and info. If unspecified, all mutable fields + * will be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Annotation; + } + + export class Resource$Annotationsets { root: Genomics; constructor(root: Genomics) { @@ -3040,26 +3213,39 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Annotationsets$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Annotationsets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Annotationsets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Annotationsets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotationsets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotationsets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3146,25 +3332,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Annotationsets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Annotationsets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Annotationsets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Annotationsets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotationsets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotationsets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3254,24 +3453,35 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Annotationsets$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Annotationsets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Annotationsets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Annotationsets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotationsets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotationsets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3379,29 +3589,44 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search( + params?: Params$Resource$Annotationsets$Search, + options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Annotationsets$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + search( + params: Params$Resource$Annotationsets$Search, + callback: BodyResponseCallback): + void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Annotationsets$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotationsets$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotationsets$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3502,26 +3727,39 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Annotationsets$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Annotationsets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Annotationsets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Annotationsets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Annotationsets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Annotationsets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3544,6 +3782,73 @@ export namespace genomics_v1 { } } + export interface Params$Resource$Annotationsets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnnotationSet; + } + export interface Params$Resource$Annotationsets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the annotation set to be deleted. + */ + annotationSetId?: string; + } + export interface Params$Resource$Annotationsets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the annotation set to be retrieved. + */ + annotationSetId?: string; + } + export interface Params$Resource$Annotationsets$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SearchAnnotationSetsRequest; + } + export interface Params$Resource$Annotationsets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the annotation set to be updated. + */ + annotationSetId?: string; + /** + * An optional mask specifying which fields to update. Mutable fields are + * name, source_uri, and info. If unspecified, all mutable fields will be + * updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$AnnotationSet; + } + + export class Resource$Callsets { root: Genomics; constructor(root: Genomics) { @@ -3622,25 +3927,36 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Callsets$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Callsets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Callsets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Callsets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Callsets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Callsets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3724,25 +4040,36 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Callsets$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Callsets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Callsets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Callsets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Callsets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Callsets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3830,23 +4157,33 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Callsets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Callsets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Callsets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Callsets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Callsets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Callsets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -3942,25 +4279,36 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Callsets$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Callsets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Callsets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Callsets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Callsets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Callsets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4063,28 +4411,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Callsets$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Callsets$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Callsets$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$Callsets$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Callsets$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Callsets$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4107,6 +4465,73 @@ export namespace genomics_v1 { } } + export interface Params$Resource$Callsets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$CallSet; + } + export interface Params$Resource$Callsets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the call set to be deleted. + */ + callSetId?: string; + } + export interface Params$Resource$Callsets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the call set. + */ + callSetId?: string; + } + export interface Params$Resource$Callsets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the call set to be updated. + */ + callSetId?: string; + /** + * An optional mask specifying which fields to update. At this time, the + * only mutable field is name. The only acceptable value is "name". If + * unspecified, all mutable fields will be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$CallSet; + } + export interface Params$Resource$Callsets$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SearchCallSetsRequest; + } + + export class Resource$Datasets { root: Genomics; constructor(root: Genomics) { @@ -4185,25 +4610,36 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Datasets$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Datasets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Datasets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4290,25 +4726,36 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Datasets$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Datasets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4396,23 +4843,33 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Datasets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Datasets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Datasets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Datasets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4510,26 +4967,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Datasets$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Datasets$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Datasets$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datasets$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4629,28 +5098,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Datasets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datasets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Datasets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Datasets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4745,25 +5224,36 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Datasets$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Datasets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Datasets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Datasets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4861,26 +5351,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Datasets$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Datasets$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Datasets$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datasets$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -4977,29 +5479,45 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Datasets$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Datasets$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Datasets$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Datasets$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Datasets$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5095,26 +5613,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Datasets$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Datasets$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Datasets$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Datasets$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Datasets$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Datasets$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5137,6 +5667,147 @@ export namespace genomics_v1 { } } + export interface Params$Resource$Datasets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Dataset; + } + export interface Params$Resource$Datasets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the dataset to be deleted. + */ + datasetId?: string; + } + export interface Params$Resource$Datasets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the dataset. + */ + datasetId?: string; + } + export interface Params$Resource$Datasets$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which policy is being specified. Format is + * `datasets/`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Datasets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of results to return in a single page. If unspecified, + * defaults to 50. The maximum value is 1024. + */ + pageSize?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * `nextPageToken` from the previous response. + */ + pageToken?: string; + /** + * Required. The Google Cloud project ID to list datasets for. + */ + projectId?: string; + } + export interface Params$Resource$Datasets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the dataset to be updated. + */ + datasetId?: string; + /** + * An optional mask specifying which fields to update. At this time, the + * only mutable field is name. The only acceptable value is "name". If + * unspecified, all mutable fields will be updated. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Dataset; + } + export interface Params$Resource$Datasets$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which policy is being specified. Format is + * `datasets/`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Datasets$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which policy is being specified. Format is + * `datasets/`. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Datasets$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the dataset to be undeleted. + */ + datasetId?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteDatasetRequest; + } + + export class Resource$Operations { root: Genomics; constructor(root: Genomics) { @@ -5220,25 +5891,37 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; + cancel( + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5328,23 +6011,34 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5448,28 +6142,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5491,6 +6195,75 @@ export namespace genomics_v1 { } } + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A string for filtering Operations. In v2alpha1, the following filter + * fields are supported: * createTime: The time this job was + * created * events: The set of event (names) that have occurred while + * running the pipeline. The : operator can be used to determine if a + * particular event has occurred. * error: If the pipeline is running, + * this value is NULL. Once the pipeline finishes, the value is the + * standard Google error code. * labels.key or labels."key with space" where + * key is a label key. In v1 and v1alpha2, the following filter fields are + * supported: * projectId: Required. Corresponds to + * OperationMetadata.projectId. * createTime: The time this job was + * created, in seconds from the + * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` + * operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or + * `CANCELED`. Only one status may be specified. * labels.key where key is + * a label key. Examples: * `projectId = my-project AND createTime >= + * 1432140000` * `projectId = my-project AND createTime >= 1432140000 AND + * createTime <= 1432150000 AND status = RUNNING` * `projectId = my-project + * AND labels.color = *` * `projectId = my-project AND labels.color = red` + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The maximum number of results to return. If unspecified, defaults to 256. + * The maximum value is 2048. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Readgroupsets { root: Genomics; coveragebuckets: Resource$Readgroupsets$Coveragebuckets; @@ -5570,25 +6343,38 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Readgroupsets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Readgroupsets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Readgroupsets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Readgroupsets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Readgroupsets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5687,26 +6473,39 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): - AxiosPromise; export( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Readgroupsets$Export, + options?: MethodOptions): AxiosPromise; + export( + params: Params$Resource$Readgroupsets$Export, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Readgroupsets$Export, + callback: BodyResponseCallback): void; + export(callback: BodyResponseCallback): void; + export( + paramsOrCallback?: Params$Resource$Readgroupsets$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Readgroupsets$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5795,24 +6594,35 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Readgroupsets$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Readgroupsets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Readgroupsets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Readgroupsets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Readgroupsets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -5910,18 +6720,28 @@ export namespace genomics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Readgroupsets$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Readgroupsets$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Readgroupsets$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Readgroupsets$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Readgroupsets$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Import; options = {}; - } if(typeof params === 'function') { - callback = params; - params = {}; - } options = options || {}; const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v1/readgroupsets:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: [], pathParams: [], context: this.getRoot()}; if(callback) { + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v1/readgroupsets:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: [], pathParams: [], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { return createAPIRequest(parameters); - }} + } else { + return createAPIRequest(parameters); + }} /** @@ -5989,30 +6809,42 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + patch(params?: Params$Resource$Readgroupsets$Patch, options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Readgroupsets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Readgroupsets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Readgroupsets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Readgroupsets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6116,29 +6948,43 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Readgroupsets$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + search( + params: Params$Resource$Readgroupsets$Search, + callback: BodyResponseCallback): + void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Readgroupsets$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Readgroupsets$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6161,6 +7007,91 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Readgroupsets$Coveragebuckets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Readgroupsets$Coveragebuckets$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Readgroupsets$Coveragebuckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Readgroupsets$Coveragebuckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Readgroupsets$Coveragebuckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6313,6 +7259,55 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reads$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Reads$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Reads$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reads$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reads$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6462,6 +7466,19 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$References$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$References$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$References$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$References$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$References$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$References$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6662,28 +7690,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$References$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + search( + params: Params$Resource$References$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): + void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$References$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$References$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$References$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6705,6 +7745,30 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$References$Bases$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$References$Bases$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$References$Bases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$References$Bases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$References$Bases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$References$Bases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -6841,6 +7918,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Referencesets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Referencesets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Referencesets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Referencesets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Referencesets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7043,29 +8165,43 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Referencesets$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + search( + params: Params$Resource$Referencesets$Search, + callback: BodyResponseCallback): + void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Referencesets$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Referencesets$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Referencesets$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7089,6 +8225,30 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + create(params?: Params$Resource$Variants$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Variants$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Variants$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Variants$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variants$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7269,25 +8440,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + delete(params?: Params$Resource$Variants$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Variants$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Variants$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Variants$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variants$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7375,23 +8557,33 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Variants$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Variants$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Variants$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Variants$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variants$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7490,18 +8682,28 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Variants$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Variants$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Variants$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Variants$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Variants$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Import; options = {}; - } if(typeof params === 'function') { - callback = params; - params = {}; - } options = options || {}; const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v1/variants:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: [], pathParams: [], context: this.getRoot()}; if(callback) { + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/v1/variants:import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: [], pathParams: [], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { return createAPIRequest(parameters); - }} + } else { + return createAPIRequest(parameters); + }} /** @@ -7559,30 +8761,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + merge(params?: Params$Resource$Variants$Merge, options?: MethodOptions): AxiosPromise; + merge( + params: Params$Resource$Variants$Merge, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; merge( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Variants$Merge, + callback: BodyResponseCallback): void; + merge(callback: BodyResponseCallback): void; merge( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Variants$Merge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variants$Merge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Merge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7679,25 +8891,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + patch(params?: Params$Resource$Variants$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Variants$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Variants$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Variants$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variants$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7800,28 +9023,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Variants$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Variants$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Variants$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variants$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variants$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -7844,6 +9077,95 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Variantsets$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Variantsets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Variantsets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Variantsets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Variantsets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variantsets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -8029,25 +9364,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Variantsets$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Variantsets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Variantsets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Variantsets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Variantsets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variantsets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -8143,26 +9491,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; export( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Variantsets$Export, + options?: MethodOptions): AxiosPromise; + export( + params: Params$Resource$Variantsets$Export, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Variantsets$Export, + callback: BodyResponseCallback): void; + export(callback: BodyResponseCallback): void; + export( + paramsOrCallback?: Params$Resource$Variantsets$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Variantsets$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variantsets$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -8251,23 +9612,34 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Variantsets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Variantsets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Variantsets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Variantsets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Variantsets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variantsets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -8364,26 +9736,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Variantsets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Variantsets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Variantsets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Variantsets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variantsets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -8488,29 +9872,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Variantsets$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Variantsets$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Variantsets$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Variantsets$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Variantsets$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -8533,4 +9929,86 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1083,23 +1109,34 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1204,28 +1241,38 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1248,6 +1295,75 @@ export namespace genomics_v1alpha2 { } } + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A string for filtering Operations. In v2alpha1, the following filter + * fields are supported: * createTime: The time this job was + * created * events: The set of event (names) that have occurred while + * running the pipeline. The : operator can be used to determine if a + * particular event has occurred. * error: If the pipeline is running, + * this value is NULL. Once the pipeline finishes, the value is the + * standard Google error code. * labels.key or labels."key with space" where + * key is a label key. In v1 and v1alpha2, the following filter fields are + * supported: * projectId: Required. Corresponds to + * OperationMetadata.projectId. * createTime: The time this job was + * created, in seconds from the + * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` + * operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or + * `CANCELED`. Only one status may be specified. * labels.key where key is + * a label key. Examples: * `projectId = my-project AND createTime >= + * 1432140000` * `projectId = my-project AND createTime >= 1432140000 AND + * createTime <= 1432150000 AND status = RUNNING` * `projectId = my-project + * AND labels.color = *` * `projectId = my-project AND labels.color = red` + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The maximum number of results to return. If unspecified, defaults to 256. + * The maximum value is 2048. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Pipelines { root: Genomics; constructor(root: Genomics) { @@ -1329,26 +1445,36 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Pipelines$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pipelines$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Pipelines$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pipelines$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pipelines$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1436,25 +1562,36 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Pipelines$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Pipelines$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pipelines$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pipelines$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pipelines$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1544,23 +1681,33 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Pipelines$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Pipelines$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pipelines$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pipelines$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pipelines$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1645,26 +1792,40 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getControllerConfig(params?: any, options?: MethodOptions): - AxiosPromise; getControllerConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pipelines$Getcontrollerconfig, + options?: MethodOptions): AxiosPromise; + getControllerConfig( + params: Params$Resource$Pipelines$Getcontrollerconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getControllerConfig( + params: Params$Resource$Pipelines$Getcontrollerconfig, + callback: BodyResponseCallback): void; + getControllerConfig( + callback: BodyResponseCallback): void; getControllerConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pipelines$Getcontrollerconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Pipelines$Getcontrollerconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Getcontrollerconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1765,28 +1926,38 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Pipelines$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pipelines$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pipelines$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Pipelines$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pipelines$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1881,23 +2052,34 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Pipelines$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Pipelines$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Pipelines$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Pipelines$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pipelines$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1987,26 +2169,38 @@ export namespace genomics_v1alpha2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setOperationStatus(params?: any, options?: MethodOptions): - AxiosPromise; setOperationStatus( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pipelines$Setoperationstatus, + options?: MethodOptions): AxiosPromise; + setOperationStatus( + params: Params$Resource$Pipelines$Setoperationstatus, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setOperationStatus( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pipelines$Setoperationstatus, + callback: BodyResponseCallback): void; + setOperationStatus(callback: BodyResponseCallback): void; + setOperationStatus( + paramsOrCallback?: Params$Resource$Pipelines$Setoperationstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Pipelines$Setoperationstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Setoperationstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -2028,4 +2222,104 @@ export namespace genomics_v1alpha2 { } } } + + export interface Params$Resource$Pipelines$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Pipeline; + } + export interface Params$Resource$Pipelines$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Caller must have WRITE access to the project in which this pipeline is + * defined. + */ + pipelineId?: string; + } + export interface Params$Resource$Pipelines$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Caller must have READ access to the project in which this pipeline is + * defined. + */ + pipelineId?: string; + } + export interface Params$Resource$Pipelines$Getcontrollerconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The operation to retrieve controller configuration for. + */ + operationId?: string; + /** + * + */ + validationToken?: string; + } + export interface Params$Resource$Pipelines$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Pipelines with names that match this prefix should be returned. If + * unspecified, all pipelines in the project, up to `pageSize`, will be + * returned. + */ + namePrefix?: string; + /** + * Number of pipelines to return at once. Defaults to 256, and max is 2048. + */ + pageSize?: number; + /** + * Token to use to indicate where to start getting results. If unspecified, + * returns the first page of results. + */ + pageToken?: string; + /** + * Required. The name of the project to search for pipelines. Caller must + * have READ access to this project. + */ + projectId?: string; + } + export interface Params$Resource$Pipelines$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$RunPipelineRequest; + } + export interface Params$Resource$Pipelines$Setoperationstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SetOperationStatusRequest; + } } diff --git a/src/apis/genomics/v2alpha1.ts b/src/apis/genomics/v2alpha1.ts index d72fffc66f3..6f7eca64e1e 100644 --- a/src/apis/genomics/v2alpha1.ts +++ b/src/apis/genomics/v2alpha1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace genomics_v2alpha1 { + export interface Options extends GlobalOptions { version: 'v2alpha1'; } + /** * Genomics API * @@ -69,6 +72,25 @@ export namespace genomics_v2alpha1 { } } + /** + * Carries information about an accelerator that can be attached to a VM. + */ + export interface Schema$Accelerator { + /** + * How many accelerators of this type to attach. + */ + count?: string; + /** + * The accelerator type string (eg nvidia-tesla-k80). Only NVIDIA GPU + * accelerators are currently supported. If an NVIDIA GPU is attached, the + * required runtime libraries will be made available to all containers under + * `/usr/local/nvidia`. The driver version to install must be specified + * using the NVIDIA driver version parameter on the virtual machine + * specification. Note that attaching a GPU increases the worker VM startup + * time by a few minutes. + */ + type?: string; + } /** * Action specifies a single action that runs a docker container. */ @@ -79,11 +101,11 @@ export namespace genomics_v2alpha1 { * arguments. Otherwise, they are used as a command and arguments to run * inside the container. */ - commands: string[]; + commands?: string[]; /** * If specified, overrides the ENTRYPOINT specified in the container. */ - entrypoint: string; + entrypoint?: string; /** * The environment to pass into the container. This environment is merged * with any values specified in the Pipeline message. These values @@ -98,11 +120,11 @@ export namespace genomics_v2alpha1 { * used by workflow engine authors to determine whether an individual action * has succeeded or failed. */ - environment: any; + environment?: any; /** * The set of flags to apply to this action. */ - flags: string[]; + flags?: string[]; /** * The URI to pull the container image from. Note that all images * referenced by actions in the pipeline are pulled before the first action @@ -110,14 +132,14 @@ export namespace genomics_v2alpha1 { * once, ensuring that the same image is used for all actions in a single * pipeline. */ - imageUri: string; + imageUri?: string; /** * Labels to associate with the action. This field is provided to assist * workflow engine authors in identifying actions (for example, to indicate * what sort of action they perform: eg. localization, debugging, etc). They * are returned in the operation metadata but are otherwise ignored. */ - labels: any; + labels?: any; /** * A list of mounts to make available to the action. In addition to the * values specified here, every action has a special virtual disk mounted @@ -134,19 +156,19 @@ export namespace genomics_v2alpha1 { * complete contents of each individual action's standard error * output</li> </ul> */ - mounts: Schema$Mount[]; + mounts?: Schema$Mount[]; /** * An optional name for the container. The container hostname will be set * to this name, making it useful for inter-container communication. The * name must contain only upper and lowercase alphanumeric characters and * hypens and cannot start with a hypen. */ - name: string; + name?: string; /** * The PID namespace to run the action inside. If unspecified, a separate * isolated namespace is used. */ - pidNamespace: string; + pidNamespace?: string; /** * A map of container to host port mappings for this container. Note that * if the container already specifies exposed ports, the @@ -155,7 +177,7 @@ export namespace genomics_v2alpha1 { * assigned. To determine the resulting port number, consult the * ContainerStartedEvent in the operation metadata. */ - portMappings: any; + portMappings?: any; } /** * The request message for Operations.CancelOperation. @@ -168,15 +190,15 @@ export namespace genomics_v2alpha1 { /** * The deadline has expired and the worker needs more time. */ - deadlineExpired: Schema$Empty; + deadlineExpired?: Schema$Empty; /** * A workflow specific event occurred. */ - event: any; + event?: any; /** * The operation has finished with the given result. */ - result: Schema$Status; + result?: Schema$Status; } /** * The response to the CheckIn method. @@ -188,11 +210,11 @@ export namespace genomics_v2alpha1 { * must attempt to transmit the extension request no later than the * deadline. */ - deadline: string; + deadline?: string; /** * The metadata that describes the operation assigned to the worker. */ - metadata: any; + metadata?: any; } /** * Describes a Compute Engine resource that is being managed by a running @@ -202,19 +224,19 @@ export namespace genomics_v2alpha1 { /** * The names of the disks that were created for this pipeline. */ - diskNames: string[]; + diskNames?: string[]; /** * The instance on which the operation is running. */ - instanceName: string; + instanceName?: string; /** * The machine type of the instance. */ - machineType: string; + machineType?: string; /** * The availability zone in which the instance resides. */ - zone: string; + zone?: string; } /** * This event is generated when a container starts. @@ -223,20 +245,20 @@ export namespace genomics_v2alpha1 { /** * The numeric ID of the action that started this container. */ - actionId: number; + actionId?: number; /** * The public IP address that can be used to connect to the container. This * field is only populated when at least one port mapping is present. If * the instance was created with a private address this field will be empty * even if port mappings exist. */ - ipAddress: string; + ipAddress?: string; /** * The container to host port mappings installed for this container. This * set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag * as well as any specified in the Action definition. */ - portMappings: any; + portMappings?: any; } /** * This event is generated when a container exits. @@ -245,11 +267,21 @@ export namespace genomics_v2alpha1 { /** * The numeric ID of the action that started this container. */ - actionId: number; + actionId?: number; /** * The exit status of the container. */ - exitStatus: number; + exitStatus?: number; + /** + * The tail end of any content written to standard error by the container. + * To prevent this from being recorded if the action is known to emit large + * amounts of debugging noise or sensitive information, set the + * DISABLE_STANDARD_ERROR_CAPTURE flag. Note that only a small amount of + * the end of the stream is captured here. The entire stream is stored in + * the /google/logs directory mounted into each action, and may be copied + * off the machine as described elsewhere. + */ + stderr?: string; } /** * This event is generated whenever a resource limitation or transient error @@ -261,14 +293,14 @@ export namespace genomics_v2alpha1 { * without notice since it is often generated by another service (such as * Compute Engine). */ - cause: string; + cause?: string; /** * If the delay was caused by a resource shortage, this field lists the * Compute Engine metrics that are preventing this operation from running * (for example, CPUS or INSTANCES). If the particular metric is not known, * a single UNKNOWN metric will be present. */ - metrics: string[]; + metrics?: string[]; } /** * Carries information about a disk that can be attached to a VM. @@ -279,23 +311,23 @@ export namespace genomics_v2alpha1 { * The name must contain only upper and lowercase alphanumeric characters * and hypens and cannot start with a hypen. */ - name: string; + name?: string; /** * The size, in gigabytes, of the disk to attach. Note that this value is * not configurable for some disk types such as local-ssd. If the size is * not specified, a size of at least 500gb is used to ensure reasonable I/O * performance. */ - sizeGb: number; + sizeGb?: number; /** * An optional image to put on the disk before attaching it to the VM. */ - sourceImage: string; + sourceImage?: string; /** * The Compute Engine disk type. If unspecified, 'standard-pd' is * used. */ - type: string; + type?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -315,15 +347,15 @@ export namespace genomics_v2alpha1 { * change at any time without notice. Any application logic must use the * information in the details field. */ - description: string; + description?: string; /** * Machine readable details about the event. */ - details: any; + details?: any; /** * The time that the event occurred. */ - timestamp: string; + timestamp?: string; } /** * This event is generated when the execution of a pipeline has failed. Note @@ -333,11 +365,11 @@ export namespace genomics_v2alpha1 { /** * The human readable description of the cause of the failure. */ - cause: string; + cause?: string; /** * The Google standard error code that best describes this failure. */ - code: string; + code?: string; } /** * The read group set import response. @@ -346,7 +378,7 @@ export namespace genomics_v2alpha1 { /** * IDs of the read group sets that were created. */ - readGroupSetIds: string[]; + readGroupSetIds?: string[]; } /** * The variant data import response. @@ -355,7 +387,7 @@ export namespace genomics_v2alpha1 { /** * IDs of the call sets created during the import. */ - callSetIds: string[]; + callSetIds?: string[]; } /** * The response message for Operations.ListOperations. @@ -364,11 +396,11 @@ export namespace genomics_v2alpha1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Metadata carries information about the pipeline execution that is returned @@ -378,20 +410,28 @@ export namespace genomics_v2alpha1 { /** * The time that the operation was created by the API. */ - createTime: string; + createTime?: string; + /** + * The time at which execution was completed and resources were cleaned up. + */ + endTime?: string; /** * The list of events that have happened so far during the execution of this * operation. */ - events: Schema$Event[]; + events?: Schema$Event[]; /** * The user defined labels associated with this operation. */ - labels: any; + labels?: any; /** * The pipeline this operation represents. */ - pipeline: Schema$Pipeline; + pipeline?: Schema$Pipeline; + /** + * The first time at which resources were allocated to execute the pipeline. + */ + startTime?: string; } /** * Mount carries information about a particular disk mount inside a container. @@ -400,15 +440,15 @@ export namespace genomics_v2alpha1 { /** * The name of the disk to mount, as specified in the resources section. */ - disk: string; + disk?: string; /** * The path to mount the disk at inside the container. */ - path: string; + path?: string; /** * If true, the disk is mounted read only inside the container. */ - readOnly: boolean; + readOnly?: boolean; } /** * VM networking options. @@ -418,7 +458,7 @@ export namespace genomics_v2alpha1 { * The network name to attach the VM's network interface to. If * unspecified, the global default network is used. */ - name: string; + name?: string; /** * If set to true, do not attach a public IP address to the VM. Note that * without an public IP address, additional configuration is required to @@ -426,7 +466,7 @@ export namespace genomics_v2alpha1 { * https://cloud.google.com/vpc/docs/configure-private-google-access for * more information. */ - usePrivateAddress: boolean; + usePrivateAddress?: boolean; } /** * This resource represents a long-running operation that is the result of a @@ -438,28 +478,28 @@ export namespace genomics_v2alpha1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * An OperationMetadata or Metadata object. This will always be returned * with the Operation. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. For example&#58; * `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw` */ - name: string; + name?: string; /** * If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. * If importing Variants, an ImportVariantsResponse is returned. For * pipelines and exports, an Empty response is returned. */ - response: any; + response?: any; } /** * An event that occurred during an Operation. @@ -468,17 +508,17 @@ export namespace genomics_v2alpha1 { /** * Required description of event. */ - description: string; + description?: string; /** * Optional time of when event finished. An event can have a start time and * no finish time. If an event has a finish time, there must be a start * time. */ - endTime: string; + endTime?: string; /** * Optional time of when event started. */ - startTime: string; + startTime?: string; } /** * Metadata describing an Operation. @@ -488,45 +528,45 @@ export namespace genomics_v2alpha1 { * This field is deprecated. Use `labels` instead. Optionally provided by * the caller when submitting the request that creates the operation. */ - clientId: string; + clientId?: string; /** * The time at which the job was submitted to the Genomics service. */ - createTime: string; + createTime?: string; /** * The time at which the job stopped running. */ - endTime: string; + endTime?: string; /** * Optional event messages that were generated during the job's * execution. This also contains any warnings that were generated during * import or export. */ - events: Schema$OperationEvent[]; + events?: Schema$OperationEvent[]; /** * Optionally provided by the caller when submitting the request that * creates the operation. */ - labels: any; + labels?: any; /** * The Google Cloud Project in which the job is scoped. */ - projectId: string; + projectId?: string; /** * The original request that started the operation. Note that this will be * in current version of the API. If the operation was started with v1beta2 * API and a GetOperation is performed on v1 API, a v1 request will be * returned. */ - request: any; + request?: any; /** * Runtime metadata on this Operation. */ - runtimeMetadata: any; + runtimeMetadata?: any; /** * The time at which the job began to run. */ - startTime: string; + startTime?: string; } /** * The Pipeline object describes a series of actions to execute, expressed as @@ -536,17 +576,17 @@ export namespace genomics_v2alpha1 { /** * The list of actions to execute, in the order they are specified. */ - actions: Schema$Action[]; + actions?: Schema$Action[]; /** * The environment to pass into every action. Each action may also specify * additional environment variables but cannot delete an entry from this map * (though they may overwrite it with a different value). */ - environment: any; + environment?: any; /** * The resources required for execution. */ - resources: Schema$Resources; + resources?: Schema$Resources; } /** * This event is generated when the worker starts pulling an image. @@ -555,7 +595,7 @@ export namespace genomics_v2alpha1 { /** * The URI of the image that was pulled. */ - imageUri: string; + imageUri?: string; } /** * This event is generated when the worker stops pulling an image. @@ -564,7 +604,7 @@ export namespace genomics_v2alpha1 { /** * The URI of the image that was pulled. */ - imageUri: string; + imageUri?: string; } /** * The system resources for the pipeline run. At least one zone or region @@ -574,21 +614,21 @@ export namespace genomics_v2alpha1 { /** * The customer project ID to allocate resources in. */ - projectId: string; + projectId?: string; /** * The list of regions allowed for VM allocation. If set, the zones field * must not be set. */ - regions: string[]; + regions?: string[]; /** * The virtual machine specification. */ - virtualMachine: Schema$VirtualMachine; + virtualMachine?: Schema$VirtualMachine; /** * The list of zones allowed for VM allocation. If set, the regions field * must not be set. */ - zones: string[]; + zones?: string[]; } /** * The arguments to the RunPipeline method. The requesting user must have the @@ -603,11 +643,11 @@ export namespace genomics_v2alpha1 { * resources created while executing the operation, see the appropriate * resource message (i.e., VirtualMachine). */ - labels: any; + labels?: any; /** * The description of the pipeline to run. */ - pipeline: Schema$Pipeline; + pipeline?: Schema$Pipeline; } /** * Runtime metadata that will be populated in the runtimeMetadata field of the @@ -617,7 +657,7 @@ export namespace genomics_v2alpha1 { /** * Execution information specific to Google Compute Engine. */ - computeEngine: Schema$ComputeEngine; + computeEngine?: Schema$ComputeEngine; } /** * Carries information about a Google Cloud Service Account. @@ -627,12 +667,12 @@ export namespace genomics_v2alpha1 { * Email address of the service account. If not specified, the default * compute engine service account for the project will be used. */ - email: string; + email?: string; /** * List of scopes to be enabled for this service account on the VM, in * addition to the Google Genomics API scope. */ - scopes: string[]; + scopes?: string[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -674,18 +714,18 @@ export namespace genomics_v2alpha1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * This event is generated when the execution of a container results in a @@ -697,23 +737,27 @@ export namespace genomics_v2alpha1 { /** * The numeric ID of the action that started the container. */ - actionId: number; + actionId?: number; /** * The exit status of the container. */ - exitStatus: number; + exitStatus?: number; } /** * Carries information about a Compute Engine VM resource. */ export interface Schema$VirtualMachine { + /** + * The list of accelerators to attach to the VM. + */ + accelerators?: Schema$Accelerator[]; /** * The size of the boot disk, in gigabytes. The boot disk must be large * enough to accommodate all of the docker images from each action in the * pipeline at the same time. If not specified, a small but reasonable * default value is used. */ - bootDiskSizeGb: number; + bootDiskSizeGb?: number; /** * The host operating system image to use. At present, only Container * Optimized OS images may be used. The default value is @@ -725,7 +769,7 @@ export namespace genomics_v2alpha1 { * COS, use the value * "projects/cos-cloud/global/images/family/cos-beta". */ - bootImage: string; + bootImage?: string; /** * The CPU platform to request. An instance based on a newer platform may * be allocated but never one with less capabilities. The value of this @@ -735,11 +779,11 @@ export namespace genomics_v2alpha1 { * more information about the effect of this parameter, please visit * https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. */ - cpuPlatform: string; + cpuPlatform?: string; /** * The list of disks to create and attach to the VM. */ - disks: Schema$Disk[]; + disks?: Schema$Disk[]; /** * Optional set of labels to apply to the VM and any attached disk * resources. These labels must adhere to the name and value restrictions on @@ -747,26 +791,34 @@ export namespace genomics_v2alpha1 { * creation time to the VM and are applied on a best-effort basis to * attached disk resources shortly after VM creation. */ - labels: any; + labels?: any; /** * The machine type of the virtual machine to create. Must be the short * name of a standard machine type (such as "n1-standard-1") or a * custom machine type (such as "custom-1-4096"). */ - machineType: string; + machineType?: string; /** * The VM network configuration. */ - network: Schema$Network; + network?: Schema$Network; + /** + * The NVIDIA driver version to use when attaching an NVIDIA GPU + * accelerator. The version specified here must be compatible with the GPU + * libraries contained in the container being executed, and must be one of + * the drivers hosted in the 'nvidia-drivers-us-public' bucket on + * Google Cloud Storage. + */ + nvidiaDriverVersion?: string; /** * If true, allocate a preemptible VM. */ - preemptible: boolean; + preemptible?: boolean; /** * The service account to install on the VM. This account does not need any * permissions other than those required by the pipeline. */ - serviceAccount: Schema$ServiceAccount; + serviceAccount?: Schema$ServiceAccount; } /** * This event is generated once a worker VM has been assigned to run the @@ -776,11 +828,11 @@ export namespace genomics_v2alpha1 { /** * The worker's instance name. */ - instance: string; + instance?: string; /** * The zone the worker is running in. */ - zone: string; + zone?: string; } /** * This event is generated when the worker VM that was assigned to the @@ -790,13 +842,14 @@ export namespace genomics_v2alpha1 { /** * The worker's instance name. */ - instance: string; + instance?: string; /** * The zone the worker was running in. */ - zone: string; + zone?: string; } + export class Resource$Pipelines { root: Genomics; constructor(root: Genomics) { @@ -827,23 +880,34 @@ export namespace genomics_v2alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Pipelines$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Pipelines$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Pipelines$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Pipelines$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pipelines$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pipelines$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -866,6 +930,19 @@ export namespace genomics_v2alpha1 { } } + export interface Params$Resource$Pipelines$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$RunPipelineRequest; + } + + export class Resource$Projects { root: Genomics; operations: Resource$Projects$Operations; @@ -879,6 +956,8 @@ export namespace genomics_v2alpha1 { return this.root; } } + + export class Resource$Projects$Operations { root: Genomics; constructor(root: Genomics) { @@ -908,25 +987,38 @@ export namespace genomics_v2alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -963,23 +1055,35 @@ export namespace genomics_v2alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1017,28 +1121,40 @@ export namespace genomics_v2alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1061,6 +1177,75 @@ export namespace genomics_v2alpha1 { } } + export interface Params$Resource$Projects$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A string for filtering Operations. In v2alpha1, the following filter + * fields are supported: * createTime: The time this job was + * created * events: The set of event (names) that have occurred while + * running the pipeline. The : operator can be used to determine if a + * particular event has occurred. * error: If the pipeline is running, + * this value is NULL. Once the pipeline finishes, the value is the + * standard Google error code. * labels.key or labels."key with space" where + * key is a label key. In v1 and v1alpha2, the following filter fields are + * supported: * projectId: Required. Corresponds to + * OperationMetadata.projectId. * createTime: The time this job was + * created, in seconds from the + * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` + * operators. * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or + * `CANCELED`. Only one status may be specified. * labels.key where key is + * a label key. Examples: * `projectId = my-project AND createTime >= + * 1432140000` * `projectId = my-project AND createTime >= 1432140000 AND + * createTime <= 1432150000 AND status = RUNNING` * `projectId = my-project + * AND labels.color = *` * `projectId = my-project AND labels.color = red` + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The maximum number of results to return. If unspecified, defaults to 256. + * The maximum value is 2048. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Workers { root: Genomics; @@ -1088,26 +1273,37 @@ export namespace genomics_v2alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - checkIn(params?: any, options?: MethodOptions): + checkIn(params?: Params$Resource$Workers$Checkin, options?: MethodOptions): AxiosPromise; checkIn( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Workers$Checkin, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; checkIn( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Workers$Checkin, + callback: BodyResponseCallback): void; + checkIn(callback: BodyResponseCallback): void; + checkIn( + paramsOrCallback?: Params$Resource$Workers$Checkin| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Workers$Checkin; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Workers$Checkin; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; const parameters = { options: Object.assign( @@ -1129,4 +1325,20 @@ export namespace genomics_v2alpha1 { } } } + + export interface Params$Resource$Workers$Checkin { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The worker id, assigned when it was created. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$CheckInRequest; + } } diff --git a/src/apis/gmail/v1.ts b/src/apis/gmail/v1.ts index 945b4be06d6..ed99fb0d7f8 100644 --- a/src/apis/gmail/v1.ts +++ b/src/apis/gmail/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace gmail_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Gmail API * @@ -72,37 +75,37 @@ export namespace gmail_v1 { /** * The state that a message should be left in after it has been forwarded. */ - disposition: string; + disposition?: string; /** * Email address to which all incoming messages are forwarded. This email * address must be a verified member of the forwarding addresses. */ - emailAddress: string; + emailAddress?: string; /** * Whether all incoming mail is automatically forwarded to another address. */ - enabled: boolean; + enabled?: boolean; } export interface Schema$BatchDeleteMessagesRequest { /** * The IDs of the messages to delete. */ - ids: string[]; + ids?: string[]; } export interface Schema$BatchModifyMessagesRequest { /** * A list of label IDs to add to messages. */ - addLabelIds: string[]; + addLabelIds?: string[]; /** * The IDs of the messages to modify. There is a limit of 1000 ids per * request. */ - ids: string[]; + ids?: string[]; /** * A list of label IDs to remove from messages. */ - removeLabelIds: string[]; + removeLabelIds?: string[]; } /** * A draft email in the user's mailbox. @@ -111,11 +114,11 @@ export namespace gmail_v1 { /** * The immutable ID of the draft. */ - id: string; + id?: string; /** * The message content of the draft. */ - message: Schema$Message; + message?: Schema$Message; } /** * Resource definition for Gmail filters. Filters apply to specific messages @@ -125,15 +128,15 @@ export namespace gmail_v1 { /** * Action that the filter performs. */ - action: Schema$FilterAction; + action?: Schema$FilterAction; /** * Matching criteria for the filter. */ - criteria: Schema$FilterCriteria; + criteria?: Schema$FilterCriteria; /** * The server assigned ID of the filter. */ - id: string; + id?: string; } /** * A set of actions to perform on a message. @@ -142,15 +145,15 @@ export namespace gmail_v1 { /** * List of labels to add to the message. */ - addLabelIds: string[]; + addLabelIds?: string[]; /** * Email address that the message should be forwarded to. */ - forward: string; + forward?: string; /** * List of labels to remove from the message. */ - removeLabelIds: string[]; + removeLabelIds?: string[]; } /** * Message matching criteria. @@ -159,41 +162,41 @@ export namespace gmail_v1 { /** * Whether the response should exclude chats. */ - excludeChats: boolean; + excludeChats?: boolean; /** * The sender's display name or email address. */ - from: string; + from?: string; /** * Whether the message has any attachment. */ - hasAttachment: boolean; + hasAttachment?: boolean; /** * Only return messages not matching the specified query. Supports the same * query format as the Gmail search box. For example, * "from:someuser@example.com rfc822msgid: is:unread". */ - negatedQuery: string; + negatedQuery?: string; /** * Only return messages matching the specified query. Supports the same * query format as the Gmail search box. For example, * "from:someuser@example.com rfc822msgid: is:unread". */ - query: string; + query?: string; /** * The size of the entire RFC822 message in bytes, including all headers and * attachments. */ - size: number; + size?: number; /** * How the message size in bytes should be in relation to the size field. */ - sizeComparison: string; + sizeComparison?: string; /** * Case-insensitive phrase found in the message's subject. Trailing and * leading whitespace are be trimmed and adjacent spaces are collapsed. */ - subject: string; + subject?: string; /** * The recipient's display name or email address. Includes recipients in * the "to", "cc", and "bcc" header fields. @@ -201,7 +204,7 @@ export namespace gmail_v1 { * "example" and "example@" both match * "example@gmail.com". This field is case-insensitive. */ - to: string; + to?: string; } /** * Settings for a forwarding address. @@ -210,12 +213,12 @@ export namespace gmail_v1 { /** * An email address to which messages can be forwarded. */ - forwardingEmail: string; + forwardingEmail?: string; /** * Indicates whether this address has been verified and is usable for * forwarding. Read-only. */ - verificationStatus: string; + verificationStatus?: string; } /** * A record of a change to the user's mailbox. Each history change may @@ -225,46 +228,46 @@ export namespace gmail_v1 { /** * The mailbox sequence ID. */ - id: string; + id?: string; /** * Labels added to messages in this history record. */ - labelsAdded: Schema$HistoryLabelAdded[]; + labelsAdded?: Schema$HistoryLabelAdded[]; /** * Labels removed from messages in this history record. */ - labelsRemoved: Schema$HistoryLabelRemoved[]; + labelsRemoved?: Schema$HistoryLabelRemoved[]; /** * List of messages changed in this history record. The fields for specific * change types, such as messagesAdded may duplicate messages in this field. * We recommend using the specific change-type fields instead of this. */ - messages: Schema$Message[]; + messages?: Schema$Message[]; /** * Messages added to the mailbox in this history record. */ - messagesAdded: Schema$HistoryMessageAdded[]; + messagesAdded?: Schema$HistoryMessageAdded[]; /** * Messages deleted (not Trashed) from the mailbox in this history record. */ - messagesDeleted: Schema$HistoryMessageDeleted[]; + messagesDeleted?: Schema$HistoryMessageDeleted[]; } export interface Schema$HistoryLabelAdded { /** * Label IDs added to the message. */ - labelIds: string[]; - message: Schema$Message; + labelIds?: string[]; + message?: Schema$Message; } export interface Schema$HistoryLabelRemoved { /** * Label IDs removed from the message. */ - labelIds: string[]; - message: Schema$Message; + labelIds?: string[]; + message?: Schema$Message; } - export interface Schema$HistoryMessageAdded { message: Schema$Message; } - export interface Schema$HistoryMessageDeleted { message: Schema$Message; } + export interface Schema$HistoryMessageAdded { message?: Schema$Message; } + export interface Schema$HistoryMessageDeleted { message?: Schema$Message; } /** * IMAP settings for an account. */ @@ -274,22 +277,22 @@ export namespace gmail_v1 { * is marked as deleted in IMAP. Otherwise, Gmail will wait for an update * from the client before expunging messages marked as deleted. */ - autoExpunge: boolean; + autoExpunge?: boolean; /** * Whether IMAP is enabled for the account. */ - enabled: boolean; + enabled?: boolean; /** * The action that will be executed on a message when it is marked as * deleted and expunged from the last visible IMAP folder. */ - expungeBehavior: string; + expungeBehavior?: string; /** * An optional limit on the number of messages that an IMAP folder may * contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero * is interpreted to mean that there is no limit. */ - maxFolderSize: number; + maxFolderSize?: number; } /** * Labels are used to categorize messages and threads within the user's @@ -300,40 +303,40 @@ export namespace gmail_v1 { * The color to assign to the label. Color is only available for labels that * have their type set to user. */ - color: Schema$LabelColor; + color?: Schema$LabelColor; /** * The immutable ID of the label. */ - id: string; + id?: string; /** * The visibility of the label in the label list in the Gmail web interface. */ - labelListVisibility: string; + labelListVisibility?: string; /** * The visibility of the label in the message list in the Gmail web * interface. */ - messageListVisibility: string; + messageListVisibility?: string; /** * The total number of messages with the label. */ - messagesTotal: number; + messagesTotal?: number; /** * The number of unread messages with the label. */ - messagesUnread: number; + messagesUnread?: number; /** * The display name of the label. */ - name: string; + name?: string; /** * The total number of threads with the label. */ - threadsTotal: number; + threadsTotal?: number; /** * The number of unread threads with the label. */ - threadsUnread: number; + threadsUnread?: number; /** * The owner type for the label. User labels are created by the user and can * be modified and deleted by the user and can be applied to any message or @@ -344,7 +347,7 @@ export namespace gmail_v1 { * UNREAD labels from messages and threads, but cannot apply or remove the * DRAFTS or SENT labels from messages or threads. */ - type: string; + type?: string; } export interface Schema$LabelColor { /** @@ -360,7 +363,7 @@ export namespace gmail_v1 { * #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, * #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c */ - backgroundColor: string; + backgroundColor?: string; /** * The text color of the label, represented as hex string. This field is * required in order to set the color of a label. Only the following @@ -374,21 +377,21 @@ export namespace gmail_v1 { * #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, * #076239, #1a764d, #1c4587, #41236d, #83334c */ - textColor: string; + textColor?: string; } export interface Schema$ListDraftsResponse { /** * List of drafts. */ - drafts: Schema$Draft[]; + drafts?: Schema$Draft[]; /** * Token to retrieve the next page of results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * Estimated total number of results. */ - resultSizeEstimate: number; + resultSizeEstimate?: number; } /** * Response for the ListFilters method. @@ -397,7 +400,7 @@ export namespace gmail_v1 { /** * List of a user's filters. */ - filter: Schema$Filter[]; + filter?: Schema$Filter[]; } /** * Response for the ListForwardingAddresses method. @@ -406,42 +409,42 @@ export namespace gmail_v1 { /** * List of addresses that may be used for forwarding. */ - forwardingAddresses: Schema$ForwardingAddress[]; + forwardingAddresses?: Schema$ForwardingAddress[]; } export interface Schema$ListHistoryResponse { /** * List of history records. Any messages contained in the response will * typically only have id and threadId fields populated. */ - history: Schema$History[]; + history?: Schema$History[]; /** * The ID of the mailbox's current history record. */ - historyId: string; + historyId?: string; /** * Page token to retrieve the next page of results in the list. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListLabelsResponse { /** * List of labels. */ - labels: Schema$Label[]; + labels?: Schema$Label[]; } export interface Schema$ListMessagesResponse { /** * List of messages. */ - messages: Schema$Message[]; + messages?: Schema$Message[]; /** * Token to retrieve the next page of results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * Estimated total number of results. */ - resultSizeEstimate: number; + resultSizeEstimate?: number; } /** * Response for the ListSendAs method. @@ -450,27 +453,27 @@ export namespace gmail_v1 { /** * List of send-as aliases. */ - sendAs: Schema$SendAs[]; + sendAs?: Schema$SendAs[]; } export interface Schema$ListSmimeInfoResponse { /** * List of SmimeInfo. */ - smimeInfo: Schema$SmimeInfo[]; + smimeInfo?: Schema$SmimeInfo[]; } export interface Schema$ListThreadsResponse { /** * Page token to retrieve the next page of results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * Estimated total number of results. */ - resultSizeEstimate: number; + resultSizeEstimate?: number; /** * List of threads. */ - threads: Schema$Thread[]; + threads?: Schema$Thread[]; } /** * An email message. @@ -479,11 +482,11 @@ export namespace gmail_v1 { /** * The ID of the last history record that modified this message. */ - historyId: string; + historyId?: string; /** * The immutable ID of the message. */ - id: string; + id?: string; /** * The internal message creation timestamp (epoch ms), which determines * ordering in the inbox. For normal SMTP-received email, this represents @@ -491,29 +494,29 @@ export namespace gmail_v1 { * reliable than the Date header. However, for API-migrated mail, it can be * configured by client to be based on the Date header. */ - internalDate: string; + internalDate?: string; /** * List of IDs of labels applied to this message. */ - labelIds: string[]; + labelIds?: string[]; /** * The parsed email structure in the message parts. */ - payload: Schema$MessagePart; + payload?: Schema$MessagePart; /** * The entire email message in an RFC 2822 formatted and base64url encoded * string. Returned in messages.get and drafts.get responses when the * format=RAW parameter is supplied. */ - raw: string; + raw?: string; /** * Estimated size in bytes of the message. */ - sizeEstimate: number; + sizeEstimate?: number; /** * A short part of the message text. */ - snippet: string; + snippet?: string; /** * The ID of the thread the message belongs to. To add a message or draft to * a thread, the following criteria must be met: - The requested threadId @@ -521,7 +524,7 @@ export namespace gmail_v1 { * request. - The References and In-Reply-To headers must be set in * compliance with the RFC 2822 standard. - The Subject headers must match. */ - threadId: string; + threadId?: string; } /** * A single MIME message part. @@ -531,33 +534,33 @@ export namespace gmail_v1 { * The message part body for this part, which may be empty for container * MIME message parts. */ - body: Schema$MessagePartBody; + body?: Schema$MessagePartBody; /** * The filename of the attachment. Only present if this message part * represents an attachment. */ - filename: string; + filename?: string; /** * List of headers on this message part. For the top-level message part, * representing the entire message payload, it will contain the standard RFC * 2822 email headers such as To, From, and Subject. */ - headers: Schema$MessagePartHeader[]; + headers?: Schema$MessagePartHeader[]; /** * The MIME type of the message part. */ - mimeType: string; + mimeType?: string; /** * The immutable ID of the message part. */ - partId: string; + partId?: string; /** * The child MIME message parts of this part. This only applies to container * MIME message parts, for example multipart/*. For non- container MIME * message part types, such as text/plain, this field is empty. For more * information, see RFC 1521. */ - parts: Schema$MessagePart[]; + parts?: Schema$MessagePart[]; } /** * The body of a single MIME message part. @@ -569,49 +572,49 @@ export namespace gmail_v1 { * present, the entire content of the message part body is contained in the * data field. */ - attachmentId: string; + attachmentId?: string; /** * The body data of a MIME message part as a base64url encoded string. May * be empty for MIME container types that have no message body or when the * body data is sent as a separate attachment. An attachment ID is present * if the body data is contained in a separate attachment. */ - data: string; + data?: string; /** * Number of bytes for the message part data (encoding notwithstanding). */ - size: number; + size?: number; } export interface Schema$MessagePartHeader { /** * The name of the header before the : separator. For example, To. */ - name: string; + name?: string; /** * The value of the header after the : separator. For example, * someuser@example.com. */ - value: string; + value?: string; } export interface Schema$ModifyMessageRequest { /** * A list of IDs of labels to add to this message. */ - addLabelIds: string[]; + addLabelIds?: string[]; /** * A list IDs of labels to remove from this message. */ - removeLabelIds: string[]; + removeLabelIds?: string[]; } export interface Schema$ModifyThreadRequest { /** * A list of IDs of labels to add to this thread. */ - addLabelIds: string[]; + addLabelIds?: string[]; /** * A list of IDs of labels to remove from this thread. */ - removeLabelIds: string[]; + removeLabelIds?: string[]; } /** * POP settings for an account. @@ -620,12 +623,12 @@ export namespace gmail_v1 { /** * The range of messages which are accessible via POP. */ - accessWindow: string; + accessWindow?: string; /** * The action that will be executed on a message after it has been fetched * via POP. */ - disposition: string; + disposition?: string; } /** * Profile for a Gmail user. @@ -634,19 +637,19 @@ export namespace gmail_v1 { /** * The user's email address. */ - emailAddress: string; + emailAddress?: string; /** * The ID of the mailbox's current history record. */ - historyId: string; + historyId?: string; /** * The total number of messages in the mailbox. */ - messagesTotal: number; + messagesTotal?: number; /** * The total number of threads in the mailbox. */ - threadsTotal: number; + threadsTotal?: number; } /** * Settings associated with a send-as alias, which can be either the primary @@ -663,7 +666,7 @@ export namespace gmail_v1 { * has disabled the ability for users to update their name format, requests * to update this field for the primary login will silently fail. */ - displayName: string; + displayName?: string; /** * Whether this address is selected as the default "From:" address * in situations such as composing a new message or sending a vacation @@ -672,49 +675,49 @@ export namespace gmail_v1 { * Changing this from false to true for an address will result in this field * becoming false for the other previous default address. */ - isDefault: boolean; + isDefault?: boolean; /** * Whether this address is the primary address used to login to the account. * Every Gmail account has exactly one primary address, and it cannot be * deleted from the collection of send-as aliases. This field is read-only. */ - isPrimary: boolean; + isPrimary?: boolean; /** * An optional email address that is included in a "Reply-To:" * header for mail sent using this alias. If this is empty, Gmail will not * generate a "Reply-To:" header. */ - replyToAddress: string; + replyToAddress?: string; /** * The email address that appears in the "From:" header for mail * sent using this alias. This is read-only for all operations except * create. */ - sendAsEmail: string; + sendAsEmail?: string; /** * An optional HTML signature that is included in messages composed with * this alias in the Gmail web UI. */ - signature: string; + signature?: string; /** * An optional SMTP service that will be used as an outbound relay for mail * sent using this alias. If this is empty, outbound mail will be sent * directly from Gmail's servers to the destination SMTP service. This * setting only applies to custom "from" aliases. */ - smtpMsa: Schema$SmtpMsa; + smtpMsa?: Schema$SmtpMsa; /** * Whether Gmail should treat this address as an alias for the user's * primary email address. This setting only applies to custom * "from" aliases. */ - treatAsAlias: boolean; + treatAsAlias?: boolean; /** * Indicates whether this address has been verified for use as a send-as * alias. Read-only. This setting only applies to custom "from" * aliases. */ - verificationStatus: string; + verificationStatus?: string; } /** * An S/MIME email config. @@ -723,30 +726,30 @@ export namespace gmail_v1 { /** * Encrypted key password, when key is encrypted. */ - encryptedKeyPassword: string; + encryptedKeyPassword?: string; /** * When the certificate expires (in milliseconds since epoch). */ - expiration: string; + expiration?: string; /** * The immutable ID for the SmimeInfo. */ - id: string; + id?: string; /** * Whether this SmimeInfo is the default one for this user's send-as * address. */ - isDefault: boolean; + isDefault?: boolean; /** * The S/MIME certificate issuer's common name. */ - issuerCn: string; + issuerCn?: string; /** * PEM formatted X509 concatenated certificate string (standard base64 * encoding). Format used for returning key, which includes public key as * well as certificate chain (not private key). */ - pem: string; + pem?: string; /** * PKCS#12 format containing a single private/public key pair and * certificate chain. This format is only accepted from client for creating @@ -754,7 +757,7 @@ export namespace gmail_v1 { * intended to be exported. PKCS#12 may be encrypted, in which case * encryptedKeyPassword should be set appropriately. */ - pkcs12: string; + pkcs12?: string; } /** * Configuration for communication with an SMTP service. @@ -763,28 +766,28 @@ export namespace gmail_v1 { /** * The hostname of the SMTP service. Required. */ - host: string; + host?: string; /** * The password that will be used for authentication with the SMTP service. * This is a write-only field that can be specified in requests to create or * update SendAs settings; it is never populated in responses. */ - password: string; + password?: string; /** * The port of the SMTP service. Required. */ - port: number; + port?: number; /** * The protocol that will be used to secure communication with the SMTP * service. Required. */ - securityMode: string; + securityMode?: string; /** * The username that will be used for authentication with the SMTP service. * This is a write-only field that can be specified in requests to create or * update SendAs settings; it is never populated in responses. */ - username: string; + username?: string; } /** * A collection of messages representing a conversation. @@ -793,19 +796,19 @@ export namespace gmail_v1 { /** * The ID of the last history record that modified this thread. */ - historyId: string; + historyId?: string; /** * The unique ID of the thread. */ - id: string; + id?: string; /** * The list of messages in the thread. */ - messages: Schema$Message[]; + messages?: Schema$Message[]; /** * A short part of the message text. */ - snippet: string; + snippet?: string; } /** * Vacation auto-reply settings for an account. These settings correspond to @@ -815,47 +818,47 @@ export namespace gmail_v1 { /** * Flag that controls whether Gmail automatically replies to messages. */ - enableAutoReply: boolean; + enableAutoReply?: boolean; /** * An optional end time for sending auto-replies (epoch ms). When this is * specified, Gmail will automatically reply only to messages that it * receives before the end time. If both startTime and endTime are * specified, startTime must precede endTime. */ - endTime: string; + endTime?: string; /** * Response body in HTML format. Gmail will sanitize the HTML before storing * it. */ - responseBodyHtml: string; + responseBodyHtml?: string; /** * Response body in plain text format. */ - responseBodyPlainText: string; + responseBodyPlainText?: string; /** * Optional text to prepend to the subject line in vacation responses. In * order to enable auto-replies, either the response subject or the response * body must be nonempty. */ - responseSubject: string; + responseSubject?: string; /** * Flag that determines whether responses are sent to recipients who are not * in the user's list of contacts. */ - restrictToContacts: boolean; + restrictToContacts?: boolean; /** * Flag that determines whether responses are sent to recipients who are * outside of the user's domain. This feature is only available for G * Suite users. */ - restrictToDomain: boolean; + restrictToDomain?: boolean; /** * An optional start time for sending auto-replies (epoch ms). When this is * specified, Gmail will automatically reply only to messages that it * receives after the start time. If both startTime and endTime are * specified, startTime must precede endTime. */ - startTime: string; + startTime?: string; } /** * Set up or update a new push notification watch on this user's mailbox. @@ -864,13 +867,13 @@ export namespace gmail_v1 { /** * Filtering behavior of labelIds list specified. */ - labelFilterAction: string; + labelFilterAction?: string; /** * List of label_ids to restrict notifications about. By default, if * unspecified, all changes are pushed out. If specified then dictates which * labels are required for a push notification to be generated. */ - labelIds: string[]; + labelIds?: string[]; /** * A fully qualified Google Cloud Pub/Sub API topic name to publish the * events to. This topic name **must** already exist in Cloud Pub/Sub and @@ -881,7 +884,7 @@ export namespace gmail_v1 { * "my-project-identifier" portion must exactly match your Google * developer project id (the one executing this watch request). */ - topicName: string; + topicName?: string; } /** * Push notification watch response. @@ -891,13 +894,14 @@ export namespace gmail_v1 { * When Gmail will stop sending notifications for mailbox updates (epoch * millis). Call watch again before this time to renew the watch. */ - expiration: string; + expiration?: string; /** * The ID of the mailbox's current history record. */ - historyId: string; + historyId?: string; } + export class Resource$Users { root: Gmail; drafts: Resource$Users$Drafts; @@ -934,26 +938,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getProfile(params?: any, options?: MethodOptions): - AxiosPromise; getProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Getprofile, + options?: MethodOptions): AxiosPromise; + getProfile( + params: Params$Resource$Users$Getprofile, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getProfile( + params: Params$Resource$Users$Getprofile, + callback: BodyResponseCallback): void; + getProfile(callback: BodyResponseCallback): void; getProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Getprofile| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Getprofile; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Getprofile; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -988,22 +1003,35 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Users$Stop, options?: MethodOptions): + AxiosPromise; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Users$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1040,26 +1068,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): + watch(params?: Params$Resource$Users$Watch, options?: MethodOptions): AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + watch( + params: Params$Resource$Users$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1081,6 +1120,48 @@ export namespace gmail_v1 { } } } + + export interface Params$Resource$Users$Getprofile { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$WatchRequest; + } + export class Resource$Users$Drafts { root: Gmail; constructor(root: Gmail) { @@ -1109,25 +1190,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Drafts$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Drafts$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Users$Drafts$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Users$Drafts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Drafts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Drafts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1166,22 +1260,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Drafts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Drafts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Drafts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Drafts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Drafts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Drafts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1218,23 +1327,33 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Drafts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Drafts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Drafts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Drafts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Drafts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Drafts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1273,26 +1392,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Users$Drafts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Drafts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Drafts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Drafts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Drafts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Drafts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1332,25 +1463,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - send(params?: any, options?: MethodOptions): AxiosPromise; + send(params?: Params$Resource$Users$Drafts$Send, options?: MethodOptions): + AxiosPromise; send( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Drafts$Send, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; send( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Drafts$Send, + callback: BodyResponseCallback): void; + send(callback: BodyResponseCallback): void; + send( + paramsOrCallback?: Params$Resource$Users$Drafts$Send| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Drafts$Send; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Drafts$Send; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1392,25 +1535,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Drafts$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Users$Drafts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Drafts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Drafts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Drafts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Drafts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1435,6 +1591,168 @@ export namespace gmail_v1 { } } + export interface Params$Resource$Users$Drafts$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Draft; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Users$Drafts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the draft to delete. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Drafts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The format to return the draft in. + */ + format?: string; + /** + * The ID of the draft to retrieve. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Drafts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Include drafts from SPAM and TRASH in the results. + */ + includeSpamTrash?: boolean; + /** + * Maximum number of drafts to return. + */ + maxResults?: number; + /** + * Page token to retrieve a specific page of results in the list. + */ + pageToken?: string; + /** + * Only return draft messages matching the specified query. Supports the + * same query format as the Gmail search box. For example, + * "from:someuser@example.com rfc822msgid: is:unread". + */ + q?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Drafts$Send { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Draft; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Users$Drafts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the draft to update. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Draft; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Users$History { root: Gmail; constructor(root: Gmail) { @@ -1465,28 +1783,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Users$History$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$History$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$History$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Users$History$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$History$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$History$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1509,6 +1837,50 @@ export namespace gmail_v1 { } } + export interface Params$Resource$Users$History$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * History types to be returned by the function + */ + historyTypes?: string; + /** + * Only return messages with a label matching the ID. + */ + labelId?: string; + /** + * The maximum number of history records to return. + */ + maxResults?: number; + /** + * Page token to retrieve a specific page of results in the list. + */ + pageToken?: string; + /** + * Required. Returns history records after the specified startHistoryId. The + * supplied startHistoryId should be obtained from the historyId of a + * message, thread, or previous list response. History IDs increase + * chronologically but are not contiguous with random gaps in between valid + * IDs. Supplying an invalid or out of date startHistoryId typically returns + * an HTTP 404 error code. A historyId is typically valid for at least a + * week, but in some rare circumstances may be valid for only a few hours. + * If you receive an HTTP 404 error response, your application should + * perform a full sync. If you receive no nextPageToken in the response, + * there are no updates to retrieve and you can store the returned historyId + * for a future request. + */ + startHistoryId?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + + export class Resource$Users$Labels { root: Gmail; constructor(root: Gmail) { @@ -1534,25 +1906,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Labels$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Users$Labels$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Labels$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Users$Labels$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Labels$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Labels$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1589,22 +1974,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Labels$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Labels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Labels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Labels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Labels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Labels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1640,23 +2040,33 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Labels$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Labels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Labels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Labels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Labels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Labels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1691,26 +2101,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Users$Labels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Labels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$Labels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Labels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Labels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Labels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1747,25 +2169,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Users$Labels$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Labels$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Labels$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Labels$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Labels$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Labels$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1802,25 +2236,38 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Labels$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Users$Labels$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Labels$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Labels$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Labels$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Labels$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1843,6 +2290,108 @@ export namespace gmail_v1 { } } + export interface Params$Resource$Users$Labels$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Label; + } + export interface Params$Resource$Users$Labels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the label to delete. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Labels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the label to retrieve. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Labels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Labels$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the label to update. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Label; + } + export interface Params$Resource$Users$Labels$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the label to update. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Label; + } + + export class Resource$Users$Messages { root: Gmail; attachments: Resource$Users$Messages$Attachments; @@ -1871,22 +2420,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchDelete(params?: any, options?: MethodOptions): AxiosPromise; batchDelete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Messages$Batchdelete, + options?: MethodOptions): AxiosPromise; + batchDelete( + params: Params$Resource$Users$Messages$Batchdelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; batchDelete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Messages$Batchdelete, + callback: BodyResponseCallback): void; + batchDelete(callback: BodyResponseCallback): void; + batchDelete( + paramsOrCallback?: Params$Resource$Users$Messages$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Messages$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1922,22 +2486,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchModify(params?: any, options?: MethodOptions): AxiosPromise; batchModify( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Messages$Batchmodify, + options?: MethodOptions): AxiosPromise; + batchModify( + params: Params$Resource$Users$Messages$Batchmodify, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; batchModify( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Messages$Batchmodify, + callback: BodyResponseCallback): void; + batchModify(callback: BodyResponseCallback): void; + batchModify( + paramsOrCallback?: Params$Resource$Users$Messages$Batchmodify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Messages$Batchmodify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Batchmodify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1974,22 +2553,37 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Messages$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Messages$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Messages$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Messages$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2027,23 +2621,34 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Messages$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Messages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Messages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Messages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2088,18 +2693,28 @@ export namespace gmail_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Users$Messages$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Users$Messages$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Users$Messages$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Users$Messages$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Users$Messages$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Import; + options = {}; + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), requiredParams: ['userId'], pathParams: ['userId'], context: this.getRoot()}; if(callback) { + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), requiredParams: ['userId'], pathParams: ['userId'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { return createAPIRequest(parameters); - }} + } else { + return createAPIRequest(parameters); + }} /** @@ -2112,33 +2727,44 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + insert(params?: Params$Resource$Users$Messages$Insert, options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Users$Messages$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Messages$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Messages$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2180,28 +2806,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Messages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Messages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Messages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2238,25 +2875,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; modify( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Messages$Modify, + options?: MethodOptions): AxiosPromise; modify( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Messages$Modify, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modify( + params: Params$Resource$Users$Messages$Modify, + callback: BodyResponseCallback): void; + modify(callback: BodyResponseCallback): void; + modify( + paramsOrCallback?: Params$Resource$Users$Messages$Modify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Modify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Modify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2296,25 +2946,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + send(params?: Params$Resource$Users$Messages$Send, options?: MethodOptions): + AxiosPromise; + send( + params: Params$Resource$Users$Messages$Send, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; send( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Messages$Send, + callback: BodyResponseCallback): void; + send(callback: BodyResponseCallback): void; send( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Messages$Send| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Send; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Send; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2352,25 +3014,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; trash( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Messages$Trash, + options?: MethodOptions): AxiosPromise; trash( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Messages$Trash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + trash( + params: Params$Resource$Users$Messages$Trash, + callback: BodyResponseCallback): void; + trash(callback: BodyResponseCallback): void; + trash( + paramsOrCallback?: Params$Resource$Users$Messages$Trash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Trash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Trash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2406,26 +3081,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; untrash( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Messages$Untrash, + options?: MethodOptions): AxiosPromise; + untrash( + params: Params$Resource$Users$Messages$Untrash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; untrash( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Messages$Untrash, + callback: BodyResponseCallback): void; + untrash(callback: BodyResponseCallback): void; + untrash( + paramsOrCallback?: Params$Resource$Users$Messages$Untrash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Messages$Untrash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Untrash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2447,6 +3134,287 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback + * is:unread". Parameter cannot be used when accessing the api using the + * gmail.metadata scope. + */ + q?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Messages$Modify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the message to modify. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyMessageRequest; + } + export interface Params$Resource$Users$Messages$Send { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Message; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Users$Messages$Trash { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the message to Trash. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Messages$Untrash { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the message to remove from Trash. + */ + id?: string; + /** + * The user's email address. The special value me can be used to indicate + * the authenticated user. + */ + userId?: string; + } + export class Resource$Users$Messages$Attachments { root: Gmail; constructor(root: Gmail) { @@ -2473,24 +3441,35 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Users$Messages$Attachments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Messages$Attachments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Messages$Attachments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Messages$Attachments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Messages$Attachments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2515,6 +3494,28 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; getAutoForwarding( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Getautoforwarding, + options?: MethodOptions): AxiosPromise; getAutoForwarding( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Getautoforwarding, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getAutoForwarding( + params: Params$Resource$Users$Settings$Getautoforwarding, + callback: BodyResponseCallback): void; + getAutoForwarding(callback: BodyResponseCallback): + void; + getAutoForwarding( + paramsOrCallback?: Params$Resource$Users$Settings$Getautoforwarding| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Getautoforwarding; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Getautoforwarding; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2602,26 +3617,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; getImap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Getimap, + options?: MethodOptions): AxiosPromise; + getImap( + params: Params$Resource$Users$Settings$Getimap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getImap( + params: Params$Resource$Users$Settings$Getimap, + callback: BodyResponseCallback): void; + getImap(callback: BodyResponseCallback): void; getImap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Settings$Getimap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Settings$Getimap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Getimap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2656,26 +3684,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; getPop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Getpop, + options?: MethodOptions): AxiosPromise; getPop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Getpop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getPop( + params: Params$Resource$Users$Settings$Getpop, + callback: BodyResponseCallback): void; + getPop(callback: BodyResponseCallback): void; + getPop( + paramsOrCallback?: Params$Resource$Users$Settings$Getpop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Settings$Getpop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Getpop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2710,26 +3751,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; getVacation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Getvacation, + options?: MethodOptions): AxiosPromise; + getVacation( + params: Params$Resource$Users$Settings$Getvacation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getVacation( + params: Params$Resource$Users$Settings$Getvacation, + callback: BodyResponseCallback): void; + getVacation(callback: BodyResponseCallback): void; getVacation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Settings$Getvacation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Getvacation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Getvacation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2768,26 +3822,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; updateAutoForwarding( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Updateautoforwarding, + options?: MethodOptions): AxiosPromise; updateAutoForwarding( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Updateautoforwarding, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateAutoForwarding( + params: Params$Resource$Users$Settings$Updateautoforwarding, + callback: BodyResponseCallback): void; + updateAutoForwarding(callback: BodyResponseCallback): + void; + updateAutoForwarding( + paramsOrCallback?: Params$Resource$Users$Settings$Updateautoforwarding| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Updateautoforwarding; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Updateautoforwarding; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2824,26 +3892,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; updateImap( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Updateimap, + options?: MethodOptions): AxiosPromise; + updateImap( + params: Params$Resource$Users$Settings$Updateimap, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateImap( + params: Params$Resource$Users$Settings$Updateimap, + callback: BodyResponseCallback): void; + updateImap(callback: BodyResponseCallback): void; updateImap( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Settings$Updateimap| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Settings$Updateimap; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Updateimap; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2879,26 +3960,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; updatePop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Updatepop, + options?: MethodOptions): AxiosPromise; updatePop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Updatepop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updatePop( + params: Params$Resource$Users$Settings$Updatepop, + callback: BodyResponseCallback): void; + updatePop(callback: BodyResponseCallback): void; + updatePop( + paramsOrCallback?: Params$Resource$Users$Settings$Updatepop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Settings$Updatepop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Updatepop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2934,26 +4028,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; updateVacation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Updatevacation, + options?: MethodOptions): AxiosPromise; + updateVacation( + params: Params$Resource$Users$Settings$Updatevacation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateVacation( + params: Params$Resource$Users$Settings$Updatevacation, + callback: BodyResponseCallback): void; + updateVacation(callback: BodyResponseCallback): + void; updateVacation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Settings$Updatevacation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Updatevacation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Updatevacation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2975,15 +4083,129 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Filters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Users$Settings$Filters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Filters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Users$Settings$Filters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Filters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Filters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3054,22 +4289,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Filters$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Filters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Settings$Filters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Settings$Filters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Filters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Filters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3105,23 +4355,34 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Settings$Filters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Settings$Filters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Settings$Filters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Settings$Filters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Filters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Filters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3156,28 +4417,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Filters$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Settings$Filters$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$Settings$Filters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Settings$Filters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Filters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Filters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3200,6 +4472,68 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Forwardingaddresses$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Users$Settings$Forwardingaddresses$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Forwardingaddresses$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Users$Settings$Forwardingaddresses$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Forwardingaddresses$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Users$Settings$Forwardingaddresses$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3289,22 +4638,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Forwardingaddresses$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Settings$Forwardingaddresses$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Forwardingaddresses$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Users$Settings$Forwardingaddresses$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Forwardingaddresses$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Users$Settings$Forwardingaddresses$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3342,24 +4708,36 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Users$Settings$Forwardingaddresses$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Settings$Forwardingaddresses$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Users$Settings$Forwardingaddresses$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Forwardingaddresses$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Forwardingaddresses$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3396,30 +4774,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Settings$Forwardingaddresses$List, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Users$Settings$Forwardingaddresses$List, + callback: BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Users$Settings$Forwardingaddresses$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Forwardingaddresses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Forwardingaddresses$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3445,6 +4840,68 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Users$Settings$Sendas$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Users$Settings$Sendas$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3536,22 +5006,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Sendas$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Settings$Sendas$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3589,23 +5074,34 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Settings$Sendas$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Settings$Sendas$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Settings$Sendas$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Settings$Sendas$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3643,26 +5139,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Sendas$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$Settings$Sendas$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3703,25 +5212,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Settings$Sendas$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Sendas$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3762,25 +5284,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Users$Settings$Sendas$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Users$Settings$Sendas$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3820,22 +5355,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; verify( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Verify, + options?: MethodOptions): AxiosPromise; verify( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Sendas$Verify, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + verify( + params: Params$Resource$Users$Settings$Sendas$Verify, + callback: BodyResponseCallback): void; + verify(callback: BodyResponseCallback): void; + verify( + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Verify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Verify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Verify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3859,6 +5409,124 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Smimeinfo$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Users$Settings$Sendas$Smimeinfo$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Smimeinfo$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Smimeinfo$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3940,23 +5624,35 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Settings$Sendas$Smimeinfo$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Smimeinfo$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Smimeinfo$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Smimeinfo$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3996,26 +5692,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Smimeinfo$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Users$Settings$Sendas$Smimeinfo$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Smimeinfo$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Smimeinfo$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4053,28 +5763,40 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Users$Settings$Sendas$Smimeinfo$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Users$Settings$Sendas$Smimeinfo$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Smimeinfo$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Settings$Sendas$Smimeinfo$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4113,22 +5835,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; setDefault( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Settings$Sendas$Smimeinfo$Setdefault, + options?: MethodOptions): AxiosPromise; setDefault( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Setdefault, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setDefault( + params: Params$Resource$Users$Settings$Sendas$Smimeinfo$Setdefault, + callback: BodyResponseCallback): void; + setDefault(callback: BodyResponseCallback): void; + setDefault( + paramsOrCallback?: + Params$Resource$Users$Settings$Sendas$Smimeinfo$Setdefault| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Settings$Sendas$Smimeinfo$Setdefault; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Users$Settings$Sendas$Smimeinfo$Setdefault; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4153,6 +5892,108 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Threads$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Threads$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Threads$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Threads$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Threads$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Threads$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4234,23 +6090,34 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Threads$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Threads$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Threads$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Threads$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Threads$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Threads$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4290,28 +6157,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Threads$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Threads$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Threads$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Threads$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Threads$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4349,25 +6226,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; modify( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Threads$Modify, + options?: MethodOptions): AxiosPromise; + modify( + params: Params$Resource$Users$Threads$Modify, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; modify( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Threads$Modify, + callback: BodyResponseCallback): void; + modify(callback: BodyResponseCallback): void; + modify( + paramsOrCallback?: Params$Resource$Users$Threads$Modify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Threads$Modify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Threads$Modify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4403,25 +6293,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; trash( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Threads$Trash, + options?: MethodOptions): AxiosPromise; + trash( + params: Params$Resource$Users$Threads$Trash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + trash( + params: Params$Resource$Users$Threads$Trash, + callback: BodyResponseCallback): void; + trash(callback: BodyResponseCallback): void; trash( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Threads$Trash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Threads$Trash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Threads$Trash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4457,25 +6360,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; untrash( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Threads$Untrash, + options?: MethodOptions): AxiosPromise; + untrash( + params: Params$Resource$Users$Threads$Untrash, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; untrash( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Threads$Untrash, + callback: BodyResponseCallback): void; + untrash(callback: BodyResponseCallback): void; + untrash( + paramsOrCallback?: Params$Resource$Users$Threads$Untrash| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Threads$Untrash; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Threads$Untrash; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4497,4 +6413,133 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + insert(params?: Params$Resource$Archive$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Archive$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Archive$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Archive$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Archive$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Archive$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -148,4 +163,30 @@ export namespace groupsmigration_v1 { } } } + + export interface Params$Resource$Archive$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The group ID + */ + groupId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } } diff --git a/src/apis/groupssettings/v1.ts b/src/apis/groupssettings/v1.ts index b0f94952117..db071822457 100644 --- a/src/apis/groupssettings/v1.ts +++ b/src/apis/groupssettings/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace groupssettings_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Groups Settings API * @@ -72,147 +75,148 @@ export namespace groupssettings_v1 { /** * Are external members allowed to join the group. */ - allowExternalMembers: string; + allowExternalMembers?: string; /** * Is google allowed to contact admins. */ - allowGoogleCommunication: string; + allowGoogleCommunication?: string; /** * If posting from web is allowed. */ - allowWebPosting: string; + allowWebPosting?: string; /** * If the group is archive only */ - archiveOnly: string; + archiveOnly?: string; /** * Custom footer text. */ - customFooterText: string; + customFooterText?: string; /** * Default email to which reply to any message should go. */ - customReplyTo: string; + customReplyTo?: string; /** * Default message deny notification message */ - defaultMessageDenyNotificationText: string; + defaultMessageDenyNotificationText?: string; /** * Description of the group */ - description: string; + description?: string; /** * Email id of the group */ - email: string; + email?: string; /** * Whether to include custom footer. */ - includeCustomFooter: string; + includeCustomFooter?: string; /** * If this groups should be included in global address list or not. */ - includeInGlobalAddressList: string; + includeInGlobalAddressList?: string; /** * If the contents of the group are archived. */ - isArchived: string; + isArchived?: string; /** * The type of the resource. */ - kind: string; + kind?: string; /** * Maximum message size allowed. */ - maxMessageBytes: number; + maxMessageBytes?: number; /** * Can members post using the group email address. */ - membersCanPostAsTheGroup: string; + membersCanPostAsTheGroup?: string; /** * Default message display font. Possible values are: DEFAULT_FONT * FIXED_WIDTH_FONT */ - messageDisplayFont: string; + messageDisplayFont?: string; /** * Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES * MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE */ - messageModerationLevel: string; + messageModerationLevel?: string; /** * Name of the Group */ - name: string; + name?: string; /** * Primary language for the group. */ - primaryLanguage: string; + primaryLanguage?: string; /** * Whome should the default reply to a message go to. Possible values are: * REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER * REPLY_TO_IGNORE REPLY_TO_MANAGERS */ - replyTo: string; + replyTo?: string; /** * Should the member be notified if his message is denied by owner. */ - sendMessageDenyNotification: string; + sendMessageDenyNotification?: string; /** * Is the group listed in groups directory */ - showInGroupDirectory: string; + showInGroupDirectory?: string; /** * Moderation level for messages detected as spam. Possible values are: * ALLOW MODERATE SILENTLY_MODERATE REJECT */ - spamModerationLevel: string; + spamModerationLevel?: string; /** * Permissions to add members. Possible values are: ALL_MANAGERS_CAN_ADD * ALL_OWNERS_CAN_ADD ALL_MEMBERS_CAN_ADD NONE_CAN_ADD */ - whoCanAdd: string; + whoCanAdd?: string; /** * Permission to contact owner of the group via web UI. Possible values are: * ANYONE_CAN_CONTACT ALL_IN_DOMAIN_CAN_CONTACT ALL_MEMBERS_CAN_CONTACT * ALL_MANAGERS_CAN_CONTACT */ - whoCanContactOwner: string; + whoCanContactOwner?: string; /** * Permissions to invite members. Possible values are: * ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE ALL_OWNERS_CAN_INVITE * NONE_CAN_INVITE */ - whoCanInvite: string; + whoCanInvite?: string; /** * Permissions to join the group. Possible values are: ANYONE_CAN_JOIN * ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN */ - whoCanJoin: string; + whoCanJoin?: string; /** * Permission to leave the group. Possible values are: * ALL_MANAGERS_CAN_LEAVE ALL_OWNERS_CAN_LEAVE ALL_MEMBERS_CAN_LEAVE * NONE_CAN_LEAVE */ - whoCanLeaveGroup: string; + whoCanLeaveGroup?: string; /** * Permissions to post messages to the group. Possible values are: * NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST * ALL_OWNERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST */ - whoCanPostMessage: string; + whoCanPostMessage?: string; /** * Permissions to view group. Possible values are: ANYONE_CAN_VIEW * ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW * ALL_OWNERS_CAN_VIEW */ - whoCanViewGroup: string; + whoCanViewGroup?: string; /** * Permissions to view membership. Possible values are: * ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW */ - whoCanViewMembership: string; + whoCanViewMembership?: string; } + export class Resource$Groups { root: Groupssettings; constructor(root: Groupssettings) { @@ -237,23 +241,33 @@ export namespace groupssettings_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Groups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Groups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Groups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Groups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -289,25 +303,36 @@ export namespace groupssettings_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Groups$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Groups$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -343,25 +368,36 @@ export namespace groupssettings_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Groups$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -383,4 +419,46 @@ export namespace groupssettings_v1 { } } } + + export interface Params$Resource$Groups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource ID + */ + groupUniqueId?: string; + } + export interface Params$Resource$Groups$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource ID + */ + groupUniqueId?: string; + /** + * Request body metadata + */ + resource?: Schema$Groups; + } + export interface Params$Resource$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource ID + */ + groupUniqueId?: string; + /** + * Request body metadata + */ + resource?: Schema$Groups; + } } diff --git a/src/apis/iam/v1.ts b/src/apis/iam/v1.ts index 5b4b41d874a..5f62c414a9b 100644 --- a/src/apis/iam/v1.ts +++ b/src/apis/iam/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace iam_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Identity and Access Management (IAM) API * @@ -83,7 +86,7 @@ export namespace iam_v1 { * Public name of the service. For example, the service name for Cloud IAM * is 'iam.googleapis.com'. */ - name: string; + name?: string; } /** * Specifies the audit configuration for a service. The configuration @@ -112,13 +115,13 @@ export namespace iam_v1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Audit log information specific to Cloud IAM. This message is serialized as @@ -128,7 +131,7 @@ export namespace iam_v1 { /** * Policy delta between the original policy and the newly set policy. */ - policyDelta: Schema$PolicyDelta; + policyDelta?: Schema$PolicyDelta; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -144,11 +147,11 @@ export namespace iam_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -161,21 +164,20 @@ export namespace iam_v1 { * 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, + * represents a specific Google account. For example, `alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * One delta entry for Binding. Each individual change (only one member in @@ -185,17 +187,17 @@ export namespace iam_v1 { /** * The action that was performed on a Binding. Required */ - action: string; + action?: string; /** * A single identity requesting access for a Cloud Platform resource. * Follows the same format of Binding.members. Required */ - member: string; + member?: string; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * The request to create a new role. @@ -204,11 +206,11 @@ export namespace iam_v1 { /** * The Role resource to create. */ - role: Schema$Role; + role?: Schema$Role; /** * The role id to use for this role. */ - roleId: string; + roleId?: string; } /** * The service account key create request. @@ -218,13 +220,13 @@ export namespace iam_v1 { * Which type of key and algorithm to use for the key. The default is * currently a 2K RSA key. However this may change in the future. */ - keyAlgorithm: string; + keyAlgorithm?: string; /** * The output format of the private key. The default value is * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File * format. */ - privateKeyType: string; + privateKeyType?: string; } /** * The service account create request. @@ -236,12 +238,12 @@ export namespace iam_v1 { * be 6-30 characters long, and match the regular expression * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. */ - accountId: string; + accountId?: string; /** * The ServiceAccount resource to create. Currently, only the following * values are user assignable: `display_name` . */ - serviceAccount: Schema$ServiceAccount; + serviceAccount?: Schema$ServiceAccount; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -259,11 +261,11 @@ export namespace iam_v1 { * To retrieve the next page of results, set `ListRolesRequest.page_token` * to this value. */ - nextPageToken: string; + nextPageToken?: string; /** * The Roles defined on this resource. */ - roles: Schema$Role[]; + roles?: Schema$Role[]; } /** * The service account keys list response. @@ -272,7 +274,7 @@ export namespace iam_v1 { /** * The public keys for the service account. */ - keys: Schema$ServiceAccountKey[]; + keys?: Schema$ServiceAccountKey[]; } /** * The service account list response. @@ -281,12 +283,12 @@ export namespace iam_v1 { /** * The list of matching service accounts. */ - accounts: Schema$ServiceAccount[]; + accounts?: Schema$ServiceAccount[]; /** * To retrieve the next page of results, set * ListServiceAccountsRequest.page_token to this value. */ - nextPageToken: string; + nextPageToken?: string; } /** * A permission which can be included by a role. @@ -295,58 +297,62 @@ export namespace iam_v1 { /** * The service API associated with the permission is not enabled. */ - apiDisabled: boolean; + apiDisabled?: boolean; /** * The current custom role support level. */ - customRolesSupportLevel: string; + customRolesSupportLevel?: string; /** * A brief description of what this Permission is used for. */ - description: string; + description?: string; /** * The name of this Permission. */ - name: string; + name?: string; /** * This permission can ONLY be used in predefined roles. */ - onlyInPredefinedRoles: boolean; + onlyInPredefinedRoles?: boolean; /** * The current launch stage of the permission. */ - stage: string; + stage?: string; /** * The title of this Permission. */ - title: string; + title?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ { + * defined by IAM. **JSON 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 - * guide](https://cloud.google.com/iam/docs). + * "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -358,11 +364,11 @@ export namespace iam_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * The difference delta between two policies. @@ -371,7 +377,7 @@ export namespace iam_v1 { /** * The delta for Bindings between two policies. */ - bindingDeltas: Schema$BindingDelta[]; + bindingDeltas?: Schema$BindingDelta[]; } /** * A request to get the list of auditable services for a resource. @@ -383,7 +389,7 @@ export namespace iam_v1 { * For example, a Cloud Platform project with id `my-project` will be named * `//cloudresourcemanager.googleapis.com/projects/my-project`. */ - fullResourceName: string; + fullResourceName?: string; } /** * A response containing a list of auditable services for a resource. @@ -392,7 +398,7 @@ export namespace iam_v1 { /** * The auditable services for a resource. */ - services: Schema$AuditableService[]; + services?: Schema$AuditableService[]; } /** * The grantable role query request. @@ -404,17 +410,17 @@ export namespace iam_v1 { * example, a Cloud Platform project with id `my-project` will be named * `//cloudresourcemanager.googleapis.com/projects/my-project`. */ - fullResourceName: string; + fullResourceName?: string; /** * Optional limit on the number of roles to include in the response. */ - pageSize: number; + pageSize?: number; /** * Optional pagination token returned in an earlier * QueryGrantableRolesResponse. */ - pageToken: string; - view: string; + pageToken?: string; + view?: string; } /** * The grantable role query response. @@ -424,11 +430,11 @@ export namespace iam_v1 { * To retrieve the next page of results, set * `QueryGrantableRolesRequest.page_token` to this value. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of matching roles. */ - roles: Schema$Role[]; + roles?: Schema$Role[]; } /** * A request to get permissions which can be tested on a resource. @@ -440,16 +446,16 @@ export namespace iam_v1 { * For example, a Cloud Platform project with id `my-project` will be named * `//cloudresourcemanager.googleapis.com/projects/my-project`. */ - fullResourceName: string; + fullResourceName?: string; /** * Optional limit on the number of permissions to include in the response. */ - pageSize: number; + pageSize?: number; /** * Optional pagination token returned in an earlier * QueryTestablePermissionsRequest. */ - pageToken: string; + pageToken?: string; } /** * The response containing permissions which can be tested on a resource. @@ -459,11 +465,11 @@ export namespace iam_v1 { * To retrieve the next page of results, set * `QueryTestableRolesRequest.page_token` to this value. */ - nextPageToken: string; + nextPageToken?: string; /** * The Permissions testable on the requested resource. */ - permissions: Schema$Permission[]; + permissions?: Schema$Permission[]; } /** * A role in the Identity and Access Management API. @@ -473,20 +479,20 @@ export namespace iam_v1 { * The current deleted state of the role. This field is read only. It will * be ignored in calls to CreateRole and UpdateRole. */ - deleted: boolean; + deleted?: boolean; /** * Optional. A human-readable description for the role. */ - description: string; + description?: string; /** * Used to perform a consistent read-modify-write. */ - etag: string; + etag?: string; /** * The names of the permissions this role grants when bound in an IAM * policy. */ - includedPermissions: string[]; + includedPermissions?: string[]; /** * The name of the role. When Role is used in CreateRole, the role name * must not be set. When Role is used in output and other input such as @@ -494,16 +500,16 @@ export namespace iam_v1 { * roles/logging.viewer for curated roles and * organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles. */ - name: string; + name?: string; /** * The current launch stage of the role. */ - stage: string; + stage?: string; /** * Optional. A human-readable title for the role. Typically this is * limited to 100 UTF-8 bytes. */ - title: string; + title?: string; } /** * A service account in the Identity and Access Management API. To create a @@ -523,15 +529,15 @@ export namespace iam_v1 { * Optional. A user-specified description of the service account. Must be * fewer than 100 UTF-8 bytes. */ - displayName: string; + displayName?: string; /** * @OutputOnly The email address of the service account. */ - email: string; + email?: string; /** * Used to perform a consistent read-modify-write. */ - etag: string; + etag?: string; /** * The resource name of the service account in the following format: * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as @@ -540,21 +546,21 @@ export namespace iam_v1 { * the service account. In responses the resource name will always be in * the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. */ - name: string; + name?: string; /** * @OutputOnly The OAuth2 client id for the service account. This is used in * conjunction with the OAuth2 clientconfig API to make three legged OAuth2 * (3LO) flows to access the data of Google users. */ - oauth2ClientId: string; + oauth2ClientId?: string; /** * @OutputOnly The id of the project that owns the service account. */ - projectId: string; + projectId?: string; /** * @OutputOnly The unique and stable id of the service account. */ - uniqueId: string; + uniqueId?: string; } /** * Represents a service account key. A service account has two sets of @@ -571,12 +577,12 @@ export namespace iam_v1 { /** * Specifies the algorithm (and possibly key size) for the key. */ - keyAlgorithm: string; + keyAlgorithm?: string; /** * The resource name of the service account key in the following format * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. */ - name: string; + name?: string; /** * The private key data. Only provided in `CreateServiceAccountKey` * responses. Make sure to keep the private key data secure because it @@ -586,26 +592,26 @@ export namespace iam_v1 { * href="/sdk/gcloud/reference/auth/activate-service-account">gcloud * auth activate-service-account</a>. */ - privateKeyData: string; + privateKeyData?: string; /** * The output format for the private key. Only provided in * `CreateServiceAccountKey` responses, not in `GetServiceAccountKey` or * `ListServiceAccountKey` responses. Google never exposes system-managed * private keys, and never retains user-managed private keys. */ - privateKeyType: string; + privateKeyType?: string; /** * The public key data. Only provided in `GetServiceAccountKey` responses. */ - publicKeyData: string; + publicKeyData?: string; /** * The key can be used after this timestamp. */ - validAfterTime: string; + validAfterTime?: string; /** * The key can be used before this timestamp. */ - validBeforeTime: string; + validBeforeTime?: string; } /** * Request message for `SetIamPolicy` method. @@ -617,14 +623,14 @@ export namespace iam_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * The service account sign blob request. @@ -633,7 +639,7 @@ export namespace iam_v1 { /** * The bytes to sign. */ - bytesToSign: string; + bytesToSign?: string; } /** * The service account sign blob response. @@ -642,11 +648,11 @@ export namespace iam_v1 { /** * The id of the key used to sign the blob. */ - keyId: string; + keyId?: string; /** * The signed blob. */ - signature: string; + signature?: string; } /** * The service account sign JWT request. @@ -655,7 +661,7 @@ export namespace iam_v1 { /** * The JWT payload to sign, a JSON JWT Claim set. */ - payload: string; + payload?: string; } /** * The service account sign JWT response. @@ -664,11 +670,11 @@ export namespace iam_v1 { /** * The id of the key used to sign the JWT. */ - keyId: string; + keyId?: string; /** * The signed JWT. */ - signedJwt: string; + signedJwt?: string; } /** * Request message for `TestIamPermissions` method. @@ -680,7 +686,7 @@ export namespace iam_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -690,7 +696,7 @@ export namespace iam_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The request to undelete an existing role. @@ -699,9 +705,10 @@ export namespace iam_v1 { /** * Used to perform a consistent read-modify-write. */ - etag: string; + etag?: string; } + export class Resource$Iampolicies { root: Iam; constructor(root: Iam) { @@ -727,29 +734,45 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - queryAuditableServices(params?: any, options?: MethodOptions): + queryAuditableServices( + params?: Params$Resource$Iampolicies$Queryauditableservices, + options?: MethodOptions): AxiosPromise; queryAuditableServices( - params?: any, - options?: MethodOptions| + params: Params$Resource$Iampolicies$Queryauditableservices, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + queryAuditableServices( + params: Params$Resource$Iampolicies$Queryauditableservices, + callback: BodyResponseCallback): + void; + queryAuditableServices( + callback: BodyResponseCallback): void; queryAuditableServices( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Iampolicies$Queryauditableservices| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Iampolicies$Queryauditableservices; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Iampolicies$Queryauditableservices; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -774,6 +797,19 @@ export namespace iam_v1 { } } + export interface Params$Resource$Iampolicies$Queryauditableservices { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$QueryAuditableServicesRequest; + } + + export class Resource$Organizations { root: Iam; roles: Resource$Organizations$Roles; @@ -787,6 +823,8 @@ export namespace iam_v1 { return this.root; } } + + export class Resource$Organizations$Roles { root: Iam; constructor(root: Iam) { @@ -812,23 +850,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Roles$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Organizations$Roles$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Roles$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Organizations$Roles$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Roles$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Roles$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -869,23 +922,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Roles$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Organizations$Roles$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Organizations$Roles$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Roles$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Roles$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Roles$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -919,21 +987,34 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Organizations$Roles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Organizations$Roles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Organizations$Roles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Organizations$Roles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Roles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Roles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -971,26 +1052,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Roles$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Organizations$Roles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Roles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Organizations$Roles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Roles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Roles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1027,23 +1121,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Roles$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Organizations$Roles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Roles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Organizations$Roles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Roles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Roles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1078,23 +1187,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): AxiosPromise; undelete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Roles$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Organizations$Roles$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Roles$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Organizations$Roles$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Roles$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Roles$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1117,6 +1241,121 @@ export namespace iam_v1 { } } + export interface Params$Resource$Organizations$Roles$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the parent resource in one of the following formats: + * `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateRoleRequest; + } + export interface Params$Resource$Organizations$Roles$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Used to perform a consistent read-modify-write. + */ + etag?: string; + /** + * The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + } + export interface Params$Resource$Organizations$Roles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + } + export interface Params$Resource$Organizations$Roles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional limit on the number of roles to include in the response. + */ + pageSize?: number; + /** + * Optional pagination token returned in an earlier ListRolesResponse. + */ + pageToken?: string; + /** + * The resource name of the parent resource in one of the following formats: + * `` (empty string) -- this refers to curated roles. + * `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}` + */ + parent?: string; + /** + * Include Roles that have been deleted. + */ + showDeleted?: boolean; + /** + * Optional view for the returned Role objects. + */ + view?: string; + } + export interface Params$Resource$Organizations$Roles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + /** + * A mask describing which fields in the Role have changed. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Role; + } + export interface Params$Resource$Organizations$Roles$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteRoleRequest; + } + + export class Resource$Permissions { root: Iam; @@ -1143,31 +1382,49 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - queryTestablePermissions(params?: any, options?: MethodOptions): + queryTestablePermissions( + params?: Params$Resource$Permissions$Querytestablepermissions, + options?: MethodOptions): AxiosPromise; queryTestablePermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Permissions$Querytestablepermissions, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + queryTestablePermissions( + params: Params$Resource$Permissions$Querytestablepermissions, + callback: + BodyResponseCallback): + void; + queryTestablePermissions( + callback: BodyResponseCallback): void; queryTestablePermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Permissions$Querytestablepermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Permissions$Querytestablepermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Permissions$Querytestablepermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1192,6 +1449,19 @@ export namespace iam_v1 { } } + export interface Params$Resource$Permissions$Querytestablepermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$QueryTestablePermissionsRequest; + } + + export class Resource$Projects { root: Iam; roles: Resource$Projects$Roles; @@ -1207,6 +1477,8 @@ export namespace iam_v1 { return this.root; } } + + export class Resource$Projects$Roles { root: Iam; constructor(root: Iam) { @@ -1232,23 +1504,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Roles$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Roles$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Roles$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Roles$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Roles$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Roles$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1289,23 +1576,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Roles$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Roles$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Roles$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Roles$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Roles$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Roles$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1339,21 +1641,34 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Roles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Roles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Roles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Roles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Roles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Roles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1391,26 +1706,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Roles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Roles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Roles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Roles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Roles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Roles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1447,23 +1774,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Roles$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Roles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Roles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Roles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Roles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Roles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1498,23 +1840,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): AxiosPromise; undelete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Roles$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Projects$Roles$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Roles$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Projects$Roles$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Roles$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Roles$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1537,6 +1894,121 @@ export namespace iam_v1 { } } + export interface Params$Resource$Projects$Roles$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the parent resource in one of the following formats: + * `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}` + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateRoleRequest; + } + export interface Params$Resource$Projects$Roles$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Used to perform a consistent read-modify-write. + */ + etag?: string; + /** + * The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + } + export interface Params$Resource$Projects$Roles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + } + export interface Params$Resource$Projects$Roles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional limit on the number of roles to include in the response. + */ + pageSize?: number; + /** + * Optional pagination token returned in an earlier ListRolesResponse. + */ + pageToken?: string; + /** + * The resource name of the parent resource in one of the following formats: + * `` (empty string) -- this refers to curated roles. + * `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}` + */ + parent?: string; + /** + * Include Roles that have been deleted. + */ + showDeleted?: boolean; + /** + * Optional view for the returned Role objects. + */ + view?: string; + } + export interface Params$Resource$Projects$Roles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + /** + * A mask describing which fields in the Role have changed. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Role; + } + export interface Params$Resource$Projects$Roles$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteRoleRequest; + } + + export class Resource$Projects$Serviceaccounts { root: Iam; keys: Resource$Projects$Serviceaccounts$Keys; @@ -1564,26 +2036,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Serviceaccounts$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Serviceaccounts$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1618,25 +2103,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Serviceaccounts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1670,24 +2168,35 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Serviceaccounts$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Serviceaccounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Serviceaccounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1721,26 +2230,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Serviceaccounts$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Serviceaccounts$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1777,29 +2299,44 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Serviceaccounts$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Serviceaccounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Serviceaccounts$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1836,26 +2373,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Serviceaccounts$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Serviceaccounts$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1891,26 +2441,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - signBlob(params?: any, options?: MethodOptions): - AxiosPromise; signBlob( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Signblob, + options?: MethodOptions): AxiosPromise; + signBlob( + params: Params$Resource$Projects$Serviceaccounts$Signblob, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; signBlob( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Signblob, + callback: BodyResponseCallback): void; + signBlob(callback: BodyResponseCallback): void; + signBlob( + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Signblob| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Signblob; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Signblob; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -1949,26 +2512,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - signJwt(params?: any, options?: MethodOptions): - AxiosPromise; signJwt( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Signjwt, + options?: MethodOptions): AxiosPromise; + signJwt( + params: Params$Resource$Projects$Serviceaccounts$Signjwt, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; signJwt( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Signjwt, + callback: BodyResponseCallback): void; + signJwt(callback: BodyResponseCallback): void; + signJwt( + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Signjwt| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Signjwt; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Signjwt; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2005,29 +2581,47 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Serviceaccounts$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Serviceaccounts$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Serviceaccounts$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Serviceaccounts$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Serviceaccounts$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2065,26 +2659,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Serviceaccounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2105,6 +2712,179 @@ export namespace iam_v1 { } } } + + export interface Params$Resource$Projects$Serviceaccounts$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the project associated with the service + * accounts, such as `projects/my-project-123`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateServiceAccountRequest; + } + export interface Params$Resource$Projects$Serviceaccounts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a + * wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the + * service account. + */ + name?: string; + } + export interface Params$Resource$Projects$Serviceaccounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a + * wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the + * service account. + */ + name?: string; + } + export interface Params$Resource$Projects$Serviceaccounts$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Serviceaccounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the project associated with the service + * accounts, such as `projects/my-project-123`. + */ + name?: string; + /** + * Optional limit on the number of service accounts to include in the + * response. Further accounts can subsequently be obtained by including the + * ListServiceAccountsResponse.next_page_token in a subsequent request. + */ + pageSize?: number; + /** + * Optional pagination token returned in an earlier + * ListServiceAccountsResponse.next_page_token. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Serviceaccounts$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Serviceaccounts$Signblob { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a + * wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the + * service account. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SignBlobRequest; + } + export interface Params$Resource$Projects$Serviceaccounts$Signjwt { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a + * wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the + * service account. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SignJwtRequest; + } + export interface Params$Resource$Projects$Serviceaccounts$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Serviceaccounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as + * a wildcard for the `PROJECT_ID` will infer the project from the `account` + * and the `ACCOUNT` value can be the `email` address or the `unique_id` of + * the service account. In responses the resource name will always be in + * the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ServiceAccount; + } + export class Resource$Projects$Serviceaccounts$Keys { root: Iam; constructor(root: Iam) { @@ -2130,26 +2910,39 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Keys$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Serviceaccounts$Keys$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Serviceaccounts$Keys$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Keys$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Keys$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Keys$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2183,25 +2976,38 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Serviceaccounts$Keys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Serviceaccounts$Keys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Serviceaccounts$Keys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Keys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Keys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Keys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2236,24 +3042,35 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Serviceaccounts$Keys$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Serviceaccounts$Keys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Serviceaccounts$Keys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Keys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Keys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Keys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2288,29 +3105,44 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Serviceaccounts$Keys$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Serviceaccounts$Keys$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Serviceaccounts$Keys$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Serviceaccounts$Keys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccounts$Keys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccounts$Keys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2334,6 +3166,82 @@ export namespace iam_v1 { } } + export interface Params$Resource$Projects$Serviceaccounts$Keys$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a + * wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the + * service account. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateServiceAccountKeyRequest; + } + export interface Params$Resource$Projects$Serviceaccounts$Keys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account key in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. Using `-` + * as a wildcard for the `PROJECT_ID` will infer the project from the + * account. The `ACCOUNT` value can be the `email` address or the + * `unique_id` of the service account. + */ + name?: string; + } + export interface Params$Resource$Projects$Serviceaccounts$Keys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the service account key in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. Using `-` + * as a wildcard for the `PROJECT_ID` will infer the project from the + * account. The `ACCOUNT` value can be the `email` address or the + * `unique_id` of the service account. + */ + name?: string; + /** + * The output format of the public key requested. X509_PEM is the default + * output format. + */ + publicKeyType?: string; + } + export interface Params$Resource$Projects$Serviceaccounts$Keys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Filters the types of keys the user wants to include in the list response. + * Duplicate key types are not allowed. If no key type is provided, all keys + * are returned. + */ + keyTypes?: string; + /** + * The resource name of the service account in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a + * wildcard for the `PROJECT_ID`, will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the + * service account. + */ + name?: string; + } + export class Resource$Roles { @@ -2360,21 +3268,33 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Roles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Roles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Roles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Roles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2412,26 +3332,37 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Roles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Roles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Roles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Roles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Roles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2467,29 +3398,45 @@ export namespace iam_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - queryGrantableRoles(params?: any, options?: MethodOptions): + queryGrantableRoles( + params?: Params$Resource$Roles$Querygrantableroles, + options?: MethodOptions): AxiosPromise; queryGrantableRoles( - params?: any, - options?: MethodOptions| + params: Params$Resource$Roles$Querygrantableroles, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; queryGrantableRoles( - params?: any, - options?: MethodOptions| + params: Params$Resource$Roles$Querygrantableroles, + callback: BodyResponseCallback): + void; + queryGrantableRoles( + callback: BodyResponseCallback): + void; + queryGrantableRoles( + paramsOrCallback?: Params$Resource$Roles$Querygrantableroles| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Roles$Querygrantableroles; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Roles$Querygrantableroles; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; const parameters = { options: Object.assign( @@ -2512,4 +3459,58 @@ export namespace iam_v1 { } } } + + export interface Params$Resource$Roles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + */ + name?: string; + } + export interface Params$Resource$Roles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional limit on the number of roles to include in the response. + */ + pageSize?: number; + /** + * Optional pagination token returned in an earlier ListRolesResponse. + */ + pageToken?: string; + /** + * The resource name of the parent resource in one of the following formats: + * `` (empty string) -- this refers to curated roles. + * `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}` + */ + parent?: string; + /** + * Include Roles that have been deleted. + */ + showDeleted?: boolean; + /** + * Optional view for the returned Role objects. + */ + view?: string; + } + export interface Params$Resource$Roles$Querygrantableroles { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$QueryGrantableRolesRequest; + } } diff --git a/src/apis/identitytoolkit/v3.ts b/src/apis/identitytoolkit/v3.ts index 7822ba8e4e7..d8458cd8f9c 100644 --- a/src/apis/identitytoolkit/v3.ts +++ b/src/apis/identitytoolkit/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace identitytoolkit_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Google Identity Toolkit API * @@ -72,40 +75,40 @@ export namespace identitytoolkit_v3 { /** * all providers the user has once used to do federated login */ - allProviders: string[]; + allProviders?: string[]; /** * The URI used by the IDP to authenticate the user. */ - authUri: string; + authUri?: string; /** * True if captcha is required. */ - captchaRequired: boolean; + captchaRequired?: boolean; /** * True if the authUri is for user's existing provider. */ - forExistingProvider: boolean; + forExistingProvider?: boolean; /** * The fixed string identitytoolkit#CreateAuthUriResponse". */ - kind: string; + kind?: string; /** * The provider ID of the auth URI. */ - providerId: string; + providerId?: string; /** * Whether the user is registered if the identifier is an email. */ - registered: boolean; + registered?: boolean; /** * Session ID which should be passed in the following verifyAssertion * request. */ - sessionId: string; + sessionId?: string; /** * All sign-in methods this user has used. */ - signinMethods: string[]; + signinMethods?: string[]; } /** * Respone of deleting account. @@ -114,7 +117,7 @@ export namespace identitytoolkit_v3 { /** * The fixed string "identitytoolkit#DeleteAccountResponse". */ - kind: string; + kind?: string; } /** * Response of downloading accounts in batch. @@ -123,16 +126,16 @@ export namespace identitytoolkit_v3 { /** * The fixed string "identitytoolkit#DownloadAccountResponse". */ - kind: string; + kind?: string; /** * The next page token. To be used in a subsequent request to return the * next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The user accounts data. */ - users: Schema$UserInfo[]; + users?: Schema$UserInfo[]; } /** * Response of email signIn. @@ -141,31 +144,31 @@ export namespace identitytoolkit_v3 { /** * The user's email. */ - email: string; + email?: string; /** * Expiration time of STS id token in seconds. */ - expiresIn: string; + expiresIn?: string; /** * The STS id token to login the newly signed in user. */ - idToken: string; + idToken?: string; /** * Whether the user is new. */ - isNewUser: boolean; + isNewUser?: boolean; /** * The fixed string "identitytoolkit#EmailLinkSigninResponse". */ - kind: string; + kind?: string; /** * The RP local ID of the user. */ - localId: string; + localId?: string; /** * The refresh token for the signed in user. */ - refreshToken: string; + refreshToken?: string; } /** * Template for an email template. @@ -174,27 +177,27 @@ export namespace identitytoolkit_v3 { /** * Email body. */ - body: string; + body?: string; /** * Email body format. */ - format: string; + format?: string; /** * From address of the email. */ - from: string; + from?: string; /** * From display name. */ - fromDisplayName: string; + fromDisplayName?: string; /** * Reply-to address. */ - replyTo: string; + replyTo?: string; /** * Subject of the email. */ - subject: string; + subject?: string; } /** * Response of getting account information. @@ -203,11 +206,11 @@ export namespace identitytoolkit_v3 { /** * The fixed string "identitytoolkit#GetAccountInfoResponse". */ - kind: string; + kind?: string; /** * The info of the users. */ - users: Schema$UserInfo[]; + users?: Schema$UserInfo[]; } /** * Response of getting a code for user confirmation (reset password, change @@ -217,16 +220,16 @@ export namespace identitytoolkit_v3 { /** * The email address that the email is sent to. */ - email: string; + email?: string; /** * The fixed string * "identitytoolkit#GetOobConfirmationCodeResponse". */ - kind: string; + kind?: string; /** * The code to be send to the user. */ - oobCode: string; + oobCode?: string; } /** * Response of getting recaptcha param. @@ -235,16 +238,16 @@ export namespace identitytoolkit_v3 { /** * The fixed string "identitytoolkit#GetRecaptchaParamResponse". */ - kind: string; + kind?: string; /** * Site key registered at recaptcha. */ - recaptchaSiteKey: string; + recaptchaSiteKey?: string; /** * The stoken field for the recaptcha widget, used to request captcha * challenge. */ - recaptchaStoken: string; + recaptchaStoken?: string; } /** * Request to get the IDP authentication URL. @@ -254,71 +257,71 @@ export namespace identitytoolkit_v3 { * The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, * BUNDLE_ID for iOS. */ - appId: string; + appId?: string; /** * Explicitly specify the auth flow type. Currently only support * "CODE_FLOW" type. The field is only used for Google provider. */ - authFlowType: string; + authFlowType?: string; /** * The relying party OAuth client ID. */ - clientId: string; + clientId?: string; /** * The opaque value used by the client to maintain context info between the * authentication request and the IDP callback. */ - context: string; + context?: string; /** * The URI to which the IDP redirects the user after the federated login * flow. */ - continueUri: string; + continueUri?: string; /** * The query parameter that client can customize by themselves in auth url. * The following parameters are reserved for server so that they cannot be * customized by clients: client_id, response_type, scope, redirect_uri, * state, oauth_token. */ - customParameter: any; + customParameter?: any; /** * The hosted domain to restrict sign-in to accounts at that domain for * Google Apps hosted accounts. */ - hostedDomain: string; + hostedDomain?: string; /** * The email or federated ID of the user. */ - identifier: string; + identifier?: string; /** * The developer's consumer key for OpenId OAuth Extension */ - oauthConsumerKey: string; + oauthConsumerKey?: string; /** * Additional oauth scopes, beyond the basid user profile, that the user * would be prompted to grant */ - oauthScope: string; + oauthScope?: string; /** * Optional realm for OpenID protocol. The sub string * "scheme://domain:port" of the param "continueUri" is * used if this is not set. */ - openidRealm: string; + openidRealm?: string; /** * The native app package for OTA installation. */ - otaApp: string; + otaApp?: string; /** * The IdP ID. For white listed IdPs it's a short domain name e.g. * google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs * it's the OP identifier. */ - providerId: string; + providerId?: string; /** * The session_id passed by client. */ - sessionId: string; + sessionId?: string; } /** * Request to delete account. @@ -328,15 +331,15 @@ export namespace identitytoolkit_v3 { * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * The GITKit token or STS id token of the authenticated user. */ - idToken: string; + idToken?: string; /** * The local ID of the user. */ - localId: string; + localId?: string; } /** * Request to download user account in batch. @@ -346,21 +349,21 @@ export namespace identitytoolkit_v3 { * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * The max number of results to return in the response. */ - maxResults: number; + maxResults?: number; /** * The token for the next page. This should be taken from the previous * response. */ - nextPageToken: string; + nextPageToken?: string; /** * Specify which project (field value is actually project id) to operate. * Only used when provided credential. */ - targetProjectId: string; + targetProjectId?: string; } /** * Request to sign in with email. @@ -369,15 +372,15 @@ export namespace identitytoolkit_v3 { /** * The email address of the user. */ - email: string; + email?: string; /** * Token for linking flow. */ - idToken: string; + idToken?: string; /** * The confirmation code. */ - oobCode: string; + oobCode?: string; } /** * Request to get the account information. @@ -387,23 +390,23 @@ export namespace identitytoolkit_v3 { * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * The list of emails of the users to inquiry. */ - email: string[]; + email?: string[]; /** * The GITKit token of the authenticated user. */ - idToken: string; + idToken?: string; /** * The list of local ID's of the users to inquiry. */ - localId: string[]; + localId?: string[]; /** * Privileged caller can query users by specified phone number. */ - phoneNumber: string[]; + phoneNumber?: string[]; } /** * Response of getting the project configuration. @@ -412,48 +415,48 @@ export namespace identitytoolkit_v3 { /** * Whether to allow password user sign in or sign up. */ - allowPasswordUser: boolean; + allowPasswordUser?: boolean; /** * Browser API key, needed when making http request to Apiary. */ - apiKey: string; + apiKey?: string; /** * Authorized domains. */ - authorizedDomains: string[]; + authorizedDomains?: string[]; /** * Change email template. */ - changeEmailTemplate: Schema$EmailTemplate; - dynamicLinksDomain: string; + changeEmailTemplate?: Schema$EmailTemplate; + dynamicLinksDomain?: string; /** * Whether anonymous user is enabled. */ - enableAnonymousUser: boolean; + enableAnonymousUser?: boolean; /** * OAuth2 provider configuration. */ - idpConfig: Schema$IdpConfig[]; + idpConfig?: Schema$IdpConfig[]; /** * Legacy reset password email template. */ - legacyResetPasswordTemplate: Schema$EmailTemplate; + legacyResetPasswordTemplate?: Schema$EmailTemplate; /** * Project ID of the relying party. */ - projectId: string; + projectId?: string; /** * Reset password email template. */ - resetPasswordTemplate: Schema$EmailTemplate; + resetPasswordTemplate?: Schema$EmailTemplate; /** * Whether to use email sending provided by Firebear. */ - useEmailSending: boolean; + useEmailSending?: boolean; /** * Verify email template. */ - verifyEmailTemplate: Schema$EmailTemplate; + verifyEmailTemplate?: Schema$EmailTemplate; } /** * Respone of getting public keys. @@ -466,19 +469,19 @@ export namespace identitytoolkit_v3 { /** * The email address of the user. */ - email: string; + email?: string; /** * The new password inputted by the user. */ - newPassword: string; + newPassword?: string; /** * The old password inputted by the user. */ - oldPassword: string; + oldPassword?: string; /** * The confirmation code. */ - oobCode: string; + oobCode?: string; } /** * Request for Identitytoolkit-SendVerificationCode @@ -487,19 +490,19 @@ export namespace identitytoolkit_v3 { /** * Receipt of successful app token validation with APNS. */ - iosReceipt: string; + iosReceipt?: string; /** * Secret delivered to iOS app via APNS. */ - iosSecret: string; + iosSecret?: string; /** * The phone number to send the verification code to in E.164 format. */ - phoneNumber: string; + phoneNumber?: string; /** * Recaptcha solution. */ - recaptchaToken: string; + recaptchaToken?: string; } /** * Response for Identitytoolkit-SendVerificationCode @@ -508,7 +511,7 @@ export namespace identitytoolkit_v3 { /** * Encrypted session information */ - sessionInfo: string; + sessionInfo?: string; } /** * Request to set the account information. @@ -517,96 +520,96 @@ export namespace identitytoolkit_v3 { /** * The captcha challenge. */ - captchaChallenge: string; + captchaChallenge?: string; /** * Response to the captcha. */ - captchaResponse: string; + captchaResponse?: string; /** * The timestamp when the account is created. */ - createdAt: string; + createdAt?: string; /** * The custom attributes to be set in the user's id token. */ - customAttributes: string; + customAttributes?: string; /** * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * The attributes users request to delete. */ - deleteAttribute: string[]; + deleteAttribute?: string[]; /** * The IDPs the user request to delete. */ - deleteProvider: string[]; + deleteProvider?: string[]; /** * Whether to disable the user. */ - disableUser: boolean; + disableUser?: boolean; /** * The name of the user. */ - displayName: string; + displayName?: string; /** * The email of the user. */ - email: string; + email?: string; /** * Mark the email as verified or not. */ - emailVerified: boolean; + emailVerified?: boolean; /** * The GITKit token of the authenticated user. */ - idToken: string; + idToken?: string; /** * Instance id token of the app. */ - instanceId: string; + instanceId?: string; /** * Last login timestamp. */ - lastLoginAt: string; + lastLoginAt?: string; /** * The local ID of the user. */ - localId: string; + localId?: string; /** * The out-of-band code of the change email request. */ - oobCode: string; + oobCode?: string; /** * The new password of the user. */ - password: string; + password?: string; /** * Privileged caller can update user with specified phone number. */ - phoneNumber: string; + phoneNumber?: string; /** * The photo url of the user. */ - photoUrl: string; + photoUrl?: string; /** * The associated IDPs of the user. */ - provider: string[]; + provider?: string[]; /** * Whether return sts id token and refresh token instead of gitkit token. */ - returnSecureToken: boolean; + returnSecureToken?: boolean; /** * Mark the user to upgrade to federated login. */ - upgradeToFederatedLogin: boolean; + upgradeToFederatedLogin?: boolean; /** * Timestamp in seconds for valid login token. */ - validSince: string; + validSince?: string; } /** * Request to set the project configuration. @@ -615,48 +618,48 @@ export namespace identitytoolkit_v3 { /** * Whether to allow password user sign in or sign up. */ - allowPasswordUser: boolean; + allowPasswordUser?: boolean; /** * Browser API key, needed when making http request to Apiary. */ - apiKey: string; + apiKey?: string; /** * Authorized domains for widget redirect. */ - authorizedDomains: string[]; + authorizedDomains?: string[]; /** * Change email template. */ - changeEmailTemplate: Schema$EmailTemplate; + changeEmailTemplate?: Schema$EmailTemplate; /** * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * Whether to enable anonymous user. */ - enableAnonymousUser: boolean; + enableAnonymousUser?: boolean; /** * Oauth2 provider configuration. */ - idpConfig: Schema$IdpConfig[]; + idpConfig?: Schema$IdpConfig[]; /** * Legacy reset password email template. */ - legacyResetPasswordTemplate: Schema$EmailTemplate; + legacyResetPasswordTemplate?: Schema$EmailTemplate; /** * Reset password email template. */ - resetPasswordTemplate: Schema$EmailTemplate; + resetPasswordTemplate?: Schema$EmailTemplate; /** * Whether to use email sending provided by Firebear. */ - useEmailSending: boolean; + useEmailSending?: boolean; /** * Verify email template. */ - verifyEmailTemplate: Schema$EmailTemplate; + verifyEmailTemplate?: Schema$EmailTemplate; } /** * Response of setting the project configuration. @@ -665,7 +668,7 @@ export namespace identitytoolkit_v3 { /** * Project ID of the relying party. */ - projectId: string; + projectId?: string; } /** * Request to sign out user. @@ -674,11 +677,11 @@ export namespace identitytoolkit_v3 { /** * Instance id token of the app. */ - instanceId: string; + instanceId?: string; /** * The local ID of the user. */ - localId: string; + localId?: string; } /** * Response of signing out user. @@ -687,7 +690,7 @@ export namespace identitytoolkit_v3 { /** * The local ID of the user. */ - localId: string; + localId?: string; } /** * Request to signup new user, create anonymous user or anonymous user reauth. @@ -696,51 +699,51 @@ export namespace identitytoolkit_v3 { /** * The captcha challenge. */ - captchaChallenge: string; + captchaChallenge?: string; /** * Response to the captcha. */ - captchaResponse: string; + captchaResponse?: string; /** * Whether to disable the user. Only can be used by service account. */ - disabled: boolean; + disabled?: boolean; /** * The name of the user. */ - displayName: string; + displayName?: string; /** * The email of the user. */ - email: string; + email?: string; /** * Mark the email as verified or not. Only can be used by service account. */ - emailVerified: boolean; + emailVerified?: boolean; /** * The GITKit token of the authenticated user. */ - idToken: string; + idToken?: string; /** * Instance id token of the app. */ - instanceId: string; + instanceId?: string; /** * Privileged caller can create user with specified user id. */ - localId: string; + localId?: string; /** * The new password of the user. */ - password: string; + password?: string; /** * Privileged caller can create user with specified phone number. */ - phoneNumber: string; + phoneNumber?: string; /** * The photo url of the user. */ - photoUrl: string; + photoUrl?: string; } /** * Request to upload user account in batch. @@ -749,53 +752,53 @@ export namespace identitytoolkit_v3 { /** * Whether allow overwrite existing account when user local_id exists. */ - allowOverwrite: boolean; - blockSize: number; + allowOverwrite?: boolean; + blockSize?: number; /** * The following 4 fields are for standard scrypt algorithm. */ - cpuMemCost: number; + cpuMemCost?: number; /** * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; - dkLen: number; + delegatedProjectNumber?: string; + dkLen?: number; /** * The password hash algorithm. */ - hashAlgorithm: string; + hashAlgorithm?: string; /** * Memory cost for hash calculation. Used by scrypt similar algorithms. */ - memoryCost: number; - parallelization: number; + memoryCost?: number; + parallelization?: number; /** * Rounds for hash calculation. Used by scrypt and similar algorithms. */ - rounds: number; + rounds?: number; /** * The salt separator. */ - saltSeparator: string; + saltSeparator?: string; /** * If true, backend will do sanity check(including duplicate email and * federated id) when uploading account. */ - sanityCheck: boolean; + sanityCheck?: boolean; /** * The key for to hash the password. */ - signerKey: string; + signerKey?: string; /** * Specify which project (field value is actually project id) to operate. * Only used when provided credential. */ - targetProjectId: string; + targetProjectId?: string; /** * The account info to be stored. */ - users: Schema$UserInfo[]; + users?: Schema$UserInfo[]; } /** * Request to verify the IDP assertion. @@ -806,51 +809,51 @@ export namespace identitytoolkit_v3 { * doesn't exist. When it's false, allows existing user to sign in * normally and throws exception if the user doesn't exist. */ - autoCreate: boolean; + autoCreate?: boolean; /** * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * The GITKit token of the authenticated user. */ - idToken: string; + idToken?: string; /** * Instance id token of the app. */ - instanceId: string; + instanceId?: string; /** * The GITKit token for the non-trusted IDP pending to be confirmed by the * user. */ - pendingIdToken: string; + pendingIdToken?: string; /** * The post body if the request is a HTTP POST. */ - postBody: string; + postBody?: string; /** * The URI to which the IDP redirects the user back. It may contain * federated login result params added by the IDP. */ - requestUri: string; + requestUri?: string; /** * Whether return 200 and IDP credential rather than throw exception when * federated id is already linked. */ - returnIdpCredential: boolean; + returnIdpCredential?: boolean; /** * Whether to return refresh tokens. */ - returnRefreshToken: boolean; + returnRefreshToken?: boolean; /** * Whether return sts id token and refresh token instead of gitkit token. */ - returnSecureToken: boolean; + returnSecureToken?: boolean; /** * Session ID, which should match the one in previous createAuthUri request. */ - sessionId: string; + sessionId?: string; } /** * Request to verify a custom token @@ -860,19 +863,19 @@ export namespace identitytoolkit_v3 { * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * Instance id token of the app. */ - instanceId: string; + instanceId?: string; /** * Whether return sts id token and refresh token instead of gitkit token. */ - returnSecureToken: boolean; + returnSecureToken?: boolean; /** * The custom token to verify */ - token: string; + token?: string; } /** * Request to verify the password. @@ -881,72 +884,72 @@ export namespace identitytoolkit_v3 { /** * The captcha challenge. */ - captchaChallenge: string; + captchaChallenge?: string; /** * Response to the captcha. */ - captchaResponse: string; + captchaResponse?: string; /** * GCP project number of the requesting delegated app. Currently only * intended for Firebase V1 migration. */ - delegatedProjectNumber: string; + delegatedProjectNumber?: string; /** * The email of the user. */ - email: string; + email?: string; /** * The GITKit token of the authenticated user. */ - idToken: string; + idToken?: string; /** * Instance id token of the app. */ - instanceId: string; + instanceId?: string; /** * The password inputed by the user. */ - password: string; + password?: string; /** * The GITKit token for the non-trusted IDP, which is to be confirmed by the * user. */ - pendingIdToken: string; + pendingIdToken?: string; /** * Whether return sts id token and refresh token instead of gitkit token. */ - returnSecureToken: boolean; + returnSecureToken?: boolean; } /** * Request for Identitytoolkit-VerifyPhoneNumber */ export interface Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberRequest { - code: string; - idToken: string; - operation: string; - phoneNumber: string; + code?: string; + idToken?: string; + operation?: string; + phoneNumber?: string; /** * The session info previously returned by * IdentityToolkit-SendVerificationCode. */ - sessionInfo: string; - temporaryProof: string; - verificationProof: string; + sessionInfo?: string; + temporaryProof?: string; + verificationProof?: string; } /** * Response for Identitytoolkit-VerifyPhoneNumber */ export interface Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse { - expiresIn: string; - idToken: string; - isNewUser: boolean; - localId: string; - phoneNumber: string; - refreshToken: string; - temporaryProof: string; - temporaryProofExpiresIn: string; - verificationProof: string; - verificationProofExpiresIn: string; + expiresIn?: string; + idToken?: string; + isNewUser?: boolean; + localId?: string; + phoneNumber?: string; + refreshToken?: string; + temporaryProof?: string; + temporaryProofExpiresIn?: string; + verificationProof?: string; + verificationProofExpiresIn?: string; } /** * Template for a single idp configuration. @@ -955,28 +958,28 @@ export namespace identitytoolkit_v3 { /** * OAuth2 client ID. */ - clientId: string; + clientId?: string; /** * Whether this IDP is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Percent of users who will be prompted/redirected federated login for this * IDP. */ - experimentPercent: number; + experimentPercent?: number; /** * OAuth2 provider. */ - provider: string; + provider?: string; /** * OAuth2 client secret. */ - secret: string; + secret?: string; /** * Whitelisted client IDs for audience check. */ - whitelistedAudiences: string[]; + whitelistedAudiences?: string[]; } /** * Request of getting a code for user confirmation (reset password, change @@ -987,64 +990,64 @@ export namespace identitytoolkit_v3 { * whether or not to install the android app on the device where the link is * opened */ - androidInstallApp: boolean; + androidInstallApp?: boolean; /** * minimum version of the app. if the version on the device is lower than * this version then the user is taken to the play store to upgrade the app */ - androidMinimumVersion: string; + androidMinimumVersion?: string; /** * android package name of the android app to handle the action code */ - androidPackageName: string; + androidPackageName?: string; /** * whether or not the app can handle the oob code without first going to web */ - canHandleCodeInApp: boolean; + canHandleCodeInApp?: boolean; /** * The recaptcha response from the user. */ - captchaResp: string; + captchaResp?: string; /** * The recaptcha challenge presented to the user. */ - challenge: string; + challenge?: string; /** * The url to continue to the Gitkit app */ - continueUrl: string; + continueUrl?: string; /** * The email of the user. */ - email: string; + email?: string; /** * The user's Gitkit login token for email change. */ - idToken: string; + idToken?: string; /** * iOS app store id to download the app if it's not already installed */ - iOSAppStoreId: string; + iOSAppStoreId?: string; /** * the iOS bundle id of iOS app to handle the action code */ - iOSBundleId: string; + iOSBundleId?: string; /** * The fixed string "identitytoolkit#relyingparty". */ - kind: string; + kind?: string; /** * The new email if the code is for email change. */ - newEmail: string; + newEmail?: string; /** * The request type. */ - requestType: string; + requestType?: string; /** * The IP address of the user. */ - userIp: string; + userIp?: string; } /** * Response of resetting the password. @@ -1054,19 +1057,19 @@ export namespace identitytoolkit_v3 { * The user's email. If the out-of-band code is for email recovery, the * user's original email. */ - email: string; + email?: string; /** * The fixed string "identitytoolkit#ResetPasswordResponse". */ - kind: string; + kind?: string; /** * If the out-of-band code is for email recovery, the user's new email. */ - newEmail: string; + newEmail?: string; /** * The request type. */ - requestType: string; + requestType?: string; } /** * Respone of setting the account information. @@ -1075,52 +1078,52 @@ export namespace identitytoolkit_v3 { /** * The name of the user. */ - displayName: string; + displayName?: string; /** * The email of the user. */ - email: string; + email?: string; /** * If email has been verified. */ - emailVerified: boolean; + emailVerified?: boolean; /** * If idToken is STS id token, then this field will be expiration time of * STS id token in seconds. */ - expiresIn: string; + expiresIn?: string; /** * The Gitkit id token to login the newly sign up user. */ - idToken: string; + idToken?: string; /** * The fixed string "identitytoolkit#SetAccountInfoResponse". */ - kind: string; + kind?: string; /** * The local ID of the user. */ - localId: string; + localId?: string; /** * The new email the user attempts to change to. */ - newEmail: string; + newEmail?: string; /** * The user's hashed password. */ - passwordHash: string; + passwordHash?: string; /** * The photo url of the user. */ - photoUrl: string; + photoUrl?: string; /** * The user's profiles at the associated IdPs. */ - providerUserInfo: any[]; + providerUserInfo?: any[]; /** * If idToken is STS id token, then this field will be refresh token. */ - refreshToken: string; + refreshToken?: string; } /** * Response of signing up new user, creating anonymous user or anonymous user @@ -1130,32 +1133,32 @@ export namespace identitytoolkit_v3 { /** * The name of the user. */ - displayName: string; + displayName?: string; /** * The email of the user. */ - email: string; + email?: string; /** * If idToken is STS id token, then this field will be expiration time of * STS id token in seconds. */ - expiresIn: string; + expiresIn?: string; /** * The Gitkit id token to login the newly sign up user. */ - idToken: string; + idToken?: string; /** * The fixed string "identitytoolkit#SignupNewUserResponse". */ - kind: string; + kind?: string; /** * The RP local ID of the user. */ - localId: string; + localId?: string; /** * If idToken is STS id token, then this field will be refresh token. */ - refreshToken: string; + refreshToken?: string; } /** * Respone of uploading accounts in batch. @@ -1164,11 +1167,11 @@ export namespace identitytoolkit_v3 { /** * The error encountered while processing the account info. */ - error: any[]; + error?: any[]; /** * The fixed string "identitytoolkit#UploadAccountResponse". */ - kind: string; + kind?: string; } /** * Template for an individual account info. @@ -1177,79 +1180,79 @@ export namespace identitytoolkit_v3 { /** * User creation timestamp. */ - createdAt: string; + createdAt?: string; /** * The custom attributes to be set in the user's id token. */ - customAttributes: string; + customAttributes?: string; /** * Whether the user is authenticated by the developer. */ - customAuth: boolean; + customAuth?: boolean; /** * Whether the user is disabled. */ - disabled: boolean; + disabled?: boolean; /** * The name of the user. */ - displayName: string; + displayName?: string; /** * The email of the user. */ - email: string; + email?: string; /** * Whether the email has been verified. */ - emailVerified: boolean; + emailVerified?: boolean; /** * last login timestamp. */ - lastLoginAt: string; + lastLoginAt?: string; /** * The local ID of the user. */ - localId: string; + localId?: string; /** * The user's hashed password. */ - passwordHash: string; + passwordHash?: string; /** * The timestamp when the password was last updated. */ - passwordUpdatedAt: number; + passwordUpdatedAt?: number; /** * User's phone number. */ - phoneNumber: string; + phoneNumber?: string; /** * The URL of the user profile photo. */ - photoUrl: string; + photoUrl?: string; /** * The IDP of the user. */ - providerUserInfo: any[]; + providerUserInfo?: any[]; /** * The user's plain text password. */ - rawPassword: string; + rawPassword?: string; /** * The user's password salt. */ - salt: string; + salt?: string; /** * User's screen name at Twitter or login name at Github. */ - screenName: string; + screenName?: string; /** * Timestamp in seconds for valid login token. */ - validSince: string; + validSince?: string; /** * Version of the user's password. */ - version: number; + version?: number; } /** * Response of verifying the IDP assertion. @@ -1258,144 +1261,144 @@ export namespace identitytoolkit_v3 { /** * The action code. */ - action: string; + action?: string; /** * URL for OTA app installation. */ - appInstallationUrl: string; + appInstallationUrl?: string; /** * The custom scheme used by mobile app. */ - appScheme: string; + appScheme?: string; /** * The opaque value used by the client to maintain context info between the * authentication request and the IDP callback. */ - context: string; + context?: string; /** * The birth date of the IdP account. */ - dateOfBirth: string; + dateOfBirth?: string; /** * The display name of the user. */ - displayName: string; + displayName?: string; /** * The email returned by the IdP. NOTE: The federated login user may not own * the email. */ - email: string; + email?: string; /** * It's true if the email is recycled. */ - emailRecycled: boolean; + emailRecycled?: boolean; /** * The value is true if the IDP is also the email provider. It means the * user owns the email. */ - emailVerified: boolean; + emailVerified?: boolean; /** * Client error code. */ - errorMessage: string; + errorMessage?: string; /** * If idToken is STS id token, then this field will be expiration time of * STS id token in seconds. */ - expiresIn: string; + expiresIn?: string; /** * The unique ID identifies the IdP account. */ - federatedId: string; + federatedId?: string; /** * The first name of the user. */ - firstName: string; + firstName?: string; /** * The full name of the user. */ - fullName: string; + fullName?: string; /** * The ID token. */ - idToken: string; + idToken?: string; /** * It's the identifier param in the createAuthUri request if the * identifier is an email. It can be used to check whether the user input * email is different from the asserted email. */ - inputEmail: string; + inputEmail?: string; /** * True if it's a new user sign-in, false if it's a returning user. */ - isNewUser: boolean; + isNewUser?: boolean; /** * The fixed string "identitytoolkit#VerifyAssertionResponse". */ - kind: string; + kind?: string; /** * The language preference of the user. */ - language: string; + language?: string; /** * The last name of the user. */ - lastName: string; + lastName?: string; /** * The RP local ID if it's already been mapped to the IdP account * identified by the federated ID. */ - localId: string; + localId?: string; /** * Whether the assertion is from a non-trusted IDP and need account linking * confirmation. */ - needConfirmation: boolean; + needConfirmation?: boolean; /** * Whether need client to supply email to complete the federated login flow. */ - needEmail: boolean; + needEmail?: boolean; /** * The nick name of the user. */ - nickName: string; + nickName?: string; /** * The OAuth2 access token. */ - oauthAccessToken: string; + oauthAccessToken?: string; /** * The OAuth2 authorization code. */ - oauthAuthorizationCode: string; + oauthAuthorizationCode?: string; /** * The lifetime in seconds of the OAuth2 access token. */ - oauthExpireIn: number; + oauthExpireIn?: number; /** * The OIDC id token. */ - oauthIdToken: string; + oauthIdToken?: string; /** * The user approved request token for the OpenID OAuth extension. */ - oauthRequestToken: string; + oauthRequestToken?: string; /** * The scope for the OpenID OAuth extension. */ - oauthScope: string; + oauthScope?: string; /** * The OAuth1 access token secret. */ - oauthTokenSecret: string; + oauthTokenSecret?: string; /** * The original email stored in the mapping storage. It's returned when * the federated ID is associated to a different email. */ - originalEmail: string; + originalEmail?: string; /** * The URI of the public accessible profiel picture. */ - photoUrl: string; + photoUrl?: string; /** * The IdP ID. For white listed IdPs it's a short domain name e.g. * google.com, aol.com, live.net and yahoo.com. If the @@ -1404,28 +1407,28 @@ export namespace identitytoolkit_v3 { * "identifier" param is federated ID in the createAuthUri * request. The domain part of the federated ID is returned. */ - providerId: string; + providerId?: string; /** * Raw IDP-returned user info. */ - rawUserInfo: string; + rawUserInfo?: string; /** * If idToken is STS id token, then this field will be refresh token. */ - refreshToken: string; + refreshToken?: string; /** * The screen_name of a Twitter user or the login name at Github. */ - screenName: string; + screenName?: string; /** * The timezone of the user. */ - timeZone: string; + timeZone?: string; /** * When action is 'map', contains the idps which can be used for * confirmation. */ - verifiedProvider: string[]; + verifiedProvider?: string[]; } /** * Response from verifying a custom token @@ -1435,23 +1438,23 @@ export namespace identitytoolkit_v3 { * If idToken is STS id token, then this field will be expiration time of * STS id token in seconds. */ - expiresIn: string; + expiresIn?: string; /** * The GITKit token for authenticated user. */ - idToken: string; + idToken?: string; /** * True if it's a new user sign-in, false if it's a returning user. */ - isNewUser: boolean; + isNewUser?: boolean; /** * The fixed string "identitytoolkit#VerifyCustomTokenResponse". */ - kind: string; + kind?: string; /** * If idToken is STS id token, then this field will be refresh token. */ - refreshToken: string; + refreshToken?: string; } /** * Request of verifying the password. @@ -1460,56 +1463,57 @@ export namespace identitytoolkit_v3 { /** * The name of the user. */ - displayName: string; + displayName?: string; /** * The email returned by the IdP. NOTE: The federated login user may not own * the email. */ - email: string; + email?: string; /** * If idToken is STS id token, then this field will be expiration time of * STS id token in seconds. */ - expiresIn: string; + expiresIn?: string; /** * The GITKit token for authenticated user. */ - idToken: string; + idToken?: string; /** * The fixed string "identitytoolkit#VerifyPasswordResponse". */ - kind: string; + kind?: string; /** * The RP local ID if it's already been mapped to the IdP account * identified by the federated ID. */ - localId: string; + localId?: string; /** * The OAuth2 access token. */ - oauthAccessToken: string; + oauthAccessToken?: string; /** * The OAuth2 authorization code. */ - oauthAuthorizationCode: string; + oauthAuthorizationCode?: string; /** * The lifetime in seconds of the OAuth2 access token. */ - oauthExpireIn: number; + oauthExpireIn?: number; /** * The URI of the user's photo at IdP */ - photoUrl: string; + photoUrl?: string; /** * If idToken is STS id token, then this field will be refresh token. */ - refreshToken: string; + refreshToken?: string; /** * Whether the email is registered. */ - registered: boolean; + registered?: boolean; } + export class Resource$Relyingparty { root: Identitytoolkit; constructor(root: Identitytoolkit) { @@ -1534,28 +1538,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createAuthUri(params?: any, options?: MethodOptions): - AxiosPromise; createAuthUri( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Createauthuri, + options?: MethodOptions): AxiosPromise; + createAuthUri( + params: Params$Resource$Relyingparty$Createauthuri, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + createAuthUri( + params: Params$Resource$Relyingparty$Createauthuri, + callback: BodyResponseCallback): void; + createAuthUri(callback: BodyResponseCallback): + void; createAuthUri( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Createauthuri| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Createauthuri; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Createauthuri; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1590,28 +1607,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteAccount(params?: any, options?: MethodOptions): - AxiosPromise; deleteAccount( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Deleteaccount, + options?: MethodOptions): AxiosPromise; + deleteAccount( + params: Params$Resource$Relyingparty$Deleteaccount, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + deleteAccount( + params: Params$Resource$Relyingparty$Deleteaccount, + callback: BodyResponseCallback): void; + deleteAccount(callback: BodyResponseCallback): + void; deleteAccount( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Deleteaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Deleteaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Deleteaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1646,28 +1676,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - downloadAccount(params?: any, options?: MethodOptions): - AxiosPromise; downloadAccount( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Downloadaccount, + options?: MethodOptions): AxiosPromise; + downloadAccount( + params: Params$Resource$Relyingparty$Downloadaccount, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + downloadAccount( + params: Params$Resource$Relyingparty$Downloadaccount, + callback: BodyResponseCallback): void; downloadAccount( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + downloadAccount( + paramsOrCallback?: Params$Resource$Relyingparty$Downloadaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Downloadaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Downloadaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1703,28 +1746,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - emailLinkSignin(params?: any, options?: MethodOptions): - AxiosPromise; emailLinkSignin( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Emaillinksignin, + options?: MethodOptions): AxiosPromise; + emailLinkSignin( + params: Params$Resource$Relyingparty$Emaillinksignin, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + emailLinkSignin( + params: Params$Resource$Relyingparty$Emaillinksignin, + callback: BodyResponseCallback): void; emailLinkSignin( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + emailLinkSignin( + paramsOrCallback?: Params$Resource$Relyingparty$Emaillinksignin| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Emaillinksignin; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Emaillinksignin; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1760,28 +1816,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getAccountInfo(params?: any, options?: MethodOptions): - AxiosPromise; getAccountInfo( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Getaccountinfo, + options?: MethodOptions): AxiosPromise; + getAccountInfo( + params: Params$Resource$Relyingparty$Getaccountinfo, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getAccountInfo( + params: Params$Resource$Relyingparty$Getaccountinfo, + callback: BodyResponseCallback): void; getAccountInfo( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getAccountInfo( + paramsOrCallback?: Params$Resource$Relyingparty$Getaccountinfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Getaccountinfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Getaccountinfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1816,29 +1885,45 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getOobConfirmationCode(params?: any, options?: MethodOptions): + getOobConfirmationCode( + params?: Params$Resource$Relyingparty$Getoobconfirmationcode, + options?: MethodOptions): AxiosPromise; getOobConfirmationCode( - params?: any, - options?: MethodOptions| + params: Params$Resource$Relyingparty$Getoobconfirmationcode, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + getOobConfirmationCode( + params: Params$Resource$Relyingparty$Getoobconfirmationcode, + callback: BodyResponseCallback): + void; + getOobConfirmationCode( + callback: BodyResponseCallback): void; getOobConfirmationCode( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Getoobconfirmationcode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Getoobconfirmationcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Getoobconfirmationcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1877,31 +1962,49 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getProjectConfig(params?: any, options?: MethodOptions): AxiosPromise< - Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>; getProjectConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Relyingparty$Getprojectconfig, + options?: MethodOptions): + AxiosPromise< + Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>; + getProjectConfig( + params: Params$Resource$Relyingparty$Getprojectconfig, + options: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>): void; getProjectConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Relyingparty$Getprojectconfig, + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>): void; + getProjectConfig( + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>): void; + getProjectConfig( + paramsOrCallback?: Params$Resource$Relyingparty$Getprojectconfig| + BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>, callback?: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse>): void|AxiosPromise< Schema$IdentitytoolkitRelyingpartyGetProjectConfigResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Getprojectconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Getprojectconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1940,30 +2043,47 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getPublicKeys(params?: any, options?: MethodOptions): + getPublicKeys( + params?: Params$Resource$Relyingparty$Getpublickeys, + options?: MethodOptions): AxiosPromise; getPublicKeys( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Relyingparty$Getpublickeys, + options: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>): void; + getPublicKeys( + params: Params$Resource$Relyingparty$Getpublickeys, + callback: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>): void; + getPublicKeys(callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>): + void; getPublicKeys( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Relyingparty$Getpublickeys| + BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>, callback?: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyGetPublicKeysResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Getpublickeys; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Getpublickeys; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2001,29 +2121,42 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRecaptchaParam(params?: any, options?: MethodOptions): + getRecaptchaParam( + params?: Params$Resource$Relyingparty$Getrecaptchaparam, + options?: MethodOptions): AxiosPromise; getRecaptchaParam( - params?: any, - options?: MethodOptions| + params: Params$Resource$Relyingparty$Getrecaptchaparam, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + getRecaptchaParam( + params: Params$Resource$Relyingparty$Getrecaptchaparam, + callback: BodyResponseCallback): void; + getRecaptchaParam( + callback: BodyResponseCallback): void; getRecaptchaParam( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Getrecaptchaparam| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Getrecaptchaparam; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Getrecaptchaparam; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2060,28 +2193,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resetPassword(params?: any, options?: MethodOptions): - AxiosPromise; resetPassword( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Resetpassword, + options?: MethodOptions): AxiosPromise; + resetPassword( + params: Params$Resource$Relyingparty$Resetpassword, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + resetPassword( + params: Params$Resource$Relyingparty$Resetpassword, + callback: BodyResponseCallback): void; + resetPassword(callback: BodyResponseCallback): + void; resetPassword( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Resetpassword| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Resetpassword; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Resetpassword; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2116,32 +2262,52 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sendVerificationCode(params?: any, options?: MethodOptions): AxiosPromise< - Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>; sendVerificationCode( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Relyingparty$Sendverificationcode, + options?: MethodOptions): + AxiosPromise< + Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>; + sendVerificationCode( + params: Params$Resource$Relyingparty$Sendverificationcode, + options: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>): void; sendVerificationCode( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Relyingparty$Sendverificationcode, + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>): + void; + sendVerificationCode( + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>): + void; + sendVerificationCode( + paramsOrCallback?: Params$Resource$Relyingparty$Sendverificationcode| + BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>, callback?: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse>): void|AxiosPromise< Schema$IdentitytoolkitRelyingpartySendVerificationCodeResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Sendverificationcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Sendverificationcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2181,28 +2347,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setAccountInfo(params?: any, options?: MethodOptions): - AxiosPromise; setAccountInfo( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Setaccountinfo, + options?: MethodOptions): AxiosPromise; + setAccountInfo( + params: Params$Resource$Relyingparty$Setaccountinfo, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + setAccountInfo( + params: Params$Resource$Relyingparty$Setaccountinfo, + callback: BodyResponseCallback): void; setAccountInfo( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + setAccountInfo( + paramsOrCallback?: Params$Resource$Relyingparty$Setaccountinfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Setaccountinfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Setaccountinfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2237,31 +2416,49 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setProjectConfig(params?: any, options?: MethodOptions): AxiosPromise< - Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>; setProjectConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Relyingparty$Setprojectconfig, + options?: MethodOptions): + AxiosPromise< + Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>; + setProjectConfig( + params: Params$Resource$Relyingparty$Setprojectconfig, + options: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>): void; + setProjectConfig( + params: Params$Resource$Relyingparty$Setprojectconfig, + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>): void; + setProjectConfig( + callback: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>): void; setProjectConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Relyingparty$Setprojectconfig| + BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>, callback?: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse>): void|AxiosPromise< Schema$IdentitytoolkitRelyingpartySetProjectConfigResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Setprojectconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Setprojectconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2301,30 +2498,46 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - signOutUser(params?: any, options?: MethodOptions): + signOutUser( + params?: Params$Resource$Relyingparty$Signoutuser, + options?: MethodOptions): AxiosPromise; signOutUser( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Relyingparty$Signoutuser, + options: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySignOutUserResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySignOutUserResponse>): void; signOutUser( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Relyingparty$Signoutuser, + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySignOutUserResponse>): void; + signOutUser(callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySignOutUserResponse>): void; + signOutUser( + paramsOrCallback?: Params$Resource$Relyingparty$Signoutuser| + BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartySignOutUserResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySignOutUserResponse>, callback?: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartySignOutUserResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Relyingparty$Signoutuser; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Signoutuser; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2361,28 +2574,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - signupNewUser(params?: any, options?: MethodOptions): - AxiosPromise; signupNewUser( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Signupnewuser, + options?: MethodOptions): AxiosPromise; + signupNewUser( + params: Params$Resource$Relyingparty$Signupnewuser, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; signupNewUser( - params?: any, - options?: MethodOptions| + params: Params$Resource$Relyingparty$Signupnewuser, + callback: BodyResponseCallback): void; + signupNewUser(callback: BodyResponseCallback): + void; + signupNewUser( + paramsOrCallback?: Params$Resource$Relyingparty$Signupnewuser| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Signupnewuser; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Signupnewuser; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2417,28 +2643,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - uploadAccount(params?: any, options?: MethodOptions): - AxiosPromise; uploadAccount( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Uploadaccount, + options?: MethodOptions): AxiosPromise; + uploadAccount( + params: Params$Resource$Relyingparty$Uploadaccount, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; uploadAccount( - params?: any, - options?: MethodOptions| + params: Params$Resource$Relyingparty$Uploadaccount, + callback: BodyResponseCallback): void; + uploadAccount(callback: BodyResponseCallback): + void; + uploadAccount( + paramsOrCallback?: Params$Resource$Relyingparty$Uploadaccount| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Uploadaccount; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Uploadaccount; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2473,28 +2712,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verifyAssertion(params?: any, options?: MethodOptions): - AxiosPromise; verifyAssertion( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Verifyassertion, + options?: MethodOptions): AxiosPromise; + verifyAssertion( + params: Params$Resource$Relyingparty$Verifyassertion, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; verifyAssertion( - params?: any, - options?: MethodOptions| + params: Params$Resource$Relyingparty$Verifyassertion, + callback: BodyResponseCallback): void; + verifyAssertion( + callback: BodyResponseCallback): void; + verifyAssertion( + paramsOrCallback?: Params$Resource$Relyingparty$Verifyassertion| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Verifyassertion; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Verifyassertion; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2530,29 +2782,42 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verifyCustomToken(params?: any, options?: MethodOptions): + verifyCustomToken( + params?: Params$Resource$Relyingparty$Verifycustomtoken, + options?: MethodOptions): AxiosPromise; verifyCustomToken( - params?: any, - options?: MethodOptions| + params: Params$Resource$Relyingparty$Verifycustomtoken, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + verifyCustomToken( + params: Params$Resource$Relyingparty$Verifycustomtoken, + callback: BodyResponseCallback): void; + verifyCustomToken( + callback: BodyResponseCallback): void; verifyCustomToken( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Verifycustomtoken| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Verifycustomtoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Verifycustomtoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2589,28 +2854,41 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verifyPassword(params?: any, options?: MethodOptions): - AxiosPromise; verifyPassword( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Relyingparty$Verifypassword, + options?: MethodOptions): AxiosPromise; + verifyPassword( + params: Params$Resource$Relyingparty$Verifypassword, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + verifyPassword( + params: Params$Resource$Relyingparty$Verifypassword, + callback: BodyResponseCallback): void; + verifyPassword( + callback: BodyResponseCallback): void; verifyPassword( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Relyingparty$Verifypassword| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Verifypassword; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Verifypassword; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2646,31 +2924,49 @@ export namespace identitytoolkit_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verifyPhoneNumber(params?: any, options?: MethodOptions): AxiosPromise< - Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>; verifyPhoneNumber( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params?: Params$Resource$Relyingparty$Verifyphonenumber, + options?: MethodOptions): + AxiosPromise< + Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>; + verifyPhoneNumber( + params: Params$Resource$Relyingparty$Verifyphonenumber, + options: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>): void; + verifyPhoneNumber( + params: Params$Resource$Relyingparty$Verifyphonenumber, + callback: BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>): void; + verifyPhoneNumber( + callback: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>): void; verifyPhoneNumber( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Relyingparty$Verifyphonenumber| + BodyResponseCallback< + Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>, callback?: BodyResponseCallback< Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse>): void|AxiosPromise< Schema$IdentitytoolkitRelyingpartyVerifyPhoneNumberResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Relyingparty$Verifyphonenumber; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Relyingparty$Verifyphonenumber; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2697,4 +2993,134 @@ export namespace identitytoolkit_v3 { } } } + + export interface Params$Resource$Relyingparty$Createauthuri { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Deleteaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Downloadaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Emaillinksignin { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Getaccountinfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Getoobconfirmationcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Getprojectconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Delegated GCP project number of the request. + */ + delegatedProjectNumber?: string; + /** + * GCP project number of the request. + */ + projectNumber?: string; + } + export interface Params$Resource$Relyingparty$Getpublickeys { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Getrecaptchaparam { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Resetpassword { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Sendverificationcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Setaccountinfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Setprojectconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Signoutuser { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Signupnewuser { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Uploadaccount { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Verifyassertion { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Verifycustomtoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Verifypassword { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Relyingparty$Verifyphonenumber { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/index.ts b/src/apis/index.ts index a56a014953b..856a87e21cc 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -75,6 +75,7 @@ import {cloudshell_v1alpha1} from './cloudshell/v1alpha1'; import {cloudtasks_v2beta2} from './cloudtasks/v2beta2'; import {cloudtrace_v1} from './cloudtrace/v1'; import {cloudtrace_v2} from './cloudtrace/v2'; +import {composer_v1beta1} from './composer/v1beta1'; import {compute_alpha} from './compute/alpha'; import {compute_beta} from './compute/beta'; import {compute_v1} from './compute/v1'; @@ -99,8 +100,6 @@ import {dialogflow_v2beta1} from './dialogflow/v2beta1'; import {digitalassetlinks_v1} from './digitalassetlinks/v1'; import {discovery_v1} from './discovery/v1'; import {dlp_v2} from './dlp/v2'; -import {dlp_v2beta1} from './dlp/v2beta1'; -import {dlp_v2beta2} from './dlp/v2beta2'; import {dns_v1} from './dns/v1'; import {dns_v1beta2} from './dns/v1beta2'; import {dns_v2beta1} from './dns/v2beta1'; @@ -150,11 +149,6 @@ import {playcustomapp_v1} from './playcustomapp/v1'; import {plus_v1} from './plus/v1'; import {plusDomains_v1} from './plusDomains/v1'; import {poly_v1} from './poly/v1'; -import {prediction_v1_2} from './prediction/v1.2'; -import {prediction_v1_3} from './prediction/v1.3'; -import {prediction_v1_4} from './prediction/v1.4'; -import {prediction_v1_5} from './prediction/v1.5'; -import {prediction_v1_6} from './prediction/v1.6'; import {proximitybeacon_v1beta1} from './proximitybeacon/v1beta1'; import {pubsub_v1} from './pubsub/v1'; import {pubsub_v1beta1a} from './pubsub/v1beta1a'; @@ -170,6 +164,9 @@ import {runtimeconfig_v1beta1} from './runtimeconfig/v1beta1'; import {safebrowsing_v4} from './safebrowsing/v4'; import {script_v1} from './script/v1'; import {searchconsole_v1} from './searchconsole/v1'; +import {servicebroker_v1} from './servicebroker/v1'; +import {servicebroker_v1alpha1} from './servicebroker/v1alpha1'; +import {servicebroker_v1beta1} from './servicebroker/v1beta1'; import {serviceconsumermanagement_v1} from './serviceconsumermanagement/v1'; import {servicecontrol_v1} from './servicecontrol/v1'; import {servicemanagement_v1} from './servicemanagement/v1'; @@ -193,8 +190,6 @@ import {streetviewpublish_v1} from './streetviewpublish/v1'; import {surveys_v2} from './surveys/v2'; import {tagmanager_v1} from './tagmanager/v1'; import {tagmanager_v2} from './tagmanager/v2'; -import {taskqueue_v1beta1} from './taskqueue/v1beta1'; -import {taskqueue_v1beta2} from './taskqueue/v1beta2'; import {tasks_v1} from './tasks/v1'; import {testing_v1} from './testing/v1'; import {texttospeech_v1beta1} from './texttospeech/v1beta1'; @@ -355,6 +350,9 @@ export const APIS: APIList = { 'v1': cloudtrace_v1.Cloudtrace, 'v2': cloudtrace_v2.Cloudtrace, }, + composer: { + 'v1beta1': composer_v1beta1.Composer, + }, compute: { 'alpha': compute_alpha.Compute, 'beta': compute_beta.Compute, @@ -404,8 +402,6 @@ export const APIS: APIList = { }, dlp: { 'v2': dlp_v2.Dlp, - 'v2beta1': dlp_v2beta1.Dlp, - 'v2beta2': dlp_v2beta2.Dlp, }, dns: { 'v1': dns_v1.Dns, @@ -526,13 +522,6 @@ export const APIS: APIList = { poly: { 'v1': poly_v1.Poly, }, - prediction: { - 'v1.2': prediction_v1_2.Prediction, - 'v1.3': prediction_v1_3.Prediction, - 'v1.4': prediction_v1_4.Prediction, - 'v1.5': prediction_v1_5.Prediction, - 'v1.6': prediction_v1_6.Prediction, - }, proximitybeacon: { 'v1beta1': proximitybeacon_v1beta1.Proximitybeacon, }, @@ -568,6 +557,11 @@ export const APIS: APIList = { searchconsole: { 'v1': searchconsole_v1.Searchconsole, }, + servicebroker: { + 'v1': servicebroker_v1.Servicebroker, + 'v1alpha1': servicebroker_v1alpha1.Servicebroker, + 'v1beta1': servicebroker_v1beta1.Servicebroker, + }, serviceconsumermanagement: { 'v1': serviceconsumermanagement_v1.Serviceconsumermanagement, }, @@ -627,10 +621,6 @@ export const APIS: APIList = { 'v1': tagmanager_v1.Tagmanager, 'v2': tagmanager_v2.Tagmanager, }, - taskqueue: { - 'v1beta1': taskqueue_v1beta1.Taskqueue, - 'v1beta2': taskqueue_v1beta2.Taskqueue, - }, tasks: { 'v1': tasks_v1.Tasks, }, @@ -710,537 +700,1101 @@ export class GeneratedAPIs { } } + abusiveexperiencereport(version: 'v1'): + abusiveexperiencereport_v1.Abusiveexperiencereport; + abusiveexperiencereport(options: abusiveexperiencereport_v1.Options): + abusiveexperiencereport_v1.Abusiveexperiencereport; abusiveexperiencereport< T = abusiveexperiencereport_v1.Abusiveexperiencereport>( - options: ServiceOptions|string) { - return this.getAPI('abusiveexperiencereport', options); + versionOrOptions: 'v1'|abusiveexperiencereport_v1.Options) { + return this.getAPI('abusiveexperiencereport', versionOrOptions); } + acceleratedmobilepageurl(version: 'v1'): + acceleratedmobilepageurl_v1.Acceleratedmobilepageurl; + acceleratedmobilepageurl(options: acceleratedmobilepageurl_v1.Options): + acceleratedmobilepageurl_v1.Acceleratedmobilepageurl; acceleratedmobilepageurl< T = acceleratedmobilepageurl_v1.Acceleratedmobilepageurl>( - options: ServiceOptions|string) { - return this.getAPI('acceleratedmobilepageurl', options); - } + versionOrOptions: 'v1'|acceleratedmobilepageurl_v1.Options) { + return this.getAPI('acceleratedmobilepageurl', versionOrOptions); + } + adexchangebuyer(version: 'v1_2'): adexchangebuyer_v1_2.Adexchangebuyer; + adexchangebuyer(options: adexchangebuyer_v1_2.Options): + adexchangebuyer_v1_2.Adexchangebuyer; + adexchangebuyer(version: 'v1_3'): adexchangebuyer_v1_3.Adexchangebuyer; + adexchangebuyer(options: adexchangebuyer_v1_3.Options): + adexchangebuyer_v1_3.Adexchangebuyer; + adexchangebuyer(version: 'v1_4'): adexchangebuyer_v1_4.Adexchangebuyer; + adexchangebuyer(options: adexchangebuyer_v1_4.Options): + adexchangebuyer_v1_4.Adexchangebuyer; adexchangebuyer< T = adexchangebuyer_v1_2.Adexchangebuyer | adexchangebuyer_v1_3.Adexchangebuyer | - adexchangebuyer_v1_4.Adexchangebuyer>(options: ServiceOptions| - string) { - return this.getAPI('adexchangebuyer', options); - } + adexchangebuyer_v1_4.Adexchangebuyer>( + versionOrOptions: 'v1_2'| + adexchangebuyer_v1_2.Options|'v1_3'| + adexchangebuyer_v1_3.Options|'v1_4'|adexchangebuyer_v1_4.Options) { + return this.getAPI('adexchangebuyer', versionOrOptions); + } + adexchangebuyer2(version: 'v2beta1'): + adexchangebuyer2_v2beta1.Adexchangebuyer2; + adexchangebuyer2(options: adexchangebuyer2_v2beta1.Options): + adexchangebuyer2_v2beta1.Adexchangebuyer2; adexchangebuyer2( - options: ServiceOptions|string) { - return this.getAPI('adexchangebuyer2', options); - } + versionOrOptions: 'v2beta1'|adexchangebuyer2_v2beta1.Options) { + return this.getAPI('adexchangebuyer2', versionOrOptions); + } + adexchangeseller(version: 'v1_1'): adexchangeseller_v1_1.Adexchangeseller; + adexchangeseller(options: adexchangeseller_v1_1.Options): + adexchangeseller_v1_1.Adexchangeseller; + adexchangeseller(version: 'v1'): adexchangeseller_v1.Adexchangeseller; + adexchangeseller(options: adexchangeseller_v1.Options): + adexchangeseller_v1.Adexchangeseller; + adexchangeseller(version: 'v2_0'): adexchangeseller_v2_0.Adexchangeseller; + adexchangeseller(options: adexchangeseller_v2_0.Options): + adexchangeseller_v2_0.Adexchangeseller; adexchangeseller< T = adexchangeseller_v1_1.Adexchangeseller | adexchangeseller_v1.Adexchangeseller | - adexchangeseller_v2_0.Adexchangeseller>(options: ServiceOptions| - string) { - return this.getAPI('adexchangeseller', options); - } + adexchangeseller_v2_0.Adexchangeseller>( + versionOrOptions: 'v1_1'| + adexchangeseller_v1_1.Options|'v1'| + adexchangeseller_v1.Options|'v2_0'|adexchangeseller_v2_0.Options) { + return this.getAPI('adexchangeseller', versionOrOptions); + } + adexperiencereport(version: 'v1'): adexperiencereport_v1.Adexperiencereport; + adexperiencereport(options: adexperiencereport_v1.Options): + adexperiencereport_v1.Adexperiencereport; adexperiencereport( - options: ServiceOptions|string) { - return this.getAPI('adexperiencereport', options); - } + versionOrOptions: 'v1'|adexperiencereport_v1.Options) { + return this.getAPI('adexperiencereport', versionOrOptions); + } + admin(version: 'datatransfer_v1'): admin_datatransfer_v1.Admin; + admin(options: admin_datatransfer_v1.Options): admin_datatransfer_v1.Admin; + admin(version: 'directory_v1'): admin_directory_v1.Admin; + admin(options: admin_directory_v1.Options): admin_directory_v1.Admin; + admin(version: 'reports_v1'): admin_reports_v1.Admin; + admin(options: admin_reports_v1.Options): admin_reports_v1.Admin; admin< T = admin_datatransfer_v1.Admin | admin_directory_v1.Admin | - admin_reports_v1.Admin>(options: ServiceOptions|string) { - return this.getAPI('admin', options); - } - adsense(options: ServiceOptions|string) { - return this.getAPI('adsense', options); - } - adsensehost(options: ServiceOptions| - string) { - return this.getAPI('adsensehost', options); - } + admin_reports_v1.Admin>( + versionOrOptions: 'datatransfer_v1'| + admin_datatransfer_v1.Options|'directory_v1'| + admin_directory_v1.Options|'reports_v1'|admin_reports_v1.Options) { + return this.getAPI('admin', versionOrOptions); + } + adsense(version: 'v1_4'): adsense_v1_4.Adsense; + adsense(options: adsense_v1_4.Options): adsense_v1_4.Adsense; + adsense(versionOrOptions: 'v1_4'| + adsense_v1_4.Options) { + return this.getAPI('adsense', versionOrOptions); + } + adsensehost(version: 'v4_1'): adsensehost_v4_1.Adsensehost; + adsensehost(options: adsensehost_v4_1.Options): adsensehost_v4_1.Adsensehost; + adsensehost(versionOrOptions: 'v4_1'| + adsensehost_v4_1.Options) { + return this.getAPI('adsensehost', versionOrOptions); + } + analytics(version: 'v2_4'): analytics_v2_4.Analytics; + analytics(options: analytics_v2_4.Options): analytics_v2_4.Analytics; + analytics(version: 'v3'): analytics_v3.Analytics; + analytics(options: analytics_v3.Options): analytics_v3.Analytics; analytics( - options: ServiceOptions|string) { - return this.getAPI('analytics', options); + versionOrOptions: 'v2_4'|analytics_v2_4.Options|'v3'| + analytics_v3.Options) { + return this.getAPI('analytics', versionOrOptions); } + analyticsreporting(version: 'v4'): analyticsreporting_v4.Analyticsreporting; + analyticsreporting(options: analyticsreporting_v4.Options): + analyticsreporting_v4.Analyticsreporting; analyticsreporting( - options: ServiceOptions|string) { - return this.getAPI('analyticsreporting', options); + versionOrOptions: 'v4'|analyticsreporting_v4.Options) { + return this.getAPI('analyticsreporting', versionOrOptions); } + androiddeviceprovisioning(version: 'v1'): + androiddeviceprovisioning_v1.Androiddeviceprovisioning; + androiddeviceprovisioning(options: androiddeviceprovisioning_v1.Options): + androiddeviceprovisioning_v1.Androiddeviceprovisioning; androiddeviceprovisioning< T = androiddeviceprovisioning_v1.Androiddeviceprovisioning>( - options: ServiceOptions|string) { - return this.getAPI('androiddeviceprovisioning', options); + versionOrOptions: 'v1'|androiddeviceprovisioning_v1.Options) { + return this.getAPI('androiddeviceprovisioning', versionOrOptions); } + androidenterprise(version: 'v1'): androidenterprise_v1.Androidenterprise; + androidenterprise(options: androidenterprise_v1.Options): + androidenterprise_v1.Androidenterprise; androidenterprise( - options: ServiceOptions|string) { - return this.getAPI('androidenterprise', options); + versionOrOptions: 'v1'|androidenterprise_v1.Options) { + return this.getAPI('androidenterprise', versionOrOptions); } + androidmanagement(version: 'v1'): androidmanagement_v1.Androidmanagement; + androidmanagement(options: androidmanagement_v1.Options): + androidmanagement_v1.Androidmanagement; androidmanagement( - options: ServiceOptions|string) { - return this.getAPI('androidmanagement', options); - } + versionOrOptions: 'v1'|androidmanagement_v1.Options) { + return this.getAPI('androidmanagement', versionOrOptions); + } + androidpublisher(version: 'v1_1'): androidpublisher_v1_1.Androidpublisher; + androidpublisher(options: androidpublisher_v1_1.Options): + androidpublisher_v1_1.Androidpublisher; + androidpublisher(version: 'v1'): androidpublisher_v1.Androidpublisher; + androidpublisher(options: androidpublisher_v1.Options): + androidpublisher_v1.Androidpublisher; + androidpublisher(version: 'v2'): androidpublisher_v2.Androidpublisher; + androidpublisher(options: androidpublisher_v2.Options): + androidpublisher_v2.Androidpublisher; androidpublisher< T = androidpublisher_v1_1.Androidpublisher | androidpublisher_v1.Androidpublisher | - androidpublisher_v2.Androidpublisher>(options: ServiceOptions| - string) { - return this.getAPI('androidpublisher', options); - } + androidpublisher_v2.Androidpublisher>( + versionOrOptions: 'v1_1'| + androidpublisher_v1_1.Options|'v1'| + androidpublisher_v1.Options|'v2'|androidpublisher_v2.Options) { + return this.getAPI('androidpublisher', versionOrOptions); + } + appengine(version: 'v1'): appengine_v1.Appengine; + appengine(options: appengine_v1.Options): appengine_v1.Appengine; + appengine(version: 'v1alpha'): appengine_v1alpha.Appengine; + appengine(options: appengine_v1alpha.Options): appengine_v1alpha.Appengine; + appengine(version: 'v1beta'): appengine_v1beta.Appengine; + appengine(options: appengine_v1beta.Options): appengine_v1beta.Appengine; + appengine(version: 'v1beta4'): appengine_v1beta4.Appengine; + appengine(options: appengine_v1beta4.Options): appengine_v1beta4.Appengine; + appengine(version: 'v1beta5'): appengine_v1beta5.Appengine; + appengine(options: appengine_v1beta5.Options): appengine_v1beta5.Appengine; appengine< T = appengine_v1.Appengine | appengine_v1alpha.Appengine | appengine_v1beta.Appengine | appengine_v1beta4.Appengine | - appengine_v1beta5.Appengine>(options: ServiceOptions|string) { - return this.getAPI('appengine', options); - } - appsactivity(options: ServiceOptions| - string) { - return this.getAPI('appsactivity', options); - } - appstate(options: ServiceOptions|string) { - return this.getAPI('appstate', options); - } - bigquery(options: ServiceOptions|string) { - return this.getAPI('bigquery', options); - } + appengine_v1beta5.Appengine>( + versionOrOptions: 'v1'|appengine_v1.Options|'v1alpha'| + appengine_v1alpha.Options|'v1beta'| + appengine_v1beta.Options|'v1beta4'| + appengine_v1beta4.Options|'v1beta5'|appengine_v1beta5.Options) { + return this.getAPI('appengine', versionOrOptions); + } + appsactivity(version: 'v1'): appsactivity_v1.Appsactivity; + appsactivity(options: appsactivity_v1.Options): appsactivity_v1.Appsactivity; + appsactivity(versionOrOptions: 'v1'| + appsactivity_v1.Options) { + return this.getAPI('appsactivity', versionOrOptions); + } + appstate(version: 'v1'): appstate_v1.Appstate; + appstate(options: appstate_v1.Options): appstate_v1.Appstate; + appstate(versionOrOptions: 'v1'| + appstate_v1.Options) { + return this.getAPI('appstate', versionOrOptions); + } + bigquery(version: 'v2'): bigquery_v2.Bigquery; + bigquery(options: bigquery_v2.Options): bigquery_v2.Bigquery; + bigquery(versionOrOptions: 'v2'| + bigquery_v2.Options) { + return this.getAPI('bigquery', versionOrOptions); + } + bigquerydatatransfer(version: 'v1'): + bigquerydatatransfer_v1.Bigquerydatatransfer; + bigquerydatatransfer(options: bigquerydatatransfer_v1.Options): + bigquerydatatransfer_v1.Bigquerydatatransfer; bigquerydatatransfer( - options: ServiceOptions|string) { - return this.getAPI('bigquerydatatransfer', options); - } - blogger(options: ServiceOptions| - string) { - return this.getAPI('blogger', options); - } - books(options: ServiceOptions|string) { - return this.getAPI('books', options); - } - calendar(options: ServiceOptions|string) { - return this.getAPI('calendar', options); - } - chat(options: ServiceOptions|string) { - return this.getAPI('chat', options); - } - civicinfo(options: ServiceOptions|string) { - return this.getAPI('civicinfo', options); - } - classroom(options: ServiceOptions|string) { - return this.getAPI('classroom', options); - } - cloudbilling(options: ServiceOptions| - string) { - return this.getAPI('cloudbilling', options); - } - cloudbuild(options: ServiceOptions|string) { - return this.getAPI('cloudbuild', options); - } - clouddebugger(options: ServiceOptions| - string) { - return this.getAPI('clouddebugger', options); - } + versionOrOptions: 'v1'|bigquerydatatransfer_v1.Options) { + return this.getAPI('bigquerydatatransfer', versionOrOptions); + } + blogger(version: 'v2'): blogger_v2.Blogger; + blogger(options: blogger_v2.Options): blogger_v2.Blogger; + blogger(version: 'v3'): blogger_v3.Blogger; + blogger(options: blogger_v3.Options): blogger_v3.Blogger; + blogger( + versionOrOptions: 'v2'|blogger_v2.Options|'v3'|blogger_v3.Options) { + return this.getAPI('blogger', versionOrOptions); + } + books(version: 'v1'): books_v1.Books; + books(options: books_v1.Options): books_v1.Books; + books(versionOrOptions: 'v1'|books_v1.Options) { + return this.getAPI('books', versionOrOptions); + } + calendar(version: 'v3'): calendar_v3.Calendar; + calendar(options: calendar_v3.Options): calendar_v3.Calendar; + calendar(versionOrOptions: 'v3'| + calendar_v3.Options) { + return this.getAPI('calendar', versionOrOptions); + } + chat(version: 'v1'): chat_v1.Chat; + chat(options: chat_v1.Options): chat_v1.Chat; + chat(versionOrOptions: 'v1'|chat_v1.Options) { + return this.getAPI('chat', versionOrOptions); + } + civicinfo(version: 'v2'): civicinfo_v2.Civicinfo; + civicinfo(options: civicinfo_v2.Options): civicinfo_v2.Civicinfo; + civicinfo(versionOrOptions: 'v2'| + civicinfo_v2.Options) { + return this.getAPI('civicinfo', versionOrOptions); + } + classroom(version: 'v1'): classroom_v1.Classroom; + classroom(options: classroom_v1.Options): classroom_v1.Classroom; + classroom(versionOrOptions: 'v1'| + classroom_v1.Options) { + return this.getAPI('classroom', versionOrOptions); + } + cloudbilling(version: 'v1'): cloudbilling_v1.Cloudbilling; + cloudbilling(options: cloudbilling_v1.Options): cloudbilling_v1.Cloudbilling; + cloudbilling(versionOrOptions: 'v1'| + cloudbilling_v1.Options) { + return this.getAPI('cloudbilling', versionOrOptions); + } + cloudbuild(version: 'v1'): cloudbuild_v1.Cloudbuild; + cloudbuild(options: cloudbuild_v1.Options): cloudbuild_v1.Cloudbuild; + cloudbuild(versionOrOptions: 'v1'| + cloudbuild_v1.Options) { + return this.getAPI('cloudbuild', versionOrOptions); + } + clouddebugger(version: 'v2'): clouddebugger_v2.Clouddebugger; + clouddebugger(options: clouddebugger_v2.Options): + clouddebugger_v2.Clouddebugger; + clouddebugger(versionOrOptions: 'v2'| + clouddebugger_v2.Options) { + return this.getAPI('clouddebugger', versionOrOptions); + } + clouderrorreporting(version: 'v1beta1'): + clouderrorreporting_v1beta1.Clouderrorreporting; + clouderrorreporting(options: clouderrorreporting_v1beta1.Options): + clouderrorreporting_v1beta1.Clouderrorreporting; clouderrorreporting( - options: ServiceOptions|string) { - return this.getAPI('clouderrorreporting', options); - } + versionOrOptions: 'v1beta1'|clouderrorreporting_v1beta1.Options) { + return this.getAPI('clouderrorreporting', versionOrOptions); + } + cloudfunctions(version: 'v1'): cloudfunctions_v1.Cloudfunctions; + cloudfunctions(options: cloudfunctions_v1.Options): + cloudfunctions_v1.Cloudfunctions; + cloudfunctions(version: 'v1beta2'): cloudfunctions_v1beta2.Cloudfunctions; + cloudfunctions(options: cloudfunctions_v1beta2.Options): + cloudfunctions_v1beta2.Cloudfunctions; cloudfunctions< T = cloudfunctions_v1.Cloudfunctions | - cloudfunctions_v1beta2.Cloudfunctions>(options: ServiceOptions| - string) { - return this.getAPI('cloudfunctions', options); - } - cloudiot(options: ServiceOptions|string) { - return this.getAPI('cloudiot', options); - } - cloudkms(options: ServiceOptions|string) { - return this.getAPI('cloudkms', options); - } + cloudfunctions_v1beta2.Cloudfunctions>( + versionOrOptions: 'v1'| + cloudfunctions_v1.Options|'v1beta2'|cloudfunctions_v1beta2.Options) { + return this.getAPI('cloudfunctions', versionOrOptions); + } + cloudiot(version: 'v1'): cloudiot_v1.Cloudiot; + cloudiot(options: cloudiot_v1.Options): cloudiot_v1.Cloudiot; + cloudiot(versionOrOptions: 'v1'| + cloudiot_v1.Options) { + return this.getAPI('cloudiot', versionOrOptions); + } + cloudkms(version: 'v1'): cloudkms_v1.Cloudkms; + cloudkms(options: cloudkms_v1.Options): cloudkms_v1.Cloudkms; + cloudkms(versionOrOptions: 'v1'| + cloudkms_v1.Options) { + return this.getAPI('cloudkms', versionOrOptions); + } + cloudresourcemanager(version: 'v1'): + cloudresourcemanager_v1.Cloudresourcemanager; + cloudresourcemanager(options: cloudresourcemanager_v1.Options): + cloudresourcemanager_v1.Cloudresourcemanager; + cloudresourcemanager(version: 'v1beta1'): + cloudresourcemanager_v1beta1.Cloudresourcemanager; + cloudresourcemanager(options: cloudresourcemanager_v1beta1.Options): + cloudresourcemanager_v1beta1.Cloudresourcemanager; + cloudresourcemanager(version: 'v2'): + cloudresourcemanager_v2.Cloudresourcemanager; + cloudresourcemanager(options: cloudresourcemanager_v2.Options): + cloudresourcemanager_v2.Cloudresourcemanager; + cloudresourcemanager(version: 'v2beta1'): + cloudresourcemanager_v2beta1.Cloudresourcemanager; + cloudresourcemanager(options: cloudresourcemanager_v2beta1.Options): + cloudresourcemanager_v2beta1.Cloudresourcemanager; cloudresourcemanager< T = cloudresourcemanager_v1.Cloudresourcemanager | cloudresourcemanager_v1beta1.Cloudresourcemanager | cloudresourcemanager_v2.Cloudresourcemanager | - cloudresourcemanager_v2beta1.Cloudresourcemanager>(options: - ServiceOptions| - string) { - return this.getAPI('cloudresourcemanager', options); - } + cloudresourcemanager_v2beta1.Cloudresourcemanager>( + versionOrOptions: 'v1'| + cloudresourcemanager_v1.Options|'v1beta1'| + cloudresourcemanager_v1beta1.Options|'v2'| + cloudresourcemanager_v2.Options|'v2beta1'| + cloudresourcemanager_v2beta1.Options) { + return this.getAPI('cloudresourcemanager', versionOrOptions); + } + cloudshell(version: 'v1'): cloudshell_v1.Cloudshell; + cloudshell(options: cloudshell_v1.Options): cloudshell_v1.Cloudshell; + cloudshell(version: 'v1alpha1'): cloudshell_v1alpha1.Cloudshell; + cloudshell(options: cloudshell_v1alpha1.Options): + cloudshell_v1alpha1.Cloudshell; cloudshell( - options: ServiceOptions|string) { - return this.getAPI('cloudshell', options); - } - cloudtasks(options: ServiceOptions| - string) { - return this.getAPI('cloudtasks', options); - } + versionOrOptions: 'v1'| + cloudshell_v1.Options|'v1alpha1'|cloudshell_v1alpha1.Options) { + return this.getAPI('cloudshell', versionOrOptions); + } + cloudtasks(version: 'v2beta2'): cloudtasks_v2beta2.Cloudtasks; + cloudtasks(options: cloudtasks_v2beta2.Options): + cloudtasks_v2beta2.Cloudtasks; + cloudtasks(versionOrOptions: 'v2beta2'| + cloudtasks_v2beta2.Options) { + return this.getAPI('cloudtasks', versionOrOptions); + } + cloudtrace(version: 'v1'): cloudtrace_v1.Cloudtrace; + cloudtrace(options: cloudtrace_v1.Options): cloudtrace_v1.Cloudtrace; + cloudtrace(version: 'v2'): cloudtrace_v2.Cloudtrace; + cloudtrace(options: cloudtrace_v2.Options): cloudtrace_v2.Cloudtrace; cloudtrace( - options: ServiceOptions|string) { - return this.getAPI('cloudtrace', options); - } + versionOrOptions: 'v1'|cloudtrace_v1.Options|'v2'|cloudtrace_v2.Options) { + return this.getAPI('cloudtrace', versionOrOptions); + } + composer(version: 'v1beta1'): composer_v1beta1.Composer; + composer(options: composer_v1beta1.Options): composer_v1beta1.Composer; + composer(versionOrOptions: 'v1beta1'| + composer_v1beta1.Options) { + return this.getAPI('composer', versionOrOptions); + } + compute(version: 'alpha'): compute_alpha.Compute; + compute(options: compute_alpha.Options): compute_alpha.Compute; + compute(version: 'beta'): compute_beta.Compute; + compute(options: compute_beta.Options): compute_beta.Compute; + compute(version: 'v1'): compute_v1.Compute; + compute(options: compute_v1.Options): compute_v1.Compute; compute< T = compute_alpha.Compute | compute_beta.Compute | compute_v1.Compute>( - options: ServiceOptions|string) { - return this.getAPI('compute', options); - } + versionOrOptions: 'alpha'|compute_alpha.Options|'beta'| + compute_beta.Options|'v1'|compute_v1.Options) { + return this.getAPI('compute', versionOrOptions); + } + container(version: 'v1'): container_v1.Container; + container(options: container_v1.Options): container_v1.Container; + container(version: 'v1beta1'): container_v1beta1.Container; + container(options: container_v1beta1.Options): container_v1beta1.Container; container( - options: ServiceOptions|string) { - return this.getAPI('container', options); - } + versionOrOptions: 'v1'|container_v1.Options|'v1beta1'| + container_v1beta1.Options) { + return this.getAPI('container', versionOrOptions); + } + content(version: 'v2'): content_v2.Content; + content(options: content_v2.Options): content_v2.Content; + content(version: 'v2sandbox'): content_v2sandbox.Content; + content(options: content_v2sandbox.Options): content_v2sandbox.Content; content( - options: ServiceOptions|string) { - return this.getAPI('content', options); - } - customsearch(options: ServiceOptions| - string) { - return this.getAPI('customsearch', options); - } - dataflow(options: ServiceOptions|string) { - return this.getAPI('dataflow', options); - } + versionOrOptions: 'v2'|content_v2.Options|'v2sandbox'| + content_v2sandbox.Options) { + return this.getAPI('content', versionOrOptions); + } + customsearch(version: 'v1'): customsearch_v1.Customsearch; + customsearch(options: customsearch_v1.Options): customsearch_v1.Customsearch; + customsearch(versionOrOptions: 'v1'| + customsearch_v1.Options) { + return this.getAPI('customsearch', versionOrOptions); + } + dataflow(version: 'v1b3'): dataflow_v1b3.Dataflow; + dataflow(options: dataflow_v1b3.Options): dataflow_v1b3.Dataflow; + dataflow(versionOrOptions: 'v1b3'| + dataflow_v1b3.Options) { + return this.getAPI('dataflow', versionOrOptions); + } + dataproc(version: 'v1'): dataproc_v1.Dataproc; + dataproc(options: dataproc_v1.Options): dataproc_v1.Dataproc; + dataproc(version: 'v1beta2'): dataproc_v1beta2.Dataproc; + dataproc(options: dataproc_v1beta2.Options): dataproc_v1beta2.Dataproc; dataproc( - options: ServiceOptions|string) { - return this.getAPI('dataproc', options); - } + versionOrOptions: 'v1'|dataproc_v1.Options|'v1beta2'| + dataproc_v1beta2.Options) { + return this.getAPI('dataproc', versionOrOptions); + } + datastore(version: 'v1'): datastore_v1.Datastore; + datastore(options: datastore_v1.Options): datastore_v1.Datastore; + datastore(version: 'v1beta1'): datastore_v1beta1.Datastore; + datastore(options: datastore_v1beta1.Options): datastore_v1beta1.Datastore; + datastore(version: 'v1beta3'): datastore_v1beta3.Datastore; + datastore(options: datastore_v1beta3.Options): datastore_v1beta3.Datastore; datastore< T = datastore_v1.Datastore | datastore_v1beta1.Datastore | - datastore_v1beta3.Datastore>(options: ServiceOptions|string) { - return this.getAPI('datastore', options); - } + datastore_v1beta3.Datastore>( + versionOrOptions: 'v1'|datastore_v1.Options|'v1beta1'| + datastore_v1beta1.Options|'v1beta3'|datastore_v1beta3.Options) { + return this.getAPI('datastore', versionOrOptions); + } + deploymentmanager(version: 'alpha'): + deploymentmanager_alpha.Deploymentmanager; + deploymentmanager(options: deploymentmanager_alpha.Options): + deploymentmanager_alpha.Deploymentmanager; + deploymentmanager(version: 'v2'): deploymentmanager_v2.Deploymentmanager; + deploymentmanager(options: deploymentmanager_v2.Options): + deploymentmanager_v2.Deploymentmanager; + deploymentmanager(version: 'v2beta'): + deploymentmanager_v2beta.Deploymentmanager; + deploymentmanager(options: deploymentmanager_v2beta.Options): + deploymentmanager_v2beta.Deploymentmanager; deploymentmanager< T = deploymentmanager_alpha.Deploymentmanager | deploymentmanager_v2.Deploymentmanager | - deploymentmanager_v2beta.Deploymentmanager>(options: ServiceOptions| - string) { - return this.getAPI('deploymentmanager', options); - } + deploymentmanager_v2beta.Deploymentmanager>( + versionOrOptions: 'alpha'| + deploymentmanager_alpha.Options|'v2'| + deploymentmanager_v2.Options|'v2beta'|deploymentmanager_v2beta.Options) { + return this.getAPI('deploymentmanager', versionOrOptions); + } + dfareporting(version: 'v2_8'): dfareporting_v2_8.Dfareporting; + dfareporting(options: dfareporting_v2_8.Options): + dfareporting_v2_8.Dfareporting; + dfareporting(version: 'v3_0'): dfareporting_v3_0.Dfareporting; + dfareporting(options: dfareporting_v3_0.Options): + dfareporting_v3_0.Dfareporting; dfareporting< T = dfareporting_v2_8.Dfareporting | dfareporting_v3_0.Dfareporting>( - options: ServiceOptions|string) { - return this.getAPI('dfareporting', options); - } + versionOrOptions: 'v2_8'| + dfareporting_v2_8.Options|'v3_0'|dfareporting_v3_0.Options) { + return this.getAPI('dfareporting', versionOrOptions); + } + dialogflow(version: 'v2'): dialogflow_v2.Dialogflow; + dialogflow(options: dialogflow_v2.Options): dialogflow_v2.Dialogflow; + dialogflow(version: 'v2beta1'): dialogflow_v2beta1.Dialogflow; + dialogflow(options: dialogflow_v2beta1.Options): + dialogflow_v2beta1.Dialogflow; dialogflow( - options: ServiceOptions|string) { - return this.getAPI('dialogflow', options); + versionOrOptions: 'v2'|dialogflow_v2.Options|'v2beta1'| + dialogflow_v2beta1.Options) { + return this.getAPI('dialogflow', versionOrOptions); } + digitalassetlinks(version: 'v1'): digitalassetlinks_v1.Digitalassetlinks; + digitalassetlinks(options: digitalassetlinks_v1.Options): + digitalassetlinks_v1.Digitalassetlinks; digitalassetlinks( - options: ServiceOptions|string) { - return this.getAPI('digitalassetlinks', options); - } - discovery(options: ServiceOptions|string) { - return this.getAPI('discovery', options); - } - dlp(options: - ServiceOptions| - string) { - return this.getAPI('dlp', options); - } - dns(options: - ServiceOptions| - string) { - return this.getAPI('dns', options); - } + versionOrOptions: 'v1'|digitalassetlinks_v1.Options) { + return this.getAPI('digitalassetlinks', versionOrOptions); + } + discovery(version: 'v1'): discovery_v1.Discovery; + discovery(options: discovery_v1.Options): discovery_v1.Discovery; + discovery(versionOrOptions: 'v1'| + discovery_v1.Options) { + return this.getAPI('discovery', versionOrOptions); + } + dlp(version: 'v2'): dlp_v2.Dlp; + dlp(options: dlp_v2.Options): dlp_v2.Dlp; + dlp(versionOrOptions: 'v2'|dlp_v2.Options) { + return this.getAPI('dlp', versionOrOptions); + } + dns(version: 'v1'): dns_v1.Dns; + dns(options: dns_v1.Options): dns_v1.Dns; + dns(version: 'v1beta2'): dns_v1beta2.Dns; + dns(options: dns_v1beta2.Options): dns_v1beta2.Dns; + dns(version: 'v2beta1'): dns_v2beta1.Dns; + dns(options: dns_v2beta1.Options): dns_v2beta1.Dns; + dns( + versionOrOptions: 'v1'|dns_v1.Options|'v1beta2'| + dns_v1beta2.Options|'v2beta1'|dns_v2beta1.Options) { + return this.getAPI('dns', versionOrOptions); + } + doubleclickbidmanager(version: 'v1'): + doubleclickbidmanager_v1.Doubleclickbidmanager; + doubleclickbidmanager(options: doubleclickbidmanager_v1.Options): + doubleclickbidmanager_v1.Doubleclickbidmanager; doubleclickbidmanager( - options: ServiceOptions|string) { - return this.getAPI('doubleclickbidmanager', options); + versionOrOptions: 'v1'|doubleclickbidmanager_v1.Options) { + return this.getAPI('doubleclickbidmanager', versionOrOptions); } + doubleclicksearch(version: 'v2'): doubleclicksearch_v2.Doubleclicksearch; + doubleclicksearch(options: doubleclicksearch_v2.Options): + doubleclicksearch_v2.Doubleclicksearch; doubleclicksearch( - options: ServiceOptions|string) { - return this.getAPI('doubleclicksearch', options); - } - drive(options: ServiceOptions|string) { - return this.getAPI('drive', options); - } + versionOrOptions: 'v2'|doubleclicksearch_v2.Options) { + return this.getAPI('doubleclicksearch', versionOrOptions); + } + drive(version: 'v2'): drive_v2.Drive; + drive(options: drive_v2.Options): drive_v2.Drive; + drive(version: 'v3'): drive_v3.Drive; + drive(options: drive_v3.Options): drive_v3.Drive; + drive(versionOrOptions: 'v2'| + drive_v2.Options|'v3'| + drive_v3.Options) { + return this.getAPI('drive', versionOrOptions); + } + firebasedynamiclinks(version: 'v1'): + firebasedynamiclinks_v1.Firebasedynamiclinks; + firebasedynamiclinks(options: firebasedynamiclinks_v1.Options): + firebasedynamiclinks_v1.Firebasedynamiclinks; firebasedynamiclinks( - options: ServiceOptions|string) { - return this.getAPI('firebasedynamiclinks', options); - } - firebaserules(options: ServiceOptions| - string) { - return this.getAPI('firebaserules', options); - } - firestore(options: ServiceOptions|string) { - return this.getAPI('firestore', options); - } - fitness(options: ServiceOptions|string) { - return this.getAPI('fitness', options); - } + versionOrOptions: 'v1'|firebasedynamiclinks_v1.Options) { + return this.getAPI('firebasedynamiclinks', versionOrOptions); + } + firebaserules(version: 'v1'): firebaserules_v1.Firebaserules; + firebaserules(options: firebaserules_v1.Options): + firebaserules_v1.Firebaserules; + firebaserules(versionOrOptions: 'v1'| + firebaserules_v1.Options) { + return this.getAPI('firebaserules', versionOrOptions); + } + firestore(version: 'v1beta1'): firestore_v1beta1.Firestore; + firestore(options: firestore_v1beta1.Options): firestore_v1beta1.Firestore; + firestore(versionOrOptions: 'v1beta1'| + firestore_v1beta1.Options) { + return this.getAPI('firestore', versionOrOptions); + } + fitness(version: 'v1'): fitness_v1.Fitness; + fitness(options: fitness_v1.Options): fitness_v1.Fitness; + fitness(versionOrOptions: 'v1'|fitness_v1.Options) { + return this.getAPI('fitness', versionOrOptions); + } + fusiontables(version: 'v1'): fusiontables_v1.Fusiontables; + fusiontables(options: fusiontables_v1.Options): fusiontables_v1.Fusiontables; + fusiontables(version: 'v2'): fusiontables_v2.Fusiontables; + fusiontables(options: fusiontables_v2.Options): fusiontables_v2.Fusiontables; fusiontables( - options: ServiceOptions|string) { - return this.getAPI('fusiontables', options); - } - games(options: ServiceOptions|string) { - return this.getAPI('games', options); - } + versionOrOptions: 'v1'|fusiontables_v1.Options|'v2'| + fusiontables_v2.Options) { + return this.getAPI('fusiontables', versionOrOptions); + } + games(version: 'v1'): games_v1.Games; + games(options: games_v1.Options): games_v1.Games; + games(versionOrOptions: 'v1'|games_v1.Options) { + return this.getAPI('games', versionOrOptions); + } + gamesConfiguration(version: 'v1configuration'): + gamesConfiguration_v1configuration.Gamesconfiguration; + gamesConfiguration(options: gamesConfiguration_v1configuration.Options): + gamesConfiguration_v1configuration.Gamesconfiguration; gamesConfiguration( - options: ServiceOptions|string) { - return this.getAPI('gamesConfiguration', options); - } + versionOrOptions: 'v1configuration'| + gamesConfiguration_v1configuration.Options) { + return this.getAPI('gamesConfiguration', versionOrOptions); + } + gamesManagement(version: 'v1management'): + gamesManagement_v1management.Gamesmanagement; + gamesManagement(options: gamesManagement_v1management.Options): + gamesManagement_v1management.Gamesmanagement; gamesManagement( - options: ServiceOptions|string) { - return this.getAPI('gamesManagement', options); - } + versionOrOptions: 'v1management'|gamesManagement_v1management.Options) { + return this.getAPI('gamesManagement', versionOrOptions); + } + genomics(version: 'v1'): genomics_v1.Genomics; + genomics(options: genomics_v1.Options): genomics_v1.Genomics; + genomics(version: 'v1alpha2'): genomics_v1alpha2.Genomics; + genomics(options: genomics_v1alpha2.Options): genomics_v1alpha2.Genomics; + genomics(version: 'v2alpha1'): genomics_v2alpha1.Genomics; + genomics(options: genomics_v2alpha1.Options): genomics_v2alpha1.Genomics; genomics< T = genomics_v1.Genomics | genomics_v1alpha2.Genomics | - genomics_v2alpha1.Genomics>(options: ServiceOptions|string) { - return this.getAPI('genomics', options); - } - gmail(options: ServiceOptions|string) { - return this.getAPI('gmail', options); - } - groupsmigration(options: - ServiceOptions| - string) { - return this.getAPI('groupsmigration', options); - } - groupssettings(options: ServiceOptions| - string) { - return this.getAPI('groupssettings', options); - } - iam(options: ServiceOptions|string) { - return this.getAPI('iam', options); - } - identitytoolkit(options: - ServiceOptions| - string) { - return this.getAPI('identitytoolkit', options); - } - kgsearch(options: ServiceOptions|string) { - return this.getAPI('kgsearch', options); - } + genomics_v2alpha1.Genomics>( + versionOrOptions: 'v1'|genomics_v1.Options|'v1alpha2'| + genomics_v1alpha2.Options|'v2alpha1'|genomics_v2alpha1.Options) { + return this.getAPI('genomics', versionOrOptions); + } + gmail(version: 'v1'): gmail_v1.Gmail; + gmail(options: gmail_v1.Options): gmail_v1.Gmail; + gmail(versionOrOptions: 'v1'|gmail_v1.Options) { + return this.getAPI('gmail', versionOrOptions); + } + groupsmigration(version: 'v1'): groupsmigration_v1.Groupsmigration; + groupsmigration(options: groupsmigration_v1.Options): + groupsmigration_v1.Groupsmigration; + groupsmigration( + versionOrOptions: 'v1'|groupsmigration_v1.Options) { + return this.getAPI('groupsmigration', versionOrOptions); + } + groupssettings(version: 'v1'): groupssettings_v1.Groupssettings; + groupssettings(options: groupssettings_v1.Options): + groupssettings_v1.Groupssettings; + groupssettings( + versionOrOptions: 'v1'|groupssettings_v1.Options) { + return this.getAPI('groupssettings', versionOrOptions); + } + iam(version: 'v1'): iam_v1.Iam; + iam(options: iam_v1.Options): iam_v1.Iam; + iam(versionOrOptions: 'v1'|iam_v1.Options) { + return this.getAPI('iam', versionOrOptions); + } + identitytoolkit(version: 'v3'): identitytoolkit_v3.Identitytoolkit; + identitytoolkit(options: identitytoolkit_v3.Options): + identitytoolkit_v3.Identitytoolkit; + identitytoolkit( + versionOrOptions: 'v3'|identitytoolkit_v3.Options) { + return this.getAPI('identitytoolkit', versionOrOptions); + } + kgsearch(version: 'v1'): kgsearch_v1.Kgsearch; + kgsearch(options: kgsearch_v1.Options): kgsearch_v1.Kgsearch; + kgsearch(versionOrOptions: 'v1'| + kgsearch_v1.Options) { + return this.getAPI('kgsearch', versionOrOptions); + } + language(version: 'v1'): language_v1.Language; + language(options: language_v1.Options): language_v1.Language; + language(version: 'v1beta1'): language_v1beta1.Language; + language(options: language_v1beta1.Options): language_v1beta1.Language; + language(version: 'v1beta2'): language_v1beta2.Language; + language(options: language_v1beta2.Options): language_v1beta2.Language; language< T = language_v1.Language | language_v1beta1.Language | - language_v1beta2.Language>(options: ServiceOptions|string) { - return this.getAPI('language', options); - } - licensing(options: ServiceOptions|string) { - return this.getAPI('licensing', options); - } - logging(options: - ServiceOptions| - string) { - return this.getAPI('logging', options); - } - manufacturers(options: ServiceOptions| - string) { - return this.getAPI('manufacturers', options); - } - mirror(options: ServiceOptions|string) { - return this.getAPI('mirror', options); - } - ml(options: ServiceOptions|string) { - return this.getAPI('ml', options); - } - monitoring(options: ServiceOptions|string) { - return this.getAPI('monitoring', options); - } - oauth2(options: ServiceOptions| - string) { - return this.getAPI('oauth2', options); - } + language_v1beta2.Language>( + versionOrOptions: 'v1'|language_v1.Options|'v1beta1'| + language_v1beta1.Options|'v1beta2'|language_v1beta2.Options) { + return this.getAPI('language', versionOrOptions); + } + licensing(version: 'v1'): licensing_v1.Licensing; + licensing(options: licensing_v1.Options): licensing_v1.Licensing; + licensing(versionOrOptions: 'v1'| + licensing_v1.Options) { + return this.getAPI('licensing', versionOrOptions); + } + logging(version: 'v2'): logging_v2.Logging; + logging(options: logging_v2.Options): logging_v2.Logging; + logging(version: 'v2beta1'): logging_v2beta1.Logging; + logging(options: logging_v2beta1.Options): logging_v2beta1.Logging; + logging( + versionOrOptions: 'v2'|logging_v2.Options|'v2beta1'| + logging_v2beta1.Options) { + return this.getAPI('logging', versionOrOptions); + } + manufacturers(version: 'v1'): manufacturers_v1.Manufacturers; + manufacturers(options: manufacturers_v1.Options): + manufacturers_v1.Manufacturers; + manufacturers(versionOrOptions: 'v1'| + manufacturers_v1.Options) { + return this.getAPI('manufacturers', versionOrOptions); + } + mirror(version: 'v1'): mirror_v1.Mirror; + mirror(options: mirror_v1.Options): mirror_v1.Mirror; + mirror(versionOrOptions: 'v1'|mirror_v1.Options) { + return this.getAPI('mirror', versionOrOptions); + } + ml(version: 'v1'): ml_v1.Ml; + ml(options: ml_v1.Options): ml_v1.Ml; + ml(versionOrOptions: 'v1'|ml_v1.Options) { + return this.getAPI('ml', versionOrOptions); + } + monitoring(version: 'v3'): monitoring_v3.Monitoring; + monitoring(options: monitoring_v3.Options): monitoring_v3.Monitoring; + monitoring(versionOrOptions: 'v3'| + monitoring_v3.Options) { + return this.getAPI('monitoring', versionOrOptions); + } + oauth2(version: 'v1'): oauth2_v1.Oauth2; + oauth2(options: oauth2_v1.Options): oauth2_v1.Oauth2; + oauth2(version: 'v2'): oauth2_v2.Oauth2; + oauth2(options: oauth2_v2.Options): oauth2_v2.Oauth2; + oauth2( + versionOrOptions: 'v1'|oauth2_v1.Options|'v2'|oauth2_v2.Options) { + return this.getAPI('oauth2', versionOrOptions); + } + oslogin(version: 'v1'): oslogin_v1.Oslogin; + oslogin(options: oslogin_v1.Options): oslogin_v1.Oslogin; + oslogin(version: 'v1alpha'): oslogin_v1alpha.Oslogin; + oslogin(options: oslogin_v1alpha.Options): oslogin_v1alpha.Oslogin; + oslogin(version: 'v1beta'): oslogin_v1beta.Oslogin; + oslogin(options: oslogin_v1beta.Options): oslogin_v1beta.Oslogin; oslogin< T = oslogin_v1.Oslogin | oslogin_v1alpha.Oslogin | - oslogin_v1beta.Oslogin>(options: ServiceOptions|string) { - return this.getAPI('oslogin', options); - } + oslogin_v1beta.Oslogin>( + versionOrOptions: 'v1'|oslogin_v1.Options|'v1alpha'| + oslogin_v1alpha.Options|'v1beta'|oslogin_v1beta.Options) { + return this.getAPI('oslogin', versionOrOptions); + } + pagespeedonline(version: 'v1'): pagespeedonline_v1.Pagespeedonline; + pagespeedonline(options: pagespeedonline_v1.Options): + pagespeedonline_v1.Pagespeedonline; + pagespeedonline(version: 'v2'): pagespeedonline_v2.Pagespeedonline; + pagespeedonline(options: pagespeedonline_v2.Options): + pagespeedonline_v2.Pagespeedonline; + pagespeedonline(version: 'v4'): pagespeedonline_v4.Pagespeedonline; + pagespeedonline(options: pagespeedonline_v4.Options): + pagespeedonline_v4.Pagespeedonline; pagespeedonline< T = pagespeedonline_v1.Pagespeedonline | pagespeedonline_v2.Pagespeedonline | - pagespeedonline_v4.Pagespeedonline>(options: ServiceOptions|string) { - return this.getAPI('pagespeedonline', options); - } - partners(options: ServiceOptions|string) { - return this.getAPI('partners', options); - } - people(options: ServiceOptions|string) { - return this.getAPI('people', options); - } - playcustomapp(options: ServiceOptions| - string) { - return this.getAPI('playcustomapp', options); - } - plus(options: ServiceOptions|string) { - return this.getAPI('plus', options); - } - plusDomains(options: ServiceOptions|string) { - return this.getAPI('plusDomains', options); - } - poly(options: ServiceOptions|string) { - return this.getAPI('poly', options); - } - prediction< - T = prediction_v1_2.Prediction | prediction_v1_3.Prediction | - prediction_v1_4.Prediction | prediction_v1_5.Prediction | - prediction_v1_6.Prediction>(options: ServiceOptions|string) { - return this.getAPI('prediction', options); - } + pagespeedonline_v4.Pagespeedonline>( + versionOrOptions: 'v1'|pagespeedonline_v1.Options|'v2'| + pagespeedonline_v2.Options|'v4'|pagespeedonline_v4.Options) { + return this.getAPI('pagespeedonline', versionOrOptions); + } + partners(version: 'v2'): partners_v2.Partners; + partners(options: partners_v2.Options): partners_v2.Partners; + partners(versionOrOptions: 'v2'| + partners_v2.Options) { + return this.getAPI('partners', versionOrOptions); + } + people(version: 'v1'): people_v1.People; + people(options: people_v1.Options): people_v1.People; + people(versionOrOptions: 'v1'|people_v1.Options) { + return this.getAPI('people', versionOrOptions); + } + playcustomapp(version: 'v1'): playcustomapp_v1.Playcustomapp; + playcustomapp(options: playcustomapp_v1.Options): + playcustomapp_v1.Playcustomapp; + playcustomapp(versionOrOptions: 'v1'| + playcustomapp_v1.Options) { + return this.getAPI('playcustomapp', versionOrOptions); + } + plus(version: 'v1'): plus_v1.Plus; + plus(options: plus_v1.Options): plus_v1.Plus; + plus(versionOrOptions: 'v1'|plus_v1.Options) { + return this.getAPI('plus', versionOrOptions); + } + plusDomains(version: 'v1'): plusDomains_v1.Plusdomains; + plusDomains(options: plusDomains_v1.Options): plusDomains_v1.Plusdomains; + plusDomains(versionOrOptions: 'v1'| + plusDomains_v1.Options) { + return this.getAPI('plusDomains', versionOrOptions); + } + poly(version: 'v1'): poly_v1.Poly; + poly(options: poly_v1.Options): poly_v1.Poly; + poly(versionOrOptions: 'v1'|poly_v1.Options) { + return this.getAPI('poly', versionOrOptions); + } + proximitybeacon(version: 'v1beta1'): proximitybeacon_v1beta1.Proximitybeacon; + proximitybeacon(options: proximitybeacon_v1beta1.Options): + proximitybeacon_v1beta1.Proximitybeacon; proximitybeacon( - options: ServiceOptions|string) { - return this.getAPI('proximitybeacon', options); - } + versionOrOptions: 'v1beta1'|proximitybeacon_v1beta1.Options) { + return this.getAPI('proximitybeacon', versionOrOptions); + } + pubsub(version: 'v1'): pubsub_v1.Pubsub; + pubsub(options: pubsub_v1.Options): pubsub_v1.Pubsub; + pubsub(version: 'v1beta1a'): pubsub_v1beta1a.Pubsub; + pubsub(options: pubsub_v1beta1a.Options): pubsub_v1beta1a.Pubsub; + pubsub(version: 'v1beta2'): pubsub_v1beta2.Pubsub; + pubsub(options: pubsub_v1beta2.Options): pubsub_v1beta2.Pubsub; pubsub( - options: ServiceOptions|string) { - return this.getAPI('pubsub', options); - } + versionOrOptions: 'v1'|pubsub_v1.Options|'v1beta1a'| + pubsub_v1beta1a.Options|'v1beta2'|pubsub_v1beta2.Options) { + return this.getAPI('pubsub', versionOrOptions); + } + replicapool(version: 'v1beta1'): replicapool_v1beta1.Replicapool; + replicapool(options: replicapool_v1beta1.Options): + replicapool_v1beta1.Replicapool; + replicapool(version: 'v1beta2'): replicapool_v1beta2.Replicapool; + replicapool(options: replicapool_v1beta2.Options): + replicapool_v1beta2.Replicapool; replicapool< T = replicapool_v1beta1.Replicapool | replicapool_v1beta2.Replicapool>( - options: ServiceOptions|string) { - return this.getAPI('replicapool', options); - } + versionOrOptions: 'v1beta1'| + replicapool_v1beta1.Options|'v1beta2'|replicapool_v1beta2.Options) { + return this.getAPI('replicapool', versionOrOptions); + } + replicapoolupdater(version: 'v1beta1'): + replicapoolupdater_v1beta1.Replicapoolupdater; + replicapoolupdater(options: replicapoolupdater_v1beta1.Options): + replicapoolupdater_v1beta1.Replicapoolupdater; replicapoolupdater( - options: ServiceOptions|string) { - return this.getAPI('replicapoolupdater', options); - } - reseller(options: ServiceOptions|string) { - return this.getAPI('reseller', options); - } + versionOrOptions: 'v1beta1'|replicapoolupdater_v1beta1.Options) { + return this.getAPI('replicapoolupdater', versionOrOptions); + } + reseller(version: 'v1'): reseller_v1.Reseller; + reseller(options: reseller_v1.Options): reseller_v1.Reseller; + reseller(versionOrOptions: 'v1'| + reseller_v1.Options) { + return this.getAPI('reseller', versionOrOptions); + } + resourceviews(version: 'v1beta1'): resourceviews_v1beta1.Resourceviews; + resourceviews(options: resourceviews_v1beta1.Options): + resourceviews_v1beta1.Resourceviews; + resourceviews(version: 'v1beta2'): resourceviews_v1beta2.Resourceviews; + resourceviews(options: resourceviews_v1beta2.Options): + resourceviews_v1beta2.Resourceviews; resourceviews< T = resourceviews_v1beta1.Resourceviews | - resourceviews_v1beta2.Resourceviews>(options: ServiceOptions|string) { - return this.getAPI('resourceviews', options); - } + resourceviews_v1beta2.Resourceviews>( + versionOrOptions: 'v1beta1'| + resourceviews_v1beta1.Options|'v1beta2'|resourceviews_v1beta2.Options) { + return this.getAPI('resourceviews', versionOrOptions); + } + runtimeconfig(version: 'v1'): runtimeconfig_v1.Runtimeconfig; + runtimeconfig(options: runtimeconfig_v1.Options): + runtimeconfig_v1.Runtimeconfig; + runtimeconfig(version: 'v1beta1'): runtimeconfig_v1beta1.Runtimeconfig; + runtimeconfig(options: runtimeconfig_v1beta1.Options): + runtimeconfig_v1beta1.Runtimeconfig; runtimeconfig< T = runtimeconfig_v1.Runtimeconfig | runtimeconfig_v1beta1.Runtimeconfig>( - options: ServiceOptions|string) { - return this.getAPI('runtimeconfig', options); - } - safebrowsing(options: ServiceOptions| - string) { - return this.getAPI('safebrowsing', options); - } - script(options: ServiceOptions|string) { - return this.getAPI('script', options); - } - searchconsole(options: ServiceOptions| - string) { - return this.getAPI('searchconsole', options); - } + versionOrOptions: 'v1'| + runtimeconfig_v1.Options|'v1beta1'|runtimeconfig_v1beta1.Options) { + return this.getAPI('runtimeconfig', versionOrOptions); + } + safebrowsing(version: 'v4'): safebrowsing_v4.Safebrowsing; + safebrowsing(options: safebrowsing_v4.Options): safebrowsing_v4.Safebrowsing; + safebrowsing(versionOrOptions: 'v4'| + safebrowsing_v4.Options) { + return this.getAPI('safebrowsing', versionOrOptions); + } + script(version: 'v1'): script_v1.Script; + script(options: script_v1.Options): script_v1.Script; + script(versionOrOptions: 'v1'|script_v1.Options) { + return this.getAPI('script', versionOrOptions); + } + searchconsole(version: 'v1'): searchconsole_v1.Searchconsole; + searchconsole(options: searchconsole_v1.Options): + searchconsole_v1.Searchconsole; + searchconsole(versionOrOptions: 'v1'| + searchconsole_v1.Options) { + return this.getAPI('searchconsole', versionOrOptions); + } + servicebroker(version: 'v1'): servicebroker_v1.Servicebroker; + servicebroker(options: servicebroker_v1.Options): + servicebroker_v1.Servicebroker; + servicebroker(version: 'v1alpha1'): servicebroker_v1alpha1.Servicebroker; + servicebroker(options: servicebroker_v1alpha1.Options): + servicebroker_v1alpha1.Servicebroker; + servicebroker(version: 'v1beta1'): servicebroker_v1beta1.Servicebroker; + servicebroker(options: servicebroker_v1beta1.Options): + servicebroker_v1beta1.Servicebroker; + servicebroker< + T = servicebroker_v1.Servicebroker | + servicebroker_v1alpha1.Servicebroker | + servicebroker_v1beta1.Servicebroker>( + versionOrOptions: 'v1'| + servicebroker_v1.Options|'v1alpha1'| + servicebroker_v1alpha1.Options|'v1beta1'|servicebroker_v1beta1.Options) { + return this.getAPI('servicebroker', versionOrOptions); + } + serviceconsumermanagement(version: 'v1'): + serviceconsumermanagement_v1.Serviceconsumermanagement; + serviceconsumermanagement(options: serviceconsumermanagement_v1.Options): + serviceconsumermanagement_v1.Serviceconsumermanagement; serviceconsumermanagement< T = serviceconsumermanagement_v1.Serviceconsumermanagement>( - options: ServiceOptions|string) { - return this.getAPI('serviceconsumermanagement', options); - } - servicecontrol(options: ServiceOptions| - string) { - return this.getAPI('servicecontrol', options); - } + versionOrOptions: 'v1'|serviceconsumermanagement_v1.Options) { + return this.getAPI('serviceconsumermanagement', versionOrOptions); + } + servicecontrol(version: 'v1'): servicecontrol_v1.Servicecontrol; + servicecontrol(options: servicecontrol_v1.Options): + servicecontrol_v1.Servicecontrol; + servicecontrol( + versionOrOptions: 'v1'|servicecontrol_v1.Options) { + return this.getAPI('servicecontrol', versionOrOptions); + } + servicemanagement(version: 'v1'): servicemanagement_v1.Servicemanagement; + servicemanagement(options: servicemanagement_v1.Options): + servicemanagement_v1.Servicemanagement; servicemanagement( - options: ServiceOptions|string) { - return this.getAPI('servicemanagement', options); - } - serviceusage(options: ServiceOptions| - string) { - return this.getAPI('serviceusage', options); - } - serviceuser(options: ServiceOptions|string) { - return this.getAPI('serviceuser', options); - } - sheets(options: ServiceOptions|string) { - return this.getAPI('sheets', options); - } - siteVerification(options: - ServiceOptions| - string) { - return this.getAPI('siteVerification', options); - } - slides(options: ServiceOptions|string) { - return this.getAPI('slides', options); - } - sourcerepo(options: ServiceOptions|string) { - return this.getAPI('sourcerepo', options); - } - spanner(options: ServiceOptions|string) { - return this.getAPI('spanner', options); - } - spectrum(options: ServiceOptions|string) { - return this.getAPI('spectrum', options); - } - speech(options: ServiceOptions| - string) { - return this.getAPI('speech', options); - } + versionOrOptions: 'v1'|servicemanagement_v1.Options) { + return this.getAPI('servicemanagement', versionOrOptions); + } + serviceusage(version: 'v1beta1'): serviceusage_v1beta1.Serviceusage; + serviceusage(options: serviceusage_v1beta1.Options): + serviceusage_v1beta1.Serviceusage; + serviceusage( + versionOrOptions: 'v1beta1'|serviceusage_v1beta1.Options) { + return this.getAPI('serviceusage', versionOrOptions); + } + serviceuser(version: 'v1'): serviceuser_v1.Serviceuser; + serviceuser(options: serviceuser_v1.Options): serviceuser_v1.Serviceuser; + serviceuser(versionOrOptions: 'v1'| + serviceuser_v1.Options) { + return this.getAPI('serviceuser', versionOrOptions); + } + sheets(version: 'v4'): sheets_v4.Sheets; + sheets(options: sheets_v4.Options): sheets_v4.Sheets; + sheets(versionOrOptions: 'v4'|sheets_v4.Options) { + return this.getAPI('sheets', versionOrOptions); + } + siteVerification(version: 'v1'): siteVerification_v1.Siteverification; + siteVerification(options: siteVerification_v1.Options): + siteVerification_v1.Siteverification; + siteVerification( + versionOrOptions: 'v1'|siteVerification_v1.Options) { + return this.getAPI('siteVerification', versionOrOptions); + } + slides(version: 'v1'): slides_v1.Slides; + slides(options: slides_v1.Options): slides_v1.Slides; + slides(versionOrOptions: 'v1'|slides_v1.Options) { + return this.getAPI('slides', versionOrOptions); + } + sourcerepo(version: 'v1'): sourcerepo_v1.Sourcerepo; + sourcerepo(options: sourcerepo_v1.Options): sourcerepo_v1.Sourcerepo; + sourcerepo(versionOrOptions: 'v1'| + sourcerepo_v1.Options) { + return this.getAPI('sourcerepo', versionOrOptions); + } + spanner(version: 'v1'): spanner_v1.Spanner; + spanner(options: spanner_v1.Options): spanner_v1.Spanner; + spanner(versionOrOptions: 'v1'|spanner_v1.Options) { + return this.getAPI('spanner', versionOrOptions); + } + spectrum(version: 'v1explorer'): spectrum_v1explorer.Spectrum; + spectrum(options: spectrum_v1explorer.Options): spectrum_v1explorer.Spectrum; + spectrum(versionOrOptions: 'v1explorer'| + spectrum_v1explorer.Options) { + return this.getAPI('spectrum', versionOrOptions); + } + speech(version: 'v1'): speech_v1.Speech; + speech(options: speech_v1.Options): speech_v1.Speech; + speech(version: 'v1beta1'): speech_v1beta1.Speech; + speech(options: speech_v1beta1.Options): speech_v1beta1.Speech; + speech( + versionOrOptions: 'v1'|speech_v1.Options|'v1beta1'| + speech_v1beta1.Options) { + return this.getAPI('speech', versionOrOptions); + } + sqladmin(version: 'v1beta3'): sqladmin_v1beta3.Sqladmin; + sqladmin(options: sqladmin_v1beta3.Options): sqladmin_v1beta3.Sqladmin; + sqladmin(version: 'v1beta4'): sqladmin_v1beta4.Sqladmin; + sqladmin(options: sqladmin_v1beta4.Options): sqladmin_v1beta4.Sqladmin; sqladmin( - options: ServiceOptions|string) { - return this.getAPI('sqladmin', options); - } + versionOrOptions: 'v1beta3'| + sqladmin_v1beta3.Options|'v1beta4'|sqladmin_v1beta4.Options) { + return this.getAPI('sqladmin', versionOrOptions); + } + storage(version: 'v1'): storage_v1.Storage; + storage(options: storage_v1.Options): storage_v1.Storage; + storage(version: 'v1beta1'): storage_v1beta1.Storage; + storage(options: storage_v1beta1.Options): storage_v1beta1.Storage; + storage(version: 'v1beta2'): storage_v1beta2.Storage; + storage(options: storage_v1beta2.Options): storage_v1beta2.Storage; storage< T = storage_v1.Storage | storage_v1beta1.Storage | - storage_v1beta2.Storage>(options: ServiceOptions|string) { - return this.getAPI('storage', options); - } - storagetransfer(options: - ServiceOptions| - string) { - return this.getAPI('storagetransfer', options); - } + storage_v1beta2.Storage>( + versionOrOptions: 'v1'|storage_v1.Options|'v1beta1'| + storage_v1beta1.Options|'v1beta2'|storage_v1beta2.Options) { + return this.getAPI('storage', versionOrOptions); + } + storagetransfer(version: 'v1'): storagetransfer_v1.Storagetransfer; + storagetransfer(options: storagetransfer_v1.Options): + storagetransfer_v1.Storagetransfer; + storagetransfer( + versionOrOptions: 'v1'|storagetransfer_v1.Options) { + return this.getAPI('storagetransfer', versionOrOptions); + } + streetviewpublish(version: 'v1'): streetviewpublish_v1.Streetviewpublish; + streetviewpublish(options: streetviewpublish_v1.Options): + streetviewpublish_v1.Streetviewpublish; streetviewpublish( - options: ServiceOptions|string) { - return this.getAPI('streetviewpublish', options); - } - surveys(options: ServiceOptions|string) { - return this.getAPI('surveys', options); - } + versionOrOptions: 'v1'|streetviewpublish_v1.Options) { + return this.getAPI('streetviewpublish', versionOrOptions); + } + surveys(version: 'v2'): surveys_v2.Surveys; + surveys(options: surveys_v2.Options): surveys_v2.Surveys; + surveys(versionOrOptions: 'v2'|surveys_v2.Options) { + return this.getAPI('surveys', versionOrOptions); + } + tagmanager(version: 'v1'): tagmanager_v1.Tagmanager; + tagmanager(options: tagmanager_v1.Options): tagmanager_v1.Tagmanager; + tagmanager(version: 'v2'): tagmanager_v2.Tagmanager; + tagmanager(options: tagmanager_v2.Options): tagmanager_v2.Tagmanager; tagmanager( - options: ServiceOptions|string) { - return this.getAPI('tagmanager', options); - } - taskqueue( - options: ServiceOptions|string) { - return this.getAPI('taskqueue', options); - } - tasks(options: ServiceOptions|string) { - return this.getAPI('tasks', options); - } - testing(options: ServiceOptions|string) { - return this.getAPI('testing', options); - } - texttospeech(options: ServiceOptions| - string) { - return this.getAPI('texttospeech', options); - } - toolresults(options: ServiceOptions| - string) { - return this.getAPI('toolresults', options); - } - tpu(options: ServiceOptions|string) { - return this.getAPI('tpu', options); - } - translate(options: ServiceOptions|string) { - return this.getAPI('translate', options); - } - urlshortener(options: ServiceOptions| - string) { - return this.getAPI('urlshortener', options); - } - vault(options: ServiceOptions|string) { - return this.getAPI('vault', options); - } + versionOrOptions: 'v1'|tagmanager_v1.Options|'v2'|tagmanager_v2.Options) { + return this.getAPI('tagmanager', versionOrOptions); + } + tasks(version: 'v1'): tasks_v1.Tasks; + tasks(options: tasks_v1.Options): tasks_v1.Tasks; + tasks(versionOrOptions: 'v1'|tasks_v1.Options) { + return this.getAPI('tasks', versionOrOptions); + } + testing(version: 'v1'): testing_v1.Testing; + testing(options: testing_v1.Options): testing_v1.Testing; + testing(versionOrOptions: 'v1'|testing_v1.Options) { + return this.getAPI('testing', versionOrOptions); + } + texttospeech(version: 'v1beta1'): texttospeech_v1beta1.Texttospeech; + texttospeech(options: texttospeech_v1beta1.Options): + texttospeech_v1beta1.Texttospeech; + texttospeech( + versionOrOptions: 'v1beta1'|texttospeech_v1beta1.Options) { + return this.getAPI('texttospeech', versionOrOptions); + } + toolresults(version: 'v1beta3'): toolresults_v1beta3.Toolresults; + toolresults(options: toolresults_v1beta3.Options): + toolresults_v1beta3.Toolresults; + toolresults( + versionOrOptions: 'v1beta3'|toolresults_v1beta3.Options) { + return this.getAPI('toolresults', versionOrOptions); + } + tpu(version: 'v1alpha1'): tpu_v1alpha1.Tpu; + tpu(options: tpu_v1alpha1.Options): tpu_v1alpha1.Tpu; + tpu(versionOrOptions: 'v1alpha1'|tpu_v1alpha1.Options) { + return this.getAPI('tpu', versionOrOptions); + } + translate(version: 'v2'): translate_v2.Translate; + translate(options: translate_v2.Options): translate_v2.Translate; + translate(versionOrOptions: 'v2'| + translate_v2.Options) { + return this.getAPI('translate', versionOrOptions); + } + urlshortener(version: 'v1'): urlshortener_v1.Urlshortener; + urlshortener(options: urlshortener_v1.Options): urlshortener_v1.Urlshortener; + urlshortener(versionOrOptions: 'v1'| + urlshortener_v1.Options) { + return this.getAPI('urlshortener', versionOrOptions); + } + vault(version: 'v1'): vault_v1.Vault; + vault(options: vault_v1.Options): vault_v1.Vault; + vault(versionOrOptions: 'v1'|vault_v1.Options) { + return this.getAPI('vault', versionOrOptions); + } + videointelligence(version: 'v1'): videointelligence_v1.Videointelligence; + videointelligence(options: videointelligence_v1.Options): + videointelligence_v1.Videointelligence; + videointelligence(version: 'v1beta1'): + videointelligence_v1beta1.Videointelligence; + videointelligence(options: videointelligence_v1beta1.Options): + videointelligence_v1beta1.Videointelligence; + videointelligence(version: 'v1beta2'): + videointelligence_v1beta2.Videointelligence; + videointelligence(options: videointelligence_v1beta2.Options): + videointelligence_v1beta2.Videointelligence; videointelligence< T = videointelligence_v1.Videointelligence | videointelligence_v1beta1.Videointelligence | - videointelligence_v1beta2.Videointelligence>(options: ServiceOptions| - string) { - return this.getAPI('videointelligence', options); - } + videointelligence_v1beta2.Videointelligence>( + versionOrOptions: 'v1'| + videointelligence_v1.Options|'v1beta1'| + videointelligence_v1beta1.Options|'v1beta2'| + videointelligence_v1beta2.Options) { + return this.getAPI('videointelligence', versionOrOptions); + } + vision(version: 'v1'): vision_v1.Vision; + vision(options: vision_v1.Options): vision_v1.Vision; + vision(version: 'v1p1beta1'): vision_v1p1beta1.Vision; + vision(options: vision_v1p1beta1.Options): vision_v1p1beta1.Vision; + vision(version: 'v1p2beta1'): vision_v1p2beta1.Vision; + vision(options: vision_v1p2beta1.Options): vision_v1p2beta1.Vision; vision< T = vision_v1.Vision | vision_v1p1beta1.Vision | vision_v1p2beta1.Vision>( - options: ServiceOptions|string) { - return this.getAPI('vision', options); - } - webfonts(options: ServiceOptions|string) { - return this.getAPI('webfonts', options); - } - webmasters(options: ServiceOptions|string) { - return this.getAPI('webmasters', options); - } + versionOrOptions: 'v1'|vision_v1.Options|'v1p1beta1'| + vision_v1p1beta1.Options|'v1p2beta1'|vision_v1p2beta1.Options) { + return this.getAPI('vision', versionOrOptions); + } + webfonts(version: 'v1'): webfonts_v1.Webfonts; + webfonts(options: webfonts_v1.Options): webfonts_v1.Webfonts; + webfonts(versionOrOptions: 'v1'| + webfonts_v1.Options) { + return this.getAPI('webfonts', versionOrOptions); + } + webmasters(version: 'v3'): webmasters_v3.Webmasters; + webmasters(options: webmasters_v3.Options): webmasters_v3.Webmasters; + webmasters(versionOrOptions: 'v3'| + webmasters_v3.Options) { + return this.getAPI('webmasters', versionOrOptions); + } + websecurityscanner(version: 'v1alpha'): + websecurityscanner_v1alpha.Websecurityscanner; + websecurityscanner(options: websecurityscanner_v1alpha.Options): + websecurityscanner_v1alpha.Websecurityscanner; websecurityscanner( - options: ServiceOptions|string) { - return this.getAPI('websecurityscanner', options); - } - youtube(options: ServiceOptions|string) { - return this.getAPI('youtube', options); - } + versionOrOptions: 'v1alpha'|websecurityscanner_v1alpha.Options) { + return this.getAPI('websecurityscanner', versionOrOptions); + } + youtube(version: 'v3'): youtube_v3.Youtube; + youtube(options: youtube_v3.Options): youtube_v3.Youtube; + youtube(versionOrOptions: 'v3'|youtube_v3.Options) { + return this.getAPI('youtube', versionOrOptions); + } + youtubeAnalytics(version: 'v1'): youtubeAnalytics_v1.Youtubeanalytics; + youtubeAnalytics(options: youtubeAnalytics_v1.Options): + youtubeAnalytics_v1.Youtubeanalytics; + youtubeAnalytics(version: 'v1beta1'): + youtubeAnalytics_v1beta1.Youtubeanalytics; + youtubeAnalytics(options: youtubeAnalytics_v1beta1.Options): + youtubeAnalytics_v1beta1.Youtubeanalytics; + youtubeAnalytics(version: 'v2'): youtubeAnalytics_v2.Youtubeanalytics; + youtubeAnalytics(options: youtubeAnalytics_v2.Options): + youtubeAnalytics_v2.Youtubeanalytics; youtubeAnalytics< T = youtubeAnalytics_v1.Youtubeanalytics | youtubeAnalytics_v1beta1.Youtubeanalytics | - youtubeAnalytics_v2.Youtubeanalytics>(options: ServiceOptions| - string) { - return this.getAPI('youtubeAnalytics', options); - } - youtubereporting(options: - ServiceOptions| - string) { - return this.getAPI('youtubereporting', options); + youtubeAnalytics_v2.Youtubeanalytics>( + versionOrOptions: 'v1'| + youtubeAnalytics_v1.Options|'v1beta1'| + youtubeAnalytics_v1beta1.Options|'v2'|youtubeAnalytics_v2.Options) { + return this.getAPI('youtubeAnalytics', versionOrOptions); + } + youtubereporting(version: 'v1'): youtubereporting_v1.Youtubereporting; + youtubereporting(options: youtubereporting_v1.Options): + youtubereporting_v1.Youtubereporting; + youtubereporting( + versionOrOptions: 'v1'|youtubereporting_v1.Options) { + return this.getAPI('youtubereporting', versionOrOptions); } } diff --git a/src/apis/kgsearch/v1.ts b/src/apis/kgsearch/v1.ts index c8aa0c8e1f8..4c35eca83d7 100644 --- a/src/apis/kgsearch/v1.ts +++ b/src/apis/kgsearch/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace kgsearch_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Knowledge Graph Search API * @@ -74,17 +77,18 @@ export namespace kgsearch_v1 { * The local context applicable for the response. See more details at * http://www.w3.org/TR/json-ld/#context-definitions. */ - context: any; + '@context'?: any; /** * The schema type of top-level JSON-LD object, e.g. ItemList. */ - type: any; + '@type'?: any; /** * The item list of search results. */ - itemListElement: any[]; + itemListElement?: any[]; } + export class Resource$Entities { root: Kgsearch; constructor(root: Kgsearch) { @@ -117,26 +121,37 @@ export namespace kgsearch_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Entities$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Entities$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Entities$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$Entities$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Entities$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entities$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://kgsearch.googleapis.com/'; const parameters = { options: Object.assign( @@ -158,4 +173,45 @@ export namespace kgsearch_v1 { } } } + + export interface Params$Resource$Entities$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The list of entity id to be used for search instead of query string. To + * specify multiple ids in the HTTP request, repeat the parameter in the URL + * as in ...?ids=A&ids=B + */ + ids?: string; + /** + * Enables indenting of json results. + */ + indent?: boolean; + /** + * The list of language codes (defined in ISO 693) to run the query with, + * e.g. 'en'. + */ + languages?: string; + /** + * Limits the number of entities to be returned. + */ + limit?: number; + /** + * Enables prefix match against names and aliases of entities + */ + prefix?: boolean; + /** + * The literal query string for search. + */ + query?: string; + /** + * Restricts returned entities with these types, e.g. Person (as defined in + * http://schema.org/Person). If multiple types are specified, returned + * entities will contain one or more of these types. + */ + types?: string; + } } diff --git a/src/apis/language/v1.ts b/src/apis/language/v1.ts index ef495485e5a..b56d3dfa444 100644 --- a/src/apis/language/v1.ts +++ b/src/apis/language/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace language_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Natural Language API * @@ -74,11 +77,11 @@ export namespace language_v1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The entity analysis response message. @@ -87,13 +90,13 @@ export namespace language_v1 { /** * The recognized entities in the input document. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; } /** * The entity-level sentiment analysis request message. @@ -102,11 +105,11 @@ export namespace language_v1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The entity-level sentiment analysis response message. @@ -115,13 +118,13 @@ export namespace language_v1 { /** * The recognized entities in the input document with associated sentiments. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; } /** * The sentiment analysis request message. @@ -130,11 +133,11 @@ export namespace language_v1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate sentence offsets. */ - encodingType: string; + encodingType?: string; } /** * The sentiment analysis response message. @@ -143,17 +146,17 @@ export namespace language_v1 { /** * The overall sentiment of the input document. */ - documentSentiment: Schema$Sentiment; + documentSentiment?: Schema$Sentiment; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * The sentiment for all the sentences in the document. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; } /** * The syntax analysis request message. @@ -162,11 +165,11 @@ export namespace language_v1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The syntax analysis response message. @@ -177,15 +180,15 @@ export namespace language_v1 { * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * Sentences in the input document. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; /** * Tokens, along with their syntactic information, in the input document. */ - tokens: Schema$Token[]; + tokens?: Schema$Token[]; } /** * The request message for the text annotation API, which can perform multiple @@ -195,15 +198,15 @@ export namespace language_v1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; /** * The enabled features. */ - features: Schema$Features; + features?: Schema$Features; } /** * The text annotations response message. @@ -212,35 +215,35 @@ export namespace language_v1 { /** * Categories identified in the input document. */ - categories: Schema$ClassificationCategory[]; + categories?: Schema$ClassificationCategory[]; /** * The overall sentiment for the document. Populated if the user enables * AnnotateTextRequest.Features.extract_document_sentiment. */ - documentSentiment: Schema$Sentiment; + documentSentiment?: Schema$Sentiment; /** * Entities, along with their semantic information, in the input document. * Populated if the user enables * AnnotateTextRequest.Features.extract_entities. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * Sentences in the input document. Populated if the user enables * AnnotateTextRequest.Features.extract_syntax. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; /** * Tokens, along with their syntactic information, in the input document. * Populated if the user enables * AnnotateTextRequest.Features.extract_syntax. */ - tokens: Schema$Token[]; + tokens?: Schema$Token[]; } /** * Represents a category returned from the text classifier. @@ -250,12 +253,12 @@ export namespace language_v1 { * The classifier's confidence of the category. Number represents how * certain the classifier is that this category represents the given text. */ - confidence: number; + confidence?: number; /** * The name of the category representing the document, from the [predefined * taxonomy](/natural-language/docs/categories). */ - name: string; + name?: string; } /** * The document classification request message. @@ -264,7 +267,7 @@ export namespace language_v1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; } /** * The document classification response message. @@ -273,7 +276,7 @@ export namespace language_v1 { /** * Categories representing the input document. */ - categories: Schema$ClassificationCategory[]; + categories?: Schema$ClassificationCategory[]; } /** * Represents dependency parse tree information for a token. (For more @@ -288,11 +291,11 @@ export namespace language_v1 { * If this token is a root token, then the `head_token_index` is its own * index. */ - headTokenIndex: number; + headTokenIndex?: number; /** * The parse label for the token. */ - label: string; + label?: string; } /** * ################################################################ # @@ -302,14 +305,14 @@ export namespace language_v1 { /** * The content of the input in string format. */ - content: string; + content?: string; /** * The Google Cloud Storage URI where the file content is located. This URI * must be of the form: gs://bucket_name/object_name. For more details, see * https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage * object versioning is not supported. */ - gcsContentUri: string; + gcsContentUri?: string; /** * The language of the document (if not specified, the language is * automatically detected). Both ISO and BCP-47 language codes are @@ -319,12 +322,12 @@ export namespace language_v1 { * supported by the called API method, an `INVALID_ARGUMENT` error is * returned. */ - language: string; + language?: string; /** * Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an * `INVALID_ARGUMENT` error. */ - type: string; + type?: string; } /** * Represents a phrase in the text that is a known entity, such as a person, @@ -336,35 +339,35 @@ export namespace language_v1 { * The mentions of this entity in the input document. The API currently * supports proper noun mentions. */ - mentions: Schema$EntityMention[]; + mentions?: Schema$EntityMention[]; /** * Metadata associated with the entity. Currently, Wikipedia URLs and * Knowledge Graph MIDs are provided, if available. The associated keys are * "wikipedia_url" and "mid", respectively. */ - metadata: any; + metadata?: any; /** * The representative name for the entity. */ - name: string; + name?: string; /** * The salience score associated with the entity in the [0, 1.0] range. The * salience score for an entity provides information about the importance or * centrality of that entity to the entire document text. Scores closer to 0 * are less salient, while scores closer to 1.0 are highly salient. */ - salience: number; + salience?: number; /** * For calls to AnalyzeEntitySentiment or if * AnnotateTextRequest.Features.extract_entity_sentiment is set to true, * this field will contain the aggregate sentiment expressed for this entity * in the provided document. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The entity type. */ - type: string; + type?: string; } /** * Represents a mention for an entity in the text. Currently, proper noun @@ -377,15 +380,15 @@ export namespace language_v1 { * this field will contain the sentiment expressed for this mention of the * entity in the provided document. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The mention text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; /** * The type of the entity mention. */ - type: string; + type?: string; } /** * All available features for sentiment, syntax, and semantic analysis. @@ -395,23 +398,23 @@ export namespace language_v1 { /** * Classify the full document into categories. */ - classifyText: boolean; + classifyText?: boolean; /** * Extract document-level sentiment. */ - extractDocumentSentiment: boolean; + extractDocumentSentiment?: boolean; /** * Extract entities. */ - extractEntities: boolean; + extractEntities?: boolean; /** * Extract entities and their associated sentiment. */ - extractEntitySentiment: boolean; + extractEntitySentiment?: boolean; /** * Extract syntax information. */ - extractSyntax: boolean; + extractSyntax?: boolean; } /** * Represents part of speech information for a token. Parts of speech are as @@ -421,51 +424,51 @@ export namespace language_v1 { /** * The grammatical aspect. */ - aspect: string; + aspect?: string; /** * The grammatical case. */ - case: string; + case?: string; /** * The grammatical form. */ - form: string; + form?: string; /** * The grammatical gender. */ - gender: string; + gender?: string; /** * The grammatical mood. */ - mood: string; + mood?: string; /** * The grammatical number. */ - number: string; + number?: string; /** * The grammatical person. */ - person: string; + person?: string; /** * The grammatical properness. */ - proper: string; + proper?: string; /** * The grammatical reciprocity. */ - reciprocity: string; + reciprocity?: string; /** * The part of speech tag. */ - tag: string; + tag?: string; /** * The grammatical tense. */ - tense: string; + tense?: string; /** * The grammatical voice. */ - voice: string; + voice?: string; } /** * Represents a sentence in the input document. @@ -476,11 +479,11 @@ export namespace language_v1 { * AnnotateTextRequest.Features.extract_document_sentiment is set to true, * this field will contain the sentiment for the sentence. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The sentence text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; } /** * Represents the feeling associated with the entire text or entities in the @@ -492,12 +495,12 @@ export namespace language_v1 { * absolute magnitude of sentiment regardless of score (positive or * negative). */ - magnitude: number; + magnitude?: number; /** * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive * sentiment). */ - score: number; + score?: number; } /** * The `Status` type defines a logical error model that is suitable for @@ -539,18 +542,18 @@ export namespace language_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents an output piece of text. @@ -560,11 +563,11 @@ export namespace language_v1 { * The API calculates the beginning offset of the content in the original * document according to the EncodingType specified in the API request. */ - beginOffset: number; + beginOffset?: number; /** * The content of the output text. */ - content: string; + content?: string; } /** * Represents the smallest syntactic building block of the text. @@ -573,22 +576,23 @@ export namespace language_v1 { /** * Dependency tree parse for this token. */ - dependencyEdge: Schema$DependencyEdge; + dependencyEdge?: Schema$DependencyEdge; /** * [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the * token. */ - lemma: string; + lemma?: string; /** * Parts of speech tag for this token. */ - partOfSpeech: Schema$PartOfSpeech; + partOfSpeech?: Schema$PartOfSpeech; /** * The token text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; } + export class Resource$Documents { root: Language; constructor(root: Language) { @@ -615,28 +619,41 @@ export namespace language_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeEntities(params?: any, options?: MethodOptions): - AxiosPromise; analyzeEntities( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzeentities, + options?: MethodOptions): AxiosPromise; + analyzeEntities( + params: Params$Resource$Documents$Analyzeentities, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; analyzeEntities( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzeentities, + callback: BodyResponseCallback): void; + analyzeEntities( + callback: BodyResponseCallback): void; + analyzeEntities( + paramsOrCallback?: Params$Resource$Documents$Analyzeentities| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Analyzeentities; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzeentities; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -672,29 +689,45 @@ export namespace language_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeEntitySentiment(params?: any, options?: MethodOptions): + analyzeEntitySentiment( + params?: Params$Resource$Documents$Analyzeentitysentiment, + options?: MethodOptions): AxiosPromise; analyzeEntitySentiment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzeentitysentiment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; analyzeEntitySentiment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzeentitysentiment, + callback: BodyResponseCallback): + void; + analyzeEntitySentiment( + callback: BodyResponseCallback): + void; + analyzeEntitySentiment( + paramsOrCallback?: Params$Resource$Documents$Analyzeentitysentiment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Documents$Analyzeentitysentiment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzeentitysentiment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -731,28 +764,41 @@ export namespace language_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeSentiment(params?: any, options?: MethodOptions): - AxiosPromise; analyzeSentiment( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzesentiment, + options?: MethodOptions): AxiosPromise; + analyzeSentiment( + params: Params$Resource$Documents$Analyzesentiment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + analyzeSentiment( + params: Params$Resource$Documents$Analyzesentiment, + callback: BodyResponseCallback): void; analyzeSentiment( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + analyzeSentiment( + paramsOrCallback?: Params$Resource$Documents$Analyzesentiment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Documents$Analyzesentiment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzesentiment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -789,28 +835,41 @@ export namespace language_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeSyntax(params?: any, options?: MethodOptions): - AxiosPromise; analyzeSyntax( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzesyntax, + options?: MethodOptions): AxiosPromise; + analyzeSyntax( + params: Params$Resource$Documents$Analyzesyntax, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + analyzeSyntax( + params: Params$Resource$Documents$Analyzesyntax, + callback: BodyResponseCallback): void; + analyzeSyntax(callback: BodyResponseCallback): + void; analyzeSyntax( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Documents$Analyzesyntax| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Analyzesyntax; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzesyntax; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -846,28 +905,41 @@ export namespace language_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotateText(params?: any, options?: MethodOptions): - AxiosPromise; annotateText( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Annotatetext, + options?: MethodOptions): AxiosPromise; + annotateText( + params: Params$Resource$Documents$Annotatetext, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + annotateText( + params: Params$Resource$Documents$Annotatetext, + callback: BodyResponseCallback): void; + annotateText(callback: BodyResponseCallback): + void; annotateText( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Documents$Annotatetext| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Annotatetext; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Annotatetext; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -902,28 +974,41 @@ export namespace language_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - classifyText(params?: any, options?: MethodOptions): - AxiosPromise; classifyText( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Classifytext, + options?: MethodOptions): AxiosPromise; + classifyText( + params: Params$Resource$Documents$Classifytext, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + classifyText( + params: Params$Resource$Documents$Classifytext, + callback: BodyResponseCallback): void; + classifyText(callback: BodyResponseCallback): + void; classifyText( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Documents$Classifytext| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Classifytext; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Classifytext; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -945,4 +1030,71 @@ export namespace language_v1 { } } } + + export interface Params$Resource$Documents$Analyzeentities { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeEntitiesRequest; + } + export interface Params$Resource$Documents$Analyzeentitysentiment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeEntitySentimentRequest; + } + export interface Params$Resource$Documents$Analyzesentiment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeSentimentRequest; + } + export interface Params$Resource$Documents$Analyzesyntax { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeSyntaxRequest; + } + export interface Params$Resource$Documents$Annotatetext { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnnotateTextRequest; + } + export interface Params$Resource$Documents$Classifytext { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ClassifyTextRequest; + } } diff --git a/src/apis/language/v1beta1.ts b/src/apis/language/v1beta1.ts index 798a3f403c1..0ea4553b7aa 100644 --- a/src/apis/language/v1beta1.ts +++ b/src/apis/language/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace language_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Natural Language API * @@ -74,11 +77,11 @@ export namespace language_v1beta1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The entity analysis response message. @@ -87,13 +90,13 @@ export namespace language_v1beta1 { /** * The recognized entities in the input document. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; } /** * The sentiment analysis request message. @@ -102,12 +105,12 @@ export namespace language_v1beta1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate sentence offsets for the * sentence sentiment. */ - encodingType: string; + encodingType?: string; } /** * The sentiment analysis response message. @@ -116,17 +119,17 @@ export namespace language_v1beta1 { /** * The overall sentiment of the input document. */ - documentSentiment: Schema$Sentiment; + documentSentiment?: Schema$Sentiment; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * The sentiment for all the sentences in the document. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; } /** * The syntax analysis request message. @@ -135,11 +138,11 @@ export namespace language_v1beta1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The syntax analysis response message. @@ -150,15 +153,15 @@ export namespace language_v1beta1 { * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * Sentences in the input document. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; /** * Tokens, along with their syntactic information, in the input document. */ - tokens: Schema$Token[]; + tokens?: Schema$Token[]; } /** * The request message for the text annotation API, which can perform multiple @@ -168,15 +171,15 @@ export namespace language_v1beta1 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; /** * The enabled features. */ - features: Schema$Features; + features?: Schema$Features; } /** * The text annotations response message. @@ -186,30 +189,30 @@ export namespace language_v1beta1 { * The overall sentiment for the document. Populated if the user enables * AnnotateTextRequest.Features.extract_document_sentiment. */ - documentSentiment: Schema$Sentiment; + documentSentiment?: Schema$Sentiment; /** * Entities, along with their semantic information, in the input document. * Populated if the user enables * AnnotateTextRequest.Features.extract_entities. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * Sentences in the input document. Populated if the user enables * AnnotateTextRequest.Features.extract_syntax. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; /** * Tokens, along with their syntactic information, in the input document. * Populated if the user enables * AnnotateTextRequest.Features.extract_syntax. */ - tokens: Schema$Token[]; + tokens?: Schema$Token[]; } /** * Represents dependency parse tree information for a token. @@ -222,11 +225,11 @@ export namespace language_v1beta1 { * If this token is a root token, then the `head_token_index` is its own * index. */ - headTokenIndex: number; + headTokenIndex?: number; /** * The parse label for the token. */ - label: string; + label?: string; } /** * ################################################################ # @@ -236,14 +239,14 @@ export namespace language_v1beta1 { /** * The content of the input in string format. */ - content: string; + content?: string; /** * The Google Cloud Storage URI where the file content is located. This URI * must be of the form: gs://bucket_name/object_name. For more details, see * https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage * object versioning is not supported. */ - gcsContentUri: string; + gcsContentUri?: string; /** * The language of the document (if not specified, the language is * automatically detected). Both ISO and BCP-47 language codes are @@ -253,12 +256,12 @@ export namespace language_v1beta1 { * supported by the called API method, an `INVALID_ARGUMENT` error is * returned. */ - language: string; + language?: string; /** * Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an * `INVALID_ARGUMENT` error. */ - type: string; + type?: string; } /** * Represents a phrase in the text that is a known entity, such as a person, @@ -270,28 +273,28 @@ export namespace language_v1beta1 { * The mentions of this entity in the input document. The API currently * supports proper noun mentions. */ - mentions: Schema$EntityMention[]; + mentions?: Schema$EntityMention[]; /** * Metadata associated with the entity. Currently, Wikipedia URLs and * Knowledge Graph MIDs are provided, if available. The associated keys are * "wikipedia_url" and "mid", respectively. */ - metadata: any; + metadata?: any; /** * The representative name for the entity. */ - name: string; + name?: string; /** * The salience score associated with the entity in the [0, 1.0] range. The * salience score for an entity provides information about the importance or * centrality of that entity to the entire document text. Scores closer to 0 * are less salient, while scores closer to 1.0 are highly salient. */ - salience: number; + salience?: number; /** * The entity type. */ - type: string; + type?: string; } /** * Represents a mention for an entity in the text. Currently, proper noun @@ -301,11 +304,11 @@ export namespace language_v1beta1 { /** * The mention text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; /** * The type of the entity mention. */ - type: string; + type?: string; } /** * All available features for sentiment, syntax, and semantic analysis. @@ -315,15 +318,15 @@ export namespace language_v1beta1 { /** * Extract document-level sentiment. */ - extractDocumentSentiment: boolean; + extractDocumentSentiment?: boolean; /** * Extract entities. */ - extractEntities: boolean; + extractEntities?: boolean; /** * Extract syntax information. */ - extractSyntax: boolean; + extractSyntax?: boolean; } /** * Represents part of speech information for a token. @@ -332,51 +335,51 @@ export namespace language_v1beta1 { /** * The grammatical aspect. */ - aspect: string; + aspect?: string; /** * The grammatical case. */ - case: string; + case?: string; /** * The grammatical form. */ - form: string; + form?: string; /** * The grammatical gender. */ - gender: string; + gender?: string; /** * The grammatical mood. */ - mood: string; + mood?: string; /** * The grammatical number. */ - number: string; + number?: string; /** * The grammatical person. */ - person: string; + person?: string; /** * The grammatical properness. */ - proper: string; + proper?: string; /** * The grammatical reciprocity. */ - reciprocity: string; + reciprocity?: string; /** * The part of speech tag. */ - tag: string; + tag?: string; /** * The grammatical tense. */ - tense: string; + tense?: string; /** * The grammatical voice. */ - voice: string; + voice?: string; } /** * Represents a sentence in the input document. @@ -387,11 +390,11 @@ export namespace language_v1beta1 { * AnnotateTextRequest.Features.extract_document_sentiment is set to true, * this field will contain the sentiment for the sentence. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The sentence text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; } /** * Represents the feeling associated with the entire text or entities in the @@ -403,18 +406,18 @@ export namespace language_v1beta1 { * absolute magnitude of sentiment regardless of score (positive or * negative). */ - magnitude: number; + magnitude?: number; /** * DEPRECATED FIELD - This field is being deprecated in favor of score. * Please refer to our documentation at * https://cloud.google.com/natural-language/docs for more information. */ - polarity: number; + polarity?: number; /** * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive * sentiment). */ - score: number; + score?: number; } /** * The `Status` type defines a logical error model that is suitable for @@ -456,18 +459,18 @@ export namespace language_v1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents an output piece of text. @@ -477,11 +480,11 @@ export namespace language_v1beta1 { * The API calculates the beginning offset of the content in the original * document according to the EncodingType specified in the API request. */ - beginOffset: number; + beginOffset?: number; /** * The content of the output text. */ - content: string; + content?: string; } /** * Represents the smallest syntactic building block of the text. @@ -490,22 +493,23 @@ export namespace language_v1beta1 { /** * Dependency tree parse for this token. */ - dependencyEdge: Schema$DependencyEdge; + dependencyEdge?: Schema$DependencyEdge; /** * [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the * token. */ - lemma: string; + lemma?: string; /** * Parts of speech tag for this token. */ - partOfSpeech: Schema$PartOfSpeech; + partOfSpeech?: Schema$PartOfSpeech; /** * The token text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; } + export class Resource$Documents { root: Language; constructor(root: Language) { @@ -532,28 +536,41 @@ export namespace language_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeEntities(params?: any, options?: MethodOptions): - AxiosPromise; analyzeEntities( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzeentities, + options?: MethodOptions): AxiosPromise; + analyzeEntities( + params: Params$Resource$Documents$Analyzeentities, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + analyzeEntities( + params: Params$Resource$Documents$Analyzeentities, + callback: BodyResponseCallback): void; analyzeEntities( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + analyzeEntities( + paramsOrCallback?: Params$Resource$Documents$Analyzeentities| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Analyzeentities; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzeentities; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -588,28 +605,41 @@ export namespace language_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeSentiment(params?: any, options?: MethodOptions): - AxiosPromise; analyzeSentiment( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzesentiment, + options?: MethodOptions): AxiosPromise; + analyzeSentiment( + params: Params$Resource$Documents$Analyzesentiment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + analyzeSentiment( + params: Params$Resource$Documents$Analyzesentiment, + callback: BodyResponseCallback): void; analyzeSentiment( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + analyzeSentiment( + paramsOrCallback?: Params$Resource$Documents$Analyzesentiment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Documents$Analyzesentiment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzesentiment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -646,28 +676,41 @@ export namespace language_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeSyntax(params?: any, options?: MethodOptions): - AxiosPromise; analyzeSyntax( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzesyntax, + options?: MethodOptions): AxiosPromise; + analyzeSyntax( + params: Params$Resource$Documents$Analyzesyntax, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; analyzeSyntax( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzesyntax, + callback: BodyResponseCallback): void; + analyzeSyntax(callback: BodyResponseCallback): + void; + analyzeSyntax( + paramsOrCallback?: Params$Resource$Documents$Analyzesyntax| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Analyzesyntax; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzesyntax; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -703,28 +746,41 @@ export namespace language_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotateText(params?: any, options?: MethodOptions): - AxiosPromise; annotateText( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Annotatetext, + options?: MethodOptions): AxiosPromise; + annotateText( + params: Params$Resource$Documents$Annotatetext, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; annotateText( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Annotatetext, + callback: BodyResponseCallback): void; + annotateText(callback: BodyResponseCallback): + void; + annotateText( + paramsOrCallback?: Params$Resource$Documents$Annotatetext| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Annotatetext; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Annotatetext; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -746,4 +802,49 @@ export namespace language_v1beta1 { } } } + + export interface Params$Resource$Documents$Analyzeentities { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeEntitiesRequest; + } + export interface Params$Resource$Documents$Analyzesentiment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeSentimentRequest; + } + export interface Params$Resource$Documents$Analyzesyntax { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeSyntaxRequest; + } + export interface Params$Resource$Documents$Annotatetext { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnnotateTextRequest; + } } diff --git a/src/apis/language/v1beta2.ts b/src/apis/language/v1beta2.ts index 614fbb4dcd7..344c8b1a4ca 100644 --- a/src/apis/language/v1beta2.ts +++ b/src/apis/language/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace language_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Cloud Natural Language API * @@ -74,11 +77,11 @@ export namespace language_v1beta2 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The entity analysis response message. @@ -87,13 +90,13 @@ export namespace language_v1beta2 { /** * The recognized entities in the input document. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; } /** * The entity-level sentiment analysis request message. @@ -102,11 +105,11 @@ export namespace language_v1beta2 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The entity-level sentiment analysis response message. @@ -115,13 +118,13 @@ export namespace language_v1beta2 { /** * The recognized entities in the input document with associated sentiments. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; } /** * The sentiment analysis request message. @@ -130,12 +133,12 @@ export namespace language_v1beta2 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate sentence offsets for the * sentence sentiment. */ - encodingType: string; + encodingType?: string; } /** * The sentiment analysis response message. @@ -144,17 +147,17 @@ export namespace language_v1beta2 { /** * The overall sentiment of the input document. */ - documentSentiment: Schema$Sentiment; + documentSentiment?: Schema$Sentiment; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * The sentiment for all the sentences in the document. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; } /** * The syntax analysis request message. @@ -163,11 +166,11 @@ export namespace language_v1beta2 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; } /** * The syntax analysis response message. @@ -178,15 +181,15 @@ export namespace language_v1beta2 { * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * Sentences in the input document. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; /** * Tokens, along with their syntactic information, in the input document. */ - tokens: Schema$Token[]; + tokens?: Schema$Token[]; } /** * The request message for the text annotation API, which can perform multiple @@ -196,15 +199,15 @@ export namespace language_v1beta2 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; /** * The encoding type used by the API to calculate offsets. */ - encodingType: string; + encodingType?: string; /** * The enabled features. */ - features: Schema$Features; + features?: Schema$Features; } /** * The text annotations response message. @@ -213,35 +216,35 @@ export namespace language_v1beta2 { /** * Categories identified in the input document. */ - categories: Schema$ClassificationCategory[]; + categories?: Schema$ClassificationCategory[]; /** * The overall sentiment for the document. Populated if the user enables * AnnotateTextRequest.Features.extract_document_sentiment. */ - documentSentiment: Schema$Sentiment; + documentSentiment?: Schema$Sentiment; /** * Entities, along with their semantic information, in the input document. * Populated if the user enables * AnnotateTextRequest.Features.extract_entities. */ - entities: Schema$Entity[]; + entities?: Schema$Entity[]; /** * The language of the text, which will be the same as the language * specified in the request or, if not specified, the automatically-detected * language. See Document.language field for more details. */ - language: string; + language?: string; /** * Sentences in the input document. Populated if the user enables * AnnotateTextRequest.Features.extract_syntax. */ - sentences: Schema$Sentence[]; + sentences?: Schema$Sentence[]; /** * Tokens, along with their syntactic information, in the input document. * Populated if the user enables * AnnotateTextRequest.Features.extract_syntax. */ - tokens: Schema$Token[]; + tokens?: Schema$Token[]; } /** * Represents a category returned from the text classifier. @@ -251,12 +254,12 @@ export namespace language_v1beta2 { * The classifier's confidence of the category. Number represents how * certain the classifier is that this category represents the given text. */ - confidence: number; + confidence?: number; /** * The name of the category representing the document, from the [predefined * taxonomy](/natural-language/docs/categories). */ - name: string; + name?: string; } /** * The document classification request message. @@ -265,7 +268,7 @@ export namespace language_v1beta2 { /** * Input document. */ - document: Schema$Document; + document?: Schema$Document; } /** * The document classification response message. @@ -274,7 +277,7 @@ export namespace language_v1beta2 { /** * Categories representing the input document. */ - categories: Schema$ClassificationCategory[]; + categories?: Schema$ClassificationCategory[]; } /** * Represents dependency parse tree information for a token. @@ -287,11 +290,11 @@ export namespace language_v1beta2 { * If this token is a root token, then the `head_token_index` is its own * index. */ - headTokenIndex: number; + headTokenIndex?: number; /** * The parse label for the token. */ - label: string; + label?: string; } /** * ################################################################ # @@ -301,14 +304,14 @@ export namespace language_v1beta2 { /** * The content of the input in string format. */ - content: string; + content?: string; /** * The Google Cloud Storage URI where the file content is located. This URI * must be of the form: gs://bucket_name/object_name. For more details, see * https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage * object versioning is not supported. */ - gcsContentUri: string; + gcsContentUri?: string; /** * The language of the document (if not specified, the language is * automatically detected). Both ISO and BCP-47 language codes are @@ -318,12 +321,12 @@ export namespace language_v1beta2 { * supported by the called API method, an `INVALID_ARGUMENT` error is * returned. */ - language: string; + language?: string; /** * Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an * `INVALID_ARGUMENT` error. */ - type: string; + type?: string; } /** * Represents a phrase in the text that is a known entity, such as a person, @@ -335,35 +338,35 @@ export namespace language_v1beta2 { * The mentions of this entity in the input document. The API currently * supports proper noun mentions. */ - mentions: Schema$EntityMention[]; + mentions?: Schema$EntityMention[]; /** * Metadata associated with the entity. Currently, Wikipedia URLs and * Knowledge Graph MIDs are provided, if available. The associated keys are * "wikipedia_url" and "mid", respectively. */ - metadata: any; + metadata?: any; /** * The representative name for the entity. */ - name: string; + name?: string; /** * The salience score associated with the entity in the [0, 1.0] range. The * salience score for an entity provides information about the importance or * centrality of that entity to the entire document text. Scores closer to 0 * are less salient, while scores closer to 1.0 are highly salient. */ - salience: number; + salience?: number; /** * For calls to AnalyzeEntitySentiment or if * AnnotateTextRequest.Features.extract_entity_sentiment is set to true, * this field will contain the aggregate sentiment expressed for this entity * in the provided document. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The entity type. */ - type: string; + type?: string; } /** * Represents a mention for an entity in the text. Currently, proper noun @@ -376,15 +379,15 @@ export namespace language_v1beta2 { * this field will contain the sentiment expressed for this mention of the * entity in the provided document. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The mention text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; /** * The type of the entity mention. */ - type: string; + type?: string; } /** * All available features for sentiment, syntax, and semantic analysis. @@ -396,23 +399,23 @@ export namespace language_v1beta2 { * use the default model which classifies into a [predefined * taxonomy](/natural-language/docs/categories). */ - classifyText: boolean; + classifyText?: boolean; /** * Extract document-level sentiment. */ - extractDocumentSentiment: boolean; + extractDocumentSentiment?: boolean; /** * Extract entities. */ - extractEntities: boolean; + extractEntities?: boolean; /** * Extract entities and their associated sentiment. */ - extractEntitySentiment: boolean; + extractEntitySentiment?: boolean; /** * Extract syntax information. */ - extractSyntax: boolean; + extractSyntax?: boolean; } /** * Represents part of speech information for a token. @@ -421,51 +424,51 @@ export namespace language_v1beta2 { /** * The grammatical aspect. */ - aspect: string; + aspect?: string; /** * The grammatical case. */ - case: string; + case?: string; /** * The grammatical form. */ - form: string; + form?: string; /** * The grammatical gender. */ - gender: string; + gender?: string; /** * The grammatical mood. */ - mood: string; + mood?: string; /** * The grammatical number. */ - number: string; + number?: string; /** * The grammatical person. */ - person: string; + person?: string; /** * The grammatical properness. */ - proper: string; + proper?: string; /** * The grammatical reciprocity. */ - reciprocity: string; + reciprocity?: string; /** * The part of speech tag. */ - tag: string; + tag?: string; /** * The grammatical tense. */ - tense: string; + tense?: string; /** * The grammatical voice. */ - voice: string; + voice?: string; } /** * Represents a sentence in the input document. @@ -476,11 +479,11 @@ export namespace language_v1beta2 { * AnnotateTextRequest.Features.extract_document_sentiment is set to true, * this field will contain the sentiment for the sentence. */ - sentiment: Schema$Sentiment; + sentiment?: Schema$Sentiment; /** * The sentence text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; } /** * Represents the feeling associated with the entire text or entities in the @@ -492,12 +495,12 @@ export namespace language_v1beta2 { * absolute magnitude of sentiment regardless of score (positive or * negative). */ - magnitude: number; + magnitude?: number; /** * Sentiment score between -1.0 (negative sentiment) and 1.0 (positive * sentiment). */ - score: number; + score?: number; } /** * The `Status` type defines a logical error model that is suitable for @@ -539,18 +542,18 @@ export namespace language_v1beta2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents an output piece of text. @@ -560,11 +563,11 @@ export namespace language_v1beta2 { * The API calculates the beginning offset of the content in the original * document according to the EncodingType specified in the API request. */ - beginOffset: number; + beginOffset?: number; /** * The content of the output text. */ - content: string; + content?: string; } /** * Represents the smallest syntactic building block of the text. @@ -573,22 +576,23 @@ export namespace language_v1beta2 { /** * Dependency tree parse for this token. */ - dependencyEdge: Schema$DependencyEdge; + dependencyEdge?: Schema$DependencyEdge; /** * [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the * token. */ - lemma: string; + lemma?: string; /** * Parts of speech tag for this token. */ - partOfSpeech: Schema$PartOfSpeech; + partOfSpeech?: Schema$PartOfSpeech; /** * The token text. */ - text: Schema$TextSpan; + text?: Schema$TextSpan; } + export class Resource$Documents { root: Language; constructor(root: Language) { @@ -615,28 +619,41 @@ export namespace language_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeEntities(params?: any, options?: MethodOptions): - AxiosPromise; analyzeEntities( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzeentities, + options?: MethodOptions): AxiosPromise; + analyzeEntities( + params: Params$Resource$Documents$Analyzeentities, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; analyzeEntities( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzeentities, + callback: BodyResponseCallback): void; + analyzeEntities( + callback: BodyResponseCallback): void; + analyzeEntities( + paramsOrCallback?: Params$Resource$Documents$Analyzeentities| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Analyzeentities; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzeentities; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -672,29 +689,45 @@ export namespace language_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeEntitySentiment(params?: any, options?: MethodOptions): + analyzeEntitySentiment( + params?: Params$Resource$Documents$Analyzeentitysentiment, + options?: MethodOptions): AxiosPromise; analyzeEntitySentiment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzeentitysentiment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; analyzeEntitySentiment( - params?: any, - options?: MethodOptions| + params: Params$Resource$Documents$Analyzeentitysentiment, + callback: BodyResponseCallback): + void; + analyzeEntitySentiment( + callback: BodyResponseCallback): + void; + analyzeEntitySentiment( + paramsOrCallback?: Params$Resource$Documents$Analyzeentitysentiment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Documents$Analyzeentitysentiment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzeentitysentiment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -731,28 +764,41 @@ export namespace language_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeSentiment(params?: any, options?: MethodOptions): - AxiosPromise; analyzeSentiment( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzesentiment, + options?: MethodOptions): AxiosPromise; + analyzeSentiment( + params: Params$Resource$Documents$Analyzesentiment, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + analyzeSentiment( + params: Params$Resource$Documents$Analyzesentiment, + callback: BodyResponseCallback): void; analyzeSentiment( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + analyzeSentiment( + paramsOrCallback?: Params$Resource$Documents$Analyzesentiment| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Documents$Analyzesentiment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzesentiment; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -789,28 +835,41 @@ export namespace language_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - analyzeSyntax(params?: any, options?: MethodOptions): - AxiosPromise; analyzeSyntax( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Analyzesyntax, + options?: MethodOptions): AxiosPromise; + analyzeSyntax( + params: Params$Resource$Documents$Analyzesyntax, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + analyzeSyntax( + params: Params$Resource$Documents$Analyzesyntax, + callback: BodyResponseCallback): void; + analyzeSyntax(callback: BodyResponseCallback): + void; analyzeSyntax( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Documents$Analyzesyntax| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Analyzesyntax; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Analyzesyntax; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -846,28 +905,41 @@ export namespace language_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotateText(params?: any, options?: MethodOptions): - AxiosPromise; annotateText( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Annotatetext, + options?: MethodOptions): AxiosPromise; + annotateText( + params: Params$Resource$Documents$Annotatetext, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + annotateText( + params: Params$Resource$Documents$Annotatetext, + callback: BodyResponseCallback): void; + annotateText(callback: BodyResponseCallback): + void; annotateText( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Documents$Annotatetext| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Annotatetext; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Annotatetext; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -902,28 +974,41 @@ export namespace language_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - classifyText(params?: any, options?: MethodOptions): - AxiosPromise; classifyText( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Documents$Classifytext, + options?: MethodOptions): AxiosPromise; + classifyText( + params: Params$Resource$Documents$Classifytext, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + classifyText( + params: Params$Resource$Documents$Classifytext, + callback: BodyResponseCallback): void; + classifyText(callback: BodyResponseCallback): + void; classifyText( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Documents$Classifytext| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Documents$Classifytext; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Documents$Classifytext; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; const parameters = { options: Object.assign( @@ -945,4 +1030,71 @@ export namespace language_v1beta2 { } } } + + export interface Params$Resource$Documents$Analyzeentities { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeEntitiesRequest; + } + export interface Params$Resource$Documents$Analyzeentitysentiment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeEntitySentimentRequest; + } + export interface Params$Resource$Documents$Analyzesentiment { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeSentimentRequest; + } + export interface Params$Resource$Documents$Analyzesyntax { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnalyzeSyntaxRequest; + } + export interface Params$Resource$Documents$Annotatetext { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AnnotateTextRequest; + } + export interface Params$Resource$Documents$Classifytext { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ClassifyTextRequest; + } } diff --git a/src/apis/licensing/v1.ts b/src/apis/licensing/v1.ts index 1a2cc0d288d..9a7787931ef 100644 --- a/src/apis/licensing/v1.ts +++ b/src/apis/licensing/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace licensing_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Enterprise License Manager API * @@ -72,35 +75,35 @@ export namespace licensing_v1 { /** * ETag of the resource. */ - etags: string; + etags?: string; /** * Identifies the resource as a LicenseAssignment. */ - kind: string; + kind?: string; /** * Id of the product. */ - productId: string; + productId?: string; /** * Display Name of the product. */ - productName: string; + productName?: string; /** * Link to this page. */ - selfLink: string; + selfLink?: string; /** * Id of the sku of the product. */ - skuId: string; + skuId?: string; /** * Display Name of the sku of the product. */ - skuName: string; + skuName?: string; /** * Email id of the user. */ - userId: string; + userId?: string; } /** * Template for LicenseAssignment Insert request @@ -109,7 +112,7 @@ export namespace licensing_v1 { /** * Email id of the user */ - userId: string; + userId?: string; } /** * LicesnseAssignment List for a given product/sku for a customer. @@ -118,22 +121,23 @@ export namespace licensing_v1 { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * The LicenseAssignments in this page of results. */ - items: Schema$LicenseAssignment[]; + items?: Schema$LicenseAssignment[]; /** * Identifies the resource as a collection of LicenseAssignments. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Licenseassignments { root: Licensing; constructor(root: Licensing) { @@ -160,22 +164,37 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Licenseassignments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Licenseassignments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Licenseassignments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Licenseassignments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Licenseassignments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -214,24 +233,35 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Licenseassignments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Licenseassignments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Licenseassignments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Licenseassignments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Licenseassignments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -270,26 +300,39 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Licenseassignments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Licenseassignments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Licenseassignments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Licenseassignments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Licenseassignments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -328,28 +371,41 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listForProduct(params?: any, options?: MethodOptions): - AxiosPromise; listForProduct( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Licenseassignments$Listforproduct, + options?: MethodOptions): AxiosPromise; + listForProduct( + params: Params$Resource$Licenseassignments$Listforproduct, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listForProduct( + params: Params$Resource$Licenseassignments$Listforproduct, + callback: BodyResponseCallback): void; listForProduct( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + listForProduct( + paramsOrCallback?: Params$Resource$Licenseassignments$Listforproduct| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Licenseassignments$Listforproduct; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Listforproduct; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -388,28 +444,42 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listForProductAndSku(params?: any, options?: MethodOptions): - AxiosPromise; listForProductAndSku( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Licenseassignments$Listforproductandsku, + options?: MethodOptions): AxiosPromise; + listForProductAndSku( + params: Params$Resource$Licenseassignments$Listforproductandsku, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + listForProductAndSku( + params: Params$Resource$Licenseassignments$Listforproductandsku, + callback: BodyResponseCallback): void; listForProductAndSku( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + listForProductAndSku( + paramsOrCallback?: + Params$Resource$Licenseassignments$Listforproductandsku| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Licenseassignments$Listforproductandsku; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Listforproductandsku; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -448,26 +518,39 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Licenseassignments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Licenseassignments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Licenseassignments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Licenseassignments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Licenseassignments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -507,26 +590,39 @@ export namespace licensing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Licenseassignments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Licenseassignments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Licenseassignments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Licenseassignments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Licenseassignments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Licenseassignments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -550,4 +646,164 @@ export namespace licensing_v1 { } } } + + export interface Params$Resource$Licenseassignments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name for product + */ + productId?: string; + /** + * Name for sku + */ + skuId?: string; + /** + * email id or unique Id of the user + */ + userId?: string; + } + export interface Params$Resource$Licenseassignments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name for product + */ + productId?: string; + /** + * Name for sku + */ + skuId?: string; + /** + * email id or unique Id of the user + */ + userId?: string; + } + export interface Params$Resource$Licenseassignments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name for product + */ + productId?: string; + /** + * Name for sku + */ + skuId?: string; + /** + * Request body metadata + */ + resource?: Schema$LicenseAssignmentInsert; + } + export interface Params$Resource$Licenseassignments$Listforproduct { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * CustomerId represents the customer for whom licenseassignments are + * queried + */ + customerId?: string; + /** + * Maximum number of campaigns to return at one time. Must be positive. + * Optional. Default value is 100. + */ + maxResults?: number; + /** + * Token to fetch the next page.Optional. By default server will return + * first page + */ + pageToken?: string; + /** + * Name for product + */ + productId?: string; + } + export interface Params$Resource$Licenseassignments$Listforproductandsku { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * CustomerId represents the customer for whom licenseassignments are + * queried + */ + customerId?: string; + /** + * Maximum number of campaigns to return at one time. Must be positive. + * Optional. Default value is 100. + */ + maxResults?: number; + /** + * Token to fetch the next page.Optional. By default server will return + * first page + */ + pageToken?: string; + /** + * Name for product + */ + productId?: string; + /** + * Name for sku + */ + skuId?: string; + } + export interface Params$Resource$Licenseassignments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name for product + */ + productId?: string; + /** + * Name for sku for which license would be revoked + */ + skuId?: string; + /** + * email id or unique Id of the user + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$LicenseAssignment; + } + export interface Params$Resource$Licenseassignments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name for product + */ + productId?: string; + /** + * Name for sku for which license would be revoked + */ + skuId?: string; + /** + * email id or unique Id of the user + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$LicenseAssignment; + } } diff --git a/src/apis/logging/v2.ts b/src/apis/logging/v2.ts index 8441e4d153b..0c950e43af8 100644 --- a/src/apis/logging/v2.ts +++ b/src/apis/logging/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace logging_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Stackdriver Logging API * @@ -102,15 +105,15 @@ export namespace logging_v2 { /** * The explicit buckets. */ - explicitBuckets: Schema$Explicit; + explicitBuckets?: Schema$Explicit; /** * The exponential buckets. */ - exponentialBuckets: Schema$Exponential; + exponentialBuckets?: Schema$Exponential; /** * The linear bucket. */ - linearBuckets: Schema$Linear; + linearBuckets?: Schema$Linear; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -132,7 +135,7 @@ export namespace logging_v2 { /** * The values must be monotonically increasing. */ - bounds: number[]; + bounds?: number[]; } /** * Specifies an exponential sequence of buckets that have a width that is @@ -146,15 +149,15 @@ export namespace logging_v2 { /** * Must be greater than 1. */ - growthFactor: number; + growthFactor?: number; /** * Must be greater than 0. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * Must be greater than 0. */ - scale: number; + scale?: number; } /** * A common proto for logging HTTP requests. Only contains semantics defined @@ -166,77 +169,77 @@ export namespace logging_v2 { * The number of HTTP response bytes inserted into cache. Set only when a * cache fill was attempted. */ - cacheFillBytes: string; + cacheFillBytes?: string; /** * Whether or not an entity was served from cache (with or without * validation). */ - cacheHit: boolean; + cacheHit?: boolean; /** * Whether or not a cache lookup was attempted. */ - cacheLookup: boolean; + cacheLookup?: boolean; /** * Whether or not the response was validated with the origin server before * being served from cache. This field is only meaningful if cache_hit is * True. */ - cacheValidatedWithOriginServer: boolean; + cacheValidatedWithOriginServer?: boolean; /** * The request processing latency on the server, from the time the request * was received until the response was sent. */ - latency: string; + latency?: string; /** * Protocol used for the request. Examples: "HTTP/1.1", * "HTTP/2", "websocket" */ - protocol: string; + protocol?: string; /** * The referer URL of the request, as defined in HTTP/1.1 Header Field * Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). */ - referer: string; + referer?: string; /** * The IP address (IPv4 or IPv6) of the client that issued the HTTP request. * Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". */ - remoteIp: string; + remoteIp?: string; /** * The request method. Examples: "GET", "HEAD", * "PUT", "POST". */ - requestMethod: string; + requestMethod?: string; /** * The size of the HTTP request message in bytes, including the request * headers and the request body. */ - requestSize: string; + requestSize?: string; /** * The scheme (http, https), the host name, the path and the query portion * of the URL that was requested. Example: * "http://example.com/some/info?color=red". */ - requestUrl: string; + requestUrl?: string; /** * The size of the HTTP response message sent back to the client, in bytes, * including the response headers and the response body. */ - responseSize: string; + responseSize?: string; /** * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. */ - serverIp: string; + serverIp?: string; /** * The response code indicating the status of response. Examples: 200, 404. */ - status: number; + status?: number; /** * The user agent sent by the client. Example: "Mozilla/4.0 * (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)". */ - userAgent: string; + userAgent?: string; } /** * A description of a label. @@ -245,15 +248,15 @@ export namespace logging_v2 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * Specifies a linear sequence of buckets that all have the same width (except @@ -267,15 +270,15 @@ export namespace logging_v2 { /** * Must be greater than 0. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * Lower bound of the first bucket. */ - offset: number; + offset?: number; /** * Must be greater than 0. */ - width: number; + width?: number; } /** * Result returned from ListExclusions. @@ -284,13 +287,13 @@ export namespace logging_v2 { /** * A list of exclusions. */ - exclusions: Schema$LogExclusion[]; + exclusions?: Schema$LogExclusion[]; /** * If there might be more results than appear in this response, then * nextPageToken is included. To get the next set of results, call the same * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; } /** * The parameters to ListLogEntries. @@ -304,7 +307,7 @@ export namespace logging_v2 { * resource_names will cause the filter to return no results. The maximum * length of the filter is 20000 characters. */ - filter: string; + filter?: string; /** * Optional. How the results should be sorted. Presently, the only permitted * values are "timestamp asc" (default) and "timestamp @@ -313,20 +316,20 @@ export namespace logging_v2 { * returns entries in order of decreasing timestamps (newest first). Entries * with equal timestamps are returned in order of their insert_id values. */ - orderBy: string; + orderBy?: string; /** * Optional. The maximum number of results to return from this request. * Non-positive values are ignored. The presence of next_page_token in the * response indicates that more results might be available. */ - pageSize: number; + pageSize?: number; /** * Optional. If present, then retrieve the next batch of results from the * preceding call to this method. page_token must be the value of * next_page_token from the previous response. The values of other method * parameters should be identical to those in the previous call. */ - pageToken: string; + pageToken?: string; /** * Deprecated. Use resource_names instead. One or more project identifiers * or project numbers from which to retrieve log entries. Example: @@ -334,7 +337,7 @@ export namespace logging_v2 { * converted to resource name format and added to the list of resources in * resource_names. */ - projectIds: string[]; + projectIds?: string[]; /** * Required. Names of one or more parent resources from which to retrieve * log entries: "projects/[PROJECT_ID]" @@ -343,7 +346,7 @@ export namespace logging_v2 { * "folders/[FOLDER_ID]" Projects listed in the project_ids field * are added to this list. */ - resourceNames: string[]; + resourceNames?: string[]; } /** * Result returned from ListLogEntries. @@ -354,7 +357,7 @@ export namespace logging_v2 { * returned, indicating that more entries may exist. See nextPageToken for * more information. */ - entries: Schema$LogEntry[]; + entries?: Schema$LogEntry[]; /** * If there might be more results than those appearing in this response, * then nextPageToken is included. To get the next set of results, call this @@ -366,7 +369,7 @@ export namespace logging_v2 { * changing your filter to specify a single log name or resource type, or to * narrow the time range of the search. */ - nextPageToken: string; + nextPageToken?: string; } /** * Result returned from ListLogMetrics. @@ -375,13 +378,13 @@ export namespace logging_v2 { /** * A list of logs-based metrics. */ - metrics: Schema$LogMetric[]; + metrics?: Schema$LogMetric[]; /** * If there might be more results than appear in this response, then * nextPageToken is included. To get the next set of results, call this * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; } /** * Result returned from ListLogs. @@ -392,13 +395,13 @@ export namespace logging_v2 { * or * "organizations/123/cloudresourcemanager.googleapis.com%2Factivity". */ - logNames: string[]; + logNames?: string[]; /** * If there might be more results than those appearing in this response, * then nextPageToken is included. To get the next set of results, call this * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; } /** * Result returned from ListMonitoredResourceDescriptors. @@ -409,11 +412,11 @@ export namespace logging_v2 { * then nextPageToken is included. To get the next set of results, call this * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of resource descriptors. */ - resourceDescriptors: Schema$MonitoredResourceDescriptor[]; + resourceDescriptors?: Schema$MonitoredResourceDescriptor[]; } /** * Result returned from ListSinks. @@ -424,11 +427,11 @@ export namespace logging_v2 { * nextPageToken is included. To get the next set of results, call the same * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of sinks. */ - sinks: Schema$LogSink[]; + sinks?: Schema$LogSink[]; } /** * An individual entry in a log. @@ -438,7 +441,7 @@ export namespace logging_v2 { * Optional. Information about the HTTP request associated with this log * entry, if applicable. */ - httpRequest: Schema$HttpRequest; + httpRequest?: Schema$HttpRequest; /** * Optional. A unique identifier for the log entry. If you provide a value, * then Stackdriver Logging considers other log entries in the same project, @@ -447,17 +450,17 @@ export namespace logging_v2 { * Logging assigns its own unique identifier. The insert_id is also used to * order log entries that have the same timestamp value. */ - insertId: string; + insertId?: string; /** * The log entry payload, represented as a structure that is expressed as a * JSON object. */ - jsonPayload: any; + jsonPayload?: any; /** * Optional. A set of user-defined (key, value) data that provides * additional information about the log entry. */ - labels: any; + labels?: any; /** * Required. The resource name of the log to which this log entry belongs: * "projects/[PROJECT_ID]/logs/[LOG_ID]" @@ -477,67 +480,75 @@ export namespace logging_v2 { * the log entry will not show the leading slash and filtering for a log * name with a leading slash will never return any results. */ - logName: string; + logName?: string; + /** + * Output only. Additional metadata about the monitored resource. Only + * k8s_container, k8s_pod, and k8s_node MonitoredResources have this field + * populated. + */ + metadata?: Schema$MonitoredResourceMetadata; /** * Optional. Information about an operation associated with the log entry, * if applicable. */ - operation: Schema$LogEntryOperation; + operation?: Schema$LogEntryOperation; /** * The log entry payload, represented as a protocol buffer. Some Google * Cloud Platform services use this field for their log entry payloads. */ - protoPayload: any; + protoPayload?: any; /** * Output only. The time the log entry was received by Stackdriver Logging. */ - receiveTimestamp: string; + receiveTimestamp?: string; /** * Required. The primary monitored resource associated with this log entry. * Example: a log entry that reports a database error would be associated * with the monitored resource designating the particular database that * reported the error. */ - resource: Schema$MonitoredResource; + resource?: Schema$MonitoredResource; /** * Optional. The severity of the log entry. The default value is * LogSeverity.DEFAULT. */ - severity: string; + severity?: string; /** * Optional. Source code location information associated with the log entry, * if any. */ - sourceLocation: Schema$LogEntrySourceLocation; + sourceLocation?: Schema$LogEntrySourceLocation; /** * Optional. The span ID within the trace associated with the log entry. For * Stackdriver Trace spans, this is the same format that the Stackdriver * Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte * array, such as <code>"000000000000004a"</code>. */ - spanId: string; + spanId?: string; /** * The log entry payload, represented as a Unicode string (UTF-8). */ - textPayload: string; + textPayload?: string; /** * Optional. The time the event described by the log entry occurred. This * time is used to compute the log entry's age and to enforce the logs * retention period. If this field is omitted in a new log entry, then - * Stackdriver Logging assigns it the current time.Incoming log entries - * should have timestamps that are no more than the logs retention period in - * the past, and no more than 24 hours in the future. Log entries outside - * those time boundaries will not be available when calling entries.list, - * but those log entries can still be exported with LogSinks. + * Stackdriver Logging assigns it the current time. Timestamps have + * nanosecond accuracy, but trailing zeros in the fractional seconds might + * be omitted when the timestamp is displayed.Incoming log entries should + * have timestamps that are no more than the logs retention period in the + * past, and no more than 24 hours in the future. Log entries outside those + * time boundaries will not be available when calling entries.list, but + * those log entries can still be exported with LogSinks. */ - timestamp: string; + timestamp?: string; /** * Optional. Resource name of the trace associated with the log entry, if * any. If it contains a relative resource name, the name is assumed to be * relative to //tracing.googleapis.com. Example: * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 */ - trace: string; + trace?: string; } /** * Additional information about a potentially long-running operation with @@ -548,24 +559,24 @@ export namespace logging_v2 { * Optional. Set this to True if this is the first log entry in the * operation. */ - first: boolean; + first?: boolean; /** * Optional. An arbitrary operation identifier. Log entries with the same * identifier are assumed to be part of the same operation. */ - id: string; + id?: string; /** * Optional. Set this to True if this is the last log entry in the * operation. */ - last: boolean; + last?: boolean; /** * Optional. An arbitrary producer identifier. The combination of id and * producer must be globally unique. Examples for producer: * "MyDivision.MyBigCompany.com", * "github.com/MyProject/MyApplication". */ - producer: string; + producer?: string; } /** * Additional information about the source code location that produced the log @@ -576,7 +587,7 @@ export namespace logging_v2 { * Optional. Source file name. Depending on the runtime environment, this * might be a simple name or a fully-qualified name. */ - file: string; + file?: string; /** * Optional. Human-readable name of the function or method being invoked, * with optional context such as the class or package name. This information @@ -585,12 +596,12 @@ export namespace logging_v2 { * qual.if.ied.Class.method (Java), dir/package.func (Go), function * (Python). */ - function: string; + function?: string; /** * Optional. Line within the source file. 1-based; 0 indicates no line * number available. */ - line: string; + line?: string; } /** * Specifies a set of log entries that are not to be stored in Stackdriver @@ -604,13 +615,13 @@ export namespace logging_v2 { /** * Optional. A description of this exclusion. */ - description: string; + description?: string; /** * Optional. If set to True, then this exclusion is disabled and it does not * exclude any log entries. You can use exclusions.patch to change the value * of this field. */ - disabled: boolean; + disabled?: boolean; /** * Required. An advanced logs filter that matches the log entries to be * excluded. By using the sample function, you can exclude less than 100% of @@ -619,14 +630,14 @@ export namespace logging_v2 { * "resource.type=http_load_balancer severity<ERROR sample(insertId, * 0.99)" */ - filter: string; + filter?: string; /** * Required. A client-assigned identifier, such as * "load-balancer-exclusion". Identifiers are limited to 100 * characters and can include only letters, digits, underscores, hyphens, * and periods. */ - name: string; + name?: string; } /** * Application log line emitted while processing a request. @@ -635,19 +646,19 @@ export namespace logging_v2 { /** * App-provided log message. */ - logMessage: string; + logMessage?: string; /** * Severity of this log entry. */ - severity: string; + severity?: string; /** * Where in the source code this log message was written. */ - sourceLocation: Schema$SourceLocation; + sourceLocation?: Schema$SourceLocation; /** * Approximate time when this log entry was made. */ - time: string; + time?: string; } /** * Describes a logs-based metric. The value of the metric is the number of log @@ -663,17 +674,17 @@ export namespace logging_v2 { * using a DISTRIBUTION value type and it describes the bucket boundaries * used to create a histogram of the extracted values. */ - bucketOptions: Schema$BucketOptions; + bucketOptions?: Schema$BucketOptions; /** * Optional. A description of this metric, which is used in documentation. */ - description: string; + description?: string; /** * Required. An advanced logs filter which is used to match log entries. * Example: "resource.type=gae_app AND severity>=ERROR" The * maximum length of the filter is 20000 characters. */ - filter: string; + filter?: string; /** * Optional. A map from a label key string to an extractor expression which * is used to extract data from a log entry field and assign as the label @@ -687,7 +698,7 @@ export namespace logging_v2 { * there are upper bounds on the maximum number of labels and the number of * active time series that are allowed in a project. */ - labelExtractors: any; + labelExtractors?: any; /** * Optional. The metric descriptor associated with the logs-based metric. If * unspecified, it uses a default metric descriptor with a DELTA metric @@ -705,7 +716,7 @@ export namespace logging_v2 { * can be added in the metric_descriptor, but existing labels cannot be * modified except for their description. */ - metricDescriptor: Schema$MetricDescriptor; + metricDescriptor?: Schema$MetricDescriptor; /** * Required. The client-assigned metric identifier. Examples: * "error_count", "nginx/requests".Metric identifiers @@ -719,7 +730,7 @@ export namespace logging_v2 { * parameter, then the metric identifier must be URL-encoded. Example: * "projects/my-project/metrics/nginx%2Frequests". */ - name: string; + name?: string; /** * Optional. A value_extractor is required when using a distribution * logs-based metric to extract the values to record from a log entry. Two @@ -737,12 +748,12 @@ export namespace logging_v2 { * distribution.Example: REGEXP_EXTRACT(jsonPayload.request, * ".*quantity=(\d+).*") */ - valueExtractor: string; + valueExtractor?: string; /** * Deprecated. The API version that created or updated this metric. The v2 * format is used by default and cannot be changed. */ - version: string; + version?: string; } /** * Describes a sink used to export log entries to one of the following @@ -761,18 +772,18 @@ export namespace logging_v2 { * permission to write to the destination or else the log entries are not * exported. For more information, see Exporting Logs With Sinks. */ - destination: string; + destination?: string; /** * Deprecated. This field is ignored when creating or updating sinks. */ - endTime: string; + endTime?: string; /** * Optional. An advanced logs filter. The only exported log entries are * those that are in the resource owning the sink and that match the filter. * For example: logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND * severity>=ERROR */ - filter: string; + filter?: string; /** * Optional. This field applies only to sinks owned by organizations and * folders. If the field is false, the default, only the logs owned by the @@ -788,7 +799,7 @@ export namespace logging_v2 { * logName:("projects/test-project1/" OR * "projects/test-project2/") AND resource.type=gce_instance */ - includeChildren: boolean; + includeChildren?: boolean; /** * Required. The client-assigned sink identifier, unique within the project. * Example: "my-syslog-errors-to-pubsub". Sink identifiers are @@ -796,16 +807,16 @@ export namespace logging_v2 { * upper and lower-case alphanumeric characters, underscores, hyphens, and * periods. */ - name: string; + name?: string; /** * Deprecated. The log entry format to use for this sink's exported log * entries. The v2 format is used by default and cannot be changed. */ - outputVersionFormat: string; + outputVersionFormat?: string; /** * Deprecated. This field is ignored when creating or updating sinks. */ - startTime: string; + startTime?: string; /** * Output only. An IAM identity&mdash;a service account or * group&mdash;under which Stackdriver Logging writes the exported log @@ -817,7 +828,7 @@ export namespace logging_v2 { * documentation to determine the appropriate IAM roles to assign to the * identity. */ - writerIdentity: string; + writerIdentity?: string; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -828,14 +839,14 @@ export namespace logging_v2 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -843,16 +854,16 @@ export namespace logging_v2 { * label for the HTTP response code, response_code, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of metric_kind and value_type might not be supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -861,7 +872,7 @@ export namespace logging_v2 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * The unit in which the metric value is reported. It is only applicable if * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are @@ -886,12 +897,12 @@ export namespace logging_v2 { * dimensionless value 1, such as in 1/s. % represents dimensionless value * 1/100, and annotates values giving a percentage. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of metric_kind and value_type might not be supported. */ - valueType: string; + valueType?: string; } /** * An object representing a resource that can be used for monitoring, logging, @@ -914,13 +925,13 @@ export namespace logging_v2 { * labels "project_id", "instance_id", and * "zone". */ - labels: any; + labels?: any; /** * Required. The monitored resource type. This field must match the type * field of a MonitoredResourceDescriptor object. For example, the type of a * Compute Engine VM instance is gce_instance. */ - type: string; + type?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -937,21 +948,21 @@ export namespace logging_v2 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, "Google Cloud * SQL Database". */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels "database_id" and * "zone". */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * "projects/{project_id}/monitoredResourceDescriptors/{type}" @@ -960,13 +971,39 @@ export namespace logging_v2 { * accessing the type. APIs that do not use project information can use the * resource name format "monitoredResourceDescriptors/{type}". */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * "cloudsql_database" represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; + } + /** + * Auxiliary metadata for a MonitoredResource object. MonitoredResource + * objects contain the minimum set of information to uniquely identify a + * monitored resource instance. There is some other useful auxiliary metadata. + * Google Stackdriver Monitoring & Logging uses an ingestion pipeline to + * extract metadata for cloud resources of all types , and stores the metadata + * in this message. + */ + export interface Schema$MonitoredResourceMetadata { + /** + * Output only. Values for predefined system metadata labels. System labels + * are a kind of metadata extracted by Google Stackdriver. Stackdriver + * determines what system labels are useful and how to obtain their values. + * Some examples: "machine_image", "vpc", + * "subnet_id", "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: { "name": "my-test-instance", + * "security_group": ["a", "b", + * "c"], "spot_instance": false } + */ + systemLabels?: any; + /** + * Output only. A map of user-defined metadata labels. + */ + userLabels?: any; } /** * Complete log information about a single HTTP request to an App Engine @@ -976,73 +1013,73 @@ export namespace logging_v2 { /** * App Engine release version. */ - appEngineRelease: string; + appEngineRelease?: string; /** * Application that handled this request. */ - appId: string; + appId?: string; /** * An indication of the relative cost of serving this request. */ - cost: number; + cost?: number; /** * Time when the request finished. */ - endTime: string; + endTime?: string; /** * Whether this request is finished or active. */ - finished: boolean; + finished?: boolean; /** * Whether this is the first RequestLog entry for this request. If an active * request has several RequestLog entries written to Stackdriver Logging, * then this field will be set for one of them. */ - first: boolean; + first?: boolean; /** * Internet host and port number of the resource being requested. */ - host: string; + host?: string; /** * HTTP version of request. Example: "HTTP/1.1". */ - httpVersion: string; + httpVersion?: string; /** * An identifier for the instance that handled the request. */ - instanceId: string; + instanceId?: string; /** * If the instance processing this request belongs to a manually scaled * module, then this is the 0-based index of the instance. Otherwise, this * value is -1. */ - instanceIndex: number; + instanceIndex?: number; /** * Origin IP address. */ - ip: string; + ip?: string; /** * Latency of the request. */ - latency: string; + latency?: string; /** * A list of log lines emitted by the application while serving this * request. */ - line: Schema$LogLine[]; + line?: Schema$LogLine[]; /** * Number of CPU megacycles used to process request. */ - megaCycles: string; + megaCycles?: string; /** * Request method. Example: "GET", "HEAD", * "PUT", "POST", "DELETE". */ - method: string; + method?: string; /** * Module of the application that handled this request. */ - moduleId: string; + moduleId?: string; /** * The logged-in user who made the request.Most likely, this is the part of * the user's email before the @ sign. The field value is the same for @@ -1051,74 +1088,74 @@ export namespace logging_v2 { * the App Engine Users API.This field will be populated starting with App * Engine 1.9.21. */ - nickname: string; + nickname?: string; /** * Time this request spent in the pending request queue. */ - pendingTime: string; + pendingTime?: string; /** * Referrer URL of request. */ - referrer: string; + referrer?: string; /** * Globally unique identifier for a request, which is based on the request * start time. Request IDs for requests which started later will compare * greater as strings than those for requests which started earlier. */ - requestId: string; + requestId?: string; /** * Contains the path and query portion of the URL that was requested. For * example, if the URL was "http://example.com/app?name=val", the * resource would be "/app?name=val". The fragment identifier, * which is identified by the # character, is not included. */ - resource: string; + resource?: string; /** * Size in bytes sent back to client by request. */ - responseSize: string; + responseSize?: string; /** * Source code for the application that handled this request. There can be * more than one source reference per deployed application if source code is * distributed among multiple repositories. */ - sourceReference: Schema$SourceReference[]; + sourceReference?: Schema$SourceReference[]; /** * Time when the request started. */ - startTime: string; + startTime?: string; /** * HTTP response status code. Example: 200, 404. */ - status: number; + status?: number; /** * Task name of the request, in the case of an offline request. */ - taskName: string; + taskName?: string; /** * Queue name of the request, in the case of an offline request. */ - taskQueueName: string; + taskQueueName?: string; /** * Stackdriver Trace identifier for this request. */ - traceId: string; + traceId?: string; /** * File or class that handled the request. */ - urlMapEntry: string; + urlMapEntry?: string; /** * User agent that made the request. */ - userAgent: string; + userAgent?: string; /** * Version of the application that handled this request. */ - versionId: string; + versionId?: string; /** * Whether this was a loading request for the instance. */ - wasLoadingRequest: boolean; + wasLoadingRequest?: boolean; } /** * Specifies a location in a source code file. @@ -1128,7 +1165,7 @@ export namespace logging_v2 { * Source file name. Depending on the runtime environment, this might be a * simple name or a fully-qualified name. */ - file: string; + file?: string; /** * Human-readable name of the function or method being invoked, with * optional context such as the class or package name. This information is @@ -1137,11 +1174,11 @@ export namespace logging_v2 { * qual.if.ied.Class.method (Java), dir/package.func (Go), function * (Python). */ - functionName: string; + functionName?: string; /** * Line within the source file. */ - line: string; + line?: string; } /** * A reference to a particular snapshot of the source tree used to build and @@ -1152,12 +1189,12 @@ export namespace logging_v2 { * Optional. A URI string identifying the repository. Example: * "https://github.com/GoogleCloudPlatform/kubernetes.git" */ - repository: string; + repository?: string; /** * The canonical and persistent identifier of the deployed revision. Example * (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" */ - revisionId: string; + revisionId?: string; } /** * The parameters to WriteLogEntries. @@ -1169,7 +1206,7 @@ export namespace logging_v2 { * the logging API endpoints are working properly before sending valuable * data. */ - dryRun: boolean; + dryRun?: boolean; /** * Required. The log entries to send to Stackdriver Logging. The order of * log entries in this list does not matter. Values supplied in this @@ -1189,14 +1226,14 @@ export namespace logging_v2 { * entries in this list, rather than calling this method for each individual * log entry. */ - entries: Schema$LogEntry[]; + entries?: Schema$LogEntry[]; /** * Optional. Default labels that are added to the labels field of all log * entries in entries. If a log entry already has a label with the same key * as a label in this parameter, then the log entry's label is not * changed. See LogEntry. */ - labels: any; + labels?: any; /** * Optional. A default log resource name that is assigned to all log entries * in entries that do not specify a value for log_name: @@ -1209,7 +1246,7 @@ export namespace logging_v2 { * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". * For more information about log names, see LogEntry. */ - logName: string; + logName?: string; /** * Optional. Whether valid entries should be written even if some other * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any @@ -1217,7 +1254,7 @@ export namespace logging_v2 { * with one of the failed entries and the response includes error details * keyed by the entries' zero-based index in the entries.write method. */ - partialSuccess: boolean; + partialSuccess?: boolean; /** * Optional. A default monitored resource object that is assigned to all log * entries in entries that do not specify a value for resource. Example: { @@ -1225,13 +1262,14 @@ export namespace logging_v2 { * "zone": "us-central1-a", "instance_id": * "00000000000000000000" }} See LogEntry. */ - resource: Schema$MonitoredResource; + resource?: Schema$MonitoredResource; } /** * Result returned from WriteLogEntries. empty */ export interface Schema$WriteLogEntriesResponse {} + export class Resource$Billingaccounts { root: Logging; exclusions: Resource$Billingaccounts$Exclusions; @@ -1249,6 +1287,8 @@ export namespace logging_v2 { return this.root; } } + + export class Resource$Billingaccounts$Exclusions { root: Logging; constructor(root: Logging) { @@ -1276,26 +1316,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Exclusions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Billingaccounts$Exclusions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Exclusions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Billingaccounts$Exclusions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Exclusions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Exclusions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1330,25 +1383,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Exclusions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Billingaccounts$Exclusions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Exclusions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Billingaccounts$Exclusions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Exclusions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Exclusions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1382,24 +1448,35 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Billingaccounts$Exclusions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Billingaccounts$Exclusions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Billingaccounts$Exclusions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Billingaccounts$Exclusions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Exclusions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Exclusions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1435,28 +1512,40 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Billingaccounts$Exclusions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Billingaccounts$Exclusions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Billingaccounts$Exclusions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Billingaccounts$Exclusions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Exclusions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Exclusions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1493,26 +1582,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Exclusions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Billingaccounts$Exclusions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Exclusions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Billingaccounts$Exclusions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Exclusions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Exclusions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1534,6 +1636,113 @@ export namespace logging_v2 { } } + export interface Params$Resource$Billingaccounts$Exclusions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource in which to create the exclusion: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + export interface Params$Resource$Billingaccounts$Exclusions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion to delete: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Billingaccounts$Exclusions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Billingaccounts$Exclusions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose exclusions are to be listed. + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Billingaccounts$Exclusions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the exclusion to update: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + /** + * Required. A nonempty list of fields to change in the existing exclusion. + * New values for the fields are taken from the corresponding fields in the + * LogExclusion included in this request. Fields not mentioned in + * update_mask are not changed and are ignored in the request.For example, + * to change the filter and description of an exclusion, specify an + * update_mask of "filter,description". + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + + export class Resource$Billingaccounts$Logs { root: Logging; constructor(root: Logging) { @@ -1560,25 +1769,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Logs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Billingaccounts$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Billingaccounts$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1615,26 +1837,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Logs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Billingaccounts$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Billingaccounts$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1657,6 +1892,52 @@ export namespace logging_v2 { } } + export interface Params$Resource$Billingaccounts$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Billingaccounts$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Billingaccounts$Sinks { root: Logging; constructor(root: Logging) { @@ -1686,25 +1967,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Sinks$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Billingaccounts$Sinks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Sinks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Billingaccounts$Sinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Sinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Sinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1740,25 +2034,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Sinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Billingaccounts$Sinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Sinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Billingaccounts$Sinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Sinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Sinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1792,23 +2099,34 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Billingaccounts$Sinks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Billingaccounts$Sinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Billingaccounts$Sinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Billingaccounts$Sinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$Sinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Sinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1844,26 +2162,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Sinks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Billingaccounts$Sinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Billingaccounts$Sinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Billingaccounts$Sinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Sinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Sinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1904,25 +2235,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Sinks$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Sinks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Billingaccounts$Sinks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Billingaccounts$Sinks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Sinks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Sinks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1962,25 +2306,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Sinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Billingaccounts$Sinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Billingaccounts$Sinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Billingaccounts$Sinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Sinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Sinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2002,6 +2359,188 @@ export namespace logging_v2 { } } + export interface Params$Resource$Billingaccounts$Sinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Optional. Determines the kind of IAM identity returned as writer_identity + * in the new sink. If this value is omitted or set to false, and if the + * sink's parent is a project, then the value returned as writer_identity is + * the same group or service account used by Stackdriver Logging before the + * addition of writer identities to this API. The sink's destination must be + * in the same project as the sink itself.If this field is set to true, or + * if the sink is owned by a non-project resource such as an organization, + * then the value of writer_identity will be a unique service account used + * only for exports from the new sink. For more information, see + * writer_identity in LogSink. + */ + uniqueWriterIdentity?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Billingaccounts$Sinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to delete, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Billingaccounts$Sinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Billingaccounts$Sinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose sinks are to be listed: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Billingaccounts$Sinks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Billingaccounts$Sinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + + export class Resource$Entries { root: Logging; @@ -2028,28 +2567,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Entries$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Entries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Entries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2088,28 +2637,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - write(params?: any, options?: MethodOptions): + write(params?: Params$Resource$Entries$Write, options?: MethodOptions): AxiosPromise; write( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$Write, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; write( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$Write, + callback: BodyResponseCallback): void; + write(callback: BodyResponseCallback): void; + write( + paramsOrCallback?: Params$Resource$Entries$Write| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Entries$Write; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entries$Write; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2132,6 +2691,30 @@ export namespace logging_v2 { } } + export interface Params$Resource$Entries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ListLogEntriesRequest; + } + export interface Params$Resource$Entries$Write { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$WriteLogEntriesRequest; + } + + export class Resource$Exclusions { root: Logging; constructor(root: Logging) { @@ -2159,26 +2742,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Exclusions$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Exclusions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Exclusions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Exclusions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Exclusions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Exclusions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2213,25 +2808,37 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Exclusions$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Exclusions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Exclusions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Exclusions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Exclusions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Exclusions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2265,24 +2872,34 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Exclusions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Exclusions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Exclusions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Exclusions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Exclusions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Exclusions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2318,28 +2935,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Exclusions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Exclusions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Exclusions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Exclusions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Exclusions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Exclusions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2376,26 +3003,37 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Exclusions$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Exclusions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Exclusions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Exclusions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Exclusions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Exclusions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2417,6 +3055,113 @@ export namespace logging_v2 { } } + export interface Params$Resource$Exclusions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource in which to create the exclusion: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + export interface Params$Resource$Exclusions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion to delete: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Exclusions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Exclusions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose exclusions are to be listed. + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Exclusions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the exclusion to update: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + /** + * Required. A nonempty list of fields to change in the existing exclusion. + * New values for the fields are taken from the corresponding fields in the + * LogExclusion included in this request. Fields not mentioned in + * update_mask are not changed and are ignored in the request.For example, + * to change the filter and description of an exclusion, specify an + * update_mask of "filter,description". + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + + export class Resource$Folders { root: Logging; exclusions: Resource$Folders$Exclusions; @@ -2434,6 +3179,8 @@ export namespace logging_v2 { return this.root; } } + + export class Resource$Folders$Exclusions { root: Logging; constructor(root: Logging) { @@ -2461,26 +3208,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Exclusions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Folders$Exclusions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Exclusions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Folders$Exclusions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Exclusions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Exclusions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2515,25 +3275,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Exclusions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Folders$Exclusions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Exclusions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Folders$Exclusions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Exclusions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Exclusions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2567,24 +3340,35 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Folders$Exclusions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Folders$Exclusions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Folders$Exclusions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Folders$Exclusions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Exclusions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Exclusions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2620,28 +3404,40 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Folders$Exclusions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Folders$Exclusions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Folders$Exclusions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Folders$Exclusions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Exclusions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Exclusions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2678,26 +3474,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Exclusions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Folders$Exclusions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Exclusions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Folders$Exclusions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Exclusions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Exclusions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2719,6 +3528,113 @@ export namespace logging_v2 { } } + export interface Params$Resource$Folders$Exclusions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource in which to create the exclusion: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + export interface Params$Resource$Folders$Exclusions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion to delete: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Folders$Exclusions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Folders$Exclusions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose exclusions are to be listed. + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Folders$Exclusions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the exclusion to update: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + /** + * Required. A nonempty list of fields to change in the existing exclusion. + * New values for the fields are taken from the corresponding fields in the + * LogExclusion included in this request. Fields not mentioned in + * update_mask are not changed and are ignored in the request.For example, + * to change the filter and description of an exclusion, specify an + * update_mask of "filter,description". + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + + export class Resource$Folders$Logs { root: Logging; constructor(root: Logging) { @@ -2745,25 +3661,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Logs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Folders$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Folders$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2800,26 +3729,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Folders$Logs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Folders$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2842,6 +3783,52 @@ export namespace logging_v2 { } } + export interface Params$Resource$Folders$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Folders$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Folders$Sinks { root: Logging; constructor(root: Logging) { @@ -2871,25 +3858,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Sinks$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Folders$Sinks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Sinks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Folders$Sinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Sinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Sinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2925,25 +3925,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Sinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Folders$Sinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Sinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Folders$Sinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Sinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Sinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2977,23 +3990,34 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Folders$Sinks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Folders$Sinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Folders$Sinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Folders$Sinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Sinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Sinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3029,26 +4053,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Folders$Sinks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Folders$Sinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Folders$Sinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Sinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Sinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Sinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3089,25 +4125,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Sinks$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Folders$Sinks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Folders$Sinks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Folders$Sinks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Sinks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Sinks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3147,25 +4196,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Folders$Sinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Folders$Sinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Folders$Sinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Folders$Sinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Folders$Sinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Folders$Sinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3187,52 +4249,245 @@ export namespace logging_v2 { } } + export interface Params$Resource$Folders$Sinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - export class Resource$Logs { - root: Logging; - constructor(root: Logging) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + /** + * Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Optional. Determines the kind of IAM identity returned as writer_identity + * in the new sink. If this value is omitted or set to false, and if the + * sink's parent is a project, then the value returned as writer_identity is + * the same group or service account used by Stackdriver Logging before the + * addition of writer identities to this API. The sink's destination must be + * in the same project as the sink itself.If this field is set to true, or + * if the sink is owned by a non-project resource such as an organization, + * then the value of writer_identity will be a unique service account used + * only for exports from the new sink. For more information, see + * writer_identity in LogSink. + */ + uniqueWriterIdentity?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Folders$Sinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Required. The full resource name of the sink to delete, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Folders$Sinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * logging.logs.delete - * @desc Deletes all the log entries in a log. The log reappears if it - * receives new entries. Log entries written shortly before the delete - * operation might not be deleted. - * @alias logging.logs.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.logName Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". For more information about log names, see LogEntry. - * @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 + * Required. The resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + sinkName?: string; + } + export interface Params$Resource$Folders$Sinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose sinks are to be listed: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Folders$Sinks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Folders$Sinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + + + + export class Resource$Logs { + root: Logging; + constructor(root: Logging) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * logging.logs.delete + * @desc Deletes all the log entries in a log. The log reappears if it + * receives new entries. Log entries written shortly before the delete + * operation might not be deleted. + * @alias logging.logs.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.logName Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". For more information about log names, see LogEntry. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete(params?: Params$Resource$Logs$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3269,26 +4524,37 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Logs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3311,6 +4577,52 @@ export namespace logging_v2 { } } + export interface Params$Resource$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Monitoredresourcedescriptors { root: Logging; constructor(root: Logging) { @@ -3337,30 +4649,45 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Monitoredresourcedescriptors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Monitoredresourcedescriptors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$ListMonitoredResourceDescriptorsResponse>): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Monitoredresourcedescriptors$List, + callback: BodyResponseCallback< + Schema$ListMonitoredResourceDescriptorsResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListMonitoredResourceDescriptorsResponse>): void; + list( + paramsOrCallback?: Params$Resource$Monitoredresourcedescriptors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListMonitoredResourceDescriptorsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Monitoredresourcedescriptors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Monitoredresourcedescriptors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3385,6 +4712,28 @@ export namespace logging_v2 { } } + export interface Params$Resource$Monitoredresourcedescriptors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + } + + export class Resource$Organizations { root: Logging; exclusions: Resource$Organizations$Exclusions; @@ -3402,6 +4751,8 @@ export namespace logging_v2 { return this.root; } } + + export class Resource$Organizations$Exclusions { root: Logging; constructor(root: Logging) { @@ -3429,26 +4780,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Exclusions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Organizations$Exclusions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Organizations$Exclusions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Exclusions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Exclusions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Exclusions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3483,25 +4847,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Exclusions$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Exclusions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Organizations$Exclusions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Organizations$Exclusions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Exclusions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Exclusions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3535,24 +4912,35 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Organizations$Exclusions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Organizations$Exclusions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Organizations$Exclusions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Organizations$Exclusions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Exclusions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Exclusions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3588,28 +4976,40 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Organizations$Exclusions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Organizations$Exclusions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Organizations$Exclusions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Organizations$Exclusions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Exclusions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Exclusions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3646,26 +5046,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Exclusions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Organizations$Exclusions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Exclusions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Organizations$Exclusions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Exclusions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Exclusions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3687,6 +5100,113 @@ export namespace logging_v2 { } } + export interface Params$Resource$Organizations$Exclusions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource in which to create the exclusion: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + export interface Params$Resource$Organizations$Exclusions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion to delete: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Organizations$Exclusions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Organizations$Exclusions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose exclusions are to be listed. + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Organizations$Exclusions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the exclusion to update: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + /** + * Required. A nonempty list of fields to change in the existing exclusion. + * New values for the fields are taken from the corresponding fields in the + * LogExclusion included in this request. Fields not mentioned in + * update_mask are not changed and are ignored in the request.For example, + * to change the filter and description of an exclusion, specify an + * update_mask of "filter,description". + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + + export class Resource$Organizations$Logs { root: Logging; constructor(root: Logging) { @@ -3713,25 +5233,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Logs$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Organizations$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Organizations$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3768,26 +5301,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Logs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Organizations$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Organizations$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3810,6 +5356,52 @@ export namespace logging_v2 { } } + export interface Params$Resource$Organizations$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Organizations$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Organizations$Sinks { root: Logging; constructor(root: Logging) { @@ -3839,25 +5431,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Sinks$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Organizations$Sinks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Organizations$Sinks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Sinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Sinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Sinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3893,25 +5498,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Sinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Organizations$Sinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Sinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Organizations$Sinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Sinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Sinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3945,23 +5563,34 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Organizations$Sinks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Organizations$Sinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Organizations$Sinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Organizations$Sinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Sinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Sinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3997,26 +5626,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Sinks$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Organizations$Sinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Organizations$Sinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Sinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Sinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Sinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4057,25 +5699,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Sinks$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Sinks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Organizations$Sinks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Organizations$Sinks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Sinks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Sinks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4115,25 +5770,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Sinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Organizations$Sinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Organizations$Sinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Organizations$Sinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Organizations$Sinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Sinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4155,6 +5823,188 @@ export namespace logging_v2 { } } + export interface Params$Resource$Organizations$Sinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Optional. Determines the kind of IAM identity returned as writer_identity + * in the new sink. If this value is omitted or set to false, and if the + * sink's parent is a project, then the value returned as writer_identity is + * the same group or service account used by Stackdriver Logging before the + * addition of writer identities to this API. The sink's destination must be + * in the same project as the sink itself.If this field is set to true, or + * if the sink is owned by a non-project resource such as an organization, + * then the value of writer_identity will be a unique service account used + * only for exports from the new sink. For more information, see + * writer_identity in LogSink. + */ + uniqueWriterIdentity?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Organizations$Sinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to delete, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Organizations$Sinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Organizations$Sinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose sinks are to be listed: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Organizations$Sinks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Organizations$Sinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + + export class Resource$Projects { root: Logging; @@ -4175,6 +6025,8 @@ export namespace logging_v2 { return this.root; } } + + export class Resource$Projects$Exclusions { root: Logging; constructor(root: Logging) { @@ -4202,26 +6054,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Exclusions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Exclusions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Exclusions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Exclusions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Exclusions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Exclusions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4256,25 +6121,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Exclusions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Exclusions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Exclusions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Exclusions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Exclusions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Exclusions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4308,24 +6186,35 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Exclusions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Exclusions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Exclusions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Exclusions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Exclusions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Exclusions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4361,28 +6250,40 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Exclusions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Exclusions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Exclusions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Exclusions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Exclusions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Exclusions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4419,26 +6320,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Exclusions$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Exclusions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Exclusions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Exclusions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Exclusions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Exclusions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4460,6 +6374,113 @@ export namespace logging_v2 { } } + export interface Params$Resource$Projects$Exclusions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource in which to create the exclusion: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + export interface Params$Resource$Projects$Exclusions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion to delete: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Projects$Exclusions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of an existing exclusion: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + } + export interface Params$Resource$Projects$Exclusions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose exclusions are to be listed. + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Projects$Exclusions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the exclusion to update: + * "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" + * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" + * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: + * "projects/my-project-id/exclusions/my-exclusion-id". + */ + name?: string; + /** + * Required. A nonempty list of fields to change in the existing exclusion. + * New values for the fields are taken from the corresponding fields in the + * LogExclusion included in this request. Fields not mentioned in + * update_mask are not changed and are ignored in the request.For example, + * to change the filter and description of an exclusion, specify an + * update_mask of "filter,description". + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogExclusion; + } + + export class Resource$Projects$Logs { root: Logging; constructor(root: Logging) { @@ -4486,25 +6507,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Logs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4541,26 +6575,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Logs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4583,6 +6629,52 @@ export namespace logging_v2 { } } + export interface Params$Resource$Projects$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Projects$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Projects$Metrics { root: Logging; constructor(root: Logging) { @@ -4608,26 +6700,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metrics$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Metrics$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Metrics$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Metrics$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4662,25 +6767,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metrics$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Metrics$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Metrics$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Metrics$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4715,23 +6833,35 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Metrics$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Metrics$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Metrics$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Metrics$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4768,28 +6898,40 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Metrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Metrics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Metrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Metrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4825,26 +6967,39 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metrics$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Metrics$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Metrics$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Metrics$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4867,6 +7022,92 @@ export namespace logging_v2 { } } + export interface Params$Resource$Projects$Metrics$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the project in which to create the metric: + * "projects/[PROJECT_ID]" The new metric must be provided in the request. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogMetric; + } + export interface Params$Resource$Projects$Metrics$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the metric to delete: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + */ + metricName?: string; + } + export interface Params$Resource$Projects$Metrics$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the desired metric: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + */ + metricName?: string; + } + export interface Params$Resource$Projects$Metrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The name of the project containing the metrics: + * "projects/[PROJECT_ID]" + */ + parent?: string; + } + export interface Params$Resource$Projects$Metrics$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the metric to update: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be + * provided in the request and it's name field must be the same as + * [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new + * metric is created. + */ + metricName?: string; + /** + * Request body metadata + */ + resource?: Schema$LogMetric; + } + + export class Resource$Projects$Sinks { root: Logging; constructor(root: Logging) { @@ -4896,25 +7137,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Sinks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Sinks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Sinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -4950,25 +7204,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Sinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Sinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Sinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5002,23 +7269,34 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Sinks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Sinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Sinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Sinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5054,26 +7332,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Sinks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Sinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Sinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Sinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5114,25 +7404,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Sinks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Sinks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Sinks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5172,25 +7475,38 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Sinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Sinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Sinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5212,6 +7528,188 @@ export namespace logging_v2 { } } + export interface Params$Resource$Projects$Sinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Optional. Determines the kind of IAM identity returned as writer_identity + * in the new sink. If this value is omitted or set to false, and if the + * sink's parent is a project, then the value returned as writer_identity is + * the same group or service account used by Stackdriver Logging before the + * addition of writer identities to this API. The sink's destination must be + * in the same project as the sink itself.If this field is set to true, or + * if the sink is owned by a non-project resource such as an organization, + * then the value of writer_identity will be a unique service account used + * only for exports from the new sink. For more information, see + * writer_identity in LogSink. + */ + uniqueWriterIdentity?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Projects$Sinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to delete, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Projects$Sinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Projects$Sinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose sinks are to be listed: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Projects$Sinks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Projects$Sinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + + export class Resource$Sinks { root: Logging; @@ -5242,25 +7740,36 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Sinks$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Sinks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sinks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5296,25 +7805,36 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Sinks$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5348,23 +7868,33 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sinks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5400,26 +7930,37 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sinks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5460,25 +8001,36 @@ export namespace logging_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Sinks$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Sinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -5499,4 +8051,140 @@ export namespace logging_v2 { } } } + + export interface Params$Resource$Sinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Optional. Determines the kind of IAM identity returned as writer_identity + * in the new sink. If this value is omitted or set to false, and if the + * sink's parent is a project, then the value returned as writer_identity is + * the same group or service account used by Stackdriver Logging before the + * addition of writer identities to this API. The sink's destination must be + * in the same project as the sink itself.If this field is set to true, or + * if the sink is owned by a non-project resource such as an organization, + * then the value of writer_identity will be a unique service account used + * only for exports from the new sink. For more information, see + * writer_identity in LogSink. + */ + uniqueWriterIdentity?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Sinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to delete, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Sinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Sinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose sinks are to be listed: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Sinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } } diff --git a/src/apis/logging/v2beta1.ts b/src/apis/logging/v2beta1.ts index 71ccec0fa0b..8f855354659 100644 --- a/src/apis/logging/v2beta1.ts +++ b/src/apis/logging/v2beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace logging_v2beta1 { + export interface Options extends GlobalOptions { version: 'v2beta1'; } + /** * Stackdriver Logging API * @@ -94,15 +97,15 @@ export namespace logging_v2beta1 { /** * The explicit buckets. */ - explicitBuckets: Schema$Explicit; + explicitBuckets?: Schema$Explicit; /** * The exponential buckets. */ - exponentialBuckets: Schema$Exponential; + exponentialBuckets?: Schema$Exponential; /** * The linear bucket. */ - linearBuckets: Schema$Linear; + linearBuckets?: Schema$Linear; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -124,7 +127,7 @@ export namespace logging_v2beta1 { /** * The values must be monotonically increasing. */ - bounds: number[]; + bounds?: number[]; } /** * Specifies an exponential sequence of buckets that have a width that is @@ -138,15 +141,15 @@ export namespace logging_v2beta1 { /** * Must be greater than 1. */ - growthFactor: number; + growthFactor?: number; /** * Must be greater than 0. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * Must be greater than 0. */ - scale: number; + scale?: number; } /** * A common proto for logging HTTP requests. Only contains semantics defined @@ -158,77 +161,77 @@ export namespace logging_v2beta1 { * The number of HTTP response bytes inserted into cache. Set only when a * cache fill was attempted. */ - cacheFillBytes: string; + cacheFillBytes?: string; /** * Whether or not an entity was served from cache (with or without * validation). */ - cacheHit: boolean; + cacheHit?: boolean; /** * Whether or not a cache lookup was attempted. */ - cacheLookup: boolean; + cacheLookup?: boolean; /** * Whether or not the response was validated with the origin server before * being served from cache. This field is only meaningful if cache_hit is * True. */ - cacheValidatedWithOriginServer: boolean; + cacheValidatedWithOriginServer?: boolean; /** * The request processing latency on the server, from the time the request * was received until the response was sent. */ - latency: string; + latency?: string; /** * Protocol used for the request. Examples: "HTTP/1.1", * "HTTP/2", "websocket" */ - protocol: string; + protocol?: string; /** * The referer URL of the request, as defined in HTTP/1.1 Header Field * Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). */ - referer: string; + referer?: string; /** * The IP address (IPv4 or IPv6) of the client that issued the HTTP request. * Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". */ - remoteIp: string; + remoteIp?: string; /** * The request method. Examples: "GET", "HEAD", * "PUT", "POST". */ - requestMethod: string; + requestMethod?: string; /** * The size of the HTTP request message in bytes, including the request * headers and the request body. */ - requestSize: string; + requestSize?: string; /** * The scheme (http, https), the host name, the path and the query portion * of the URL that was requested. Example: * "http://example.com/some/info?color=red". */ - requestUrl: string; + requestUrl?: string; /** * The size of the HTTP response message sent back to the client, in bytes, * including the response headers and the response body. */ - responseSize: string; + responseSize?: string; /** * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. */ - serverIp: string; + serverIp?: string; /** * The response code indicating the status of response. Examples: 200, 404. */ - status: number; + status?: number; /** * The user agent sent by the client. Example: "Mozilla/4.0 * (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)". */ - userAgent: string; + userAgent?: string; } /** * A description of a label. @@ -237,15 +240,15 @@ export namespace logging_v2beta1 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * Specifies a linear sequence of buckets that all have the same width (except @@ -259,15 +262,15 @@ export namespace logging_v2beta1 { /** * Must be greater than 0. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * Lower bound of the first bucket. */ - offset: number; + offset?: number; /** * Must be greater than 0. */ - width: number; + width?: number; } /** * The parameters to ListLogEntries. @@ -281,7 +284,7 @@ export namespace logging_v2beta1 { * resource_names will cause the filter to return no results. The maximum * length of the filter is 20000 characters. */ - filter: string; + filter?: string; /** * Optional. How the results should be sorted. Presently, the only permitted * values are "timestamp asc" (default) and "timestamp @@ -290,20 +293,20 @@ export namespace logging_v2beta1 { * returns entries in order of decreasing timestamps (newest first). Entries * with equal timestamps are returned in order of their insert_id values. */ - orderBy: string; + orderBy?: string; /** * Optional. The maximum number of results to return from this request. * Non-positive values are ignored. The presence of next_page_token in the * response indicates that more results might be available. */ - pageSize: number; + pageSize?: number; /** * Optional. If present, then retrieve the next batch of results from the * preceding call to this method. page_token must be the value of * next_page_token from the previous response. The values of other method * parameters should be identical to those in the previous call. */ - pageToken: string; + pageToken?: string; /** * Deprecated. Use resource_names instead. One or more project identifiers * or project numbers from which to retrieve log entries. Example: @@ -311,7 +314,7 @@ export namespace logging_v2beta1 { * converted to resource name format and added to the list of resources in * resource_names. */ - projectIds: string[]; + projectIds?: string[]; /** * Required. Names of one or more parent resources from which to retrieve * log entries: "projects/[PROJECT_ID]" @@ -320,7 +323,7 @@ export namespace logging_v2beta1 { * "folders/[FOLDER_ID]" Projects listed in the project_ids field * are added to this list. */ - resourceNames: string[]; + resourceNames?: string[]; } /** * Result returned from ListLogEntries. @@ -331,7 +334,7 @@ export namespace logging_v2beta1 { * returned, indicating that more entries may exist. See nextPageToken for * more information. */ - entries: Schema$LogEntry[]; + entries?: Schema$LogEntry[]; /** * If there might be more results than those appearing in this response, * then nextPageToken is included. To get the next set of results, call this @@ -343,7 +346,7 @@ export namespace logging_v2beta1 { * changing your filter to specify a single log name or resource type, or to * narrow the time range of the search. */ - nextPageToken: string; + nextPageToken?: string; } /** * Result returned from ListLogMetrics. @@ -352,13 +355,13 @@ export namespace logging_v2beta1 { /** * A list of logs-based metrics. */ - metrics: Schema$LogMetric[]; + metrics?: Schema$LogMetric[]; /** * If there might be more results than appear in this response, then * nextPageToken is included. To get the next set of results, call this * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; } /** * Result returned from ListLogs. @@ -369,13 +372,13 @@ export namespace logging_v2beta1 { * or * "organizations/123/cloudresourcemanager.googleapis.com%2Factivity". */ - logNames: string[]; + logNames?: string[]; /** * If there might be more results than those appearing in this response, * then nextPageToken is included. To get the next set of results, call this * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; } /** * Result returned from ListMonitoredResourceDescriptors. @@ -386,11 +389,11 @@ export namespace logging_v2beta1 { * then nextPageToken is included. To get the next set of results, call this * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of resource descriptors. */ - resourceDescriptors: Schema$MonitoredResourceDescriptor[]; + resourceDescriptors?: Schema$MonitoredResourceDescriptor[]; } /** * Result returned from ListSinks. @@ -401,11 +404,11 @@ export namespace logging_v2beta1 { * nextPageToken is included. To get the next set of results, call the same * method again using the value of nextPageToken as pageToken. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of sinks. */ - sinks: Schema$LogSink[]; + sinks?: Schema$LogSink[]; } /** * An individual entry in a log. @@ -415,7 +418,7 @@ export namespace logging_v2beta1 { * Optional. Information about the HTTP request associated with this log * entry, if applicable. */ - httpRequest: Schema$HttpRequest; + httpRequest?: Schema$HttpRequest; /** * Optional. A unique identifier for the log entry. If you provide a value, * then Stackdriver Logging considers other log entries in the same project, @@ -424,17 +427,17 @@ export namespace logging_v2beta1 { * Logging assigns its own unique identifier. The insert_id is also used to * order log entries that have the same timestamp value. */ - insertId: string; + insertId?: string; /** * The log entry payload, represented as a structure that is expressed as a * JSON object. */ - jsonPayload: any; + jsonPayload?: any; /** * Optional. A set of user-defined (key, value) data that provides * additional information about the log entry. */ - labels: any; + labels?: any; /** * Required. The resource name of the log to which this log entry belongs: * "projects/[PROJECT_ID]/logs/[LOG_ID]" @@ -454,67 +457,75 @@ export namespace logging_v2beta1 { * the log entry will not show the leading slash and filtering for a log * name with a leading slash will never return any results. */ - logName: string; + logName?: string; + /** + * Output only. Additional metadata about the monitored resource. Only + * k8s_container, k8s_pod, and k8s_node MonitoredResources have this field + * populated. + */ + metadata?: Schema$MonitoredResourceMetadata; /** * Optional. Information about an operation associated with the log entry, * if applicable. */ - operation: Schema$LogEntryOperation; + operation?: Schema$LogEntryOperation; /** * The log entry payload, represented as a protocol buffer. Some Google * Cloud Platform services use this field for their log entry payloads. */ - protoPayload: any; + protoPayload?: any; /** * Output only. The time the log entry was received by Stackdriver Logging. */ - receiveTimestamp: string; + receiveTimestamp?: string; /** * Required. The primary monitored resource associated with this log entry. * Example: a log entry that reports a database error would be associated * with the monitored resource designating the particular database that * reported the error. */ - resource: Schema$MonitoredResource; + resource?: Schema$MonitoredResource; /** * Optional. The severity of the log entry. The default value is * LogSeverity.DEFAULT. */ - severity: string; + severity?: string; /** * Optional. Source code location information associated with the log entry, * if any. */ - sourceLocation: Schema$LogEntrySourceLocation; + sourceLocation?: Schema$LogEntrySourceLocation; /** * Optional. The span ID within the trace associated with the log entry. For * Stackdriver Trace spans, this is the same format that the Stackdriver * Trace API v2 uses: a 16-character hexadecimal encoding of an 8-byte * array, such as <code>"000000000000004a"</code>. */ - spanId: string; + spanId?: string; /** * The log entry payload, represented as a Unicode string (UTF-8). */ - textPayload: string; + textPayload?: string; /** * Optional. The time the event described by the log entry occurred. This * time is used to compute the log entry's age and to enforce the logs * retention period. If this field is omitted in a new log entry, then - * Stackdriver Logging assigns it the current time.Incoming log entries - * should have timestamps that are no more than the logs retention period in - * the past, and no more than 24 hours in the future. Log entries outside - * those time boundaries will not be available when calling entries.list, - * but those log entries can still be exported with LogSinks. + * Stackdriver Logging assigns it the current time. Timestamps have + * nanosecond accuracy, but trailing zeros in the fractional seconds might + * be omitted when the timestamp is displayed.Incoming log entries should + * have timestamps that are no more than the logs retention period in the + * past, and no more than 24 hours in the future. Log entries outside those + * time boundaries will not be available when calling entries.list, but + * those log entries can still be exported with LogSinks. */ - timestamp: string; + timestamp?: string; /** * Optional. Resource name of the trace associated with the log entry, if * any. If it contains a relative resource name, the name is assumed to be * relative to //tracing.googleapis.com. Example: * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 */ - trace: string; + trace?: string; } /** * Additional information about a potentially long-running operation with @@ -525,24 +536,24 @@ export namespace logging_v2beta1 { * Optional. Set this to True if this is the first log entry in the * operation. */ - first: boolean; + first?: boolean; /** * Optional. An arbitrary operation identifier. Log entries with the same * identifier are assumed to be part of the same operation. */ - id: string; + id?: string; /** * Optional. Set this to True if this is the last log entry in the * operation. */ - last: boolean; + last?: boolean; /** * Optional. An arbitrary producer identifier. The combination of id and * producer must be globally unique. Examples for producer: * "MyDivision.MyBigCompany.com", * "github.com/MyProject/MyApplication". */ - producer: string; + producer?: string; } /** * Additional information about the source code location that produced the log @@ -553,7 +564,7 @@ export namespace logging_v2beta1 { * Optional. Source file name. Depending on the runtime environment, this * might be a simple name or a fully-qualified name. */ - file: string; + file?: string; /** * Optional. Human-readable name of the function or method being invoked, * with optional context such as the class or package name. This information @@ -562,12 +573,12 @@ export namespace logging_v2beta1 { * qual.if.ied.Class.method (Java), dir/package.func (Go), function * (Python). */ - function: string; + function?: string; /** * Optional. Line within the source file. 1-based; 0 indicates no line * number available. */ - line: string; + line?: string; } /** * Application log line emitted while processing a request. @@ -576,19 +587,19 @@ export namespace logging_v2beta1 { /** * App-provided log message. */ - logMessage: string; + logMessage?: string; /** * Severity of this log entry. */ - severity: string; + severity?: string; /** * Where in the source code this log message was written. */ - sourceLocation: Schema$SourceLocation; + sourceLocation?: Schema$SourceLocation; /** * Approximate time when this log entry was made. */ - time: string; + time?: string; } /** * Describes a logs-based metric. The value of the metric is the number of log @@ -604,17 +615,17 @@ export namespace logging_v2beta1 { * using a DISTRIBUTION value type and it describes the bucket boundaries * used to create a histogram of the extracted values. */ - bucketOptions: Schema$BucketOptions; + bucketOptions?: Schema$BucketOptions; /** * Optional. A description of this metric, which is used in documentation. */ - description: string; + description?: string; /** * Required. An advanced logs filter which is used to match log entries. * Example: "resource.type=gae_app AND severity>=ERROR" The * maximum length of the filter is 20000 characters. */ - filter: string; + filter?: string; /** * Optional. A map from a label key string to an extractor expression which * is used to extract data from a log entry field and assign as the label @@ -628,7 +639,7 @@ export namespace logging_v2beta1 { * there are upper bounds on the maximum number of labels and the number of * active time series that are allowed in a project. */ - labelExtractors: any; + labelExtractors?: any; /** * Optional. The metric descriptor associated with the logs-based metric. If * unspecified, it uses a default metric descriptor with a DELTA metric @@ -646,7 +657,7 @@ export namespace logging_v2beta1 { * can be added in the metric_descriptor, but existing labels cannot be * modified except for their description. */ - metricDescriptor: Schema$MetricDescriptor; + metricDescriptor?: Schema$MetricDescriptor; /** * Required. The client-assigned metric identifier. Examples: * "error_count", "nginx/requests".Metric identifiers @@ -660,7 +671,7 @@ export namespace logging_v2beta1 { * parameter, then the metric identifier must be URL-encoded. Example: * "projects/my-project/metrics/nginx%2Frequests". */ - name: string; + name?: string; /** * Optional. A value_extractor is required when using a distribution * logs-based metric to extract the values to record from a log entry. Two @@ -678,12 +689,12 @@ export namespace logging_v2beta1 { * distribution.Example: REGEXP_EXTRACT(jsonPayload.request, * ".*quantity=(\d+).*") */ - valueExtractor: string; + valueExtractor?: string; /** * Deprecated. The API version that created or updated this metric. The v2 * format is used by default and cannot be changed. */ - version: string; + version?: string; } /** * Describes a sink used to export log entries to one of the following @@ -702,18 +713,18 @@ export namespace logging_v2beta1 { * permission to write to the destination or else the log entries are not * exported. For more information, see Exporting Logs With Sinks. */ - destination: string; + destination?: string; /** * Deprecated. This field is ignored when creating or updating sinks. */ - endTime: string; + endTime?: string; /** * Optional. An advanced logs filter. The only exported log entries are * those that are in the resource owning the sink and that match the filter. * For example: logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND * severity>=ERROR */ - filter: string; + filter?: string; /** * Optional. This field applies only to sinks owned by organizations and * folders. If the field is false, the default, only the logs owned by the @@ -729,7 +740,7 @@ export namespace logging_v2beta1 { * logName:("projects/test-project1/" OR * "projects/test-project2/") AND resource.type=gce_instance */ - includeChildren: boolean; + includeChildren?: boolean; /** * Required. The client-assigned sink identifier, unique within the project. * Example: "my-syslog-errors-to-pubsub". Sink identifiers are @@ -737,16 +748,16 @@ export namespace logging_v2beta1 { * upper and lower-case alphanumeric characters, underscores, hyphens, and * periods. */ - name: string; + name?: string; /** * Deprecated. The log entry format to use for this sink's exported log * entries. The v2 format is used by default and cannot be changed. */ - outputVersionFormat: string; + outputVersionFormat?: string; /** * Deprecated. This field is ignored when creating or updating sinks. */ - startTime: string; + startTime?: string; /** * Output only. An IAM identity&mdash;a service account or * group&mdash;under which Stackdriver Logging writes the exported log @@ -758,7 +769,7 @@ export namespace logging_v2beta1 { * documentation to determine the appropriate IAM roles to assign to the * identity. */ - writerIdentity: string; + writerIdentity?: string; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -769,14 +780,14 @@ export namespace logging_v2beta1 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -784,16 +795,16 @@ export namespace logging_v2beta1 { * label for the HTTP response code, response_code, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of metric_kind and value_type might not be supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -802,7 +813,7 @@ export namespace logging_v2beta1 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * The unit in which the metric value is reported. It is only applicable if * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are @@ -827,12 +838,12 @@ export namespace logging_v2beta1 { * dimensionless value 1, such as in 1/s. % represents dimensionless value * 1/100, and annotates values giving a percentage. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of metric_kind and value_type might not be supported. */ - valueType: string; + valueType?: string; } /** * An object representing a resource that can be used for monitoring, logging, @@ -855,13 +866,13 @@ export namespace logging_v2beta1 { * labels "project_id", "instance_id", and * "zone". */ - labels: any; + labels?: any; /** * Required. The monitored resource type. This field must match the type * field of a MonitoredResourceDescriptor object. For example, the type of a * Compute Engine VM instance is gce_instance. */ - type: string; + type?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -878,21 +889,21 @@ export namespace logging_v2beta1 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, "Google Cloud * SQL Database". */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels "database_id" and * "zone". */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * "projects/{project_id}/monitoredResourceDescriptors/{type}" @@ -901,13 +912,39 @@ export namespace logging_v2beta1 { * accessing the type. APIs that do not use project information can use the * resource name format "monitoredResourceDescriptors/{type}". */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * "cloudsql_database" represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; + } + /** + * Auxiliary metadata for a MonitoredResource object. MonitoredResource + * objects contain the minimum set of information to uniquely identify a + * monitored resource instance. There is some other useful auxiliary metadata. + * Google Stackdriver Monitoring & Logging uses an ingestion pipeline to + * extract metadata for cloud resources of all types , and stores the metadata + * in this message. + */ + export interface Schema$MonitoredResourceMetadata { + /** + * Output only. Values for predefined system metadata labels. System labels + * are a kind of metadata extracted by Google Stackdriver. Stackdriver + * determines what system labels are useful and how to obtain their values. + * Some examples: "machine_image", "vpc", + * "subnet_id", "security_group", "name", etc. + * System label values can be only strings, Boolean values, or a list of + * strings. For example: { "name": "my-test-instance", + * "security_group": ["a", "b", + * "c"], "spot_instance": false } + */ + systemLabels?: any; + /** + * Output only. A map of user-defined metadata labels. + */ + userLabels?: any; } /** * Complete log information about a single HTTP request to an App Engine @@ -917,73 +954,73 @@ export namespace logging_v2beta1 { /** * App Engine release version. */ - appEngineRelease: string; + appEngineRelease?: string; /** * Application that handled this request. */ - appId: string; + appId?: string; /** * An indication of the relative cost of serving this request. */ - cost: number; + cost?: number; /** * Time when the request finished. */ - endTime: string; + endTime?: string; /** * Whether this request is finished or active. */ - finished: boolean; + finished?: boolean; /** * Whether this is the first RequestLog entry for this request. If an active * request has several RequestLog entries written to Stackdriver Logging, * then this field will be set for one of them. */ - first: boolean; + first?: boolean; /** * Internet host and port number of the resource being requested. */ - host: string; + host?: string; /** * HTTP version of request. Example: "HTTP/1.1". */ - httpVersion: string; + httpVersion?: string; /** * An identifier for the instance that handled the request. */ - instanceId: string; + instanceId?: string; /** * If the instance processing this request belongs to a manually scaled * module, then this is the 0-based index of the instance. Otherwise, this * value is -1. */ - instanceIndex: number; + instanceIndex?: number; /** * Origin IP address. */ - ip: string; + ip?: string; /** * Latency of the request. */ - latency: string; + latency?: string; /** * A list of log lines emitted by the application while serving this * request. */ - line: Schema$LogLine[]; + line?: Schema$LogLine[]; /** * Number of CPU megacycles used to process request. */ - megaCycles: string; + megaCycles?: string; /** * Request method. Example: "GET", "HEAD", * "PUT", "POST", "DELETE". */ - method: string; + method?: string; /** * Module of the application that handled this request. */ - moduleId: string; + moduleId?: string; /** * The logged-in user who made the request.Most likely, this is the part of * the user's email before the @ sign. The field value is the same for @@ -992,74 +1029,74 @@ export namespace logging_v2beta1 { * the App Engine Users API.This field will be populated starting with App * Engine 1.9.21. */ - nickname: string; + nickname?: string; /** * Time this request spent in the pending request queue. */ - pendingTime: string; + pendingTime?: string; /** * Referrer URL of request. */ - referrer: string; + referrer?: string; /** * Globally unique identifier for a request, which is based on the request * start time. Request IDs for requests which started later will compare * greater as strings than those for requests which started earlier. */ - requestId: string; + requestId?: string; /** * Contains the path and query portion of the URL that was requested. For * example, if the URL was "http://example.com/app?name=val", the * resource would be "/app?name=val". The fragment identifier, * which is identified by the # character, is not included. */ - resource: string; + resource?: string; /** * Size in bytes sent back to client by request. */ - responseSize: string; + responseSize?: string; /** * Source code for the application that handled this request. There can be * more than one source reference per deployed application if source code is * distributed among multiple repositories. */ - sourceReference: Schema$SourceReference[]; + sourceReference?: Schema$SourceReference[]; /** * Time when the request started. */ - startTime: string; + startTime?: string; /** * HTTP response status code. Example: 200, 404. */ - status: number; + status?: number; /** * Task name of the request, in the case of an offline request. */ - taskName: string; + taskName?: string; /** * Queue name of the request, in the case of an offline request. */ - taskQueueName: string; + taskQueueName?: string; /** * Stackdriver Trace identifier for this request. */ - traceId: string; + traceId?: string; /** * File or class that handled the request. */ - urlMapEntry: string; + urlMapEntry?: string; /** * User agent that made the request. */ - userAgent: string; + userAgent?: string; /** * Version of the application that handled this request. */ - versionId: string; + versionId?: string; /** * Whether this was a loading request for the instance. */ - wasLoadingRequest: boolean; + wasLoadingRequest?: boolean; } /** * Specifies a location in a source code file. @@ -1069,7 +1106,7 @@ export namespace logging_v2beta1 { * Source file name. Depending on the runtime environment, this might be a * simple name or a fully-qualified name. */ - file: string; + file?: string; /** * Human-readable name of the function or method being invoked, with * optional context such as the class or package name. This information is @@ -1078,11 +1115,11 @@ export namespace logging_v2beta1 { * qual.if.ied.Class.method (Java), dir/package.func (Go), function * (Python). */ - functionName: string; + functionName?: string; /** * Line within the source file. */ - line: string; + line?: string; } /** * A reference to a particular snapshot of the source tree used to build and @@ -1093,12 +1130,12 @@ export namespace logging_v2beta1 { * Optional. A URI string identifying the repository. Example: * "https://github.com/GoogleCloudPlatform/kubernetes.git" */ - repository: string; + repository?: string; /** * The canonical and persistent identifier of the deployed revision. Example * (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" */ - revisionId: string; + revisionId?: string; } /** * The parameters to WriteLogEntries. @@ -1110,7 +1147,7 @@ export namespace logging_v2beta1 { * the logging API endpoints are working properly before sending valuable * data. */ - dryRun: boolean; + dryRun?: boolean; /** * Required. The log entries to send to Stackdriver Logging. The order of * log entries in this list does not matter. Values supplied in this @@ -1130,14 +1167,14 @@ export namespace logging_v2beta1 { * entries in this list, rather than calling this method for each individual * log entry. */ - entries: Schema$LogEntry[]; + entries?: Schema$LogEntry[]; /** * Optional. Default labels that are added to the labels field of all log * entries in entries. If a log entry already has a label with the same key * as a label in this parameter, then the log entry's label is not * changed. See LogEntry. */ - labels: any; + labels?: any; /** * Optional. A default log resource name that is assigned to all log entries * in entries that do not specify a value for log_name: @@ -1150,7 +1187,7 @@ export namespace logging_v2beta1 { * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". * For more information about log names, see LogEntry. */ - logName: string; + logName?: string; /** * Optional. Whether valid entries should be written even if some other * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any @@ -1158,7 +1195,7 @@ export namespace logging_v2beta1 { * with one of the failed entries and the response includes error details * keyed by the entries' zero-based index in the entries.write method. */ - partialSuccess: boolean; + partialSuccess?: boolean; /** * Optional. A default monitored resource object that is assigned to all log * entries in entries that do not specify a value for resource. Example: { @@ -1166,13 +1203,14 @@ export namespace logging_v2beta1 { * "zone": "us-central1-a", "instance_id": * "00000000000000000000" }} See LogEntry. */ - resource: Schema$MonitoredResource; + resource?: Schema$MonitoredResource; } /** * Result returned from WriteLogEntries. empty */ export interface Schema$WriteLogEntriesResponse {} + export class Resource$Billingaccounts { root: Logging; logs: Resource$Billingaccounts$Logs; @@ -1186,6 +1224,8 @@ export namespace logging_v2beta1 { return this.root; } } + + export class Resource$Billingaccounts$Logs { root: Logging; constructor(root: Logging) { @@ -1273,25 +1313,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Logs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Billingaccounts$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Billingaccounts$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Billingaccounts$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Billingaccounts$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1400,26 +1453,39 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Billingaccounts$Logs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Billingaccounts$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Billingaccounts$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Billingaccounts$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Billingaccounts$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Billingaccounts$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1442,6 +1508,52 @@ export namespace logging_v2beta1 { } } + export interface Params$Resource$Billingaccounts$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Billingaccounts$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Entries { root: Logging; @@ -1535,28 +1647,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Entries$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Entries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Entries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1650,28 +1772,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - write(params?: any, options?: MethodOptions): + write(params?: Params$Resource$Entries$Write, options?: MethodOptions): AxiosPromise; write( - params?: any, - options?: MethodOptions| + params: Params$Resource$Entries$Write, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + write( + params: Params$Resource$Entries$Write, + callback: BodyResponseCallback): void; + write(callback: BodyResponseCallback): void; write( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Entries$Write| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Entries$Write; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Entries$Write; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1694,6 +1826,30 @@ export namespace logging_v2beta1 { } } + export interface Params$Resource$Entries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ListLogEntriesRequest; + } + export interface Params$Resource$Entries$Write { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$WriteLogEntriesRequest; + } + + export class Resource$Monitoredresourcedescriptors { root: Logging; constructor(root: Logging) { @@ -1784,30 +1940,45 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Monitoredresourcedescriptors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Monitoredresourcedescriptors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ListMonitoredResourceDescriptorsResponse>): void; + list( + params: Params$Resource$Monitoredresourcedescriptors$List, + callback: BodyResponseCallback< Schema$ListMonitoredResourceDescriptorsResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListMonitoredResourceDescriptorsResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Monitoredresourcedescriptors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListMonitoredResourceDescriptorsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Monitoredresourcedescriptors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Monitoredresourcedescriptors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -1832,6 +2003,28 @@ export namespace logging_v2beta1 { } } + export interface Params$Resource$Monitoredresourcedescriptors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + } + + export class Resource$Organizations { root: Logging; logs: Resource$Organizations$Logs; @@ -1845,6 +2038,8 @@ export namespace logging_v2beta1 { return this.root; } } + + export class Resource$Organizations$Logs { root: Logging; constructor(root: Logging) { @@ -1932,25 +2127,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Logs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Organizations$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Organizations$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2059,26 +2267,39 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Organizations$Logs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Organizations$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Organizations$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Organizations$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Organizations$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Organizations$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2101,6 +2322,52 @@ export namespace logging_v2beta1 { } } + export interface Params$Resource$Organizations$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Organizations$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Projects { root: Logging; @@ -2119,6 +2386,8 @@ export namespace logging_v2beta1 { return this.root; } } + + export class Resource$Projects$Logs { root: Logging; constructor(root: Logging) { @@ -2206,25 +2475,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Logs$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Logs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Logs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Logs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Logs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Logs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2332,26 +2614,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Logs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Logs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Logs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Logs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Logs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Logs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2374,6 +2668,52 @@ export namespace logging_v2beta1 { } } + export interface Params$Resource$Projects$Logs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" + * "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID] must be URL-encoded. For + * example, "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + */ + logName?: string; + } + export interface Params$Resource$Projects$Logs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The resource name that owns the logs: "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" + * "folders/[FOLDER_ID]" + */ + parent?: string; + } + + export class Resource$Projects$Metrics { root: Logging; constructor(root: Logging) { @@ -2458,26 +2798,39 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metrics$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Metrics$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Metrics$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Metrics$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2564,25 +2917,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metrics$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Metrics$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Metrics$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Metrics$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2672,23 +3038,35 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Metrics$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Metrics$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Metrics$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Metrics$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2792,28 +3170,40 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Metrics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Metrics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Metrics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Metrics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2914,26 +3304,39 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metrics$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Metrics$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Metrics$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Metrics$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Metrics$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metrics$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -2956,6 +3359,92 @@ export namespace logging_v2beta1 { } } + export interface Params$Resource$Projects$Metrics$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the project in which to create the metric: + * "projects/[PROJECT_ID]" The new metric must be provided in the request. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$LogMetric; + } + export interface Params$Resource$Projects$Metrics$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the metric to delete: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + */ + metricName?: string; + } + export interface Params$Resource$Projects$Metrics$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the desired metric: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + */ + metricName?: string; + } + export interface Params$Resource$Projects$Metrics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The name of the project containing the metrics: + * "projects/[PROJECT_ID]" + */ + parent?: string; + } + export interface Params$Resource$Projects$Metrics$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the metric to update: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be + * provided in the request and it's name field must be the same as + * [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new + * metric is created. + */ + metricName?: string; + /** + * Request body metadata + */ + resource?: Schema$LogMetric; + } + + export class Resource$Projects$Sinks { root: Logging; constructor(root: Logging) { @@ -3048,25 +3537,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Sinks$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Sinks$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Sinks$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3160,25 +3662,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Sinks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Sinks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Sinks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3272,23 +3787,34 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Sinks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Sinks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Sinks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Sinks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3395,26 +3921,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Sinks$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Sinks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Sinks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Sinks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3522,25 +4060,38 @@ export namespace logging_v2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Sinks$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Sinks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Sinks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Sinks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Sinks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Sinks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; const parameters = { options: Object.assign( @@ -3562,4 +4113,140 @@ export namespace logging_v2beta1 { } } } + + export interface Params$Resource$Projects$Sinks$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: + * "projects/my-logging-project", "organizations/123456789". + */ + parent?: string; + /** + * Optional. Determines the kind of IAM identity returned as writer_identity + * in the new sink. If this value is omitted or set to false, and if the + * sink's parent is a project, then the value returned as writer_identity is + * the same group or service account used by Stackdriver Logging before the + * addition of writer identities to this API. The sink's destination must be + * in the same project as the sink itself.If this field is set to true, or + * if the sink is owned by a non-project resource such as an organization, + * then the value of writer_identity will be a unique service account used + * only for exports from the new sink. For more information, see + * writer_identity in LogSink. + */ + uniqueWriterIdentity?: boolean; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } + export interface Params$Resource$Projects$Sinks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to delete, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Projects$Sinks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + } + export interface Params$Resource$Projects$Sinks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The maximum number of results to return from this request. + * Non-positive values are ignored. The presence of nextPageToken in the + * response indicates that more results might be available. + */ + pageSize?: number; + /** + * Optional. If present, then retrieve the next batch of results from the + * preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + */ + pageToken?: string; + /** + * Required. The parent resource whose sinks are to be listed: + * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" + */ + parent?: string; + } + export interface Params$Resource$Projects$Sinks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The full resource name of the sink to update, including the + * parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" + * "folders/[FOLDER_ID]/sinks/[SINK_ID]" Example: + * "projects/my-project-id/sinks/my-sink-id". + */ + sinkName?: string; + /** + * Optional. See sinks.create for a description of this field. When updating + * a sink, the effect of this field on the value of writer_identity in the + * updated sink depends on both the old and new values of this field: If the + * old and new values of this field are both false or both true, then there + * is no change to the sink's writer_identity. If the old value is false and + * the new value is true, then writer_identity is changed to a unique + * service account. It is an error if the old value is true and the new + * value is set to false or defaulted to false. + */ + uniqueWriterIdentity?: boolean; + /** + * Optional. Field mask that specifies the fields in sink that need an + * update. A sink field will be overwritten if, and only if, it is in the + * update mask. name and output only fields cannot be updated.An empty + * updateMask is temporarily treated as using the following mask for + * backwards compatibility purposes: destination,filter,includeChildren At + * some point in the future, behavior will be removed and specifying an + * empty updateMask will be an error.For a detailed FieldMask definition, + * see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskExample: + * updateMask=filter. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$LogSink; + } } diff --git a/src/apis/manufacturers/v1.ts b/src/apis/manufacturers/v1.ts index 85ed207025b..f8857422a37 100644 --- a/src/apis/manufacturers/v1.ts +++ b/src/apis/manufacturers/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace manufacturers_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Manufacturer Center API * @@ -74,176 +77,176 @@ export namespace manufacturers_v1 { * The additional images of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#addlimage. */ - additionalImageLink: Schema$Image[]; + additionalImageLink?: Schema$Image[]; /** * The target age group of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#agegroup. */ - ageGroup: string; + ageGroup?: string; /** * The brand name of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#brand. */ - brand: string; + brand?: string; /** * The capacity of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#capacity. */ - capacity: Schema$Capacity; + capacity?: Schema$Capacity; /** * The color of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#color. */ - color: string; + color?: string; /** * The count of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#count. */ - count: Schema$Count; + count?: Schema$Count; /** * The description of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#description. */ - description: string; + description?: string; /** * The disclosure date of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#disclosure. */ - disclosureDate: string; + disclosureDate?: string; /** * A list of excluded destinations. */ - excludedDestination: string[]; + excludedDestination?: string[]; /** * The rich format description of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#featuredesc. */ - featureDescription: Schema$FeatureDescription[]; + featureDescription?: Schema$FeatureDescription[]; /** * The flavor of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#flavor. */ - flavor: string; + flavor?: string; /** * The format of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#format. */ - format: string; + format?: string; /** * The target gender of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#gender. */ - gender: string; + gender?: string; /** * The Global Trade Item Number (GTIN) of the product. For more information, * see https://support.google.com/manufacturers/answer/6124116#gtin. */ - gtin: string[]; + gtin?: string[]; /** * The image of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#image. */ - imageLink: Schema$Image; + imageLink?: Schema$Image; /** * A list of included destinations. */ - includedDestination: string[]; + includedDestination?: string[]; /** * The item group id of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#itemgroupid. */ - itemGroupId: string; + itemGroupId?: string; /** * The material of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#material. */ - material: string; + material?: string; /** * The Manufacturer Part Number (MPN) of the product. For more information, * see https://support.google.com/manufacturers/answer/6124116#mpn. */ - mpn: string; + mpn?: string; /** * The pattern of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#pattern. */ - pattern: string; + pattern?: string; /** * The details of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#productdetail. */ - productDetail: Schema$ProductDetail[]; + productDetail?: Schema$ProductDetail[]; /** * The name of the group of products related to the product. For more * information, see * https://support.google.com/manufacturers/answer/6124116#productline. */ - productLine: string; + productLine?: string; /** * The canonical name of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#productname. */ - productName: string; + productName?: string; /** * The URL of the detail page of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#productpage. */ - productPageUrl: string; + productPageUrl?: string; /** * The type or category of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#producttype. */ - productType: string[]; + productType?: string[]; /** * The release date of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#release. */ - releaseDate: string; + releaseDate?: string; /** * The scent of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#scent. */ - scent: string; + scent?: string; /** * The size of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#size. */ - size: string; + size?: string; /** * The size system of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#sizesystem. */ - sizeSystem: string; + sizeSystem?: string; /** * The size type of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#sizetype. */ - sizeType: string; + sizeType?: string; /** * The suggested retail price (MSRP) of the product. For more information, * see https://support.google.com/manufacturers/answer/6124116#price. */ - suggestedRetailPrice: Schema$Price; + suggestedRetailPrice?: Schema$Price; /** * The target client id. Should only be used in the accounts of the data * partners. */ - targetClientId: string; + targetClientId?: string; /** * The theme of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#theme. */ - theme: string; + theme?: string; /** * The title of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#title. */ - title: string; + title?: string; /** * The videos of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#video. */ - videoLink: string[]; + videoLink?: string[]; } /** * The capacity of a product. For more information, see @@ -253,11 +256,11 @@ export namespace manufacturers_v1 { /** * The unit of the capacity, i.e., MB, GB, or TB. */ - unit: string; + unit?: string; /** * The numeric value of the capacity. */ - value: string; + value?: string; } /** * The number of products in a single package. For more information, see @@ -267,11 +270,11 @@ export namespace manufacturers_v1 { /** * The unit in which these products are counted. */ - unit: string; + unit?: string; /** * The numeric value of the number of products in a package. */ - value: string; + value?: string; } /** * The destination status. @@ -280,11 +283,11 @@ export namespace manufacturers_v1 { /** * The name of the destination. */ - destination: string; + destination?: string; /** * The status of the destination. */ - status: string; + status?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -302,15 +305,15 @@ export namespace manufacturers_v1 { /** * A short description of the feature. */ - headline: string; + headline?: string; /** * An optional image describing the feature. */ - image: Schema$Image; + image?: Schema$Image; /** * A detailed description of the feature. */ - text: string; + text?: string; } /** * An image. @@ -321,15 +324,15 @@ export namespace manufacturers_v1 { * uploaded images, this is a serving URL from Google if the image has been * processed successfully. */ - imageUrl: string; + imageUrl?: string; /** * The status of the image. @OutputOnly */ - status: string; + status?: string; /** * The type of the image, i.e., crawled or uploaded. @OutputOnly */ - type: string; + type?: string; } /** * Product issue. @@ -340,46 +343,46 @@ export namespace manufacturers_v1 { * about attributes, see * https://support.google.com/manufacturers/answer/6124116. */ - attribute: string; + attribute?: string; /** * Longer description of the issue focused on how to resolve it. */ - description: string; + description?: string; /** * The destination this issue applies to. */ - destination: string; + destination?: string; /** * What needs to happen to resolve the issue. */ - resolution: string; + resolution?: string; /** * The severity of the issue. */ - severity: string; + severity?: string; /** * The timestamp when this issue appeared. */ - timestamp: string; + timestamp?: string; /** * Short title describing the nature of the issue. */ - title: string; + title?: string; /** * The server-generated type of the issue, for example, * “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. */ - type: string; + type?: string; } export interface Schema$ListProductsResponse { /** * The token for the retrieval of the next page of product statuses. */ - nextPageToken: string; + nextPageToken?: string; /** * List of the products. */ - products: Schema$Product[]; + products?: Schema$Product[]; } /** * A price. @@ -388,11 +391,11 @@ export namespace manufacturers_v1 { /** * The numeric value of the price. */ - amount: string; + amount?: string; /** * The currency in which the price is denoted. */ - currency: string; + currency?: string; } /** * Product data. @@ -401,16 +404,16 @@ export namespace manufacturers_v1 { /** * Attributes of the product uploaded to the Manufacturer Center. */ - attributes: Schema$Attributes; + attributes?: Schema$Attributes; /** * The content language of the product as a two-letter ISO 639-1 language * code (for example, en). */ - contentLanguage: string; + contentLanguage?: string; /** * The status of the destinations. */ - destinationStatuses: Schema$DestinationStatus[]; + destinationStatuses?: Schema$DestinationStatus[]; /** * Final attributes of the product. The final attributes are obtained by * overriding the uploaded attributes with the manually provided and deleted @@ -418,23 +421,23 @@ export namespace manufacturers_v1 { * final attributes. This field is deprecated and will be removed end of * July 2018. Please use attributes. */ - finalAttributes: Schema$Attributes; + finalAttributes?: Schema$Attributes; /** * A server-generated list of issues associated with the product. */ - issues: Schema$Issue[]; + issues?: Schema$Issue[]; /** * Names of the attributes of the product deleted manually via the * Manufacturer Center UI. This field is deprecated and will be removed end * of July 2018. Please use attributes. */ - manuallyDeletedAttributes: string[]; + manuallyDeletedAttributes?: string[]; /** * Attributes of the product provided manually via the Manufacturer Center * UI. This field is deprecated and will be removed end of July 2018. * Please use attributes. */ - manuallyProvidedAttributes: Schema$Attributes; + manuallyProvidedAttributes?: Schema$Attributes; /** * Name in the format `{target_country}:{content_language}:{product_id}`. * `target_country` - The target country of the product as a CLDR @@ -444,28 +447,28 @@ export namespace manufacturers_v1 { * more information, see * https://support.google.com/manufacturers/answer/6124116#id. */ - name: string; + name?: string; /** * Parent ID in the format `accounts/{account_id}`. `account_id` - The ID * of the Manufacturer Center account. */ - parent: string; + parent?: string; /** * The ID of the product. For more information, see * https://support.google.com/manufacturers/answer/6124116#id. */ - productId: string; + productId?: string; /** * The target country of the product as a CLDR territory code (for example, * US). */ - targetCountry: string; + targetCountry?: string; /** * Attributes of the product uploaded via the Manufacturer Center API or via * feeds. This field is deprecated and will be removed end of July 2018. * Please use attributes. */ - uploadedAttributes: Schema$Attributes; + uploadedAttributes?: Schema$Attributes; } /** * A product detail of the product. For more information, see @@ -475,17 +478,18 @@ export namespace manufacturers_v1 { /** * The name of the attribute. */ - attributeName: string; + attributeName?: string; /** * The value of the attribute. */ - attributeValue: string; + attributeValue?: string; /** * A short section name that can be reused between multiple product details. */ - sectionName: string; + sectionName?: string; } + export class Resource$Accounts { root: Manufacturers; products: Resource$Accounts$Products; @@ -499,6 +503,8 @@ export namespace manufacturers_v1 { return this.root; } } + + export class Resource$Accounts$Products { root: Manufacturers; constructor(root: Manufacturers) { @@ -524,25 +530,38 @@ export namespace manufacturers_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Products$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Products$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Products$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Products$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Products$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Products$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { @@ -584,23 +603,34 @@ export namespace manufacturers_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Products$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Products$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Products$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Products$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Products$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Products$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { @@ -639,28 +669,40 @@ export namespace manufacturers_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Products$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Products$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Products$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Products$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Products$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Products$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { @@ -709,25 +751,38 @@ export namespace manufacturers_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Products$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Products$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Products$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Products$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Products$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Products$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; const parameters = { @@ -750,4 +805,112 @@ export namespace manufacturers_v1 { } } } + + export interface Params$Resource$Accounts$Products$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name in the format `{target_country}:{content_language}:{product_id}`. + * `target_country` - The target country of the product as a CLDR + * territory code (for example, US). `content_language` + * - The content language of the product as a two-letter ISO 639-1 language + * code (for example, en). `product_id` - The ID of the product. For + * more information, see + * https://support.google.com/manufacturers/answer/6124116#id. + */ + name?: string; + /** + * Parent ID in the format `accounts/{account_id}`. `account_id` - The ID + * of the Manufacturer Center account. + */ + parent?: string; + } + export interface Params$Resource$Accounts$Products$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The information to be included in the response. Only sections listed here + * will be returned. If this parameter is not specified, ATTRIBUTES and + * ISSUES are returned. This behavior is temporary and will be removed once + * all clients are ready or at the latest end of July 2018. After that no + * sections will be returned. + */ + include?: string; + /** + * Name in the format `{target_country}:{content_language}:{product_id}`. + * `target_country` - The target country of the product as a CLDR + * territory code (for example, US). `content_language` + * - The content language of the product as a two-letter ISO 639-1 language + * code (for example, en). `product_id` - The ID of the product. For + * more information, see + * https://support.google.com/manufacturers/answer/6124116#id. + */ + name?: string; + /** + * Parent ID in the format `accounts/{account_id}`. `account_id` - The ID + * of the Manufacturer Center account. + */ + parent?: string; + } + export interface Params$Resource$Accounts$Products$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The information to be included in the response. Only sections listed here + * will be returned. If this parameter is not specified, ATTRIBUTES and + * ISSUES are returned. This behavior is temporary and will be removed once + * all clients are ready or at the latest end of July 2018. After that no + * sections will be returned. + */ + include?: string; + /** + * Maximum number of product statuses to return in the response, used for + * paging. + */ + pageSize?: number; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * Parent ID in the format `accounts/{account_id}`. `account_id` - The ID + * of the Manufacturer Center account. + */ + parent?: string; + } + export interface Params$Resource$Accounts$Products$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name in the format `{target_country}:{content_language}:{product_id}`. + * `target_country` - The target country of the product as a CLDR + * territory code (for example, US). `content_language` + * - The content language of the product as a two-letter ISO 639-1 language + * code (for example, en). `product_id` - The ID of the product. For + * more information, see + * https://support.google.com/manufacturers/answer/6124116#id. + */ + name?: string; + /** + * Parent ID in the format `accounts/{account_id}`. `account_id` - The ID + * of the Manufacturer Center account. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Attributes; + } } diff --git a/src/apis/mirror/v1.ts b/src/apis/mirror/v1.ts index b3cd4ba47eb..d9062b6f09b 100644 --- a/src/apis/mirror/v1.ts +++ b/src/apis/mirror/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace mirror_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Mirror API * @@ -79,10 +82,10 @@ export namespace mirror_v1 { * Represents an account passed into the Account Manager on Glass. */ export interface Schema$Account { - authTokens: Schema$AuthToken[]; - features: string[]; - password: string; - userData: Schema$UserData[]; + authTokens?: Schema$AuthToken[]; + features?: string[]; + password?: string; + userData?: Schema$UserData[]; } /** * Represents media content, such as a photo, that can be attached to a @@ -92,21 +95,21 @@ export namespace mirror_v1 { /** * The MIME type of the attachment. */ - contentType: string; + contentType?: string; /** * The URL for the content. */ - contentUrl: string; + contentUrl?: string; /** * The ID of the attachment. */ - id: string; + id?: string; /** * Indicates that the contentUrl is not available because the attachment * content is still being processed. If the caller wishes to retrieve the * content, it should try again later. */ - isProcessingContent: boolean; + isProcessingContent?: boolean; } /** * A list of Attachments. This is the response from the server to GET requests @@ -116,15 +119,15 @@ export namespace mirror_v1 { /** * The list of attachments. */ - items: Schema$Attachment[]; + items?: Schema$Attachment[]; /** * The type of resource. This is always mirror#attachmentsList. */ - kind: string; + kind?: string; } export interface Schema$AuthToken { - authToken: string; - type: string; + authToken?: string; + type?: string; } /** * A single menu command that is part of a Contact. @@ -137,7 +140,7 @@ export namespace mirror_v1 { * POST_AN_UPDATE - Shares a timeline item with the transcription of user * speech from the "Post an update" voice menu command. */ - type: string; + type?: string; } /** * A person or group that can be used as a creator or a contact. @@ -149,54 +152,54 @@ export namespace mirror_v1 { * that, the three contacts with the highest priority are shown for that * particular command. */ - acceptCommands: Schema$Command[]; + acceptCommands?: Schema$Command[]; /** * A list of MIME types that a contact supports. The contact will be shown * to the user if any of its acceptTypes matches any of the types of the * attachments on the item. If no acceptTypes are given, the contact will be * shown for all items. */ - acceptTypes: string[]; + acceptTypes?: string[]; /** * The name to display for this contact. */ - displayName: string; + displayName?: string; /** * An ID for this contact. This is generated by the application and is * treated as an opaque token. */ - id: string; + id?: string; /** * Set of image URLs to display for a contact. Most contacts will have a * single image, but a "group" contact may include up to 8 image * URLs and they will be resized and cropped into a mosaic on the client. */ - imageUrls: string[]; + imageUrls?: string[]; /** * The type of resource. This is always mirror#contact. */ - kind: string; + kind?: string; /** * Primary phone number for the contact. This can be a fully-qualified * number, with country calling code and area code, or a local number. */ - phoneNumber: string; + phoneNumber?: string; /** * Priority for the contact to determine ordering in a list of contacts. * Contacts with higher priorities will be shown before ones with lower * priorities. */ - priority: number; + priority?: number; /** * A list of sharing features that a contact can handle. Allowed values are: * - ADD_CAPTION */ - sharingFeatures: string[]; + sharingFeatures?: string[]; /** * The ID of the application that created this contact. This is populated by * the API */ - source: string; + source?: string; /** * Name of this contact as it should be pronounced. If this contact's * name must be spoken as part of a voice disambiguation menu, this name is @@ -204,13 +207,13 @@ export namespace mirror_v1 { * unpronounceable characters or whose display spelling is otherwise not * phonetic. */ - speakableName: string; + speakableName?: string; /** * The type for this contact. This is used for sorting in UIs. Allowed * values are: - INDIVIDUAL - Represents a single person. This is the * default. - GROUP - Represents more than a single person. */ - type: string; + type?: string; } /** * A list of Contacts representing contacts. This is the response from the @@ -220,11 +223,11 @@ export namespace mirror_v1 { /** * Contact list. */ - items: Schema$Contact[]; + items?: Schema$Contact[]; /** * The type of resource. This is always mirror#contacts. */ - kind: string; + kind?: string; } /** * A geographic location that can be associated with a timeline item. @@ -233,37 +236,37 @@ export namespace mirror_v1 { /** * The accuracy of the location fix in meters. */ - accuracy: number; + accuracy?: number; /** * The full address of the location. */ - address: string; + address?: string; /** * The name to be displayed. This may be a business name or a user-defined * place, such as "Home". */ - displayName: string; + displayName?: string; /** * The ID of the location. */ - id: string; + id?: string; /** * The type of resource. This is always mirror#location. */ - kind: string; + kind?: string; /** * The latitude, in degrees. */ - latitude: number; + latitude?: number; /** * The longitude, in degrees. */ - longitude: number; + longitude?: number; /** * The time at which this location was captured, formatted according to RFC * 3339. */ - timestamp: string; + timestamp?: string; } /** * A list of Locations. This is the response from the server to GET requests @@ -273,11 +276,11 @@ export namespace mirror_v1 { /** * The list of locations. */ - items: Schema$Location[]; + items?: Schema$Location[]; /** * The type of resource. This is always mirror#locationsList. */ - kind: string; + kind?: string; } /** * A custom menu item that can be presented to the user by a timeline item. @@ -312,7 +315,7 @@ export namespace mirror_v1 { * the message is an SMS. - Otherwise, if the creator.email is set, the * message is an email. */ - action: string; + action?: string; /** * The ContextualMenus.Command associated with this MenuItem (e.g. * READ_ALOUD). The voice label for this command will be displayed in the @@ -321,12 +324,12 @@ export namespace mirror_v1 { * specify this property. Values that do not correspond to a * ContextualMenus.Command name will be ignored. */ - contextual_command: string; + contextual_command?: string; /** * The ID for this menu item. This is generated by the application and is * treated as an opaque token. */ - id: string; + id?: string; /** * A generic payload whose meaning changes depending on this MenuItem's * action. - When the action is OPEN_URI, the payload is the URL of the @@ -334,19 +337,19 @@ export namespace mirror_v1 { * streaming URL of the video - When the action is GET_MEDIA_INPUT, the * payload is the text transcription of a user's speech input */ - payload: string; + payload?: string; /** * If set to true on a CUSTOM menu item, that item will be removed from the * menu after it is selected. */ - removeWhenSelected: boolean; + removeWhenSelected?: boolean; /** * For CUSTOM items, a list of values controlling the appearance of the menu * item in each of its states. A value for the DEFAULT state must be * provided. If the PENDING or CONFIRMED states are missing, they will not * be shown. */ - values: Schema$MenuValue[]; + values?: Schema$MenuValue[]; } /** * A single value that is part of a MenuItem. @@ -357,11 +360,11 @@ export namespace mirror_v1 { * built-in menu item, the default contextual voice command for that menu * item is not shown. */ - displayName: string; + displayName?: string; /** * URL of an icon to display with the menu item. */ - iconUrl: string; + iconUrl?: string; /** * The state that this value applies to. Allowed values are: - DEFAULT - * Default value shown when displayed in the menuItems list. - PENDING - @@ -369,7 +372,7 @@ export namespace mirror_v1 { * be cancelled. - CONFIRMED - Value shown when the menuItem has been * selected by the user and can no longer be cancelled. */ - state: string; + state?: string; } /** * A notification delivered by the API. @@ -378,29 +381,29 @@ export namespace mirror_v1 { /** * The collection that generated the notification. */ - collection: string; + collection?: string; /** * The ID of the item that generated the notification. */ - itemId: string; + itemId?: string; /** * The type of operation that generated the notification. */ - operation: string; + operation?: string; /** * A list of actions taken by the user that triggered the notification. */ - userActions: Schema$UserAction[]; + userActions?: Schema$UserAction[]; /** * The user token provided by the service when it subscribed for * notifications. */ - userToken: string; + userToken?: string; /** * The secret verify token provided by the service when it subscribed for * notifications. */ - verifyToken: string; + verifyToken?: string; } /** * Controls how notifications for a timeline item are presented to the user. @@ -409,13 +412,13 @@ export namespace mirror_v1 { /** * The time at which the notification should be delivered. */ - deliveryTime: string; + deliveryTime?: string; /** * Describes how important the notification is. Allowed values are: - * DEFAULT - Notifications of default importance. A chime will be played to * alert users. */ - level: string; + level?: string; } /** * A setting for Glass. @@ -428,15 +431,15 @@ export namespace mirror_v1 { * current time zone region as defined in the tz database. Example: * America/Los_Angeles. */ - id: string; + id?: string; /** * The type of resource. This is always mirror#setting. */ - kind: string; + kind?: string; /** * The setting value, as a string. */ - value: string; + value?: string; } /** * A subscription to events on a collection. @@ -446,26 +449,26 @@ export namespace mirror_v1 { * The URL where notifications should be delivered (must start with * https://). */ - callbackUrl: string; + callbackUrl?: string; /** * The collection to subscribe to. Allowed values are: - timeline - * Changes in the timeline including insertion, deletion, and updates. - * locations - Location updates. - settings - Settings updates. */ - collection: string; + collection?: string; /** * The ID of the subscription. */ - id: string; + id?: string; /** * The type of resource. This is always mirror#subscription. */ - kind: string; + kind?: string; /** * Container object for notifications. This is not populated in the * Subscription resource. */ - notification: Schema$Notification; + notification?: Schema$Notification; /** * A list of operations that should be subscribed to. An empty list * indicates that all operations on the collection should be subscribed to. @@ -473,22 +476,22 @@ export namespace mirror_v1 { * new item has been inserted. - DELETE - The item has been deleted. - * MENU_ACTION - A custom menu item has been triggered by the user. */ - operation: string[]; + operation?: string[]; /** * The time at which this subscription was last modified, formatted * according to RFC 3339. */ - updated: string; + updated?: string; /** * An opaque token sent to the subscriber in notifications so that it can * determine the ID of the user. */ - userToken: string; + userToken?: string; /** * A secret token sent to the subscriber in notifications so that it can * verify that the notification was generated by Google. */ - verifyToken: string; + verifyToken?: string; } /** * A list of Subscriptions. This is the response from the server to GET @@ -498,11 +501,11 @@ export namespace mirror_v1 { /** * The list of subscriptions. */ - items: Schema$Subscription[]; + items?: Schema$Subscription[]; /** * The type of resource. This is always mirror#subscriptionsList. */ - kind: string; + kind?: string; } /** * Each item in the user's timeline is represented as a TimelineItem JSON @@ -518,26 +521,26 @@ export namespace mirror_v1 { * src="cid:attachment_id"> where attachment_id is the ID of * the attachment. */ - attachments: Schema$Attachment[]; + attachments?: Schema$Attachment[]; /** * The bundle ID for this item. Services can specify a bundleId to group * many items together. They appear under a single top-level item on the * device. */ - bundleId: string; + bundleId?: string; /** * A canonical URL pointing to the canonical/high quality version of the * data represented by the timeline item. */ - canonicalUrl: string; + canonicalUrl?: string; /** * The time at which this item was created, formatted according to RFC 3339. */ - created: string; + created?: string; /** * The user or group that created this item. */ - creator: Schema$Contact; + creator?: Schema$Contact; /** * The time that should be displayed when this item is viewed in the * timeline, formatted according to RFC 3339. This user's timeline is @@ -545,11 +548,11 @@ export namespace mirror_v1 { * the item is displayed in the timeline. If not set by the service, the * display time defaults to the updated time. */ - displayTime: string; + displayTime?: string; /** * ETag for this item. */ - etag: string; + etag?: string; /** * HTML content for this item. If both text and html are provided for an * item, the html will be rendered in the timeline. Allowed HTML elements - @@ -565,17 +568,17 @@ export namespace mirror_v1 { * script Other elements: Any elements that aren't listed are removed, * but their contents are preserved. */ - html: string; + html?: string; /** * The ID of the timeline item. This is unique within a user's timeline. */ - id: string; + id?: string; /** * If this item was generated as a reply to another item, this field will be * set to the ID of the item being replied to. This can be used to attach a * reply to the appropriate conversation or post. */ - inReplyTo: string; + inReplyTo?: string; /** * Whether this item is a bundle cover. If an item is marked as a bundle * cover, it will be the entry point to the bundle of items that have the @@ -585,12 +588,12 @@ export namespace mirror_v1 { * have a bundleId In a bundle sub-timeline, items that are shown are: - * Items that have the bundleId in question AND isBundleCover set to false */ - isBundleCover: boolean; + isBundleCover?: boolean; /** * When true, indicates this item is deleted, and only the ID property is * set. */ - isDeleted: boolean; + isDeleted?: boolean; /** * When true, indicates this item is pinned, which means it's grouped * alongside "active" items like navigation and hangouts, on the @@ -598,44 +601,44 @@ export namespace mirror_v1 { * items. You can allow the user to toggle the value of this property with * the TOGGLE_PINNED built-in menu item. */ - isPinned: boolean; + isPinned?: boolean; /** * The type of resource. This is always mirror#timelineItem. */ - kind: string; + kind?: string; /** * The geographic location associated with this item. */ - location: Schema$Location; + location?: Schema$Location; /** * A list of menu items that will be presented to the user when this item is * selected in the timeline. */ - menuItems: Schema$MenuItem[]; + menuItems?: Schema$MenuItem[]; /** * Controls how notifications for this item are presented on the device. If * this is missing, no notification will be generated. */ - notification: Schema$NotificationConfig; + notification?: Schema$NotificationConfig; /** * For pinned items, this determines the order in which the item is * displayed in the timeline, with a higher score appearing closer to the * clock. Note: setting this field is currently not supported. */ - pinScore: number; + pinScore?: number; /** * A list of users or groups that this item has been shared with. */ - recipients: Schema$Contact[]; + recipients?: Schema$Contact[]; /** * A URL that can be used to retrieve this item. */ - selfLink: string; + selfLink?: string; /** * Opaque string you can use to map a timeline item to data in your own * service. */ - sourceItemId: string; + sourceItemId?: string; /** * The speakable version of the content of this item. Along with the * READ_ALOUD menu item, use this field to provide text that would be @@ -645,7 +648,7 @@ export namespace mirror_v1 { * the additional context is useful, for example when the user requests that * the item be read aloud following a notification. */ - speakableText: string; + speakableText?: string; /** * A speakable description of the type of this item. This will be announced * to the user prior to reading the content of the item in cases where the @@ -657,20 +660,20 @@ export namespace mirror_v1 { * contain speakableText or text so that the user can learn the type of the * item without looking at the screen. */ - speakableType: string; + speakableType?: string; /** * Text content of this item. */ - text: string; + text?: string; /** * The title of this item. */ - title: string; + title?: string; /** * The time at which this item was last modified, formatted according to RFC * 3339. */ - updated: string; + updated?: string; } /** * A list of timeline items. This is the response from the server to GET @@ -680,16 +683,16 @@ export namespace mirror_v1 { /** * Items in the timeline. */ - items: Schema$TimelineItem[]; + items?: Schema$TimelineItem[]; /** * The type of resource. This is always mirror#timeline. */ - kind: string; + kind?: string; /** * The next page token. Provide this as the pageToken parameter in the * request to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents an action taken by the user that triggered a notification. @@ -699,7 +702,7 @@ export namespace mirror_v1 { * An optional payload for the action. For actions of type CUSTOM, this is * the ID of the custom menu item that was selected. */ - payload: string; + payload?: string; /** * The type of action. The value of this can be: - SHARE - the user shared * an item. - REPLY - the user replied to an item. - REPLY_ALL - the user @@ -710,13 +713,14 @@ export namespace mirror_v1 { * additional types may be added. UserActions with unrecognized types should * be ignored. */ - type: string; + type?: string; } export interface Schema$UserData { - key: string; - value: string; + key?: string; + value?: string; } + export class Resource$Accounts { root: Mirror; constructor(root: Mirror) { @@ -744,25 +748,36 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Accounts$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Accounts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -787,6 +802,31 @@ export namespace mirror_v1 { } } + export interface Params$Resource$Accounts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the account to be passed to the Android Account Manager. + */ + accountName?: string; + /** + * Account type to be passed to Android Account Manager. + */ + accountType?: string; + /** + * The ID for the user. + */ + userToken?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + + export class Resource$Contacts { root: Mirror; constructor(root: Mirror) { @@ -811,22 +851,35 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Contacts$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Contacts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Contacts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contacts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Contacts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contacts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -861,23 +914,33 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Contacts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Contacts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Contacts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Contacts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Contacts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contacts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -912,25 +975,36 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Contacts$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Contacts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contacts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Contacts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Contacts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contacts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -964,28 +1038,38 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Contacts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contacts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contacts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Contacts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Contacts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contacts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1021,25 +1105,36 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Contacts$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Contacts$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Contacts$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contacts$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Contacts$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contacts$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1075,25 +1170,36 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Contacts$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Contacts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Contacts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contacts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Contacts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contacts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1116,6 +1222,72 @@ export namespace mirror_v1 { } } + export interface Params$Resource$Contacts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the contact. + */ + id?: string; + } + export interface Params$Resource$Contacts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the contact. + */ + id?: string; + } + export interface Params$Resource$Contacts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Contacts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Contacts$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the contact. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$Contact; + } + export interface Params$Resource$Contacts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the contact. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$Contact; + } + + export class Resource$Locations { root: Mirror; constructor(root: Mirror) { @@ -1140,23 +1312,33 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1190,28 +1372,38 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Locations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1234,6 +1426,25 @@ export namespace mirror_v1 { } } + export interface Params$Resource$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the location or latest for the last known location. + */ + id?: string; + } + export interface Params$Resource$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Settings { root: Mirror; constructor(root: Mirror) { @@ -1258,23 +1469,33 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Settings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Settings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Settings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Settings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Settings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Settings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1297,6 +1518,23 @@ export namespace mirror_v1 { } } + export interface Params$Resource$Settings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the setting. The following IDs are valid: - locale - The key + * to the user’s language/locale (BCP 47 identifier) that Glassware should + * use to render localized content. - timezone - The key to the user’s + * current time zone region as defined in the tz database. Example: + * America/Los_Angeles. + */ + id?: string; + } + + export class Resource$Subscriptions { root: Mirror; constructor(root: Mirror) { @@ -1321,22 +1559,37 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subscriptions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Subscriptions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1371,26 +1624,39 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Subscriptions$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Subscriptions$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1425,29 +1691,40 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subscriptions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Subscriptions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1484,26 +1761,39 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Subscriptions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Subscriptions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1526,6 +1816,46 @@ export namespace mirror_v1 { } } + export interface Params$Resource$Subscriptions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the subscription. + */ + id?: string; + } + export interface Params$Resource$Subscriptions$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Subscriptions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the subscription. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$Subscription; + } + + export class Resource$Timeline { root: Mirror; attachments: Resource$Timeline$Attachments; @@ -1552,22 +1882,35 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Timeline$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Timeline$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Timeline$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Timeline$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Timeline$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1602,24 +1945,34 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Timeline$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Timeline$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Timeline$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Timeline$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Timeline$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1657,26 +2010,37 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Timeline$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Timeline$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Timeline$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Timeline$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Timeline$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1719,28 +2083,38 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Timeline$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Timeline$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Timeline$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Timeline$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Timeline$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1777,26 +2151,37 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Timeline$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Timeline$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Timeline$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Timeline$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Timeline$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1835,26 +2220,37 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Timeline$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Timeline$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Timeline$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Timeline$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Timeline$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1878,6 +2274,115 @@ export namespace mirror_v1 { } } } + + export interface Params$Resource$Timeline$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the timeline item. + */ + id?: string; + } + export interface Params$Resource$Timeline$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the timeline item. + */ + id?: string; + } + export interface Params$Resource$Timeline$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Timeline$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If provided, only items with the given bundleId will be returned. + */ + bundleId?: string; + /** + * If true, tombstone records for deleted items will be returned. + */ + includeDeleted?: boolean; + /** + * The maximum number of items to include in the response, used for paging. + */ + maxResults?: number; + /** + * Controls the order in which timeline items are returned. + */ + orderBy?: string; + /** + * Token for the page of results to return. + */ + pageToken?: string; + /** + * If true, only pinned items will be returned. + */ + pinnedOnly?: boolean; + /** + * If provided, only items with the given sourceItemId will be returned. + */ + sourceItemId?: string; + } + export interface Params$Resource$Timeline$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the timeline item. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$TimelineItem; + } + export interface Params$Resource$Timeline$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the timeline item. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$TimelineItem; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export class Resource$Timeline$Attachments { root: Mirror; constructor(root: Mirror) { @@ -1903,22 +2408,37 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Timeline$Attachments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Timeline$Attachments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Timeline$Attachments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Timeline$Attachments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Timeline$Attachments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Attachments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1956,23 +2476,35 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Timeline$Attachments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Timeline$Attachments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Timeline$Attachments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Timeline$Attachments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Timeline$Attachments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Attachments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2011,26 +2543,39 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Timeline$Attachments$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Timeline$Attachments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Timeline$Attachments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Timeline$Attachments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Timeline$Attachments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Attachments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2067,28 +2612,40 @@ export namespace mirror_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Timeline$Attachments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Timeline$Attachments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Timeline$Attachments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Timeline$Attachments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Timeline$Attachments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Timeline$Attachments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2110,4 +2667,71 @@ export namespace mirror_v1 { } } } + + export interface Params$Resource$Timeline$Attachments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the attachment. + */ + attachmentId?: string; + /** + * The ID of the timeline item the attachment belongs to. + */ + itemId?: string; + } + export interface Params$Resource$Timeline$Attachments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the attachment. + */ + attachmentId?: string; + /** + * The ID of the timeline item the attachment belongs to. + */ + itemId?: string; + } + export interface Params$Resource$Timeline$Attachments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the timeline item the attachment belongs to. + */ + itemId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Timeline$Attachments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the timeline item whose attachments should be listed. + */ + itemId?: string; + } } diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index 8ab26d137b3..ffe1bd61764 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace ml_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Machine Learning Engine * @@ -89,16 +92,16 @@ export namespace ml_v1 { /** * The HTTP Content-Type string representing the content type of the body. */ - contentType: string; + contentType?: string; /** * HTTP body binary data. */ - data: string; + data?: string; /** * Application specific response metadata. Must be set in the first response * for streaming APIs. */ - extensions: any[]; + extensions?: any[]; } /** * An observed value of a metric. @@ -107,11 +110,11 @@ export namespace ml_v1 { /** * The objective value at this training step. */ - objectiveValue: number; + objectiveValue?: number; /** * The global training step for this metric. */ - trainingStep: string; + trainingStep?: string; } /** * Options for automatically scaling a model. @@ -133,7 +136,7 @@ export namespace ml_v1 { * period), nodes will be shut down and no charges will be incurred until * traffic to the model resumes. */ - minNodes: number; + minNodes?: number; } /** * Request message for the CancelJob method. @@ -143,28 +146,28 @@ export namespace ml_v1 { /** * Available accelerators for the capability. */ - availableAccelerators: string[]; - type: string; + availableAccelerators?: string[]; + type?: string; } export interface Schema$GoogleCloudMlV1__Config { /** * The service account Cloud ML uses to run on TPU node. */ - tpuServiceAccount: string; + tpuServiceAccount?: string; } /** * Returns service account information associated with a project. */ export interface Schema$GoogleCloudMlV1__GetConfigResponse { - config: Schema$GoogleCloudMlV1__Config; + config?: Schema$GoogleCloudMlV1__Config; /** * The service account Cloud ML uses to access resources in the project. */ - serviceAccount: string; + serviceAccount?: string; /** * The project number for `service_account`. */ - serviceAccountProject: string; + serviceAccountProject?: string; } /** * Represents the result of a single hyperparameter tuning trial from a @@ -177,25 +180,25 @@ export namespace ml_v1 { * All recorded object metrics for this trial. This field is not currently * populated. */ - allMetrics: + allMetrics?: Schema$GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric[]; /** * The final objective metric seen for this trial. */ - finalMetric: + finalMetric?: Schema$GoogleCloudMlV1_HyperparameterOutput_HyperparameterMetric; /** * The hyperparameters given to this trial. */ - hyperparameters: any; + hyperparameters?: any; /** * True if the trial is stopped early. */ - isTrialStoppedEarly: boolean; + isTrialStoppedEarly?: boolean; /** * The trial id for these results. */ - trialId: string; + trialId?: string; } /** * Represents a set of hyperparameters to optimize. @@ -206,17 +209,17 @@ export namespace ml_v1 { * job. Uses the default CloudML Engine hyperparameter tuning algorithm if * unspecified. */ - algorithm: string; + algorithm?: string; /** * Optional. Indicates if the hyperparameter tuning job enables auto trial * early stopping. */ - enableTrialEarlyStopping: boolean; + enableTrialEarlyStopping?: boolean; /** * Required. The type of goal to use for tuning. Available types are * `MAXIMIZE` and `MINIMIZE`. Defaults to `MAXIMIZE`. */ - goal: string; + goal?: string; /** * Optional. The Tensorflow summary tag name to use for optimizing trials. * For current versions of Tensorflow, this tag name should exactly match @@ -225,7 +228,7 @@ export namespace ml_v1 { * tf.Summary. By default, "training/hptuning/metric" will be * used. */ - hyperparameterMetricTag: string; + hyperparameterMetricTag?: string; /** * Optional. The number of training trials to run concurrently. You can * reduce the time it takes to perform hyperparameter tuning by adding @@ -235,22 +238,22 @@ export namespace ml_v1 { * reduce the quality of the overall optimization. Each trial will use the * same scale tier and machine types. Defaults to one. */ - maxParallelTrials: number; + maxParallelTrials?: number; /** * Optional. How many training trials should be attempted to optimize the * specified hyperparameters. Defaults to one. */ - maxTrials: number; + maxTrials?: number; /** * Required. The set of parameters to tune. */ - params: Schema$GoogleCloudMlV1__ParameterSpec[]; + params?: Schema$GoogleCloudMlV1__ParameterSpec[]; /** * Optional. The prior hyperparameter tuning job id that users hope to * continue with. The job id will be used to find the corresponding vizier * study guid and resume the study. */ - resumePreviousJobId: string; + resumePreviousJobId?: string; } /** * Represents a training or prediction job. @@ -259,43 +262,43 @@ export namespace ml_v1 { /** * Output only. When the job was created. */ - createTime: string; + createTime?: string; /** * Output only. When the job processing was completed. */ - endTime: string; + endTime?: string; /** * Output only. The details of a failure or a cancellation. */ - errorMessage: string; + errorMessage?: string; /** * Required. The user-specified id of the job. */ - jobId: string; + jobId?: string; /** * Input parameters to create a prediction job. */ - predictionInput: Schema$GoogleCloudMlV1__PredictionInput; + predictionInput?: Schema$GoogleCloudMlV1__PredictionInput; /** * The current prediction job result. */ - predictionOutput: Schema$GoogleCloudMlV1__PredictionOutput; + predictionOutput?: Schema$GoogleCloudMlV1__PredictionOutput; /** * Output only. When the job processing was started. */ - startTime: string; + startTime?: string; /** * Output only. The detailed state of a job. */ - state: string; + state?: string; /** * Input parameters to create a training job. */ - trainingInput: Schema$GoogleCloudMlV1__TrainingInput; + trainingInput?: Schema$GoogleCloudMlV1__TrainingInput; /** * The current training job result. */ - trainingOutput: Schema$GoogleCloudMlV1__TrainingOutput; + trainingOutput?: Schema$GoogleCloudMlV1__TrainingOutput; } /** * Response message for the ListJobs method. @@ -304,23 +307,23 @@ export namespace ml_v1 { /** * The list of jobs. */ - jobs: Schema$GoogleCloudMlV1__Job[]; + jobs?: Schema$GoogleCloudMlV1__Job[]; /** * Optional. Pass this token as the `page_token` field of the request for a * subsequent call. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$GoogleCloudMlV1__ListLocationsResponse { /** * Locations where at least one type of CMLE capability is available. */ - locations: Schema$GoogleCloudMlV1__Location[]; + locations?: Schema$GoogleCloudMlV1__Location[]; /** * Optional. Pass this token as the `page_token` field of the request for a * subsequent call. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for the ListModels method. @@ -329,12 +332,12 @@ export namespace ml_v1 { /** * The list of models. */ - models: Schema$GoogleCloudMlV1__Model[]; + models?: Schema$GoogleCloudMlV1__Model[]; /** * Optional. Pass this token as the `page_token` field of the request for a * subsequent call. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for the ListVersions method. @@ -344,18 +347,18 @@ export namespace ml_v1 { * Optional. Pass this token as the `page_token` field of the request for a * subsequent call. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of versions. */ - versions: Schema$GoogleCloudMlV1__Version[]; + versions?: Schema$GoogleCloudMlV1__Version[]; } export interface Schema$GoogleCloudMlV1__Location { /** * Capabilities available in the location. */ - capabilities: Schema$GoogleCloudMlV1__Capability[]; - name: string; + capabilities?: Schema$GoogleCloudMlV1__Capability[]; + name?: string; } /** * Options for manually scaling a model. @@ -367,7 +370,7 @@ export namespace ml_v1 { * operating this model will be proportional to `nodes` * number of hours * since last billing cycle plus the cost for each prediction performed. */ - nodes: number; + nodes?: number; } /** * Represents a machine learning solution. A model can have multiple @@ -381,21 +384,21 @@ export namespace ml_v1 { * change the default version by calling * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault). */ - defaultVersion: Schema$GoogleCloudMlV1__Version; + defaultVersion?: Schema$GoogleCloudMlV1__Version; /** * Optional. The description specified for the model when it was created. */ - description: string; + description?: string; /** * Required. The name specified for the model when it was created. The * model name must be unique within the project it is created in. */ - name: string; + name?: string; /** * Optional. If true, enables StackDriver Logging for online prediction. * Default is false. */ - onlinePredictionLogging: boolean; + onlinePredictionLogging?: boolean; /** * Optional. The list of regions where the model is going to be deployed. * Currently only one region per model is supported. Defaults to @@ -407,7 +410,7 @@ export namespace ml_v1 { * prediction job is set by the region field when submitting the batch * prediction job and does not take its value from this field. */ - regions: string[]; + regions?: string[]; } /** * Represents the metadata of the long-running operation. @@ -416,35 +419,35 @@ export namespace ml_v1 { /** * The time the operation was submitted. */ - createTime: string; + createTime?: string; /** * The time operation processing completed. */ - endTime: string; + endTime?: string; /** * Indicates whether a request to cancel this operation has been made. */ - isCancellationRequested: boolean; + isCancellationRequested?: boolean; /** * Contains the name of the model associated with the operation. */ - modelName: string; + modelName?: string; /** * The operation type. */ - operationType: string; + operationType?: string; /** * Contains the project number associated with the operation. */ - projectNumber: string; + projectNumber?: string; /** * The time operation processing started. */ - startTime: string; + startTime?: string; /** * Contains the version associated with the operation. */ - version: Schema$GoogleCloudMlV1__Version; + version?: Schema$GoogleCloudMlV1__Version; } /** * Represents a single hyperparameter to optimize. @@ -453,40 +456,40 @@ export namespace ml_v1 { /** * Required if type is `CATEGORICAL`. The list of possible categories. */ - categoricalValues: string[]; + categoricalValues?: string[]; /** * Required if type is `DISCRETE`. A list of feasible points. The list * should be in strictly increasing order. For instance, this parameter * might have possible settings of 1.5, 2.5, and 4.0. This list should not * contain more than 1,000 values. */ - discreteValues: number[]; + discreteValues?: number[]; /** * Required if type is `DOUBLE` or `INTEGER`. This field should be unset if * type is `CATEGORICAL`. This value should be integers if type is * `INTEGER`. */ - maxValue: number; + maxValue?: number; /** * Required if type is `DOUBLE` or `INTEGER`. This field should be unset if * type is `CATEGORICAL`. This value should be integers if type is INTEGER. */ - minValue: number; + minValue?: number; /** * Required. The parameter name must be unique amongst all ParameterConfigs * in a HyperparameterSpec message. E.g., "learning_rate". */ - parameterName: string; + parameterName?: string; /** * Optional. How the parameter should be scaled to the hypercube. Leave * unset for categorical parameters. Some kind of scaling is strongly * recommended for real or integral parameters (e.g., `UNIT_LINEAR_SCALE`). */ - scaleType: string; + scaleType?: string; /** * Required. The type of the parameter. */ - type: string; + type?: string; } /** * Represents input parameters for a prediction job. @@ -498,38 +501,38 @@ export namespace ml_v1 { * Tensorflow prediction call internally. So take the record size and memory * available into consideration when setting this parameter. */ - batchSize: string; + batchSize?: string; /** * Required. The format of the input data files. */ - dataFormat: string; + dataFormat?: string; /** * Required. The Google Cloud Storage location of the input data files. May * contain wildcards. */ - inputPaths: string[]; + inputPaths?: string[]; /** * Optional. The maximum number of workers to be used for parallel * processing. Defaults to 10 if not specified. */ - maxWorkerCount: string; + maxWorkerCount?: string; /** * Use this field if you want to use the default version for the specified * model. The string must use the following format: * `"projects/YOUR_PROJECT/models/YOUR_MODEL"` */ - modelName: string; + modelName?: string; /** * Required. The output Google Cloud Storage location. */ - outputPath: string; + outputPath?: string; /** * Required. The Google Compute Engine region to run the prediction job in. * See the <a * href="/ml-engine/docs/tensorflow/regions">available * regions</a> for ML Engine services. */ - region: string; + region?: string; /** * Optional. The Google Cloud ML runtime version to use for this batch * prediction. If not set, Google Cloud ML will pick the runtime version @@ -537,7 +540,7 @@ export namespace ml_v1 { * the latest stable version when model version information is not available * such as when the model is specified by uri. */ - runtimeVersion: string; + runtimeVersion?: string; /** * Optional. The name of the signature defined in the SavedModel to use for * this job. Please refer to @@ -546,19 +549,19 @@ export namespace ml_v1 { * [DEFAULT_SERVING_SIGNATURE_DEF_KEY](https://www.tensorflow.org/api_docs/python/tf/saved_model/signature_constants) * , which is "serving_default". */ - signatureName: string; + signatureName?: string; /** * Use this field if you want to specify a Google Cloud Storage path for the * model to use. */ - uri: string; + uri?: string; /** * Use this field if you want to specify a version of the model to use. The * string is formatted the same way as `model_version`, with the addition of * the version information: * `"projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION"` */ - versionName: string; + versionName?: string; } /** * Represents results of a prediction job. @@ -567,20 +570,20 @@ export namespace ml_v1 { /** * The number of data instances which resulted in errors. */ - errorCount: string; + errorCount?: string; /** * Node hours used by the batch prediction job. */ - nodeHours: number; + nodeHours?: number; /** * The output Google Cloud Storage location provided at the job creation * time. */ - outputPath: string; + outputPath?: string; /** * The number of generated predictions. */ - predictionCount: string; + predictionCount?: string; } /** * Request for predictions to be issued against a trained model. @@ -589,7 +592,7 @@ export namespace ml_v1 { /** * Required. The prediction request body. */ - httpBody: Schema$GoogleApi__HttpBody; + httpBody?: Schema$GoogleApi__HttpBody; } /** * Request message for the SetDefaultVersion request. @@ -608,11 +611,11 @@ export namespace ml_v1 { /** * Optional. Command line arguments to pass to the program. */ - args: string[]; + args?: string[]; /** * Optional. The set of Hyperparameters to tune. */ - hyperparameters: Schema$GoogleCloudMlV1__HyperparameterSpec; + hyperparameters?: Schema$GoogleCloudMlV1__HyperparameterSpec; /** * Optional. A Google Cloud Storage path in which to store training outputs * and other data needed for training. This path is passed to your @@ -620,7 +623,7 @@ export namespace ml_v1 { * benefit of specifying this field is that Cloud ML validates the path for * use in training. */ - jobDir: string; + jobDir?: string; /** * Optional. Specifies the type of virtual machine to use for your training * job's master worker. The following types are supported: <dl> @@ -671,13 +674,13 @@ export namespace ml_v1 { * train your model</a>. </dd> </dl> You must set * this value when `scaleTier` is set to `CUSTOM`. */ - masterType: string; + masterType?: string; /** * Required. The Google Cloud Storage location of the packages with the * training program and any additional dependencies. The maximum number of * package URIs is 100. */ - packageUris: string[]; + packageUris?: string[]; /** * Optional. The number of parameter server replicas to use for the training * job. Each replica in the cluster will be of the type specified in @@ -685,7 +688,7 @@ export namespace ml_v1 { * is set to `CUSTOM`.If you set this value, you must also set * `parameter_server_type`. */ - parameterServerCount: string; + parameterServerCount?: string; /** * Optional. Specifies the type of virtual machine to use for your training * job's parameter server. The supported values are the same as those @@ -693,49 +696,50 @@ export namespace ml_v1 { * when `scaleTier` is set to `CUSTOM` and `parameter_server_count` is * greater than zero. */ - parameterServerType: string; + parameterServerType?: string; /** * Required. The Python module name to run after installing the packages. */ - pythonModule: string; + pythonModule?: string; /** * Optional. The version of Python used in training. If not set, the default * version is '2.7'. Python '3.5' is available when * `runtime_version` is set to '1.4' and above. Python '2.7' * works with all supported runtime versions. */ - pythonVersion: string; + pythonVersion?: string; /** * Required. The Google Compute Engine region to run the training job in. * See the <a * href="/ml-engine/docs/tensorflow/regions">available * regions</a> for ML Engine services. */ - region: string; + region?: string; /** * Optional. The Google Cloud ML runtime version to use for training. If - * not set, Google Cloud ML will choose the latest stable version. + * not set, Google Cloud ML will choose a stable version, which is defined + * in the documentation of runtime version list. */ - runtimeVersion: string; + runtimeVersion?: string; /** * Required. Specifies the machine types, the number of replicas for workers * and parameter servers. */ - scaleTier: string; + scaleTier?: string; /** * Optional. The number of worker replicas to use for the training job. Each * replica in the cluster will be of the type specified in `worker_type`. * This value can only be used when `scale_tier` is set to `CUSTOM`. If you * set this value, you must also set `worker_type`. */ - workerCount: string; + workerCount?: string; /** * Optional. Specifies the type of virtual machine to use for your training * job's worker nodes. The supported values are the same as those * described in the entry for `masterType`. This value must be present when * `scaleTier` is set to `CUSTOM` and `workerCount` is greater than zero. */ - workerType: string; + workerType?: string; } /** * Represents results of a training job. Output only. @@ -745,20 +749,20 @@ export namespace ml_v1 { * The number of hyperparameter tuning trials that completed successfully. * Only set for hyperparameter tuning jobs. */ - completedTrialCount: string; + completedTrialCount?: string; /** * The amount of ML units consumed by the job. */ - consumedMLUnits: number; + consumedMLUnits?: number; /** * Whether this job is a hyperparameter tuning job. */ - isHyperparameterTuningJob: boolean; + isHyperparameterTuningJob?: boolean; /** * Results for individual Hyperparameter trials. Only set for hyperparameter * tuning jobs. */ - trials: Schema$GoogleCloudMlV1__HyperparameterOutput[]; + trials?: Schema$GoogleCloudMlV1__HyperparameterOutput[]; } /** * Represents a version of the model. Each version is a trained model @@ -774,11 +778,11 @@ export namespace ml_v1 { * ramp up traffic according to the model's ability to scale or you will * start seeing increases in latency and 429 response codes. */ - autoScaling: Schema$GoogleCloudMlV1__AutoScaling; + autoScaling?: Schema$GoogleCloudMlV1__AutoScaling; /** * Output only. The time the version was created. */ - createTime: string; + createTime?: string; /** * Required. The Google Cloud Storage location of the trained model used to * create the version. See the [guide to model @@ -790,15 +794,15 @@ export namespace ml_v1 { * this location is useful only as a historical record. The total number of * model files can't exceed 1000. */ - deploymentUri: string; + deploymentUri?: string; /** * Optional. The description specified for the version when it was created. */ - description: string; + description?: string; /** * Output only. The details of a failure or a cancellation. */ - errorMessage: string; + errorMessage?: string; /** * Optional. The machine learning framework Cloud ML Engine uses to train * this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, @@ -806,18 +810,18 @@ export namespace ml_v1 { * TensorFlow. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set * the runtime version of the model to 1.4 or greater. */ - framework: string; + framework?: string; /** * Output only. If true, this version will be used to handle prediction * requests that do not specify a version. You can change the default * version by calling * [projects.methods.versions.setDefault](/ml-engine/reference/rest/v1/projects.models.versions/setDefault). */ - isDefault: boolean; + isDefault?: boolean; /** * Output only. The time the version was last used for prediction. */ - lastUseTime: string; + lastUseTime?: string; /** * Manually select the number of nodes to use for serving the model. You * should generally use `auto_scaling` with an appropriate `min_nodes` @@ -826,28 +830,28 @@ export namespace ml_v1 { * exceeds that capability of the system to serve it based on the selected * number of nodes. */ - manualScaling: Schema$GoogleCloudMlV1__ManualScaling; + manualScaling?: Schema$GoogleCloudMlV1__ManualScaling; /** * Required.The name specified for the version when it was created. The * version name must be unique within the model it is created in. */ - name: string; + name?: string; /** * Optional. The version of Python used in prediction. If not set, the * default version is '2.7'. Python '3.5' is available when * `runtime_version` is set to '1.4' and above. Python '2.7' * works with all supported runtime versions. */ - pythonVersion: string; + pythonVersion?: string; /** * Optional. The Google Cloud ML runtime version to use for this deployment. * If not set, Google Cloud ML will choose a version. */ - runtimeVersion: string; + runtimeVersion?: string; /** * Output only. The state of a version. */ - state: string; + state?: string; } /** * Specifies the audit configuration for a service. The configuration @@ -876,13 +880,13 @@ export namespace ml_v1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$GoogleIamV1__AuditLogConfig[]; + auditLogConfigs?: Schema$GoogleIamV1__AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -898,11 +902,11 @@ export namespace ml_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -915,21 +919,20 @@ export namespace ml_v1 { * 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, + * represents a specific Google account. For example, `alice@gmail.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[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -955,12 +958,12 @@ export namespace ml_v1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$GoogleIamV1__AuditConfig[]; + auditConfigs?: Schema$GoogleIamV1__AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$GoogleIamV1__Binding[]; + bindings?: Schema$GoogleIamV1__Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -972,11 +975,11 @@ export namespace ml_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Request message for `SetIamPolicy` method. @@ -988,14 +991,14 @@ export namespace ml_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$GoogleIamV1__Policy; + policy?: Schema$GoogleIamV1__Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * Request message for `TestIamPermissions` method. @@ -1007,7 +1010,7 @@ export namespace ml_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -1017,7 +1020,7 @@ export namespace ml_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * The response message for Operations.ListOperations. @@ -1026,11 +1029,11 @@ export namespace ml_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$GoogleLongrunning__Operation[]; + operations?: Schema$GoogleLongrunning__Operation[]; } /** * This resource represents a long-running operation that is the result of a @@ -1042,24 +1045,24 @@ export namespace ml_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$GoogleRpc__Status; + error?: Schema$GoogleRpc__Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1069,7 +1072,7 @@ export namespace ml_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -1119,20 +1122,21 @@ export namespace ml_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Projects { root: Ml; jobs: Resource$Projects$Jobs; @@ -1169,31 +1173,48 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getConfig(params?: any, options?: MethodOptions): + getConfig( + params?: Params$Resource$Projects$Getconfig, options?: MethodOptions): AxiosPromise; getConfig( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Getconfig, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + getConfig( + params: Params$Resource$Projects$Getconfig, + callback: + BodyResponseCallback): + void; + getConfig( + callback: BodyResponseCallback): void; getConfig( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Getconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1234,28 +1255,37 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - predict(params?: any, options?: MethodOptions): + predict(params?: Params$Resource$Projects$Predict, options?: MethodOptions): AxiosPromise; predict( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Predict, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; predict( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Predict, + callback: BodyResponseCallback): void; + predict(callback: BodyResponseCallback): void; + predict( + paramsOrCallback?: Params$Resource$Projects$Predict| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Predict; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Predict; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1277,6 +1307,35 @@ export namespace ml_v1 { } } } + + export interface Params$Resource$Projects$Getconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project name. + */ + name?: string; + } + export interface Params$Resource$Projects$Predict { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of a model or a version. Authorization: + * requires the `predict` permission on the specified resource. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__PredictRequest; + } + export class Resource$Projects$Jobs { root: Ml; constructor(root: Ml) { @@ -1302,28 +1361,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Jobs$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Jobs$Cancel, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Jobs$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1359,28 +1430,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Jobs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Jobs$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Jobs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1415,26 +1498,36 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Jobs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Jobs$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1469,28 +1562,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobs$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Jobs$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Jobs$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): + void; getIamPolicy( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobs$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1529,31 +1634,46 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Jobs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1592,28 +1712,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Jobs$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Jobs$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): + void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Jobs$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1653,30 +1785,45 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Jobs$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Jobs$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + params: Params$Resource$Projects$Jobs$Testiampermissions, + callback: BodyResponseCallback< Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions(callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Jobs$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleIamV1__TestIamPermissionsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Jobs$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Jobs$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1701,6 +1848,128 @@ export namespace ml_v1 { } } + export interface Params$Resource$Projects$Jobs$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the job to cancel. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__CancelJobRequest; + } + export interface Params$Resource$Projects$Jobs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project name. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__Job; + } + export interface Params$Resource$Projects$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the job to get the description of. + */ + name?: string; + } + export interface Params$Resource$Projects$Jobs$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Specifies the subset of jobs to retrieve. You can filter on the + * value of one or more attributes of the job object. For example, retrieve + * jobs with a job identifier that starts with 'census':

gcloud + * ml-engine jobs list --filter='jobId:census*'

List all failed + * jobs with names that start with 'rnn':

gcloud ml-engine jobs + * list --filter='jobId:rnn* AND state:FAILED'

For more examples, + * see the guide to monitoring jobs. + */ + filter?: string; + /** + * Optional. The number of jobs to retrieve per "page" of results. If there + * are more remaining results than this number, the response message will + * contain a valid value in the `next_page_token` field. The default value + * is 20, and the maximum page size is 100. + */ + pageSize?: number; + /** + * Optional. A page token to request the next page of results. You get the + * token from the `next_page_token` field of the response from the previous + * call. + */ + pageToken?: string; + /** + * Required. The name of the project for which to list jobs. + */ + parent?: string; + } + export interface Params$Resource$Projects$Jobs$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Jobs$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__TestIamPermissionsRequest; + } + + export class Resource$Projects$Locations { root: Ml; constructor(root: Ml) { @@ -1726,27 +1995,37 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Locations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1784,30 +2063,45 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudMlV1__ListLocationsResponse>): void; + list( + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback< Schema$GoogleCloudMlV1__ListLocationsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudMlV1__ListLocationsResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleCloudMlV1__ListLocationsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1832,6 +2126,44 @@ export namespace ml_v1 { } } + export interface Params$Resource$Projects$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. The number of locations to retrieve per "page" of results. If + * there are more remaining results than this number, the response message + * will contain a valid value in the `next_page_token` field. The default + * value is 20, and the maximum page size is 100. + */ + pageSize?: number; + /** + * Optional. A page token to request the next page of results. You get the + * token from the `next_page_token` field of the response from the previous + * call. + */ + pageToken?: string; + /** + * Required. The name of the project for which available locations are to be + * listed (since some locations might be whitelisted for specific projects). + */ + parent?: string; + } + + export class Resource$Projects$Models { root: Ml; versions: Resource$Projects$Models$Versions; @@ -1862,28 +2194,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Models$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Models$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Models$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Models$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Models$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1920,29 +2264,44 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete( + params?: Params$Resource$Projects$Models$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + delete( + params: Params$Resource$Projects$Models$Delete, + callback: BodyResponseCallback): + void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Models$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Models$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -1980,26 +2339,36 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Models$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Models$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Models$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Models$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Models$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2034,28 +2403,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Models$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Models$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Models$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): + void; getIamPolicy( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Models$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2096,31 +2477,47 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Models$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Models$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Models$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2160,29 +2557,44 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Projects$Models$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Patch, + callback: BodyResponseCallback): + void; + patch(callback: BodyResponseCallback): + void; + patch( + paramsOrCallback?: Params$Resource$Projects$Models$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Models$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2220,28 +2632,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Models$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Models$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): + void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Models$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2281,30 +2705,45 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Models$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + params: Params$Resource$Projects$Models$Testiampermissions, + callback: BodyResponseCallback< Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions(callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Models$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleIamV1__TestIamPermissionsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2328,6 +2767,143 @@ export namespace ml_v1 { } } } + + export interface Params$Resource$Projects$Models$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project name. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__Model; + } + export interface Params$Resource$Projects$Models$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the model. + */ + name?: string; + } + export interface Params$Resource$Projects$Models$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the model. + */ + name?: string; + } + export interface Params$Resource$Projects$Models$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Models$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Specifies the subset of models to retrieve. + */ + filter?: string; + /** + * Optional. The number of models to retrieve per "page" of results. If + * there are more remaining results than this number, the response message + * will contain a valid value in the `next_page_token` field. The default + * value is 20, and the maximum page size is 100. + */ + pageSize?: number; + /** + * Optional. A page token to request the next page of results. You get the + * token from the `next_page_token` field of the response from the previous + * call. + */ + pageToken?: string; + /** + * Required. The name of the project whose models are to be listed. + */ + parent?: string; + } + export interface Params$Resource$Projects$Models$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The project name. + */ + name?: string; + /** + * Required. Specifies the path, relative to `Model`, of the field to + * update. For example, to change the description of a model to "foo" and + * set its default version to "version_1", the `update_mask` parameter would + * be specified as `description`, `default_version.name`, and the `PATCH` + * request body would specify the new value, as follows: { + * "description": "foo", "defaultVersion": { "name":"version_1" } } + * Currently the supported update masks are `description` and + * `default_version.name`. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__Model; + } + export interface Params$Resource$Projects$Models$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Models$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__TestIamPermissionsRequest; + } + export class Resource$Projects$Models$Versions { root: Ml; constructor(root: Ml) { @@ -2359,29 +2935,44 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Projects$Models$Versions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$Create, + callback: BodyResponseCallback): + void; + create(callback: BodyResponseCallback): + void; + create( + paramsOrCallback?: Params$Resource$Projects$Models$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2421,29 +3012,44 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete( + params?: Params$Resource$Projects$Models$Versions$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$Delete, + callback: BodyResponseCallback): + void; + delete(callback: BodyResponseCallback): + void; + delete( + paramsOrCallback?: Params$Resource$Projects$Models$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2483,26 +3089,36 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Models$Versions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Models$Versions$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Models$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Models$Versions$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2544,31 +3160,49 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Models$Versions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Models$Versions$List, + callback: + BodyResponseCallback): + void; + list( + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Models$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2608,29 +3242,44 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch( + params?: Params$Resource$Projects$Models$Versions$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Models$Versions$Patch, + callback: BodyResponseCallback): + void; + patch(callback: BodyResponseCallback): + void; + patch( + paramsOrCallback?: Params$Resource$Projects$Models$Versions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Versions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Versions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2671,28 +3320,41 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setDefault(params?: any, options?: MethodOptions): - AxiosPromise; setDefault( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Models$Versions$Setdefault, + options?: MethodOptions): AxiosPromise; + setDefault( + params: Params$Resource$Projects$Models$Versions$Setdefault, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + setDefault( + params: Params$Resource$Projects$Models$Versions$Setdefault, + callback: BodyResponseCallback): void; + setDefault(callback: BodyResponseCallback): + void; setDefault( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Models$Versions$Setdefault| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Models$Versions$Setdefault; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Models$Versions$Setdefault; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2715,6 +3377,116 @@ export namespace ml_v1 { } } + export interface Params$Resource$Projects$Models$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the model. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__Version; + } + export interface Params$Resource$Projects$Models$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the version. You can get the names of all the + * versions of a model by calling + * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list). + */ + name?: string; + } + export interface Params$Resource$Projects$Models$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the version. + */ + name?: string; + } + export interface Params$Resource$Projects$Models$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Specifies the subset of versions to retrieve. + */ + filter?: string; + /** + * Optional. The number of versions to retrieve per "page" of results. If + * there are more remaining results than this number, the response message + * will contain a valid value in the `next_page_token` field. The default + * value is 20, and the maximum page size is 100. + */ + pageSize?: number; + /** + * Optional. A page token to request the next page of results. You get the + * token from the `next_page_token` field of the response from the previous + * call. + */ + pageToken?: string; + /** + * Required. The name of the model for which to list the version. + */ + parent?: string; + } + export interface Params$Resource$Projects$Models$Versions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the model. + */ + name?: string; + /** + * Required. Specifies the path, relative to `Version`, of the field to + * update. Must be present and non-empty. For example, to change the + * description of a version to "foo", the `update_mask` parameter would be + * specified as `description`, and the `PATCH` request body would specify + * the new value, as follows: { "description": "foo" } + * Currently the only supported update mask is`description`. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__Version; + } + export interface Params$Resource$Projects$Models$Versions$Setdefault { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the version to make the default for the model. You + * can get the names of all the versions of a model by calling + * [projects.models.versions.list](/ml-engine/reference/rest/v1/projects.models.versions/list). + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudMlV1__SetDefaultVersionRequest; + } + + export class Resource$Projects$Operations { root: Ml; @@ -2748,28 +3520,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Operations$Cancel, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2807,28 +3591,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Operations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Operations$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2864,27 +3660,40 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Operations$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Operations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Operations$Get, + callback: BodyResponseCallback): + void; + get(callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(paramsOrCallback?: Params$Resource$Projects$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2931,30 +3740,45 @@ export namespace ml_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Operations$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleLongrunning__ListOperationsResponse>): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Operations$List, + callback: BodyResponseCallback< + Schema$GoogleLongrunning__ListOperationsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleLongrunning__ListOperationsResponse>): void; + list( + paramsOrCallback?: Params$Resource$Projects$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleLongrunning__ListOperationsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; const parameters = { options: Object.assign( @@ -2978,4 +3802,61 @@ export namespace ml_v1 { } } } + + export interface Params$Resource$Projects$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Projects$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/monitoring/v3.ts b/src/apis/monitoring/v3.ts index a8153d6c3d0..9f444ec0124 100644 --- a/src/apis/monitoring/v3.ts +++ b/src/apis/monitoring/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace monitoring_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Stackdriver Monitoring API * @@ -87,7 +90,7 @@ export namespace monitoring_v3 { * equal ALIGN_NONE, then this field must be defined; otherwise an error is * returned. */ - alignmentPeriod: string; + alignmentPeriod?: string; /** * The approach to be used to combine time series. Not all reducer functions * may be applied to all time series, depending on the metric type and the @@ -98,7 +101,7 @@ export namespace monitoring_v3 { * ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is * returned. */ - crossSeriesReducer: string; + crossSeriesReducer?: string; /** * The set of fields to preserve when crossSeriesReducer is specified. The * groupByFields determine how the time series are partitioned into subsets @@ -113,7 +116,7 @@ export namespace monitoring_v3 { * into a single output time series. If crossSeriesReducer is not defined, * this field is ignored. */ - groupByFields: string[]; + groupByFields?: string[]; /** * The approach to be used to align individual time series. Not all * alignment functions may be applied to all time series, depending on the @@ -124,7 +127,7 @@ export namespace monitoring_v3 { * and not equal ALIGN_NONE and alignmentPeriod must be specified; * otherwise, an error is returned. */ - perSeriesAligner: string; + perSeriesAligner?: string; } /** * A description of the conditions under which some aspect of your system is @@ -137,26 +140,26 @@ export namespace monitoring_v3 { * How to combine the results of multiple conditions to determine if an * incident should be opened. */ - combiner: string; + combiner?: string; /** * A list of conditions for the policy. The conditions are combined by AND * or OR according to the combiner field. If the combined conditions * evaluate to true, then an incident is created. A policy can have from one * to six conditions. */ - conditions: Schema$Condition[]; + conditions?: Schema$Condition[]; /** * A read-only record of the creation of the alerting policy. If provided in * a call to create or update, this field will be ignored. */ - creationRecord: Schema$MutationRecord; + creationRecord?: Schema$MutationRecord; /** * A short name or phrase used to identify the policy in dashboards, * notifications, and incidents. To avoid confusion, don't use the same * display name for multiple policies in the same project. The name is * limited to 512 Unicode characters. */ - displayName: string; + displayName?: string; /** * Documentation that is included with notifications and incidents related * to this policy. Best practice is for the documentation to include @@ -165,7 +168,7 @@ export namespace monitoring_v3 { * Notification channels that have limited capacity might not show this * documentation. */ - documentation: Schema$Documentation; + documentation?: Schema$Documentation; /** * Whether or not the policy is enabled. On write, the default * interpretation if unset is that the policy is enabled. On read, clients @@ -174,12 +177,12 @@ export namespace monitoring_v3 { * operations, unless a field projection has been specified that strips it * out. */ - enabled: boolean; + enabled?: boolean; /** * A read-only record of the most recent change to the alerting policy. If * provided in a call to create or update, this field will be ignored. */ - mutationRecord: Schema$MutationRecord; + mutationRecord?: Schema$MutationRecord; /** * Required if the policy exists. The resource name for this policy. The * syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] @@ -187,7 +190,7 @@ export namespace monitoring_v3 { * is created. When calling the alertPolicies.create method, do not include * the name field in the alerting policy passed as part of the request. */ - name: string; + name?: string; /** * Identifies the notification channels to which notifications should be * sent when incidents are opened or closed or when new violations occur on @@ -196,7 +199,7 @@ export namespace monitoring_v3 { * from the ListNotificationChannels method. The syntax of the entries in * this field is: projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] */ - notificationChannels: string[]; + notificationChannels?: string[]; /** * User-supplied key/value data to be used for organizing and identifying * the AlertPolicy objects.The field can contain up to 64 entries. Each key @@ -204,7 +207,7 @@ export namespace monitoring_v3 { * smaller. Labels and values can contain only lowercase letters, numerals, * underscores, and dashes. Keys must begin with a letter. */ - userLabels: any; + userLabels?: any; } /** * A type of authentication to perform against the specified resource or URL @@ -215,11 +218,11 @@ export namespace monitoring_v3 { /** * The password to authenticate. */ - password: string; + password?: string; /** * The username to authenticate. */ - username: string; + username?: string; } /** * BucketOptions describes the bucket boundaries used to create a histogram @@ -241,15 +244,15 @@ export namespace monitoring_v3 { /** * The explicit buckets. */ - explicitBuckets: Schema$Explicit; + explicitBuckets?: Schema$Explicit; /** * The exponential buckets. */ - exponentialBuckets: Schema$Exponential; + exponentialBuckets?: Schema$Exponential; /** * The linear bucket. */ - linearBuckets: Schema$Linear; + linearBuckets?: Schema$Linear; } /** * A collection of data points sent from a collectd-based plugin. See the @@ -259,36 +262,36 @@ export namespace monitoring_v3 { /** * The end time of the interval. */ - endTime: string; + endTime?: string; /** * The measurement metadata. Example: "process_id" -> 12345 */ - metadata: any; + metadata?: any; /** * The name of the plugin. Example: "disk". */ - plugin: string; + plugin?: string; /** * The instance name of the plugin Example: "hdcl". */ - pluginInstance: string; + pluginInstance?: string; /** * The start time of the interval. */ - startTime: string; + startTime?: string; /** * The measurement type. Example: "memory". */ - type: string; + type?: string; /** * The measurement type instance. Example: "used". */ - typeInstance: string; + typeInstance?: string; /** * The measured values during this time interval. Each value must have a * different dataSourceName. */ - values: Schema$CollectdValue[]; + values?: Schema$CollectdValue[]; } /** * Describes the error status for payloads that were not written. @@ -298,18 +301,18 @@ export namespace monitoring_v3 { * Records the error status for the payload. If this field is present, the * partial errors for nested values won't be populated. */ - error: Schema$Status; + error?: Schema$Status; /** * The zero-based index in * CreateCollectdTimeSeriesRequest.collectd_payloads. */ - index: number; + index?: number; /** * Records the error status for values that were not written due to an * error.Failed payloads for which nothing is written will not include * partial value errors. */ - valueErrors: Schema$CollectdValueError[]; + valueErrors?: Schema$CollectdValueError[]; } /** * A single data point from a collectd-based plugin. @@ -319,15 +322,15 @@ export namespace monitoring_v3 { * The data source for the collectd value. For example there are two data * sources for network measurements: "rx" and "tx". */ - dataSourceName: string; + dataSourceName?: string; /** * The type of measurement. */ - dataSourceType: string; + dataSourceType?: string; /** * The measurement value. */ - value: Schema$TypedValue; + value?: Schema$TypedValue; } /** * Describes the error status for values that were not written. @@ -336,12 +339,12 @@ export namespace monitoring_v3 { /** * Records the error status for the value. */ - error: Schema$Status; + error?: Schema$Status; /** * The zero-based index in CollectdPayload.values within the parent * CreateCollectdTimeSeriesRequest.collectd_payloads. */ - index: number; + index?: number; } /** * A condition is a true/false test that determines when an alerting policy @@ -353,17 +356,17 @@ export namespace monitoring_v3 { * A condition that checks that a time series continues to receive new data * points. */ - conditionAbsent: Schema$MetricAbsence; + conditionAbsent?: Schema$MetricAbsence; /** * A condition that compares a time series against a threshold. */ - conditionThreshold: Schema$MetricThreshold; + conditionThreshold?: Schema$MetricThreshold; /** * A short name or phrase used to identify the condition in dashboards, * notifications, and incidents. To avoid confusion, don't use the same * display name for multiple conditions in the same policy. */ - displayName: string; + displayName?: string; /** * Required if the condition exists. The unique resource name for this * condition. Its syntax is: @@ -381,7 +384,7 @@ export namespace monitoring_v3 { * condition thresholds, durations, or trigger values. Otherwise, treat the * change as a new condition and let the existing condition be deleted. */ - name: string; + name?: string; } /** * Used to perform string matching. Currently, this matches on the exact @@ -392,7 +395,7 @@ export namespace monitoring_v3 { /** * String content to match (max 1024 bytes) */ - content: string; + content?: string; } /** * The CreateCollectdTimeSeries request. @@ -404,16 +407,16 @@ export namespace monitoring_v3 { * can have the same values for all of the fields plugin, plugin_instance, * type, and type_instance. */ - collectdPayloads: Schema$CollectdPayload[]; + collectdPayloads?: Schema$CollectdPayload[]; /** * The version of collectd that collected the data. Example: * "5.3.0-192.el6". */ - collectdVersion: string; + collectdVersion?: string; /** * The monitored resource associated with the time series. */ - resource: Schema$MonitoredResource; + resource?: Schema$MonitoredResource; } /** * The CreateCollectdTimeSeries response. @@ -424,7 +427,7 @@ export namespace monitoring_v3 { * error.Failed requests for which nothing is written will return an error * response instead. */ - payloadErrors: Schema$CollectdPayloadError[]; + payloadErrors?: Schema$CollectdPayloadError[]; } /** * The CreateTimeSeries request. @@ -437,7 +440,7 @@ export namespace monitoring_v3 { * must fully specify a unique time series by supplying all label values for * the metric and the monitored resource. */ - timeSeries: Schema$TimeSeries[]; + timeSeries?: Schema$TimeSeries[]; } /** * Distribution contains summary statistics for a population of values. It @@ -464,29 +467,29 @@ export namespace monitoring_v3 { * size is less than N, then the remaining buckets are assigned values of * zero. */ - bucketCounts: string[]; + bucketCounts?: string[]; /** * Required in the Stackdriver Monitoring API v3. Defines the histogram * bucket boundaries. */ - bucketOptions: Schema$BucketOptions; + bucketOptions?: Schema$BucketOptions; /** * The number of values in the population. Must be non-negative. This value * must equal the sum of the values in bucket_counts if a histogram is * provided. */ - count: string; + count?: string; /** * The arithmetic mean of the values in the population. If count is zero * then this field must be zero. */ - mean: number; + mean?: number; /** * If specified, contains the range of the population values. The field must * not be present if the count is zero. This field is presently ignored by * the Stackdriver Monitoring API v3. */ - range: Schema$Range; + range?: Schema$Range; /** * The sum of squared deviations from the mean of the values in the * population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, @@ -494,7 +497,7 @@ export namespace monitoring_v3 { * edition describes Welford's method for accumulating this sum in one * pass.If count is zero then this field must be zero. */ - sumOfSquaredDeviation: number; + sumOfSquaredDeviation?: number; } /** * A content string and a MIME type that describes the content string's @@ -506,13 +509,13 @@ export namespace monitoring_v3 { * content may not exceed 8,192 Unicode characters and may not exceed more * than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. */ - content: string; + content?: string; /** * The format of the content field. Presently, only the value * "text/markdown" is supported. See Markdown * (https://en.wikipedia.org/wiki/Markdown) for more information. */ - mimeType: string; + mimeType?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -534,7 +537,7 @@ export namespace monitoring_v3 { /** * The values must be monotonically increasing. */ - bounds: number[]; + bounds?: number[]; } /** * Specifies an exponential sequence of buckets that have a width that is @@ -548,15 +551,15 @@ export namespace monitoring_v3 { /** * Must be greater than 1. */ - growthFactor: number; + growthFactor?: number; /** * Must be greater than 0. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * Must be greater than 0. */ - scale: number; + scale?: number; } /** * A single field of a message type. @@ -565,46 +568,46 @@ export namespace monitoring_v3 { /** * The field cardinality. */ - cardinality: string; + cardinality?: string; /** * The string value of the default value of this field. Proto2 syntax only. */ - defaultValue: string; + defaultValue?: string; /** * The field JSON name. */ - jsonName: string; + jsonName?: string; /** * The field type. */ - kind: string; + kind?: string; /** * The field name. */ - name: string; + name?: string; /** * The field number. */ - number: number; + number?: number; /** * The index of the field type in Type.oneofs, for message or enumeration * types. The first type has index 1; zero means the type is not in the * list. */ - oneofIndex: number; + oneofIndex?: number; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Whether to use alternative packed wire representation. */ - packed: boolean; + packed?: boolean; /** * The field type URL, without the scheme, for message or enumeration types. * Example: "type.googleapis.com/google.protobuf.Timestamp". */ - typeUrl: string; + typeUrl?: string; } /** * The GetNotificationChannelVerificationCode request. @@ -621,7 +624,7 @@ export namespace monitoring_v3 { * code's lifetime over omitting an expiration, even though the API does * impose an upper limit on the maximum expiration that is permitted). */ - expireTime: string; + expireTime?: string; } /** * The GetNotificationChannelVerificationCode request. @@ -633,13 +636,13 @@ export namespace monitoring_v3 { * the same fingerprint such as other email channels with the same email * address or other sms channels with the same number). */ - code: string; + code?: string; /** * The expiration time associated with the code that was returned. If an * expiration was provided in the request, this is the minimum of the * requested expiration in the request and the max permitted expiration. */ - expireTime: string; + expireTime?: string; } /** * The description of a dynamic collection of monitored resources. Each group @@ -668,17 +671,17 @@ export namespace monitoring_v3 { /** * A user-assigned name for this group, used only for display purposes. */ - displayName: string; + displayName?: string; /** * The filter used to determine which monitored resources belong to this * group. */ - filter: string; + filter?: string; /** * If true, the members of this group are considered to be a cluster. The * system can perform additional analysis on groups that are clusters. */ - isCluster: boolean; + isCluster?: boolean; /** * Output only. The name of this group. The format is * "projects/{project_id_or_number}/groups/{group_id}". When @@ -686,13 +689,13 @@ export namespace monitoring_v3 { * consisting of the project specified in the call to CreateGroup and a * unique {group_id} that is generated automatically. */ - name: string; + name?: string; /** * The name of the group's parent, if it has one. The format is * "projects/{project_id_or_number}/groups/{group_id}". For groups * with no parent, parentName is the empty string, "". */ - parentName: string; + parentName?: string; } /** * Information involved in an HTTP/HTTPS uptime check request. @@ -702,7 +705,7 @@ export namespace monitoring_v3 { * The authentication information. Optional when creating an HTTP check; * defaults to empty. */ - authInfo: Schema$BasicAuthentication; + authInfo?: Schema$BasicAuthentication; /** * The list of headers to send as part of the uptime check request. If two * headers have the same key and different values, they should be entered as @@ -713,7 +716,7 @@ export namespace monitoring_v3 { * to be overwritten by the second. The maximum number of headers allowed is * 100. */ - headers: any; + headers?: any; /** * Boolean specifiying whether to encrypt the header information. Encryption * should be specified for any headers related to authentication that you do @@ -722,23 +725,23 @@ export namespace monitoring_v3 { * mask_headers is set to True then the headers will be obscured with * ******. */ - maskHeaders: boolean; + maskHeaders?: boolean; /** * The path to the page to run the check against. Will be combined with the * host (specified within the MonitoredResource) and port to construct the * full URL. Optional (defaults to "/"). */ - path: string; + path?: string; /** * The port to the page to run the check against. Will be combined with host * (specified within the MonitoredResource) and path to construct the full * URL. Optional (defaults to 80 without SSL, or 443 with SSL). */ - port: number; + port?: number; /** * If true, use HTTPS instead of HTTP to run the check. */ - useSsl: boolean; + useSsl?: boolean; } /** * Nimbus InternalCheckers. @@ -747,25 +750,25 @@ export namespace monitoring_v3 { /** * The checker ID. */ - checkerId: string; + checkerId?: string; /** * The checker's human-readable name. */ - displayName: string; + displayName?: string; /** * The GCP zone the uptime check should egress from. Only respected for * internal uptime checks, where internal_network is specified. */ - gcpZone: string; + gcpZone?: string; /** * The internal network to perform this uptime check on. */ - network: string; + network?: string; /** * The GCP project ID. Not necessarily the same as the project_id for the * config. */ - projectId: string; + projectId?: string; } /** * A description of a label. @@ -774,15 +777,15 @@ export namespace monitoring_v3 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * Specifies a linear sequence of buckets that all have the same width (except @@ -796,15 +799,15 @@ export namespace monitoring_v3 { /** * Must be greater than 0. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * Lower bound of the first bucket. */ - offset: number; + offset?: number; /** * Must be greater than 0. */ - width: number; + width?: number; } /** * The protocol for the ListAlertPolicies response. @@ -813,13 +816,13 @@ export namespace monitoring_v3 { /** * The returned alert policies. */ - alertPolicies: Schema$AlertPolicy[]; + alertPolicies?: Schema$AlertPolicy[]; /** * If there might be more results than were returned, then this field is set * to a non-empty value. To see the additional results, use that value as * pageToken in the next call to this method. */ - nextPageToken: string; + nextPageToken?: string; } /** * The ListGroupMembers response. @@ -828,17 +831,17 @@ export namespace monitoring_v3 { /** * A set of monitored resources in the group. */ - members: Schema$MonitoredResource[]; + members?: Schema$MonitoredResource[]; /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as * pageToken in the next call to this method. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of elements matching this request. */ - totalSize: number; + totalSize?: number; } /** * The ListGroups response. @@ -847,13 +850,13 @@ export namespace monitoring_v3 { /** * The groups that match the specified filters. */ - group: Schema$Group[]; + group?: Schema$Group[]; /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as * pageToken in the next call to this method. */ - nextPageToken: string; + nextPageToken?: string; } /** * The ListMetricDescriptors response. @@ -863,13 +866,13 @@ export namespace monitoring_v3 { * The metric descriptors that are available to the project and that match * the value of filter, if present. */ - metricDescriptors: Schema$MetricDescriptor[]; + metricDescriptors?: Schema$MetricDescriptor[]; /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as * pageToken in the next call to this method. */ - nextPageToken: string; + nextPageToken?: string; } /** * The ListMonitoredResourceDescriptors response. @@ -880,12 +883,12 @@ export namespace monitoring_v3 { * to a non-empty value. To see the additional results, use that value as * pageToken in the next call to this method. */ - nextPageToken: string; + nextPageToken?: string; /** * The monitored resource descriptors that are available to this project and * that match filter, if present. */ - resourceDescriptors: Schema$MonitoredResourceDescriptor[]; + resourceDescriptors?: Schema$MonitoredResourceDescriptor[]; } /** * The ListNotificationChannelDescriptors response. @@ -895,13 +898,13 @@ export namespace monitoring_v3 { * The monitored resource descriptors supported for the specified project, * optionally filtered. */ - channelDescriptors: Schema$NotificationChannelDescriptor[]; + channelDescriptors?: Schema$NotificationChannelDescriptor[]; /** * If not empty, indicates that there may be more results that match the * request. Use the value in the page_token field in a subsequent request to * fetch the next set of results. If empty, all results have been returned. */ - nextPageToken: string; + nextPageToken?: string; } /** * The ListNotificationChannels response. @@ -912,11 +915,11 @@ export namespace monitoring_v3 { * request. Use the value in the page_token field in a subsequent request to * fetch the next set of results. If empty, all results have been returned. */ - nextPageToken: string; + nextPageToken?: string; /** * The notification channels defined for the specified project. */ - notificationChannels: Schema$NotificationChannel[]; + notificationChannels?: Schema$NotificationChannel[]; } /** * The ListTimeSeries response. @@ -927,11 +930,11 @@ export namespace monitoring_v3 { * to a non-empty value. To see the additional results, use that value as * pageToken in the next call to this method. */ - nextPageToken: string; + nextPageToken?: string; /** * One or more time series that match the filter included in the request. */ - timeSeries: Schema$TimeSeries[]; + timeSeries?: Schema$TimeSeries[]; } /** * The protocol for the ListUptimeCheckConfigs response. @@ -944,16 +947,16 @@ export namespace monitoring_v3 { * next_page_token is passed to the subsequent List method call (in the * request message's page_token field). */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of uptime check configurations for the project, * irrespective of any pagination. */ - totalSize: number; + totalSize?: number; /** * The returned uptime check configurations. */ - uptimeCheckConfigs: Schema$UptimeCheckConfig[]; + uptimeCheckConfigs?: Schema$UptimeCheckConfig[]; } /** * The protocol for the ListUptimeCheckIps response. @@ -967,12 +970,12 @@ export namespace monitoring_v3 { * request message's page_token field). NOTE: this field is not yet * implemented */ - nextPageToken: string; + nextPageToken?: string; /** * The returned list of IP addresses (including region and location) that * the checkers run from. */ - uptimeCheckIps: Schema$UptimeCheckIp[]; + uptimeCheckIps?: Schema$UptimeCheckIp[]; } /** * A specific metric, identified by specifying values for all of the labels of @@ -983,12 +986,12 @@ export namespace monitoring_v3 { * The set of label values that uniquely identify this metric. All labels * listed in the MetricDescriptor must be assigned values. */ - labels: any; + labels?: any; /** * An existing metric type, see google.api.MetricDescriptor. For example, * custom.googleapis.com/invoice/paid/amount. */ - type: string; + type?: string; } /** * A condition type that checks that monitored resources are reporting data. @@ -1008,14 +1011,14 @@ export namespace monitoring_v3 { * It is advisable to use the ListTimeSeries method when debugging this * field. */ - aggregations: Schema$Aggregation[]; + aggregations?: Schema$Aggregation[]; /** * The amount of time that a time series must fail to report new data to be * considered failing. Currently, only values that are a multiple of a * minute--e.g. 60, 120, or 300 seconds--are supported. If an invalid value * is given, an error will be returned. The Duration.nanos field is ignored. */ - duration: string; + duration?: string; /** * A filter that identifies which time series should be compared with the * threshold.The filter is similar to the one that is specified in the @@ -1025,14 +1028,14 @@ export namespace monitoring_v3 { * resource labels, and metric labels. This field may not exceed 2048 * Unicode characters in length. */ - filter: string; + filter?: string; /** * The number/percent of time series for which the comparison must hold in * order for the condition to trigger. If unspecified, then the condition * will trigger if the comparison is true for any of the time series that * have been identified by filter and aggregations. */ - trigger: Schema$Trigger; + trigger?: Schema$Trigger; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -1043,14 +1046,14 @@ export namespace monitoring_v3 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -1058,16 +1061,16 @@ export namespace monitoring_v3 { * label for the HTTP response code, response_code, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of metric_kind and value_type might not be supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -1076,7 +1079,7 @@ export namespace monitoring_v3 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * Optional. The unit in which the metric value is reported. For example, * kBy/s means kilobytes/sec, and 1 is the dimensionless unit. The supported @@ -1084,12 +1087,12 @@ export namespace monitoring_v3 { * (http://unitsofmeasure.org/ucum.html).<br><br> This field is * part of the metric's documentation, but it is ignored by Stackdriver. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of metric_kind and value_type might not be supported. */ - valueType: string; + valueType?: string; } /** * A condition type that compares a collection of time series against a @@ -1106,7 +1109,7 @@ export namespace monitoring_v3 { * It is advisable to use the ListTimeSeries method when debugging this * field. */ - aggregations: Schema$Aggregation[]; + aggregations?: Schema$Aggregation[]; /** * The comparison to apply between the time series (indicated by filter and * aggregation) and the threshold (indicated by threshold_value). The @@ -1114,7 +1117,7 @@ export namespace monitoring_v3 { * left-hand side and the threshold on the right-hand side.Only * COMPARISON_LT and COMPARISON_GT are supported currently. */ - comparison: string; + comparison?: string; /** * Specifies the alignment of data points in individual time series selected * by denominatorFilter as well as how to combine the retrieved time series @@ -1127,7 +1130,7 @@ export namespace monitoring_v3 { * It is advisable to use the ListTimeSeries method when debugging this * field. */ - denominatorAggregations: Schema$Aggregation[]; + denominatorAggregations?: Schema$Aggregation[]; /** * A filter that identifies a time series that should be used as the * denominator of a ratio that will be compared with the threshold. If a @@ -1139,7 +1142,7 @@ export namespace monitoring_v3 { * resource type, resource labels, and metric labels. This field may not * exceed 2048 Unicode characters in length. */ - denominatorFilter: string; + denominatorFilter?: string; /** * The amount of time that a time series must violate the threshold to be * considered failing. Currently, only values that are a multiple of a @@ -1151,7 +1154,7 @@ export namespace monitoring_v3 { * enough so that a single outlier does not generate spurious alerts, but * short enough that unhealthy states are detected and alerted on quickly. */ - duration: string; + duration?: string; /** * A filter that identifies which time series should be compared with the * threshold.The filter is similar to the one that is specified in the @@ -1161,11 +1164,11 @@ export namespace monitoring_v3 { * resource labels, and metric labels. This field may not exceed 2048 * Unicode characters in length. */ - filter: string; + filter?: string; /** * A value against which to compare the time series. */ - thresholdValue: number; + thresholdValue?: number; /** * The number/percent of time series for which the comparison must hold in * order for the condition to trigger. If unspecified, then the condition @@ -1173,7 +1176,7 @@ export namespace monitoring_v3 { * have been identified by filter and aggregations, or by the ratio, if * denominator_filter and denominator_aggregations are specified. */ - trigger: Schema$Trigger; + trigger?: Schema$Trigger; } /** * An object representing a resource that can be used for monitoring, logging, @@ -1196,13 +1199,13 @@ export namespace monitoring_v3 { * labels "project_id", "instance_id", and * "zone". */ - labels: any; + labels?: any; /** * Required. The monitored resource type. This field must match the type * field of a MonitoredResourceDescriptor object. For example, the type of a * Compute Engine VM instance is gce_instance. */ - type: string; + type?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -1219,21 +1222,21 @@ export namespace monitoring_v3 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, "Google Cloud * SQL Database". */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels "database_id" and * "zone". */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * "projects/{project_id}/monitoredResourceDescriptors/{type}" @@ -1242,13 +1245,13 @@ export namespace monitoring_v3 { * accessing the type. APIs that do not use project information can use the * resource name format "monitoredResourceDescriptors/{type}". */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * "cloudsql_database" represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; } /** * Auxiliary metadata for a MonitoredResource object. MonitoredResource @@ -1270,11 +1273,11 @@ export namespace monitoring_v3 { * "security_group": ["a", "b", * "c"], "spot_instance": false } */ - systemLabels: any; + systemLabels?: any; /** * Output only. A map of user-defined metadata labels. */ - userLabels: any; + userLabels?: any; } /** * Describes a change made to a configuration. @@ -1283,11 +1286,11 @@ export namespace monitoring_v3 { /** * The email address of the user making the change. */ - mutatedBy: string; + mutatedBy?: string; /** * When the change occurred. */ - mutateTime: string; + mutateTime?: string; } /** * A NotificationChannel is a medium through which an alert is delivered when @@ -1302,14 +1305,14 @@ export namespace monitoring_v3 { * description may provide additional details, beyond the display name, for * the channel. This may not exceeed 1024 Unicode characters. */ - description: string; + description?: string; /** * An optional human-readable name for this notification channel. It is * recommended that you specify a non-empty and unique name in order to make * it easier to identify the channels in your project, though this is not * enforced. The display name is limited to 512 Unicode characters. */ - displayName: string; + displayName?: string; /** * Whether notifications are forwarded to the described channel. This makes * it possible to disable delivery of notifications to a particular channel @@ -1318,25 +1321,25 @@ export namespace monitoring_v3 { * temporary and you want to receive notifications from the same set of * alerting policies on the channel at some point in the future. */ - enabled: boolean; + enabled?: boolean; /** * Configuration fields that define the channel and its behavior. The * permissible and required labels are specified in the * NotificationChannelDescriptor.labels of the NotificationChannelDescriptor * corresponding to the type field. */ - labels: any; + labels?: any; /** * The full REST resource name for this channel. The syntax is: * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] * is automatically assigned by the server on creation. */ - name: string; + name?: string; /** * The type of the notification channel. This field matches the value of the * NotificationChannelDescriptor.type field. */ - type: string; + type?: string; /** * User-supplied key/value data that does not need to conform to the * corresponding NotificationChannelDescriptor's schema, unlike the @@ -1347,7 +1350,7 @@ export namespace monitoring_v3 { * letters, numerals, underscores, and dashes. Keys must begin with a * letter. */ - userLabels: any; + userLabels?: any; /** * Indicates whether this channel has been verified or not. On a * ListNotificationChannels or GetNotificationChannel operation, this field @@ -1362,7 +1365,7 @@ export namespace monitoring_v3 { * UpdateNotificationChannel operation. To change the value of this field, * you must call VerifyNotificationChannel. */ - verificationStatus: string; + verificationStatus?: string; } /** * A description of a notification channel. The descriptor includes the @@ -1375,34 +1378,34 @@ export namespace monitoring_v3 { * description may include a description of the properties of the channel * and pointers to external documentation. */ - description: string; + description?: string; /** * A human-readable name for the notification channel type. This form of the * name is suitable for a user interface. */ - displayName: string; + displayName?: string; /** * The set of labels that must be defined to identify a particular channel * of the corresponding type. Each label includes a description for how that * field should be populated. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * The full REST resource name for this descriptor. The syntax is: * projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE] In the above, * [TYPE] is the value of the type field. */ - name: string; + name?: string; /** * The tiers that support this notification channel; the project service * tier must be one of the supported_tiers. */ - supportedTiers: string[]; + supportedTiers?: string[]; /** * The type of notification channel, such as "email", * "sms", etc. Notification channel types are globally unique. */ - type: string; + type?: string; } /** * A protocol buffer option, which can be attached to a message, field, @@ -1415,7 +1418,7 @@ export namespace monitoring_v3 { * "map_entry". For custom options, it should be the * fully-qualified name. For example, "google.api.http". */ - name: string; + name?: string; /** * The option's value packed in an Any message. If the value is a * primitive, the corresponding wrapper type defined in @@ -1423,7 +1426,7 @@ export namespace monitoring_v3 { * it should be stored as an int32 value using the * google.protobuf.Int32Value type. */ - value: any; + value?: any; } /** * A single data point in a time series. @@ -1439,11 +1442,11 @@ export namespace monitoring_v3 { * times, until an event resets the cumulative value to zero and sets a new * start time for the following points. */ - interval: Schema$TimeInterval; + interval?: Schema$TimeInterval; /** * The value of the data point. */ - value: Schema$TypedValue; + value?: Schema$TypedValue; } /** * The range of the population values. @@ -1452,11 +1455,11 @@ export namespace monitoring_v3 { /** * The maximum of the population values. */ - max: number; + max?: number; /** * The minimum of the population values. */ - min: number; + min?: number; } /** * The resource submessage for group checks. It can be used instead of a @@ -1467,11 +1470,11 @@ export namespace monitoring_v3 { * The group of resources being monitored. Should be only the group_id, not * projects/<project_id>/groups/<group_id>. */ - groupId: string; + groupId?: string; /** * The resource type of the group members. */ - resourceType: string; + resourceType?: string; } /** * The SendNotificationChannelVerificationCode request. @@ -1487,7 +1490,7 @@ export namespace monitoring_v3 { * protobuf element. For example: * "google/protobuf/source_context.proto". */ - fileName: string; + fileName?: string; } /** * The Status type defines a logical error model that is suitable for @@ -1528,18 +1531,18 @@ export namespace monitoring_v3 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Information required for a TCP uptime check request. @@ -1550,7 +1553,7 @@ export namespace monitoring_v3 { * (specified within the MonitoredResource) to construct the full URL. * Required. */ - port: number; + port?: number; } /** * A time interval extending just after a start time through an end time. If @@ -1561,13 +1564,13 @@ export namespace monitoring_v3 { /** * Required. The end of the time interval. */ - endTime: string; + endTime?: string; /** * Optional. The beginning of the time interval. The default value for the * start time is the end time. The start time must not be later than the end * time. */ - startTime: string; + startTime?: string; } /** * A collection of data points that describes the time-varying values of a @@ -1582,12 +1585,12 @@ export namespace monitoring_v3 { * named in the reduction. When creating a timeseries, this field is * ignored. */ - metadata: Schema$MonitoredResourceMetadata; + metadata?: Schema$MonitoredResourceMetadata; /** * The associated metric. A fully-specified metric used to identify the time * series. */ - metric: Schema$Metric; + metric?: Schema$Metric; /** * The metric kind of the time series. When listing time series, this metric * kind might be different from the metric kind of the associated metric if @@ -1598,7 +1601,7 @@ export namespace monitoring_v3 { * the metric kind of the new descriptor and must be either GAUGE (the * default) or CUMULATIVE. */ - metricKind: string; + metricKind?: string; /** * The data points of this time series. When listing time series, points are * returned in reverse time order.When creating a time series, this field @@ -1608,12 +1611,12 @@ export namespace monitoring_v3 { * descriptor is determined by the point's type, which must be BOOL, * INT64, DOUBLE, or DISTRIBUTION. */ - points: Schema$Point[]; + points?: Schema$Point[]; /** * The associated monitored resource. Custom metrics can use only certain * monitored resource types in their time series data. */ - resource: Schema$MonitoredResource; + resource?: Schema$MonitoredResource; /** * The value type of the time series. When listing time series, this value * type might be different from the value type of the associated metric if @@ -1621,7 +1624,7 @@ export namespace monitoring_v3 { * creating a time series, this field is optional. If present, it must be * the same as the type of the data in the points field. */ - valueType: string; + valueType?: string; } /** * Specifies how many time series must fail a predicate to trigger a @@ -1632,12 +1635,12 @@ export namespace monitoring_v3 { * The absolute number of time series that must fail the predicate for the * condition to be triggered. */ - count: number; + count?: number; /** * The percentage of time series that must fail the predicate for the * condition to be triggered. */ - percent: number; + percent?: number; } /** * A protocol buffer message type. @@ -1646,27 +1649,27 @@ export namespace monitoring_v3 { /** * The list of fields. */ - fields: Schema$Field[]; + fields?: Schema$Field[]; /** * The fully qualified message name. */ - name: string; + name?: string; /** * The list of types appearing in oneof definitions in this type. */ - oneofs: string[]; + oneofs?: string[]; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * A single strongly-typed value. @@ -1675,26 +1678,26 @@ export namespace monitoring_v3 { /** * A Boolean value: true or false. */ - boolValue: boolean; + boolValue?: boolean; /** * A distribution value. */ - distributionValue: Schema$Distribution; + distributionValue?: Schema$Distribution; /** * A 64-bit double-precision floating-point number. Its magnitude is * approximately &plusmn;10<sup>&plusmn;300</sup> and it * has 16 significant digits of precision. */ - doubleValue: number; + doubleValue?: number; /** * A 64-bit integer. Its range is approximately * &plusmn;9.2x10<sup>18</sup>. */ - int64Value: string; + int64Value?: string; /** * A variable-length string value. */ - stringValue: string; + stringValue?: string; } /** * This message configures which resources and services to monitor for @@ -1708,27 +1711,27 @@ export namespace monitoring_v3 { * page response's content. This field is optional and should only be * specified if a content match is required. */ - contentMatchers: Schema$ContentMatcher[]; + contentMatchers?: Schema$ContentMatcher[]; /** * A human-friendly name for the uptime check configuration. The display * name should be unique within a Stackdriver Account in order to make it * easier to identify; however, uniqueness is not enforced. Required. */ - displayName: string; + displayName?: string; /** * Contains information needed to make an HTTP or HTTPS check. */ - httpCheck: Schema$HttpCheck; + httpCheck?: Schema$HttpCheck; /** * The internal checkers that this check will egress from. If is_internal is * true and this list is empty, the check will egress from all * InternalCheckers configured for the project that owns this CheckConfig. */ - internalCheckers: Schema$InternalChecker[]; + internalCheckers?: Schema$InternalChecker[]; /** * Denotes whether this is a check that egresses from InternalCheckers. */ - isInternal: boolean; + isInternal?: boolean; /** * The monitored resource * (https://cloud.google.com/monitoring/api/resources) associated with the @@ -1736,7 +1739,7 @@ export namespace monitoring_v3 { * uptime checks: uptime_url gce_instance gae_app aws_ec2_instance * aws_elb_load_balancer */ - monitoredResource: Schema$MonitoredResource; + monitoredResource?: Schema$MonitoredResource; /** * A unique resource name for this UptimeCheckConfig. The format * is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field @@ -1744,33 +1747,33 @@ export namespace monitoring_v3 { * create, the resource name is assigned by the server and included in the * response. */ - name: string; + name?: string; /** * How often, in seconds, the uptime check is performed. Currently, the only * supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), * and 900s (15 minutes). Optional, defaults to 300s. */ - period: string; + period?: string; /** * The group resource associated with the configuration. */ - resourceGroup: Schema$ResourceGroup; + resourceGroup?: Schema$ResourceGroup; /** * The list of regions from which the check will be run. If this field is * specified, enough regions to include a minimum of 3 locations must be * provided, or an error message is returned. Not specifying this field will * result in uptime checks running from all regions. */ - selectedRegions: string[]; + selectedRegions?: string[]; /** * Contains information needed to make a TCP check. */ - tcpCheck: Schema$TcpCheck; + tcpCheck?: Schema$TcpCheck; /** * The maximum amount of time to wait for the request to complete (must be * between 1 and 60 seconds). Required. */ - timeout: string; + timeout?: string; } /** * Contains the region, location, and list of IP addresses where checkers in @@ -1784,17 +1787,17 @@ export namespace monitoring_v3 { * addresses being in IPv4 format indefinitely and should support * interpreting this field in either IPv4 or IPv6 format. */ - ipAddress: string; + ipAddress?: string; /** * A more specific location within the region that typically encodes a * particular city/town/metro (and its containing state/province or country) * within the broader umbrella region category. */ - location: string; + location?: string; /** * A broad region category in which the IP address is located. */ - region: string; + region?: string; } /** * The VerifyNotificationChannel request. @@ -1809,9 +1812,10 @@ export namespace monitoring_v3 { * one is only guaranteed that the code is valid UTF-8; one should not make * any assumptions regarding the structure or format of the code). */ - code: string; + code?: string; } + export class Resource$Projects { root: Monitoring; alertPolicies: Resource$Projects$Alertpolicies; @@ -1846,6 +1850,8 @@ export namespace monitoring_v3 { return this.root; } } + + export class Resource$Projects$Alertpolicies { root: Monitoring; constructor(root: Monitoring) { @@ -1871,26 +1877,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Alertpolicies$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Alertpolicies$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Alertpolicies$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Alertpolicies$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Alertpolicies$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Alertpolicies$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -1925,25 +1944,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Alertpolicies$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Alertpolicies$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Alertpolicies$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Alertpolicies$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Alertpolicies$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Alertpolicies$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -1977,24 +2009,35 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Alertpolicies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Alertpolicies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Alertpolicies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Alertpolicies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Alertpolicies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Alertpolicies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2032,29 +2075,42 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Alertpolicies$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Alertpolicies$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Alertpolicies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Alertpolicies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Alertpolicies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Alertpolicies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2095,26 +2151,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Alertpolicies$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Alertpolicies$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Alertpolicies$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Alertpolicies$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Alertpolicies$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Alertpolicies$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2136,6 +2205,130 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Alertpolicies$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project in which to create the alerting policy. The format is + * projects/[PROJECT_ID].Note that this field names the parent container in + * which the alerting policy will be written, not the name of the created + * policy. The alerting policy that is returned will have a name that + * contains a normalized representation of this name as a prefix but adds a + * suffix of the form /alertPolicies/[POLICY_ID], identifying the policy in + * the container. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$AlertPolicy; + } + export interface Params$Resource$Projects$Alertpolicies$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The alerting policy to delete. The format is: + * projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] For more + * information, see AlertPolicy. + */ + name?: string; + } + export interface Params$Resource$Projects$Alertpolicies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The alerting policy to retrieve. The format is + * projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + */ + name?: string; + } + export interface Params$Resource$Projects$Alertpolicies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If provided, this field specifies the criteria that must be met by alert + * policies to be included in the response.For more details, see sorting and + * filtering. + */ + filter?: string; + /** + * The project whose alert policies are to be listed. The format is + * projects/[PROJECT_ID] Note that this field names the parent container in + * which the alerting policies to be listed are stored. To retrieve a single + * alerting policy by name, use the GetAlertPolicy operation, instead. + */ + name?: string; + /** + * A comma-separated list of fields by which to sort the result. Supports + * the same set of field references as the filter field. Entries can be + * prefixed with a minus sign to sort by the field in descending order.For + * more details, see sorting and filtering. + */ + orderBy?: string; + /** + * The maximum number of results to return in a single response. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return more results from the previous method call. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Alertpolicies$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required if the policy exists. The resource name for this policy. The + * syntax is: projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + * [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy + * is created. When calling the alertPolicies.create method, do not include + * the name field in the alerting policy passed as part of the request. + */ + name?: string; + /** + * Optional. A list of alerting policy field names. If this field is not + * empty, each listed field in the existing alerting policy is set to the + * value of the corresponding field in the supplied policy (alert_policy), + * or to the field's default value if the field is not in the supplied + * alerting policy. Fields not listed retain their previous value.Examples + * of valid field masks include display_name, documentation, + * documentation.content, documentation.mime_type, user_labels, + * user_label.nameofkey, enabled, conditions, combiner, etc.If this field is + * empty, then the supplied alerting policy replaces the existing policy. It + * is the same as deleting the existing policy and adding the supplied + * policy, except for the following: The new policy will have the same + * [ALERT_POLICY_ID] as the former policy. This gives you continuity with + * the former policy in your notifications and incidents. Conditions in the + * new policy will keep their former [CONDITION_ID] if the supplied + * condition includes the name field with that [CONDITION_ID]. If the + * supplied condition omits the name field, then a new [CONDITION_ID] is + * created. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$AlertPolicy; + } + + export class Resource$Projects$Collectdtimeseries { root: Monitoring; constructor(root: Monitoring) { @@ -2207,31 +2400,48 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Projects$Collectdtimeseries$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Collectdtimeseries$Create, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + create( + params: Params$Resource$Projects$Collectdtimeseries$Create, + callback: BodyResponseCallback): void; + create(callback: + BodyResponseCallback): + void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Collectdtimeseries$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Collectdtimeseries$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Collectdtimeseries$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2256,6 +2466,24 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Collectdtimeseries$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project in which to create the time series. The format is + * "projects/PROJECT_ID_OR_NUMBER". + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateCollectdTimeSeriesRequest; + } + + export class Resource$Projects$Groups { root: Monitoring; members: Resource$Projects$Groups$Members; @@ -2331,25 +2559,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Groups$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Groups$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Groups$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Groups$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2431,25 +2672,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Groups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Groups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Groups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Groups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2530,23 +2784,34 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Groups$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Groups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Groups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Groups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2638,26 +2903,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Groups$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Groups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Groups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Groups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2748,25 +3026,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Groups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2787,6 +3078,118 @@ export namespace monitoring_v3 { } } } + + export interface Params$Resource$Projects$Groups$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project in which to create the group. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * If true, validate this request but do not create the group. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export interface Params$Resource$Projects$Groups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The group to delete. The format is + * "projects/{project_id_or_number}/groups/{group_id}". + */ + name?: string; + } + export interface Params$Resource$Projects$Groups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The group to retrieve. The format is + * "projects/{project_id_or_number}/groups/{group_id}". + */ + name?: string; + } + export interface Params$Resource$Projects$Groups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A group name: "projects/{project_id_or_number}/groups/{group_id}". + * Returns groups that are ancestors of the specified group. The groups are + * returned in order, starting with the immediate parent and ending with the + * most distant ancestor. If the specified group has no immediate parent, + * the results are empty. + */ + ancestorsOfGroup?: string; + /** + * A group name: "projects/{project_id_or_number}/groups/{group_id}". + * Returns groups whose parentName field contains the group name. If no + * groups have this parent, the results are empty. + */ + childrenOfGroup?: string; + /** + * A group name: "projects/{project_id_or_number}/groups/{group_id}". + * Returns the descendants of the specified group. This is a superset of the + * results returned by the childrenOfGroup filter, and includes + * children-of-children, and so forth. + */ + descendantsOfGroup?: string; + /** + * The project whose groups are to be listed. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * A positive number that is the maximum number of results to return. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return additional results from the previous method call. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Output only. The name of this group. The format is + * "projects/{project_id_or_number}/groups/{group_id}". When creating a + * group, this field is ignored and a new name is created consisting of the + * project specified in the call to CreateGroup and a unique {group_id} that + * is generated automatically. + */ + name?: string; + /** + * If true, validate this request but do not update the existing group. + */ + validateOnly?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export class Resource$Projects$Groups$Members { root: Monitoring; constructor(root: Monitoring) { @@ -2870,28 +3273,40 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Groups$Members$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Groups$Members$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Groups$Members$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Groups$Members$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Groups$Members$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Groups$Members$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -2914,6 +3329,48 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Groups$Members$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An optional list filter describing the members to be returned. The filter + * may reference the type, labels, and metadata of monitored resources that + * comprise the group. For example, to return only resources representing + * Compute Engine VM instances, use this filter: resource.type = + * "gce_instance" + */ + filter?: string; + /** + * Required. The end of the time interval. + */ + 'interval.endTime'?: string; + /** + * Optional. The beginning of the time interval. The default value for the + * start time is the end time. The start time must not be later than the end + * time. + */ + 'interval.startTime'?: string; + /** + * The group whose members are listed. The format is + * "projects/{project_id_or_number}/groups/{group_id}". + */ + name?: string; + /** + * A positive number that is the maximum number of results to return. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return additional results from the previous method call. + */ + pageToken?: string; + } + + export class Resource$Projects$Metricdescriptors { root: Monitoring; @@ -2985,26 +3442,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metricdescriptors$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Metricdescriptors$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Metricdescriptors$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Metricdescriptors$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Metricdescriptors$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metricdescriptors$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3087,25 +3557,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Metricdescriptors$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Metricdescriptors$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Metricdescriptors$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Metricdescriptors$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Metricdescriptors$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metricdescriptors$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3187,24 +3670,35 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Metricdescriptors$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Metricdescriptors$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Metricdescriptors$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Metricdescriptors$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Metricdescriptors$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metricdescriptors$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3295,29 +3789,44 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Metricdescriptors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Metricdescriptors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Metricdescriptors$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Metricdescriptors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Metricdescriptors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Metricdescriptors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3342,23 +3851,97 @@ export namespace monitoring_v3 { } } - export class Resource$Projects$Monitoredresourcedescriptors { - root: Monitoring; - constructor(root: Monitoring) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Projects$Metricdescriptors$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * monitoring.projects.monitoredResourceDescriptors.get - * @desc Gets a single monitored resource descriptor. This method does not - * require a Stackdriver account. - * @example + * The project on which to execute the request. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$MetricDescriptor; + } + export interface Params$Resource$Projects$Metricdescriptors$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The metric descriptor on which to execute the request. The format is + * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An + * example of {metric_id} is: "custom.googleapis.com/my_test_metric". + */ + name?: string; + } + export interface Params$Resource$Projects$Metricdescriptors$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The metric descriptor on which to execute the request. The format is + * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An + * example value of {metric_id} is + * "compute.googleapis.com/instance/disk/read_bytes_count". + */ + name?: string; + } + export interface Params$Resource$Projects$Metricdescriptors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If this field is empty, all custom and system-defined metric descriptors + * are returned. Otherwise, the filter specifies which metric descriptors + * are to be returned. For example, the following filter matches all custom + * metrics: metric.type = starts_with("custom.googleapis.com/") + */ + filter?: string; + /** + * The project on which to execute the request. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * A positive number that is the maximum number of results to return. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return additional results from the previous method call. + */ + pageToken?: string; + } + + + export class Resource$Projects$Monitoredresourcedescriptors { + root: Monitoring; + constructor(root: Monitoring) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * monitoring.projects.monitoredResourceDescriptors.get + * @desc Gets a single monitored resource descriptor. This method does not + * require a Stackdriver account. + * @example * * // PRE-REQUISITES: * // --------------- * // 1. If not already done, enable the Google Monitoring API and check the @@ -3416,27 +3999,42 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Monitoredresourcedescriptors$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Monitoredresourcedescriptors$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Monitoredresourcedescriptors$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: + Params$Resource$Projects$Monitoredresourcedescriptors$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Monitoredresourcedescriptors$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Monitoredresourcedescriptors$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3529,30 +4127,47 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Monitoredresourcedescriptors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Monitoredresourcedescriptors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$ListMonitoredResourceDescriptorsResponse>): void; + list( + params: Params$Resource$Projects$Monitoredresourcedescriptors$List, + callback: BodyResponseCallback< Schema$ListMonitoredResourceDescriptorsResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListMonitoredResourceDescriptorsResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Monitoredresourcedescriptors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListMonitoredResourceDescriptorsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Monitoredresourcedescriptors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Monitoredresourcedescriptors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3577,6 +4192,50 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Monitoredresourcedescriptors$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The monitored resource descriptor to get. The format is + * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}". + * The {resource_type} is a predefined type, such as cloudsql_database. + */ + name?: string; + } + export interface Params$Resource$Projects$Monitoredresourcedescriptors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An optional filter describing the descriptors to be returned. The filter + * can reference the descriptor's type and labels. For example, the + * following filter returns only Google Compute Engine descriptors that have + * an id label: resource.type = starts_with("gce_") AND resource.label:id + */ + filter?: string; + /** + * The project on which to execute the request. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * A positive number that is the maximum number of results to return. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return additional results from the previous method call. + */ + pageToken?: string; + } + + export class Resource$Projects$Notificationchanneldescriptors { root: Monitoring; constructor(root: Monitoring) { @@ -3603,27 +4262,42 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Projects$Notificationchanneldescriptors$Get, + options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Notificationchanneldescriptors$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Projects$Notificationchanneldescriptors$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: + Params$Resource$Projects$Notificationchanneldescriptors$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchanneldescriptors$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Notificationchanneldescriptors$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3663,30 +4337,47 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Notificationchanneldescriptors$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Notificationchanneldescriptors$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$ListNotificationChannelDescriptorsResponse>): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Notificationchanneldescriptors$List, + callback: BodyResponseCallback< + Schema$ListNotificationChannelDescriptorsResponse>): void; + list(callback: BodyResponseCallback< + Schema$ListNotificationChannelDescriptorsResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Notificationchanneldescriptors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$ListNotificationChannelDescriptorsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchanneldescriptors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Notificationchanneldescriptors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3711,6 +4402,46 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Notificationchanneldescriptors$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channel type for which to execute the request. The format is + * projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}. + */ + name?: string; + } + export interface Params$Resource$Projects$Notificationchanneldescriptors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The REST resource name of the parent from which to retrieve the + * notification channel descriptors. The expected syntax is: + * projects/[PROJECT_ID] Note that this names the parent container in which + * to look for the descriptors; to retrieve a single descriptor by name, use + * the GetNotificationChannelDescriptor operation, instead. + */ + name?: string; + /** + * The maximum number of results to return in a single response. If not set + * to a positive number, a reasonable value will be chosen by the service. + */ + pageSize?: number; + /** + * If non-empty, page_token must contain a value returned as the + * next_page_token in a previous response to request the next set of + * results. + */ + pageToken?: string; + } + + export class Resource$Projects$Notificationchannels { root: Monitoring; constructor(root: Monitoring) { @@ -3738,28 +4469,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Notificationchannels$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Notificationchannels$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Notificationchannels$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Notificationchannels$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Notificationchannels$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3795,25 +4537,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Notificationchannels$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Notificationchannels$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Notificationchannels$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Notificationchannels$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Notificationchannels$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3851,26 +4606,35 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Notificationchannels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Projects$Notificationchannels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Notificationchannels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Notificationchannels$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Notificationchannels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3924,30 +4688,52 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getVerificationCode(params?: any, options?: MethodOptions): + getVerificationCode( + params?: + Params$Resource$Projects$Notificationchannels$Getverificationcode, + options?: MethodOptions): AxiosPromise; getVerificationCode( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Notificationchannels$Getverificationcode, + options: MethodOptions|BodyResponseCallback< Schema$GetNotificationChannelVerificationCodeResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GetNotificationChannelVerificationCodeResponse>): void; getVerificationCode( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: + Params$Resource$Projects$Notificationchannels$Getverificationcode, + callback: BodyResponseCallback< + Schema$GetNotificationChannelVerificationCodeResponse>): void; + getVerificationCode(callback: BodyResponseCallback< + Schema$GetNotificationChannelVerificationCodeResponse>): + void; + getVerificationCode( + paramsOrCallback?: + Params$Resource$Projects$Notificationchannels$Getverificationcode| + BodyResponseCallback< + Schema$GetNotificationChannelVerificationCodeResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GetNotificationChannelVerificationCodeResponse>, callback?: BodyResponseCallback< Schema$GetNotificationChannelVerificationCodeResponse>): void| AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Getverificationcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Notificationchannels$Getverificationcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -3989,31 +4775,48 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Notificationchannels$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Notificationchannels$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Notificationchannels$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Notificationchannels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Notificationchannels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4053,28 +4856,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Notificationchannels$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Notificationchannels$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Notificationchannels$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Notificationchannels$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Notificationchannels$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4110,26 +4924,43 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sendVerificationCode(params?: any, options?: MethodOptions): - AxiosPromise; sendVerificationCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Notificationchannels$Sendverificationcode, + options?: MethodOptions): AxiosPromise; sendVerificationCode( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Notificationchannels$Sendverificationcode, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + sendVerificationCode( + params: + Params$Resource$Projects$Notificationchannels$Sendverificationcode, + callback: BodyResponseCallback): void; + sendVerificationCode(callback: BodyResponseCallback): void; + sendVerificationCode( + paramsOrCallback?: + Params$Resource$Projects$Notificationchannels$Sendverificationcode| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Sendverificationcode; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Notificationchannels$Sendverificationcode; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4167,28 +4998,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verify(params?: any, options?: MethodOptions): - AxiosPromise; verify( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Notificationchannels$Verify, + options?: MethodOptions): AxiosPromise; + verify( + params: Params$Resource$Projects$Notificationchannels$Verify, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; verify( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Notificationchannels$Verify, + callback: BodyResponseCallback): void; + verify(callback: BodyResponseCallback): void; + verify( + paramsOrCallback?: Params$Resource$Projects$Notificationchannels$Verify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Notificationchannels$Verify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Notificationchannels$Verify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4211,6 +5053,166 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Notificationchannels$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project on which to execute the request. The format is: + * projects/[PROJECT_ID] Note that this names the container into which the + * channel will be written. This does not name the newly created channel. + * The resulting channel's name will have a normalized version of this field + * as a prefix, but will add /notificationChannels/[CHANNEL_ID] to identify + * the channel. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$NotificationChannel; + } + export interface Params$Resource$Projects$Notificationchannels$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If true, the notification channel will be deleted regardless of its use + * in alert policies (the policies will be updated to remove the channel). + * If false, channels that are still referenced by an existing alerting + * policy will fail to be deleted in a delete operation. + */ + force?: boolean; + /** + * The channel for which to execute the request. The format is + * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]. + */ + name?: string; + } + export interface Params$Resource$Projects$Notificationchannels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channel for which to execute the request. The format is + * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]. + */ + name?: string; + } + export interface Params$Resource$Projects$Notificationchannels$Getverificationcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The notification channel for which a verification code is to be generated + * and retrieved. This must name a channel that is already verified; if the + * specified channel is not verified, the request will fail. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GetNotificationChannelVerificationCodeRequest; + } + export interface Params$Resource$Projects$Notificationchannels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If provided, this field specifies the criteria that must be met by + * notification channels to be included in the response.For more details, + * see sorting and filtering. + */ + filter?: string; + /** + * The project on which to execute the request. The format is + * projects/[PROJECT_ID]. That is, this names the container in which to look + * for the notification channels; it does not name a specific channel. To + * query a specific channel by REST resource name, use the + * GetNotificationChannel operation. + */ + name?: string; + /** + * A comma-separated list of fields by which to sort the result. Supports + * the same set of fields as in filter. Entries can be prefixed with a minus + * sign to sort in descending rather than ascending order.For more details, + * see sorting and filtering. + */ + orderBy?: string; + /** + * The maximum number of results to return in a single response. If not set + * to a positive number, a reasonable value will be chosen by the service. + */ + pageSize?: number; + /** + * If non-empty, page_token must contain a value returned as the + * next_page_token in a previous response to request the next set of + * results. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Notificationchannels$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The full REST resource name for this channel. The syntax is: + * projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] The [CHANNEL_ID] + * is automatically assigned by the server on creation. + */ + name?: string; + /** + * The fields to update. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$NotificationChannel; + } + export interface Params$Resource$Projects$Notificationchannels$Sendverificationcode { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The notification channel to which to send a verification code. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$SendNotificationChannelVerificationCodeRequest; + } + export interface Params$Resource$Projects$Notificationchannels$Verify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The notification channel to verify. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$VerifyNotificationChannelRequest; + } + + export class Resource$Projects$Timeseries { root: Monitoring; constructor(root: Monitoring) { @@ -4286,25 +5288,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Timeseries$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Timeseries$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Timeseries$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Timeseries$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Timeseries$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Timeseries$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4404,28 +5419,40 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Timeseries$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Timeseries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Timeseries$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Timeseries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Timeseries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Timeseries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4448,6 +5475,123 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Timeseries$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project on which to execute the request. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateTimeSeriesRequest; + } + export interface Params$Resource$Projects$Timeseries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The alignment period for per-time series alignment. If present, + * alignmentPeriod must be at least 60 seconds. After per-time series + * alignment, each time series will contain data points only on the period + * boundaries. If perSeriesAligner is not specified or equals ALIGN_NONE, + * then this field is ignored. If perSeriesAligner is specified and does not + * equal ALIGN_NONE, then this field must be defined; otherwise an error is + * returned. + */ + 'aggregation.alignmentPeriod'?: string; + /** + * The approach to be used to combine time series. Not all reducer functions + * may be applied to all time series, depending on the metric type and the + * value type of the original time series. Reduction may change the metric + * type of value type of the time series.Time series data must be aligned in + * order to perform cross-time series reduction. If crossSeriesReducer is + * specified, then perSeriesAligner must be specified and not equal + * ALIGN_NONE and alignmentPeriod must be specified; otherwise, an error is + * returned. + */ + 'aggregation.crossSeriesReducer'?: string; + /** + * The set of fields to preserve when crossSeriesReducer is specified. The + * groupByFields determine how the time series are partitioned into subsets + * prior to applying the aggregation function. Each subset contains time + * series that have the same value for each of the grouping fields. Each + * individual time series is a member of exactly one subset. The + * crossSeriesReducer is applied to each subset of time series. It is not + * possible to reduce across different resource types, so this field + * implicitly contains resource.type. Fields not specified in groupByFields + * are aggregated away. If groupByFields is not specified and all the time + * series have the same resource type, then the time series are aggregated + * into a single output time series. If crossSeriesReducer is not defined, + * this field is ignored. + */ + 'aggregation.groupByFields'?: string; + /** + * The approach to be used to align individual time series. Not all + * alignment functions may be applied to all time series, depending on the + * metric type and value type of the original time series. Alignment may + * change the metric type or the value type of the time series.Time series + * data must be aligned in order to perform cross-time series reduction. If + * crossSeriesReducer is specified, then perSeriesAligner must be specified + * and not equal ALIGN_NONE and alignmentPeriod must be specified; + * otherwise, an error is returned. + */ + 'aggregation.perSeriesAligner'?: string; + /** + * A monitoring filter that specifies which time series should be returned. + * The filter must specify a single metric type, and can additionally + * specify metric labels and other information. For example: metric.type = + * "compute.googleapis.com/instance/cpu/usage_time" AND + * metric.label.instance_name = "my-instance-name" + */ + filter?: string; + /** + * Required. The end of the time interval. + */ + 'interval.endTime'?: string; + /** + * Optional. The beginning of the time interval. The default value for the + * start time is the end time. The start time must not be later than the end + * time. + */ + 'interval.startTime'?: string; + /** + * The project on which to execute the request. The format is + * "projects/{project_id_or_number}". + */ + name?: string; + /** + * Unsupported: must be left blank. The points in each time series are + * returned in reverse time order. + */ + orderBy?: string; + /** + * A positive number that is the maximum number of results to return. When + * view field sets to FULL, it limits the number of Points server will + * return; if view field is HEADERS, it limits the number of TimeSeries + * server will return. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return additional results from the previous method call. + */ + pageToken?: string; + /** + * Specifies which information is returned about the time series. + */ + view?: string; + } + + export class Resource$Projects$Uptimecheckconfigs { root: Monitoring; constructor(root: Monitoring) { @@ -4473,26 +5617,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Uptimecheckconfigs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Uptimecheckconfigs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Uptimecheckconfigs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Uptimecheckconfigs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Uptimecheckconfigs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Uptimecheckconfigs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4530,25 +5687,38 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Uptimecheckconfigs$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Uptimecheckconfigs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Uptimecheckconfigs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Uptimecheckconfigs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Uptimecheckconfigs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Uptimecheckconfigs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4582,24 +5752,35 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Uptimecheckconfigs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Uptimecheckconfigs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Uptimecheckconfigs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Uptimecheckconfigs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Uptimecheckconfigs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Uptimecheckconfigs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4636,29 +5817,44 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Uptimecheckconfigs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Uptimecheckconfigs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Uptimecheckconfigs$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Uptimecheckconfigs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Uptimecheckconfigs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Uptimecheckconfigs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4700,26 +5896,39 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Uptimecheckconfigs$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Uptimecheckconfigs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Uptimecheckconfigs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Uptimecheckconfigs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Uptimecheckconfigs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Uptimecheckconfigs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4741,6 +5950,99 @@ export namespace monitoring_v3 { } } + export interface Params$Resource$Projects$Uptimecheckconfigs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project in which to create the uptime check. The format is + * projects/[PROJECT_ID]. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$UptimeCheckConfig; + } + export interface Params$Resource$Projects$Uptimecheckconfigs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The uptime check configuration to delete. The format is + * projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]. + */ + name?: string; + } + export interface Params$Resource$Projects$Uptimecheckconfigs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The uptime check configuration to retrieve. The format is + * projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]. + */ + name?: string; + } + export interface Params$Resource$Projects$Uptimecheckconfigs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of results to return in a single response. The server + * may further constrain the maximum number of results returned in a single + * page. If the page_size is <=0, the server will decide the number of + * results to be returned. + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return more results from the previous method call. + */ + pageToken?: string; + /** + * The project whose uptime check configurations are listed. The format is + * projects/[PROJECT_ID]. + */ + parent?: string; + } + export interface Params$Resource$Projects$Uptimecheckconfigs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A unique resource name for this UptimeCheckConfig. The format + * is:projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID].This field + * should be omitted when creating the uptime check configuration; on + * create, the resource name is assigned by the server and included in the + * response. + */ + name?: string; + /** + * Optional. If present, only the listed fields in the current uptime check + * configuration are updated with values from the new configuration. If this + * field is empty, then the current configuration is completely replaced + * with the new configuration. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$UptimeCheckConfig; + } + + export class Resource$Uptimecheckips { root: Monitoring; @@ -4767,29 +6069,42 @@ export namespace monitoring_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Uptimecheckips$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Uptimecheckips$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Uptimecheckips$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Uptimecheckips$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Uptimecheckips$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Uptimecheckips$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; const parameters = { options: Object.assign( @@ -4812,4 +6127,26 @@ export namespace monitoring_v3 { } } } + + export interface Params$Resource$Uptimecheckips$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of results to return in a single response. The server + * may further constrain the maximum number of results returned in a single + * page. If the page_size is <=0, the server will decide the number of + * results to be returned. NOTE: this field is not yet implemented + */ + pageSize?: number; + /** + * If this field is not empty then it must contain the nextPageToken value + * returned by a previous call to this method. Using this field causes the + * method to return more results from the previous method call. NOTE: this + * field is not yet implemented + */ + pageToken?: string; + } } diff --git a/src/apis/oauth2/v1.ts b/src/apis/oauth2/v1.ts index 934aabb6dec..3c796a11180 100644 --- a/src/apis/oauth2/v1.ts +++ b/src/apis/oauth2/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace oauth2_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google OAuth2 API * @@ -75,24 +78,37 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getCertForOpenIdConnect(params?: any, options?: MethodOptions): - AxiosPromise; getCertForOpenIdConnect( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$$Getcertforopenidconnect, + options?: MethodOptions): AxiosPromise; + getCertForOpenIdConnect( + params: Params$$Getcertforopenidconnect, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getCertForOpenIdConnect( + params: Params$$Getcertforopenidconnect, + callback: BodyResponseCallback): void; + getCertForOpenIdConnect(callback: BodyResponseCallback): void; getCertForOpenIdConnect( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Getcertforopenidconnect| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Getcertforopenidconnect; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Getcertforopenidconnect; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -124,24 +140,39 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getCertForOpenIdConnectRaw(params?: any, options?: MethodOptions): - AxiosPromise; getCertForOpenIdConnectRaw( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$$Getcertforopenidconnectraw, + options?: MethodOptions): AxiosPromise; + getCertForOpenIdConnectRaw( + params: Params$$Getcertforopenidconnectraw, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getCertForOpenIdConnectRaw( + params: Params$$Getcertforopenidconnectraw, + callback: BodyResponseCallback): void; + getCertForOpenIdConnectRaw(callback: BodyResponseCallback): + void; getCertForOpenIdConnectRaw( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Getcertforopenidconnectraw| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$$Getcertforopenidconnectraw; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Getcertforopenidconnectraw; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -175,24 +206,35 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRobotJwk(params?: any, options?: MethodOptions): + getRobotJwk(params?: Params$$Getrobotjwk, options?: MethodOptions): AxiosPromise; getRobotJwk( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$$Getrobotjwk, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getRobotJwk( + params: Params$$Getrobotjwk, + callback: BodyResponseCallback): void; + getRobotJwk(callback: BodyResponseCallback): void; getRobotJwk( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Getrobotjwk|BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Getrobotjwk; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Getrobotjwk; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -226,24 +268,37 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRobotMetadataRaw(params?: any, options?: MethodOptions): - AxiosPromise; getRobotMetadataRaw( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$$Getrobotmetadataraw, + options?: MethodOptions): AxiosPromise; + getRobotMetadataRaw( + params: Params$$Getrobotmetadataraw, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getRobotMetadataRaw( + params: Params$$Getrobotmetadataraw, + callback: BodyResponseCallback): void; + getRobotMetadataRaw(callback: BodyResponseCallback): void; getRobotMetadataRaw( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Getrobotmetadataraw| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Getrobotmetadataraw; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Getrobotmetadataraw; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -277,24 +332,37 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRobotMetadataX509(params?: any, options?: MethodOptions): - AxiosPromise; getRobotMetadataX509( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$$Getrobotmetadatax509, + options?: MethodOptions): AxiosPromise; + getRobotMetadataX509( + params: Params$$Getrobotmetadatax509, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getRobotMetadataX509( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$$Getrobotmetadatax509, + callback: BodyResponseCallback): void; + getRobotMetadataX509(callback: BodyResponseCallback): void; + getRobotMetadataX509( + paramsOrCallback?: Params$$Getrobotmetadatax509| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Getrobotmetadatax509; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Getrobotmetadatax509; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -330,26 +398,37 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - tokeninfo(params?: any, options?: MethodOptions): + tokeninfo(params?: Params$$Tokeninfo, options?: MethodOptions): AxiosPromise; tokeninfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$$Tokeninfo, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + tokeninfo( + params: Params$$Tokeninfo, + callback: BodyResponseCallback): void; + tokeninfo(callback: BodyResponseCallback): void; tokeninfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Tokeninfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Tokeninfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Tokeninfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -372,111 +451,172 @@ export namespace oauth2_v1 { } } - export interface Schema$Jwk { keys: any[]; } - export interface Schema$Raw { keyvalues: any[]; } + export interface Schema$Jwk { keys?: any[]; } + export interface Schema$Raw { keyvalues?: any[]; } export interface Schema$Tokeninfo { /** * The access type granted with this token. It can be offline or online. */ - access_type: string; + access_type?: string; /** * Who is the intended audience for this token. In general the same as * issued_to. */ - audience: string; + audience?: string; /** * The email address of the user. Present only if the email scope is present * in the request. */ - email: string; + email?: string; /** * Boolean flag which is true if the email address is verified. Present only * if the email scope is present in the request. */ - email_verified: boolean; + email_verified?: boolean; /** * The expiry time of the token, as number of seconds left until expiry. */ - expires_in: number; + expires_in?: number; /** * The issue time of the token, as number of seconds. */ - issued_at: number; + issued_at?: number; /** * To whom was the token issued to. In general the same as audience. */ - issued_to: string; + issued_to?: string; /** * Who issued the token. */ - issuer: string; + issuer?: string; /** * Nonce of the id token. */ - nonce: string; + nonce?: string; /** * The space separated list of scopes granted to this token. */ - scope: string; + scope?: string; /** * The obfuscated user id. */ - user_id: string; + user_id?: string; /** * Boolean flag which is true if the email address is verified. Present only * if the email scope is present in the request. */ - verified_email: boolean; + verified_email?: boolean; } export interface Schema$Userinfoplus { /** * The user's email address. */ - email: string; + email?: string; /** * The user's last name. */ - family_name: string; + family_name?: string; /** * The user's gender. */ - gender: string; + gender?: string; /** * The user's first name. */ - given_name: string; + given_name?: string; /** * The hosted domain e.g. example.com if the user is Google apps user. */ - hd: string; + hd?: string; /** * The obfuscated ID of the user. */ - id: string; + id?: string; /** * URL of the profile page. */ - link: string; + link?: string; /** * The user's preferred locale. */ - locale: string; + locale?: string; /** * The user's full name. */ - name: string; + name?: string; /** * URL of the user's picture image. */ - picture: string; + picture?: string; /** * Boolean flag which is true if the email address is verified. Always * verified because we only return the user's primary email address. */ - verified_email: boolean; + verified_email?: boolean; } export interface Schema$X509 {} + export interface Params$$Getcertforopenidconnect { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$$Getcertforopenidconnectraw { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$$Getrobotjwk { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The email of robot account. + */ + robotEmail?: string; + } + export interface Params$$Getrobotmetadataraw { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The email of robot account. + */ + robotEmail?: string; + } + export interface Params$$Getrobotmetadatax509 { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The email of robot account. + */ + robotEmail?: string; + } + export interface Params$$Tokeninfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The oauth2 access token + */ + access_token?: string; + /** + * The ID token + */ + id_token?: string; + } + export class Resource$Userinfo { root: Oauth2; v2: Resource$Userinfo$V2; @@ -502,24 +642,34 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userinfo$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userinfo$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userinfo$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userinfo$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userinfo$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userinfo$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -541,6 +691,14 @@ export namespace oauth2_v1 { } } } + + export interface Params$Resource$Userinfo$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export class Resource$Userinfo$V2 { root: Oauth2; me: Resource$Userinfo$V2$Me; @@ -554,6 +712,8 @@ export namespace oauth2_v1 { return this.root; } } + + export class Resource$Userinfo$V2$Me { root: Oauth2; constructor(root: Oauth2) { @@ -577,24 +737,35 @@ export namespace oauth2_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userinfo$V2$Me$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userinfo$V2$Me$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userinfo$V2$Me$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userinfo$V2$Me$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userinfo$V2$Me$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userinfo$V2$Me$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -615,4 +786,11 @@ export namespace oauth2_v1 { } } } + + export interface Params$Resource$Userinfo$V2$Me$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/oauth2/v2.ts b/src/apis/oauth2/v2.ts index e31c137de32..1a2e3931a44 100644 --- a/src/apis/oauth2/v2.ts +++ b/src/apis/oauth2/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace oauth2_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Google OAuth2 API * @@ -75,24 +78,37 @@ export namespace oauth2_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getCertForOpenIdConnect(params?: any, options?: MethodOptions): - AxiosPromise; getCertForOpenIdConnect( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$$Getcertforopenidconnect, + options?: MethodOptions): AxiosPromise; + getCertForOpenIdConnect( + params: Params$$Getcertforopenidconnect, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getCertForOpenIdConnect( + params: Params$$Getcertforopenidconnect, + callback: BodyResponseCallback): void; + getCertForOpenIdConnect(callback: BodyResponseCallback): void; getCertForOpenIdConnect( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Getcertforopenidconnect| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Getcertforopenidconnect; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Getcertforopenidconnect; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -127,26 +143,37 @@ export namespace oauth2_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - tokeninfo(params?: any, options?: MethodOptions): + tokeninfo(params?: Params$$Tokeninfo, options?: MethodOptions): AxiosPromise; tokeninfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$$Tokeninfo, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + tokeninfo( + params: Params$$Tokeninfo, + callback: BodyResponseCallback): void; + tokeninfo(callback: BodyResponseCallback): void; tokeninfo( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$$Tokeninfo| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$$Tokeninfo; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$$Tokeninfo; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -169,94 +196,120 @@ export namespace oauth2_v2 { } } - export interface Schema$Jwk { keys: any[]; } + export interface Schema$Jwk { keys?: any[]; } export interface Schema$Tokeninfo { /** * The access type granted with this token. It can be offline or online. */ - access_type: string; + access_type?: string; /** * Who is the intended audience for this token. In general the same as * issued_to. */ - audience: string; + audience?: string; /** * The email address of the user. Present only if the email scope is present * in the request. */ - email: string; + email?: string; /** * The expiry time of the token, as number of seconds left until expiry. */ - expires_in: number; + expires_in?: number; /** * To whom was the token issued to. In general the same as audience. */ - issued_to: string; + issued_to?: string; /** * The space separated list of scopes granted to this token. */ - scope: string; + scope?: string; /** * The token handle associated with this token. */ - token_handle: string; + token_handle?: string; /** * The obfuscated user id. */ - user_id: string; + user_id?: string; /** * Boolean flag which is true if the email address is verified. Present only * if the email scope is present in the request. */ - verified_email: boolean; + verified_email?: boolean; } export interface Schema$Userinfoplus { /** * The user's email address. */ - email: string; + email?: string; /** * The user's last name. */ - family_name: string; + family_name?: string; /** * The user's gender. */ - gender: string; + gender?: string; /** * The user's first name. */ - given_name: string; + given_name?: string; /** * The hosted domain e.g. example.com if the user is Google apps user. */ - hd: string; + hd?: string; /** * The obfuscated ID of the user. */ - id: string; + id?: string; /** * URL of the profile page. */ - link: string; + link?: string; /** * The user's preferred locale. */ - locale: string; + locale?: string; /** * The user's full name. */ - name: string; + name?: string; /** * URL of the user's picture image. */ - picture: string; + picture?: string; /** * Boolean flag which is true if the email address is verified. Always * verified because we only return the user's primary email address. */ - verified_email: boolean; + verified_email?: boolean; + } + + export interface Params$$Getcertforopenidconnect { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$$Tokeninfo { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + access_token?: string; + /** + * + */ + id_token?: string; + /** + * + */ + token_handle?: string; } export class Resource$Userinfo { @@ -283,24 +336,34 @@ export namespace oauth2_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userinfo$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userinfo$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userinfo$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userinfo$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userinfo$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userinfo$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -322,6 +385,14 @@ export namespace oauth2_v2 { } } } + + export interface Params$Resource$Userinfo$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export class Resource$Userinfo$V2 { root: Oauth2; me: Resource$Userinfo$V2$Me; @@ -335,6 +406,8 @@ export namespace oauth2_v2 { return this.root; } } + + export class Resource$Userinfo$V2$Me { root: Oauth2; constructor(root: Oauth2) { @@ -357,24 +430,35 @@ export namespace oauth2_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Userinfo$V2$Me$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Userinfo$V2$Me$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Userinfo$V2$Me$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Userinfo$V2$Me$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Userinfo$V2$Me$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userinfo$V2$Me$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -395,4 +479,11 @@ export namespace oauth2_v2 { } } } + + export interface Params$Resource$Userinfo$V2$Me$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/oslogin/v1.ts b/src/apis/oslogin/v1.ts index bb36ee58776..f1b5af4e180 100644 --- a/src/apis/oslogin/v1.ts +++ b/src/apis/oslogin/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace oslogin_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud OS Login API * @@ -80,7 +83,7 @@ export namespace oslogin_v1 { /** * The login profile information for the user. */ - loginProfile: Schema$LoginProfile; + loginProfile?: Schema$LoginProfile; } /** * The user profile information used for logging in to a virtual machine on @@ -90,15 +93,15 @@ export namespace oslogin_v1 { /** * A unique user ID. */ - name: string; + name?: string; /** * The list of POSIX accounts associated with the user. */ - posixAccounts: Schema$PosixAccount[]; + posixAccounts?: Schema$PosixAccount[]; /** * A map from SSH public key fingerprint to the associated key object. */ - sshPublicKeys: any; + sshPublicKeys?: any; } /** * The POSIX account information associated with a Google account. @@ -107,44 +110,44 @@ export namespace oslogin_v1 { /** * Output only. A POSIX account identifier. */ - accountId: string; + accountId?: string; /** * The GECOS (user information) entry for this account. */ - gecos: string; + gecos?: string; /** * The default group ID. */ - gid: string; + gid?: string; /** * The path to the home directory for this account. */ - homeDirectory: string; + homeDirectory?: string; /** * The operating system type where this account applies. */ - operatingSystemType: string; + operatingSystemType?: string; /** * Only one POSIX account can be marked as primary. */ - primary: boolean; + primary?: boolean; /** * The path to the logic shell for this account. */ - shell: string; + shell?: string; /** * System identifier for which account the username or uid applies to. By * default, the empty value is used. */ - systemId: string; + systemId?: string; /** * The user ID. */ - uid: string; + uid?: string; /** * The username of the POSIX account. */ - username: string; + username?: string; } /** * The SSH public key information associated with a Google account. @@ -153,19 +156,20 @@ export namespace oslogin_v1 { /** * An expiration time in microseconds since epoch. */ - expirationTimeUsec: string; + expirationTimeUsec?: string; /** * Output only. The SHA-256 fingerprint of the SSH public key. */ - fingerprint: string; + fingerprint?: string; /** * Public key text in SSH format, defined by <a * href="https://www.ietf.org/rfc/rfc4253.txt" * target="_blank">RFC4253</a> section 6.6. */ - key: string; + key?: string; } + export class Resource$Users { root: Oslogin; projects: Resource$Users$Projects; @@ -195,26 +199,39 @@ export namespace oslogin_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getLoginProfile(params?: any, options?: MethodOptions): - AxiosPromise; getLoginProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Getloginprofile, + options?: MethodOptions): AxiosPromise; + getLoginProfile( + params: Params$Resource$Users$Getloginprofile, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getLoginProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Getloginprofile, + callback: BodyResponseCallback): void; + getLoginProfile(callback: BodyResponseCallback): void; + getLoginProfile( + paramsOrCallback?: Params$Resource$Users$Getloginprofile| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Getloginprofile; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Getloginprofile; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -253,29 +270,45 @@ export namespace oslogin_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importSshPublicKey(params?: any, options?: MethodOptions): + importSshPublicKey( + params?: Params$Resource$Users$Importsshpublickey, + options?: MethodOptions): AxiosPromise; importSshPublicKey( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Importsshpublickey, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + importSshPublicKey( + params: Params$Resource$Users$Importsshpublickey, + callback: BodyResponseCallback): void; importSshPublicKey( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + importSshPublicKey( + paramsOrCallback?: Params$Resource$Users$Importsshpublickey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Importsshpublickey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Importsshpublickey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -298,6 +331,38 @@ export namespace oslogin_v1 { } } } + + export interface Params$Resource$Users$Getloginprofile { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the user in format `users/{user}`. + */ + name?: string; + } + export interface Params$Resource$Users$Importsshpublickey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the user in format `users/{user}`. + */ + parent?: string; + /** + * The project ID of the Google Cloud Platform project. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SshPublicKey; + } + export class Resource$Users$Projects { root: Oslogin; constructor(root: Oslogin) { @@ -322,25 +387,38 @@ export namespace oslogin_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Projects$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Projects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Projects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Projects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Projects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Projects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -362,6 +440,21 @@ export namespace oslogin_v1 { } } + export interface Params$Resource$Users$Projects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A reference to the POSIX account to update. POSIX accounts are identified + * by the project ID they are associated with. A reference to the POSIX + * account is in format `users/{user}/projects/{project}`. + */ + name?: string; + } + + export class Resource$Users$Sshpublickeys { root: Oslogin; constructor(root: Oslogin) { @@ -386,25 +479,38 @@ export namespace oslogin_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sshpublickeys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Sshpublickeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Sshpublickeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Sshpublickeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -438,24 +544,35 @@ export namespace oslogin_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Users$Sshpublickeys$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Users$Sshpublickeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Sshpublickeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sshpublickeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -492,26 +609,39 @@ export namespace oslogin_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sshpublickeys$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Sshpublickeys$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Users$Sshpublickeys$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sshpublickeys$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -532,4 +662,52 @@ export namespace oslogin_v1 { } } } + + export interface Params$Resource$Users$Sshpublickeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to update. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + } + export interface Params$Resource$Users$Sshpublickeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to retrieve. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + } + export interface Params$Resource$Users$Sshpublickeys$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to update. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + /** + * Mask to control which fields get updated. Updates all if not present. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$SshPublicKey; + } } diff --git a/src/apis/oslogin/v1alpha.ts b/src/apis/oslogin/v1alpha.ts index d4e12248f7f..462bbccbf21 100644 --- a/src/apis/oslogin/v1alpha.ts +++ b/src/apis/oslogin/v1alpha.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace oslogin_v1alpha { + export interface Options extends GlobalOptions { version: 'v1alpha'; } + /** * Cloud OS Login API * @@ -80,7 +83,7 @@ export namespace oslogin_v1alpha { /** * The login profile information for the user. */ - loginProfile: Schema$LoginProfile; + loginProfile?: Schema$LoginProfile; } /** * The user profile information used for logging in to a virtual machine on @@ -90,15 +93,15 @@ export namespace oslogin_v1alpha { /** * A unique user ID. */ - name: string; + name?: string; /** * The list of POSIX accounts associated with the user. */ - posixAccounts: Schema$PosixAccount[]; + posixAccounts?: Schema$PosixAccount[]; /** * A map from SSH public key fingerprint to the associated key object. */ - sshPublicKeys: any; + sshPublicKeys?: any; } /** * The POSIX account information associated with a Google account. @@ -107,44 +110,44 @@ export namespace oslogin_v1alpha { /** * Output only. A POSIX account identifier. */ - accountId: string; + accountId?: string; /** * The GECOS (user information) entry for this account. */ - gecos: string; + gecos?: string; /** * The default group ID. */ - gid: string; + gid?: string; /** * The path to the home directory for this account. */ - homeDirectory: string; + homeDirectory?: string; /** * The operating system type where this account applies. */ - operatingSystemType: string; + operatingSystemType?: string; /** * Only one POSIX account can be marked as primary. */ - primary: boolean; + primary?: boolean; /** * The path to the logic shell for this account. */ - shell: string; + shell?: string; /** * System identifier for which account the username or uid applies to. By * default, the empty value is used. */ - systemId: string; + systemId?: string; /** * The user ID. */ - uid: string; + uid?: string; /** * The username of the POSIX account. */ - username: string; + username?: string; } /** * The SSH public key information associated with a Google account. @@ -153,19 +156,20 @@ export namespace oslogin_v1alpha { /** * An expiration time in microseconds since epoch. */ - expirationTimeUsec: string; + expirationTimeUsec?: string; /** * Output only. The SHA-256 fingerprint of the SSH public key. */ - fingerprint: string; + fingerprint?: string; /** * Public key text in SSH format, defined by <a * href="https://www.ietf.org/rfc/rfc4253.txt" * target="_blank">RFC4253</a> section 6.6. */ - key: string; + key?: string; } + export class Resource$Users { root: Oslogin; projects: Resource$Users$Projects; @@ -195,26 +199,39 @@ export namespace oslogin_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getLoginProfile(params?: any, options?: MethodOptions): - AxiosPromise; getLoginProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Getloginprofile, + options?: MethodOptions): AxiosPromise; + getLoginProfile( + params: Params$Resource$Users$Getloginprofile, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getLoginProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Getloginprofile, + callback: BodyResponseCallback): void; + getLoginProfile(callback: BodyResponseCallback): void; + getLoginProfile( + paramsOrCallback?: Params$Resource$Users$Getloginprofile| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Getloginprofile; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Getloginprofile; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -253,29 +270,45 @@ export namespace oslogin_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importSshPublicKey(params?: any, options?: MethodOptions): + importSshPublicKey( + params?: Params$Resource$Users$Importsshpublickey, + options?: MethodOptions): AxiosPromise; importSshPublicKey( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Importsshpublickey, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + importSshPublicKey( + params: Params$Resource$Users$Importsshpublickey, + callback: BodyResponseCallback): void; importSshPublicKey( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + importSshPublicKey( + paramsOrCallback?: Params$Resource$Users$Importsshpublickey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Importsshpublickey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Importsshpublickey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -298,6 +331,38 @@ export namespace oslogin_v1alpha { } } } + + export interface Params$Resource$Users$Getloginprofile { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the user in format `users/{user}`. + */ + name?: string; + } + export interface Params$Resource$Users$Importsshpublickey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the user in format `users/{user}`. + */ + parent?: string; + /** + * The project ID of the Google Cloud Platform project. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SshPublicKey; + } + export class Resource$Users$Projects { root: Oslogin; constructor(root: Oslogin) { @@ -318,29 +383,43 @@ export namespace oslogin_v1alpha { * * @param {object} params Parameters for request * @param {string} params.name A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`. + * @param {string=} params.operatingSystemType The type of operating system associated with the 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 */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Projects$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Projects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Projects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Projects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Projects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Projects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -362,6 +441,25 @@ export namespace oslogin_v1alpha { } } + export interface Params$Resource$Users$Projects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A reference to the POSIX account to update. POSIX accounts are identified + * by the project ID they are associated with. A reference to the POSIX + * account is in format `users/{user}/projects/{project}`. + */ + name?: string; + /** + * The type of operating system associated with the account. + */ + operatingSystemType?: string; + } + + export class Resource$Users$Sshpublickeys { root: Oslogin; constructor(root: Oslogin) { @@ -386,25 +484,38 @@ export namespace oslogin_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sshpublickeys$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Sshpublickeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Users$Sshpublickeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Sshpublickeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -438,24 +549,35 @@ export namespace oslogin_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Users$Sshpublickeys$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Users$Sshpublickeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Sshpublickeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sshpublickeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -492,26 +614,39 @@ export namespace oslogin_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sshpublickeys$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Sshpublickeys$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Sshpublickeys$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sshpublickeys$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -532,4 +667,52 @@ export namespace oslogin_v1alpha { } } } + + export interface Params$Resource$Users$Sshpublickeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to update. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + } + export interface Params$Resource$Users$Sshpublickeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to retrieve. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + } + export interface Params$Resource$Users$Sshpublickeys$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to update. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + /** + * Mask to control which fields get updated. Updates all if not present. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$SshPublicKey; + } } diff --git a/src/apis/oslogin/v1beta.ts b/src/apis/oslogin/v1beta.ts index 9c3c831c9a6..860bd329512 100644 --- a/src/apis/oslogin/v1beta.ts +++ b/src/apis/oslogin/v1beta.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace oslogin_v1beta { + export interface Options extends GlobalOptions { version: 'v1beta'; } + /** * Cloud OS Login API * @@ -80,7 +83,7 @@ export namespace oslogin_v1beta { /** * The login profile information for the user. */ - loginProfile: Schema$LoginProfile; + loginProfile?: Schema$LoginProfile; } /** * The user profile information used for logging in to a virtual machine on @@ -90,15 +93,15 @@ export namespace oslogin_v1beta { /** * A unique user ID. */ - name: string; + name?: string; /** * The list of POSIX accounts associated with the user. */ - posixAccounts: Schema$PosixAccount[]; + posixAccounts?: Schema$PosixAccount[]; /** * A map from SSH public key fingerprint to the associated key object. */ - sshPublicKeys: any; + sshPublicKeys?: any; } /** * The POSIX account information associated with a Google account. @@ -107,44 +110,44 @@ export namespace oslogin_v1beta { /** * Output only. A POSIX account identifier. */ - accountId: string; + accountId?: string; /** * The GECOS (user information) entry for this account. */ - gecos: string; + gecos?: string; /** * The default group ID. */ - gid: string; + gid?: string; /** * The path to the home directory for this account. */ - homeDirectory: string; + homeDirectory?: string; /** * The operating system type where this account applies. */ - operatingSystemType: string; + operatingSystemType?: string; /** * Only one POSIX account can be marked as primary. */ - primary: boolean; + primary?: boolean; /** * The path to the logic shell for this account. */ - shell: string; + shell?: string; /** * System identifier for which account the username or uid applies to. By * default, the empty value is used. */ - systemId: string; + systemId?: string; /** * The user ID. */ - uid: string; + uid?: string; /** * The username of the POSIX account. */ - username: string; + username?: string; } /** * The SSH public key information associated with a Google account. @@ -153,19 +156,20 @@ export namespace oslogin_v1beta { /** * An expiration time in microseconds since epoch. */ - expirationTimeUsec: string; + expirationTimeUsec?: string; /** * Output only. The SHA-256 fingerprint of the SSH public key. */ - fingerprint: string; + fingerprint?: string; /** * Public key text in SSH format, defined by <a * href="https://www.ietf.org/rfc/rfc4253.txt" * target="_blank">RFC4253</a> section 6.6. */ - key: string; + key?: string; } + export class Resource$Users { root: Oslogin; projects: Resource$Users$Projects; @@ -195,26 +199,39 @@ export namespace oslogin_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getLoginProfile(params?: any, options?: MethodOptions): - AxiosPromise; getLoginProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Getloginprofile, + options?: MethodOptions): AxiosPromise; + getLoginProfile( + params: Params$Resource$Users$Getloginprofile, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getLoginProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Getloginprofile, + callback: BodyResponseCallback): void; + getLoginProfile(callback: BodyResponseCallback): void; + getLoginProfile( + paramsOrCallback?: Params$Resource$Users$Getloginprofile| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Getloginprofile; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Getloginprofile; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -253,29 +270,45 @@ export namespace oslogin_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - importSshPublicKey(params?: any, options?: MethodOptions): + importSshPublicKey( + params?: Params$Resource$Users$Importsshpublickey, + options?: MethodOptions): AxiosPromise; importSshPublicKey( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Importsshpublickey, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + importSshPublicKey( + params: Params$Resource$Users$Importsshpublickey, + callback: BodyResponseCallback): void; importSshPublicKey( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + importSshPublicKey( + paramsOrCallback?: Params$Resource$Users$Importsshpublickey| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Importsshpublickey; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Importsshpublickey; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -298,6 +331,38 @@ export namespace oslogin_v1beta { } } } + + export interface Params$Resource$Users$Getloginprofile { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the user in format `users/{user}`. + */ + name?: string; + } + export interface Params$Resource$Users$Importsshpublickey { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unique ID for the user in format `users/{user}`. + */ + parent?: string; + /** + * The project ID of the Google Cloud Platform project. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$SshPublicKey; + } + export class Resource$Users$Projects { root: Oslogin; constructor(root: Oslogin) { @@ -322,25 +387,38 @@ export namespace oslogin_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Projects$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Projects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Projects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Projects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Projects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Projects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -362,6 +440,21 @@ export namespace oslogin_v1beta { } } + export interface Params$Resource$Users$Projects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A reference to the POSIX account to update. POSIX accounts are identified + * by the project ID they are associated with. A reference to the POSIX + * account is in format `users/{user}/projects/{project}`. + */ + name?: string; + } + + export class Resource$Users$Sshpublickeys { root: Oslogin; constructor(root: Oslogin) { @@ -386,25 +479,38 @@ export namespace oslogin_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sshpublickeys$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Users$Sshpublickeys$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Sshpublickeys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Sshpublickeys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -438,24 +544,35 @@ export namespace oslogin_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Users$Sshpublickeys$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Users$Sshpublickeys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Sshpublickeys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sshpublickeys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -492,26 +609,39 @@ export namespace oslogin_v1beta { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Sshpublickeys$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Users$Sshpublickeys$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Users$Sshpublickeys$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Sshpublickeys$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Sshpublickeys$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Sshpublickeys$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; const parameters = { options: Object.assign( @@ -532,4 +662,52 @@ export namespace oslogin_v1beta { } } } + + export interface Params$Resource$Users$Sshpublickeys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to update. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + } + export interface Params$Resource$Users$Sshpublickeys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to retrieve. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + } + export interface Params$Resource$Users$Sshpublickeys$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fingerprint of the public key to update. Public keys are identified + * by their SHA-256 fingerprint. The fingerprint of the public key is in + * format `users/{user}/sshPublicKeys/{fingerprint}`. + */ + name?: string; + /** + * Mask to control which fields get updated. Updates all if not present. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$SshPublicKey; + } } diff --git a/src/apis/pagespeedonline/v1.ts b/src/apis/pagespeedonline/v1.ts index ab031956901..1f84466da03 100644 --- a/src/apis/pagespeedonline/v1.ts +++ b/src/apis/pagespeedonline/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace pagespeedonline_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * PageSpeed Insights API * @@ -70,56 +73,57 @@ export namespace pagespeedonline_v1 { /** * The captcha verify result */ - captchaResult: string; + captchaResult?: string; /** * Localized PageSpeed results. Contains a ruleResults entry for each * PageSpeed rule instantiated and run by the server. */ - formattedResults: any; + formattedResults?: any; /** * Canonicalized and final URL for the document, after following page * redirects (if any). */ - id: string; + id?: string; /** * List of rules that were specified in the request, but which the server * did not know how to instantiate. */ - invalidRules: string[]; + invalidRules?: string[]; /** * Kind of result. */ - kind: string; + kind?: string; /** * Summary statistics for the page, such as number of JavaScript bytes, * number of HTML bytes, etc. */ - pageStats: any; + pageStats?: any; /** * Response code for the document. 200 indicates a normal page load. 4xx/5xx * indicates an error. */ - responseCode: number; + responseCode?: number; /** * The PageSpeed Score (0-100), which indicates how much faster a page could * be. A high score indicates little room for improvement, while a lower * score indicates more room for improvement. */ - score: number; + score?: number; /** * Base64-encoded screenshot of the page that was analyzed. */ - screenshot: any; + screenshot?: any; /** * Title of the page, as displayed in the browser's title bar. */ - title: string; + title?: string; /** * The version of PageSpeed used to generate these results. */ - version: any; + version?: any; } + export class Resource$Pagespeedapi { root: Pagespeedonline; constructor(root: Pagespeedonline) { @@ -151,26 +155,38 @@ export namespace pagespeedonline_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - runpagespeed(params?: any, options?: MethodOptions): - AxiosPromise; runpagespeed( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pagespeedapi$Runpagespeed, + options?: MethodOptions): AxiosPromise; + runpagespeed( + params: Params$Resource$Pagespeedapi$Runpagespeed, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + runpagespeed( + params: Params$Resource$Pagespeedapi$Runpagespeed, + callback: BodyResponseCallback): void; + runpagespeed(callback: BodyResponseCallback): void; runpagespeed( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pagespeedapi$Runpagespeed| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pagespeedapi$Runpagespeed; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pagespeedapi$Runpagespeed; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -192,4 +208,37 @@ export namespace pagespeedonline_v1 { } } } + + export interface Params$Resource$Pagespeedapi$Runpagespeed { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Indicates if third party resources should be filtered out before + * PageSpeed analysis. + */ + filter_third_party_resources?: boolean; + /** + * The locale used to localize formatted results + */ + locale?: string; + /** + * A PageSpeed rule to run; if none are given, all rules are run + */ + rule?: string; + /** + * Indicates if binary data containing a screenshot should be included + */ + screenshot?: boolean; + /** + * The analysis strategy to use + */ + strategy?: string; + /** + * The URL to fetch and analyze + */ + url?: string; + } } diff --git a/src/apis/pagespeedonline/v2.ts b/src/apis/pagespeedonline/v2.ts index 2ff3da0bec5..9eab5099720 100644 --- a/src/apis/pagespeedonline/v2.ts +++ b/src/apis/pagespeedonline/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace pagespeedonline_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * PageSpeed Insights API * @@ -70,94 +73,95 @@ export namespace pagespeedonline_v2 { /** * List of arguments for the format string. */ - args: any[]; + args?: any[]; /** * A localized format string with {{FOO}} placeholders, where 'FOO' * is the key of the argument whose value should be substituted. For * HYPERLINK arguments, the format string will instead contain {{BEGIN_FOO}} * and {{END_FOO}} for the argument with key 'FOO'. */ - format: string; + format?: string; } export interface Schema$PagespeedApiImageV2 { /** * Image data base64 encoded. */ - data: string; + data?: string; /** * Height of screenshot in pixels. */ - height: number; + height?: number; /** * Unique string key, if any, identifying this image. */ - key: string; + key?: string; /** * Mime type of image data (e.g. "image/jpeg"). */ - mime_type: string; + mime_type?: string; /** * The region of the page that is captured by this image, with dimensions * measured in CSS pixels. */ - page_rect: any; + page_rect?: any; /** * Width of screenshot in pixels. */ - width: number; + width?: number; } export interface Schema$Result { /** * The captcha verify result */ - captchaResult: string; + captchaResult?: string; /** * Localized PageSpeed results. Contains a ruleResults entry for each * PageSpeed rule instantiated and run by the server. */ - formattedResults: any; + formattedResults?: any; /** * Canonicalized and final URL for the document, after following page * redirects (if any). */ - id: string; + id?: string; /** * List of rules that were specified in the request, but which the server * did not know how to instantiate. */ - invalidRules: string[]; + invalidRules?: string[]; /** * Kind of result. */ - kind: string; + kind?: string; /** * Summary statistics for the page, such as number of JavaScript bytes, * number of HTML bytes, etc. */ - pageStats: any; + pageStats?: any; /** * Response code for the document. 200 indicates a normal page load. 4xx/5xx * indicates an error. */ - responseCode: number; + responseCode?: number; /** * A map with one entry for each rule group in these results. */ - ruleGroups: any; + ruleGroups?: any; /** * Base64-encoded screenshot of the page that was analyzed. */ - screenshot: Schema$PagespeedApiImageV2; + screenshot?: Schema$PagespeedApiImageV2; /** * Title of the page, as displayed in the browser's title bar. */ - title: string; + title?: string; /** * The version of PageSpeed used to generate these results. */ - version: any; + version?: any; } + export class Resource$Pagespeedapi { root: Pagespeedonline; constructor(root: Pagespeedonline) { @@ -189,26 +193,38 @@ export namespace pagespeedonline_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - runpagespeed(params?: any, options?: MethodOptions): - AxiosPromise; runpagespeed( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pagespeedapi$Runpagespeed, + options?: MethodOptions): AxiosPromise; + runpagespeed( + params: Params$Resource$Pagespeedapi$Runpagespeed, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + runpagespeed( + params: Params$Resource$Pagespeedapi$Runpagespeed, + callback: BodyResponseCallback): void; + runpagespeed(callback: BodyResponseCallback): void; runpagespeed( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pagespeedapi$Runpagespeed| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pagespeedapi$Runpagespeed; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pagespeedapi$Runpagespeed; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -230,4 +246,37 @@ export namespace pagespeedonline_v2 { } } } + + export interface Params$Resource$Pagespeedapi$Runpagespeed { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Indicates if third party resources should be filtered out before + * PageSpeed analysis. + */ + filter_third_party_resources?: boolean; + /** + * The locale used to localize formatted results + */ + locale?: string; + /** + * A PageSpeed rule to run; if none are given, all rules are run + */ + rule?: string; + /** + * Indicates if binary data containing a screenshot should be included + */ + screenshot?: boolean; + /** + * The analysis strategy to use + */ + strategy?: string; + /** + * The URL to fetch and analyze + */ + url?: string; + } } diff --git a/src/apis/pagespeedonline/v4.ts b/src/apis/pagespeedonline/v4.ts index 85968726545..9d203758e87 100644 --- a/src/apis/pagespeedonline/v4.ts +++ b/src/apis/pagespeedonline/v4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace pagespeedonline_v4 { + export interface Options extends GlobalOptions { version: 'v4'; } + /** * PageSpeed Insights API * @@ -70,99 +73,100 @@ export namespace pagespeedonline_v4 { /** * List of arguments for the format string. */ - args: any[]; + args?: any[]; /** * A localized format string with {{FOO}} placeholders, where 'FOO' * is the key of the argument whose value should be substituted. For * HYPERLINK arguments, the format string will instead contain {{BEGIN_FOO}} * and {{END_FOO}} for the argument with key 'FOO'. */ - format: string; + format?: string; } export interface Schema$PagespeedApiImageV4 { /** * Image data base64 encoded. */ - data: string; + data?: string; /** * Height of screenshot in pixels. */ - height: number; + height?: number; /** * Unique string key, if any, identifying this image. */ - key: string; + key?: string; /** * Mime type of image data (e.g. "image/jpeg"). */ - mime_type: string; - page_rect: any; + mime_type?: string; + page_rect?: any; /** * Width of screenshot in pixels. */ - width: number; + width?: number; } export interface Schema$PagespeedApiPagespeedResponseV4 { /** * The captcha verify result */ - captchaResult: string; + captchaResult?: string; /** * Localized PageSpeed results. Contains a ruleResults entry for each * PageSpeed rule instantiated and run by the server. */ - formattedResults: any; + formattedResults?: any; /** * Canonicalized and final URL for the document, after following page * redirects (if any). */ - id: string; + id?: string; /** * List of rules that were specified in the request, but which the server * did not know how to instantiate. */ - invalidRules: string[]; + invalidRules?: string[]; /** * Kind of result. */ - kind: string; + kind?: string; /** * Metrics of end users' page loading experience. */ - loadingExperience: any; + loadingExperience?: any; /** * Summary statistics for the page, such as number of JavaScript bytes, * number of HTML bytes, etc. */ - pageStats: any; + pageStats?: any; /** * Response code for the document. 200 indicates a normal page load. 4xx/5xx * indicates an error. */ - responseCode: number; + responseCode?: number; /** * A map with one entry for each rule group in these results. */ - ruleGroups: any; + ruleGroups?: any; /** * Base64-encoded screenshot of the page that was analyzed. */ - screenshot: Schema$PagespeedApiImageV4; + screenshot?: Schema$PagespeedApiImageV4; /** * Additional base64-encoded screenshots of the page, in various partial * render states. */ - snapshots: Schema$PagespeedApiImageV4[]; + snapshots?: Schema$PagespeedApiImageV4[]; /** * Title of the page, as displayed in the browser's title bar. */ - title: string; + title?: string; /** * The version of PageSpeed used to generate these results. */ - version: any; + version?: any; } + export class Resource$Pagespeedapi { root: Pagespeedonline; constructor(root: Pagespeedonline) { @@ -197,30 +201,46 @@ export namespace pagespeedonline_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - runpagespeed(params?: any, options?: MethodOptions): + runpagespeed( + params?: Params$Resource$Pagespeedapi$Runpagespeed, + options?: MethodOptions): AxiosPromise; runpagespeed( - params?: any, - options?: MethodOptions| + params: Params$Resource$Pagespeedapi$Runpagespeed, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + runpagespeed( + params: Params$Resource$Pagespeedapi$Runpagespeed, + callback: BodyResponseCallback): + void; runpagespeed( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + runpagespeed( + paramsOrCallback?: Params$Resource$Pagespeedapi$Runpagespeed| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pagespeedapi$Runpagespeed; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pagespeedapi$Runpagespeed; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -244,4 +264,50 @@ export namespace pagespeedonline_v4 { } } } + + export interface Params$Resource$Pagespeedapi$Runpagespeed { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Indicates if third party resources should be filtered out before + * PageSpeed analysis. + */ + filter_third_party_resources?: boolean; + /** + * The locale used to localize formatted results + */ + locale?: string; + /** + * A PageSpeed rule to run; if none are given, all rules are run + */ + rule?: string; + /** + * Indicates if binary data containing a screenshot should be included + */ + screenshot?: boolean; + /** + * Indicates if binary data containing snapshot images should be included + */ + snapshots?: boolean; + /** + * The analysis strategy (desktop or mobile) to use, and desktop is the + * default + */ + strategy?: string; + /** + * The URL to fetch and analyze + */ + url?: string; + /** + * Campaign name for analytics. + */ + utm_campaign?: string; + /** + * Campaign source for analytics. + */ + utm_source?: string; + } } diff --git a/src/apis/partners/v2.ts b/src/apis/partners/v2.ts index 894be82ca81..c648613b55a 100644 --- a/src/apis/partners/v2.ts +++ b/src/apis/partners/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace partners_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Google Partners API * @@ -90,11 +93,11 @@ export namespace partners_v2 { /** * Name of the customer this account represents. */ - customerName: string; + customerName?: string; /** * The AdWords Manager Account id. */ - id: string; + id?: string; } /** * Analytics data for a `Company` within a single day. @@ -103,20 +106,20 @@ export namespace partners_v2 { /** * Instances of users contacting the `Company` on the specified date. */ - contacts: Schema$AnalyticsDataPoint; + contacts?: Schema$AnalyticsDataPoint; /** * Date on which these events occurred. */ - eventDate: Schema$Date; + eventDate?: Schema$Date; /** * Instances of users viewing the `Company` profile on the specified date. */ - profileViews: Schema$AnalyticsDataPoint; + profileViews?: Schema$AnalyticsDataPoint; /** * Instances of users seeing the `Company` in Google Partners Search results * on the specified date. */ - searchViews: Schema$AnalyticsDataPoint; + searchViews?: Schema$AnalyticsDataPoint; } /** * Details of the analytics events for a `Company` within a single day. @@ -126,11 +129,11 @@ export namespace partners_v2 { * Number of times the type of event occurred. Meaning depends on context * (e.g. profile views, contacts, etc.). */ - eventCount: number; + eventCount?: number; /** * Location information of where these events occurred. */ - eventLocations: Schema$LatLng[]; + eventLocations?: Schema$LatLng[]; } /** * Analytics aggregated data for a `Company` for a given date range. @@ -140,17 +143,17 @@ export namespace partners_v2 { * Aggregated number of times users contacted the `Company` for given date * range. */ - contactsCount: number; + contactsCount?: number; /** * Aggregated number of profile views for the `Company` for given date * range. */ - profileViewsCount: number; + profileViewsCount?: number; /** * Aggregated number of times users saw the `Company` in Google Partners * Search results for given date range. */ - searchViewsCount: number; + searchViewsCount?: number; } /** * Available Offers to be distributed. @@ -159,51 +162,51 @@ export namespace partners_v2 { /** * The number of codes for this offer that are available for distribution. */ - available: number; + available?: number; /** * Offer info by country. */ - countryOfferInfos: Schema$CountryOfferInfo[]; + countryOfferInfos?: Schema$CountryOfferInfo[]; /** * Description of the offer. */ - description: string; + description?: string; /** * ID of this offer. */ - id: string; + id?: string; /** * The maximum age of an account [in days] to be eligible. */ - maxAccountAge: number; + maxAccountAge?: number; /** * Name of the offer. */ - name: string; + name?: string; /** * Level of this offer. */ - offerLevel: string; + offerLevel?: string; /** * Type of offer. */ - offerType: string; + offerType?: string; /** * Customers who qualify for this offer. */ - qualifiedCustomer: Schema$OfferCustomer[]; + qualifiedCustomer?: Schema$OfferCustomer[]; /** * Whether or not the list of qualified customers is definitely complete. */ - qualifiedCustomersComplete: boolean; + qualifiedCustomersComplete?: boolean; /** * Should special text be shown on the offers page. */ - showSpecialOfferCopy: boolean; + showSpecialOfferCopy?: boolean; /** * Terms of the offer. */ - terms: string; + terms?: string; } /** * A user's information on a specific certification. @@ -212,23 +215,23 @@ export namespace partners_v2 { /** * Whether this certification has been achieved. */ - achieved: boolean; + achieved?: boolean; /** * The type of certification, the area of expertise. */ - certificationType: string; + certificationType?: string; /** * Date this certification is due to expire. */ - expiration: string; + expiration?: string; /** * The date the user last achieved certification. */ - lastAchieved: string; + lastAchieved?: string; /** * Whether this certification is in the state of warning. */ - warning: boolean; + warning?: boolean; } /** * Status for a Google Partners certification exam. @@ -237,11 +240,11 @@ export namespace partners_v2 { /** * The number of people who have passed the certification exam. */ - numberUsersPass: number; + numberUsersPass?: number; /** * The type of certification exam. */ - type: string; + type?: string; } /** * Google Partners certification status. @@ -250,19 +253,19 @@ export namespace partners_v2 { /** * List of certification exam statuses. */ - examStatuses: Schema$CertificationExamStatus[]; + examStatuses?: Schema$CertificationExamStatus[]; /** * Whether certification is passing. */ - isCertified: boolean; + isCertified?: boolean; /** * The type of the certification. */ - type: string; + type?: string; /** * Number of people who are certified, */ - userCount: number; + userCount?: number; } /** * A company resource in the Google Partners API. Once certified, it qualifies @@ -274,94 +277,94 @@ export namespace partners_v2 { * badges. These are stored as full URLs as entered by the user, but only * the TLD will be used for the actual verification. */ - additionalWebsites: string[]; + additionalWebsites?: string[]; /** * Email domains that allow users with a matching email address to get * auto-approved for associating with this company. */ - autoApprovalEmailDomains: string[]; + autoApprovalEmailDomains?: string[]; /** * Partner badge tier */ - badgeTier: string; + badgeTier?: string; /** * The list of Google Partners certification statuses for the company. */ - certificationStatuses: Schema$CertificationStatus[]; + certificationStatuses?: Schema$CertificationStatus[]; /** * Company type labels listed on the company's profile. */ - companyTypes: string[]; + companyTypes?: string[]; /** * The minimum monthly budget that the company accepts for partner business, * converted to the requested currency code. */ - convertedMinMonthlyBudget: Schema$Money; + convertedMinMonthlyBudget?: Schema$Money; /** * The ID of the company. */ - id: string; + id?: string; /** * Industries the company can help with. */ - industries: string[]; + industries?: string[]; /** * The list of localized info for the company. */ - localizedInfos: Schema$LocalizedCompanyInfo[]; + localizedInfos?: Schema$LocalizedCompanyInfo[]; /** * The list of all company locations. If set, must include the * primary_location in the list. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The name of the company. */ - name: string; + name?: string; /** * The unconverted minimum monthly budget that the company accepts for * partner business. */ - originalMinMonthlyBudget: Schema$Money; + originalMinMonthlyBudget?: Schema$Money; /** * The Primary AdWords Manager Account id. */ - primaryAdwordsManagerAccountId: string; + primaryAdwordsManagerAccountId?: string; /** * The primary language code of the company, as defined by <a * href="https://tools.ietf.org/html/bcp47">BCP 47</a> * (IETF BCP 47, "Tags for Identifying Languages"). */ - primaryLanguageCode: string; + primaryLanguageCode?: string; /** * The primary location of the company. */ - primaryLocation: Schema$Location; + primaryLocation?: Schema$Location; /** * The public viewability status of the company's profile. */ - profileStatus: string; + profileStatus?: string; /** * Basic information from the company's public profile. */ - publicProfile: Schema$PublicProfile; + publicProfile?: Schema$PublicProfile; /** * Information related to the ranking of the company within the list of * companies. */ - ranks: Schema$Rank[]; + ranks?: Schema$Rank[]; /** * Services the company can help with. */ - services: string[]; + services?: string[]; /** * The list of Google Partners specialization statuses for the company. */ - specializationStatus: Schema$SpecializationStatus[]; + specializationStatus?: Schema$SpecializationStatus[]; /** * URL of the company's website. */ - websiteUrl: string; + websiteUrl?: string; } /** * A CompanyRelation resource representing information about a user's @@ -371,80 +374,80 @@ export namespace partners_v2 { /** * The primary address for this company. */ - address: string; + address?: string; /** * Whether the company is a Partner. */ - badgeTier: string; + badgeTier?: string; /** * Indicates if the user is an admin for this company. */ - companyAdmin: boolean; + companyAdmin?: boolean; /** * The ID of the company. There may be no id if this is a pending company.5 */ - companyId: string; + companyId?: string; /** * The timestamp of when affiliation was requested. @OutputOnly */ - creationTime: string; + creationTime?: string; /** * The internal company ID. Only available for a whitelisted set of api * clients. */ - internalCompanyId: string; + internalCompanyId?: string; /** * The flag that indicates if the company is pending verification. */ - isPending: boolean; + isPending?: boolean; /** * A URL to a profile photo, e.g. a G+ profile photo. */ - logoUrl: string; + logoUrl?: string; /** * The AdWords manager account # associated this company. */ - managerAccount: string; + managerAccount?: string; /** * The name (in the company's primary language) for the company. */ - name: string; + name?: string; /** * The phone number for the company's primary address. */ - phoneNumber: string; + phoneNumber?: string; /** * The primary location of the company. */ - primaryAddress: Schema$Location; + primaryAddress?: Schema$Location; /** * The primary country code of the company. */ - primaryCountryCode: string; + primaryCountryCode?: string; /** * The primary language code of the company. */ - primaryLanguageCode: string; + primaryLanguageCode?: string; /** * The timestamp when the user was approved. @OutputOnly */ - resolvedTimestamp: string; + resolvedTimestamp?: string; /** * The segment the company is classified as. */ - segment: string[]; + segment?: string[]; /** * The list of Google Partners specialization statuses for the company. */ - specializationStatus: Schema$SpecializationStatus[]; + specializationStatus?: Schema$SpecializationStatus[]; /** * The state of relationship, in terms of approvals. */ - state: string; + state?: string; /** * The website URL for this company. */ - website: string; + website?: string; } /** * Offer info by country. @@ -453,19 +456,19 @@ export namespace partners_v2 { /** * (localized) Get Y amount for that country's offer. */ - getYAmount: string; + getYAmount?: string; /** * Country code for which offer codes may be requested. */ - offerCountryCode: string; + offerCountryCode?: string; /** * Type of offer country is eligible for. */ - offerType: string; + offerType?: string; /** * (localized) Spend X amount for that country's offer. */ - spendXAmount: string; + spendXAmount?: string; } /** * Request message for CreateLead. @@ -475,17 +478,17 @@ export namespace partners_v2 { * The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED` and * either `email` or `phone_number` must be provided. */ - lead: Schema$Lead; + lead?: Schema$Lead; /** * <a * href="https://www.google.com/recaptcha/">reCaptcha</a> * challenge info. */ - recaptchaChallenge: Schema$RecaptchaChallenge; + recaptchaChallenge?: Schema$RecaptchaChallenge; /** * Current request metadata. */ - requestMetadata: Schema$RequestMetadata; + requestMetadata?: Schema$RequestMetadata; } /** * Response message for CreateLead. @@ -496,17 +499,17 @@ export namespace partners_v2 { * href="https://www.google.com/recaptcha/">reCaptcha</a> * validation. */ - lead: Schema$Lead; + lead?: Schema$Lead; /** * The outcome of <a * href="https://www.google.com/recaptcha/">reCaptcha</a> * validation. */ - recaptchaStatus: string; + recaptchaStatus?: string; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -522,17 +525,17 @@ export namespace partners_v2 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * Debug information about this request. @@ -541,15 +544,15 @@ export namespace partners_v2 { /** * Info about the server that serviced this request. */ - serverInfo: string; + serverInfo?: string; /** * Server-side debug stack trace. */ - serverTraceInfo: string; + serverTraceInfo?: string; /** * URL of the service that handled this request. */ - serviceUrl: string; + serviceUrl?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -566,11 +569,11 @@ export namespace partners_v2 { /** * Data type. */ - key: string; + key?: string; /** * Data values. */ - values: string[]; + values?: string[]; } /** * A user's information on a specific exam. @@ -579,27 +582,27 @@ export namespace partners_v2 { /** * The type of the exam. */ - examType: string; + examType?: string; /** * Date this exam is due to expire. */ - expiration: string; + expiration?: string; /** * The date the user last passed this exam. */ - lastPassed: string; + lastPassed?: string; /** * Whether this exam has been passed and not expired. */ - passed: boolean; + passed?: boolean; /** * The date the user last taken this exam. */ - taken: string; + taken?: string; /** * Whether this exam is in the state of warning. */ - warning: boolean; + warning?: boolean; } /** * Response message for GetCompany. @@ -608,11 +611,11 @@ export namespace partners_v2 { /** * The company. */ - company: Schema$Company; + company?: Schema$Company; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Response message for GetPartnersStatus. @@ -621,7 +624,7 @@ export namespace partners_v2 { /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Historical information about a Google Partners Offer. @@ -630,52 +633,52 @@ export namespace partners_v2 { /** * Client's AdWords page URL. */ - adwordsUrl: string; + adwordsUrl?: string; /** * Email address for client. */ - clientEmail: string; + clientEmail?: string; /** * ID of client. */ - clientId: string; + clientId?: string; /** * Name of the client. */ - clientName: string; + clientName?: string; /** * Time offer was first created. */ - creationTime: string; + creationTime?: string; /** * Time this offer expires. */ - expirationTime: string; + expirationTime?: string; /** * Time last action was taken. */ - lastModifiedTime: string; + lastModifiedTime?: string; /** * Offer code. */ - offerCode: string; + offerCode?: string; /** * Country Code for the offer country. */ - offerCountryCode: string; + offerCountryCode?: string; /** * Type of offer. */ - offerType: string; + offerType?: string; /** * Name (First + Last) of the partners user to whom the incentive is * allocated. */ - senderName: string; + senderName?: string; /** * Status of the offer. */ - status: string; + status?: string; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -688,11 +691,11 @@ export namespace partners_v2 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * A lead resource that represents an advertiser contact for a `Company`. @@ -703,65 +706,65 @@ export namespace partners_v2 { /** * The AdWords Customer ID of the lead. */ - adwordsCustomerId: string; + adwordsCustomerId?: string; /** * Comments lead source gave. */ - comments: string; + comments?: string; /** * Timestamp of when this lead was created. */ - createTime: string; + createTime?: string; /** * Email address of lead source. */ - email: string; + email?: string; /** * Last name of lead source. */ - familyName: string; + familyName?: string; /** * First name of lead source. */ - givenName: string; + givenName?: string; /** * List of reasons for using Google Partner Search and creating a lead. */ - gpsMotivations: string[]; + gpsMotivations?: string[]; /** * ID of the lead. */ - id: string; + id?: string; /** * Language code of the lead's language preference, as defined by <a * href="https://tools.ietf.org/html/bcp47">BCP 47</a> * (IETF BCP 47, "Tags for Identifying Languages"). */ - languageCode: string; + languageCode?: string; /** * Whether or not the lead signed up for marketing emails */ - marketingOptIn: boolean; + marketingOptIn?: boolean; /** * The minimum monthly budget lead source is willing to spend. */ - minMonthlyBudget: Schema$Money; + minMonthlyBudget?: Schema$Money; /** * Phone number of lead source. */ - phoneNumber: string; + phoneNumber?: string; /** * The lead's state in relation to the company. */ - state: string; + state?: string; /** * Type of lead. */ - type: string; + type?: string; /** * Website URL of lead source. */ - websiteUrl: string; + websiteUrl?: string; } /** * Response message for ListAnalytics. @@ -770,21 +773,21 @@ export namespace partners_v2 { /** * The list of analytics. Sorted in ascending order of Analytics.event_date. */ - analytics: Schema$Analytics[]; + analytics?: Schema$Analytics[]; /** * Aggregated information across the response's analytics. */ - analyticsSummary: Schema$AnalyticsSummary; + analyticsSummary?: Schema$AnalyticsSummary; /** * A token to retrieve next page of results. Pass this value in the * `ListAnalyticsRequest.page_token` field in the subsequent call to * ListAnalytics to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Response message for ListCompanies. @@ -793,17 +796,17 @@ export namespace partners_v2 { /** * The list of companies. */ - companies: Schema$Company[]; + companies?: Schema$Company[]; /** * A token to retrieve next page of results. Pass this value in the * `ListCompaniesRequest.page_token` field in the subsequent call to * ListCompanies to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Response message for ListLeads. @@ -812,21 +815,21 @@ export namespace partners_v2 { /** * The list of leads. */ - leads: Schema$Lead[]; + leads?: Schema$Lead[]; /** * A token to retrieve next page of results. Pass this value in the * `ListLeadsRequest.page_token` field in the subsequent call to ListLeads * to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; /** * The total count of leads for the given company. */ - totalSize: number; + totalSize?: number; } /** * Response for ListOfferHistory. @@ -835,28 +838,28 @@ export namespace partners_v2 { /** * True if the user has the option to show entire company history. */ - canShowEntireCompany: boolean; + canShowEntireCompany?: boolean; /** * Supply this token in a ListOffersHistoryRequest to retrieve the next * page. */ - nextPageToken: string; + nextPageToken?: string; /** * Historical offers meeting request. */ - offers: Schema$HistoricalOffer[]; + offers?: Schema$HistoricalOffer[]; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; /** * True if this response is showing entire company history. */ - showingEntireCompany: boolean; + showingEntireCompany?: boolean; /** * Number of results across all pages. */ - totalResults: number; + totalResults?: number; } /** * Response for ListOffer. @@ -865,15 +868,15 @@ export namespace partners_v2 { /** * Available Offers to be distributed. */ - availableOffers: Schema$AvailableOffer[]; + availableOffers?: Schema$AvailableOffer[]; /** * Reason why no Offers are available. */ - noOfferReason: string; + noOfferReason?: string; /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Response message for ListUserStates. @@ -882,11 +885,11 @@ export namespace partners_v2 { /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; /** * User's states. */ - userStates: string[]; + userStates?: string[]; } /** * The localized company information. @@ -895,22 +898,22 @@ export namespace partners_v2 { /** * List of country codes for the localized company info. */ - countryCodes: string[]; + countryCodes?: string[]; /** * Localized display name. */ - displayName: string; + displayName?: string; /** * Language code of the localized company info, as defined by <a * href="https://tools.ietf.org/html/bcp47">BCP 47</a> * (IETF BCP 47, "Tags for Identifying Languages"). */ - languageCode: string; + languageCode?: string; /** * Localized brief description that the company uses to advertise * themselves. */ - overview: string; + overview?: string; } /** * A location with address and geographic coordinates. May optionally contain @@ -920,46 +923,46 @@ export namespace partners_v2 { /** * The single string version of the address. */ - address: string; + address?: string; /** * The following address lines represent the most specific part of any * address. */ - addressLine: string[]; + addressLine?: string[]; /** * Top-level administrative subdivision of this country. */ - administrativeArea: string; + administrativeArea?: string; /** * Dependent locality or sublocality. Used for UK dependent localities, or * neighborhoods or boroughs in other locations. */ - dependentLocality: string; + dependentLocality?: string; /** * Language code of the address. Should be in BCP 47 format. */ - languageCode: string; + languageCode?: string; /** * The latitude and longitude of the location, in degrees. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; /** * Generally refers to the city/town portion of an address. */ - locality: string; + locality?: string; /** * Values are frequently alphanumeric. */ - postalCode: string; + postalCode?: string; /** * CLDR (Common Locale Data Repository) region code . */ - regionCode: string; + regionCode?: string; /** * Use of this code is very country-specific, but will refer to a secondary * classification code for sorting mail. */ - sortingCode: string; + sortingCode?: string; } /** * Request message for LogClientMessage. @@ -969,19 +972,19 @@ export namespace partners_v2 { * Map of client info, such as URL, browser navigator, browser platform, * etc. */ - clientInfo: any; + clientInfo?: any; /** * Details about the client message. */ - details: string; + details?: string; /** * Message level of client message. */ - level: string; + level?: string; /** * Current request metadata. */ - requestMetadata: Schema$RequestMetadata; + requestMetadata?: Schema$RequestMetadata; } /** * Response message for LogClientMessage. @@ -990,7 +993,7 @@ export namespace partners_v2 { /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Request message for LogUserEvent. @@ -999,31 +1002,31 @@ export namespace partners_v2 { /** * The action that occurred. */ - eventAction: string; + eventAction?: string; /** * The category the action belongs to. */ - eventCategory: string; + eventCategory?: string; /** * List of event data for the event. */ - eventDatas: Schema$EventData[]; + eventDatas?: Schema$EventData[]; /** * The scope of the event. */ - eventScope: string; + eventScope?: string; /** * Advertiser lead information. */ - lead: Schema$Lead; + lead?: Schema$Lead; /** * Current request metadata. */ - requestMetadata: Schema$RequestMetadata; + requestMetadata?: Schema$RequestMetadata; /** * The URL where the event occurred. */ - url: string; + url?: string; } /** * Response message for LogUserEvent. @@ -1032,7 +1035,7 @@ export namespace partners_v2 { /** * Current response metadata. */ - responseMetadata: Schema$ResponseMetadata; + responseMetadata?: Schema$ResponseMetadata; } /** * Represents an amount of money with its currency type. @@ -1041,7 +1044,7 @@ export namespace partners_v2 { /** * The 3-letter currency code defined in ISO 4217. */ - currencyCode: string; + currencyCode?: string; /** * Number of nano (10^-9) units of the amount. The value must be between * -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` @@ -1050,12 +1053,12 @@ export namespace partners_v2 { * zero. For example $-1.75 is represented as `units`=-1 and * `nanos`=-750,000,000. */ - nanos: number; + nanos?: number; /** * The whole units of the amount. For example if `currencyCode` is * `"USD"`, then 1 unit is one US dollar. */ - units: string; + units?: string; } /** * Customers qualified for an offer. @@ -1064,39 +1067,39 @@ export namespace partners_v2 { /** * URL to the customer's AdWords page. */ - adwordsUrl: string; + adwordsUrl?: string; /** * Country code of the customer. */ - countryCode: string; + countryCode?: string; /** * Time the customer was created. */ - creationTime: string; + creationTime?: string; /** * Days the customer is still eligible. */ - eligibilityDaysLeft: number; + eligibilityDaysLeft?: number; /** * External CID for the customer. */ - externalCid: string; + externalCid?: string; /** * Formatted Get Y amount with currency code. */ - getYAmount: string; + getYAmount?: string; /** * Name of the customer. */ - name: string; + name?: string; /** * Type of the offer */ - offerType: string; + offerType?: string; /** * Formatted Spend X amount with currency code. */ - spendXAmount: string; + spendXAmount?: string; } /** * A set of opt-ins for a user. @@ -1106,24 +1109,24 @@ export namespace partners_v2 { * An opt-in about receiving email from Partners marketing teams. Includes * member-only events and special promotional offers for Google products. */ - marketComm: boolean; + marketComm?: boolean; /** * An opt-in about receiving email with customized AdWords campaign * management tips. */ - performanceSuggestions: boolean; + performanceSuggestions?: boolean; /** * An opt-in to allow recieivng phone calls about their Partners account. */ - phoneContact: boolean; + phoneContact?: boolean; /** * An opt-in to receive special promotional gifts and material in the mail. */ - physicalMail: boolean; + physicalMail?: boolean; /** * An opt-in about receiving email regarding new features and products. */ - specialOffers: boolean; + specialOffers?: boolean; } /** * Basic information from a public profile. @@ -1133,24 +1136,24 @@ export namespace partners_v2 { * The URL to the main display image of the public profile. Being * deprecated. */ - displayImageUrl: string; + displayImageUrl?: string; /** * The display name of the public profile. */ - displayName: string; + displayName?: string; /** * The ID which can be used to retrieve more details about the public * profile. */ - id: string; + id?: string; /** * The URL to the main profile image of the public profile. */ - profileImage: string; + profileImage?: string; /** * The URL of the public profile. */ - url: string; + url?: string; } /** * Information related to ranking of results. @@ -1159,11 +1162,11 @@ export namespace partners_v2 { /** * The type of rank. */ - type: string; + type?: string; /** * The numerical value of the rank. */ - value: number; + value?: number; } /** * <a @@ -1174,11 +1177,11 @@ export namespace partners_v2 { /** * The ID of the reCaptcha challenge. */ - id: string; + id?: string; /** * The response to the reCaptcha challenge. */ - response: string; + response?: string; } /** * Common data that is in each API request. @@ -1187,24 +1190,24 @@ export namespace partners_v2 { /** * Experiment IDs the current request belongs to. */ - experimentIds: string[]; + experimentIds?: string[]; /** * Locale to use for the current request. */ - locale: string; + locale?: string; /** * Google Partners session ID. */ - partnersSessionId: string; + partnersSessionId?: string; /** * Source of traffic for the current request. */ - trafficSource: Schema$TrafficSource; + trafficSource?: Schema$TrafficSource; /** * Values to use instead of the user's respective defaults for the * current request. These are only honored by whitelisted products. */ - userOverrides: Schema$UserOverrides; + userOverrides?: Schema$UserOverrides; } /** * Common data that is in each API response. @@ -1213,7 +1216,7 @@ export namespace partners_v2 { /** * Debug information about this request. */ - debugInfo: Schema$DebugInfo; + debugInfo?: Schema$DebugInfo; } /** * Agency specialization status @@ -1222,11 +1225,11 @@ export namespace partners_v2 { /** * The specialization this status is for. */ - badgeSpecialization: string; + badgeSpecialization?: string; /** * State of agency specialization. */ - badgeSpecializationState: string; + badgeSpecializationState?: string; } /** * Source of traffic for the current request. @@ -1236,13 +1239,13 @@ export namespace partners_v2 { * Identifier to indicate where the traffic comes from. An identifier has * multiple letters created by a team which redirected the traffic to us. */ - trafficSourceId: string; + trafficSourceId?: string; /** * Second level identifier to indicate where the traffic comes from. An * identifier has multiple letters created by a team which redirected the * traffic to us. */ - trafficSubId: string; + trafficSubId?: string; } /** * A resource representing a user of the Partners platform. @@ -1252,63 +1255,63 @@ export namespace partners_v2 { * Whether or not the user has opted to share their Academy for Ads info * with Google Partners. */ - afaInfoShared: boolean; + afaInfoShared?: boolean; /** * This is the list of AdWords Manager Accounts the user has edit access to. * If the user has edit access to multiple accounts, the user can choose the * preferred account and we use this when a personal account is needed. Can * be empty meaning the user has access to no accounts. @OutputOnly */ - availableAdwordsManagerAccounts: Schema$AdWordsManagerAccountInfo[]; + availableAdwordsManagerAccounts?: Schema$AdWordsManagerAccountInfo[]; /** * The list of achieved certifications. These are calculated based on exam * results and other requirements. @OutputOnly */ - certificationStatus: Schema$Certification[]; + certificationStatus?: Schema$Certification[]; /** * The company that the user is associated with. If not present, the user is * not associated with any company. */ - company: Schema$CompanyRelation; + company?: Schema$CompanyRelation; /** * The email address used by the user used for company verification. * @OutputOnly */ - companyVerificationEmail: string; + companyVerificationEmail?: string; /** * The list of exams the user ever taken. For each type of exam, only one * entry is listed. */ - examStatus: Schema$ExamStatus[]; + examStatus?: Schema$ExamStatus[]; /** * The ID of the user. */ - id: string; + id?: string; /** * The internal user ID. Only available for a whitelisted set of api * clients. */ - internalId: string; + internalId?: string; /** * The most recent time the user interacted with the Partners site. * @OutputOnly */ - lastAccessTime: string; + lastAccessTime?: string; /** * The list of emails the user has access to/can select as primary. * @OutputOnly */ - primaryEmails: string[]; + primaryEmails?: string[]; /** * The profile information of a Partners user, contains all the directly * editable user information. */ - profile: Schema$UserProfile; + profile?: Schema$UserProfile; /** * Information about a user's external public profile outside Google * Partners. */ - publicProfile: Schema$PublicProfile; + publicProfile?: Schema$PublicProfile; } /** * Values to use instead of the user's respective defaults. These are only @@ -1318,11 +1321,11 @@ export namespace partners_v2 { /** * IP address to use instead of the user's geo-located IP address. */ - ipAddress: string; + ipAddress?: string; /** * Logged-in user ID to impersonate instead of the user's ID. */ - userId: string; + userId?: string; } /** * The profile information of a Partners user. @@ -1331,67 +1334,68 @@ export namespace partners_v2 { /** * The user's mailing address, contains multiple fields. */ - address: Schema$Location; + address?: Schema$Location; /** * If the user has edit access to multiple accounts, the user can choose the * preferred account and it is used when a personal account is needed. Can * be empty. */ - adwordsManagerAccount: string; + adwordsManagerAccount?: string; /** * A list of ids representing which channels the user selected they were in. */ - channels: string[]; + channels?: string[]; /** * The email address the user has selected on the Partners site as primary. */ - emailAddress: string; + emailAddress?: string; /** * The list of opt-ins for the user, related to communication preferences. */ - emailOptIns: Schema$OptIns; + emailOptIns?: Schema$OptIns; /** * The user's family name. */ - familyName: string; + familyName?: string; /** * The user's given name. */ - givenName: string; + givenName?: string; /** * A list of ids representing which industries the user selected. */ - industries: string[]; + industries?: string[]; /** * A list of ids represnting which job categories the user selected. */ - jobFunctions: string[]; + jobFunctions?: string[]; /** * The list of languages this user understands. */ - languages: string[]; + languages?: string[]; /** * A list of ids representing which markets the user was interested in. */ - markets: string[]; + markets?: string[]; /** * Whether or not to migrate the user's exam data to Academy for Ads. */ - migrateToAfa: boolean; + migrateToAfa?: boolean; /** * The user's phone number. */ - phoneNumber: string; + phoneNumber?: string; /** * The user's primary country, an ISO 2-character code. */ - primaryCountryCode: string; + primaryCountryCode?: string; /** * Whether the user's public profile is visible to anyone with the URL. */ - profilePublic: boolean; + profilePublic?: boolean; } + export class Resource$Analytics { root: Partners; constructor(root: Partners) { @@ -1425,28 +1429,38 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Analytics$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Analytics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Analytics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Analytics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Analytics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Analytics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1468,6 +1482,64 @@ export namespace partners_v2 { } } + export interface Params$Resource$Analytics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requested page size. Server may return fewer analytics than requested. If + * unspecified or set to 0, default value is 30. Specifies the number of + * days in the date range when querying analytics. The `page_token` + * represents the end date of the date range and the start date is + * calculated using the `page_size` as the number of days BEFORE the end + * date. Must be a non-negative integer. + */ + pageSize?: number; + /** + * A token identifying a page of results that the server returns. Typically, + * this is the value of `ListAnalyticsResponse.next_page_token` returned + * from the previous call to ListAnalytics. Will be a date string in + * `YYYY-MM-DD` format representing the end date of the date range of + * results to return. If unspecified or set to "", default value is the + * current date. + */ + pageToken?: string; + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + } + + export class Resource$Clientmessages { root: Partners; constructor(root: Partners) { @@ -1494,24 +1566,35 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - log(params?: any, + log(params?: Params$Resource$Clientmessages$Log, options?: MethodOptions): AxiosPromise; - log(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - log(params?: any, - options?: MethodOptions|BodyResponseCallback, + log(params: Params$Resource$Clientmessages$Log, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + log(params: Params$Resource$Clientmessages$Log, + callback: BodyResponseCallback): void; + log(callback: BodyResponseCallback): void; + log(paramsOrCallback?: Params$Resource$Clientmessages$Log| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Clientmessages$Log; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Clientmessages$Log; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1534,6 +1617,19 @@ export namespace partners_v2 { } } + export interface Params$Resource$Clientmessages$Log { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$LogMessageRequest; + } + + export class Resource$Companies { root: Partners; leads: Resource$Companies$Leads; @@ -1571,24 +1667,34 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Companies$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Companies$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Companies$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Companies$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Companies$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Companies$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1647,28 +1753,38 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Companies$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Companies$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Companies$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Companies$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Companies$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Companies$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1689,6 +1805,210 @@ export namespace partners_v2 { } } } + + export interface Params$Resource$Companies$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The address to use for sorting the company's addresses by proximity. If + * not given, the geo-located address of the request is used. Used when + * order_by is set. + */ + address?: string; + /** + * The ID of the company to retrieve. + */ + companyId?: string; + /** + * If the company's budget is in a different currency code than this one, + * then the converted budget is converted to this currency code. + */ + currencyCode?: string; + /** + * How to order addresses within the returned company. Currently, only + * `address` and `address desc` is supported which will sorted by closest to + * farthest in distance from given address and farthest to closest distance + * from given address respectively. + */ + orderBy?: string; + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * The view of `Company` resource to be returned. This must not be + * `COMPANY_VIEW_UNSPECIFIED`. + */ + view?: string; + } + export interface Params$Resource$Companies$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The address to use when searching for companies. If not given, the + * geo-located address of the request is used. + */ + address?: string; + /** + * Company name to search for. + */ + companyName?: string; + /** + * List of reasons for using Google Partner Search to get companies. + */ + gpsMotivations?: string; + /** + * List of industries the company can help with. + */ + industries?: string; + /** + * List of language codes that company can support. Only primary language + * subtags are accepted as defined by BCP 47 (IETF BCP 47, "Tags + * for Identifying Languages"). + */ + languageCodes?: string; + /** + * The 3-letter currency code defined in ISO 4217. + */ + 'maxMonthlyBudget.currencyCode'?: string; + /** + * Number of nano (10^-9) units of the amount. The value must be between + * -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` + * must be positive or zero. If `units` is zero, `nanos` can be positive, + * zero, or negative. If `units` is negative, `nanos` must be negative or + * zero. For example $-1.75 is represented as `units`=-1 and + * `nanos`=-750,000,000. + */ + 'maxMonthlyBudget.nanos'?: number; + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, + * then 1 unit is one US dollar. + */ + 'maxMonthlyBudget.units'?: string; + /** + * The 3-letter currency code defined in ISO 4217. + */ + 'minMonthlyBudget.currencyCode'?: string; + /** + * Number of nano (10^-9) units of the amount. The value must be between + * -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` + * must be positive or zero. If `units` is zero, `nanos` can be positive, + * zero, or negative. If `units` is negative, `nanos` must be negative or + * zero. For example $-1.75 is represented as `units`=-1 and + * `nanos`=-750,000,000. + */ + 'minMonthlyBudget.nanos'?: number; + /** + * The whole units of the amount. For example if `currencyCode` is `"USD"`, + * then 1 unit is one US dollar. + */ + 'minMonthlyBudget.units'?: string; + /** + * How to order addresses within the returned companies. Currently, only + * `address` and `address desc` is supported which will sorted by closest to + * farthest in distance from given address and farthest to closest distance + * from given address respectively. + */ + orderBy?: string; + /** + * Requested page size. Server may return fewer companies than requested. If + * unspecified, server picks an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results that the server returns. Typically, + * this is the value of `ListCompaniesResponse.next_page_token` returned + * from the previous call to ListCompanies. + */ + pageToken?: string; + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * List of services that the returned agencies should provide. If this is + * not empty, any returned agency must have at least one of these services, + * or one of the specializations in the "specializations" field. + */ + services?: string; + /** + * List of specializations that the returned agencies should provide. If + * this is not empty, any returned agency must have at least one of these + * specializations, or one of the services in the "services" field. + */ + specializations?: string; + /** + * The view of the `Company` resource to be returned. This must not be + * `COMPANY_VIEW_UNSPECIFIED`. + */ + view?: string; + /** + * Website URL that will help to find a better matched company. . + */ + websiteUrl?: string; + } + export class Resource$Companies$Leads { root: Partners; constructor(root: Partners) { @@ -1714,26 +2034,39 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Companies$Leads$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Companies$Leads$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Companies$Leads$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Companies$Leads$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Companies$Leads$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Companies$Leads$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1756,6 +2089,23 @@ export namespace partners_v2 { } } + export interface Params$Resource$Companies$Leads$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the company to contact. + */ + companyId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateLeadRequest; + } + + export class Resource$Leads { root: Partners; @@ -1791,26 +2141,37 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Leads$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Leads$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Leads$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Leads$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Leads$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Leads$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1832,6 +2193,62 @@ export namespace partners_v2 { } } + export interface Params$Resource$Leads$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * How to order Leads. Currently, only `create_time` and `create_time desc` + * are supported + */ + orderBy?: string; + /** + * Requested page size. Server may return fewer leads than requested. If + * unspecified, server picks an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results that the server returns. Typically, + * this is the value of `ListLeadsResponse.next_page_token` returned from + * the previous call to ListLeads. + */ + pageToken?: string; + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + } + + export class Resource$Offers { root: Partners; history: Resource$Offers$History; @@ -1864,26 +2281,37 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Offers$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Offers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Offers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Offers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Offers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Offers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1904,27 +2332,67 @@ export namespace partners_v2 { } } } - export class Resource$Offers$History { - root: Partners; - constructor(root: Partners) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Offers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * partners.offers.history.list - * @desc Lists the Historical Offers for the current user (or user's entire - * company) - * @alias partners.offers.history.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {boolean=} params.entireCompany if true, show history for the entire company. Requires user to be admin. + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + } + + export class Resource$Offers$History { + root: Partners; + constructor(root: Partners) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * partners.offers.history.list + * @desc Lists the Historical Offers for the current user (or user's entire + * company) + * @alias partners.offers.history.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.entireCompany if true, show history for the entire company. Requires user to be admin. * @param {string=} params.orderBy Comma-separated list of fields to order by, e.g.: "foo,bar,baz". Use "foo desc" to sort descending. List of valid field names is: name, offer_code, expiration_time, status, last_modified_time, sender_name, creation_time, country_code, offer_type. * @param {integer=} params.pageSize Maximum number of rows to return per page. * @param {string=} params.pageToken Token to retrieve a specific page. @@ -1939,29 +2407,40 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Offers$History$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Offers$History$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Offers$History$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Offers$History$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Offers$History$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Offers$History$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -1985,6 +2464,65 @@ export namespace partners_v2 { } } + export interface Params$Resource$Offers$History$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * if true, show history for the entire company. Requires user to be admin. + */ + entireCompany?: boolean; + /** + * Comma-separated list of fields to order by, e.g.: "foo,bar,baz". Use "foo + * desc" to sort descending. List of valid field names is: name, offer_code, + * expiration_time, status, last_modified_time, sender_name, + * creation_time, country_code, offer_type. + */ + orderBy?: string; + /** + * Maximum number of rows to return per page. + */ + pageSize?: number; + /** + * Token to retrieve a specific page. + */ + pageToken?: string; + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + } + + export class Resource$Userevents { root: Partners; @@ -2010,26 +2548,35 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - log(params?: any, + log(params?: Params$Resource$Userevents$Log, options?: MethodOptions): AxiosPromise; - log(params?: any, - options?: MethodOptions| + log(params: Params$Resource$Userevents$Log, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - log(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + log(params: Params$Resource$Userevents$Log, + callback: BodyResponseCallback): void; + log(callback: BodyResponseCallback): void; + log(paramsOrCallback?: Params$Resource$Userevents$Log| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userevents$Log; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userevents$Log; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2052,6 +2599,19 @@ export namespace partners_v2 { } } + export interface Params$Resource$Userevents$Log { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$LogUserEventRequest; + } + + export class Resource$Users { root: Partners; constructor(root: Partners) { @@ -2085,26 +2645,40 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createCompanyRelation(params?: any, options?: MethodOptions): - AxiosPromise; createCompanyRelation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Createcompanyrelation, + options?: MethodOptions): AxiosPromise; + createCompanyRelation( + params: Params$Resource$Users$Createcompanyrelation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createCompanyRelation( + params: Params$Resource$Users$Createcompanyrelation, + callback: BodyResponseCallback): void; createCompanyRelation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createCompanyRelation( + paramsOrCallback?: Params$Resource$Users$Createcompanyrelation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Createcompanyrelation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Createcompanyrelation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2147,26 +2721,38 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteCompanyRelation(params?: any, options?: MethodOptions): - AxiosPromise; deleteCompanyRelation( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Deletecompanyrelation, + options?: MethodOptions): AxiosPromise; + deleteCompanyRelation( + params: Params$Resource$Users$Deletecompanyrelation, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; deleteCompanyRelation( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Deletecompanyrelation, + callback: BodyResponseCallback): void; + deleteCompanyRelation(callback: BodyResponseCallback): void; + deleteCompanyRelation( + paramsOrCallback?: Params$Resource$Users$Deletecompanyrelation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Users$Deletecompanyrelation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Deletecompanyrelation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2209,21 +2795,33 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Users$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Users$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Users$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Users$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2266,26 +2864,39 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateProfile(params?: any, options?: MethodOptions): - AxiosPromise; updateProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Users$Updateprofile, + options?: MethodOptions): AxiosPromise; updateProfile( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Updateprofile, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateProfile( + params: Params$Resource$Users$Updateprofile, + callback: BodyResponseCallback): void; + updateProfile(callback: BodyResponseCallback): void; + updateProfile( + paramsOrCallback?: Params$Resource$Users$Updateprofile| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Updateprofile; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Updateprofile; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2308,6 +2919,187 @@ export namespace partners_v2 { } } + export interface Params$Resource$Users$Createcompanyrelation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * The ID of the user. Can be set to me to mean the currently + * authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$CompanyRelation; + } + export interface Params$Resource$Users$Deletecompanyrelation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * The ID of the user. Can be set to me to mean the currently + * authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Users$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * Identifier of the user. Can be set to me to mean the + * currently authenticated user. + */ + userId?: string; + /** + * Specifies what parts of the user information to return. + */ + userView?: string; + } + export interface Params$Resource$Users$Updateprofile { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * Request body metadata + */ + resource?: Schema$UserProfile; + } + + export class Resource$Userstates { root: Partners; constructor(root: Partners) { @@ -2338,28 +3130,38 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Userstates$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Userstates$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Userstates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Userstates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Userstates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Userstates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2381,6 +3183,46 @@ export namespace partners_v2 { } } + export interface Params$Resource$Userstates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + } + + export class Resource$V2 { root: Partners; constructor(root: Partners) { @@ -2412,29 +3254,41 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getPartnersstatus(params?: any, options?: MethodOptions): + getPartnersstatus( + params?: Params$Resource$V2$Getpartnersstatus, options?: MethodOptions): AxiosPromise; getPartnersstatus( - params?: any, - options?: MethodOptions| + params: Params$Resource$V2$Getpartnersstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + getPartnersstatus( + params: Params$Resource$V2$Getpartnersstatus, + callback: BodyResponseCallback): void; getPartnersstatus( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + getPartnersstatus( + paramsOrCallback?: Params$Resource$V2$Getpartnersstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$V2$Getpartnersstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V2$Getpartnersstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2479,26 +3333,38 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateCompanies(params?: any, options?: MethodOptions): - AxiosPromise; updateCompanies( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$V2$Updatecompanies, + options?: MethodOptions): AxiosPromise; updateCompanies( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$V2$Updatecompanies, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateCompanies( + params: Params$Resource$V2$Updatecompanies, + callback: BodyResponseCallback): void; + updateCompanies(callback: BodyResponseCallback): void; + updateCompanies( + paramsOrCallback?: Params$Resource$V2$Updatecompanies| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$V2$Updatecompanies; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V2$Updatecompanies; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2540,24 +3406,37 @@ export namespace partners_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateLeads(params?: any, options?: MethodOptions): - AxiosPromise; updateLeads( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$V2$Updateleads, + options?: MethodOptions): AxiosPromise; updateLeads( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$V2$Updateleads, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateLeads( + params: Params$Resource$V2$Updateleads, + callback: BodyResponseCallback): void; + updateLeads(callback: BodyResponseCallback): void; + updateLeads( + paramsOrCallback?: Params$Resource$V2$Updateleads| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$V2$Updateleads; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V2$Updateleads; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://partners.googleapis.com/'; const parameters = { options: Object.assign( @@ -2578,4 +3457,138 @@ export namespace partners_v2 { } } } + + export interface Params$Resource$V2$Getpartnersstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + } + export interface Params$Resource$V2$Updatecompanies { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * Standard field mask for the set of fields to be updated. Required with at + * least 1 value in FieldMask's paths. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Company; + } + export interface Params$Resource$V2$Updateleads { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Experiment IDs the current request belongs to. + */ + 'requestMetadata.experimentIds'?: string; + /** + * Locale to use for the current request. + */ + 'requestMetadata.locale'?: string; + /** + * Google Partners session ID. + */ + 'requestMetadata.partnersSessionId'?: string; + /** + * Identifier to indicate where the traffic comes from. An identifier has + * multiple letters created by a team which redirected the traffic to us. + */ + 'requestMetadata.trafficSource.trafficSourceId'?: string; + /** + * Second level identifier to indicate where the traffic comes from. An + * identifier has multiple letters created by a team which redirected the + * traffic to us. + */ + 'requestMetadata.trafficSource.trafficSubId'?: string; + /** + * IP address to use instead of the user's geo-located IP address. + */ + 'requestMetadata.userOverrides.ipAddress'?: string; + /** + * Logged-in user ID to impersonate instead of the user's ID. + */ + 'requestMetadata.userOverrides.userId'?: string; + /** + * Standard field mask for the set of fields to be updated. Required with at + * least 1 value in FieldMask's paths. Only `state` and + * `adwords_customer_id` are currently supported. + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Lead; + } } diff --git a/src/apis/people/v1.ts b/src/apis/people/v1.ts index 97ea7160cac..98e9d27873a 100644 --- a/src/apis/people/v1.ts +++ b/src/apis/people/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace people_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * People API * @@ -75,56 +78,56 @@ export namespace people_v1 { /** * The city of the address. */ - city: string; + city?: string; /** * The country of the address. */ - country: string; + country?: string; /** * The [ISO 3166-1 alpha-2](http://www.iso.org/iso/country_codes.htm) * country code of the address. */ - countryCode: string; + countryCode?: string; /** * The extended address of the address; for example, the apartment number. */ - extendedAddress: string; + extendedAddress?: string; /** * The read-only type of the address translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * The unstructured value of the address. If this is not set by the user it * will be automatically constructed from structured values. */ - formattedValue: string; + formattedValue?: string; /** * Metadata about the address. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The P.O. box of the address. */ - poBox: string; + poBox?: string; /** * The postal code of the address. */ - postalCode: string; + postalCode?: string; /** * The region of the address; for example, the state or province. */ - region: string; + region?: string; /** * The street address. */ - streetAddress: string; + streetAddress?: string; /** * The type of the address. The type can be custom or predefined. Possible * values include, but are not limited to, the following: * `home` * `work` * * `other` */ - type: string; + type?: string; } /** * A person's age range. @@ -133,11 +136,11 @@ export namespace people_v1 { /** * The age range. */ - ageRange: string; + ageRange?: string; /** * Metadata about the age range. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; } /** * The response to a batch get contact groups request. @@ -146,7 +149,7 @@ export namespace people_v1 { /** * The list of responses for each requested contact group resource. */ - responses: Schema$ContactGroupResponse[]; + responses?: Schema$ContactGroupResponse[]; } /** * A person's short biography. @@ -155,15 +158,15 @@ export namespace people_v1 { /** * The content type of the biography. */ - contentType: string; + contentType?: string; /** * Metadata about the biography. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The short biography. */ - value: string; + value?: string; } /** * A person's birthday. At least one of the `date` and `text` fields are @@ -174,15 +177,15 @@ export namespace people_v1 { /** * The date of the birthday. */ - date: Schema$Date; + date?: Schema$Date; /** * Metadata about the birthday. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * A free-form string representing the user's birthday. */ - text: string; + text?: string; } /** * A person's bragging rights. @@ -191,11 +194,11 @@ export namespace people_v1 { /** * Metadata about the bragging rights. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The bragging rights; for example, `climbed mount everest`. */ - value: string; + value?: string; } /** * A contact group. @@ -205,44 +208,44 @@ export namespace people_v1 { * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the * resource. Used for web cache validation. */ - etag: string; + etag?: string; /** * The read-only name translated and formatted in the viewer's account * locale or the `Accept-Language` HTTP header locale for system groups * names. Group names set by the owner are the same as name. */ - formattedName: string; + formattedName?: string; /** * The read-only contact group type. */ - groupType: string; + groupType?: string; /** * The total number of contacts in the group irrespective of max members in * specified in the request. */ - memberCount: number; + memberCount?: number; /** * The list of contact person resource names that are members of the contact * group. The field is not populated for LIST requests and can only be * updated through the * [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify). */ - memberResourceNames: string[]; + memberResourceNames?: string[]; /** * Metadata about the contact group. */ - metadata: Schema$ContactGroupMetadata; + metadata?: Schema$ContactGroupMetadata; /** * The contact group name set by the group owner or a system provided name * for system groups. */ - name: string; + name?: string; /** * The resource name for the contact group, assigned by the server. An ASCII * string, in the form of * `contactGroups/`<var>contact_group_id</var>. */ - resourceName: string; + resourceName?: string; } /** * A Google contact group membership. @@ -254,7 +257,7 @@ export namespace people_v1 { * limited to, the following: * `myContacts` * `starred` * A numerical * ID for user-created groups. */ - contactGroupId: string; + contactGroupId?: string; } /** * The read-only metadata about a contact group. @@ -265,11 +268,11 @@ export namespace people_v1 { * [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests * that include a sync token. */ - deleted: boolean; + deleted?: boolean; /** * The time the group was last updated. */ - updateTime: string; + updateTime?: string; } /** * The response for a specific contact group. @@ -278,15 +281,15 @@ export namespace people_v1 { /** * The contact group. */ - contactGroup: Schema$ContactGroup; + contactGroup?: Schema$ContactGroup; /** * The original requested resource name. */ - requestedResourceName: string; + requestedResourceName?: string; /** * The status of the response. */ - status: Schema$Status; + status?: Schema$Status; } /** * A person's read-only cover photo. A large image shown on the @@ -298,15 +301,15 @@ export namespace people_v1 { * True if the cover photo is the default cover photo; false if the cover * photo is a user-provided cover photo. */ - default: boolean; + default?: boolean; /** * Metadata about the cover photo. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The URL of the cover photo. */ - url: string; + url?: string; } /** * A request to create a new contact group. @@ -315,7 +318,7 @@ export namespace people_v1 { /** * The contact group to create. */ - contactGroup: Schema$ContactGroup; + contactGroup?: Schema$ContactGroup; } /** * Represents a whole calendar date, for example a date of birth. The time of @@ -331,17 +334,17 @@ export namespace people_v1 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * A Google Apps Domain membership. @@ -350,7 +353,7 @@ export namespace people_v1 { /** * True if the person is in the viewer's Google Apps domain. */ - inViewerDomain: boolean; + inViewerDomain?: boolean; } /** * A person's email address. @@ -359,26 +362,26 @@ export namespace people_v1 { /** * The display name of the email. */ - displayName: string; + displayName?: string; /** * The read-only type of the email address translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * Metadata about the email address. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The type of the email address. The type can be custom or predefined. * Possible values include, but are not limited to, the following: * `home` * * `work` * `other` */ - type: string; + type?: string; /** * The email address. */ - value: string; + value?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -395,22 +398,22 @@ export namespace people_v1 { /** * The date of the event. */ - date: Schema$Date; + date?: Schema$Date; /** * The read-only type of the event translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * Metadata about the event. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The type of the event. The type can be custom or predefined. Possible * values include, but are not limited to, the following: * `anniversary` * * `other` */ - type: string; + type?: string; } /** * Metadata about a field. @@ -420,17 +423,17 @@ export namespace people_v1 { * True if the field is the primary field; false if the field is a secondary * field. */ - primary: boolean; + primary?: boolean; /** * The source of the field. */ - source: Schema$Source; + source?: Schema$Source; /** * True if the field is verified; false if the field is unverified. A * verified field is typically a name, email address, phone number, or * website that has been confirmed to be owned by the person. */ - verified: boolean; + verified?: boolean; } /** * A person's gender. @@ -440,23 +443,23 @@ export namespace people_v1 { * The read-only value of the gender translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedValue: string; + formattedValue?: string; /** * Metadata about the gender. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The gender for the person. The gender can be custom or predefined. * Possible values include, but are not limited to, the following: * `male` * * `female` * `other` * `unknown` */ - value: string; + value?: string; } export interface Schema$GetPeopleResponse { /** * The response for each requested resource name. */ - responses: Schema$PersonResponse[]; + responses?: Schema$PersonResponse[]; } /** * A person's instant messaging client. @@ -466,33 +469,33 @@ export namespace people_v1 { * The read-only protocol of the IM client formatted in the viewer's * account locale or the `Accept-Language` HTTP header locale. */ - formattedProtocol: string; + formattedProtocol?: string; /** * The read-only type of the IM client translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * Metadata about the IM client. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The protocol of the IM client. The protocol can be custom or predefined. * Possible values include, but are not limited to, the following: * `aim` * * `msn` * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * * `netMeeting` */ - protocol: string; + protocol?: string; /** * The type of the IM client. The type can be custom or predefined. Possible * values include, but are not limited to, the following: * `home` * `work` * * `other` */ - type: string; + type?: string; /** * The user name used in the IM client. */ - username: string; + username?: string; } /** * One of the person's interests. @@ -501,34 +504,34 @@ export namespace people_v1 { /** * Metadata about the interest. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The interest; for example, `stargazing`. */ - value: string; + value?: string; } export interface Schema$ListConnectionsResponse { /** * The list of people that the requestor is connected to. */ - connections: Schema$Person[]; + connections?: Schema$Person[]; /** * The token that can be used to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The token that can be used to retrieve changes since the last request. */ - nextSyncToken: string; + nextSyncToken?: string; /** * The total number of items in the list without pagination. */ - totalItems: number; + totalItems?: number; /** * **DEPRECATED** (Please use totalItems) The total number of people in the * list without pagination. */ - totalPeople: number; + totalPeople?: number; } /** * The response to a list contact groups request. @@ -538,19 +541,19 @@ export namespace people_v1 { * The list of contact groups. Members of the contact groups are not * populated. */ - contactGroups: Schema$ContactGroup[]; + contactGroups?: Schema$ContactGroup[]; /** * The token that can be used to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The token that can be used to retrieve changes since the last request. */ - nextSyncToken: string; + nextSyncToken?: string; /** * The total number of items in the list without pagination. */ - totalItems: number; + totalItems?: number; } /** * A person's locale preference. @@ -559,12 +562,12 @@ export namespace people_v1 { /** * Metadata about the locale. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language * tag representing the locale. */ - value: string; + value?: string; } /** * A person's read-only membership in a group. @@ -573,15 +576,15 @@ export namespace people_v1 { /** * The contact group membership. */ - contactGroupMembership: Schema$ContactGroupMembership; + contactGroupMembership?: Schema$ContactGroupMembership; /** * The domain membership. */ - domainMembership: Schema$DomainMembership; + domainMembership?: Schema$DomainMembership; /** * Metadata about the membership. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; } /** * A request to modify an existing contact group's members. Contacts can @@ -593,12 +596,12 @@ export namespace people_v1 { * The resource names of the contact people to add in the form of in the * form `people/`<var>person_id</var>. */ - resourceNamesToAdd: string[]; + resourceNamesToAdd?: string[]; /** * The resource names of the contact people to remove in the form of in the * form of `people/`<var>person_id</var>. */ - resourceNamesToRemove: string[]; + resourceNamesToRemove?: string[]; } /** * The response to a modify contact group members request. @@ -607,7 +610,7 @@ export namespace people_v1 { /** * The contact people resource names that were not found. */ - notFoundResourceNames: string[]; + notFoundResourceNames?: string[]; } /** * A person's name. If the name is a mononym, the family name is empty. @@ -617,61 +620,61 @@ export namespace people_v1 { * The read-only display name formatted according to the locale specified by * the viewer's account or the `Accept-Language` HTTP header. */ - displayName: string; + displayName?: string; /** * The read-only display name with the last name first formatted according * to the locale specified by the viewer's account or the * `Accept-Language` HTTP header. */ - displayNameLastFirst: string; + displayNameLastFirst?: string; /** * The family name. */ - familyName: string; + familyName?: string; /** * The given name. */ - givenName: string; + givenName?: string; /** * The honorific prefixes, such as `Mrs.` or `Dr.` */ - honorificPrefix: string; + honorificPrefix?: string; /** * The honorific suffixes, such as `Jr.` */ - honorificSuffix: string; + honorificSuffix?: string; /** * Metadata about the name. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The middle name(s). */ - middleName: string; + middleName?: string; /** * The family name spelled as it sounds. */ - phoneticFamilyName: string; + phoneticFamilyName?: string; /** * The full name spelled as it sounds. */ - phoneticFullName: string; + phoneticFullName?: string; /** * The given name spelled as it sounds. */ - phoneticGivenName: string; + phoneticGivenName?: string; /** * The honorific prefixes spelled as they sound. */ - phoneticHonorificPrefix: string; + phoneticHonorificPrefix?: string; /** * The honorific suffixes spelled as they sound. */ - phoneticHonorificSuffix: string; + phoneticHonorificSuffix?: string; /** * The middle name(s) spelled as they sound. */ - phoneticMiddleName: string; + phoneticMiddleName?: string; } /** * A person's nickname. @@ -680,15 +683,15 @@ export namespace people_v1 { /** * Metadata about the nickname. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The type of the nickname. */ - type: string; + type?: string; /** * The nickname. */ - value: string; + value?: string; } /** * A person's occupation. @@ -697,11 +700,11 @@ export namespace people_v1 { /** * Metadata about the occupation. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The occupation; for example, `carpenter`. */ - value: string; + value?: string; } /** * A person's past or current organization. Overlapping date ranges are @@ -712,64 +715,64 @@ export namespace people_v1 { * True if the organization is the person's current organization; false * if the organization is a past organization. */ - current: boolean; + current?: boolean; /** * The person's department at the organization. */ - department: string; + department?: string; /** * The domain name associated with the organization; for example, * `google.com`. */ - domain: string; + domain?: string; /** * The end date when the person left the organization. */ - endDate: Schema$Date; + endDate?: Schema$Date; /** * The read-only type of the organization translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * The person's job description at the organization. */ - jobDescription: string; + jobDescription?: string; /** * The location of the organization office the person works at. */ - location: string; + location?: string; /** * Metadata about the organization. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The name of the organization. */ - name: string; + name?: string; /** * The phonetic name of the organization. */ - phoneticName: string; + phoneticName?: string; /** * The start date when the person joined the organization. */ - startDate: Schema$Date; + startDate?: Schema$Date; /** * The symbol associated with the organization; for example, a stock ticker * symbol, abbreviation, or acronym. */ - symbol: string; + symbol?: string; /** * The person's job title at the organization. */ - title: string; + title?: string; /** * The type of the organization. The type can be custom or predefined. * Possible values include, but are not limited to, the following: * `work` * * `school` */ - type: string; + type?: string; } /** * Information about a person merged from various data sources such as the @@ -782,131 +785,131 @@ export namespace people_v1 { /** * The person's street addresses. */ - addresses: Schema$Address[]; + addresses?: Schema$Address[]; /** * **DEPRECATED** (Please use `person.ageRanges` instead)** The * person's read-only age range. */ - ageRange: string; + ageRange?: string; /** * The person's read-only age ranges. */ - ageRanges: Schema$AgeRangeType[]; + ageRanges?: Schema$AgeRangeType[]; /** * The person's biographies. */ - biographies: Schema$Biography[]; + biographies?: Schema$Biography[]; /** * The person's birthdays. */ - birthdays: Schema$Birthday[]; + birthdays?: Schema$Birthday[]; /** * The person's bragging rights. */ - braggingRights: Schema$BraggingRights[]; + braggingRights?: Schema$BraggingRights[]; /** * The person's read-only cover photos. */ - coverPhotos: Schema$CoverPhoto[]; + coverPhotos?: Schema$CoverPhoto[]; /** * The person's email addresses. */ - emailAddresses: Schema$EmailAddress[]; + emailAddresses?: Schema$EmailAddress[]; /** * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the * resource. Used for web cache validation. */ - etag: string; + etag?: string; /** * The person's events. */ - events: Schema$Event[]; + events?: Schema$Event[]; /** * The person's genders. */ - genders: Schema$Gender[]; + genders?: Schema$Gender[]; /** * The person's instant messaging clients. */ - imClients: Schema$ImClient[]; + imClients?: Schema$ImClient[]; /** * The person's interests. */ - interests: Schema$Interest[]; + interests?: Schema$Interest[]; /** * The person's locale preferences. */ - locales: Schema$Locale[]; + locales?: Schema$Locale[]; /** * The person's read-only group memberships. */ - memberships: Schema$Membership[]; + memberships?: Schema$Membership[]; /** * Read-only metadata about the person. */ - metadata: Schema$PersonMetadata; + metadata?: Schema$PersonMetadata; /** * The person's names. */ - names: Schema$Name[]; + names?: Schema$Name[]; /** * The person's nicknames. */ - nicknames: Schema$Nickname[]; + nicknames?: Schema$Nickname[]; /** * The person's occupations. */ - occupations: Schema$Occupation[]; + occupations?: Schema$Occupation[]; /** * The person's past or current organizations. */ - organizations: Schema$Organization[]; + organizations?: Schema$Organization[]; /** * The person's phone numbers. */ - phoneNumbers: Schema$PhoneNumber[]; + phoneNumbers?: Schema$PhoneNumber[]; /** * The person's read-only photos. */ - photos: Schema$Photo[]; + photos?: Schema$Photo[]; /** * The person's relations. */ - relations: Schema$Relation[]; + relations?: Schema$Relation[]; /** * The person's read-only relationship interests. */ - relationshipInterests: Schema$RelationshipInterest[]; + relationshipInterests?: Schema$RelationshipInterest[]; /** * The person's read-only relationship statuses. */ - relationshipStatuses: Schema$RelationshipStatus[]; + relationshipStatuses?: Schema$RelationshipStatus[]; /** * The person's residences. */ - residences: Schema$Residence[]; + residences?: Schema$Residence[]; /** * The resource name for the person, assigned by the server. An ASCII string * with a max length of 27 characters, in the form of * `people/`<var>person_id</var>. */ - resourceName: string; + resourceName?: string; /** * The person's skills. */ - skills: Schema$Skill[]; + skills?: Schema$Skill[]; /** * The person's read-only taglines. */ - taglines: Schema$Tagline[]; + taglines?: Schema$Tagline[]; /** * The person's associated URLs. */ - urls: Schema$Url[]; + urls?: Schema$Url[]; /** * The person's user defined data. */ - userDefined: Schema$UserDefined[]; + userDefined?: Schema$UserDefined[]; } /** * The read-only metadata about a person. @@ -917,17 +920,17 @@ export namespace people_v1 { * [`connections.list`](/people/api/rest/v1/people.connections/list) * requests that include a sync token. */ - deleted: boolean; + deleted?: boolean; /** * Resource names of people linked to this resource. */ - linkedPeopleResourceNames: string[]; + linkedPeopleResourceNames?: string[]; /** * **DEPRECATED** (Please use * `person.metadata.sources.profileMetadata.objectType` instead) The type * of the person object. */ - objectType: string; + objectType?: string; /** * Any former resource names this person has had. Populated only for * [`connections.list`](/people/api/rest/v1/people.connections/list) @@ -935,11 +938,11 @@ export namespace people_v1 { * adding or removing fields that link a contact and profile such as a * verified email, verified phone number, or profile URL. */ - previousResourceNames: string[]; + previousResourceNames?: string[]; /** * The sources of data for the person. */ - sources: Schema$Source[]; + sources?: Schema$Source[]; } /** * The response for a single person @@ -949,22 +952,22 @@ export namespace people_v1 { * **DEPRECATED** (Please use status instead) [HTTP 1.1 status code] * (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). */ - httpStatusCode: number; + httpStatusCode?: number; /** * The person. */ - person: Schema$Person; + person?: Schema$Person; /** * The original requested resource name. May be different than the resource * name on the returned person. The resource name can change when adding or * removing fields that link a contact and profile such as a verified email, * verified phone number, or a profile URL. */ - requestedResourceName: string; + requestedResourceName?: string; /** * The status of the response. */ - status: Schema$Status; + status?: Schema$Status; } /** * A person's phone number. @@ -975,27 +978,27 @@ export namespace people_v1 { * E.164](https://law.resource.org/pub/us/cfr/ibr/004/itu-t.E.164.1.2008.pdf) * form of the phone number. */ - canonicalForm: string; + canonicalForm?: string; /** * The read-only type of the phone number translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * Metadata about the phone number. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The type of the phone number. The type can be custom or predefined. * Possible values include, but are not limited to, the following: * `home` * * `work` * `mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * * `workMobile` * `workPager` * `main` * `googleVoice` * `other` */ - type: string; + type?: string; /** * The phone number. */ - value: string; + value?: string; } /** * A person's read-only photo. A picture shown next to the person's @@ -1006,18 +1009,18 @@ export namespace people_v1 { * True if the photo is a default photo; false if the photo is a * user-provided photo. */ - default: boolean; + default?: boolean; /** * Metadata about the photo. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The URL of the photo. You can change the desired size by appending a * query parameter `sz=`<var>size</var> at the end of the url. * Example: * `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00gzXvDBYqw/s100/photo.jpg?sz=50` */ - url: string; + url?: string; } /** * The read-only metadata about a profile. @@ -1026,11 +1029,11 @@ export namespace people_v1 { /** * The profile object type. */ - objectType: string; + objectType?: string; /** * The user types. */ - userTypes: string[]; + userTypes?: string[]; } /** * A person's relation to another person. @@ -1041,15 +1044,15 @@ export namespace people_v1 { * account locale or the locale specified in the Accept-Language HTTP * header. */ - formattedType: string; + formattedType?: string; /** * Metadata about the relation. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The name of the other person this relation refers to. */ - person: string; + person?: string; /** * The person's relation to the other person. The type can be custom or * predefined. Possible values include, but are not limited to, the @@ -1057,7 +1060,7 @@ export namespace people_v1 { * * `brother` * `sister` * `friend` * `relative` * `domesticPartner` * * `manager` * `assistant` * `referredBy` * `partner` */ - type: string; + type?: string; } /** * A person's read-only relationship interest . @@ -1068,18 +1071,18 @@ export namespace people_v1 { * viewer's account locale or the locale specified in the * Accept-Language HTTP header. */ - formattedValue: string; + formattedValue?: string; /** * Metadata about the relationship interest. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The kind of relationship the person is looking for. The value can be * custom or predefined. Possible values include, but are not limited to, * the following values: * `friend` * `date` * `relationship` * * `networking` */ - value: string; + value?: string; } /** * A person's read-only relationship status. @@ -1090,18 +1093,18 @@ export namespace people_v1 { * in the viewer's account locale or the `Accept-Language` HTTP header * locale. */ - formattedValue: string; + formattedValue?: string; /** * Metadata about the relationship status. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The relationship status. The value can be custom or predefined. Possible * values include, but are not limited to, the following: * `single` * * `inARelationship` * `engaged` * `married` * `itsComplicated` * * `openRelationship` * `widowed` * `inDomesticPartnership` * `inCivilUnion` */ - value: string; + value?: string; } /** * A person's past or current residence. @@ -1111,15 +1114,15 @@ export namespace people_v1 { * True if the residence is the person's current residence; false if the * residence is a past residence. */ - current: boolean; + current?: boolean; /** * Metadata about the residence. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The address of the residence. */ - value: string; + value?: string; } /** * A skill that the person has. @@ -1128,11 +1131,11 @@ export namespace people_v1 { /** * Metadata about the skill. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The skill; for example, `underwater basket weaving`. */ - value: string; + value?: string; } /** * The source of a field. @@ -1143,25 +1146,25 @@ export namespace people_v1 { * tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the source. Used for web * cache validation. */ - etag: string; + etag?: string; /** * The unique identifier within the source type generated by the server. */ - id: string; + id?: string; /** * **Only populated in `person.metadata.sources`.** Metadata about a source * of type PROFILE. */ - profileMetadata: Schema$ProfileMetadata; + profileMetadata?: Schema$ProfileMetadata; /** * The source type. */ - type: string; + type?: string; /** * **Only populated in `person.metadata.sources`.** Last update timestamp * of this source. */ - updateTime: string; + updateTime?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -1203,18 +1206,18 @@ export namespace people_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A read-only brief one-line description of the person. @@ -1223,11 +1226,11 @@ export namespace people_v1 { /** * Metadata about the tagline. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The tagline. */ - value: string; + value?: string; } /** * A request to update an existing user contact group. All updated fields will @@ -1237,7 +1240,7 @@ export namespace people_v1 { /** * The contact group to update. */ - contactGroup: Schema$ContactGroup; + contactGroup?: Schema$ContactGroup; } /** * A person's associated URLs. @@ -1247,22 +1250,22 @@ export namespace people_v1 { * The read-only type of the URL translated and formatted in the * viewer's account locale or the `Accept-Language` HTTP header locale. */ - formattedType: string; + formattedType?: string; /** * Metadata about the URL. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The type of the URL. The type can be custom or predefined. Possible * values include, but are not limited to, the following: * `home` * `work` * * `blog` * `profile` * `homePage` * `ftp` * `reservations` * * `appInstallPage`: website for a Google+ application. * `other` */ - type: string; + type?: string; /** * The URL. */ - value: string; + value?: string; } /** * Arbitrary user data that is populated by the end users. @@ -1271,17 +1274,18 @@ export namespace people_v1 { /** * The end user specified key of the user defined data. */ - key: string; + key?: string; /** * Metadata about the user defined data. */ - metadata: Schema$FieldMetadata; + metadata?: Schema$FieldMetadata; /** * The end user specified value of the user defined data. */ - value: string; + value?: string; } + export class Resource$Contactgroups { root: People; members: Resource$Contactgroups$Members; @@ -1310,29 +1314,45 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGet(params?: any, options?: MethodOptions): + batchGet( + params?: Params$Resource$Contactgroups$Batchget, + options?: MethodOptions): AxiosPromise; batchGet( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contactgroups$Batchget, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchGet( + params: Params$Resource$Contactgroups$Batchget, + callback: BodyResponseCallback): + void; + batchGet(callback: + BodyResponseCallback): void; batchGet( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Contactgroups$Batchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contactgroups$Batchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$Batchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1369,26 +1389,39 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contactgroups$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Contactgroups$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Contactgroups$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Contactgroups$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contactgroups$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1425,25 +1458,38 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contactgroups$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Contactgroups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Contactgroups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contactgroups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contactgroups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1480,24 +1526,35 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Contactgroups$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Contactgroups$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Contactgroups$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Contactgroups$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contactgroups$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1535,29 +1592,40 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Contactgroups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contactgroups$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Contactgroups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Contactgroups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contactgroups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1595,26 +1663,39 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Contactgroups$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Contactgroups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Contactgroups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Contactgroups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Contactgroups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1636,6 +1717,102 @@ export namespace people_v1 { } } } + + export interface Params$Resource$Contactgroups$Batchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the maximum number of members to return for each group. + */ + maxMembers?: number; + /** + * The resource names of the contact groups to get. + */ + resourceNames?: string; + } + export interface Params$Resource$Contactgroups$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$CreateContactGroupRequest; + } + export interface Params$Resource$Contactgroups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Set to true to also delete the contacts in the specified group. + */ + deleteContacts?: boolean; + /** + * The resource name of the contact group to delete. + */ + resourceName?: string; + } + export interface Params$Resource$Contactgroups$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the maximum number of members to return. + */ + maxMembers?: number; + /** + * The resource name of the contact group to get. + */ + resourceName?: string; + } + export interface Params$Resource$Contactgroups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of resources to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous call to + * [ListContactGroups](/people/api/rest/v1/contactgroups/list). Requests the + * next page of resources. + */ + pageToken?: string; + /** + * A sync token, returned by a previous call to `contactgroups.list`. Only + * resources changed since the sync token was created will be returned. + */ + syncToken?: string; + } + export interface Params$Resource$Contactgroups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name for the contact group, assigned by the server. An ASCII + * string, in the form of `contactGroups/`contact_group_id. + */ + resourceName?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateContactGroupRequest; + } + export class Resource$Contactgroups$Members { root: People; constructor(root: People) { @@ -1662,31 +1839,48 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modify(params?: any, options?: MethodOptions): + modify( + params?: Params$Resource$Contactgroups$Members$Modify, + options?: MethodOptions): AxiosPromise; modify( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contactgroups$Members$Modify, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; modify( - params?: any, - options?: MethodOptions| + params: Params$Resource$Contactgroups$Members$Modify, + callback: + BodyResponseCallback): + void; + modify(callback: + BodyResponseCallback): + void; + modify( + paramsOrCallback?: Params$Resource$Contactgroups$Members$Modify| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Contactgroups$Members$Modify; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Contactgroups$Members$Modify; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1711,6 +1905,23 @@ export namespace people_v1 { } } + export interface Params$Resource$Contactgroups$Members$Modify { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the contact group to modify. + */ + resourceName?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyContactGroupMembersRequest; + } + + export class Resource$People { root: People; @@ -1740,26 +1951,38 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createContact(params?: any, options?: MethodOptions): - AxiosPromise; createContact( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Createcontact, + options?: MethodOptions): AxiosPromise; + createContact( + params: Params$Resource$People$Createcontact, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + createContact( + params: Params$Resource$People$Createcontact, + callback: BodyResponseCallback): void; + createContact(callback: BodyResponseCallback): void; createContact( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$People$Createcontact| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Createcontact; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Createcontact; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1794,26 +2017,38 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteContact(params?: any, options?: MethodOptions): - AxiosPromise; deleteContact( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Deletecontact, + options?: MethodOptions): AxiosPromise; deleteContact( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$Deletecontact, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteContact( + params: Params$Resource$People$Deletecontact, + callback: BodyResponseCallback): void; + deleteContact(callback: BodyResponseCallback): void; + deleteContact( + paramsOrCallback?: Params$Resource$People$Deletecontact| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Deletecontact; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Deletecontact; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1852,23 +2087,33 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$People$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$People$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$People$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$People$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$People$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1908,26 +2153,39 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getBatchGet(params?: any, options?: MethodOptions): - AxiosPromise; getBatchGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Getbatchget, + options?: MethodOptions): AxiosPromise; getBatchGet( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$Getbatchget, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getBatchGet( + params: Params$Resource$People$Getbatchget, + callback: BodyResponseCallback): void; + getBatchGet(callback: BodyResponseCallback): void; + getBatchGet( + paramsOrCallback?: Params$Resource$People$Getbatchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Getbatchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Getbatchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -1972,26 +2230,38 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateContact(params?: any, options?: MethodOptions): - AxiosPromise; updateContact( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Updatecontact, + options?: MethodOptions): AxiosPromise; + updateContact( + params: Params$Resource$People$Updatecontact, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; updateContact( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$Updatecontact, + callback: BodyResponseCallback): void; + updateContact(callback: BodyResponseCallback): void; + updateContact( + paramsOrCallback?: Params$Resource$People$Updatecontact| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Updatecontact; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Updatecontact; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -2013,6 +2283,127 @@ export namespace people_v1 { } } } + + export interface Params$Resource$People$Createcontact { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the owning person resource. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Person; + } + export interface Params$Resource$People$Deletecontact { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the contact to delete. + */ + resourceName?: string; + } + export interface Params$Resource$People$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * **Required.** A field mask to restrict which fields on the person are + * returned. Multiple fields can be specified by separating them with + * commas. Valid values are: * addresses * ageRanges * biographies * + * birthdays * braggingRights * coverPhotos * emailAddresses * events * + * genders * imClients * interests * locales * memberships * metadata * + * names * nicknames * occupations * organizations * phoneNumbers * photos * + * relations * relationshipInterests * relationshipStatuses * residences * + * skills * taglines * urls + */ + personFields?: string; + /** + * **Required.** Comma-separated list of person fields to be included in the + * response. Each path should start with `person.`: for example, + * `person.names` or `person.photos`. + */ + 'requestMask.includeField'?: string; + /** + * The resource name of the person to provide information about. - To get + * information about the authenticated user, specify `people/me`. - To get + * information about a google account, specify + * `people/`account_id. - To get information about a contact, + * specify the resource name that identifies the contact as returned by + * [`people.connections.list`](/people/api/rest/v1/people.connections/list). + */ + resourceName?: string; + } + export interface Params$Resource$People$Getbatchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * **Required.** A field mask to restrict which fields on each person are + * returned. Multiple fields can be specified by separating them with + * commas. Valid values are: * addresses * ageRanges * biographies * + * birthdays * braggingRights * coverPhotos * emailAddresses * events * + * genders * imClients * interests * locales * memberships * metadata * + * names * nicknames * occupations * organizations * phoneNumbers * photos * + * relations * relationshipInterests * relationshipStatuses * residences * + * skills * taglines * urls + */ + personFields?: string; + /** + * **Required.** Comma-separated list of person fields to be included in the + * response. Each path should start with `person.`: for example, + * `person.names` or `person.photos`. + */ + 'requestMask.includeField'?: string; + /** + * The resource names of the people to provide information about. - To get + * information about the authenticated user, specify `people/me`. - To get + * information about a google account, specify + * `people/`account_id. - To get information about a contact, + * specify the resource name that identifies the contact as returned by + * [`people.connections.list`](/people/api/rest/v1/people.connections/list). + * You can include up to 50 resource names in one request. + */ + resourceNames?: string; + } + export interface Params$Resource$People$Updatecontact { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name for the person, assigned by the server. An ASCII string + * with a max length of 27 characters, in the form of + * `people/`person_id. + */ + resourceName?: string; + /** + * **Required.** A field mask to restrict which fields on the person are + * updated. Multiple fields can be specified by separating them with commas. + * All updated fields will be replaced. Valid values are: * addresses * + * biographies * birthdays * emailAddresses * events * genders * imClients * + * interests * locales * names * nicknames * occupations * organizations * + * phoneNumbers * relations * residences * urls + */ + updatePersonFields?: string; + /** + * Request body metadata + */ + resource?: Schema$Person; + } + export class Resource$People$Connections { root: People; constructor(root: People) { @@ -2046,28 +2437,40 @@ export namespace people_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$People$Connections$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$People$Connections$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$People$Connections$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$People$Connections$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Connections$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Connections$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; const parameters = { options: Object.assign( @@ -2089,4 +2492,60 @@ export namespace people_v1 { } } } + + export interface Params$Resource$People$Connections$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The number of connections to include in the response. Valid values are + * between 1 and 2000, inclusive. Defaults to 100. + */ + pageSize?: number; + /** + * The token of the page to be returned. + */ + pageToken?: string; + /** + * **Required.** A field mask to restrict which fields on each person are + * returned. Multiple fields can be specified by separating them with + * commas. Valid values are: * addresses * ageRanges * biographies * + * birthdays * braggingRights * coverPhotos * emailAddresses * events * + * genders * imClients * interests * locales * memberships * metadata * + * names * nicknames * occupations * organizations * phoneNumbers * photos * + * relations * relationshipInterests * relationshipStatuses * residences * + * skills * taglines * urls + */ + personFields?: string; + /** + * **Required.** Comma-separated list of person fields to be included in the + * response. Each path should start with `person.`: for example, + * `person.names` or `person.photos`. + */ + 'requestMask.includeField'?: string; + /** + * Whether the response should include a sync token, which can be used to + * get all changes since the last request. For subsequent sync requests use + * the `sync_token` param instead. Initial sync requests that specify + * `request_sync_token` have an additional rate limit. + */ + requestSyncToken?: boolean; + /** + * The resource name to return connections for. Only `people/me` is valid. + */ + resourceName?: string; + /** + * The order in which the connections should be sorted. Defaults to + * `LAST_MODIFIED_ASCENDING`. + */ + sortOrder?: string; + /** + * A sync token returned by a previous call to `people.connections.list`. + * Only resources changed since the sync token was created will be returned. + * Sync requests that specify `sync_token` have an additional rate limit. + */ + syncToken?: string; + } } diff --git a/src/apis/playcustomapp/v1.ts b/src/apis/playcustomapp/v1.ts index 9d4f9695cb2..d0cd6e8724d 100644 --- a/src/apis/playcustomapp/v1.ts +++ b/src/apis/playcustomapp/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace playcustomapp_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Play Custom App Publishing API * @@ -72,13 +75,14 @@ export namespace playcustomapp_v1 { /** * Default listing language in BCP 47 format. */ - languageCode: string; + languageCode?: string; /** * Title for the Android app. */ - title: string; + title?: string; } + export class Resource$Accounts { root: Playcustomapp; customApps: Resource$Accounts$Customapps; @@ -92,6 +96,8 @@ export namespace playcustomapp_v1 { return this.root; } } + + export class Resource$Accounts$Customapps { root: Playcustomapp; constructor(root: Playcustomapp) { @@ -120,26 +126,39 @@ export namespace playcustomapp_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Customapps$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Customapps$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Customapps$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Customapps$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Customapps$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Customapps$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -164,4 +183,34 @@ export namespace playcustomapp_v1 { } } } + + export interface Params$Resource$Accounts$Customapps$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Developer account ID. + */ + account?: string; + /** + * Request body metadata + */ + resource?: Schema$CustomApp; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } } diff --git a/src/apis/plus/v1.ts b/src/apis/plus/v1.ts index 8b6212c3672..4a92f287424 100644 --- a/src/apis/plus/v1.ts +++ b/src/apis/plus/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace plus_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google+ API * @@ -73,318 +76,318 @@ export namespace plus_v1 { /** * Description of the access granted, suitable for display. */ - description: string; + description?: string; /** * The list of access entries. */ - items: Schema$PlusAclentryResource[]; + items?: Schema$PlusAclentryResource[]; /** * Identifies this resource as a collection of access controls. Value: * "plus#acl". */ - kind: string; + kind?: string; } export interface Schema$Activity { /** * Identifies who has access to see this activity. */ - access: Schema$Acl; + access?: Schema$Acl; /** * The person who performed this activity. */ - actor: any; + actor?: any; /** * Street address where this activity occurred. */ - address: string; + address?: string; /** * Additional content added by the person who shared this activity, * applicable only when resharing an activity. */ - annotation: string; + annotation?: string; /** * If this activity is a crosspost from another system, this property * specifies the ID of the original activity. */ - crosspostSource: string; + crosspostSource?: string; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * Latitude and longitude where this activity occurred. Format is latitude * followed by longitude, space separated. */ - geocode: string; + geocode?: string; /** * The ID of this activity. */ - id: string; + id?: string; /** * Identifies this resource as an activity. Value: * "plus#activity". */ - kind: string; + kind?: string; /** * The location where this activity occurred. */ - location: Schema$Place; + location?: Schema$Place; /** * The object of this activity. */ - object: any; + object?: any; /** * ID of the place where this activity occurred. */ - placeId: string; + placeId?: string; /** * Name of the place where this activity occurred. */ - placeName: string; + placeName?: string; /** * The service provider that initially published this activity. */ - provider: any; + provider?: any; /** * The time at which this activity was initially published. Formatted as an * RFC 3339 timestamp. */ - published: string; + published?: string; /** * Radius, in meters, of the region where this activity occurred, centered * at the latitude and longitude identified in geocode. */ - radius: string; + radius?: string; /** * Title of this activity. */ - title: string; + title?: string; /** * The time at which this activity was last updated. Formatted as an RFC * 3339 timestamp. */ - updated: string; + updated?: string; /** * The link to this activity. */ - url: string; + url?: string; /** * This activity's verb, which indicates the action that was performed. * Possible values include, but are not limited to, the following values: - * "post" - Publish content to the stream. - "share" - * Reshare an activity. */ - verb: string; + verb?: string; } export interface Schema$ActivityFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of this collection of activities. Deprecated. */ - id: string; + id?: string; /** * The activities in this page of results. */ - items: Schema$Activity[]; + items?: Schema$Activity[]; /** * Identifies this resource as a collection of activities. Value: * "plus#activityFeed". */ - kind: string; + kind?: string; /** * Link to the next page of activities. */ - nextLink: string; + nextLink?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * Link to this activity resource. */ - selfLink: string; + selfLink?: string; /** * The title of this collection of activities, which is a truncated portion * of the content. */ - title: string; + title?: string; /** * The time at which this collection of activities was last updated. * Formatted as an RFC 3339 timestamp. */ - updated: string; + updated?: string; } export interface Schema$Comment { /** * The person who posted this comment. */ - actor: any; + actor?: any; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of this comment. */ - id: string; + id?: string; /** * The activity this comment replied to. */ - inReplyTo: any[]; + inReplyTo?: any[]; /** * Identifies this resource as a comment. Value: "plus#comment". */ - kind: string; + kind?: string; /** * The object of this comment. */ - object: any; + object?: any; /** * People who +1'd this comment. */ - plusoners: any; + plusoners?: any; /** * The time at which this comment was initially published. Formatted as an * RFC 3339 timestamp. */ - published: string; + published?: string; /** * Link to this comment resource. */ - selfLink: string; + selfLink?: string; /** * The time at which this comment was last updated. Formatted as an RFC 3339 * timestamp. */ - updated: string; + updated?: string; /** * This comment's verb, indicating what action was performed. Possible * values are: - "post" - Publish content to the stream. */ - verb: string; + verb?: string; } export interface Schema$CommentFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of this collection of comments. */ - id: string; + id?: string; /** * The comments in this page of results. */ - items: Schema$Comment[]; + items?: Schema$Comment[]; /** * Identifies this resource as a collection of comments. Value: * "plus#commentFeed". */ - kind: string; + kind?: string; /** * Link to the next page of activities. */ - nextLink: string; + nextLink?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The title of this collection of comments. */ - title: string; + title?: string; /** * The time at which this collection of comments was last updated. Formatted * as an RFC 3339 timestamp. */ - updated: string; + updated?: string; } export interface Schema$PeopleFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The people in this page of results. Each item includes the id, * displayName, image, and url for the person. To retrieve additional * profile data, see the people.get method. */ - items: Schema$Person[]; + items?: Schema$Person[]; /** * Identifies this resource as a collection of people. Value: * "plus#peopleFeed". */ - kind: string; + kind?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * Link to this resource. */ - selfLink: string; + selfLink?: string; /** * The title of this collection of people. */ - title: string; + title?: string; /** * The total number of people available in this list. The number of people * in a response might be smaller due to paging. This might not be set for * all collections. */ - totalItems: number; + totalItems?: number; } export interface Schema$Person { /** * A short biography for this person. */ - aboutMe: string; + aboutMe?: string; /** * The age range of the person. Valid ranges are 17 or younger, 18 to 20, * and 21 or older. Age is determined from the user's birthday using * Western age reckoning. */ - ageRange: any; + ageRange?: any; /** * The person's date of birth, represented as YYYY-MM-DD. */ - birthday: string; + birthday?: string; /** * The "bragging rights" line of this person. */ - braggingRights: string; + braggingRights?: string; /** * For followers who are visible, the number of people who have added this * person or page to a circle. */ - circledByCount: number; + circledByCount?: number; /** * The cover photo content. */ - cover: any; + cover?: any; /** * (this field is not currently used) */ - currentLocation: string; + currentLocation?: string; /** * The name of this person, which is suitable for display. */ - displayName: string; + displayName?: string; /** * The hosted domain name for the user's Google Apps account. For * instance, example.com. The plus.profile.emails.read or email scope is * needed to get this domain name. */ - domain: string; + domain?: string; /** * A list of email addresses that this person has, including their Google * account email address, and the public verified email addresses on their @@ -392,69 +395,69 @@ export namespace plus_v1 { * these email addresses, or the email scope can be used to retrieve just * the Google account email address. */ - emails: any[]; + emails?: any[]; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The person's gender. Possible values include, but are not limited to, * the following values: - "male" - Male gender. - * "female" - Female gender. - "other" - Other. */ - gender: string; + gender?: string; /** * The ID of this person. */ - id: string; + id?: string; /** * The representation of the person's profile photo. */ - image: any; + image?: any; /** * Whether this user has signed up for Google+. */ - isPlusUser: boolean; + isPlusUser?: boolean; /** * Identifies this resource as a person. Value: "plus#person". */ - kind: string; + kind?: string; /** * The user's preferred language for rendering. */ - language: string; + language?: string; /** * An object representation of the individual components of a person's * name. */ - name: any; + name?: any; /** * The nickname of this person. */ - nickname: string; + nickname?: string; /** * Type of person within Google+. Possible values include, but are not * limited to, the following values: - "person" - represents an * actual person. - "page" - represents a page. */ - objectType: string; + objectType?: string; /** * The occupation of this person. */ - occupation: string; + occupation?: string; /** * A list of current or past organizations with which this person is * associated. */ - organizations: any[]; + organizations?: any[]; /** * A list of places where this person has lived. */ - placesLived: any[]; + placesLived?: any[]; /** * If a Google+ Page, the number of people who have +1'd this page. */ - plusOneCount: number; + plusOneCount?: number; /** * The person's relationship status. Possible values include, but are * not limited to, the following values: - "single" - Person is @@ -466,61 +469,61 @@ export namespace plus_v1 { * "in_domestic_partnership" - Person is in a domestic * partnership. - "in_civil_union" - Person is in a civil union. */ - relationshipStatus: string; + relationshipStatus?: string; /** * The person's skills. */ - skills: string; + skills?: string; /** * The brief description (tagline) of this person. */ - tagline: string; + tagline?: string; /** * The URL of this person's profile. */ - url: string; + url?: string; /** * A list of URLs for this person. */ - urls: any[]; + urls?: any[]; /** * Whether the person or Google+ Page has been verified. */ - verified: boolean; + verified?: boolean; } export interface Schema$Place { /** * The physical address of the place. */ - address: any; + address?: any; /** * The display name of the place. */ - displayName: string; + displayName?: string; /** * The id of the place. */ - id: string; + id?: string; /** * Identifies this resource as a place. Value: "plus#place". */ - kind: string; + kind?: string; /** * The position of the place. */ - position: any; + position?: any; } export interface Schema$PlusAclentryResource { /** * A descriptive name for this entry. Suitable for display. */ - displayName: string; + displayName?: string; /** * The ID of the entry. For entries of type "person" or * "circle", this is the ID of the resource. For other types, this * property is not set. */ - id: string; + id?: string; /** * The type of entry describing to whom access is granted. Possible values * are: - "person" - Access to an individual. - @@ -531,9 +534,10 @@ export namespace plus_v1 { * "domain" - Access to members of the person's Google Apps * domain. - "public" - Access to anyone on the web. */ - type: string; + type?: string; } + export class Resource$Activities { root: Plus; constructor(root: Plus) { @@ -558,23 +562,33 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Activities$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Activities$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Activities$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Activities$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -613,26 +627,37 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Activities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Activities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Activities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -672,26 +697,38 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Activities$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Activities$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Activities$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Activities$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -714,6 +751,80 @@ export namespace plus_v1 { } } + export interface Params$Resource$Activities$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to get. + */ + activityId?: string; + } + export interface Params$Resource$Activities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of activities to list. + */ + collection?: string; + /** + * The maximum number of activities to include in the response, which is + * used for paging. For any response, the actual number returned might be + * less than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * The ID of the user to get activities for. The special value "me" can be + * used to indicate the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Activities$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specify the preferred language to search with. See search language codes + * for available values. + */ + language?: string; + /** + * The maximum number of activities to include in the response, which is + * used for paging. For any response, the actual number returned might be + * less than the specified maxResults. + */ + maxResults?: number; + /** + * Specifies how to order search results. + */ + orderBy?: string; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. This token can be of any + * length. + */ + pageToken?: string; + /** + * Full-text search query string. + */ + query?: string; + } + + export class Resource$Comments { root: Plus; constructor(root: Plus) { @@ -738,23 +849,33 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Comments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Comments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Comments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Comments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -792,26 +913,37 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -834,6 +966,46 @@ export namespace plus_v1 { } } + export interface Params$Resource$Comments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment to get. + */ + commentId?: string; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to get comments for. + */ + activityId?: string; + /** + * The maximum number of comments to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * The order in which to sort the list of comments. + */ + sortOrder?: string; + } + + export class Resource$People { root: Plus; constructor(root: Plus) { @@ -860,23 +1032,33 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$People$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$People$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$People$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$People$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$People$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -915,26 +1097,37 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$People$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$People$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$People$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$People$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -973,26 +1166,39 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listByActivity(params?: any, options?: MethodOptions): - AxiosPromise; listByActivity( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Listbyactivity, + options?: MethodOptions): AxiosPromise; + listByActivity( + params: Params$Resource$People$Listbyactivity, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listByActivity( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$Listbyactivity, + callback: BodyResponseCallback): void; + listByActivity(callback: BodyResponseCallback): void; + listByActivity( + paramsOrCallback?: Params$Resource$People$Listbyactivity| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Listbyactivity; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Listbyactivity; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1031,26 +1237,37 @@ export namespace plus_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$People$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$People$Search, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; + search( + paramsOrCallback?: Params$Resource$People$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$People$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1071,4 +1288,106 @@ export namespace plus_v1 { } } } + + export interface Params$Resource$People$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the person to get the profile for. The special value "me" can + * be used to indicate the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$People$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of people to list. + */ + collection?: string; + /** + * The maximum number of people to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The order to return people in. + */ + orderBy?: string; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * Get the collection of people for the person identified. Use "me" to + * indicate the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$People$Listbyactivity { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to get the list of people for. + */ + activityId?: string; + /** + * The collection of people to list. + */ + collection?: string; + /** + * The maximum number of people to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$People$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specify the preferred language to search with. See search language codes + * for available values. + */ + language?: string; + /** + * The maximum number of people to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. This token can be of any + * length. + */ + pageToken?: string; + /** + * Specify a query string for full text search of public text in all + * profiles. + */ + query?: string; + } } diff --git a/src/apis/plusDomains/v1.ts b/src/apis/plusDomains/v1.ts index f1f2155f02d..8c092526084 100644 --- a/src/apis/plusDomains/v1.ts +++ b/src/apis/plusDomains/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace plusDomains_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google+ Domains API * @@ -79,175 +82,175 @@ export namespace plusDomains_v1 { /** * Description of the access granted, suitable for display. */ - description: string; + description?: string; /** * Whether access is restricted to the domain. */ - domainRestricted: boolean; + domainRestricted?: boolean; /** * The list of access entries. */ - items: Schema$PlusDomainsAclentryResource[]; + items?: Schema$PlusDomainsAclentryResource[]; /** * Identifies this resource as a collection of access controls. Value: * "plus#acl". */ - kind: string; + kind?: string; } export interface Schema$Activity { /** * Identifies who has access to see this activity. */ - access: Schema$Acl; + access?: Schema$Acl; /** * The person who performed this activity. */ - actor: any; + actor?: any; /** * Street address where this activity occurred. */ - address: string; + address?: string; /** * Additional content added by the person who shared this activity, * applicable only when resharing an activity. */ - annotation: string; + annotation?: string; /** * If this activity is a crosspost from another system, this property * specifies the ID of the original activity. */ - crosspostSource: string; + crosspostSource?: string; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * Latitude and longitude where this activity occurred. Format is latitude * followed by longitude, space separated. */ - geocode: string; + geocode?: string; /** * The ID of this activity. */ - id: string; + id?: string; /** * Identifies this resource as an activity. Value: * "plus#activity". */ - kind: string; + kind?: string; /** * The location where this activity occurred. */ - location: Schema$Place; + location?: Schema$Place; /** * The object of this activity. */ - object: any; + object?: any; /** * ID of the place where this activity occurred. */ - placeId: string; + placeId?: string; /** * Name of the place where this activity occurred. */ - placeName: string; + placeName?: string; /** * The service provider that initially published this activity. */ - provider: any; + provider?: any; /** * The time at which this activity was initially published. Formatted as an * RFC 3339 timestamp. */ - published: string; + published?: string; /** * Radius, in meters, of the region where this activity occurred, centered * at the latitude and longitude identified in geocode. */ - radius: string; + radius?: string; /** * Title of this activity. */ - title: string; + title?: string; /** * The time at which this activity was last updated. Formatted as an RFC * 3339 timestamp. */ - updated: string; + updated?: string; /** * The link to this activity. */ - url: string; + url?: string; /** * This activity's verb, which indicates the action that was performed. * Possible values include, but are not limited to, the following values: - * "post" - Publish content to the stream. - "share" - * Reshare an activity. */ - verb: string; + verb?: string; } export interface Schema$ActivityFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of this collection of activities. Deprecated. */ - id: string; + id?: string; /** * The activities in this page of results. */ - items: Schema$Activity[]; + items?: Schema$Activity[]; /** * Identifies this resource as a collection of activities. Value: * "plus#activityFeed". */ - kind: string; + kind?: string; /** * Link to the next page of activities. */ - nextLink: string; + nextLink?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * Link to this activity resource. */ - selfLink: string; + selfLink?: string; /** * The title of this collection of activities, which is a truncated portion * of the content. */ - title: string; + title?: string; /** * The time at which this collection of activities was last updated. * Formatted as an RFC 3339 timestamp. */ - updated: string; + updated?: string; } export interface Schema$Audience { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The access control list entry. */ - item: Schema$PlusDomainsAclentryResource; + item?: Schema$PlusDomainsAclentryResource; /** * Identifies this resource as an audience. Value: * "plus#audience". */ - kind: string; + kind?: string; /** * The number of people in this circle. This only applies if entity_type is * CIRCLE. */ - memberCount: number; + memberCount?: number; /** * The circle members' visibility as chosen by the owner of the circle. * This only applies for items with "item.type" equals @@ -256,259 +259,259 @@ export namespace plusDomains_v1 { * to a limited audience. - "private" - Members are visible to * the owner only. */ - visibility: string; + visibility?: string; } export interface Schema$AudiencesFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The audiences in this result. */ - items: Schema$Audience[]; + items?: Schema$Audience[]; /** * Identifies this resource as a collection of audiences. Value: * "plus#audienceFeed". */ - kind: string; + kind?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of ACL entries. The number of entries in this response * may be smaller due to paging. */ - totalItems: number; + totalItems?: number; } export interface Schema$Circle { /** * The description of this circle. */ - description: string; + description?: string; /** * The circle name. */ - displayName: string; + displayName?: string; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of the circle. */ - id: string; + id?: string; /** * Identifies this resource as a circle. Value: "plus#circle". */ - kind: string; + kind?: string; /** * The people in this circle. */ - people: any; + people?: any; /** * Link to this circle resource */ - selfLink: string; + selfLink?: string; } export interface Schema$CircleFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The circles in this page of results. */ - items: Schema$Circle[]; + items?: Schema$Circle[]; /** * Identifies this resource as a collection of circles. Value: * "plus#circleFeed". */ - kind: string; + kind?: string; /** * Link to the next page of circles. */ - nextLink: string; + nextLink?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * Link to this page of circles. */ - selfLink: string; + selfLink?: string; /** * The title of this list of resources. */ - title: string; + title?: string; /** * The total number of circles. The number of circles in this response may * be smaller due to paging. */ - totalItems: number; + totalItems?: number; } export interface Schema$Comment { /** * The person who posted this comment. */ - actor: any; + actor?: any; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of this comment. */ - id: string; + id?: string; /** * The activity this comment replied to. */ - inReplyTo: any[]; + inReplyTo?: any[]; /** * Identifies this resource as a comment. Value: "plus#comment". */ - kind: string; + kind?: string; /** * The object of this comment. */ - object: any; + object?: any; /** * People who +1'd this comment. */ - plusoners: any; + plusoners?: any; /** * The time at which this comment was initially published. Formatted as an * RFC 3339 timestamp. */ - published: string; + published?: string; /** * Link to this comment resource. */ - selfLink: string; + selfLink?: string; /** * The time at which this comment was last updated. Formatted as an RFC 3339 * timestamp. */ - updated: string; + updated?: string; /** * This comment's verb, indicating what action was performed. Possible * values are: - "post" - Publish content to the stream. */ - verb: string; + verb?: string; } export interface Schema$CommentFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The ID of this collection of comments. */ - id: string; + id?: string; /** * The comments in this page of results. */ - items: Schema$Comment[]; + items?: Schema$Comment[]; /** * Identifies this resource as a collection of comments. Value: * "plus#commentFeed". */ - kind: string; + kind?: string; /** * Link to the next page of activities. */ - nextLink: string; + nextLink?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * The title of this collection of comments. */ - title: string; + title?: string; /** * The time at which this collection of comments was last updated. Formatted * as an RFC 3339 timestamp. */ - updated: string; + updated?: string; } export interface Schema$Media { /** * The person who uploaded this media. */ - author: any; + author?: any; /** * The display name for this media. */ - displayName: string; + displayName?: string; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * Exif information of the media item. */ - exif: any; + exif?: any; /** * The height in pixels of the original image. */ - height: number; + height?: number; /** * ID of this media, which is generated by the API. */ - id: string; + id?: string; /** * The type of resource. */ - kind: string; + kind?: string; /** * The time at which this media was originally created in UTC. Formatted as * an RFC 3339 timestamp that matches this example: 2010-11-25T14:30:27.655Z */ - mediaCreatedTime: string; + mediaCreatedTime?: string; /** * The URL of this photo or video's still image. */ - mediaUrl: string; + mediaUrl?: string; /** * The time at which this media was uploaded. Formatted as an RFC 3339 * timestamp. */ - published: string; + published?: string; /** * The size in bytes of this video. */ - sizeBytes: string; + sizeBytes?: string; /** * The list of video streams for this video. There might be several * different streams available for a single video, either Flash or MPEG, of * various sizes */ - streams: Schema$Videostream[]; + streams?: Schema$Videostream[]; /** * A description, or caption, for this media. */ - summary: string; + summary?: string; /** * The time at which this media was last updated. This includes changes to * media metadata. Formatted as an RFC 3339 timestamp. */ - updated: string; + updated?: string; /** * The URL for the page that hosts this media. */ - url: string; + url?: string; /** * The duration in milliseconds of this video. */ - videoDuration: string; + videoDuration?: string; /** * The encoding status of this video. Possible values are: - * "UPLOADING" - Not all the video bytes have been received. - @@ -516,85 +519,85 @@ export namespace plusDomains_v1 { * Video processing failed. - "READY" - A single video stream is * playable. - "FINAL" - All video streams are playable. */ - videoStatus: string; + videoStatus?: string; /** * The width in pixels of the original image. */ - width: number; + width?: number; } export interface Schema$PeopleFeed { /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The people in this page of results. Each item includes the id, * displayName, image, and url for the person. To retrieve additional * profile data, see the people.get method. */ - items: Schema$Person[]; + items?: Schema$Person[]; /** * Identifies this resource as a collection of people. Value: * "plus#peopleFeed". */ - kind: string; + kind?: string; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; /** * Link to this resource. */ - selfLink: string; + selfLink?: string; /** * The title of this collection of people. */ - title: string; + title?: string; /** * The total number of people available in this list. The number of people * in a response might be smaller due to paging. This might not be set for * all collections. */ - totalItems: number; + totalItems?: number; } export interface Schema$Person { /** * A short biography for this person. */ - aboutMe: string; + aboutMe?: string; /** * The person's date of birth, represented as YYYY-MM-DD. */ - birthday: string; + birthday?: string; /** * The "bragging rights" line of this person. */ - braggingRights: string; + braggingRights?: string; /** * For followers who are visible, the number of people who have added this * person or page to a circle. */ - circledByCount: number; + circledByCount?: number; /** * The cover photo content. */ - cover: any; + cover?: any; /** * (this field is not currently used) */ - currentLocation: string; + currentLocation?: string; /** * The name of this person, which is suitable for display. */ - displayName: string; + displayName?: string; /** * The hosted domain name for the user's Google Apps account. For * instance, example.com. The plus.profile.emails.read or email scope is * needed to get this domain name. */ - domain: string; + domain?: string; /** * A list of email addresses that this person has, including their Google * account email address, and the public verified email addresses on their @@ -602,65 +605,65 @@ export namespace plusDomains_v1 { * these email addresses, or the email scope can be used to retrieve just * the Google account email address. */ - emails: any[]; + emails?: any[]; /** * ETag of this response for caching purposes. */ - etag: string; + etag?: string; /** * The person's gender. Possible values include, but are not limited to, * the following values: - "male" - Male gender. - * "female" - Female gender. - "other" - Other. */ - gender: string; + gender?: string; /** * The ID of this person. */ - id: string; + id?: string; /** * The representation of the person's profile photo. */ - image: any; + image?: any; /** * Whether this user has signed up for Google+. */ - isPlusUser: boolean; + isPlusUser?: boolean; /** * Identifies this resource as a person. Value: "plus#person". */ - kind: string; + kind?: string; /** * An object representation of the individual components of a person's * name. */ - name: any; + name?: any; /** * The nickname of this person. */ - nickname: string; + nickname?: string; /** * Type of person within Google+. Possible values include, but are not * limited to, the following values: - "person" - represents an * actual person. - "page" - represents a page. */ - objectType: string; + objectType?: string; /** * The occupation of this person. */ - occupation: string; + occupation?: string; /** * A list of current or past organizations with which this person is * associated. */ - organizations: any[]; + organizations?: any[]; /** * A list of places where this person has lived. */ - placesLived: any[]; + placesLived?: any[]; /** * If a Google+ Page, the number of people who have +1'd this page. */ - plusOneCount: number; + plusOneCount?: number; /** * The person's relationship status. Possible values include, but are * not limited to, the following values: - "single" - Person is @@ -672,61 +675,61 @@ export namespace plusDomains_v1 { * "in_domestic_partnership" - Person is in a domestic * partnership. - "in_civil_union" - Person is in a civil union. */ - relationshipStatus: string; + relationshipStatus?: string; /** * The person's skills. */ - skills: string; + skills?: string; /** * The brief description (tagline) of this person. */ - tagline: string; + tagline?: string; /** * The URL of this person's profile. */ - url: string; + url?: string; /** * A list of URLs for this person. */ - urls: any[]; + urls?: any[]; /** * Whether the person or Google+ Page has been verified. */ - verified: boolean; + verified?: boolean; } export interface Schema$Place { /** * The physical address of the place. */ - address: any; + address?: any; /** * The display name of the place. */ - displayName: string; + displayName?: string; /** * The id of the place. */ - id: string; + id?: string; /** * Identifies this resource as a place. Value: "plus#place". */ - kind: string; + kind?: string; /** * The position of the place. */ - position: any; + position?: any; } export interface Schema$PlusDomainsAclentryResource { /** * A descriptive name for this entry. Suitable for display. */ - displayName: string; + displayName?: string; /** * The ID of the entry. For entries of type "person" or * "circle", this is the ID of the resource. For other types, this * property is not set. */ - id: string; + id?: string; /** * The type of entry describing to whom access is granted. Possible values * are: - "person" - Access to an individual. - @@ -737,27 +740,28 @@ export namespace plusDomains_v1 { * "domain" - Access to members of the person's Google Apps * domain. - "public" - Access to anyone on the web. */ - type: string; + type?: string; } export interface Schema$Videostream { /** * The height, in pixels, of the video resource. */ - height: number; + height?: number; /** * MIME type of the video stream. */ - type: string; + type?: string; /** * URL of the video stream. */ - url: string; + url?: string; /** * The width, in pixels, of the video resource. */ - width: number; + width?: number; } + export class Resource$Activities { root: Plusdomains; constructor(root: Plusdomains) { @@ -782,23 +786,33 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Activities$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Activities$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Activities$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Activities$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -835,26 +849,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Activities$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Activities$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Activities$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Activities$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -893,26 +918,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Activities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Activities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Activities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -936,6 +972,69 @@ export namespace plusDomains_v1 { } } + export interface Params$Resource$Activities$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to get. + */ + activityId?: string; + } + export interface Params$Resource$Activities$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If "true", extract the potential media attachments for a URL. The + * response will include all possible attachments for a URL, including + * video, photos, and articles based on the content of the page. + */ + preview?: boolean; + /** + * The ID of the user to create the activity on behalf of. Its value should + * be "me", to indicate the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Activity; + } + export interface Params$Resource$Activities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of activities to list. + */ + collection?: string; + /** + * The maximum number of activities to include in the response, which is + * used for paging. For any response, the actual number returned might be + * less than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * The ID of the user to get activities for. The special value "me" can be + * used to indicate the authenticated user. + */ + userId?: string; + } + + export class Resource$Audiences { root: Plusdomains; constructor(root: Plusdomains) { @@ -962,26 +1061,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Audiences$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Audiences$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Audiences$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Audiences$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Audiences$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Audiences$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1004,6 +1114,32 @@ export namespace plusDomains_v1 { } } + export interface Params$Resource$Audiences$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of circles to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * The ID of the user to get audiences for. The special value "me" can be + * used to indicate the authenticated user. + */ + userId?: string; + } + + export class Resource$Circles { root: Plusdomains; constructor(root: Plusdomains) { @@ -1031,26 +1167,38 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addPeople(params?: any, options?: MethodOptions): - AxiosPromise; addPeople( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Circles$Addpeople, + options?: MethodOptions): AxiosPromise; + addPeople( + params: Params$Resource$Circles$Addpeople, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addPeople( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Circles$Addpeople, + callback: BodyResponseCallback): void; + addPeople(callback: BodyResponseCallback): void; + addPeople( + paramsOrCallback?: Params$Resource$Circles$Addpeople| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Circles$Addpeople; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Addpeople; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1085,23 +1233,33 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Circles$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Circles$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Circles$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Circles$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Circles$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1137,25 +1295,36 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Circles$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Circles$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Circles$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Circles$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Circles$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1192,26 +1361,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Circles$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Circles$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Circles$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Circles$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Circles$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1248,25 +1428,36 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Circles$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Circles$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Circles$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Circles$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Circles$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1301,22 +1492,35 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - remove(params?: any, options?: MethodOptions): AxiosPromise; + remove(params?: Params$Resource$Circles$Remove, options?: MethodOptions): + AxiosPromise; remove( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Circles$Remove, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; remove( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Circles$Remove, + callback: BodyResponseCallback): void; + remove(callback: BodyResponseCallback): void; + remove( + paramsOrCallback?: Params$Resource$Circles$Remove| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Circles$Remove; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Remove; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1353,22 +1557,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removePeople(params?: any, options?: MethodOptions): AxiosPromise; removePeople( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Circles$Removepeople, + options?: MethodOptions): AxiosPromise; removePeople( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Circles$Removepeople, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removePeople( + params: Params$Resource$Circles$Removepeople, + callback: BodyResponseCallback): void; + removePeople(callback: BodyResponseCallback): void; + removePeople( + paramsOrCallback?: Params$Resource$Circles$Removepeople| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Circles$Removepeople; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Removepeople; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1404,25 +1623,36 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Circles$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Circles$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Circles$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Circles$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Circles$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Circles$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1445,6 +1675,138 @@ export namespace plusDomains_v1 { } } + export interface Params$Resource$Circles$Addpeople { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to add the person to. + */ + circleId?: string; + /** + * Email of the people to add to the circle. Optional, can be repeated. + */ + email?: string; + /** + * IDs of the people to add to the circle. Optional, can be repeated. + */ + userId?: string; + } + export interface Params$Resource$Circles$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to get. + */ + circleId?: string; + } + export interface Params$Resource$Circles$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the user to create the circle on behalf of. The value "me" can + * be used to indicate the authenticated user. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Circle; + } + export interface Params$Resource$Circles$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of circles to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * The ID of the user to get circles for. The special value "me" can be used + * to indicate the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$Circles$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to update. + */ + circleId?: string; + /** + * Request body metadata + */ + resource?: Schema$Circle; + } + export interface Params$Resource$Circles$Remove { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to delete. + */ + circleId?: string; + } + export interface Params$Resource$Circles$Removepeople { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to remove the person from. + */ + circleId?: string; + /** + * Email of the people to add to the circle. Optional, can be repeated. + */ + email?: string; + /** + * IDs of the people to remove from the circle. Optional, can be repeated. + */ + userId?: string; + } + export interface Params$Resource$Circles$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to update. + */ + circleId?: string; + /** + * Request body metadata + */ + resource?: Schema$Circle; + } + + export class Resource$Comments { root: Plusdomains; constructor(root: Plusdomains) { @@ -1469,23 +1831,33 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Comments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Comments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Comments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Comments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1521,25 +1893,36 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Comments$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Comments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1578,26 +1961,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1621,6 +2015,61 @@ export namespace plusDomains_v1 { } } + export interface Params$Resource$Comments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the comment to get. + */ + commentId?: string; + } + export interface Params$Resource$Comments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to reply to. + */ + activityId?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to get comments for. + */ + activityId?: string; + /** + * The maximum number of comments to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * The order in which to sort the list of comments. + */ + sortOrder?: string; + } + + export class Resource$Media { root: Plusdomains; constructor(root: Plusdomains) { @@ -1653,25 +2102,36 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Media$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Media$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Media$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Media$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Media$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Media$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1698,6 +2158,41 @@ export namespace plusDomains_v1 { } } + export interface Params$Resource$Media$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + collection?: string; + /** + * The ID of the user to create the activity on behalf of. + */ + userId?: string; + /** + * Request body metadata + */ + resource?: Schema$Media; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$People { root: Plusdomains; constructor(root: Plusdomains) { @@ -1722,23 +2217,33 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$People$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$People$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$People$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$People$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$People$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1777,26 +2282,37 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$People$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$People$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$People$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$People$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1836,26 +2352,39 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listByActivity(params?: any, options?: MethodOptions): - AxiosPromise; listByActivity( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Listbyactivity, + options?: MethodOptions): AxiosPromise; + listByActivity( + params: Params$Resource$People$Listbyactivity, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; listByActivity( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$People$Listbyactivity, + callback: BodyResponseCallback): void; + listByActivity(callback: BodyResponseCallback): void; + listByActivity( + paramsOrCallback?: Params$Resource$People$Listbyactivity| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Listbyactivity; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Listbyactivity; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1894,26 +2423,39 @@ export namespace plusDomains_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listByCircle(params?: any, options?: MethodOptions): - AxiosPromise; listByCircle( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$People$Listbycircle, + options?: MethodOptions): AxiosPromise; + listByCircle( + params: Params$Resource$People$Listbycircle, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listByCircle( + params: Params$Resource$People$Listbycircle, + callback: BodyResponseCallback): void; + listByCircle(callback: BodyResponseCallback): void; listByCircle( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$People$Listbycircle| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$People$Listbycircle; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$People$Listbycircle; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1935,4 +2477,99 @@ export namespace plusDomains_v1 { } } } + + export interface Params$Resource$People$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the person to get the profile for. The special value "me" can + * be used to indicate the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$People$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The collection of people to list. + */ + collection?: string; + /** + * The maximum number of people to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The order to return people in. + */ + orderBy?: string; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + /** + * Get the collection of people for the person identified. Use "me" to + * indicate the authenticated user. + */ + userId?: string; + } + export interface Params$Resource$People$Listbyactivity { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the activity to get the list of people for. + */ + activityId?: string; + /** + * The collection of people to list. + */ + collection?: string; + /** + * The maximum number of people to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + } + export interface Params$Resource$People$Listbycircle { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the circle to get the members of. + */ + circleId?: string; + /** + * The maximum number of people to include in the response, which is used + * for paging. For any response, the actual number returned might be less + * than the specified maxResults. + */ + maxResults?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * "nextPageToken" from the previous response. + */ + pageToken?: string; + } } diff --git a/src/apis/poly/v1.ts b/src/apis/poly/v1.ts index cb8abfbe86b..0de15ae456e 100644 --- a/src/apis/poly/v1.ts +++ b/src/apis/poly/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace poly_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Poly API * @@ -80,34 +83,34 @@ export namespace poly_v1 { * to the author. For more information, see * [Licensing](/poly/discover/licensing). */ - authorName: string; + authorName?: string; /** * For published assets, the time when the asset was published. For * unpublished assets, the time when the asset was created. */ - createTime: string; + createTime?: string; /** * The human-readable description, set by the asset's author. */ - description: string; + description?: string; /** * The human-readable name, set by the asset's author. */ - displayName: string; + displayName?: string; /** * A list of Formats where each format describes one representation of the * asset. */ - formats: Schema$Format[]; + formats?: Schema$Format[]; /** * Whether this asset has been curated by the Poly team. */ - isCurated: boolean; + isCurated?: boolean; /** * The license under which the author has made the asset available for use, * if any. */ - license: string; + license?: string; /** * Application-defined opaque metadata for this asset. This field is only * returned when querying for the signed-in user's own assets, not for @@ -115,30 +118,30 @@ export namespace poly_v1 { * creator of the asset to define the format for this string (for example, * JSON). */ - metadata: string; + metadata?: string; /** * The unique identifier for the asset in the form: `assets/{ASSET_ID}`. */ - name: string; + name?: string; /** * Hints for displaying the asset. Note that these parameters are not * immutable; the author of an asset may change them post-publication. */ - presentationParams: Schema$PresentationParams; + presentationParams?: Schema$PresentationParams; /** * The thumbnail image for the asset. */ - thumbnail: Schema$File; + thumbnail?: Schema$File; /** * The time when the asset was last modified. For published assets, whose * contents are immutable, the update time changes only when metadata * properties, such as visibility, are updated. */ - updateTime: string; + updateTime?: string; /** * The visibility of the asset and who can access it. */ - visibility: string; + visibility?: string; } /** * A message generated by the asset import process. @@ -147,20 +150,20 @@ export namespace poly_v1 { /** * The code associated with this message. */ - code: string; + code?: string; /** * An optional file path. Only present for those error codes that specify * it. */ - filePath: string; + filePath?: string; /** * An optional image error. Only present for INVALID_IMAGE_FILE. */ - imageError: Schema$ImageError; + imageError?: Schema$ImageError; /** * An optional OBJ parse error. Only present for OBJ_PARSE_ERROR. */ - objParseError: Schema$ObjParseError; + objParseError?: Schema$ObjParseError; } /** * Represents a file in Poly, which can be a root, resource, or thumbnail @@ -172,16 +175,16 @@ export namespace poly_v1 { * [MIME * types](//developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types). */ - contentType: string; + contentType?: string; /** * The path of the resource file relative to the root file. For root or * thumbnail files, this is just the filename. */ - relativePath: string; + relativePath?: string; /** * The URL where the file data can be retrieved. */ - url: string; + url?: string; } /** * The same asset can be represented in different formats, for example, a @@ -195,24 +198,24 @@ export namespace poly_v1 { /** * Complexity stats about this representation of the asset. */ - formatComplexity: Schema$FormatComplexity; + formatComplexity?: Schema$FormatComplexity; /** * A short string that identifies the format type of this representation. * Possible values are: `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`. */ - formatType: string; + formatType?: string; /** * A list of dependencies of the root element. May include, but is not * limited to, materials, textures, and shader programs. */ - resources: Schema$File[]; + resources?: Schema$File[]; /** * The root of the file hierarchy. This will always be populated. For some * format_types - such as `TILT`, which are self-contained - this is all of * the data. Other types - such as `OBJ` - often reference other data * elements. These are contained in the resources field. */ - root: Schema$File; + root?: Schema$File; } /** * Information on the complexity of this Format. @@ -224,11 +227,11 @@ export namespace poly_v1 { * format_type. This hint allows you to sort formats from the most-detailed * (0) to least-detailed (integers greater than 0). */ - lodHint: number; + lodHint?: number; /** * The estimated number of triangles. */ - triangleCount: string; + triangleCount?: string; } /** * A message resulting from reading an image file. @@ -237,11 +240,11 @@ export namespace poly_v1 { /** * The type of image error encountered. Optional for older image errors. */ - code: string; + code?: string; /** * The file path in the import of the image that was rejected. */ - filePath: string; + filePath?: string; } /** * A response message from a request to list. @@ -250,17 +253,17 @@ export namespace poly_v1 { /** * A list of assets that match the criteria specified in the request. */ - assets: Schema$Asset[]; + assets?: Schema$Asset[]; /** * The continuation token for retrieving the next page. If empty, indicates * that there are no more pages. To get the next page, submit the same * request specifying this value as the page_token. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of assets in the list, without pagination. */ - totalSize: number; + totalSize?: number; } /** * A response message from a request to list. @@ -269,17 +272,17 @@ export namespace poly_v1 { /** * A list of assets that match the criteria specified in the request. */ - assets: Schema$Asset[]; + assets?: Schema$Asset[]; /** * The continuation token for retrieving the next page. If empty, indicates * that there are no more pages. To get the next page, submit the same * request specifying this value as the page_token. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of assets in the list, without pagination. */ - totalSize: number; + totalSize?: number; } /** * A response message from a request to list. @@ -290,15 +293,15 @@ export namespace poly_v1 { * that there are no more pages. To get the next page, submit the same * request specifying this value as the page_token. */ - nextPageToken: string; + nextPageToken?: string; /** * The total number of assets in the list, without pagination. */ - totalSize: number; + totalSize?: number; /** * A list of UserAssets matching the request. */ - userAssets: Schema$UserAsset[]; + userAssets?: Schema$UserAsset[]; } /** * Details of an error resulting from parsing an OBJ file @@ -307,29 +310,29 @@ export namespace poly_v1 { /** * The type of problem found (required). */ - code: string; + code?: string; /** * The ending character index at which the problem was found. */ - endIndex: number; + endIndex?: number; /** * The file path in which the problem was found. */ - filePath: string; + filePath?: string; /** * The text of the line. Note that this may be truncated if the line was * very long. This may not include the error if it occurs after line * truncation. */ - line: string; + line?: string; /** * Line number at which the problem was found. */ - lineNumber: number; + lineNumber?: number; /** * The starting character index at which the problem was found. */ - startIndex: number; + startIndex?: number; } /** * Hints for displaying the asset, based on information available when the @@ -340,7 +343,7 @@ export namespace poly_v1 { * The materials' diffuse/albedo color. This does not apply to vertex * colors or texture maps. */ - colorSpace: string; + colorSpace?: string; /** * A rotation that should be applied to the object root to make it upright. * More precisely, this quaternion transforms from "object space" @@ -356,7 +359,7 @@ export namespace poly_v1 { * preview, which is just a camera position setting and is *not* reflected * in this rotation. Please note: this is applicable only to the gLTF. */ - orientingRotation: Schema$Quaternion; + orientingRotation?: Schema$Quaternion; } /** * A [Quaternion](//en.wikipedia.org/wiki/Quaternion). Please note: if in the @@ -367,19 +370,19 @@ export namespace poly_v1 { /** * The scalar component. */ - w: number; + w?: number; /** * The x component. */ - x: number; + x?: number; /** * The y component. */ - y: number; + y?: number; /** * The z component. */ - z: number; + z?: number; } /** * A response message from a request to list. This is returned in the response @@ -391,20 +394,20 @@ export namespace poly_v1 { * complete it means the import failed. Please refer to the * asset_import_message field to understand what went wrong. */ - assetId: string; + assetId?: string; /** * The id of the asset import. */ - assetImportId: string; + assetImportId?: string; /** * The message from the asset import. This will contain any warnings (or - * in the case of failure - errors) that occurred during import. */ - assetImportMessages: Schema$AssetImportMessage[]; + assetImportMessages?: Schema$AssetImportMessage[]; /** * The publish URL for the asset. */ - publishUrl: string; + publishUrl?: string; } /** * Data about the user's asset. @@ -413,9 +416,10 @@ export namespace poly_v1 { /** * An Asset. */ - asset: Schema$Asset; + asset?: Schema$Asset; } + export class Resource$Assets { root: Poly; constructor(root: Poly) { @@ -442,23 +446,33 @@ export namespace poly_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Assets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Assets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Assets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Assets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Assets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Assets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign( @@ -500,26 +514,37 @@ export namespace poly_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Assets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Assets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Assets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Assets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Assets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Assets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign( @@ -541,6 +566,70 @@ export namespace poly_v1 { } } + export interface Params$Resource$Assets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. An asset's name in the form `assets/{ASSET_ID}`. + */ + name?: string; + } + export interface Params$Resource$Assets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Filter assets based on the specified category. Supported values are: + * `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`, + * `scenes`, `technology`, and `transport`. + */ + category?: string; + /** + * Return only assets that have been curated by the Poly team. + */ + curated?: boolean; + /** + * Return only assets with the matching format. Acceptable values are: + * `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`. + */ + format?: string; + /** + * One or more search terms to be matched against all text that Poly has + * indexed for assets, which includes display_name, description, and tags. + * Multiple keywords should be separated by spaces. + */ + keywords?: string; + /** + * Returns assets that are of the specified complexity or less. Defaults to + * COMPLEX. For example, a request for MEDIUM assets also includes SIMPLE + * assets. + */ + maxComplexity?: string; + /** + * Specifies an ordering for assets. Acceptable values are: `BEST`, + * `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets based on a + * combination of popularity and other features. + */ + orderBy?: string; + /** + * The maximum number of assets to be returned. This value must be between + * `1` and `100`. Defaults to `20`. + */ + pageSize?: number; + /** + * Specifies a continuation token from a previous search whose results were + * split into multiple pages. To get the next page, submit the same request + * specifying the value from next_page_token. + */ + pageToken?: string; + } + + export class Resource$Users { root: Poly; assets: Resource$Users$Assets; @@ -556,6 +645,8 @@ export namespace poly_v1 { return this.root; } } + + export class Resource$Users$Assets { root: Poly; constructor(root: Poly) { @@ -588,28 +679,39 @@ export namespace poly_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Users$Assets$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Assets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$Assets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Users$Assets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Assets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Assets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign( @@ -632,6 +734,48 @@ export namespace poly_v1 { } } + export interface Params$Resource$Users$Assets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Return only assets with the matching format. Acceptable values are: + * `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`. + */ + format?: string; + /** + * A valid user id. Currently, only the special value 'me', representing the + * currently-authenticated user is supported. To use 'me', you must pass an + * OAuth token with the request. + */ + name?: string; + /** + * Specifies an ordering for assets. Acceptable values are: `BEST`, + * `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets based on a + * combination of popularity and other features. + */ + orderBy?: string; + /** + * The maximum number of assets to be returned. This value must be between + * `1` and `100`. Defaults to `20`. + */ + pageSize?: number; + /** + * Specifies a continuation token from a previous search whose results were + * split into multiple pages. To get the next page, submit the same request + * specifying the value from next_page_token. + */ + pageToken?: string; + /** + * The visibility of the assets to be returned. Defaults to + * VISIBILITY_UNSPECIFIED which returns all assets. + */ + visibility?: string; + } + + export class Resource$Users$Likedassets { root: Poly; constructor(root: Poly) { @@ -662,28 +806,40 @@ export namespace poly_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Users$Likedassets$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Users$Likedassets$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Users$Likedassets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Users$Likedassets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Users$Likedassets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Likedassets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; const parameters = { options: Object.assign( @@ -705,4 +861,40 @@ export namespace poly_v1 { } } } + + export interface Params$Resource$Users$Likedassets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Return only assets with the matching format. Acceptable values are: + * `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`. + */ + format?: string; + /** + * A valid user id. Currently, only the special value 'me', representing the + * currently-authenticated user is supported. To use 'me', you must pass an + * OAuth token with the request. + */ + name?: string; + /** + * Specifies an ordering for assets. Acceptable values are: `BEST`, + * `NEWEST`, `OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, which ranks + * assets based on how recently they were liked. + */ + orderBy?: string; + /** + * The maximum number of assets to be returned. This value must be between + * `1` and `100`. Defaults to `20`. + */ + pageSize?: number; + /** + * Specifies a continuation token from a previous search whose results were + * split into multiple pages. To get the next page, submit the same request + * specifying the value from next_page_token. + */ + pageToken?: string; + } } diff --git a/src/apis/prediction/v1.2.ts b/src/apis/prediction/v1.2.ts deleted file mode 100644 index b203d15fe2c..00000000000 --- a/src/apis/prediction/v1.2.ts +++ /dev/null @@ -1,441 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace prediction_v1_2 { - /** - * Prediction API - * - * Lets you access a cloud hosted machine learning service that makes it easy - * to build smart apps - * - * @example - * const google = require('googleapis'); - * const prediction = google.prediction('v1.2'); - * - * @namespace prediction - * @type {Function} - * @version v1.2 - * @variation v1.2 - * @param {object=} options Options for Prediction - */ - export class Prediction { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - hostedmodels: Resource$Hostedmodels; - training: Resource$Training; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.hostedmodels = new Resource$Hostedmodels(this); - this.training = new Resource$Training(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.predict - * @desc Submit data and request a prediction - * @alias prediction.predict - * @memberOf! prediction(v1.2) - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket%2Fmydata resource in Google Storage - * @param {prediction(v1.2).Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + '/prediction/v1.2/training/{data}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Schema$Input { input: any; } - export interface Schema$Output { - id: string; - kind: string; - outputLabel: string; - outputMulti: any[]; - outputValue: number; - selfLink: string; - } - export interface Schema$Training { - id: string; - kind: string; - modelInfo: any; - selfLink: string; - trainingStatus: string; - } - export interface Schema$Update { - /** - * The true class label of this instance - */ - classLabel: string; - /** - * The input features for this instance - */ - csvInstance: any[]; - } - - export class Resource$Hostedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.hostedmodels.predict - * @desc Submit input and request an output against a hosted model - * @alias prediction.hostedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.hostedModelName The name of a hosted model - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + - '/prediction/v1.2/hostedmodels/{hostedModelName}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['hostedModelName'], - pathParams: ['hostedModelName'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Training { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.training.delete - * @desc Delete a trained model - * @alias prediction.training.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + '/prediction/v1.2/training/{data}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.get - * @desc Check training status of your model - * @alias prediction.training.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + '/prediction/v1.2/training/{data}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.insert - * @desc Begin training your model - * @alias prediction.training.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.data mybucket/mydata resource in Google Storage - * @param {().Training} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + '/prediction/v1.2/training') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.update - * @desc Add new data to a trained model - * @alias prediction.training.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {().Update} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + '/prediction/v1.2/training/{data}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/prediction/v1.3.ts b/src/apis/prediction/v1.3.ts deleted file mode 100644 index fafa923c9f2..00000000000 --- a/src/apis/prediction/v1.3.ts +++ /dev/null @@ -1,485 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace prediction_v1_3 { - /** - * Prediction API - * - * Lets you access a cloud hosted machine learning service that makes it easy - * to build smart apps - * - * @example - * const google = require('googleapis'); - * const prediction = google.prediction('v1.3'); - * - * @namespace prediction - * @type {Function} - * @version v1.3 - * @variation v1.3 - * @param {object=} options Options for Prediction - */ - export class Prediction { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - hostedmodels: Resource$Hostedmodels; - training: Resource$Training; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.hostedmodels = new Resource$Hostedmodels(this); - this.training = new Resource$Training(this); - } - - getRoot() { - return this.root; - } - } - - export interface Schema$Input { - /** - * Input to the model for a prediction - */ - input: any; - } - export interface Schema$Output { - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * The most likely class [Categorical models only]. - */ - outputLabel: string; - /** - * A list of classes with their estimated probabilities [Categorical models - * only]. - */ - outputMulti: any[]; - /** - * The estimated regression value [Regression models only]. - */ - outputValue: number; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Training { - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Model metadata. - */ - modelInfo: any; - /** - * A URL to re-request this resource. - */ - selfLink: string; - /** - * The current status of the training job. This can be one of following: - * RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND - */ - trainingStatus: string; - /** - * A class weighting function, which allows the importance weights for - * classes to be specified [Categorical models only]. - */ - utility: any[]; - } - export interface Schema$Update { - /** - * The true class label of this instance - */ - classLabel: string; - /** - * The input features for this instance - */ - csvInstance: any[]; - } - - export class Resource$Hostedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.hostedmodels.predict - * @desc Submit input and request an output against a hosted model - * @alias prediction.hostedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.hostedModelName The name of a hosted model - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + - '/prediction/v1.3/hostedmodels/{hostedModelName}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['hostedModelName'], - pathParams: ['hostedModelName'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Training { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.training.delete - * @desc Delete a trained model - * @alias prediction.training.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + '/prediction/v1.3/training/{data}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.get - * @desc Check training status of your model - * @alias prediction.training.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + '/prediction/v1.3/training/{data}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.insert - * @desc Begin training your model - * @alias prediction.training.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().Training} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + '/prediction/v1.3/training') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.predict - * @desc Submit data and request a prediction - * @alias prediction.training.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + '/prediction/v1.3/training/{data}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.training.update - * @desc Add new data to a trained model - * @alias prediction.training.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.data mybucket/mydata resource in Google Storage - * @param {().Update} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + '/prediction/v1.3/training/{data}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['data'], - pathParams: ['data'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/prediction/v1.4.ts b/src/apis/prediction/v1.4.ts deleted file mode 100644 index f7cc2f0b348..00000000000 --- a/src/apis/prediction/v1.4.ts +++ /dev/null @@ -1,505 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace prediction_v1_4 { - /** - * Prediction API - * - * Lets you access a cloud hosted machine learning service that makes it easy - * to build smart apps - * - * @example - * const google = require('googleapis'); - * const prediction = google.prediction('v1.4'); - * - * @namespace prediction - * @type {Function} - * @version v1.4 - * @variation v1.4 - * @param {object=} options Options for Prediction - */ - export class Prediction { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - hostedmodels: Resource$Hostedmodels; - trainedmodels: Resource$Trainedmodels; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.hostedmodels = new Resource$Hostedmodels(this); - this.trainedmodels = new Resource$Trainedmodels(this); - } - - getRoot() { - return this.root; - } - } - - export interface Schema$Input { - /** - * Input to the model for a prediction - */ - input: any; - } - export interface Schema$Output { - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * The most likely class label [Categorical models only]. - */ - outputLabel: string; - /** - * A list of class labels with their estimated probabilities [Categorical - * models only]. - */ - outputMulti: any[]; - /** - * The estimated regression value [Regression models only]. - */ - outputValue: number; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Training { - /** - * Data Analysis. - */ - dataAnalysis: any; - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Model metadata. - */ - modelInfo: any; - /** - * A URL to re-request this resource. - */ - selfLink: string; - /** - * Google storage location of the training data file. - */ - storageDataLocation: string; - /** - * Google storage location of the preprocessing pmml file. - */ - storagePMMLLocation: string; - /** - * Google storage location of the pmml model file. - */ - storagePMMLModelLocation: string; - /** - * The current status of the training job. This can be one of following: - * RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND - */ - trainingStatus: string; - /** - * A class weighting function, which allows the importance weights for class - * labels to be specified [Categorical models only]. - */ - utility: any[]; - } - export interface Schema$Update { - /** - * The input features for this instance - */ - csvInstance: any[]; - /** - * The class label of this instance - */ - label: string; - /** - * The generic output value - could be regression value or class label - */ - output: string; - } - - export class Resource$Hostedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.hostedmodels.predict - * @desc Submit input and request an output against a hosted model. - * @alias prediction.hostedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.hostedModelName The name of a hosted model. - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + - '/prediction/v1.4/hostedmodels/{hostedModelName}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['hostedModelName'], - pathParams: ['hostedModelName'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Trainedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.trainedmodels.delete - * @desc Delete a trained model. - * @alias prediction.trainedmodels.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + '/prediction/v1.4/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.get - * @desc Check training status of your model. - * @alias prediction.trainedmodels.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + '/prediction/v1.4/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.insert - * @desc Begin training your model. - * @alias prediction.trainedmodels.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().Training} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + '/prediction/v1.4/trainedmodels') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.predict - * @desc Submit model id and request a prediction - * @alias prediction.trainedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + '/prediction/v1.4/trainedmodels/{id}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.update - * @desc Add new data to a trained model. - * @alias prediction.trainedmodels.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {().Update} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + '/prediction/v1.4/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/prediction/v1.5.ts b/src/apis/prediction/v1.5.ts deleted file mode 100644 index 20bd34a1efe..00000000000 --- a/src/apis/prediction/v1.5.ts +++ /dev/null @@ -1,667 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace prediction_v1_5 { - /** - * Prediction API - * - * Lets you access a cloud hosted machine learning service that makes it easy - * to build smart apps - * - * @example - * const google = require('googleapis'); - * const prediction = google.prediction('v1.5'); - * - * @namespace prediction - * @type {Function} - * @version v1.5 - * @variation v1.5 - * @param {object=} options Options for Prediction - */ - export class Prediction { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - hostedmodels: Resource$Hostedmodels; - trainedmodels: Resource$Trainedmodels; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.hostedmodels = new Resource$Hostedmodels(this); - this.trainedmodels = new Resource$Trainedmodels(this); - } - - getRoot() { - return this.root; - } - } - - export interface Schema$Analyze { - /** - * Description of the data the model was trained on. - */ - dataDescription: any; - /** - * List of errors with the data. - */ - errors: any[]; - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Description of the model. - */ - modelDescription: any; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Input { - /** - * Input to the model for a prediction - */ - input: any; - } - export interface Schema$List { - /** - * List of models. - */ - items: Schema$Training[]; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Pagination token to fetch the next page, if one exists. - */ - nextPageToken: string; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Output { - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * The most likely class label [Categorical models only]. - */ - outputLabel: string; - /** - * A list of class labels with their estimated probabilities [Categorical - * models only]. - */ - outputMulti: any[]; - /** - * The estimated regression value [Regression models only]. - */ - outputValue: number; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Training { - /** - * Insert time of the model (as a RFC 3339 timestamp). - */ - created: string; - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Model metadata. - */ - modelInfo: any; - /** - * Type of predictive model (classification or regression) - */ - modelType: string; - /** - * A URL to re-request this resource. - */ - selfLink: string; - /** - * Google storage location of the training data file. - */ - storageDataLocation: string; - /** - * Google storage location of the preprocessing pmml file. - */ - storagePMMLLocation: string; - /** - * Google storage location of the pmml model file. - */ - storagePMMLModelLocation: string; - /** - * Training completion time (as a RFC 3339 timestamp). - */ - trainingComplete: string; - /** - * Instances to train model on. - */ - trainingInstances: any[]; - /** - * The current status of the training job. This can be one of following: - * RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND - */ - trainingStatus: string; - /** - * A class weighting function, which allows the importance weights for class - * labels to be specified [Categorical models only]. - */ - utility: any[]; - } - export interface Schema$Update { - /** - * The input features for this instance - */ - csvInstance: any[]; - /** - * The class label of this instance - */ - label: string; - /** - * The generic output value - could be regression value or class label - */ - output: string; - } - - export class Resource$Hostedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.hostedmodels.predict - * @desc Submit input and request an output against a hosted model. - * @alias prediction.hostedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.hostedModelName The name of a hosted model. - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + - '/prediction/v1.5/hostedmodels/{hostedModelName}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['hostedModelName'], - pathParams: ['hostedModelName'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Trainedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.trainedmodels.analyze - * @desc Get analysis of the model and the data the model was trained on. - * @alias prediction.trainedmodels.analyze - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @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 - */ - analyze(params?: any, options?: MethodOptions): - AxiosPromise; - analyze( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - analyze( - 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 + '/prediction/v1.5/trainedmodels/{id}/analyze') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.delete - * @desc Delete a trained model. - * @alias prediction.trainedmodels.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + '/prediction/v1.5/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.get - * @desc Check training status of your model. - * @alias prediction.trainedmodels.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + '/prediction/v1.5/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.insert - * @desc Begin training your model. - * @alias prediction.trainedmodels.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().Training} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + '/prediction/v1.5/trainedmodels') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.list - * @desc List available models. - * @alias prediction.trainedmodels.list - * @memberOf! () - * - * @param {object=} params Parameters for request - * @param {integer=} params.maxResults Maximum number of results to return - * @param {string=} params.pageToken Pagination token - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise; - list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - 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 + '/prediction/v1.5/trainedmodels/list') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: [], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.predict - * @desc Submit model id and request a prediction. - * @alias prediction.trainedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + '/prediction/v1.5/trainedmodels/{id}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.update - * @desc Add new data to a trained model. - * @alias prediction.trainedmodels.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {().Update} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - update(params?: any, options?: MethodOptions): - AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + '/prediction/v1.5/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['id'], - pathParams: ['id'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/prediction/v1.6.ts b/src/apis/prediction/v1.6.ts deleted file mode 100644 index 211de26b6c1..00000000000 --- a/src/apis/prediction/v1.6.ts +++ /dev/null @@ -1,1176 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace prediction_v1_6 { - /** - * Prediction API - * - * Lets you access a cloud hosted machine learning service that makes it easy - * to build smart apps - * - * @example - * const google = require('googleapis'); - * const prediction = google.prediction('v1.6'); - * - * @namespace prediction - * @type {Function} - * @version v1.6 - * @variation v1.6 - * @param {object=} options Options for Prediction - */ - export class Prediction { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - hostedmodels: Resource$Hostedmodels; - trainedmodels: Resource$Trainedmodels; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.hostedmodels = new Resource$Hostedmodels(this); - this.trainedmodels = new Resource$Trainedmodels(this); - } - - getRoot() { - return this.root; - } - } - - export interface Schema$Analyze { - /** - * Description of the data the model was trained on. - */ - dataDescription: any; - /** - * List of errors with the data. - */ - errors: any[]; - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Description of the model. - */ - modelDescription: any; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Input { - /** - * Input to the model for a prediction. - */ - input: any; - } - export interface Schema$Insert { - /** - * The unique name for the predictive model. - */ - id: string; - /** - * Type of predictive model (classification or regression). - */ - modelType: string; - /** - * The Id of the model to be copied over. - */ - sourceModel: string; - /** - * Google storage location of the training data file. - */ - storageDataLocation: string; - /** - * Google storage location of the preprocessing pmml file. - */ - storagePMMLLocation: string; - /** - * Google storage location of the pmml model file. - */ - storagePMMLModelLocation: string; - /** - * Instances to train model on. - */ - trainingInstances: any[]; - /** - * A class weighting function, which allows the importance weights for class - * labels to be specified (Categorical models only). - */ - utility: any[]; - } - export interface Schema$Insert2 { - /** - * Insert time of the model (as a RFC 3339 timestamp). - */ - created: string; - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Model metadata. - */ - modelInfo: any; - /** - * Type of predictive model (CLASSIFICATION or REGRESSION). - */ - modelType: string; - /** - * A URL to re-request this resource. - */ - selfLink: string; - /** - * Google storage location of the training data file. - */ - storageDataLocation: string; - /** - * Google storage location of the preprocessing pmml file. - */ - storagePMMLLocation: string; - /** - * Google storage location of the pmml model file. - */ - storagePMMLModelLocation: string; - /** - * Training completion time (as a RFC 3339 timestamp). - */ - trainingComplete: string; - /** - * The current status of the training job. This can be one of following: - * RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND - */ - trainingStatus: string; - } - export interface Schema$List { - /** - * List of models. - */ - items: Schema$Insert2[]; - /** - * What kind of resource this is. - */ - kind: string; - /** - * Pagination token to fetch the next page, if one exists. - */ - nextPageToken: string; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Output { - /** - * The unique name for the predictive model. - */ - id: string; - /** - * What kind of resource this is. - */ - kind: string; - /** - * The most likely class label (Categorical models only). - */ - outputLabel: string; - /** - * A list of class labels with their estimated probabilities (Categorical - * models only). - */ - outputMulti: any[]; - /** - * The estimated regression value (Regression models only). - */ - outputValue: string; - /** - * A URL to re-request this resource. - */ - selfLink: string; - } - export interface Schema$Update { - /** - * The input features for this instance. - */ - csvInstance: any[]; - /** - * The generic output value - could be regression or class label. - */ - output: string; - } - - export class Resource$Hostedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.hostedmodels.predict - * @desc Submit input and request an output against a hosted model. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The name of a hosted model. - * hostedModelName: 'my-hosted-model-name', // TODO: Update placeholder - * value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * prediction.hostedmodels.predict(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.hostedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.hostedModelName The name of a hosted model. - * @param {string} params.project The project associated with the model. - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + - '/prediction/v1.6/projects/{project}/hostedmodels/{hostedModelName}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'hostedModelName'], - pathParams: ['hostedModelName', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Trainedmodels { - root: Prediction; - constructor(root: Prediction) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * prediction.trainedmodels.analyze - * @desc Get analysis of the model and the data the model was trained on. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The unique name for the predictive model. - * id: 'my-id', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * prediction.trainedmodels.analyze(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.analyze - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {string} params.project The project associated with the model. - * @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 - */ - analyze(params?: any, options?: MethodOptions): - AxiosPromise; - analyze( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - analyze( - 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 + - '/prediction/v1.6/projects/{project}/trainedmodels/{id}/analyze') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'id'], - pathParams: ['id', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.delete - * @desc Delete a trained model. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The unique name for the predictive model. - * id: 'my-id', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * prediction.trainedmodels.delete(request, function(err) { - * if (err) { - * console.error(err); - * return; - * } - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {string} params.project The project associated with the model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + - '/prediction/v1.6/projects/{project}/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['project', 'id'], - pathParams: ['id', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.get - * @desc Check training status of your model. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The unique name for the predictive model. - * id: 'my-id', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * prediction.trainedmodels.get(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {string} params.project The project associated with the model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/prediction/v1.6/projects/{project}/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'id'], - pathParams: ['id', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.insert - * @desc Train a Prediction API model. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * prediction.trainedmodels.insert(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project associated with the model. - * @param {().Insert} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert(params?: any, options?: MethodOptions): AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + - '/prediction/v1.6/projects/{project}/trainedmodels') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.list - * @desc List available models. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * auth: authClient, - * }; - * - * var handlePage = function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * var itemsPage = response['items']; - * if (!itemsPage) { - * return; - * } - * for (var i = 0; i < itemsPage.length; i++) { - * // TODO: Change code below to process each resource in `itemsPage`: - * console.log(JSON.stringify(itemsPage[i], null, 2)); - * } - * - * if (response.nextPageToken) { - * request.pageToken = response.nextPageToken; - * prediction.trainedmodels.list(request, handlePage); - * } - * }; - * - * prediction.trainedmodels.list(request, handlePage); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.maxResults Maximum number of results to return. - * @param {string=} params.pageToken Pagination token. - * @param {string} params.project The project associated with the model. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise; - list( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - 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 + - '/prediction/v1.6/projects/{project}/trainedmodels/list') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project'], - pathParams: ['project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.predict - * @desc Submit model id and request a prediction. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The unique name for the predictive model. - * id: 'my-id', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * prediction.trainedmodels.predict(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.predict - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {string} params.project The project associated with the model. - * @param {().Input} 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 - */ - predict(params?: any, options?: MethodOptions): AxiosPromise; - predict( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - predict( - 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 + - '/prediction/v1.6/projects/{project}/trainedmodels/{id}/predict') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'id'], - pathParams: ['id', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * prediction.trainedmodels.update - * @desc Add new data to a trained model. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Prediction API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/prediction - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var prediction = google.prediction('v1.6'); - * - * authorize(function(authClient) { - * var request = { - * // The project associated with the model. - * project: 'my-project', // TODO: Update placeholder value. - * - * // The unique name for the predictive model. - * id: 'my-id', // TODO: Update placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. All existing - * properties - * // will be replaced. - * }, - * - * auth: authClient, - * }; - * - * prediction.trainedmodels.update(request, function(err, response) { - * if (err) { - * console.error(err); - * return; - * } - * - * // TODO: Change code below to process the `response` object: - * console.log(JSON.stringify(response, null, 2)); - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias prediction.trainedmodels.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The unique name for the predictive model. - * @param {string} params.project The project associated with the model. - * @param {().Update} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - update(params?: any, options?: MethodOptions): AxiosPromise; - update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/prediction/v1.6/projects/{project}/trainedmodels/{id}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT' - }, - options), - params, - requiredParams: ['project', 'id'], - pathParams: ['id', 'project'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/proximitybeacon/v1beta1.ts b/src/apis/proximitybeacon/v1beta1.ts index 75cd94f92e3..c7d83cef8c0 100644 --- a/src/apis/proximitybeacon/v1beta1.ts +++ b/src/apis/proximitybeacon/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace proximitybeacon_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Proximity Beacon API * @@ -82,11 +85,11 @@ export namespace proximitybeacon_v1beta1 { * encoding should be of the binary byte-stream and not any textual (such as * hex) representation thereof. Required. */ - id: string; + id?: string; /** * Specifies the identifier type. Required. */ - type: string; + type?: string; } /** * A subset of attachment information served via the @@ -97,7 +100,7 @@ export namespace proximitybeacon_v1beta1 { /** * An opaque data container for client-provided data. */ - data: string; + data?: string; /** * The distance away from the beacon at which this attachment should be * delivered to a mobile app. Setting this to a value greater than zero @@ -110,14 +113,14 @@ export namespace proximitybeacon_v1beta1 { * Optional. When not set or zero, the attachment should be delivered at the * beacon's outer limit of detection. */ - maxDistanceMeters: number; + maxDistanceMeters?: number; /** * Specifies what kind of attachment this is. Tells a client how to * interpret the `data` field. Format is * <var>namespace/type</var>, for example * <code>scrupulous-wombat-12345/welcome-message</code> */ - namespacedType: string; + namespacedType?: string; } /** * Details of a beacon device. @@ -131,7 +134,7 @@ export namespace proximitybeacon_v1beta1 { * Eddystone-UID that identifies the beacon and links it to its attachments. * The stable Eddystone-UID is only used for administering the beacon. */ - advertisedId: Schema$AdvertisedId; + advertisedId?: Schema$AdvertisedId; /** * Resource name of this beacon. A beacon name has the format * "beacons/N!beaconId" where the beaconId is the base16 ID @@ -140,12 +143,12 @@ export namespace proximitybeacon_v1beta1 { * AltBeacon. This field must be left empty when registering. After reading * a beacon, clients can use the name for future operations. */ - beaconName: string; + beaconName?: string; /** * Free text used to identify and describe the beacon. Maximum length 140 * characters. Optional. */ - description: string; + description?: string; /** * Write-only registration parameters for beacons using Eddystone-EID * (remotely resolved ephemeral ID) format. This information will not be @@ -153,35 +156,35 @@ export namespace proximitybeacon_v1beta1 { * `advertised_id` field must contain an ID of type Eddystone-UID. Any other * ID type will result in an error. */ - ephemeralIdRegistration: Schema$EphemeralIdRegistration; + ephemeralIdRegistration?: Schema$EphemeralIdRegistration; /** * Expected location stability. This is set when the beacon is registered or * updated, not automatically detected in any way. Optional. */ - expectedStability: string; + expectedStability?: string; /** * The indoor level information for this beacon, if known. As returned by * the Google Maps API. Optional. */ - indoorLevel: Schema$IndoorLevel; + indoorLevel?: Schema$IndoorLevel; /** * The location of the beacon, expressed as a latitude and longitude pair. * This location is given when the beacon is registered or updated. It does * not necessarily indicate the actual current location of the beacon. * Optional. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; /** * The [Google Places API](/places/place-id) Place ID of the place where the * beacon is deployed. This is given when the beacon is registered or * updated, not automatically detected in any way. Optional. */ - placeId: string; + placeId?: string; /** * Properties of the beacon device, for example battery type or firmware * version. Optional. */ - properties: any; + properties?: any; /** * Some beacons may require a user to provide an authorization key before * changing any of its configuration (e.g. broadcast frames, transmit @@ -193,11 +196,11 @@ export namespace proximitybeacon_v1beta1 { * authorized to configure the beacon. Note that this key grants nothing on * the service, only on the beacon itself. */ - provisioningKey: string; + provisioningKey?: string; /** * Current status of the beacon. Required. */ - status: string; + status?: string; } /** * Project-specific data associated with a beacon. @@ -208,18 +211,18 @@ export namespace proximitybeacon_v1beta1 { * <code>beacons/<var>beacon_id</var>/attachments/<var>attachment_id</var></code>. * Leave this empty on creation. */ - attachmentName: string; + attachmentName?: string; /** * The UTC time when this attachment was created, in milliseconds since the * UNIX epoch. */ - creationTimeMs: string; + creationTimeMs?: string; /** * An opaque data container for client-provided data. Must be * [base64](http://tools.ietf.org/html/rfc4648#section-4) encoded in HTTP * requests, and will be so encoded (with padding) in responses. Required. */ - data: string; + data?: string; /** * The distance away from the beacon at which this attachment should be * delivered to a mobile app. Setting this to a value greater than zero @@ -233,7 +236,7 @@ export namespace proximitybeacon_v1beta1 { * beacon's outer limit of detection. Negative values are invalid and * return an error. */ - maxDistanceMeters: number; + maxDistanceMeters?: number; /** * Specifies what kind of attachment this is. Tells a client how to * interpret the `data` field. Format is @@ -241,7 +244,7 @@ export namespace proximitybeacon_v1beta1 { * between clients. Type describes the type of `data`, for use by the client * when parsing the `data` field. Required. */ - namespacedType: string; + namespacedType?: string; } /** * A subset of beacon information served via the `beaconinfo.getforobserved` @@ -251,16 +254,16 @@ export namespace proximitybeacon_v1beta1 { /** * The ID advertised by the beacon. */ - advertisedId: Schema$AdvertisedId; + advertisedId?: Schema$AdvertisedId; /** * Attachments matching the type(s) requested. May be empty if no attachment * types were requested. */ - attachments: Schema$AttachmentInfo[]; + attachments?: Schema$AttachmentInfo[]; /** * The name under which the beacon is registered. */ - beaconName: string; + beaconName?: string; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -276,16 +279,16 @@ export namespace proximitybeacon_v1beta1 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * Response for a request to delete attachments. @@ -294,7 +297,7 @@ export namespace proximitybeacon_v1beta1 { /** * The number of attachments that were deleted. */ - numDeleted: number; + numDeleted?: number; } /** * Diagnostics for a single beacon. @@ -303,19 +306,19 @@ export namespace proximitybeacon_v1beta1 { /** * An unordered list of Alerts that the beacon has. */ - alerts: string[]; + alerts?: string[]; /** * Resource name of the beacon. For Eddystone-EID beacons, this may be the * beacon's current EID, or the beacon's "stable" * Eddystone-UID. */ - beaconName: string; + beaconName?: string; /** * The date when the battery is expected to be low. If the value is missing * then there is no estimate for when the battery will be low. This value is * only an estimate, not an exact date. */ - estimatedLowBatteryDate: Schema$Date; + estimatedLowBatteryDate?: Schema$Date; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -352,13 +355,13 @@ export namespace proximitybeacon_v1beta1 { * key exchange. When this field is populated, `service_ecdh_public_key` * must also be populated, and `beacon_identity_key` must not be. */ - beaconEcdhPublicKey: string; + beaconEcdhPublicKey?: string; /** * The private key of the beacon. If this field is populated, * `beacon_ecdh_public_key` and `service_ecdh_public_key` must not be * populated. */ - beaconIdentityKey: string; + beaconIdentityKey?: string; /** * The initial clock value of the beacon. The beacon's clock must have * begun counting at this value immediately prior to transmitting this value @@ -366,7 +369,7 @@ export namespace proximitybeacon_v1beta1 { * the service risks registration or resolution failures. If a value is not * provided, the default is zero. */ - initialClockValue: string; + initialClockValue?: string; /** * An initial ephemeral ID calculated using the clock value submitted as * `initial_clock_value`, and the secret key generated by the Diffie-Hellman @@ -374,7 +377,7 @@ export namespace proximitybeacon_v1beta1 { * `service_ecdh_public_key`. This initial EID value will be used by the * service to confirm that the key exchange process was successful. */ - initialEid: string; + initialEid?: string; /** * Indicates the nominal period between each rotation of the beacon's * ephemeral ID. "Nominal" because the beacon should randomize the @@ -384,13 +387,13 @@ export namespace proximitybeacon_v1beta1 { * beacon's clock: when the scaler value is K, the beacon will begin * broadcasting a new ephemeral ID on average every 2^K seconds. */ - rotationPeriodExponent: number; + rotationPeriodExponent?: number; /** * The service's public key used for the Elliptic curve Diffie-Hellman * key exchange. When this field is populated, `beacon_ecdh_public_key` must * also be populated, and `beacon_identity_key` must not be. */ - serviceEcdhPublicKey: string; + serviceEcdhPublicKey?: string; } /** * Information a client needs to provision and register beacons that broadcast @@ -404,17 +407,17 @@ export namespace proximitybeacon_v1beta1 { * Indicates the maximum rotation period supported by the service. See * EddystoneEidRegistration.rotation_period_exponent */ - maxRotationPeriodExponent: number; + maxRotationPeriodExponent?: number; /** * Indicates the minimum rotation period supported by the service. See * EddystoneEidRegistration.rotation_period_exponent */ - minRotationPeriodExponent: number; + minRotationPeriodExponent?: number; /** * The beacon service's public key for use by a beacon to derive its * Identity Key using Elliptic Curve Diffie-Hellman key exchange. */ - serviceEcdhPublicKey: string; + serviceEcdhPublicKey?: string; } /** * Request for beacon and attachment information about beacons that a mobile @@ -428,11 +431,11 @@ export namespace proximitybeacon_v1beta1 { * <var>namespace/type</var>. Accepts `*` to specify all types * in all namespaces owned by the client. Optional. */ - namespacedTypes: string[]; + namespacedTypes?: string[]; /** * The beacons that the client has encountered. At least one must be given. */ - observations: Schema$Observation[]; + observations?: Schema$Observation[]; } /** * Information about the requested beacons, optionally including attachment @@ -443,7 +446,7 @@ export namespace proximitybeacon_v1beta1 { * Public information about beacons. May be empty if the request matched no * beacons. */ - beacons: Schema$BeaconInfo[]; + beacons?: Schema$BeaconInfo[]; } /** * Indoor level, a human-readable string as returned by Google Maps APIs, @@ -453,7 +456,7 @@ export namespace proximitybeacon_v1beta1 { /** * The name of this level. */ - name: string; + name?: string; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -466,11 +469,11 @@ export namespace proximitybeacon_v1beta1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * Response to `ListBeaconAttachments` that contains the requested @@ -480,7 +483,7 @@ export namespace proximitybeacon_v1beta1 { /** * The attachments that corresponded to the request params. */ - attachments: Schema$BeaconAttachment[]; + attachments?: Schema$BeaconAttachment[]; } /** * Response that contains list beacon results and pagination help. @@ -489,17 +492,17 @@ export namespace proximitybeacon_v1beta1 { /** * The beacons that matched the search criteria. */ - beacons: Schema$Beacon[]; + beacons?: Schema$Beacon[]; /** * An opaque pagination token that the client may provide in their next * request to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Estimate of the total number of beacons matched by the query. Higher * values may be less accurate. */ - totalCount: string; + totalCount?: string; } /** * Response that contains the requested diagnostics. @@ -508,12 +511,12 @@ export namespace proximitybeacon_v1beta1 { /** * The diagnostics matching the given request. */ - diagnostics: Schema$Diagnostics[]; + diagnostics?: Schema$Diagnostics[]; /** * Token that can be used for pagination. Returned only if the request * matches more beacons than can be returned in this response. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response to ListNamespacesRequest that contains all the project's @@ -523,7 +526,7 @@ export namespace proximitybeacon_v1beta1 { /** * The attachments that corresponded to the request params. */ - namespaces: Schema$Namespace[]; + namespaces?: Schema$Namespace[]; } /** * An attachment namespace defines read and write access for all the @@ -536,12 +539,12 @@ export namespace proximitybeacon_v1beta1 { * Resource name of this namespace. Namespaces names have the format: * <code>namespaces/<var>namespace</var></code>. */ - namespaceName: string; + namespaceName?: string; /** * Specifies what clients may receive attachments under this namespace via * `beaconinfo.getforobserved`. */ - servingVisibility: string; + servingVisibility?: string; } /** * Represents one beacon observed once. @@ -553,19 +556,20 @@ export namespace proximitybeacon_v1beta1 { * authorized to resolve the given beacon. Otherwise no data will be * returned for that beacon. Required. */ - advertisedId: Schema$AdvertisedId; + advertisedId?: Schema$AdvertisedId; /** * The array of telemetry bytes received from the beacon. The server is * responsible for parsing it. This field may frequently be empty, as with a * beacon that transmits telemetry only occasionally. */ - telemetry: string; + telemetry?: string; /** * Time when the beacon was observed. */ - timestampMs: string; + timestampMs?: string; } + export class Resource$Beaconinfo { root: Proximitybeacon; constructor(root: Proximitybeacon) { @@ -594,31 +598,49 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getforobserved(params?: any, options?: MethodOptions): + getforobserved( + params?: Params$Resource$Beaconinfo$Getforobserved, + options?: MethodOptions): AxiosPromise; getforobserved( - params?: any, - options?: MethodOptions| + params: Params$Resource$Beaconinfo$Getforobserved, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + getforobserved( + params: Params$Resource$Beaconinfo$Getforobserved, + callback: + BodyResponseCallback): + void; + getforobserved( + callback: BodyResponseCallback): void; getforobserved( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Beaconinfo$Getforobserved| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Beaconinfo$Getforobserved; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beaconinfo$Getforobserved; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -644,6 +666,19 @@ export namespace proximitybeacon_v1beta1 { } } + export interface Params$Resource$Beaconinfo$Getforobserved { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GetInfoForObservedBeaconsRequest; + } + + export class Resource$Beacons { root: Proximitybeacon; attachments: Resource$Beacons$Attachments; @@ -679,25 +714,37 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - activate(params?: any, options?: MethodOptions): AxiosPromise; activate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Beacons$Activate, + options?: MethodOptions): AxiosPromise; activate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Beacons$Activate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + activate( + params: Params$Resource$Beacons$Activate, + callback: BodyResponseCallback): void; + activate(callback: BodyResponseCallback): void; + activate( + paramsOrCallback?: Params$Resource$Beacons$Activate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Beacons$Activate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Activate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -741,26 +788,38 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deactivate(params?: any, options?: MethodOptions): - AxiosPromise; deactivate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Beacons$Deactivate, + options?: MethodOptions): AxiosPromise; + deactivate( + params: Params$Resource$Beacons$Deactivate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deactivate( + params: Params$Resource$Beacons$Deactivate, + callback: BodyResponseCallback): void; + deactivate(callback: BodyResponseCallback): void; deactivate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Deactivate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Beacons$Deactivate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Deactivate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -803,26 +862,38 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - decommission(params?: any, options?: MethodOptions): - AxiosPromise; decommission( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Beacons$Decommission, + options?: MethodOptions): AxiosPromise; + decommission( + params: Params$Resource$Beacons$Decommission, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + decommission( + params: Params$Resource$Beacons$Decommission, + callback: BodyResponseCallback): void; + decommission(callback: BodyResponseCallback): void; decommission( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Decommission| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Beacons$Decommission; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Decommission; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -865,25 +936,36 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Beacons$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Beacons$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Beacons$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Beacons$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -929,23 +1011,33 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Beacons$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Beacons$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Beacons$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Beacons$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Beacons$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -989,28 +1081,37 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Beacons$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Beacons$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Beacons$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Beacons$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Beacons$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1051,26 +1152,37 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - register(params?: any, options?: MethodOptions): - AxiosPromise; register( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Beacons$Register, + options?: MethodOptions): AxiosPromise; + register( + params: Params$Resource$Beacons$Register, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + register( + params: Params$Resource$Beacons$Register, + callback: BodyResponseCallback): void; + register(callback: BodyResponseCallback): void; register( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Register| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Beacons$Register; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Register; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1117,25 +1229,36 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Beacons$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Beacons$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Beacons$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Beacons$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1158,6 +1281,234 @@ export namespace proximitybeacon_v1beta1 { } } } + + export interface Params$Resource$Beacons$Activate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Beacon that should be activated. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * The project id of the beacon to activate. If the project id is not + * specified then the project making the request is used. The project id + * must match the project that owns the beacon. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$Deactivate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Beacon that should be deactivated. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * The project id of the beacon to deactivate. If the project id is not + * specified then the project making the request is used. The project id + * must match the project that owns the beacon. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$Decommission { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Beacon that should be decommissioned. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * of the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * The project id of the beacon to decommission. If the project id is not + * specified then the project making the request is used. The project id + * must match the project that owns the beacon. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Beacon that should be deleted. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * The project id of the beacon to delete. If not provided, the project that + * is making the request is used. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of this beacon. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * The project id of the beacon to request. If the project id is not + * specified then the project making the request is used. The project id + * must match the project that owns the beacon. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of records to return for this request, up to a + * server-defined upper limit. + */ + pageSize?: number; + /** + * A pagination token obtained from a previous request to list beacons. + */ + pageToken?: string; + /** + * The project id to list beacons under. If not present then the project + * credential that made the request is used as the project. Optional. + */ + projectId?: string; + /** + * Filter query string that supports the following field filters: * + * **description:`""`** For example: **description:"Room 3"** + * Returns beacons whose description matches tokens in the string "Room 3" + * (not necessarily that exact string). The string must be double-quoted. + * * **status:``** For example: **status:active** Returns beacons + * whose status matches the given value. Values must be one of the + * Beacon.Status enum values (case insensitive). Accepts multiple filters + * which will be combined with OR logic. * **stability:``** For + * example: **stability:mobile** Returns beacons whose expected stability + * matches the given value. Values must be one of the Beacon.Stability + * enum values (case insensitive). Accepts multiple filters which will be + * combined with OR logic. * **place\_id:`""`** For example: + * **place\_id:"ChIJVSZzVR8FdkgRXGmmm6SslKw="** Returns beacons explicitly + * registered at the given place, expressed as a Place ID obtained from + * [Google Places API](/places/place-id). Does not match places inside the + * given place. Does not consider the beacon's actual location (which may + * be different from its registered place). Accepts multiple filters that + * will be combined with OR logic. The place ID must be double-quoted. * + * **registration\_time`[<|>|<=|>=]`** For example: + * **registration\_time>=1433116800** Returns beacons whose registration + * time matches the given filter. Supports the operators: <, >, <=, and + * >=. Timestamp must be expressed as an integer number of seconds since + * midnight January 1, 1970 UTC. Accepts at most two filters that will be + * combined with AND logic, to support "between" semantics. If more than + * two are supplied, the latter ones are ignored. * **lat:` + * lng: radius:`** For example: **lat:51.1232343 + * lng:-1.093852 radius:1000** Returns beacons whose registered location + * is within the given circle. When any of these fields are given, all are + * required. Latitude and longitude must be decimal degrees between -90.0 + * and 90.0 and between -180.0 and 180.0 respectively. Radius must be an + * integer number of meters between 10 and 1,000,000 (1000 km). * + * **property:`"="`** For example: + * **property:"battery-type=CR2032"** Returns beacons which have a + * property of the given name and value. Supports multiple filters which + * will be combined with OR logic. The entire name=value string must be + * double-quoted as one string. * **attachment\_type:`""`** For + * example: **attachment_type:"my-namespace/my-type"** Returns beacons + * having at least one attachment of the given namespaced type. Supports + * "any within this namespace" via the partial wildcard syntax: + * "my-namespace/x". Supports multiple filters which will be combined with + * OR logic. The string must be double-quoted. * + * **indoor\_level:`""`** For example: **indoor\_level:"1"** + * Returns beacons which are located on the given indoor level. Accepts + * multiple filters that will be combined with OR logic. Multiple filters + * on the same field are combined with OR logic (except registration_time + * which is combined with AND logic). Multiple filters on different fields + * are combined with AND logic. Filters should be separated by spaces. As + * with any HTTP query string parameter, the whole filter expression must be + * URL-encoded. Example REST request: `GET + * /v1beta1/beacons?q=status:active%20lat:51.123%20lng:-1.095%20radius:1000` + */ + q?: string; + } + export interface Params$Resource$Beacons$Register { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project id of the project the beacon will be registered to. If the + * project id is not specified then the project making the request is used. + * Optional. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Beacon; + } + export interface Params$Resource$Beacons$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of this beacon. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone, `1` for iBeacon, or `5` for AltBeacon. This field must be + * left empty when registering. After reading a beacon, clients can use the + * name for future operations. + */ + beaconName?: string; + /** + * The project id of the beacon to update. If the project id is not + * specified then the project making the request is used. The project id + * must match the project that owns the beacon. Optional. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Beacon; + } + export class Resource$Beacons$Attachments { root: Proximitybeacon; constructor(root: Proximitybeacon) { @@ -1192,29 +1543,42 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchDelete(params?: any, options?: MethodOptions): + batchDelete( + params?: Params$Resource$Beacons$Attachments$Batchdelete, + options?: MethodOptions): AxiosPromise; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Beacons$Attachments$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + batchDelete( + params: Params$Resource$Beacons$Attachments$Batchdelete, + callback: BodyResponseCallback): void; + batchDelete( + callback: BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Beacons$Attachments$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Beacons$Attachments$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Attachments$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1263,26 +1627,39 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Beacons$Attachments$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Beacons$Attachments$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Beacons$Attachments$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Attachments$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Beacons$Attachments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Attachments$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1326,25 +1703,38 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Beacons$Attachments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Beacons$Attachments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Beacons$Attachments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Beacons$Attachments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Beacons$Attachments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Attachments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1390,29 +1780,44 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Beacons$Attachments$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Beacons$Attachments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Beacons$Attachments$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Beacons$Attachments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Beacons$Attachments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Attachments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1438,6 +1843,114 @@ export namespace proximitybeacon_v1beta1 { } } + export interface Params$Resource$Beacons$Attachments$Batchdelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The beacon whose attachments should be deleted. A beacon name has the + * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast + * by the beacon and N is a code for the beacon's type. Possible values are + * `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * Specifies the namespace and type of attachments to delete in + * `namespace/type` format. Accepts `x/x` to specify "all types in all + * namespaces". Optional. + */ + namespacedType?: string; + /** + * The project id to delete beacon attachments under. This field can be used + * when "*" is specified to mean all attachment namespaces. Projects may + * have multiple attachments with multiple namespaces. If "*" is specified + * and the projectId string is empty, then the project making the request is + * used. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$Attachments$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Beacon on which the attachment should be created. A beacon name has the + * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast + * by the beacon and N is a code for the beacon's type. Possible values are + * `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * The project id of the project the attachment will belong to. If the + * project id is not specified then the project making the request is used. + * Optional. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$BeaconAttachment; + } + export interface Params$Resource$Beacons$Attachments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The attachment name (`attachmentName`) of the attachment to remove. For + * example: + * `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For + * Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the + * beacon's current EID, or its "stable" Eddystone-UID. Required. + */ + attachmentName?: string; + /** + * The project id of the attachment to delete. If not provided, the project + * that is making the request is used. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Beacons$Attachments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Beacon whose attachments should be fetched. A beacon name has the format + * "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the + * beacon and N is a code for the beacon's type. Possible values are `3` for + * Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for + * AltBeacon. For Eddystone-EID beacons, you may use either the current EID + * or the beacon's "stable" UID. Required. + */ + beaconName?: string; + /** + * Specifies the namespace and type of attachment to include in response in + * namespace/type format. Accepts `x/x` to specify "all types in + * all namespaces". + */ + namespacedType?: string; + /** + * The project id to list beacon attachments under. This field can be used + * when "*" is specified to mean all attachment namespaces. Projects may + * have multiple attachments with multiple namespaces. If "*" is specified + * and the projectId string is empty, then the project making the request is + * used. Optional. + */ + projectId?: string; + } + + export class Resource$Beacons$Diagnostics { root: Proximitybeacon; constructor(root: Proximitybeacon) { @@ -1472,28 +1985,40 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Beacons$Diagnostics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Beacons$Diagnostics$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Beacons$Diagnostics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Beacons$Diagnostics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Beacons$Diagnostics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Beacons$Diagnostics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1517,6 +2042,40 @@ export namespace proximitybeacon_v1beta1 { } } + export interface Params$Resource$Beacons$Diagnostics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requests only beacons that have the given alert. For example, to find + * beacons that have low batteries use `alert_filter=LOW_BATTERY`. + */ + alertFilter?: string; + /** + * Beacon that the diagnostics are for. + */ + beaconName?: string; + /** + * Specifies the maximum number of results to return. Defaults to 10. + * Maximum 1000. Optional. + */ + pageSize?: number; + /** + * Requests results that occur after the `page_token`, obtained from the + * response to a previous request. Optional. + */ + pageToken?: string; + /** + * Requests only diagnostic records for the given project id. If not set, + * then the project making the request will be used for looking up + * diagnostic records. Optional. + */ + projectId?: string; + } + + export class Resource$Namespaces { root: Proximitybeacon; @@ -1548,28 +2107,38 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Namespaces$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Namespaces$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Namespaces$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Namespaces$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Namespaces$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Namespaces$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1608,26 +2177,38 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Namespaces$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Namespaces$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Namespaces$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Namespaces$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Namespaces$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Namespaces$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1651,6 +2232,41 @@ export namespace proximitybeacon_v1beta1 { } } + export interface Params$Resource$Namespaces$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project id to list namespaces under. Optional. + */ + projectId?: string; + } + export interface Params$Resource$Namespaces$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name of this namespace. Namespaces names have the format: + * namespaces/namespace. + */ + namespaceName?: string; + /** + * The project id of the namespace to update. If the project id is not + * specified then the project making the request is used. The project id + * must match the project that owns the beacon. Optional. + */ + projectId?: string; + /** + * Request body metadata + */ + resource?: Schema$Namespace; + } + + export class Resource$V1beta1 { root: Proximitybeacon; constructor(root: Proximitybeacon) { @@ -1680,29 +2296,44 @@ export namespace proximitybeacon_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getEidparams(params?: any, options?: MethodOptions): + getEidparams( + params?: Params$Resource$V1beta1$Geteidparams, options?: MethodOptions): AxiosPromise; getEidparams( - params?: any, - options?: MethodOptions| + params: Params$Resource$V1beta1$Geteidparams, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; getEidparams( - params?: any, - options?: MethodOptions| + params: Params$Resource$V1beta1$Geteidparams, + callback: BodyResponseCallback): + void; + getEidparams( + callback: BodyResponseCallback): + void; + getEidparams( + paramsOrCallback?: Params$Resource$V1beta1$Geteidparams| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$V1beta1$Geteidparams; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1beta1$Geteidparams; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://proximitybeacon.googleapis.com/'; const parameters = { @@ -1727,4 +2358,11 @@ export namespace proximitybeacon_v1beta1 { } } } + + export interface Params$Resource$V1beta1$Geteidparams { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index cdce1ae91dc..3e09b240f4d 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace pubsub_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Pub/Sub API * @@ -74,7 +77,7 @@ export namespace pubsub_v1 { * The acknowledgment ID for the messages being acknowledged that was * returned by the Pub/Sub system in the `Pull` response. Must not be empty. */ - ackIds: string[]; + ackIds?: string[]; } /** * Associates `members` with a `role`. @@ -96,12 +99,12 @@ export namespace pubsub_v1 { * that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * Request for the `CreateSnapshot` method. @@ -117,7 +120,7 @@ export namespace pubsub_v1 { * successful completion of the CreateSnapshot request. Format is * `projects/{project}/subscriptions/{sub}`. */ - subscription: string; + subscription?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -135,11 +138,11 @@ export namespace pubsub_v1 { * If not empty, indicates that there may be more snapshot that match the * request; this value should be passed in a new `ListSnapshotsRequest`. */ - nextPageToken: string; + nextPageToken?: string; /** * The resulting snapshots. */ - snapshots: Schema$Snapshot[]; + snapshots?: Schema$Snapshot[]; } /** * Response for the `ListSubscriptions` method. @@ -150,11 +153,11 @@ export namespace pubsub_v1 { * the request; this value should be passed in a new * `ListSubscriptionsRequest` to get more subscriptions. */ - nextPageToken: string; + nextPageToken?: string; /** * The subscriptions that match the request. */ - subscriptions: Schema$Subscription[]; + subscriptions?: Schema$Subscription[]; } /** * Response for the `ListTopicSnapshots` method. [ALPHA] This method is a part @@ -166,11 +169,11 @@ export namespace pubsub_v1 { * request; this value should be passed in a new `ListTopicSnapshotsRequest` * to get more snapshots. */ - nextPageToken: string; + nextPageToken?: string; /** * The names of the snapshots that match the request. */ - snapshots: string[]; + snapshots?: string[]; } /** * Response for the `ListTopics` method. @@ -180,11 +183,11 @@ export namespace pubsub_v1 { * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. */ - nextPageToken: string; + nextPageToken?: string; /** * The resulting topics. */ - topics: Schema$Topic[]; + topics?: Schema$Topic[]; } /** * Response for the `ListTopicSubscriptions` method. @@ -195,11 +198,11 @@ export namespace pubsub_v1 { * the request; this value should be passed in a new * `ListTopicSubscriptionsRequest` to get more subscriptions. */ - nextPageToken: string; + nextPageToken?: string; /** * The names of the subscriptions that match the request. */ - subscriptions: string[]; + subscriptions?: string[]; } /** * Request for the ModifyAckDeadline method. @@ -213,11 +216,11 @@ export namespace pubsub_v1 { * pull request. The minimum deadline you can specify is 0 seconds. The * maximum deadline you can specify is 600 seconds (10 minutes). */ - ackDeadlineSeconds: number; + ackDeadlineSeconds?: number; /** * List of acknowledgment IDs. */ - ackIds: string[]; + ackIds?: string[]; } /** * Request for the ModifyPushConfig method. @@ -230,30 +233,34 @@ export namespace pubsub_v1 { * effectively pausing the subscription if `Pull` or `StreamingPull` is not * called. */ - pushConfig: Schema$PushConfig; + pushConfig?: Schema$PushConfig; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ { + * defined by IAM. **JSON 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 - * guide](https://cloud.google.com/iam/docs). + * "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -265,11 +272,11 @@ export namespace pubsub_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Request for the Publish method. @@ -278,7 +285,7 @@ export namespace pubsub_v1 { /** * The messages to publish. */ - messages: Schema$PubsubMessage[]; + messages?: Schema$PubsubMessage[]; } /** * Response for the `Publish` method. @@ -289,7 +296,7 @@ export namespace pubsub_v1 { * the messages in the request. IDs are guaranteed to be unique within the * topic. */ - messageIds: string[]; + messageIds?: string[]; } /** * A message data and its attributes. The message payload must not be empty; @@ -299,24 +306,24 @@ export namespace pubsub_v1 { /** * Optional attributes for this message. */ - attributes: any; + attributes?: any; /** * The message payload. */ - data: string; + data?: string; /** * ID of this message, assigned by the server when the message is published. * Guaranteed to be unique within the topic. This value may be read by a * subscriber that receives a `PubsubMessage` via a `Pull` call or a push * delivery. It must not be populated by the publisher in a `Publish` call. */ - messageId: string; + messageId?: string; /** * The time at which the message was published, populated by the server when * it receives the `Publish` call. It must not be populated by the publisher * in a `Publish` call. */ - publishTime: string; + publishTime?: string; } /** * Request for the `Pull` method. @@ -326,7 +333,7 @@ export namespace pubsub_v1 { * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. */ - maxMessages: number; + maxMessages?: number; /** * If this field set to true, the system will respond immediately even if it * there are no messages available to return in the `Pull` response. @@ -335,7 +342,7 @@ export namespace pubsub_v1 { * client may cancel the request if it does not wish to wait any longer for * the response. */ - returnImmediately: boolean; + returnImmediately?: boolean; } /** * Response for the `Pull` method. @@ -347,7 +354,7 @@ export namespace pubsub_v1 { * return fewer than the `maxMessages` requested even if there are more * messages available in the backlog. */ - receivedMessages: Schema$ReceivedMessage[]; + receivedMessages?: Schema$ReceivedMessage[]; } /** * Configuration for a push delivery endpoint. @@ -370,13 +377,13 @@ export namespace pubsub_v1 { * v1beta1 Pub/Sub API. * `v1` or `v1beta2`: uses the push format defined in * the v1 Pub/Sub API. */ - attributes: any; + attributes?: any; /** * A URL locating the endpoint to which messages should be pushed. For * example, a Webhook endpoint might use * "https://example.com/push". */ - pushEndpoint: string; + pushEndpoint?: string; } /** * A message and its corresponding acknowledgment ID. @@ -385,11 +392,11 @@ export namespace pubsub_v1 { /** * This ID can be used to acknowledge the received message. */ - ackId: string; + ackId?: string; /** * The message. */ - message: Schema$PubsubMessage; + message?: Schema$PubsubMessage; } /** * Request for the `Seek` method. @@ -400,7 +407,7 @@ export namespace pubsub_v1 { * that of the provided subscription. Format is * `projects/{project}/snapshots/{snap}`. */ - snapshot: string; + snapshot?: string; /** * The time to seek to. Messages retained in the subscription that were * published before this time are marked as acknowledged, and messages @@ -413,7 +420,7 @@ export namespace pubsub_v1 { * time), only retained messages will be marked as unacknowledged, and * already-expunged messages will not be restored. */ - time: string; + time?: string; } export interface Schema$SeekResponse {} /** @@ -426,7 +433,7 @@ export namespace pubsub_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * A snapshot resource. @@ -444,15 +451,15 @@ export namespace pubsub_v1 { * will expire in 4 days. The service will refuse to create a snapshot that * would expire in less than 1 hour after creation. */ - expireTime: string; + expireTime?: string; /** * The name of the snapshot. */ - name: string; + name?: string; /** * The name of the topic from which this snapshot is retaining messages. */ - topic: string; + topic?: string; } /** * A subscription resource. @@ -475,7 +482,7 @@ export namespace pubsub_v1 { * endpoint. If the subscriber never acknowledges the message, the Pub/Sub * system will eventually redeliver the message. */ - ackDeadlineSeconds: number; + ackDeadlineSeconds?: number; /** * How long to retain unacknowledged messages in the subscription's * backlog, from the moment a message is published. If @@ -484,7 +491,7 @@ export namespace pubsub_v1 { * `Seek` can be done. Defaults to 7 days. Cannot be more than 7 days or * less than 10 minutes. [ALPHA] This field is a part of a closed Alpha API. */ - messageRetentionDuration: string; + messageRetentionDuration?: string; /** * The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. @@ -494,26 +501,26 @@ export namespace pubsub_v1 { * between 3 and 255 characters in length, and it must not start with * `"goog"`. */ - name: string; + name?: string; /** * If push delivery is used with this subscription, this field is used to * configure it. An empty `pushConfig` signifies that the subscriber will * pull and ack messages using API methods. */ - pushConfig: Schema$PushConfig; + pushConfig?: Schema$PushConfig; /** * Indicates whether to retain acknowledged messages. If true, then messages * are not expunged from the subscription's backlog, even if they are * acknowledged, until they fall out of the `message_retention_duration` * window. [ALPHA] This field is a part of a closed Alpha API. */ - retainAckedMessages: boolean; + retainAckedMessages?: boolean; /** * The name of the topic from which this subscription is receiving messages. * Format is `projects/{project}/topics/{topic}`. The value of this field * will be `_deleted-topic_` if the topic has been deleted. */ - topic: string; + topic?: string; } /** * Request message for `TestIamPermissions` method. @@ -525,7 +532,7 @@ export namespace pubsub_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -535,7 +542,7 @@ export namespace pubsub_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A topic resource. @@ -549,7 +556,7 @@ export namespace pubsub_v1 { * or percent signs (`%`). It must be between 3 and 255 characters in * length, and it must not start with `"goog"`. */ - name: string; + name?: string; } /** * Request for the UpdateSnapshot method. @@ -558,12 +565,12 @@ export namespace pubsub_v1 { /** * The updated snpashot object. */ - snapshot: Schema$Snapshot; + snapshot?: Schema$Snapshot; /** * Indicates which fields in the provided snapshot to update. Must be * specified and non-empty. */ - updateMask: string; + updateMask?: string; } /** * Request for the UpdateSubscription method. @@ -572,14 +579,15 @@ export namespace pubsub_v1 { /** * The updated subscription object. */ - subscription: Schema$Subscription; + subscription?: Schema$Subscription; /** * Indicates which fields in the provided subscription to update. Must be * specified and non-empty. */ - updateMask: string; + updateMask?: string; } + export class Resource$Projects { root: Pubsub; snapshots: Resource$Projects$Snapshots; @@ -597,6 +605,8 @@ export namespace pubsub_v1 { return this.root; } } + + export class Resource$Projects$Snapshots { root: Pubsub; constructor(root: Pubsub) { @@ -633,26 +643,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Snapshots$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Snapshots$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Snapshots$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Snapshots$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Snapshots$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -690,25 +712,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Snapshots$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Snapshots$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Snapshots$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Snapshots$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Snapshots$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -743,23 +778,34 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Snapshots$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Snapshots$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Snapshots$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Snapshots$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Snapshots$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -847,26 +893,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Snapshots$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Snapshots$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Snapshots$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Snapshots$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Snapshots$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -904,28 +962,40 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Snapshots$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Snapshots$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Snapshots$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Snapshots$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Snapshots$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -963,25 +1033,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Snapshots$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Snapshots$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Snapshots$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Snapshots$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Snapshots$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1074,26 +1157,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Snapshots$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Snapshots$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Snapshots$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Snapshots$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Snapshots$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1191,29 +1286,46 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Snapshots$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Snapshots$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Snapshots$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Snapshots$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Snapshots$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Snapshots$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1237,6 +1349,132 @@ export namespace pubsub_v1 { } } + export interface Params$Resource$Projects$Snapshots$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional user-provided name for this snapshot. If the name is not + * provided in the request, the server will assign a random name for this + * snapshot on the same project as the subscription. Note that for REST API + * requests, you must specify a name. Format is + * `projects/{project}/snapshots/{snap}`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateSnapshotRequest; + } + export interface Params$Resource$Projects$Snapshots$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the snapshot to delete. Format is + * `projects/{project}/snapshots/{snap}`. + */ + snapshot?: string; + } + export interface Params$Resource$Projects$Snapshots$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + */ + snapshot?: string; + } + export interface Params$Resource$Projects$Snapshots$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Snapshots$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of snapshots to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListSnapshotsResponse`; indicates that + * this is a continuation of a prior `ListSnapshots` call, and that the + * system should return the next page of data. + */ + pageToken?: string; + /** + * The name of the cloud project that snapshots belong to. Format is + * `projects/{project}`. + */ + project?: string; + } + export interface Params$Resource$Projects$Snapshots$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the snapshot. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateSnapshotRequest; + } + export interface Params$Resource$Projects$Snapshots$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Snapshots$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Subscriptions { root: Pubsub; constructor(root: Pubsub) { @@ -1322,26 +1560,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge(params?: any, options?: MethodOptions): - AxiosPromise; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Acknowledge, + options?: MethodOptions): AxiosPromise; + acknowledge( + params: Params$Resource$Projects$Subscriptions$Acknowledge, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Acknowledge, + callback: BodyResponseCallback): void; + acknowledge(callback: BodyResponseCallback): void; + acknowledge( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Acknowledge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Acknowledge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Acknowledge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1453,26 +1703,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Subscriptions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Subscriptions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1562,25 +1825,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Subscriptions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1670,24 +1946,35 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Subscriptions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Subscriptions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Subscriptions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Subscriptions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1776,26 +2063,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Subscriptions$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1900,29 +2199,42 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Subscriptions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Subscriptions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2017,26 +2329,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyAckDeadline(params?: any, options?: MethodOptions): - AxiosPromise; modifyAckDeadline( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Modifyackdeadline, + options?: MethodOptions): AxiosPromise; + modifyAckDeadline( + params: Params$Resource$Projects$Subscriptions$Modifyackdeadline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyAckDeadline( + params: Params$Resource$Projects$Subscriptions$Modifyackdeadline, + callback: BodyResponseCallback): void; + modifyAckDeadline(callback: BodyResponseCallback): void; modifyAckDeadline( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Subscriptions$Modifyackdeadline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Modifyackdeadline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Modifyackdeadline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2132,26 +2457,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyPushConfig(params?: any, options?: MethodOptions): - AxiosPromise; modifyPushConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Modifypushconfig, + options?: MethodOptions): AxiosPromise; + modifyPushConfig( + params: Params$Resource$Projects$Subscriptions$Modifypushconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; modifyPushConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Modifypushconfig, + callback: BodyResponseCallback): void; + modifyPushConfig(callback: BodyResponseCallback): void; + modifyPushConfig( + paramsOrCallback?: + Params$Resource$Projects$Subscriptions$Modifypushconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Modifypushconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Modifypushconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2188,26 +2526,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Subscriptions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2304,26 +2655,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pull(params?: any, options?: MethodOptions): - AxiosPromise; pull( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Pull, + options?: MethodOptions): AxiosPromise; pull( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Pull, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + pull( + params: Params$Resource$Projects$Subscriptions$Pull, + callback: BodyResponseCallback): void; + pull(callback: BodyResponseCallback): void; + pull( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Pull| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Pull; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Pull; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2361,26 +2725,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - seek(params?: any, options?: MethodOptions): - AxiosPromise; seek( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Seek, + options?: MethodOptions): AxiosPromise; + seek( + params: Params$Resource$Projects$Subscriptions$Seek, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + seek( + params: Params$Resource$Projects$Subscriptions$Seek, + callback: BodyResponseCallback): void; + seek(callback: BodyResponseCallback): void; seek( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Seek| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Seek; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Seek; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2474,26 +2851,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Subscriptions$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2591,29 +2980,47 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Subscriptions$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Subscriptions$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Subscriptions$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Subscriptions$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Subscriptions$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2637,6 +3044,217 @@ export namespace pubsub_v1 { } } + export interface Params$Resource$Projects$Subscriptions$Acknowledge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription whose message is being acknowledged. Format is + * `projects/{project}/subscriptions/{sub}`. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$AcknowledgeRequest; + } + export interface Params$Resource$Projects$Subscriptions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` + * must start with a letter, and contain only letters (`[A-Za-z]`), numbers + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), + * plus (`+`) or percent signs (`%`). It must be between 3 and 255 + * characters in length, and it must not start with `"goog"`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Subscription; + } + export interface Params$Resource$Projects$Subscriptions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription to delete. Format is + * `projects/{project}/subscriptions/{sub}`. + */ + subscription?: string; + } + export interface Params$Resource$Projects$Subscriptions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription to get. Format is + * `projects/{project}/subscriptions/{sub}`. + */ + subscription?: string; + } + export interface Params$Resource$Projects$Subscriptions$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of subscriptions to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListSubscriptionsResponse`; indicates + * that this is a continuation of a prior `ListSubscriptions` call, and that + * the system should return the next page of data. + */ + pageToken?: string; + /** + * The name of the cloud project that subscriptions belong to. Format is + * `projects/{project}`. + */ + project?: string; + } + export interface Params$Resource$Projects$Subscriptions$Modifyackdeadline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyAckDeadlineRequest; + } + export interface Params$Resource$Projects$Subscriptions$Modifypushconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyPushConfigRequest; + } + export interface Params$Resource$Projects$Subscriptions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` + * must start with a letter, and contain only letters (`[A-Za-z]`), numbers + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), + * plus (`+`) or percent signs (`%`). It must be between 3 and 255 + * characters in length, and it must not start with `"goog"`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateSubscriptionRequest; + } + export interface Params$Resource$Projects$Subscriptions$Pull { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$PullRequest; + } + export interface Params$Resource$Projects$Subscriptions$Seek { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription to affect. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$SeekRequest; + } + export interface Params$Resource$Projects$Subscriptions$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Subscriptions$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Topics { root: Pubsub; snapshots: Resource$Projects$Topics$Snapshots; @@ -2735,25 +3353,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Topics$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Topics$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2844,25 +3475,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Topics$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Topics$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -2951,23 +3595,34 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Topics$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Topics$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Topics$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Topics$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3057,26 +3712,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Topics$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Topics$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Topics$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3180,26 +3847,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Topics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Topics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3296,26 +3976,39 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): - AxiosPromise; publish( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Publish, + options?: MethodOptions): AxiosPromise; + publish( + params: Params$Resource$Projects$Topics$Publish, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; publish( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$Publish, + callback: BodyResponseCallback): void; + publish(callback: BodyResponseCallback): void; + publish( + paramsOrCallback?: Params$Resource$Projects$Topics$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3411,26 +4104,38 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Topics$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Topics$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Topics$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3528,29 +4233,45 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Topics$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Topics$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Topics$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3573,6 +4294,134 @@ export namespace pubsub_v1 { } } } + + export interface Params$Resource$Projects$Topics$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a + * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes + * (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or + * percent signs (`%`). It must be between 3 and 255 characters in length, + * and it must not start with `"goog"`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Topic; + } + export interface Params$Resource$Projects$Topics$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the topic to delete. Format is + * `projects/{project}/topics/{topic}`. + */ + topic?: string; + } + export interface Params$Resource$Projects$Topics$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the topic to get. Format is + * `projects/{project}/topics/{topic}`. + */ + topic?: string; + } + export interface Params$Resource$Projects$Topics$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Topics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of topics to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListTopicsResponse`; indicates that this + * is a continuation of a prior `ListTopics` call, and that the system + * should return the next page of data. + */ + pageToken?: string; + /** + * The name of the cloud project that topics belong to. Format is + * `projects/{project}`. + */ + project?: string; + } + export interface Params$Resource$Projects$Topics$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The messages in the request will be published on this topic. Format is + * `projects/{project}/topics/{topic}`. + */ + topic?: string; + /** + * Request body metadata + */ + resource?: Schema$PublishRequest; + } + export interface Params$Resource$Projects$Topics$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Topics$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Projects$Topics$Snapshots { root: Pubsub; constructor(root: Pubsub) { @@ -3600,29 +4449,44 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Topics$Snapshots$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Snapshots$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Topics$Snapshots$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Topics$Snapshots$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Snapshots$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Snapshots$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3646,6 +4510,30 @@ export namespace pubsub_v1 { } } + export interface Params$Resource$Projects$Topics$Snapshots$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of snapshot names to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListTopicSnapshotsResponse`; indicates + * that this is a continuation of a prior `ListTopicSnapshots` call, and + * that the system should return the next page of data. + */ + pageToken?: string; + /** + * The name of the topic that snapshots are attached to. Format is + * `projects/{project}/topics/{topic}`. + */ + topic?: string; + } + + export class Resource$Projects$Topics$Subscriptions { root: Pubsub; constructor(root: Pubsub) { @@ -3741,29 +4629,44 @@ export namespace pubsub_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Topics$Subscriptions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Subscriptions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Topics$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -3787,4 +4690,27 @@ export namespace pubsub_v1 { } } } + + export interface Params$Resource$Projects$Topics$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of subscription names to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListTopicSubscriptionsResponse`; + * indicates that this is a continuation of a prior `ListTopicSubscriptions` + * call, and that the system should return the next page of data. + */ + pageToken?: string; + /** + * The name of the topic that subscriptions are attached to. Format is + * `projects/{project}/topics/{topic}`. + */ + topic?: string; + } } diff --git a/src/apis/pubsub/v1beta1a.ts b/src/apis/pubsub/v1beta1a.ts index c665319db84..5e14c971180 100644 --- a/src/apis/pubsub/v1beta1a.ts +++ b/src/apis/pubsub/v1beta1a.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace pubsub_v1beta1a { + export interface Options extends GlobalOptions { version: 'v1beta1a'; } + /** * Cloud Pub/Sub API * @@ -76,11 +79,11 @@ export namespace pubsub_v1beta1a { * The acknowledgment ID for the message being acknowledged. This was * returned by the Pub/Sub system in the Pull response. */ - ackId: string[]; + ackId?: string[]; /** * The subscription whose message is being acknowledged. */ - subscription: string; + subscription?: string; } /** * An empty message that you can re-use to avoid defining duplicated empty @@ -112,15 +115,15 @@ export namespace pubsub_v1beta1a { * "alphadigit" are defined as in RFC 1738. Example key: * spanner.google.com/universe */ - key: string; + key?: string; /** * An integer value. */ - numValue: string; + numValue?: string; /** * A string value. */ - strValue: string; + strValue?: string; } /** * Response for the ListSubscriptions method. @@ -131,11 +134,11 @@ export namespace pubsub_v1beta1a { * request and this value should be passed to the next * <code>ListSubscriptionsRequest</code> to continue. */ - nextPageToken: string; + nextPageToken?: string; /** * The subscriptions that match the request. */ - subscription: Schema$Subscription[]; + subscription?: Schema$Subscription[]; } /** * Response for the ListTopics method. @@ -146,11 +149,11 @@ export namespace pubsub_v1beta1a { * request, and this value should be passed to the next * <code>ListTopicsRequest</code> to continue. */ - nextPageToken: string; + nextPageToken?: string; /** * The resulting topics. */ - topic: Schema$Topic[]; + topic?: Schema$Topic[]; } /** * Request for the ModifyAckDeadline method. @@ -163,22 +166,22 @@ export namespace pubsub_v1beta1a { * was made. Specifying zero may immediately make the message available for * another pull request. */ - ackDeadlineSeconds: number; + ackDeadlineSeconds?: number; /** * The acknowledgment ID. Either this or ack_ids must be populated, not * both. */ - ackId: string; + ackId?: string; /** * List of acknowledgment IDs. Either this field or ack_id should be * populated, not both. */ - ackIds: string[]; + ackIds?: string[]; /** * Next Index: 5 The name of the subscription from which messages are being * pulled. */ - subscription: string; + subscription?: string; } /** * Request for the ModifyPushConfig method. @@ -188,11 +191,11 @@ export namespace pubsub_v1beta1a { * An empty <code>push_config</code> indicates that the Pub/Sub * system should pause pushing messages from the given subscription. */ - pushConfig: Schema$PushConfig; + pushConfig?: Schema$PushConfig; /** * The name of the subscription. */ - subscription: string; + subscription?: string; } /** * Request for the PublishBatch method. @@ -201,11 +204,11 @@ export namespace pubsub_v1beta1a { /** * The messages to publish. */ - messages: Schema$PubsubMessage[]; + messages?: Schema$PubsubMessage[]; /** * The messages in the request will be published on this topic. */ - topic: string; + topic?: string; } /** * Response for the PublishBatch method. @@ -216,7 +219,7 @@ export namespace pubsub_v1beta1a { * the messages in the request. IDs are guaranteed to be unique within the * topic. */ - messageIds: string[]; + messageIds?: string[]; } /** * Request for the Publish method. @@ -225,11 +228,11 @@ export namespace pubsub_v1beta1a { /** * The message to publish. */ - message: Schema$PubsubMessage; + message?: Schema$PubsubMessage; /** * The message in the request will be published on this topic. */ - topic: string; + topic?: string; } /** * An event indicating a received message or truncation event. @@ -240,19 +243,19 @@ export namespace pubsub_v1beta1a { * subscribers will always receive NOT_FOUND in response in their pull * request on the subscription, rather than seeing this boolean.) */ - deleted: boolean; + deleted?: boolean; /** * A received message. */ - message: Schema$PubsubMessage; + message?: Schema$PubsubMessage; /** * The subscription that received the event. */ - subscription: string; + subscription?: string; /** * Indicates that this subscription has been truncated. */ - truncated: boolean; + truncated?: boolean; } /** * A message data and its labels. @@ -261,24 +264,24 @@ export namespace pubsub_v1beta1a { /** * The message payload. */ - data: string; + data?: string; /** * Optional list of labels for this message. Keys in this collection must be * unique. */ - label: Schema$Label[]; + label?: Schema$Label[]; /** * ID of this message assigned by the server at publication time. Guaranteed * to be unique within the topic. This value may be read by a subscriber * that receives a PubsubMessage via a Pull call or a push delivery. It must * not be populated by a publisher in a Publish call. */ - messageId: string; + messageId?: string; /** * The time at which the message was published. The time is milliseconds * since the UNIX epoch. */ - publishTime: string; + publishTime?: string; } /** * Request for the PullBatch method. @@ -288,7 +291,7 @@ export namespace pubsub_v1beta1a { * The maximum number of PubsubEvents returned for this request. The Pub/Sub * system may return fewer than the number of events specified. */ - maxEvents: number; + maxEvents?: number; /** * If this is specified as true the system will respond immediately even if * it is not able to return a message in the Pull response. Otherwise the @@ -296,11 +299,11 @@ export namespace pubsub_v1beta1a { * than returning no messages. The client may cancel the request if it does * not wish to wait any longer for the response. */ - returnImmediately: boolean; + returnImmediately?: boolean; /** * The subscription from which messages should be pulled. */ - subscription: string; + subscription?: string; } /** * Response for the PullBatch method. @@ -312,7 +315,7 @@ export namespace pubsub_v1beta1a { * backlog. The Pub/Sub system may return fewer than the max_events * requested even if there are more messages available in the backlog. */ - pullResponses: Schema$PullResponse[]; + pullResponses?: Schema$PullResponse[]; } /** * Request for the Pull method. @@ -325,11 +328,11 @@ export namespace pubsub_v1beta1a { * than returning FAILED_PRECONDITION. The client may cancel the request if * it does not wish to wait any longer for the response. */ - returnImmediately: boolean; + returnImmediately?: boolean; /** * The subscription from which a message should be pulled. */ - subscription: string; + subscription?: string; } /** * Either a <code>PubsubMessage</code> or a truncation event. One @@ -339,11 +342,11 @@ export namespace pubsub_v1beta1a { /** * This ID must be used to acknowledge the received event or message. */ - ackId: string; + ackId?: string; /** * A pubsub message or truncation event. */ - pubsubEvent: Schema$PubsubEvent; + pubsubEvent?: Schema$PubsubEvent; } /** * Configuration for a push delivery endpoint. @@ -354,7 +357,7 @@ export namespace pubsub_v1beta1a { * example, a Webhook endpoint might use * "https://example.com/push". */ - pushEndpoint: string; + pushEndpoint?: string; } /** * A subscription resource. @@ -377,20 +380,20 @@ export namespace pubsub_v1beta1a { * subscriber has not yet Acked or Nacked), the Pub/Sub system will not * deliver that message to another pull subscriber (on a best-effort basis). */ - ackDeadlineSeconds: number; + ackDeadlineSeconds?: number; /** * Name of the subscription. */ - name: string; + name?: string; /** * If push delivery is used with this subscription, this field is used to * configure it. */ - pushConfig: Schema$PushConfig; + pushConfig?: Schema$PushConfig; /** * The name of the topic from which this subscription is receiving messages. */ - topic: string; + topic?: string; } /** * A topic resource. @@ -399,9 +402,10 @@ export namespace pubsub_v1beta1a { /** * Name of the topic. */ - name: string; + name?: string; } + export class Resource$Subscriptions { root: Pubsub; constructor(root: Pubsub) { @@ -430,26 +434,38 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge(params?: any, options?: MethodOptions): - AxiosPromise; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Acknowledge, + options?: MethodOptions): AxiosPromise; + acknowledge( + params: Params$Resource$Subscriptions$Acknowledge, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Acknowledge, + callback: BodyResponseCallback): void; + acknowledge(callback: BodyResponseCallback): void; + acknowledge( + paramsOrCallback?: Params$Resource$Subscriptions$Acknowledge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Acknowledge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Acknowledge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -488,26 +504,39 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Subscriptions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Subscriptions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -544,25 +573,38 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subscriptions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Subscriptions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -597,24 +639,35 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Subscriptions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Subscriptions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subscriptions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subscriptions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -651,29 +704,40 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subscriptions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Subscriptions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -710,26 +774,38 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyAckDeadline(params?: any, options?: MethodOptions): - AxiosPromise; modifyAckDeadline( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Modifyackdeadline, + options?: MethodOptions): AxiosPromise; modifyAckDeadline( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Modifyackdeadline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyAckDeadline( + params: Params$Resource$Subscriptions$Modifyackdeadline, + callback: BodyResponseCallback): void; + modifyAckDeadline(callback: BodyResponseCallback): void; + modifyAckDeadline( + paramsOrCallback?: Params$Resource$Subscriptions$Modifyackdeadline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subscriptions$Modifyackdeadline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Modifyackdeadline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -768,26 +844,38 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyPushConfig(params?: any, options?: MethodOptions): - AxiosPromise; modifyPushConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Modifypushconfig, + options?: MethodOptions): AxiosPromise; + modifyPushConfig( + params: Params$Resource$Subscriptions$Modifypushconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyPushConfig( + params: Params$Resource$Subscriptions$Modifypushconfig, + callback: BodyResponseCallback): void; + modifyPushConfig(callback: BodyResponseCallback): void; modifyPushConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Modifypushconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subscriptions$Modifypushconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Modifypushconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -826,26 +914,38 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pull(params?: any, options?: MethodOptions): + pull(params?: Params$Resource$Subscriptions$Pull, options?: MethodOptions): AxiosPromise; pull( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subscriptions$Pull, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + pull( + params: Params$Resource$Subscriptions$Pull, + callback: BodyResponseCallback): void; + pull(callback: BodyResponseCallback): void; pull( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Pull| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Pull; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Pull; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -883,26 +983,39 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pullBatch(params?: any, options?: MethodOptions): - AxiosPromise; pullBatch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Pullbatch, + options?: MethodOptions): AxiosPromise; pullBatch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Pullbatch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + pullBatch( + params: Params$Resource$Subscriptions$Pullbatch, + callback: BodyResponseCallback): void; + pullBatch(callback: BodyResponseCallback): void; + pullBatch( + paramsOrCallback?: Params$Resource$Subscriptions$Pullbatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Pullbatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Pullbatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -925,6 +1038,116 @@ export namespace pubsub_v1beta1a { } } + export interface Params$Resource$Subscriptions$Acknowledge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AcknowledgeRequest; + } + export interface Params$Resource$Subscriptions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Subscription; + } + export interface Params$Resource$Subscriptions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription to delete. + */ + subscription?: string; + } + export interface Params$Resource$Subscriptions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription to get. + */ + subscription?: string; + } + export interface Params$Resource$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of subscriptions to return. + */ + maxResults?: number; + /** + * The value obtained in the last ListSubscriptionsResponse for + * continuation. + */ + pageToken?: string; + /** + * A valid label query expression. + */ + query?: string; + } + export interface Params$Resource$Subscriptions$Modifyackdeadline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ModifyAckDeadlineRequest; + } + export interface Params$Resource$Subscriptions$Modifypushconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ModifyPushConfigRequest; + } + export interface Params$Resource$Subscriptions$Pull { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$PullRequest; + } + export interface Params$Resource$Subscriptions$Pullbatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$PullBatchRequest; + } + + export class Resource$Topics { root: Pubsub; constructor(root: Pubsub) { @@ -949,25 +1172,36 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Topics$Create, options?: MethodOptions): + AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Topics$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Topics$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Topics$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Topics$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Topics$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1003,25 +1237,36 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Topics$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Topics$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Topics$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Topics$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Topics$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Topics$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1059,23 +1304,33 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Topics$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Topics$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Topics$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Topics$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Topics$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Topics$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1112,26 +1367,37 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Topics$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Topics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Topics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Topics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Topics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Topics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1166,25 +1432,36 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): AxiosPromise; + publish(params?: Params$Resource$Topics$Publish, options?: MethodOptions): + AxiosPromise; publish( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Topics$Publish, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; publish( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Topics$Publish, + callback: BodyResponseCallback): void; + publish(callback: BodyResponseCallback): void; + publish( + paramsOrCallback?: Params$Resource$Topics$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Topics$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Topics$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1220,28 +1497,41 @@ export namespace pubsub_v1beta1a { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publishBatch(params?: any, options?: MethodOptions): - AxiosPromise; publishBatch( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Topics$Publishbatch, + options?: MethodOptions): AxiosPromise; + publishBatch( + params: Params$Resource$Topics$Publishbatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; publishBatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Topics$Publishbatch, + callback: BodyResponseCallback): void; + publishBatch(callback: BodyResponseCallback): + void; + publishBatch( + paramsOrCallback?: Params$Resource$Topics$Publishbatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Topics$Publishbatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Topics$Publishbatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1263,4 +1553,80 @@ export namespace pubsub_v1beta1a { } } } + + export interface Params$Resource$Topics$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Topic; + } + export interface Params$Resource$Topics$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the topic to delete. + */ + topic?: string; + } + export interface Params$Resource$Topics$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the topic to get. + */ + topic?: string; + } + export interface Params$Resource$Topics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of topics to return. + */ + maxResults?: number; + /** + * The value obtained in the last ListTopicsResponse for + * continuation. + */ + pageToken?: string; + /** + * A valid label query expression. + */ + query?: string; + } + export interface Params$Resource$Topics$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$PublishRequest; + } + export interface Params$Resource$Topics$Publishbatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$PublishBatchRequest; + } } diff --git a/src/apis/pubsub/v1beta2.ts b/src/apis/pubsub/v1beta2.ts index e3ccd339da5..bee4ee1a22e 100644 --- a/src/apis/pubsub/v1beta2.ts +++ b/src/apis/pubsub/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace pubsub_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Cloud Pub/Sub API * @@ -74,7 +77,7 @@ export namespace pubsub_v1beta2 { * The acknowledgment ID for the messages being acknowledged that was * returned by the Pub/Sub system in the `Pull` response. Must not be empty. */ - ackIds: string[]; + ackIds?: string[]; } /** * Associates `members` with a `role`. @@ -96,12 +99,12 @@ export namespace pubsub_v1beta2 { * that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -120,11 +123,11 @@ export namespace pubsub_v1beta2 { * the request; this value should be passed in a new * `ListSubscriptionsRequest` to get more subscriptions. */ - nextPageToken: string; + nextPageToken?: string; /** * The subscriptions that match the request. */ - subscriptions: Schema$Subscription[]; + subscriptions?: Schema$Subscription[]; } /** * Response for the `ListTopics` method. @@ -134,11 +137,11 @@ export namespace pubsub_v1beta2 { * If not empty, indicates that there may be more topics that match the * request; this value should be passed in a new `ListTopicsRequest`. */ - nextPageToken: string; + nextPageToken?: string; /** * The resulting topics. */ - topics: Schema$Topic[]; + topics?: Schema$Topic[]; } /** * Response for the `ListTopicSubscriptions` method. @@ -149,11 +152,11 @@ export namespace pubsub_v1beta2 { * the request; this value should be passed in a new * `ListTopicSubscriptionsRequest` to get more subscriptions. */ - nextPageToken: string; + nextPageToken?: string; /** * The names of the subscriptions that match the request. */ - subscriptions: string[]; + subscriptions?: string[]; } /** * Request for the ModifyAckDeadline method. @@ -166,16 +169,16 @@ export namespace pubsub_v1beta2 { * call was made. Specifying zero may immediately make the message available * for another pull request. */ - ackDeadlineSeconds: number; + ackDeadlineSeconds?: number; /** * The acknowledgment ID. Either this or ack_ids must be populated, but not * both. */ - ackId: string; + ackId?: string; /** * List of acknowledgment IDs. */ - ackIds: string[]; + ackIds?: string[]; } /** * Request for the ModifyPushConfig method. @@ -187,30 +190,34 @@ export namespace pubsub_v1beta2 { * given subscription and allow messages to be pulled and acknowledged - * effectively pausing the subscription if `Pull` is not called. */ - pushConfig: Schema$PushConfig; + pushConfig?: Schema$PushConfig; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ { + * defined by IAM. **JSON 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 - * guide](https://cloud.google.com/iam/docs). + * "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -222,11 +229,11 @@ export namespace pubsub_v1beta2 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Request for the Publish method. @@ -235,7 +242,7 @@ export namespace pubsub_v1beta2 { /** * The messages to publish. */ - messages: Schema$PubsubMessage[]; + messages?: Schema$PubsubMessage[]; } /** * Response for the `Publish` method. @@ -246,7 +253,7 @@ export namespace pubsub_v1beta2 { * the messages in the request. IDs are guaranteed to be unique within the * topic. */ - messageIds: string[]; + messageIds?: string[]; } /** * A message data and its attributes. The message payload must not be empty; @@ -256,25 +263,25 @@ export namespace pubsub_v1beta2 { /** * Optional attributes for this message. */ - attributes: any; + attributes?: any; /** * The message payload. For JSON requests, the value of this field must be * [base64-encoded](https://tools.ietf.org/html/rfc4648). */ - data: string; + data?: string; /** * ID of this message, assigned by the server when the message is published. * Guaranteed to be unique within the topic. This value may be read by a * subscriber that receives a `PubsubMessage` via a `Pull` call or a push * delivery. It must not be populated by the publisher in a `Publish` call. */ - messageId: string; + messageId?: string; /** * The time at which the message was published, populated by the server when * it receives the `Publish` call. It must not be populated by the publisher * in a `Publish` call. */ - publishTime: string; + publishTime?: string; } /** * Request for the `Pull` method. @@ -284,7 +291,7 @@ export namespace pubsub_v1beta2 { * The maximum number of messages returned for this request. The Pub/Sub * system may return fewer than the number specified. */ - maxMessages: number; + maxMessages?: number; /** * If this is specified as true the system will respond immediately even if * it is not able to return a message in the `Pull` response. Otherwise the @@ -292,7 +299,7 @@ export namespace pubsub_v1beta2 { * than returning no messages. The client may cancel the request if it does * not wish to wait any longer for the response. */ - returnImmediately: boolean; + returnImmediately?: boolean; } /** * Response for the `Pull` method. @@ -304,7 +311,7 @@ export namespace pubsub_v1beta2 { * return fewer than the `maxMessages` requested even if there are more * messages available in the backlog. */ - receivedMessages: Schema$ReceivedMessage[]; + receivedMessages?: Schema$ReceivedMessage[]; } /** * Configuration for a push delivery endpoint. @@ -327,13 +334,13 @@ export namespace pubsub_v1beta2 { * API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub * API. */ - attributes: any; + attributes?: any; /** * A URL locating the endpoint to which messages should be pushed. For * example, a Webhook endpoint might use * "https://example.com/push". */ - pushEndpoint: string; + pushEndpoint?: string; } /** * A message and its corresponding acknowledgment ID. @@ -342,11 +349,11 @@ export namespace pubsub_v1beta2 { /** * This ID can be used to acknowledge the received message. */ - ackId: string; + ackId?: string; /** * The message. */ - message: Schema$PubsubMessage; + message?: Schema$PubsubMessage; } /** * Request message for `SetIamPolicy` method. @@ -358,7 +365,7 @@ export namespace pubsub_v1beta2 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * A subscription resource. @@ -379,7 +386,7 @@ export namespace pubsub_v1beta2 { * eventually redeliver the message. If this parameter is 0, a default * value of 10 seconds is used. */ - ackDeadlineSeconds: number; + ackDeadlineSeconds?: number; /** * The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. @@ -389,19 +396,19 @@ export namespace pubsub_v1beta2 { * between 3 and 255 characters in length, and it must not start with * `"goog"`. */ - name: string; + name?: string; /** * If push delivery is used with this subscription, this field is used to * configure it. An empty `pushConfig` signifies that the subscriber will * pull and ack messages using API methods. */ - pushConfig: Schema$PushConfig; + pushConfig?: Schema$PushConfig; /** * The name of the topic from which this subscription is receiving messages. * The value of this field will be `_deleted-topic_` if the topic has been * deleted. */ - topic: string; + topic?: string; } /** * Request message for `TestIamPermissions` method. @@ -413,7 +420,7 @@ export namespace pubsub_v1beta2 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -423,7 +430,7 @@ export namespace pubsub_v1beta2 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A topic resource. @@ -437,9 +444,10 @@ export namespace pubsub_v1beta2 { * or percent signs (`%`). It must be between 3 and 255 characters in * length, and it must not start with `"goog"`. */ - name: string; + name?: string; } + export class Resource$Projects { root: Pubsub; subscriptions: Resource$Projects$Subscriptions; @@ -455,6 +463,8 @@ export namespace pubsub_v1beta2 { return this.root; } } + + export class Resource$Projects$Subscriptions { root: Pubsub; constructor(root: Pubsub) { @@ -484,26 +494,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge(params?: any, options?: MethodOptions): - AxiosPromise; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Acknowledge, + options?: MethodOptions): AxiosPromise; + acknowledge( + params: Params$Resource$Projects$Subscriptions$Acknowledge, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; acknowledge( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Acknowledge, + callback: BodyResponseCallback): void; + acknowledge(callback: BodyResponseCallback): void; + acknowledge( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Acknowledge| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Acknowledge; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Acknowledge; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -544,26 +566,39 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Subscriptions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Subscriptions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -601,25 +636,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Subscriptions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Subscriptions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -654,24 +702,35 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Subscriptions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Subscriptions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Subscriptions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Subscriptions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -707,26 +766,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Subscriptions$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Subscriptions$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -763,29 +834,42 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Subscriptions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Subscriptions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -826,26 +910,39 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyAckDeadline(params?: any, options?: MethodOptions): - AxiosPromise; modifyAckDeadline( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Modifyackdeadline, + options?: MethodOptions): AxiosPromise; + modifyAckDeadline( + params: Params$Resource$Projects$Subscriptions$Modifyackdeadline, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + modifyAckDeadline( + params: Params$Resource$Projects$Subscriptions$Modifyackdeadline, + callback: BodyResponseCallback): void; + modifyAckDeadline(callback: BodyResponseCallback): void; modifyAckDeadline( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Subscriptions$Modifyackdeadline| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Modifyackdeadline; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Modifyackdeadline; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -885,26 +982,39 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - modifyPushConfig(params?: any, options?: MethodOptions): - AxiosPromise; modifyPushConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Modifypushconfig, + options?: MethodOptions): AxiosPromise; + modifyPushConfig( + params: Params$Resource$Projects$Subscriptions$Modifypushconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; modifyPushConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Modifypushconfig, + callback: BodyResponseCallback): void; + modifyPushConfig(callback: BodyResponseCallback): void; + modifyPushConfig( + paramsOrCallback?: + Params$Resource$Projects$Subscriptions$Modifypushconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Modifypushconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Modifypushconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -943,26 +1053,39 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pull(params?: any, options?: MethodOptions): - AxiosPromise; pull( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Pull, + options?: MethodOptions): AxiosPromise; pull( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Pull, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + pull( + params: Params$Resource$Projects$Subscriptions$Pull, + callback: BodyResponseCallback): void; + pull(callback: BodyResponseCallback): void; + pull( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Pull| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Pull; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Pull; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -999,26 +1122,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Subscriptions$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Subscriptions$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Subscriptions$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Subscriptions$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Subscriptions$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1058,29 +1193,47 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Subscriptions$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Subscriptions$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Subscriptions$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Subscriptions$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Subscriptions$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Subscriptions$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1104,6 +1257,175 @@ export namespace pubsub_v1beta2 { } } + export interface Params$Resource$Projects$Subscriptions$Acknowledge { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription whose message is being acknowledged. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$AcknowledgeRequest; + } + export interface Params$Resource$Projects$Subscriptions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` + * must start with a letter, and contain only letters (`[A-Za-z]`), numbers + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), + * plus (`+`) or percent signs (`%`). It must be between 3 and 255 + * characters in length, and it must not start with `"goog"`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Subscription; + } + export interface Params$Resource$Projects$Subscriptions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription to delete. + */ + subscription?: string; + } + export interface Params$Resource$Projects$Subscriptions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription to get. + */ + subscription?: string; + } + export interface Params$Resource$Projects$Subscriptions$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of subscriptions to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListSubscriptionsResponse`; indicates + * that this is a continuation of a prior `ListSubscriptions` call, and that + * the system should return the next page of data. + */ + pageToken?: string; + /** + * The name of the cloud project that subscriptions belong to. + */ + project?: string; + } + export interface Params$Resource$Projects$Subscriptions$Modifyackdeadline { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyAckDeadlineRequest; + } + export interface Params$Resource$Projects$Subscriptions$Modifypushconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the subscription. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$ModifyPushConfigRequest; + } + export interface Params$Resource$Projects$Subscriptions$Pull { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The subscription from which messages should be pulled. + */ + subscription?: string; + /** + * Request body metadata + */ + resource?: Schema$PullRequest; + } + export interface Params$Resource$Projects$Subscriptions$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Subscriptions$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Topics { root: Pubsub; subscriptions: Resource$Projects$Topics$Subscriptions; @@ -1131,25 +1453,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Topics$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Topics$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1188,25 +1523,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Topics$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Topics$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Topics$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1241,23 +1589,34 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Topics$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Topics$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Topics$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Topics$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1293,26 +1652,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Topics$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Topics$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Topics$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1349,26 +1720,39 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Topics$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Topics$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Topics$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1406,26 +1790,39 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): - AxiosPromise; publish( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Publish, + options?: MethodOptions): AxiosPromise; + publish( + params: Params$Resource$Projects$Topics$Publish, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; publish( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$Publish, + callback: BodyResponseCallback): void; + publish(callback: BodyResponseCallback): void; + publish( + paramsOrCallback?: Params$Resource$Projects$Topics$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Topics$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1462,26 +1859,38 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Topics$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Topics$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Topics$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Topics$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1521,29 +1930,45 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Topics$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Projects$Topics$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1566,6 +1991,130 @@ export namespace pubsub_v1beta2 { } } } + + export interface Params$Resource$Projects$Topics$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a + * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes + * (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or + * percent signs (`%`). It must be between 3 and 255 characters in length, + * and it must not start with `"goog"`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Topic; + } + export interface Params$Resource$Projects$Topics$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the topic to delete. + */ + topic?: string; + } + export interface Params$Resource$Projects$Topics$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the topic to get. + */ + topic?: string; + } + export interface Params$Resource$Projects$Topics$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Topics$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of topics to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListTopicsResponse`; indicates that this + * is a continuation of a prior `ListTopics` call, and that the system + * should return the next page of data. + */ + pageToken?: string; + /** + * The name of the cloud project that topics belong to. + */ + project?: string; + } + export interface Params$Resource$Projects$Topics$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The messages in the request will be published on this topic. + */ + topic?: string; + /** + * Request body metadata + */ + resource?: Schema$PublishRequest; + } + export interface Params$Resource$Projects$Topics$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Topics$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Projects$Topics$Subscriptions { root: Pubsub; constructor(root: Pubsub) { @@ -1592,29 +2141,44 @@ export namespace pubsub_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Topics$Subscriptions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Topics$Subscriptions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Topics$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Topics$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Topics$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; const parameters = { options: Object.assign( @@ -1638,4 +2202,26 @@ export namespace pubsub_v1beta2 { } } } + + export interface Params$Resource$Projects$Topics$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of subscription names to return. + */ + pageSize?: number; + /** + * The value returned by the last `ListTopicSubscriptionsResponse`; + * indicates that this is a continuation of a prior `ListTopicSubscriptions` + * call, and that the system should return the next page of data. + */ + pageToken?: string; + /** + * The name of the topic that subscriptions are attached to. + */ + topic?: string; + } } diff --git a/src/apis/replicapool/v1beta1.ts b/src/apis/replicapool/v1beta1.ts index ae790094131..fa6cd8929a3 100644 --- a/src/apis/replicapool/v1beta1.ts +++ b/src/apis/replicapool/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace replicapool_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Replica Pool API * @@ -76,16 +79,16 @@ export namespace replicapool_v1beta1 { /** * Name of this access configuration. */ - name: string; + name?: string; /** * An external IP address associated with this instance. */ - natIp: string; + natIp?: string; /** * Type of this access configuration file. Currently only ONE_TO_ONE_NAT is * supported. */ - type: string; + type?: string; } /** * An action that gets executed during initialization of the replicas. @@ -96,11 +99,11 @@ export namespace replicapool_v1beta1 { * action is considered a failure and no further actions are run. This also * marks the virtual machine or replica as a failure. */ - commands: string[]; + commands?: string[]; /** * A list of environment variables to use for the commands in this action. */ - envVariables: Schema$EnvVariable[]; + envVariables?: Schema$EnvVariable[]; /** * If an action's commands on a particular replica do not finish in the * specified timeoutMilliSeconds, the replica is considered to be in a @@ -108,7 +111,7 @@ export namespace replicapool_v1beta1 { * spawned or created as the result of running the action's commands. * The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds). */ - timeoutMilliSeconds: number; + timeoutMilliSeconds?: number; } /** * Specifies how to attach a disk to a Replica. @@ -117,12 +120,12 @@ export namespace replicapool_v1beta1 { /** * The device name of this disk. */ - deviceName: string; + deviceName?: string; /** * A zero-based index to assign to this disk, where 0 is reserved for the * boot disk. If not specified, this is assigned by the server. */ - index: number; + index?: number; } /** * An environment variable to set for an action. @@ -131,15 +134,15 @@ export namespace replicapool_v1beta1 { /** * Deprecated, do not use. */ - hidden: boolean; + hidden?: boolean; /** * The name of the environment variable. */ - name: string; + name?: string; /** * The value of the variable. */ - value: string; + value?: string; } /** * A pre-existing persistent disk that will be attached to every Replica in @@ -149,56 +152,56 @@ export namespace replicapool_v1beta1 { /** * How the disk will be attached to the Replica. */ - attachment: Schema$DiskAttachment; + attachment?: Schema$DiskAttachment; /** * The name of the Persistent Disk resource. The Persistent Disk resource * must be in the same zone as the Pool. */ - source: string; + source?: string; } export interface Schema$HealthCheck { /** * How often (in seconds) to make HTTP requests for this healthcheck. The * default value is 5 seconds. */ - checkIntervalSec: number; + checkIntervalSec?: number; /** * The description for this health check. */ - description: string; + description?: string; /** * The number of consecutive health check requests that need to succeed * before the replica is considered healthy again. The default value is 2. */ - healthyThreshold: number; + healthyThreshold?: number; /** * The value of the host header in the HTTP health check request. If left * empty (default value), the localhost IP 127.0.0.1 will be used. */ - host: string; + host?: string; /** * The name of this health check. */ - name: string; + name?: string; /** * The localhost request path to send this health check, in the format * /path/to/use. For example, /healthcheck. */ - path: string; + path?: string; /** * The TCP port for the health check requests. */ - port: number; + port?: number; /** * How long (in seconds) to wait before a timeout failure for this * healthcheck. The default value is 5 seconds. */ - timeoutSec: number; + timeoutSec?: number; /** * The number of consecutive health check requests that need to fail in * order to consider the replica unhealthy. The default value is 2. */ - unhealthyThreshold: number; + unhealthyThreshold?: number; } /** * A label to apply to this replica pool. @@ -207,11 +210,11 @@ export namespace replicapool_v1beta1 { /** * The key for this label. */ - key: string; + key?: string; /** * The value of this label. */ - value: string; + value?: string; } /** * A Compute Engine metadata entry. Identical to the metadata on the @@ -222,11 +225,11 @@ export namespace replicapool_v1beta1 { * The fingerprint of the metadata. Required for updating the metadata * entries for this instance. */ - fingerPrint: string; + fingerPrint?: string; /** * A list of metadata items. */ - items: Schema$MetadataItem[]; + items?: Schema$MetadataItem[]; } /** * A Compute Engine metadata item, defined as a key:value pair. Identical to @@ -236,11 +239,11 @@ export namespace replicapool_v1beta1 { /** * A metadata key. */ - key: string; + key?: string; /** * A metadata value. */ - value: string; + value?: string; } /** * A Compute Engine NetworkInterface resource. Identical to the @@ -251,16 +254,16 @@ export namespace replicapool_v1beta1 { * An array of configurations for this interface. This specifies how this * interface is configured to interact with other network services. */ - accessConfigs: Schema$AccessConfig[]; + accessConfigs?: Schema$AccessConfig[]; /** * Name the Network resource to which this interface applies. */ - network: string; + network?: string; /** * An optional IPV4 internal network address to assign to the instance for * this network interface. */ - networkIp: string; + networkIp?: string; } /** * A Persistent Disk resource that will be created and attached to each @@ -271,21 +274,21 @@ export namespace replicapool_v1beta1 { /** * How the disk will be attached to the Replica. */ - attachment: Schema$DiskAttachment; + attachment?: Schema$DiskAttachment; /** * If true, then this disk will be deleted when the instance is deleted. The * default value is true. */ - autoDelete: boolean; + autoDelete?: boolean; /** * If true, indicates that this is the root persistent disk. */ - boot: boolean; + boot?: boolean; /** * Create the new disk using these parameters. The name of the disk will be * <instance_name>-<four_random_charactersgt;. */ - initializeParams: Schema$NewDiskInitializeParams; + initializeParams?: Schema$NewDiskInitializeParams; } /** * Initialization parameters for creating a new disk. @@ -294,13 +297,13 @@ export namespace replicapool_v1beta1 { /** * The size of the created disk in gigabytes. */ - diskSizeGb: string; + diskSizeGb?: string; /** * Name of the disk type resource describing which disk type to use to * create the disk. For example 'pd-ssd' or 'pd-standard'. * Default is 'pd-standard' */ - diskType: string; + diskType?: string; /** * The name or fully-qualified URL of a source image to use to create this * disk. If you provide a name of the source image, Replica Pool will look @@ -310,14 +313,14 @@ export namespace replicapool_v1beta1 { * http://www.googleapis.com/compute/v1/projects/debian-cloud/ * global/images/debian-wheezy-7-vYYYYMMDD */ - sourceImage: string; + sourceImage?: string; } export interface Schema$Pool { /** * Whether replicas in this pool should be restarted if they experience a * failure. The default value is true. */ - autoRestart: boolean; + autoRestart?: boolean; /** * The base instance name to use for the replicas in this pool. This must * match the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances @@ -327,51 +330,51 @@ export namespace replicapool_v1beta1 { * is not specified by the user, a random base instance name is generated by * the service. */ - baseInstanceName: string; + baseInstanceName?: string; /** * [Output Only] The current number of replicas in the pool. */ - currentNumReplicas: number; + currentNumReplicas?: number; /** * An optional description of the replica pool. */ - description: string; + description?: string; /** * Deprecated. Please use template[].healthChecks instead. */ - healthChecks: Schema$HealthCheck[]; + healthChecks?: Schema$HealthCheck[]; /** * The initial number of replicas this pool should have. You must provide a * value greater than or equal to 0. */ - initialNumReplicas: number; + initialNumReplicas?: number; /** * A list of labels to attach to this replica pool and all created virtual * machines in this replica pool. */ - labels: Schema$Label[]; + labels?: Schema$Label[]; /** * The name of the replica pool. Must follow the regex * [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long. */ - name: string; + name?: string; /** * Deprecated! Use initial_num_replicas instead. */ - numReplicas: number; + numReplicas?: number; /** * The list of resource views that should be updated with all the replicas * that are managed by this pool. */ - resourceViews: string[]; + resourceViews?: string[]; /** * [Output Only] A self-link to the replica pool. */ - selfLink: string; + selfLink?: string; /** * Deprecated, please use target_pools instead. */ - targetPool: string; + targetPool?: string; /** * A list of target pools to update with the replicas that are managed by * this pool. If specified, the replicas in this replica pool will be added @@ -380,17 +383,17 @@ export namespace replicapool_v1beta1 { * values must be the target pool resource names, and not fully qualified * URLs. */ - targetPools: string[]; + targetPools?: string[]; /** * The template to use when creating replicas in this pool. This template is * used during initial instance creation of the pool, when growing the pool * in size, or when a replica restarts. */ - template: Schema$Template; + template?: Schema$Template; /** * Deprecated! Do not set. */ - type: string; + type?: string; } export interface Schema$PoolsDeleteRequest { /** @@ -398,11 +401,11 @@ export namespace replicapool_v1beta1 { * These instances won't be deleted, but the associated replica objects * will be removed. */ - abandonInstances: string[]; + abandonInstances?: string[]; } export interface Schema$PoolsListResponse { - nextPageToken: string; - resources: Schema$Pool[]; + nextPageToken?: string; + resources?: Schema$Pool[]; } /** * An individual Replica within a Pool. Replicas are automatically created by @@ -413,15 +416,15 @@ export namespace replicapool_v1beta1 { /** * [Output Only] The name of the Replica object. */ - name: string; + name?: string; /** * [Output Only] The self-link of the Replica. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Last known status of the Replica. */ - status: Schema$ReplicaStatus; + status?: Schema$ReplicaStatus; } export interface Schema$ReplicasDeleteRequest { /** @@ -430,11 +433,11 @@ export namespace replicapool_v1beta1 { * virtual machine instance will remain. By default, this is set to false * and the instance will be deleted along with the replica. */ - abandonInstance: boolean; + abandonInstance?: boolean; } export interface Schema$ReplicasListResponse { - nextPageToken: string; - resources: Schema$Replica[]; + nextPageToken?: string; + resources?: Schema$Replica[]; } /** * The current status of a Replica. @@ -444,24 +447,24 @@ export namespace replicapool_v1beta1 { * [Output Only] Human-readable details about the current state of the * replica */ - details: string; + details?: string; /** * [Output Only] The state of the Replica. */ - state: string; + state?: string; /** * [Output Only] The template used to build the replica. */ - templateVersion: string; + templateVersion?: string; /** * [Output Only] Link to the virtual machine that this Replica represents. */ - vmLink: string; + vmLink?: string; /** * [Output Only] The time that this Replica got to the RUNNING state, in RFC * 3339 format. If the start time is unknown, UNKNOWN is returned. */ - vmStartTime: string; + vmStartTime?: string; } /** * A Compute Engine service account, identical to the Compute Engine resource. @@ -471,12 +474,12 @@ export namespace replicapool_v1beta1 { * The service account email address, for example: * 123845678986@project.gserviceaccount.com */ - email: string; + email?: string; /** * The list of OAuth2 scopes to obtain for the service account, for example: * https://www.googleapis.com/auth/devstorage.full_control */ - scopes: string[]; + scopes?: string[]; } /** * A Compute Engine Instance tag, identical to the tags on the corresponding @@ -486,11 +489,11 @@ export namespace replicapool_v1beta1 { /** * The fingerprint of the tag. Required for updating the list of tags. */ - fingerPrint: string; + fingerPrint?: string; /** * Items contained in this tag. */ - items: string[]; + items?: string[]; } /** * The template used for creating replicas in the pool. @@ -502,24 +505,24 @@ export namespace replicapool_v1beta1 { * shell, so any state established by one command is inherited by later * commands. */ - action: Schema$Action; + action?: Schema$Action; /** * A list of HTTP Health Checks to configure for this replica pool and all * virtual machines in this replica pool. */ - healthChecks: Schema$HealthCheck[]; + healthChecks?: Schema$HealthCheck[]; /** * A free-form string describing the version of this template. You can * provide any versioning string you would like. For example, version1 or * template-v1. */ - version: string; + version?: string; /** * The virtual machine parameters to use for creating replicas. You can * define settings such as the machine type and the image of replicas in * this pool. This is required if replica type is SMART_VM. */ - vmParams: Schema$VmParams; + vmParams?: Schema$VmParams; } /** * Parameters for creating a Compute Engine Instance resource. Most fields are @@ -529,55 +532,56 @@ export namespace replicapool_v1beta1 { /** * Deprecated. Please use baseInstanceName instead. */ - baseInstanceName: string; + baseInstanceName?: string; /** * Enables IP Forwarding, which allows this instance to receive packets * destined for a different IP address, and send packets with a different * source IP. See IP Forwarding for more information. */ - canIpForward: boolean; + canIpForward?: boolean; /** * An optional textual description of the instance. */ - description: string; + description?: string; /** * A list of existing Persistent Disk resources to attach to each replica in * the pool. Each disk will be attached in read-only mode to every replica. */ - disksToAttach: Schema$ExistingDisk[]; + disksToAttach?: Schema$ExistingDisk[]; /** * A list of Disk resources to create and attach to each Replica in the * Pool. Currently, you can only define one disk and it must be a root * persistent disk. Note that Replica Pool will create a root persistent * disk for each replica. */ - disksToCreate: Schema$NewDisk[]; + disksToCreate?: Schema$NewDisk[]; /** * The machine type for this instance. The resource name (e.g. * n1-standard-1). */ - machineType: string; + machineType?: string; /** * The metadata key/value pairs assigned to this instance. */ - metadata: Schema$Metadata; + metadata?: Schema$Metadata; /** * A list of network interfaces for the instance. Currently only one * interface is supported by Google Compute Engine, ONE_TO_ONE_NAT. */ - networkInterfaces: Schema$NetworkInterface[]; - onHostMaintenance: string; + networkInterfaces?: Schema$NetworkInterface[]; + onHostMaintenance?: string; /** * A list of Service Accounts to enable for this instance. */ - serviceAccounts: Schema$ServiceAccount[]; + serviceAccounts?: Schema$ServiceAccount[]; /** * A list of tags to apply to the Google Compute Engine instance to identify * resources. */ - tags: Schema$Tag; + tags?: Schema$Tag; } + export class Resource$Pools { root: Replicapool; constructor(root: Replicapool) { @@ -605,22 +609,35 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Pools$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Pools$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pools$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pools$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pools$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pools$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -659,21 +676,33 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Pools$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Pools$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Pools$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Pools$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pools$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pools$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -712,23 +741,36 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Pools$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pools$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Pools$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Pools$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pools$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pools$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -768,26 +810,37 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Pools$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pools$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Pools$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pools$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pools$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pools$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -829,23 +882,36 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): AxiosPromise; + resize(params?: Params$Resource$Pools$Resize, options?: MethodOptions): + AxiosPromise; + resize( + params: Params$Resource$Pools$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resize( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Pools$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; resize( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pools$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Pools$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pools$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -885,22 +951,37 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatetemplate(params?: any, options?: MethodOptions): AxiosPromise; updatetemplate( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Pools$Updatetemplate, + options?: MethodOptions): AxiosPromise; + updatetemplate( + params: Params$Resource$Pools$Updatetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updatetemplate( + params: Params$Resource$Pools$Updatetemplate, + callback: BodyResponseCallback): void; + updatetemplate(callback: BodyResponseCallback): void; updatetemplate( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Pools$Updatetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Pools$Updatetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pools$Updatetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -925,6 +1006,142 @@ export namespace replicapool_v1beta1 { } } + export interface Params$Resource$Pools$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the replica pool for this request. + */ + poolName?: string; + /** + * The project ID for this replica pool. + */ + projectName?: string; + /** + * The zone for this replica pool. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$PoolsDeleteRequest; + } + export interface Params$Resource$Pools$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the replica pool for this request. + */ + poolName?: string; + /** + * The project ID for this replica pool. + */ + projectName?: string; + /** + * The zone for this replica pool. + */ + zone?: string; + } + export interface Params$Resource$Pools$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID for this replica pool. + */ + projectName?: string; + /** + * The zone for this replica pool. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Pool; + } + export interface Params$Resource$Pools$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 100, + * inclusive. (Default: 50) + */ + maxResults?: number; + /** + * Set this to the nextPageToken value returned by a previous list request + * to obtain the next page of results from the previous list request. + */ + pageToken?: string; + /** + * The project ID for this request. + */ + projectName?: string; + /** + * The zone for this replica pool. + */ + zone?: string; + } + export interface Params$Resource$Pools$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The desired number of replicas to resize to. If this number is larger + * than the existing number of replicas, new replicas will be added. If the + * number is smaller, then existing replicas will be deleted. + */ + numReplicas?: number; + /** + * The name of the replica pool for this request. + */ + poolName?: string; + /** + * The project ID for this replica pool. + */ + projectName?: string; + /** + * The zone for this replica pool. + */ + zone?: string; + } + export interface Params$Resource$Pools$Updatetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the replica pool for this request. + */ + poolName?: string; + /** + * The project ID for this replica pool. + */ + projectName?: string; + /** + * The zone for this replica pool. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$Template; + } + + export class Resource$Replicas { root: Replicapool; constructor(root: Replicapool) { @@ -953,25 +1170,36 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Replicas$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Replicas$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replicas$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Replicas$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replicas$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replicas$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1011,23 +1239,33 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Replicas$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Replicas$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Replicas$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Replicas$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replicas$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replicas$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1068,28 +1306,38 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Replicas$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Replicas$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Replicas$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Replicas$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replicas$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replicas$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1129,26 +1377,36 @@ export namespace replicapool_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - restart(params?: any, options?: MethodOptions): + restart(params?: Params$Resource$Replicas$Restart, options?: MethodOptions): AxiosPromise; restart( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Replicas$Restart, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + restart( + params: Params$Resource$Replicas$Restart, + callback: BodyResponseCallback): void; + restart(callback: BodyResponseCallback): void; restart( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Replicas$Restart| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Replicas$Restart; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Replicas$Restart; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1172,4 +1430,107 @@ export namespace replicapool_v1beta1 { } } } + + export interface Params$Resource$Replicas$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The replica pool name for this request. + */ + poolName?: string; + /** + * The project ID for this request. + */ + projectName?: string; + /** + * The name of the replica for this request. + */ + replicaName?: string; + /** + * The zone where the replica lives. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ReplicasDeleteRequest; + } + export interface Params$Resource$Replicas$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The replica pool name for this request. + */ + poolName?: string; + /** + * The project ID for this request. + */ + projectName?: string; + /** + * The name of the replica for this request. + */ + replicaName?: string; + /** + * The zone where the replica lives. + */ + zone?: string; + } + export interface Params$Resource$Replicas$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 100, + * inclusive. (Default: 50) + */ + maxResults?: number; + /** + * Set this to the nextPageToken value returned by a previous list request + * to obtain the next page of results from the previous list request. + */ + pageToken?: string; + /** + * The replica pool name for this request. + */ + poolName?: string; + /** + * The project ID for this request. + */ + projectName?: string; + /** + * The zone where the replica pool lives. + */ + zone?: string; + } + export interface Params$Resource$Replicas$Restart { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The replica pool name for this request. + */ + poolName?: string; + /** + * The project ID for this request. + */ + projectName?: string; + /** + * The name of the replica for this request. + */ + replicaName?: string; + /** + * The zone where the replica lives. + */ + zone?: string; + } } diff --git a/src/apis/replicapool/v1beta2.ts b/src/apis/replicapool/v1beta2.ts index dec478b5aa6..ae065d7a60f 100644 --- a/src/apis/replicapool/v1beta2.ts +++ b/src/apis/replicapool/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace replicapool_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Google Compute Engine Instance Group Manager API * @@ -76,99 +79,99 @@ export namespace replicapool_v1beta2 { * The autohealing policy for this managed instance group. You can specify * only one value. */ - autoHealingPolicies: Schema$ReplicaPoolAutoHealingPolicy[]; + autoHealingPolicies?: Schema$ReplicaPoolAutoHealingPolicy[]; /** * The base instance name to use for instances in this group. The value must * be a valid RFC1035 name. Supported characters are lowercase letters, * numbers, and hyphens (-). Instances are named by appending a hyphen and a * random four-character string to the base instance name. */ - baseInstanceName: string; + baseInstanceName?: string; /** * [Output only] The time the instance group manager was created, in RFC3339 * text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output only] The number of instances that currently exist and are a part * of this group. This includes instances that are starting but are not yet * RUNNING, and instances that are in the process of being deleted or * abandoned. */ - currentSize: number; + currentSize?: number; /** * An optional textual description of the instance group manager. */ - description: string; + description?: string; /** * [Output only] Fingerprint of the instance group manager. This field is * used for optimistic locking. An up-to-date fingerprint must be provided * in order to modify the Instance Group Manager resource. */ - fingerprint: string; + fingerprint?: string; /** * [Output only] The full URL of the instance group created by the manager. * This group contains all of the instances being managed, and cannot * contain non-managed instances. */ - group: string; + group?: string; /** * [Output only] A server-assigned unique identifier for the resource. */ - id: string; + id?: string; /** * The full URL to an instance template from which all new instances will be * created. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output only] The resource type. Always replicapool#instanceGroupManager. */ - kind: string; + kind?: string; /** * The name of the instance group manager. Must be 1-63 characters long and * comply with RFC1035. Supported characters include lowercase letters, * numbers, and hyphens. */ - name: string; + name?: string; /** * [Output only] The fully qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * The full URL of all target pools to which new instances in the group are * added. Updating the target pool values does not affect existing * instances. */ - targetPools: string[]; + targetPools?: string[]; /** * [Output only] The number of instances that the manager is attempting to * maintain. Deleting or abandoning instances affects this number, as does * resizing the group. */ - targetSize: number; + targetSize?: number; } export interface Schema$InstanceGroupManagerList { /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * A list of instance resources. */ - items: Schema$InstanceGroupManager[]; + items?: Schema$InstanceGroupManager[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * A token used to continue a truncated list request (output only). */ - nextPageToken: string; + nextPageToken?: string; /** * Server defined URL for this resource (output only). */ - selfLink: string; + selfLink?: string; } export interface Schema$InstanceGroupManagersAbandonInstancesRequest { /** @@ -176,14 +179,14 @@ export namespace replicapool_v1beta2 { * 'instances': [ 'instance-c3po', 'instance-r2d2' ] * } */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersDeleteInstancesRequest { /** * Names of instances to delete. Example: 'instance-foo', * 'instance-bar' */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersRecreateInstancesRequest { /** @@ -191,14 +194,14 @@ export namespace replicapool_v1beta2 { * 'instances': [ 'instance-c3po', 'instance-r2d2' ] * } */ - instances: string[]; + instances?: string[]; } export interface Schema$InstanceGroupManagersSetInstanceTemplateRequest { /** * The full URL to an Instance Template from which all new instances will be * created. */ - instanceTemplate: string; + instanceTemplate?: string; } export interface Schema$InstanceGroupManagersSetTargetPoolsRequest { /** @@ -206,13 +209,13 @@ export namespace replicapool_v1beta2 { * does not match the server-side fingerprint of the resource, then the * request will be rejected. */ - fingerprint: string; + fingerprint?: string; /** * A list of fully-qualified URLs to existing Target Pool resources. New * instances in the Instance Group Manager will be added to the specified * target pools; existing instances are not affected. */ - targetPools: string[]; + targetPools?: string[]; } /** * An operation resource, used to manage asynchronous API requests. @@ -223,53 +226,53 @@ export namespace replicapool_v1beta2 { * mutation was initiated. Must be unique for all operation resources in the * project. */ - clientOperationId: string; + clientOperationId?: string; /** * [Output Only] The time that this operation was requested, in RFC3339 text * format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The time that this operation was completed, in RFC3339 text * format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors occurred during processing of this operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output only] If operation fails, the HTTP error message returned. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output only] If operation fails, the HTTP error status code returned. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] Unique identifier for the resource, generated by the * server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested, in RFC3339 text * format. */ - insertTime: string; + insertTime?: string; /** * [Output only] Type of the resource. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output only] Type of the operation. Operations include insert, update, * and delete. */ - operationType: string; + operationType?: string; /** * [Output only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -277,76 +280,76 @@ export namespace replicapool_v1beta2 { * be complete. This number should be monotonically increasing as the * operation progresses. */ - progress: number; + progress?: number; /** * [Output Only] URL of the region where the operation resides. Only * available when performing regional operations. */ - region: string; + region?: string; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server, in * RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] Status of the operation. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] Unique target ID which identifies a particular incarnation * of the target. */ - targetId: string; + targetId?: string; /** * [Output only] URL of the resource the operation is mutating. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If there are issues with this operation, a warning is * returned. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] URL of the zone where the operation resides. Only available * when performing per-zone operations. */ - zone: string; + zone?: string; } export interface Schema$OperationList { /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * The operation resources. */ - items: Schema$Operation[]; + items?: Schema$Operation[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * A token used to continue a truncated list request (output only). */ - nextPageToken: string; + nextPageToken?: string; /** * Server defined URL for this resource (output only). */ - selfLink: string; + selfLink?: string; } export interface Schema$ReplicaPoolAutoHealingPolicy { /** @@ -356,13 +359,14 @@ export namespace replicapool_v1beta2 { * instance group. REBOOT performs a soft reboot on an instance. If the * instance cannot reboot, the instance performs a hard restart. */ - actionType: string; + actionType?: string; /** * The URL for the HealthCheck that signals autohealing. */ - healthCheck: string; + healthCheck?: string; } + export class Resource$Instancegroupmanagers { root: Replicapool; constructor(root: Replicapool) { @@ -392,26 +396,40 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - abandonInstances(params?: any, options?: MethodOptions): - AxiosPromise; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Abandoninstances, + options?: MethodOptions): AxiosPromise; + abandonInstances( + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + abandonInstances( + params: Params$Resource$Instancegroupmanagers$Abandoninstances, + callback: BodyResponseCallback): void; + abandonInstances(callback: BodyResponseCallback): void; abandonInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Abandoninstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Abandoninstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Abandoninstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -453,26 +471,39 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Instancegroupmanagers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -515,26 +546,40 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - deleteInstances(params?: any, options?: MethodOptions): - AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Deleteinstances, + options?: MethodOptions): AxiosPromise; deleteInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + deleteInstances( + params: Params$Resource$Instancegroupmanagers$Deleteinstances, + callback: BodyResponseCallback): void; + deleteInstances(callback: BodyResponseCallback): void; + deleteInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Deleteinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Deleteinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Deleteinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -573,26 +618,36 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instancegroupmanagers$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Instancegroupmanagers$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instancegroupmanagers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instancegroupmanagers$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instancegroupmanagers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -633,26 +688,39 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Instancegroupmanagers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Instancegroupmanagers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -694,28 +762,40 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instancegroupmanagers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Instancegroupmanagers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instancegroupmanagers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instancegroupmanagers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -756,26 +836,40 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recreateInstances(params?: any, options?: MethodOptions): - AxiosPromise; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Recreateinstances, + options?: MethodOptions): AxiosPromise; recreateInstances( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + recreateInstances( + params: Params$Resource$Instancegroupmanagers$Recreateinstances, + callback: BodyResponseCallback): void; + recreateInstances(callback: BodyResponseCallback): void; + recreateInstances( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Recreateinstances| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Recreateinstances; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Recreateinstances; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -818,26 +912,39 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resize(params?: any, options?: MethodOptions): - AxiosPromise; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Resize, + options?: MethodOptions): AxiosPromise; + resize( + params: Params$Resource$Instancegroupmanagers$Resize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; resize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Resize, + callback: BodyResponseCallback): void; + resize(callback: BodyResponseCallback): void; + resize( + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Resize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Resize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Resize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -878,26 +985,41 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setInstanceTemplate(params?: any, options?: MethodOptions): - AxiosPromise; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options?: MethodOptions): AxiosPromise; + setInstanceTemplate( + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setInstanceTemplate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instancegroupmanagers$Setinstancetemplate, + callback: BodyResponseCallback): void; + setInstanceTemplate(callback: BodyResponseCallback): void; + setInstanceTemplate( + paramsOrCallback?: + Params$Resource$Instancegroupmanagers$Setinstancetemplate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Instancegroupmanagers$Setinstancetemplate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -938,26 +1060,39 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setTargetPools(params?: any, options?: MethodOptions): - AxiosPromise; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instancegroupmanagers$Settargetpools, + options?: MethodOptions): AxiosPromise; + setTargetPools( + params: Params$Resource$Instancegroupmanagers$Settargetpools, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setTargetPools( + params: Params$Resource$Instancegroupmanagers$Settargetpools, + callback: BodyResponseCallback): void; + setTargetPools(callback: BodyResponseCallback): void; setTargetPools( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instancegroupmanagers$Settargetpools| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Instancegroupmanagers$Settargetpools; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instancegroupmanagers$Settargetpools; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -982,6 +1117,236 @@ export namespace replicapool_v1beta2 { } } + export interface Params$Resource$Instancegroupmanagers$Abandoninstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersAbandonInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the Instance Group Manager resource to delete. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Deleteinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersDeleteInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the instance resource to return. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * Number of instances that should exist. + */ + size?: number; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManager; + } + export interface Params$Resource$Instancegroupmanagers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Filter expression for filtering listed resources. + */ + filter?: string; + /** + * Optional. Maximum count of results to be returned. Maximum value is 500 + * and default value is 500. + */ + maxResults?: number; + /** + * Optional. Tag returned by a previous list request truncated by + * maxResults. Used to continue a previous list request. + */ + pageToken?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Recreateinstances { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersRecreateInstancesRequest; + } + export interface Params$Resource$Instancegroupmanagers$Resize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * Number of instances that should exist in this Instance Group Manager. + */ + size?: number; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + } + export interface Params$Resource$Instancegroupmanagers$Setinstancetemplate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetInstanceTemplateRequest; + } + export interface Params$Resource$Instancegroupmanagers$Settargetpools { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the instance group manager. + */ + instanceGroupManager?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the instance group manager resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$InstanceGroupManagersSetTargetPoolsRequest; + } + + export class Resource$Zoneoperations { root: Replicapool; constructor(root: Replicapool) { @@ -1008,23 +1373,35 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1066,26 +1443,38 @@ export namespace replicapool_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Zoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1109,4 +1498,53 @@ export namespace replicapool_v1beta2 { } } } + + export interface Params$Resource$Zoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the operation resource to return. + */ + operation?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Filter expression for filtering listed resources. + */ + filter?: string; + /** + * Optional. Maximum count of results to be returned. Maximum value is 500 + * and default value is 500. + */ + maxResults?: number; + /** + * Optional. Tag returned by a previous list request truncated by + * maxResults. Used to continue a previous list request. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } } diff --git a/src/apis/replicapoolupdater/v1beta1.ts b/src/apis/replicapoolupdater/v1beta1.ts index 6d0c49e066b..75b9c364062 100644 --- a/src/apis/replicapoolupdater/v1beta1.ts +++ b/src/apis/replicapoolupdater/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace replicapoolupdater_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Google Compute Engine Instance Group Updater API * @@ -76,11 +79,11 @@ export namespace replicapoolupdater_v1beta1 { /** * Errors that occurred during the instance update. */ - error: any; + error?: any; /** * Fully-qualified URL of the instance being updated. */ - instance: string; + instance?: string; /** * Status of the instance update. Possible values are: - * "PENDING": The instance update is pending execution. - @@ -94,7 +97,7 @@ export namespace replicapoolupdater_v1beta1 { * longer can be resumed, undefined in which template the instance is * running. */ - status: string; + status?: string; } /** * Response returned by ListInstanceUpdates method. @@ -103,95 +106,95 @@ export namespace replicapoolupdater_v1beta1 { /** * Collection of requested instance updates. */ - items: Schema$InstanceUpdate[]; + items?: Schema$InstanceUpdate[]; /** * [Output Only] Type of the resource. */ - kind: string; + kind?: string; /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] The fully qualified URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * An operation resource, used to manage asynchronous API requests. */ export interface Schema$Operation { - clientOperationId: string; + clientOperationId?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; - endTime: string; + creationTimestamp?: string; + endTime?: string; /** * [Output Only] If errors occurred during processing of this operation, * this field will be populated. */ - error: any; - httpErrorMessage: string; - httpErrorStatusCode: number; + error?: any; + httpErrorMessage?: string; + httpErrorStatusCode?: number; /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested. This is in RFC * 3339 format. */ - insertTime: string; + insertTime?: string; /** * [Output Only] Type of the resource. Always replicapoolupdater#operation * for Operation resources. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; - operationType: string; - progress: number; + name?: string; + operationType?: string; + progress?: number; /** * [Output Only] URL of the region where the operation resides. */ - region: string; + region?: string; /** * [Output Only] The fully qualified URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server. * This is in RFC 3339 format. */ - startTime: string; + startTime?: string; /** * [Output Only] Status of the operation. Can be one of the following: * "PENDING", "RUNNING", or "DONE". */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] Unique target id which identifies a particular incarnation * of the target. */ - targetId: string; + targetId?: string; /** * [Output Only] URL of the resource the operation is mutating. */ - targetLink: string; - user: string; - warnings: any[]; + targetLink?: string; + user?: string; + warnings?: any[]; /** * [Output Only] URL of the zone where the operation resides. */ - zone: string; + zone?: string; } /** * Contains a list of Operation resources. @@ -200,24 +203,24 @@ export namespace replicapoolupdater_v1beta1 { /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * [Output Only] The Operation resources. */ - items: Schema$Operation[]; + items?: Schema$Operation[]; /** * [Output Only] Type of resource. Always replicapoolupdater#operationList * for OperationList resources. */ - kind: string; + kind?: string; /** * [Output Only] A token used to continue a truncate. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] The fully qualified URL for the resource. */ - selfLink: string; + selfLink?: string; } /** * The following represents a resource describing a single update (rollout) of @@ -231,51 +234,51 @@ export namespace replicapoolupdater_v1beta1 { * performs a soft reboot for each instance and is only available for * regular (non-managed) instance groups. */ - actionType: string; + actionType?: string; /** * [Output Only] Creation timestamp in RFC3339 text format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * An optional textual description of the resource; provided by the client * when the resource is created. */ - description: string; + description?: string; /** * [Output Only] Errors that occurred during the rolling update. */ - error: any; + error?: any; /** * [Output Only] Unique identifier for the resource; defined by the server. */ - id: string; + id?: string; /** * Fully-qualified URL of an instance group being updated. Exactly one of * instanceGroupManager and instanceGroup must be set. */ - instanceGroup: string; + instanceGroup?: string; /** * Fully-qualified URL of an instance group manager being updated. Exactly * one of instanceGroupManager and instanceGroup must be set. */ - instanceGroupManager: string; + instanceGroupManager?: string; /** * Fully-qualified URL of an instance template to apply. */ - instanceTemplate: string; + instanceTemplate?: string; /** * [Output Only] Type of the resource. */ - kind: string; + kind?: string; /** * Fully-qualified URL of the instance template encountered while starting * the update. */ - oldInstanceTemplate: string; + oldInstanceTemplate?: string; /** * Parameters of the update process. */ - policy: any; + policy?: any; /** * [Output Only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -283,11 +286,11 @@ export namespace replicapoolupdater_v1beta1 { * complete. This number should be monotonically increasing as the update * progresses. */ - progress: number; + progress?: number; /** * [Output Only] The fully qualified URL for the resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] Status of the update. Possible values are: - * "ROLLING_FORWARD": The update is going forward. - @@ -299,17 +302,17 @@ export namespace replicapoolupdater_v1beta1 { * "CANCELLED": The update is paused and no longer can be resumed, * undefined how many instances are running in which template. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the update. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] User who requested the update, for example: * user@example.com. */ - user: string; + user?: string; } /** * Response returned by List method. @@ -318,21 +321,22 @@ export namespace replicapoolupdater_v1beta1 { /** * Collection of requested updates. */ - items: Schema$RollingUpdate[]; + items?: Schema$RollingUpdate[]; /** * [Output Only] Type of the resource. */ - kind: string; + kind?: string; /** * A token used to continue a truncated list request. */ - nextPageToken: string; + nextPageToken?: string; /** * [Output Only] The fully qualified URL for the resource. */ - selfLink: string; + selfLink?: string; } + export class Resource$Rollingupdates { root: Replicapoolupdater; constructor(root: Replicapoolupdater) { @@ -360,26 +364,39 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rollingupdates$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Rollingupdates$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rollingupdates$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Rollingupdates$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -418,24 +435,35 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Rollingupdates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Rollingupdates$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Rollingupdates$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Rollingupdates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -474,26 +502,39 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rollingupdates$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Rollingupdates$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Rollingupdates$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rollingupdates$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -535,26 +576,38 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Rollingupdates$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Rollingupdates$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Rollingupdates$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rollingupdates$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -596,26 +649,40 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listInstanceUpdates(params?: any, options?: MethodOptions): - AxiosPromise; listInstanceUpdates( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rollingupdates$Listinstanceupdates, + options?: MethodOptions): AxiosPromise; + listInstanceUpdates( + params: Params$Resource$Rollingupdates$Listinstanceupdates, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listInstanceUpdates( + params: Params$Resource$Rollingupdates$Listinstanceupdates, + callback: BodyResponseCallback): void; listInstanceUpdates( - params?: any, - options?: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + listInstanceUpdates( + paramsOrCallback?: Params$Resource$Rollingupdates$Listinstanceupdates| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Rollingupdates$Listinstanceupdates; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Listinstanceupdates; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -655,26 +722,39 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pause(params?: any, options?: MethodOptions): - AxiosPromise; pause( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rollingupdates$Pause, + options?: MethodOptions): AxiosPromise; + pause( + params: Params$Resource$Rollingupdates$Pause, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; pause( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rollingupdates$Pause, + callback: BodyResponseCallback): void; + pause(callback: BodyResponseCallback): void; + pause( + paramsOrCallback?: Params$Resource$Rollingupdates$Pause| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$Pause; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Pause; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -714,26 +794,39 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resume(params?: any, options?: MethodOptions): - AxiosPromise; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rollingupdates$Resume, + options?: MethodOptions): AxiosPromise; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Rollingupdates$Resume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resume( + params: Params$Resource$Rollingupdates$Resume, + callback: BodyResponseCallback): void; + resume(callback: BodyResponseCallback): void; + resume( + paramsOrCallback?: Params$Resource$Rollingupdates$Resume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$Resume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Resume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -773,26 +866,39 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rollback(params?: any, options?: MethodOptions): - AxiosPromise; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Rollingupdates$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Rollingupdates$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rollback( + params: Params$Resource$Rollingupdates$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Rollingupdates$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Rollingupdates$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Rollingupdates$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -817,6 +923,184 @@ export namespace replicapoolupdater_v1beta1 { } } + export interface Params$Resource$Rollingupdates$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the update. + */ + rollingUpdate?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + export interface Params$Resource$Rollingupdates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the update. + */ + rollingUpdate?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + export interface Params$Resource$Rollingupdates$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$RollingUpdate; + } + export interface Params$Resource$Rollingupdates$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Filter expression for filtering listed resources. + */ + filter?: string; + /** + * Optional. Maximum count of results to be returned. Maximum value is 500 + * and default value is 500. + */ + maxResults?: number; + /** + * Optional. Tag returned by a previous list request truncated by + * maxResults. Used to continue a previous list request. + */ + pageToken?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + export interface Params$Resource$Rollingupdates$Listinstanceupdates { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Filter expression for filtering listed resources. + */ + filter?: string; + /** + * Optional. Maximum count of results to be returned. Maximum value is 500 + * and default value is 500. + */ + maxResults?: number; + /** + * Optional. Tag returned by a previous list request truncated by + * maxResults. Used to continue a previous list request. + */ + pageToken?: string; + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the update. + */ + rollingUpdate?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + export interface Params$Resource$Rollingupdates$Pause { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the update. + */ + rollingUpdate?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + export interface Params$Resource$Rollingupdates$Resume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the update. + */ + rollingUpdate?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + export interface Params$Resource$Rollingupdates$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Google Developers Console project name. + */ + project?: string; + /** + * The name of the update. + */ + rollingUpdate?: string; + /** + * The name of the zone in which the update's target resides. + */ + zone?: string; + } + + export class Resource$Zoneoperations { root: Replicapoolupdater; constructor(root: Replicapoolupdater) { @@ -843,23 +1127,35 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -901,26 +1197,38 @@ export namespace replicapoolupdater_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Zoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -944,4 +1252,53 @@ export namespace replicapoolupdater_v1beta1 { } } } + + export interface Params$Resource$Zoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the operation resource to return. + */ + operation?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Filter expression for filtering listed resources. + */ + filter?: string; + /** + * Optional. Maximum count of results to be returned. Maximum value is 500 + * and default value is 500. + */ + maxResults?: number; + /** + * Optional. Tag returned by a previous list request truncated by + * maxResults. Used to continue a previous list request. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } } diff --git a/src/apis/reseller/v1.ts b/src/apis/reseller/v1.ts index e79effe37c3..fa2227fa793 100644 --- a/src/apis/reseller/v1.ts +++ b/src/apis/reseller/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace reseller_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Enterprise Apps Reseller API * @@ -77,46 +80,46 @@ export namespace reseller_v1 { * A customer's physical address. An address can be composed of one to * three lines. The addressline2 and addressLine3 are optional. */ - addressLine1: string; + addressLine1?: string; /** * Line 2 of the address. */ - addressLine2: string; + addressLine2?: string; /** * Line 3 of the address. */ - addressLine3: string; + addressLine3?: string; /** * The customer contact's name. This is required. */ - contactName: string; + contactName?: string; /** * For countryCode information, see the ISO 3166 country code elements. * Verify that country is approved for resale of Google products. This * property is required when creating a new customer. */ - countryCode: string; + countryCode?: string; /** * Identifies the resource as a customer address. Value: customers#address */ - kind: string; + kind?: string; /** * An example of a locality value is the city of San Francisco. */ - locality: string; + locality?: string; /** * The company or company division name. This is required. */ - organizationName: string; + organizationName?: string; /** * A postalCode example is a postal zip code such as 94043. This property is * required when creating a new customer. */ - postalCode: string; + postalCode?: string; /** * An example of a region value is CA for the state of California. */ - region: string; + region?: string; } /** * JSON template for the ChangePlan rpc request. @@ -132,12 +135,12 @@ export namespace reseller_v1 { * code has never been added to a subscription and this property is left * blank, regular pricing will apply. */ - dealCode: string; + dealCode?: string; /** * Identifies the resource as a subscription change plan request. Value: * subscriptions#changePlanRequest */ - kind: string; + kind?: string; /** * The planName property is required. This is the name of the * subscription's payment plan. For more information about the Google @@ -146,19 +149,19 @@ export namespace reseller_v1 { * ANNUAL_YEARLY_PAY - The annual commitment plan with yearly payments - * FLEXIBLE - The flexible plan - TRIAL - The 30-day free trial plan */ - planName: string; + planName?: string; /** * This is an optional property. This purchase order (PO) information is for * resellers to use for their company tracking usage. If a purchaseOrderId * value is given it appears in the API responses and shows up in the * invoice. The property accepts up to 80 plain text characters. */ - purchaseOrderId: string; + purchaseOrderId?: string; /** * This is a required property. The seats property is the number of user * seat licenses. */ - seats: Schema$Seats; + seats?: Schema$Seats; } /** * JSON template for a customer. @@ -171,44 +174,44 @@ export namespace reseller_v1 { * required when creating a new customer and should not use the same domain * as customerDomain. */ - alternateEmail: string; + alternateEmail?: string; /** * The customer's primary domain name string. customerDomain is required * when creating a new customer. Do not include the www prefix in the domain * when adding a customer. */ - customerDomain: string; + customerDomain?: string; /** * Whether the customer's primary domain has been verified. */ - customerDomainVerified: boolean; + customerDomainVerified?: boolean; /** * This property will always be returned in a response as the unique * identifier generated by Google. In a request, this property can be either * the primary domain or the unique identifier generated by Google. */ - customerId: string; + customerId?: string; /** * Identifies the resource as a customer. Value: reseller#customer */ - kind: string; + kind?: string; /** * Customer contact phone number. This can be continuous numbers, with * spaces, etc. But it must be a real phone number and not, for example, * "123". See phone local format conventions. */ - phoneNumber: string; + phoneNumber?: string; /** * A customer's address information. Each field has a limit of 255 * charcters. */ - postalAddress: Schema$Address; + postalAddress?: Schema$Address; /** * URL to customer's Admin console dashboard. The read-only URL is * generated by the API service. This is used if your client application * requires the customer to complete a task in the Admin console. */ - resourceUiUrl: string; + resourceUiUrl?: string; } /** * JSON template for a subscription renewal settings. @@ -218,13 +221,13 @@ export namespace reseller_v1 { * Identifies the resource as a subscription renewal setting. Value: * subscriptions#renewalSettings */ - kind: string; + kind?: string; /** * Renewal settings for the annual commitment plan. For more detailed * information, see renewal options in the administrator help center. When * renewing a subscription, the renewalType is a required property. */ - renewalType: string; + renewalType?: string; } /** * JSON template for resellernotify getwatchdetails response. @@ -233,11 +236,11 @@ export namespace reseller_v1 { /** * List of registered service accounts. */ - serviceAccountEmailAddresses: string[]; + serviceAccountEmailAddresses?: string[]; /** * Topic name of the PubSub */ - topicName: string; + topicName?: string; } /** * JSON template for resellernotify response. @@ -246,7 +249,7 @@ export namespace reseller_v1 { /** * Topic name of the PubSub */ - topicName: string; + topicName?: string; } /** * JSON template for subscription seats. @@ -256,13 +259,13 @@ export namespace reseller_v1 { * Identifies the resource as a subscription change plan request. Value: * subscriptions#seats */ - kind: string; + kind?: string; /** * Read-only field containing the current number of licensed seats for * FLEXIBLE Google-Apps subscriptions and secondary subscriptions such as * Google-Vault and Drive-storage. */ - licensedNumberOfSeats: number; + licensedNumberOfSeats?: number; /** * The maximumNumberOfSeats property is the maximum number of licenses that * the customer can purchase. This property applies to plans other than the @@ -280,7 +283,7 @@ export namespace reseller_v1 { * trial plan — A subscription in a 30-day free trial is restricted to * maximum 10 seats. */ - maximumNumberOfSeats: number; + maximumNumberOfSeats?: number; /** * The numberOfSeats property holds the customer's number of user * licenses. How a user's licenses are managed depends on the @@ -298,7 +301,7 @@ export namespace reseller_v1 { * property is not used in the request or response for an account in a * 30-day trial. */ - numberOfSeats: number; + numberOfSeats?: number; } /** * JSON template for a subscription. @@ -308,83 +311,83 @@ export namespace reseller_v1 { * Read-only field that returns the current billing method for a * subscription. */ - billingMethod: string; + billingMethod?: string; /** * The creationTime property is the date when subscription was created. It * is in milliseconds using the Epoch format. See an example Epoch * converter. */ - creationTime: string; + creationTime?: string; /** * Primary domain name of the customer */ - customerDomain: string; + customerDomain?: string; /** * This property will always be returned in a response as the unique * identifier generated by Google. In a request, this property can be either * the primary domain or the unique identifier generated by Google. */ - customerId: string; + customerId?: string; /** * Google-issued code (100 char max) for discounted pricing on subscription * plans. Deal code must be included in insert requests in order to receive * discounted rate. This property is optional, regular pricing applies if * left empty. */ - dealCode: string; + dealCode?: string; /** * Identifies the resource as a Subscription. Value: reseller#subscription */ - kind: string; + kind?: string; /** * The plan property is required. In this version of the API, the G Suite * plans are the flexible plan, annual commitment plan, and the 30-day free * trial plan. For more information about the API"s payment plans, see * the API concepts. */ - plan: any; + plan?: any; /** * This is an optional property. This purchase order (PO) information is for * resellers to use for their company tracking usage. If a purchaseOrderId * value is given it appears in the API responses and shows up in the * invoice. The property accepts up to 80 plain text characters. */ - purchaseOrderId: string; + purchaseOrderId?: string; /** * Renewal settings for the annual commitment plan. For more detailed * information, see renewal options in the administrator help center. */ - renewalSettings: Schema$RenewalSettings; + renewalSettings?: Schema$RenewalSettings; /** * URL to customer's Subscriptions page in the Admin console. The * read-only URL is generated by the API service. This is used if your * client application requires the customer to complete a task using the * Subscriptions page in the Admin console. */ - resourceUiUrl: string; + resourceUiUrl?: string; /** * This is a required property. The number and limit of user seat licenses * in the plan. */ - seats: Schema$Seats; + seats?: Schema$Seats; /** * A required property. The skuId is a unique system identifier for a * product's SKU assigned to a customer in the subscription. For * products and SKUs available in this version of the API, see Product and * SKU IDs. */ - skuId: string; + skuId?: string; /** * Read-only external display name for a product's SKU assigned to a * customer in the subscription. SKU names are subject to change at * Google's discretion. For products and SKUs available in this version * of the API, see Product and SKU IDs. */ - skuName: string; + skuName?: string; /** * This is an optional property. */ - status: string; + status?: string; /** * The subscriptionId is the subscription identifier and is unique for each * customer. This is a required property. Since a subscriptionId changes @@ -392,7 +395,7 @@ export namespace reseller_v1 { * for persistent data. Use the subscriptionId as described in retrieve all * reseller subscriptions. */ - subscriptionId: string; + subscriptionId?: string; /** * Read-only field containing an enumerable of all the current suspension * reasons for a subscription. It is possible for a subscription to have @@ -407,17 +410,17 @@ export namespace reseller_v1 { * customer is suspended for an internal Google reason (e.g. abuse or * otherwise). */ - suspensionReasons: string[]; + suspensionReasons?: string[]; /** * Read-only transfer related information for the subscription. For more * information, see retrieve transferable subscriptions for a customer. */ - transferInfo: any; + transferInfo?: any; /** * The G Suite annual commitment and flexible payment plans can be in a * 30-day free trial. For more information, see the API concepts. */ - trialSettings: any; + trialSettings?: any; } /** * JSON template for a subscription list. @@ -427,18 +430,19 @@ export namespace reseller_v1 { * Identifies the resource as a collection of subscriptions. Value: * reseller#subscriptions */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The subscriptions in this page of results. */ - subscriptions: Schema$Subscription[]; + subscriptions?: Schema$Subscription[]; } + export class Resource$Customers { root: Reseller; constructor(root: Reseller) { @@ -463,23 +467,33 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Customers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Customers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Customers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Customers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -515,26 +529,36 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Customers$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customers$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Customers$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customers$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -571,25 +595,36 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Customers$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Customers$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customers$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Customers$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -625,26 +660,36 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Customers$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Customers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Customers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Customers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Customers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Customers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -667,6 +712,78 @@ export namespace reseller_v1 { } } + export interface Params$Resource$Customers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + } + export interface Params$Resource$Customers$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The customerAuthToken query string is required when creating a resold + * account that transfers a direct customer's subscription or transfers + * another reseller customer's subscription to your reseller management. + * This is a hexadecimal authentication token needed to complete the + * subscription transfer. For more information, see the administrator help + * center. + */ + customerAuthToken?: string; + /** + * Request body metadata + */ + resource?: Schema$Customer; + } + export interface Params$Resource$Customers$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Customer; + } + export interface Params$Resource$Customers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Customer; + } + + export class Resource$Resellernotify { root: Reseller; constructor(root: Reseller) { @@ -690,31 +807,49 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getwatchdetails(params?: any, options?: MethodOptions): + getwatchdetails( + params?: Params$Resource$Resellernotify$Getwatchdetails, + options?: MethodOptions): AxiosPromise; getwatchdetails( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resellernotify$Getwatchdetails, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + getwatchdetails( + params: Params$Resource$Resellernotify$Getwatchdetails, + callback: + BodyResponseCallback): + void; + getwatchdetails( + callback: BodyResponseCallback): void; getwatchdetails( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resellernotify$Getwatchdetails| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Resellernotify$Getwatchdetails; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resellernotify$Getwatchdetails; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -752,28 +887,41 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - register(params?: any, options?: MethodOptions): - AxiosPromise; register( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Resellernotify$Register, + options?: MethodOptions): AxiosPromise; + register( + params: Params$Resource$Resellernotify$Register, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; register( - params?: any, - options?: MethodOptions| + params: Params$Resource$Resellernotify$Register, + callback: BodyResponseCallback): void; + register(callback: BodyResponseCallback): + void; + register( + paramsOrCallback?: Params$Resource$Resellernotify$Register| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resellernotify$Register; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resellernotify$Register; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -808,28 +956,41 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unregister(params?: any, options?: MethodOptions): - AxiosPromise; unregister( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Resellernotify$Unregister, + options?: MethodOptions): AxiosPromise; + unregister( + params: Params$Resource$Resellernotify$Unregister, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + unregister( + params: Params$Resource$Resellernotify$Unregister, + callback: BodyResponseCallback): void; + unregister(callback: BodyResponseCallback): + void; unregister( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Resellernotify$Unregister| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Resellernotify$Unregister; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Resellernotify$Unregister; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -852,6 +1013,36 @@ export namespace reseller_v1 { } } + export interface Params$Resource$Resellernotify$Getwatchdetails { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Resellernotify$Register { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The service account which will own the created Cloud-PubSub topic. + */ + serviceAccountEmailAddress?: string; + } + export interface Params$Resource$Resellernotify$Unregister { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The service account which owns the Cloud-PubSub topic. + */ + serviceAccountEmailAddress?: string; + } + + export class Resource$Subscriptions { root: Reseller; constructor(root: Reseller) { @@ -877,26 +1068,39 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - activate(params?: any, options?: MethodOptions): - AxiosPromise; activate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Activate, + options?: MethodOptions): AxiosPromise; + activate( + params: Params$Resource$Subscriptions$Activate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + activate( + params: Params$Resource$Subscriptions$Activate, + callback: BodyResponseCallback): void; + activate(callback: BodyResponseCallback): void; activate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Activate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Activate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Activate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -937,26 +1141,39 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - changePlan(params?: any, options?: MethodOptions): - AxiosPromise; changePlan( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Changeplan, + options?: MethodOptions): AxiosPromise; + changePlan( + params: Params$Resource$Subscriptions$Changeplan, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; changePlan( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Changeplan, + callback: BodyResponseCallback): void; + changePlan(callback: BodyResponseCallback): void; + changePlan( + paramsOrCallback?: Params$Resource$Subscriptions$Changeplan| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Changeplan; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Changeplan; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -996,26 +1213,40 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - changeRenewalSettings(params?: any, options?: MethodOptions): - AxiosPromise; changeRenewalSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Changerenewalsettings, + options?: MethodOptions): AxiosPromise; + changeRenewalSettings( + params: Params$Resource$Subscriptions$Changerenewalsettings, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + changeRenewalSettings( + params: Params$Resource$Subscriptions$Changerenewalsettings, + callback: BodyResponseCallback): void; + changeRenewalSettings(callback: BodyResponseCallback): + void; changeRenewalSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Changerenewalsettings| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subscriptions$Changerenewalsettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Changerenewalsettings; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1054,26 +1285,39 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - changeSeats(params?: any, options?: MethodOptions): - AxiosPromise; changeSeats( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Changeseats, + options?: MethodOptions): AxiosPromise; + changeSeats( + params: Params$Resource$Subscriptions$Changeseats, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + changeSeats( + params: Params$Resource$Subscriptions$Changeseats, + callback: BodyResponseCallback): void; + changeSeats(callback: BodyResponseCallback): void; changeSeats( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Changeseats| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Changeseats; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Changeseats; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1112,22 +1356,37 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Subscriptions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subscriptions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1165,24 +1424,35 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Subscriptions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Subscriptions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Subscriptions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Subscriptions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1221,26 +1491,39 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Subscriptions$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Subscriptions$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1282,26 +1565,38 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subscriptions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Subscriptions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1338,26 +1633,39 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startPaidService(params?: any, options?: MethodOptions): - AxiosPromise; startPaidService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Startpaidservice, + options?: MethodOptions): AxiosPromise; + startPaidService( + params: Params$Resource$Subscriptions$Startpaidservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startPaidService( + params: Params$Resource$Subscriptions$Startpaidservice, + callback: BodyResponseCallback): void; + startPaidService(callback: BodyResponseCallback): void; startPaidService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Startpaidservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Subscriptions$Startpaidservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Startpaidservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1395,26 +1703,39 @@ export namespace reseller_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - suspend(params?: any, options?: MethodOptions): - AxiosPromise; suspend( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Suspend, + options?: MethodOptions): AxiosPromise; + suspend( + params: Params$Resource$Subscriptions$Suspend, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; suspend( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Suspend, + callback: BodyResponseCallback): void; + suspend(callback: BodyResponseCallback): void; + suspend( + paramsOrCallback?: Params$Resource$Subscriptions$Suspend| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Suspend; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Suspend; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1438,4 +1759,268 @@ export namespace reseller_v1 { } } } + + export interface Params$Resource$Subscriptions$Activate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + } + export interface Params$Resource$Subscriptions$Changeplan { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + /** + * Request body metadata + */ + resource?: Schema$ChangePlanRequest; + } + export interface Params$Resource$Subscriptions$Changerenewalsettings { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + /** + * Request body metadata + */ + resource?: Schema$RenewalSettings; + } + export interface Params$Resource$Subscriptions$Changeseats { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + /** + * Request body metadata + */ + resource?: Schema$Seats; + } + export interface Params$Resource$Subscriptions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * The deletionType query string enables the cancellation, downgrade, or + * suspension of a subscription. + */ + deletionType?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + } + export interface Params$Resource$Subscriptions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + } + export interface Params$Resource$Subscriptions$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The customerAuthToken query string is required when creating a resold + * account that transfers a direct customer's subscription or transfers + * another reseller customer's subscription to your reseller management. + * This is a hexadecimal authentication token needed to complete the + * subscription transfer. For more information, see the administrator help + * center. + */ + customerAuthToken?: string; + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Subscription; + } + export interface Params$Resource$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The customerAuthToken query string is required when creating a resold + * account that transfers a direct customer's subscription or transfers + * another reseller customer's subscription to your reseller management. + * This is a hexadecimal authentication token needed to complete the + * subscription transfer. For more information, see the administrator help + * center. + */ + customerAuthToken?: string; + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * When retrieving all of your subscriptions and filtering for specific + * customers, you can enter a prefix for a customer name. Using an example + * customer group that includes exam.com, example20.com and example.com: - + * exa -- Returns all customer names that start with 'exa' which could + * include exam.com, example20.com, and example.com. A name prefix is + * similar to using a regular expression's asterisk, exa*. - example -- + * Returns example20.com and example.com. + */ + customerNamePrefix?: string; + /** + * When retrieving a large list, the maxResults is the maximum number of + * results per page. The nextPageToken value takes you to the next page. The + * default is 20. + */ + maxResults?: number; + /** + * Token to specify next page in the list + */ + pageToken?: string; + } + export interface Params$Resource$Subscriptions$Startpaidservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + } + export interface Params$Resource$Subscriptions$Suspend { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Either the customer's primary domain name or the customer's unique + * identifier. If using the domain name, we do not recommend using a + * customerId as a key for persistent data. If the domain name for a + * customerId is changed, the Google system automatically updates. + */ + customerId?: string; + /** + * This is a required property. The subscriptionId is the subscription + * identifier and is unique for each customer. Since a subscriptionId + * changes when a subscription is updated, we recommend to not use this ID + * as a key for persistent data. And the subscriptionId can be found using + * the retrieve all reseller subscriptions method. + */ + subscriptionId?: string; + } } diff --git a/src/apis/resourceviews/v1beta1.ts b/src/apis/resourceviews/v1beta1.ts index dde71f3f923..29f53a035e2 100644 --- a/src/apis/resourceviews/v1beta1.ts +++ b/src/apis/resourceviews/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace resourceviews_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Resource Views API * @@ -75,11 +78,11 @@ export namespace resourceviews_v1beta1 { /** * Key of the label. */ - key: string; + key?: string; /** * Value of the label. */ - value: string; + value?: string; } /** * The request to add resources to the resource view. @@ -88,7 +91,7 @@ export namespace resourceviews_v1beta1 { /** * The list of resources to be added. */ - resources: string[]; + resources?: string[]; } /** * The response to a resource view insert request. @@ -97,7 +100,7 @@ export namespace resourceviews_v1beta1 { /** * The resource view object inserted. */ - resource: Schema$ResourceView; + resource?: Schema$ResourceView; } /** * The response to the list resource request. @@ -106,11 +109,11 @@ export namespace resourceviews_v1beta1 { /** * The resources in the view. */ - members: string[]; + members?: string[]; /** * A token used for pagination. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response to the list resource view request. @@ -119,11 +122,11 @@ export namespace resourceviews_v1beta1 { /** * A token used for pagination. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of resource views that meet the criteria. */ - resourceViews: Schema$ResourceView[]; + resourceViews?: Schema$ResourceView[]; } /** * The request to remove resources from the resource view. @@ -132,7 +135,7 @@ export namespace resourceviews_v1beta1 { /** * The list of resources to be removed. */ - resources: string[]; + resources?: string[]; } /** * The resource view object. @@ -141,43 +144,43 @@ export namespace resourceviews_v1beta1 { /** * The creation time of the resource view. */ - creationTime: string; + creationTime?: string; /** * The detailed description of the resource view. */ - description: string; + description?: string; /** * [Output Only] The ID of the resource view. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * The labels for events. */ - labels: Schema$Label[]; + labels?: Schema$Label[]; /** * The last modified time of the view. Not supported yet. */ - lastModified: string; + lastModified?: string; /** * A list of all resources in the resource view. */ - members: string[]; + members?: string[]; /** * The name of the resource view. */ - name: string; + name?: string; /** * The total number of resources in the resource view. */ - numMembers: number; + numMembers?: number; /** * [Output Only] A self-link to the resource view. */ - selfLink: string; + selfLink?: string; } /** * The request to add resources to the resource view. @@ -186,7 +189,7 @@ export namespace resourceviews_v1beta1 { /** * The list of resources to be added. */ - resources: string[]; + resources?: string[]; } /** * The response to an insert request. @@ -195,7 +198,7 @@ export namespace resourceviews_v1beta1 { /** * The resource view object that has been inserted. */ - resource: Schema$ResourceView; + resource?: Schema$ResourceView; } /** * The response to a list resource request. @@ -204,11 +207,11 @@ export namespace resourceviews_v1beta1 { /** * The full URL of resources in the view. */ - members: string[]; + members?: string[]; /** * A token used for pagination. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response to a list request. @@ -217,11 +220,11 @@ export namespace resourceviews_v1beta1 { /** * A token used for pagination. */ - nextPageToken: string; + nextPageToken?: string; /** * The result that contains all resource views that meet the criteria. */ - resourceViews: Schema$ResourceView[]; + resourceViews?: Schema$ResourceView[]; } /** * The request to remove resources from the resource view. @@ -230,9 +233,10 @@ export namespace resourceviews_v1beta1 { /** * The list of resources to be removed. */ - resources: string[]; + resources?: string[]; } + export class Resource$Regionviews { root: Resourceviews; constructor(root: Resourceviews) { @@ -260,22 +264,37 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addresources(params?: any, options?: MethodOptions): AxiosPromise; addresources( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionviews$Addresources, + options?: MethodOptions): AxiosPromise; + addresources( + params: Params$Resource$Regionviews$Addresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addresources( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionviews$Addresources, + callback: BodyResponseCallback): void; + addresources(callback: BodyResponseCallback): void; + addresources( + paramsOrCallback?: Params$Resource$Regionviews$Addresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionviews$Addresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$Addresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -314,22 +333,37 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionviews$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Regionviews$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Regionviews$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Regionviews$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionviews$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -368,24 +402,34 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Regionviews$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Regionviews$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Regionviews$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Regionviews$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regionviews$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -424,29 +468,41 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert( + params?: Params$Resource$Regionviews$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionviews$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Regionviews$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Regionviews$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionviews$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -487,28 +543,38 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Regionviews$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionviews$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionviews$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Regionviews$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Regionviews$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -549,31 +615,49 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listresources(params?: any, options?: MethodOptions): + listresources( + params?: Params$Resource$Regionviews$Listresources, + options?: MethodOptions): AxiosPromise; listresources( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionviews$Listresources, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; listresources( - params?: any, - options?: MethodOptions| + params: Params$Resource$Regionviews$Listresources, + callback: + BodyResponseCallback): + void; + listresources( + callback: + BodyResponseCallback): + void; + listresources( + paramsOrCallback?: Params$Resource$Regionviews$Listresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Regionviews$Listresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$Listresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -615,22 +699,37 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeresources(params?: any, options?: MethodOptions): AxiosPromise; removeresources( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Regionviews$Removeresources, + options?: MethodOptions): AxiosPromise; + removeresources( + params: Params$Resource$Regionviews$Removeresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeresources( + params: Params$Resource$Regionviews$Removeresources, + callback: BodyResponseCallback): void; + removeresources(callback: BodyResponseCallback): void; removeresources( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Regionviews$Removeresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Regionviews$Removeresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Regionviews$Removeresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -655,6 +754,167 @@ export namespace resourceviews_v1beta1 { } } + export interface Params$Resource$Regionviews$Addresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionViewsAddResourcesRequest; + } + export interface Params$Resource$Regionviews$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + } + export interface Params$Resource$Regionviews$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + } + export interface Params$Resource$Regionviews$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceView; + } + export interface Params$Resource$Regionviews$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 5000, + * inclusive. (Default: 5000) + */ + maxResults?: number; + /** + * Specifies a nextPageToken returned by a previous list request. This token + * can be used to request the next page of results from a previous list + * request. + */ + pageToken?: string; + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + } + export interface Params$Resource$Regionviews$Listresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 5000, + * inclusive. (Default: 5000) + */ + maxResults?: number; + /** + * Specifies a nextPageToken returned by a previous list request. This token + * can be used to request the next page of results from a previous list + * request. + */ + pageToken?: string; + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + } + export interface Params$Resource$Regionviews$Removeresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The region name of the resource view. + */ + region?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * Request body metadata + */ + resource?: Schema$RegionViewsRemoveResourcesRequest; + } + + export class Resource$Zoneviews { root: Resourceviews; constructor(root: Resourceviews) { @@ -682,22 +942,37 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addresources(params?: any, options?: MethodOptions): AxiosPromise; addresources( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneviews$Addresources, + options?: MethodOptions): AxiosPromise; + addresources( + params: Params$Resource$Zoneviews$Addresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addresources( + params: Params$Resource$Zoneviews$Addresources, + callback: BodyResponseCallback): void; + addresources(callback: BodyResponseCallback): void; addresources( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zoneviews$Addresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Addresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Addresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -736,22 +1011,35 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Zoneviews$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneviews$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Zoneviews$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -790,24 +1078,34 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Zoneviews$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Zoneviews$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneviews$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneviews$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -846,28 +1144,39 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Zoneviews$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Zoneviews$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): + void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Zoneviews$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -907,28 +1216,38 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneviews$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Zoneviews$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Zoneviews$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -969,29 +1288,45 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listresources(params?: any, options?: MethodOptions): + listresources( + params?: Params$Resource$Zoneviews$Listresources, + options?: MethodOptions): AxiosPromise; listresources( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$Listresources, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; listresources( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$Listresources, + callback: BodyResponseCallback): + void; + listresources( + callback: BodyResponseCallback): + void; + listresources( + paramsOrCallback?: Params$Resource$Zoneviews$Listresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Listresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Listresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1033,22 +1368,37 @@ export namespace resourceviews_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeresources(params?: any, options?: MethodOptions): AxiosPromise; removeresources( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneviews$Removeresources, + options?: MethodOptions): AxiosPromise; + removeresources( + params: Params$Resource$Zoneviews$Removeresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removeresources( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$Removeresources, + callback: BodyResponseCallback): void; + removeresources(callback: BodyResponseCallback): void; + removeresources( + paramsOrCallback?: Params$Resource$Zoneviews$Removeresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Removeresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Removeresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1072,4 +1422,164 @@ export namespace resourceviews_v1beta1 { } } } + + export interface Params$Resource$Zoneviews$Addresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ZoneViewsAddResourcesRequest; + } + export interface Params$Resource$Zoneviews$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceView; + } + export interface Params$Resource$Zoneviews$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 5000, + * inclusive. (Default: 5000) + */ + maxResults?: number; + /** + * Specifies a nextPageToken returned by a previous list request. This token + * can be used to request the next page of results from a previous list + * request. + */ + pageToken?: string; + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Listresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 5000, + * inclusive. (Default: 5000) + */ + maxResults?: number; + /** + * Specifies a nextPageToken returned by a previous list request. This token + * can be used to request the next page of results from a previous list + * request. + */ + pageToken?: string; + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Removeresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + projectName?: string; + /** + * The name of the resource view. + */ + resourceViewName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ZoneViewsRemoveResourcesRequest; + } } diff --git a/src/apis/resourceviews/v1beta2.ts b/src/apis/resourceviews/v1beta2.ts index 2e6033bd99c..b7c7e806390 100644 --- a/src/apis/resourceviews/v1beta2.ts +++ b/src/apis/resourceviews/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace resourceviews_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Google Compute Engine Instance Groups API * @@ -75,11 +78,11 @@ export namespace resourceviews_v1beta2 { /** * Key of the label. */ - key: string; + key?: string; /** * Value of the label. */ - value: string; + value?: string; } /** * The list response item that contains the resource and end points @@ -89,11 +92,11 @@ export namespace resourceviews_v1beta2 { /** * The list of service end points on the resource. */ - endpoints: any; + endpoints?: any; /** * The full URL of the resource. */ - resource: string; + resource?: string; } /** * An operation resource, used to manage asynchronous API requests. @@ -104,53 +107,53 @@ export namespace resourceviews_v1beta2 { * mutation was initiated. Must be unique for all operation resources in the * project. */ - clientOperationId: string; + clientOperationId?: string; /** * [Output Only] The time that this operation was requested, in RFC3339 text * format. */ - creationTimestamp: string; + creationTimestamp?: string; /** * [Output Only] The time that this operation was completed, in RFC3339 text * format. */ - endTime: string; + endTime?: string; /** * [Output Only] If errors occurred during processing of this operation, * this field will be populated. */ - error: any; + error?: any; /** * [Output only] If operation fails, the HTTP error message returned. */ - httpErrorMessage: string; + httpErrorMessage?: string; /** * [Output only] If operation fails, the HTTP error status code returned. */ - httpErrorStatusCode: number; + httpErrorStatusCode?: number; /** * [Output Only] Unique identifier for the resource, generated by the * server. */ - id: string; + id?: string; /** * [Output Only] The time that this operation was requested, in RFC3339 text * format. */ - insertTime: string; + insertTime?: string; /** * [Output only] Type of the resource. */ - kind: string; + kind?: string; /** * [Output Only] Name of the resource. */ - name: string; + name?: string; /** * [Output only] Type of the operation. Operations include insert, update, * and delete. */ - operationType: string; + operationType?: string; /** * [Output only] An optional progress indicator that ranges from 0 to 100. * There is no requirement that this be linear or support any granularity of @@ -158,76 +161,76 @@ export namespace resourceviews_v1beta2 { * be complete. This number should be monotonically increasing as the * operation progresses. */ - progress: number; + progress?: number; /** * [Output Only] URL of the region where the operation resides. Only * available when performing regional operations. */ - region: string; + region?: string; /** * [Output Only] Server-defined fully-qualified URL for this resource. */ - selfLink: string; + selfLink?: string; /** * [Output Only] The time that this operation was started by the server, in * RFC3339 text format. */ - startTime: string; + startTime?: string; /** * [Output Only] Status of the operation. */ - status: string; + status?: string; /** * [Output Only] An optional textual description of the current status of * the operation. */ - statusMessage: string; + statusMessage?: string; /** * [Output Only] Unique target ID which identifies a particular incarnation * of the target. */ - targetId: string; + targetId?: string; /** * [Output only] URL of the resource the operation is mutating. */ - targetLink: string; + targetLink?: string; /** * [Output Only] User who requested the operation, for example: * user@example.com. */ - user: string; + user?: string; /** * [Output Only] If there are issues with this operation, a warning is * returned. */ - warnings: any[]; + warnings?: any[]; /** * [Output Only] URL of the zone where the operation resides. Only available * when performing per-zone operations. */ - zone: string; + zone?: string; } export interface Schema$OperationList { /** * Unique identifier for the resource; defined by the server (output only). */ - id: string; + id?: string; /** * The operation resources. */ - items: Schema$Operation[]; + items?: Schema$Operation[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * A token used to continue a truncated list request (output only). */ - nextPageToken: string; + nextPageToken?: string; /** * Server defined URL for this resource (output only). */ - selfLink: string; + selfLink?: string; } /** * The resource view object. @@ -236,52 +239,52 @@ export namespace resourceviews_v1beta2 { /** * The creation time of the resource view. */ - creationTimestamp: string; + creationTimestamp?: string; /** * The detailed description of the resource view. */ - description: string; + description?: string; /** * Services endpoint information. */ - endpoints: Schema$ServiceEndpoint[]; + endpoints?: Schema$ServiceEndpoint[]; /** * The fingerprint of the service endpoint information. */ - fingerprint: string; + fingerprint?: string; /** * [Output Only] The ID of the resource view. */ - id: string; + id?: string; /** * Type of the resource. */ - kind: string; + kind?: string; /** * The labels for events. */ - labels: Schema$Label[]; + labels?: Schema$Label[]; /** * The name of the resource view. */ - name: string; + name?: string; /** * The URL of a Compute Engine network to which the resources in the view * belong. */ - network: string; + network?: string; /** * A list of all resources in the resource view. */ - resources: string[]; + resources?: string[]; /** * [Output Only] A self-link to the resource view. */ - selfLink: string; + selfLink?: string; /** * The total number of resources in the resource view. */ - size: number; + size?: number; } /** * The service endpoint that may be started in a VM. @@ -290,11 +293,11 @@ export namespace resourceviews_v1beta2 { /** * The name of the service endpoint. */ - name: string; + name?: string; /** * The port of the service endpoint. */ - port: number; + port?: number; } /** * The request to add resources to the resource view. @@ -303,17 +306,17 @@ export namespace resourceviews_v1beta2 { /** * The list of resources to be added. */ - resources: string[]; + resources?: string[]; } export interface Schema$ZoneViewsGetServiceResponse { /** * The service information. */ - endpoints: Schema$ServiceEndpoint[]; + endpoints?: Schema$ServiceEndpoint[]; /** * The fingerprint of the service information. */ - fingerprint: string; + fingerprint?: string; } /** * The response to a list request. @@ -322,19 +325,19 @@ export namespace resourceviews_v1beta2 { /** * The result that contains all resource views that meet the criteria. */ - items: Schema$ResourceView[]; + items?: Schema$ResourceView[]; /** * Type of resource. */ - kind: string; + kind?: string; /** * A token used for pagination. */ - nextPageToken: string; + nextPageToken?: string; /** * Server defined URL for this resource (output only). */ - selfLink: string; + selfLink?: string; } /** * The response to a list resource request. @@ -343,16 +346,16 @@ export namespace resourceviews_v1beta2 { /** * The formatted JSON that is requested by the user. */ - items: Schema$ListResourceResponseItem[]; + items?: Schema$ListResourceResponseItem[]; /** * The URL of a Compute Engine network to which the resources in the view * belong. */ - network: string; + network?: string; /** * A token used for pagination. */ - nextPageToken: string; + nextPageToken?: string; } /** * The request to remove resources from the resource view. @@ -361,25 +364,26 @@ export namespace resourceviews_v1beta2 { /** * The list of resources to be removed. */ - resources: string[]; + resources?: string[]; } export interface Schema$ZoneViewsSetServiceRequest { /** * The service information to be updated. */ - endpoints: Schema$ServiceEndpoint[]; + endpoints?: Schema$ServiceEndpoint[]; /** * Fingerprint of the service information; a hash of the contents. This * field is used for optimistic locking when updating the service entries. */ - fingerprint: string; + fingerprint?: string; /** * The name of the resource if user wants to update the service information * of the resource. */ - resourceName: string; + resourceName?: string; } + export class Resource$Zoneoperations { root: Resourceviews; constructor(root: Resourceviews) { @@ -406,23 +410,35 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Zoneoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Zoneoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -464,26 +480,38 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneoperations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneoperations$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Zoneoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zoneoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -508,6 +536,56 @@ export namespace resourceviews_v1beta2 { } } + export interface Params$Resource$Zoneoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the operation resource to return. + */ + operation?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + export interface Params$Resource$Zoneoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional. Filter expression for filtering listed resources. + */ + filter?: string; + /** + * Optional. Maximum count of results to be returned. Maximum value is 500 + * and default value is 500. + */ + maxResults?: number; + /** + * Optional. Tag returned by a previous list request truncated by + * maxResults. Used to continue a previous list request. + */ + pageToken?: string; + /** + * Name of the project scoping this request. + */ + project?: string; + /** + * Name of the zone scoping this request. + */ + zone?: string; + } + + export class Resource$Zoneviews { root: Resourceviews; constructor(root: Resourceviews) { @@ -535,26 +613,39 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addResources(params?: any, options?: MethodOptions): - AxiosPromise; addResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneviews$Addresources, + options?: MethodOptions): AxiosPromise; addResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$Addresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + addResources( + params: Params$Resource$Zoneviews$Addresources, + callback: BodyResponseCallback): void; + addResources(callback: BodyResponseCallback): void; + addResources( + paramsOrCallback?: Params$Resource$Zoneviews$Addresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Addresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Addresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -593,26 +684,37 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Zoneviews$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneviews$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Zoneviews$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Zoneviews$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -651,24 +753,34 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Zoneviews$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Zoneviews$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Zoneviews$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Zoneviews$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -708,29 +820,44 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getService(params?: any, options?: MethodOptions): + getService( + params?: Params$Resource$Zoneviews$Getservice, options?: MethodOptions): AxiosPromise; getService( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$Getservice, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + getService( + params: Params$Resource$Zoneviews$Getservice, + callback: BodyResponseCallback): + void; + getService(callback: + BodyResponseCallback): void; getService( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Zoneviews$Getservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Getservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Getservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -770,26 +897,37 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Zoneviews$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneviews$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Zoneviews$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -829,26 +967,37 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Zoneviews$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Zoneviews$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Zoneviews$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Zoneviews$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -892,29 +1041,45 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listResources(params?: any, options?: MethodOptions): + listResources( + params?: Params$Resource$Zoneviews$Listresources, + options?: MethodOptions): AxiosPromise; listResources( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$Listresources, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; listResources( - params?: any, - options?: MethodOptions| + params: Params$Resource$Zoneviews$Listresources, + callback: BodyResponseCallback): + void; + listResources( + callback: BodyResponseCallback): + void; + listResources( + paramsOrCallback?: Params$Resource$Zoneviews$Listresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Listresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Listresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -956,26 +1121,39 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeResources(params?: any, options?: MethodOptions): - AxiosPromise; removeResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneviews$Removeresources, + options?: MethodOptions): AxiosPromise; removeResources( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$Removeresources, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeResources( + params: Params$Resource$Zoneviews$Removeresources, + callback: BodyResponseCallback): void; + removeResources(callback: BodyResponseCallback): void; + removeResources( + paramsOrCallback?: Params$Resource$Zoneviews$Removeresources| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Removeresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Removeresources; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1015,26 +1193,39 @@ export namespace resourceviews_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setService(params?: any, options?: MethodOptions): - AxiosPromise; setService( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Zoneviews$Setservice, + options?: MethodOptions): AxiosPromise; setService( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Zoneviews$Setservice, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setService( + params: Params$Resource$Zoneviews$Setservice, + callback: BodyResponseCallback): void; + setService(callback: BodyResponseCallback): void; + setService( + paramsOrCallback?: Params$Resource$Zoneviews$Setservice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Zoneviews$Setservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Zoneviews$Setservice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1058,4 +1249,226 @@ export namespace resourceviews_v1beta2 { } } } + + export interface Params$Resource$Zoneviews$Addresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ZoneViewsAddResourcesRequest; + } + export interface Params$Resource$Zoneviews$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Getservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource if user wants to get the service information of + * the resource. + */ + resourceName?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ResourceView; + } + export interface Params$Resource$Zoneviews$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum count of results to be returned. Acceptable values are 0 to 5000, + * inclusive. (Default: 5000) + */ + maxResults?: number; + /** + * Specifies a nextPageToken returned by a previous list request. This token + * can be used to request the next page of results from a previous list + * request. + */ + pageToken?: string; + /** + * The project name of the resource view. + */ + project?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Listresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The requested format of the return value. It can be URL or URL_PORT. A + * JSON object will be included in the response based on the format. The + * default format is NONE, which results in no JSON in the response. + */ + format?: string; + /** + * The state of the instance to list. By default, it lists all instances. + */ + listState?: string; + /** + * Maximum count of results to be returned. Acceptable values are 0 to 5000, + * inclusive. (Default: 5000) + */ + maxResults?: number; + /** + * Specifies a nextPageToken returned by a previous list request. This token + * can be used to request the next page of results from a previous list + * request. + */ + pageToken?: string; + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The service name to return in the response. It is optional and if it is + * not set, all the service end points will be returned. + */ + serviceName?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + } + export interface Params$Resource$Zoneviews$Removeresources { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ZoneViewsRemoveResourcesRequest; + } + export interface Params$Resource$Zoneviews$Setservice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project name of the resource view. + */ + project?: string; + /** + * The name of the resource view. + */ + resourceView?: string; + /** + * The zone name of the resource view. + */ + zone?: string; + /** + * Request body metadata + */ + resource?: Schema$ZoneViewsSetServiceRequest; + } } diff --git a/src/apis/runtimeconfig/v1.ts b/src/apis/runtimeconfig/v1.ts index e3251aef8c7..64cf95dd013 100644 --- a/src/apis/runtimeconfig/v1.ts +++ b/src/apis/runtimeconfig/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace runtimeconfig_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Runtime Configuration API * @@ -87,11 +90,11 @@ export namespace runtimeconfig_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * This resource represents a long-running operation that is the result of a @@ -103,24 +106,24 @@ export namespace runtimeconfig_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -130,7 +133,7 @@ export namespace runtimeconfig_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The `Status` type defines a logical error model that is suitable for @@ -172,20 +175,21 @@ export namespace runtimeconfig_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Operations { root: Runtimeconfig; constructor(root: Runtimeconfig) { @@ -219,25 +223,37 @@ export namespace runtimeconfig_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; + cancel( + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -276,25 +292,37 @@ export namespace runtimeconfig_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -340,28 +368,38 @@ export namespace runtimeconfig_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -383,4 +421,54 @@ export namespace runtimeconfig_v1 { } } } + + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/runtimeconfig/v1beta1.ts b/src/apis/runtimeconfig/v1beta1.ts index ba1e381da07..a7a50ab307e 100644 --- a/src/apis/runtimeconfig/v1beta1.ts +++ b/src/apis/runtimeconfig/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace runtimeconfig_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Runtime Configuration API * @@ -88,12 +91,12 @@ export namespace runtimeconfig_v1beta1 { * that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A Cardinality condition for the Waiter resource. A cardinality condition is @@ -113,11 +116,11 @@ export namespace runtimeconfig_v1beta1 { * The number variables under the `path` that must exist to meet this * condition. Defaults to 1 if not specified. */ - number: number; + number?: number; /** * The root of the variable subtree to monitor. For example, `/foo`. */ - path: string; + path?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -134,7 +137,7 @@ export namespace runtimeconfig_v1beta1 { /** * The cardinality of the `EndCondition`. */ - cardinality: Schema$Cardinality; + cardinality?: Schema$Cardinality; } /** * `ListConfigs()` returns the following response. The order of returned @@ -145,7 +148,7 @@ export namespace runtimeconfig_v1beta1 { * A list of the configurations in the project. The order of returned * objects is arbitrary; that is, it is not ordered in any particular way. */ - configs: Schema$RuntimeConfig[]; + configs?: Schema$RuntimeConfig[]; /** * This token allows you to get the next page of results for list requests. * If the number of results is larger than `pageSize`, use the @@ -153,7 +156,7 @@ export namespace runtimeconfig_v1beta1 { * next list request. Subsequent list requests will have their own * `nextPageToken` to continue paging through the results */ - nextPageToken: string; + nextPageToken?: string; } /** * Response for the `ListVariables()` method. @@ -166,12 +169,12 @@ export namespace runtimeconfig_v1beta1 { * next list request. Subsequent list requests will have their own * `nextPageToken` to continue paging through the results */ - nextPageToken: string; + nextPageToken?: string; /** * A list of variables and their values. The order of returned variable * objects is arbitrary. */ - variables: Schema$Variable[]; + variables?: Schema$Variable[]; } /** * Response for the `ListWaiters()` method. Order of returned waiter objects @@ -185,11 +188,11 @@ export namespace runtimeconfig_v1beta1 { * next list request. Subsequent list requests will have their own * `nextPageToken` to continue paging through the results */ - nextPageToken: string; + nextPageToken?: string; /** * Found waiters in the project. */ - waiters: Schema$Waiter[]; + waiters?: Schema$Waiter[]; } /** * This resource represents a long-running operation that is the result of a @@ -201,24 +204,24 @@ export namespace runtimeconfig_v1beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -228,7 +231,7 @@ export namespace runtimeconfig_v1beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -255,7 +258,7 @@ export namespace runtimeconfig_v1beta1 { * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -267,11 +270,11 @@ export namespace runtimeconfig_v1beta1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A RuntimeConfig resource is the primary resource in the Cloud RuntimeConfig @@ -282,7 +285,7 @@ export namespace runtimeconfig_v1beta1 { /** * An optional description of the RuntimeConfig object. */ - description: string; + description?: string; /** * The resource name of a runtime config. The name must have the format: * projects/[PROJECT_ID]/configs/[CONFIG_NAME] The `[PROJECT_ID]` must be a @@ -293,7 +296,7 @@ export namespace runtimeconfig_v1beta1 { * will validate that the name adheres to this format. After you create the * resource, you cannot change the resource's name. */ - name: string; + name?: string; } /** * Request message for `SetIamPolicy` method. @@ -305,7 +308,7 @@ export namespace runtimeconfig_v1beta1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * The `Status` type defines a logical error model that is suitable for @@ -347,18 +350,18 @@ export namespace runtimeconfig_v1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request message for `TestIamPermissions` method. @@ -370,7 +373,7 @@ export namespace runtimeconfig_v1beta1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -380,7 +383,7 @@ export namespace runtimeconfig_v1beta1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * Describes a single variable within a RuntimeConfig resource. The name @@ -405,29 +408,29 @@ export namespace runtimeconfig_v1beta1 { * characters. Once you create a variable, you cannot change the variable * name. */ - name: string; + name?: string; /** * [Ouput only] The current state of the variable. The variable state * indicates the outcome of the `variables().watch` call and is visible * through the `get` and `list` calls. */ - state: string; + state?: string; /** * The string value of the variable. The length of the value must be less * than 4096 bytes. Empty values are also accepted. For example, `text: * "my text value"`. The string must be valid UTF-8. */ - text: string; + text?: string; /** * Output only. The time of the last variable update. */ - updateTime: string; + updateTime?: string; /** * The binary value of the variable. The length of the value must be less * than 4096 bytes. Empty values are also accepted. The value must be base64 * encoded. Only one of `value` or `text` can be set. */ - value: string; + value?: string; } /** * A Waiter resource waits for some end condition within a RuntimeConfig @@ -448,19 +451,19 @@ export namespace runtimeconfig_v1beta1 { * Adding the value of `timeout` to this instant yields the timeout deadline * for the waiter. */ - createTime: string; + createTime?: string; /** * Output only. If the value is `false`, it means the waiter is still * waiting for one of its conditions to be met. If true, the waiter has * finished. If the waiter finished due to a timeout or failure, `error` * will be set. */ - done: boolean; + done?: boolean; /** * Output only. If the waiter ended due to a failure or timeout, this value * will be set. */ - error: Schema$Status; + error?: Schema$Status; /** * [Optional] The failure condition of this waiter. If this condition is * met, `done` will be set to `true` and the `error` code will be set to @@ -469,7 +472,7 @@ export namespace runtimeconfig_v1beta1 { * value is optional; if no failure condition is set, the only failure * scenario will be a timeout. */ - failure: Schema$EndCondition; + failure?: Schema$EndCondition; /** * The name of the Waiter resource, in the format: * projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME] The @@ -479,21 +482,21 @@ export namespace runtimeconfig_v1beta1 { * of `[WAITER_NAME]` must be less than 64 bytes. After you create a Waiter * resource, you cannot change the resource name. */ - name: string; + name?: string; /** * [Required] The success condition. If this condition is met, `done` will * be set to `true` and the `error` value will remain unset. The failure * condition takes precedence over the success condition. If both conditions * are met, a failure will be indicated. */ - success: Schema$EndCondition; + success?: Schema$EndCondition; /** * [Required] Specifies the timeout of the waiter in seconds, beginning from * the instant that `waiters().create` method is called. If this time * elapses before the success or failure conditions are met, the waiter * fails and sets the `error` code to `DEADLINE_EXCEEDED`. */ - timeout: string; + timeout?: string; } /** * Request for the `WatchVariable()` method. @@ -505,9 +508,10 @@ export namespace runtimeconfig_v1beta1 { * immediately. If not specified or the variable has an older timestamp, * the watcher waits for a the value to change before returning. */ - newerThan: string; + newerThan?: string; } + export class Resource$Projects { root: Runtimeconfig; configs: Resource$Projects$Configs; @@ -521,6 +525,8 @@ export namespace runtimeconfig_v1beta1 { return this.root; } } + + export class Resource$Projects$Configs { root: Runtimeconfig; operations: Resource$Projects$Configs$Operations; @@ -554,26 +560,39 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Configs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Configs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Configs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -609,25 +628,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Configs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Configs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Configs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -662,24 +694,35 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Configs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Configs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Configs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Configs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Configs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -715,26 +758,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Configs$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Configs$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -772,28 +827,39 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Configs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Configs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Configs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Configs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -831,26 +897,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Configs$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Configs$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -891,29 +969,45 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Configs$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Configs$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Configs$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Projects$Configs$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -952,26 +1046,39 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Configs$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Configs$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Configs$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -993,6 +1100,141 @@ export namespace runtimeconfig_v1beta1 { } } } + + export interface Params$Resource$Projects$Configs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The [project + * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) + * for this request, in the format `projects/[PROJECT_ID]`. + */ + parent?: string; + /** + * An optional but recommended unique `request_id`. If the server receives + * two `create()` requests with the same `request_id`, then the second + * request will be ignored and the first resource created and stored in the + * backend is returned. Empty `request_id` fields are ignored. It is + * responsibility of the client to ensure uniqueness of the `request_id` + * strings. `request_id` strings are limited to 64 characters. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$RuntimeConfig; + } + export interface Params$Resource$Projects$Configs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The RuntimeConfig resource to delete, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + name?: string; + } + export interface Params$Resource$Projects$Configs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the RuntimeConfig resource to retrieve, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + name?: string; + } + export interface Params$Resource$Projects$Configs$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Configs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The [project + * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) + * for this request, in the format `projects/[PROJECT_ID]`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Configs$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Configs$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Configs$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the RuntimeConfig resource to update, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RuntimeConfig; + } + export class Resource$Projects$Configs$Operations { root: Runtimeconfig; constructor(root: Runtimeconfig) { @@ -1019,23 +1261,35 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Configs$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Configs$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Configs$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Configs$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1075,29 +1329,47 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Configs$Operations$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Configs$Operations$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Configs$Operations$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Configs$Operations$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Operations$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Configs$Operations$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1122,6 +1394,35 @@ export namespace runtimeconfig_v1beta1 { } } + export interface Params$Resource$Projects$Configs$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Configs$Operations$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Projects$Configs$Variables { root: Runtimeconfig; constructor(root: Runtimeconfig) { @@ -1153,26 +1454,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Variables$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Configs$Variables$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Variables$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Configs$Variables$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Variables$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1212,25 +1525,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Variables$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Variables$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Configs$Variables$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Configs$Variables$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Variables$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1265,23 +1591,34 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Configs$Variables$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Configs$Variables$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Configs$Variables$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Configs$Variables$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Variables$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1323,28 +1660,40 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Configs$Variables$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Configs$Variables$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Configs$Variables$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Configs$Variables$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Variables$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1385,29 +1734,47 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Configs$Variables$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Configs$Variables$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Configs$Variables$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Configs$Variables$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Configs$Variables$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1445,26 +1812,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Variables$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Configs$Variables$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Projects$Configs$Variables$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Configs$Variables$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Variables$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1509,25 +1888,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watch(params?: any, options?: MethodOptions): AxiosPromise; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Variables$Watch, + options?: MethodOptions): AxiosPromise; + watch( + params: Params$Resource$Projects$Configs$Variables$Watch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Configs$Variables$Watch, + callback: BodyResponseCallback): void; + watch(callback: BodyResponseCallback): void; + watch( + paramsOrCallback?: Params$Resource$Projects$Configs$Variables$Watch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Variables$Watch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Variables$Watch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1551,6 +1943,145 @@ export namespace runtimeconfig_v1beta1 { } } + export interface Params$Resource$Projects$Configs$Variables$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The path to the RutimeConfig resource that this variable should belong + * to. The configuration must exist beforehand; the path must be in the + * format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + parent?: string; + /** + * An optional but recommended unique `request_id`. If the server receives + * two `create()` requests with the same `request_id`, then the second + * request will be ignored and the first resource created and stored in the + * backend is returned. Empty `request_id` fields are ignored. It is + * responsibility of the client to ensure uniqueness of the `request_id` + * strings. `request_id` strings are limited to 64 characters. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Variable; + } + export interface Params$Resource$Projects$Configs$Variables$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the variable to delete, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` + */ + name?: string; + /** + * Set to `true` to recursively delete multiple variables with the same + * prefix. + */ + recursive?: boolean; + } + export interface Params$Resource$Projects$Configs$Variables$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the variable to return, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` + */ + name?: string; + } + export interface Params$Resource$Projects$Configs$Variables$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Filters variables by matching the specified filter. For example: + * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. + */ + filter?: string; + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The path to the RuntimeConfig resource for which you want to list + * variables. The configuration must exist beforehand; the path must be in + * the format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + parent?: string; + /** + * The flag indicates whether the user wants to return values of variables. + * If true, then only those variables that user has IAM GetVariable + * permission will be returned along with their values. + */ + returnValues?: boolean; + } + export interface Params$Resource$Projects$Configs$Variables$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Configs$Variables$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the variable to update, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$Variable; + } + export interface Params$Resource$Projects$Configs$Variables$Watch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the variable to watch, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$WatchVariableRequest; + } + + export class Resource$Projects$Configs$Waiters { root: Runtimeconfig; constructor(root: Runtimeconfig) { @@ -1582,26 +2113,39 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Waiters$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Configs$Waiters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Configs$Waiters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Configs$Waiters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Waiters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Waiters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1637,25 +2181,38 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Waiters$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Configs$Waiters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Configs$Waiters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Configs$Waiters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Waiters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Waiters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1690,23 +2247,34 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Configs$Waiters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Configs$Waiters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Configs$Waiters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Configs$Waiters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Waiters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Waiters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1743,28 +2311,39 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Configs$Waiters$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Configs$Waiters$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Configs$Waiters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Configs$Waiters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Waiters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Configs$Waiters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1805,29 +2384,47 @@ export namespace runtimeconfig_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Configs$Waiters$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Configs$Waiters$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Configs$Waiters$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Configs$Waiters$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Configs$Waiters$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Configs$Waiters$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; const parameters = { @@ -1851,4 +2448,95 @@ export namespace runtimeconfig_v1beta1 { } } } + + export interface Params$Resource$Projects$Configs$Waiters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The path to the configuration that will own the waiter. The configuration + * must exist beforehand; the path must be in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. + */ + parent?: string; + /** + * An optional but recommended unique `request_id`. If the server receives + * two `create()` requests with the same `request_id`, then the second + * request will be ignored and the first resource created and stored in the + * backend is returned. Empty `request_id` fields are ignored. It is + * responsibility of the client to ensure uniqueness of the `request_id` + * strings. `request_id` strings are limited to 64 characters. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Waiter; + } + export interface Params$Resource$Projects$Configs$Waiters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The Waiter resource to delete, in the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` + */ + name?: string; + } + export interface Params$Resource$Projects$Configs$Waiters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The fully-qualified name of the Waiter resource object to retrieve, in + * the format: + * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` + */ + name?: string; + } + export interface Params$Resource$Projects$Configs$Waiters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * The path to the configuration for which you want to get a list of + * waiters. The configuration must exist beforehand; the path must be in the + * format: `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` + */ + parent?: string; + } + export interface Params$Resource$Projects$Configs$Waiters$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } } diff --git a/src/apis/safebrowsing/v4.ts b/src/apis/safebrowsing/v4.ts index ce26fcbaa46..b9bd7833a66 100644 --- a/src/apis/safebrowsing/v4.ts +++ b/src/apis/safebrowsing/v4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace safebrowsing_v4 { + export interface Options extends GlobalOptions { version: 'v4'; } + /** * Safe Browsing API * @@ -86,7 +89,7 @@ export namespace safebrowsing_v4 { * The SHA256 hash of the client state; that is, of the sorted list of all * hashes present in the database. */ - sha256: string; + sha256?: string; } /** * The client metadata associated with Safe Browsing API requests. @@ -96,11 +99,11 @@ export namespace safebrowsing_v4 { * A client ID that (hopefully) uniquely identifies the client * implementation of the Safe Browsing API. */ - clientId: string; + clientId?: string; /** * The version of the client implementation. */ - clientVersion: string; + clientVersion?: string; } /** * The constraints for this update. @@ -110,34 +113,34 @@ export namespace safebrowsing_v4 { * A client's physical location, expressed as a ISO 31166-1 alpha-2 * region code. */ - deviceLocation: string; + deviceLocation?: string; /** * Requests the lists for a specific language. Expects ISO 639 alpha-2 * format. */ - language: string; + language?: string; /** * Sets the maximum number of entries that the client is willing to have in * the local database. This should be a power of 2 between 2**10 and 2**20. * If zero, no database size limit is set. */ - maxDatabaseEntries: number; + maxDatabaseEntries?: number; /** * The maximum size in number of entries. The update will not contain more * entries than this value. This should be a power of 2 between 2**10 and * 2**20. If zero, no update size limit is set. */ - maxUpdateEntries: number; + maxUpdateEntries?: number; /** * Requests the list for a specific geographic location. If not set the * server may pick that value based on the user's IP address. Expects * ISO 3166-1 alpha-2 format. */ - region: string; + region?: string; /** * The compression types supported by the client. */ - supportedCompressions: string[]; + supportedCompressions?: string[]; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -156,23 +159,23 @@ export namespace safebrowsing_v4 { /** * The client metadata. */ - client: Schema$ClientInfo; + client?: Schema$ClientInfo; /** * The requested threat list updates. */ - listUpdateRequests: Schema$ListUpdateRequest[]; + listUpdateRequests?: Schema$ListUpdateRequest[]; } export interface Schema$FetchThreatListUpdatesResponse { /** * The list updates requested by the clients. */ - listUpdateResponses: Schema$ListUpdateResponse[]; + listUpdateResponses?: Schema$ListUpdateResponse[]; /** * The minimum duration the client must wait before issuing any update * request. If this field is not set clients may update as soon as they * want. */ - minimumWaitDuration: string; + minimumWaitDuration?: string; } /** * Request to return full hashes matched by the provided hash prefixes. @@ -182,37 +185,37 @@ export namespace safebrowsing_v4 { * Client metadata associated with callers of higher-level APIs built on top * of the client's implementation. */ - apiClient: Schema$ClientInfo; + apiClient?: Schema$ClientInfo; /** * The client metadata. */ - client: Schema$ClientInfo; + client?: Schema$ClientInfo; /** * The current client states for each of the client's local threat * lists. */ - clientStates: string[]; + clientStates?: string[]; /** * The lists and hashes to be checked. */ - threatInfo: Schema$ThreatInfo; + threatInfo?: Schema$ThreatInfo; } export interface Schema$FindFullHashesResponse { /** * The full hashes that matched the requested prefixes. */ - matches: Schema$ThreatMatch[]; + matches?: Schema$ThreatMatch[]; /** * The minimum duration the client must wait before issuing any find hashes * request. If this field is not set, clients can issue a request as soon as * they want. */ - minimumWaitDuration: string; + minimumWaitDuration?: string; /** * For requested entities that did not match the threat list, how long to * cache the response. */ - negativeCacheDuration: string; + negativeCacheDuration?: string; } /** * Request to check entries against lists. @@ -221,23 +224,23 @@ export namespace safebrowsing_v4 { /** * The client metadata. */ - client: Schema$ClientInfo; + client?: Schema$ClientInfo; /** * The lists and entries to be checked for matches. */ - threatInfo: Schema$ThreatInfo; + threatInfo?: Schema$ThreatInfo; } export interface Schema$FindThreatMatchesResponse { /** * The threat list matches. */ - matches: Schema$ThreatMatch[]; + matches?: Schema$ThreatMatch[]; } export interface Schema$ListThreatListsResponse { /** * The lists available for download by the client. */ - threatLists: Schema$ThreatListDescriptor[]; + threatLists?: Schema$ThreatListDescriptor[]; } /** * A single list update request. @@ -246,24 +249,24 @@ export namespace safebrowsing_v4 { /** * The constraints associated with this request. */ - constraints: Schema$Constraints; + constraints?: Schema$Constraints; /** * The type of platform at risk by entries present in the list. */ - platformType: string; + platformType?: string; /** * The current state of the client for the requested list (the encrypted * client state that was received from the last successful list update). */ - state: string; + state?: string; /** * The types of entries present in the list. */ - threatEntryType: string; + threatEntryType?: string; /** * The type of threat posed by entries present in the list. */ - threatType: string; + threatType?: string; } /** * An update to an individual list. @@ -274,40 +277,40 @@ export namespace safebrowsing_v4 { * allow for a combination of compressed and raw data to be sent in a single * response. */ - additions: Schema$ThreatEntrySet[]; + additions?: Schema$ThreatEntrySet[]; /** * The expected SHA256 hash of the client state; that is, of the sorted list * of all hashes present in the database after applying the provided update. * If the client state doesn't match the expected state, the client must * disregard this update and retry later. */ - checksum: Schema$Checksum; + checksum?: Schema$Checksum; /** * The new client state, in encrypted format. Opaque to clients. */ - newClientState: string; + newClientState?: string; /** * The platform type for which data is returned. */ - platformType: string; + platformType?: string; /** * A set of entries to remove from a local threat type's list. In * practice, this field is empty or contains exactly one ThreatEntrySet. */ - removals: Schema$ThreatEntrySet[]; + removals?: Schema$ThreatEntrySet[]; /** * The type of response. This may indicate that an action is required by the * client when the response is received. */ - responseType: string; + responseType?: string; /** * The format of the threats. */ - threatEntryType: string; + threatEntryType?: string; /** * The threat type for which data is returned. */ - threatType: string; + threatType?: string; } /** * A single metadata entry. @@ -316,11 +319,11 @@ export namespace safebrowsing_v4 { /** * The metadata entry key. For JSON requests, the key is base64-encoded. */ - key: string; + key?: string; /** * The metadata entry value. For JSON requests, the value is base64-encoded. */ - value: string; + value?: string; } /** * The uncompressed threat entries in hash format of a particular prefix @@ -335,13 +338,13 @@ export namespace safebrowsing_v4 { * The number of bytes for each prefix encoded below. This field can be * anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). */ - prefixSize: number; + prefixSize?: number; /** * The hashes, in binary format, concatenated into one long string. Hashes * are sorted in lexicographic order. For JSON API users, hashes are * base64-encoded. */ - rawHashes: string; + rawHashes?: string; } /** * A set of raw indices to remove from a local list. @@ -350,7 +353,7 @@ export namespace safebrowsing_v4 { /** * The indices to remove from a lexicographically-sorted local list. */ - indices: number[]; + indices?: number[]; } /** * The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or @@ -360,24 +363,24 @@ export namespace safebrowsing_v4 { /** * The encoded deltas that are encoded using the Golomb-Rice coder. */ - encodedData: string; + encodedData?: string; /** * The offset of the first entry in the encoded data, or, if only a single * integer was encoded, that single integer's value. If the field is * empty or missing, assume zero. */ - firstValue: string; + firstValue?: string; /** * The number of entries that are delta encoded in the encoded data. If only * a single integer was encoded, this will be zero and the single value will * be stored in `first_value`. */ - numEntries: number; + numEntries?: number; /** * The Golomb-Rice parameter, which is a number between 2 and 28. This field * is missing (that is, zero) if `num_entries` is zero. */ - riceParameter: number; + riceParameter?: number; } /** * An individual threat; for example, a malicious URL or its hash @@ -388,17 +391,17 @@ export namespace safebrowsing_v4 { * The digest of an executable in SHA256 format. The API supports both * binary and hex digests. For JSON requests, digests are base64-encoded. */ - digest: string; + digest?: string; /** * A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 * hash. This field is in binary format. For JSON requests, hashes are * base64-encoded. */ - hash: string; + hash?: string; /** * A URL. */ - url: string; + url?: string; } /** * The metadata associated with a specific threat entry. The client is @@ -409,7 +412,7 @@ export namespace safebrowsing_v4 { /** * The metadata entries. */ - entries: Schema$MetadataEntry[]; + entries?: Schema$MetadataEntry[]; } /** * A set of threats that should be added or removed from a client's local @@ -419,55 +422,55 @@ export namespace safebrowsing_v4 { /** * The compression type for the entries in this set. */ - compressionType: string; + compressionType?: string; /** * The raw SHA256-formatted entries. */ - rawHashes: Schema$RawHashes; + rawHashes?: Schema$RawHashes; /** * The raw removal indices for a local list. */ - rawIndices: Schema$RawIndices; + rawIndices?: Schema$RawIndices; /** * The encoded 4-byte prefixes of SHA256-formatted entries, using a * Golomb-Rice encoding. The hashes are converted to uint32, sorted in * ascending order, then delta encoded and stored as encoded_data. */ - riceHashes: Schema$RiceDeltaEncoding; + riceHashes?: Schema$RiceDeltaEncoding; /** * The encoded local, lexicographically-sorted list indices, using a * Golomb-Rice encoding. Used for sending compressed removal indices. The * removal indices (uint32) are sorted in ascending order, then delta * encoded and stored as encoded_data. */ - riceIndices: Schema$RiceDeltaEncoding; + riceIndices?: Schema$RiceDeltaEncoding; } export interface Schema$ThreatHit { /** * Client-reported identification. */ - clientInfo: Schema$ClientInfo; + clientInfo?: Schema$ClientInfo; /** * The threat entry responsible for the hit. Full hash should be reported * for hash-based hits. */ - entry: Schema$ThreatEntry; + entry?: Schema$ThreatEntry; /** * The platform type reported. */ - platformType: string; + platformType?: string; /** * The resources related to the threat hit. */ - resources: Schema$ThreatSource[]; + resources?: Schema$ThreatSource[]; /** * The threat type reported. */ - threatType: string; + threatType?: string; /** * Details about the user that encountered the threat. */ - userInfo: Schema$UserInfo; + userInfo?: Schema$UserInfo; } /** * The information regarding one or more threats that a client submits when @@ -477,19 +480,19 @@ export namespace safebrowsing_v4 { /** * The platform types to be checked. */ - platformTypes: string[]; + platformTypes?: string[]; /** * The threat entries to be checked. */ - threatEntries: Schema$ThreatEntry[]; + threatEntries?: Schema$ThreatEntry[]; /** * The entry types to be checked. */ - threatEntryTypes: string[]; + threatEntryTypes?: string[]; /** * The threat types to be checked. */ - threatTypes: string[]; + threatTypes?: string[]; } /** * Describes an individual threat list. A list is defined by three parameters: @@ -500,15 +503,15 @@ export namespace safebrowsing_v4 { /** * The platform type targeted by the list's entries. */ - platformType: string; + platformType?: string; /** * The entry types contained in the list. */ - threatEntryType: string; + threatEntryType?: string; /** * The threat type posed by the list's entries. */ - threatType: string; + threatType?: string; } /** * A match when checking a threat entry in the Safe Browsing threat lists. @@ -518,27 +521,27 @@ export namespace safebrowsing_v4 { * The cache lifetime for the returned match. Clients must not cache this * response for more than this duration to avoid false positives. */ - cacheDuration: string; + cacheDuration?: string; /** * The platform type matching this threat. */ - platformType: string; + platformType?: string; /** * The threat matching this threat. */ - threat: Schema$ThreatEntry; + threat?: Schema$ThreatEntry; /** * Optional metadata associated with this threat. */ - threatEntryMetadata: Schema$ThreatEntryMetadata; + threatEntryMetadata?: Schema$ThreatEntryMetadata; /** * The threat entry type matching this threat. */ - threatEntryType: string; + threatEntryType?: string; /** * The threat type matching this threat. */ - threatType: string; + threatType?: string; } /** * A single resource related to a threat hit. @@ -547,19 +550,19 @@ export namespace safebrowsing_v4 { /** * Referrer of the resource. Only set if the referrer is available. */ - referrer: string; + referrer?: string; /** * The remote IP of the resource in ASCII format. Either IPv4 or IPv6. */ - remoteIp: string; + remoteIp?: string; /** * The type of source reported. */ - type: string; + type?: string; /** * The URL of the resource. */ - url: string; + url?: string; } /** * Details about the user that encountered the threat. @@ -568,13 +571,14 @@ export namespace safebrowsing_v4 { /** * The UN M.49 region code associated with the user's location. */ - regionCode: string; + regionCode?: string; /** * Unique user identifier defined by the client. */ - userId: string; + userId?: string; } + export class Resource$Encodedfullhashes { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -600,26 +604,36 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Encodedfullhashes$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Encodedfullhashes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Encodedfullhashes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Encodedfullhashes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Encodedfullhashes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -642,6 +656,28 @@ export namespace safebrowsing_v4 { } } + export interface Params$Resource$Encodedfullhashes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A client ID that (hopefully) uniquely identifies the client + * implementation of the Safe Browsing API. + */ + clientId?: string; + /** + * The version of the client implementation. + */ + clientVersion?: string; + /** + * A serialized FindFullHashesRequest proto. + */ + encodedRequest?: string; + } + + export class Resource$Encodedupdates { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -667,27 +703,39 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Encodedupdates$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + get(params: Params$Resource$Encodedupdates$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Encodedupdates$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Encodedupdates$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Encodedupdates$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -712,6 +760,28 @@ export namespace safebrowsing_v4 { } } + export interface Params$Resource$Encodedupdates$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A client ID that uniquely identifies the client implementation of the + * Safe Browsing API. + */ + clientId?: string; + /** + * The version of the client implementation. + */ + clientVersion?: string; + /** + * A serialized FetchThreatListUpdatesRequest proto. + */ + encodedRequest?: string; + } + + export class Resource$Fullhashes { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -736,28 +806,38 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - find(params?: any, options?: MethodOptions): + find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): AxiosPromise; find( - params?: any, - options?: MethodOptions| + params: Params$Resource$Fullhashes$Find, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; find( - params?: any, - options?: MethodOptions| + params: Params$Resource$Fullhashes$Find, + callback: BodyResponseCallback): void; + find(callback: BodyResponseCallback): void; + find( + paramsOrCallback?: Params$Resource$Fullhashes$Find| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Fullhashes$Find; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Fullhashes$Find; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -780,6 +860,19 @@ export namespace safebrowsing_v4 { } } + export interface Params$Resource$Fullhashes$Find { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$FindFullHashesRequest; + } + + export class Resource$Threathits { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -805,25 +898,37 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): + AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Threathits$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Threathits$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Threathits$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Threathits$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Threathits$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -845,6 +950,19 @@ export namespace safebrowsing_v4 { } } + export interface Params$Resource$Threathits$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ThreatHit; + } + + export class Resource$Threatlists { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -868,28 +986,38 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Threatlists$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Threatlists$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Threatlists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Threatlists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Threatlists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -911,6 +1039,14 @@ export namespace safebrowsing_v4 { } } + export interface Params$Resource$Threatlists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Threatlistupdates { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -936,29 +1072,45 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - fetch(params?: any, options?: MethodOptions): + fetch( + params?: Params$Resource$Threatlistupdates$Fetch, + options?: MethodOptions): AxiosPromise; fetch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Threatlistupdates$Fetch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + fetch( + params: Params$Resource$Threatlistupdates$Fetch, + callback: BodyResponseCallback): + void; + fetch(callback: + BodyResponseCallback): void; fetch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Threatlistupdates$Fetch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Threatlistupdates$Fetch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Threatlistupdates$Fetch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -983,6 +1135,19 @@ export namespace safebrowsing_v4 { } } + export interface Params$Resource$Threatlistupdates$Fetch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$FetchThreatListUpdatesRequest; + } + + export class Resource$Threatmatches { root: Safebrowsing; constructor(root: Safebrowsing) { @@ -1007,29 +1172,40 @@ export namespace safebrowsing_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - find(params?: any, options?: MethodOptions): + find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): AxiosPromise; find( - params?: any, - options?: MethodOptions| + params: Params$Resource$Threatmatches$Find, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + find( + params: Params$Resource$Threatmatches$Find, + callback: BodyResponseCallback): void; + find(callback: BodyResponseCallback): void; find( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Threatmatches$Find| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Threatmatches$Find; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Threatmatches$Find; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; const parameters = { options: Object.assign( @@ -1052,4 +1228,16 @@ export namespace safebrowsing_v4 { } } } + + export interface Params$Resource$Threatmatches$Find { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$FindThreatMatchesRequest; + } } diff --git a/src/apis/script/v1.ts b/src/apis/script/v1.ts index a99b2d9931f..d73a7471a87 100644 --- a/src/apis/script/v1.ts +++ b/src/apis/script/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,10 +31,19 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace script_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Apps Script API * - * An API for managing and executing Google Apps Script projects. + * An API for managing and executing Google Apps Script projects. <aside + * class="note"><b>Note</b>: In order to use this API + * in your apps, you must <a + * href="/apps-script/api/how-tos/enable#using_the_apps_script_api_in_your_app"> + * enable it for use</a>. To allow other apps to manage your scripts, + * you must <a + * href="/apps-script/api/how-tos/enable#granting_third-party_applications_access_to_your_script_projects"> + * grant them access</a>.</aside> * * @example * const google = require('googleapis'); @@ -78,11 +88,11 @@ export namespace script_v1 { * it must be named "appsscript", must have type of JSON, and * include the manifest configurations for the project. */ - files: Schema$File[]; + files?: Schema$File[]; /** * The script project's Drive ID. */ - scriptId: string; + scriptId?: string; } /** * Request to create a script project. @@ -93,11 +103,11 @@ export namespace script_v1 { * to. This is usually the ID of a Google Doc, Google Sheet, Google Form, or * Google Slides file. If not set, a standalone script project is created. */ - parentId: string; + parentId?: string; /** * The title for the project. */ - title: string; + title?: string; } /** * Representation of a single script deployment. @@ -106,27 +116,27 @@ export namespace script_v1 { /** * The deployment configuration. */ - deploymentConfig: Schema$DeploymentConfig; + deploymentConfig?: Schema$DeploymentConfig; /** * The deployment ID for this deployment. */ - deploymentId: string; + deploymentId?: string; /** * The deployment's entry points. */ - entryPoints: Schema$EntryPoint[]; + entryPoints?: Schema$EntryPoint[]; /** * Script's defined set of functions. */ - functionSet: Schema$GoogleAppsScriptTypeFunctionSet; + functionSet?: Schema$GoogleAppsScriptTypeFunctionSet; /** * Set of scopes required by the deployment. */ - scopeSet: Schema$GoogleAppsScriptTypeScopeSet; + scopeSet?: Schema$GoogleAppsScriptTypeScopeSet; /** * Last modified date time stamp. */ - updateTime: string; + updateTime?: string; } /** * Metadata the defines how a deployment is configured. @@ -135,19 +145,19 @@ export namespace script_v1 { /** * The description for this deployment. */ - description: string; + description?: string; /** * The manifest file name for this deployment. */ - manifestFileName: string; + manifestFileName?: string; /** * The script project's Drive ID. */ - scriptId: string; + scriptId?: string; /** * The version number on which this deployment is based. */ - versionNumber: number; + versionNumber?: number; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -164,19 +174,19 @@ export namespace script_v1 { /** * Add-on properties. */ - addOn: Schema$GoogleAppsScriptTypeAddOnEntryPoint; + addOn?: Schema$GoogleAppsScriptTypeAddOnEntryPoint; /** * The type of the entry point. */ - entryPointType: string; + entryPointType?: string; /** * An entry point specification for Apps Script API execution calls. */ - executionApi: Schema$GoogleAppsScriptTypeExecutionApiEntryPoint; + executionApi?: Schema$GoogleAppsScriptTypeExecutionApiEntryPoint; /** * An entry point specification for web apps. */ - webApp: Schema$GoogleAppsScriptTypeWebAppEntryPoint; + webApp?: Schema$GoogleAppsScriptTypeWebAppEntryPoint; } /** * An object that provides information about the nature of an error resulting @@ -191,17 +201,17 @@ export namespace script_v1 { * The error message thrown by Apps Script, usually localized into the * user's language. */ - errorMessage: string; + errorMessage?: string; /** * The error type, for example `TypeError` or `ReferenceError`. If the error * type is unavailable, this field is not included. */ - errorType: string; + errorType?: string; /** * An array of objects that provide a stack trace through the script to show * where the execution failed, with the deepest call first. */ - scriptStackTraceElements: Schema$ScriptStackTraceElement[]; + scriptStackTraceElements?: Schema$ScriptStackTraceElement[]; } /** * A request to run the function in a script. The script is identified by the @@ -214,12 +224,12 @@ export namespace script_v1 { * most recently saved version rather than the version deployed for use with * the Apps Script API. Optional; default is `false`. */ - devMode: boolean; + devMode?: boolean; /** * The name of the function to execute in the given script. The name does * not include parentheses or parameters. */ - function: string; + function?: string; /** * The parameters to be passed to the function being executed. The object * type for each parameter should match the expected type in Apps Script. @@ -227,7 +237,7 @@ export namespace script_v1 { * `Document` or a `Calendar`); they can only be primitive types such as * `string`, `number`, `array`, `object`, or `boolean`. Optional. */ - parameters: any[]; + parameters?: any[]; /** * For Android add-ons only. An ID that represents the user's current * session in the Android app for Google Docs or Sheets, included as extra @@ -242,7 +252,7 @@ export namespace script_v1 { * `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`. * Optional. */ - sessionState: string; + sessionState?: string; } /** * An object that provides the return value of a function executed using the @@ -257,7 +267,7 @@ export namespace script_v1 { * `Calendar`); they can only return primitive types such as a `string`, * `number`, `array`, `object`, or `boolean`. */ - result: any; + result?: any; } /** * An individual file within a script project. A file is a third-party source @@ -270,34 +280,34 @@ export namespace script_v1 { * Creation date timestamp. This read-only field is only visible to users * who have WRITER permission for the script project. */ - createTime: string; + createTime?: string; /** * The defined set of functions in the script file, if any. */ - functionSet: Schema$GoogleAppsScriptTypeFunctionSet; + functionSet?: Schema$GoogleAppsScriptTypeFunctionSet; /** * The user who modified the file most recently. This read-only field is * only visible to users who have WRITER permission for the script project. */ - lastModifyUser: Schema$GoogleAppsScriptTypeUser; + lastModifyUser?: Schema$GoogleAppsScriptTypeUser; /** * The name of the file. The file extension is not part of the file name, * which can be identified from the type field. */ - name: string; + name?: string; /** * The file content. */ - source: string; + source?: string; /** * The type of the file. */ - type: string; + type?: string; /** * Last modified date timestamp. This read-only field is only visible to * users who have WRITER permission for the script project. */ - updateTime: string; + updateTime?: string; } /** * An add-on entry point. @@ -306,27 +316,27 @@ export namespace script_v1 { /** * The add-on's required list of supported container types. */ - addOnType: string; + addOnType?: string; /** * The add-on's optional description. */ - description: string; + description?: string; /** * The add-on's optional help URL. */ - helpUrl: string; + helpUrl?: string; /** * The add-on's required post install tip URL. */ - postInstallTipUrl: string; + postInstallTipUrl?: string; /** * The add-on's optional report issue URL. */ - reportIssueUrl: string; + reportIssueUrl?: string; /** * The add-on's required title. */ - title: string; + title?: string; } /** * API executable entry point configuration. @@ -335,7 +345,7 @@ export namespace script_v1 { /** * Who has permission to run the API executable. */ - access: string; + access?: string; } /** * An API executable entry point. @@ -344,7 +354,7 @@ export namespace script_v1 { /** * The entry point's configuration. */ - entryPointConfig: Schema$GoogleAppsScriptTypeExecutionApiConfig; + entryPointConfig?: Schema$GoogleAppsScriptTypeExecutionApiConfig; } /** * Represents a function in a script project. @@ -353,7 +363,7 @@ export namespace script_v1 { /** * The function name in the script project. */ - name: string; + name?: string; } /** * A set of functions. No duplicates are permitted. @@ -362,7 +372,7 @@ export namespace script_v1 { /** * A list of functions composing the set. */ - values: Schema$GoogleAppsScriptTypeFunction[]; + values?: Schema$GoogleAppsScriptTypeFunction[]; } /** * Representation of a single script process execution that was started from @@ -374,35 +384,35 @@ export namespace script_v1 { /** * Duration the execution spent executing. */ - duration: string; + duration?: string; /** * User-facing name for the user executing the script. */ - executingUser: string; + executingUser?: string; /** * Name of the function the started the execution. */ - functionName: string; + functionName?: string; /** * The executions status. */ - processStatus: string; + processStatus?: string; /** * The executions type. */ - processType: string; + processType?: string; /** * Name of the script being executed. */ - projectName: string; + projectName?: string; /** * Time the execution started. */ - startTime: string; + startTime?: string; /** * The executing users access level to the script. */ - userAccessLevel: string; + userAccessLevel?: string; } /** * Represents an authorization scope. @@ -411,11 +421,11 @@ export namespace script_v1 { /** * Who authorized the scope. */ - authorizer: string; + authorizer?: string; /** * The scope's identifying string. */ - name: string; + name?: string; } /** * A set of scopes. No duplicates are permitted. @@ -424,7 +434,7 @@ export namespace script_v1 { /** * List of scope values in the set. */ - values: Schema$GoogleAppsScriptTypeScope[]; + values?: Schema$GoogleAppsScriptTypeScope[]; } /** * A simple user profile resource. @@ -433,19 +443,19 @@ export namespace script_v1 { /** * The user's domain. */ - domain: string; + domain?: string; /** * The user's identifying email address. */ - email: string; + email?: string; /** * The user's display name. */ - name: string; + name?: string; /** * The user's photo. */ - photoUrl: string; + photoUrl?: string; } /** * Web app entry point configuration. @@ -454,11 +464,11 @@ export namespace script_v1 { /** * Who has permission to run the web app. */ - access: string; + access?: string; /** * Who to execute the web app as. */ - executeAs: string; + executeAs?: string; } /** * A web application entry point. @@ -467,11 +477,11 @@ export namespace script_v1 { /** * The entry point's configuration. */ - entryPointConfig: Schema$GoogleAppsScriptTypeWebAppConfig; + entryPointConfig?: Schema$GoogleAppsScriptTypeWebAppConfig; /** * The URL for the web application. */ - url: string; + url?: string; } /** * Response with the list of deployments for the specified Apps Script @@ -481,12 +491,12 @@ export namespace script_v1 { /** * The list of deployments. */ - deployments: Schema$Deployment[]; + deployments?: Schema$Deployment[]; /** * The token that can be used in the next call to get the next page of * results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response with the list of Process resources. @@ -496,11 +506,11 @@ export namespace script_v1 { * Token for the next page of results. If empty, there are no more pages * remaining. */ - nextPageToken: string; + nextPageToken?: string; /** * List of processes matching request parameters. */ - processes: Schema$GoogleAppsScriptTypeProcess[]; + processes?: Schema$GoogleAppsScriptTypeProcess[]; } /** * Response with the list of Process resources. @@ -510,11 +520,11 @@ export namespace script_v1 { * Token for the next page of results. If empty, there are no more pages * remaining. */ - nextPageToken: string; + nextPageToken?: string; /** * List of processes matching request parameters. */ - processes: Schema$GoogleAppsScriptTypeProcess[]; + processes?: Schema$GoogleAppsScriptTypeProcess[]; } /** * Response with the list of the versions for the specified script project. @@ -524,11 +534,11 @@ export namespace script_v1 { * The token use to fetch the next page of records. if not exist in the * response, that means no more versions to list. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of versions. */ - versions: Schema$Version[]; + versions?: Schema$Version[]; } /** * Resource containing usage stats for a given script, based on the supplied @@ -538,15 +548,15 @@ export namespace script_v1 { /** * Number of active users. */ - activeUsers: Schema$MetricsValue[]; + activeUsers?: Schema$MetricsValue[]; /** * Number of failed executions. */ - failedExecutions: Schema$MetricsValue[]; + failedExecutions?: Schema$MetricsValue[]; /** * Number of total executions. */ - totalExecutions: Schema$MetricsValue[]; + totalExecutions?: Schema$MetricsValue[]; } /** * Metrics value that holds number of executions counted. @@ -555,15 +565,15 @@ export namespace script_v1 { /** * Required field indicating the end time of the interval. */ - endTime: string; + endTime?: string; /** * Required field indicating the start time of the interval. */ - startTime: string; + startTime?: string; /** * Indicates the number of executions counted. */ - value: string; + value?: string; } /** * A representation of a execution of an Apps Script function that is started @@ -593,7 +603,7 @@ export namespace script_v1 { * completed execution has a populated `response` field containing the * ExecutionResponse from function that was executed. */ - done: boolean; + done?: boolean; /** * If a `run` call succeeds but the script function (or Apps Script itself) * throws an exception, this field contains a Status object. The `Status` @@ -601,12 +611,12 @@ export namespace script_v1 { * ExecutionError object that provides information about the nature of the * error. */ - error: Schema$Status; + error?: Schema$Status; /** * If the script function returns successfully, this field contains an * ExecutionResponse object with the function's return value. */ - response: any; + response?: any; } /** * The script project resource. @@ -615,33 +625,33 @@ export namespace script_v1 { /** * When the script was created. */ - createTime: string; + createTime?: string; /** * User who originally created the script. */ - creator: Schema$GoogleAppsScriptTypeUser; + creator?: Schema$GoogleAppsScriptTypeUser; /** * User who last modified the script. */ - lastModifyUser: Schema$GoogleAppsScriptTypeUser; + lastModifyUser?: Schema$GoogleAppsScriptTypeUser; /** * The parent's Drive ID that the script will be attached to. This is * usually the ID of a Google Document or Google Sheet. This filed is * optional, and if not set, a stand-alone script will be created. */ - parentId: string; + parentId?: string; /** * The script project's Drive ID. */ - scriptId: string; + scriptId?: string; /** * The title for the project. */ - title: string; + title?: string; /** * When the script was last updated. */ - updateTime: string; + updateTime?: string; } /** * A stack trace through the script that shows where the execution failed. @@ -650,11 +660,11 @@ export namespace script_v1 { /** * The name of the function that failed. */ - function: string; + function?: string; /** * The line number where the script failed. */ - lineNumber: number; + lineNumber?: number; } /** * If a `run` call succeeds but the script function (or Apps Script itself) @@ -668,19 +678,19 @@ export namespace script_v1 { * indicating an `INVALID_ARGUMENT` error, or</li> <li> 1, * indicating a `CANCELLED` execution.</li> </ul> */ - code: number; + code?: number; /** * An array that contains a single ExecutionError object that provides * information about the nature of the error. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which is in English. Any user-facing * error message is localized and sent in the * [google.rpc.Status.details](google.rpc.Status.details) field, or * localized by the client. */ - message: string; + message?: string; } /** * Request with deployment information to update an existing deployment. @@ -689,7 +699,7 @@ export namespace script_v1 { /** * The deployment configuration. */ - deploymentConfig: Schema$DeploymentConfig; + deploymentConfig?: Schema$DeploymentConfig; } /** * A resource representing a script project version. A version is a @@ -701,22 +711,23 @@ export namespace script_v1 { /** * When the version was created. */ - createTime: string; + createTime?: string; /** * The description for this version. */ - description: string; + description?: string; /** * The script project's Drive ID. */ - scriptId: string; + scriptId?: string; /** * The incremental ID that is created by Apps Script when a version is * created. This is system assigned number and is immutable once created. */ - versionNumber: number; + versionNumber?: number; } + export class Resource$Processes { root: Script; constructor(root: Script) { @@ -742,7 +753,7 @@ export namespace script_v1 { * @param {string=} params.userProcessFilter.deploymentId Optional field used to limit returned processes to those originating from projects with a specific deployment ID. * @param {string=} params.userProcessFilter.endTime Optional field used to limit returned processes to those that completed on or before the given timestamp. * @param {string=} params.userProcessFilter.functionName Optional field used to limit returned processes to those originating from a script function with the given function name. - * @param {string=} params.userProcessFilter.projectName Optional field used to limit returned processes to those originating from projects with a specific project name. + * @param {string=} params.userProcessFilter.projectName Optional field used to limit returned processes to those originating from projects with project names containing a specific string. * @param {string=} params.userProcessFilter.scriptId Optional field used to limit returned processes to those originating from projects with a specific script ID. * @param {string=} params.userProcessFilter.startTime Optional field used to limit returned processes to those that were started on or after the given timestamp. * @param {string=} params.userProcessFilter.statuses Optional field used to limit returned processes to those having one of the specified process statuses. @@ -752,29 +763,39 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Processes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Processes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Processes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Processes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Processes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Processes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -819,29 +840,45 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listScriptProcesses(params?: any, options?: MethodOptions): + listScriptProcesses( + params?: Params$Resource$Processes$Listscriptprocesses, + options?: MethodOptions): AxiosPromise; listScriptProcesses( - params?: any, - options?: MethodOptions| + params: Params$Resource$Processes$Listscriptprocesses, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; listScriptProcesses( - params?: any, - options?: MethodOptions| + params: Params$Resource$Processes$Listscriptprocesses, + callback: BodyResponseCallback): + void; + listScriptProcesses( + callback: BodyResponseCallback): + void; + listScriptProcesses( + paramsOrCallback?: Params$Resource$Processes$Listscriptprocesses| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Processes$Listscriptprocesses; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Processes$Listscriptprocesses; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -865,6 +902,126 @@ export namespace script_v1 { } } + export interface Params$Resource$Processes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of returned processes per page of results. Defaults + * to 50. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of `nextPageToken` from a previous response. + */ + pageToken?: string; + /** + * Optional field used to limit returned processes to those originating from + * projects with a specific deployment ID. + */ + 'userProcessFilter.deploymentId'?: string; + /** + * Optional field used to limit returned processes to those that completed + * on or before the given timestamp. + */ + 'userProcessFilter.endTime'?: string; + /** + * Optional field used to limit returned processes to those originating from + * a script function with the given function name. + */ + 'userProcessFilter.functionName'?: string; + /** + * Optional field used to limit returned processes to those originating from + * projects with project names containing a specific string. + */ + 'userProcessFilter.projectName'?: string; + /** + * Optional field used to limit returned processes to those originating from + * projects with a specific script ID. + */ + 'userProcessFilter.scriptId'?: string; + /** + * Optional field used to limit returned processes to those that were + * started on or after the given timestamp. + */ + 'userProcessFilter.startTime'?: string; + /** + * Optional field used to limit returned processes to those having one of + * the specified process statuses. + */ + 'userProcessFilter.statuses'?: string; + /** + * Optional field used to limit returned processes to those having one of + * the specified process types. + */ + 'userProcessFilter.types'?: string; + /** + * Optional field used to limit returned processes to those having one of + * the specified user access levels. + */ + 'userProcessFilter.userAccessLevels'?: string; + } + export interface Params$Resource$Processes$Listscriptprocesses { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of returned processes per page of results. Defaults + * to 50. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of `nextPageToken` from a previous response. + */ + pageToken?: string; + /** + * The script ID of the project whose processes are listed. + */ + scriptId?: string; + /** + * Optional field used to limit returned processes to those originating from + * projects with a specific deployment ID. + */ + 'scriptProcessFilter.deploymentId'?: string; + /** + * Optional field used to limit returned processes to those that completed + * on or before the given timestamp. + */ + 'scriptProcessFilter.endTime'?: string; + /** + * Optional field used to limit returned processes to those originating from + * a script function with the given function name. + */ + 'scriptProcessFilter.functionName'?: string; + /** + * Optional field used to limit returned processes to those that were + * started on or after the given timestamp. + */ + 'scriptProcessFilter.startTime'?: string; + /** + * Optional field used to limit returned processes to those having one of + * the specified process statuses. + */ + 'scriptProcessFilter.statuses'?: string; + /** + * Optional field used to limit returned processes to those having one of + * the specified process types. + */ + 'scriptProcessFilter.types'?: string; + /** + * Optional field used to limit returned processes to those having one of + * the specified user access levels. + */ + 'scriptProcessFilter.userAccessLevels'?: string; + } + + export class Resource$Projects { root: Script; deployments: Resource$Projects$Deployments; @@ -894,25 +1051,36 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Projects$Create, options?: MethodOptions): + AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -946,23 +1114,33 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Projects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -999,26 +1177,38 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getContent(params?: any, options?: MethodOptions): - AxiosPromise; getContent( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getcontent, + options?: MethodOptions): AxiosPromise; + getContent( + params: Params$Resource$Projects$Getcontent, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getContent( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Getcontent, + callback: BodyResponseCallback): void; + getContent(callback: BodyResponseCallback): void; + getContent( + paramsOrCallback?: Params$Resource$Projects$Getcontent| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getcontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getcontent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1056,26 +1246,38 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getMetrics(params?: any, options?: MethodOptions): - AxiosPromise; getMetrics( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getmetrics, + options?: MethodOptions): AxiosPromise; + getMetrics( + params: Params$Resource$Projects$Getmetrics, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getMetrics( + params: Params$Resource$Projects$Getmetrics, + callback: BodyResponseCallback): void; + getMetrics(callback: BodyResponseCallback): void; getMetrics( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Getmetrics| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getmetrics; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getmetrics; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1115,26 +1317,38 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateContent(params?: any, options?: MethodOptions): - AxiosPromise; updateContent( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Updatecontent, + options?: MethodOptions): AxiosPromise; + updateContent( + params: Params$Resource$Projects$Updatecontent, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + updateContent( + params: Params$Resource$Projects$Updatecontent, + callback: BodyResponseCallback): void; + updateContent(callback: BodyResponseCallback): void; updateContent( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Updatecontent| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Updatecontent; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Updatecontent; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1156,6 +1370,80 @@ export namespace script_v1 { } } } + + export interface Params$Resource$Projects$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$CreateProjectRequest; + } + export interface Params$Resource$Projects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script project's Drive ID. + */ + scriptId?: string; + } + export interface Params$Resource$Projects$Getcontent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script project's Drive ID. + */ + scriptId?: string; + /** + * The version number of the project to retrieve. If not provided, the + * project's HEAD version is returned. + */ + versionNumber?: number; + } + export interface Params$Resource$Projects$Getmetrics { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional field indicating a specific deployment to retrieve metrics from. + */ + 'metricsFilter.deploymentId'?: string; + /** + * Required field indicating what granularity of metrics are returned. + */ + metricsGranularity?: string; + /** + * Required field indicating the script to get metrics for. + */ + scriptId?: string; + } + export interface Params$Resource$Projects$Updatecontent { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script project's Drive ID. + */ + scriptId?: string; + /** + * Request body metadata + */ + resource?: Schema$Content; + } + export class Resource$Projects$Deployments { root: Script; constructor(root: Script) { @@ -1181,26 +1469,39 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Deployments$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Deployments$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Deployments$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Deployments$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deployments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deployments$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1236,25 +1537,38 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Deployments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Deployments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Deployments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Deployments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deployments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deployments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1291,23 +1605,35 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Deployments$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Deployments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Deployments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Deployments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Deployments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deployments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1345,28 +1671,40 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Deployments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Deployments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Deployments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Deployments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Deployments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deployments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1403,26 +1741,39 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Deployments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Projects$Deployments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Deployments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Projects$Deployments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Deployments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Deployments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1446,6 +1797,92 @@ export namespace script_v1 { } } + export interface Params$Resource$Projects$Deployments$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script project's Drive ID. + */ + scriptId?: string; + /** + * Request body metadata + */ + resource?: Schema$DeploymentConfig; + } + export interface Params$Resource$Projects$Deployments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The deployment ID to be undeployed. + */ + deploymentId?: string; + /** + * The script project's Drive ID. + */ + scriptId?: string; + } + export interface Params$Resource$Projects$Deployments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The deployment ID. + */ + deploymentId?: string; + /** + * The script project's Drive ID. + */ + scriptId?: string; + } + export interface Params$Resource$Projects$Deployments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of deployments on each returned page. Defaults to 50. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of `nextPageToken` from a previous response. + */ + pageToken?: string; + /** + * The script project's Drive ID. + */ + scriptId?: string; + } + export interface Params$Resource$Projects$Deployments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The deployment ID for this deployment. + */ + deploymentId?: string; + /** + * The script project's Drive ID. + */ + scriptId?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateDeploymentRequest; + } + + export class Resource$Projects$Versions { root: Script; constructor(root: Script) { @@ -1472,25 +1909,38 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Versions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Versions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Versions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1526,23 +1976,34 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Versions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1580,28 +2041,40 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Versions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Versions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1624,6 +2097,58 @@ export namespace script_v1 { } } + export interface Params$Resource$Projects$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script project's Drive ID. + */ + scriptId?: string; + /** + * Request body metadata + */ + resource?: Schema$Version; + } + export interface Params$Resource$Projects$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script project's Drive ID. + */ + scriptId?: string; + /** + * The version number. + */ + versionNumber?: number; + } + export interface Params$Resource$Projects$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of versions on each returned page. Defaults to 50. + */ + pageSize?: number; + /** + * The token for continuing a previous list request on the next page. This + * should be set to the value of `nextPageToken` from a previous response. + */ + pageToken?: string; + /** + * The script project's Drive ID. + */ + scriptId?: string; + } + + export class Resource$Scripts { root: Script; @@ -1657,23 +2182,34 @@ export namespace script_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): AxiosPromise; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - run(params?: any, - options?: MethodOptions|BodyResponseCallback, + run(params?: Params$Resource$Scripts$Run, + options?: MethodOptions): AxiosPromise; + run(params: Params$Resource$Scripts$Run, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + run(params: Params$Resource$Scripts$Run, + callback: BodyResponseCallback): void; + run(callback: BodyResponseCallback): void; + run(paramsOrCallback?: Params$Resource$Scripts$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Scripts$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Scripts$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; const parameters = { options: Object.assign( @@ -1695,4 +2231,22 @@ export namespace script_v1 { } } } + + export interface Params$Resource$Scripts$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The script ID of the script to be executed. To find the script ID, open + * the project in the script editor and select **File > Project + * properties**. + */ + scriptId?: string; + /** + * Request body metadata + */ + resource?: Schema$ExecutionRequest; + } } diff --git a/src/apis/searchconsole/v1.ts b/src/apis/searchconsole/v1.ts index 0c74cc10a9a..1722a4ae548 100644 --- a/src/apis/searchconsole/v1.ts +++ b/src/apis/searchconsole/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace searchconsole_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Search Console URL Testing Tools API * @@ -72,7 +75,7 @@ export namespace searchconsole_v1 { /** * URL of the blocked resource. */ - url: string; + url?: string; } /** * Describe image data. @@ -83,11 +86,11 @@ export namespace searchconsole_v1 { * will always be "image/png", but this might change in the * future. */ - data: string; + data?: string; /** * The mime-type of the image data. */ - mimeType: string; + mimeType?: string; } /** * Mobile-friendly issue. @@ -96,7 +99,7 @@ export namespace searchconsole_v1 { /** * Rule violated. */ - rule: string; + rule?: string; } /** * Information about a resource with issue. @@ -105,7 +108,7 @@ export namespace searchconsole_v1 { /** * Describes a blocked resource issue. */ - blockedResource: Schema$BlockedResource; + blockedResource?: Schema$BlockedResource; } /** * Mobile-friendly test request. @@ -114,11 +117,11 @@ export namespace searchconsole_v1 { /** * Whether or not screenshot is requested. Default is false. */ - requestScreenshot: boolean; + requestScreenshot?: boolean; /** * URL for inspection. */ - url: string; + url?: string; } /** * Mobile-friendly test response, including mobile-friendly issues and @@ -128,23 +131,23 @@ export namespace searchconsole_v1 { /** * Test verdict, whether the page is mobile friendly or not. */ - mobileFriendliness: string; + mobileFriendliness?: string; /** * List of mobile-usability issues. */ - mobileFriendlyIssues: Schema$MobileFriendlyIssue[]; + mobileFriendlyIssues?: Schema$MobileFriendlyIssue[]; /** * Information about embedded resources issues. */ - resourceIssues: Schema$ResourceIssue[]; + resourceIssues?: Schema$ResourceIssue[]; /** * Screenshot of the requested URL. */ - screenshot: Schema$Image; + screenshot?: Schema$Image; /** * Final state of the test, can be either complete or an error. */ - testStatus: Schema$TestStatus; + testStatus?: Schema$TestStatus; } /** * Final state of the test, including error details if necessary. @@ -153,13 +156,14 @@ export namespace searchconsole_v1 { /** * Error details if applicable. */ - details: string; + details?: string; /** * Status of the test. */ - status: string; + status?: string; } + export class Resource$Urltestingtools { root: Searchconsole; mobileFriendlyTest: Resource$Urltestingtools$Mobilefriendlytest; @@ -174,6 +178,8 @@ export namespace searchconsole_v1 { return this.root; } } + + export class Resource$Urltestingtools$Mobilefriendlytest { root: Searchconsole; constructor(root: Searchconsole) { @@ -198,27 +204,41 @@ export namespace searchconsole_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - run(params?: any, options?: MethodOptions): + run(params?: Params$Resource$Urltestingtools$Mobilefriendlytest$Run, + options?: MethodOptions): AxiosPromise; - run(params?: any, - options?: MethodOptions| + run(params: Params$Resource$Urltestingtools$Mobilefriendlytest$Run, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; - run(params?: any, - options?: MethodOptions| + run(params: Params$Resource$Urltestingtools$Mobilefriendlytest$Run, + callback: BodyResponseCallback): + void; + run(callback: BodyResponseCallback): + void; + run(paramsOrCallback?: + Params$Resource$Urltestingtools$Mobilefriendlytest$Run| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Urltestingtools$Mobilefriendlytest$Run; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urltestingtools$Mobilefriendlytest$Run; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; const parameters = { @@ -243,4 +263,16 @@ export namespace searchconsole_v1 { } } } + + export interface Params$Resource$Urltestingtools$Mobilefriendlytest$Run { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$RunMobileFriendlyTestRequest; + } } diff --git a/src/apis/servicebroker/v1.ts b/src/apis/servicebroker/v1.ts new file mode 100644 index 00000000000..3a20f8a11cf --- /dev/null +++ b/src/apis/servicebroker/v1.ts @@ -0,0 +1,454 @@ +/** + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; + +import {GoogleApis} from '../..'; +import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; +import {createAPIRequest} from '../../lib/apirequest'; + +// TODO: We will eventually get the `any` in here cleared out, but in the +// interim we want to turn on no-implicit-any. + +// tslint:disable: no-any +// tslint:disable: class-name +// tslint:disable: variable-name +// tslint:disable: jsdoc-format +// tslint:disable: no-namespace + +export namespace servicebroker_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + + /** + * Service Broker API + * + * The Google Cloud Platform Service Broker API provides Google hosted + * implementation of the Open Service Broker API + * (https://www.openservicebrokerapi.org/). + * + * @example + * const google = require('googleapis'); + * const servicebroker = google.servicebroker('v1'); + * + * @namespace servicebroker + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Servicebroker + */ + export class Servicebroker { + _options: GlobalOptions; + google: GoogleApis; + root = this; + + v1: Resource$V1; + + constructor(options: GlobalOptions, google: GoogleApis) { + this._options = options || {}; + this.google = google; + this.getRoot.bind(this); + + this.v1 = new Resource$V1(this); + } + + getRoot() { + return this.root; + } + } + + /** + * Associates `members` with a `role`. + */ + export interface Schema$GoogleIamV1__Binding { + /** + * Specifies the identities requesting access for a Cloud Platform resource. + * `members` can have the following values: * `allUsers`: A special + * identifier that 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` . + * * `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[]; + /** + * Role that is assigned to `members`. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. Required + */ + role?: string; + } + /** + * Defines an Identity and Access Management (IAM) policy. It is used to + * specify access control policies for Cloud Platform resources. A `Policy` + * consists 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. **JSON 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"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). + */ + export interface Schema$GoogleIamV1__Policy { + /** + * Associates a list of `members` to a `role`. `bindings` with no members + * will result in an error. + */ + bindings?: Schema$GoogleIamV1__Binding[]; + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. It + * is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the + * policy. If no `etag` is provided in the call to `setIamPolicy`, then the + * existing policy is overwritten blindly. + */ + etag?: string; + /** + * Deprecated. + */ + version?: number; + } + /** + * Request message for `SetIamPolicy` method. + */ + export interface Schema$GoogleIamV1__SetIamPolicyRequest { + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size + * of the policy is limited to a few 10s of KB. An empty policy is a valid + * policy but certain Cloud Platform services (such as Projects) might + * reject them. + */ + policy?: Schema$GoogleIamV1__Policy; + } + /** + * Request message for `TestIamPermissions` method. + */ + export interface Schema$GoogleIamV1__TestIamPermissionsRequest { + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. + * For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + permissions?: string[]; + } + /** + * Response message for `TestIamPermissions` method. + */ + export interface Schema$GoogleIamV1__TestIamPermissionsResponse { + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + */ + permissions?: string[]; + } + + + export class Resource$V1 { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.getIamPolicy + * @desc Gets the access control policy for a resource. Returns an empty + * policy if the resource exists and does not have a policy set. + * @alias servicebroker.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getIamPolicy( + params?: Params$Resource$V1$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$V1$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$V1$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): + void; + getIamPolicy( + paramsOrCallback?: Params$Resource$V1$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$V1$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+resource}:getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias servicebroker.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setIamPolicy( + params?: Params$Resource$V1$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$V1$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$V1$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): + void; + setIamPolicy( + paramsOrCallback?: Params$Resource$V1$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$V1$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+resource}:setIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. If + * the resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. Note: This operation is designed to + * be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * @alias servicebroker.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$V1$Testiampermissions, + options?: MethodOptions): + AxiosPromise; + testIamPermissions( + params: Params$Resource$V1$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + params: Params$Resource$V1$Testiampermissions, + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions(callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$V1$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$V1$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1/{+resource}:testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + } + + export interface Params$Resource$V1$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$V1$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__SetIamPolicyRequest; + } + export interface Params$Resource$V1$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__TestIamPermissionsRequest; + } +} diff --git a/src/apis/servicebroker/v1alpha1.ts b/src/apis/servicebroker/v1alpha1.ts new file mode 100644 index 00000000000..341c965bd4b --- /dev/null +++ b/src/apis/servicebroker/v1alpha1.ts @@ -0,0 +1,2508 @@ +/** + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; + +import {GoogleApis} from '../..'; +import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; +import {createAPIRequest} from '../../lib/apirequest'; + +// TODO: We will eventually get the `any` in here cleared out, but in the +// interim we want to turn on no-implicit-any. + +// tslint:disable: no-any +// tslint:disable: class-name +// tslint:disable: variable-name +// tslint:disable: jsdoc-format +// tslint:disable: no-namespace + +export namespace servicebroker_v1alpha1 { + export interface Options extends GlobalOptions { version: 'v1alpha1'; } + + /** + * Service Broker API + * + * The Google Cloud Platform Service Broker API provides Google hosted + * implementation of the Open Service Broker API + * (https://www.openservicebrokerapi.org/). + * + * @example + * const google = require('googleapis'); + * const servicebroker = google.servicebroker('v1alpha1'); + * + * @namespace servicebroker + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Servicebroker + */ + export class Servicebroker { + _options: GlobalOptions; + google: GoogleApis; + root = this; + + projects: Resource$Projects; + v1alpha1: Resource$V1alpha1; + + constructor(options: GlobalOptions, google: GoogleApis) { + this._options = options || {}; + this.google = google; + this.getRoot.bind(this); + + this.projects = new Resource$Projects(this); + this.v1alpha1 = new Resource$V1alpha1(this); + } + + getRoot() { + return this.root; + } + } + + /** + * Describes the binding. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__Binding { + /** + * The id of the binding. Must be unique within GCP project. Maximum length + * is 64, GUID recommended. Required. + */ + binding_id?: string; + /** + * A JSON object that contains data for platform resources associated with + * the binding to be created. + */ + bind_resource?: any; + /** + * Output only. Timestamp for when the binding was created. + */ + createTime?: string; + /** + * Configuration options for the service binding. + */ + parameters?: any; + /** + * The ID of the plan. See `Service` and `Plan` resources for details. + * Maximum length is 64, GUID recommended. Required. + */ + plan_id?: string; + /** + * The id of the service. Must be a valid identifier of a service contained + * in the list from a `ListServices()` call. Maximum length is 64, GUID + * recommended. Required. + */ + service_id?: string; + } + /** + * Response for the `CreateBinding()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse { + /** + * Credentials to use the binding. + */ + credentials?: any; + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. This + * broker always executes all create/delete operations asynchronously. + */ + operation?: string; + /** + * A URL to which the platform may proxy requests for the address sent with + * bind_resource.route + */ + route_service_url?: string; + /** + * From where to read system logs. + */ + syslog_drain_url?: string; + /** + * An array of configuration for mounting volumes. + */ + volume_mounts?: any[]; + } + /** + * Response for the `CreateServiceInstance()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. This + * broker always will return a non-empty operation on success. + */ + operation?: string; + } + /** + * Message containing information required to activate Dashboard SSO feature. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__DashboardClient { + /** + * The id of the Oauth client that the dashboard will use. + */ + id?: string; + /** + * A URI for the service dashboard. Validated by the OAuth token server when + * the dashboard requests a token. + */ + redirect_uri?: string; + /** + * A secret for the dashboard client. + */ + secret?: string; + } + /** + * Response for the `DeleteBinding()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. + */ + operation?: string; + } + /** + * Response for the `DeleteServiceInstance()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. + */ + operation?: string; + } + /** + * Response for the `GetBinding()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse { + /** + * Credentials to use the binding. + */ + credentials?: any; + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * A URL to which the platform may proxy requests for the address sent with + * bind_resource.route + */ + route_service_url?: string; + /** + * From where to read system logs. + */ + syslog_drain_url?: string; + /** + * An array of configuration for mounting volumes. + */ + volume_mounts?: any[]; + } + /** + * The response for the `ListBindings()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse { + /** + * The list of the bindings in the instance. + */ + bindings?: Schema$GoogleCloudServicebrokerV1alpha1__Binding[]; + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + } + /** + * Response message for the `ListCatalog()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + /** + * The services available for the requested GCP project. + */ + services?: Schema$GoogleCloudServicebrokerV1alpha1__Service[]; + } + /** + * The response for the `ListServiceInstances()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * The list of the instances in the broker. + */ + instances?: Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance[]; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + } + /** + * Describes a long running operation, which conforms to OpenService API. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__Operation { + /** + * Optional description of the Operation state. + */ + description?: string; + /** + * The state of the operation. Valid values are: "in progress", + * "succeeded", and "failed". + */ + state?: string; + } + /** + * Plan message describes a Service Plan. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__Plan { + /** + * Specifies whether instances of the service can be bound to applications. + * If not specified, `Service.bindable` will be presumed. + */ + bindable?: boolean; + /** + * Textual description of the plan. Optional. + */ + description?: string; + /** + * Whether the service is free. + */ + free?: boolean; + /** + * ID is a globally unique identifier used to uniquely identify the plan. + * User must make no presumption about the format of this field. + */ + id?: string; + /** + * A list of metadata for a service offering. Metadata is an arbitrary JSON + * object. + */ + metadata?: any; + /** + * User friendly name of the plan. The name must be globally unique within + * GCP project. Note, which is different from ("This must be globally + * unique within a platform marketplace"). + */ + name?: string; + /** + * Schema definitions for service instances and bindings for the plan. + */ + schemas?: any; + } + /** + * The resource model mostly follows the Open Service Broker API, as described + * here: + * https://github.com/openservicebrokerapi/servicebroker/blob/master/_spec.md + * Though due to Google Specifics it has additional optional fields. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__Service { + /** + * Specifies whether instances of the service can be bound to applications. + * Required. + */ + bindable?: boolean; + /** + * Whether the service provides an endpoint to get service bindings. + */ + binding_retrievable?: boolean; + /** + * Information to activate Dashboard SSO feature. + */ + dashboard_client?: Schema$GoogleCloudServicebrokerV1alpha1__DashboardClient; + /** + * Textual description of the service. Required. + */ + description?: string; + /** + * ID is a globally unique identifier used to uniquely identify the service. + * ID is an opaque string. + */ + id?: string; + /** + * Whether the service provides an endpoint to get service instances. + */ + instance_retrievable?: boolean; + /** + * A list of metadata for a service offering. Metadata is an arbitrary JSON + * object. + */ + metadata?: any; + /** + * User friendly service name. Name must match [a-z0-9]+ regexp. The name + * must be globally unique within GCP project. Note, which is different from + * ("This must be globally unique within a platform marketplace"). + * Required. + */ + name?: string; + /** + * A list of plans for this service. At least one plan is required. + */ + plans?: Schema$GoogleCloudServicebrokerV1alpha1__Plan[]; + /** + * Whether the service supports upgrade/downgrade for some plans. + */ + plan_updateable?: boolean; + /** + * Tags provide a flexible mechanism to expose a classification, attribute, + * or base technology of a service. + */ + tags?: string[]; + } + /** + * Message describing inputs to Provision and Update Service instance + * requests. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance { + /** + * Platform specific contextual information under which the service instance + * is to be provisioned. This replaces organization_guid and space_guid. But + * can also contain anything. Currently only used for logging context + * information. + */ + context?: any; + /** + * Output only. Timestamp for when the instance was created. + */ + createTime?: string; + /** + * The id of the service instance. Must be unique within GCP project. + * Maximum length is 64, GUID recommended. Required. + */ + instance_id?: string; + /** + * The platform GUID for the organization under which the service is to be + * provisioned. Required. + */ + organization_guid?: string; + /** + * Configuration options for the service instance. Parameters is JSON object + * serialized to string. + */ + parameters?: any; + /** + * The ID of the plan. See `Service` and `Plan` resources for details. + * Maximum length is 64, GUID recommended. Required. + */ + plan_id?: string; + /** + * Used only in UpdateServiceInstance request to optionally specify previous + * fields. + */ + previous_values?: any; + /** + * Output only. The resource name of the instance, e.g. + * projects/project_id/brokers/broker_id/service_instances/instance_id + */ + resourceName?: string; + /** + * The id of the service. Must be a valid identifier of a service contained + * in the list from a `ListServices()` call. Maximum length is 64, GUID + * recommended. Required. + */ + service_id?: string; + /** + * The identifier for the project space within the platform organization. + * Required. + */ + space_guid?: string; + } + /** + * Response for the `UpdateServiceInstance()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. + */ + operation?: string; + } + /** + * Associates `members` with a `role`. + */ + export interface Schema$GoogleIamV1__Binding { + /** + * Specifies the identities requesting access for a Cloud Platform resource. + * `members` can have the following values: * `allUsers`: A special + * identifier that 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` . + * * `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[]; + /** + * Role that is assigned to `members`. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. Required + */ + role?: string; + } + /** + * Defines an Identity and Access Management (IAM) policy. It is used to + * specify access control policies for Cloud Platform resources. A `Policy` + * consists 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. **JSON 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"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). + */ + export interface Schema$GoogleIamV1__Policy { + /** + * Associates a list of `members` to a `role`. `bindings` with no members + * will result in an error. + */ + bindings?: Schema$GoogleIamV1__Binding[]; + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. It + * is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the + * policy. If no `etag` is provided in the call to `setIamPolicy`, then the + * existing policy is overwritten blindly. + */ + etag?: string; + /** + * Deprecated. + */ + version?: number; + } + /** + * Request message for `SetIamPolicy` method. + */ + export interface Schema$GoogleIamV1__SetIamPolicyRequest { + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size + * of the policy is limited to a few 10s of KB. An empty policy is a valid + * policy but certain Cloud Platform services (such as Projects) might + * reject them. + */ + policy?: Schema$GoogleIamV1__Policy; + } + /** + * Request message for `TestIamPermissions` method. + */ + export interface Schema$GoogleIamV1__TestIamPermissionsRequest { + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. + * For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + permissions?: string[]; + } + /** + * Response message for `TestIamPermissions` method. + */ + export interface Schema$GoogleIamV1__TestIamPermissionsResponse { + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + */ + permissions?: string[]; + } + + + export class Resource$Projects { + root: Servicebroker; + brokers: Resource$Projects$Brokers; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.brokers = new Resource$Projects$Brokers(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Brokers { + root: Servicebroker; + instances: Resource$Projects$Brokers$Instances; + service_instances: Resource$Projects$Brokers$Service_instances; + v2: Resource$Projects$Brokers$V2; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.instances = new Resource$Projects$Brokers$Instances(root); + this.service_instances = + new Resource$Projects$Brokers$Service_instances(root); + this.v2 = new Resource$Projects$Brokers$V2(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Brokers$Instances { + root: Servicebroker; + service_bindings: Resource$Projects$Brokers$Instances$Service_bindings; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.service_bindings = + new Resource$Projects$Brokers$Instances$Service_bindings(root); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.instances.get + * @desc Gets the given service instance from the system. This API is an + * extension and not part of the OSB spec. Hence the path is a standard + * Google API URL. + * @alias servicebroker.projects.brokers.instances.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the instance to return. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Brokers$Instances$Get, + options?: MethodOptions): + AxiosPromise; + get(params: Params$Resource$Projects$Brokers$Instances$Get, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void; + get(params: Params$Resource$Projects$Brokers$Instances$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void; + get(paramsOrCallback?: Params$Resource$Projects$Brokers$Instances$Get| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void| + AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Instances$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the instance to return. + */ + name?: string; + } + + export class Resource$Projects$Brokers$Instances$Service_bindings { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.instances.service_bindings.list + * @desc Lists all the bindings in the instance + * @alias servicebroker.projects.brokers.instances.service_bindings.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. If unset or 0, all the results will be returned. + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: + Params$Resource$Projects$Brokers$Instances$Service_bindings$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>; + list( + params: + Params$Resource$Projects$Brokers$Instances$Service_bindings$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>): + void; + list( + params: + Params$Resource$Projects$Brokers$Instances$Service_bindings$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>): + void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Brokers$Instances$Service_bindings$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$Service_bindings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$Instances$Service_bindings$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha1/{+parent}/service_bindings') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ListBindingsResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$Instances$Service_bindings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. If + * unset or 0, all the results will be returned. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + */ + parent?: string; + } + + + + export class Resource$Projects$Brokers$Service_instances { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.service_instances.list + * @desc Lists all the instances in the brokers This API is an extension and + * not part of the OSB spec. Hence the path is a standard Google API URL. + * @alias servicebroker.projects.brokers.service_instances.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. If unset or 0, all the results will be returned. + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Brokers$Service_instances$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>; + list( + params: Params$Resource$Projects$Brokers$Service_instances$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>): + void; + list( + params: Params$Resource$Projects$Brokers$Service_instances$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>): + void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Brokers$Service_instances$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Service_instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Service_instances$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha1/{+parent}/service_instances') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ListServiceInstancesResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$Service_instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. If + * unset or 0, all the results will be returned. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + } + + + export class Resource$Projects$Brokers$V2 { + root: Servicebroker; + catalog: Resource$Projects$Brokers$V2$Catalog; + service_instances: Resource$Projects$Brokers$V2$Service_instances; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.catalog = new Resource$Projects$Brokers$V2$Catalog(root); + this.service_instances = + new Resource$Projects$Brokers$V2$Service_instances(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Brokers$V2$Catalog { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.v2.catalog.list + * @desc Lists all the Services registered with this broker for consumption + * for given service registry broker, which contains an set of services. + * Note, that Service producer API is separate from Broker API. + * @alias servicebroker.projects.brokers.v2.catalog.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. If unset or 0, all the results will be returned. + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Brokers$V2$Catalog$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>; + list( + params: Params$Resource$Projects$Brokers$V2$Catalog$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>): + void; + list( + params: Params$Resource$Projects$Brokers$V2$Catalog$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>): + void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>): void; + list( + paramsOrCallback?: Params$Resource$Projects$Brokers$V2$Catalog$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Catalog$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$V2$Catalog$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha1/{+parent}/v2/catalog') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ListCatalogResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$V2$Catalog$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. If + * unset or 0, all the results will be returned. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + } + + + export class Resource$Projects$Brokers$V2$Service_instances { + root: Servicebroker; + service_bindings: + Resource$Projects$Brokers$V2$Service_instances$Service_bindings; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.service_bindings = + new Resource$Projects$Brokers$V2$Service_instances$Service_bindings( + root); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.create + * @desc Provisions a service instance. If `request.accepts_incomplete` is + * false and Broker cannot execute request synchronously HTTP 422 error will + * be returned along with FAILED_PRECONDITION status. If + * `request.accepts_incomplete` is true and the Broker decides to execute + * resource asynchronously then HTTP 202 response code will be returned and + * a valid polling operation in the response will be included. If Broker + * executes the request synchronously and it succeeds HTTP 201 response will + * be furnished. If identical instance exists, then HTTP 200 response will + * be returned. If an instance with identical ID but mismatching parameters + * exists, then HTTP 409 status code will be returned. + * @alias servicebroker.projects.brokers.v2.service_instances.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete Value indicating that API client supports asynchronous operations. If Broker cannot execute the request synchronously HTTP 422 code will be returned to HTTP clients along with FAILED_PRECONDITION error. If true and broker will execute request asynchronously 202 HTTP code will be returned. This broker always requires this to be true as all mutator operations are asynchronous. + * @param {string} params.instance_id The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {().GoogleCloudServicebrokerV1alpha1__ServiceInstance} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + create( + params?: Params$Resource$Projects$Brokers$V2$Service_instances$Create, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>; + create( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Create, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>): + void; + create( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>): + void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>): + void; + create( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Create| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instance_id}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['parent', 'instance_id'], + pathParams: ['instance_id', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__CreateServiceInstanceResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.delete + * @desc Deprovisions a service instance. For synchronous/asynchronous + * request details see CreateServiceInstance method. If service instance + * does not exist HTTP 410 status will be returned. + * @alias servicebroker.projects.brokers.v2.service_instances.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.instanceId The instance id to deprovision. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {string=} params.planId The plan id of the service instance. + * @param {string=} params.serviceId The service id of the service instance. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Projects$Brokers$V2$Service_instances$Delete, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>; + delete( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Delete, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>): + void; + delete( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Delete, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>): + void; + delete(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>): + void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Delete| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instanceId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['parent', 'instanceId'], + pathParams: ['instanceId', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteServiceInstanceResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.get + * @desc Gets the given service instance from the system. This API is an + * extension and not part of the OSB spec. Hence the path is a standard + * Google API URL. + * @alias servicebroker.projects.brokers.v2.service_instances.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the instance to return. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Brokers$V2$Service_instances$Get, + options?: MethodOptions): + AxiosPromise; + get(params: Params$Resource$Projects$Brokers$V2$Service_instances$Get, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void; + get(params: Params$Resource$Projects$Brokers$V2$Service_instances$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Get| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>): void| + AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.getLast_operation + * @desc Returns the state of the last operation for the service instance. + * Only last (or current) operation can be polled. + * @alias + * servicebroker.projects.brokers.v2.service_instances.getLast_operation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.instanceId The instance id for which to return the last operation status. + * @param {string=} params.operation If `operation` was returned during mutation operation, this field must be populated with the provided value. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getLast_operation( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation, + options?: MethodOptions): + AxiosPromise; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): void; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): void; + getLast_operation(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): + void; + getLast_operation( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instanceId}/last_operation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent', 'instanceId'], + pathParams: ['instanceId', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>(parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.patch + * @desc Updates an existing service instance. See CreateServiceInstance for + * possible response codes. + * @alias servicebroker.projects.brokers.v2.service_instances.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.instance_id The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {().GoogleCloudServicebrokerV1alpha1__ServiceInstance} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Projects$Brokers$V2$Service_instances$Patch, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>; + patch( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Patch, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>): + void; + patch( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>): + void; + patch(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>): + void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Patch| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instance_id}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['parent', 'instance_id'], + pathParams: ['instance_id', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__UpdateServiceInstanceResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Value indicating that API client supports asynchronous operations. If + * Broker cannot execute the request synchronously HTTP 422 code will be + * returned to HTTP clients along with FAILED_PRECONDITION error. If true + * and broker will execute request asynchronously 202 HTTP code will be + * returned. This broker always requires this to be true as all mutator + * operations are asynchronous. + */ + acceptsIncomplete?: boolean; + /** + * The id of the service instance. Must be unique within GCP project. + * Maximum length is 64, GUID recommended. Required. + */ + instance_id?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * The instance id to deprovision. + */ + instanceId?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * The plan id of the service instance. + */ + planId?: string; + /** + * The service id of the service instance. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the instance to return. + */ + name?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The instance id for which to return the last operation status. + */ + instanceId?: string; + /** + * If `operation` was returned during mutation operation, this field must be + * populated with the provided value. + */ + operation?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * The id of the service instance. Must be unique within GCP project. + * Maximum length is 64, GUID recommended. Required. + */ + instance_id?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1alpha1__ServiceInstance; + } + + export class Resource$Projects$Brokers$V2$Service_instances$Service_bindings { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.create + * @desc CreateBinding generates a service binding to an existing service + * instance. See ProviServiceInstance for async operation details. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.binding_id The id of the binding. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. + * @param {string} params.instanceId The service instance to which to bind. + * @param {string} params.parent The GCP container. Must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {().GoogleCloudServicebrokerV1alpha1__Binding} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + create( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>; + create( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>): + void; + create( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>): + void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>): + void; + create( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+binding_id}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['parent', 'instanceId', 'binding_id'], + pathParams: ['binding_id', 'instanceId', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__CreateBindingResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.delete + * @desc Unbinds from a service instance. For synchronous/asynchronous + * request details see CreateServiceInstance method. If binding does not + * exist HTTP 410 status will be returned. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.bindingId The id of the binding to delete. + * @param {string} params.instanceId The service instance id that deleted binding is bound to. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {string=} params.planId The plan id of the service instance. + * @param {string=} params.serviceId Additional query parameter hints. The service id of the service instance. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>; + delete( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>): + void; + delete( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>): + void; + delete(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>): + void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{instanceId}/service_bindings/{bindingId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['parent', 'instanceId', 'bindingId'], + pathParams: ['bindingId', 'instanceId', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__DeleteBindingResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.get + * @desc GetBinding returns the binding information. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.bindingId The binding id. + * @param {string} params.instanceId Instance id to which the binding is bound. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>; + get(params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>): void; + get(params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+bindingId}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent', 'instanceId', 'bindingId'], + pathParams: ['bindingId', 'instanceId', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__GetBindingResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation + * @desc Returns the state of the last operation for the binding. Only last + * (or current) operation can be polled. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.bindingId The binding id for which to return the last operation + * @param {string} params.instanceId The instance id that the binding is bound to. + * @param {string=} params.operation If `operation` was returned during mutation operation, this field must be populated with the provided value. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getLast_operation( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation, + options?: MethodOptions): + AxiosPromise; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): void; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): void; + getLast_operation(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): + void; + getLast_operation( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: + (rootUrl + + '/v1alpha1/{+parent}/v2/service_instances/{+instanceId}/service_bindings/{+bindingId}/last_operation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent', 'instanceId', 'bindingId'], + pathParams: ['bindingId', 'instanceId', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1alpha1__Operation>(parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * The id of the binding. Must be unique within GCP project. Maximum length + * is 64, GUID recommended. Required. + */ + binding_id?: string; + /** + * The service instance to which to bind. + */ + instanceId?: string; + /** + * The GCP container. Must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1alpha1__Binding; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * The id of the binding to delete. + */ + bindingId?: string; + /** + * The service instance id that deleted binding is bound to. + */ + instanceId?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * The plan id of the service instance. + */ + planId?: string; + /** + * Additional query parameter hints. The service id of the service instance. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The binding id. + */ + bindingId?: string; + /** + * Instance id to which the binding is bound. + */ + instanceId?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The binding id for which to return the last operation + */ + bindingId?: string; + /** + * The instance id that the binding is bound to. + */ + instanceId?: string; + /** + * If `operation` was returned during mutation operation, this field must be + * populated with the provided value. + */ + operation?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + + + + export class Resource$V1alpha1 { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.getIamPolicy + * @desc Gets the access control policy for a resource. Returns an empty + * policy if the resource exists and does not have a policy set. + * @alias servicebroker.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getIamPolicy( + params?: Params$Resource$V1alpha1$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$V1alpha1$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$V1alpha1$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): + void; + getIamPolicy( + paramsOrCallback?: Params$Resource$V1alpha1$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$V1alpha1$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1alpha1$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias servicebroker.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setIamPolicy( + params?: Params$Resource$V1alpha1$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$V1alpha1$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$V1alpha1$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): + void; + setIamPolicy( + paramsOrCallback?: Params$Resource$V1alpha1$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$V1alpha1$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1alpha1$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. If + * the resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. Note: This operation is designed to + * be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * @alias servicebroker.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$V1alpha1$Testiampermissions, + options?: MethodOptions): + AxiosPromise; + testIamPermissions( + params: Params$Resource$V1alpha1$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + params: Params$Resource$V1alpha1$Testiampermissions, + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions(callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$V1alpha1$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$V1alpha1$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1alpha1$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + } + + export interface Params$Resource$V1alpha1$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$V1alpha1$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__SetIamPolicyRequest; + } + export interface Params$Resource$V1alpha1$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__TestIamPermissionsRequest; + } +} diff --git a/src/apis/servicebroker/v1beta1.ts b/src/apis/servicebroker/v1beta1.ts new file mode 100644 index 00000000000..2945eaf6d8f --- /dev/null +++ b/src/apis/servicebroker/v1beta1.ts @@ -0,0 +1,2984 @@ +/** + * Copyright 2015 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; + +import {GoogleApis} from '../..'; +import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; +import {createAPIRequest} from '../../lib/apirequest'; + +// TODO: We will eventually get the `any` in here cleared out, but in the +// interim we want to turn on no-implicit-any. + +// tslint:disable: no-any +// tslint:disable: class-name +// tslint:disable: variable-name +// tslint:disable: jsdoc-format +// tslint:disable: no-namespace + +export namespace servicebroker_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + + /** + * Service Broker API + * + * The Google Cloud Platform Service Broker API provides Google hosted + * implementation of the Open Service Broker API + * (https://www.openservicebrokerapi.org/). + * + * @example + * const google = require('googleapis'); + * const servicebroker = google.servicebroker('v1beta1'); + * + * @namespace servicebroker + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Servicebroker + */ + export class Servicebroker { + _options: GlobalOptions; + google: GoogleApis; + root = this; + + projects: Resource$Projects; + v1beta1: Resource$V1beta1; + + constructor(options: GlobalOptions, google: GoogleApis) { + this._options = options || {}; + this.google = google; + this.getRoot.bind(this); + + this.projects = new Resource$Projects(this); + this.v1beta1 = new Resource$V1beta1(this); + } + + getRoot() { + return this.root; + } + } + + /** + * Describes the binding. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__Binding { + /** + * The id of the binding. Must be unique within GCP project. Maximum length + * is 64, GUID recommended. Required. + */ + binding_id?: string; + /** + * A JSON object that contains data for platform resources associated with + * the binding to be created. + */ + bind_resource?: any; + /** + * Output only. Timestamp for when the binding was created. + */ + createTime?: string; + /** + * Configuration options for the service binding. + */ + parameters?: any; + /** + * The ID of the plan. See `Service` and `Plan` resources for details. + * Maximum length is 64, GUID recommended. Required. + */ + plan_id?: string; + /** + * The id of the service. Must be a valid identifier of a service contained + * in the list from a `ListServices()` call. Maximum length is 64, GUID + * recommended. Required. + */ + service_id?: string; + } + /** + * Broker represents a consumable collection of Service Registry catalogs + * exposed as an OSB Broker. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__Broker { + /** + * Output only. Timestamp for when the broker was created. + */ + createTime?: string; + /** + * Name of the broker in the format: + * <projects>/<project-id>/brokers/<broker>. This allows + * for multiple brokers per project which can be used to enable having + * custom brokers per GKE cluster, for example. + */ + name?: string; + /** + * User friendly title of the broker. Limited to 1024 characters. Requests + * with longer titles will be rejected. + */ + title?: string; + /** + * Output only. URL of the broker OSB-compliant endpoint, for example: + * https://servicebroker.googleapis.com/projects/<project>/brokers/<broker> + */ + url?: string; + } + /** + * Response for the `CreateBinding()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse { + /** + * Credentials to use the binding. + */ + credentials?: any; + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. This + * broker always executes all create/delete operations asynchronously. + */ + operation?: string; + /** + * A URL to which the platform may proxy requests for the address sent with + * bind_resource.route + */ + route_service_url?: string; + /** + * From where to read system logs. + */ + syslog_drain_url?: string; + /** + * An array of configuration for mounting volumes. + */ + volume_mounts?: any[]; + } + /** + * Response for the `CreateServiceInstance()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. This + * broker always will return a non-empty operation on success. + */ + operation?: string; + } + /** + * Message containing information required to activate Dashboard SSO feature. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__DashboardClient { + /** + * The id of the Oauth client that the dashboard will use. + */ + id?: string; + /** + * A URI for the service dashboard. Validated by the OAuth token server when + * the dashboard requests a token. + */ + redirect_uri?: string; + /** + * A secret for the dashboard client. + */ + secret?: string; + } + /** + * Response for the `DeleteBinding()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. + */ + operation?: string; + } + /** + * Response for the `DeleteServiceInstance()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. + */ + operation?: string; + } + /** + * Response for the `GetBinding()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse { + /** + * Credentials to use the binding. + */ + credentials?: any; + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * A URL to which the platform may proxy requests for the address sent with + * bind_resource.route + */ + route_service_url?: string; + /** + * From where to read system logs. + */ + syslog_drain_url?: string; + /** + * An array of configurations for mounting volumes. + */ + volume_mounts?: any[]; + } + /** + * The response for the `ListBindings()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse { + /** + * The list of bindings in the instance. + */ + bindings?: Schema$GoogleCloudServicebrokerV1beta1__Binding[]; + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + } + /** + * The response for the `ListBrokers()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse { + /** + * The list of brokers in the container. + */ + brokers?: Schema$GoogleCloudServicebrokerV1beta1__Broker[]; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + } + /** + * Response message for the `ListCatalog()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + /** + * The services available for the requested GCP project. + */ + services?: Schema$GoogleCloudServicebrokerV1beta1__Service[]; + } + /** + * The response for the `ListServiceInstances()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * The list of instances in the broker. + */ + instances?: Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance[]; + /** + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `pageSize`, use the + * `nextPageToken` as a value for the query parameter `pageToken` in the + * next list request. Subsequent list requests will have their own + * `nextPageToken` to continue paging through the results + */ + nextPageToken?: string; + } + /** + * Describes a long running operation, which conforms to OpenService API. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__Operation { + /** + * Optional description of the Operation state. + */ + description?: string; + /** + * The state of the operation. Valid values are: "in progress", + * "succeeded", and "failed". + */ + state?: string; + } + /** + * Plan message describes a Service Plan. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__Plan { + /** + * Specifies whether instances of the service can be bound to applications. + * If not specified, `Service.bindable` will be presumed. + */ + bindable?: boolean; + /** + * Textual description of the plan. Optional. + */ + description?: string; + /** + * Whether the service is free. + */ + free?: boolean; + /** + * ID is a globally unique identifier used to uniquely identify the plan. + * User must make no presumption about the format of this field. + */ + id?: string; + /** + * A list of metadata for a service offering. Metadata is an arbitrary JSON + * object. + */ + metadata?: any; + /** + * User friendly name of the plan. The name must be globally unique within + * GCP project. Note, which is different from ("This must be globally + * unique within a platform marketplace"). + */ + name?: string; + /** + * Schema definitions for service instances and bindings for the plan. + */ + schemas?: any; + } + /** + * The resource model mostly follows the Open Service Broker API, as described + * here: + * https://github.com/openservicebrokerapi/servicebroker/blob/master/_spec.md + * Though due to Google Specifics it has additional optional fields. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__Service { + /** + * Specifies whether instances of the service can be bound to applications. + * Required. + */ + bindable?: boolean; + /** + * Whether the service provides an endpoint to get service bindings. + */ + bindings_retrievable?: boolean; + /** + * Whether the service provides an endpoint to get service bindings. + */ + binding_retrievable?: boolean; + /** + * Information to activate Dashboard SSO feature. + */ + dashboard_client?: Schema$GoogleCloudServicebrokerV1beta1__DashboardClient; + /** + * Textual description of the service. Required. + */ + description?: string; + /** + * ID is a globally unique identifier used to uniquely identify the service. + * ID is an opaque string. + */ + id?: string; + /** + * Whether the service provides an endpoint to get service instances. + */ + instances_retrievable?: boolean; + /** + * A list of metadata for a service offering. Metadata is an arbitrary JSON + * object. + */ + metadata?: any; + /** + * User friendly service name. Name must match [a-z0-9]+ regexp. The name + * must be globally unique within GCP project. Note, which is different from + * ("This must be globally unique within a platform marketplace"). + * Required. + */ + name?: string; + /** + * A list of plans for this service. At least one plan is required. + */ + plans?: Schema$GoogleCloudServicebrokerV1beta1__Plan[]; + /** + * Whether the service supports upgrade/downgrade for some plans. + */ + plan_updateable?: boolean; + /** + * Tags provide a flexible mechanism to expose a classification, attribute, + * or base technology of a service. + */ + tags?: string[]; + } + /** + * Message describing inputs to Provision and Update Service instance + * requests. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance { + /** + * Platform specific contextual information under which the service instance + * is to be provisioned. This replaces organization_guid and space_guid. But + * can also contain anything. Currently only used for logging context + * information. + */ + context?: any; + /** + * Output only. Timestamp for when the instance was created. + */ + createTime?: string; + /** + * To return errors when GetInstance call is done via HTTP to be unified + * with other methods. + */ + description?: string; + /** + * The id of the service instance. Must be unique within GCP project. + * Maximum length is 64, GUID recommended. Required. + */ + instance_id?: string; + /** + * The platform GUID for the organization under which the service is to be + * provisioned. Required. + */ + organization_guid?: string; + /** + * Configuration options for the service instance. Parameters is JSON object + * serialized to string. + */ + parameters?: any; + /** + * The ID of the plan. See `Service` and `Plan` resources for details. + * Maximum length is 64, GUID recommended. Required. + */ + plan_id?: string; + /** + * Used only in UpdateServiceInstance request to optionally specify previous + * fields. + */ + previous_values?: any; + /** + * Output only. The resource name of the instance, e.g. + * projects/project_id/brokers/broker_id/service_instances/instance_id + */ + resourceName?: string; + /** + * The id of the service. Must be a valid identifier of a service contained + * in the list from a `ListServices()` call. Maximum length is 64, GUID + * recommended. Required. + */ + service_id?: string; + /** + * The identifier for the project space within the platform organization. + * Required. + */ + space_guid?: string; + } + /** + * Response for the `UpdateServiceInstance()` method. + */ + export interface Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse { + /** + * Used to communicate description of the response. Usually for non-standard + * error codes. + * https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#service-broker-errors + */ + description?: string; + /** + * If broker executes operation asynchronously, this is the operation ID + * that can be polled to check the completion status of said operation. + */ + operation?: string; + } + /** + * Associates `members` with a `role`. + */ + export interface Schema$GoogleIamV1__Binding { + /** + * Specifies the identities requesting access for a Cloud Platform resource. + * `members` can have the following values: * `allUsers`: A special + * identifier that 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` . + * * `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[]; + /** + * Role that is assigned to `members`. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. Required + */ + role?: string; + } + /** + * Defines an Identity and Access Management (IAM) policy. It is used to + * specify access control policies for Cloud Platform resources. A `Policy` + * consists 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. **JSON 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"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). + */ + export interface Schema$GoogleIamV1__Policy { + /** + * Associates a list of `members` to a `role`. `bindings` with no members + * will result in an error. + */ + bindings?: Schema$GoogleIamV1__Binding[]; + /** + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. It + * is strongly suggested that systems make use of the `etag` in the + * read-modify-write cycle to perform policy updates in order to avoid race + * conditions: An `etag` is returned in the response to `getIamPolicy`, and + * systems are expected to put that etag in the request to `setIamPolicy` to + * ensure that their change will be applied to the same version of the + * policy. If no `etag` is provided in the call to `setIamPolicy`, then the + * existing policy is overwritten blindly. + */ + etag?: string; + /** + * Deprecated. + */ + version?: number; + } + /** + * Request message for `SetIamPolicy` method. + */ + export interface Schema$GoogleIamV1__SetIamPolicyRequest { + /** + * REQUIRED: The complete policy to be applied to the `resource`. The size + * of the policy is limited to a few 10s of KB. An empty policy is a valid + * policy but certain Cloud Platform services (such as Projects) might + * reject them. + */ + policy?: Schema$GoogleIamV1__Policy; + } + /** + * Request message for `TestIamPermissions` method. + */ + export interface Schema$GoogleIamV1__TestIamPermissionsRequest { + /** + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. + * For more information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). + */ + permissions?: string[]; + } + /** + * Response message for `TestIamPermissions` method. + */ + export interface Schema$GoogleIamV1__TestIamPermissionsResponse { + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + */ + permissions?: string[]; + } + /** + * A generic empty message that you can re-use to avoid defining duplicated + * empty messages in your APIs. A typical example is to use it as the request + * or the response type of an API method. For instance: service Foo { rpc + * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON + * representation for `Empty` is empty JSON object `{}`. + */ + export interface Schema$GoogleProtobuf__Empty {} + + + export class Resource$Projects { + root: Servicebroker; + brokers: Resource$Projects$Brokers; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.brokers = new Resource$Projects$Brokers(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Brokers { + root: Servicebroker; + instances: Resource$Projects$Brokers$Instances; + v2: Resource$Projects$Brokers$V2; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.instances = new Resource$Projects$Brokers$Instances(root); + this.v2 = new Resource$Projects$Brokers$V2(root); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.create + * @desc CreateBroker creates a Broker. + * @alias servicebroker.projects.brokers.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.parent The project in which to create broker. + * @param {().GoogleCloudServicebrokerV1beta1__Broker} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + create( + params?: Params$Resource$Projects$Brokers$Create, + options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Projects$Brokers$Create, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Broker>): void; + create( + params: Params$Resource$Projects$Brokers$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Broker>): void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Broker>): void; + create( + paramsOrCallback?: Params$Resource$Projects$Brokers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Broker>): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Brokers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/brokers') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.delete + * @desc DeleteBroker deletes a Broker. + * @alias servicebroker.projects.brokers.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The broker to delete. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Projects$Brokers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Brokers$Delete, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Brokers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Brokers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Brokers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.projects.brokers.list + * @desc ListBrokers lists brokers. + * @alias servicebroker.projects.brokers.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. Acceptable values are 0 to 200, inclusive. (Default: 100) + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Brokers$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>; + list( + params: Params$Resource$Projects$Brokers$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>): void; + list( + params: Params$Resource$Projects$Brokers$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>): void; + list( + paramsOrCallback?: Params$Resource$Projects$Brokers$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse> { + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Brokers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/brokers') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListBrokersResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project in which to create broker. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1beta1__Broker; + } + export interface Params$Resource$Projects$Brokers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The broker to delete. + */ + name?: string; + } + export interface Params$Resource$Projects$Brokers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. + * Acceptable values are 0 to 200, inclusive. (Default: 100) + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers`. + */ + parent?: string; + } + + export class Resource$Projects$Brokers$Instances { + root: Servicebroker; + bindings: Resource$Projects$Brokers$Instances$Bindings; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.bindings = new Resource$Projects$Brokers$Instances$Bindings(root); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.instances.get + * @desc Gets the given service instance from the system. The API call + * accepts both OSB style API and standard google style API resource path. + * i.e. both `projects/x/brokers/x/instances/x` and + * `projects/x/brokers/x/v2/service_instances/x` are acceptable paths. + * @alias servicebroker.projects.brokers.instances.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the instance to return. Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + `v2/service_instances/[INSTANCE_ID]` or `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Brokers$Instances$Get, + options?: MethodOptions): + AxiosPromise; + get(params: Params$Resource$Projects$Brokers$Instances$Get, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void; + get(params: Params$Resource$Projects$Brokers$Instances$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void; + get(paramsOrCallback?: Params$Resource$Projects$Brokers$Instances$Get| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void| + AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Instances$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.instances.getLast_operation + * @desc Returns the state of the last operation for the service instance. + * Only last (or current) operation can be polled. + * @alias servicebroker.projects.brokers.instances.getLast_operation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+ `service_instances/[INSTANCE_ID]`. + * @param {string=} params.operation If `operation` was returned during mutation operation, this field must be populated with the provided value. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getLast_operation( + params?: Params$Resource$Projects$Brokers$Instances$Getlast_operation, + options?: MethodOptions): + AxiosPromise; + getLast_operation( + params: Params$Resource$Projects$Brokers$Instances$Getlast_operation, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + params: Params$Resource$Projects$Brokers$Instances$Getlast_operation, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + paramsOrCallback?: + Params$Resource$Projects$Brokers$Instances$Getlast_operation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$Getlast_operation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$Instances$Getlast_operation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}/last_operation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__Operation>(parameters); + } + } + + + /** + * servicebroker.projects.brokers.instances.list + * @desc Lists all the instances in the brokers This API is an extension and + * not part of the OSB spec. Hence the path is a standard Google API URL. + * @alias servicebroker.projects.brokers.instances.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. Acceptable values are 0 to 200, inclusive. (Default: 100) + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Brokers$Instances$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>; + list( + params: Params$Resource$Projects$Brokers$Instances$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>): + void; + list( + params: Params$Resource$Projects$Brokers$Instances$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>): + void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Brokers$Instances$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Instances$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/instances') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListServiceInstancesResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the instance to return. Name must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + + * `v2/service_instances/[INSTANCE_ID]` or + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + */ + name?: string; + } + export interface Params$Resource$Projects$Brokers$Instances$Getlast_operation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+ + * `service_instances/[INSTANCE_ID]`. + */ + name?: string; + /** + * If `operation` was returned during mutation operation, this field must be + * populated with the provided value. + */ + operation?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. + * Acceptable values are 0 to 200, inclusive. (Default: 100) + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + } + + export class Resource$Projects$Brokers$Instances$Bindings { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.instances.bindings.getLast_operation + * @desc Returns the state of the last operation for the binding. Only last + * (or current) operation can be polled. + * @alias + * servicebroker.projects.brokers.instances.bindings.getLast_operation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`. + * @param {string=} params.operation If `operation` was returned during mutation operation, this field must be populated with the provided value. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getLast_operation( + params?: + Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation, + options?: MethodOptions): + AxiosPromise; + getLast_operation( + params: + Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + params: + Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + paramsOrCallback?: + Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}/last_operation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__Operation>(parameters); + } + } + + + /** + * servicebroker.projects.brokers.instances.bindings.list + * @desc Lists all the bindings in the instance. + * @alias servicebroker.projects.brokers.instances.bindings.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. Acceptable values are 0 to 200, inclusive. (Default: 100) + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + `v2/service_instances/[INSTANCE_ID]` or `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Brokers$Instances$Bindings$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>; + list( + params: Params$Resource$Projects$Brokers$Instances$Bindings$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>): + void; + list( + params: Params$Resource$Projects$Brokers$Instances$Bindings$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>): + void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Brokers$Instances$Bindings$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$Instances$Bindings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$Instances$Bindings$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/bindings') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListBindingsResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$Instances$Bindings$Getlast_operation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`. + */ + name?: string; + /** + * If `operation` was returned during mutation operation, this field must be + * populated with the provided value. + */ + operation?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$Instances$Bindings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. + * Acceptable values are 0 to 200, inclusive. (Default: 100) + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + + * `v2/service_instances/[INSTANCE_ID]` or + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + */ + parent?: string; + } + + + + export class Resource$Projects$Brokers$V2 { + root: Servicebroker; + catalog: Resource$Projects$Brokers$V2$Catalog; + service_instances: Resource$Projects$Brokers$V2$Service_instances; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.catalog = new Resource$Projects$Brokers$V2$Catalog(root); + this.service_instances = + new Resource$Projects$Brokers$V2$Service_instances(root); + } + + getRoot() { + return this.root; + } + } + + + export class Resource$Projects$Brokers$V2$Catalog { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.v2.catalog.list + * @desc Lists all the Services registered with this broker for consumption + * for given service registry broker, which contains an set of services. + * Note, that Service producer API is separate from Broker API. + * @alias servicebroker.projects.brokers.v2.catalog.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {integer=} params.pageSize Specifies the number of results to return per page. If there are fewer elements than the specified number, returns all elements. Optional. If unset or 0, all the results will be returned. + * @param {string=} params.pageToken Specifies a page token to use. Set `pageToken` to a `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params?: Params$Resource$Projects$Brokers$V2$Catalog$List, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>; + list( + params: Params$Resource$Projects$Brokers$V2$Catalog$List, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>): void; + list( + params: Params$Resource$Projects$Brokers$V2$Catalog$List, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>): void; + list( + paramsOrCallback?: Params$Resource$Projects$Brokers$V2$Catalog$List| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Catalog$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Brokers$V2$Catalog$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+parent}/v2/catalog') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ListCatalogResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$V2$Catalog$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Specifies the number of results to return per page. If there are fewer + * elements than the specified number, returns all elements. Optional. If + * unset or 0, all the results will be returned. + */ + pageSize?: number; + /** + * Specifies a page token to use. Set `pageToken` to a `nextPageToken` + * returned by a previous list request to get the next page of results. + */ + pageToken?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + } + + + export class Resource$Projects$Brokers$V2$Service_instances { + root: Servicebroker; + service_bindings: + Resource$Projects$Brokers$V2$Service_instances$Service_bindings; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + this.service_bindings = + new Resource$Projects$Brokers$V2$Service_instances$Service_bindings( + root); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.create + * @desc Provisions a service instance. If `request.accepts_incomplete` is + * false and Broker cannot execute request synchronously HTTP 422 error will + * be returned along with FAILED_PRECONDITION status. If + * `request.accepts_incomplete` is true and the Broker decides to execute + * resource asynchronously then HTTP 202 response code will be returned and + * a valid polling operation in the response will be included. If Broker + * executes the request synchronously and it succeeds HTTP 201 response will + * be furnished. If identical instance exists, then HTTP 200 response will + * be returned. If an instance with identical ID but mismatching parameters + * exists, then HTTP 409 status code will be returned. + * @alias servicebroker.projects.brokers.v2.service_instances.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete Value indicating that API client supports asynchronous operations. If Broker cannot execute the request synchronously HTTP 422 code will be returned to HTTP clients along with FAILED_PRECONDITION error. If true and broker will execute request asynchronously 202 HTTP code will be returned. This broker always requires this to be true as all mutator operations are asynchronous. + * @param {string} params.instance_id The id of the service instance. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. + * @param {string} params.parent Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + * @param {().GoogleCloudServicebrokerV1beta1__ServiceInstance} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + create( + params?: Params$Resource$Projects$Brokers$V2$Service_instances$Create, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>; + create( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Create, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>): + void; + create( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>): + void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>): + void; + create( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Create| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1beta1/{+parent}/v2/service_instances/{+instance_id}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['parent', 'instance_id'], + pathParams: ['instance_id', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__CreateServiceInstanceResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.delete + * @desc Deprovisions a service instance. For synchronous/asynchronous + * request details see CreateServiceInstance method. If service instance + * does not exist HTTP 410 status will be returned. + * @alias servicebroker.projects.brokers.v2.service_instances.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + `v2/service_instances/[INSTANCE_ID]` or `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + * @param {string=} params.planId The plan id of the service instance. + * @param {string=} params.serviceId The service id of the service instance. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Projects$Brokers$V2$Service_instances$Delete, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>; + delete( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Delete, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>): + void; + delete( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Delete, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>): + void; + delete(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>): + void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Delete| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__DeleteServiceInstanceResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.get + * @desc Gets the given service instance from the system. The API call + * accepts both OSB style API and standard google style API resource path. + * i.e. both `projects/x/brokers/x/instances/x` and + * `projects/x/brokers/x/v2/service_instances/x` are acceptable paths. + * @alias servicebroker.projects.brokers.v2.service_instances.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The resource name of the instance to return. Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + `v2/service_instances/[INSTANCE_ID]` or `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: Params$Resource$Projects$Brokers$V2$Service_instances$Get, + options?: MethodOptions): + AxiosPromise; + get(params: Params$Resource$Projects$Brokers$V2$Service_instances$Get, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void; + get(params: Params$Resource$Projects$Brokers$V2$Service_instances$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Get| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>): void| + AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.getLast_operation + * @desc Returns the state of the last operation for the service instance. + * Only last (or current) operation can be polled. + * @alias + * servicebroker.projects.brokers.v2.service_instances.getLast_operation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+ `service_instances/[INSTANCE_ID]`. + * @param {string=} params.operation If `operation` was returned during mutation operation, this field must be populated with the provided value. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getLast_operation( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation, + options?: MethodOptions): + AxiosPromise; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}/last_operation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__Operation>(parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.patch + * @desc Updates an existing service instance. See CreateServiceInstance for + * possible response codes. + * @alias servicebroker.projects.brokers.v2.service_instances.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`. + * @param {().GoogleCloudServicebrokerV1beta1__ServiceInstance} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params?: Params$Resource$Projects$Brokers$V2$Service_instances$Patch, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>; + patch( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Patch, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>): + void; + patch( + params: Params$Resource$Projects$Brokers$V2$Service_instances$Patch, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>): + void; + patch(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>): + void; + patch( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Patch| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__UpdateServiceInstanceResponse>( + parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Value indicating that API client supports asynchronous operations. If + * Broker cannot execute the request synchronously HTTP 422 code will be + * returned to HTTP clients along with FAILED_PRECONDITION error. If true + * and broker will execute request asynchronously 202 HTTP code will be + * returned. This broker always requires this to be true as all mutator + * operations are asynchronous. + */ + acceptsIncomplete?: boolean; + /** + * The id of the service instance. Must be unique within GCP project. + * Maximum length is 64, GUID recommended. Required. + */ + instance_id?: string; + /** + * Parent must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + + * `v2/service_instances/[INSTANCE_ID]` or + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + */ + name?: string; + /** + * The plan id of the service instance. + */ + planId?: string; + /** + * The service id of the service instance. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the instance to return. Name must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + + * `v2/service_instances/[INSTANCE_ID]` or + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/instances/[INSTANCE_ID]`. + */ + name?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Getlast_operation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/`+ + * `service_instances/[INSTANCE_ID]`. + */ + name?: string; + /** + * If `operation` was returned during mutation operation, this field must be + * populated with the provided value. + */ + operation?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * Name must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1beta1__ServiceInstance; + } + + export class Resource$Projects$Brokers$V2$Service_instances$Service_bindings { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.create + * @desc CreateBinding generates a service binding to an existing service + * instance. See ProviServiceInstance for async operation details. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.create + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.binding_id The id of the binding. Must be unique within GCP project. Maximum length is 64, GUID recommended. Required. + * @param {string} params.parent The GCP container. Must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`. + * @param {().GoogleCloudServicebrokerV1beta1__Binding} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + create( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>; + create( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>): + void; + create( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>): + void; + create(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>): + void; + create( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + + '/v1beta1/{+parent}/service_bindings/{+binding_id}') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT' + }, + options), + params, + requiredParams: ['parent', 'binding_id'], + pathParams: ['binding_id', 'parent'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__CreateBindingResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.delete + * @desc Unbinds from a service instance. For synchronous/asynchronous + * request details see CreateServiceInstance method. If binding does not + * exist HTTP 410 status will be returned. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {boolean=} params.acceptsIncomplete See CreateServiceInstanceRequest for details. + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` `v2/service_instances/[INSTANCE_ID]/service_bindings/[BINDING_ID]` or `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` `/instances/[INSTANCE_ID]/bindings/[BINDING_ID]`. + * @param {string=} params.planId The plan id of the service instance. + * @param {string=} params.serviceId Additional query parameter hints. The service id of the service instance. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>; + delete( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>): + void; + delete( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>): + void; + delete(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>): + void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__DeleteBindingResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.get + * @desc GetBinding returns the binding information. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_bindings`. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + get(params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get, + options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>; + get(params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get, + options: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>): void; + get(params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>): void; + get(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>): void; + get(paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get| + BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>): + void|AxiosPromise< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse> { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__GetBindingResponse>( + parameters); + } + } + + + /** + * servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation + * @desc Returns the state of the last operation for the binding. Only last + * (or current) operation can be polled. + * @alias + * servicebroker.projects.brokers.v2.service_instances.service_bindings.getLast_operation + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`. + * @param {string=} params.operation If `operation` was returned during mutation operation, this field must be populated with the provided value. + * @param {string=} params.planId Plan id. + * @param {string=} params.serviceId Service id. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getLast_operation( + params?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation, + options?: MethodOptions): + AxiosPromise; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + params: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation, + callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation(callback: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): void; + getLast_operation( + paramsOrCallback?: + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleCloudServicebrokerV1beta1__Operation>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+name}/last_operation') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest< + Schema$GoogleCloudServicebrokerV1beta1__Operation>(parameters); + } + } + } + + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * The id of the binding. Must be unique within GCP project. Maximum length + * is 64, GUID recommended. Required. + */ + binding_id?: string; + /** + * The GCP container. Must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudServicebrokerV1beta1__Binding; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * See CreateServiceInstanceRequest for details. + */ + acceptsIncomplete?: boolean; + /** + * Name must match `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + * `v2/service_instances/[INSTANCE_ID]/service_bindings/[BINDING_ID]` or + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/` + * `/instances/[INSTANCE_ID]/bindings/[BINDING_ID]`. + */ + name?: string; + /** + * The plan id of the service instance. + */ + planId?: string; + /** + * Additional query parameter hints. The service id of the service instance. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_bindings`. + */ + name?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + export interface Params$Resource$Projects$Brokers$V2$Service_instances$Service_bindings$Getlast_operation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name must match + * `projects/[PROJECT_ID]/brokers/[BROKER_ID]/v2/service_instances/[INSTANCE_ID]/service_binding/[BINDING_ID]`. + */ + name?: string; + /** + * If `operation` was returned during mutation operation, this field must be + * populated with the provided value. + */ + operation?: string; + /** + * Plan id. + */ + planId?: string; + /** + * Service id. + */ + serviceId?: string; + } + + + + export class Resource$V1beta1 { + root: Servicebroker; + constructor(root: Servicebroker) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * servicebroker.getIamPolicy + * @desc Gets the access control policy for a resource. Returns an empty + * policy if the resource exists and does not have a policy set. + * @alias servicebroker.getIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + getIamPolicy( + params?: Params$Resource$V1beta1$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$V1beta1$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$V1beta1$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): + void; + getIamPolicy( + paramsOrCallback?: Params$Resource$V1beta1$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$V1beta1$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1beta1$Getiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'GET' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.setIamPolicy + * @desc Sets the access control policy on the specified resource. Replaces + * any existing policy. + * @alias servicebroker.setIamPolicy + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. + * @param {().GoogleIamV1__SetIamPolicyRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setIamPolicy( + params?: Params$Resource$V1beta1$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$V1beta1$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$V1beta1$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): + void; + setIamPolicy( + paramsOrCallback?: Params$Resource$V1beta1$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$V1beta1$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1beta1$Setiampolicy; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * servicebroker.testIamPermissions + * @desc Returns permissions that a caller has on the specified resource. If + * the resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. Note: This operation is designed to + * be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * @alias servicebroker.testIamPermissions + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.resource_ REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. + * @param {().GoogleIamV1__TestIamPermissionsRequest} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + testIamPermissions( + params?: Params$Resource$V1beta1$Testiampermissions, + options?: MethodOptions): + AxiosPromise; + testIamPermissions( + params: Params$Resource$V1beta1$Testiampermissions, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + params: Params$Resource$V1beta1$Testiampermissions, + callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions(callback: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): void; + testIamPermissions( + paramsOrCallback?: Params$Resource$V1beta1$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback< + Schema$GoogleIamV1__TestIamPermissionsResponse>): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$V1beta1$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$V1beta1$Testiampermissions; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://servicebroker.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, + options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.getRoot() + }; + if (callback) { + createAPIRequest( + parameters, callback); + } else { + return createAPIRequest( + parameters); + } + } + } + + export interface Params$Resource$V1beta1$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$V1beta1$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__SetIamPolicyRequest; + } + export interface Params$Resource$V1beta1$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GoogleIamV1__TestIamPermissionsRequest; + } +} diff --git a/src/apis/serviceconsumermanagement/v1.ts b/src/apis/serviceconsumermanagement/v1.ts index 631d45636e5..81770f02f68 100644 --- a/src/apis/serviceconsumermanagement/v1.ts +++ b/src/apis/serviceconsumermanagement/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace serviceconsumermanagement_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Service Consumer Management API * @@ -77,11 +80,11 @@ export namespace serviceconsumermanagement_v1 { * Configuration of the new tenant project that will be added to tenancy * unit resources. */ - projectConfig: Schema$TenantProjectConfig; + projectConfig?: Schema$TenantProjectConfig; /** * Tag of the added project. Must be less than 128 characters. Required. */ - tag: string; + tag?: string; } /** * Api is a light-weight descriptor for an API Interface. Interfaces are also @@ -97,29 +100,29 @@ export namespace serviceconsumermanagement_v1 { /** * The methods of this interface, in unspecified order. */ - methods: Schema$Method[]; + methods?: Schema$Method[]; /** * Included interfaces. See Mixin. */ - mixins: Schema$Mixin[]; + mixins?: Schema$Mixin[]; /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. */ - name: string; + name?: string; /** * Any metadata attached to the interface. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Source context for the protocol buffer service represented by this * message. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax of the service. */ - syntax: string; + syntax?: string; /** * A version string for this interface. If specified, must have the form * `major-version.minor-version`, as in `1.10`. If the minor version is @@ -137,7 +140,7 @@ export namespace serviceconsumermanagement_v1 { * omitted. Zero major versions must only be used for experimental, non-GA * interfaces. */ - version: string; + version?: string; } /** * `Authentication` defines the authentication configuration for an API. @@ -152,13 +155,13 @@ export namespace serviceconsumermanagement_v1 { /** * Defines a set of authentication providers that a service supports. */ - providers: Schema$AuthProvider[]; + providers?: Schema$AuthProvider[]; /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$AuthenticationRule[]; + rules?: Schema$AuthenticationRule[]; } /** * Authentication rules for the service. By default, if a method has any @@ -171,24 +174,24 @@ export namespace serviceconsumermanagement_v1 { /** * If true, the service accepts API keys without any other credential. */ - allowWithoutCredential: boolean; + allowWithoutCredential?: boolean; /** * Configuration for custom authentication. */ - customAuth: Schema$CustomAuthRequirements; + customAuth?: Schema$CustomAuthRequirements; /** * The requirements for OAuth credentials. */ - oauth: Schema$OAuthRequirements; + oauth?: Schema$OAuthRequirements; /** * Requirements for additional authentication providers. */ - requirements: Schema$AuthRequirement[]; + requirements?: Schema$AuthRequirement[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Configuration of authorization. This section determines the authorization @@ -201,7 +204,7 @@ export namespace serviceconsumermanagement_v1 { * The name of the authorization provider, such as * firebaserules.googleapis.com. */ - provider: string; + provider?: string; } /** * Authorization rule for API services. It specifies the permission(s) @@ -222,12 +225,12 @@ export namespace serviceconsumermanagement_v1 { * are listed, the semantics is not defined by the system. Additional * documentation must be provided manually. */ - permissions: string; + permissions?: string; /** * Selects the API elements to which this rule applies. Refer to selector * for syntax details. */ - selector: string; + selector?: string; } /** * Configuration for an anthentication provider, including support for [JSON @@ -247,17 +250,17 @@ export namespace serviceconsumermanagement_v1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. */ - authorizationUrl: string; + authorizationUrl?: string; /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. Example: "bookstore_auth". */ - id: string; + id?: string; /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -265,7 +268,7 @@ export namespace serviceconsumermanagement_v1 { * https://securetoken.google.com Example: * 1234567-compute@developer.gserviceaccount.com */ - issuer: string; + issuer?: string; /** * URL of the provider's public key set to validate signature of the * JWT. See [OpenID @@ -276,7 +279,7 @@ export namespace serviceconsumermanagement_v1 { * a Google service account). Example: * https://www.googleapis.com/oauth2/v1/certs */ - jwksUri: string; + jwksUri?: string; } /** * User-defined authentication requirements, including support for [JSON Web @@ -297,12 +300,12 @@ export namespace serviceconsumermanagement_v1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * id from authentication provider. Example: provider_id: * bookstore_auth */ - providerId: string; + providerId?: string; } /** * `Backend` defines the backend configuration for a service. @@ -313,7 +316,7 @@ export namespace serviceconsumermanagement_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$BackendRule[]; + rules?: Schema$BackendRule[]; } /** * A backend rule provides configuration for an individual API element. @@ -322,23 +325,23 @@ export namespace serviceconsumermanagement_v1 { /** * The address of the API backend. */ - address: string; + address?: string; /** * The number of seconds to wait for a response from a request. The default * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 * seconds. */ - deadline: number; + deadline?: number; /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. */ - minDeadline: number; + minDeadline?: number; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Billing related configuration of the service. The following example shows @@ -359,7 +362,7 @@ export namespace serviceconsumermanagement_v1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$BillingDestination[]; + consumerDestinations?: Schema$BillingDestination[]; } /** * Describes billing configuration for a new tenant project. @@ -369,7 +372,7 @@ export namespace serviceconsumermanagement_v1 { * Name of the billing account. For example * `billingAccounts/012345-567890-ABCDEF`. */ - billingAccount: string; + billingAccount?: string; } /** * Configuration of a specific billing destination (Currently only support @@ -380,12 +383,12 @@ export namespace serviceconsumermanagement_v1 { * Names of the metrics to report to this billing destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * The request message for Operations.CancelOperation. @@ -415,7 +418,7 @@ export namespace serviceconsumermanagement_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$ContextRule[]; + rules?: Schema$ContextRule[]; } /** * A context rule provides information about the context for an individual API @@ -426,25 +429,25 @@ export namespace serviceconsumermanagement_v1 { * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. */ - allowedRequestExtensions: string[]; + allowedRequestExtensions?: string[]; /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. */ - allowedResponseExtensions: string[]; + allowedResponseExtensions?: string[]; /** * A list of full type names of provided contexts. */ - provided: string[]; + provided?: string[]; /** * A list of full type names of requested contexts. */ - requested: string[]; + requested?: string[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Selects and configures the service controller used by the service. The @@ -456,7 +459,7 @@ export namespace serviceconsumermanagement_v1 { * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. */ - environment: string; + environment?: string; } /** * Request to create a tenancy unit for a consumer of a service. @@ -471,7 +474,7 @@ export namespace serviceconsumermanagement_v1 { * tenancy unit if the provided identifier is identical or empty, otherwise * the call will fail. */ - tenancyUnitId: string; + tenancyUnitId?: string; } /** * Configuration for a custom authentication provider. @@ -482,7 +485,7 @@ export namespace serviceconsumermanagement_v1 { * authentication provider, typically formatted as a SmartService string * (go/smartservice). */ - provider: string; + provider?: string; } /** * Customize service error responses. For example, list any service specific @@ -496,12 +499,12 @@ export namespace serviceconsumermanagement_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$CustomErrorRule[]; + rules?: Schema$CustomErrorRule[]; /** * The list of custom error detail types, e.g. * 'google.foo.v1.CustomError'. */ - types: string[]; + types?: string[]; } /** * A custom error rule. @@ -511,12 +514,12 @@ export namespace serviceconsumermanagement_v1 { * Mark this message as possible payload in error response. Otherwise, * objects of this type will be filtered when they appear in error payload. */ - isErrorType: boolean; + isErrorType?: boolean; /** * Selects messages to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * A custom pattern is used for defining custom HTTP verb. @@ -525,11 +528,11 @@ export namespace serviceconsumermanagement_v1 { /** * The name of this custom HTTP verb. */ - kind: string; + kind?: string; /** * The path matched by this custom verb. */ - path: string; + path?: string; } /** * `Documentation` provides the information for describing a service. Example: @@ -573,7 +576,7 @@ export namespace serviceconsumermanagement_v1 { /** * The URL to the root of documentation. */ - documentationRootUrl: string; + documentationRootUrl?: string; /** * Declares a single overview page. For example: * <pre><code>documentation: summary: ... overview: @@ -584,22 +587,22 @@ export namespace serviceconsumermanagement_v1 { * </code></pre> Note: you cannot specify both `overview` field * and `pages` field. */ - overview: string; + overview?: string; /** * The top level pages for the documentation set. */ - pages: Schema$Page[]; + pages?: Schema$Page[]; /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$DocumentationRule[]; + rules?: Schema$DocumentationRule[]; /** * A short summary of what the service does. Can only be provided by plain * text. */ - summary: string; + summary?: string; } /** * A documentation rule provides information about individual API elements. @@ -609,11 +612,11 @@ export namespace serviceconsumermanagement_v1 { * Deprecation description of the selected element(s). It can be provided if * an element is marked as `deprecated`. */ - deprecationDescription: string; + deprecationDescription?: string; /** * Description of the selected API(s). */ - description: string; + description?: string; /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating @@ -622,7 +625,7 @@ export namespace serviceconsumermanagement_v1 { * "foo.b*" or "foo.*.bar". To specify a default for all * applicable elements, the whole pattern "*" is used. */ - selector: string; + selector?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -650,7 +653,7 @@ export namespace serviceconsumermanagement_v1 { * please specify multiple google.api.Endpoint for each of the intended * aliases. Additional names that this endpoint will be hosted on. */ - aliases: string[]; + aliases?: string[]; /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka @@ -659,15 +662,15 @@ export namespace serviceconsumermanagement_v1 { * used by the browser to determine whether the subsequent cross-origin * request is allowed to proceed. */ - allowCors: boolean; + allowCors?: boolean; /** * The list of features enabled on this endpoint. */ - features: string[]; + features?: string[]; /** * The canonical name of this endpoint. */ - name: string; + name?: string; /** * The specification of an Internet routable address of API frontend that * will handle requests to this [API @@ -675,7 +678,7 @@ export namespace serviceconsumermanagement_v1 { * either a valid IPv4 address or a fully-qualified domain name. For * example, "8.8.8.8" or "myservice.appspot.com". */ - target: string; + target?: string; } /** * Enum type definition. @@ -684,23 +687,23 @@ export namespace serviceconsumermanagement_v1 { /** * Enum value definitions. */ - enumvalue: Schema$EnumValue[]; + enumvalue?: Schema$EnumValue[]; /** * Enum type name. */ - name: string; + name?: string; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Enum value definition. @@ -709,15 +712,15 @@ export namespace serviceconsumermanagement_v1 { /** * Enum value name. */ - name: string; + name?: string; /** * Enum value number. */ - number: number; + number?: number; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; } /** * Experimental service configuration. These configuration options can only be @@ -727,7 +730,7 @@ export namespace serviceconsumermanagement_v1 { /** * Authorization configuration. */ - authorization: Schema$AuthorizationConfig; + authorization?: Schema$AuthorizationConfig; } /** * A single field of a message type. @@ -736,46 +739,46 @@ export namespace serviceconsumermanagement_v1 { /** * The field cardinality. */ - cardinality: string; + cardinality?: string; /** * The string value of the default value of this field. Proto2 syntax only. */ - defaultValue: string; + defaultValue?: string; /** * The field JSON name. */ - jsonName: string; + jsonName?: string; /** * The field type. */ - kind: string; + kind?: string; /** * The field name. */ - name: string; + name?: string; /** * The field number. */ - number: number; + number?: number; /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the * list. */ - oneofIndex: number; + oneofIndex?: number; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Whether to use alternative packed wire representation. */ - packed: boolean; + packed?: boolean; /** * The field type URL, without the scheme, for message or enumeration types. * Example: `"type.googleapis.com/google.protobuf.Timestamp"`. */ - typeUrl: string; + typeUrl?: string; } /** * Defines the HTTP configuration for an API service. It contains a list of @@ -789,13 +792,13 @@ export namespace serviceconsumermanagement_v1 { * "%2F" will be left encoded. The default behavior is to not * decode RFC 6570 reserved characters in multi segment matches. */ - fullyDecodeReservedExpansion: boolean; + fullyDecodeReservedExpansion?: boolean; /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$HttpRule[]; + rules?: Schema$HttpRule[]; } /** * `HttpRule` defines the mapping of an RPC method to one or more HTTP REST @@ -922,60 +925,60 @@ export namespace serviceconsumermanagement_v1 { * contain an `additional_bindings` field themselves (that is, the nesting * may only be one level deep). */ - additionalBindings: Schema$HttpRule[]; + additionalBindings?: Schema$HttpRule[]; /** * Specifies the permission(s) required for an API element for the overall * API request to succeed. It is typically used to mark request message * fields that contain the name of the resource and indicates the * permissions that will be checked on that resource. */ - authorizations: Schema$AuthorizationRule[]; + authorizations?: Schema$AuthorizationRule[]; /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. */ - body: string; + body?: string; /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave * the HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. */ - custom: Schema$CustomHttpPattern; + custom?: Schema$CustomHttpPattern; /** * Used for deleting a resource. */ - delete: string; + delete?: string; /** * Used for listing and getting information about resources. */ - get: string; + get?: string; /** * Use this only for Scotty Requests. Do not use this for bytestream * methods. For media support, add instead * [][google.bytestream.RestByteStream] as an API to your configuration. */ - mediaDownload: Schema$MediaDownload; + mediaDownload?: Schema$MediaDownload; /** * Use this only for Scotty Requests. Do not use this for media support * using Bytestream, add instead [][google.bytestream.RestByteStream] as an * API to your configuration for Bytestream methods. */ - mediaUpload: Schema$MediaUpload; + mediaUpload?: Schema$MediaUpload; /** * Used for updating a resource. */ - patch: string; + patch?: string; /** * Used for creating a resource. */ - post: string; + post?: string; /** * Used for updating a resource. */ - put: string; + put?: string; /** * DO NOT USE. This is an experimental field. Optional. The REST collection * name is by default derived from the URL pattern. If specified, this field @@ -990,7 +993,7 @@ export namespace serviceconsumermanagement_v1 { * the `rest_collection` field is configured to override the derived * collection name. */ - restCollection: string; + restCollection?: string; /** * DO NOT USE. This is an experimental field. Optional. The rest method * name is by default derived from the URL pattern. If specified, this field @@ -1002,12 +1005,12 @@ export namespace serviceconsumermanagement_v1 { * automatically derived rest method name "create", but for * backwards compatibility with apiary, it is specified as insert. */ - restMethodName: string; + restMethodName?: string; /** * Selects methods to which this rule applies. Refer to selector for syntax * details. */ - selector: string; + selector?: string; } /** * A description of a label. @@ -1016,15 +1019,15 @@ export namespace serviceconsumermanagement_v1 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * The response message for Operations.ListOperations. @@ -1033,11 +1036,11 @@ export namespace serviceconsumermanagement_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response for the list request. @@ -1046,11 +1049,11 @@ export namespace serviceconsumermanagement_v1 { /** * Pagination token for large results. */ - nextPageToken: string; + nextPageToken?: string; /** * Tenancy units matching the request. */ - tenancyUnits: Schema$TenancyUnit[]; + tenancyUnits?: Schema$TenancyUnit[]; } /** * A description of a log type. Example in YAML format: - name: @@ -1063,25 +1066,25 @@ export namespace serviceconsumermanagement_v1 { * A human-readable description of this log. This information appears in the * documentation and can contain details. */ - description: string; + description?: string; /** * The human-readable name for this log. This information appears on the * user interface and should be concise. */ - displayName: string; + displayName?: string; /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are considered * invalid. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including slash, * underscore, hyphen, period [/_-.]. */ - name: string; + name?: string; } /** * Logging configuration of the service. The following example shows how to @@ -1105,14 +1108,14 @@ export namespace serviceconsumermanagement_v1 { * monitored resource type. A log can be used in at most one consumer * destination. */ - consumerDestinations: Schema$LoggingDestination[]; + consumerDestinations?: Schema$LoggingDestination[]; /** * Logging configurations for sending logs to the producer project. There * can be multiple producer destinations, each one must have a different * monitored resource type. A log can be used in at most one producer * destination. */ - producerDestinations: Schema$LoggingDestination[]; + producerDestinations?: Schema$LoggingDestination[]; } /** * Configuration of a specific logging destination (the producer project or @@ -1125,12 +1128,12 @@ export namespace serviceconsumermanagement_v1 { * scoped name, it will be automatically prefixed with the service name * followed by "/". */ - logs: string[]; + logs?: string[]; /** * The monitored resource type. The type must be defined in the * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * Defines the Media configuration for a service in case of a download. Use @@ -1143,30 +1146,30 @@ export namespace serviceconsumermanagement_v1 { * A boolean that determines whether a notification for the completion of a * download should be sent to the backend. */ - completeNotification: boolean; + completeNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the download service if one is used for download. */ - downloadService: string; + downloadService?: string; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether download is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for direct download. The size is * specified in bytes. */ - maxDirectDownloadSize: string; + maxDirectDownloadSize?: string; /** * A boolean that determines if direct download from ESF should be used for * download of this media. */ - useDirectDownload: boolean; + useDirectDownload?: boolean; } /** * Defines the Media configuration for a service in case of an upload. Use @@ -1180,38 +1183,38 @@ export namespace serviceconsumermanagement_v1 { * upload should be sent to the backend. These notifications will not be * seen by the client and will not consume quota. */ - completeNotification: boolean; + completeNotification?: boolean; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether upload is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for an upload. The size is specified in * bytes. */ - maxSize: string; + maxSize?: string; /** * An array of mimetype patterns. Esf will only accept uploads that match * one of the given patterns. */ - mimeTypes: string[]; + mimeTypes?: string[]; /** * Whether to receive a notification for progress changes of media upload. */ - progressNotification: boolean; + progressNotification?: boolean; /** * Whether to receive a notification on the start of media upload. */ - startNotification: boolean; + startNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the upload service if one is used for upload. */ - uploadService: string; + uploadService?: string; } /** * Method represents a method of an API interface. @@ -1220,31 +1223,31 @@ export namespace serviceconsumermanagement_v1 { /** * The simple name of this method. */ - name: string; + name?: string; /** * Any metadata attached to the method. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * If true, the request is streamed. */ - requestStreaming: boolean; + requestStreaming?: boolean; /** * A URL of the input message type. */ - requestTypeUrl: string; + requestTypeUrl?: string; /** * If true, the response is streamed. */ - responseStreaming: boolean; + responseStreaming?: boolean; /** * The URL of the output message type. */ - responseTypeUrl: string; + responseTypeUrl?: string; /** * The source syntax of this method. */ - syntax: string; + syntax?: string; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -1255,14 +1258,14 @@ export namespace serviceconsumermanagement_v1 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -1270,17 +1273,17 @@ export namespace serviceconsumermanagement_v1 { * a label for the HTTP response code, `response_code`, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be * supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -1289,7 +1292,7 @@ export namespace serviceconsumermanagement_v1 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * The unit in which the metric value is reported. It is only applicable if * the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported @@ -1318,12 +1321,12 @@ export namespace serviceconsumermanagement_v1 { * value 1, such as in `1/s`. * `%` represents dimensionless value 1/100, * and annotates values giving a percentage. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of `metric_kind` and `value_type` might not be supported. */ - valueType: string; + valueType?: string; } /** * Bind API methods to metrics. Binding a method to a metric causes that @@ -1336,12 +1339,12 @@ export namespace serviceconsumermanagement_v1 { * name, and the values are the amount increased for the metric against * which the quota limits are defined. The value must not be negative. */ - metricCosts: any; + metricCosts?: any; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Declares an API Interface to be included in this interface. The including @@ -1384,12 +1387,12 @@ export namespace serviceconsumermanagement_v1 { /** * The fully qualified name of the interface which is included. */ - name: string; + name?: string; /** * If non-empty specifies a path under which inherited HTTP paths are * rooted. */ - root: string; + root?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -1406,21 +1409,21 @@ export namespace serviceconsumermanagement_v1 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, `"Google * Cloud SQL Database"`. */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and * `"zone"`. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` @@ -1429,13 +1432,13 @@ export namespace serviceconsumermanagement_v1 { * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; } /** * Monitoring configuration of the service. The example below shows how to @@ -1466,14 +1469,14 @@ export namespace serviceconsumermanagement_v1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$MonitoringDestination[]; + consumerDestinations?: Schema$MonitoringDestination[]; /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most one * producer destination. */ - producerDestinations: Schema$MonitoringDestination[]; + producerDestinations?: Schema$MonitoringDestination[]; } /** * Configuration of a specific monitoring destination (the producer project or @@ -1484,12 +1487,12 @@ export namespace serviceconsumermanagement_v1 { * Names of the metrics to report to this monitoring destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * OAuth scopes are a way to define data and permissions on data. For example, @@ -1514,7 +1517,7 @@ export namespace serviceconsumermanagement_v1 { * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read */ - canonicalScopes: string; + canonicalScopes?: string; } /** * This resource represents a long-running operation that is the result of a @@ -1526,24 +1529,24 @@ export namespace serviceconsumermanagement_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1553,7 +1556,7 @@ export namespace serviceconsumermanagement_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A protocol buffer option, which can be attached to a message, field, @@ -1566,7 +1569,7 @@ export namespace serviceconsumermanagement_v1 { * `"map_entry"`. For custom options, it should be the * fully-qualified name. For example, `"google.api.http"`. */ - name: string; + name?: string; /** * The option's value packed in an Any message. If the value is a * primitive, the corresponding wrapper type defined in @@ -1574,7 +1577,7 @@ export namespace serviceconsumermanagement_v1 { * it should be stored as an int32 value using the * google.protobuf.Int32Value type. */ - value: any; + value?: any; } /** * Represents a documentation page. A page can contain subpages to represent @@ -1586,7 +1589,7 @@ export namespace serviceconsumermanagement_v1 { * include {path} ==&#41;</code> to include content from a * Markdown file. */ - content: string; + content?: string; /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, @@ -1598,12 +1601,12 @@ export namespace serviceconsumermanagement_v1 { * ==&#41; </code></pre> You can reference `Java` page using * Markdown reference link syntax: `Java`. */ - name: string; + name?: string; /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. */ - subpages: Schema$Page[]; + subpages?: Schema$Page[]; } /** * Translates to IAM Policy bindings (without auditing at this level) @@ -1614,12 +1617,12 @@ export namespace serviceconsumermanagement_v1 { * and ID. For example, `user:{emailId}`, `serviceAccount:{emailId}`, * `group:{emailId}`. */ - members: string[]; + members?: string[]; /** * Role. (https://cloud.google.com/iam/docs/understanding-roles) For * example, `roles/viewer`, `roles/editor`, or `roles/owner`. */ - role: string; + role?: string; } /** * Quota configuration helps to achieve fairness and budgeting in service @@ -1649,12 +1652,12 @@ export namespace serviceconsumermanagement_v1 { /** * List of `QuotaLimit` definitions for the service. */ - limits: Schema$QuotaLimit[]; + limits?: Schema$QuotaLimit[]; /** * List of `MetricRule` definitions, each one mapping a selected method to * one or more metrics. */ - metricRules: Schema$MetricRule[]; + metricRules?: Schema$MetricRule[]; } /** * `QuotaLimit` defines a specific limit that applies over a specified @@ -1671,20 +1674,20 @@ export namespace serviceconsumermanagement_v1 { * will indicate an unlimited quota. No other negative values are allowed. * Used by group-based quotas only. */ - defaultLimit: string; + defaultLimit?: string; /** * Optional. User-visible, extended description for this quota limit. Should * be used only when more context is needed to understand this limit than * provided by the limit's display name (see: `display_name`). */ - description: string; + description?: string; /** * User-visible display name for this limit. Optional. If not set, the UI * will provide a default display name based on the quota configuration. * This field can be used to override the default display name generated * from the configuration. */ - displayName: string; + displayName?: string; /** * Duration of this limit in textual notation. Example: "100s", * "24h", "1d". For duration longer than a day, only @@ -1693,7 +1696,7 @@ export namespace serviceconsumermanagement_v1 { * "0" indicates indefinite duration. Used by group-based quotas * only. */ - duration: string; + duration?: string; /** * Free tier value displayed in the Developers Console for this limit. The * free tier is the number of tokens that will be subtracted from the billed @@ -1702,7 +1705,7 @@ export namespace serviceconsumermanagement_v1 { * other limit. If this field is not set, it defaults to 0, indicating that * there is no free tier for this service. Used by group-based quotas only. */ - freeTier: string; + freeTier?: string; /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up @@ -1711,20 +1714,20 @@ export namespace serviceconsumermanagement_v1 { * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. Used by group-based quotas only. */ - maxLimit: string; + maxLimit?: string; /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must * be defined within the service config. */ - metric: string; + metric?: string; /** * Name of the quota limit. The name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. The maximum length of the limit name * is 64 characters. */ - name: string; + name?: string; /** * Specify the unit of the quota limit. It uses the same syntax as * Metric.unit. The supported unit kinds are determined by the quota backend @@ -1733,13 +1736,13 @@ export namespace serviceconsumermanagement_v1 { * insignificant. The "1" at the beginning is required to follow * the metric unit syntax. */ - unit: string; + unit?: string; /** * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. */ - values: any; + values?: any; } /** * Request message to remove tenant project resource from the tenancy unit. @@ -1748,7 +1751,7 @@ export namespace serviceconsumermanagement_v1 { /** * Tag of the resource within the tenancy unit. */ - tag: string; + tag?: string; } /** * Response for the search query. @@ -1757,11 +1760,11 @@ export namespace serviceconsumermanagement_v1 { /** * Pagination token for large results. */ - nextPageToken: string; + nextPageToken?: string; /** * Tenancy Units matching the request. */ - tenancyUnits: Schema$TenancyUnit[]; + tenancyUnits?: Schema$TenancyUnit[]; } /** * `Service` is the root object of Google service configuration schema. It @@ -1785,111 +1788,111 @@ export namespace serviceconsumermanagement_v1 { * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. */ - apis: Schema$Api[]; + apis?: Schema$Api[]; /** * Auth configuration. */ - authentication: Schema$Authentication; + authentication?: Schema$Authentication; /** * API backend configuration. */ - backend: Schema$Backend; + backend?: Schema$Backend; /** * Billing configuration. */ - billing: Schema$Billing; + billing?: Schema$Billing; /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. The * latest config version is `3`. */ - configVersion: number; + configVersion?: number; /** * Context configuration. */ - context: Schema$Context; + context?: Schema$Context; /** * Configuration for the service control plane. */ - control: Schema$Control; + control?: Schema$Control; /** * Custom error configuration. */ - customError: Schema$CustomError; + customError?: Schema$CustomError; /** * Additional API documentation. */ - documentation: Schema$Documentation; + documentation?: Schema$Documentation; /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service * all defined APIs. */ - endpoints: Schema$Endpoint[]; + endpoints?: Schema$Endpoint[]; /** * A list of all enum types included in this API service. Enums referenced * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name. Example: enums: - name: google.someapi.v1.SomeEnum */ - enums: Schema$Enum[]; + enums?: Schema$Enum[]; /** * Experimental configuration. */ - experimental: Schema$Experimental; + experimental?: Schema$Experimental; /** * HTTP configuration. */ - http: Schema$Http; + http?: Schema$Http; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. */ - id: string; + id?: string; /** * Logging configuration. */ - logging: Schema$Logging; + logging?: Schema$Logging; /** * Defines the logs used by this service. */ - logs: Schema$LogDescriptor[]; + logs?: Schema$LogDescriptor[]; /** * Defines the metrics used by this service. */ - metrics: Schema$MetricDescriptor[]; + metrics?: Schema$MetricDescriptor[]; /** * Defines the monitored resources used by this service. This is required by * the Service.monitoring and Service.logging configurations. */ - monitoredResources: Schema$MonitoredResourceDescriptor[]; + monitoredResources?: Schema$MonitoredResourceDescriptor[]; /** * Monitoring configuration. */ - monitoring: Schema$Monitoring; + monitoring?: Schema$Monitoring; /** * The DNS address at which this service is available, e.g. * `calendar.googleapis.com`. */ - name: string; + name?: string; /** * The Google project that owns this service. */ - producerProjectId: string; + producerProjectId?: string; /** * Quota configuration. */ - quota: Schema$Quota; + quota?: Schema$Quota; /** * Output only. The source information for this configuration if available. */ - sourceInfo: Schema$SourceInfo; + sourceInfo?: Schema$SourceInfo; /** * System parameter configuration. */ - systemParameters: Schema$SystemParameters; + systemParameters?: Schema$SystemParameters; /** * A list of all proto message types included in this API service. It serves * similar purpose as [google.api.Service.types], except that these types @@ -1897,11 +1900,11 @@ export namespace serviceconsumermanagement_v1 { * the generated discovery doc. This field should only be used to define * system APIs in ESF. */ - systemTypes: Schema$Type[]; + systemTypes?: Schema$Type[]; /** * The product title for this service. */ - title: string; + title?: string; /** * A list of all proto message types included in this API service. Types * referenced directly or indirectly by the `apis` are automatically @@ -1909,11 +1912,11 @@ export namespace serviceconsumermanagement_v1 { * as types used by the `google.protobuf.Any` type, should be listed here by * name. Example: types: - name: google.protobuf.Int32 */ - types: Schema$Type[]; + types?: Schema$Type[]; /** * Configuration controlling usage of this service. */ - usage: Schema$Usage; + usage?: Schema$Usage; } /** * Describes service account configuration for the tenant project. @@ -1927,11 +1930,11 @@ export namespace serviceconsumermanagement_v1 { * to guarantee it. And it must be 6-30 characters long, and matches the * regular expression `[a-z]([-a-z0-9]*[a-z0-9])`. */ - accountId: string; + accountId?: string; /** * Roles for the associated service account for the tenant project. */ - tenantProjectRoles: string[]; + tenantProjectRoles?: string[]; } /** * `SourceContext` represents information about the source of a protobuf @@ -1943,7 +1946,7 @@ export namespace serviceconsumermanagement_v1 { * protobuf element. For example: * `"google/protobuf/source_context.proto"`. */ - fileName: string; + fileName?: string; } /** * Source information used to create a Service Config @@ -1952,7 +1955,7 @@ export namespace serviceconsumermanagement_v1 { /** * All files used during config generation. */ - sourceFiles: any[]; + sourceFiles?: any[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -1994,18 +1997,18 @@ export namespace serviceconsumermanagement_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Define a parameter's name and location. The parameter may be passed as @@ -2017,17 +2020,17 @@ export namespace serviceconsumermanagement_v1 { * Define the HTTP header name to use for the parameter. It is case * insensitive. */ - httpHeader: string; + httpHeader?: string; /** * Define the name of the parameter, such as "api_key" . It is * case sensitive. */ - name: string; + name?: string; /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. */ - urlQueryParameter: string; + urlQueryParameter?: string; } /** * Define a system parameter rule mapping system parameter definitions to @@ -2040,12 +2043,12 @@ export namespace serviceconsumermanagement_v1 { * used the behavior is implementation-dependent. If none of the specified * names are present the behavior is parameter-dependent. */ - parameters: Schema$SystemParameter[]; + parameters?: Schema$SystemParameter[]; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; } /** * ### System parameter configuration A system parameter is a special kind of @@ -2069,7 +2072,7 @@ export namespace serviceconsumermanagement_v1 { * http_header: Api-Key2 **NOTE:** All service configuration rules follow * "last one wins" order. */ - rules: Schema$SystemParameterRule[]; + rules?: Schema$SystemParameterRule[]; } /** * Representation of a tenancy unit. @@ -2079,27 +2082,27 @@ export namespace serviceconsumermanagement_v1 { * @OutputOnly Cloud resource name of the consumer of this service. For * example 'projects/123456'. */ - consumer: string; + consumer?: string; /** * @OutputOnly The time this tenancy unit was created. */ - createTime: string; + createTime?: string; /** * Globally unique identifier of this tenancy unit * "services/{service}/{collection id}/{resource * id}/tenancyUnits/{unit}" */ - name: string; + name?: string; /** * @OutputOnly Google Cloud API name of the service owning this tenancy * unit. For example 'serviceconsumermanagement.googleapis.com'. */ - service: string; + service?: string; /** * Resources constituting the tenancy unit. There can be at most 512 tenant * resources in a tenancy unit. */ - tenantResources: Schema$TenantResource[]; + tenantResources?: Schema$TenantResource[]; } /** * This structure defines a tenant project to be added to the specified @@ -2113,33 +2116,33 @@ export namespace serviceconsumermanagement_v1 { * Billing account properties. It might be specified explicitly, or created * from the specified group during provisioning */ - billingConfig: Schema$BillingConfig; + billingConfig?: Schema$BillingConfig; /** * Folder where project in this tenancy unit must be located This folder * must have been previously created with proper permissions for the caller * to create and configure a project in it. Valid folder resource names have * the format `folders/{folder_number}` (for example, `folders/123456`). */ - folder: string; + folder?: string; /** * Labels that will be applied to this project. */ - labels: any; + labels?: any; /** * Configuration for IAM service account on tenant project. */ - serviceAccountConfig: Schema$ServiceAccountConfig; + serviceAccountConfig?: Schema$ServiceAccountConfig; /** * Google Cloud API names of services that will be activated on this project * during provisioning. If any of these services can not be activated, * request will fail. For example: * 'compute.googleapis.com','cloudfunctions.googleapis.com' */ - services: string[]; + services?: string[]; /** * Describes ownership and policies for the new tenant project. Required. */ - tenantProjectPolicy: Schema$TenantProjectPolicy; + tenantProjectPolicy?: Schema$TenantProjectPolicy; } /** * Describes policy settings that need to be applied to a newly created tenant @@ -2153,7 +2156,7 @@ export namespace serviceconsumermanagement_v1 { * Among the list of members for `roles/owner`, at least one of them must be * either `user` or `group` type. */ - policyBindings: Schema$PolicyBinding[]; + policyBindings?: Schema$PolicyBinding[]; } /** * Resource constituting the TenancyUnit. @@ -2164,15 +2167,15 @@ export namespace serviceconsumermanagement_v1 { * in the form 'projects/{number}'. For example * 'projects/123456'. */ - resource: string; + resource?: string; /** * Status of tenant resource. */ - status: string; + status?: string; /** * Unique per single tenancy unit. */ - tag: string; + tag?: string; } /** * A protocol buffer message type. @@ -2181,27 +2184,27 @@ export namespace serviceconsumermanagement_v1 { /** * The list of fields. */ - fields: Schema$Field[]; + fields?: Schema$Field[]; /** * The fully qualified message name. */ - name: string; + name?: string; /** * The list of types appearing in `oneof` definitions in this type. */ - oneofs: string[]; + oneofs?: string[]; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Configuration controlling usage of a service. @@ -2215,19 +2218,19 @@ export namespace serviceconsumermanagement_v1 { * name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name * format documented in https://cloud.google.com/pubsub/docs/overview. */ - producerNotificationChannel: string; + producerNotificationChannel?: string; /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form * <service.name>/<requirement-id>; for example * 'serviceusage.googleapis.com/billing-enabled'. */ - requirements: string[]; + requirements?: string[]; /** * A list of usage rules that apply to individual API methods. **NOTE:** * All service configuration rules follow "last one wins" order. */ - rules: Schema$UsageRule[]; + rules?: Schema$UsageRule[]; } /** * Usage configuration rules for the service. NOTE: Under development. Use @@ -2248,21 +2251,22 @@ export namespace serviceconsumermanagement_v1 { * If true, the selected method allows unregistered calls, e.g. calls that * don't identify any user or application. */ - allowUnregisteredCalls: boolean; + allowUnregisteredCalls?: boolean; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. This * flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. */ - skipServiceControl: boolean; + skipServiceControl?: boolean; } + export class Resource$Operations { root: Serviceconsumermanagement; constructor(root: Serviceconsumermanagement) { @@ -2296,25 +2300,37 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; + cancel( + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2353,25 +2369,37 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2408,23 +2436,34 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2470,28 +2509,38 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2514,6 +2563,68 @@ export namespace serviceconsumermanagement_v1 { } } + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Services { root: Serviceconsumermanagement; tenancyUnits: Resource$Services$Tenancyunits; @@ -2543,29 +2654,41 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Services$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + search( + params: Params$Resource$Services$Search, + callback: BodyResponseCallback): + void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2589,6 +2712,48 @@ export namespace serviceconsumermanagement_v1 { } } } + + export interface Params$Resource$Services$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of results returned by this request. Currently, the + * default maximum is set to 1000. If page_size is not provided or the size + * provided is a number larger than 1000, it will be automatically set to + * 1000. Optional. + */ + pageSize?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * `nextPageToken` from the previous response. Optional. + */ + pageToken?: string; + /** + * Service for which search is performed. services/{service} {service} the + * name of a service, for example 'service.googleapis.com'. + */ + parent?: string; + /** + * Set a query `{expression}` for querying tenancy units. Your + * `{expression}` must be in the format: `field_name=literal_string`. The + * `field_name` is the name of the field you want to compare. Supported + * fields are `tenant_resources.tag` and `tenant_resources.resource`. For + * example, to search tenancy units that contain at least one tenant + * resource with given tag 'xyz', use query `tenant_resources.tag=xyz`. To + * search tenancy units that contain at least one tenant resource with given + * resource name 'projects/123456', use query + * `tenant_resources.resource=projects/123456`. Multiple expressions can be + * joined with `AND`s. Tenancy units must match all expressions to be + * included in the result set. For example, `tenant_resources.tag=xyz AND + * tenant_resources.resource=projects/123456` Optional. + */ + query?: string; + } + export class Resource$Services$Tenancyunits { root: Serviceconsumermanagement; constructor(root: Serviceconsumermanagement) { @@ -2618,26 +2783,39 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addProject(params?: any, options?: MethodOptions): - AxiosPromise; addProject( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Tenancyunits$Addproject, + options?: MethodOptions): AxiosPromise; + addProject( + params: Params$Resource$Services$Tenancyunits$Addproject, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addProject( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Tenancyunits$Addproject, + callback: BodyResponseCallback): void; + addProject(callback: BodyResponseCallback): void; + addProject( + paramsOrCallback?: Params$Resource$Services$Tenancyunits$Addproject| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Tenancyunits$Addproject; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Tenancyunits$Addproject; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2674,26 +2852,39 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Tenancyunits$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Services$Tenancyunits$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Services$Tenancyunits$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Tenancyunits$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Tenancyunits$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Tenancyunits$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2730,26 +2921,39 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Tenancyunits$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Services$Tenancyunits$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Tenancyunits$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Services$Tenancyunits$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Tenancyunits$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Tenancyunits$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2790,28 +2994,40 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Services$Tenancyunits$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Services$Tenancyunits$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Services$Tenancyunits$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Tenancyunits$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Tenancyunits$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Tenancyunits$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2851,26 +3067,39 @@ export namespace serviceconsumermanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removeProject(params?: any, options?: MethodOptions): - AxiosPromise; removeProject( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Tenancyunits$Removeproject, + options?: MethodOptions): AxiosPromise; + removeProject( + params: Params$Resource$Services$Tenancyunits$Removeproject, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + removeProject( + params: Params$Resource$Services$Tenancyunits$Removeproject, + callback: BodyResponseCallback): void; + removeProject(callback: BodyResponseCallback): void; removeProject( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Tenancyunits$Removeproject| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Tenancyunits$Removeproject; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Tenancyunits$Removeproject; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; const parameters = { @@ -2893,4 +3122,97 @@ export namespace serviceconsumermanagement_v1 { } } } + + export interface Params$Resource$Services$Tenancyunits$Addproject { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the tenancy unit. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$AddTenantProjectRequest; + } + export interface Params$Resource$Services$Tenancyunits$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * services/{service}/{collection id}/{resource id} {collection id} is the + * cloud resource collection type representing the service consumer, for + * example 'projects', or 'organizations'. {resource id} is the consumer + * numeric id, such as project number: '123456'. {service} the name of a + * service, for example 'service.googleapis.com'. Enabled service binding + * using the new tenancy unit. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateTenancyUnitRequest; + } + export interface Params$Resource$Services$Tenancyunits$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the tenancy unit to be deleted. + */ + name?: string; + } + export interface Params$Resource$Services$Tenancyunits$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Filter expression over tenancy resources field. Optional. + */ + filter?: string; + /** + * The maximum number of results returned by this request. + */ + pageSize?: number; + /** + * The continuation token, which is used to page through large result sets. + * To get the next page of results, set this parameter to the value of + * `nextPageToken` from the previous response. + */ + pageToken?: string; + /** + * Service and consumer. Required. services/{service}/{collection + * id}/{resource id} {collection id} is the cloud resource collection type + * representing the service consumer, for example 'projects', or + * 'organizations'. {resource id} is the consumer numeric id, such as + * project number: '123456'. {service} the name of a service, for example + * 'service.googleapis.com'. + */ + parent?: string; + } + export interface Params$Resource$Services$Tenancyunits$Removeproject { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the tenancy unit. Such as + * 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$RemoveTenantProjectRequest; + } } diff --git a/src/apis/servicecontrol/v1.ts b/src/apis/servicecontrol/v1.ts index 8f9b7b5ea78..c976761214e 100644 --- a/src/apis/servicecontrol/v1.ts +++ b/src/apis/servicecontrol/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace servicecontrol_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Service Control API * @@ -73,7 +76,7 @@ export namespace servicecontrol_v1 { * window, the caller can choose to ignore these labels in the requests to * achieve better client-side cache hits and quota aggregation. */ - unusedArguments: string[]; + unusedArguments?: string[]; } /** * Request message for the AllocateQuota method. @@ -82,13 +85,13 @@ export namespace servicecontrol_v1 { /** * Operation that describes the quota allocation. */ - allocateOperation: Schema$QuotaOperation; + allocateOperation?: Schema$QuotaOperation; /** * Specifies which version of service configuration should be used to * process the request. If unspecified or no matching version can be found, * the latest one will be used. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Response message for the AllocateQuota method. @@ -97,16 +100,16 @@ export namespace servicecontrol_v1 { /** * Indicates the decision of the allocate. */ - allocateErrors: Schema$QuotaError[]; + allocateErrors?: Schema$QuotaError[]; /** * WARNING: DO NOT use this field until this warning message is removed. */ - allocateInfo: Schema$AllocateInfo; + allocateInfo?: Schema$AllocateInfo; /** * The same operation_id value used in the AllocateQuotaRequest. Used for * logging and diagnostics purposes. */ - operationId: string; + operationId?: string; /** * Quota metrics to indicate the result of allocation. Depending on the * request, one or more of the following metrics will be included: 1. Per @@ -117,11 +120,11 @@ export namespace servicecontrol_v1 { * following boolean metric : * "serviceruntime.googleapis.com/quota/exceeded" */ - quotaMetrics: Schema$MetricValueSet[]; + quotaMetrics?: Schema$MetricValueSet[]; /** * ID of the actual config used to process the request. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Common audit log format for Google Cloud Platform API operations. @@ -130,30 +133,30 @@ export namespace servicecontrol_v1 { /** * Authentication information. */ - authenticationInfo: Schema$AuthenticationInfo; + authenticationInfo?: Schema$AuthenticationInfo; /** * Authorization information. If there are multiple resources or permissions * involved, then there is one AuthorizationInfo element for each {resource, * permission} tuple. */ - authorizationInfo: Schema$AuthorizationInfo[]; + authorizationInfo?: Schema$AuthorizationInfo[]; /** * Other service-specific data about the request, response, and other * information associated with the current audited event. */ - metadata: any; + metadata?: any; /** * The name of the service method or operation. For API calls, this should * be the name of the API method. For example, * "google.datastore.v1.Datastore.RunQuery" * "google.logging.v1.LoggingService.DeleteLog" */ - methodName: string; + methodName?: string; /** * The number of items returned from a List or Query API method, if * applicable. */ - numResponseItems: string; + numResponseItems?: string; /** * The operation request. This may not include all request parameters, such * as those that are too large, privacy-sensitive, or duplicated elsewhere @@ -161,18 +164,18 @@ export namespace servicecontrol_v1 { * file contents. When the JSON object represented here has a proto * equivalent, the proto name will be indicated in the `@type` property. */ - request: any; + request?: any; /** * Metadata about the operation. */ - requestMetadata: Schema$RequestMetadata; + requestMetadata?: Schema$RequestMetadata; /** * The resource or collection that is the target of the operation. The name * is a scheme-less URI, not including the API service name. For example: * "shelves/SHELF_ID/books" * "shelves/SHELF_ID/books/BOOK_ID" */ - resourceName: string; + resourceName?: string; /** * The operation response. This may not include all response elements, such * as those that are too large, privacy-sensitive, or duplicated elsewhere @@ -180,21 +183,21 @@ export namespace servicecontrol_v1 { * file contents. When the JSON object represented here has a proto * equivalent, the proto name will be indicated in the `@type` property. */ - response: any; + response?: any; /** * Deprecated, use `metadata` field instead. Other service-specific data * about the request, response, and other activities. */ - serviceData: any; + serviceData?: any; /** * The name of the API service performing the operation. For example, * `"datastore.googleapis.com"`. */ - serviceName: string; + serviceName?: string; /** * The status of the overall operation. */ - status: Schema$Status; + status?: Schema$Status; } /** * Authentication information for the operation. @@ -204,20 +207,20 @@ export namespace servicecontrol_v1 { * The authority selector specified by the requestor, if any. It is not * guaranteed that the principal was allowed to use this authority. */ - authoritySelector: string; + authoritySelector?: string; /** * The email address of the authenticated user (or service account on behalf * of third party principal) making the request. For privacy reasons, the * principal email address is redacted for all read-only operations that * fail with a "permission denied" error. */ - principalEmail: string; + principalEmail?: string; /** * The third party identification (if any) of the authenticated user making * the request. When the JSON object represented here has a proto * equivalent, the proto name will be indicated in the `@type` property. */ - thirdPartyPrincipal: any; + thirdPartyPrincipal?: any; } /** * Authorization information for the operation. @@ -226,16 +229,16 @@ export namespace servicecontrol_v1 { /** * Whether or not authorization for `resource` and `permission` was granted. */ - granted: boolean; + granted?: boolean; /** * The required IAM permission. */ - permission: string; + permission?: string; /** * The resource being accessed, as a REST-style string. For example: * bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID */ - resource: string; + resource?: string; } /** * Defines the errors to be returned in @@ -245,18 +248,18 @@ export namespace servicecontrol_v1 { /** * The error code. */ - code: string; + code?: string; /** * Free-form text providing details on the error cause of the error. */ - detail: string; + detail?: string; /** * Subject to whom this error applies. See the specific code enum for more * details on this field. For example: - “project:<project-id or * project-number>” - “folder:<folder-id>” - * “organization:<organization-id>” */ - subject: string; + subject?: string; } /** * Contains additional information about the check operation. @@ -265,13 +268,13 @@ export namespace servicecontrol_v1 { /** * Consumer info of this check. */ - consumerInfo: Schema$ConsumerInfo; + consumerInfo?: Schema$ConsumerInfo; /** * A list of fields and label keys that are ignored by the server. The * client doesn't need to send them for following requests to improve * performance and allow better aggregation. */ - unusedArguments: string[]; + unusedArguments?: string[]; } /** * Request message for the Check method. @@ -280,23 +283,23 @@ export namespace servicecontrol_v1 { /** * The operation to be checked. */ - operation: Schema$Operation; + operation?: Schema$Operation; /** * Requests the project settings to be returned as part of the check * response. */ - requestProjectSettings: boolean; + requestProjectSettings?: boolean; /** * Specifies which version of service configuration should be used to * process the request. If unspecified or no matching version can be found, * the latest one will be used. */ - serviceConfigId: string; + serviceConfigId?: string; /** * Indicates if service activation check should be skipped for this request. * Default behavior is to perform the check and apply relevant quota. */ - skipActivationCheck: boolean; + skipActivationCheck?: boolean; } /** * Response message for the Check method. @@ -307,24 +310,24 @@ export namespace servicecontrol_v1 { * service should process the operation. Otherwise the service should use * the list of errors to determine the appropriate action. */ - checkErrors: Schema$CheckError[]; + checkErrors?: Schema$CheckError[]; /** * Feedback data returned from the server during processing a Check request. */ - checkInfo: Schema$CheckInfo; + checkInfo?: Schema$CheckInfo; /** * The same operation_id value used in the CheckRequest. Used for logging * and diagnostics purposes. */ - operationId: string; + operationId?: string; /** * Quota information for the check request associated with this response. */ - quotaInfo: Schema$QuotaInfo; + quotaInfo?: Schema$QuotaInfo; /** * The actual config id used to process the request. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * `ConsumerInfo` provides information about the consumer project. @@ -334,7 +337,7 @@ export namespace servicecontrol_v1 { * The Google cloud project number, e.g. 1234567890. A value of 0 indicates * no project number is found. */ - projectNumber: string; + projectNumber?: string; } /** * Distribution represents a frequency distribution of double-valued sample @@ -355,42 +358,42 @@ export namespace servicecontrol_v1 { * samples in the overflow bucket. See the comments of `bucket_option` below * for more details. Any suffix of trailing zeros may be omitted. */ - bucketCounts: string[]; + bucketCounts?: string[]; /** * The total number of samples in the distribution. Must be >= 0. */ - count: string; + count?: string; /** * Buckets with arbitrary user-provided width. */ - explicitBuckets: Schema$ExplicitBuckets; + explicitBuckets?: Schema$ExplicitBuckets; /** * Buckets with exponentially growing width. */ - exponentialBuckets: Schema$ExponentialBuckets; + exponentialBuckets?: Schema$ExponentialBuckets; /** * Buckets with constant width. */ - linearBuckets: Schema$LinearBuckets; + linearBuckets?: Schema$LinearBuckets; /** * The maximum of the population of values. Ignored if `count` is zero. */ - maximum: number; + maximum?: number; /** * The arithmetic mean of the samples in the distribution. If `count` is * zero then this field must be zero. */ - mean: number; + mean?: number; /** * The minimum of the population of values. Ignored if `count` is zero. */ - minimum: number; + minimum?: number; /** * The sum of squared deviations from the mean: Sum[i=1..count]((x_i - * mean)^2) where each x_i is a sample values. If `count` is zero then this * field must be zero, otherwise validation of the request fails. */ - sumOfSquaredDeviation: number; + sumOfSquaredDeviation?: number; } /** * Request message for QuotaController.EndReconciliation. @@ -399,13 +402,13 @@ export namespace servicecontrol_v1 { /** * Operation that describes the quota reconciliation. */ - reconciliationOperation: Schema$QuotaOperation; + reconciliationOperation?: Schema$QuotaOperation; /** * Specifies which version of service configuration should be used to * process the request. If unspecified or no matching version can be found, * the latest one will be used. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Response message for QuotaController.EndReconciliation. @@ -415,7 +418,7 @@ export namespace servicecontrol_v1 { * The same operation_id value used in the EndReconciliationRequest. Used * for logging and diagnostics purposes. */ - operationId: string; + operationId?: string; /** * Metric values as tracked by One Platform before the adjustment was made. * The following metrics will be included: 1. Per quota metric total usage @@ -433,15 +436,15 @@ export namespace servicecontrol_v1 { * callers' use only. Since this metric is not defined in the monitoring * backend, reporting on this metric will result in an error. */ - quotaMetrics: Schema$MetricValueSet[]; + quotaMetrics?: Schema$MetricValueSet[]; /** * Indicates the decision of the reconciliation end. */ - reconciliationErrors: Schema$QuotaError[]; + reconciliationErrors?: Schema$QuotaError[]; /** * ID of the actual config used to process the request. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Describing buckets with arbitrary user-provided width. @@ -460,7 +463,7 @@ export namespace servicecontrol_v1 { * bound_size() bound[i-1] bound[i] i == bound_size() * (overflow) bound[i-1] +inf */ - bounds: number[]; + bounds?: number[]; } /** * Describing buckets with exponentially growing width. @@ -471,19 +474,19 @@ export namespace servicecontrol_v1 { * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to * num_finite_buckets inclusive. Must be larger than 1.0. */ - growthFactor: number; + growthFactor?: number; /** * The number of finite buckets. With the underflow and overflow buckets, * the total number of buckets is `num_finite_buckets` + 2. See comments on * `bucket_options` for details. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * The i'th exponential bucket covers the interval [scale * * growth_factor^(i-1), scale * growth_factor^i) where i ranges from 1 to * num_finite_buckets inclusive. Must be > 0. */ - scale: number; + scale?: number; } /** * Describing buckets with constant width. @@ -494,19 +497,19 @@ export namespace servicecontrol_v1 { * the total number of buckets is `num_finite_buckets` + 2. See comments on * `bucket_options` for details. */ - numFiniteBuckets: number; + numFiniteBuckets?: number; /** * The i'th linear bucket covers the interval [offset + (i-1) * width, * offset + i * width) where i ranges from 1 to num_finite_buckets, * inclusive. */ - offset: number; + offset?: number; /** * The i'th linear bucket covers the interval [offset + (i-1) * width, * offset + i * width) where i ranges from 1 to num_finite_buckets, * inclusive. Must be strictly positive. */ - width: number; + width?: number; } /** * An individual log entry. @@ -516,41 +519,41 @@ export namespace servicecontrol_v1 { * A unique ID for the log entry used for deduplication. If omitted, the * implementation will generate one based on operation_id. */ - insertId: string; + insertId?: string; /** * A set of user-defined (key, value) data that provides additional * information about the log entry. */ - labels: any; + labels?: any; /** * Required. The log to which this log entry belongs. Examples: * `"syslog"`, `"book_log"`. */ - name: string; + name?: string; /** * The log entry payload, represented as a protocol buffer that is expressed * as a JSON object. The only accepted type currently is AuditLog. */ - protoPayload: any; + protoPayload?: any; /** * The severity of the log entry. The default value is * `LogSeverity.DEFAULT`. */ - severity: string; + severity?: string; /** * The log entry payload, represented as a structure that is expressed as a * JSON object. */ - structPayload: any; + structPayload?: any; /** * The log entry payload, represented as a Unicode string (UTF-8). */ - textPayload: string; + textPayload?: string; /** * The time the event described by the log entry occurred. If omitted, * defaults to operation start time. */ - timestamp: string; + timestamp?: string; } /** * Represents a single metric value. @@ -559,45 +562,45 @@ export namespace servicecontrol_v1 { /** * A boolean value. */ - boolValue: boolean; + boolValue?: boolean; /** * A distribution value. */ - distributionValue: Schema$Distribution; + distributionValue?: Schema$Distribution; /** * A double precision floating point value. */ - doubleValue: number; + doubleValue?: number; /** * The end of the time period over which this metric value's measurement * applies. */ - endTime: string; + endTime?: string; /** * A signed 64-bit integer value. */ - int64Value: string; + int64Value?: string; /** * The labels describing the metric value. See comments on * google.api.servicecontrol.v1.Operation.labels for the overriding * relationship. */ - labels: any; + labels?: any; /** * A money value. */ - moneyValue: Schema$Money; + moneyValue?: Schema$Money; /** * The start of the time period over which this metric value's * measurement applies. The time period has different semantics for * different metric types (cumulative, delta, and gauge). See the metric * definition documentation in the service configuration for details. */ - startTime: string; + startTime?: string; /** * A text string value. */ - stringValue: string; + stringValue?: string; } /** * Represents a set of metric values in the same metric. Each metric value in @@ -608,11 +611,11 @@ export namespace servicecontrol_v1 { /** * The metric name defined in the service configuration. */ - metricName: string; + metricName?: string; /** * The values in this metric. */ - metricValues: Schema$MetricValue[]; + metricValues?: Schema$MetricValue[]; } /** * Represents an amount of money with its currency type. @@ -621,7 +624,7 @@ export namespace servicecontrol_v1 { /** * The 3-letter currency code defined in ISO 4217. */ - currencyCode: string; + currencyCode?: string; /** * Number of nano (10^-9) units of the amount. The value must be between * -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` @@ -630,12 +633,12 @@ export namespace servicecontrol_v1 { * zero. For example $-1.75 is represented as `units`=-1 and * `nanos`=-750,000,000. */ - nanos: number; + nanos?: number; /** * The whole units of the amount. For example if `currencyCode` is * `"USD"`, then 1 unit is one US dollar. */ - units: string; + units?: string; } /** * Represents information regarding an operation. @@ -648,17 +651,17 @@ export namespace servicecontrol_v1 { * This can be in one of the following formats: project:<project_id>, * project_number:<project_number>, api_key:<api_key>. */ - consumerId: string; + consumerId?: string; /** * End time of the operation. Required when the operation is used in * ServiceController.Report, but optional when the operation is used in * ServiceController.Check. */ - endTime: string; + endTime?: string; /** * DO NOT USE. This is an experimental field. */ - importance: string; + importance?: string; /** * Labels describing the operation. Only the following labels are allowed: * - Labels describing monitored resources as defined in the service @@ -674,11 +677,11 @@ export namespace servicecontrol_v1 { * the API is served, such as App Engine, Compute Engine, or Kubernetes * Engine. */ - labels: any; + labels?: any; /** * Represents information to be logged. */ - logEntries: Schema$LogEntry[]; + logEntries?: Schema$LogEntry[]; /** * Represents information about this operation. Each MetricValueSet * corresponds to a metric defined in the service configuration. The data @@ -689,7 +692,7 @@ export namespace servicecontrol_v1 { * duplicated MetricValue instances, the entire request is rejected with an * invalid argument error. */ - metricValueSets: Schema$MetricValueSet[]; + metricValueSets?: Schema$MetricValueSet[]; /** * Identity of the operation. This must be unique within the scope of the * service that generated the operation. If the service calls Check() and @@ -699,17 +702,17 @@ export namespace servicecontrol_v1 { * desirable for deduplication purpose, UUID version 5 is recommended. See * RFC 4122 for details. */ - operationId: string; + operationId?: string; /** * Fully qualified name of the operation. Reserved for future use. */ - operationName: string; + operationName?: string; /** * Represents the properties needed for quota check. Applicable only if this * operation is for a quota check request. If this is not specified, no * quota check will be performed. */ - quotaProperties: Schema$QuotaProperties; + quotaProperties?: Schema$QuotaProperties; /** * DO NOT USE. This field is deprecated, use "resources" field * instead. The resource name of the parent of a resource in the resource @@ -717,22 +720,22 @@ export namespace servicecontrol_v1 { * “projects/<project-id or project-number>” - * “folders/<folder-id>” - “organizations/<organization-id>” */ - resourceContainer: string; + resourceContainer?: string; /** * The resources that are involved in the operation. The maximum supported * number of entries in this field is 100. */ - resources: Schema$ResourceInfo[]; + resources?: Schema$ResourceInfo[]; /** * Required. Start time of the operation. */ - startTime: string; + startTime?: string; /** * User defined labels for the resource that this operation is associated * with. Only a combination of 1000 user labels per consumer project are * allowed. */ - userLabels: any; + userLabels?: any; } /** * Represents error information for QuotaOperation. @@ -741,18 +744,18 @@ export namespace servicecontrol_v1 { /** * Error code. */ - code: string; + code?: string; /** * Free-form text that provides details on the cause of the error. */ - description: string; + description?: string; /** * Subject to whom this error applies. See the specific enum for more * details on this field. For example, "clientip:<ip address of * client>" or "project:<Google developer project * id>". */ - subject: string; + subject?: string; } /** * Contains the quota information for a quota check response. @@ -764,7 +767,7 @@ export namespace servicecontrol_v1 { * QuotaLimit.name See: google.api.Quota Deprecated: Use quota_metrics to * get per quota group limit exceeded status. */ - limitExceeded: string[]; + limitExceeded?: string[]; /** * Map of quota group name to the actual number of tokens consumed. If the * quota check was not successful, then this will not be populated due to no @@ -774,7 +777,7 @@ export namespace servicecontrol_v1 { * Castor (that scales quota usage) and 'quota_metrics' for * SuperQuota (that doesn't scale quota usage). */ - quotaConsumed: any; + quotaConsumed?: any; /** * Quota metrics to indicate the usage. Depending on the check request, one * or more of the following metrics will be included: 1. For rate quota, @@ -788,7 +791,7 @@ export namespace servicecontrol_v1 { * condition will be specified using the following boolean metric: * "serviceruntime.googleapis.com/quota/exceeded" */ - quotaMetrics: Schema$MetricValueSet[]; + quotaMetrics?: Schema$MetricValueSet[]; } /** * Represents information regarding a quota operation. @@ -800,11 +803,11 @@ export namespace servicecontrol_v1 { * project:<project_id>, project_number:<project_number>, * api_key:<api_key>. */ - consumerId: string; + consumerId?: string; /** * Labels describing the operation. */ - labels: any; + labels?: any; /** * Fully qualified name of the API method for which this quota operation is * requested. This name is used for matching quota rules or metric rules and @@ -814,7 +817,7 @@ export namespace servicecontrol_v1 { * caller is doing quota override. Example of an RPC method name: * google.example.library.v1.LibraryService.CreateShelf */ - methodName: string; + methodName?: string; /** * Identity of the operation. This is expected to be unique within the scope * of the service that generated the operation, and guarantees idempotency @@ -823,7 +826,7 @@ export namespace servicecontrol_v1 { * an idempotent id is desirable for deduplication purpose, UUID version 5 * is recommended. See RFC 4122 for details. */ - operationId: string; + operationId?: string; /** * Represents information about this operation. Each MetricValueSet * corresponds to a metric defined in the service configuration. The data @@ -835,11 +838,11 @@ export namespace servicecontrol_v1 { * invalid argument error. This field is mutually exclusive with * method_name. */ - quotaMetrics: Schema$MetricValueSet[]; + quotaMetrics?: Schema$MetricValueSet[]; /** * Quota mode for this operation. */ - quotaMode: string; + quotaMode?: string; } /** * Represents the properties needed for quota operations. @@ -848,7 +851,7 @@ export namespace servicecontrol_v1 { /** * Quota mode for this operation. */ - quotaMode: string; + quotaMode?: string; } /** * Request message for the ReleaseQuota method. @@ -857,13 +860,13 @@ export namespace servicecontrol_v1 { /** * Operation that describes the quota release. */ - releaseOperation: Schema$QuotaOperation; + releaseOperation?: Schema$QuotaOperation; /** * Specifies which version of service configuration should be used to * process the request. If unspecified or no matching version can be found, * the latest one will be used. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Response message for the ReleaseQuota method. @@ -873,7 +876,7 @@ export namespace servicecontrol_v1 { * The same operation_id value used in the ReleaseQuotaRequest. Used for * logging and diagnostics purposes. */ - operationId: string; + operationId?: string; /** * Quota metrics to indicate the result of release. Depending on the * request, one or more of the following metrics will be included: 1. For @@ -887,15 +890,15 @@ export namespace servicecontrol_v1 { * metrics will be specified using the following gauge metric: * "serviceruntime.googleapis.com/quota/limit" */ - quotaMetrics: Schema$MetricValueSet[]; + quotaMetrics?: Schema$MetricValueSet[]; /** * Indicates the decision of the release. */ - releaseErrors: Schema$QuotaError[]; + releaseErrors?: Schema$QuotaError[]; /** * ID of the actual config used to process the request. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Represents the processing error of one Operation in the request. @@ -904,11 +907,11 @@ export namespace servicecontrol_v1 { /** * The Operation.operation_id value from the request. */ - operationId: string; + operationId?: string; /** * Details of the error when processing the Operation. */ - status: Schema$Status; + status?: Schema$Status; } /** * Contains additional info about the report operation. @@ -917,11 +920,11 @@ export namespace servicecontrol_v1 { /** * The Operation.operation_id value from the request. */ - operationId: string; + operationId?: string; /** * Quota usage info when processing the `Operation`. */ - quotaInfo: Schema$QuotaInfo; + quotaInfo?: Schema$QuotaInfo; } /** * Request message for the Report method. @@ -935,13 +938,13 @@ export namespace servicecontrol_v1 { * single request, the total request size should be no larger than 1MB. See * ReportResponse.report_errors for partial failure behavior. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; /** * Specifies which version of service config should be used to process the * request. If unspecified or no matching version can be found, the latest * one will be used. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Response message for the Report method. @@ -960,7 +963,7 @@ export namespace servicecontrol_v1 { * happens, it's impossible to know which of the 'Operations' * in the request succeeded or failed. */ - reportErrors: Schema$ReportError[]; + reportErrors?: Schema$ReportError[]; /** * Quota usage for each quota release `Operation` request. Fully or * partially failed quota release request may or may not be present in @@ -969,11 +972,11 @@ export namespace servicecontrol_v1 { * info. A deadline exceeded quota request will not have quota usage info. * If there is no quota release request, report_quota_info will be empty. */ - reportInfos: Schema$ReportInfo[]; + reportInfos?: Schema$ReportInfo[]; /** * The actual config id used to process the request. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Metadata about the request. @@ -989,7 +992,7 @@ export namespace servicecontrol_v1 { * `caller_ip` will be redacted to "gce-internal-ip". See * https://cloud.google.com/compute/docs/vpc/ for more information. */ - callerIp: string; + callerIp?: string; /** * The network of the caller. Set only if the network host project is part * of the same GCP organization (or project) as the accessed resource. See @@ -997,7 +1000,7 @@ export namespace servicecontrol_v1 { * a scheme-less URI full resource name. For example: * "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID" */ - callerNetwork: string; + callerNetwork?: string; /** * The user agent of the caller. This information is not authenticated and * should be treated accordingly. For example: + @@ -1008,7 +1011,7 @@ export namespace servicecontrol_v1 { * (+http://code.google.com/appengine; appid: s~my-project`: The request * was made from the `my-project` App Engine app. NOLINT */ - callerSuppliedUserAgent: string; + callerSuppliedUserAgent?: string; } /** * Describes a resource associated with this operation. @@ -1020,11 +1023,11 @@ export namespace servicecontrol_v1 { * project-number>” - “folders/<folder-id>” - * “organizations/<organization-id>” */ - resourceContainer: string; + resourceContainer?: string; /** * Name of the resource. This is used for auditing purposes. */ - resourceName: string; + resourceName?: string; } /** * Request message for QuotaController.StartReconciliation. @@ -1033,13 +1036,13 @@ export namespace servicecontrol_v1 { /** * Operation that describes the quota reconciliation. */ - reconciliationOperation: Schema$QuotaOperation; + reconciliationOperation?: Schema$QuotaOperation; /** * Specifies which version of service configuration should be used to * process the request. If unspecified or no matching version can be found, * the latest one will be used. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * Response message for QuotaController.StartReconciliation. @@ -1049,7 +1052,7 @@ export namespace servicecontrol_v1 { * The same operation_id value used in the StartReconciliationRequest. Used * for logging and diagnostics purposes. */ - operationId: string; + operationId?: string; /** * Metric values as tracked by One Platform before the start of * reconciliation. The following metrics will be included: 1. Per quota @@ -1059,15 +1062,15 @@ export namespace servicecontrol_v1 { * specified using the following gauge metric: * "serviceruntime.googleapis.com/quota/limit" */ - quotaMetrics: Schema$MetricValueSet[]; + quotaMetrics?: Schema$MetricValueSet[]; /** * Indicates the decision of the reconciliation start. */ - reconciliationErrors: Schema$QuotaError[]; + reconciliationErrors?: Schema$QuotaError[]; /** * ID of the actual config used to process the request. */ - serviceConfigId: string; + serviceConfigId?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -1109,20 +1112,21 @@ export namespace servicecontrol_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Services { root: Servicecontrol; constructor(root: Servicecontrol) { @@ -1155,28 +1159,41 @@ export namespace servicecontrol_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - allocateQuota(params?: any, options?: MethodOptions): - AxiosPromise; allocateQuota( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Services$Allocatequota, + options?: MethodOptions): AxiosPromise; + allocateQuota( + params: Params$Resource$Services$Allocatequota, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; allocateQuota( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Allocatequota, + callback: BodyResponseCallback): void; + allocateQuota(callback: BodyResponseCallback): + void; + allocateQuota( + paramsOrCallback?: Params$Resource$Services$Allocatequota| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Allocatequota; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Allocatequota; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { @@ -1223,26 +1240,37 @@ export namespace servicecontrol_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - check(params?: any, options?: MethodOptions): + check(params?: Params$Resource$Services$Check, options?: MethodOptions): AxiosPromise; check( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Check, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; check( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Check, + callback: BodyResponseCallback): void; + check(callback: BodyResponseCallback): void; + check( + paramsOrCallback?: Params$Resource$Services$Check| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Check; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Check; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { @@ -1283,29 +1311,42 @@ export namespace servicecontrol_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - endReconciliation(params?: any, options?: MethodOptions): + endReconciliation( + params?: Params$Resource$Services$Endreconciliation, + options?: MethodOptions): AxiosPromise; endReconciliation( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Endreconciliation, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + endReconciliation( + params: Params$Resource$Services$Endreconciliation, + callback: BodyResponseCallback): void; endReconciliation( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + endReconciliation( + paramsOrCallback?: Params$Resource$Services$Endreconciliation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Endreconciliation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Endreconciliation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { @@ -1349,28 +1390,41 @@ export namespace servicecontrol_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - releaseQuota(params?: any, options?: MethodOptions): - AxiosPromise; releaseQuota( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Services$Releasequota, + options?: MethodOptions): AxiosPromise; + releaseQuota( + params: Params$Resource$Services$Releasequota, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + releaseQuota( + params: Params$Resource$Services$Releasequota, + callback: BodyResponseCallback): void; + releaseQuota(callback: BodyResponseCallback): + void; releaseQuota( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Releasequota| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Releasequota; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Releasequota; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { @@ -1417,26 +1471,37 @@ export namespace servicecontrol_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - report(params?: any, options?: MethodOptions): + report(params?: Params$Resource$Services$Report, options?: MethodOptions): AxiosPromise; report( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Report, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + report( + params: Params$Resource$Services$Report, + callback: BodyResponseCallback): void; + report(callback: BodyResponseCallback): void; report( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Report| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Report; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Report; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { @@ -1493,29 +1558,45 @@ export namespace servicecontrol_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startReconciliation(params?: any, options?: MethodOptions): + startReconciliation( + params?: Params$Resource$Services$Startreconciliation, + options?: MethodOptions): AxiosPromise; startReconciliation( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Startreconciliation, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + startReconciliation( + params: Params$Resource$Services$Startreconciliation, + callback: BodyResponseCallback): + void; + startReconciliation( + callback: BodyResponseCallback): void; startReconciliation( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Startreconciliation| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Startreconciliation; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Startreconciliation; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; const parameters = { @@ -1539,4 +1620,109 @@ export namespace servicecontrol_v1 { } } } + + export interface Params$Resource$Services$Allocatequota { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the service as specified in the service configuration. For + * example, `"pubsub.googleapis.com"`. See google.api.Service for the + * definition of a service name. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$AllocateQuotaRequest; + } + export interface Params$Resource$Services$Check { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The service name as specified in its service configuration. For example, + * `"pubsub.googleapis.com"`. See + * [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + * for the definition of a service name. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$CheckRequest; + } + export interface Params$Resource$Services$Endreconciliation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the service as specified in the service configuration. For + * example, `"pubsub.googleapis.com"`. See google.api.Service for the + * definition of a service name. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$EndReconciliationRequest; + } + export interface Params$Resource$Services$Releasequota { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the service as specified in the service configuration. For + * example, `"pubsub.googleapis.com"`. See google.api.Service for the + * definition of a service name. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$ReleaseQuotaRequest; + } + export interface Params$Resource$Services$Report { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The service name as specified in its service configuration. For example, + * `"pubsub.googleapis.com"`. See + * [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) + * for the definition of a service name. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$ReportRequest; + } + export interface Params$Resource$Services$Startreconciliation { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the service as specified in the service configuration. For + * example, `"pubsub.googleapis.com"`. See google.api.Service for the + * definition of a service name. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$StartReconciliationRequest; + } } diff --git a/src/apis/servicemanagement/v1.ts b/src/apis/servicemanagement/v1.ts index c617ab7e2df..dd55348dd05 100644 --- a/src/apis/servicemanagement/v1.ts +++ b/src/apis/servicemanagement/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace servicemanagement_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Service Management API * @@ -78,7 +81,7 @@ export namespace servicemanagement_v1 { * Useful description for why this advice was applied and what actions * should be taken to mitigate any implied risks. */ - description: string; + description?: string; } /** * Api is a light-weight descriptor for an API Interface. Interfaces are also @@ -94,29 +97,29 @@ export namespace servicemanagement_v1 { /** * The methods of this interface, in unspecified order. */ - methods: Schema$Method[]; + methods?: Schema$Method[]; /** * Included interfaces. See Mixin. */ - mixins: Schema$Mixin[]; + mixins?: Schema$Mixin[]; /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. */ - name: string; + name?: string; /** * Any metadata attached to the interface. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Source context for the protocol buffer service represented by this * message. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax of the service. */ - syntax: string; + syntax?: string; /** * A version string for this interface. If specified, must have the form * `major-version.minor-version`, as in `1.10`. If the minor version is @@ -134,7 +137,7 @@ export namespace servicemanagement_v1 { * omitted. Zero major versions must only be used for experimental, non-GA * interfaces. */ - version: string; + version?: string; } /** * Specifies the audit configuration for a service. The configuration @@ -163,13 +166,13 @@ export namespace servicemanagement_v1 { /** * The configuration for logging of each type of permission. */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -185,11 +188,11 @@ export namespace servicemanagement_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * `Authentication` defines the authentication configuration for an API. @@ -204,13 +207,13 @@ export namespace servicemanagement_v1 { /** * Defines a set of authentication providers that a service supports. */ - providers: Schema$AuthProvider[]; + providers?: Schema$AuthProvider[]; /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$AuthenticationRule[]; + rules?: Schema$AuthenticationRule[]; } /** * Authentication rules for the service. By default, if a method has any @@ -223,24 +226,24 @@ export namespace servicemanagement_v1 { /** * If true, the service accepts API keys without any other credential. */ - allowWithoutCredential: boolean; + allowWithoutCredential?: boolean; /** * Configuration for custom authentication. */ - customAuth: Schema$CustomAuthRequirements; + customAuth?: Schema$CustomAuthRequirements; /** * The requirements for OAuth credentials. */ - oauth: Schema$OAuthRequirements; + oauth?: Schema$OAuthRequirements; /** * Requirements for additional authentication providers. */ - requirements: Schema$AuthRequirement[]; + requirements?: Schema$AuthRequirement[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Configuration of authorization. This section determines the authorization @@ -253,7 +256,7 @@ export namespace servicemanagement_v1 { * The name of the authorization provider, such as * firebaserules.googleapis.com. */ - provider: string; + provider?: string; } /** * Configuration for an anthentication provider, including support for [JSON @@ -273,17 +276,17 @@ export namespace servicemanagement_v1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. */ - authorizationUrl: string; + authorizationUrl?: string; /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. Example: "bookstore_auth". */ - id: string; + id?: string; /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -291,7 +294,7 @@ export namespace servicemanagement_v1 { * https://securetoken.google.com Example: * 1234567-compute@developer.gserviceaccount.com */ - issuer: string; + issuer?: string; /** * URL of the provider's public key set to validate signature of the * JWT. See [OpenID @@ -302,7 +305,7 @@ export namespace servicemanagement_v1 { * a Google service account). Example: * https://www.googleapis.com/oauth2/v1/certs */ - jwksUri: string; + jwksUri?: string; } /** * User-defined authentication requirements, including support for [JSON Web @@ -323,12 +326,12 @@ export namespace servicemanagement_v1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * id from authentication provider. Example: provider_id: * bookstore_auth */ - providerId: string; + providerId?: string; } /** * `Backend` defines the backend configuration for a service. @@ -339,7 +342,7 @@ export namespace servicemanagement_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$BackendRule[]; + rules?: Schema$BackendRule[]; } /** * A backend rule provides configuration for an individual API element. @@ -348,23 +351,23 @@ export namespace servicemanagement_v1 { /** * The address of the API backend. */ - address: string; + address?: string; /** * The number of seconds to wait for a response from a request. The default * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 * seconds. */ - deadline: number; + deadline?: number; /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. */ - minDeadline: number; + minDeadline?: number; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Billing related configuration of the service. The following example shows @@ -385,7 +388,7 @@ export namespace servicemanagement_v1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$BillingDestination[]; + consumerDestinations?: Schema$BillingDestination[]; } /** * Configuration of a specific billing destination (Currently only support @@ -396,12 +399,12 @@ export namespace servicemanagement_v1 { * Names of the metrics to report to this billing destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * Associates `members` with a `role`. @@ -422,12 +425,12 @@ export namespace servicemanagement_v1 { * domain name that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * Change report associated with a particular service configuration. It @@ -442,7 +445,7 @@ export namespace servicemanagement_v1 { * Example: * visibility.rules[selector='LibraryService.CreateBook'].restriction */ - configChanges: Schema$ConfigChange[]; + configChanges?: Schema$ConfigChange[]; } /** * Output generated from semantically comparing two versions of a service @@ -455,11 +458,11 @@ export namespace servicemanagement_v1 { * Collection of advice provided for this change, useful for determining the * possible impact of this change. */ - advices: Schema$Advice[]; + advices?: Schema$Advice[]; /** * The type for this change, either ADDED, REMOVED, or MODIFIED. */ - changeType: string; + changeType?: string; /** * Object hierarchy path to the change, with levels separated by a * '.' character. For repeated fields, an applicable unique @@ -471,17 +474,17 @@ export namespace servicemanagement_v1 { * quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value * - logging.producer_destinations[0] */ - element: string; + element?: string; /** * Value of the changed object in the new Service configuration, in JSON * format. This field will not be populated if ChangeType == REMOVED. */ - newValue: string; + newValue?: string; /** * Value of the changed object in the old Service configuration, in JSON * format. This field will not be populated if ChangeType == ADDED. */ - oldValue: string; + oldValue?: string; } /** * Generic specification of a source configuration file @@ -490,15 +493,15 @@ export namespace servicemanagement_v1 { /** * The bytes that constitute the file. */ - fileContents: string; + fileContents?: string; /** * The file name of the configuration file (full or relative path). */ - filePath: string; + filePath?: string; /** * The type of configuration file this represents. */ - fileType: string; + fileType?: string; } /** * Represents a service configuration with its name and id. @@ -508,7 +511,7 @@ export namespace servicemanagement_v1 { * Resource name of a service config. It must have the following format: * "services/{service name}/configs/{config id}". */ - name: string; + name?: string; } /** * Represents a source file which is used to generate the service @@ -519,13 +522,13 @@ export namespace servicemanagement_v1 { * Set of source configuration files that are used to generate a service * configuration (`google.api.Service`). */ - files: Schema$ConfigFile[]; + files?: Schema$ConfigFile[]; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. */ - id: string; + id?: string; } /** * `Context` defines which contexts an API requests. Example: context: @@ -551,7 +554,7 @@ export namespace servicemanagement_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$ContextRule[]; + rules?: Schema$ContextRule[]; } /** * A context rule provides information about the context for an individual API @@ -562,25 +565,25 @@ export namespace servicemanagement_v1 { * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. */ - allowedRequestExtensions: string[]; + allowedRequestExtensions?: string[]; /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. */ - allowedResponseExtensions: string[]; + allowedResponseExtensions?: string[]; /** * A list of full type names of provided contexts. */ - provided: string[]; + provided?: string[]; /** * A list of full type names of requested contexts. */ - requested: string[]; + requested?: string[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Selects and configures the service controller used by the service. The @@ -592,7 +595,7 @@ export namespace servicemanagement_v1 { * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. */ - environment: string; + environment?: string; } /** * Configuration for a custom authentication provider. @@ -603,7 +606,7 @@ export namespace servicemanagement_v1 { * authentication provider, typically formatted as a SmartService string * (go/smartservice). */ - provider: string; + provider?: string; } /** * Customize service error responses. For example, list any service specific @@ -617,12 +620,12 @@ export namespace servicemanagement_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$CustomErrorRule[]; + rules?: Schema$CustomErrorRule[]; /** * The list of custom error detail types, e.g. * 'google.foo.v1.CustomError'. */ - types: string[]; + types?: string[]; } /** * A custom error rule. @@ -632,12 +635,12 @@ export namespace servicemanagement_v1 { * Mark this message as possible payload in error response. Otherwise, * objects of this type will be filtered when they appear in error payload. */ - isErrorType: boolean; + isErrorType?: boolean; /** * Selects messages to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * A custom pattern is used for defining custom HTTP verb. @@ -646,11 +649,11 @@ export namespace servicemanagement_v1 { /** * The name of this custom HTTP verb. */ - kind: string; + kind?: string; /** * The path matched by this custom verb. */ - path: string; + path?: string; } /** * Strategy used to delete a service. This strategy is a placeholder only used @@ -664,15 +667,15 @@ export namespace servicemanagement_v1 { /** * The kind of diagnostic information provided. */ - kind: string; + kind?: string; /** * File name and line number of the error or warning. */ - location: string; + location?: string; /** * Message describing the error or warning. */ - message: string; + message?: string; } /** * Request message for DisableService method. @@ -684,7 +687,7 @@ export namespace servicemanagement_v1 { * following forms: - "project:<project_id>" Note: this is * made compatible with google.api.servicecontrol.v1.Operation.consumer_id. */ - consumerId: string; + consumerId?: string; } /** * `Documentation` provides the information for describing a service. Example: @@ -728,7 +731,7 @@ export namespace servicemanagement_v1 { /** * The URL to the root of documentation. */ - documentationRootUrl: string; + documentationRootUrl?: string; /** * Declares a single overview page. For example: * <pre><code>documentation: summary: ... overview: @@ -739,22 +742,22 @@ export namespace servicemanagement_v1 { * </code></pre> Note: you cannot specify both `overview` field * and `pages` field. */ - overview: string; + overview?: string; /** * The top level pages for the documentation set. */ - pages: Schema$Page[]; + pages?: Schema$Page[]; /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$DocumentationRule[]; + rules?: Schema$DocumentationRule[]; /** * A short summary of what the service does. Can only be provided by plain * text. */ - summary: string; + summary?: string; } /** * A documentation rule provides information about individual API elements. @@ -764,11 +767,11 @@ export namespace servicemanagement_v1 { * Deprecation description of the selected element(s). It can be provided if * an element is marked as `deprecated`. */ - deprecationDescription: string; + deprecationDescription?: string; /** * Description of the selected API(s). */ - description: string; + description?: string; /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating @@ -777,7 +780,7 @@ export namespace servicemanagement_v1 { * "foo.b*" or "foo.*.bar". To specify a default for all * applicable elements, the whole pattern "*" is used. */ - selector: string; + selector?: string; } /** * Request message for EnableService method. @@ -789,7 +792,7 @@ export namespace servicemanagement_v1 { * following forms: - "project:<project_id>" Note: this is * made compatible with google.api.servicecontrol.v1.Operation.consumer_id. */ - consumerId: string; + consumerId?: string; } /** * `Endpoint` describes a network endpoint that serves a set of APIs. A @@ -809,7 +812,7 @@ export namespace servicemanagement_v1 { * please specify multiple google.api.Endpoint for each of the intended * aliases. Additional names that this endpoint will be hosted on. */ - aliases: string[]; + aliases?: string[]; /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka @@ -818,15 +821,15 @@ export namespace servicemanagement_v1 { * used by the browser to determine whether the subsequent cross-origin * request is allowed to proceed. */ - allowCors: boolean; + allowCors?: boolean; /** * The list of features enabled on this endpoint. */ - features: string[]; + features?: string[]; /** * The canonical name of this endpoint. */ - name: string; + name?: string; /** * The specification of an Internet routable address of API frontend that * will handle requests to this [API @@ -834,7 +837,7 @@ export namespace servicemanagement_v1 { * either a valid IPv4 address or a fully-qualified domain name. For * example, "8.8.8.8" or "myservice.appspot.com". */ - target: string; + target?: string; } /** * Enum type definition. @@ -843,23 +846,23 @@ export namespace servicemanagement_v1 { /** * Enum value definitions. */ - enumvalue: Schema$EnumValue[]; + enumvalue?: Schema$EnumValue[]; /** * Enum type name. */ - name: string; + name?: string; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Enum value definition. @@ -868,15 +871,15 @@ export namespace servicemanagement_v1 { /** * Enum value name. */ - name: string; + name?: string; /** * Enum value number. */ - number: number; + number?: number; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; } /** * Experimental service configuration. These configuration options can only be @@ -886,7 +889,7 @@ export namespace servicemanagement_v1 { /** * Authorization configuration. */ - authorization: Schema$AuthorizationConfig; + authorization?: Schema$AuthorizationConfig; } /** * A single field of a message type. @@ -895,46 +898,46 @@ export namespace servicemanagement_v1 { /** * The field cardinality. */ - cardinality: string; + cardinality?: string; /** * The string value of the default value of this field. Proto2 syntax only. */ - defaultValue: string; + defaultValue?: string; /** * The field JSON name. */ - jsonName: string; + jsonName?: string; /** * The field type. */ - kind: string; + kind?: string; /** * The field name. */ - name: string; + name?: string; /** * The field number. */ - number: number; + number?: number; /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the * list. */ - oneofIndex: number; + oneofIndex?: number; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Whether to use alternative packed wire representation. */ - packed: boolean; + packed?: boolean; /** * The field type URL, without the scheme, for message or enumeration types. * Example: `"type.googleapis.com/google.protobuf.Timestamp"`. */ - typeUrl: string; + typeUrl?: string; } /** * Request message for GenerateConfigReport method. @@ -946,14 +949,14 @@ export namespace servicemanagement_v1 { * google.api.servicemanagement.v1.ConfigRef, * google.api.servicemanagement.v1.ConfigSource, and google.api.Service */ - newConfig: any; + newConfig?: any; /** * Service configuration against which the comparison will be done. For this * version of API, the supported types are * google.api.servicemanagement.v1.ConfigRef, * google.api.servicemanagement.v1.ConfigSource, and google.api.Service */ - oldConfig: any; + oldConfig?: any; } /** * Response message for GenerateConfigReport method. @@ -963,20 +966,20 @@ export namespace servicemanagement_v1 { * list of ChangeReport, each corresponding to comparison between two * service configurations. */ - changeReports: Schema$ChangeReport[]; + changeReports?: Schema$ChangeReport[]; /** * Errors / Linter warnings associated with the service definition this * report belongs to. */ - diagnostics: Schema$Diagnostic[]; + diagnostics?: Schema$Diagnostic[]; /** * ID of the service configuration this report belongs to. */ - id: string; + id?: string; /** * Name of the service this report belongs to. */ - serviceName: string; + serviceName?: string; } /** * Request message for `GetIamPolicy` method. @@ -994,13 +997,13 @@ export namespace servicemanagement_v1 { * "%2F" will be left encoded. The default behavior is to not * decode RFC 6570 reserved characters in multi segment matches. */ - fullyDecodeReservedExpansion: boolean; + fullyDecodeReservedExpansion?: boolean; /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$HttpRule[]; + rules?: Schema$HttpRule[]; } /** * `HttpRule` defines the mapping of an RPC method to one or more HTTP REST @@ -1127,58 +1130,58 @@ export namespace servicemanagement_v1 { * contain an `additional_bindings` field themselves (that is, the nesting * may only be one level deep). */ - additionalBindings: Schema$HttpRule[]; + additionalBindings?: Schema$HttpRule[]; /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. */ - body: string; + body?: string; /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave * the HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. */ - custom: Schema$CustomHttpPattern; + custom?: Schema$CustomHttpPattern; /** * Used for deleting a resource. */ - delete: string; + delete?: string; /** * Used for listing and getting information about resources. */ - get: string; + get?: string; /** * Use this only for Scotty Requests. Do not use this for bytestream * methods. For media support, add instead * [][google.bytestream.RestByteStream] as an API to your configuration. */ - mediaDownload: Schema$MediaDownload; + mediaDownload?: Schema$MediaDownload; /** * Use this only for Scotty Requests. Do not use this for media support * using Bytestream, add instead [][google.bytestream.RestByteStream] as an * API to your configuration for Bytestream methods. */ - mediaUpload: Schema$MediaUpload; + mediaUpload?: Schema$MediaUpload; /** * Used for updating a resource. */ - patch: string; + patch?: string; /** * Used for creating a resource. */ - post: string; + post?: string; /** * Used for updating a resource. */ - put: string; + put?: string; /** * Selects methods to which this rule applies. Refer to selector for syntax * details. */ - selector: string; + selector?: string; } /** * A description of a label. @@ -1187,15 +1190,15 @@ export namespace servicemanagement_v1 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * The response message for Operations.ListOperations. @@ -1204,11 +1207,11 @@ export namespace servicemanagement_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response message for ListServiceConfigs method. @@ -1217,11 +1220,11 @@ export namespace servicemanagement_v1 { /** * The token of the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of service configuration resources. */ - serviceConfigs: Schema$Service[]; + serviceConfigs?: Schema$Service[]; } /** * Response message for ListServiceRollouts method. @@ -1230,11 +1233,11 @@ export namespace servicemanagement_v1 { /** * The token of the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of rollout resources. */ - rollouts: Schema$Rollout[]; + rollouts?: Schema$Rollout[]; } /** * Response message for `ListServices` method. @@ -1243,11 +1246,11 @@ export namespace servicemanagement_v1 { /** * Token that can be passed to `ListServices` to resume a paginated query. */ - nextPageToken: string; + nextPageToken?: string; /** * The returned services will only have the name field set. */ - services: Schema$ManagedService[]; + services?: Schema$ManagedService[]; } /** * A description of a log type. Example in YAML format: - name: @@ -1260,25 +1263,25 @@ export namespace servicemanagement_v1 { * A human-readable description of this log. This information appears in the * documentation and can contain details. */ - description: string; + description?: string; /** * The human-readable name for this log. This information appears on the * user interface and should be concise. */ - displayName: string; + displayName?: string; /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are considered * invalid. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including slash, * underscore, hyphen, period [/_-.]. */ - name: string; + name?: string; } /** * Logging configuration of the service. The following example shows how to @@ -1302,14 +1305,14 @@ export namespace servicemanagement_v1 { * monitored resource type. A log can be used in at most one consumer * destination. */ - consumerDestinations: Schema$LoggingDestination[]; + consumerDestinations?: Schema$LoggingDestination[]; /** * Logging configurations for sending logs to the producer project. There * can be multiple producer destinations, each one must have a different * monitored resource type. A log can be used in at most one producer * destination. */ - producerDestinations: Schema$LoggingDestination[]; + producerDestinations?: Schema$LoggingDestination[]; } /** * Configuration of a specific logging destination (the producer project or @@ -1322,12 +1325,12 @@ export namespace servicemanagement_v1 { * scoped name, it will be automatically prefixed with the service name * followed by "/". */ - logs: string[]; + logs?: string[]; /** * The monitored resource type. The type must be defined in the * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * The full representation of a Service that is managed by Google Service @@ -1337,12 +1340,12 @@ export namespace servicemanagement_v1 { /** * ID of the project that produces and owns this service. */ - producerProjectId: string; + producerProjectId?: string; /** * The name of the service. See the [overview](/service-management/overview) * for naming requirements. */ - serviceName: string; + serviceName?: string; } /** * Defines the Media configuration for a service in case of a download. Use @@ -1355,30 +1358,30 @@ export namespace servicemanagement_v1 { * A boolean that determines whether a notification for the completion of a * download should be sent to the backend. */ - completeNotification: boolean; + completeNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the download service if one is used for download. */ - downloadService: string; + downloadService?: string; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether download is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for direct download. The size is * specified in bytes. */ - maxDirectDownloadSize: string; + maxDirectDownloadSize?: string; /** * A boolean that determines if direct download from ESF should be used for * download of this media. */ - useDirectDownload: boolean; + useDirectDownload?: boolean; } /** * Defines the Media configuration for a service in case of an upload. Use @@ -1392,38 +1395,38 @@ export namespace servicemanagement_v1 { * upload should be sent to the backend. These notifications will not be * seen by the client and will not consume quota. */ - completeNotification: boolean; + completeNotification?: boolean; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether upload is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for an upload. The size is specified in * bytes. */ - maxSize: string; + maxSize?: string; /** * An array of mimetype patterns. Esf will only accept uploads that match * one of the given patterns. */ - mimeTypes: string[]; + mimeTypes?: string[]; /** * Whether to receive a notification for progress changes of media upload. */ - progressNotification: boolean; + progressNotification?: boolean; /** * Whether to receive a notification on the start of media upload. */ - startNotification: boolean; + startNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the upload service if one is used for upload. */ - uploadService: string; + uploadService?: string; } /** * Method represents a method of an API interface. @@ -1432,31 +1435,31 @@ export namespace servicemanagement_v1 { /** * The simple name of this method. */ - name: string; + name?: string; /** * Any metadata attached to the method. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * If true, the request is streamed. */ - requestStreaming: boolean; + requestStreaming?: boolean; /** * A URL of the input message type. */ - requestTypeUrl: string; + requestTypeUrl?: string; /** * If true, the response is streamed. */ - responseStreaming: boolean; + responseStreaming?: boolean; /** * The URL of the output message type. */ - responseTypeUrl: string; + responseTypeUrl?: string; /** * The source syntax of this method. */ - syntax: string; + syntax?: string; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -1467,14 +1470,14 @@ export namespace servicemanagement_v1 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -1482,17 +1485,17 @@ export namespace servicemanagement_v1 { * a label for the HTTP response code, `response_code`, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be * supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -1501,7 +1504,7 @@ export namespace servicemanagement_v1 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * The unit in which the metric value is reported. It is only applicable if * the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported @@ -1530,12 +1533,12 @@ export namespace servicemanagement_v1 { * value 1, such as in `1/s`. * `%` represents dimensionless value 1/100, * and annotates values giving a percentage. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of `metric_kind` and `value_type` might not be supported. */ - valueType: string; + valueType?: string; } /** * Bind API methods to metrics. Binding a method to a metric causes that @@ -1548,12 +1551,12 @@ export namespace servicemanagement_v1 { * name, and the values are the amount increased for the metric against * which the quota limits are defined. The value must not be negative. */ - metricCosts: any; + metricCosts?: any; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Declares an API Interface to be included in this interface. The including @@ -1596,12 +1599,12 @@ export namespace servicemanagement_v1 { /** * The fully qualified name of the interface which is included. */ - name: string; + name?: string; /** * If non-empty specifies a path under which inherited HTTP paths are * rooted. */ - root: string; + root?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -1618,21 +1621,21 @@ export namespace servicemanagement_v1 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, `"Google * Cloud SQL Database"`. */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and * `"zone"`. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` @@ -1641,13 +1644,13 @@ export namespace servicemanagement_v1 { * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; } /** * Monitoring configuration of the service. The example below shows how to @@ -1678,14 +1681,14 @@ export namespace servicemanagement_v1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$MonitoringDestination[]; + consumerDestinations?: Schema$MonitoringDestination[]; /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most one * producer destination. */ - producerDestinations: Schema$MonitoringDestination[]; + producerDestinations?: Schema$MonitoringDestination[]; } /** * Configuration of a specific monitoring destination (the producer project or @@ -1696,12 +1699,12 @@ export namespace servicemanagement_v1 { * Names of the metrics to report to this monitoring destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * OAuth scopes are a way to define data and permissions on data. For example, @@ -1726,7 +1729,7 @@ export namespace servicemanagement_v1 { * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read */ - canonicalScopes: string; + canonicalScopes?: string; } /** * This resource represents a long-running operation that is the result of a @@ -1738,24 +1741,24 @@ export namespace servicemanagement_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1765,7 +1768,7 @@ export namespace servicemanagement_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The metadata associated with a long running operation resource. @@ -1774,20 +1777,20 @@ export namespace servicemanagement_v1 { /** * Percentage of completion of this operation, ranging from 0 to 100. */ - progressPercentage: number; + progressPercentage?: number; /** * The full name of the resources that this operation is directly associated * with. */ - resourceNames: string[]; + resourceNames?: string[]; /** * The start time of the operation. */ - startTime: string; + startTime?: string; /** * Detailed status information for each step. The order is undetermined. */ - steps: Schema$Step[]; + steps?: Schema$Step[]; } /** * A protocol buffer option, which can be attached to a message, field, @@ -1800,7 +1803,7 @@ export namespace servicemanagement_v1 { * `"map_entry"`. For custom options, it should be the * fully-qualified name. For example, `"google.api.http"`. */ - name: string; + name?: string; /** * The option's value packed in an Any message. If the value is a * primitive, the corresponding wrapper type defined in @@ -1808,7 +1811,7 @@ export namespace servicemanagement_v1 { * it should be stored as an int32 value using the * google.protobuf.Int32Value type. */ - value: any; + value?: any; } /** * Represents a documentation page. A page can contain subpages to represent @@ -1820,7 +1823,7 @@ export namespace servicemanagement_v1 { * include {path} ==&#41;</code> to include content from a * Markdown file. */ - content: string; + content?: string; /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, @@ -1832,12 +1835,12 @@ export namespace servicemanagement_v1 { * ==&#41; </code></pre> You can reference `Java` page using * Markdown reference link syntax: `Java`. */ - name: string; + name?: string; /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. */ - subpages: Schema$Page[]; + subpages?: Schema$Page[]; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -1863,12 +1866,12 @@ export namespace servicemanagement_v1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -1880,11 +1883,11 @@ export namespace servicemanagement_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Quota configuration helps to achieve fairness and budgeting in service @@ -1914,12 +1917,12 @@ export namespace servicemanagement_v1 { /** * List of `QuotaLimit` definitions for the service. */ - limits: Schema$QuotaLimit[]; + limits?: Schema$QuotaLimit[]; /** * List of `MetricRule` definitions, each one mapping a selected method to * one or more metrics. */ - metricRules: Schema$MetricRule[]; + metricRules?: Schema$MetricRule[]; } /** * `QuotaLimit` defines a specific limit that applies over a specified @@ -1936,20 +1939,20 @@ export namespace servicemanagement_v1 { * will indicate an unlimited quota. No other negative values are allowed. * Used by group-based quotas only. */ - defaultLimit: string; + defaultLimit?: string; /** * Optional. User-visible, extended description for this quota limit. Should * be used only when more context is needed to understand this limit than * provided by the limit's display name (see: `display_name`). */ - description: string; + description?: string; /** * User-visible display name for this limit. Optional. If not set, the UI * will provide a default display name based on the quota configuration. * This field can be used to override the default display name generated * from the configuration. */ - displayName: string; + displayName?: string; /** * Duration of this limit in textual notation. Example: "100s", * "24h", "1d". For duration longer than a day, only @@ -1958,7 +1961,7 @@ export namespace servicemanagement_v1 { * "0" indicates indefinite duration. Used by group-based quotas * only. */ - duration: string; + duration?: string; /** * Free tier value displayed in the Developers Console for this limit. The * free tier is the number of tokens that will be subtracted from the billed @@ -1967,7 +1970,7 @@ export namespace servicemanagement_v1 { * other limit. If this field is not set, it defaults to 0, indicating that * there is no free tier for this service. Used by group-based quotas only. */ - freeTier: string; + freeTier?: string; /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up @@ -1976,20 +1979,20 @@ export namespace servicemanagement_v1 { * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. Used by group-based quotas only. */ - maxLimit: string; + maxLimit?: string; /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must * be defined within the service config. */ - metric: string; + metric?: string; /** * Name of the quota limit. The name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. The maximum length of the limit name * is 64 characters. */ - name: string; + name?: string; /** * Specify the unit of the quota limit. It uses the same syntax as * Metric.unit. The supported unit kinds are determined by the quota backend @@ -1998,13 +2001,13 @@ export namespace servicemanagement_v1 { * insignificant. The "1" at the beginning is required to follow * the metric unit syntax. */ - unit: string; + unit?: string; /** * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. */ - values: any; + values?: any; } /** * A rollout resource that defines how service configuration versions are @@ -2015,16 +2018,16 @@ export namespace servicemanagement_v1 { /** * The user who created the Rollout. Readonly. */ - createdBy: string; + createdBy?: string; /** * Creation time of the rollout. Readonly. */ - createTime: string; + createTime?: string; /** * The strategy associated with a rollout to delete a `ManagedService`. * Readonly. */ - deleteServiceStrategy: Schema$DeleteServiceStrategy; + deleteServiceStrategy?: Schema$DeleteServiceStrategy; /** * Optional unique identifier of this Rollout. Only lower case letters, * digits and '-' are allowed. If not specified by client, the @@ -2034,22 +2037,22 @@ export namespace servicemanagement_v1 { * increasing positive number that is reset every day for each service. An * example of the generated rollout_id is '2016-02-16r1' */ - rolloutId: string; + rolloutId?: string; /** * The name of the service associated with this Rollout. */ - serviceName: string; + serviceName?: string; /** * The status of this rollout. Readonly. In case of a failed rollout, the * system will automatically rollback to the current Rollout version. * Readonly. */ - status: string; + status?: string; /** * Google Service Control selects service configurations based on traffic * percentage. */ - trafficPercentStrategy: Schema$TrafficPercentStrategy; + trafficPercentStrategy?: Schema$TrafficPercentStrategy; } /** * `Service` is the root object of Google service configuration schema. It @@ -2073,111 +2076,111 @@ export namespace servicemanagement_v1 { * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. */ - apis: Schema$Api[]; + apis?: Schema$Api[]; /** * Auth configuration. */ - authentication: Schema$Authentication; + authentication?: Schema$Authentication; /** * API backend configuration. */ - backend: Schema$Backend; + backend?: Schema$Backend; /** * Billing configuration. */ - billing: Schema$Billing; + billing?: Schema$Billing; /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. The * latest config version is `3`. */ - configVersion: number; + configVersion?: number; /** * Context configuration. */ - context: Schema$Context; + context?: Schema$Context; /** * Configuration for the service control plane. */ - control: Schema$Control; + control?: Schema$Control; /** * Custom error configuration. */ - customError: Schema$CustomError; + customError?: Schema$CustomError; /** * Additional API documentation. */ - documentation: Schema$Documentation; + documentation?: Schema$Documentation; /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service * all defined APIs. */ - endpoints: Schema$Endpoint[]; + endpoints?: Schema$Endpoint[]; /** * A list of all enum types included in this API service. Enums referenced * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name. Example: enums: - name: google.someapi.v1.SomeEnum */ - enums: Schema$Enum[]; + enums?: Schema$Enum[]; /** * Experimental configuration. */ - experimental: Schema$Experimental; + experimental?: Schema$Experimental; /** * HTTP configuration. */ - http: Schema$Http; + http?: Schema$Http; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. */ - id: string; + id?: string; /** * Logging configuration. */ - logging: Schema$Logging; + logging?: Schema$Logging; /** * Defines the logs used by this service. */ - logs: Schema$LogDescriptor[]; + logs?: Schema$LogDescriptor[]; /** * Defines the metrics used by this service. */ - metrics: Schema$MetricDescriptor[]; + metrics?: Schema$MetricDescriptor[]; /** * Defines the monitored resources used by this service. This is required by * the Service.monitoring and Service.logging configurations. */ - monitoredResources: Schema$MonitoredResourceDescriptor[]; + monitoredResources?: Schema$MonitoredResourceDescriptor[]; /** * Monitoring configuration. */ - monitoring: Schema$Monitoring; + monitoring?: Schema$Monitoring; /** * The DNS address at which this service is available, e.g. * `calendar.googleapis.com`. */ - name: string; + name?: string; /** * The Google project that owns this service. */ - producerProjectId: string; + producerProjectId?: string; /** * Quota configuration. */ - quota: Schema$Quota; + quota?: Schema$Quota; /** * Output only. The source information for this configuration if available. */ - sourceInfo: Schema$SourceInfo; + sourceInfo?: Schema$SourceInfo; /** * System parameter configuration. */ - systemParameters: Schema$SystemParameters; + systemParameters?: Schema$SystemParameters; /** * A list of all proto message types included in this API service. It serves * similar purpose as [google.api.Service.types], except that these types @@ -2185,11 +2188,11 @@ export namespace servicemanagement_v1 { * the generated discovery doc. This field should only be used to define * system APIs in ESF. */ - systemTypes: Schema$Type[]; + systemTypes?: Schema$Type[]; /** * The product title for this service. */ - title: string; + title?: string; /** * A list of all proto message types included in this API service. Types * referenced directly or indirectly by the `apis` are automatically @@ -2197,11 +2200,11 @@ export namespace servicemanagement_v1 { * as types used by the `google.protobuf.Any` type, should be listed here by * name. Example: types: - name: google.protobuf.Int32 */ - types: Schema$Type[]; + types?: Schema$Type[]; /** * Configuration controlling usage of this service. */ - usage: Schema$Usage; + usage?: Schema$Usage; } /** * Request message for `SetIamPolicy` method. @@ -2213,14 +2216,14 @@ export namespace servicemanagement_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * `SourceContext` represents information about the source of a protobuf @@ -2232,7 +2235,7 @@ export namespace servicemanagement_v1 { * protobuf element. For example: * `"google/protobuf/source_context.proto"`. */ - fileName: string; + fileName?: string; } /** * Source information used to create a Service Config @@ -2241,7 +2244,7 @@ export namespace servicemanagement_v1 { /** * All files used during config generation. */ - sourceFiles: any[]; + sourceFiles?: any[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -2283,18 +2286,18 @@ export namespace servicemanagement_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents the status of one operation step. @@ -2303,11 +2306,11 @@ export namespace servicemanagement_v1 { /** * The short description of the step. */ - description: string; + description?: string; /** * The status code. */ - status: string; + status?: string; } /** * Request message for SubmitConfigSource method. @@ -2316,13 +2319,13 @@ export namespace servicemanagement_v1 { /** * The source configuration for the service. */ - configSource: Schema$ConfigSource; + configSource?: Schema$ConfigSource; /** * Optional. If set, this will result in the generation of a * `google.api.Service` configuration based on the `ConfigSource` provided, * but the generated config and the sources will NOT be persisted. */ - validateOnly: boolean; + validateOnly?: boolean; } /** * Response message for SubmitConfigSource method. @@ -2331,7 +2334,7 @@ export namespace servicemanagement_v1 { /** * The generated service configuration. */ - serviceConfig: Schema$Service; + serviceConfig?: Schema$Service; } /** * Define a parameter's name and location. The parameter may be passed as @@ -2343,17 +2346,17 @@ export namespace servicemanagement_v1 { * Define the HTTP header name to use for the parameter. It is case * insensitive. */ - httpHeader: string; + httpHeader?: string; /** * Define the name of the parameter, such as "api_key" . It is * case sensitive. */ - name: string; + name?: string; /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. */ - urlQueryParameter: string; + urlQueryParameter?: string; } /** * Define a system parameter rule mapping system parameter definitions to @@ -2366,12 +2369,12 @@ export namespace servicemanagement_v1 { * used the behavior is implementation-dependent. If none of the specified * names are present the behavior is parameter-dependent. */ - parameters: Schema$SystemParameter[]; + parameters?: Schema$SystemParameter[]; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; } /** * ### System parameter configuration A system parameter is a special kind of @@ -2395,7 +2398,7 @@ export namespace servicemanagement_v1 { * http_header: Api-Key2 **NOTE:** All service configuration rules follow * "last one wins" order. */ - rules: Schema$SystemParameterRule[]; + rules?: Schema$SystemParameterRule[]; } /** * Request message for `TestIamPermissions` method. @@ -2407,7 +2410,7 @@ export namespace servicemanagement_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -2417,7 +2420,7 @@ export namespace servicemanagement_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * Strategy that specifies how clients of Google Service Controller want to @@ -2440,7 +2443,7 @@ export namespace servicemanagement_v1 { * Key is the service configuration ID, Value is the traffic percentage * which must be greater than 0.0 and the sum must equal to 100.0. */ - percentages: any; + percentages?: any; } /** * A protocol buffer message type. @@ -2449,27 +2452,27 @@ export namespace servicemanagement_v1 { /** * The list of fields. */ - fields: Schema$Field[]; + fields?: Schema$Field[]; /** * The fully qualified message name. */ - name: string; + name?: string; /** * The list of types appearing in `oneof` definitions in this type. */ - oneofs: string[]; + oneofs?: string[]; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Response message for UndeleteService method. @@ -2478,7 +2481,7 @@ export namespace servicemanagement_v1 { /** * Revived service resource. */ - service: Schema$ManagedService; + service?: Schema$ManagedService; } /** * Configuration controlling usage of a service. @@ -2492,19 +2495,19 @@ export namespace servicemanagement_v1 { * name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name * format documented in https://cloud.google.com/pubsub/docs/overview. */ - producerNotificationChannel: string; + producerNotificationChannel?: string; /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form * <service.name>/<requirement-id>; for example * 'serviceusage.googleapis.com/billing-enabled'. */ - requirements: string[]; + requirements?: string[]; /** * A list of usage rules that apply to individual API methods. **NOTE:** * All service configuration rules follow "last one wins" order. */ - rules: Schema$UsageRule[]; + rules?: Schema$UsageRule[]; } /** * Usage configuration rules for the service. NOTE: Under development. Use @@ -2525,21 +2528,22 @@ export namespace servicemanagement_v1 { * If true, the selected method allows unregistered calls, e.g. calls that * don't identify any user or application. */ - allowUnregisteredCalls: boolean; + allowUnregisteredCalls?: boolean; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. This * flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. */ - skipServiceControl: boolean; + skipServiceControl?: boolean; } + export class Resource$Operations { root: Servicemanagement; constructor(root: Servicemanagement) { @@ -2566,23 +2570,34 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2621,28 +2636,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2665,6 +2690,56 @@ export namespace servicemanagement_v1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A string for filtering Operations. The following filter fields are + * supported: * serviceName: Required. Only `=` operator is + * allowed. * startTime: The time this job was started, in ISO 8601 + * format. Allowed operators are `>=`, `>`, `<=`, and `<`. * + * status: Can be `done`, `in_progress`, or `failed`. Allowed operators + * are `=`, and `!=`. Filter expression supports conjunction (AND) and + * disjunction (OR) logical operators. However, the serviceName + * restriction must be at the top-level and can only be combined with + * other restrictions via the AND logical operator. Examples: * + * `serviceName={some-service}.googleapis.com` * + * `serviceName={some-service}.googleapis.com AND startTime>="2017-02-01"` + * * `serviceName={some-service}.googleapis.com AND status=done` * + * `serviceName={some-service}.googleapis.com AND (status=done OR + * startTime>="2017-02-01")` + */ + filter?: string; + /** + * Not used. + */ + name?: string; + /** + * The maximum number of operations to return. If unspecified, defaults + * to 50. The maximum value is 100. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Services { root: Servicemanagement; configs: Resource$Services$Configs; @@ -2696,26 +2771,37 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create(params?: Params$Resource$Services$Create, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Services$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2754,26 +2840,37 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Services$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Services$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2813,26 +2910,37 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disable(params?: any, options?: MethodOptions): + disable(params?: Params$Resource$Services$Disable, options?: MethodOptions): AxiosPromise; disable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Disable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + disable( + params: Params$Resource$Services$Disable, + callback: BodyResponseCallback): void; + disable(callback: BodyResponseCallback): void; disable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Disable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Disable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Disable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2871,26 +2979,37 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enable(params?: any, options?: MethodOptions): + enable(params?: Params$Resource$Services$Enable, options?: MethodOptions): AxiosPromise; enable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Enable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enable( + params: Params$Resource$Services$Enable, + callback: BodyResponseCallback): void; + enable(callback: BodyResponseCallback): void; enable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Enable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Enable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Enable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2935,29 +3054,45 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - generateConfigReport(params?: any, options?: MethodOptions): + generateConfigReport( + params?: Params$Resource$Services$Generateconfigreport, + options?: MethodOptions): AxiosPromise; generateConfigReport( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Generateconfigreport, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + generateConfigReport( + params: Params$Resource$Services$Generateconfigreport, + callback: BodyResponseCallback): + void; + generateConfigReport( + callback: BodyResponseCallback): void; generateConfigReport( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Generateconfigreport| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Generateconfigreport; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Generateconfigreport; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -2996,24 +3131,34 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Services$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Services$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Services$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Services$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3051,26 +3196,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getConfig(params?: any, options?: MethodOptions): - AxiosPromise; getConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Getconfig, + options?: MethodOptions): AxiosPromise; + getConfig( + params: Params$Resource$Services$Getconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getConfig( + params: Params$Resource$Services$Getconfig, + callback: BodyResponseCallback): void; + getConfig(callback: BodyResponseCallback): void; getConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Getconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Getconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Getconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3108,26 +3265,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Services$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Services$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3171,28 +3340,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Services$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Services$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3229,26 +3408,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Services$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Services$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3289,29 +3480,45 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Services$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Services$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Services$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3351,26 +3558,39 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Services$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Services$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3393,6 +3613,195 @@ export namespace servicemanagement_v1 { } } } + + export interface Params$Resource$Services$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$ManagedService; + } + export interface Params$Resource$Services$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + } + export interface Params$Resource$Services$Disable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the service to disable. Specifying an unknown service name will + * cause the request to fail. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$DisableServiceRequest; + } + export interface Params$Resource$Services$Enable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the service to enable. Specifying an unknown service name will + * cause the request to fail. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$EnableServiceRequest; + } + export interface Params$Resource$Services$Generateconfigreport { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GenerateConfigReportRequest; + } + export interface Params$Resource$Services$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the service. See the `ServiceManager` overview for naming + * requirements. For example: `example.googleapis.com`. + */ + serviceName?: string; + } + export interface Params$Resource$Services$Getconfig { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of the service configuration resource. + */ + configId?: string; + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + /** + * Specifies which parts of the Service Config should be returned in the + * response. + */ + view?: string; + } + export interface Params$Resource$Services$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Include services consumed by the specified consumer. The Google Service + * Management implementation accepts the following forms: - + * project: + */ + consumerId?: string; + /** + * Requested size of the next page of data. + */ + pageSize?: number; + /** + * Token identifying which result to start with; returned by a previous list + * call. + */ + pageToken?: string; + /** + * Include services produced by the specified project. + */ + producerProjectId?: string; + } + export interface Params$Resource$Services$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Services$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Services$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the service. See the [overview](/service-management/overview) + * for naming requirements. For example: `example.googleapis.com`. + */ + serviceName?: string; + } + export class Resource$Services$Configs { root: Servicemanagement; constructor(root: Servicemanagement) { @@ -3423,25 +3832,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Configs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Services$Configs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Configs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Services$Configs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Configs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Configs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3479,23 +3901,34 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Services$Configs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Services$Configs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Services$Configs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Services$Configs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Configs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Configs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3534,29 +3967,44 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Services$Configs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Configs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Services$Configs$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Configs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Configs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Configs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3601,26 +4049,39 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - submit(params?: any, options?: MethodOptions): - AxiosPromise; submit( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Configs$Submit, + options?: MethodOptions): AxiosPromise; submit( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Configs$Submit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + submit( + params: Params$Resource$Services$Configs$Submit, + callback: BodyResponseCallback): void; + submit(callback: BodyResponseCallback): void; + submit( + paramsOrCallback?: Params$Resource$Services$Configs$Submit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Configs$Submit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Configs$Submit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3644,6 +4105,85 @@ export namespace servicemanagement_v1 { } } + export interface Params$Resource$Services$Configs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$Service; + } + export interface Params$Resource$Services$Configs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of the service configuration resource. + */ + configId?: string; + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + /** + * Specifies which parts of the Service Config should be returned in the + * response. + */ + view?: string; + } + export interface Params$Resource$Services$Configs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The max number of items to include in the response list. + */ + pageSize?: number; + /** + * The token of the page to retrieve. + */ + pageToken?: string; + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + } + export interface Params$Resource$Services$Configs$Submit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$SubmitConfigSourceRequest; + } + + export class Resource$Services$Consumers { root: Servicemanagement; constructor(root: Servicemanagement) { @@ -3670,26 +4210,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Consumers$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Services$Consumers$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Services$Consumers$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Consumers$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Consumers$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Consumers$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3727,26 +4279,38 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Consumers$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Services$Consumers$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Consumers$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Services$Consumers$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Consumers$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Consumers$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3787,29 +4351,46 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Services$Consumers$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Consumers$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Services$Consumers$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Services$Consumers$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Services$Consumers$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Consumers$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3834,6 +4415,56 @@ export namespace servicemanagement_v1 { } } + export interface Params$Resource$Services$Consumers$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Services$Consumers$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Services$Consumers$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + + export class Resource$Services$Rollouts { root: Servicemanagement; constructor(root: Servicemanagement) { @@ -3868,26 +4499,39 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Rollouts$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Services$Rollouts$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Rollouts$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Services$Rollouts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Rollouts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Rollouts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3924,23 +4568,34 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Services$Rollouts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Services$Rollouts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Services$Rollouts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Services$Rollouts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Rollouts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Rollouts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -3980,29 +4635,44 @@ export namespace servicemanagement_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Services$Rollouts$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Rollouts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Services$Rollouts$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Rollouts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Rollouts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Rollouts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; const parameters = { @@ -4026,4 +4696,69 @@ export namespace servicemanagement_v1 { } } } + + export interface Params$Resource$Services$Rollouts$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + /** + * Request body metadata + */ + resource?: Schema$Rollout; + } + export interface Params$Resource$Services$Rollouts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of the rollout resource. + */ + rolloutId?: string; + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + } + export interface Params$Resource$Services$Rollouts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Use `filter` to return subset of rollouts. The following filters are + * supported: -- To limit the results to only those in + * [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', use + * filter='status=SUCCESS' -- To limit the results to those in + * [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' or + * 'FAILED', use filter='status=CANCELLED OR status=FAILED' + */ + filter?: string; + /** + * The max number of items to include in the response list. + */ + pageSize?: number; + /** + * The token of the page to retrieve. + */ + pageToken?: string; + /** + * The name of the service. See the + * [overview](/service-management/overview) for naming requirements. For + * example: `example.googleapis.com`. + */ + serviceName?: string; + } } diff --git a/src/apis/serviceusage/v1beta1.ts b/src/apis/serviceusage/v1beta1.ts index 6b40ebf3553..0aa644bea13 100644 --- a/src/apis/serviceusage/v1beta1.ts +++ b/src/apis/serviceusage/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace serviceusage_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Service Usage API * @@ -83,29 +86,29 @@ export namespace serviceusage_v1beta1 { /** * The methods of this interface, in unspecified order. */ - methods: Schema$Method[]; + methods?: Schema$Method[]; /** * Included interfaces. See Mixin. */ - mixins: Schema$Mixin[]; + mixins?: Schema$Mixin[]; /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. */ - name: string; + name?: string; /** * Any metadata attached to the interface. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Source context for the protocol buffer service represented by this * message. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax of the service. */ - syntax: string; + syntax?: string; /** * A version string for this interface. If specified, must have the form * `major-version.minor-version`, as in `1.10`. If the minor version is @@ -123,7 +126,7 @@ export namespace serviceusage_v1beta1 { * omitted. Zero major versions must only be used for experimental, non-GA * interfaces. */ - version: string; + version?: string; } /** * `Authentication` defines the authentication configuration for an API. @@ -138,13 +141,13 @@ export namespace serviceusage_v1beta1 { /** * Defines a set of authentication providers that a service supports. */ - providers: Schema$AuthProvider[]; + providers?: Schema$AuthProvider[]; /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$AuthenticationRule[]; + rules?: Schema$AuthenticationRule[]; } /** * Authentication rules for the service. By default, if a method has any @@ -157,24 +160,24 @@ export namespace serviceusage_v1beta1 { /** * If true, the service accepts API keys without any other credential. */ - allowWithoutCredential: boolean; + allowWithoutCredential?: boolean; /** * Configuration for custom authentication. */ - customAuth: Schema$CustomAuthRequirements; + customAuth?: Schema$CustomAuthRequirements; /** * The requirements for OAuth credentials. */ - oauth: Schema$OAuthRequirements; + oauth?: Schema$OAuthRequirements; /** * Requirements for additional authentication providers. */ - requirements: Schema$AuthRequirement[]; + requirements?: Schema$AuthRequirement[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Configuration of authorization. This section determines the authorization @@ -187,7 +190,7 @@ export namespace serviceusage_v1beta1 { * The name of the authorization provider, such as * firebaserules.googleapis.com. */ - provider: string; + provider?: string; } /** * Authorization rule for API services. It specifies the permission(s) @@ -208,12 +211,12 @@ export namespace serviceusage_v1beta1 { * are listed, the semantics is not defined by the system. Additional * documentation must be provided manually. */ - permissions: string; + permissions?: string; /** * Selects the API elements to which this rule applies. Refer to selector * for syntax details. */ - selector: string; + selector?: string; } /** * Configuration for an anthentication provider, including support for [JSON @@ -233,17 +236,17 @@ export namespace serviceusage_v1beta1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. */ - authorizationUrl: string; + authorizationUrl?: string; /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. Example: "bookstore_auth". */ - id: string; + id?: string; /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -251,7 +254,7 @@ export namespace serviceusage_v1beta1 { * https://securetoken.google.com Example: * 1234567-compute@developer.gserviceaccount.com */ - issuer: string; + issuer?: string; /** * URL of the provider's public key set to validate signature of the * JWT. See [OpenID @@ -262,7 +265,7 @@ export namespace serviceusage_v1beta1 { * a Google service account). Example: * https://www.googleapis.com/oauth2/v1/certs */ - jwksUri: string; + jwksUri?: string; } /** * User-defined authentication requirements, including support for [JSON Web @@ -283,12 +286,12 @@ export namespace serviceusage_v1beta1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * id from authentication provider. Example: provider_id: * bookstore_auth */ - providerId: string; + providerId?: string; } /** * `Backend` defines the backend configuration for a service. @@ -299,7 +302,7 @@ export namespace serviceusage_v1beta1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$BackendRule[]; + rules?: Schema$BackendRule[]; } /** * A backend rule provides configuration for an individual API element. @@ -308,23 +311,23 @@ export namespace serviceusage_v1beta1 { /** * The address of the API backend. */ - address: string; + address?: string; /** * The number of seconds to wait for a response from a request. The default * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 * seconds. */ - deadline: number; + deadline?: number; /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. */ - minDeadline: number; + minDeadline?: number; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Request message for the `BatchEnableServices` method. @@ -339,7 +342,7 @@ export namespace serviceusage_v1beta1 { * enable a maximum of 20 services at a time. If more than 20 services are * specified, the request will fail, and no state changes will occur. */ - serviceIds: string[]; + serviceIds?: string[]; } /** * Billing related configuration of the service. The following example shows @@ -360,7 +363,7 @@ export namespace serviceusage_v1beta1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$BillingDestination[]; + consumerDestinations?: Schema$BillingDestination[]; } /** * Configuration of a specific billing destination (Currently only support @@ -371,12 +374,12 @@ export namespace serviceusage_v1beta1 { * Names of the metrics to report to this billing destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * `Context` defines which contexts an API requests. Example: context: @@ -402,7 +405,7 @@ export namespace serviceusage_v1beta1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$ContextRule[]; + rules?: Schema$ContextRule[]; } /** * A context rule provides information about the context for an individual API @@ -413,25 +416,25 @@ export namespace serviceusage_v1beta1 { * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. */ - allowedRequestExtensions: string[]; + allowedRequestExtensions?: string[]; /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. */ - allowedResponseExtensions: string[]; + allowedResponseExtensions?: string[]; /** * A list of full type names of provided contexts. */ - provided: string[]; + provided?: string[]; /** * A list of full type names of requested contexts. */ - requested: string[]; + requested?: string[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Selects and configures the service controller used by the service. The @@ -443,7 +446,7 @@ export namespace serviceusage_v1beta1 { * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. */ - environment: string; + environment?: string; } /** * Configuration for a custom authentication provider. @@ -454,7 +457,7 @@ export namespace serviceusage_v1beta1 { * authentication provider, typically formatted as a SmartService string * (go/smartservice). */ - provider: string; + provider?: string; } /** * Customize service error responses. For example, list any service specific @@ -468,12 +471,12 @@ export namespace serviceusage_v1beta1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$CustomErrorRule[]; + rules?: Schema$CustomErrorRule[]; /** * The list of custom error detail types, e.g. * 'google.foo.v1.CustomError'. */ - types: string[]; + types?: string[]; } /** * A custom error rule. @@ -483,12 +486,12 @@ export namespace serviceusage_v1beta1 { * Mark this message as possible payload in error response. Otherwise, * objects of this type will be filtered when they appear in error payload. */ - isErrorType: boolean; + isErrorType?: boolean; /** * Selects messages to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * A custom pattern is used for defining custom HTTP verb. @@ -497,11 +500,11 @@ export namespace serviceusage_v1beta1 { /** * The name of this custom HTTP verb. */ - kind: string; + kind?: string; /** * The path matched by this custom verb. */ - path: string; + path?: string; } /** * Request message for the `DisableService` method. @@ -549,7 +552,7 @@ export namespace serviceusage_v1beta1 { /** * The URL to the root of documentation. */ - documentationRootUrl: string; + documentationRootUrl?: string; /** * Declares a single overview page. For example: * <pre><code>documentation: summary: ... overview: @@ -560,22 +563,22 @@ export namespace serviceusage_v1beta1 { * </code></pre> Note: you cannot specify both `overview` field * and `pages` field. */ - overview: string; + overview?: string; /** * The top level pages for the documentation set. */ - pages: Schema$Page[]; + pages?: Schema$Page[]; /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$DocumentationRule[]; + rules?: Schema$DocumentationRule[]; /** * A short summary of what the service does. Can only be provided by plain * text. */ - summary: string; + summary?: string; } /** * A documentation rule provides information about individual API elements. @@ -585,11 +588,11 @@ export namespace serviceusage_v1beta1 { * Deprecation description of the selected element(s). It can be provided if * an element is marked as `deprecated`. */ - deprecationDescription: string; + deprecationDescription?: string; /** * Description of the selected API(s). */ - description: string; + description?: string; /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating @@ -598,7 +601,7 @@ export namespace serviceusage_v1beta1 { * "foo.b*" or "foo.*.bar". To specify a default for all * applicable elements, the whole pattern "*" is used. */ - selector: string; + selector?: string; } /** * Request message for the `EnableService` method. @@ -622,7 +625,7 @@ export namespace serviceusage_v1beta1 { * please specify multiple google.api.Endpoint for each of the intended * aliases. Additional names that this endpoint will be hosted on. */ - aliases: string[]; + aliases?: string[]; /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka @@ -631,15 +634,15 @@ export namespace serviceusage_v1beta1 { * used by the browser to determine whether the subsequent cross-origin * request is allowed to proceed. */ - allowCors: boolean; + allowCors?: boolean; /** * The list of features enabled on this endpoint. */ - features: string[]; + features?: string[]; /** * The canonical name of this endpoint. */ - name: string; + name?: string; /** * The specification of an Internet routable address of API frontend that * will handle requests to this [API @@ -647,7 +650,7 @@ export namespace serviceusage_v1beta1 { * either a valid IPv4 address or a fully-qualified domain name. For * example, "8.8.8.8" or "myservice.appspot.com". */ - target: string; + target?: string; } /** * Enum type definition. @@ -656,23 +659,23 @@ export namespace serviceusage_v1beta1 { /** * Enum value definitions. */ - enumvalue: Schema$EnumValue[]; + enumvalue?: Schema$EnumValue[]; /** * Enum type name. */ - name: string; + name?: string; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Enum value definition. @@ -681,15 +684,15 @@ export namespace serviceusage_v1beta1 { /** * Enum value name. */ - name: string; + name?: string; /** * Enum value number. */ - number: number; + number?: number; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; } /** * Experimental service configuration. These configuration options can only be @@ -699,7 +702,7 @@ export namespace serviceusage_v1beta1 { /** * Authorization configuration. */ - authorization: Schema$AuthorizationConfig; + authorization?: Schema$AuthorizationConfig; } /** * A single field of a message type. @@ -708,46 +711,46 @@ export namespace serviceusage_v1beta1 { /** * The field cardinality. */ - cardinality: string; + cardinality?: string; /** * The string value of the default value of this field. Proto2 syntax only. */ - defaultValue: string; + defaultValue?: string; /** * The field JSON name. */ - jsonName: string; + jsonName?: string; /** * The field type. */ - kind: string; + kind?: string; /** * The field name. */ - name: string; + name?: string; /** * The field number. */ - number: number; + number?: number; /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the * list. */ - oneofIndex: number; + oneofIndex?: number; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Whether to use alternative packed wire representation. */ - packed: boolean; + packed?: boolean; /** * The field type URL, without the scheme, for message or enumeration types. * Example: `"type.googleapis.com/google.protobuf.Timestamp"`. */ - typeUrl: string; + typeUrl?: string; } /** * `Service` is the root object of Google service configuration schema. It @@ -771,111 +774,111 @@ export namespace serviceusage_v1beta1 { * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. */ - apis: Schema$Api[]; + apis?: Schema$Api[]; /** * Auth configuration. */ - authentication: Schema$Authentication; + authentication?: Schema$Authentication; /** * API backend configuration. */ - backend: Schema$Backend; + backend?: Schema$Backend; /** * Billing configuration. */ - billing: Schema$Billing; + billing?: Schema$Billing; /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. The * latest config version is `3`. */ - configVersion: number; + configVersion?: number; /** * Context configuration. */ - context: Schema$Context; + context?: Schema$Context; /** * Configuration for the service control plane. */ - control: Schema$Control; + control?: Schema$Control; /** * Custom error configuration. */ - customError: Schema$CustomError; + customError?: Schema$CustomError; /** * Additional API documentation. */ - documentation: Schema$Documentation; + documentation?: Schema$Documentation; /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service * all defined APIs. */ - endpoints: Schema$Endpoint[]; + endpoints?: Schema$Endpoint[]; /** * A list of all enum types included in this API service. Enums referenced * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name. Example: enums: - name: google.someapi.v1.SomeEnum */ - enums: Schema$Enum[]; + enums?: Schema$Enum[]; /** * Experimental configuration. */ - experimental: Schema$Experimental; + experimental?: Schema$Experimental; /** * HTTP configuration. */ - http: Schema$Http; + http?: Schema$Http; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. */ - id: string; + id?: string; /** * Logging configuration. */ - logging: Schema$Logging; + logging?: Schema$Logging; /** * Defines the logs used by this service. */ - logs: Schema$LogDescriptor[]; + logs?: Schema$LogDescriptor[]; /** * Defines the metrics used by this service. */ - metrics: Schema$MetricDescriptor[]; + metrics?: Schema$MetricDescriptor[]; /** * Defines the monitored resources used by this service. This is required by * the Service.monitoring and Service.logging configurations. */ - monitoredResources: Schema$MonitoredResourceDescriptor[]; + monitoredResources?: Schema$MonitoredResourceDescriptor[]; /** * Monitoring configuration. */ - monitoring: Schema$Monitoring; + monitoring?: Schema$Monitoring; /** * The DNS address at which this service is available, e.g. * `calendar.googleapis.com`. */ - name: string; + name?: string; /** * The Google project that owns this service. */ - producerProjectId: string; + producerProjectId?: string; /** * Quota configuration. */ - quota: Schema$Quota; + quota?: Schema$Quota; /** * Output only. The source information for this configuration if available. */ - sourceInfo: Schema$SourceInfo; + sourceInfo?: Schema$SourceInfo; /** * System parameter configuration. */ - systemParameters: Schema$SystemParameters; + systemParameters?: Schema$SystemParameters; /** * A list of all proto message types included in this API service. It serves * similar purpose as [google.api.Service.types], except that these types @@ -883,11 +886,11 @@ export namespace serviceusage_v1beta1 { * the generated discovery doc. This field should only be used to define * system APIs in ESF. */ - systemTypes: Schema$Type[]; + systemTypes?: Schema$Type[]; /** * The product title for this service. */ - title: string; + title?: string; /** * A list of all proto message types included in this API service. Types * referenced directly or indirectly by the `apis` are automatically @@ -895,11 +898,11 @@ export namespace serviceusage_v1beta1 { * as types used by the `google.protobuf.Any` type, should be listed here by * name. Example: types: - name: google.protobuf.Int32 */ - types: Schema$Type[]; + types?: Schema$Type[]; /** * Configuration controlling usage of this service. */ - usage: Schema$Usage; + usage?: Schema$Usage; } /** * Defines the HTTP configuration for an API service. It contains a list of @@ -913,13 +916,13 @@ export namespace serviceusage_v1beta1 { * "%2F" will be left encoded. The default behavior is to not * decode RFC 6570 reserved characters in multi segment matches. */ - fullyDecodeReservedExpansion: boolean; + fullyDecodeReservedExpansion?: boolean; /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$HttpRule[]; + rules?: Schema$HttpRule[]; } /** * `HttpRule` defines the mapping of an RPC method to one or more HTTP REST @@ -1046,60 +1049,60 @@ export namespace serviceusage_v1beta1 { * contain an `additional_bindings` field themselves (that is, the nesting * may only be one level deep). */ - additionalBindings: Schema$HttpRule[]; + additionalBindings?: Schema$HttpRule[]; /** * Specifies the permission(s) required for an API element for the overall * API request to succeed. It is typically used to mark request message * fields that contain the name of the resource and indicates the * permissions that will be checked on that resource. */ - authorizations: Schema$AuthorizationRule[]; + authorizations?: Schema$AuthorizationRule[]; /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. */ - body: string; + body?: string; /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave * the HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. */ - custom: Schema$CustomHttpPattern; + custom?: Schema$CustomHttpPattern; /** * Used for deleting a resource. */ - delete: string; + delete?: string; /** * Used for listing and getting information about resources. */ - get: string; + get?: string; /** * Use this only for Scotty Requests. Do not use this for bytestream * methods. For media support, add instead * [][google.bytestream.RestByteStream] as an API to your configuration. */ - mediaDownload: Schema$MediaDownload; + mediaDownload?: Schema$MediaDownload; /** * Use this only for Scotty Requests. Do not use this for media support * using Bytestream, add instead [][google.bytestream.RestByteStream] as an * API to your configuration for Bytestream methods. */ - mediaUpload: Schema$MediaUpload; + mediaUpload?: Schema$MediaUpload; /** * Used for updating a resource. */ - patch: string; + patch?: string; /** * Used for creating a resource. */ - post: string; + post?: string; /** * Used for updating a resource. */ - put: string; + put?: string; /** * DO NOT USE. This is an experimental field. Optional. The REST collection * name is by default derived from the URL pattern. If specified, this field @@ -1114,7 +1117,7 @@ export namespace serviceusage_v1beta1 { * the `rest_collection` field is configured to override the derived * collection name. */ - restCollection: string; + restCollection?: string; /** * DO NOT USE. This is an experimental field. Optional. The rest method * name is by default derived from the URL pattern. If specified, this field @@ -1126,12 +1129,12 @@ export namespace serviceusage_v1beta1 { * automatically derived rest method name "create", but for * backwards compatibility with apiary, it is specified as insert. */ - restMethodName: string; + restMethodName?: string; /** * Selects methods to which this rule applies. Refer to selector for syntax * details. */ - selector: string; + selector?: string; } /** * A description of a label. @@ -1140,15 +1143,15 @@ export namespace serviceusage_v1beta1 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * The response message for Operations.ListOperations. @@ -1157,11 +1160,11 @@ export namespace serviceusage_v1beta1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response message for the `ListServices` method. @@ -1170,11 +1173,11 @@ export namespace serviceusage_v1beta1 { /** * Token that can be passed to `ListServices` to resume a paginated query. */ - nextPageToken: string; + nextPageToken?: string; /** * The available services for the requested project. */ - services: Schema$Service[]; + services?: Schema$Service[]; } /** * A description of a log type. Example in YAML format: - name: @@ -1187,25 +1190,25 @@ export namespace serviceusage_v1beta1 { * A human-readable description of this log. This information appears in the * documentation and can contain details. */ - description: string; + description?: string; /** * The human-readable name for this log. This information appears on the * user interface and should be concise. */ - displayName: string; + displayName?: string; /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are considered * invalid. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including slash, * underscore, hyphen, period [/_-.]. */ - name: string; + name?: string; } /** * Logging configuration of the service. The following example shows how to @@ -1229,14 +1232,14 @@ export namespace serviceusage_v1beta1 { * monitored resource type. A log can be used in at most one consumer * destination. */ - consumerDestinations: Schema$LoggingDestination[]; + consumerDestinations?: Schema$LoggingDestination[]; /** * Logging configurations for sending logs to the producer project. There * can be multiple producer destinations, each one must have a different * monitored resource type. A log can be used in at most one producer * destination. */ - producerDestinations: Schema$LoggingDestination[]; + producerDestinations?: Schema$LoggingDestination[]; } /** * Configuration of a specific logging destination (the producer project or @@ -1249,12 +1252,12 @@ export namespace serviceusage_v1beta1 { * scoped name, it will be automatically prefixed with the service name * followed by "/". */ - logs: string[]; + logs?: string[]; /** * The monitored resource type. The type must be defined in the * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * Defines the Media configuration for a service in case of a download. Use @@ -1267,30 +1270,30 @@ export namespace serviceusage_v1beta1 { * A boolean that determines whether a notification for the completion of a * download should be sent to the backend. */ - completeNotification: boolean; + completeNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the download service if one is used for download. */ - downloadService: string; + downloadService?: string; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether download is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for direct download. The size is * specified in bytes. */ - maxDirectDownloadSize: string; + maxDirectDownloadSize?: string; /** * A boolean that determines if direct download from ESF should be used for * download of this media. */ - useDirectDownload: boolean; + useDirectDownload?: boolean; } /** * Defines the Media configuration for a service in case of an upload. Use @@ -1304,38 +1307,38 @@ export namespace serviceusage_v1beta1 { * upload should be sent to the backend. These notifications will not be * seen by the client and will not consume quota. */ - completeNotification: boolean; + completeNotification?: boolean; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether upload is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for an upload. The size is specified in * bytes. */ - maxSize: string; + maxSize?: string; /** * An array of mimetype patterns. Esf will only accept uploads that match * one of the given patterns. */ - mimeTypes: string[]; + mimeTypes?: string[]; /** * Whether to receive a notification for progress changes of media upload. */ - progressNotification: boolean; + progressNotification?: boolean; /** * Whether to receive a notification on the start of media upload. */ - startNotification: boolean; + startNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the upload service if one is used for upload. */ - uploadService: string; + uploadService?: string; } /** * Method represents a method of an API interface. @@ -1344,31 +1347,31 @@ export namespace serviceusage_v1beta1 { /** * The simple name of this method. */ - name: string; + name?: string; /** * Any metadata attached to the method. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * If true, the request is streamed. */ - requestStreaming: boolean; + requestStreaming?: boolean; /** * A URL of the input message type. */ - requestTypeUrl: string; + requestTypeUrl?: string; /** * If true, the response is streamed. */ - responseStreaming: boolean; + responseStreaming?: boolean; /** * The URL of the output message type. */ - responseTypeUrl: string; + responseTypeUrl?: string; /** * The source syntax of this method. */ - syntax: string; + syntax?: string; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -1379,14 +1382,14 @@ export namespace serviceusage_v1beta1 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -1394,17 +1397,17 @@ export namespace serviceusage_v1beta1 { * a label for the HTTP response code, `response_code`, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be * supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -1413,7 +1416,7 @@ export namespace serviceusage_v1beta1 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * The unit in which the metric value is reported. It is only applicable if * the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported @@ -1442,12 +1445,12 @@ export namespace serviceusage_v1beta1 { * value 1, such as in `1/s`. * `%` represents dimensionless value 1/100, * and annotates values giving a percentage. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of `metric_kind` and `value_type` might not be supported. */ - valueType: string; + valueType?: string; } /** * Bind API methods to metrics. Binding a method to a metric causes that @@ -1460,12 +1463,12 @@ export namespace serviceusage_v1beta1 { * name, and the values are the amount increased for the metric against * which the quota limits are defined. The value must not be negative. */ - metricCosts: any; + metricCosts?: any; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Declares an API Interface to be included in this interface. The including @@ -1508,12 +1511,12 @@ export namespace serviceusage_v1beta1 { /** * The fully qualified name of the interface which is included. */ - name: string; + name?: string; /** * If non-empty specifies a path under which inherited HTTP paths are * rooted. */ - root: string; + root?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -1530,21 +1533,21 @@ export namespace serviceusage_v1beta1 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, `"Google * Cloud SQL Database"`. */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and * `"zone"`. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` @@ -1553,13 +1556,13 @@ export namespace serviceusage_v1beta1 { * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; } /** * Monitoring configuration of the service. The example below shows how to @@ -1590,14 +1593,14 @@ export namespace serviceusage_v1beta1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$MonitoringDestination[]; + consumerDestinations?: Schema$MonitoringDestination[]; /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most one * producer destination. */ - producerDestinations: Schema$MonitoringDestination[]; + producerDestinations?: Schema$MonitoringDestination[]; } /** * Configuration of a specific monitoring destination (the producer project or @@ -1608,12 +1611,12 @@ export namespace serviceusage_v1beta1 { * Names of the metrics to report to this monitoring destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * OAuth scopes are a way to define data and permissions on data. For example, @@ -1638,7 +1641,7 @@ export namespace serviceusage_v1beta1 { * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read */ - canonicalScopes: string; + canonicalScopes?: string; } /** * This resource represents a long-running operation that is the result of a @@ -1650,24 +1653,24 @@ export namespace serviceusage_v1beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1677,7 +1680,7 @@ export namespace serviceusage_v1beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The metadata associated with a long running operation resource. @@ -1686,20 +1689,20 @@ export namespace serviceusage_v1beta1 { /** * Percentage of completion of this operation, ranging from 0 to 100. */ - progressPercentage: number; + progressPercentage?: number; /** * The full name of the resources that this operation is directly associated * with. */ - resourceNames: string[]; + resourceNames?: string[]; /** * The start time of the operation. */ - startTime: string; + startTime?: string; /** * Detailed status information for each step. The order is undetermined. */ - steps: Schema$Step[]; + steps?: Schema$Step[]; } /** * A protocol buffer option, which can be attached to a message, field, @@ -1712,7 +1715,7 @@ export namespace serviceusage_v1beta1 { * `"map_entry"`. For custom options, it should be the * fully-qualified name. For example, `"google.api.http"`. */ - name: string; + name?: string; /** * The option's value packed in an Any message. If the value is a * primitive, the corresponding wrapper type defined in @@ -1720,7 +1723,7 @@ export namespace serviceusage_v1beta1 { * it should be stored as an int32 value using the * google.protobuf.Int32Value type. */ - value: any; + value?: any; } /** * Represents a documentation page. A page can contain subpages to represent @@ -1732,7 +1735,7 @@ export namespace serviceusage_v1beta1 { * include {path} ==&#41;</code> to include content from a * Markdown file. */ - content: string; + content?: string; /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, @@ -1744,12 +1747,12 @@ export namespace serviceusage_v1beta1 { * ==&#41; </code></pre> You can reference `Java` page using * Markdown reference link syntax: `Java`. */ - name: string; + name?: string; /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. */ - subpages: Schema$Page[]; + subpages?: Schema$Page[]; } /** * Quota configuration helps to achieve fairness and budgeting in service @@ -1779,12 +1782,12 @@ export namespace serviceusage_v1beta1 { /** * List of `QuotaLimit` definitions for the service. */ - limits: Schema$QuotaLimit[]; + limits?: Schema$QuotaLimit[]; /** * List of `MetricRule` definitions, each one mapping a selected method to * one or more metrics. */ - metricRules: Schema$MetricRule[]; + metricRules?: Schema$MetricRule[]; } /** * `QuotaLimit` defines a specific limit that applies over a specified @@ -1801,20 +1804,20 @@ export namespace serviceusage_v1beta1 { * will indicate an unlimited quota. No other negative values are allowed. * Used by group-based quotas only. */ - defaultLimit: string; + defaultLimit?: string; /** * Optional. User-visible, extended description for this quota limit. Should * be used only when more context is needed to understand this limit than * provided by the limit's display name (see: `display_name`). */ - description: string; + description?: string; /** * User-visible display name for this limit. Optional. If not set, the UI * will provide a default display name based on the quota configuration. * This field can be used to override the default display name generated * from the configuration. */ - displayName: string; + displayName?: string; /** * Duration of this limit in textual notation. Example: "100s", * "24h", "1d". For duration longer than a day, only @@ -1823,7 +1826,7 @@ export namespace serviceusage_v1beta1 { * "0" indicates indefinite duration. Used by group-based quotas * only. */ - duration: string; + duration?: string; /** * Free tier value displayed in the Developers Console for this limit. The * free tier is the number of tokens that will be subtracted from the billed @@ -1832,7 +1835,7 @@ export namespace serviceusage_v1beta1 { * other limit. If this field is not set, it defaults to 0, indicating that * there is no free tier for this service. Used by group-based quotas only. */ - freeTier: string; + freeTier?: string; /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up @@ -1841,20 +1844,20 @@ export namespace serviceusage_v1beta1 { * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. Used by group-based quotas only. */ - maxLimit: string; + maxLimit?: string; /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must * be defined within the service config. */ - metric: string; + metric?: string; /** * Name of the quota limit. The name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. The maximum length of the limit name * is 64 characters. */ - name: string; + name?: string; /** * Specify the unit of the quota limit. It uses the same syntax as * Metric.unit. The supported unit kinds are determined by the quota backend @@ -1863,13 +1866,13 @@ export namespace serviceusage_v1beta1 { * insignificant. The "1" at the beginning is required to follow * the metric unit syntax. */ - unit: string; + unit?: string; /** * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. */ - values: any; + values?: any; } /** * A service that is available for use by the consumer. @@ -1881,20 +1884,20 @@ export namespace serviceusage_v1beta1 { * method. These fields are present only in responses to the `GetService` * method. */ - config: Schema$ServiceConfig; + config?: Schema$ServiceConfig; /** * The resource name of the consumer and service. A valid name would be: - * projects/123/services/serviceusage.googleapis.com */ - name: string; + name?: string; /** * The resource name of the consumer. A valid name would be: - projects/123 */ - parent: string; + parent?: string; /** * Whether or not the service has been enabled for use by the consumer. */ - state: string; + state?: string; } /** * The configuration of the service. @@ -1904,38 +1907,38 @@ export namespace serviceusage_v1beta1 { * A list of API interfaces exported by this service. Contains only the * names, versions, and method names of the interfaces. */ - apis: Schema$Api[]; + apis?: Schema$Api[]; /** * Auth configuration. Contains only the OAuth rules. */ - authentication: Schema$Authentication; + authentication?: Schema$Authentication; /** * Additional API documentation. Contains only the summary and the * documentation URL. */ - documentation: Schema$Documentation; + documentation?: Schema$Documentation; /** * Configuration for network endpoints. Contains only the names and aliases * of the endpoints. */ - endpoints: Schema$Endpoint[]; + endpoints?: Schema$Endpoint[]; /** * The DNS address at which this service is available. An example DNS * address would be: `calendar.googleapis.com`. */ - name: string; + name?: string; /** * Quota configuration. */ - quota: Schema$Quota; + quota?: Schema$Quota; /** * The product title for this service. */ - title: string; + title?: string; /** * Configuration controlling usage of this service. */ - usage: Schema$Usage; + usage?: Schema$Usage; } /** * `SourceContext` represents information about the source of a protobuf @@ -1947,7 +1950,7 @@ export namespace serviceusage_v1beta1 { * protobuf element. For example: * `"google/protobuf/source_context.proto"`. */ - fileName: string; + fileName?: string; } /** * Source information used to create a Service Config @@ -1956,7 +1959,7 @@ export namespace serviceusage_v1beta1 { /** * All files used during config generation. */ - sourceFiles: any[]; + sourceFiles?: any[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -1998,18 +2001,18 @@ export namespace serviceusage_v1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents the status of one operation step. @@ -2018,11 +2021,11 @@ export namespace serviceusage_v1beta1 { /** * The short description of the step. */ - description: string; + description?: string; /** * The status code. */ - status: string; + status?: string; } /** * Define a parameter's name and location. The parameter may be passed as @@ -2034,17 +2037,17 @@ export namespace serviceusage_v1beta1 { * Define the HTTP header name to use for the parameter. It is case * insensitive. */ - httpHeader: string; + httpHeader?: string; /** * Define the name of the parameter, such as "api_key" . It is * case sensitive. */ - name: string; + name?: string; /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. */ - urlQueryParameter: string; + urlQueryParameter?: string; } /** * Define a system parameter rule mapping system parameter definitions to @@ -2057,12 +2060,12 @@ export namespace serviceusage_v1beta1 { * used the behavior is implementation-dependent. If none of the specified * names are present the behavior is parameter-dependent. */ - parameters: Schema$SystemParameter[]; + parameters?: Schema$SystemParameter[]; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; } /** * ### System parameter configuration A system parameter is a special kind of @@ -2086,7 +2089,7 @@ export namespace serviceusage_v1beta1 { * http_header: Api-Key2 **NOTE:** All service configuration rules follow * "last one wins" order. */ - rules: Schema$SystemParameterRule[]; + rules?: Schema$SystemParameterRule[]; } /** * A protocol buffer message type. @@ -2095,27 +2098,27 @@ export namespace serviceusage_v1beta1 { /** * The list of fields. */ - fields: Schema$Field[]; + fields?: Schema$Field[]; /** * The fully qualified message name. */ - name: string; + name?: string; /** * The list of types appearing in `oneof` definitions in this type. */ - oneofs: string[]; + oneofs?: string[]; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Configuration controlling usage of a service. @@ -2129,19 +2132,19 @@ export namespace serviceusage_v1beta1 { * name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name * format documented in https://cloud.google.com/pubsub/docs/overview. */ - producerNotificationChannel: string; + producerNotificationChannel?: string; /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form * <service.name>/<requirement-id>; for example * 'serviceusage.googleapis.com/billing-enabled'. */ - requirements: string[]; + requirements?: string[]; /** * A list of usage rules that apply to individual API methods. **NOTE:** * All service configuration rules follow "last one wins" order. */ - rules: Schema$UsageRule[]; + rules?: Schema$UsageRule[]; } /** * Usage configuration rules for the service. NOTE: Under development. Use @@ -2162,21 +2165,22 @@ export namespace serviceusage_v1beta1 { * If true, the selected method allows unregistered calls, e.g. calls that * don't identify any user or application. */ - allowUnregisteredCalls: boolean; + allowUnregisteredCalls?: boolean; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. This * flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. */ - skipServiceControl: boolean; + skipServiceControl?: boolean; } + export class Resource$Operations { root: Serviceusage; constructor(root: Serviceusage) { @@ -2203,23 +2207,34 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2264,28 +2279,38 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2308,6 +2333,42 @@ export namespace serviceusage_v1beta1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Services { root: Serviceusage; constructor(root: Serviceusage) { @@ -2335,26 +2396,39 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchEnable(params?: any, options?: MethodOptions): - AxiosPromise; batchEnable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Services$Batchenable, + options?: MethodOptions): AxiosPromise; batchEnable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Batchenable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + batchEnable( + params: Params$Resource$Services$Batchenable, + callback: BodyResponseCallback): void; + batchEnable(callback: BodyResponseCallback): void; + batchEnable( + paramsOrCallback?: Params$Resource$Services$Batchenable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Services$Batchenable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Batchenable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2395,26 +2469,37 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disable(params?: any, options?: MethodOptions): + disable(params?: Params$Resource$Services$Disable, options?: MethodOptions): AxiosPromise; disable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Disable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; disable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Services$Disable, + callback: BodyResponseCallback): void; + disable(callback: BodyResponseCallback): void; + disable( + paramsOrCallback?: Params$Resource$Services$Disable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Disable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Disable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2451,26 +2536,37 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enable(params?: any, options?: MethodOptions): + enable(params?: Params$Resource$Services$Enable, options?: MethodOptions): AxiosPromise; enable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Services$Enable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enable( + params: Params$Resource$Services$Enable, + callback: BodyResponseCallback): void; + enable(callback: BodyResponseCallback): void; enable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Services$Enable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Enable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Enable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2506,23 +2602,33 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Services$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Services$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Services$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Services$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2565,28 +2671,38 @@ export namespace serviceusage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Services$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; const parameters = { options: Object.assign( @@ -2608,4 +2724,101 @@ export namespace serviceusage_v1beta1 { } } } + + export interface Params$Resource$Services$Batchenable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Parent to enable services on. An example name would be: `projects/123` + * where `123` is the project number (not project ID). The + * `BatchEnableServices` method currently only supports projects. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchEnableServicesRequest; + } + export interface Params$Resource$Services$Disable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the consumer and service to disable the service on. The enable + * and disable methods currently only support projects. An example name + * would be: `projects/123/services/serviceusage.googleapis.com` where `123` + * is the project number (not project ID). + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$DisableServiceRequest; + } + export interface Params$Resource$Services$Enable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the consumer and service to enable the service on. The + * `EnableService` and `DisableService` methods currently only support + * projects. Enabling a service requires that the service is public or is + * shared with the user enabling the service. An example name would be: + * `projects/123/services/serviceusage.googleapis.com` where `123` is the + * project number (not project ID). + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$EnableServiceRequest; + } + export interface Params$Resource$Services$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the consumer and service to get the `ConsumerState` for. An + * example name would be: + * `projects/123/services/serviceusage.googleapis.com` where `123` is the + * project number (not project ID). + */ + name?: string; + } + export interface Params$Resource$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Only list services that conform to the given filter. The allowed filter + * strings are `state:ENABLED` and `state:DISABLED`. + */ + filter?: string; + /** + * Requested size of the next page of data. Requested page size cannot + * exceed 200. If not set, the default page size is 50. + */ + pageSize?: number; + /** + * Token identifying which result to start with, which is returned by a + * previous list call. + */ + pageToken?: string; + /** + * Parent to search for services on. An example name would be: + * `projects/123` where `123` is the project number (not project ID). + */ + parent?: string; + } } diff --git a/src/apis/serviceuser/v1.ts b/src/apis/serviceuser/v1.ts index c39c1fd8d6f..27879fe5358 100644 --- a/src/apis/serviceuser/v1.ts +++ b/src/apis/serviceuser/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace serviceuser_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Service User API * @@ -83,29 +86,29 @@ export namespace serviceuser_v1 { /** * The methods of this interface, in unspecified order. */ - methods: Schema$Method[]; + methods?: Schema$Method[]; /** * Included interfaces. See Mixin. */ - mixins: Schema$Mixin[]; + mixins?: Schema$Mixin[]; /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. */ - name: string; + name?: string; /** * Any metadata attached to the interface. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Source context for the protocol buffer service represented by this * message. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax of the service. */ - syntax: string; + syntax?: string; /** * A version string for this interface. If specified, must have the form * `major-version.minor-version`, as in `1.10`. If the minor version is @@ -123,7 +126,7 @@ export namespace serviceuser_v1 { * omitted. Zero major versions must only be used for experimental, non-GA * interfaces. */ - version: string; + version?: string; } /** * `Authentication` defines the authentication configuration for an API. @@ -138,13 +141,13 @@ export namespace serviceuser_v1 { /** * Defines a set of authentication providers that a service supports. */ - providers: Schema$AuthProvider[]; + providers?: Schema$AuthProvider[]; /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$AuthenticationRule[]; + rules?: Schema$AuthenticationRule[]; } /** * Authentication rules for the service. By default, if a method has any @@ -157,24 +160,24 @@ export namespace serviceuser_v1 { /** * If true, the service accepts API keys without any other credential. */ - allowWithoutCredential: boolean; + allowWithoutCredential?: boolean; /** * Configuration for custom authentication. */ - customAuth: Schema$CustomAuthRequirements; + customAuth?: Schema$CustomAuthRequirements; /** * The requirements for OAuth credentials. */ - oauth: Schema$OAuthRequirements; + oauth?: Schema$OAuthRequirements; /** * Requirements for additional authentication providers. */ - requirements: Schema$AuthRequirement[]; + requirements?: Schema$AuthRequirement[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Configuration of authorization. This section determines the authorization @@ -187,7 +190,7 @@ export namespace serviceuser_v1 { * The name of the authorization provider, such as * firebaserules.googleapis.com. */ - provider: string; + provider?: string; } /** * Configuration for an anthentication provider, including support for [JSON @@ -207,17 +210,17 @@ export namespace serviceuser_v1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. */ - authorizationUrl: string; + authorizationUrl?: string; /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. Example: "bookstore_auth". */ - id: string; + id?: string; /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 @@ -225,7 +228,7 @@ export namespace serviceuser_v1 { * https://securetoken.google.com Example: * 1234567-compute@developer.gserviceaccount.com */ - issuer: string; + issuer?: string; /** * URL of the provider's public key set to validate signature of the * JWT. See [OpenID @@ -236,7 +239,7 @@ export namespace serviceuser_v1 { * a Google service account). Example: * https://www.googleapis.com/oauth2/v1/certs */ - jwksUri: string; + jwksUri?: string; } /** * User-defined authentication requirements, including support for [JSON Web @@ -257,12 +260,12 @@ export namespace serviceuser_v1 { * Example: audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com */ - audiences: string; + audiences?: string; /** * id from authentication provider. Example: provider_id: * bookstore_auth */ - providerId: string; + providerId?: string; } /** * `Backend` defines the backend configuration for a service. @@ -273,7 +276,7 @@ export namespace serviceuser_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$BackendRule[]; + rules?: Schema$BackendRule[]; } /** * A backend rule provides configuration for an individual API element. @@ -282,23 +285,23 @@ export namespace serviceuser_v1 { /** * The address of the API backend. */ - address: string; + address?: string; /** * The number of seconds to wait for a response from a request. The default * deadline for gRPC is infinite (no deadline) and HTTP requests is 5 * seconds. */ - deadline: number; + deadline?: number; /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. */ - minDeadline: number; + minDeadline?: number; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Billing related configuration of the service. The following example shows @@ -319,7 +322,7 @@ export namespace serviceuser_v1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$BillingDestination[]; + consumerDestinations?: Schema$BillingDestination[]; } /** * Configuration of a specific billing destination (Currently only support @@ -330,12 +333,12 @@ export namespace serviceuser_v1 { * Names of the metrics to report to this billing destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * `Context` defines which contexts an API requests. Example: context: @@ -361,7 +364,7 @@ export namespace serviceuser_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$ContextRule[]; + rules?: Schema$ContextRule[]; } /** * A context rule provides information about the context for an individual API @@ -372,25 +375,25 @@ export namespace serviceuser_v1 { * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. */ - allowedRequestExtensions: string[]; + allowedRequestExtensions?: string[]; /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. */ - allowedResponseExtensions: string[]; + allowedResponseExtensions?: string[]; /** * A list of full type names of provided contexts. */ - provided: string[]; + provided?: string[]; /** * A list of full type names of requested contexts. */ - requested: string[]; + requested?: string[]; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Selects and configures the service controller used by the service. The @@ -402,7 +405,7 @@ export namespace serviceuser_v1 { * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. */ - environment: string; + environment?: string; } /** * Configuration for a custom authentication provider. @@ -413,7 +416,7 @@ export namespace serviceuser_v1 { * authentication provider, typically formatted as a SmartService string * (go/smartservice). */ - provider: string; + provider?: string; } /** * Customize service error responses. For example, list any service specific @@ -427,12 +430,12 @@ export namespace serviceuser_v1 { * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$CustomErrorRule[]; + rules?: Schema$CustomErrorRule[]; /** * The list of custom error detail types, e.g. * 'google.foo.v1.CustomError'. */ - types: string[]; + types?: string[]; } /** * A custom error rule. @@ -442,12 +445,12 @@ export namespace serviceuser_v1 { * Mark this message as possible payload in error response. Otherwise, * objects of this type will be filtered when they appear in error payload. */ - isErrorType: boolean; + isErrorType?: boolean; /** * Selects messages to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * A custom pattern is used for defining custom HTTP verb. @@ -456,11 +459,11 @@ export namespace serviceuser_v1 { /** * The name of this custom HTTP verb. */ - kind: string; + kind?: string; /** * The path matched by this custom verb. */ - path: string; + path?: string; } /** * Request message for DisableService method. @@ -508,7 +511,7 @@ export namespace serviceuser_v1 { /** * The URL to the root of documentation. */ - documentationRootUrl: string; + documentationRootUrl?: string; /** * Declares a single overview page. For example: * <pre><code>documentation: summary: ... overview: @@ -519,22 +522,22 @@ export namespace serviceuser_v1 { * </code></pre> Note: you cannot specify both `overview` field * and `pages` field. */ - overview: string; + overview?: string; /** * The top level pages for the documentation set. */ - pages: Schema$Page[]; + pages?: Schema$Page[]; /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$DocumentationRule[]; + rules?: Schema$DocumentationRule[]; /** * A short summary of what the service does. Can only be provided by plain * text. */ - summary: string; + summary?: string; } /** * A documentation rule provides information about individual API elements. @@ -544,11 +547,11 @@ export namespace serviceuser_v1 { * Deprecation description of the selected element(s). It can be provided if * an element is marked as `deprecated`. */ - deprecationDescription: string; + deprecationDescription?: string; /** * Description of the selected API(s). */ - description: string; + description?: string; /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating @@ -557,7 +560,7 @@ export namespace serviceuser_v1 { * "foo.b*" or "foo.*.bar". To specify a default for all * applicable elements, the whole pattern "*" is used. */ - selector: string; + selector?: string; } /** * Request message for EnableService method. @@ -581,7 +584,7 @@ export namespace serviceuser_v1 { * please specify multiple google.api.Endpoint for each of the intended * aliases. Additional names that this endpoint will be hosted on. */ - aliases: string[]; + aliases?: string[]; /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka @@ -590,15 +593,15 @@ export namespace serviceuser_v1 { * used by the browser to determine whether the subsequent cross-origin * request is allowed to proceed. */ - allowCors: boolean; + allowCors?: boolean; /** * The list of features enabled on this endpoint. */ - features: string[]; + features?: string[]; /** * The canonical name of this endpoint. */ - name: string; + name?: string; /** * The specification of an Internet routable address of API frontend that * will handle requests to this [API @@ -606,7 +609,7 @@ export namespace serviceuser_v1 { * either a valid IPv4 address or a fully-qualified domain name. For * example, "8.8.8.8" or "myservice.appspot.com". */ - target: string; + target?: string; } /** * Enum type definition. @@ -615,23 +618,23 @@ export namespace serviceuser_v1 { /** * Enum value definitions. */ - enumvalue: Schema$EnumValue[]; + enumvalue?: Schema$EnumValue[]; /** * Enum type name. */ - name: string; + name?: string; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Enum value definition. @@ -640,15 +643,15 @@ export namespace serviceuser_v1 { /** * Enum value name. */ - name: string; + name?: string; /** * Enum value number. */ - number: number; + number?: number; /** * Protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; } /** * Experimental service configuration. These configuration options can only be @@ -658,7 +661,7 @@ export namespace serviceuser_v1 { /** * Authorization configuration. */ - authorization: Schema$AuthorizationConfig; + authorization?: Schema$AuthorizationConfig; } /** * A single field of a message type. @@ -667,46 +670,46 @@ export namespace serviceuser_v1 { /** * The field cardinality. */ - cardinality: string; + cardinality?: string; /** * The string value of the default value of this field. Proto2 syntax only. */ - defaultValue: string; + defaultValue?: string; /** * The field JSON name. */ - jsonName: string; + jsonName?: string; /** * The field type. */ - kind: string; + kind?: string; /** * The field name. */ - name: string; + name?: string; /** * The field number. */ - number: number; + number?: number; /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the * list. */ - oneofIndex: number; + oneofIndex?: number; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * Whether to use alternative packed wire representation. */ - packed: boolean; + packed?: boolean; /** * The field type URL, without the scheme, for message or enumeration types. * Example: `"type.googleapis.com/google.protobuf.Timestamp"`. */ - typeUrl: string; + typeUrl?: string; } /** * Defines the HTTP configuration for an API service. It contains a list of @@ -720,13 +723,13 @@ export namespace serviceuser_v1 { * "%2F" will be left encoded. The default behavior is to not * decode RFC 6570 reserved characters in multi segment matches. */ - fullyDecodeReservedExpansion: boolean; + fullyDecodeReservedExpansion?: boolean; /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one * wins" order. */ - rules: Schema$HttpRule[]; + rules?: Schema$HttpRule[]; } /** * `HttpRule` defines the mapping of an RPC method to one or more HTTP REST @@ -853,58 +856,58 @@ export namespace serviceuser_v1 { * contain an `additional_bindings` field themselves (that is, the nesting * may only be one level deep). */ - additionalBindings: Schema$HttpRule[]; + additionalBindings?: Schema$HttpRule[]; /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. */ - body: string; + body?: string; /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave * the HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. */ - custom: Schema$CustomHttpPattern; + custom?: Schema$CustomHttpPattern; /** * Used for deleting a resource. */ - delete: string; + delete?: string; /** * Used for listing and getting information about resources. */ - get: string; + get?: string; /** * Use this only for Scotty Requests. Do not use this for bytestream * methods. For media support, add instead * [][google.bytestream.RestByteStream] as an API to your configuration. */ - mediaDownload: Schema$MediaDownload; + mediaDownload?: Schema$MediaDownload; /** * Use this only for Scotty Requests. Do not use this for media support * using Bytestream, add instead [][google.bytestream.RestByteStream] as an * API to your configuration for Bytestream methods. */ - mediaUpload: Schema$MediaUpload; + mediaUpload?: Schema$MediaUpload; /** * Used for updating a resource. */ - patch: string; + patch?: string; /** * Used for creating a resource. */ - post: string; + post?: string; /** * Used for updating a resource. */ - put: string; + put?: string; /** * Selects methods to which this rule applies. Refer to selector for syntax * details. */ - selector: string; + selector?: string; } /** * A description of a label. @@ -913,15 +916,15 @@ export namespace serviceuser_v1 { /** * A human-readable description for the label. */ - description: string; + description?: string; /** * The label key. */ - key: string; + key?: string; /** * The type of data that can be assigned to the label. */ - valueType: string; + valueType?: string; } /** * Response message for `ListEnabledServices` method. @@ -931,11 +934,11 @@ export namespace serviceuser_v1 { * Token that can be passed to `ListEnabledServices` to resume a paginated * query. */ - nextPageToken: string; + nextPageToken?: string; /** * Services enabled for the specified parent. */ - services: Schema$PublishedService[]; + services?: Schema$PublishedService[]; } /** * A description of a log type. Example in YAML format: - name: @@ -948,25 +951,25 @@ export namespace serviceuser_v1 { * A human-readable description of this log. This information appears in the * documentation and can contain details. */ - description: string; + description?: string; /** * The human-readable name for this log. This information appears on the * user interface and should be concise. */ - displayName: string; + displayName?: string; /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are considered * invalid. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including slash, * underscore, hyphen, period [/_-.]. */ - name: string; + name?: string; } /** * Logging configuration of the service. The following example shows how to @@ -990,14 +993,14 @@ export namespace serviceuser_v1 { * monitored resource type. A log can be used in at most one consumer * destination. */ - consumerDestinations: Schema$LoggingDestination[]; + consumerDestinations?: Schema$LoggingDestination[]; /** * Logging configurations for sending logs to the producer project. There * can be multiple producer destinations, each one must have a different * monitored resource type. A log can be used in at most one producer * destination. */ - producerDestinations: Schema$LoggingDestination[]; + producerDestinations?: Schema$LoggingDestination[]; } /** * Configuration of a specific logging destination (the producer project or @@ -1010,12 +1013,12 @@ export namespace serviceuser_v1 { * scoped name, it will be automatically prefixed with the service name * followed by "/". */ - logs: string[]; + logs?: string[]; /** * The monitored resource type. The type must be defined in the * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * Defines the Media configuration for a service in case of a download. Use @@ -1028,30 +1031,30 @@ export namespace serviceuser_v1 { * A boolean that determines whether a notification for the completion of a * download should be sent to the backend. */ - completeNotification: boolean; + completeNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the download service if one is used for download. */ - downloadService: string; + downloadService?: string; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether download is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for direct download. The size is * specified in bytes. */ - maxDirectDownloadSize: string; + maxDirectDownloadSize?: string; /** * A boolean that determines if direct download from ESF should be used for * download of this media. */ - useDirectDownload: boolean; + useDirectDownload?: boolean; } /** * Defines the Media configuration for a service in case of an upload. Use @@ -1065,38 +1068,38 @@ export namespace serviceuser_v1 { * upload should be sent to the backend. These notifications will not be * seen by the client and will not consume quota. */ - completeNotification: boolean; + completeNotification?: boolean; /** * Name of the Scotty dropzone to use for the current API. */ - dropzone: string; + dropzone?: string; /** * Whether upload is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Optional maximum acceptable size for an upload. The size is specified in * bytes. */ - maxSize: string; + maxSize?: string; /** * An array of mimetype patterns. Esf will only accept uploads that match * one of the given patterns. */ - mimeTypes: string[]; + mimeTypes?: string[]; /** * Whether to receive a notification for progress changes of media upload. */ - progressNotification: boolean; + progressNotification?: boolean; /** * Whether to receive a notification on the start of media upload. */ - startNotification: boolean; + startNotification?: boolean; /** * DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. Specify * name of the upload service if one is used for upload. */ - uploadService: string; + uploadService?: string; } /** * Method represents a method of an API interface. @@ -1105,31 +1108,31 @@ export namespace serviceuser_v1 { /** * The simple name of this method. */ - name: string; + name?: string; /** * Any metadata attached to the method. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * If true, the request is streamed. */ - requestStreaming: boolean; + requestStreaming?: boolean; /** * A URL of the input message type. */ - requestTypeUrl: string; + requestTypeUrl?: string; /** * If true, the response is streamed. */ - responseStreaming: boolean; + responseStreaming?: boolean; /** * The URL of the output message type. */ - responseTypeUrl: string; + responseTypeUrl?: string; /** * The source syntax of this method. */ - syntax: string; + syntax?: string; } /** * Defines a metric type and its schema. Once a metric descriptor is created, @@ -1140,14 +1143,14 @@ export namespace serviceuser_v1 { /** * A detailed description of the metric, which can be used in documentation. */ - description: string; + description?: string; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request * count". This field is optional but it is recommended to be set for * any metrics associated with user-visible concepts, such as Quota. */ - displayName: string; + displayName?: string; /** * The set of labels that can be used to describe a specific instance of * this metric type. For example, the @@ -1155,17 +1158,17 @@ export namespace serviceuser_v1 { * a label for the HTTP response code, `response_code`, so you can look at * latencies for successful responses or just for responses that failed. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be * supported. */ - metricKind: string; + metricKind?: string; /** * The resource name of the metric descriptor. */ - name: string; + name?: string; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined custom metric types have the DNS name @@ -1174,7 +1177,7 @@ export namespace serviceuser_v1 { * "custom.googleapis.com/invoice/paid/amount" * "appengine.googleapis.com/http/server/response_latencies" */ - type: string; + type?: string; /** * The unit in which the metric value is reported. It is only applicable if * the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported @@ -1203,12 +1206,12 @@ export namespace serviceuser_v1 { * value 1, such as in `1/s`. * `%` represents dimensionless value 1/100, * and annotates values giving a percentage. */ - unit: string; + unit?: string; /** * Whether the measurement is an integer, a floating-point number, etc. Some * combinations of `metric_kind` and `value_type` might not be supported. */ - valueType: string; + valueType?: string; } /** * Bind API methods to metrics. Binding a method to a metric causes that @@ -1221,12 +1224,12 @@ export namespace serviceuser_v1 { * name, and the values are the amount increased for the metric against * which the quota limits are defined. The value must not be negative. */ - metricCosts: any; + metricCosts?: any; /** * Selects the methods to which this rule applies. Refer to selector for * syntax details. */ - selector: string; + selector?: string; } /** * Declares an API Interface to be included in this interface. The including @@ -1269,12 +1272,12 @@ export namespace serviceuser_v1 { /** * The fully qualified name of the interface which is included. */ - name: string; + name?: string; /** * If non-empty specifies a path under which inherited HTTP paths are * rooted. */ - root: string; + root?: string; } /** * An object that describes the schema of a MonitoredResource object using a @@ -1291,21 +1294,21 @@ export namespace serviceuser_v1 { * Optional. A detailed description of the monitored resource type that * might be used in documentation. */ - description: string; + description?: string; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, `"Google * Cloud SQL Database"`. */ - displayName: string; + displayName?: string; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and * `"zone"`. */ - labels: Schema$LabelDescriptor[]; + labels?: Schema$LabelDescriptor[]; /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` @@ -1314,13 +1317,13 @@ export namespace serviceuser_v1 { * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. */ - name: string; + name?: string; /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. */ - type: string; + type?: string; } /** * Monitoring configuration of the service. The example below shows how to @@ -1351,14 +1354,14 @@ export namespace serviceuser_v1 { * different monitored resource type. A metric can be used in at most one * consumer destination. */ - consumerDestinations: Schema$MonitoringDestination[]; + consumerDestinations?: Schema$MonitoringDestination[]; /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most one * producer destination. */ - producerDestinations: Schema$MonitoringDestination[]; + producerDestinations?: Schema$MonitoringDestination[]; } /** * Configuration of a specific monitoring destination (the producer project or @@ -1369,12 +1372,12 @@ export namespace serviceuser_v1 { * Names of the metrics to report to this monitoring destination. Each name * must be defined in Service.metrics section. */ - metrics: string[]; + metrics?: string[]; /** * The monitored resource type. The type must be defined in * Service.monitored_resources section. */ - monitoredResource: string; + monitoredResource?: string; } /** * OAuth scopes are a way to define data and permissions on data. For example, @@ -1399,7 +1402,7 @@ export namespace serviceuser_v1 { * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read */ - canonicalScopes: string; + canonicalScopes?: string; } /** * This resource represents a long-running operation that is the result of a @@ -1411,24 +1414,24 @@ export namespace serviceuser_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1438,7 +1441,7 @@ export namespace serviceuser_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The metadata associated with a long running operation resource. @@ -1447,20 +1450,20 @@ export namespace serviceuser_v1 { /** * Percentage of completion of this operation, ranging from 0 to 100. */ - progressPercentage: number; + progressPercentage?: number; /** * The full name of the resources that this operation is directly associated * with. */ - resourceNames: string[]; + resourceNames?: string[]; /** * The start time of the operation. */ - startTime: string; + startTime?: string; /** * Detailed status information for each step. The order is undetermined. */ - steps: Schema$Step[]; + steps?: Schema$Step[]; } /** * A protocol buffer option, which can be attached to a message, field, @@ -1473,7 +1476,7 @@ export namespace serviceuser_v1 { * `"map_entry"`. For custom options, it should be the * fully-qualified name. For example, `"google.api.http"`. */ - name: string; + name?: string; /** * The option's value packed in an Any message. If the value is a * primitive, the corresponding wrapper type defined in @@ -1481,7 +1484,7 @@ export namespace serviceuser_v1 { * it should be stored as an int32 value using the * google.protobuf.Int32Value type. */ - value: any; + value?: any; } /** * Represents a documentation page. A page can contain subpages to represent @@ -1493,7 +1496,7 @@ export namespace serviceuser_v1 { * include {path} ==&#41;</code> to include content from a * Markdown file. */ - content: string; + content?: string; /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, @@ -1505,12 +1508,12 @@ export namespace serviceuser_v1 { * ==&#41; </code></pre> You can reference `Java` page using * Markdown reference link syntax: `Java`. */ - name: string; + name?: string; /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. */ - subpages: Schema$Page[]; + subpages?: Schema$Page[]; } /** * The published version of a Service that is managed by Google Service @@ -1521,11 +1524,11 @@ export namespace serviceuser_v1 { * The resource name of the service. A valid name would be: - * services/serviceuser.googleapis.com */ - name: string; + name?: string; /** * The service's published configuration. */ - service: Schema$Service; + service?: Schema$Service; } /** * Quota configuration helps to achieve fairness and budgeting in service @@ -1555,12 +1558,12 @@ export namespace serviceuser_v1 { /** * List of `QuotaLimit` definitions for the service. */ - limits: Schema$QuotaLimit[]; + limits?: Schema$QuotaLimit[]; /** * List of `MetricRule` definitions, each one mapping a selected method to * one or more metrics. */ - metricRules: Schema$MetricRule[]; + metricRules?: Schema$MetricRule[]; } /** * `QuotaLimit` defines a specific limit that applies over a specified @@ -1577,20 +1580,20 @@ export namespace serviceuser_v1 { * will indicate an unlimited quota. No other negative values are allowed. * Used by group-based quotas only. */ - defaultLimit: string; + defaultLimit?: string; /** * Optional. User-visible, extended description for this quota limit. Should * be used only when more context is needed to understand this limit than * provided by the limit's display name (see: `display_name`). */ - description: string; + description?: string; /** * User-visible display name for this limit. Optional. If not set, the UI * will provide a default display name based on the quota configuration. * This field can be used to override the default display name generated * from the configuration. */ - displayName: string; + displayName?: string; /** * Duration of this limit in textual notation. Example: "100s", * "24h", "1d". For duration longer than a day, only @@ -1599,7 +1602,7 @@ export namespace serviceuser_v1 { * "0" indicates indefinite duration. Used by group-based quotas * only. */ - duration: string; + duration?: string; /** * Free tier value displayed in the Developers Console for this limit. The * free tier is the number of tokens that will be subtracted from the billed @@ -1608,7 +1611,7 @@ export namespace serviceuser_v1 { * other limit. If this field is not set, it defaults to 0, indicating that * there is no free tier for this service. Used by group-based quotas only. */ - freeTier: string; + freeTier?: string; /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up @@ -1617,20 +1620,20 @@ export namespace serviceuser_v1 { * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. Used by group-based quotas only. */ - maxLimit: string; + maxLimit?: string; /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must * be defined within the service config. */ - metric: string; + metric?: string; /** * Name of the quota limit. The name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. The maximum length of the limit name * is 64 characters. */ - name: string; + name?: string; /** * Specify the unit of the quota limit. It uses the same syntax as * Metric.unit. The supported unit kinds are determined by the quota backend @@ -1639,13 +1642,13 @@ export namespace serviceuser_v1 { * insignificant. The "1" at the beginning is required to follow * the metric unit syntax. */ - unit: string; + unit?: string; /** * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. */ - values: any; + values?: any; } /** * Response message for SearchServices method. @@ -1655,11 +1658,11 @@ export namespace serviceuser_v1 { * Token that can be passed to `ListAvailableServices` to resume a paginated * query. */ - nextPageToken: string; + nextPageToken?: string; /** * Services available publicly or available to the authenticated caller. */ - services: Schema$PublishedService[]; + services?: Schema$PublishedService[]; } /** * `Service` is the root object of Google service configuration schema. It @@ -1683,111 +1686,111 @@ export namespace serviceuser_v1 { * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. */ - apis: Schema$Api[]; + apis?: Schema$Api[]; /** * Auth configuration. */ - authentication: Schema$Authentication; + authentication?: Schema$Authentication; /** * API backend configuration. */ - backend: Schema$Backend; + backend?: Schema$Backend; /** * Billing configuration. */ - billing: Schema$Billing; + billing?: Schema$Billing; /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. The * latest config version is `3`. */ - configVersion: number; + configVersion?: number; /** * Context configuration. */ - context: Schema$Context; + context?: Schema$Context; /** * Configuration for the service control plane. */ - control: Schema$Control; + control?: Schema$Control; /** * Custom error configuration. */ - customError: Schema$CustomError; + customError?: Schema$CustomError; /** * Additional API documentation. */ - documentation: Schema$Documentation; + documentation?: Schema$Documentation; /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service * all defined APIs. */ - endpoints: Schema$Endpoint[]; + endpoints?: Schema$Endpoint[]; /** * A list of all enum types included in this API service. Enums referenced * directly or indirectly by the `apis` are automatically included. Enums * which are not referenced but shall be included should be listed here by * name. Example: enums: - name: google.someapi.v1.SomeEnum */ - enums: Schema$Enum[]; + enums?: Schema$Enum[]; /** * Experimental configuration. */ - experimental: Schema$Experimental; + experimental?: Schema$Experimental; /** * HTTP configuration. */ - http: Schema$Http; + http?: Schema$Http; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. */ - id: string; + id?: string; /** * Logging configuration. */ - logging: Schema$Logging; + logging?: Schema$Logging; /** * Defines the logs used by this service. */ - logs: Schema$LogDescriptor[]; + logs?: Schema$LogDescriptor[]; /** * Defines the metrics used by this service. */ - metrics: Schema$MetricDescriptor[]; + metrics?: Schema$MetricDescriptor[]; /** * Defines the monitored resources used by this service. This is required by * the Service.monitoring and Service.logging configurations. */ - monitoredResources: Schema$MonitoredResourceDescriptor[]; + monitoredResources?: Schema$MonitoredResourceDescriptor[]; /** * Monitoring configuration. */ - monitoring: Schema$Monitoring; + monitoring?: Schema$Monitoring; /** * The DNS address at which this service is available, e.g. * `calendar.googleapis.com`. */ - name: string; + name?: string; /** * The Google project that owns this service. */ - producerProjectId: string; + producerProjectId?: string; /** * Quota configuration. */ - quota: Schema$Quota; + quota?: Schema$Quota; /** * Output only. The source information for this configuration if available. */ - sourceInfo: Schema$SourceInfo; + sourceInfo?: Schema$SourceInfo; /** * System parameter configuration. */ - systemParameters: Schema$SystemParameters; + systemParameters?: Schema$SystemParameters; /** * A list of all proto message types included in this API service. It serves * similar purpose as [google.api.Service.types], except that these types @@ -1795,11 +1798,11 @@ export namespace serviceuser_v1 { * the generated discovery doc. This field should only be used to define * system APIs in ESF. */ - systemTypes: Schema$Type[]; + systemTypes?: Schema$Type[]; /** * The product title for this service. */ - title: string; + title?: string; /** * A list of all proto message types included in this API service. Types * referenced directly or indirectly by the `apis` are automatically @@ -1807,11 +1810,11 @@ export namespace serviceuser_v1 { * as types used by the `google.protobuf.Any` type, should be listed here by * name. Example: types: - name: google.protobuf.Int32 */ - types: Schema$Type[]; + types?: Schema$Type[]; /** * Configuration controlling usage of this service. */ - usage: Schema$Usage; + usage?: Schema$Usage; } /** * `SourceContext` represents information about the source of a protobuf @@ -1823,7 +1826,7 @@ export namespace serviceuser_v1 { * protobuf element. For example: * `"google/protobuf/source_context.proto"`. */ - fileName: string; + fileName?: string; } /** * Source information used to create a Service Config @@ -1832,7 +1835,7 @@ export namespace serviceuser_v1 { /** * All files used during config generation. */ - sourceFiles: any[]; + sourceFiles?: any[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -1874,18 +1877,18 @@ export namespace serviceuser_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents the status of one operation step. @@ -1894,11 +1897,11 @@ export namespace serviceuser_v1 { /** * The short description of the step. */ - description: string; + description?: string; /** * The status code. */ - status: string; + status?: string; } /** * Define a parameter's name and location. The parameter may be passed as @@ -1910,17 +1913,17 @@ export namespace serviceuser_v1 { * Define the HTTP header name to use for the parameter. It is case * insensitive. */ - httpHeader: string; + httpHeader?: string; /** * Define the name of the parameter, such as "api_key" . It is * case sensitive. */ - name: string; + name?: string; /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. */ - urlQueryParameter: string; + urlQueryParameter?: string; } /** * Define a system parameter rule mapping system parameter definitions to @@ -1933,12 +1936,12 @@ export namespace serviceuser_v1 { * used the behavior is implementation-dependent. If none of the specified * names are present the behavior is parameter-dependent. */ - parameters: Schema$SystemParameter[]; + parameters?: Schema$SystemParameter[]; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; } /** * ### System parameter configuration A system parameter is a special kind of @@ -1962,7 +1965,7 @@ export namespace serviceuser_v1 { * http_header: Api-Key2 **NOTE:** All service configuration rules follow * "last one wins" order. */ - rules: Schema$SystemParameterRule[]; + rules?: Schema$SystemParameterRule[]; } /** * A protocol buffer message type. @@ -1971,27 +1974,27 @@ export namespace serviceuser_v1 { /** * The list of fields. */ - fields: Schema$Field[]; + fields?: Schema$Field[]; /** * The fully qualified message name. */ - name: string; + name?: string; /** * The list of types appearing in `oneof` definitions in this type. */ - oneofs: string[]; + oneofs?: string[]; /** * The protocol buffer options. */ - options: Schema$Option[]; + options?: Schema$Option[]; /** * The source context. */ - sourceContext: Schema$SourceContext; + sourceContext?: Schema$SourceContext; /** * The source syntax. */ - syntax: string; + syntax?: string; } /** * Configuration controlling usage of a service. @@ -2005,19 +2008,19 @@ export namespace serviceuser_v1 { * name of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name * format documented in https://cloud.google.com/pubsub/docs/overview. */ - producerNotificationChannel: string; + producerNotificationChannel?: string; /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form * <service.name>/<requirement-id>; for example * 'serviceusage.googleapis.com/billing-enabled'. */ - requirements: string[]; + requirements?: string[]; /** * A list of usage rules that apply to individual API methods. **NOTE:** * All service configuration rules follow "last one wins" order. */ - rules: Schema$UsageRule[]; + rules?: Schema$UsageRule[]; } /** * Usage configuration rules for the service. NOTE: Under development. Use @@ -2038,21 +2041,22 @@ export namespace serviceuser_v1 { * If true, the selected method allows unregistered calls, e.g. calls that * don't identify any user or application. */ - allowUnregisteredCalls: boolean; + allowUnregisteredCalls?: boolean; /** * Selects the methods to which this rule applies. Use '*' to * indicate all methods in all APIs. Refer to selector for syntax details. */ - selector: string; + selector?: string; /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. This * flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. */ - skipServiceControl: boolean; + skipServiceControl?: boolean; } + export class Resource$Projects { root: Serviceuser; services: Resource$Projects$Services; @@ -2066,6 +2070,8 @@ export namespace serviceuser_v1 { return this.root; } } + + export class Resource$Projects$Services { root: Serviceuser; constructor(root: Serviceuser) { @@ -2093,26 +2099,39 @@ export namespace serviceuser_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - disable(params?: any, options?: MethodOptions): - AxiosPromise; disable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Services$Disable, + options?: MethodOptions): AxiosPromise; + disable( + params: Params$Resource$Projects$Services$Disable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; disable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Services$Disable, + callback: BodyResponseCallback): void; + disable(callback: BodyResponseCallback): void; + disable( + paramsOrCallback?: Params$Resource$Projects$Services$Disable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Services$Disable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Services$Disable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceuser.googleapis.com/'; const parameters = { options: Object.assign( @@ -2150,26 +2169,39 @@ export namespace serviceuser_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - enable(params?: any, options?: MethodOptions): - AxiosPromise; enable( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Services$Enable, + options?: MethodOptions): AxiosPromise; + enable( + params: Params$Resource$Projects$Services$Enable, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + enable( + params: Params$Resource$Projects$Services$Enable, + callback: BodyResponseCallback): void; + enable(callback: BodyResponseCallback): void; enable( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Services$Enable| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Services$Enable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Services$Enable; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceuser.googleapis.com/'; const parameters = { options: Object.assign( @@ -2206,29 +2238,44 @@ export namespace serviceuser_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Services$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Services$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Services$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Projects$Services$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Services$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Services$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceuser.googleapis.com/'; const parameters = { options: Object.assign( @@ -2252,6 +2299,64 @@ export namespace serviceuser_v1 { } } + export interface Params$Resource$Projects$Services$Disable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the consumer and the service to disable for that consumer. The + * Service User implementation accepts the following forms for consumer: - + * "project:" A valid path would be: - + * /v1/projects/my-project/services/servicemanagement.googleapis.com:disable + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$DisableServiceRequest; + } + export interface Params$Resource$Projects$Services$Enable { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the consumer and the service to enable for that consumer. A + * valid path would be: - + * /v1/projects/my-project/services/servicemanagement.googleapis.com:enable + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$EnableServiceRequest; + } + export interface Params$Resource$Projects$Services$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requested size of the next page of data. + */ + pageSize?: number; + /** + * Token identifying which result to start with; returned by a previous list + * call. + */ + pageToken?: string; + /** + * List enabled services for the specified parent. An example valid parent + * would be: - projects/my-project + */ + parent?: string; + } + + export class Resource$Services { root: Serviceuser; @@ -2281,28 +2386,38 @@ export namespace serviceuser_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search(params?: Params$Resource$Services$Search, options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Services$Search, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + search( + params: Params$Resource$Services$Search, + callback: BodyResponseCallback): void; + search(callback: BodyResponseCallback): void; search( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Services$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Services$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Services$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://serviceuser.googleapis.com/'; const parameters = { options: Object.assign( @@ -2324,4 +2439,21 @@ export namespace serviceuser_v1 { } } } + + export interface Params$Resource$Services$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Requested size of the next page of data. + */ + pageSize?: number; + /** + * Token identifying which result to start with; returned by a previous list + * call. + */ + pageToken?: string; + } } diff --git a/src/apis/sheets/v4.ts b/src/apis/sheets/v4.ts index c8f32db0b40..66e0e488e12 100644 --- a/src/apis/sheets/v4.ts +++ b/src/apis/sheets/v4.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace sheets_v4 { + export interface Options extends GlobalOptions { version: 'v4'; } + /** * Google Sheets API * @@ -74,7 +77,7 @@ export namespace sheets_v4 { * not set, an id will be randomly generated. (It is an error to specify the * ID of a range that already exists.) */ - bandedRange: Schema$BandedRange; + bandedRange?: Schema$BandedRange; } /** * The result of adding a banded range. @@ -83,7 +86,7 @@ export namespace sheets_v4 { /** * The banded range that was added. */ - bandedRange: Schema$BandedRange; + bandedRange?: Schema$BandedRange; } /** * Adds a chart to a sheet in the spreadsheet. @@ -95,7 +98,7 @@ export namespace sheets_v4 { * set, an id will be randomly generated. (It is an error to specify the ID * of a chart that already exists.) */ - chart: Schema$EmbeddedChart; + chart?: Schema$EmbeddedChart; } /** * The result of adding a chart to a spreadsheet. @@ -104,7 +107,7 @@ export namespace sheets_v4 { /** * The newly added chart. */ - chart: Schema$EmbeddedChart; + chart?: Schema$EmbeddedChart; } /** * Adds a new conditional format rule at the given index. All subsequent @@ -114,11 +117,11 @@ export namespace sheets_v4 { /** * The zero-based index where the rule should be inserted. */ - index: number; + index?: number; /** * The rule to add. */ - rule: Schema$ConditionalFormatRule; + rule?: Schema$ConditionalFormatRule; } /** * Adds a filter view. @@ -129,7 +132,7 @@ export namespace sheets_v4 { * an id will be randomly generated. (It is an error to specify the ID of a * filter that already exists.) */ - filter: Schema$FilterView; + filter?: Schema$FilterView; } /** * The result of adding a filter view. @@ -138,7 +141,7 @@ export namespace sheets_v4 { /** * The newly added filter view. */ - filter: Schema$FilterView; + filter?: Schema$FilterView; } /** * Adds a named range to the spreadsheet. @@ -149,7 +152,7 @@ export namespace sheets_v4 { * set, an id will be randomly generated. (It is an error to specify the ID * of a range that already exists.) */ - namedRange: Schema$NamedRange; + namedRange?: Schema$NamedRange; } /** * The result of adding a named range. @@ -158,7 +161,7 @@ export namespace sheets_v4 { /** * The named range to add. */ - namedRange: Schema$NamedRange; + namedRange?: Schema$NamedRange; } /** * Adds a new protected range. @@ -169,7 +172,7 @@ export namespace sheets_v4 { * if one is not set, an id will be randomly generated. (It is an error to * specify the ID of a range that already exists.) */ - protectedRange: Schema$ProtectedRange; + protectedRange?: Schema$ProtectedRange; } /** * The result of adding a new protected range. @@ -178,7 +181,7 @@ export namespace sheets_v4 { /** * The newly added protected range. */ - protectedRange: Schema$ProtectedRange; + protectedRange?: Schema$ProtectedRange; } /** * Adds a new sheet. When a sheet is added at a given index, all subsequent @@ -193,7 +196,7 @@ export namespace sheets_v4 { * generated. (It is an error to specify the ID of a sheet that already * exists.) */ - properties: Schema$SheetProperties; + properties?: Schema$SheetProperties; } /** * The result of adding a sheet. @@ -202,7 +205,7 @@ export namespace sheets_v4 { /** * The properties of the newly added sheet. */ - properties: Schema$SheetProperties; + properties?: Schema$SheetProperties; } /** * Adds new cells after the last row with data in a sheet, inserting new rows @@ -215,15 +218,15 @@ export namespace sheets_v4 { * specified. A single `"*"` can be used as short-hand for listing * every field. */ - fields: string; + fields?: string; /** * The data to append. */ - rows: Schema$RowData[]; + rows?: Schema$RowData[]; /** * The sheet ID to append the data to. */ - sheetId: number; + sheetId?: number; } /** * Appends rows or columns to the end of a sheet. @@ -232,15 +235,15 @@ export namespace sheets_v4 { /** * Whether rows or columns should be appended. */ - dimension: string; + dimension?: string; /** * The number of rows or columns to append. */ - length: number; + length?: number; /** * The sheet to append rows or columns to. */ - sheetId: number; + sheetId?: number; } /** * The response when updating a range of values in a spreadsheet. @@ -249,16 +252,16 @@ export namespace sheets_v4 { /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The range (in A1 notation) of the table that values are being appended to * (before the values were appended). Empty if no table was found. */ - tableRange: string; + tableRange?: string; /** * Information about the updates that were applied. */ - updates: Schema$UpdateValuesResponse; + updates?: Schema$UpdateValuesResponse; } /** * Fills in more data based on existing data. @@ -269,17 +272,17 @@ export namespace sheets_v4 { * location that has data and automatically fill that data in to the rest of * the range. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The source and destination areas to autofill. This explicitly lists the * source of the autofill and where to extend that data. */ - sourceAndDestination: Schema$SourceAndDestination; + sourceAndDestination?: Schema$SourceAndDestination; /** * True if we should generate data with the "alternate" series. * This differs based on the type and amount of source data. */ - useAlternateSeries: boolean; + useAlternateSeries?: boolean; } /** * Automatically resizes one or more dimensions based on the contents of the @@ -289,7 +292,7 @@ export namespace sheets_v4 { /** * The dimensions to automatically resize. */ - dimensions: Schema$DimensionRange; + dimensions?: Schema$DimensionRange; } /** * A banded (alternating colors) range in a sheet. @@ -298,23 +301,23 @@ export namespace sheets_v4 { /** * The id of the banded range. */ - bandedRangeId: number; + bandedRangeId?: number; /** * Properties for column bands. These properties will be applied on a * column- by-column basis throughout all the columns in the range. At least * one of row_properties or column_properties must be specified. */ - columnProperties: Schema$BandingProperties; + columnProperties?: Schema$BandingProperties; /** * The range over which these properties are applied. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * Properties for row bands. These properties will be applied on a * row-by-row basis throughout all the rows in the range. At least one of * row_properties or column_properties must be specified. */ - rowProperties: Schema$BandingProperties; + rowProperties?: Schema$BandingProperties; } /** * Properties referring a single dimension (either row or column). If both @@ -332,13 +335,13 @@ export namespace sheets_v4 { /** * The first color that is alternating. (Required) */ - firstBandColor: Schema$Color; + firstBandColor?: Schema$Color; /** * The color of the last row or column. If this field is not set, the last * row or column will be filled with either first_band_color or * second_band_color, depending on the color of the previous row or column. */ - footerColor: Schema$Color; + footerColor?: Schema$Color; /** * The color of the first row or column. If this field is set, the first row * or column will be filled with this color and the colors will alternate @@ -347,11 +350,11 @@ export namespace sheets_v4 { * first_band_color and the colors will proceed to alternate as they * normally would. */ - headerColor: Schema$Color; + headerColor?: Schema$Color; /** * The second color that is alternating. (Required) */ - secondBandColor: Schema$Color; + secondBandColor?: Schema$Color; } /** * An axis of the chart. A chart may not have more than one axis per axis @@ -362,20 +365,20 @@ export namespace sheets_v4 { * The format of the title. Only valid if the axis is not associated with * the domain. */ - format: Schema$TextFormat; + format?: Schema$TextFormat; /** * The position of this axis. */ - position: string; + position?: string; /** * The title of this axis. If set, this overrides any title inferred from * headers of the data. */ - title: string; + title?: string; /** * The axis title text position. */ - titleTextPosition: Schema$TextPosition; + titleTextPosition?: Schema$TextPosition; } /** * The domain of a chart. For example, if charting stock prices over time, @@ -386,11 +389,11 @@ export namespace sheets_v4 { * The data of the domain. For example, if charting stock prices over time, * this is the data representing the dates. */ - domain: Schema$ChartData; + domain?: Schema$ChartData; /** * True to reverse the order of the domain values (horizontal axis). */ - reversed: boolean; + reversed?: boolean; } /** * A single series of data in a chart. For example, if charting stock prices @@ -402,17 +405,17 @@ export namespace sheets_v4 { * The color for elements (i.e. bars, lines, points) associated with this * series. If empty, a default color will be used. */ - color: Schema$Color; + color?: Schema$Color; /** * The line style of this series. Valid only if the chartType is AREA, LINE, * or SCATTER. COMBO charts are also supported if the series chart type is * AREA or LINE. */ - lineStyle: Schema$LineStyle; + lineStyle?: Schema$LineStyle; /** * The data being visualized in this chart series. */ - series: Schema$ChartData; + series?: Schema$ChartData; /** * The minor axis that will specify the range of values for this series. For * example, if charting stocks over time, the "Volume" series may @@ -421,13 +424,13 @@ export namespace sheets_v4 { * prices. It is an error to specify an axis that isn't a valid minor * axis for the chart's type. */ - targetAxis: string; + targetAxis?: string; /** * The type of this series. Valid only if the chartType is COMBO. Different * types will change the way the series is visualized. Only LINE, AREA, and * COLUMN are supported. */ - type: string; + type?: string; } /** * The specification for a basic chart. See BasicChartType for the list of @@ -437,55 +440,55 @@ export namespace sheets_v4 { /** * The axis on the chart. */ - axis: Schema$BasicChartAxis[]; + axis?: Schema$BasicChartAxis[]; /** * The type of the chart. */ - chartType: string; + chartType?: string; /** * The behavior of tooltips and data highlighting when hovering on data and * chart area. */ - compareMode: string; + compareMode?: string; /** * The domain of data this is charting. Only a single domain is supported. */ - domains: Schema$BasicChartDomain[]; + domains?: Schema$BasicChartDomain[]; /** * The number of rows or columns in the data that are "headers". * If not set, Google Sheets will guess how many rows are headers based on * the data. (Note that BasicChartAxis.title may override the axis title * inferred from the header values.) */ - headerCount: number; + headerCount?: number; /** * If some values in a series are missing, gaps may appear in the chart * (e.g, segments of lines in a line chart will be missing). To eliminate * these gaps set this to true. Applies to Line, Area, and Combo charts. */ - interpolateNulls: boolean; + interpolateNulls?: boolean; /** * The position of the chart legend. */ - legendPosition: string; + legendPosition?: string; /** * Gets whether all lines should be rendered smooth or straight by default. * Applies to Line charts. */ - lineSmoothing: boolean; + lineSmoothing?: boolean; /** * The data this chart is visualizing. */ - series: Schema$BasicChartSeries[]; + series?: Schema$BasicChartSeries[]; /** * The stacked type for charts that support vertical stacking. Applies to * Area, Bar, Column, Combo, and Stepped Area charts. */ - stackedType: string; + stackedType?: string; /** * True to make the chart 3D. Applies to Bar and Column charts. */ - threeDimensional: boolean; + threeDimensional?: boolean; } /** * The default filter associated with a sheet. @@ -495,16 +498,16 @@ export namespace sheets_v4 { * The criteria for showing/hiding values per column. The map's key is * the column index, and the value is the criteria for that column. */ - criteria: any; + criteria?: any; /** * The range the filter covers. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The sort order per column. Later specifications are used when values are * equal in the earlier specifications. */ - sortSpecs: Schema$SortSpec[]; + sortSpecs?: Schema$SortSpec[]; } /** * The request for clearing more than one range selected by a DataFilter in a @@ -514,7 +517,7 @@ export namespace sheets_v4 { /** * The DataFilters used to determine which ranges to clear. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; } /** * The response when clearing a range of values selected with DataFilters in a @@ -527,11 +530,11 @@ export namespace sheets_v4 { * will be the actual ranges that were cleared, bounded to the sheet's * limits.) */ - clearedRanges: string[]; + clearedRanges?: string[]; /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; } /** * The request for clearing more than one range of values in a spreadsheet. @@ -540,7 +543,7 @@ export namespace sheets_v4 { /** * The ranges to clear, in A1 notation. */ - ranges: string[]; + ranges?: string[]; } /** * The response when clearing a range of values in a spreadsheet. @@ -552,11 +555,11 @@ export namespace sheets_v4 { * will be the actual ranges that were cleared, bounded to the sheet's * limits.) */ - clearedRanges: string[]; + clearedRanges?: string[]; /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; } /** * The request for retrieving a range of values in a spreadsheet selected by a @@ -568,13 +571,13 @@ export namespace sheets_v4 { * that match any of the specified data filters will be included in the * response. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; /** * How dates, times, and durations should be represented in the output. This * is ignored if value_render_option is FORMATTED_VALUE. The default * dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. */ - dateTimeRenderOption: string; + dateTimeRenderOption?: string; /** * The major dimension that results should use. For example, if the * spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then a request that selects @@ -582,12 +585,12 @@ export namespace sheets_v4 { * whereas a request that sets `majorDimension=COLUMNS` will return * `[[1,3],[2,4]]`. */ - majorDimension: string; + majorDimension?: string; /** * How values should be represented in the output. The default render option * is ValueRenderOption.FORMATTED_VALUE. */ - valueRenderOption: string; + valueRenderOption?: string; } /** * The response when retrieving more than one range of values in a spreadsheet @@ -597,11 +600,11 @@ export namespace sheets_v4 { /** * The ID of the spreadsheet the data was retrieved from. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The requested values with the list of data filters that matched them. */ - valueRanges: Schema$MatchedValueRange[]; + valueRanges?: Schema$MatchedValueRange[]; } /** * The response when retrieving more than one range of values in a @@ -611,12 +614,12 @@ export namespace sheets_v4 { /** * The ID of the spreadsheet the data was retrieved from. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The requested values. The order of the ValueRanges is the same as the * order of the requested ranges. */ - valueRanges: Schema$ValueRange[]; + valueRanges?: Schema$ValueRange[]; } /** * The request for updating any aspect of a spreadsheet. @@ -626,24 +629,24 @@ export namespace sheets_v4 { * Determines if the update response should include the spreadsheet * resource. */ - includeSpreadsheetInResponse: boolean; + includeSpreadsheetInResponse?: boolean; /** * A list of updates to apply to the spreadsheet. Requests will be applied * in the order they are specified. If any request is not valid, no requests * will be applied. */ - requests: Schema$Request[]; + requests?: Schema$Request[]; /** * True if grid data should be returned. Meaningful only if if * include_spreadsheet_in_response is 'true'. This parameter is * ignored if a field mask was set in the request. */ - responseIncludeGridData: boolean; + responseIncludeGridData?: boolean; /** * Limits the ranges included in the response spreadsheet. Meaningful only * if include_spreadsheet_response is 'true'. */ - responseRanges: string[]; + responseRanges?: string[]; } /** * The reply for batch updating a spreadsheet. @@ -653,17 +656,17 @@ export namespace sheets_v4 { * The reply of the updates. This maps 1:1 with the updates, although * replies to some requests may be empty. */ - replies: Schema$Response[]; + replies?: Schema$Response[]; /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The spreadsheet after updates were applied. This is only set if * [BatchUpdateSpreadsheetRequest.include_spreadsheet_in_response] is * `true`. */ - updatedSpreadsheet: Schema$Spreadsheet; + updatedSpreadsheet?: Schema$Spreadsheet; } /** * The request for updating more than one range of values in a spreadsheet. @@ -674,7 +677,7 @@ export namespace sheets_v4 { * matched by the specified DataFilter the specified values will be applied * to all of those ranges. */ - data: Schema$DataFilterValueRange[]; + data?: Schema$DataFilterValueRange[]; /** * Determines if the update response should include the values of the cells * that were updated. By default, responses do not include the updated @@ -684,23 +687,23 @@ export namespace sheets_v4 { * response will include all values in the requested range (excluding * trailing empty rows and columns). */ - includeValuesInResponse: boolean; + includeValuesInResponse?: boolean; /** * Determines how dates, times, and durations in the response should be * rendered. This is ignored if response_value_render_option is * FORMATTED_VALUE. The default dateTime render option is * DateTimeRenderOption.SERIAL_NUMBER. */ - responseDateTimeRenderOption: string; + responseDateTimeRenderOption?: string; /** * Determines how values in the response should be rendered. The default * render option is ValueRenderOption.FORMATTED_VALUE. */ - responseValueRenderOption: string; + responseValueRenderOption?: string; /** * How the input data should be interpreted. */ - valueInputOption: string; + valueInputOption?: string; } /** * The response when updating a range of values in a spreadsheet. @@ -709,29 +712,29 @@ export namespace sheets_v4 { /** * The response for each range updated. */ - responses: Schema$UpdateValuesByDataFilterResponse[]; + responses?: Schema$UpdateValuesByDataFilterResponse[]; /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The total number of cells updated. */ - totalUpdatedCells: number; + totalUpdatedCells?: number; /** * The total number of columns where at least one cell in the column was * updated. */ - totalUpdatedColumns: number; + totalUpdatedColumns?: number; /** * The total number of rows where at least one cell in the row was updated. */ - totalUpdatedRows: number; + totalUpdatedRows?: number; /** * The total number of sheets where at least one cell in the sheet was * updated. */ - totalUpdatedSheets: number; + totalUpdatedSheets?: number; } /** * The request for updating more than one range of values in a spreadsheet. @@ -740,7 +743,7 @@ export namespace sheets_v4 { /** * The new values to apply to the spreadsheet. */ - data: Schema$ValueRange[]; + data?: Schema$ValueRange[]; /** * Determines if the update response should include the values of the cells * that were updated. By default, responses do not include the updated @@ -750,23 +753,23 @@ export namespace sheets_v4 { * response will include all values in the requested range (excluding * trailing empty rows and columns). */ - includeValuesInResponse: boolean; + includeValuesInResponse?: boolean; /** * Determines how dates, times, and durations in the response should be * rendered. This is ignored if response_value_render_option is * FORMATTED_VALUE. The default dateTime render option is * DateTimeRenderOption.SERIAL_NUMBER. */ - responseDateTimeRenderOption: string; + responseDateTimeRenderOption?: string; /** * Determines how values in the response should be rendered. The default * render option is ValueRenderOption.FORMATTED_VALUE. */ - responseValueRenderOption: string; + responseValueRenderOption?: string; /** * How the input data should be interpreted. */ - valueInputOption: string; + valueInputOption?: string; } /** * The response when updating a range of values in a spreadsheet. @@ -776,29 +779,29 @@ export namespace sheets_v4 { * One UpdateValuesResponse per requested range, in the same order as the * requests appeared. */ - responses: Schema$UpdateValuesResponse[]; + responses?: Schema$UpdateValuesResponse[]; /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The total number of cells updated. */ - totalUpdatedCells: number; + totalUpdatedCells?: number; /** * The total number of columns where at least one cell in the column was * updated. */ - totalUpdatedColumns: number; + totalUpdatedColumns?: number; /** * The total number of rows where at least one cell in the row was updated. */ - totalUpdatedRows: number; + totalUpdatedRows?: number; /** * The total number of sheets where at least one cell in the sheet was * updated. */ - totalUpdatedSheets: number; + totalUpdatedSheets?: number; } /** * A condition that can evaluate to true or false. BooleanConditions are used @@ -808,13 +811,13 @@ export namespace sheets_v4 { /** * The type of condition. */ - type: string; + type?: string; /** * The values of the condition. The number of supported values depends on * the condition type. Some support zero values, others one or two values, * and ConditionType.ONE_OF_LIST supports an arbitrary number of values. */ - values: Schema$ConditionValue[]; + values?: Schema$ConditionValue[]; } /** * A rule that may or may not match, depending on the condition. @@ -824,13 +827,13 @@ export namespace sheets_v4 { * The condition of the rule. If the condition evaluates to true, the format * will be applied. */ - condition: Schema$BooleanCondition; + condition?: Schema$BooleanCondition; /** * The format to apply. Conditional formatting can only apply a subset of * formatting: bold, italic, strikethrough, foreground color & * background color. */ - format: Schema$CellFormat; + format?: Schema$CellFormat; } /** * A border along a cell. @@ -839,16 +842,16 @@ export namespace sheets_v4 { /** * The color of the border. */ - color: Schema$Color; + color?: Schema$Color; /** * The style of the border. */ - style: string; + style?: string; /** * The width of the border, in pixels. Deprecated; the width is determined * by the "style" field. */ - width: number; + width?: number; } /** * The borders of the cell. @@ -857,19 +860,19 @@ export namespace sheets_v4 { /** * The bottom border of the cell. */ - bottom: Schema$Border; + bottom?: Schema$Border; /** * The left border of the cell. */ - left: Schema$Border; + left?: Schema$Border; /** * The right border of the cell. */ - right: Schema$Border; + right?: Schema$Border; /** * The top border of the cell. */ - top: Schema$Border; + top?: Schema$Border; } /** * A <a @@ -880,58 +883,58 @@ export namespace sheets_v4 { /** * The bubble border color. */ - bubbleBorderColor: Schema$Color; + bubbleBorderColor?: Schema$Color; /** * The data containing the bubble labels. These do not need to be unique. */ - bubbleLabels: Schema$ChartData; + bubbleLabels?: Schema$ChartData; /** * The max radius size of the bubbles, in pixels. If specified, the field * must be a positive value. */ - bubbleMaxRadiusSize: number; + bubbleMaxRadiusSize?: number; /** * The minimum radius size of the bubbles, in pixels. If specific, the field * must be a positive value. */ - bubbleMinRadiusSize: number; + bubbleMinRadiusSize?: number; /** * The opacity of the bubbles between 0 and 1.0. 0 is fully transparent and * 1 is fully opaque. */ - bubbleOpacity: number; + bubbleOpacity?: number; /** * The data contianing the bubble sizes. Bubble sizes are used to draw the * bubbles at different sizes relative to each other. If specified, * group_ids must also be specified. This field is optional. */ - bubbleSizes: Schema$ChartData; + bubbleSizes?: Schema$ChartData; /** * The format of the text inside the bubbles. Underline and Strikethrough * are not supported. */ - bubbleTextStyle: Schema$TextFormat; + bubbleTextStyle?: Schema$TextFormat; /** * The data containing the bubble x-values. These values locate the bubbles * in the chart horizontally. */ - domain: Schema$ChartData; + domain?: Schema$ChartData; /** * The data containing the bubble group IDs. All bubbles with the same group * ID will be drawn in the same color. If bubble_sizes is specified then * this field must also be specified but may contain blank values. This * field is optional. */ - groupIds: Schema$ChartData; + groupIds?: Schema$ChartData; /** * Where the legend of the chart should be drawn. */ - legendPosition: string; + legendPosition?: string; /** * The data contianing the bubble y-values. These values locate the bubbles * in the chart vertically. */ - series: Schema$ChartData; + series?: Schema$ChartData; } /** * A <a @@ -942,13 +945,13 @@ export namespace sheets_v4 { /** * The Candlestick chart data. Only one CandlestickData is supported. */ - data: Schema$CandlestickData[]; + data?: Schema$CandlestickData[]; /** * The domain data (horizontal axis) for the candlestick chart. String data * will be treated as discrete labels, other data will be treated as * continuous values. */ - domain: Schema$CandlestickDomain; + domain?: Schema$CandlestickDomain; } /** * The Candlestick chart data, each containing the low, open, close, and high @@ -960,23 +963,23 @@ export namespace sheets_v4 { * This is the top of the candle body. If greater than the open value the * candle will be filled. Otherwise the candle will be hollow. */ - closeSeries: Schema$CandlestickSeries; + closeSeries?: Schema$CandlestickSeries; /** * The range data (vertical axis) for the high/maximum value for each * candle. This is the top of the candle's center line. */ - highSeries: Schema$CandlestickSeries; + highSeries?: Schema$CandlestickSeries; /** * The range data (vertical axis) for the low/minimum value for each candle. * This is the bottom of the candle's center line. */ - lowSeries: Schema$CandlestickSeries; + lowSeries?: Schema$CandlestickSeries; /** * The range data (vertical axis) for the open/initial value for each * candle. This is the bottom of the candle body. If less than the close * value the candle will be filled. Otherwise the candle will be hollow. */ - openSeries: Schema$CandlestickSeries; + openSeries?: Schema$CandlestickSeries; } /** * The domain of a CandlestickChart. @@ -985,11 +988,11 @@ export namespace sheets_v4 { /** * The data of the CandlestickDomain. */ - data: Schema$ChartData; + data?: Schema$ChartData; /** * True to reverse the order of the domain values (horizontal axis). */ - reversed: boolean; + reversed?: boolean; } /** * The series of a CandlestickData. @@ -998,7 +1001,7 @@ export namespace sheets_v4 { /** * The data of the CandlestickSeries. */ - data: Schema$ChartData; + data?: Schema$ChartData; } /** * Data about a specific cell. @@ -1008,35 +1011,35 @@ export namespace sheets_v4 { * A data validation rule on the cell, if any. When writing, the new data * validation rule will overwrite any prior rule. */ - dataValidation: Schema$DataValidationRule; + dataValidation?: Schema$DataValidationRule; /** * The effective format being used by the cell. This includes the results of * applying any conditional formatting and, if the cell contains a formula, * the computed number format. If the effective format is the default * format, effective format will not be written. This field is read-only. */ - effectiveFormat: Schema$CellFormat; + effectiveFormat?: Schema$CellFormat; /** * The effective value of the cell. For cells with formulas, this will be * the calculated value. For cells with literals, this will be the same as * the user_entered_value. This field is read-only. */ - effectiveValue: Schema$ExtendedValue; + effectiveValue?: Schema$ExtendedValue; /** * The formatted value of the cell. This is the value as it's shown to * the user. This field is read-only. */ - formattedValue: string; + formattedValue?: string; /** * A hyperlink this cell points to, if any. This field is read-only. (To * set it, use a `=HYPERLINK` formula in the userEnteredValue.formulaValue * field.) */ - hyperlink: string; + hyperlink?: string; /** * Any note on the cell. */ - note: string; + note?: string; /** * A pivot table anchored at this cell. The size of pivot table itself is * computed dynamically based on its data, grouping, filters, values, etc. @@ -1044,7 +1047,7 @@ export namespace sheets_v4 { * definition. The other cells will contain the calculated values of the * results of the pivot in their effective_value fields. */ - pivotTable: Schema$PivotTable; + pivotTable?: Schema$PivotTable; /** * Runs of rich text applied to subsections of the cell. Runs are only * valid on user entered strings, not formulas, bools, or numbers. Runs @@ -1055,18 +1058,18 @@ export namespace sheets_v4 { * runs will overwrite any prior runs. When writing a new * user_entered_value, previous runs will be erased. */ - textFormatRuns: Schema$TextFormatRun[]; + textFormatRuns?: Schema$TextFormatRun[]; /** * The format the user entered for the cell. When writing, the new format * will be merged with the existing format. */ - userEnteredFormat: Schema$CellFormat; + userEnteredFormat?: Schema$CellFormat; /** * The value the user entered in the cell. e.g, `1234`, `'Hello'`, * or `=NOW()` Note: Dates, Times and DateTimes are represented as doubles * in serial number format. */ - userEnteredValue: Schema$ExtendedValue; + userEnteredValue?: Schema$ExtendedValue; } /** * The format of a cell. @@ -1075,47 +1078,47 @@ export namespace sheets_v4 { /** * The background color of the cell. */ - backgroundColor: Schema$Color; + backgroundColor?: Schema$Color; /** * The borders of the cell. */ - borders: Schema$Borders; + borders?: Schema$Borders; /** * The horizontal alignment of the value in the cell. */ - horizontalAlignment: string; + horizontalAlignment?: string; /** * How a hyperlink, if it exists, should be displayed in the cell. */ - hyperlinkDisplayType: string; + hyperlinkDisplayType?: string; /** * A format describing how number values should be represented to the user. */ - numberFormat: Schema$NumberFormat; + numberFormat?: Schema$NumberFormat; /** * The padding of the cell. */ - padding: Schema$Padding; + padding?: Schema$Padding; /** * The direction of the text in the cell. */ - textDirection: string; + textDirection?: string; /** * The format of the text in the cell (unless overridden by a format run). */ - textFormat: Schema$TextFormat; + textFormat?: Schema$TextFormat; /** * The rotation applied to text in a cell */ - textRotation: Schema$TextRotation; + textRotation?: Schema$TextRotation; /** * The vertical alignment of the value in the cell. */ - verticalAlignment: string; + verticalAlignment?: string; /** * The wrap strategy for the value in the cell. */ - wrapStrategy: string; + wrapStrategy?: string; } /** * The data included in a domain or series. @@ -1124,7 +1127,7 @@ export namespace sheets_v4 { /** * The source ranges of the data. */ - sourceRange: Schema$ChartSourceRange; + sourceRange?: Schema$ChartSourceRange; } /** * Source ranges for a chart. @@ -1141,7 +1144,7 @@ export namespace sheets_v4 { * series2 sources: D6:D10 domain sources: A1:A5, C10:C12 series1 * sources: B1:B5, D10:D12 series2 sources: C1:C5, E10:E12 */ - sources: Schema$GridRange[]; + sources?: Schema$GridRange[]; } /** * The specifications of a chart. @@ -1151,84 +1154,84 @@ export namespace sheets_v4 { * The alternative text that describes the chart. This is often used for * accessibility. */ - altText: string; + altText?: string; /** * The background color of the entire chart. Not applicable to Org charts. */ - backgroundColor: Schema$Color; + backgroundColor?: Schema$Color; /** * A basic chart specification, can be one of many kinds of charts. See * BasicChartType for the list of all charts this supports. */ - basicChart: Schema$BasicChartSpec; + basicChart?: Schema$BasicChartSpec; /** * A bubble chart specification. */ - bubbleChart: Schema$BubbleChartSpec; + bubbleChart?: Schema$BubbleChartSpec; /** * A candlestick chart specification. */ - candlestickChart: Schema$CandlestickChartSpec; + candlestickChart?: Schema$CandlestickChartSpec; /** * The name of the font to use by default for all chart text (e.g. title, * axis labels, legend). If a font is specified for a specific part of the * chart it will override this font name. */ - fontName: string; + fontName?: string; /** * Determines how the charts will use hidden rows or columns. */ - hiddenDimensionStrategy: string; + hiddenDimensionStrategy?: string; /** * A histogram chart specification. */ - histogramChart: Schema$HistogramChartSpec; + histogramChart?: Schema$HistogramChartSpec; /** * True to make a chart fill the entire space in which it's rendered * with minimum padding. False to use the default padding. (Not applicable * to Geo and Org charts.) */ - maximized: boolean; + maximized?: boolean; /** * An org chart specification. */ - orgChart: Schema$OrgChartSpec; + orgChart?: Schema$OrgChartSpec; /** * A pie chart specification. */ - pieChart: Schema$PieChartSpec; + pieChart?: Schema$PieChartSpec; /** * The subtitle of the chart. */ - subtitle: string; + subtitle?: string; /** * The subtitle text format. Strikethrough and underline are not supported. */ - subtitleTextFormat: Schema$TextFormat; + subtitleTextFormat?: Schema$TextFormat; /** * The subtitle text position. This field is optional. */ - subtitleTextPosition: Schema$TextPosition; + subtitleTextPosition?: Schema$TextPosition; /** * The title of the chart. */ - title: string; + title?: string; /** * The title text format. Strikethrough and underline are not supported. */ - titleTextFormat: Schema$TextFormat; + titleTextFormat?: Schema$TextFormat; /** * The title text position. This field is optional. */ - titleTextPosition: Schema$TextPosition; + titleTextPosition?: Schema$TextPosition; /** * A treemap chart specification. */ - treemapChart: Schema$TreemapChartSpec; + treemapChart?: Schema$TreemapChartSpec; /** * A waterfall chart specification. */ - waterfallChart: Schema$WaterfallChartSpec; + waterfallChart?: Schema$WaterfallChartSpec; } /** * Clears the basic filter, if any exists on the sheet. @@ -1237,7 +1240,7 @@ export namespace sheets_v4 { /** * The sheet ID on which the basic filter should be cleared. */ - sheetId: number; + sheetId?: number; } /** * The request for clearing a range of values in a spreadsheet. @@ -1253,11 +1256,11 @@ export namespace sheets_v4 { * will be the actual range that was cleared, bounded to the sheet's * limits.) */ - clearedRange: string; + clearedRange?: string; /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; } /** * Represents a color in the RGBA color space. This representation is designed @@ -1325,19 +1328,19 @@ export namespace sheets_v4 { * omitted, this color object is to be rendered as a solid color (as if the * alpha value had been explicitly given with a value of 1.0). */ - alpha: number; + alpha?: number; /** * The amount of blue in the color as a value in the interval [0, 1]. */ - blue: number; + blue?: number; /** * The amount of green in the color as a value in the interval [0, 1]. */ - green: number; + green?: number; /** * The amount of red in the color as a value in the interval [0, 1]. */ - red: number; + red?: number; } /** * A rule describing a conditional format. @@ -1347,16 +1350,16 @@ export namespace sheets_v4 { * The formatting is either "on" or "off" according to * the rule. */ - booleanRule: Schema$BooleanRule; + booleanRule?: Schema$BooleanRule; /** * The formatting will vary based on the gradients in the rule. */ - gradientRule: Schema$GradientRule; + gradientRule?: Schema$GradientRule; /** * The ranges that will be formatted if the condition is true. All the * ranges must be on the same grid. */ - ranges: Schema$GridRange[]; + ranges?: Schema$GridRange[]; } /** * The value of the condition. @@ -1368,13 +1371,13 @@ export namespace sheets_v4 { * dates are not supported in data validation. They are supported only in * conditional formatting and conditional filters. */ - relativeDate: string; + relativeDate?: string; /** * A value the condition is based on. The value will be parsed as if the * user typed into a cell. Formulas are supported (and must begin with an * `=` or a '+'). */ - userEnteredValue: string; + userEnteredValue?: string; } /** * Copies data from the source to the destination. @@ -1387,19 +1390,19 @@ export namespace sheets_v4 { * the source range, the entire source data will still be copied (beyond the * end of the destination range). */ - destination: Schema$GridRange; + destination?: Schema$GridRange; /** * How that data should be oriented when pasting. */ - pasteOrientation: string; + pasteOrientation?: string; /** * What kind of data to paste. */ - pasteType: string; + pasteType?: string; /** * The source range to copy. */ - source: Schema$GridRange; + source?: Schema$GridRange; } /** * The request to copy a sheet across spreadsheets. @@ -1408,7 +1411,7 @@ export namespace sheets_v4 { /** * The ID of the spreadsheet to copy the sheet to. */ - destinationSpreadsheetId: string; + destinationSpreadsheetId?: string; } /** * A request to create developer metadata. @@ -1417,7 +1420,7 @@ export namespace sheets_v4 { /** * The developer metadata to create. */ - developerMetadata: Schema$DeveloperMetadata; + developerMetadata?: Schema$DeveloperMetadata; } /** * The response from creating developer metadata. @@ -1426,7 +1429,7 @@ export namespace sheets_v4 { /** * The developer metadata that was created. */ - developerMetadata: Schema$DeveloperMetadata; + developerMetadata?: Schema$DeveloperMetadata; } /** * Moves data from the source to the destination. @@ -1435,16 +1438,16 @@ export namespace sheets_v4 { /** * The top-left coordinate where the data should be pasted. */ - destination: Schema$GridCoordinate; + destination?: Schema$GridCoordinate; /** * What kind of data to paste. All the source data will be cut, regardless * of what is pasted. */ - pasteType: string; + pasteType?: string; /** * The source data to cut. */ - source: Schema$GridRange; + source?: Schema$GridRange; } /** * Filter that describes what data should be selected or returned from a @@ -1454,16 +1457,16 @@ export namespace sheets_v4 { /** * Selects data that matches the specified A1 range. */ - a1Range: string; + a1Range?: string; /** * Selects data associated with the developer metadata matching the criteria * described by this DeveloperMetadataLookup. */ - developerMetadataLookup: Schema$DeveloperMetadataLookup; + developerMetadataLookup?: Schema$DeveloperMetadataLookup; /** * Selects data that matches the range described by the GridRange. */ - gridRange: Schema$GridRange; + gridRange?: Schema$GridRange; } /** * A range of values whose location is specified by a DataFilter. @@ -1472,18 +1475,18 @@ export namespace sheets_v4 { /** * The data filter describing the location of the values in the spreadsheet. */ - dataFilter: Schema$DataFilter; + dataFilter?: Schema$DataFilter; /** * The major dimension of the values. */ - majorDimension: string; + majorDimension?: string; /** * The data to be written. If the provided values exceed any of the ranges * matched by the data filter then the request will fail. If the provided * values are less than the matched ranges only the specified values will be * written, existing values in the matched ranges will remain unaffected. */ - values: any[][]; + values?: any[][]; } /** * A data validation rule. @@ -1492,20 +1495,20 @@ export namespace sheets_v4 { /** * The condition that data in the cell must match. */ - condition: Schema$BooleanCondition; + condition?: Schema$BooleanCondition; /** * A message to show the user when adding data to the cell. */ - inputMessage: string; + inputMessage?: string; /** * True if the UI should be customized based on the kind of condition. If * true, "List" conditions will show a dropdown. */ - showCustomUi: boolean; + showCustomUi?: boolean; /** * True if invalid data should be rejected. */ - strict: boolean; + strict?: boolean; } /** * Removes the banded range with the given ID from the spreadsheet. @@ -1514,7 +1517,7 @@ export namespace sheets_v4 { /** * The ID of the banded range to delete. */ - bandedRangeId: number; + bandedRangeId?: number; } /** * Deletes a conditional format rule at the given index. All subsequent @@ -1524,11 +1527,11 @@ export namespace sheets_v4 { /** * The zero-based index of the rule to be deleted. */ - index: number; + index?: number; /** * The sheet the rule is being deleted from. */ - sheetId: number; + sheetId?: number; } /** * The result of deleting a conditional format rule. @@ -1537,7 +1540,7 @@ export namespace sheets_v4 { /** * The rule that was deleted. */ - rule: Schema$ConditionalFormatRule; + rule?: Schema$ConditionalFormatRule; } /** * A request to delete developer metadata. @@ -1547,7 +1550,7 @@ export namespace sheets_v4 { * The data filter describing the criteria used to select which developer * metadata entry to delete. */ - dataFilter: Schema$DataFilter; + dataFilter?: Schema$DataFilter; } /** * The response from deleting developer metadata. @@ -1556,7 +1559,7 @@ export namespace sheets_v4 { /** * The metadata that was deleted. */ - deletedDeveloperMetadata: Schema$DeveloperMetadata[]; + deletedDeveloperMetadata?: Schema$DeveloperMetadata[]; } /** * Deletes the dimensions from the sheet. @@ -1565,7 +1568,7 @@ export namespace sheets_v4 { /** * The dimensions to delete from the sheet. */ - range: Schema$DimensionRange; + range?: Schema$DimensionRange; } /** * Deletes the embedded object with the given ID. @@ -1574,7 +1577,7 @@ export namespace sheets_v4 { /** * The ID of the embedded object to delete. */ - objectId: number; + objectId?: number; } /** * Deletes a particular filter view. @@ -1583,7 +1586,7 @@ export namespace sheets_v4 { /** * The ID of the filter to delete. */ - filterId: number; + filterId?: number; } /** * Removes the named range with the given ID from the spreadsheet. @@ -1592,7 +1595,7 @@ export namespace sheets_v4 { /** * The ID of the named range to delete. */ - namedRangeId: string; + namedRangeId?: string; } /** * Deletes the protected range with the given ID. @@ -1601,7 +1604,7 @@ export namespace sheets_v4 { /** * The ID of the protected range to delete. */ - protectedRangeId: number; + protectedRangeId?: number; } /** * Deletes a range of cells, shifting other cells into the deleted area. @@ -1610,14 +1613,14 @@ export namespace sheets_v4 { /** * The range of cells to delete. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The dimension from which deleted cells will be replaced with. If ROWS, * existing cells will be shifted upward to replace the deleted cells. If * COLUMNS, existing cells will be shifted left to replace the deleted * cells. */ - shiftDimension: string; + shiftDimension?: string; } /** * Deletes the requested sheet. @@ -1626,7 +1629,7 @@ export namespace sheets_v4 { /** * The ID of the sheet to delete. */ - sheetId: number; + sheetId?: number; } /** * Developer metadata associated with a location or object in a spreadsheet. @@ -1642,27 +1645,27 @@ export namespace sheets_v4 { /** * The location where the metadata is associated. */ - location: Schema$DeveloperMetadataLocation; + location?: Schema$DeveloperMetadataLocation; /** * The spreadsheet-scoped unique ID that identifies the metadata. IDs may be * specified when metadata is created, otherwise one will be randomly * generated and assigned. Must be positive. */ - metadataId: number; + metadataId?: number; /** * The metadata key. There may be multiple metadata in a spreadsheet with * the same key. Developer metadata must always have a key specified. */ - metadataKey: string; + metadataKey?: string; /** * Data associated with the metadata's key. */ - metadataValue: string; + metadataValue?: string; /** * The metadata visibility. Developer metadata must always have a * visibility specified. */ - visibility: string; + visibility?: string; } /** * A location where metadata may be associated in a spreadsheet. @@ -1673,19 +1676,19 @@ export namespace sheets_v4 { * dimension. The specified DimensionRange must represent a single row or * column; it cannot be unbounded or span multiple rows or columns. */ - dimensionRange: Schema$DimensionRange; + dimensionRange?: Schema$DimensionRange; /** * The type of location this object represents. This field is read-only. */ - locationType: string; + locationType?: string; /** * The ID of the sheet when metadata is associated with an entire sheet. */ - sheetId: number; + sheetId?: number; /** * True when metadata is associated with an entire spreadsheet. */ - spreadsheet: boolean; + spreadsheet?: boolean; } /** * Selects DeveloperMetadata that matches all of the specified fields. For @@ -1708,7 +1711,7 @@ export namespace sheets_v4 { * INTERSECTING. If this field is specified, a metadataLocation must also be * specified. */ - locationMatchingStrategy: string; + locationMatchingStrategy?: string; /** * Limits the selected developer metadata to those entries which are * associated with locations of the specified type. For example, when this @@ -1721,34 +1724,34 @@ export namespace sheets_v4 { * field also must be left unspecified when the locationMatchingStrategy is * specified as EXACT. */ - locationType: string; + locationType?: string; /** * Limits the selected developer metadata to that which has a matching * DeveloperMetadata.metadata_id. */ - metadataId: number; + metadataId?: number; /** * Limits the selected developer metadata to that which has a matching * DeveloperMetadata.metadata_key. */ - metadataKey: string; + metadataKey?: string; /** * Limits the selected developer metadata to those entries associated with * the specified location. This field either matches exact locations or all * intersecting locations according the specified locationMatchingStrategy. */ - metadataLocation: Schema$DeveloperMetadataLocation; + metadataLocation?: Schema$DeveloperMetadataLocation; /** * Limits the selected developer metadata to that which has a matching * DeveloperMetadata.metadata_value. */ - metadataValue: string; + metadataValue?: string; /** * Limits the selected developer metadata to that which has a matching * DeveloperMetadata.visibility. If left unspecified, all developer * metadata visibile to the requesting project is considered. */ - visibility: string; + visibility?: string; } /** * Properties about a dimension. @@ -1757,19 +1760,19 @@ export namespace sheets_v4 { /** * The developer metadata associated with a single row or column. */ - developerMetadata: Schema$DeveloperMetadata[]; + developerMetadata?: Schema$DeveloperMetadata[]; /** * True if this dimension is being filtered. This field is read-only. */ - hiddenByFilter: boolean; + hiddenByFilter?: boolean; /** * True if this dimension is explicitly hidden. */ - hiddenByUser: boolean; + hiddenByUser?: boolean; /** * The height (if a row) or width (if a column) of the dimension in pixels. */ - pixelSize: number; + pixelSize?: number; } /** * A range along a single dimension on a sheet. All indexes are zero-based. @@ -1780,19 +1783,19 @@ export namespace sheets_v4 { /** * The dimension of the span. */ - dimension: string; + dimension?: string; /** * The end (exclusive) of the span, or not set if unbounded. */ - endIndex: number; + endIndex?: number; /** * The sheet this span is on. */ - sheetId: number; + sheetId?: number; /** * The start (inclusive) of the span, or not set if unbounded. */ - startIndex: number; + startIndex?: number; } /** * Duplicates a particular filter view. @@ -1801,7 +1804,7 @@ export namespace sheets_v4 { /** * The ID of the filter being duplicated. */ - filterId: number; + filterId?: number; } /** * The result of a filter view being duplicated. @@ -1810,7 +1813,7 @@ export namespace sheets_v4 { /** * The newly created filter. */ - filter: Schema$FilterView; + filter?: Schema$FilterView; } /** * Duplicates the contents of a sheet. @@ -1820,21 +1823,21 @@ export namespace sheets_v4 { * The zero-based index where the new sheet should be inserted. The index of * all sheets after this are incremented. */ - insertSheetIndex: number; + insertSheetIndex?: number; /** * If set, the ID of the new sheet. If not set, an ID is chosen. If set, the * ID must not conflict with any existing sheet ID. If set, it must be * non-negative. */ - newSheetId: number; + newSheetId?: number; /** * The name of the new sheet. If empty, a new name is chosen for you. */ - newSheetName: string; + newSheetName?: string; /** * The sheet to duplicate. */ - sourceSheetId: number; + sourceSheetId?: number; } /** * The result of duplicating a sheet. @@ -1843,7 +1846,7 @@ export namespace sheets_v4 { /** * The properties of the duplicate sheet. */ - properties: Schema$SheetProperties; + properties?: Schema$SheetProperties; } /** * The editors of a protected range. @@ -1854,15 +1857,15 @@ export namespace sheets_v4 { * protected range. Domain protection is only supported on documents within * a domain. */ - domainUsersCanEdit: boolean; + domainUsersCanEdit?: boolean; /** * The email addresses of groups with edit access to the protected range. */ - groups: string[]; + groups?: string[]; /** * The email addresses of users with edit access to the protected range. */ - users: string[]; + users?: string[]; } /** * A chart embedded in a sheet. @@ -1871,15 +1874,15 @@ export namespace sheets_v4 { /** * The ID of the chart. */ - chartId: number; + chartId?: number; /** * The position of the chart. */ - position: Schema$EmbeddedObjectPosition; + position?: Schema$EmbeddedObjectPosition; /** * The specification of the chart. */ - spec: Schema$ChartSpec; + spec?: Schema$ChartSpec; } /** * The position of an embedded object such as a chart. @@ -1889,16 +1892,16 @@ export namespace sheets_v4 { * If true, the embedded object will be put on a new sheet whose ID is * chosen for you. Used only when writing. */ - newSheet: boolean; + newSheet?: boolean; /** * The position at which the object is overlaid on top of a grid. */ - overlayPosition: Schema$OverlayPosition; + overlayPosition?: Schema$OverlayPosition; /** * The sheet this is on. Set only if the embedded object is on its own * sheet. Must be non-negative. */ - sheetId: number; + sheetId?: number; } /** * An error in a cell. @@ -1908,11 +1911,11 @@ export namespace sheets_v4 { * A message with more information about the error (in the spreadsheet's * locale). */ - message: string; + message?: string; /** * The type of error. */ - type: string; + type?: string; } /** * The kinds of value that a cell in a spreadsheet can have. @@ -1921,26 +1924,26 @@ export namespace sheets_v4 { /** * Represents a boolean value. */ - boolValue: boolean; + boolValue?: boolean; /** * Represents an error. This field is read-only. */ - errorValue: Schema$ErrorValue; + errorValue?: Schema$ErrorValue; /** * Represents a formula. */ - formulaValue: string; + formulaValue?: string; /** * Represents a double value. Note: Dates, Times and DateTimes are * represented as doubles in "serial number" format. */ - numberValue: number; + numberValue?: number; /** * Represents a string value. Leading single quotes are not included. For * example, if the user typed `'123` into the UI, this would be * represented as a `stringValue` of `"123"`. */ - stringValue: string; + stringValue?: string; } /** * Criteria for showing/hiding rows in a filter or filter view. @@ -1951,11 +1954,11 @@ export namespace sheets_v4 { * override hiddenValues -- if a value is listed there, it will still be * hidden.) */ - condition: Schema$BooleanCondition; + condition?: Schema$BooleanCondition; /** * Values that should be hidden. */ - hiddenValues: string[]; + hiddenValues?: string[]; } /** * A filter view. @@ -1965,30 +1968,30 @@ export namespace sheets_v4 { * The criteria for showing/hiding values per column. The map's key is * the column index, and the value is the criteria for that column. */ - criteria: any; + criteria?: any; /** * The ID of the filter view. */ - filterViewId: number; + filterViewId?: number; /** * The named range this filter view is backed by, if any. When writing, * only one of range or named_range_id may be set. */ - namedRangeId: string; + namedRangeId?: string; /** * The range this filter view covers. When writing, only one of range or * named_range_id may be set. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The sort order per column. Later specifications are used when values are * equal in the earlier specifications. */ - sortSpecs: Schema$SortSpec[]; + sortSpecs?: Schema$SortSpec[]; /** * The name of the filter view. */ - title: string; + title?: string; } /** * Finds and replaces data in cells over a range, sheet, or all sheets. @@ -1997,32 +2000,32 @@ export namespace sheets_v4 { /** * True to find/replace over all sheets. */ - allSheets: boolean; + allSheets?: boolean; /** * The value to search. */ - find: string; + find?: string; /** * True if the search should include cells with formulas. False to skip * cells with formulas. */ - includeFormulas: boolean; + includeFormulas?: boolean; /** * True if the search is case sensitive. */ - matchCase: boolean; + matchCase?: boolean; /** * True if the find value should match the entire cell. */ - matchEntireCell: boolean; + matchEntireCell?: boolean; /** * The range to find/replace over. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The value to use as the replacement. */ - replacement: string; + replacement?: string; /** * True if the find value is a regex. The regular expression and replacement * should follow Java regex rules at @@ -2034,11 +2037,11 @@ export namespace sheets_v4 { * contents of the cells to `"GSheets Rocks"` and `"GDocs * Rocks"` respectively. */ - searchByRegex: boolean; + searchByRegex?: boolean; /** * The sheet to find/replace over. */ - sheetId: number; + sheetId?: number; } /** * The result of the find/replace. @@ -2047,26 +2050,26 @@ export namespace sheets_v4 { /** * The number of formula cells changed. */ - formulasChanged: number; + formulasChanged?: number; /** * The number of occurrences (possibly multiple within a cell) changed. For * example, if replacing `"e"` with `"o"` in * `"Google Sheets"`, this would be `"3"` because * `"Google Sheets"` -> `"Googlo Shoots"`. */ - occurrencesChanged: number; + occurrencesChanged?: number; /** * The number of rows changed. */ - rowsChanged: number; + rowsChanged?: number; /** * The number of sheets changed. */ - sheetsChanged: number; + sheetsChanged?: number; /** * The number of non-formula cells changed. */ - valuesChanged: number; + valuesChanged?: number; } /** * The request for retrieving a Spreadsheet. @@ -2076,12 +2079,12 @@ export namespace sheets_v4 { * The DataFilters used to select which ranges to retrieve from the * spreadsheet. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; /** * True if grid data should be returned. This parameter is ignored if a * field mask was set in the request. */ - includeGridData: boolean; + includeGridData?: boolean; } /** * A rule that applies a gradient color scale format, based on the @@ -2092,15 +2095,15 @@ export namespace sheets_v4 { /** * The final interpolation point. */ - maxpoint: Schema$InterpolationPoint; + maxpoint?: Schema$InterpolationPoint; /** * An optional midway interpolation point. */ - midpoint: Schema$InterpolationPoint; + midpoint?: Schema$InterpolationPoint; /** * The starting interpolation point. */ - minpoint: Schema$InterpolationPoint; + minpoint?: Schema$InterpolationPoint; } /** * A coordinate in a sheet. All indexes are zero-based. @@ -2109,15 +2112,15 @@ export namespace sheets_v4 { /** * The column index of the coordinate. */ - columnIndex: number; + columnIndex?: number; /** * The row index of the coordinate. */ - rowIndex: number; + rowIndex?: number; /** * The sheet this coordinate is on. */ - sheetId: number; + sheetId?: number; } /** * Data in the grid, as well as metadata about the dimensions. @@ -2127,26 +2130,26 @@ export namespace sheets_v4 { * Metadata about the requested columns in the grid, starting with the * column in start_column. */ - columnMetadata: Schema$DimensionProperties[]; + columnMetadata?: Schema$DimensionProperties[]; /** * The data in the grid, one entry per row, starting with the row in * startRow. The values in RowData will correspond to columns starting at * start_column. */ - rowData: Schema$RowData[]; + rowData?: Schema$RowData[]; /** * Metadata about the requested rows in the grid, starting with the row in * start_row. */ - rowMetadata: Schema$DimensionProperties[]; + rowMetadata?: Schema$DimensionProperties[]; /** * The first column this GridData refers to, zero-based. */ - startColumn: number; + startColumn?: number; /** * The first row this GridData refers to, zero-based. */ - startRow: number; + startRow?: number; } /** * Properties of a grid. @@ -2155,23 +2158,23 @@ export namespace sheets_v4 { /** * The number of columns in the grid. */ - columnCount: number; + columnCount?: number; /** * The number of columns that are frozen in the grid. */ - frozenColumnCount: number; + frozenColumnCount?: number; /** * The number of rows that are frozen in the grid. */ - frozenRowCount: number; + frozenRowCount?: number; /** * True if the grid isn't showing gridlines in the UI. */ - hideGridlines: boolean; + hideGridlines?: boolean; /** * The number of rows in the grid. */ - rowCount: number; + rowCount?: number; } /** * A range on a sheet. All indexes are zero-based. Indexes are half open, e.g @@ -2193,23 +2196,23 @@ export namespace sheets_v4 { /** * The end column (exclusive) of the range, or not set if unbounded. */ - endColumnIndex: number; + endColumnIndex?: number; /** * The end row (exclusive) of the range, or not set if unbounded. */ - endRowIndex: number; + endRowIndex?: number; /** * The sheet this range is on. */ - sheetId: number; + sheetId?: number; /** * The start column (inclusive) of the range, or not set if unbounded. */ - startColumnIndex: number; + startColumnIndex?: number; /** * The start row (inclusive) of the range, or not set if unbounded. */ - startRowIndex: number; + startRowIndex?: number; } /** * A <a @@ -2227,11 +2230,11 @@ export namespace sheets_v4 { * bucket size of 1.5 results in buckets from 0 - 1.5, 1.5 - 3.0, etc. * Cannot be negative. This field is optional. */ - bucketSize: number; + bucketSize?: number; /** * The position of the chart legend. */ - legendPosition: string; + legendPosition?: string; /** * The outlier percentile is used to ensure that outliers do not adversely * affect the calculation of bucket sizes. For example, setting an outlier @@ -2240,18 +2243,18 @@ export namespace sheets_v4 { * will be added to the first or last buckets instead of their own buckets. * Must be between 0.0 and 0.5. */ - outlierPercentile: number; + outlierPercentile?: number; /** * The series for a histogram may be either a single series of values to be * bucketed or multiple series, each of the same length, containing the name * of the series followed by the values to be bucketed for that series. */ - series: Schema$HistogramSeries[]; + series?: Schema$HistogramSeries[]; /** * Whether horizontal divider lines should be displayed between items in * each column. */ - showItemDividers: boolean; + showItemDividers?: boolean; } /** * Allows you to organize the numeric values in a source data column into @@ -2281,17 +2284,17 @@ export namespace sheets_v4 { * size. Values above end will be lumped into a single bucket. This field is * optional. */ - end: number; + end?: number; /** * The size of the buckets that will be created. Must be positive. */ - interval: number; + interval?: number; /** * The minimum value at which items will be placed into buckets of constant * size. Values below start will be lumped into a single bucket. This field * is optional. */ - start: number; + start?: number; } /** * A histogram series containing the series color and data. @@ -2301,11 +2304,11 @@ export namespace sheets_v4 { * The color of the column representing this series in each bucket. This * field is optional. */ - barColor: Schema$Color; + barColor?: Schema$Color; /** * The data for this histogram series. */ - data: Schema$ChartData; + data?: Schema$ChartData; } /** * Inserts rows or columns in a sheet at a particular index. @@ -2323,12 +2326,12 @@ export namespace sheets_v4 { * `inheritFromBefore` is false, the two new rows will be green (because the * row after the insertion point was green). */ - inheritFromBefore: boolean; + inheritFromBefore?: boolean; /** * The dimensions to insert. Both the start and end indexes must be * bounded. */ - range: Schema$DimensionRange; + range?: Schema$DimensionRange; } /** * Inserts cells into a range, shifting the existing cells over or down. @@ -2337,13 +2340,13 @@ export namespace sheets_v4 { /** * The range to insert new cells into. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The dimension which will be shifted when inserting cells. If ROWS, * existing cells will be shifted down. If COLUMNS, existing cells will be * shifted right. */ - shiftDimension: string; + shiftDimension?: string; } /** * A single interpolation point on a gradient conditional format. These pin @@ -2353,16 +2356,16 @@ export namespace sheets_v4 { /** * The color this interpolation point should use. */ - color: Schema$Color; + color?: Schema$Color; /** * How the value should be interpreted. */ - type: string; + type?: string; /** * The value this interpolation point uses. May be a formula. Unused if * type is MIN or MAX. */ - value: string; + value?: string; } /** * Settings to control how circular dependencies are resolved with iterative @@ -2373,12 +2376,12 @@ export namespace sheets_v4 { * When iterative calculation is enabled and successive results differ by * less than this threshold value, the calculation rounds stop. */ - convergenceThreshold: number; + convergenceThreshold?: number; /** * When iterative calculation is enabled, the maximum number of calculation * rounds to perform. */ - maxIterations: number; + maxIterations?: number; } /** * Properties that describe the style of a line. @@ -2387,11 +2390,11 @@ export namespace sheets_v4 { /** * The dash type of the line. */ - type: string; + type?: string; /** * The thickness of the line, in px. */ - width: number; + width?: number; } /** * Allows you to manually organize the values in a source data column into @@ -2414,7 +2417,7 @@ export namespace sheets_v4 { * The list of group names and the corresponding items from the source data * that map to each group name. */ - groups: Schema$ManualRuleGroup[]; + groups?: Schema$ManualRuleGroup[]; } /** * A group name and a list of items from the source data that should be placed @@ -2425,14 +2428,14 @@ export namespace sheets_v4 { * The group name, which must be a string. Each group in a given ManualRule * must have a unique group name. */ - groupName: Schema$ExtendedValue; + groupName?: Schema$ExtendedValue; /** * The items in the source data that should be placed into this group. Each * item may be a string, number, or boolean. Items may appear in at most one * group within a given ManualRule. Items that do not appear in any group * will appear on their own. */ - items: Schema$ExtendedValue[]; + items?: Schema$ExtendedValue[]; } /** * A developer metadata entry and the data filters specified in the original @@ -2442,11 +2445,11 @@ export namespace sheets_v4 { /** * All filters matching the returned developer metadata. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; /** * The developer metadata matching the specified filters. */ - developerMetadata: Schema$DeveloperMetadata; + developerMetadata?: Schema$DeveloperMetadata; } /** * A value range that was matched by one or more data filers. @@ -2455,11 +2458,11 @@ export namespace sheets_v4 { /** * The DataFilters from the request that matched the range of values. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; /** * The values matched by the DataFilter. */ - valueRange: Schema$ValueRange; + valueRange?: Schema$ValueRange; } /** * Merges all cells in the range. @@ -2468,11 +2471,11 @@ export namespace sheets_v4 { /** * How the cells should be merged. */ - mergeType: string; + mergeType?: string; /** * The range of cells to merge. */ - range: Schema$GridRange; + range?: Schema$GridRange; } /** * Moves one or more rows or columns. @@ -2490,11 +2493,11 @@ export namespace sheets_v4 { * index would be `"4"` (the zero-based index of row 5). The end * result would be `A1..A5` of `0, 3, 1, 2, 4`. */ - destinationIndex: number; + destinationIndex?: number; /** * The source dimensions to move. */ - source: Schema$DimensionRange; + source?: Schema$DimensionRange; } /** * A named range. @@ -2503,15 +2506,15 @@ export namespace sheets_v4 { /** * The name of the named range. */ - name: string; + name?: string; /** * The ID of the named range. */ - namedRangeId: string; + namedRangeId?: string; /** * The range this represents. */ - range: Schema$GridRange; + range?: Schema$GridRange; } /** * The number format of a cell. @@ -2523,11 +2526,11 @@ export namespace sheets_v4 { * See the [Date and Number Formats guide](/sheets/api/guides/formats) for * more information about the supported patterns. */ - pattern: string; + pattern?: string; /** * The type of the number format. When writing, this field must be set. */ - type: string; + type?: string; } /** * An <a href="/chart/interactive/docs/gallery/orgchart">org @@ -2546,31 +2549,31 @@ export namespace sheets_v4 { * The data containing the labels for all the nodes in the chart. Labels * must be unique. */ - labels: Schema$ChartData; + labels?: Schema$ChartData; /** * The color of the org chart nodes. */ - nodeColor: Schema$Color; + nodeColor?: Schema$Color; /** * The size of the org chart nodes. */ - nodeSize: string; + nodeSize?: string; /** * The data containing the label of the parent for the corresponding node. A * blank value indicates that the node has no parent and is a top-level * node. This field is optional. */ - parentLabels: Schema$ChartData; + parentLabels?: Schema$ChartData; /** * The color of the selected org chart nodes. */ - selectedNodeColor: Schema$Color; + selectedNodeColor?: Schema$Color; /** * The data containing the tooltip for the corresponding node. A blank * value results in no tooltip being displayed for the node. This field is * optional. */ - tooltips: Schema$ChartData; + tooltips?: Schema$ChartData; } /** * The location an object is overlaid on top of a grid. @@ -2579,25 +2582,25 @@ export namespace sheets_v4 { /** * The cell the object is anchored to. */ - anchorCell: Schema$GridCoordinate; + anchorCell?: Schema$GridCoordinate; /** * The height of the object, in pixels. Defaults to 371. */ - heightPixels: number; + heightPixels?: number; /** * The horizontal offset, in pixels, that the object is offset from the * anchor cell. */ - offsetXPixels: number; + offsetXPixels?: number; /** * The vertical offset, in pixels, that the object is offset from the anchor * cell. */ - offsetYPixels: number; + offsetYPixels?: number; /** * The width of the object, in pixels. Defaults to 600. */ - widthPixels: number; + widthPixels?: number; } /** * The amount of padding around the cell, in pixels. When updating padding, @@ -2607,19 +2610,19 @@ export namespace sheets_v4 { /** * The bottom padding of the cell. */ - bottom: number; + bottom?: number; /** * The left padding of the cell. */ - left: number; + left?: number; /** * The right padding of the cell. */ - right: number; + right?: number; /** * The top padding of the cell. */ - top: number; + top?: number; } /** * Inserts data into the spreadsheet starting at the specified coordinate. @@ -2628,23 +2631,23 @@ export namespace sheets_v4 { /** * The coordinate at which the data should start being inserted. */ - coordinate: Schema$GridCoordinate; + coordinate?: Schema$GridCoordinate; /** * The data to insert. */ - data: string; + data?: string; /** * The delimiter in the data. */ - delimiter: string; + delimiter?: string; /** * True if the data is HTML. */ - html: boolean; + html?: boolean; /** * How the data should be pasted. */ - type: string; + type?: string; } /** * A <a href="/chart/interactive/docs/gallery/piechart">pie @@ -2654,23 +2657,23 @@ export namespace sheets_v4 { /** * The data that covers the domain of the pie chart. */ - domain: Schema$ChartData; + domain?: Schema$ChartData; /** * Where the legend of the pie chart should be drawn. */ - legendPosition: string; + legendPosition?: string; /** * The size of the hole in the pie chart. */ - pieHole: number; + pieHole?: number; /** * The data that covers the one and only series of the pie chart. */ - series: Schema$ChartData; + series?: Schema$ChartData; /** * True if the pie is three dimensional. */ - threeDimensional: boolean; + threeDimensional?: boolean; } /** * Criteria for showing/hiding rows in a pivot table. @@ -2679,7 +2682,7 @@ export namespace sheets_v4 { /** * Values that should be included. Values not listed here are excluded. */ - visibleValues: string[]; + visibleValues?: string[]; } /** * A single grouping (either row or column) in a pivot table. @@ -2688,7 +2691,7 @@ export namespace sheets_v4 { /** * The group rule to apply to this row/column group. */ - groupRule: Schema$PivotGroupRule; + groupRule?: Schema$PivotGroupRule; /** * The labels to use for the row/column groups which can be customized. For * example, in the following pivot table, the row label is `Region` (which @@ -2703,7 +2706,7 @@ export namespace sheets_v4 { * | Tennessee | 531 | 415 | +--------------+---------+-------+ * | Grand Total | 1110 | 636 | +--------------+---------+-------+ */ - label: string; + label?: string; /** * True if the headings in this pivot group should be repeated. This is only * valid for row groupings and will be ignored by columns. By default, we @@ -2716,31 +2719,31 @@ export namespace sheets_v4 { * | | Mar | +--------+-----+ | Q1 Total | * +--------------+ */ - repeatHeadings: boolean; + repeatHeadings?: boolean; /** * True if the pivot table should include the totals for this grouping. */ - showTotals: boolean; + showTotals?: boolean; /** * The order the values in this group should be sorted. */ - sortOrder: string; + sortOrder?: string; /** * The column offset of the source range that this grouping is based on. For * example, if the source was `C10:E15`, a `sourceColumnOffset` of `0` means * this group refers to column `C`, whereas the offset `1` would refer to * column `D`. */ - sourceColumnOffset: number; + sourceColumnOffset?: number; /** * The bucket of the opposite pivot group to sort by. If not specified, * sorting is alphabetical by this group's values. */ - valueBucket: Schema$PivotGroupSortValueBucket; + valueBucket?: Schema$PivotGroupSortValueBucket; /** * Metadata about values in the grouping. */ - valueMetadata: Schema$PivotGroupValueMetadata[]; + valueMetadata?: Schema$PivotGroupValueMetadata[]; } /** * An optional setting on a PivotGroup that defines buckets for the values in @@ -2753,11 +2756,11 @@ export namespace sheets_v4 { /** * A HistogramRule. */ - histogramRule: Schema$HistogramRule; + histogramRule?: Schema$HistogramRule; /** * A ManualRule. */ - manualRule: Schema$ManualRule; + manualRule?: Schema$ManualRule; } /** * Information about which values in a pivot group should be used for sorting. @@ -2773,12 +2776,12 @@ export namespace sheets_v4 { * Total" over the column groups. If a single value is listed, this * would correspond to using the "Total" of that bucket. */ - buckets: Schema$ExtendedValue[]; + buckets?: Schema$ExtendedValue[]; /** * The offset in the PivotTable.values list which the values in this * grouping should be sorted by. */ - valuesIndex: number; + valuesIndex?: number; } /** * Metadata about a value in a pivot grouping. @@ -2787,12 +2790,12 @@ export namespace sheets_v4 { /** * True if the data corresponding to the value is collapsed. */ - collapsed: boolean; + collapsed?: boolean; /** * The calculated value the metadata corresponds to. (Note that formulaValue * is not valid, because the values will be calculated.) */ - value: Schema$ExtendedValue; + value?: Schema$ExtendedValue; } /** * A pivot table. @@ -2801,7 +2804,7 @@ export namespace sheets_v4 { /** * Each column grouping in the pivot table. */ - columns: Schema$PivotGroup[]; + columns?: Schema$PivotGroup[]; /** * An optional mapping of filters per source column offset. The filters * will be applied before aggregating data into the pivot table. The @@ -2810,24 +2813,24 @@ export namespace sheets_v4 { * the source was `C10:E15`, a key of `0` will have the filter for column * `C`, whereas the key `1` is for column `D`. */ - criteria: any; + criteria?: any; /** * Each row grouping in the pivot table. */ - rows: Schema$PivotGroup[]; + rows?: Schema$PivotGroup[]; /** * The range the pivot table is reading data from. */ - source: Schema$GridRange; + source?: Schema$GridRange; /** * Whether values should be listed horizontally (as columns) or vertically * (as rows). */ - valueLayout: string; + valueLayout?: string; /** * A list of values to include in the pivot table. */ - values: Schema$PivotValue[]; + values?: Schema$PivotValue[]; } /** * The definition of how a value in a pivot table should be calculated. @@ -2841,29 +2844,29 @@ export namespace sheets_v4 { * the Sheets UI, this is referred to as "Show As" in the value * section of a pivot table. */ - calculatedDisplayType: string; + calculatedDisplayType?: string; /** * A custom formula to calculate the value. The formula must start with an * `=` character. */ - formula: string; + formula?: string; /** * A name to use for the value. */ - name: string; + name?: string; /** * The column offset of the source range that this value reads from. For * example, if the source was `C10:E15`, a `sourceColumnOffset` of `0` means * this value refers to column `C`, whereas the offset `1` would refer to * column `D`. */ - sourceColumnOffset: number; + sourceColumnOffset?: number; /** * A function to summarize the value. If formula is set, the only supported * values are SUM and CUSTOM. If sourceColumnOffset is set, then `CUSTOM` is * not supported. */ - summarizeFunction: string; + summarizeFunction?: string; } /** * A protected range. @@ -2872,38 +2875,38 @@ export namespace sheets_v4 { /** * The description of this protected range. */ - description: string; + description?: string; /** * The users and groups with edit access to the protected range. This field * is only visible to users with edit access to the protected range and the * document. Editors are not supported with warning_only protection. */ - editors: Schema$Editors; + editors?: Schema$Editors; /** * The named range this protected range is backed by, if any. When writing, * only one of range or named_range_id may be set. */ - namedRangeId: string; + namedRangeId?: string; /** * The ID of the protected range. This field is read-only. */ - protectedRangeId: number; + protectedRangeId?: number; /** * The range that is being protected. The range may be fully unbounded, in * which case this is considered a protected sheet. When writing, only one * of range or named_range_id may be set. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * True if the user who requested this protected range can edit the * protected area. This field is read-only. */ - requestingUserCanEdit: boolean; + requestingUserCanEdit?: boolean; /** * The list of unprotected ranges within a protected sheet. Unprotected * ranges are only supported on protected sheets. */ - unprotectedRanges: Schema$GridRange[]; + unprotectedRanges?: Schema$GridRange[]; /** * True if this protected range will show a warning when editing. * Warning-based protection means that every user can edit data in the @@ -2913,7 +2916,7 @@ export namespace sheets_v4 { * the `editors` field is not set (nor included in the field mask), then the * editors will be set to all the editors in the document. */ - warningOnly: boolean; + warningOnly?: boolean; } /** * Randomizes the order of the rows in a range. @@ -2922,7 +2925,7 @@ export namespace sheets_v4 { /** * The range to randomize. */ - range: Schema$GridRange; + range?: Schema$GridRange; } /** * Updates all cells in the range to the values in the given Cell object. Only @@ -2939,17 +2942,17 @@ export namespace sheets_v4 { /** * The data to write. */ - cell: Schema$CellData; + cell?: Schema$CellData; /** * The fields that should be updated. At least one field must be specified. * The root `cell` is implied and should not be specified. A single * `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * The range to repeat the cell in. */ - range: Schema$GridRange; + range?: Schema$GridRange; } /** * A single kind of update to apply to a spreadsheet. @@ -2958,216 +2961,216 @@ export namespace sheets_v4 { /** * Adds a new banded range */ - addBanding: Schema$AddBandingRequest; + addBanding?: Schema$AddBandingRequest; /** * Adds a chart. */ - addChart: Schema$AddChartRequest; + addChart?: Schema$AddChartRequest; /** * Adds a new conditional format rule. */ - addConditionalFormatRule: Schema$AddConditionalFormatRuleRequest; + addConditionalFormatRule?: Schema$AddConditionalFormatRuleRequest; /** * Adds a filter view. */ - addFilterView: Schema$AddFilterViewRequest; + addFilterView?: Schema$AddFilterViewRequest; /** * Adds a named range. */ - addNamedRange: Schema$AddNamedRangeRequest; + addNamedRange?: Schema$AddNamedRangeRequest; /** * Adds a protected range. */ - addProtectedRange: Schema$AddProtectedRangeRequest; + addProtectedRange?: Schema$AddProtectedRangeRequest; /** * Adds a sheet. */ - addSheet: Schema$AddSheetRequest; + addSheet?: Schema$AddSheetRequest; /** * Appends cells after the last row with data in a sheet. */ - appendCells: Schema$AppendCellsRequest; + appendCells?: Schema$AppendCellsRequest; /** * Appends dimensions to the end of a sheet. */ - appendDimension: Schema$AppendDimensionRequest; + appendDimension?: Schema$AppendDimensionRequest; /** * Automatically fills in more data based on existing data. */ - autoFill: Schema$AutoFillRequest; + autoFill?: Schema$AutoFillRequest; /** * Automatically resizes one or more dimensions based on the contents of the * cells in that dimension. */ - autoResizeDimensions: Schema$AutoResizeDimensionsRequest; + autoResizeDimensions?: Schema$AutoResizeDimensionsRequest; /** * Clears the basic filter on a sheet. */ - clearBasicFilter: Schema$ClearBasicFilterRequest; + clearBasicFilter?: Schema$ClearBasicFilterRequest; /** * Copies data from one area and pastes it to another. */ - copyPaste: Schema$CopyPasteRequest; + copyPaste?: Schema$CopyPasteRequest; /** * Creates new developer metadata */ - createDeveloperMetadata: Schema$CreateDeveloperMetadataRequest; + createDeveloperMetadata?: Schema$CreateDeveloperMetadataRequest; /** * Cuts data from one area and pastes it to another. */ - cutPaste: Schema$CutPasteRequest; + cutPaste?: Schema$CutPasteRequest; /** * Removes a banded range */ - deleteBanding: Schema$DeleteBandingRequest; + deleteBanding?: Schema$DeleteBandingRequest; /** * Deletes an existing conditional format rule. */ - deleteConditionalFormatRule: Schema$DeleteConditionalFormatRuleRequest; + deleteConditionalFormatRule?: Schema$DeleteConditionalFormatRuleRequest; /** * Deletes developer metadata */ - deleteDeveloperMetadata: Schema$DeleteDeveloperMetadataRequest; + deleteDeveloperMetadata?: Schema$DeleteDeveloperMetadataRequest; /** * Deletes rows or columns in a sheet. */ - deleteDimension: Schema$DeleteDimensionRequest; + deleteDimension?: Schema$DeleteDimensionRequest; /** * Deletes an embedded object (e.g, chart, image) in a sheet. */ - deleteEmbeddedObject: Schema$DeleteEmbeddedObjectRequest; + deleteEmbeddedObject?: Schema$DeleteEmbeddedObjectRequest; /** * Deletes a filter view from a sheet. */ - deleteFilterView: Schema$DeleteFilterViewRequest; + deleteFilterView?: Schema$DeleteFilterViewRequest; /** * Deletes a named range. */ - deleteNamedRange: Schema$DeleteNamedRangeRequest; + deleteNamedRange?: Schema$DeleteNamedRangeRequest; /** * Deletes a protected range. */ - deleteProtectedRange: Schema$DeleteProtectedRangeRequest; + deleteProtectedRange?: Schema$DeleteProtectedRangeRequest; /** * Deletes a range of cells from a sheet, shifting the remaining cells. */ - deleteRange: Schema$DeleteRangeRequest; + deleteRange?: Schema$DeleteRangeRequest; /** * Deletes a sheet. */ - deleteSheet: Schema$DeleteSheetRequest; + deleteSheet?: Schema$DeleteSheetRequest; /** * Duplicates a filter view. */ - duplicateFilterView: Schema$DuplicateFilterViewRequest; + duplicateFilterView?: Schema$DuplicateFilterViewRequest; /** * Duplicates a sheet. */ - duplicateSheet: Schema$DuplicateSheetRequest; + duplicateSheet?: Schema$DuplicateSheetRequest; /** * Finds and replaces occurrences of some text with other text. */ - findReplace: Schema$FindReplaceRequest; + findReplace?: Schema$FindReplaceRequest; /** * Inserts new rows or columns in a sheet. */ - insertDimension: Schema$InsertDimensionRequest; + insertDimension?: Schema$InsertDimensionRequest; /** * Inserts new cells in a sheet, shifting the existing cells. */ - insertRange: Schema$InsertRangeRequest; + insertRange?: Schema$InsertRangeRequest; /** * Merges cells together. */ - mergeCells: Schema$MergeCellsRequest; + mergeCells?: Schema$MergeCellsRequest; /** * Moves rows or columns to another location in a sheet. */ - moveDimension: Schema$MoveDimensionRequest; + moveDimension?: Schema$MoveDimensionRequest; /** * Pastes data (HTML or delimited) into a sheet. */ - pasteData: Schema$PasteDataRequest; + pasteData?: Schema$PasteDataRequest; /** * Randomizes the order of the rows in a range. */ - randomizeRange: Schema$RandomizeRangeRequest; + randomizeRange?: Schema$RandomizeRangeRequest; /** * Repeats a single cell across a range. */ - repeatCell: Schema$RepeatCellRequest; + repeatCell?: Schema$RepeatCellRequest; /** * Sets the basic filter on a sheet. */ - setBasicFilter: Schema$SetBasicFilterRequest; + setBasicFilter?: Schema$SetBasicFilterRequest; /** * Sets data validation for one or more cells. */ - setDataValidation: Schema$SetDataValidationRequest; + setDataValidation?: Schema$SetDataValidationRequest; /** * Sorts data in a range. */ - sortRange: Schema$SortRangeRequest; + sortRange?: Schema$SortRangeRequest; /** * Converts a column of text into many columns of text. */ - textToColumns: Schema$TextToColumnsRequest; + textToColumns?: Schema$TextToColumnsRequest; /** * Unmerges merged cells. */ - unmergeCells: Schema$UnmergeCellsRequest; + unmergeCells?: Schema$UnmergeCellsRequest; /** * Updates a banded range */ - updateBanding: Schema$UpdateBandingRequest; + updateBanding?: Schema$UpdateBandingRequest; /** * Updates the borders in a range of cells. */ - updateBorders: Schema$UpdateBordersRequest; + updateBorders?: Schema$UpdateBordersRequest; /** * Updates many cells at once. */ - updateCells: Schema$UpdateCellsRequest; + updateCells?: Schema$UpdateCellsRequest; /** * Updates a chart's specifications. */ - updateChartSpec: Schema$UpdateChartSpecRequest; + updateChartSpec?: Schema$UpdateChartSpecRequest; /** * Updates an existing conditional format rule. */ - updateConditionalFormatRule: Schema$UpdateConditionalFormatRuleRequest; + updateConditionalFormatRule?: Schema$UpdateConditionalFormatRuleRequest; /** * Updates an existing developer metadata entry */ - updateDeveloperMetadata: Schema$UpdateDeveloperMetadataRequest; + updateDeveloperMetadata?: Schema$UpdateDeveloperMetadataRequest; /** * Updates dimensions' properties. */ - updateDimensionProperties: Schema$UpdateDimensionPropertiesRequest; + updateDimensionProperties?: Schema$UpdateDimensionPropertiesRequest; /** * Updates an embedded object's (e.g. chart, image) position. */ - updateEmbeddedObjectPosition: Schema$UpdateEmbeddedObjectPositionRequest; + updateEmbeddedObjectPosition?: Schema$UpdateEmbeddedObjectPositionRequest; /** * Updates the properties of a filter view. */ - updateFilterView: Schema$UpdateFilterViewRequest; + updateFilterView?: Schema$UpdateFilterViewRequest; /** * Updates a named range. */ - updateNamedRange: Schema$UpdateNamedRangeRequest; + updateNamedRange?: Schema$UpdateNamedRangeRequest; /** * Updates a protected range. */ - updateProtectedRange: Schema$UpdateProtectedRangeRequest; + updateProtectedRange?: Schema$UpdateProtectedRangeRequest; /** * Updates a sheet's properties. */ - updateSheetProperties: Schema$UpdateSheetPropertiesRequest; + updateSheetProperties?: Schema$UpdateSheetPropertiesRequest; /** * Updates the spreadsheet's properties. */ - updateSpreadsheetProperties: Schema$UpdateSpreadsheetPropertiesRequest; + updateSpreadsheetProperties?: Schema$UpdateSpreadsheetPropertiesRequest; } /** * A single response from an update. @@ -3176,63 +3179,63 @@ export namespace sheets_v4 { /** * A reply from adding a banded range. */ - addBanding: Schema$AddBandingResponse; + addBanding?: Schema$AddBandingResponse; /** * A reply from adding a chart. */ - addChart: Schema$AddChartResponse; + addChart?: Schema$AddChartResponse; /** * A reply from adding a filter view. */ - addFilterView: Schema$AddFilterViewResponse; + addFilterView?: Schema$AddFilterViewResponse; /** * A reply from adding a named range. */ - addNamedRange: Schema$AddNamedRangeResponse; + addNamedRange?: Schema$AddNamedRangeResponse; /** * A reply from adding a protected range. */ - addProtectedRange: Schema$AddProtectedRangeResponse; + addProtectedRange?: Schema$AddProtectedRangeResponse; /** * A reply from adding a sheet. */ - addSheet: Schema$AddSheetResponse; + addSheet?: Schema$AddSheetResponse; /** * A reply from creating a developer metadata entry. */ - createDeveloperMetadata: Schema$CreateDeveloperMetadataResponse; + createDeveloperMetadata?: Schema$CreateDeveloperMetadataResponse; /** * A reply from deleting a conditional format rule. */ - deleteConditionalFormatRule: Schema$DeleteConditionalFormatRuleResponse; + deleteConditionalFormatRule?: Schema$DeleteConditionalFormatRuleResponse; /** * A reply from deleting a developer metadata entry. */ - deleteDeveloperMetadata: Schema$DeleteDeveloperMetadataResponse; + deleteDeveloperMetadata?: Schema$DeleteDeveloperMetadataResponse; /** * A reply from duplicating a filter view. */ - duplicateFilterView: Schema$DuplicateFilterViewResponse; + duplicateFilterView?: Schema$DuplicateFilterViewResponse; /** * A reply from duplicating a sheet. */ - duplicateSheet: Schema$DuplicateSheetResponse; + duplicateSheet?: Schema$DuplicateSheetResponse; /** * A reply from doing a find/replace. */ - findReplace: Schema$FindReplaceResponse; + findReplace?: Schema$FindReplaceResponse; /** * A reply from updating a conditional format rule. */ - updateConditionalFormatRule: Schema$UpdateConditionalFormatRuleResponse; + updateConditionalFormatRule?: Schema$UpdateConditionalFormatRuleResponse; /** * A reply from updating a developer metadata entry. */ - updateDeveloperMetadata: Schema$UpdateDeveloperMetadataResponse; + updateDeveloperMetadata?: Schema$UpdateDeveloperMetadataResponse; /** * A reply from updating an embedded object's position. */ - updateEmbeddedObjectPosition: Schema$UpdateEmbeddedObjectPositionResponse; + updateEmbeddedObjectPosition?: Schema$UpdateEmbeddedObjectPositionResponse; } /** * Data about each cell in a row. @@ -3241,7 +3244,7 @@ export namespace sheets_v4 { /** * The values in the row, one per column. */ - values: Schema$CellData[]; + values?: Schema$CellData[]; } /** * A request to retrieve all developer metadata matching the set of specified @@ -3253,7 +3256,7 @@ export namespace sheets_v4 { * DeveloperMetadata entries to return. DeveloperMetadata matching any of * the specified filters will be included in the response. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; } /** * A reply to a developer metadata search request. @@ -3262,7 +3265,7 @@ export namespace sheets_v4 { /** * The metadata matching the criteria of the search request. */ - matchedDeveloperMetadata: Schema$MatchedDeveloperMetadata[]; + matchedDeveloperMetadata?: Schema$MatchedDeveloperMetadata[]; } /** * Sets the basic filter associated with a sheet. @@ -3271,7 +3274,7 @@ export namespace sheets_v4 { /** * The filter to set. */ - filter: Schema$BasicFilter; + filter?: Schema$BasicFilter; } /** * Sets a data validation rule to every cell in the range. To clear validation @@ -3281,12 +3284,12 @@ export namespace sheets_v4 { /** * The range the data validation rule should apply to. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The data validation rule to set on each cell in the range, or empty to * clear the data validation in the range. */ - rule: Schema$DataValidationRule; + rule?: Schema$DataValidationRule; } /** * A sheet in a spreadsheet. @@ -3295,19 +3298,19 @@ export namespace sheets_v4 { /** * The banded (i.e. alternating colors) ranges on this sheet. */ - bandedRanges: Schema$BandedRange[]; + bandedRanges?: Schema$BandedRange[]; /** * The filter on this sheet, if any. */ - basicFilter: Schema$BasicFilter; + basicFilter?: Schema$BasicFilter; /** * The specifications of every chart on this sheet. */ - charts: Schema$EmbeddedChart[]; + charts?: Schema$EmbeddedChart[]; /** * The conditional format rules in this sheet. */ - conditionalFormats: Schema$ConditionalFormatRule[]; + conditionalFormats?: Schema$ConditionalFormatRule[]; /** * Data in the grid, if this is a grid sheet. The number of GridData objects * returned is dependent on the number of ranges requested on this sheet. @@ -3317,27 +3320,27 @@ export namespace sheets_v4 { * one will have `startRow 14` (zero-based row 15), and `startColumn 3` * (zero-based column D). */ - data: Schema$GridData[]; + data?: Schema$GridData[]; /** * The developer metadata associated with a sheet. */ - developerMetadata: Schema$DeveloperMetadata[]; + developerMetadata?: Schema$DeveloperMetadata[]; /** * The filter views in this sheet. */ - filterViews: Schema$FilterView[]; + filterViews?: Schema$FilterView[]; /** * The ranges that are merged together. */ - merges: Schema$GridRange[]; + merges?: Schema$GridRange[]; /** * The properties of the sheet. */ - properties: Schema$SheetProperties; + properties?: Schema$SheetProperties; /** * The protected ranges in this sheet. */ - protectedRanges: Schema$ProtectedRange[]; + protectedRanges?: Schema$ProtectedRange[]; } /** * Properties of a sheet. @@ -3349,11 +3352,11 @@ export namespace sheets_v4 { * absent.) When writing it is an error to set any grid properties on * non-grid sheets. */ - gridProperties: Schema$GridProperties; + gridProperties?: Schema$GridProperties; /** * True if the sheet is hidden in the UI, false if it's visible. */ - hidden: boolean; + hidden?: boolean; /** * The index of the sheet within the spreadsheet. When adding or updating * sheet properties, if this field is excluded then the sheet will be added @@ -3365,29 +3368,29 @@ export namespace sheets_v4 { * sheets current index or if the requested new index is equal to the * current sheet index + 1. */ - index: number; + index?: number; /** * True if the sheet is an RTL sheet instead of an LTR sheet. */ - rightToLeft: boolean; + rightToLeft?: boolean; /** * The ID of the sheet. Must be non-negative. This field cannot be changed * once set. */ - sheetId: number; + sheetId?: number; /** * The type of sheet. Defaults to GRID. This field cannot be changed once * set. */ - sheetType: string; + sheetType?: string; /** * The color of the tab in the UI. */ - tabColor: Schema$Color; + tabColor?: Schema$Color; /** * The name of the sheet. */ - title: string; + title?: string; } /** * Sorts data in rows based on a sort order per column. @@ -3396,12 +3399,12 @@ export namespace sheets_v4 { /** * The range to sort. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The sort order per column. Later specifications are used when values are * equal in the earlier specifications. */ - sortSpecs: Schema$SortSpec[]; + sortSpecs?: Schema$SortSpec[]; } /** * A sort order associated with a specific column or row. @@ -3410,11 +3413,11 @@ export namespace sheets_v4 { /** * The dimension the sort should be applied to. */ - dimensionIndex: number; + dimensionIndex?: number; /** * The order data should be sorted. */ - sortOrder: string; + sortOrder?: string; } /** * A combination of a source range and how to extend that source. @@ -3423,17 +3426,17 @@ export namespace sheets_v4 { /** * The dimension that data should be filled into. */ - dimension: string; + dimension?: string; /** * The number of rows or columns that data should be filled into. Positive * numbers expand beyond the last row or last column of the source. Negative * numbers expand before the first row or first column of the source. */ - fillLength: number; + fillLength?: number; /** * The location of the data to use as the source of the autofill. */ - source: Schema$GridRange; + source?: Schema$GridRange; } /** * Resource that represents a spreadsheet. @@ -3442,27 +3445,27 @@ export namespace sheets_v4 { /** * The developer metadata associated with a spreadsheet. */ - developerMetadata: Schema$DeveloperMetadata[]; + developerMetadata?: Schema$DeveloperMetadata[]; /** * The named ranges defined in a spreadsheet. */ - namedRanges: Schema$NamedRange[]; + namedRanges?: Schema$NamedRange[]; /** * Overall properties of a spreadsheet. */ - properties: Schema$SpreadsheetProperties; + properties?: Schema$SpreadsheetProperties; /** * The sheets that are part of a spreadsheet. */ - sheets: Schema$Sheet[]; + sheets?: Schema$Sheet[]; /** * The ID of the spreadsheet. This field is read-only. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The url of the spreadsheet. This field is read-only. */ - spreadsheetUrl: string; + spreadsheetUrl?: string; } /** * Properties of a spreadsheet. @@ -3471,19 +3474,19 @@ export namespace sheets_v4 { /** * The amount of time to wait before volatile functions are recalculated. */ - autoRecalc: string; + autoRecalc?: string; /** * The default format of all cells in the spreadsheet. * CellData.effectiveFormat will not be set if the cell's format is * equal to this default format. This field is read-only. */ - defaultFormat: Schema$CellFormat; + defaultFormat?: Schema$CellFormat; /** * Determines whether and how circular references are resolved with * iterative calculation. Absence of this field means that circular * references will result in calculation errors. */ - iterativeCalculationSettings: Schema$IterativeCalculationSettings; + iterativeCalculationSettings?: Schema$IterativeCalculationSettings; /** * The locale of the spreadsheet in one of the following formats: * an ISO * 639-1 language code such as `en` * an ISO 639-2 language code such as @@ -3491,17 +3494,17 @@ export namespace sheets_v4 { * and country code, such as `en_US` Note: when updating this field, not * all locales/languages are supported. */ - locale: string; + locale?: string; /** * The time zone of the spreadsheet, in CLDR format such as * `America/New_York`. If the time zone isn't recognized, this may be a * custom time zone such as `GMT-07:00`. */ - timeZone: string; + timeZone?: string; /** * The title of the spreadsheet. */ - title: string; + title?: string; } /** * The format of a run of text in a cell. Absent values indicate that the @@ -3511,31 +3514,31 @@ export namespace sheets_v4 { /** * True if the text is bold. */ - bold: boolean; + bold?: boolean; /** * The font family. */ - fontFamily: string; + fontFamily?: string; /** * The size of the font. */ - fontSize: number; + fontSize?: number; /** * The foreground color of the text. */ - foregroundColor: Schema$Color; + foregroundColor?: Schema$Color; /** * True if the text is italicized. */ - italic: boolean; + italic?: boolean; /** * True if the text has a strikethrough. */ - strikethrough: boolean; + strikethrough?: boolean; /** * True if the text is underlined. */ - underline: boolean; + underline?: boolean; } /** * A run of a text format. The format of this run continues until the start @@ -3545,11 +3548,11 @@ export namespace sheets_v4 { /** * The format of this run. Absent values inherit the cell's format. */ - format: Schema$TextFormat; + format?: Schema$TextFormat; /** * The character index where this run starts. */ - startIndex: number; + startIndex?: number; } /** * Position settings for text. @@ -3558,7 +3561,7 @@ export namespace sheets_v4 { /** * Horizontal alignment setting for the piece of text. */ - horizontalAlignment: string; + horizontalAlignment?: string; } /** * The rotation applied to text in a cell. @@ -3571,13 +3574,13 @@ export namespace sheets_v4 { * direction positive angles are in the counterclockwise direction, whereas * for RTL they are in the clockwise direction */ - angle: number; + angle?: number; /** * If true, text reads top to bottom, but the orientation of individual * characters is unchanged. For example: | V | | e | | r | | t * | | i | | c | | a | | l | */ - vertical: boolean; + vertical?: boolean; } /** * Splits a column of text into multiple columns, based on a delimiter in each @@ -3587,15 +3590,15 @@ export namespace sheets_v4 { /** * The delimiter to use. Used only if delimiterType is CUSTOM. */ - delimiter: string; + delimiter?: string; /** * The delimiter type to use. */ - delimiterType: string; + delimiterType?: string; /** * The source data range. This must span exactly one column. */ - source: Schema$GridRange; + source?: Schema$GridRange; } /** * A color scale for a treemap chart. @@ -3605,22 +3608,22 @@ export namespace sheets_v4 { * The background color for cells with a color value greater than or equal * to maxValue. Defaults to #109618 if not specified. */ - maxValueColor: Schema$Color; + maxValueColor?: Schema$Color; /** * The background color for cells with a color value at the midpoint between * minValue and maxValue. Defaults to #efe6dc if not specified. */ - midValueColor: Schema$Color; + midValueColor?: Schema$Color; /** * The background color for cells with a color value less than or equal to * minValue. Defaults to #dc3912 if not specified. */ - minValueColor: Schema$Color; + minValueColor?: Schema$Color; /** * The background color for cells that have no color data associated with * them. Defaults to #000000 if not specified. */ - noDataColor: Schema$Color; + noDataColor?: Schema$Color; } /** * A <a href="/chart/interactive/docs/gallery/treemap">Treemap @@ -3634,7 +3637,7 @@ export namespace sheets_v4 { * numeric. color_scale will determine how the values in this data map to * data cell background colors. */ - colorData: Schema$ChartData; + colorData?: Schema$ChartData; /** * The color scale for data cells in the treemap chart. Data cells are * assigned colors based on their color values. These color values come from @@ -3647,60 +3650,60 @@ export namespace sheets_v4 { * the gradient being midValueColor. Cells with missing or non-numeric color * values will have noDataColor as their background color. */ - colorScale: Schema$TreemapChartColorScale; + colorScale?: Schema$TreemapChartColorScale; /** * The background color for header cells. */ - headerColor: Schema$Color; + headerColor?: Schema$Color; /** * True to hide tooltips. */ - hideTooltips: boolean; + hideTooltips?: boolean; /** * The number of additional data levels beyond the labeled levels to be * shown on the treemap chart. These levels are not interactive and are * shown without their labels. Defaults to 0 if not specified. */ - hintedLevels: number; + hintedLevels?: number; /** * The data that contains the treemap cell labels. */ - labels: Schema$ChartData; + labels?: Schema$ChartData; /** * The number of data levels to show on the treemap chart. These levels are * interactive and are shown with their labels. Defaults to 2 if not * specified. */ - levels: number; + levels?: number; /** * The maximum possible data value. Cells with values greater than this will * have the same color as cells with this value. If not specified, defaults * to the actual maximum value from color_data, or the maximum value from * size_data if color_data is not specified. */ - maxValue: number; + maxValue?: number; /** * The minimum possible data value. Cells with values less than this will * have the same color as cells with this value. If not specified, defaults * to the actual minimum value from color_data, or the minimum value from * size_data if color_data is not specified. */ - minValue: number; + minValue?: number; /** * The data the contains the treemap cells' parent labels. */ - parentLabels: Schema$ChartData; + parentLabels?: Schema$ChartData; /** * The data that determines the size of each treemap data cell. This data is * expected to be numeric. The cells corresponding to non-numeric or missing * data will not be rendered. If color_data is not specified, this data will * be used to determine data cell background colors as well. */ - sizeData: Schema$ChartData; + sizeData?: Schema$ChartData; /** * The text format for all labels on the chart. */ - textFormat: Schema$TextFormat; + textFormat?: Schema$TextFormat; } /** * Unmerges cells in the given range. @@ -3711,7 +3714,7 @@ export namespace sheets_v4 { * multiple merges, all will be unmerged. The range must not partially span * any merge. */ - range: Schema$GridRange; + range?: Schema$GridRange; } /** * Updates properties of the supplied banded range. @@ -3720,13 +3723,13 @@ export namespace sheets_v4 { /** * The banded range to update with the new properties. */ - bandedRange: Schema$BandedRange; + bandedRange?: Schema$BandedRange; /** * The fields that should be updated. At least one field must be specified. * The root `bandedRange` is implied and should not be specified. A single * `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; } /** * Updates the borders of a range. If a field is not set in the request, that @@ -3740,31 +3743,31 @@ export namespace sheets_v4 { /** * The border to put at the bottom of the range. */ - bottom: Schema$Border; + bottom?: Schema$Border; /** * The horizontal border to put within the range. */ - innerHorizontal: Schema$Border; + innerHorizontal?: Schema$Border; /** * The vertical border to put within the range. */ - innerVertical: Schema$Border; + innerVertical?: Schema$Border; /** * The border to put at the left of the range. */ - left: Schema$Border; + left?: Schema$Border; /** * The range whose borders should be updated. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The border to put at the right of the range. */ - right: Schema$Border; + right?: Schema$Border; /** * The border to put at the top of the range. */ - top: Schema$Border; + top?: Schema$Border; } /** * Updates all cells in a range with new data. @@ -3776,22 +3779,22 @@ export namespace sheets_v4 { * specified. A single `"*"` can be used as short-hand for listing * every field. */ - fields: string; + fields?: string; /** * The range to write data to. If the data in rows does not cover the * entire requested range, the fields matching those set in fields will be * cleared. */ - range: Schema$GridRange; + range?: Schema$GridRange; /** * The data to write. */ - rows: Schema$RowData[]; + rows?: Schema$RowData[]; /** * The coordinate to start writing data at. Any number of rows and columns * (including a different number of columns per row) may be written. */ - start: Schema$GridCoordinate; + start?: Schema$GridCoordinate; } /** * Updates a chart's specifications. (This does not move or resize a @@ -3801,11 +3804,11 @@ export namespace sheets_v4 { /** * The ID of the chart to update. */ - chartId: number; + chartId?: number; /** * The specification to apply to the chart. */ - spec: Schema$ChartSpec; + spec?: Schema$ChartSpec; } /** * Updates a conditional format rule at the given index, or moves a @@ -3815,20 +3818,20 @@ export namespace sheets_v4 { /** * The zero-based index of the rule that should be replaced or moved. */ - index: number; + index?: number; /** * The zero-based new index the rule should end up at. */ - newIndex: number; + newIndex?: number; /** * The rule that should replace the rule at the given index. */ - rule: Schema$ConditionalFormatRule; + rule?: Schema$ConditionalFormatRule; /** * The sheet of the rule to move. Required if new_index is set, unused * otherwise. */ - sheetId: number; + sheetId?: number; } /** * The result of updating a conditional format rule. @@ -3837,22 +3840,22 @@ export namespace sheets_v4 { /** * The index of the new rule. */ - newIndex: number; + newIndex?: number; /** * The new rule that replaced the old rule (if replacing), or the rule that * was moved (if moved) */ - newRule: Schema$ConditionalFormatRule; + newRule?: Schema$ConditionalFormatRule; /** * The old index of the rule. Not set if a rule was replaced (because it is * the same as new_index). */ - oldIndex: number; + oldIndex?: number; /** * The old (deleted) rule. Not set if a rule was moved (because it is the * same as new_rule). */ - oldRule: Schema$ConditionalFormatRule; + oldRule?: Schema$ConditionalFormatRule; } /** * A request to update properties of developer metadata. Updates the @@ -3865,18 +3868,18 @@ export namespace sheets_v4 { /** * The filters matching the developer metadata entries to update. */ - dataFilters: Schema$DataFilter[]; + dataFilters?: Schema$DataFilter[]; /** * The value that all metadata matched by the data filters will be updated * to. */ - developerMetadata: Schema$DeveloperMetadata; + developerMetadata?: Schema$DeveloperMetadata; /** * The fields that should be updated. At least one field must be specified. * The root `developerMetadata` is implied and should not be specified. A * single `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; } /** * The response from updating developer metadata. @@ -3885,7 +3888,7 @@ export namespace sheets_v4 { /** * The updated developer metadata. */ - developerMetadata: Schema$DeveloperMetadata[]; + developerMetadata?: Schema$DeveloperMetadata[]; } /** * Updates properties of dimensions within the specified range. @@ -3896,15 +3899,15 @@ export namespace sheets_v4 { * The root `properties` is implied and should not be specified. A single * `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * Properties to update. */ - properties: Schema$DimensionProperties; + properties?: Schema$DimensionProperties; /** * The rows or columns to update. */ - range: Schema$DimensionRange; + range?: Schema$DimensionRange; } /** * Update an embedded object's position (such as a moving or resizing a @@ -3918,18 +3921,18 @@ export namespace sheets_v4 { * `newPosition.overlayPosition` is implied and should not be specified. A * single `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * An explicit position to move the embedded object to. If * newPosition.sheetId is set, a new sheet with that ID will be created. If * newPosition.newSheet is set to true, a new sheet will be created with an * ID that will be chosen for you. */ - newPosition: Schema$EmbeddedObjectPosition; + newPosition?: Schema$EmbeddedObjectPosition; /** * The ID of the object to moved. */ - objectId: number; + objectId?: number; } /** * The result of updating an embedded object's position. @@ -3938,7 +3941,7 @@ export namespace sheets_v4 { /** * The new position of the embedded object. */ - position: Schema$EmbeddedObjectPosition; + position?: Schema$EmbeddedObjectPosition; } /** * Updates properties of the filter view. @@ -3949,11 +3952,11 @@ export namespace sheets_v4 { * The root `filter` is implied and should not be specified. A single * `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * The new properties of the filter view. */ - filter: Schema$FilterView; + filter?: Schema$FilterView; } /** * Updates properties of the named range with the specified namedRangeId. @@ -3964,11 +3967,11 @@ export namespace sheets_v4 { * The root `namedRange` is implied and should not be specified. A single * `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * The named range to update with the new properties. */ - namedRange: Schema$NamedRange; + namedRange?: Schema$NamedRange; } /** * Updates an existing protected range with the specified protectedRangeId. @@ -3979,11 +3982,11 @@ export namespace sheets_v4 { * The root `protectedRange` is implied and should not be specified. A * single `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * The protected range to update with the new properties. */ - protectedRange: Schema$ProtectedRange; + protectedRange?: Schema$ProtectedRange; } /** * Updates properties of the sheet with the specified sheetId. @@ -3994,11 +3997,11 @@ export namespace sheets_v4 { * The root `properties` is implied and should not be specified. A single * `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * The properties to update. */ - properties: Schema$SheetProperties; + properties?: Schema$SheetProperties; } /** * Updates properties of a spreadsheet. @@ -4009,11 +4012,11 @@ export namespace sheets_v4 { * The root 'properties' is implied and should not be specified. A * single `"*"` can be used as short-hand for listing every field. */ - fields: string; + fields?: string; /** * The properties to update. */ - properties: Schema$SpreadsheetProperties; + properties?: Schema$SpreadsheetProperties; } /** * The response when updating a range of values by a data filter in a @@ -4023,29 +4026,29 @@ export namespace sheets_v4 { /** * The data filter that selected the range that was updated. */ - dataFilter: Schema$DataFilter; + dataFilter?: Schema$DataFilter; /** * The number of cells updated. */ - updatedCells: number; + updatedCells?: number; /** * The number of columns where at least one cell in the column was updated. */ - updatedColumns: number; + updatedColumns?: number; /** * The values of the cells in the range matched by the dataFilter after all * updates were applied. This is only included if the request's * `includeValuesInResponse` field was `true`. */ - updatedData: Schema$ValueRange; + updatedData?: Schema$ValueRange; /** * The range (in A1 notation) that updates were applied to. */ - updatedRange: string; + updatedRange?: string; /** * The number of rows where at least one cell in the row was updated. */ - updatedRows: number; + updatedRows?: number; } /** * The response when updating a range of values in a spreadsheet. @@ -4054,28 +4057,28 @@ export namespace sheets_v4 { /** * The spreadsheet the updates were applied to. */ - spreadsheetId: string; + spreadsheetId?: string; /** * The number of cells updated. */ - updatedCells: number; + updatedCells?: number; /** * The number of columns where at least one cell in the column was updated. */ - updatedColumns: number; + updatedColumns?: number; /** * The values of the cells after updates were applied. This is only included * if the request's `includeValuesInResponse` field was `true`. */ - updatedData: Schema$ValueRange; + updatedData?: Schema$ValueRange; /** * The range (in A1 notation) that updates were applied to. */ - updatedRange: string; + updatedRange?: string; /** * The number of rows where at least one cell in the row was updated. */ - updatedRows: number; + updatedRows?: number; } /** * Data within a range of the spreadsheet. @@ -4092,14 +4095,14 @@ export namespace sheets_v4 { * `A1=1,B1=3,A2=2,B2=4`. When writing, if this field is not set, it * defaults to ROWS. */ - majorDimension: string; + majorDimension?: string; /** * The range the values cover, in A1 notation. For output, this range * indicates the entire requested range, even though the values will exclude * trailing rows and columns. When appending values, this field represents * the range to search for a table, after which values will be appended. */ - range: string; + range?: string; /** * The data that was read or to be written. This is an array of arrays, the * outer array representing all the data and each inner array representing a @@ -4109,7 +4112,7 @@ export namespace sheets_v4 { * will be skipped. To set a cell to an empty value, set the string value to * an empty string. */ - values: any[][]; + values?: any[][]; } /** * Styles for a waterfall chart column. @@ -4118,11 +4121,11 @@ export namespace sheets_v4 { /** * The color of the column. */ - color: Schema$Color; + color?: Schema$Color; /** * The label of the column's legend. */ - label: string; + label?: string; } /** * A custom subtotal column for a waterfall chart series. @@ -4132,11 +4135,11 @@ export namespace sheets_v4 { * True if the data point at subtotal_index is the subtotal. If false, the * subtotal will be computed and appear after the data point. */ - dataIsSubtotal: boolean; + dataIsSubtotal?: boolean; /** * A label for the subtotal column. */ - label: string; + label?: string; /** * The 0-based index of a data point within the series. If data_is_subtotal * is true, the data point at this index is the subtotal. Otherwise, the @@ -4147,7 +4150,7 @@ export namespace sheets_v4 { * subtotals exist on the series or what data points they are associated * with. */ - subtotalIndex: number; + subtotalIndex?: number; } /** * The domain of a waterfall chart. @@ -4156,11 +4159,11 @@ export namespace sheets_v4 { /** * The data of the WaterfallChartDomain. */ - data: Schema$ChartData; + data?: Schema$ChartData; /** * True to reverse the order of the domain values (horizontal axis). */ - reversed: boolean; + reversed?: boolean; } /** * A single series of data for a waterfall chart. @@ -4171,29 +4174,29 @@ export namespace sheets_v4 { * subtotals are defined is not significant. Only one subtotal may be * defined for each data point. */ - customSubtotals: Schema$WaterfallChartCustomSubtotal[]; + customSubtotals?: Schema$WaterfallChartCustomSubtotal[]; /** * The data being visualized in this series. */ - data: Schema$ChartData; + data?: Schema$ChartData; /** * True to hide the subtotal column from the end of the series. By default, * a subtotal column will appear at the end of each series. Setting this * field to true will hide that subtotal column for this series. */ - hideTrailingSubtotal: boolean; + hideTrailingSubtotal?: boolean; /** * Styles for all columns in this series with negative values. */ - negativeColumnsStyle: Schema$WaterfallChartColumnStyle; + negativeColumnsStyle?: Schema$WaterfallChartColumnStyle; /** * Styles for all columns in this series with positive values. */ - positiveColumnsStyle: Schema$WaterfallChartColumnStyle; + positiveColumnsStyle?: Schema$WaterfallChartColumnStyle; /** * Styles for all subtotal columns in this series. */ - subtotalColumnsStyle: Schema$WaterfallChartColumnStyle; + subtotalColumnsStyle?: Schema$WaterfallChartColumnStyle; } /** * A waterfall chart. @@ -4202,29 +4205,30 @@ export namespace sheets_v4 { /** * The line style for the connector lines. */ - connectorLineStyle: Schema$LineStyle; + connectorLineStyle?: Schema$LineStyle; /** * The domain data (horizontal axis) for the waterfall chart. */ - domain: Schema$WaterfallChartDomain; + domain?: Schema$WaterfallChartDomain; /** * True to interpret the first value as a total. */ - firstValueIsTotal: boolean; + firstValueIsTotal?: boolean; /** * True to hide connector lines between columns. */ - hideConnectorLines: boolean; + hideConnectorLines?: boolean; /** * The data this waterfall chart is visualizing. */ - series: Schema$WaterfallChartSeries[]; + series?: Schema$WaterfallChartSeries[]; /** * The stacked type. */ - stackedType: string; + stackedType?: string; } + export class Resource$Spreadsheets { root: Sheets; developerMetadata: Resource$Spreadsheets$Developermetadata; @@ -4328,29 +4332,45 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdate(params?: any, options?: MethodOptions): + batchUpdate( + params?: Params$Resource$Spreadsheets$Batchupdate, + options?: MethodOptions): AxiosPromise; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Spreadsheets$Batchupdate, + callback: BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: Params$Resource$Spreadsheets$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spreadsheets$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -4437,26 +4457,39 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spreadsheets$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Spreadsheets$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Spreadsheets$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Spreadsheets$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spreadsheets$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -4561,24 +4594,34 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Spreadsheets$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Spreadsheets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Spreadsheets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Spreadsheets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Spreadsheets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -4687,26 +4730,39 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getByDataFilter(params?: any, options?: MethodOptions): - AxiosPromise; getByDataFilter( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spreadsheets$Getbydatafilter, + options?: MethodOptions): AxiosPromise; + getByDataFilter( + params: Params$Resource$Spreadsheets$Getbydatafilter, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getByDataFilter( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Spreadsheets$Getbydatafilter, + callback: BodyResponseCallback): void; + getByDataFilter(callback: BodyResponseCallback): void; + getByDataFilter( + paramsOrCallback?: Params$Resource$Spreadsheets$Getbydatafilter| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Getbydatafilter; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Getbydatafilter; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -4729,6 +4785,69 @@ export namespace sheets_v4 { } } } + + export interface Params$Resource$Spreadsheets$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The spreadsheet to apply the updates to. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchUpdateSpreadsheetRequest; + } + export interface Params$Resource$Spreadsheets$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Spreadsheet; + } + export interface Params$Resource$Spreadsheets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * True if grid data should be returned. This parameter is ignored if a + * field mask was set in the request. + */ + includeGridData?: boolean; + /** + * The ranges to retrieve from the spreadsheet. + */ + ranges?: string; + /** + * The spreadsheet to request. + */ + spreadsheetId?: string; + } + export interface Params$Resource$Spreadsheets$Getbydatafilter { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The spreadsheet to request. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$GetSpreadsheetByDataFilterRequest; + } + export class Resource$Spreadsheets$Developermetadata { root: Sheets; constructor(root: Sheets) { @@ -4807,24 +4926,35 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Spreadsheets$Developermetadata$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Spreadsheets$Developermetadata$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Spreadsheets$Developermetadata$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Spreadsheets$Developermetadata$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Developermetadata$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Developermetadata$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -4918,30 +5048,47 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - search(params?: any, options?: MethodOptions): + search( + params?: Params$Resource$Spreadsheets$Developermetadata$Search, + options?: MethodOptions): AxiosPromise; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Developermetadata$Search, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; search( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Developermetadata$Search, + callback: BodyResponseCallback): + void; + search(callback: + BodyResponseCallback): + void; + search( + paramsOrCallback?: + Params$Resource$Spreadsheets$Developermetadata$Search| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Developermetadata$Search; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Developermetadata$Search; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -4967,6 +5114,38 @@ export namespace sheets_v4 { } } + export interface Params$Resource$Spreadsheets$Developermetadata$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the developer metadata to retrieve. + */ + metadataId?: number; + /** + * The ID of the spreadsheet to retrieve metadata from. + */ + spreadsheetId?: string; + } + export interface Params$Resource$Spreadsheets$Developermetadata$Search { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the spreadsheet to retrieve metadata from. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$SearchDeveloperMetadataRequest; + } + + export class Resource$Spreadsheets$Sheets { root: Sheets; constructor(root: Sheets) { @@ -5054,26 +5233,39 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copyTo(params?: any, options?: MethodOptions): - AxiosPromise; copyTo( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spreadsheets$Sheets$Copyto, + options?: MethodOptions): AxiosPromise; + copyTo( + params: Params$Resource$Spreadsheets$Sheets$Copyto, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + copyTo( + params: Params$Resource$Spreadsheets$Sheets$Copyto, + callback: BodyResponseCallback): void; + copyTo(callback: BodyResponseCallback): void; copyTo( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Spreadsheets$Sheets$Copyto| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Sheets$Copyto; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Sheets$Copyto; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5097,6 +5289,27 @@ export namespace sheets_v4 { } } + export interface Params$Resource$Spreadsheets$Sheets$Copyto { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the sheet to copy. + */ + sheetId?: number; + /** + * The ID of the spreadsheet containing the sheet to copy. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$CopySheetToAnotherSpreadsheetRequest; + } + + export class Resource$Spreadsheets$Values { root: Sheets; constructor(root: Sheets) { @@ -5201,28 +5414,40 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - append(params?: any, options?: MethodOptions): - AxiosPromise; append( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Spreadsheets$Values$Append, + options?: MethodOptions): AxiosPromise; + append( + params: Params$Resource$Spreadsheets$Values$Append, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; append( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Append, + callback: BodyResponseCallback): void; + append(callback: BodyResponseCallback): void; + append( + paramsOrCallback?: Params$Resource$Spreadsheets$Values$Append| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Append; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Append; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5317,28 +5542,41 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchClear(params?: any, options?: MethodOptions): - AxiosPromise; batchClear( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Spreadsheets$Values$Batchclear, + options?: MethodOptions): AxiosPromise; + batchClear( + params: Params$Resource$Spreadsheets$Values$Batchclear, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + batchClear( + params: Params$Resource$Spreadsheets$Values$Batchclear, + callback: BodyResponseCallback): void; + batchClear(callback: BodyResponseCallback): + void; batchClear( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Spreadsheets$Values$Batchclear| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Batchclear; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Batchclear; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5434,31 +5672,51 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchClearByDataFilter(params?: any, options?: MethodOptions): + batchClearByDataFilter( + params?: Params$Resource$Spreadsheets$Values$Batchclearbydatafilter, + options?: MethodOptions): AxiosPromise; batchClearByDataFilter( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchclearbydatafilter, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; batchClearByDataFilter( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchclearbydatafilter, + callback: + BodyResponseCallback): + void; + batchClearByDataFilter( + callback: + BodyResponseCallback): + void; + batchClearByDataFilter( + paramsOrCallback?: + Params$Resource$Spreadsheets$Values$Batchclearbydatafilter| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Batchclearbydatafilter; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Spreadsheets$Values$Batchclearbydatafilter; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5569,28 +5827,41 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGet(params?: any, options?: MethodOptions): - AxiosPromise; batchGet( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Spreadsheets$Values$Batchget, + options?: MethodOptions): AxiosPromise; + batchGet( + params: Params$Resource$Spreadsheets$Values$Batchget, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; batchGet( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchget, + callback: BodyResponseCallback): void; + batchGet(callback: BodyResponseCallback): + void; + batchGet( + paramsOrCallback?: Params$Resource$Spreadsheets$Values$Batchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Batchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Batchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5701,31 +5972,50 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGetByDataFilter(params?: any, options?: MethodOptions): + batchGetByDataFilter( + params?: Params$Resource$Spreadsheets$Values$Batchgetbydatafilter, + options?: MethodOptions): AxiosPromise; batchGetByDataFilter( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchgetbydatafilter, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; batchGetByDataFilter( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchgetbydatafilter, + callback: + BodyResponseCallback): + void; + batchGetByDataFilter( + callback: + BodyResponseCallback): + void; + batchGetByDataFilter( + paramsOrCallback?: + Params$Resource$Spreadsheets$Values$Batchgetbydatafilter| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Batchgetbydatafilter; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Batchgetbydatafilter; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5825,29 +6115,42 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdate(params?: any, options?: MethodOptions): + batchUpdate( + params?: Params$Resource$Spreadsheets$Values$Batchupdate, + options?: MethodOptions): AxiosPromise; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + batchUpdate( + params: Params$Resource$Spreadsheets$Values$Batchupdate, + callback: BodyResponseCallback): void; + batchUpdate( + callback: BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Spreadsheets$Values$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -5948,31 +6251,51 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdateByDataFilter(params?: any, options?: MethodOptions): + batchUpdateByDataFilter( + params?: Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter, + options?: MethodOptions): AxiosPromise; batchUpdateByDataFilter( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; batchUpdateByDataFilter( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter, + callback: + BodyResponseCallback): + void; + batchUpdateByDataFilter( + callback: + BodyResponseCallback): + void; + batchUpdateByDataFilter( + paramsOrCallback?: + Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -6072,28 +6395,39 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clear(params?: any, options?: MethodOptions): - AxiosPromise; clear( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Spreadsheets$Values$Clear, + options?: MethodOptions): AxiosPromise; + clear( + params: Params$Resource$Spreadsheets$Values$Clear, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; clear( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Clear, + callback: BodyResponseCallback): void; + clear(callback: BodyResponseCallback): void; + clear( + paramsOrCallback?: Params$Resource$Spreadsheets$Values$Clear| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spreadsheets$Values$Clear; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Clear; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -6201,23 +6535,35 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Spreadsheets$Values$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Spreadsheets$Values$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Spreadsheets$Values$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Spreadsheets$Values$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Spreadsheets$Values$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -6321,28 +6667,40 @@ export namespace sheets_v4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Spreadsheets$Values$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Spreadsheets$Values$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Spreadsheets$Values$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Spreadsheets$Values$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Spreadsheets$Values$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Spreadsheets$Values$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; const parameters = { options: Object.assign( @@ -6364,4 +6722,256 @@ export namespace sheets_v4 { } } } + + export interface Params$Resource$Spreadsheets$Values$Append { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Determines if the update response should include the values of the cells + * that were appended. By default, responses do not include the updated + * values. + */ + includeValuesInResponse?: boolean; + /** + * How the input data should be inserted. + */ + insertDataOption?: string; + /** + * The A1 notation of a range to search for a logical table of data. Values + * will be appended after the last row of the table. + */ + range?: string; + /** + * Determines how dates, times, and durations in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. The default dateTime render option is + * [DateTimeRenderOption.SERIAL_NUMBER]. + */ + responseDateTimeRenderOption?: string; + /** + * Determines how values in the response should be rendered. The default + * render option is ValueRenderOption.FORMATTED_VALUE. + */ + responseValueRenderOption?: string; + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * How the input data should be interpreted. + */ + valueInputOption?: string; + /** + * Request body metadata + */ + resource?: Schema$ValueRange; + } + export interface Params$Resource$Spreadsheets$Values$Batchclear { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchClearValuesRequest; + } + export interface Params$Resource$Spreadsheets$Values$Batchclearbydatafilter { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchClearValuesByDataFilterRequest; + } + export interface Params$Resource$Spreadsheets$Values$Batchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * How dates, times, and durations should be represented in the output. This + * is ignored if value_render_option is FORMATTED_VALUE. The default + * dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + */ + dateTimeRenderOption?: string; + /** + * The major dimension that results should use. For example, if the + * spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then requesting + * `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`, whereas + * requesting `range=A1:B2,majorDimension=COLUMNS` will return + * `[[1,3],[2,4]]`. + */ + majorDimension?: string; + /** + * The A1 notation of the values to retrieve. + */ + ranges?: string; + /** + * The ID of the spreadsheet to retrieve data from. + */ + spreadsheetId?: string; + /** + * How values should be represented in the output. The default render option + * is ValueRenderOption.FORMATTED_VALUE. + */ + valueRenderOption?: string; + } + export interface Params$Resource$Spreadsheets$Values$Batchgetbydatafilter { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the spreadsheet to retrieve data from. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchGetValuesByDataFilterRequest; + } + export interface Params$Resource$Spreadsheets$Values$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchUpdateValuesRequest; + } + export interface Params$Resource$Spreadsheets$Values$Batchupdatebydatafilter { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchUpdateValuesByDataFilterRequest; + } + export interface Params$Resource$Spreadsheets$Values$Clear { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The A1 notation of the values to clear. + */ + range?: string; + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * Request body metadata + */ + resource?: Schema$ClearValuesRequest; + } + export interface Params$Resource$Spreadsheets$Values$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * How dates, times, and durations should be represented in the output. This + * is ignored if value_render_option is FORMATTED_VALUE. The default + * dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + */ + dateTimeRenderOption?: string; + /** + * The major dimension that results should use. For example, if the + * spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, then requesting + * `range=A1:B2,majorDimension=ROWS` will return `[[1,2],[3,4]]`, whereas + * requesting `range=A1:B2,majorDimension=COLUMNS` will return + * `[[1,3],[2,4]]`. + */ + majorDimension?: string; + /** + * The A1 notation of the values to retrieve. + */ + range?: string; + /** + * The ID of the spreadsheet to retrieve data from. + */ + spreadsheetId?: string; + /** + * How values should be represented in the output. The default render option + * is ValueRenderOption.FORMATTED_VALUE. + */ + valueRenderOption?: string; + } + export interface Params$Resource$Spreadsheets$Values$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Determines if the update response should include the values of the cells + * that were updated. By default, responses do not include the updated + * values. If the range to write was larger than than the range actually + * written, the response will include all values in the requested range + * (excluding trailing empty rows and columns). + */ + includeValuesInResponse?: boolean; + /** + * The A1 notation of the values to update. + */ + range?: string; + /** + * Determines how dates, times, and durations in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. The default dateTime render option is + * [DateTimeRenderOption.SERIAL_NUMBER]. + */ + responseDateTimeRenderOption?: string; + /** + * Determines how values in the response should be rendered. The default + * render option is ValueRenderOption.FORMATTED_VALUE. + */ + responseValueRenderOption?: string; + /** + * The ID of the spreadsheet to update. + */ + spreadsheetId?: string; + /** + * How the input data should be interpreted. + */ + valueInputOption?: string; + /** + * Request body metadata + */ + resource?: Schema$ValueRange; + } } diff --git a/src/apis/siteVerification/v1.ts b/src/apis/siteVerification/v1.ts index 7a90b0cc88a..fa8b5ffd8ea 100644 --- a/src/apis/siteVerification/v1.ts +++ b/src/apis/siteVerification/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace siteVerification_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Site Verification API * @@ -69,13 +72,13 @@ export namespace siteVerification_v1 { /** * The site for which a verification token will be generated. */ - site: any; + site?: any; /** * The verification method that will be used to verify this site. For sites, * 'FILE' or 'META' methods may be used. For domains, only * 'DNS' may be used. */ - verificationMethod: string; + verificationMethod?: string; } export interface Schema$SiteVerificationWebResourceGettokenResponse { /** @@ -85,18 +88,18 @@ export namespace siteVerification_v1 { * the HEAD tag of the default page that is loaded for the site. For DNS, * the token should be placed in a TXT record of the domain. */ - method: string; + method?: string; /** * The verification token. The token must be placed appropriately in order * for verification to succeed. */ - token: string; + token?: string; } export interface Schema$SiteVerificationWebResourceListResponse { /** * The list of sites that are owned by the authenticated user. */ - items: Schema$SiteVerificationWebResourceResource[]; + items?: Schema$SiteVerificationWebResourceResource[]; } export interface Schema$SiteVerificationWebResourceResource { /** @@ -104,17 +107,18 @@ export namespace siteVerification_v1 { * "id" portion of the REST URL for the Get, Update, and Delete * operations. */ - id: string; + id?: string; /** * The email addresses of all verified owners. */ - owners: string[]; + owners?: string[]; /** * The address and type of a site that is verified or will be verified. */ - site: any; + site?: any; } + export class Resource$Webresource { root: Siteverification; constructor(root: Siteverification) { @@ -139,22 +143,37 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Webresource$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Webresource$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Webresource$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Webresource$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Webresource$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -189,29 +208,42 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Webresource$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Webresource$Get, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + get(params: Params$Resource$Webresource$Get, + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(callback: + BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Webresource$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Webresource$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -248,30 +280,45 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getToken(params?: any, options?: MethodOptions): + getToken( + params?: Params$Resource$Webresource$Gettoken, options?: MethodOptions): AxiosPromise; getToken( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Webresource$Gettoken, + options: MethodOptions|BodyResponseCallback< Schema$SiteVerificationWebResourceGettokenResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$SiteVerificationWebResourceGettokenResponse>): void; + getToken( + params: Params$Resource$Webresource$Gettoken, + callback: BodyResponseCallback< Schema$SiteVerificationWebResourceGettokenResponse>): void; + getToken(callback: BodyResponseCallback< + Schema$SiteVerificationWebResourceGettokenResponse>): void; getToken( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Webresource$Gettoken| + BodyResponseCallback< + Schema$SiteVerificationWebResourceGettokenResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$SiteVerificationWebResourceGettokenResponse>, callback?: BodyResponseCallback< Schema$SiteVerificationWebResourceGettokenResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Webresource$Gettoken; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$Gettoken; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -309,31 +356,48 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert( + params?: Params$Resource$Webresource$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Webresource$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Webresource$Insert, + callback: + BodyResponseCallback): + void; + insert( + callback: + BodyResponseCallback): + void; + insert( + paramsOrCallback?: Params$Resource$Webresource$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Webresource$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -369,30 +433,42 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Webresource$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Webresource$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$SiteVerificationWebResourceListResponse>): void; + list( + params: Params$Resource$Webresource$List, + callback: BodyResponseCallback< Schema$SiteVerificationWebResourceListResponse>): void; + list(callback: BodyResponseCallback< + Schema$SiteVerificationWebResourceListResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Webresource$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$SiteVerificationWebResourceListResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Webresource$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -431,31 +507,46 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Webresource$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Webresource$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + patch( + params: Params$Resource$Webresource$Patch, + callback: BodyResponseCallback): void; + patch(callback: + BodyResponseCallback): + void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Webresource$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Webresource$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -493,31 +584,48 @@ export namespace siteVerification_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update( + params?: Params$Resource$Webresource$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Webresource$Update, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + update( + params: Params$Resource$Webresource$Update, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + callback: + BodyResponseCallback): + void; + update( + paramsOrCallback?: Params$Resource$Webresource$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Webresource$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webresource$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -541,4 +649,84 @@ export namespace siteVerification_v1 { } } } + + export interface Params$Resource$Webresource$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of a verified site or domain. + */ + id?: string; + } + export interface Params$Resource$Webresource$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of a verified site or domain. + */ + id?: string; + } + export interface Params$Resource$Webresource$Gettoken { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Webresource$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The method to use for verifying a site or domain. + */ + verificationMethod?: string; + /** + * Request body metadata + */ + resource?: Schema$SiteVerificationWebResourceResource; + } + export interface Params$Resource$Webresource$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Webresource$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of a verified site or domain. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$SiteVerificationWebResourceResource; + } + export interface Params$Resource$Webresource$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id of a verified site or domain. + */ + id?: string; + /** + * Request body metadata + */ + resource?: Schema$SiteVerificationWebResourceResource; + } } diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index cd7b358fd4e..22802de19ac 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace slides_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Slides API * @@ -77,31 +80,31 @@ export namespace slides_v1 { /** * The X coordinate scaling element. */ - scaleX: number; + scaleX?: number; /** * The Y coordinate scaling element. */ - scaleY: number; + scaleY?: number; /** * The X coordinate shearing element. */ - shearX: number; + shearX?: number; /** * The Y coordinate shearing element. */ - shearY: number; + shearY?: number; /** * The X coordinate translation element. */ - translateX: number; + translateX?: number; /** * The Y coordinate translation element. */ - translateY: number; + translateY?: number; /** * The units for translate elements. */ - unit: string; + unit?: string; } /** * A TextElement kind that represents auto text. @@ -110,15 +113,15 @@ export namespace slides_v1 { /** * The rendered content of this auto text, if available. */ - content: string; + content?: string; /** * The styling applied to this auto text. */ - style: Schema$TextStyle; + style?: Schema$TextStyle; /** * The type of this auto text. */ - type: string; + type?: string; } /** * Request message for PresentationsService.BatchUpdatePresentation. @@ -127,11 +130,11 @@ export namespace slides_v1 { /** * A list of updates to apply to the presentation. */ - requests: Schema$Request[]; + requests?: Schema$Request[]; /** * Provides control over how write requests are executed. */ - writeControl: Schema$WriteControl; + writeControl?: Schema$WriteControl; } /** * Response message from a batch update. @@ -140,16 +143,16 @@ export namespace slides_v1 { /** * The presentation the updates were applied to. */ - presentationId: string; + presentationId?: string; /** * The reply of the updates. This maps 1:1 with the updates, although * replies to some requests may be empty. */ - replies: Schema$Response[]; + replies?: Schema$Response[]; /** * The updated write control after applying the request. */ - writeControl: Schema$WriteControl; + writeControl?: Schema$WriteControl; } /** * Describes the bullet of a paragraph. @@ -158,19 +161,19 @@ export namespace slides_v1 { /** * The paragraph specific text style applied to this bullet. */ - bulletStyle: Schema$TextStyle; + bulletStyle?: Schema$TextStyle; /** * The rendered bullet glyph for this paragraph. */ - glyph: string; + glyph?: string; /** * The ID of the list this paragraph belongs to. */ - listId: string; + listId?: string; /** * The nesting level of this paragraph in the list. */ - nestingLevel: number; + nestingLevel?: number; } /** * The palette of predefined colors for a page. @@ -179,7 +182,7 @@ export namespace slides_v1 { /** * The ThemeColorType and corresponding concrete color pairs. */ - colors: Schema$ThemeColorPair[]; + colors?: Schema$ThemeColorPair[]; } /** * A color and position in a gradient band. @@ -189,16 +192,16 @@ export namespace slides_v1 { * The alpha value of this color in the gradient band. Defaults to 1.0, * fully opaque. */ - alpha: number; + alpha?: number; /** * The color of the gradient stop. */ - color: Schema$OpaqueColor; + color?: Schema$OpaqueColor; /** * The relative position of the color stop in the gradient band measured in * percentage. The value should be in the interval [0.0, 1.0]. */ - position: number; + position?: number; } /** * Creates an image. @@ -215,7 +218,7 @@ export namespace slides_v1 { * specify a transform, the image will be placed at the top left corner of * the page. */ - elementProperties: Schema$PageElementProperties; + elementProperties?: Schema$PageElementProperties; /** * A user-supplied object ID. If you specify an ID, it must be unique among * all pages and page elements in the presentation. The ID must start with @@ -225,7 +228,7 @@ export namespace slides_v1 { * must not be less than 5 or greater than 50. If you don't specify an * ID, a unique one is generated. */ - objectId: string; + objectId?: string; /** * The image URL. The image is fetched once at insertion time and a copy is * stored for display inside the presentation. Images must be less than 50MB @@ -234,7 +237,7 @@ export namespace slides_v1 { * itself is saved with the image, and exposed via the Image.source_url * field. */ - url: string; + url?: string; } /** * The result of creating an image. @@ -243,7 +246,7 @@ export namespace slides_v1 { /** * The object ID of the created image. */ - objectId: string; + objectId?: string; } /** * Creates a line. @@ -252,11 +255,11 @@ export namespace slides_v1 { /** * The element properties for the line. */ - elementProperties: Schema$PageElementProperties; + elementProperties?: Schema$PageElementProperties; /** * The category of line to be created. */ - lineCategory: string; + lineCategory?: string; /** * A user-supplied object ID. If you specify an ID, it must be unique among * all pages and page elements in the presentation. The ID must start with @@ -266,7 +269,7 @@ export namespace slides_v1 { * must not be less than 5 or greater than 50. If you don't specify an * ID, a unique one is generated. */ - objectId: string; + objectId?: string; } /** * The result of creating a line. @@ -275,7 +278,7 @@ export namespace slides_v1 { /** * The object ID of the created line. */ - objectId: string; + objectId?: string; } /** * Creates bullets for all of the paragraphs that overlap with the given text @@ -292,22 +295,22 @@ export namespace slides_v1 { * The kinds of bullet glyphs to be used. Defaults to the * `BULLET_DISC_CIRCLE_SQUARE` preset. */ - bulletPreset: string; + bulletPreset?: string; /** * The optional table cell location if the text to be modified is in a table * cell. If present, the object_id must refer to a table. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The object ID of the shape or table containing the text to add bullets * to. */ - objectId: string; + objectId?: string; /** * The range of text to apply the bullet presets to, based on TextElement * indexes. */ - textRange: Schema$Range; + textRange?: Schema$Range; } /** * Creates a new shape. @@ -316,7 +319,7 @@ export namespace slides_v1 { /** * The element properties for the shape. */ - elementProperties: Schema$PageElementProperties; + elementProperties?: Schema$PageElementProperties; /** * A user-supplied object ID. If you specify an ID, it must be unique among * all pages and page elements in the presentation. The ID must start with @@ -326,11 +329,11 @@ export namespace slides_v1 { * must not be less than 5 or greater than 50. If empty, a unique identifier * will be generated. */ - objectId: string; + objectId?: string; /** * The shape type. */ - shapeType: string; + shapeType?: string; } /** * The result of creating a shape. @@ -339,7 +342,7 @@ export namespace slides_v1 { /** * The object ID of the created shape. */ - objectId: string; + objectId?: string; } /** * Creates an embedded Google Sheets chart. NOTE: Chart creation requires at @@ -350,19 +353,19 @@ export namespace slides_v1 { /** * The ID of the specific chart in the Google Sheets spreadsheet. */ - chartId: number; + chartId?: number; /** * The element properties for the chart. When the aspect ratio of the * provided size does not match the chart aspect ratio, the chart is scaled * and centered with respect to the size in order to maintain aspect ratio. * The provided transform is applied after this operation. */ - elementProperties: Schema$PageElementProperties; + elementProperties?: Schema$PageElementProperties; /** * The mode with which the chart is linked to the source spreadsheet. When * not specified, the chart will be an image that is not linked. */ - linkingMode: string; + linkingMode?: string; /** * A user-supplied object ID. If specified, the ID must be unique among all * pages and page elements in the presentation. The ID should start with a @@ -371,11 +374,11 @@ export namespace slides_v1 { * less than 5 or greater than 50. If empty, a unique identifier will be * generated. */ - objectId: string; + objectId?: string; /** * The ID of the Google Sheets spreadsheet that contains the chart. */ - spreadsheetId: string; + spreadsheetId?: string; } /** * The result of creating an embedded Google Sheets chart. @@ -384,7 +387,7 @@ export namespace slides_v1 { /** * The object ID of the created chart. */ - objectId: string; + objectId?: string; } /** * Creates a new slide. @@ -394,7 +397,7 @@ export namespace slides_v1 { * The optional zero-based index indicating where to insert the slides. If * you don't specify an index, the new slide is created at the end. */ - insertionIndex: number; + insertionIndex?: number; /** * A user-supplied object ID. If you specify an ID, it must be unique among * all pages and page elements in the presentation. The ID must start with @@ -404,14 +407,14 @@ export namespace slides_v1 { * must not be less than 5 or greater than 50. If you don't specify an * ID, a unique one is generated. */ - objectId: string; + objectId?: string; /** * An optional list of object ID mappings from the placeholder(s) on the * layout to the placeholder(s) that will be created on the new slide from * that specified layout. Can only be used when `slide_layout_reference` is * specified. */ - placeholderIdMappings: Schema$LayoutPlaceholderIdMapping[]; + placeholderIdMappings?: Schema$LayoutPlaceholderIdMapping[]; /** * Layout reference of the slide to be inserted, based on the *current * master*, which is one of the following: - The master of the previous @@ -421,7 +424,7 @@ export namespace slides_v1 { * error is returned. If you don't specify a layout reference, then the * new slide will use the predefined layout `BLANK`. */ - slideLayoutReference: Schema$LayoutReference; + slideLayoutReference?: Schema$LayoutReference; } /** * The result of creating a slide. @@ -430,7 +433,7 @@ export namespace slides_v1 { /** * The object ID of the created slide. */ - objectId: string; + objectId?: string; } /** * Creates a new table. @@ -439,7 +442,7 @@ export namespace slides_v1 { /** * Number of columns in the table. */ - columns: number; + columns?: number; /** * The element properties for the table. The table will be created at the * provided size, subject to a minimum size. If no size is provided, the @@ -447,7 +450,7 @@ export namespace slides_v1 { * 1 and no shear components. If no transform is provided, the table will be * centered on the page. */ - elementProperties: Schema$PageElementProperties; + elementProperties?: Schema$PageElementProperties; /** * A user-supplied object ID. If you specify an ID, it must be unique among * all pages and page elements in the presentation. The ID must start with @@ -457,11 +460,11 @@ export namespace slides_v1 { * must not be less than 5 or greater than 50. If you don't specify an * ID, a unique one is generated. */ - objectId: string; + objectId?: string; /** * Number of rows in the table. */ - rows: number; + rows?: number; } /** * The result of creating a table. @@ -470,7 +473,7 @@ export namespace slides_v1 { /** * The object ID of the created table. */ - objectId: string; + objectId?: string; } /** * Creates a video. @@ -484,13 +487,13 @@ export namespace slides_v1 { * specify a transform, the video will be placed at the top left corner of * the page. */ - elementProperties: Schema$PageElementProperties; + elementProperties?: Schema$PageElementProperties; /** * The video source's unique identifier for this video. e.g. For * YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, the ID is * 7U3axjORYZ0. */ - id: string; + id?: string; /** * A user-supplied object ID. If you specify an ID, it must be unique among * all pages and page elements in the presentation. The ID must start with @@ -500,11 +503,11 @@ export namespace slides_v1 { * must not be less than 5 or greater than 50. If you don't specify an * ID, a unique one is generated. */ - objectId: string; + objectId?: string; /** * The video source. */ - source: string; + source?: string; } /** * The result of creating a video. @@ -513,7 +516,7 @@ export namespace slides_v1 { /** * The object ID of the created video. */ - objectId: string; + objectId?: string; } /** * The crop properties of an object enclosed in a container. For example, an @@ -537,31 +540,31 @@ export namespace slides_v1 { * The rotation angle of the crop window around its center, in radians. * Rotation angle is applied after the offset. */ - angle: number; + angle?: number; /** * The offset specifies the bottom edge of the crop rectangle that is * located above the original bounding rectangle bottom edge, relative to * the object's original height. */ - bottomOffset: number; + bottomOffset?: number; /** * The offset specifies the left edge of the crop rectangle that is located * to the right of the original bounding rectangle left edge, relative to * the object's original width. */ - leftOffset: number; + leftOffset?: number; /** * The offset specifies the right edge of the crop rectangle that is located * to the left of the original bounding rectangle right edge, relative to * the object's original width. */ - rightOffset: number; + rightOffset?: number; /** * The offset specifies the top edge of the crop rectangle that is located * below the original bounding rectangle top edge, relative to the * object's original height. */ - topOffset: number; + topOffset?: number; } /** * Deletes an object, either pages or page elements, from the presentation. @@ -573,7 +576,7 @@ export namespace slides_v1 { * deleted. If a placeholder is deleted on a layout, any empty inheriting * shapes are also deleted. */ - objectId: string; + objectId?: string; } /** * Deletes bullets from all of the paragraphs that overlap with the given text @@ -585,16 +588,16 @@ export namespace slides_v1 { * The optional table cell location if the text to be modified is in a table * cell. If present, the object_id must refer to a table. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The object ID of the shape or table containing the text to delete bullets * from. */ - objectId: string; + objectId?: string; /** * The range of text to delete bullets from, based on TextElement indexes. */ - textRange: Schema$Range; + textRange?: Schema$Range; } /** * Deletes a column from a table. @@ -606,11 +609,11 @@ export namespace slides_v1 { * multiple columns will be deleted. If no columns remain in the table after * this deletion, the whole table is deleted. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The table to delete columns from. */ - tableObjectId: string; + tableObjectId?: string; } /** * Deletes a row from a table. @@ -622,11 +625,11 @@ export namespace slides_v1 { * rows will be deleted. If no rows remain in the table after this deletion, * the whole table is deleted. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The table to delete rows from. */ - tableObjectId: string; + tableObjectId?: string; } /** * Deletes text from a shape or a table cell. @@ -636,11 +639,11 @@ export namespace slides_v1 { * The optional table cell location if the text is to be deleted from a * table cell. If present, the object_id must refer to a table. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The object ID of the shape or table from which the text will be deleted. */ - objectId: string; + objectId?: string; /** * The range of text to delete, based on TextElement indexes. There is * always an implicit newline character at the end of a shape's or table @@ -654,7 +657,7 @@ export namespace slides_v1 { * are merged. Ranges that include only one code unit of a surrogate pair * are expanded to include both code units. */ - textRange: Schema$Range; + textRange?: Schema$Range; } /** * A magnitude in a single direction in the specified units. @@ -663,11 +666,11 @@ export namespace slides_v1 { /** * The magnitude. */ - magnitude: number; + magnitude?: number; /** * The units for magnitude. */ - unit: string; + unit?: string; } /** * Duplicates a slide or page element. When duplicating a slide, the @@ -679,7 +682,7 @@ export namespace slides_v1 { /** * The ID of the object to duplicate. */ - objectId: string; + objectId?: string; /** * The object being duplicated may contain other objects, for example when * duplicating a slide or a group page element. This map defines how the IDs @@ -697,7 +700,7 @@ export namespace slides_v1 { * a new random ID will be assigned. If the map is empty or unset, all * duplicate objects will receive a new random ID. */ - objectIds: any; + objectIds?: any; } /** * The response of duplicating an object. @@ -706,7 +709,7 @@ export namespace slides_v1 { /** * The ID of the new duplicate object. */ - objectId: string; + objectId?: string; } /** * A PageElement kind representing a joined collection of PageElements. @@ -716,7 +719,7 @@ export namespace slides_v1 { * The collection of elements in the group. The minimum size of a group * is 2. */ - children: Schema$PageElement[]; + children?: Schema$PageElement[]; } /** * Groups objects to create an object group. For example, groups PageElements @@ -729,7 +732,7 @@ export namespace slides_v1 { * are not already in another group. Some page elements, such as videos, * tables and placeholder shapes cannot be grouped. */ - childrenObjectIds: string[]; + childrenObjectIds?: string[]; /** * A user-supplied object ID for the group to be created. If you specify an * ID, it must be unique among all pages and page elements in the @@ -740,7 +743,7 @@ export namespace slides_v1 { * greater than 50. If you don't specify an ID, a unique one is * generated. */ - groupObjectId: string; + groupObjectId?: string; } /** * The result of grouping objects. @@ -749,7 +752,7 @@ export namespace slides_v1 { /** * The object ID of the created group. */ - objectId: string; + objectId?: string; } /** * A PageElement kind representing an image. @@ -761,16 +764,16 @@ export namespace slides_v1 { * accesses the image as the original requester. Access to the image may be * lost if the presentation's sharing settings change. */ - contentUrl: string; + contentUrl?: string; /** * The properties of the image. */ - imageProperties: Schema$ImageProperties; + imageProperties?: Schema$ImageProperties; /** * The source URL is the URL used to insert the image. The source URL can be * empty. */ - sourceUrl: string; + sourceUrl?: string; } /** * The properties of the Image. @@ -780,41 +783,41 @@ export namespace slides_v1 { * The brightness effect of the image. The value should be in the interval * [-1.0, 1.0], where 0 means no effect. This property is read-only. */ - brightness: number; + brightness?: number; /** * The contrast effect of the image. The value should be in the interval * [-1.0, 1.0], where 0 means no effect. This property is read-only. */ - contrast: number; + contrast?: number; /** * The crop properties of the image. If not set, the image is not cropped. * This property is read-only. */ - cropProperties: Schema$CropProperties; + cropProperties?: Schema$CropProperties; /** * The hyperlink destination of the image. If unset, there is no link. */ - link: Schema$Link; + link?: Schema$Link; /** * The outline of the image. If not set, the image has no outline. */ - outline: Schema$Outline; + outline?: Schema$Outline; /** * The recolor effect of the image. If not set, the image is not recolored. * This property is read-only. */ - recolor: Schema$Recolor; + recolor?: Schema$Recolor; /** * The shadow of the image. If not set, the image has no shadow. This * property is read-only. */ - shadow: Schema$Shadow; + shadow?: Schema$Shadow; /** * The transparency effect of the image. The value should be in the interval * [0.0, 1.0], where 0 means no effect and 1 means completely transparent. * This property is read-only. */ - transparency: number; + transparency?: number; } /** * Inserts columns into a table. Other columns in the table will be resized @@ -827,20 +830,20 @@ export namespace slides_v1 { * the reference cell is. If the reference cell is a merged cell, a new * column will be inserted to the left (or right) of the merged cell. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * Whether to insert new columns to the right of the reference cell * location. - `True`: insert to the right. - `False`: insert to the left. */ - insertRight: boolean; + insertRight?: boolean; /** * The number of columns to be inserted. Maximum 20 per request. */ - number: number; + number?: number; /** * The table to insert columns into. */ - tableObjectId: string; + tableObjectId?: string; } /** * Inserts rows into a table. @@ -852,20 +855,20 @@ export namespace slides_v1 { * cell is. If the reference cell is a merged cell, a new row will be * inserted above (or below) the merged cell. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * Whether to insert new rows below the reference cell location. - `True`: * insert below the cell. - `False`: insert above the cell. */ - insertBelow: boolean; + insertBelow?: boolean; /** * The number of rows to be inserted. Maximum 20 per request. */ - number: number; + number?: number; /** * The table to insert rows into. */ - tableObjectId: string; + tableObjectId?: string; } /** * Inserts text into a shape or a table cell. @@ -875,7 +878,7 @@ export namespace slides_v1 { * The optional table cell location if the text is to be inserted into a * table cell. If present, the object_id must refer to a table. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The index where the text will be inserted, in Unicode code units, based * on TextElement indexes. The index is zero-based and is computed from the @@ -883,11 +886,11 @@ export namespace slides_v1 { * inside Unicode grapheme clusters. In these cases, the text will be * inserted immediately after the grapheme cluster. */ - insertionIndex: number; + insertionIndex?: number; /** * The object ID of the shape or table where the text will be inserted. */ - objectId: string; + objectId?: string; /** * The text to be inserted. Inserting a newline character will implicitly * create a new ParagraphMarker at that index. The paragraph style of the @@ -900,7 +903,7 @@ export namespace slides_v1 { * Multilingual Plane Private Use Area (U+E000-U+F8FF) will be stripped out * of the inserted text. */ - text: string; + text?: string; } /** * The user-specified ID mapping for a placeholder that will be created on a @@ -913,12 +916,12 @@ export namespace slides_v1 { * may usually have a TITLE placeholder with index 0 and a BODY placeholder * with index 0. */ - layoutPlaceholder: Schema$Placeholder; + layoutPlaceholder?: Schema$Placeholder; /** * The object ID of the placeholder on a layout that will be applied to a * slide. */ - layoutPlaceholderObjectId: string; + layoutPlaceholderObjectId?: string; /** * A user-supplied object ID for the placeholder identified above that to be * created onto a slide. If you specify an ID, it must be unique among all @@ -929,7 +932,7 @@ export namespace slides_v1 { * than 5 or greater than 50. If you don't specify an ID, a unique one * is generated. */ - objectId: string; + objectId?: string; } /** * The properties of Page are only relevant for pages with page_type LAYOUT. @@ -938,15 +941,15 @@ export namespace slides_v1 { /** * The human-readable name of the layout. */ - displayName: string; + displayName?: string; /** * The object ID of the master that this layout is based on. */ - masterObjectId: string; + masterObjectId?: string; /** * The name of the layout. */ - name: string; + name?: string; } /** * Slide layout reference. This may reference either: - A predefined layout - @@ -956,11 +959,11 @@ export namespace slides_v1 { /** * Layout ID: the object ID of one of the layouts in the presentation. */ - layoutId: string; + layoutId?: string; /** * Predefined layout. */ - predefinedLayout: string; + predefinedLayout?: string; } /** * A PageElement kind representing a non-connector line, straight connector, @@ -970,11 +973,11 @@ export namespace slides_v1 { /** * The properties of the line. */ - lineProperties: Schema$LineProperties; + lineProperties?: Schema$LineProperties; /** * The type of the line. */ - lineType: string; + lineType?: string; } /** * The fill of the line. @@ -983,7 +986,7 @@ export namespace slides_v1 { /** * Solid color fill. */ - solidFill: Schema$SolidFill; + solidFill?: Schema$SolidFill; } /** * The properties of the Line. When unset, these fields default to values @@ -993,28 +996,28 @@ export namespace slides_v1 { /** * The dash style of the line. */ - dashStyle: string; + dashStyle?: string; /** * The style of the arrow at the end of the line. */ - endArrow: string; + endArrow?: string; /** * The fill of the line. The default line fill matches the defaults for new * lines created in the Slides editor. */ - lineFill: Schema$LineFill; + lineFill?: Schema$LineFill; /** * The hyperlink destination of the line. If unset, there is no link. */ - link: Schema$Link; + link?: Schema$Link; /** * The style of the arrow at the beginning of the line. */ - startArrow: string; + startArrow?: string; /** * The thickness of the line. */ - weight: Schema$Dimension; + weight?: Schema$Dimension; } /** * A hypertext link. @@ -1024,21 +1027,21 @@ export namespace slides_v1 { * If set, indicates this is a link to the specific page in this * presentation with this ID. A page with this ID may not exist. */ - pageObjectId: string; + pageObjectId?: string; /** * If set, indicates this is a link to a slide in this presentation, * addressed by its position. */ - relativeLink: string; + relativeLink?: string; /** * If set, indicates this is a link to the slide at this zero-based index in * the presentation. There may not be a slide at this index. */ - slideIndex: number; + slideIndex?: number; /** * If set, indicates this is a link to the external web page at this URL. */ - url: string; + url?: string; } /** * A List describes the look and feel of bullets belonging to paragraphs @@ -1049,13 +1052,13 @@ export namespace slides_v1 { /** * The ID of the list. */ - listId: string; + listId?: string; /** * A map of nesting levels to the properties of bullets at the associated * level. A list has at most nine levels of nesting, so the possible values * for the keys of this map are 0 through 8, inclusive. */ - nestingLevel: any; + nestingLevel?: any; } /** * The properties of Page that are only relevant for pages with page_type @@ -1065,7 +1068,7 @@ export namespace slides_v1 { /** * The human-readable name of the master. */ - displayName: string; + displayName?: string; } /** * Merges cells in a Table. @@ -1074,7 +1077,7 @@ export namespace slides_v1 { /** * The object ID of the table. */ - objectId: string; + objectId?: string; /** * The table range specifying which cells of the table to merge. Any text * in the cells being merged will be concatenated and stored in the @@ -1082,7 +1085,7 @@ export namespace slides_v1 { * non-rectangular (which can occur in some cases where the range covers * cells that are already merged), a 400 bad request error is returned. */ - tableRange: Schema$TableRange; + tableRange?: Schema$TableRange; } /** * Contains properties describing the look and feel of a list bullet at a @@ -1092,7 +1095,7 @@ export namespace slides_v1 { /** * The style of a bullet at this level of nesting. */ - bulletStyle: Schema$TextStyle; + bulletStyle?: Schema$TextStyle; } /** * The properties of Page that are only relevant for pages with page_type @@ -1107,7 +1110,7 @@ export namespace slides_v1 { * object ID. The `GetPresentation` or `GetPage` action will always return * the latest object ID. */ - speakerNotesObjectId: string; + speakerNotesObjectId?: string; } /** * A themeable solid color value. @@ -1116,11 +1119,11 @@ export namespace slides_v1 { /** * An opaque RGB color. */ - rgbColor: Schema$RgbColor; + rgbColor?: Schema$RgbColor; /** * An opaque theme color. */ - themeColor: string; + themeColor?: string; } /** * A color that can either be fully opaque or fully transparent. @@ -1130,7 +1133,7 @@ export namespace slides_v1 { * If set, this will be used as an opaque color. If unset, this represents a * transparent color. */ - opaqueColor: Schema$OpaqueColor; + opaqueColor?: Schema$OpaqueColor; } /** * The outline of a PageElement. If these fields are unset, they may be @@ -1142,11 +1145,11 @@ export namespace slides_v1 { /** * The dash style of the outline. */ - dashStyle: string; + dashStyle?: string; /** * The fill of the outline. */ - outlineFill: Schema$OutlineFill; + outlineFill?: Schema$OutlineFill; /** * The outline property state. Updating the outline on a page element will * implicitly update this field to `RENDERED`, unless another value is @@ -1154,11 +1157,11 @@ export namespace slides_v1 { * this field to `NOT_RENDERED`. In this case, any other outline fields set * in the same request will be ignored. */ - propertyState: string; + propertyState?: string; /** * The thickness of the outline. */ - weight: Schema$Dimension; + weight?: Schema$Dimension; } /** * The fill of the outline. @@ -1167,7 +1170,7 @@ export namespace slides_v1 { /** * Solid color fill. */ - solidFill: Schema$SolidFill; + solidFill?: Schema$SolidFill; } /** * A page in a presentation. @@ -1176,32 +1179,32 @@ export namespace slides_v1 { /** * Layout specific properties. Only set if page_type = LAYOUT. */ - layoutProperties: Schema$LayoutProperties; + layoutProperties?: Schema$LayoutProperties; /** * Master specific properties. Only set if page_type = MASTER. */ - masterProperties: Schema$MasterProperties; + masterProperties?: Schema$MasterProperties; /** * Notes specific properties. Only set if page_type = NOTES. */ - notesProperties: Schema$NotesProperties; + notesProperties?: Schema$NotesProperties; /** * The object ID for this page. Object IDs used by Page and PageElement * share the same namespace. */ - objectId: string; + objectId?: string; /** * The page elements rendered on the page. */ - pageElements: Schema$PageElement[]; + pageElements?: Schema$PageElement[]; /** * The properties of the page. */ - pageProperties: Schema$PageProperties; + pageProperties?: Schema$PageProperties; /** * The type of the page. */ - pageType: string; + pageType?: string; /** * The revision ID of the presentation containing this page. Can be used in * update requests to assert that the presentation revision hasn't @@ -1215,11 +1218,11 @@ export namespace slides_v1 { * presentation has been updated; however, a changed ID can also be due to * internal factors such as ID format changes. */ - revisionId: string; + revisionId?: string; /** * Slide specific properties. Only set if page_type = SLIDE. */ - slideProperties: Schema$SlideProperties; + slideProperties?: Schema$SlideProperties; } /** * The page background fill. @@ -1232,15 +1235,15 @@ export namespace slides_v1 { * to `NOT_RENDERED`. In this case, any other fill fields set in the same * request will be ignored. */ - propertyState: string; + propertyState?: string; /** * Solid color fill. */ - solidFill: Schema$SolidFill; + solidFill?: Schema$SolidFill; /** * Stretched picture fill. */ - stretchedPictureFill: Schema$StretchedPictureFill; + stretchedPictureFill?: Schema$StretchedPictureFill; } /** * A visual element rendered on a page. @@ -1250,47 +1253,47 @@ export namespace slides_v1 { * The description of the page element. Combined with title to display alt * text. */ - description: string; + description?: string; /** * A collection of page elements joined as a single unit. */ - elementGroup: Schema$Group; + elementGroup?: Schema$Group; /** * An image page element. */ - image: Schema$Image; + image?: Schema$Image; /** * A line page element. */ - line: Schema$Line; + line?: Schema$Line; /** * The object ID for this page element. Object IDs used by * google.apps.slides.v1.Page and google.apps.slides.v1.PageElement share * the same namespace. */ - objectId: string; + objectId?: string; /** * A generic shape. */ - shape: Schema$Shape; + shape?: Schema$Shape; /** * A linked chart embedded from Google Sheets. Unlinked charts are * represented as images. */ - sheetsChart: Schema$SheetsChart; + sheetsChart?: Schema$SheetsChart; /** * The size of the page element. */ - size: Schema$Size; + size?: Schema$Size; /** * A table page element. */ - table: Schema$Table; + table?: Schema$Table; /** * The title of the page element. Combined with description to display alt * text. */ - title: string; + title?: string; /** * The transform of the page element. The visual appearance of the page * element is determined by its absolute transform. To compute the absolute @@ -1300,15 +1303,15 @@ export namespace slides_v1 { * initial transform for the newly created Group is always the identity * transform. */ - transform: Schema$AffineTransform; + transform?: Schema$AffineTransform; /** * A video page element. */ - video: Schema$Video; + video?: Schema$Video; /** * A word art page element. */ - wordArt: Schema$WordArt; + wordArt?: Schema$WordArt; } /** * Common properties for a page element. Note: When you initially create a @@ -1319,15 +1322,15 @@ export namespace slides_v1 { /** * The object ID of the page where the element is located. */ - pageObjectId: string; + pageObjectId?: string; /** * The size of the element. */ - size: Schema$Size; + size?: Schema$Size; /** * The transform for the element. */ - transform: Schema$AffineTransform; + transform?: Schema$AffineTransform; } /** * The properties of the Page. The page will inherit properties from the @@ -1340,14 +1343,14 @@ export namespace slides_v1 { * from a parent page. If the page has no parent, the color scheme uses a * default Slides color scheme. This field is read-only. */ - colorScheme: Schema$ColorScheme; + colorScheme?: Schema$ColorScheme; /** * The background fill of the page. If unset, the background fill is * inherited from a parent page if it exists. If the page has no parent, * then the background fill defaults to the corresponding fill in the Slides * editor. */ - pageBackgroundFill: Schema$PageBackgroundFill; + pageBackgroundFill?: Schema$PageBackgroundFill; } /** * A TextElement kind that represents the beginning of a new paragraph. @@ -1357,11 +1360,11 @@ export namespace slides_v1 { * The bullet for this paragraph. If not present, the paragraph does not * belong to a list. */ - bullet: Schema$Bullet; + bullet?: Schema$Bullet; /** * The paragraph's style */ - style: Schema$ParagraphStyle; + style?: Schema$ParagraphStyle; } /** * Styles that apply to a whole paragraph. If this text is contained in a @@ -1378,49 +1381,49 @@ export namespace slides_v1 { /** * The text alignment for this paragraph. */ - alignment: string; + alignment?: string; /** * The text direction of this paragraph. If unset, the value defaults to * LEFT_TO_RIGHT since text direction is not inherited. */ - direction: string; + direction?: string; /** * The amount indentation for the paragraph on the side that corresponds to * the end of the text, based on the current text direction. If unset, the * value is inherited from the parent. */ - indentEnd: Schema$Dimension; + indentEnd?: Schema$Dimension; /** * The amount of indentation for the start of the first line of the * paragraph. If unset, the value is inherited from the parent. */ - indentFirstLine: Schema$Dimension; + indentFirstLine?: Schema$Dimension; /** * The amount indentation for the paragraph on the side that corresponds to * the start of the text, based on the current text direction. If unset, the * value is inherited from the parent. */ - indentStart: Schema$Dimension; + indentStart?: Schema$Dimension; /** * The amount of space between lines, as a percentage of normal, where * normal is represented as 100.0. If unset, the value is inherited from the * parent. */ - lineSpacing: number; + lineSpacing?: number; /** * The amount of extra space above the paragraph. If unset, the value is * inherited from the parent. */ - spaceAbove: Schema$Dimension; + spaceAbove?: Schema$Dimension; /** * The amount of extra space above the paragraph. If unset, the value is * inherited from the parent. */ - spaceBelow: Schema$Dimension; + spaceBelow?: Schema$Dimension; /** * The spacing mode for the paragraph. */ - spacingMode: string; + spacingMode?: string; } /** * The placeholder information that uniquely identifies a placeholder shape. @@ -1430,17 +1433,17 @@ export namespace slides_v1 { * The index of the placeholder. If the same placeholder types are present * in the same page, they would have different index values. */ - index: number; + index?: number; /** * The object ID of this shape's parent placeholder. If unset, the * parent placeholder shape does not exist, so the shape does not inherit * properties from any other shape. */ - parentObjectId: string; + parentObjectId?: string; /** * The type of the placeholder. */ - type: string; + type?: string; } /** * A Google Slides presentation. @@ -1451,11 +1454,11 @@ export namespace slides_v1 { * how content is arranged and styled on the slides that inherit from that * layout. */ - layouts: Schema$Page[]; + layouts?: Schema$Page[]; /** * The locale of the presentation, as an IETF BCP 47 language tag. */ - locale: string; + locale?: string; /** * The slide masters in the presentation. A slide master contains all common * page elements and the common properties for a set of layouts. They serve @@ -1466,7 +1469,7 @@ export namespace slides_v1 { * slide will appear on all slides using that master, regardless of their * layout. */ - masters: Schema$Page[]; + masters?: Schema$Page[]; /** * The notes master in the presentation. It serves three purposes: - * Placeholder shapes on a notes master contain the default text styles and @@ -1477,15 +1480,15 @@ export namespace slides_v1 { * notes pages. - Any other shapes on the notes master will appear on all * notes pages. The notes master is read-only. */ - notesMaster: Schema$Page; + notesMaster?: Schema$Page; /** * The size of pages in the presentation. */ - pageSize: Schema$Size; + pageSize?: Schema$Size; /** * The ID of the presentation. */ - presentationId: string; + presentationId?: string; /** * The revision ID of the presentation. Can be used in update requests to * assert that the presentation revision hasn't changed since the last @@ -1499,16 +1502,16 @@ export namespace slides_v1 { * however, a changed ID can also be due to internal factors such as ID * format changes. */ - revisionId: string; + revisionId?: string; /** * The slides in the presentation. A slide inherits properties from a slide * layout. */ - slides: Schema$Page[]; + slides?: Schema$Page[]; /** * The title of the presentation. */ - title: string; + title?: string; } /** * Specifies a contiguous range of an indexed collection, such as characters @@ -1519,16 +1522,16 @@ export namespace slides_v1 { * The optional zero-based index of the end of the collection. Required for * `FIXED_RANGE` ranges. */ - endIndex: number; + endIndex?: number; /** * The optional zero-based index of the beginning of the collection. * Required for `FIXED_RANGE` and `FROM_START_INDEX` ranges. */ - startIndex: number; + startIndex?: number; /** * The type of range. */ - type: string; + type?: string; } /** * A recolor effect applied on an image. @@ -1539,14 +1542,14 @@ export namespace slides_v1 { * `recolor_stops` by matching the gradient against the colors in the * page's current color scheme. This property is read-only. */ - name: string; + name?: string; /** * The recolor effect is represented by a gradient, which is a list of color * stops. The colors in the gradient will replace the corresponding colors * at the same position in the color palette and apply to the image. This * property is read-only. */ - recolorStops: Schema$ColorStop[]; + recolorStops?: Schema$ColorStop[]; } /** * Refreshes an embedded Google Sheets chart by replacing it with the latest @@ -1558,7 +1561,7 @@ export namespace slides_v1 { /** * The object ID of the chart to refresh. */ - objectId: string; + objectId?: string; } /** * Replaces all shapes that match the given criteria with the provided image. @@ -1570,7 +1573,7 @@ export namespace slides_v1 { * If set, this request will replace all of the shapes that contain the * given text. */ - containsText: Schema$SubstringMatchCriteria; + containsText?: Schema$SubstringMatchCriteria; /** * The image replace method. If you specify both a `replace_method` and an * `image_replace_method`, the `image_replace_method` takes precedence. If @@ -1578,7 +1581,7 @@ export namespace slides_v1 { * value for `replace_method`, then the specified `replace_method` value is * used. If you do not specify either, then CENTER_INSIDE is used. */ - imageReplaceMethod: string; + imageReplaceMethod?: string; /** * The image URL. The image is fetched once at insertion time and a copy is * stored for display inside the presentation. Images must be less than 50MB @@ -1587,20 +1590,20 @@ export namespace slides_v1 { * itself is saved with the image, and exposed via the Image.source_url * field. */ - imageUrl: string; + imageUrl?: string; /** * If non-empty, limits the matches to page elements only on the given * pages. Returns a 400 bad request error if given the page object ID of a * notes page or a notes master, or if a page with that object ID * doesn't exist in the presentation. */ - pageObjectIds: string[]; + pageObjectIds?: string[]; /** * The replace method. Deprecated: use `image_replace_method` instead. If * you specify both a `replace_method` and an `image_replace_method`, the * `image_replace_method` takes precedence. */ - replaceMethod: string; + replaceMethod?: string; } /** * The result of replacing shapes with an image. @@ -1609,7 +1612,7 @@ export namespace slides_v1 { /** * The number of shapes replaced with images. */ - occurrencesChanged: number; + occurrencesChanged?: number; } /** * Replaces all shapes that match the given criteria with the provided Google @@ -1622,28 +1625,28 @@ export namespace slides_v1 { /** * The ID of the specific chart in the Google Sheets spreadsheet. */ - chartId: number; + chartId?: number; /** * The criteria that the shapes must match in order to be replaced. The * request will replace all of the shapes that contain the given text. */ - containsText: Schema$SubstringMatchCriteria; + containsText?: Schema$SubstringMatchCriteria; /** * The mode with which the chart is linked to the source spreadsheet. When * not specified, the chart will be an image that is not linked. */ - linkingMode: string; + linkingMode?: string; /** * If non-empty, limits the matches to page elements only on the given * pages. Returns a 400 bad request error if given the page object ID of a * notes page or a notes master, or if a page with that object ID * doesn't exist in the presentation. */ - pageObjectIds: string[]; + pageObjectIds?: string[]; /** * The ID of the Google Sheets spreadsheet that contains the chart. */ - spreadsheetId: string; + spreadsheetId?: string; } /** * The result of replacing shapes with a Google Sheets chart. @@ -1652,7 +1655,7 @@ export namespace slides_v1 { /** * The number of shapes replaced with charts. */ - occurrencesChanged: number; + occurrencesChanged?: number; } /** * Replaces all instances of text matching a criteria with replace text. @@ -1661,18 +1664,18 @@ export namespace slides_v1 { /** * Finds text in a shape matching this substring. */ - containsText: Schema$SubstringMatchCriteria; + containsText?: Schema$SubstringMatchCriteria; /** * If non-empty, limits the matches to page elements only on the given * pages. Returns a 400 bad request error if given the page object ID of a * notes master, or if a page with that object ID doesn't exist in the * presentation. */ - pageObjectIds: string[]; + pageObjectIds?: string[]; /** * The text that will replace the matched text. */ - replaceText: string; + replaceText?: string; } /** * The result of replacing text. @@ -1681,7 +1684,7 @@ export namespace slides_v1 { /** * The number of occurrences changed by replacing all text. */ - occurrencesChanged: number; + occurrencesChanged?: number; } /** * Replaces an existing image with a new image. Replacing an image removes @@ -1691,11 +1694,11 @@ export namespace slides_v1 { /** * The ID of the existing image that will be replaced. */ - imageObjectId: string; + imageObjectId?: string; /** * The replacement method. */ - imageReplaceMethod: string; + imageReplaceMethod?: string; /** * The URL of the new image. The image is fetched once at insertion time * and a copy is stored for display inside the presentation. Images must be @@ -1704,7 +1707,7 @@ export namespace slides_v1 { * length. The URL itself is saved with the image, and exposed via the * Image.source_url field. */ - url: string; + url?: string; } /** * A single kind of update to apply to a presentation. @@ -1713,164 +1716,164 @@ export namespace slides_v1 { /** * Creates an image. */ - createImage: Schema$CreateImageRequest; + createImage?: Schema$CreateImageRequest; /** * Creates a line. */ - createLine: Schema$CreateLineRequest; + createLine?: Schema$CreateLineRequest; /** * Creates bullets for paragraphs. */ - createParagraphBullets: Schema$CreateParagraphBulletsRequest; + createParagraphBullets?: Schema$CreateParagraphBulletsRequest; /** * Creates a new shape. */ - createShape: Schema$CreateShapeRequest; + createShape?: Schema$CreateShapeRequest; /** * Creates an embedded Google Sheets chart. */ - createSheetsChart: Schema$CreateSheetsChartRequest; + createSheetsChart?: Schema$CreateSheetsChartRequest; /** * Creates a new slide. */ - createSlide: Schema$CreateSlideRequest; + createSlide?: Schema$CreateSlideRequest; /** * Creates a new table. */ - createTable: Schema$CreateTableRequest; + createTable?: Schema$CreateTableRequest; /** * Creates a video. */ - createVideo: Schema$CreateVideoRequest; + createVideo?: Schema$CreateVideoRequest; /** * Deletes a page or page element from the presentation. */ - deleteObject: Schema$DeleteObjectRequest; + deleteObject?: Schema$DeleteObjectRequest; /** * Deletes bullets from paragraphs. */ - deleteParagraphBullets: Schema$DeleteParagraphBulletsRequest; + deleteParagraphBullets?: Schema$DeleteParagraphBulletsRequest; /** * Deletes a column from a table. */ - deleteTableColumn: Schema$DeleteTableColumnRequest; + deleteTableColumn?: Schema$DeleteTableColumnRequest; /** * Deletes a row from a table. */ - deleteTableRow: Schema$DeleteTableRowRequest; + deleteTableRow?: Schema$DeleteTableRowRequest; /** * Deletes text from a shape or a table cell. */ - deleteText: Schema$DeleteTextRequest; + deleteText?: Schema$DeleteTextRequest; /** * Duplicates a slide or page element. */ - duplicateObject: Schema$DuplicateObjectRequest; + duplicateObject?: Schema$DuplicateObjectRequest; /** * Groups objects, such as page elements. */ - groupObjects: Schema$GroupObjectsRequest; + groupObjects?: Schema$GroupObjectsRequest; /** * Inserts columns into a table. */ - insertTableColumns: Schema$InsertTableColumnsRequest; + insertTableColumns?: Schema$InsertTableColumnsRequest; /** * Inserts rows into a table. */ - insertTableRows: Schema$InsertTableRowsRequest; + insertTableRows?: Schema$InsertTableRowsRequest; /** * Inserts text into a shape or table cell. */ - insertText: Schema$InsertTextRequest; + insertText?: Schema$InsertTextRequest; /** * Merges cells in a Table. */ - mergeTableCells: Schema$MergeTableCellsRequest; + mergeTableCells?: Schema$MergeTableCellsRequest; /** * Refreshes a Google Sheets chart. */ - refreshSheetsChart: Schema$RefreshSheetsChartRequest; + refreshSheetsChart?: Schema$RefreshSheetsChartRequest; /** * Replaces all shapes matching some criteria with an image. */ - replaceAllShapesWithImage: Schema$ReplaceAllShapesWithImageRequest; + replaceAllShapesWithImage?: Schema$ReplaceAllShapesWithImageRequest; /** * Replaces all shapes matching some criteria with a Google Sheets chart. */ - replaceAllShapesWithSheetsChart: + replaceAllShapesWithSheetsChart?: Schema$ReplaceAllShapesWithSheetsChartRequest; /** * Replaces all instances of specified text. */ - replaceAllText: Schema$ReplaceAllTextRequest; + replaceAllText?: Schema$ReplaceAllTextRequest; /** * Replaces an existing image with a new image. */ - replaceImage: Schema$ReplaceImageRequest; + replaceImage?: Schema$ReplaceImageRequest; /** * Ungroups objects, such as groups. */ - ungroupObjects: Schema$UngroupObjectsRequest; + ungroupObjects?: Schema$UngroupObjectsRequest; /** * Unmerges cells in a Table. */ - unmergeTableCells: Schema$UnmergeTableCellsRequest; + unmergeTableCells?: Schema$UnmergeTableCellsRequest; /** * Updates the properties of an Image. */ - updateImageProperties: Schema$UpdateImagePropertiesRequest; + updateImageProperties?: Schema$UpdateImagePropertiesRequest; /** * Updates the properties of a Line. */ - updateLineProperties: Schema$UpdateLinePropertiesRequest; + updateLineProperties?: Schema$UpdateLinePropertiesRequest; /** * Updates the alt text title and/or description of a page element. */ - updatePageElementAltText: Schema$UpdatePageElementAltTextRequest; + updatePageElementAltText?: Schema$UpdatePageElementAltTextRequest; /** * Updates the transform of a page element. */ - updatePageElementTransform: Schema$UpdatePageElementTransformRequest; + updatePageElementTransform?: Schema$UpdatePageElementTransformRequest; /** * Updates the properties of a Page. */ - updatePageProperties: Schema$UpdatePagePropertiesRequest; + updatePageProperties?: Schema$UpdatePagePropertiesRequest; /** * Updates the styling of paragraphs within a Shape or Table. */ - updateParagraphStyle: Schema$UpdateParagraphStyleRequest; + updateParagraphStyle?: Schema$UpdateParagraphStyleRequest; /** * Updates the properties of a Shape. */ - updateShapeProperties: Schema$UpdateShapePropertiesRequest; + updateShapeProperties?: Schema$UpdateShapePropertiesRequest; /** * Updates the position of a set of slides in the presentation. */ - updateSlidesPosition: Schema$UpdateSlidesPositionRequest; + updateSlidesPosition?: Schema$UpdateSlidesPositionRequest; /** * Updates the properties of the table borders in a Table. */ - updateTableBorderProperties: Schema$UpdateTableBorderPropertiesRequest; + updateTableBorderProperties?: Schema$UpdateTableBorderPropertiesRequest; /** * Updates the properties of a TableCell. */ - updateTableCellProperties: Schema$UpdateTableCellPropertiesRequest; + updateTableCellProperties?: Schema$UpdateTableCellPropertiesRequest; /** * Updates the properties of a Table column. */ - updateTableColumnProperties: Schema$UpdateTableColumnPropertiesRequest; + updateTableColumnProperties?: Schema$UpdateTableColumnPropertiesRequest; /** * Updates the properties of a Table row. */ - updateTableRowProperties: Schema$UpdateTableRowPropertiesRequest; + updateTableRowProperties?: Schema$UpdateTableRowPropertiesRequest; /** * Updates the styling of text within a Shape or Table. */ - updateTextStyle: Schema$UpdateTextStyleRequest; + updateTextStyle?: Schema$UpdateTextStyleRequest; /** * Updates the properties of a Video. */ - updateVideoProperties: Schema$UpdateVideoPropertiesRequest; + updateVideoProperties?: Schema$UpdateVideoPropertiesRequest; } /** * A single response from an update. @@ -1879,53 +1882,53 @@ export namespace slides_v1 { /** * The result of creating an image. */ - createImage: Schema$CreateImageResponse; + createImage?: Schema$CreateImageResponse; /** * The result of creating a line. */ - createLine: Schema$CreateLineResponse; + createLine?: Schema$CreateLineResponse; /** * The result of creating a shape. */ - createShape: Schema$CreateShapeResponse; + createShape?: Schema$CreateShapeResponse; /** * The result of creating a Google Sheets chart. */ - createSheetsChart: Schema$CreateSheetsChartResponse; + createSheetsChart?: Schema$CreateSheetsChartResponse; /** * The result of creating a slide. */ - createSlide: Schema$CreateSlideResponse; + createSlide?: Schema$CreateSlideResponse; /** * The result of creating a table. */ - createTable: Schema$CreateTableResponse; + createTable?: Schema$CreateTableResponse; /** * The result of creating a video. */ - createVideo: Schema$CreateVideoResponse; + createVideo?: Schema$CreateVideoResponse; /** * The result of duplicating an object. */ - duplicateObject: Schema$DuplicateObjectResponse; + duplicateObject?: Schema$DuplicateObjectResponse; /** * The result of grouping objects. */ - groupObjects: Schema$GroupObjectsResponse; + groupObjects?: Schema$GroupObjectsResponse; /** * The result of replacing all shapes matching some criteria with an image. */ - replaceAllShapesWithImage: Schema$ReplaceAllShapesWithImageResponse; + replaceAllShapesWithImage?: Schema$ReplaceAllShapesWithImageResponse; /** * The result of replacing all shapes matching some criteria with a Google * Sheets chart. */ - replaceAllShapesWithSheetsChart: + replaceAllShapesWithSheetsChart?: Schema$ReplaceAllShapesWithSheetsChartResponse; /** * The result of replacing text. */ - replaceAllText: Schema$ReplaceAllTextResponse; + replaceAllText?: Schema$ReplaceAllTextResponse; } /** * An RGB color. @@ -1934,15 +1937,15 @@ export namespace slides_v1 { /** * The blue component of the color, from 0.0 to 1.0. */ - blue: number; + blue?: number; /** * The green component of the color, from 0.0 to 1.0. */ - green: number; + green?: number; /** * The red component of the color, from 0.0 to 1.0. */ - red: number; + red?: number; } /** * The shadow properties of a page element. If these fields are unset, they @@ -1955,20 +1958,20 @@ export namespace slides_v1 { * The alignment point of the shadow, that sets the origin for translate, * scale and skew of the shadow. */ - alignment: string; + alignment?: string; /** * The alpha of the shadow's color, from 0.0 to 1.0. */ - alpha: number; + alpha?: number; /** * The radius of the shadow blur. The larger the radius, the more diffuse * the shadow becomes. */ - blurRadius: Schema$Dimension; + blurRadius?: Schema$Dimension; /** * The shadow color value. */ - color: Schema$OpaqueColor; + color?: Schema$OpaqueColor; /** * The shadow property state. Updating the shadow on a page element will * implicitly update this field to `RENDERED`, unless another value is @@ -1976,20 +1979,20 @@ export namespace slides_v1 { * this field to `NOT_RENDERED`. In this case, any other shadow fields set * in the same request will be ignored. */ - propertyState: string; + propertyState?: string; /** * Whether the shadow should rotate with the shape. */ - rotateWithShape: boolean; + rotateWithShape?: boolean; /** * Transform that encodes the translate, scale, and skew of the shadow, * relative to the alignment position. */ - transform: Schema$AffineTransform; + transform?: Schema$AffineTransform; /** * The type of the shadow. */ - type: string; + type?: string; } /** * A PageElement kind representing a generic shape that does not have a more @@ -2002,19 +2005,19 @@ export namespace slides_v1 { * inherited properties can be resolved by looking at the parent placeholder * identified by the Placeholder.parent_object_id field. */ - placeholder: Schema$Placeholder; + placeholder?: Schema$Placeholder; /** * The properties of the shape. */ - shapeProperties: Schema$ShapeProperties; + shapeProperties?: Schema$ShapeProperties; /** * The type of the shape. */ - shapeType: string; + shapeType?: string; /** * The text content of the shape. */ - text: Schema$TextContent; + text?: Schema$TextContent; } /** * The shape background fill. @@ -2027,11 +2030,11 @@ export namespace slides_v1 { * to `NOT_RENDERED`. In this case, any other fill fields set in the same * request will be ignored. */ - propertyState: string; + propertyState?: string; /** * Solid color fill. */ - solidFill: Schema$SolidFill; + solidFill?: Schema$SolidFill; } /** * The properties of a Shape. If the shape is a placeholder shape as @@ -2046,33 +2049,33 @@ export namespace slides_v1 { * parent, the default alignment matches the alignment for new shapes * created in the Slides editor. */ - contentAlignment: string; + contentAlignment?: string; /** * The hyperlink destination of the shape. If unset, there is no link. Links * are not inherited from parent placeholders. */ - link: Schema$Link; + link?: Schema$Link; /** * The outline of the shape. If unset, the outline is inherited from a * parent placeholder if it exists. If the shape has no parent, then the * default outline depends on the shape type, matching the defaults for new * shapes created in the Slides editor. */ - outline: Schema$Outline; + outline?: Schema$Outline; /** * The shadow properties of the shape. If unset, the shadow is inherited * from a parent placeholder if it exists. If the shape has no parent, then * the default shadow matches the defaults for new shapes created in the * Slides editor. This property is read-only. */ - shadow: Schema$Shadow; + shadow?: Schema$Shadow; /** * The background fill of the shape. If unset, the background fill is * inherited from a parent placeholder if it exists. If the shape has no * parent, then the default background fill depends on the shape type, * matching the defaults for new shapes created in the Slides editor. */ - shapeBackgroundFill: Schema$ShapeBackgroundFill; + shapeBackgroundFill?: Schema$ShapeBackgroundFill; } /** * A PageElement kind representing a linked chart embedded from Google Sheets. @@ -2082,7 +2085,7 @@ export namespace slides_v1 { * The ID of the specific chart in the Google Sheets spreadsheet that is * embedded. */ - chartId: number; + chartId?: number; /** * The URL of an image of the embedded chart, with a default lifetime of 30 * minutes. This URL is tagged with the account of the requester. Anyone @@ -2090,15 +2093,15 @@ export namespace slides_v1 { * Access to the image may be lost if the presentation's sharing * settings change. */ - contentUrl: string; + contentUrl?: string; /** * The properties of the Sheets chart. */ - sheetsChartProperties: Schema$SheetsChartProperties; + sheetsChartProperties?: Schema$SheetsChartProperties; /** * The ID of the Google Sheets spreadsheet that contains the source chart. */ - spreadsheetId: string; + spreadsheetId?: string; } /** * The properties of the SheetsChart. @@ -2107,7 +2110,7 @@ export namespace slides_v1 { /** * The properties of the embedded chart image. */ - chartImageProperties: Schema$ImageProperties; + chartImageProperties?: Schema$ImageProperties; } /** * A width and height. @@ -2116,11 +2119,11 @@ export namespace slides_v1 { /** * The height of the object. */ - height: Schema$Dimension; + height?: Schema$Dimension; /** * The width of the object. */ - width: Schema$Dimension; + width?: Schema$Dimension; } /** * The properties of Page that are only relevant for pages with page_type @@ -2130,11 +2133,11 @@ export namespace slides_v1 { /** * The object ID of the layout that this slide is based on. */ - layoutObjectId: string; + layoutObjectId?: string; /** * The object ID of the master that this slide is based on. */ - masterObjectId: string; + masterObjectId?: string; /** * The notes page that this slide is associated with. It defines the visual * appearance of a notes page when printing or exporting slides with speaker @@ -2144,7 +2147,7 @@ export namespace slides_v1 { * speakerNotesObjectId field. The notes page is read-only except for the * text content and styles of the speaker notes shape. */ - notesPage: Schema$Page; + notesPage?: Schema$Page; } /** * A solid color fill. The page or page element is filled entirely with the @@ -2159,11 +2162,11 @@ export namespace slides_v1 { * value of 1.0 corresponds to a solid color, whereas a value of 0.0 * corresponds to a completely transparent color. */ - alpha: number; + alpha?: number; /** * The color value of the solid fill. */ - color: Schema$OpaqueColor; + color?: Schema$OpaqueColor; } /** * The stretched picture fill. The page or page element is filled entirely @@ -2181,11 +2184,11 @@ export namespace slides_v1 { * megapixels, and must be in one of PNG, JPEG, or GIF format. The provided * URL can be at most 2 kB in length. */ - contentUrl: string; + contentUrl?: string; /** * The original size of the picture fill. This field is read-only. */ - size: Schema$Size; + size?: Schema$Size; } /** * A criteria that matches a specific string of text in a shape or table. @@ -2195,11 +2198,11 @@ export namespace slides_v1 { * Indicates whether the search should respect case: - `True`: the search * is case sensitive. - `False`: the search is case insensitive. */ - matchCase: boolean; + matchCase?: boolean; /** * The text to search for in the shape or table. */ - text: string; + text?: string; } /** * A PageElement kind representing a table. @@ -2208,7 +2211,7 @@ export namespace slides_v1 { /** * Number of columns in the table. */ - columns: number; + columns?: number; /** * Properties of horizontal cell borders. A table's horizontal cell * borders are represented as a grid. The grid has one more row than the @@ -2216,20 +2219,20 @@ export namespace slides_v1 { * For example, if the table is 3 x 3, its horizontal borders will be * represented as a grid with 4 rows and 3 columns. */ - horizontalBorderRows: Schema$TableBorderRow[]; + horizontalBorderRows?: Schema$TableBorderRow[]; /** * Number of rows in the table. */ - rows: number; + rows?: number; /** * Properties of each column. */ - tableColumns: Schema$TableColumnProperties[]; + tableColumns?: Schema$TableColumnProperties[]; /** * Properties and contents of each row. Cells that span multiple rows are * contained in only one of these rows and have a row_span greater than 1. */ - tableRows: Schema$TableRow[]; + tableRows?: Schema$TableRow[]; /** * Properties of vertical cell borders. A table's vertical cell borders * are represented as a grid. The grid has the same number of rows as the @@ -2237,7 +2240,7 @@ export namespace slides_v1 { * example, if the table is 3 x 3, its vertical borders will be represented * as a grid with 3 rows and 4 columns. */ - verticalBorderRows: Schema$TableBorderRow[]; + verticalBorderRows?: Schema$TableBorderRow[]; } /** * The properties of each border cell. @@ -2246,11 +2249,11 @@ export namespace slides_v1 { /** * The location of the border within the border table. */ - location: Schema$TableCellLocation; + location?: Schema$TableCellLocation; /** * The border properties. */ - tableBorderProperties: Schema$TableBorderProperties; + tableBorderProperties?: Schema$TableBorderProperties; } /** * The fill of the border. @@ -2259,7 +2262,7 @@ export namespace slides_v1 { /** * Solid fill. */ - solidFill: Schema$SolidFill; + solidFill?: Schema$SolidFill; } /** * The border styling properties of the TableBorderCell. @@ -2268,15 +2271,15 @@ export namespace slides_v1 { /** * The dash style of the border. */ - dashStyle: string; + dashStyle?: string; /** * The fill of the table border. */ - tableBorderFill: Schema$TableBorderFill; + tableBorderFill?: Schema$TableBorderFill; /** * The thickness of the border. */ - weight: Schema$Dimension; + weight?: Schema$Dimension; } /** * Contents of each border row in a table. @@ -2286,7 +2289,7 @@ export namespace slides_v1 { * Properties of each border cell. When a border's adjacent table cells * are merged, it is not included in the response. */ - tableBorderCells: Schema$TableBorderCell[]; + tableBorderCells?: Schema$TableBorderCell[]; } /** * Properties and contents of each table cell. @@ -2295,23 +2298,23 @@ export namespace slides_v1 { /** * Column span of the cell. */ - columnSpan: number; + columnSpan?: number; /** * The location of the cell within the table. */ - location: Schema$TableCellLocation; + location?: Schema$TableCellLocation; /** * Row span of the cell. */ - rowSpan: number; + rowSpan?: number; /** * The properties of the table cell. */ - tableCellProperties: Schema$TableCellProperties; + tableCellProperties?: Schema$TableCellProperties; /** * The text content of the cell. */ - text: Schema$TextContent; + text?: Schema$TextContent; } /** * The table cell background fill. @@ -2324,11 +2327,11 @@ export namespace slides_v1 { * field to `NOT_RENDERED`. In this case, any other fill fields set in the * same request will be ignored. */ - propertyState: string; + propertyState?: string; /** * Solid color fill. */ - solidFill: Schema$SolidFill; + solidFill?: Schema$SolidFill; } /** * A location of a single table cell within a table. @@ -2337,11 +2340,11 @@ export namespace slides_v1 { /** * The 0-based column index. */ - columnIndex: number; + columnIndex?: number; /** * The 0-based row index. */ - rowIndex: number; + rowIndex?: number; } /** * The properties of the TableCell. @@ -2351,12 +2354,12 @@ export namespace slides_v1 { * The alignment of the content in the table cell. The default alignment * matches the alignment for newly created table cells in the Slides editor. */ - contentAlignment: string; + contentAlignment?: string; /** * The background fill of the table cell. The default fill matches the fill * for newly created table cells in the Slides editor. */ - tableCellBackgroundFill: Schema$TableCellBackgroundFill; + tableCellBackgroundFill?: Schema$TableCellBackgroundFill; } /** * Properties of each column in a table. @@ -2365,7 +2368,7 @@ export namespace slides_v1 { /** * Width of a column. */ - columnWidth: Schema$Dimension; + columnWidth?: Schema$Dimension; } /** * A table range represents a reference to a subset of a table. It's @@ -2380,15 +2383,15 @@ export namespace slides_v1 { /** * The column span of the table range. */ - columnSpan: number; + columnSpan?: number; /** * The starting location of the table range. */ - location: Schema$TableCellLocation; + location?: Schema$TableCellLocation; /** * The row span of the table range. */ - rowSpan: number; + rowSpan?: number; } /** * Properties and contents of each row in a table. @@ -2397,18 +2400,18 @@ export namespace slides_v1 { /** * Height of a row. */ - rowHeight: Schema$Dimension; + rowHeight?: Schema$Dimension; /** * Properties and contents of each cell. Cells that span multiple columns * are represented only once with a column_span greater than 1. As a result, * the length of this collection does not always match the number of columns * of the entire table. */ - tableCells: Schema$TableCell[]; + tableCells?: Schema$TableCell[]; /** * Properties of the row. */ - tableRowProperties: Schema$TableRowProperties; + tableRowProperties?: Schema$TableRowProperties; } /** * Properties of each row in a table. @@ -2419,7 +2422,7 @@ export namespace slides_v1 { * at a height equal to or greater than this value in order to show all the * text in the row's cell(s). */ - minRowHeight: Schema$Dimension; + minRowHeight?: Schema$Dimension; } /** * The general text content. The text must reside in a compatible shape (e.g. @@ -2429,12 +2432,12 @@ export namespace slides_v1 { /** * The bulleted lists contained in this text, keyed by list ID. */ - lists: any; + lists?: any; /** * The text contents broken down into its component parts, including styling * information. This property is read-only. */ - textElements: Schema$TextElement[]; + textElements?: Schema$TextElement[]; } /** * A TextElement describes the content of a range of indices in the text @@ -2445,12 +2448,12 @@ export namespace slides_v1 { * A TextElement representing a spot in the text that is dynamically * replaced with content that can change over time. */ - autoText: Schema$AutoText; + autoText?: Schema$AutoText; /** * The zero-based end index of this text element, exclusive, in Unicode code * units. */ - endIndex: number; + endIndex?: number; /** * A marker representing the beginning of a new paragraph. The * `start_index` and `end_index` of this TextElement represent the range of @@ -2458,11 +2461,11 @@ export namespace slides_v1 { * this paragraph's range are considered to be part of this paragraph. * The range of indices of two separate paragraphs will never overlap. */ - paragraphMarker: Schema$ParagraphMarker; + paragraphMarker?: Schema$ParagraphMarker; /** * The zero-based start index of this text element, in Unicode code units. */ - startIndex: number; + startIndex?: number; /** * A TextElement representing a run of text where all of the characters in * the run have the same TextStyle. The `start_index` and `end_index` of @@ -2470,7 +2473,7 @@ export namespace slides_v1 { * `paragraph_marker` TextElement. In other words, a TextRun will never span * multiple paragraphs. */ - textRun: Schema$TextRun; + textRun?: Schema$TextRun; } /** * A TextElement kind that represents a run of text that all has the same @@ -2480,11 +2483,11 @@ export namespace slides_v1 { /** * The text of this run. */ - content: string; + content?: string; /** * The styling applied to this run. */ - style: Schema$TextStyle; + style?: Schema$TextStyle; } /** * Represents the styling that can be applied to a TextRun. If this text is @@ -2506,18 +2509,18 @@ export namespace slides_v1 { * The background color of the text. If set, the color is either opaque or * transparent, depending on if the `opaque_color` field in it is set. */ - backgroundColor: Schema$OptionalColor; + backgroundColor?: Schema$OptionalColor; /** * The text's vertical offset from its normal position. Text with * `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically rendered * in a smaller font size, computed based on the `font_size` field. The * `font_size` itself is not affected by changes in this field. */ - baselineOffset: string; + baselineOffset?: string; /** * Whether or not the text is rendered as bold. */ - bold: boolean; + bold?: boolean; /** * The font family of the text. The font family can be any font from the * Font menu in Slides or from [Google Fonts] (https://fonts.google.com/). @@ -2526,21 +2529,21 @@ export namespace slides_v1 { * values for both `font_family` and `bold`, the explicitly-set `bold` value * is used. */ - fontFamily: string; + fontFamily?: string; /** * The size of the text's font. When read, the `font_size` will * specified in points. */ - fontSize: Schema$Dimension; + fontSize?: Schema$Dimension; /** * The color of the text itself. If set, the color is either opaque or * transparent, depending on if the `opaque_color` field in it is set. */ - foregroundColor: Schema$OptionalColor; + foregroundColor?: Schema$OptionalColor; /** * Whether or not the text is italicized. */ - italic: boolean; + italic?: boolean; /** * The hyperlink destination of the text. If unset, there is no link. Links * are not inherited from parent text. Changing the link in an update @@ -2559,19 +2562,19 @@ export namespace slides_v1 { * preceding text (or the default text styles if the preceding text is * another link) unless different styles are being set in the same request. */ - link: Schema$Link; + link?: Schema$Link; /** * Whether or not the text is in small capital letters. */ - smallCaps: boolean; + smallCaps?: boolean; /** * Whether or not the text is struck through. */ - strikethrough: boolean; + strikethrough?: boolean; /** * Whether or not the text is underlined. */ - underline: boolean; + underline?: boolean; /** * The font family and rendered weight of the text. This field is an * extension of `font_family` meant to support explicit font weights without @@ -2596,7 +2599,7 @@ export namespace slides_v1 { * `weighted_font_family#font_family` must also be set with a non-empty * value. Otherwise, a 400 bad request error is returned. */ - weightedFontFamily: Schema$WeightedFontFamily; + weightedFontFamily?: Schema$WeightedFontFamily; } /** * A pair mapping a theme color type to the concrete color it represents. @@ -2605,11 +2608,11 @@ export namespace slides_v1 { /** * The concrete color corresponding to the theme color type above. */ - color: Schema$RgbColor; + color?: Schema$RgbColor; /** * The type of the theme color. */ - type: string; + type?: string; } /** * The thumbnail of a page. @@ -2624,15 +2627,15 @@ export namespace slides_v1 { * thumbnail image is the same as specified in the * `GetPageThumbnailRequest`. */ - contentUrl: string; + contentUrl?: string; /** * The positive height in pixels of the thumbnail image. */ - height: number; + height?: number; /** * The positive width in pixels of the thumbnail image. */ - width: number; + width?: number; } /** * Ungroups objects, such as groups. @@ -2644,7 +2647,7 @@ export namespace slides_v1 { * same page. The group itself is deleted. The visual sizes and positions of * all the children are preserved. */ - objectIds: string[]; + objectIds?: string[]; } /** * Unmerges cells in a Table. @@ -2653,7 +2656,7 @@ export namespace slides_v1 { /** * The object ID of the table. */ - objectId: string; + objectId?: string; /** * The table range specifying which cells of the table to unmerge. All * merged cells in this range will be unmerged, and cells that are already @@ -2662,7 +2665,7 @@ export namespace slides_v1 { * text will remain in the upper-left ("head") cell of the * resulting block of unmerged cells. */ - tableRange: Schema$TableRange; + tableRange?: Schema$TableRange; } /** * Update the properties of an Image. @@ -2677,15 +2680,15 @@ export namespace slides_v1 { * to its default value, include its field name in the field mask but leave * the field itself unset. */ - fields: string; + fields?: string; /** * The image properties to update. */ - imageProperties: Schema$ImageProperties; + imageProperties?: Schema$ImageProperties; /** * The object ID of the image the updates are applied to. */ - objectId: string; + objectId?: string; } /** * Updates the properties of a Line. @@ -2700,15 +2703,15 @@ export namespace slides_v1 { * default value, include its field name in the field mask but leave the * field itself unset. */ - fields: string; + fields?: string; /** * The line properties to update. */ - lineProperties: Schema$LineProperties; + lineProperties?: Schema$LineProperties; /** * The object ID of the line the update is applied to. */ - objectId: string; + objectId?: string; } /** * Updates the alt text title and/or description of a page element. @@ -2720,18 +2723,18 @@ export namespace slides_v1 { * readers and other accessibility interfaces. Only use human readable * values related to the content of the page element. */ - description: string; + description?: string; /** * The object ID of the page element the updates are applied to. */ - objectId: string; + objectId?: string; /** * The updated alt text title of the page element. If unset the existing * value will be maintained. The title is exposed to screen readers and * other accessibility interfaces. Only use human readable values related to * the content of the page element. */ - title: string; + title?: string; } /** * Updates the transform of a page element. Updating the transform of a group @@ -2743,15 +2746,15 @@ export namespace slides_v1 { /** * The apply mode of the transform update. */ - applyMode: string; + applyMode?: string; /** * The object ID of the page element to update. */ - objectId: string; + objectId?: string; /** * The input transform matrix used to update the page element. */ - transform: Schema$AffineTransform; + transform?: Schema$AffineTransform; } /** * Updates the properties of a Page. @@ -2766,15 +2769,15 @@ export namespace slides_v1 { * to its default value, include its field name in the field mask but leave * the field itself unset. */ - fields: string; + fields?: string; /** * The object ID of the page the update is applied to. */ - objectId: string; + objectId?: string; /** * The page properties to update. */ - pageProperties: Schema$PageProperties; + pageProperties?: Schema$PageProperties; } /** * Updates the styling for all of the paragraphs within a Shape or Table that @@ -2786,7 +2789,7 @@ export namespace slides_v1 { * style. If `object_id` refers to a table, `cell_location` must have a * value. Otherwise, it must not. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The fields that should be updated. At least one field must be specified. * The root `style` is implied and should not be specified. A single @@ -2796,19 +2799,19 @@ export namespace slides_v1 { * include its field name in the field mask but leave the field itself * unset. */ - fields: string; + fields?: string; /** * The object ID of the shape or table with the text to be styled. */ - objectId: string; + objectId?: string; /** * The paragraph's style. */ - style: Schema$ParagraphStyle; + style?: Schema$ParagraphStyle; /** * The range of text containing the paragraph(s) to style. */ - textRange: Schema$Range; + textRange?: Schema$Range; } /** * Update the properties of a Shape. @@ -2823,15 +2826,15 @@ export namespace slides_v1 { * property to its default value, include its field name in the field mask * but leave the field itself unset. */ - fields: string; + fields?: string; /** * The object ID of the shape the updates are applied to. */ - objectId: string; + objectId?: string; /** * The shape properties to update. */ - shapeProperties: Schema$ShapeProperties; + shapeProperties?: Schema$ShapeProperties; } /** * Updates the position of slides in the presentation. @@ -2842,13 +2845,13 @@ export namespace slides_v1 { * arrangement before the move takes place. Must be between zero and the * number of slides in the presentation, inclusive. */ - insertionIndex: number; + insertionIndex?: number; /** * The IDs of the slides in the presentation that should be moved. The * slides in this list must be in existing presentation order, without * duplicates. */ - slideObjectIds: string[]; + slideObjectIds?: string[]; } /** * Updates the properties of the table borders in a Table. @@ -2859,7 +2862,7 @@ export namespace slides_v1 { * border position is not specified, the updates will apply to all borders * in the table range. */ - borderPosition: string; + borderPosition?: string; /** * The fields that should be updated. At least one field must be specified. * The root `tableBorderProperties` is implied and should not be specified. @@ -2869,21 +2872,21 @@ export namespace slides_v1 { * property to its default value, include its field name in the field mask * but leave the field itself unset. */ - fields: string; + fields?: string; /** * The object ID of the table. */ - objectId: string; + objectId?: string; /** * The table border properties to update. */ - tableBorderProperties: Schema$TableBorderProperties; + tableBorderProperties?: Schema$TableBorderProperties; /** * The table range representing the subset of the table to which the updates * are applied. If a table range is not specified, the updates will apply to * the entire table. */ - tableRange: Schema$TableRange; + tableRange?: Schema$TableRange; } /** * Update the properties of a TableCell. @@ -2898,21 +2901,21 @@ export namespace slides_v1 { * reset a property to its default value, include its field name in the * field mask but leave the field itself unset. */ - fields: string; + fields?: string; /** * The object ID of the table. */ - objectId: string; + objectId?: string; /** * The table cell properties to update. */ - tableCellProperties: Schema$TableCellProperties; + tableCellProperties?: Schema$TableCellProperties; /** * The table range representing the subset of the table to which the updates * are applied. If a table range is not specified, the updates will apply to * the entire table. */ - tableRange: Schema$TableRange; + tableRange?: Schema$TableRange; } /** * Updates the properties of a Table column. @@ -2922,7 +2925,7 @@ export namespace slides_v1 { * The list of zero-based indices specifying which columns to update. If no * indices are provided, all columns in the table will be updated. */ - columnIndices: number[]; + columnIndices?: number[]; /** * The fields that should be updated. At least one field must be specified. * The root `tableColumnProperties` is implied and should not be specified. @@ -2932,17 +2935,17 @@ export namespace slides_v1 { * included in the field mask but the property is left unset, the column * width will default to 406,400 EMU (32 points). */ - fields: string; + fields?: string; /** * The object ID of the table. */ - objectId: string; + objectId?: string; /** * The table column properties to update. If the value of * `table_column_properties#column_width` in the request is less than * 406,400 EMU (32 points), a 400 bad request error is returned. */ - tableColumnProperties: Schema$TableColumnProperties; + tableColumnProperties?: Schema$TableColumnProperties; } /** * Updates the properties of a Table row. @@ -2957,20 +2960,20 @@ export namespace slides_v1 { * included in the field mask but the property is left unset, the minimum * row height will default to 0. */ - fields: string; + fields?: string; /** * The object ID of the table. */ - objectId: string; + objectId?: string; /** * The list of zero-based indices specifying which rows to update. If no * indices are provided, all rows in the table will be updated. */ - rowIndices: number[]; + rowIndices?: number[]; /** * The table row properties to update. */ - tableRowProperties: Schema$TableRowProperties; + tableRowProperties?: Schema$TableRowProperties; } /** * Update the styling of text in a Shape or Table. @@ -2981,7 +2984,7 @@ export namespace slides_v1 { * `object_id` refers to a table, `cell_location` must have a value. * Otherwise, it must not. */ - cellLocation: Schema$TableCellLocation; + cellLocation?: Schema$TableCellLocation; /** * The fields that should be updated. At least one field must be specified. * The root `style` is implied and should not be specified. A single @@ -2990,11 +2993,11 @@ export namespace slides_v1 { * `"bold"`. To reset a property to its default value, include * its field name in the field mask but leave the field itself unset. */ - fields: string; + fields?: string; /** * The object ID of the shape or table with the text to be styled. */ - objectId: string; + objectId?: string; /** * The style(s) to set on the text. If the value for a particular style * matches that of the parent, that style will be set to inherit. Certain @@ -3002,14 +3005,14 @@ export namespace slides_v1 { * of the Slides editor. See the documentation of TextStyle for more * information. */ - style: Schema$TextStyle; + style?: Schema$TextStyle; /** * The range of text to style. The range may be extended to include * adjacent newlines. If the range fully contains a paragraph belonging to * a list, the paragraph's bullet is also updated with the matching text * style. */ - textRange: Schema$Range; + textRange?: Schema$Range; } /** * Update the properties of a Video. @@ -3024,15 +3027,15 @@ export namespace slides_v1 { * to its default value, include its field name in the field mask but leave * the field itself unset. */ - fields: string; + fields?: string; /** * The object ID of the video the updates are applied to. */ - objectId: string; + objectId?: string; /** * The video properties to update. */ - videoProperties: Schema$VideoProperties; + videoProperties?: Schema$VideoProperties; } /** * A PageElement kind representing a video. @@ -3041,20 +3044,20 @@ export namespace slides_v1 { /** * The video source's unique identifier for this video. */ - id: string; + id?: string; /** * The video source. */ - source: string; + source?: string; /** * An URL to a video. The URL is valid as long as the source video exists * and sharing settings do not change. */ - url: string; + url?: string; /** * The properties of the video. */ - videoProperties: Schema$VideoProperties; + videoProperties?: Schema$VideoProperties; } /** * The properties of the Video. @@ -3064,23 +3067,23 @@ export namespace slides_v1 { * Whether to enable video autoplay when the page is displayed in present * mode. Defaults to false. */ - autoPlay: boolean; + autoPlay?: boolean; /** * The time at which to end playback, measured in seconds from the beginning * of the video. If set, the end time should be after the start time. If not * set or if you set this to a value that exceeds the video's length, * the video will be played until its end. */ - end: number; + end?: number; /** * Whether to mute the audio during video playback. Defaults to false. */ - mute: boolean; + mute?: boolean; /** * The outline of the video. The default outline matches the defaults for * new videos created in the Slides editor. */ - outline: Schema$Outline; + outline?: Schema$Outline; /** * The time at which to start playback, measured in seconds from the * beginning of the video. If set, the start time should be before the end @@ -3088,7 +3091,7 @@ export namespace slides_v1 { * seconds, the video will be played from the last second. If not set, the * video will be played from the beginning. */ - start: number; + start?: number; } /** * Represents a font family and weight used to style a TextRun. @@ -3099,7 +3102,7 @@ export namespace slides_v1 { * Font menu in Slides or from [Google Fonts] (https://fonts.google.com/). * If the font name is unrecognized, the text is rendered in `Arial`. */ - fontFamily: string; + fontFamily?: string; /** * The rendered weight of the text. This field can have any value that is a * multiple of `100` between `100` and `900`, inclusive. This range @@ -3110,7 +3113,7 @@ export namespace slides_v1 { * `700` are considered bold, and weights less than `700`are not bold. The * default value is `400` ("normal"). */ - weight: number; + weight?: number; } /** * A PageElement kind representing word art. @@ -3119,7 +3122,7 @@ export namespace slides_v1 { /** * The text rendered as word art. */ - renderedText: string; + renderedText?: string; } /** * Provides control over how write requests are executed. @@ -3131,9 +3134,10 @@ export namespace slides_v1 { * presentation's current `revision_id`, the request will not be * processed and will return a 400 bad request error. */ - requiredRevisionId: string; + requiredRevisionId?: string; } + export class Resource$Presentations { root: Slides; pages: Resource$Presentations$Pages; @@ -3174,30 +3178,46 @@ export namespace slides_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdate(params?: any, options?: MethodOptions): + batchUpdate( + params?: Params$Resource$Presentations$Batchupdate, + options?: MethodOptions): AxiosPromise; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Presentations$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + batchUpdate( + params: Params$Resource$Presentations$Batchupdate, + callback: BodyResponseCallback): + void; batchUpdate( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + batchUpdate( + paramsOrCallback?: Params$Resource$Presentations$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Presentations$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Presentations$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign( @@ -3237,26 +3257,39 @@ export namespace slides_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Presentations$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Presentations$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Presentations$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Presentations$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Presentations$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Presentations$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign( @@ -3291,24 +3324,35 @@ export namespace slides_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Presentations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Presentations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Presentations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Presentations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Presentations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Presentations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign( @@ -3330,6 +3374,45 @@ export namespace slides_v1 { } } } + + export interface Params$Resource$Presentations$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The presentation to apply the updates to. + */ + presentationId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchUpdatePresentationRequest; + } + export interface Params$Resource$Presentations$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Presentation; + } + export interface Params$Resource$Presentations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the presentation to retrieve. + */ + presentationId?: string; + } + export class Resource$Presentations$Pages { root: Slides; constructor(root: Slides) { @@ -3355,21 +3438,34 @@ export namespace slides_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Presentations$Pages$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Presentations$Pages$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Presentations$Pages$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Presentations$Pages$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Presentations$Pages$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Presentations$Pages$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign( @@ -3411,26 +3507,39 @@ export namespace slides_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getThumbnail(params?: any, options?: MethodOptions): - AxiosPromise; getThumbnail( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Presentations$Pages$Getthumbnail, + options?: MethodOptions): AxiosPromise; getThumbnail( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Presentations$Pages$Getthumbnail, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getThumbnail( + params: Params$Resource$Presentations$Pages$Getthumbnail, + callback: BodyResponseCallback): void; + getThumbnail(callback: BodyResponseCallback): void; + getThumbnail( + paramsOrCallback?: Params$Resource$Presentations$Pages$Getthumbnail| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Presentations$Pages$Getthumbnail; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Presentations$Pages$Getthumbnail; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; const parameters = { options: Object.assign( @@ -3454,4 +3563,45 @@ export namespace slides_v1 { } } } + + export interface Params$Resource$Presentations$Pages$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The object ID of the page to retrieve. + */ + pageObjectId?: string; + /** + * The ID of the presentation to retrieve. + */ + presentationId?: string; + } + export interface Params$Resource$Presentations$Pages$Getthumbnail { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The object ID of the page whose thumbnail to retrieve. + */ + pageObjectId?: string; + /** + * The ID of the presentation to retrieve. + */ + presentationId?: string; + /** + * The optional mime type of the thumbnail image. If you don't specify the + * mime type, the default mime type will be PNG. + */ + 'thumbnailProperties.mimeType'?: string; + /** + * The optional thumbnail image size. If you don't specify the size, the + * server chooses a default size of the image. + */ + 'thumbnailProperties.thumbnailSize'?: string; + } } diff --git a/src/apis/sourcerepo/v1.ts b/src/apis/sourcerepo/v1.ts index f2155ea8b1f..d900c85d8bb 100644 --- a/src/apis/sourcerepo/v1.ts +++ b/src/apis/sourcerepo/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace sourcerepo_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Source Repositories API * @@ -92,13 +95,13 @@ export namespace sourcerepo_v1 { /** * The configuration for logging of each type of permission. Next ID: 4 */ - auditLogConfigs: Schema$AuditLogConfig[]; + auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, * `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a * special value that covers all services. */ - service: string; + service?: string; } /** * Provides the configuration for logging a type of permissions. Example: { @@ -114,11 +117,11 @@ export namespace sourcerepo_v1 { * Specifies the identities that do not cause logging for this type of * permission. Follows the same format of Binding.members. */ - exemptedMembers: string[]; + exemptedMembers?: string[]; /** * The log type that this config enables. */ - logType: string; + logType?: string; } /** * Associates `members` with a `role`. @@ -140,12 +143,12 @@ export namespace sourcerepo_v1 { * that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -164,11 +167,11 @@ export namespace sourcerepo_v1 { * be retrieved by including this value in the next ListReposRequest's * page_token field. */ - nextPageToken: string; + nextPageToken?: string; /** * The listed repos. */ - repos: Schema$Repo[]; + repos?: Schema$Repo[]; } /** * Configuration to automatically mirror a repository from another hosting @@ -180,18 +183,18 @@ export namespace sourcerepo_v1 { * from the other service would deauthorize Google Cloud Source Repositories * from mirroring. */ - deployKeyId: string; + deployKeyId?: string; /** * URL of the main repository at the other hosting service. */ - url: string; + url?: string; /** * ID of the webhook listening to updates to trigger mirroring. Removing * this webhook from the other hosting service will stop Google Cloud Source * Repositories from receiving notifications, and thereby disabling * mirroring. */ - webhookId: string; + webhookId?: string; } /** * Defines an Identity and Access Management (IAM) policy. It is used to @@ -213,12 +216,12 @@ export namespace sourcerepo_v1 { /** * Specifies cloud audit logging configuration for this policy. */ - auditConfigs: Schema$AuditConfig[]; + auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -230,11 +233,11 @@ export namespace sourcerepo_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * A repository (or repo) is a Git repository storing versioned source @@ -245,23 +248,23 @@ export namespace sourcerepo_v1 { * How this repository mirrors a repository managed by another service. * Read-only field. */ - mirrorConfig: Schema$MirrorConfig; + mirrorConfig?: Schema$MirrorConfig; /** * Resource name of the repository, of the form * `projects/<project>/repos/<repo>`. The repo name may contain * slashes. eg, `projects/myproject/repos/name/with/slash` */ - name: string; + name?: string; /** * The disk usage of the repo, in bytes. Read-only field. Size is only * returned by GetRepo. */ - size: string; + size?: string; /** * URL to clone the repository from Google Cloud Source Repositories. * Read-only field. */ - url: string; + url?: string; } /** * Request message for `SetIamPolicy` method. @@ -273,14 +276,14 @@ export namespace sourcerepo_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. * Only the fields in the mask will be modified. If no mask is provided, the * following default mask is used: paths: "bindings, etag" This * field is only used by Cloud IAM. */ - updateMask: string; + updateMask?: string; } /** * Request message for `TestIamPermissions` method. @@ -292,7 +295,7 @@ export namespace sourcerepo_v1 { * For more information see [IAM * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -302,9 +305,10 @@ export namespace sourcerepo_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } + export class Resource$Projects { root: Sourcerepo; repos: Resource$Projects$Repos; @@ -318,6 +322,8 @@ export namespace sourcerepo_v1 { return this.root; } } + + export class Resource$Projects$Repos { root: Sourcerepo; constructor(root: Sourcerepo) { @@ -344,23 +350,38 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Repos$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Repos$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Repos$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Repos$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Repos$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -395,25 +416,38 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Repos$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Repos$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Repos$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Repos$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Repos$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -447,21 +481,34 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Repos$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Repos$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Repos$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Repos$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Repos$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -496,26 +543,38 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Repos$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Repos$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Repos$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Repos$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Repos$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -553,26 +612,38 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Projects$Repos$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Projects$Repos$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Repos$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Repos$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Repos$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -609,26 +680,38 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Repos$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Repos$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Repos$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Repos$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Repos$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -666,29 +749,45 @@ export namespace sourcerepo_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Repos$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Repos$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Repos$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Projects$Repos$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Repos$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Repos$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; const parameters = { options: Object.assign( @@ -711,4 +810,112 @@ export namespace sourcerepo_v1 { } } } + + export interface Params$Resource$Projects$Repos$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project in which to create the repo. Values are of the form + * `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Repo; + } + export interface Params$Resource$Projects$Repos$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the repo to delete. Values are of the form + * `projects//repos/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Repos$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the requested repository. Values are of the form + * `projects//repos/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Repos$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + } + export interface Params$Resource$Projects$Repos$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The project ID whose repos should be listed. Values are of the form + * `projects/`. + */ + name?: string; + /** + * Maximum number of repositories to return; between 1 and 500. If not set + * or zero, defaults to 100 at the server. + */ + pageSize?: number; + /** + * Resume listing repositories where a prior ListReposResponse left off. + * This is an opaque token that must be obtained from a recent, prior + * ListReposResponse's next_page_token field. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Repos$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Repos$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } } diff --git a/src/apis/spanner/v1.ts b/src/apis/spanner/v1.ts index 962cda41610..b9f3e861d51 100644 --- a/src/apis/spanner/v1.ts +++ b/src/apis/spanner/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace spanner_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Spanner API * @@ -73,7 +76,7 @@ export namespace spanner_v1 { /** * Required. Options for the new transaction. */ - options: Schema$TransactionOptions; + options?: Schema$TransactionOptions; } /** * Associates `members` with a `role`. @@ -95,12 +98,12 @@ export namespace spanner_v1 { * that represents all the users of that domain. For example, * `google.com` or `example.com`. */ - members: string[]; + members?: string[]; /** * Role that is assigned to `members`. For example, `roles/viewer`, * `roles/editor`, or `roles/owner`. Required */ - role: string; + role?: string; } /** * Metadata associated with a parent-child relationship appearing in a @@ -110,14 +113,14 @@ export namespace spanner_v1 { /** * The node to which the link points. */ - childIndex: number; + childIndex?: number; /** * The type of the link. For example, in Hash Joins this could be used to * distinguish between the build child and the probe child, or in the case * of the child being an output variable, to represent the tag associated * with the output variable. */ - type: string; + type?: string; /** * Only present if the child node is SCALAR and corresponds to an output * variable of the parent node. The field carries the name of the output @@ -127,7 +130,7 @@ export namespace spanner_v1 { * corresponding `variable` fields will be set to the variable names * assigned to the columns. */ - variable: string; + variable?: string; } /** * The request for Commit. @@ -137,7 +140,7 @@ export namespace spanner_v1 { * The mutations to be executed when this transaction commits. All mutations * are applied atomically, in the order they appear in this list. */ - mutations: Schema$Mutation[]; + mutations?: Schema$Mutation[]; /** * Execute mutations in a temporary transaction. Note that unlike commit of * a previously-started transaction, commit with a temporary transaction is @@ -147,11 +150,11 @@ export namespace spanner_v1 { * more than once. If this is undesirable, use BeginTransaction and Commit * instead. */ - singleUseTransaction: Schema$TransactionOptions; + singleUseTransaction?: Schema$TransactionOptions; /** * Commit a previously-started transaction. */ - transactionId: string; + transactionId?: string; } /** * The response for Commit. @@ -160,7 +163,7 @@ export namespace spanner_v1 { /** * The Cloud Spanner timestamp at which the transaction committed. */ - commitTimestamp: string; + commitTimestamp?: string; } /** * Metadata type for the operation returned by CreateDatabase. @@ -169,7 +172,7 @@ export namespace spanner_v1 { /** * The database being created. */ - database: string; + database?: string; } /** * The request for CreateDatabase. @@ -182,14 +185,14 @@ export namespace spanner_v1 { * database ID is a reserved word or if it contains a hyphen, the database * ID must be enclosed in backticks (`` ` ``). */ - createStatement: string; + createStatement?: string; /** * An optional list of DDL statements to run inside the newly created * database. Statements can create tables, indexes, etc. These statements * execute atomically with the creation of the database: if there is an * error in any statement, the database is not created. */ - extraStatements: string[]; + extraStatements?: string[]; } /** * Metadata type for the operation returned by CreateInstance. @@ -200,19 +203,19 @@ export namespace spanner_v1 { * in the process of undoing itself (which is guaranteed to succeed) and * cannot be cancelled again. */ - cancelTime: string; + cancelTime?: string; /** * The time at which this operation failed or was completed successfully. */ - endTime: string; + endTime?: string; /** * The instance being created. */ - instance: Schema$Instance; + instance?: Schema$Instance; /** * The time at which the CreateInstance request was received. */ - startTime: string; + startTime?: string; } /** * The request for CreateInstance. @@ -222,12 +225,12 @@ export namespace spanner_v1 { * Required. The instance to create. The name may be omitted, but if * specified must be `<parent>/instances/<instance_id>`. */ - instance: Schema$Instance; + instance?: Schema$Instance; /** * Required. The ID of the instance to create. Valid identifiers are of the * form `a-z*[a-z0-9]` and must be between 6 and 30 characters in length. */ - instanceId: string; + instanceId?: string; } /** * The request for CreateSession. @@ -236,7 +239,7 @@ export namespace spanner_v1 { /** * The session to create. */ - session: Schema$Session; + session?: Schema$Session; } /** * A Cloud Spanner database. @@ -249,11 +252,11 @@ export namespace spanner_v1 { * statement. This name can be passed to other API methods to identify the * database. */ - name: string; + name?: string; /** * Output only. The current database state. */ - state: string; + state?: string; } /** * Arguments to delete operations. @@ -264,11 +267,11 @@ export namespace spanner_v1 { * idempotent. The transaction will succeed even if some or all rows do not * exist. */ - keySet: Schema$KeySet; + keySet?: Schema$KeySet; /** * Required. The table whose rows will be deleted. */ - table: string; + table?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -294,7 +297,7 @@ export namespace spanner_v1 { * whose keys are parameter names, and whose values are the corresponding * parameter values. */ - params: any; + params?: any; /** * It is not always possible for Cloud Spanner to infer the right SQL type * from a JSON value. For example, values of type `BYTES` and values of @@ -303,20 +306,20 @@ export namespace spanner_v1 { * of the SQL statement parameters. See the definition of Type for more * information about SQL types. */ - paramTypes: any; + paramTypes?: any; /** * If present, results will be restricted to the specified partition * previously created using PartitionQuery(). There must be an exact match * for the values of fields common to this message and the * PartitionQueryRequest message used to create this partition_token. */ - partitionToken: string; + partitionToken?: string; /** * Used to control the amount of debugging information returned in * ResultSetStats. If partition_token is set, query_mode can only be set to * QueryMode.NORMAL. */ - queryMode: string; + queryMode?: string; /** * If this request is resuming a previously interrupted SQL statement * execution, `resume_token` should be copied from the last PartialResultSet @@ -324,16 +327,16 @@ export namespace spanner_v1 { * execution to resume where the last one left off. The rest of the request * parameters must exactly match the request that yielded this token. */ - resumeToken: string; + resumeToken?: string; /** * Required. The SQL string. */ - sql: string; + sql?: string; /** * The transaction to use. If none is provided, the default is a temporary * read-only transaction with strong concurrency. */ - transaction: Schema$TransactionSelector; + transaction?: Schema$TransactionSelector; } /** * Message representing a single field of a struct. @@ -348,11 +351,11 @@ export namespace spanner_v1 { * UPPER(ColName)"`). Note that a query result can contain multiple * fields with the same name. */ - name: string; + name?: string; /** * The type of the field. */ - type: Schema$Type; + type?: Schema$Type; } /** * The response for GetDatabaseDdl. @@ -362,7 +365,7 @@ export namespace spanner_v1 { * A list of formatted DDL statements defining the schema of the database * specified in the request. */ - statements: string[]; + statements?: string[]; } /** * Request message for `GetIamPolicy` method. @@ -378,12 +381,12 @@ export namespace spanner_v1 { * form `projects/<project>/instanceConfigs/<configuration>`. * See also InstanceConfig and ListInstanceConfigs. */ - config: string; + config?: string; /** * Required. The descriptive name for this instance as it appears in UIs. * Must be unique per project and between 4 and 30 characters in length. */ - displayName: string; + displayName?: string; /** * Cloud Labels are a flexible and lightweight mechanism for organizing * cloud resources into groups that reflect a customer's organizational @@ -404,14 +407,14 @@ export namespace spanner_v1 { * as the string: name + "_" + value would prove problematic if * we were to allow "_" in a future release. */ - labels: any; + labels?: any; /** * Required. A unique identifier for the instance, which cannot be changed * after the instance is created. Values are of the form * `projects/<project>/instances/a-z*[a-z0-9]`. The final segment of * the name must be between 6 and 30 characters in length. */ - name: string; + name?: string; /** * Required. The number of nodes allocated to this instance. This may be * zero in API responses for instances that are not yet in state `READY`. @@ -419,13 +422,13 @@ export namespace spanner_v1 { * documentation](https://cloud.google.com/spanner/docs/instances#node_count) * for more information about nodes. */ - nodeCount: number; + nodeCount?: number; /** * Output only. The current instance state. For CreateInstance, the state * must be either omitted or set to `CREATING`. For UpdateInstance, the * state must be either omitted or set to `READY`. */ - state: string; + state?: string; } /** * A possible configuration for a Cloud Spanner instance. Configurations @@ -435,12 +438,12 @@ export namespace spanner_v1 { /** * The name of this instance configuration as it appears in UIs. */ - displayName: string; + displayName?: string; /** * A unique identifier for the instance configuration. Values are of the * form `projects/<project>/instanceConfigs/a-z*` */ - name: string; + name?: string; } /** * KeyRange represents a range of rows in a table or index. A range has a @@ -491,22 +494,22 @@ export namespace spanner_v1 { * If the end is closed, then the range includes all rows whose first * `len(end_closed)` key columns exactly match `end_closed`. */ - endClosed: any[]; + endClosed?: any[]; /** * If the end is open, then the range excludes rows whose first * `len(end_open)` key columns exactly match `end_open`. */ - endOpen: any[]; + endOpen?: any[]; /** * If the start is closed, then the range includes all rows whose first * `len(start_closed)` key columns exactly match `start_closed`. */ - startClosed: any[]; + startClosed?: any[]; /** * If the start is open, then the range excludes rows whose first * `len(start_open)` key columns exactly match `start_open`. */ - startOpen: any[]; + startOpen?: any[]; } /** * `KeySet` defines a collection of Cloud Spanner keys and/or key ranges. All @@ -521,18 +524,18 @@ export namespace spanner_v1 { * matches all keys in the table or index. Note that any keys specified in * `keys` or `ranges` are only yielded once. */ - all: boolean; + all?: boolean; /** * A list of specific keys. Entries in `keys` should have exactly as many * elements as there are columns in the primary or index key with which this * `KeySet` is used. Individual key values are encoded as described here. */ - keys: any[][]; + keys?: any[][]; /** * A list of key ranges. See KeyRange for more information about key range * specifications. */ - ranges: Schema$KeyRange[]; + ranges?: Schema$KeyRange[]; } /** * The response for ListDatabases. @@ -541,12 +544,12 @@ export namespace spanner_v1 { /** * Databases that matched the request. */ - databases: Schema$Database[]; + databases?: Schema$Database[]; /** * `next_page_token` can be sent in a subsequent ListDatabases call to fetch * more of the matching databases. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response for ListInstanceConfigs. @@ -555,12 +558,12 @@ export namespace spanner_v1 { /** * The list of requested instance configurations. */ - instanceConfigs: Schema$InstanceConfig[]; + instanceConfigs?: Schema$InstanceConfig[]; /** * `next_page_token` can be sent in a subsequent ListInstanceConfigs call to * fetch more of the matching instance configurations. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response for ListInstances. @@ -569,12 +572,12 @@ export namespace spanner_v1 { /** * The list of requested instances. */ - instances: Schema$Instance[]; + instances?: Schema$Instance[]; /** * `next_page_token` can be sent in a subsequent ListInstances call to fetch * more of the matching instances. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Operations.ListOperations. @@ -583,11 +586,11 @@ export namespace spanner_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * The response for ListSessions. @@ -597,11 +600,11 @@ export namespace spanner_v1 { * `next_page_token` can be sent in a subsequent ListSessions call to fetch * more of the matching sessions. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of requested sessions. */ - sessions: Schema$Session[]; + sessions?: Schema$Session[]; } /** * A modification to one or more Cloud Spanner rows. Mutations can be applied @@ -612,29 +615,29 @@ export namespace spanner_v1 { * Delete rows from a table. Succeeds whether or not the named rows were * present. */ - delete: Schema$Delete; + delete?: Schema$Delete; /** * Insert new rows in a table. If any of the rows already exist, the write * or transaction fails with error `ALREADY_EXISTS`. */ - insert: Schema$Write; + insert?: Schema$Write; /** * Like insert, except that if the row already exists, then its column * values are overwritten with the ones provided. Any column values not * explicitly written are preserved. */ - insertOrUpdate: Schema$Write; + insertOrUpdate?: Schema$Write; /** * Like insert, except that if the row already exists, it is deleted, and * the column values provided are inserted instead. Unlike insert_or_update, * this means any values not explicitly written become `NULL`. */ - replace: Schema$Write; + replace?: Schema$Write; /** * Update existing rows in a table. If any of the rows does not already * exist, the transaction fails with error `NOT_FOUND`. */ - update: Schema$Write; + update?: Schema$Write; } /** * This resource represents a long-running operation that is the result of a @@ -646,24 +649,24 @@ export namespace spanner_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -673,7 +676,7 @@ export namespace spanner_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Partial results from a streaming read or SQL query. Streaming reads and SQL @@ -686,12 +689,12 @@ export namespace spanner_v1 { * with more values from subsequent `PartialResultSet`s to obtain a complete * field value. */ - chunkedValue: boolean; + chunkedValue?: boolean; /** * Metadata about the result set, such as row type information. Only present * in the first response. */ - metadata: Schema$ResultSetMetadata; + metadata?: Schema$ResultSetMetadata; /** * Streaming calls might be interrupted for a variety of reasons, such as * TCP connection loss. If this occurs, the stream of results can be resumed @@ -699,14 +702,14 @@ export namespace spanner_v1 { * that executing any other transaction in the same session invalidates the * token. */ - resumeToken: string; + resumeToken?: string; /** * Query plan and execution statistics for the statement that produced this * streaming result set. These can be requested by setting * ExecuteSqlRequest.query_mode and are sent only once with the last * response in the stream. */ - stats: Schema$ResultSetStats; + stats?: Schema$ResultSetStats; /** * A streamed result set consists of a stream of values, which might be * split into many `PartialResultSet` messages to accommodate large rows @@ -755,7 +758,7 @@ export namespace spanner_v1 { * second containing the field value `"World" = "W" + * "orl" + "d"`. */ - values: any[]; + values?: any[]; } /** * Information returned for each partition returned in a PartitionResponse. @@ -766,7 +769,7 @@ export namespace spanner_v1 { * ExecuteStreamingSql requests to restrict the results to those identified * by this partition token. */ - partitionToken: string; + partitionToken?: string; } /** * Options for a PartitionQueryRequest and PartitionReadRequest. @@ -780,7 +783,7 @@ export namespace spanner_v1 { * currently 200,000. This is only a hint. The actual number of partitions * returned may be smaller or larger than this maximum count request. */ - maxPartitions: string; + maxPartitions?: string; /** * **Note:** This hint is currently ignored by PartitionQuery and * PartitionRead requests. The desired data size for each partition @@ -788,7 +791,7 @@ export namespace spanner_v1 { * a hint. The actual size of each partition may be smaller or larger than * this size request. */ - partitionSizeBytes: string; + partitionSizeBytes?: string; } /** * The request for PartitionQuery @@ -806,7 +809,7 @@ export namespace spanner_v1 { * are parameter names, and whose values are the corresponding parameter * values. */ - params: any; + params?: any; /** * It is not always possible for Cloud Spanner to infer the right SQL type * from a JSON value. For example, values of type `BYTES` and values of @@ -815,11 +818,11 @@ export namespace spanner_v1 { * of the SQL query parameters. See the definition of Type for more * information about SQL types. */ - paramTypes: any; + paramTypes?: any; /** * Additional options that affect how many partitions are created. */ - partitionOptions: Schema$PartitionOptions; + partitionOptions?: Schema$PartitionOptions; /** * The query request to generate partitions for. The request will fail if * the query is not root partitionable. The query plan of a root @@ -828,12 +831,12 @@ export namespace spanner_v1 { * multiple splits, remotely evaluates a subquery independently on each * split, and then unions all results. */ - sql: string; + sql?: string; /** * Read only snapshot transactions are supported, read/write and single use * transactions are not. */ - transaction: Schema$TransactionSelector; + transaction?: Schema$TransactionSelector; } /** * The request for PartitionRead @@ -842,13 +845,13 @@ export namespace spanner_v1 { /** * The columns of table to be returned for each row matching this request. */ - columns: string[]; + columns?: string[]; /** * If non-empty, the name of an index on table. This index is used instead * of the table primary key when interpreting key_set and sorting result * rows. See key_set for further information. */ - index: string; + index?: string; /** * Required. `key_set` identifies the rows to be yielded. `key_set` names * the primary keys of the rows in table to be yielded, unless index is @@ -856,20 +859,20 @@ export namespace spanner_v1 { * index. It is not an error for the `key_set` to name rows that do not * exist in the database. Read yields nothing for nonexistent rows. */ - keySet: Schema$KeySet; + keySet?: Schema$KeySet; /** * Additional options that affect how many partitions are created. */ - partitionOptions: Schema$PartitionOptions; + partitionOptions?: Schema$PartitionOptions; /** * Required. The name of the table in the database to be read. */ - table: string; + table?: string; /** * Read only snapshot transactions are supported, read/write and single use * transactions are not. */ - transaction: Schema$TransactionSelector; + transaction?: Schema$TransactionSelector; } /** * The response for PartitionQuery or PartitionRead @@ -878,11 +881,11 @@ export namespace spanner_v1 { /** * Partitions created by this request. */ - partitions: Schema$Partition[]; + partitions?: Schema$Partition[]; /** * Transaction created by this request. */ - transaction: Schema$Transaction; + transaction?: Schema$Transaction; } /** * Node information for nodes appearing in a QueryPlan.plan_nodes. @@ -891,63 +894,67 @@ export namespace spanner_v1 { /** * List of child node `index`es and their relationship to this parent. */ - childLinks: Schema$ChildLink[]; + childLinks?: Schema$ChildLink[]; /** * The display name for the node. */ - displayName: string; + displayName?: string; /** * The execution statistics associated with the node, contained in a group * of key-value pairs. Only present if the plan was returned as a result of * a profile query. For example, number of executions, number of rows/time * per execution etc. */ - executionStats: any; + executionStats?: any; /** * The `PlanNode`'s index in node list. */ - index: number; + index?: number; /** * Used to determine the type of node. May be needed for visualizing * different kinds of nodes differently. For example, If the node is a * SCALAR node, it will have a condensed representation which can be used to * directly embed a description of the node in its parent. */ - kind: string; + kind?: string; /** * Attributes relevant to the node contained in a group of key-value pairs. * For example, a Parameter Reference node could have the following * information in its metadata: { "parameter_reference": * "param1", "parameter_type": "array" } */ - metadata: any; + metadata?: any; /** * Condensed representation for SCALAR nodes. */ - shortRepresentation: Schema$ShortRepresentation; + shortRepresentation?: Schema$ShortRepresentation; } /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. A `Policy` - * consists of a list of `bindings`. A `Binding` binds a list of `members` to + * consists 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": [ { + * defined by IAM. **JSON 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 - * guide](https://cloud.google.com/iam/docs). + * "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, { + * "role": "roles/viewer", "members": + * ["user:sean@example.com"] } ] } **YAML + * Example** bindings: - members: - user:mike@example.com - + * group:admins@example.com - domain:google.com - + * serviceAccount:my-other-app@appspot.gserviceaccount.com role: + * roles/owner - members: - user:sean@example.com role: + * roles/viewer For a description of IAM and its features, see the [IAM + * developer's guide](https://cloud.google.com/iam/docs). */ export interface Schema$Policy { /** * Associates a list of `members` to a `role`. `bindings` with no members * will result in an error. */ - bindings: Schema$Binding[]; + bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. It @@ -959,11 +966,11 @@ export namespace spanner_v1 { * policy. If no `etag` is provided in the call to `setIamPolicy`, then the * existing policy is overwritten blindly. */ - etag: string; + etag?: string; /** * Deprecated. */ - version: number; + version?: number; } /** * Contains an ordered list of nodes appearing in the query plan. @@ -974,7 +981,7 @@ export namespace spanner_v1 { * starting with the plan root. Each PlanNode's `id` corresponds to its * index in `plan_nodes`. */ - planNodes: Schema$PlanNode[]; + planNodes?: Schema$PlanNode[]; } /** * Message type to initiate a read-only transaction. @@ -990,7 +997,7 @@ export namespace spanner_v1 { * without the distributed timestamp negotiation overhead of * `max_staleness`. */ - exactStaleness: string; + exactStaleness?: string; /** * Read data at a timestamp >= `NOW - max_staleness` seconds. Guarantees * that all writes that have committed more than the specified number of @@ -1001,7 +1008,7 @@ export namespace spanner_v1 { * the possible staleness if the local replica has fallen behind. Note that * this option can only be used in single-use transactions. */ - maxStaleness: string; + maxStaleness?: string; /** * Executes all reads at a timestamp >= `min_read_timestamp`. This is * useful for requesting fresher data than some previous read, or data that @@ -1011,7 +1018,7 @@ export namespace spanner_v1 { * \"Zulu\" format, accurate to nanoseconds. Example: * `"2014-10-02T15:01:23.045123456Z"`. */ - minReadTimestamp: string; + minReadTimestamp?: string; /** * Executes all reads at the given timestamp. Unlike other modes, reads at a * specific timestamp are repeatable; the same read at the same timestamp @@ -1022,17 +1029,17 @@ export namespace spanner_v1 { * timestamp in RFC3339 UTC \"Zulu\" format, accurate to * nanoseconds. Example: `"2014-10-02T15:01:23.045123456Z"`. */ - readTimestamp: string; + readTimestamp?: string; /** * If true, the Cloud Spanner-selected read timestamp is included in the * Transaction message that describes the transaction. */ - returnReadTimestamp: boolean; + returnReadTimestamp?: boolean; /** * Read at a timestamp where all previously committed transactions are * visible. */ - strong: boolean; + strong?: boolean; } /** * The request for Read and StreamingRead. @@ -1041,13 +1048,13 @@ export namespace spanner_v1 { /** * The columns of table to be returned for each row matching this request. */ - columns: string[]; + columns?: string[]; /** * If non-empty, the name of an index on table. This index is used instead * of the table primary key when interpreting key_set and sorting result * rows. See key_set for further information. */ - index: string; + index?: string; /** * Required. `key_set` identifies the rows to be yielded. `key_set` names * the primary keys of the rows in table to be yielded, unless index is @@ -1059,20 +1066,20 @@ export namespace spanner_v1 { * name rows that do not exist in the database. Read yields nothing for * nonexistent rows. */ - keySet: Schema$KeySet; + keySet?: Schema$KeySet; /** * If greater than zero, only the first `limit` rows are yielded. If `limit` * is zero, the default is no limit. A limit cannot be specified if * `partition_token` is set. */ - limit: string; + limit?: string; /** * If present, results will be restricted to the specified partition * previously created using PartitionRead(). There must be an exact match * for the values of fields common to this message and the * PartitionReadRequest message used to create this partition_token. */ - partitionToken: string; + partitionToken?: string; /** * If this request is resuming a previously interrupted read, `resume_token` * should be copied from the last PartialResultSet yielded before the @@ -1080,16 +1087,16 @@ export namespace spanner_v1 { * read left off. The rest of the request parameters must exactly match the * request that yielded this token. */ - resumeToken: string; + resumeToken?: string; /** * Required. The name of the table in the database to be read. */ - table: string; + table?: string; /** * The transaction to use. If none is provided, the default is a temporary * read-only transaction with strong concurrency. */ - transaction: Schema$TransactionSelector; + transaction?: Schema$TransactionSelector; } /** * Message type to initiate a read-write transaction. Currently this @@ -1103,19 +1110,19 @@ export namespace spanner_v1 { /** * Metadata about the result set, such as row type information. */ - metadata: Schema$ResultSetMetadata; + metadata?: Schema$ResultSetMetadata; /** * Each element in `rows` is a row whose format is defined by * metadata.row_type. The ith element in each row matches the ith field in * metadata.row_type. Elements are encoded based on type as described here. */ - rows: any[][]; + rows?: any[][]; /** * Query plan and execution statistics for the SQL statement that produced * this result set. These can be requested by setting * ExecuteSqlRequest.query_mode. */ - stats: Schema$ResultSetStats; + stats?: Schema$ResultSetStats; } /** * Metadata about a ResultSet or PartialResultSet. @@ -1130,12 +1137,12 @@ export namespace spanner_v1 { * "UserName", "type": { "code": * "STRING" } }, ] */ - rowType: Schema$StructType; + rowType?: Schema$StructType; /** * If the read or SQL query began a transaction as a side-effect, the * information about the new transaction is yielded here. */ - transaction: Schema$Transaction; + transaction?: Schema$Transaction; } /** * Additional statistics about a ResultSet or PartialResultSet. @@ -1144,7 +1151,7 @@ export namespace spanner_v1 { /** * QueryPlan for the query associated with this result. */ - queryPlan: Schema$QueryPlan; + queryPlan?: Schema$QueryPlan; /** * Aggregated statistics from the execution of the query. Only present when * the query is profiled. For example, a query could return the statistics @@ -1152,7 +1159,7 @@ export namespace spanner_v1 { * "elapsed_time": "1.22 secs", "cpu_time": * "1.19 secs" } */ - queryStats: any; + queryStats?: any; } /** * The request for Rollback. @@ -1161,7 +1168,7 @@ export namespace spanner_v1 { /** * Required. The transaction to roll back. */ - transactionId: string; + transactionId?: string; } /** * A session in the Cloud Spanner API. @@ -1171,11 +1178,11 @@ export namespace spanner_v1 { * Output only. The approximate timestamp when the session is last used. It * is typically earlier than the actual last use time. */ - approximateLastUseTime: string; + approximateLastUseTime?: string; /** * Output only. The timestamp when the session is created. */ - createTime: string; + createTime?: string; /** * The labels for the session. * Label keys must be between 1 and 63 * characters long and must conform to the following regular expression: @@ -1185,12 +1192,12 @@ export namespace spanner_v1 { * associated with a given session. See https://goo.gl/xmQnxf for more * information on and examples of labels. */ - labels: any; + labels?: any; /** * The name of the session. This is always system-assigned; values provided * when creating a session are ignored. */ - name: string; + name?: string; } /** * Request message for `SetIamPolicy` method. @@ -1202,7 +1209,7 @@ export namespace spanner_v1 { * policy but certain Cloud Platform services (such as Projects) might * reject them. */ - policy: Schema$Policy; + policy?: Schema$Policy; } /** * Condensed representation of a node and its subtree. Only present for @@ -1212,7 +1219,7 @@ export namespace spanner_v1 { /** * A string representation of the expression subtree rooted at this node. */ - description: string; + description?: string; /** * A mapping of (subquery variable name) -> (subquery node id) for cases * where the `description` string of this node references a `SCALAR` @@ -1220,7 +1227,7 @@ export namespace spanner_v1 { * referenced `SCALAR` subquery may not necessarily be a direct child of * this node. */ - subqueries: any; + subqueries?: any; } /** * The `Status` type defines a logical error model that is suitable for @@ -1262,18 +1269,18 @@ export namespace spanner_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * `StructType` defines the fields of a STRUCT type. @@ -1286,7 +1293,7 @@ export namespace spanner_v1 { * turn, the order of fields matches the order of columns in a read request, * or the order of fields in the `SELECT` clause of a query. */ - fields: Schema$Field[]; + fields?: Schema$Field[]; } /** * Request message for `TestIamPermissions` method. @@ -1297,7 +1304,7 @@ export namespace spanner_v1 { * Permissions with wildcards (such as '*', 'spanner.*', * 'spanner.instances.*') are not allowed. */ - permissions: string[]; + permissions?: string[]; } /** * Response message for `TestIamPermissions` method. @@ -1307,7 +1314,7 @@ export namespace spanner_v1 { * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. */ - permissions: string[]; + permissions?: string[]; } /** * A transaction. @@ -1319,7 +1326,7 @@ export namespace spanner_v1 { * do not have IDs, because single-use transactions do not support multiple * requests. */ - id: string; + id?: string; /** * For snapshot read-only transactions, the read timestamp chosen for the * transaction. Not returned by default: see @@ -1327,7 +1334,7 @@ export namespace spanner_v1 { * RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: * `"2014-10-02T15:01:23.045123456Z"`. */ - readTimestamp: string; + readTimestamp?: string; } /** * # Transactions Each session can have at most one active transaction at a @@ -1463,13 +1470,13 @@ export namespace spanner_v1 { * transaction requires `spanner.databases.beginReadOnlyTransaction` * permission on the `session` resource. */ - readOnly: Schema$ReadOnly; + readOnly?: Schema$ReadOnly; /** * Transaction may write. Authorization to begin a read-write transaction * requires `spanner.databases.beginOrRollbackReadWriteTransaction` * permission on the `session` resource. */ - readWrite: Schema$ReadWrite; + readWrite?: Schema$ReadWrite; } /** * This message is used to select the transaction in which a Read or @@ -1482,17 +1489,17 @@ export namespace spanner_v1 { * transaction ID of the new transaction is returned in * ResultSetMetadata.transaction, which is a Transaction. */ - begin: Schema$TransactionOptions; + begin?: Schema$TransactionOptions; /** * Execute the read or SQL query in a previously-started transaction. */ - id: string; + id?: string; /** * Execute the read or SQL query in a temporary transaction. This is the * most efficient way to execute a transaction that consists of a single SQL * query. */ - singleUse: Schema$TransactionOptions; + singleUse?: Schema$TransactionOptions; } /** * `Type` indicates the type of a Cloud Spanner value, as might be stored in a @@ -1503,16 +1510,16 @@ export namespace spanner_v1 { * If code == ARRAY, then `array_element_type` is the type of the array * elements. */ - arrayElementType: Schema$Type; + arrayElementType?: Schema$Type; /** * Required. The TypeCode for this type. */ - code: string; + code?: string; /** * If code == STRUCT, then `struct_type` provides type information for the * struct's fields. */ - structType: Schema$StructType; + structType?: Schema$StructType; } /** * Metadata type for the operation returned by UpdateDatabaseDdl. @@ -1523,16 +1530,16 @@ export namespace spanner_v1 { * far, where `commit_timestamps[i]` is the commit timestamp for the * statement `statements[i]`. */ - commitTimestamps: string[]; + commitTimestamps?: string[]; /** * The database being modified. */ - database: string; + database?: string; /** * For an update this list contains all the statements. For an individual * statement, this list contains only that statement. */ - statements: string[]; + statements?: string[]; } /** * Enqueues the given DDL statements to be applied, in order but not @@ -1562,11 +1569,11 @@ export namespace spanner_v1 { * an underscore. If the named operation already exists, UpdateDatabaseDdl * returns `ALREADY_EXISTS`. */ - operationId: string; + operationId?: string; /** * DDL statements to be applied to the database. */ - statements: string[]; + statements?: string[]; } /** * Metadata type for the operation returned by UpdateInstance. @@ -1577,19 +1584,19 @@ export namespace spanner_v1 { * in the process of undoing itself (which is guaranteed to succeed) and * cannot be cancelled again. */ - cancelTime: string; + cancelTime?: string; /** * The time at which this operation failed or was completed successfully. */ - endTime: string; + endTime?: string; /** * The desired end state of the update. */ - instance: Schema$Instance; + instance?: Schema$Instance; /** * The time at which UpdateInstance request was received. */ - startTime: string; + startTime?: string; } /** * The request for UpdateInstance. @@ -1602,14 +1609,14 @@ export namespace spanner_v1 { * any future fields in [][google.spanner.admin.instance.v1.Instance] from * being erased accidentally by clients that do not know about them. */ - fieldMask: string; + fieldMask?: string; /** * Required. The instance to update, which must always include the instance * name. Otherwise, only fields mentioned in * [][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] * need be included. */ - instance: Schema$Instance; + instance?: Schema$Instance; } /** * Arguments to insert, update, insert_or_update, and replace operations. @@ -1620,11 +1627,11 @@ export namespace spanner_v1 { * must contain enough columns to allow Cloud Spanner to derive values for * all primary key columns in the row(s) to be modified. */ - columns: string[]; + columns?: string[]; /** * Required. The table whose rows will be written. */ - table: string; + table?: string; /** * The values to be written. `values` can contain more than one list of * values. If it does, then multiple rows are written, one for each entry in @@ -1634,9 +1641,10 @@ export namespace spanner_v1 { * repeating table and columns. Individual values in each list are encoded * as described here. */ - values: any[][]; + values?: any[][]; } + export class Resource$Projects { root: Spanner; instanceConfigs: Resource$Projects$Instanceconfigs; @@ -1652,6 +1660,8 @@ export namespace spanner_v1 { return this.root; } } + + export class Resource$Projects$Instanceconfigs { root: Spanner; constructor(root: Spanner) { @@ -1676,24 +1686,35 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Instanceconfigs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Instanceconfigs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Instanceconfigs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Instanceconfigs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instanceconfigs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instanceconfigs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -1729,29 +1750,44 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Instanceconfigs$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Instanceconfigs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Instanceconfigs$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Instanceconfigs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instanceconfigs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instanceconfigs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -1775,6 +1811,42 @@ export namespace spanner_v1 { } } + export interface Params$Resource$Projects$Instanceconfigs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the requested instance configuration. Values are of + * the form `projects//instanceConfigs/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Instanceconfigs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Number of instance configurations to be returned in the response. If 0 or + * less, defaults to the server's maximum allowed page size. + */ + pageSize?: number; + /** + * If non-empty, `page_token` should contain a next_page_token from a + * previous ListInstanceConfigsResponse. + */ + pageToken?: string; + /** + * Required. The name of the project for which a list of supported instance + * configurations is requested. Values are of the form `projects/`. + */ + parent?: string; + } + + export class Resource$Projects$Instances { root: Spanner; databases: Resource$Projects$Instances$Databases; @@ -1823,26 +1895,39 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Instances$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Instances$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Instances$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -1881,25 +1966,38 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -1933,23 +2031,34 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Instances$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -1986,26 +2095,38 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Projects$Instances$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Instances$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2043,28 +2164,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Instances$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2122,26 +2255,39 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Instances$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Projects$Instances$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Instances$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2178,26 +2324,38 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Projects$Instances$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Projects$Instances$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2237,29 +2395,46 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Projects$Instances$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Instances$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Projects$Instances$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Instances$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2282,6 +2457,156 @@ export namespace spanner_v1 { } } } + + export interface Params$Resource$Projects$Instances$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the project in which to create the instance. Values + * are of the form `projects/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateInstanceRequest; + } + export interface Params$Resource$Projects$Instances$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the instance to be deleted. Values are of the form + * `projects//instances/` + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the requested instance. Values are of the form + * `projects//instances/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The Cloud Spanner resource for which the policy is being + * retrieved. The format is `projects//instances/` + * for instance resources and `projects//instances//databases/` for database resources. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Instances$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An expression for filtering the results of the request. Filter rules are + * case insensitive. The fields eligible for filtering are: * `name` * + * `display_name` * `labels.key` where key is the name of a label Some + * examples of using filters are: * `name:*` --> The instance has a name. + * * `name:Howl` --> The instance's name contains the string "howl". * + * `name:HOWL` --> Equivalent to above. * `NAME:howl` --> Equivalent to + * above. * `labels.env:*` --> The instance has the label "env". * + * `labels.env:dev` --> The instance has the label "env" and the value of + * the label contains the string "dev". * `name:howl labels.env:dev` --> + * The instance's name contains "howl" and it has the label "env" with its + * value containing "dev". + */ + filter?: string; + /** + * Number of instances to be returned in the response. If 0 or less, + * defaults to the server's maximum allowed page size. + */ + pageSize?: number; + /** + * If non-empty, `page_token` should contain a next_page_token from a + * previous ListInstancesResponse. + */ + pageToken?: string; + /** + * Required. The name of the project for which a list of instances is + * requested. Values are of the form `projects/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Instances$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. A unique identifier for the instance, which cannot be changed + * after the instance is created. Values are of the form + * `projects//instances/a-z*[a-z0-9]`. The final segment of the + * name must be between 6 and 30 characters in length. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateInstanceRequest; + } + export interface Params$Resource$Projects$Instances$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The Cloud Spanner resource for which the policy is being set. + * The format is `projects//instances/` for + * instance resources and `projects//instances//databases/` for databases resources. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Instances$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The Cloud Spanner resource for which permissions are being + * tested. The format is `projects//instances/` for + * instance resources and `projects//instances//databases/` for database resources. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export class Resource$Projects$Instances$Databases { root: Spanner; operations: Resource$Projects$Instances$Databases$Operations; @@ -2317,26 +2642,39 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Instances$Databases$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Instances$Databases$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Databases$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2371,26 +2709,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - dropDatabase(params?: any, options?: MethodOptions): - AxiosPromise; dropDatabase( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Dropdatabase, + options?: MethodOptions): AxiosPromise; + dropDatabase( + params: Params$Resource$Projects$Instances$Databases$Dropdatabase, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + dropDatabase( + params: Params$Resource$Projects$Instances$Databases$Dropdatabase, + callback: BodyResponseCallback): void; + dropDatabase(callback: BodyResponseCallback): void; dropDatabase( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Dropdatabase| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Dropdatabase; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Dropdatabase; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2424,23 +2776,34 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Instances$Databases$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Instances$Databases$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Instances$Databases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Instances$Databases$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Databases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2476,28 +2839,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getDdl(params?: any, options?: MethodOptions): - AxiosPromise; getDdl( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Instances$Databases$Getddl, + options?: MethodOptions): AxiosPromise; + getDdl( + params: Params$Resource$Projects$Instances$Databases$Getddl, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getDdl( + params: Params$Resource$Projects$Instances$Databases$Getddl, + callback: BodyResponseCallback): void; + getDdl(callback: BodyResponseCallback): void; getDdl( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Instances$Databases$Getddl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Getddl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Databases$Getddl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2536,26 +2911,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Projects$Instances$Databases$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2592,28 +2981,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Instances$Databases$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Instances$Databases$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Instances$Databases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Instances$Databases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Databases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2651,26 +3052,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Setiampolicy, + options?: MethodOptions): AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Projects$Instances$Databases$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2710,29 +3125,48 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: + Params$Resource$Projects$Instances$Databases$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Instances$Databases$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Instances$Databases$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2774,26 +3208,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateDdl(params?: any, options?: MethodOptions): - AxiosPromise; updateDdl( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Updateddl, + options?: MethodOptions): AxiosPromise; + updateDdl( + params: Params$Resource$Projects$Instances$Databases$Updateddl, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; updateDdl( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Updateddl, + callback: BodyResponseCallback): void; + updateDdl(callback: BodyResponseCallback): void; + updateDdl( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Updateddl| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Updateddl; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Databases$Updateddl; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2815,57 +3263,215 @@ export namespace spanner_v1 { } } } - export class Resource$Projects$Instances$Databases$Operations { - root: Spanner; - constructor(root: Spanner) { - this.root = root; - this.getRoot.bind(this); - } - getRoot() { - return this.root; - } + export interface Params$Resource$Projects$Instances$Databases$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Required. The name of the instance that will serve the new database. + * Values are of the form `projects//instances/`. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateDatabaseRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Dropdatabase { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * spanner.projects.instances.databases.operations.cancel - * @desc Starts asynchronous cancellation on a long-running operation. The - * server makes a best effort to cancel the operation, but success is not - * guaranteed. If the server doesn't support this method, it returns - * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation - * or other methods to check whether the cancellation succeeded or whether - * the operation completed despite cancellation. On successful cancellation, - * the operation is not deleted; instead, it becomes an operation with an - * Operation.error value with a google.rpc.Status.code of 1, corresponding - * to `Code.CANCELLED`. - * @alias spanner.projects.instances.databases.operations.cancel - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the operation resource to be cancelled. - * @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 + * Required. The database to be dropped. */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; - cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): - void|AxiosPromise { - if (typeof options === 'function') { - callback = options; - options = {}; + database?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the requested database. Values are of the form + * `projects//instances//databases/`. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Getddl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The database whose schema we wish to get. + */ + database?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The Cloud Spanner resource for which the policy is being + * retrieved. The format is `projects//instances/` + * for instance resources and `projects//instances//databases/` for database resources. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$GetIamPolicyRequest; + } + export interface Params$Resource$Projects$Instances$Databases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Number of databases to be returned in the response. If 0 or less, + * defaults to the server's maximum allowed page size. + */ + pageSize?: number; + /** + * If non-empty, `page_token` should contain a next_page_token from a + * previous ListDatabasesResponse. + */ + pageToken?: string; + /** + * Required. The instance whose databases should be listed. Values are of + * the form `projects//instances/`. + */ + parent?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The Cloud Spanner resource for which the policy is being set. + * The format is `projects//instances/` for + * instance resources and `projects//instances//databases/` for databases resources. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$SetIamPolicyRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * REQUIRED: The Cloud Spanner resource for which permissions are being + * tested. The format is `projects//instances/` for + * instance resources and `projects//instances//databases/` for database resources. + */ + resource?: string; + /** + * Request body metadata + */ + resource_?: Schema$TestIamPermissionsRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Updateddl { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The database to update. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateDatabaseDdlRequest; + } + + export class Resource$Projects$Instances$Databases$Operations { + root: Spanner; + constructor(root: Spanner) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * spanner.projects.instances.databases.operations.cancel + * @desc Starts asynchronous cancellation on a long-running operation. The + * server makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation + * or other methods to check whether the cancellation succeeded or whether + * the operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with an + * Operation.error value with a google.rpc.Status.code of 1, corresponding + * to `Code.CANCELLED`. + * @alias spanner.projects.instances.databases.operations.cancel + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.name The name of the operation resource to be cancelled. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + cancel( + params?: Params$Resource$Projects$Instances$Databases$Operations$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Instances$Databases$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Instances$Databases$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Operations$Cancel; + options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2903,25 +3509,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Operations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Instances$Databases$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -2957,23 +3578,37 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Instances$Databases$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Instances$Databases$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Instances$Databases$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3018,28 +3653,42 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Instances$Databases$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Instances$Databases$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Instances$Databases$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3061,6 +3710,64 @@ export namespace spanner_v1 { } } + export interface Params$Resource$Projects$Instances$Databases$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects$Instances$Databases$Sessions { root: Spanner; constructor(root: Spanner) { @@ -3087,26 +3794,44 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - beginTransaction(params?: any, options?: MethodOptions): - AxiosPromise; beginTransaction( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction, + options?: MethodOptions): AxiosPromise; + beginTransaction( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + beginTransaction( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction, + callback: BodyResponseCallback): void; + beginTransaction(callback: BodyResponseCallback): void; beginTransaction( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3147,26 +3872,41 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - commit(params?: any, options?: MethodOptions): - AxiosPromise; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Sessions$Commit, + options?: MethodOptions): AxiosPromise; + commit( + params: Params$Resource$Projects$Instances$Databases$Sessions$Commit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + commit( + params: Params$Resource$Projects$Instances$Databases$Sessions$Commit, + callback: BodyResponseCallback): void; + commit(callback: BodyResponseCallback): void; commit( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Commit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Commit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Commit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3214,25 +3954,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Sessions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Instances$Databases$Sessions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Instances$Databases$Sessions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3267,25 +4022,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Sessions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Instances$Databases$Sessions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Instances$Databases$Sessions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3327,26 +4097,44 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - executeSql(params?: any, options?: MethodOptions): - AxiosPromise; executeSql( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Instances$Databases$Sessions$Executesql, + options?: MethodOptions): AxiosPromise; + executeSql( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Executesql, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + executeSql( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Executesql, + callback: BodyResponseCallback): void; + executeSql(callback: BodyResponseCallback): void; executeSql( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Executesql| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Executesql; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Executesql; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3385,26 +4173,45 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - executeStreamingSql(params?: any, options?: MethodOptions): - AxiosPromise; executeStreamingSql( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql, + options?: MethodOptions): AxiosPromise; + executeStreamingSql( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + executeStreamingSql( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql, + callback: BodyResponseCallback): void; executeStreamingSql( - params?: any, - options?: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + executeStreamingSql( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3440,23 +4247,36 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Instances$Databases$Sessions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Instances$Databases$Sessions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Instances$Databases$Sessions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3493,28 +4313,42 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Instances$Databases$Sessions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Instances$Databases$Sessions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Instances$Databases$Sessions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3557,26 +4391,45 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - partitionQuery(params?: any, options?: MethodOptions): - AxiosPromise; partitionQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery, + options?: MethodOptions): AxiosPromise; + partitionQuery( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + partitionQuery( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery, + callback: BodyResponseCallback): void; + partitionQuery(callback: BodyResponseCallback): + void; partitionQuery( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3619,26 +4472,45 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - partitionRead(params?: any, options?: MethodOptions): - AxiosPromise; partitionRead( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionread, + options?: MethodOptions): AxiosPromise; + partitionRead( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionread, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + partitionRead( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionread, + callback: BodyResponseCallback): void; + partitionRead(callback: BodyResponseCallback): + void; partitionRead( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Partitionread| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Partitionread; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Partitionread; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3681,25 +4553,41 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - read(params?: any, options?: MethodOptions): AxiosPromise; read( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Sessions$Read, + options?: MethodOptions): AxiosPromise; + read( + params: Params$Resource$Projects$Instances$Databases$Sessions$Read, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; read( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Sessions$Read, + callback: BodyResponseCallback): void; + read(callback: BodyResponseCallback): void; + read( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Read| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Read; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Read; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3740,25 +4628,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rollback(params?: any, options?: MethodOptions): AxiosPromise; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Databases$Sessions$Rollback, + options?: MethodOptions): AxiosPromise; + rollback( + params: Params$Resource$Projects$Instances$Databases$Sessions$Rollback, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; rollback( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Databases$Sessions$Rollback, + callback: BodyResponseCallback): void; + rollback(callback: BodyResponseCallback): void; + rollback( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Rollback| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Rollback; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Rollback; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3797,26 +4700,45 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - streamingRead(params?: any, options?: MethodOptions): - AxiosPromise; streamingRead( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Instances$Databases$Sessions$Streamingread, + options?: MethodOptions): AxiosPromise; + streamingRead( + params: + Params$Resource$Projects$Instances$Databases$Sessions$Streamingread, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; streamingRead( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Instances$Databases$Sessions$Streamingread, + callback: BodyResponseCallback): void; + streamingRead(callback: BodyResponseCallback): + void; + streamingRead( + paramsOrCallback?: + Params$Resource$Projects$Instances$Databases$Sessions$Streamingread| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Databases$Sessions$Streamingread; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Instances$Databases$Sessions$Streamingread; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3839,6 +4761,211 @@ export namespace spanner_v1 { } } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Begintransaction { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the transaction runs. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$BeginTransactionRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Commit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the transaction to be committed is + * running. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$CommitRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The database in which the new session is created. + */ + database?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateSessionRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session to delete. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Executesql { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the SQL query should be performed. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$ExecuteSqlRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Executestreamingsql { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the SQL query should be performed. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$ExecuteSqlRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The name of the session to retrieve. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The database in which to list sessions. + */ + database?: string; + /** + * An expression for filtering the results of the request. Filter rules are + * case insensitive. The fields eligible for filtering are: * + * `labels.key` where key is the name of a label Some examples of using + * filters are: * `labels.env:*` --> The session has the label "env". * + * `labels.env:dev` --> The session has the label "env" and the value of the + * label contains the string "dev". + */ + filter?: string; + /** + * Number of sessions to be returned in the response. If 0 or less, defaults + * to the server's maximum allowed page size. + */ + pageSize?: number; + /** + * If non-empty, `page_token` should contain a next_page_token from a + * previous ListSessionsResponse. + */ + pageToken?: string; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Partitionquery { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session used to create the partitions. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$PartitionQueryRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Partitionread { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session used to create the partitions. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$PartitionReadRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Read { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the read should be performed. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$ReadRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Rollback { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the transaction to roll back is running. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$RollbackRequest; + } + export interface Params$Resource$Projects$Instances$Databases$Sessions$Streamingread { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The session in which the read should be performed. + */ + session?: string; + /** + * Request body metadata + */ + resource?: Schema$ReadRequest; + } + + export class Resource$Projects$Instances$Operations { root: Spanner; @@ -3872,25 +4999,38 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Operations$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Instances$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Instances$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3928,25 +5068,38 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Instances$Operations$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Instances$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Instances$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Instances$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -3982,23 +5135,35 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Instances$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Instances$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Instances$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Instances$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -4043,28 +5208,40 @@ export namespace spanner_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Instances$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Instances$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Instances$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Instances$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Instances$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Instances$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; const parameters = { options: Object.assign( @@ -4085,4 +5262,61 @@ export namespace spanner_v1 { } } } + + export interface Params$Resource$Projects$Instances$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Instances$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/spectrum/v1explorer.ts b/src/apis/spectrum/v1explorer.ts index b531550443c..b966a299bae 100644 --- a/src/apis/spectrum/v1explorer.ts +++ b/src/apis/spectrum/v1explorer.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace spectrum_v1explorer { + export interface Options extends GlobalOptions { version: 'v1explorer'; } + /** * Google Spectrum Database API * @@ -76,18 +79,18 @@ export namespace spectrum_v1explorer { * depends on the device type and the regulatory domain. Note that the * height may be negative. */ - height: number; + height?: number; /** * If the height is required, then the height type (AGL for above ground * level or AMSL for above mean sea level) is also required. The default is * AGL. */ - heightType: string; + heightType?: string; /** * The height uncertainty in meters. Whether this is required depends on the * regulatory domain. */ - heightUncertainty: number; + heightUncertainty?: number; } /** * This message contains the name and URI of a database. @@ -96,11 +99,11 @@ export namespace spectrum_v1explorer { /** * The display name for a database. */ - name: string; + name?: string; /** * The corresponding URI of the database. */ - uri: string; + uri?: string; } /** * This message is provided by the database to notify devices of an upcoming @@ -112,7 +115,7 @@ export namespace spectrum_v1explorer { * preconfigured list of databases to replace (only) the database that * provided the response with the specified entries. */ - databases: Schema$DatabaseSpec[]; + databases?: Schema$DatabaseSpec[]; } /** * Device capabilities provide additional information that may be used by a @@ -128,7 +131,7 @@ export namespace spectrum_v1explorer { * should not return available spectrum that falls outside these ranges or * channel IDs. */ - frequencyRanges: Schema$FrequencyRange[]; + frequencyRanges?: Schema$FrequencyRange[]; } /** * The device descriptor contains parameters that identify the specific @@ -142,36 +145,36 @@ export namespace spectrum_v1explorer { * strings master and slave. This field is case-insensitive. Consult the * ETSI documentation for details about the device types. */ - etsiEnDeviceCategory: string; + etsiEnDeviceCategory?: string; /** * Specifies the ETSI white space device emissions class. The values are * represented by numeric strings, such as 1, 2, etc. Consult the ETSI * documentation for details about the device types. */ - etsiEnDeviceEmissionsClass: string; + etsiEnDeviceEmissionsClass?: string; /** * Specifies the ETSI white space device type. Valid values are * single-letter strings, such as A, B, etc. Consult the ETSI documentation * for details about the device types. */ - etsiEnDeviceType: string; + etsiEnDeviceType?: string; /** * Specifies the ETSI white space device technology identifier. The string * value must not exceed 64 characters in length. Consult the ETSI * documentation for details about the device types. */ - etsiEnTechnologyId: string; + etsiEnTechnologyId?: string; /** * Specifies the device's FCC certification identifier. The value is an * identifier string whose length should not exceed 32 characters. Note * that, in practice, a valid FCC ID may be limited to 19 characters. */ - fccId: string; + fccId?: string; /** * Specifies the TV Band White Space device type, as defined by the FCC. * Valid values are FIXED, MODE_1, MODE_2. */ - fccTvbdDeviceType: string; + fccTvbdDeviceType?: string; /** * The manufacturer's ID may be required by the regulatory domain. This * should represent the name of the device manufacturer, should be @@ -179,12 +182,12 @@ export namespace spectrum_v1explorer { * distinct from that of other manufacturers. The string value must not * exceed 64 characters in length. */ - manufacturerId: string; + manufacturerId?: string; /** * The device's model ID may be required by the regulatory domain. The * string value must not exceed 64 characters in length. */ - modelId: string; + modelId?: string; /** * The list of identifiers for rulesets supported by the device. A database * may require that the device provide this list before servicing the device @@ -194,12 +197,12 @@ export namespace spectrum_v1explorer { * the valid requests, see section 9.2 of the PAWS specification. Currently, * FccTvBandWhiteSpace-2010 is the only supported ruleset. */ - rulesetIds: string[]; + rulesetIds?: string[]; /** * The manufacturer's device serial number; required by the applicable * regulatory domain. The length of the value must not exceed 64 characters. */ - serialNumber: string; + serialNumber?: string; } /** * This parameter contains device-owner information required as part of device @@ -215,12 +218,12 @@ export namespace spectrum_v1explorer { * The vCard contact information for the device operator is optional, but * may be required by specific regulatory domains. */ - operator: Schema$Vcard; + operator?: Schema$Vcard; /** * The vCard contact information for the individual or business that owns * the device is required. */ - owner: Schema$Vcard; + owner?: Schema$Vcard; } /** * The device validity element describes whether a particular device is valid @@ -231,18 +234,18 @@ export namespace spectrum_v1explorer { * The descriptor of the device for which the validity check was requested. * It will always be present. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * The validity status: true if the device is valid for operation, false * otherwise. It will always be present. */ - isValid: boolean; + isValid?: boolean; /** * If the device identifier is not valid, the database may include a reason. * The reason may be in any language. The length of the value should not * exceed 128 characters. */ - reason: string; + reason?: string; } /** * The start and stop times of an event. This is used to indicate the time @@ -254,11 +257,11 @@ export namespace spectrum_v1explorer { /** * The inclusive start of the event. It will be present. */ - startTime: string; + startTime?: string; /** * The exclusive end of the event. It will be present. */ - stopTime: string; + stopTime?: string; } /** * A specific range of frequencies together with the associated maximum power @@ -270,7 +273,7 @@ export namespace spectrum_v1explorer { * is included, the device should treat it as informative. The length of the * identifier should not exceed 16 characters. */ - channelId: string; + channelId?: string; /** * The maximum total power level (EIRP)—computed over the corresponding * operating bandwidth—that is permitted within the frequency range. @@ -281,15 +284,15 @@ export namespace spectrum_v1explorer { * not applicable) when the frequency range appears inside a * device-capabilities message. */ - maxPowerDBm: number; + maxPowerDBm?: number; /** * The required inclusive start of the frequency range (in Hertz). */ - startHz: number; + startHz?: number; /** * The required exclusive end of the frequency range (in Hertz). */ - stopHz: number; + stopHz?: number; } /** * This parameter is used to specify the geolocation of the device. @@ -303,7 +306,7 @@ export namespace spectrum_v1explorer { * confidence value is meaningful only when geolocation refers to a point * with uncertainty. */ - confidence: number; + confidence?: number; /** * If present, indicates that the geolocation represents a point. * Paradoxically, a point is parameterized using an ellipse, where the @@ -311,12 +314,12 @@ export namespace spectrum_v1explorer { * major and minor axes represent the uncertainty. The uncertainty values * may be required, depending on the regulatory domain. */ - point: Schema$GeoLocationEllipse; + point?: Schema$GeoLocationEllipse; /** * If present, indicates that the geolocation represents a region. Database * support for regions is optional. */ - region: Schema$GeoLocationPolygon; + region?: Schema$GeoLocationPolygon; } /** * A "point" with uncertainty is represented using the Ellipse @@ -326,7 +329,7 @@ export namespace spectrum_v1explorer { /** * A required geo-spatial point representing the center of the ellipse. */ - center: Schema$GeoLocationPoint; + center?: Schema$GeoLocationPoint; /** * A floating-point number that expresses the orientation of the ellipse, * representing the rotation, in degrees, of the semi-major axis from North @@ -336,19 +339,19 @@ export namespace spectrum_v1explorer { * degrees. When orientation is not present, the orientation is assumed to * be 0. */ - orientation: number; + orientation?: number; /** * A floating-point number that expresses the location uncertainty along the * major axis of the ellipse. May be required by the regulatory domain. When * the uncertainty is optional, the default value is 0. */ - semiMajorAxis: number; + semiMajorAxis?: number; /** * A floating-point number that expresses the location uncertainty along the * minor axis of the ellipse. May be required by the regulatory domain. When * the uncertainty is optional, the default value is 0. */ - semiMinorAxis: number; + semiMinorAxis?: number; } /** * A single geolocation on the globe. @@ -359,13 +362,13 @@ export namespace spectrum_v1explorer { * using the WGS84 datum. For details on this encoding, see the National * Imagery and Mapping Agency's Technical Report TR8350.2. */ - latitude: number; + latitude?: number; /** * A required floating-point number that expresses the longitude in degrees * using the WGS84 datum. For details on this encoding, see the National * Imagery and Mapping Agency's Technical Report TR8350.2. */ - longitude: number; + longitude?: number; } /** * A region is represented using the polygonal shape. @@ -385,7 +388,7 @@ export namespace spectrum_v1explorer { * shapes should be restricted to a maximum of 15 vertices (16 points that * include the repeated vertex). */ - exterior: Schema$GeoLocationPoint[]; + exterior?: Schema$GeoLocationPoint[]; } /** * The schedule of spectrum profiles available at a particular geolocation. @@ -395,14 +398,14 @@ export namespace spectrum_v1explorer { * The geolocation identifies the location at which the spectrum schedule * applies. It will always be present. */ - location: Schema$GeoLocation; + location?: Schema$GeoLocation; /** * A list of available spectrum profiles and associated times. It will * always be present, and at least one schedule must be included (though it * may be empty if there is no available spectrum). More than one schedule * may be included to represent future changes to the available spectrum. */ - spectrumSchedules: Schema$SpectrumSchedule[]; + spectrumSchedules?: Schema$SpectrumSchedule[]; } /** * The request message for a batch available spectrum query protocol. @@ -412,14 +415,14 @@ export namespace spectrum_v1explorer { * Depending on device type and regulatory domain, antenna characteristics * may be required. */ - antenna: Schema$AntennaCharacteristics; + antenna?: Schema$AntennaCharacteristics; /** * The master device may include its device capabilities to limit the * available-spectrum batch response to the spectrum that is compatible with * its capabilities. The database should not return spectrum that is * incompatible with the specified capabilities. */ - capabilities: Schema$DeviceCapabilities; + capabilities?: Schema$DeviceCapabilities; /** * When the available spectrum request is made on behalf of a specific * device (a master or slave device), device descriptor information for the @@ -428,7 +431,7 @@ export namespace spectrum_v1explorer { * specified, device descriptor information may be optional or required * according to the rules of the applicable regulatory domain. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * A geolocation list is required. This allows a device to specify its * current location plus additional anticipated locations when allowed by @@ -445,7 +448,7 @@ export namespace spectrum_v1explorer { * whether the master device is making the request on its own behalf or on * behalf of a slave device (one without geolocation capability). */ - locations: Schema$GeoLocation[]; + locations?: Schema$GeoLocation[]; /** * When an available spectrum batch request is made by the master device (a * device with geolocation capability) on behalf of a slave device (a device @@ -454,14 +457,14 @@ export namespace spectrum_v1explorer { * information (in addition to device descriptor information for the slave * device in a separate parameter). */ - masterDeviceDesc: Schema$DeviceDescriptor; + masterDeviceDesc?: Schema$DeviceDescriptor; /** * Depending on device type and regulatory domain, device owner information * may be included in an available spectrum batch request. This allows the * device to register and get spectrum-availability information in a single * request. */ - owner: Schema$DeviceOwner; + owner?: Schema$DeviceOwner; /** * The request type parameter is an optional parameter that can be used to * modify an available spectrum batch request, but its use depends on @@ -472,16 +475,16 @@ export namespace spectrum_v1explorer { * device descriptor parameter for the device on whose behalf the batch * request is made is required. */ - requestType: string; + requestType?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The response message for the batch available spectrum query contains a @@ -495,13 +498,13 @@ export namespace spectrum_v1explorer { * pre-configured databases by (only) replacing its entry for the responding * database with the list of alternate URIs. */ - databaseChange: Schema$DbUpdateSpec; + databaseChange?: Schema$DbUpdateSpec; /** * The database must return in its available spectrum response the device * descriptor information it received in the master device's available * spectrum batch request. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * The available spectrum batch response must contain a geo-spectrum * schedule list, The list may be empty if spectrum is not available. The @@ -513,12 +516,12 @@ export namespace spectrum_v1explorer { * entries in the list, and must use the geolocation value in each * geo-spectrum schedule entry to match available spectrum to a location. */ - geoSpectrumSchedules: Schema$GeoSpectrumSchedule[]; + geoSpectrumSchedules?: Schema$GeoSpectrumSchedule[]; /** * Identifies what kind of resource this is. Value: the fixed string * "spectrum#pawsGetSpectrumBatchResponse". */ - kind: string; + kind?: string; /** * The database may return a constraint on the allowed maximum contiguous * bandwidth (in Hertz). A regulatory domain may require the database to @@ -527,7 +530,7 @@ export namespace spectrum_v1explorer { * ensure that no single block of spectrum has bandwidth that exceeds this * value. */ - maxContiguousBwHz: number; + maxContiguousBwHz?: number; /** * The database may return a constraint on the allowed maximum total * bandwidth (in Hertz), which does not need to be contiguous. A regulatory @@ -536,7 +539,7 @@ export namespace spectrum_v1explorer { * must apply this constraint to its spectrum-selection logic to ensure that * total bandwidth does not exceed this value. */ - maxTotalBwHz: number; + maxTotalBwHz?: number; /** * For regulatory domains that require a spectrum-usage report from devices, * the database must return true for this parameter if the geo-spectrum @@ -545,7 +548,7 @@ export namespace spectrum_v1explorer { * is true, the device must send a spectrum use notify message to the * database; otherwise, the device should not send the notification. */ - needsSpectrumReport: boolean; + needsSpectrumReport?: boolean; /** * The database should return ruleset information, which identifies the * applicable regulatory authority and ruleset for the available spectrum @@ -555,23 +558,23 @@ export namespace spectrum_v1explorer { * conflicting values provided in the ruleset information returned in a * prior initialization response sent by the database to the device. */ - rulesetInfo: Schema$RulesetInfo; + rulesetInfo?: Schema$RulesetInfo; /** * The database includes a timestamp of the form, YYYY-MM-DDThh:mm:ssZ * (Internet timestamp format per RFC3339), in its available spectrum batch * response. The timestamp should be used by the device as a reference for * the start and stop times specified in the response spectrum schedules. */ - timestamp: string; + timestamp?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The request message for the available spectrum query protocol which must @@ -582,14 +585,14 @@ export namespace spectrum_v1explorer { * Depending on device type and regulatory domain, the characteristics of * the antenna may be required. */ - antenna: Schema$AntennaCharacteristics; + antenna?: Schema$AntennaCharacteristics; /** * The master device may include its device capabilities to limit the * available-spectrum response to the spectrum that is compatible with its * capabilities. The database should not return spectrum that is * incompatible with the specified capabilities. */ - capabilities: Schema$DeviceCapabilities; + capabilities?: Schema$DeviceCapabilities; /** * When the available spectrum request is made on behalf of a specific * device (a master or slave device), device descriptor information for that @@ -598,7 +601,7 @@ export namespace spectrum_v1explorer { * information may be optional or required according to the rules of the * applicable regulatory domain. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * The geolocation of the master device (a device with geolocation * capability that makes an available spectrum request) is required whether @@ -610,7 +613,7 @@ export namespace spectrum_v1explorer { * specifies a region, rather than a point, the database may return an * UNIMPLEMENTED error code if it does not support query by region. */ - location: Schema$GeoLocation; + location?: Schema$GeoLocation; /** * When an available spectrum request is made by the master device (a device * with geolocation capability) on behalf of a slave device (a device @@ -619,14 +622,14 @@ export namespace spectrum_v1explorer { * information (in addition to device descriptor information for the slave * device, which is provided in a separate parameter). */ - masterDeviceDesc: Schema$DeviceDescriptor; + masterDeviceDesc?: Schema$DeviceDescriptor; /** * Depending on device type and regulatory domain, device owner information * may be included in an available spectrum request. This allows the device * to register and get spectrum-availability information in a single * request. */ - owner: Schema$DeviceOwner; + owner?: Schema$DeviceOwner; /** * The request type parameter is an optional parameter that can be used to * modify an available spectrum request, but its use depends on applicable @@ -636,16 +639,16 @@ export namespace spectrum_v1explorer { * is for a specific device (master or slave), and the deviceDesc parameter * for the device on whose behalf the request is made is required. */ - requestType: string; + requestType?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The response message for the available spectrum query which contains a @@ -659,18 +662,18 @@ export namespace spectrum_v1explorer { * pre-configured databases by (only) replacing its entry for the responding * database with the list of alternate URIs. */ - databaseChange: Schema$DbUpdateSpec; + databaseChange?: Schema$DbUpdateSpec; /** * The database must return, in its available spectrum response, the device * descriptor information it received in the master device's available * spectrum request. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * Identifies what kind of resource this is. Value: the fixed string * "spectrum#pawsGetSpectrumResponse". */ - kind: string; + kind?: string; /** * The database may return a constraint on the allowed maximum contiguous * bandwidth (in Hertz). A regulatory domain may require the database to @@ -679,7 +682,7 @@ export namespace spectrum_v1explorer { * ensure that no single block of spectrum has bandwidth that exceeds this * value. */ - maxContiguousBwHz: number; + maxContiguousBwHz?: number; /** * The database may return a constraint on the allowed maximum total * bandwidth (in Hertz), which need not be contiguous. A regulatory domain @@ -688,7 +691,7 @@ export namespace spectrum_v1explorer { * constraint to its spectrum-selection logic to ensure that total bandwidth * does not exceed this value. */ - maxTotalBwHz: number; + maxTotalBwHz?: number; /** * For regulatory domains that require a spectrum-usage report from devices, * the database must return true for this parameter if the spectrum schedule @@ -697,7 +700,7 @@ export namespace spectrum_v1explorer { * the device must send a spectrum use notify message to the database; * otherwise, the device must not send the notification. */ - needsSpectrumReport: boolean; + needsSpectrumReport?: boolean; /** * The database should return ruleset information, which identifies the * applicable regulatory authority and ruleset for the available spectrum @@ -707,7 +710,7 @@ export namespace spectrum_v1explorer { * conflicting values provided in the ruleset information returned in a * prior initialization response sent by the database to the device. */ - rulesetInfo: Schema$RulesetInfo; + rulesetInfo?: Schema$RulesetInfo; /** * The available spectrum response must contain a spectrum schedule list. * The list may be empty if spectrum is not available. The database may @@ -715,23 +718,23 @@ export namespace spectrum_v1explorer { * available spectrum. How far in advance a schedule may be provided depends * on the applicable regulatory domain. */ - spectrumSchedules: Schema$SpectrumSchedule[]; + spectrumSchedules?: Schema$SpectrumSchedule[]; /** * The database includes a timestamp of the form YYYY-MM-DDThh:mm:ssZ * (Internet timestamp format per RFC3339) in its available spectrum * response. The timestamp should be used by the device as a reference for * the start and stop times specified in the response spectrum schedules. */ - timestamp: string; + timestamp?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The initialization request message allows the master device to initiate @@ -744,20 +747,20 @@ export namespace spectrum_v1explorer { * descriptor, it must return an UNSUPPORTED error code in the error * response. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * A device's geolocation is required. */ - location: Schema$GeoLocation; + location?: Schema$GeoLocation; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The initialization response message communicates database parameters to the @@ -771,28 +774,28 @@ export namespace spectrum_v1explorer { * pre-configured databases by (only) replacing its entry for the responding * database with the list of alternate URIs. */ - databaseChange: Schema$DbUpdateSpec; + databaseChange?: Schema$DbUpdateSpec; /** * Identifies what kind of resource this is. Value: the fixed string * "spectrum#pawsInitResponse". */ - kind: string; + kind?: string; /** * The rulesetInfo parameter must be included in the response. This * parameter specifies the regulatory domain and parameters applicable to * that domain. The database must include the authority field, which defines * the regulatory domain for the location specified in the INIT_REQ message. */ - rulesetInfo: Schema$RulesetInfo; + rulesetInfo?: Schema$RulesetInfo; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The spectrum-use notification message which must contain the geolocation of @@ -803,13 +806,13 @@ export namespace spectrum_v1explorer { * Device descriptor information is required in the spectrum-use * notification message. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * The geolocation of the master device (the device that is sending the * spectrum-use notification) to the database is required in the * spectrum-use notification message. */ - location: Schema$GeoLocation; + location?: Schema$GeoLocation; /** * A spectrum list is required in the spectrum-use notification. The list * specifies the spectrum that the device expects to use, which includes @@ -826,16 +829,16 @@ export namespace spectrum_v1explorer { * the psdBandwidthHz value should be set to 100 kHz, even though the actual * bandwidth used can be 20 kHz. */ - spectra: Schema$SpectrumMessage[]; + spectra?: Schema$SpectrumMessage[]; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * An empty response to the notification. @@ -845,16 +848,16 @@ export namespace spectrum_v1explorer { * Identifies what kind of resource this is. Value: the fixed string * "spectrum#pawsNotifySpectrumUseResponse". */ - kind: string; + kind?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The registration request message contains the required registration @@ -864,28 +867,28 @@ export namespace spectrum_v1explorer { /** * Antenna characteristics, including its height and height type. */ - antenna: Schema$AntennaCharacteristics; + antenna?: Schema$AntennaCharacteristics; /** * A DeviceDescriptor is required. */ - deviceDesc: Schema$DeviceDescriptor; + deviceDesc?: Schema$DeviceDescriptor; /** * Device owner information is required. */ - deviceOwner: Schema$DeviceOwner; + deviceOwner?: Schema$DeviceOwner; /** * A device's geolocation is required. */ - location: Schema$GeoLocation; + location?: Schema$GeoLocation; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The registration response message simply acknowledges receipt of the @@ -899,21 +902,21 @@ export namespace spectrum_v1explorer { * pre-configured databases by (only) replacing its entry for the responding * database with the list of alternate URIs. */ - databaseChange: Schema$DbUpdateSpec; + databaseChange?: Schema$DbUpdateSpec; /** * Identifies what kind of resource this is. Value: the fixed string * "spectrum#pawsRegisterResponse". */ - kind: string; + kind?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The device validation request message. @@ -923,16 +926,16 @@ export namespace spectrum_v1explorer { * A list of device descriptors, which specifies the slave devices to be * validated, is required. */ - deviceDescs: Schema$DeviceDescriptor[]; + deviceDescs?: Schema$DeviceDescriptor[]; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * The device validation response message. @@ -945,28 +948,28 @@ export namespace spectrum_v1explorer { * pre-configured databases by (only) replacing its entry for the responding * database with the list of alternate URIs. */ - databaseChange: Schema$DbUpdateSpec; + databaseChange?: Schema$DbUpdateSpec; /** * A device validities list is required in the device validation response to * report whether each slave device listed in a previous device validation * request is valid. The number of entries must match the number of device * descriptors listed in the previous device validation request. */ - deviceValidities: Schema$DeviceValidity[]; + deviceValidities?: Schema$DeviceValidity[]; /** * Identifies what kind of resource this is. Value: the fixed string * "spectrum#pawsVerifyDeviceResponse". */ - kind: string; + kind?: string; /** * The message type (e.g., INIT_REQ, AVAIL_SPECTRUM_REQ, ...). Required * field. */ - type: string; + type?: string; /** * The PAWS version. Must be exactly 1.0. Required field. */ - version: string; + version?: string; } /** * This contains parameters for the ruleset of a regulatory domain that is @@ -978,7 +981,7 @@ export namespace spectrum_v1explorer { * be a 2-letter country code. The device should use this to determine * additional device behavior required by the associated regulatory domain. */ - authority: string; + authority?: string; /** * The maximum location change in meters is required in the initialization * response, but optional otherwise. When the device changes location by @@ -989,7 +992,7 @@ export namespace spectrum_v1explorer { * provided within the context of an available-spectrum response, it takes * precedence over the value within the initialization response. */ - maxLocationChange: number; + maxLocationChange?: number; /** * The maximum duration, in seconds, between requests for available * spectrum. It is required in the initialization response, but optional @@ -1001,7 +1004,7 @@ export namespace spectrum_v1explorer { * of an available-spectrum response, it takes precedence over the value * within the initialization response. */ - maxPollingSecs: number; + maxPollingSecs?: number; /** * The identifiers of the rulesets supported for the device's location. * The database should include at least one applicable ruleset in the @@ -1014,7 +1017,7 @@ export namespace spectrum_v1explorer { * support the indicated ruleset, it must not operate in the spectrum * governed by the ruleset. */ - rulesetIds: string[]; + rulesetIds?: string[]; } /** * Available spectrum can be logically characterized by a list of frequency @@ -1028,12 +1031,12 @@ export namespace spectrum_v1explorer { * specifications, at 0.1MHz and 8MHz. This parameter may be empty if there * is no available spectrum. It will be present otherwise. */ - bandwidth: number; + bandwidth?: number; /** * The list of frequency ranges and permissible power levels. The list may * be empty if there is no available spectrum, otherwise it will be present. */ - frequencyRanges: Schema$FrequencyRange[]; + frequencyRanges?: Schema$FrequencyRange[]; } /** * The spectrum schedule element combines an event time with spectrum profile @@ -1044,12 +1047,12 @@ export namespace spectrum_v1explorer { * The event time expresses when the spectrum profile is valid. It will * always be present. */ - eventTime: Schema$EventTime; + eventTime?: Schema$EventTime; /** * A list of spectrum messages representing the usable profile. It will * always be present, but may be empty when there is no available spectrum. */ - spectra: Schema$SpectrumMessage[]; + spectra?: Schema$SpectrumMessage[]; } /** * A vCard-in-JSON message that contains only the fields needed for PAWS: - @@ -1060,23 +1063,23 @@ export namespace spectrum_v1explorer { /** * The street address of the entity. */ - adr: Schema$VcardAddress; + adr?: Schema$VcardAddress; /** * An email address that can be used to reach the contact. */ - email: Schema$VcardTypedText; + email?: Schema$VcardTypedText; /** * The full name of the contact person. For example: John A. Smith. */ - fn: string; + fn?: string; /** * The organization associated with the registering entity. */ - org: Schema$VcardTypedText; + org?: Schema$VcardTypedText; /** * A telephone number that can be used to call the contact. */ - tel: Schema$VcardTelephone; + tel?: Schema$VcardTelephone; } /** * The structure used to represent a street address. @@ -1085,28 +1088,28 @@ export namespace spectrum_v1explorer { /** * The postal code associated with the address. For example: 94423. */ - code: string; + code?: string; /** * The country name. For example: US. */ - country: string; + country?: string; /** * The city or local equivalent portion of the address. For example: San * Jose. */ - locality: string; + locality?: string; /** * An optional post office box number. */ - pobox: string; + pobox?: string; /** * The state or local equivalent portion of the address. For example: CA. */ - region: string; + region?: string; /** * The street number and name. For example: 123 Any St. */ - street: string; + street?: string; } /** * The structure used to represent a telephone number. @@ -1115,7 +1118,7 @@ export namespace spectrum_v1explorer { /** * A nested telephone URI of the form: tel:+1-123-456-7890. */ - uri: string; + uri?: string; } /** * The structure used to represent an organization and an email address. @@ -1125,9 +1128,10 @@ export namespace spectrum_v1explorer { * The text string associated with this item. For example, for an org field: * ACME, inc. For an email field: smith@example.com. */ - text: string; + text?: string; } + export class Resource$Paws { root: Spectrum; constructor(root: Spectrum) { @@ -1154,28 +1158,40 @@ export namespace spectrum_v1explorer { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getSpectrum(params?: any, options?: MethodOptions): - AxiosPromise; getSpectrum( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Paws$Getspectrum, + options?: MethodOptions): AxiosPromise; + getSpectrum( + params: Params$Resource$Paws$Getspectrum, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getSpectrum( + params: Params$Resource$Paws$Getspectrum, + callback: BodyResponseCallback): void; + getSpectrum(callback: BodyResponseCallback): + void; getSpectrum( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Paws$Getspectrum| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Paws$Getspectrum; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Paws$Getspectrum; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1211,29 +1227,45 @@ export namespace spectrum_v1explorer { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getSpectrumBatch(params?: any, options?: MethodOptions): + getSpectrumBatch( + params?: Params$Resource$Paws$Getspectrumbatch, + options?: MethodOptions): AxiosPromise; getSpectrumBatch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Paws$Getspectrumbatch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + getSpectrumBatch( + params: Params$Resource$Paws$Getspectrumbatch, + callback: BodyResponseCallback): void; getSpectrumBatch( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + getSpectrumBatch( + paramsOrCallback?: Params$Resource$Paws$Getspectrumbatch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Paws$Getspectrumbatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Paws$Getspectrumbatch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1271,26 +1303,37 @@ export namespace spectrum_v1explorer { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - init(params?: any, options?: MethodOptions): + init(params?: Params$Resource$Paws$Init, options?: MethodOptions): AxiosPromise; init( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Paws$Init, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; init( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Paws$Init, + callback: BodyResponseCallback): void; + init(callback: BodyResponseCallback): void; + init( + paramsOrCallback?: Params$Resource$Paws$Init| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Paws$Init; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Paws$Init; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1328,29 +1371,45 @@ export namespace spectrum_v1explorer { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - notifySpectrumUse(params?: any, options?: MethodOptions): + notifySpectrumUse( + params?: Params$Resource$Paws$Notifyspectrumuse, + options?: MethodOptions): AxiosPromise; notifySpectrumUse( - params?: any, - options?: MethodOptions| + params: Params$Resource$Paws$Notifyspectrumuse, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + notifySpectrumUse( + params: Params$Resource$Paws$Notifyspectrumuse, + callback: BodyResponseCallback): + void; + notifySpectrumUse( + callback: BodyResponseCallback): void; notifySpectrumUse( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Paws$Notifyspectrumuse| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Paws$Notifyspectrumuse; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Paws$Notifyspectrumuse; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1388,28 +1447,38 @@ export namespace spectrum_v1explorer { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - register(params?: any, options?: MethodOptions): + register(params?: Params$Resource$Paws$Register, options?: MethodOptions): AxiosPromise; register( - params?: any, - options?: MethodOptions| + params: Params$Resource$Paws$Register, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + register( + params: Params$Resource$Paws$Register, + callback: BodyResponseCallback): void; + register(callback: BodyResponseCallback): void; register( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Paws$Register| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Paws$Register; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Paws$Register; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1447,28 +1516,41 @@ export namespace spectrum_v1explorer { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - verifyDevice(params?: any, options?: MethodOptions): - AxiosPromise; verifyDevice( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Paws$Verifydevice, + options?: MethodOptions): AxiosPromise; + verifyDevice( + params: Params$Resource$Paws$Verifydevice, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; verifyDevice( - params?: any, - options?: MethodOptions| + params: Params$Resource$Paws$Verifydevice, + callback: BodyResponseCallback): void; + verifyDevice( + callback: BodyResponseCallback): void; + verifyDevice( + paramsOrCallback?: Params$Resource$Paws$Verifydevice| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Paws$Verifydevice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Paws$Verifydevice; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1490,4 +1572,41 @@ export namespace spectrum_v1explorer { } } } + + export interface Params$Resource$Paws$Getspectrum { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Paws$Getspectrumbatch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Paws$Init { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Paws$Notifyspectrumuse { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Paws$Register { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Paws$Verifydevice { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } } diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index e2f38c6b5c8..b45dfd27b28 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace speech_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Speech API * @@ -75,12 +78,12 @@ export namespace speech_v1 { /** * *Required* The audio data to be recognized. */ - audio: Schema$RecognitionAudio; + audio?: Schema$RecognitionAudio; /** * *Required* Provides information to the recognizer that specifies how to * process the request. */ - config: Schema$RecognitionConfig; + config?: Schema$RecognitionConfig; } /** * This resource represents a long-running operation that is the result of a @@ -92,24 +95,24 @@ export namespace speech_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -119,7 +122,7 @@ export namespace speech_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Contains audio data in the encoding specified in the `RecognitionConfig`. @@ -133,7 +136,7 @@ export namespace speech_v1 { * as with all bytes fields, protobuffers use a pure binary representation, * whereas JSON representations use base64. */ - content: string; + content?: string; /** * URI that points to a file that contains audio data bytes as specified in * `RecognitionConfig`. Currently, only Google Cloud Storage URIs are @@ -142,7 +145,7 @@ export namespace speech_v1 { * google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request * URIs](https://cloud.google.com/storage/docs/reference-uris). */ - uri: string; + uri?: string; } /** * Provides information to the recognizer that specifies how to process the @@ -154,13 +157,13 @@ export namespace speech_v1 { * start and end time offsets (timestamps) for those words. If `false`, no * word-level time offset information is returned. The default is `false`. */ - enableWordTimeOffsets: boolean; + enableWordTimeOffsets?: boolean; /** * Encoding of audio data sent in all `RecognitionAudio` messages. This * field is optional for `FLAC` and `WAV` audio files and required for all * other audio formats. For details, see AudioEncoding. */ - encoding: string; + encoding?: string; /** * *Required* The language of the supplied audio as a * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. @@ -168,7 +171,7 @@ export namespace speech_v1 { * Support](https://cloud.google.com/speech/docs/languages) for a list of * the currently supported language codes. */ - languageCode: string; + languageCode?: string; /** * *Optional* Maximum number of recognition hypotheses to be returned. * Specifically, the maximum number of `SpeechRecognitionAlternative` @@ -177,14 +180,14 @@ export namespace speech_v1 { * or `1` will return a maximum of one. If omitted, will return a maximum of * one. */ - maxAlternatives: number; + maxAlternatives?: number; /** * *Optional* If set to `true`, the server will attempt to filter out * profanities, replacing all but the initial character in each filtered * word with asterisks, e.g. "f***". If set to `false` or omitted, * profanities won't be filtered out. */ - profanityFilter: boolean; + profanityFilter?: boolean; /** * Sample rate in Hertz of the audio data sent in all `RecognitionAudio` * messages. Valid values are: 8000-48000. 16000 is optimal. For best @@ -194,11 +197,11 @@ export namespace speech_v1 { * audio files and required for all other audio formats. For details, see * AudioEncoding. */ - sampleRateHertz: number; + sampleRateHertz?: number; /** * *Optional* A means to provide context to assist the speech recognition. */ - speechContexts: Schema$SpeechContext[]; + speechContexts?: Schema$SpeechContext[]; } /** * The top-level message sent by the client for the `Recognize` method. @@ -207,12 +210,12 @@ export namespace speech_v1 { /** * *Required* The audio data to be recognized. */ - audio: Schema$RecognitionAudio; + audio?: Schema$RecognitionAudio; /** * *Required* Provides information to the recognizer that specifies how to * process the request. */ - config: Schema$RecognitionConfig; + config?: Schema$RecognitionConfig; } /** * The only message returned to the client by the `Recognize` method. It @@ -224,7 +227,7 @@ export namespace speech_v1 { * Output only. Sequential list of transcription results corresponding to * sequential portions of audio. */ - results: Schema$SpeechRecognitionResult[]; + results?: Schema$SpeechRecognitionResult[]; } /** * Provides "hints" to the speech recognizer to favor specific words @@ -240,7 +243,7 @@ export namespace speech_v1 { * vocabulary of the recognizer. See [usage * limits](https://cloud.google.com/speech/limits#content). */ - phrases: string[]; + phrases?: string[]; } /** * Alternative hypotheses (a.k.a. n-best list). @@ -255,16 +258,17 @@ export namespace speech_v1 { * it to be always provided. The default of 0.0 is a sentinel value * indicating `confidence` was not set. */ - confidence: number; + confidence?: number; /** * Output only. Transcript text representing the words that the user spoke. */ - transcript: string; + transcript?: string; /** * Output only. A list of word-specific information for each recognized - * word. + * word. Note: When enable_speaker_diarization is true, you will see all the + * words from the beginning of the audio. */ - words: Schema$WordInfo[]; + words?: Schema$WordInfo[]; } /** * A speech recognition result corresponding to a portion of the audio. @@ -276,7 +280,7 @@ export namespace speech_v1 { * in terms of accuracy, with the top (first) alternative being the most * probable, as ranked by the recognizer. */ - alternatives: Schema$SpeechRecognitionAlternative[]; + alternatives?: Schema$SpeechRecognitionAlternative[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -318,18 +322,18 @@ export namespace speech_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Word-specific information for recognized words. @@ -341,20 +345,30 @@ export namespace speech_v1 { * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - endTime: string; + endTime?: string; + /** + * Output only. A distinct integer value is assigned for every speaker + * within the audio. This field specifies which one of those speakers was + * detected to have spoken this word. Value ranges from '1' to + * diarization_speaker_count. speaker_tag is set if + * enable_speaker_diarization = 'true' and only in the top + * alternative. + */ + speakerTag?: number; /** * Output only. Time offset relative to the beginning of the audio, and * corresponding to the start of the spoken word. This field is only set if * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - startTime: string; + startTime?: string; /** * Output only. The word corresponding to this set of information. */ - word: string; + word?: string; } + export class Resource$Operations { root: Speech; constructor(root: Speech) { @@ -381,23 +395,34 @@ export namespace speech_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign( @@ -420,6 +445,19 @@ export namespace speech_v1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Speech { root: Speech; constructor(root: Speech) { @@ -447,26 +485,40 @@ export namespace speech_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - longrunningrecognize(params?: any, options?: MethodOptions): - AxiosPromise; longrunningrecognize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Speech$Longrunningrecognize, + options?: MethodOptions): AxiosPromise; longrunningrecognize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Speech$Longrunningrecognize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + longrunningrecognize( + params: Params$Resource$Speech$Longrunningrecognize, + callback: BodyResponseCallback): void; + longrunningrecognize(callback: BodyResponseCallback): + void; + longrunningrecognize( + paramsOrCallback?: Params$Resource$Speech$Longrunningrecognize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Speech$Longrunningrecognize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Speech$Longrunningrecognize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign( @@ -502,26 +554,38 @@ export namespace speech_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - recognize(params?: any, options?: MethodOptions): - AxiosPromise; recognize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Speech$Recognize, + options?: MethodOptions): AxiosPromise; + recognize( + params: Params$Resource$Speech$Recognize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + recognize( + params: Params$Resource$Speech$Recognize, + callback: BodyResponseCallback): void; + recognize(callback: BodyResponseCallback): void; recognize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Speech$Recognize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Speech$Recognize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Speech$Recognize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign( @@ -543,4 +607,27 @@ export namespace speech_v1 { } } } + + export interface Params$Resource$Speech$Longrunningrecognize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$LongRunningRecognizeRequest; + } + export interface Params$Resource$Speech$Recognize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$RecognizeRequest; + } } diff --git a/src/apis/speech/v1beta1.ts b/src/apis/speech/v1beta1.ts index 33a2b4cac1a..33a14543ea4 100644 --- a/src/apis/speech/v1beta1.ts +++ b/src/apis/speech/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace speech_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Speech API * @@ -74,12 +77,12 @@ export namespace speech_v1beta1 { /** * *Required* The audio data to be recognized. */ - audio: Schema$RecognitionAudio; + audio?: Schema$RecognitionAudio; /** * *Required* Provides information to the recognizer that specifies how to * process the request. */ - config: Schema$RecognitionConfig; + config?: Schema$RecognitionConfig; } /** * This resource represents a long-running operation that is the result of a @@ -91,24 +94,24 @@ export namespace speech_v1beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -118,7 +121,7 @@ export namespace speech_v1beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Contains audio data in the encoding specified in the `RecognitionConfig`. @@ -132,7 +135,7 @@ export namespace speech_v1beta1 { * as with all bytes fields, protobuffers use a pure binary representation, * whereas JSON representations use base64. */ - content: string; + content?: string; /** * URI that points to a file that contains audio data bytes as specified in * `RecognitionConfig`. Currently, only Google Cloud Storage URIs are @@ -141,7 +144,7 @@ export namespace speech_v1beta1 { * google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request * URIs](https://cloud.google.com/storage/docs/reference-uris). */ - uri: string; + uri?: string; } /** * Provides information to the recognizer that specifies how to process the @@ -152,7 +155,7 @@ export namespace speech_v1beta1 { * *Required* Encoding of audio data sent in all `RecognitionAudio` * messages. */ - encoding: string; + encoding?: string; /** * *Optional* The language of the supplied audio as a BCP-47 language tag. * Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt @@ -160,7 +163,7 @@ export namespace speech_v1beta1 { * Support](https://cloud.google.com/speech/docs/languages) for a list of * the currently supported language codes. */ - languageCode: string; + languageCode?: string; /** * *Optional* Maximum number of recognition hypotheses to be returned. * Specifically, the maximum number of `SpeechRecognitionAlternative` @@ -169,14 +172,14 @@ export namespace speech_v1beta1 { * or `1` will return a maximum of one. If omitted, will return a maximum of * one. */ - maxAlternatives: number; + maxAlternatives?: number; /** * *Optional* If set to `true`, the server will attempt to filter out * profanities, replacing all but the initial character in each filtered * word with asterisks, e.g. "f***". If set to `false` or omitted, * profanities won't be filtered out. */ - profanityFilter: boolean; + profanityFilter?: boolean; /** * *Required* Sample rate in Hertz of the audio data sent in all * `RecognitionAudio` messages. Valid values are: 8000-48000. 16000 is @@ -184,11 +187,11 @@ export namespace speech_v1beta1 { * 16000 Hz. If that's not possible, use the native sample rate of the * audio source (instead of re-sampling). */ - sampleRate: number; + sampleRate?: number; /** * *Optional* A means to provide context to assist the speech recognition. */ - speechContext: Schema$SpeechContext; + speechContext?: Schema$SpeechContext; } /** * Provides "hints" to the speech recognizer to favor specific words @@ -204,7 +207,7 @@ export namespace speech_v1beta1 { * vocabulary of the recognizer. See [usage * limits](https://cloud.google.com/speech/limits#content). */ - phrases: string[]; + phrases?: string[]; } /** * Alternative hypotheses (a.k.a. n-best list). @@ -219,11 +222,11 @@ export namespace speech_v1beta1 { * set, in any of the results. The default of 0.0 is a sentinel value * indicating `confidence` was not set. */ - confidence: number; + confidence?: number; /** * *Output-only* Transcript text representing the words that the user spoke. */ - transcript: string; + transcript?: string; } /** * A speech recognition result corresponding to a portion of the audio. @@ -233,7 +236,7 @@ export namespace speech_v1beta1 { * *Output-only* May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). */ - alternatives: Schema$SpeechRecognitionAlternative[]; + alternatives?: Schema$SpeechRecognitionAlternative[]; } /** * The `Status` type defines a logical error model that is suitable for @@ -275,18 +278,18 @@ export namespace speech_v1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * The top-level message sent by the client for the `SyncRecognize` method. @@ -295,12 +298,12 @@ export namespace speech_v1beta1 { /** * *Required* The audio data to be recognized. */ - audio: Schema$RecognitionAudio; + audio?: Schema$RecognitionAudio; /** * *Required* Provides information to the recognizer that specifies how to * process the request. */ - config: Schema$RecognitionConfig; + config?: Schema$RecognitionConfig; } /** * The only message returned to the client by `SyncRecognize`. method. It @@ -312,9 +315,10 @@ export namespace speech_v1beta1 { * *Output-only* Sequential list of transcription results corresponding to * sequential portions of audio. */ - results: Schema$SpeechRecognitionResult[]; + results?: Schema$SpeechRecognitionResult[]; } + export class Resource$Operations { root: Speech; constructor(root: Speech) { @@ -341,23 +345,34 @@ export namespace speech_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign( @@ -380,6 +395,19 @@ export namespace speech_v1beta1 { } } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Speech { root: Speech; constructor(root: Speech) { @@ -408,26 +436,39 @@ export namespace speech_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - asyncrecognize(params?: any, options?: MethodOptions): - AxiosPromise; asyncrecognize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Speech$Asyncrecognize, + options?: MethodOptions): AxiosPromise; + asyncrecognize( + params: Params$Resource$Speech$Asyncrecognize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; asyncrecognize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Speech$Asyncrecognize, + callback: BodyResponseCallback): void; + asyncrecognize(callback: BodyResponseCallback): void; + asyncrecognize( + paramsOrCallback?: Params$Resource$Speech$Asyncrecognize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Speech$Asyncrecognize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Speech$Asyncrecognize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign( @@ -463,28 +504,41 @@ export namespace speech_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - syncrecognize(params?: any, options?: MethodOptions): - AxiosPromise; syncrecognize( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Speech$Syncrecognize, + options?: MethodOptions): AxiosPromise; + syncrecognize( + params: Params$Resource$Speech$Syncrecognize, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + syncrecognize( + params: Params$Resource$Speech$Syncrecognize, + callback: BodyResponseCallback): void; + syncrecognize(callback: BodyResponseCallback): + void; syncrecognize( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Speech$Syncrecognize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Speech$Syncrecognize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Speech$Syncrecognize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; const parameters = { options: Object.assign( @@ -506,4 +560,27 @@ export namespace speech_v1beta1 { } } } + + export interface Params$Resource$Speech$Asyncrecognize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$AsyncRecognizeRequest; + } + export interface Params$Resource$Speech$Syncrecognize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SyncRecognizeRequest; + } } diff --git a/src/apis/sqladmin/v1beta3.ts b/src/apis/sqladmin/v1beta3.ts index 7f469769ab9..f6b67362756 100644 --- a/src/apis/sqladmin/v1beta3.ts +++ b/src/apis/sqladmin/v1beta3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace sqladmin_v1beta3 { + export interface Options extends GlobalOptions { version: 'v1beta3'; } + /** * Cloud SQL Administration API * @@ -84,31 +87,31 @@ export namespace sqladmin_v1beta3 { * Whether binary log is enabled. If backup configuration is disabled, * binary log must be disabled as well. */ - binaryLogEnabled: boolean; + binaryLogEnabled?: boolean; /** * Whether this configuration is enabled. */ - enabled: boolean; + enabled?: boolean; /** * Identifier for this configuration. This gets generated automatically when * a backup configuration is created. */ - id: string; + id?: string; /** * This is always sql#backupConfiguration. */ - kind: string; + kind?: string; /** * Whether replication log archiving is enabled. Replication log archiving * is required for the point-in-time recovery (PITR) feature. PostgreSQL * instances only. */ - replicationLogArchivingEnabled: boolean; + replicationLogArchivingEnabled?: boolean; /** * Start time for the daily backup configuration in UTC timezone in the 24 * hour format - HH:MM. */ - startTime: string; + startTime?: string; } /** * A database instance backup run resource. @@ -117,44 +120,44 @@ export namespace sqladmin_v1beta3 { /** * Backup Configuration identifier. */ - backupConfiguration: string; + backupConfiguration?: string; /** * The due time of this run in UTC timezone in RFC 3339 format, for example * 2012-11-15T16:19:00.094Z. */ - dueTime: string; + dueTime?: string; /** * The time the backup operation completed in UTC timezone in RFC 3339 * format, for example 2012-11-15T16:19:00.094Z. */ - endTime: string; + endTime?: string; /** * The time the run was enqueued in UTC timezone in RFC 3339 format, for * example 2012-11-15T16:19:00.094Z. */ - enqueuedTime: string; + enqueuedTime?: string; /** * Information about why the backup operation failed. This is only present * if the run has the FAILED status. */ - error: Schema$OperationError; + error?: Schema$OperationError; /** * Name of the database instance. */ - instance: string; + instance?: string; /** * This is always sql#backupRun. */ - kind: string; + kind?: string; /** * The time the backup operation actually started in UTC timezone in RFC * 3339 format, for example 2012-11-15T16:19:00.094Z. */ - startTime: string; + startTime?: string; /** * The status of this run. */ - status: string; + status?: string; } /** * Backup run list results. @@ -164,16 +167,16 @@ export namespace sqladmin_v1beta3 { * A list of backup runs in reverse chronological order of the enqueued * time. */ - items: Schema$BackupRun[]; + items?: Schema$BackupRun[]; /** * This is always sql#backupRunsList. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Binary log coordinates. @@ -182,15 +185,15 @@ export namespace sqladmin_v1beta3 { /** * Name of the binary log file for a Cloud SQL instance. */ - binLogFileName: string; + binLogFileName?: string; /** * Position (offset) within the binary log file. */ - binLogPosition: string; + binLogPosition?: string; /** * This is always sql#binLogCoordinates. */ - kind: string; + kind?: string; } /** * Database instance clone context. @@ -201,25 +204,25 @@ export namespace sqladmin_v1beta3 { * the source instance should be cloned. If not specified, the source * instance is cloned up to the most recent binary log coordinates. */ - binLogCoordinates: Schema$BinLogCoordinates; + binLogCoordinates?: Schema$BinLogCoordinates; /** * Name of the Cloud SQL instance to be created as a clone. */ - destinationInstanceName: string; + destinationInstanceName?: string; /** * This is always sql#cloneContext. */ - kind: string; + kind?: string; /** * The epoch timestamp, in milliseconds, of the time to which a * point-in-time recovery (PITR) is performed. PostgreSQL instances only. * For MySQL instances, use the binLogCoordinates property. */ - pitrTimestampMs: string; + pitrTimestampMs?: string; /** * Name of the Cloud SQL instance to be cloned. */ - sourceInstanceName: string; + sourceInstanceName?: string; } /** * MySQL flags for Cloud SQL instances. @@ -233,12 +236,12 @@ export namespace sqladmin_v1beta3 { * well as the official MySQL documentation for server options and system * variables. */ - name: string; + name?: string; /** * The value of the flag. Booleans should be set to on for true and off for * false. This field must be omitted if the flag doesn't take a value. */ - value: string; + value?: string; } /** * A Cloud SQL instance resource. @@ -247,79 +250,79 @@ export namespace sqladmin_v1beta3 { /** * Connection name of the Cloud SQL instance used in connection strings. */ - connectionName: string; + connectionName?: string; /** * The current disk usage of the instance in bytes. */ - currentDiskSize: string; + currentDiskSize?: string; /** * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. * Defaults to MYSQL_5_5. The databaseVersion cannot be changed after * instance creation. */ - databaseVersion: string; + databaseVersion?: string; /** * HTTP 1.1 Entity tag for the resource. */ - etag: string; + etag?: string; /** * Name of the Cloud SQL instance. This does not include the project ID. */ - instance: string; + instance?: string; /** * The instance type. This can be one of the following. CLOUD_SQL_INSTANCE: * Regular Cloud SQL instance. READ_REPLICA_INSTANCE: Cloud SQL instance * acting as a read-replica. */ - instanceType: string; + instanceType?: string; /** * The assigned IP addresses for the instance. */ - ipAddresses: Schema$IpMapping[]; + ipAddresses?: Schema$IpMapping[]; /** * The IPv6 address assigned to the instance. */ - ipv6Address: string; + ipv6Address?: string; /** * This is always sql#instance. */ - kind: string; + kind?: string; /** * The name of the instance which will act as master in the replication * setup. */ - masterInstanceName: string; + masterInstanceName?: string; /** * The maximum disk size of the instance in bytes. */ - maxDiskSize: string; + maxDiskSize?: string; /** * The project ID of the project containing the Cloud SQL instance. The * Google apps domain is prefixed if applicable. */ - project: string; + project?: string; /** * The geographical region. Can be us-central, asia-east1 or europe-west1. * Defaults to us-central. The region can not be changed after instance * creation. */ - region: string; + region?: string; /** * The replicas of the instance. */ - replicaNames: string[]; + replicaNames?: string[]; /** * SSL configuration. */ - serverCaCert: Schema$SslCert; + serverCaCert?: Schema$SslCert; /** * The service account email address assigned to the instance. */ - serviceAccountEmailAddress: string; + serviceAccountEmailAddress?: string; /** * The user settings. */ - settings: Schema$Settings; + settings?: Schema$Settings; /** * The current serving state of the Cloud SQL instance. This can be one of * the following. RUNNABLE: The instance is running, or is ready to run when @@ -328,7 +331,7 @@ export namespace sqladmin_v1beta3 { * MAINTENANCE: The instance is down for maintenance. UNKNOWN_STATE: The * state of the instance is unknown. */ - state: string; + state?: string; } /** * Database instance export context. @@ -338,23 +341,23 @@ export namespace sqladmin_v1beta3 { * Databases (for example, guestbook) from which the export is made. If * unspecified, all databases are exported. */ - database: string[]; + database?: string[]; /** * This is always sql#exportContext. */ - kind: string; + kind?: string; /** * Tables to export, or that were exported, from the specified database. If * you specify tables, specify one and only one database. */ - table: string[]; + table?: string[]; /** * The path to the file in Google Cloud Storage where the export will be * stored, or where it was already stored. The URI is in the form * gs://bucketName/fileName. If the file already exists, the operation * fails. If the filename ends with .gz, the contents are compressed. */ - uri: string; + uri?: string; } /** * A Google Cloud SQL service flag resource. @@ -363,35 +366,35 @@ export namespace sqladmin_v1beta3 { /** * For STRING flags, a list of strings that the value can be set to. */ - allowedStringValues: string[]; + allowedStringValues?: string[]; /** * The database version this flag applies to. Currently this can only be * [MYSQL_5_5]. */ - appliesTo: string[]; + appliesTo?: string[]; /** * This is always sql#flag. */ - kind: string; + kind?: string; /** * For INTEGER flags, the maximum allowed value. */ - maxValue: string; + maxValue?: string; /** * For INTEGER flags, the minimum allowed value. */ - minValue: string; + minValue?: string; /** * This is the name of the flag. Flag names always use underscores, not * hyphens, e.g. max_allowed_packet */ - name: string; + name?: string; /** * The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER * or NONE. NONE is used for flags which do not take a value, such as * skip_grant_tables. */ - type: string; + type?: string; } /** * Flags list response. @@ -400,11 +403,11 @@ export namespace sqladmin_v1beta3 { /** * List of flags. */ - items: Schema$Flag[]; + items?: Schema$Flag[]; /** * This is always sql#flagsList. */ - kind: string; + kind?: string; } /** * Database instance import context. @@ -415,17 +418,17 @@ export namespace sqladmin_v1beta3 { * set, it is assumed that the database is specified in the file to be * imported. */ - database: string; + database?: string; /** * This is always sql#importContext. */ - kind: string; + kind?: string; /** * A path to the MySQL dump file in Google Cloud Storage from which the * import is made. The URI is in the form gs://bucketName/fileName. * Compressed gzip files (.gz) are also supported. */ - uri: string[]; + uri?: string[]; } /** * An Operations resource contains information about database instance @@ -438,58 +441,58 @@ export namespace sqladmin_v1beta3 { * The time this operation finished in UTC timezone in RFC 3339 format, for * example 2012-11-15T16:19:00.094Z. */ - endTime: string; + endTime?: string; /** * The time this operation was enqueued in UTC timezone in RFC 3339 format, * for example 2012-11-15T16:19:00.094Z. */ - enqueuedTime: string; + enqueuedTime?: string; /** * The error(s) encountered by this operation. Only set if the operation * results in an error. */ - error: Schema$OperationError[]; + error?: Schema$OperationError[]; /** * The context for export operation, if applicable. */ - exportContext: Schema$ExportContext; + exportContext?: Schema$ExportContext; /** * The context for import operation, if applicable. */ - importContext: Schema$ImportContext; + importContext?: Schema$ImportContext; /** * Name of the database instance. */ - instance: string; + instance?: string; /** * This is always sql#instanceOperation. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; /** * The type of the operation. Valid values are CREATE, DELETE, UPDATE, * RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME. */ - operationType: string; + operationType?: string; /** * The time this operation actually started in UTC timezone in RFC 3339 * format, for example 2012-11-15T16:19:00.094Z. */ - startTime: string; + startTime?: string; /** * The state of an operation. Valid values are PENDING, RUNNING, DONE, * UNKNOWN. */ - state: string; + state?: string; /** * The email address of the user who initiated this operation. */ - userEmailAddress: string; + userEmailAddress?: string; } /** * Database instance clone request. @@ -498,7 +501,7 @@ export namespace sqladmin_v1beta3 { /** * Contains details about the clone operation. */ - cloneContext: Schema$CloneContext; + cloneContext?: Schema$CloneContext; } /** * Database instance clone response. @@ -507,13 +510,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesClone. */ - kind: string; + kind?: string; /** * An unique identifier for the operation associated with the cloned * instance. You can use this identifier to retrieve the Operations * resource, which has information about the operation. */ - operation: string; + operation?: string; } /** * Database instance delete response. @@ -522,13 +525,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesDelete. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance set root password request. @@ -537,7 +540,7 @@ export namespace sqladmin_v1beta3 { /** * Set Root Password Context. */ - setRootPasswordContext: Schema$SetRootPasswordContext; + setRootPasswordContext?: Schema$SetRootPasswordContext; } /** * Database instance export request. @@ -546,7 +549,7 @@ export namespace sqladmin_v1beta3 { /** * Contains details about the export operation. */ - exportContext: Schema$ExportContext; + exportContext?: Schema$ExportContext; } /** * Database instance export response. @@ -555,13 +558,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesExport. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance import request. @@ -570,7 +573,7 @@ export namespace sqladmin_v1beta3 { /** * Contains details about the import operation. */ - importContext: Schema$ImportContext; + importContext?: Schema$ImportContext; } /** * Database instance import response. @@ -579,13 +582,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesImport. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance insert response. @@ -594,13 +597,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesInsert. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instances list response. @@ -609,16 +612,16 @@ export namespace sqladmin_v1beta3 { /** * List of database instance resources. */ - items: Schema$DatabaseInstance[]; + items?: Schema$DatabaseInstance[]; /** * This is always sql#instancesList. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Database promote read replica response. @@ -627,13 +630,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesPromoteReplica. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance resetSslConfig response. @@ -642,7 +645,7 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesResetSslConfig. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about @@ -650,7 +653,7 @@ export namespace sqladmin_v1beta3 { * server certificate will be created. Does not take effect until the next * instance restart. */ - operation: string; + operation?: string; } /** * Database instance restart response. @@ -659,13 +662,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesRestart. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance restore backup response. @@ -674,13 +677,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesRestoreBackup. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance set root password response. @@ -689,13 +692,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesSetRootPassword. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * Database instance update response. @@ -704,12 +707,12 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#instancesUpdate. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve information about the operation. */ - operation: string; + operation?: string; } /** * IP Management configuration. @@ -720,19 +723,19 @@ export namespace sqladmin_v1beta3 { * using the IP. In CIDR notation, also known as 'slash' notation * (e.g. 192.168.100.0/24). */ - authorizedNetworks: string[]; + authorizedNetworks?: string[]; /** * Whether the instance should be assigned an IP address or not. */ - enabled: boolean; + enabled?: boolean; /** * This is always sql#ipConfiguration. */ - kind: string; + kind?: string; /** * Whether SSL connections over IP should be enforced or not. */ - requireSsl: boolean; + requireSsl?: boolean; } /** * Database instance IP Mapping. @@ -741,13 +744,13 @@ export namespace sqladmin_v1beta3 { /** * The IP address assigned. */ - ipAddress: string; + ipAddress?: string; /** * The due time for this IP to be retired in RFC 3339 format, for example * 2012-11-15T16:19:00.094Z. This field is only available when the IP is * scheduled to be retired. */ - timeToRetire: string; + timeToRetire?: string; } /** * Preferred location. This specifies where a Cloud SQL instance should @@ -761,16 +764,16 @@ export namespace sqladmin_v1beta3 { * The App Engine application to follow, it must be in the same region as * the Cloud SQL instance. */ - followGaeApplication: string; + followGaeApplication?: string; /** * This is always sql#locationPreference. */ - kind: string; + kind?: string; /** * The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, * etc.). */ - zone: string; + zone?: string; } /** * Database instance operation error. @@ -779,11 +782,11 @@ export namespace sqladmin_v1beta3 { /** * Identifies the specific error that occurred. */ - code: string; + code?: string; /** * This is always sql#operationError. */ - kind: string; + kind?: string; } /** * Database instance list operations response. @@ -792,16 +795,16 @@ export namespace sqladmin_v1beta3 { /** * List of operation resources. */ - items: Schema$InstanceOperation[]; + items?: Schema$InstanceOperation[]; /** * This is always sql#operationsList. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Database instance set root password context. @@ -810,11 +813,11 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#setRootUserContext. */ - kind: string; + kind?: string; /** * The password for the root user. */ - password: string; + password?: string; } /** * Database instance settings. @@ -827,62 +830,62 @@ export namespace sqladmin_v1beta3 { * always be active. NEVER: The instance should never be activated. * ON_DEMAND: The instance is activated upon receiving requests. */ - activationPolicy: string; + activationPolicy?: string; /** * The App Engine app IDs that can access this instance. */ - authorizedGaeApplications: string[]; + authorizedGaeApplications?: string[]; /** * The daily backup configuration for the instance. */ - backupConfiguration: Schema$BackupConfiguration[]; + backupConfiguration?: Schema$BackupConfiguration[]; /** * The database flags passed to the instance at startup. */ - databaseFlags: Schema$DatabaseFlags[]; + databaseFlags?: Schema$DatabaseFlags[]; /** * Configuration specific to read replica instance. Indicates whether * replication is enabled or not. */ - databaseReplicationEnabled: boolean; + databaseReplicationEnabled?: boolean; /** * The settings for IP Management. This allows to enable or disable the * instance IP and manage which external networks can connect to the * instance. */ - ipConfiguration: Schema$IpConfiguration; + ipConfiguration?: Schema$IpConfiguration; /** * This is always sql#settings. */ - kind: string; + kind?: string; /** * The location preference settings. This allows the instance to be located * as near as possible to either an App Engine app or GCE zone for better * performance. */ - locationPreference: Schema$LocationPreference; + locationPreference?: Schema$LocationPreference; /** * The pricing plan for this instance. This can be either PER_USE or * PACKAGE. */ - pricingPlan: string; + pricingPlan?: string; /** * The type of replication this instance uses. This can be either * ASYNCHRONOUS or SYNCHRONOUS. */ - replicationType: string; + replicationType?: string; /** * The version of instance settings. This is a required field for update * method to make sure concurrent updates are handled properly. During * update, use the most recent settingsVersion value for this instance and * do not try to update this value. */ - settingsVersion: string; + settingsVersion?: string; /** * The tier of service for this instance, for example D1, D2. For more * information, see pricing. */ - tier: string; + tier?: string; } /** * SslCerts Resource @@ -891,35 +894,35 @@ export namespace sqladmin_v1beta3 { /** * PEM representation. */ - cert: string; + cert?: string; /** * Serial number, as extracted from the certificate. */ - certSerialNumber: string; + certSerialNumber?: string; /** * User supplied name. Constrained to [a-zA-Z.-_ ]+. */ - commonName: string; + commonName?: string; /** * Time when the certificate was created. */ - createTime: string; + createTime?: string; /** * Time when the certificate expires. */ - expirationTime: string; + expirationTime?: string; /** * Name of the database instance. */ - instance: string; + instance?: string; /** * This is always sql#sslCert. */ - kind: string; + kind?: string; /** * Sha1 Fingerprint. */ - sha1Fingerprint: string; + sha1Fingerprint?: string; } /** * SslCertDetail. @@ -928,12 +931,12 @@ export namespace sqladmin_v1beta3 { /** * The public information about the cert. */ - certInfo: Schema$SslCert; + certInfo?: Schema$SslCert; /** * The private key for the client cert, in pem format. Keep private in order * to protect your security. */ - certPrivateKey: string; + certPrivateKey?: string; } /** * SslCert delete response. @@ -942,13 +945,13 @@ export namespace sqladmin_v1beta3 { /** * This is always sql#sslCertsDelete. */ - kind: string; + kind?: string; /** * An identifier that uniquely identifies the operation. You can use this * identifier to retrieve the Operations resource that has information about * the operation. */ - operation: string; + operation?: string; } /** * SslCerts insert request. @@ -959,7 +962,7 @@ export namespace sqladmin_v1beta3 { * for this instance. New certificates will not be usable until the instance * is restarted. */ - commonName: string; + commonName?: string; } /** * SslCert insert response. @@ -969,17 +972,17 @@ export namespace sqladmin_v1beta3 { * The new client certificate and private key. The new certificate will not * work until the instance is restarted. */ - clientCert: Schema$SslCertDetail; + clientCert?: Schema$SslCertDetail; /** * This is always sql#sslCertsInsert. */ - kind: string; + kind?: string; /** * The server Certificate Authority's certificate. If this is missing * you can force a new one to be generated by calling resetSslConfig method * on instances resource.. */ - serverCaCert: Schema$SslCert; + serverCaCert?: Schema$SslCert; } /** * SslCerts list response. @@ -988,11 +991,11 @@ export namespace sqladmin_v1beta3 { /** * List of client certificates for the instance. */ - items: Schema$SslCert[]; + items?: Schema$SslCert[]; /** * This is always sql#sslCertsList. */ - kind: string; + kind?: string; } /** * A Google Cloud SQL service tier resource. @@ -1001,24 +1004,24 @@ export namespace sqladmin_v1beta3 { /** * The maximum disk size of this tier in bytes. */ - DiskQuota: string; + DiskQuota?: string; /** * This is always sql#tier. */ - kind: string; + kind?: string; /** * The maximum RAM usage of this tier in bytes. */ - RAM: string; + RAM?: string; /** * The applicable regions for this tier. */ - region: string[]; + region?: string[]; /** * An identifier for the service tier, for example D1, D2 etc. For related * information, see Pricing. */ - tier: string; + tier?: string; } /** * Tiers list response. @@ -1027,13 +1030,14 @@ export namespace sqladmin_v1beta3 { /** * List of tiers. */ - items: Schema$Tier[]; + items?: Schema$Tier[]; /** * This is always sql#tiersList. */ - kind: string; + kind?: string; } + export class Resource$Backupruns { root: Sqladmin; constructor(root: Sqladmin) { @@ -1062,23 +1066,34 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Backupruns$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Backupruns$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backupruns$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backupruns$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backupruns$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1120,28 +1135,38 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Backupruns$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backupruns$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Backupruns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Backupruns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backupruns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1166,6 +1191,63 @@ export namespace sqladmin_v1beta3 { } } + export interface Params$Resource$Backupruns$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier for the backup configuration. This gets generated + * automatically when a backup configuration is created. + */ + backupConfiguration?: string; + /** + * The start time of the four-hour backup window. The backup can occur any + * time in the window. The time is in RFC 3339 format, for example + * 2012-11-15T16:19:00.094Z. + */ + dueTime?: string; + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + export interface Params$Resource$Backupruns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Identifier for the backup configuration. This gets generated + * automatically when a backup configuration is created. + */ + backupConfiguration?: string; + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Maximum number of backup runs per response. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + + export class Resource$Flags { root: Sqladmin; constructor(root: Sqladmin) { @@ -1190,26 +1272,37 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Flags$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Flags$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Flags$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Flags$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Flags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Flags$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1232,6 +1325,14 @@ export namespace sqladmin_v1beta3 { } } + export interface Params$Resource$Flags$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Instances { root: Sqladmin; constructor(root: Sqladmin) { @@ -1257,28 +1358,38 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clone(params?: any, options?: MethodOptions): + clone(params?: Params$Resource$Instances$Clone, options?: MethodOptions): AxiosPromise; clone( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Clone, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + clone( + params: Params$Resource$Instances$Clone, + callback: BodyResponseCallback): void; + clone(callback: BodyResponseCallback): void; clone( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Clone| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Clone; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Clone; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1314,28 +1425,39 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Instances$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): + void; + delete( + paramsOrCallback?: Params$Resource$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1374,28 +1496,39 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): + export(params?: Params$Resource$Instances$Export, options?: MethodOptions): AxiosPromise; export( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Export, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + export( + params: Params$Resource$Instances$Export, + callback: BodyResponseCallback): void; + export(callback: BodyResponseCallback): + void; export( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1433,24 +1566,34 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instances$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1489,19 +1632,28 @@ export namespace sqladmin_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Instances$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Instances$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Instances$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Instances$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Import; + options = {}; + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + '/sql/v1beta3/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['project', 'instance'], pathParams: ['instance', 'project'], context: this.getRoot()}; if(callback) { + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/sql/v1beta3/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['project', 'instance'], pathParams: ['instance', 'project'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { + } else { return createAPIRequest(parameters); - }} + }} /** @@ -1512,32 +1664,43 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + insert(params?: Params$Resource$Instances$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): + void; + insert( + paramsOrCallback?: Params$Resource$Instances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1575,28 +1738,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1634,28 +1807,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Patch, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Instances$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1693,30 +1876,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; promoteReplica( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Promotereplica, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + promoteReplica( + params: Params$Resource$Instances$Promotereplica, + callback: BodyResponseCallback): + void; promoteReplica( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + promoteReplica( + paramsOrCallback?: Params$Resource$Instances$Promotereplica| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Promotereplica; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Promotereplica; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1757,30 +1956,46 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; resetSslConfig( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Resetsslconfig, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; resetSslConfig( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Resetsslconfig, + callback: BodyResponseCallback): + void; + resetSslConfig( + callback: BodyResponseCallback): + void; + resetSslConfig( + paramsOrCallback?: Params$Resource$Instances$Resetsslconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Resetsslconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Resetsslconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1820,28 +2035,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; restart( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Instances$Restart, + options?: MethodOptions): AxiosPromise; + restart( + params: Params$Resource$Instances$Restart, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + restart( + params: Params$Resource$Instances$Restart, + callback: BodyResponseCallback): void; + restart(callback: BodyResponseCallback): + void; restart( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Restart| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Restart; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Restart; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1881,29 +2109,45 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; restoreBackup( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Restorebackup, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; restoreBackup( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Restorebackup, + callback: BodyResponseCallback): + void; + restoreBackup( + callback: BodyResponseCallback): + void; + restoreBackup( + paramsOrCallback?: Params$Resource$Instances$Restorebackup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Restorebackup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Restorebackup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1946,31 +2190,49 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; setRootPassword( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Setrootpassword, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + setRootPassword( + params: Params$Resource$Instances$Setrootpassword, + callback: + BodyResponseCallback): + void; + setRootPassword( + callback: BodyResponseCallback): void; setRootPassword( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$Setrootpassword| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Setrootpassword; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Setrootpassword; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2011,28 +2273,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Update, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): + void; + update( + paramsOrCallback?: Params$Resource$Instances$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2056,6 +2329,255 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2141,28 +2673,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2187,6 +2729,51 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslcerts$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Sslcerts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslcerts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2273,23 +2870,33 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sslcerts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sslcerts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslcerts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslcerts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2329,28 +2936,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslcerts$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Sslcerts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslcerts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2389,28 +3006,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslcerts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sslcerts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslcerts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2435,6 +3062,81 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tiers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tiers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Tiers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tiers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tiers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2501,4 +3214,16 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Backupruns$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Backupruns$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Backupruns$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backupruns$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backupruns$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1513,23 +1529,34 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Backupruns$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Backupruns$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Backupruns$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Backupruns$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backupruns$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1569,26 +1596,38 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Backupruns$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Backupruns$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Backupruns$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Backupruns$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Backupruns$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backupruns$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1629,28 +1668,38 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Backupruns$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backupruns$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Backupruns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Backupruns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Backupruns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Backupruns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1675,6 +1724,90 @@ export namespace sqladmin_v1beta4 { } } + export interface Params$Resource$Backupruns$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Backup Run to delete. To find a Backup Run ID, use the list + * method. + */ + id?: string; + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + export interface Params$Resource$Backupruns$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of this Backup Run. + */ + id?: string; + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + export interface Params$Resource$Backupruns$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$BackupRun; + } + export interface Params$Resource$Backupruns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Maximum number of backup runs per response. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + + export class Resource$Databases { root: Sqladmin; constructor(root: Sqladmin) { @@ -1701,26 +1834,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Databases$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Databases$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Databases$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Databases$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Databases$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Databases$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1760,23 +1904,33 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Databases$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Databases$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Databases$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Databases$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Databases$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Databases$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1816,26 +1970,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Databases$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Databases$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Databases$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Databases$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Databases$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Databases$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1873,28 +2038,38 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Databases$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Databases$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Databases$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Databases$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Databases$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Databases$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1935,26 +2110,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Databases$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Databases$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Databases$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Databases$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Databases$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Databases$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1995,26 +2181,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Databases$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Databases$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Databases$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Databases$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Databases$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Databases$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2039,6 +2236,126 @@ export namespace sqladmin_v1beta4 { } } + export interface Params$Resource$Databases$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the database to be deleted in the instance. + */ + database?: string; + /** + * Database instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + export interface Params$Resource$Databases$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the database in the instance. + */ + database?: string; + /** + * Database instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + } + export interface Params$Resource$Databases$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Database instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Database; + } + export interface Params$Resource$Databases$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud SQL instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project for which to list Cloud SQL instances. + */ + project?: string; + } + export interface Params$Resource$Databases$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the database to be updated in the instance. + */ + database?: string; + /** + * Database instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Database; + } + export interface Params$Resource$Databases$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the database to be updated in the instance. + */ + database?: string; + /** + * Database instance ID. This does not include the project ID. + */ + instance?: string; + /** + * Project ID of the project that contains the instance. + */ + project?: string; + /** + * Request body metadata + */ + resource?: Schema$Database; + } + + export class Resource$Flags { root: Sqladmin; constructor(root: Sqladmin) { @@ -2063,26 +2380,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Flags$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Flags$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Flags$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Flags$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Flags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Flags$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2105,6 +2433,20 @@ export namespace sqladmin_v1beta4 { } } + export interface Params$Resource$Flags$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Database version for flag retrieval. Flags are specific to the database + * version. + */ + databaseVersion?: string; + } + + export class Resource$Instances { root: Sqladmin; constructor(root: Sqladmin) { @@ -2132,26 +2474,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clone(params?: any, options?: MethodOptions): + clone(params?: Params$Resource$Instances$Clone, options?: MethodOptions): AxiosPromise; clone( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Clone, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + clone( + params: Params$Resource$Instances$Clone, + callback: BodyResponseCallback): void; + clone(callback: BodyResponseCallback): void; clone( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Clone| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Clone; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Clone; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2189,26 +2542,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Instances$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Instances$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2246,26 +2610,39 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - demoteMaster(params?: any, options?: MethodOptions): - AxiosPromise; demoteMaster( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Demotemaster, + options?: MethodOptions): AxiosPromise; demoteMaster( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Demotemaster, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + demoteMaster( + params: Params$Resource$Instances$Demotemaster, + callback: BodyResponseCallback): void; + demoteMaster(callback: BodyResponseCallback): void; + demoteMaster( + paramsOrCallback?: Params$Resource$Instances$Demotemaster| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Demotemaster; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Demotemaster; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2305,26 +2682,37 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - export(params?: any, options?: MethodOptions): + export(params?: Params$Resource$Instances$Export, options?: MethodOptions): AxiosPromise; export( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Export, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; export( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Export, + callback: BodyResponseCallback): void; + export(callback: BodyResponseCallback): void; + export( + paramsOrCallback?: Params$Resource$Instances$Export| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Export; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Export; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2363,26 +2751,39 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - failover(params?: any, options?: MethodOptions): - AxiosPromise; failover( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Failover, + options?: MethodOptions): AxiosPromise; failover( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Failover, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + failover( + params: Params$Resource$Instances$Failover, + callback: BodyResponseCallback): void; + failover(callback: BodyResponseCallback): void; + failover( + paramsOrCallback?: Params$Resource$Instances$Failover| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Failover; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Failover; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2421,24 +2822,34 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Instances$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Instances$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Instances$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Instances$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2477,18 +2888,28 @@ export namespace sqladmin_v1beta4 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ -import(params?: any, options?: MethodOptions): AxiosPromise; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void; -import(params?: any, options?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {if(typeof options === 'function') { - callback = options; +import(params?: Params$Resource$Instances$Import, options?: MethodOptions): AxiosPromise; +import(params: Params$Resource$Instances$Import, options: MethodOptions|BodyResponseCallback, callback: BodyResponseCallback): void; +import(params: Params$Resource$Instances$Import, callback: BodyResponseCallback): void; +import(callback: BodyResponseCallback): void; +import(paramsOrCallback?: Params$Resource$Instances$Import|BodyResponseCallback, optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise {let params = (paramsOrCallback || {}) as Params$Resource$Instances$Import; let options = (optionsOrCallback || {}) as MethodOptions; + + if(typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Import; + options = {}; + } + + if(typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; 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 + '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['project', 'instance'], pathParams: ['instance', 'project'], context: this.getRoot()}; if(callback) { + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = {options: Object.assign({url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), method: 'POST'}, options), params, requiredParams: ['project', 'instance'], pathParams: ['instance', 'project'], context: this.getRoot()}; if(callback) { createAPIRequest(parameters, callback); - } else { return createAPIRequest(parameters); - }} + } else { + return createAPIRequest(parameters); + }} /** @@ -2499,30 +2920,41 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; + insert(params?: Params$Resource$Instances$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Instances$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2561,28 +2993,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Instances$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Instances$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Instances$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2622,26 +3064,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Instances$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2679,26 +3132,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; promoteReplica( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Promotereplica, + options?: MethodOptions): AxiosPromise; + promoteReplica( + params: Params$Resource$Instances$Promotereplica, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; promoteReplica( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Promotereplica, + callback: BodyResponseCallback): void; + promoteReplica(callback: BodyResponseCallback): void; + promoteReplica( + paramsOrCallback?: Params$Resource$Instances$Promotereplica| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Promotereplica; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Promotereplica; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2739,26 +3205,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; resetSslConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Resetsslconfig, + options?: MethodOptions): AxiosPromise; + resetSslConfig( + params: Params$Resource$Instances$Resetsslconfig, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resetSslConfig( + params: Params$Resource$Instances$Resetsslconfig, + callback: BodyResponseCallback): void; + resetSslConfig(callback: BodyResponseCallback): void; resetSslConfig( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Instances$Resetsslconfig| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Resetsslconfig; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Resetsslconfig; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2796,26 +3275,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; restart( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Restart, + options?: MethodOptions): AxiosPromise; + restart( + params: Params$Resource$Instances$Restart, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; restart( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Restart, + callback: BodyResponseCallback): void; + restart(callback: BodyResponseCallback): void; + restart( + paramsOrCallback?: Params$Resource$Instances$Restart| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Restart; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Restart; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2854,26 +3346,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; restoreBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Restorebackup, + options?: MethodOptions): AxiosPromise; restoreBackup( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Restorebackup, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + restoreBackup( + params: Params$Resource$Instances$Restorebackup, + callback: BodyResponseCallback): void; + restoreBackup(callback: BodyResponseCallback): void; + restoreBackup( + paramsOrCallback?: Params$Resource$Instances$Restorebackup| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Restorebackup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Restorebackup; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2911,26 +3416,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; startReplica( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Startreplica, + options?: MethodOptions): AxiosPromise; startReplica( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): + params: Params$Resource$Instances$Startreplica, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startReplica( + params: Params$Resource$Instances$Startreplica, + callback: BodyResponseCallback): void; + startReplica(callback: BodyResponseCallback): void; + startReplica( + paramsOrCallback?: Params$Resource$Instances$Startreplica| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Startreplica; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Startreplica; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2968,26 +3486,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; stopReplica( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Stopreplica, + options?: MethodOptions): AxiosPromise; + stopReplica( + params: Params$Resource$Instances$Stopreplica, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stopReplica( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Stopreplica, + callback: BodyResponseCallback): void; + stopReplica(callback: BodyResponseCallback): void; + stopReplica( + paramsOrCallback?: Params$Resource$Instances$Stopreplica| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Stopreplica; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Stopreplica; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3026,26 +3557,39 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; truncateLog( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Instances$Truncatelog, + options?: MethodOptions): AxiosPromise; truncateLog( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Truncatelog, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + truncateLog( + params: Params$Resource$Instances$Truncatelog, + callback: BodyResponseCallback): void; + truncateLog(callback: BodyResponseCallback): void; + truncateLog( + paramsOrCallback?: Params$Resource$Instances$Truncatelog| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Instances$Truncatelog; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Truncatelog; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3086,26 +3630,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Instances$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Instances$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Instances$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Instances$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Instances$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3129,6 +3684,326 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3211,28 +4097,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3255,6 +4151,47 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; createEphemeral( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Sslcerts$Createephemeral, + options?: MethodOptions): AxiosPromise; + createEphemeral( + params: Params$Resource$Sslcerts$Createephemeral, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; createEphemeral( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sslcerts$Createephemeral, + callback: BodyResponseCallback): void; + createEphemeral(callback: BodyResponseCallback): void; + createEphemeral( + paramsOrCallback?: Params$Resource$Sslcerts$Createephemeral| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Sslcerts$Createephemeral; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Createephemeral; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3343,26 +4292,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sslcerts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Sslcerts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sslcerts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3403,23 +4363,33 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sslcerts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sslcerts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sslcerts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sslcerts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3460,28 +4430,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslcerts$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Sslcerts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslcerts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3519,28 +4499,38 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sslcerts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sslcerts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sslcerts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sslcerts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sslcerts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3565,6 +4555,100 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tiers$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Tiers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tiers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tiers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tiers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3632,6 +4727,19 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Users$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3717,26 +4836,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Users$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3774,26 +4904,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Users$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Users$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3834,26 +4975,37 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Users$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Users$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Users$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Users$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Users$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3877,4 +5029,89 @@ import(params?: any, options?: MethodOptions|BodyResponseCallback; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Bucketaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Bucketaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -995,26 +1014,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Bucketaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Bucketaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bucketaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bucketaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1108,28 +1136,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Bucketaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Bucketaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1218,28 +1257,40 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bucketaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bucketaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bucketaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bucketaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1341,28 +1392,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Bucketaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Bucketaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1464,28 +1526,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Bucketaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bucketaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1508,6 +1581,136 @@ export namespace storage_v1 { } } + export interface Params$Resource$Bucketaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + export interface Params$Resource$Bucketaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + export interface Params$Resource$Bucketaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + + export class Resource$Buckets { root: Storage; constructor(root: Storage) { @@ -1585,22 +1788,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Buckets$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Buckets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1692,23 +1908,33 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Buckets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Buckets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Buckets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Buckets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1797,26 +2023,38 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Buckets$Getiampolicy, + options?: MethodOptions): AxiosPromise; + getIamPolicy( + params: Params$Resource$Buckets$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Buckets$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Buckets$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1913,25 +2151,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Buckets$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Buckets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2036,25 +2285,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Buckets$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Buckets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2090,26 +2350,38 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - lockRetentionPolicy(params?: any, options?: MethodOptions): - AxiosPromise; lockRetentionPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Buckets$Lockretentionpolicy, + options?: MethodOptions): AxiosPromise; + lockRetentionPolicy( + params: Params$Resource$Buckets$Lockretentionpolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; lockRetentionPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Lockretentionpolicy, + callback: BodyResponseCallback): void; + lockRetentionPolicy(callback: BodyResponseCallback): void; + lockRetentionPolicy( + paramsOrCallback?: Params$Resource$Buckets$Lockretentionpolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Buckets$Lockretentionpolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Lockretentionpolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2212,25 +2484,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Buckets$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Buckets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2326,26 +2609,38 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Buckets$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Buckets$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; + setIamPolicy( + paramsOrCallback?: Params$Resource$Buckets$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Buckets$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2439,29 +2734,45 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Buckets$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Buckets$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Buckets$Testiampermissions, + callback: BodyResponseCallback): + void; + testIamPermissions( + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Buckets$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Buckets$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2565,25 +2876,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Buckets$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Buckets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2606,97 +2928,394 @@ export namespace storage_v1 { } } - export class Resource$Channels { - root: Storage; - constructor(root: Storage) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } + export interface Params$Resource$Buckets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Name of a bucket. + */ + bucket?: string; + /** + * If set, only deletes the bucket if its metageneration matches this value. + */ + ifMetagenerationMatch?: string; + /** + * If set, only deletes the bucket if its metageneration does not match this + * value. + */ + ifMetagenerationNotMatch?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Buckets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * storage.channels.stop - * @desc Stop watching resources through this channel - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Cloud Storage JSON API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/storage - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var storage = google.storage('v1'); - * - * authorize(function(authClient) { - * var request = { - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * - * auth: authClient, - * }; - * - * storage.channels.stop(request, function(err) { - * if (err) { - * console.error(err); - * return; - * } - * }); - * }); - * - * function authorize(callback) { - * google.auth.getApplicationDefault(function(err, authClient) { - * if (err) { - * console.error('authentication failed: ', err); - * return; - * } - * if (authClient.createScopedRequired && - * authClient.createScopedRequired()) { var scopes = - * ['https://www.googleapis.com/auth/cloud-platform']; authClient = - * authClient.createScoped(scopes); - * } - * callback(authClient); - * }); - * } - * @alias storage.channels.stop - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {().Channel} 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 + * Name of a bucket. */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Buckets$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Buckets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Apply a predefined set of access controls to this bucket. + */ + predefinedAcl?: string; + /** + * Apply a predefined set of default object access controls to this bucket. + */ + predefinedDefaultObjectAcl?: string; + /** + * A valid API project identifier. + */ + project?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the bucket + * resource specifies acl or defaultObjectAcl properties, when it defaults + * to full. + */ + projection?: string; + /** + * The project to be billed for this request. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + export interface Params$Resource$Buckets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of buckets to return in a single response. The service + * will use this parameter or 1,000 items, whichever is smaller. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Filter results to buckets whose names begin with this prefix. + */ + prefix?: string; + /** + * A valid API project identifier. + */ + project?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * The project to be billed for this request. + */ + userProject?: string; + } + export interface Params$Resource$Buckets$Lockretentionpolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the operation conditional on whether bucket's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Buckets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Apply a predefined set of access controls to this bucket. + */ + predefinedAcl?: string; + /** + * Apply a predefined set of default object access controls to this bucket. + */ + predefinedDefaultObjectAcl?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + export interface Params$Resource$Buckets$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Policy; + } + export interface Params$Resource$Buckets$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Permissions to test. + */ + permissions?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Buckets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Apply a predefined set of access controls to this bucket. + */ + predefinedAcl?: string; + /** + * Apply a predefined set of default object access controls to this bucket. + */ + predefinedDefaultObjectAcl?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + + + export class Resource$Channels { + root: Storage; + constructor(root: Storage) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * storage.channels.stop + * @desc Stop watching resources through this channel + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Cloud Storage JSON API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/storage + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var storage = google.storage('v1'); + * + * authorize(function(authClient) { + * var request = { + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * + * auth: authClient, + * }; + * + * storage.channels.stop(request, function(err) { + * if (err) { + * console.error(err); + * return; + * } + * }); + * }); + * + * function authorize(callback) { + * google.auth.getApplicationDefault(function(err, authClient) { + * if (err) { + * console.error('authentication failed: ', err); + * return; + * } + * if (authClient.createScopedRequired && + * authClient.createScopedRequired()) { var scopes = + * ['https://www.googleapis.com/auth/cloud-platform']; authClient = + * authClient.createScoped(scopes); + * } + * callback(authClient); + * }); + * } + * @alias storage.channels.stop + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().Channel} 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 + */ + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2719,6 +3338,14 @@ export namespace storage_v1 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Defaultobjectaccesscontrols { root: Storage; constructor(root: Storage) { @@ -2801,22 +3428,37 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Defaultobjectaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Defaultobjectaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2911,26 +3553,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Defaultobjectaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Defaultobjectaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Defaultobjectaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3023,28 +3674,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Defaultobjectaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Defaultobjectaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3133,28 +3795,40 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Defaultobjectaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Defaultobjectaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Defaultobjectaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3254,28 +3928,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Defaultobjectaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Defaultobjectaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3376,28 +4061,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Defaultobjectaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Defaultobjectaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3421,12 +4117,152 @@ export namespace storage_v1 { } } - export class Resource$Notifications { - root: Storage; - constructor(root: Storage) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Defaultobjectaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Defaultobjectaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * If present, only return default ACL listing if the bucket's current + * metageneration matches this value. + */ + ifMetagenerationMatch?: string; + /** + * If present, only return default ACL listing if the bucket's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + + + export class Resource$Notifications { + root: Storage; + constructor(root: Storage) { + this.root = root; + this.getRoot.bind(this); + } getRoot() { return this.root; @@ -3500,22 +4336,37 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Notifications$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Notifications$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Notifications$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Notifications$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3609,24 +4460,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Notifications$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Notifications$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Notifications$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Notifications$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3721,26 +4583,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Notifications$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Notifications$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Notifications$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Notifications$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3829,26 +4704,38 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Notifications$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Notifications$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Notifications$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Notifications$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Notifications$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Notifications$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3871,6 +4758,84 @@ export namespace storage_v1 { } } + export interface Params$Resource$Notifications$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent bucket of the notification. + */ + bucket?: string; + /** + * ID of the notification to delete. + */ + notification?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Notifications$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent bucket of the notification. + */ + bucket?: string; + /** + * Notification ID + */ + notification?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Notifications$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The parent bucket of the notification. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Notification; + } + export interface Params$Resource$Notifications$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a Google Cloud Storage bucket. + */ + bucket?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + + export class Resource$Objectaccesscontrols { root: Storage; constructor(root: Storage) { @@ -3960,22 +4925,37 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objectaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Objectaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4078,26 +5058,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Objectaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Objectaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Objectaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Objectaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objectaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4198,28 +5187,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Objectaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4315,28 +5315,40 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Objectaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Objectaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objectaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4445,28 +5457,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Objectaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4575,28 +5598,39 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Objectaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4619,58 +5653,248 @@ export namespace storage_v1 { } } - export class Resource$Objects { - root: Storage; - constructor(root: Storage) { - this.root = root; - this.getRoot.bind(this); - } + export interface Params$Resource$Objectaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; - getRoot() { - return this.root; - } + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objectaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objectaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * storage.objects.compose - * @desc Concatenates a list of existing objects into a new object in the - * same bucket. - * @example - * * // BEFORE RUNNING: - * // --------------- - * // 1. If not already done, enable the Cloud Storage JSON API - * // and check the quota for your project at - * // https://console.developers.google.com/apis/api/storage - * // 2. This sample uses Application Default Credentials for - * authentication. - * // If not already done, install the gcloud CLI from - * // https://cloud.google.com/sdk and run - * // `gcloud beta auth application-default login`. - * // For more information, see - * // - * https://developers.google.com/identity/protocols/application-default-credentials - * // 3. Install the Node.js client library by running - * // `npm install googleapis --save` - * - * var google = require('googleapis'); - * var storage = google.storage('v1'); - * - * authorize(function(authClient) { - * var request = { - * // Name of the bucket in which to store the new object. - * destinationBucket: 'my-destination-bucket', // TODO: Update - * placeholder value. - * - * // Name of the new object. For information about how to URL encode - * object names to be path safe, see - * // Encoding URI Path Parts. - * destinationObject: 'my-destination-object', // TODO: Update - * placeholder value. - * - * resource: { - * // TODO: Add desired properties to the request body. - * }, - * + * Name of a bucket. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Objectaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objectaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Objectaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + + + export class Resource$Objects { + root: Storage; + constructor(root: Storage) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * storage.objects.compose + * @desc Concatenates a list of existing objects into a new object in the + * same bucket. + * @example + * * // BEFORE RUNNING: + * // --------------- + * // 1. If not already done, enable the Cloud Storage JSON API + * // and check the quota for your project at + * // https://console.developers.google.com/apis/api/storage + * // 2. This sample uses Application Default Credentials for + * authentication. + * // If not already done, install the gcloud CLI from + * // https://cloud.google.com/sdk and run + * // `gcloud beta auth application-default login`. + * // For more information, see + * // + * https://developers.google.com/identity/protocols/application-default-credentials + * // 3. Install the Node.js client library by running + * // `npm install googleapis --save` + * + * var google = require('googleapis'); + * var storage = google.storage('v1'); + * + * authorize(function(authClient) { + * var request = { + * // Name of the bucket in which to store the new object. + * destinationBucket: 'my-destination-bucket', // TODO: Update + * placeholder value. + * + * // Name of the new object. For information about how to URL encode + * object names to be path safe, see + * // Encoding URI Path Parts. + * destinationObject: 'my-destination-object', // TODO: Update + * placeholder value. + * + * resource: { + * // TODO: Add desired properties to the request body. + * }, + * * auth: authClient, * }; * @@ -4715,25 +5939,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - compose(params?: any, options?: MethodOptions): AxiosPromise; + compose(params?: Params$Resource$Objects$Compose, options?: MethodOptions): + AxiosPromise; compose( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Compose, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; compose( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Compose, + callback: BodyResponseCallback): void; + compose(callback: BodyResponseCallback): void; + compose( + paramsOrCallback?: Params$Resource$Objects$Compose| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Compose; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Compose; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4863,25 +6098,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copy(params?: any, options?: MethodOptions): AxiosPromise; + copy(params?: Params$Resource$Objects$Copy, options?: MethodOptions): + AxiosPromise; + copy( + params: Params$Resource$Objects$Copy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Copy, + callback: BodyResponseCallback): void; + copy(callback: BodyResponseCallback): void; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Copy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Copy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Copy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4988,22 +6234,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Objects$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Objects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5108,23 +6367,33 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Objects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Objects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Objects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Objects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5220,26 +6489,38 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objects$Getiampolicy, + options?: MethodOptions): AxiosPromise; getIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Getiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getIamPolicy( + params: Params$Resource$Objects$Getiampolicy, + callback: BodyResponseCallback): void; + getIamPolicy(callback: BodyResponseCallback): void; + getIamPolicy( + paramsOrCallback?: Params$Resource$Objects$Getiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objects$Getiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Getiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5354,25 +6635,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Objects$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Objects$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5482,25 +6774,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Objects$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Objects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5609,25 +6912,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Objects$Patch, options?: MethodOptions): + AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Objects$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5758,26 +7072,37 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rewrite(params?: any, options?: MethodOptions): + rewrite(params?: Params$Resource$Objects$Rewrite, options?: MethodOptions): AxiosPromise; rewrite( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Rewrite, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + rewrite( + params: Params$Resource$Objects$Rewrite, + callback: BodyResponseCallback): void; + rewrite(callback: BodyResponseCallback): void; rewrite( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Rewrite| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Rewrite; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Rewrite; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5888,26 +7213,38 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setIamPolicy(params?: any, options?: MethodOptions): - AxiosPromise; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objects$Setiampolicy, + options?: MethodOptions): AxiosPromise; + setIamPolicy( + params: Params$Resource$Objects$Setiampolicy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setIamPolicy( + params: Params$Resource$Objects$Setiampolicy, + callback: BodyResponseCallback): void; + setIamPolicy(callback: BodyResponseCallback): void; setIamPolicy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Setiampolicy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objects$Setiampolicy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Setiampolicy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6008,29 +7345,45 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - testIamPermissions(params?: any, options?: MethodOptions): + testIamPermissions( + params?: Params$Resource$Objects$Testiampermissions, + options?: MethodOptions): AxiosPromise; testIamPermissions( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objects$Testiampermissions, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + testIamPermissions( + params: Params$Resource$Objects$Testiampermissions, + callback: BodyResponseCallback): void; testIamPermissions( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + testIamPermissions( + paramsOrCallback?: Params$Resource$Objects$Testiampermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objects$Testiampermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Testiampermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6141,25 +7494,36 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Objects$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Objects$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6259,26 +7623,37 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watchAll(params?: any, options?: MethodOptions): - AxiosPromise; watchAll( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objects$Watchall, + options?: MethodOptions): AxiosPromise; watchAll( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Watchall, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + watchAll( + params: Params$Resource$Objects$Watchall, + callback: BodyResponseCallback): void; + watchAll(callback: BodyResponseCallback): void; + watchAll( + paramsOrCallback?: Params$Resource$Objects$Watchall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Watchall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Watchall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6301,6 +7676,768 @@ export namespace storage_v1 { } } + export interface Params$Resource$Objects$Compose { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. + */ + destinationBucket?: string; + /** + * Name of the new object. For information about how to URL encode object + * names to be path safe, see Encoding URI Path Parts. + */ + destinationObject?: string; + /** + * Apply a predefined set of access controls to the destination object. + */ + destinationPredefinedAcl?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Resource name of the Cloud KMS key, of the form + * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, + * that will be used to encrypt the object. Overrides the object metadata's + * kms_key_name value, if any. + */ + kmsKeyName?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$ComposeRequest; + } + export interface Params$Resource$Objects$Copy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. Overrides the + * provided object metadata's bucket value, if any.For information about how + * to URL encode object names to be path safe, see Encoding URI Path Parts. + */ + destinationBucket?: string; + /** + * Name of the new object. Required when the object metadata is not + * otherwise provided. Overrides the object metadata's name value, if any. + */ + destinationObject?: string; + /** + * Apply a predefined set of access controls to the destination object. + */ + destinationPredefinedAcl?: string; + /** + * Makes the operation conditional on whether the destination object's + * current generation matches the given value. Setting to 0 makes the + * operation succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current generation does not match the given value. If no live object + * exists, the precondition fails. Setting to 0 makes the operation succeed + * only if there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * generation matches the given value. + */ + ifSourceGenerationMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * generation does not match the given value. + */ + ifSourceGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * metageneration matches the given value. + */ + ifSourceMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * metageneration does not match the given value. + */ + ifSourceMetagenerationNotMatch?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the object + * resource specifies the acl property, when it defaults to full. + */ + projection?: string; + /** + * Name of the bucket in which to find the source object. + */ + sourceBucket?: string; + /** + * If present, selects a specific revision of the source object (as opposed + * to the latest version, the default). + */ + sourceGeneration?: string; + /** + * Name of the source object. For information about how to URL encode object + * names to be path safe, see Encoding URI Path Parts. + */ + sourceObject?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, permanently deletes a specific revision of this object (as + * opposed to the latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. If no live object exists, the + * precondition fails. Setting to 0 makes the operation succeed only if + * there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. If no live object exists, the + * precondition fails. Setting to 0 makes the operation succeed only if + * there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objects$Getiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objects$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. Overrides the + * provided object metadata's bucket value, if any. + */ + bucket?: string; + /** + * If set, sets the contentEncoding property of the final object to this + * value. Setting this parameter is equivalent to setting the + * contentEncoding metadata property. This can be useful when uploading an + * object with uploadType=media to indicate the encoding of the content + * being uploaded. + */ + contentEncoding?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. If no live object exists, the + * precondition fails. Setting to 0 makes the operation succeed only if + * there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Resource name of the Cloud KMS key, of the form + * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, + * that will be used to encrypt the object. Overrides the object metadata's + * kms_key_name value, if any. Limited availability; usable only by enabled + * projects. + */ + kmsKeyName?: string; + /** + * Name of the object. Required when the object metadata is not otherwise + * provided. Overrides the object metadata's name value, if any. For + * information about how to URL encode object names to be path safe, see + * Encoding URI Path Parts. + */ + name?: string; + /** + * Apply a predefined set of access controls to this object. + */ + predefinedAcl?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the object + * resource specifies the acl property, when it defaults to full. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Objects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to look for objects. + */ + bucket?: string; + /** + * Returns results in a directory-like mode. items will contain only objects + * whose names, aside from the prefix, do not contain delimiter. Objects + * whose names, aside from the prefix, contain delimiter will have their + * name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + */ + delimiter?: string; + /** + * Maximum number of items plus prefixes to return in a single page of + * responses. As duplicate prefixes are omitted, fewer total results may be + * returned than requested. The service will use this parameter or 1,000 + * items, whichever is smaller. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Filter results to objects whose names begin with this prefix. + */ + prefix?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * If true, lists all versions of an object as distinct results. The default + * is false. For more information, see Object Versioning. + */ + versions?: boolean; + } + export interface Params$Resource$Objects$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. If no live object exists, the + * precondition fails. Setting to 0 makes the operation succeed only if + * there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * Apply a predefined set of access controls to this object. + */ + predefinedAcl?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * The project to be billed for this request, for Requester Pays buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Rewrite { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. Overrides the + * provided object metadata's bucket value, if any. + */ + destinationBucket?: string; + /** + * Resource name of the Cloud KMS key, of the form + * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, + * that will be used to encrypt the object. Overrides the object metadata's + * kms_key_name value, if any. + */ + destinationKmsKeyName?: string; + /** + * Name of the new object. Required when the object metadata is not + * otherwise provided. Overrides the object metadata's name value, if any. + * For information about how to URL encode object names to be path safe, see + * Encoding URI Path Parts. + */ + destinationObject?: string; + /** + * Apply a predefined set of access controls to the destination object. + */ + destinationPredefinedAcl?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. If no live object exists, the + * precondition fails. Setting to 0 makes the operation succeed only if + * there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * generation matches the given value. + */ + ifSourceGenerationMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * generation does not match the given value. + */ + ifSourceGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * metageneration matches the given value. + */ + ifSourceMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * metageneration does not match the given value. + */ + ifSourceMetagenerationNotMatch?: string; + /** + * The maximum number of bytes that will be rewritten per rewrite request. + * Most callers shouldn't need to specify this parameter - it is primarily + * in place to support testing. If specified the value must be an integral + * multiple of 1 MiB (1048576). Also, this only applies to requests where + * the source and destination span locations and/or storage classes. + * Finally, this value must not change across rewrite calls else you'll get + * an error that the rewriteToken is invalid. + */ + maxBytesRewrittenPerCall?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the object + * resource specifies the acl property, when it defaults to full. + */ + projection?: string; + /** + * Include this field (from the previous rewrite response) on each rewrite + * request after the first one, until the rewrite response 'done' flag is + * true. Calls that provide a rewriteToken can omit all other request + * fields, but if included those fields must match the values provided in + * the first rewrite request. + */ + rewriteToken?: string; + /** + * Name of the bucket in which to find the source object. + */ + sourceBucket?: string; + /** + * If present, selects a specific revision of the source object (as opposed + * to the latest version, the default). + */ + sourceGeneration?: string; + /** + * Name of the source object. For information about how to URL encode object + * names to be path safe, see Encoding URI Path Parts. + */ + sourceObject?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Setiampolicy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Policy; + } + export interface Params$Resource$Objects$Testiampermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * Permissions to test. + */ + permissions?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + } + export interface Params$Resource$Objects$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. Setting to 0 makes the operation + * succeed only if there are no live versions of the object. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. If no live object exists, the + * precondition fails. Setting to 0 makes the operation succeed only if + * there is a live version of the object. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. For information about how to URL encode object names + * to be path safe, see Encoding URI Path Parts. + */ + object?: string; + /** + * Apply a predefined set of access controls to this object. + */ + predefinedAcl?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Watchall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to look for objects. + */ + bucket?: string; + /** + * Returns results in a directory-like mode. items will contain only objects + * whose names, aside from the prefix, do not contain delimiter. Objects + * whose names, aside from the prefix, contain delimiter will have their + * name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + */ + delimiter?: string; + /** + * Maximum number of items plus prefixes to return in a single page of + * responses. As duplicate prefixes are omitted, fewer total results may be + * returned than requested. The service will use this parameter or 1,000 + * items, whichever is smaller. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Filter results to objects whose names begin with this prefix. + */ + prefix?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * The project to be billed for this request. Required for Requester Pays + * buckets. + */ + userProject?: string; + /** + * If true, lists all versions of an object as distinct results. The default + * is false. For more information, see Object Versioning. + */ + versions?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + export class Resource$Projects { root: Storage; serviceAccount: Resource$Projects$Serviceaccount; @@ -6314,6 +8451,8 @@ export namespace storage_v1 { return this.root; } } + + export class Resource$Projects$Serviceaccount { root: Storage; constructor(root: Storage) { @@ -6393,24 +8532,35 @@ export namespace storage_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Serviceaccount$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Serviceaccount$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Serviceaccount$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Serviceaccount$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Serviceaccount$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Serviceaccount$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6432,4 +8582,20 @@ export namespace storage_v1 { } } } + + export interface Params$Resource$Projects$Serviceaccount$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Project ID + */ + projectId?: string; + /** + * The project to be billed for this request. + */ + userProject?: string; + } } diff --git a/src/apis/storage/v1beta1.ts b/src/apis/storage/v1beta1.ts index 12cf4f29b42..4673f249842 100644 --- a/src/apis/storage/v1beta1.ts +++ b/src/apis/storage/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace storage_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Storage JSON API * @@ -78,45 +81,45 @@ export namespace storage_v1beta1 { /** * Access controls on the bucket. */ - acl: Schema$BucketAccessControl[]; + acl?: Schema$BucketAccessControl[]; /** * Default access controls to apply to new objects when no ACL is provided. */ - defaultObjectAcl: Schema$ObjectAccessControl[]; + defaultObjectAcl?: Schema$ObjectAccessControl[]; /** * The name of the bucket. */ - id: string; + id?: string; /** * The kind of item this is. For buckets, this is always storage#bucket. */ - kind: string; + kind?: string; /** * The location of the bucket. Object data for objects in the bucket resides * in physical storage in this location. Can be US or EU. Defaults to US. */ - location: string; + location?: string; /** * The owner of the bucket. This will always be the project team's owner * group. */ - owner: any; + owner?: any; /** * The project the bucket belongs to. */ - projectId: string; + projectId?: string; /** * The URI of this bucket. */ - selfLink: string; + selfLink?: string; /** * Creation time of the bucket in RFC 3339 format. */ - timeCreated: string; + timeCreated?: string; /** * The bucket's website configuration. */ - website: any; + website?: any; } /** * An access-control entry. @@ -125,15 +128,15 @@ export namespace storage_v1beta1 { /** * The name of the bucket. */ - bucket: string; + bucket?: string; /** * The domain associated with the entity, if any. */ - domain: string; + domain?: string; /** * The email address associated with the entity, if any. */ - email: string; + email?: string; /** * The entity holding the permission, in one of the following forms: - * user-userId - user-email - group-groupId - group-email - @@ -143,28 +146,28 @@ export namespace storage_v1beta1 { * refer to all members of the Google Apps for Business domain example.com, * the entity would be domain-example.com. */ - entity: string; + entity?: string; /** * The ID for the entity, if any. */ - entityId: string; + entityId?: string; /** * The ID of the access-control entry. */ - id: string; + id?: string; /** * The kind of item this is. For bucket access control entries, this is * always storage#bucketAccessControl. */ - kind: string; + kind?: string; /** * The access permission for the entity. Can be READER, WRITER, or OWNER. */ - role: string; + role?: string; /** * The link to this access-control entry. */ - selfLink: string; + selfLink?: string; } /** * An access-control list. @@ -173,12 +176,12 @@ export namespace storage_v1beta1 { /** * The list of items. */ - items: Schema$BucketAccessControl[]; + items?: Schema$BucketAccessControl[]; /** * The kind of item this is. For lists of bucket access control entries, * this is always storage#bucketAccessControls. */ - kind: string; + kind?: string; } /** * A list of buckets. @@ -187,17 +190,17 @@ export namespace storage_v1beta1 { /** * The list of items. */ - items: Schema$Bucket[]; + items?: Schema$Bucket[]; /** * The kind of item this is. For lists of buckets, this is always * storage#buckets. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * An object. @@ -206,56 +209,56 @@ export namespace storage_v1beta1 { /** * Access controls on the object. */ - acl: Schema$ObjectAccessControl[]; + acl?: Schema$ObjectAccessControl[]; /** * The bucket containing this object. */ - bucket: string; + bucket?: string; /** * Cache-Control directive for the object data. */ - cacheControl: string; + cacheControl?: string; /** * Content-Disposition of the object data. */ - contentDisposition: string; + contentDisposition?: string; /** * Content-Encoding of the object data. */ - contentEncoding: string; + contentEncoding?: string; /** * Content-Language of the object data. */ - contentLanguage: string; + contentLanguage?: string; /** * The ID of the object. */ - id: string; + id?: string; /** * The kind of item this is. For objects, this is always storage#object. */ - kind: string; + kind?: string; /** * Object media data. Provided on your behalf when uploading raw media or * multipart/related with an auxiliary media part. */ - media: any; + media?: any; /** * User-provided metadata, in key/value pairs. */ - metadata: any; + metadata?: any; /** * The name of this object. Required if not specified by URL parameter. */ - name: string; + name?: string; /** * The owner of the object. This will always be the uploader of the object. */ - owner: any; + owner?: any; /** * The link to this object. */ - selfLink: string; + selfLink?: string; } /** * An access-control entry. @@ -264,15 +267,15 @@ export namespace storage_v1beta1 { /** * The name of the bucket. */ - bucket: string; + bucket?: string; /** * The domain associated with the entity, if any. */ - domain: string; + domain?: string; /** * The email address associated with the entity, if any. */ - email: string; + email?: string; /** * The entity holding the permission, in one of the following forms: - * user-userId - user-email - group-groupId - group-email - @@ -282,32 +285,32 @@ export namespace storage_v1beta1 { * refer to all members of the Google Apps for Business domain example.com, * the entity would be domain-example.com. */ - entity: string; + entity?: string; /** * The ID for the entity, if any. */ - entityId: string; + entityId?: string; /** * The ID of the access-control entry. */ - id: string; + id?: string; /** * The kind of item this is. For object access control entries, this is * always storage#objectAccessControl. */ - kind: string; + kind?: string; /** * The name of the object. */ - object: string; + object?: string; /** * The access permission for the entity. Can be READER or OWNER. */ - role: string; + role?: string; /** * The link to this access-control entry. */ - selfLink: string; + selfLink?: string; } /** * An access-control list. @@ -316,12 +319,12 @@ export namespace storage_v1beta1 { /** * The list of items. */ - items: Schema$ObjectAccessControl[]; + items?: Schema$ObjectAccessControl[]; /** * The kind of item this is. For lists of object access control entries, * this is always storage#objectAccessControls. */ - kind: string; + kind?: string; } /** * A list of objects. @@ -330,24 +333,25 @@ export namespace storage_v1beta1 { /** * The list of items. */ - items: Schema$Object[]; + items?: Schema$Object[]; /** * The kind of item this is. For lists of objects, this is always * storage#objects. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of prefixes of objects matching-but-not-listed up to and * including the requested delimiter. */ - prefixes: string[]; + prefixes?: string[]; } + export class Resource$Bucketaccesscontrols { root: Storage; constructor(root: Storage) { @@ -374,22 +378,37 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Bucketaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Bucketaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -426,26 +445,35 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Bucketaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Bucketaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bucketaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bucketaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -481,28 +509,39 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Bucketaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Bucketaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -537,28 +576,40 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bucketaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bucketaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bucketaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bucketaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -596,28 +647,39 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Bucketaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Bucketaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -654,28 +716,39 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Bucketaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Bucketaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -698,6 +771,106 @@ export namespace storage_v1beta1 { } } + export interface Params$Resource$Bucketaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + export interface Params$Resource$Bucketaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + export interface Params$Resource$Bucketaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + + export class Resource$Buckets { root: Storage; constructor(root: Storage) { @@ -722,22 +895,35 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Buckets$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Buckets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -773,23 +959,33 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Buckets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Buckets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Buckets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Buckets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -825,25 +1021,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Buckets$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Buckets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -881,25 +1088,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Buckets$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Buckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -936,25 +1154,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Buckets$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Buckets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -991,25 +1220,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Buckets$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Buckets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1032,6 +1272,113 @@ export namespace storage_v1beta1 { } } + export interface Params$Resource$Buckets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + } + export interface Params$Resource$Buckets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Set of properties to return. Defaults to no_acl. + */ + projection?: string; + } + export interface Params$Resource$Buckets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Set of properties to return. Defaults to no_acl, unless the bucket + * resource specifies acl or defaultObjectAcl properties, when it defaults + * to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + export interface Params$Resource$Buckets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of buckets to return. + */ + 'max-results'?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * A valid API project identifier. + */ + projectId?: string; + /** + * Set of properties to return. Defaults to no_acl. + */ + projection?: string; + } + export interface Params$Resource$Buckets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + export interface Params$Resource$Buckets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + + export class Resource$Objectaccesscontrols { root: Storage; constructor(root: Storage) { @@ -1059,22 +1406,37 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Objectaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Objectaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1113,26 +1475,35 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Objectaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Objectaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Objectaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Objectaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objectaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1170,28 +1541,39 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Objectaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Objectaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1227,28 +1609,40 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Objectaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Objectaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Objectaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Objectaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objectaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1287,28 +1681,39 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Objectaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Objectaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1347,28 +1752,39 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Objectaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Objectaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1392,6 +1808,130 @@ export namespace storage_v1beta1 { } } + export interface Params$Resource$Objectaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objectaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objectaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Objectaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objectaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Objectaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + + export class Resource$Objects { root: Storage; constructor(root: Storage) { @@ -1417,22 +1957,35 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Objects$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Objects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1469,23 +2022,33 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Objects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Objects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Objects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Objects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1526,25 +2089,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Objects$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Objects$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1586,25 +2160,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Objects$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Objects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1643,25 +2228,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Objects$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Objects$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1699,25 +2295,36 @@ export namespace storage_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Objects$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Objects$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1739,4 +2346,162 @@ export namespace storage_v1beta1 { } } } + + export interface Params$Resource$Objects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Set of properties to return. Defaults to no_acl. + */ + projection?: string; + } + export interface Params$Resource$Objects$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. Overrides the + * provided object metadata's bucket value, if any. + */ + bucket?: string; + /** + * Name of the object. Required when the object metadata is not otherwise + * provided. Overrides the object metadata's name value, if any. + */ + name?: string; + /** + * Set of properties to return. Defaults to no_acl, unless the object + * resource specifies the acl property, when it defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Objects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to look for objects. + */ + bucket?: string; + /** + * Returns results in a directory-like mode. items will contain only objects + * whose names, aside from the prefix, do not contain delimiter. Objects + * whose names, aside from the prefix, contain delimiter will have their + * name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + */ + delimiter?: string; + /** + * Maximum number of items plus prefixes to return. As duplicate prefixes + * are omitted, fewer total results may be returned than requested. + */ + 'max-results'?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Filter results to objects whose names begin with this prefix. + */ + prefix?: string; + /** + * Set of properties to return. Defaults to no_acl. + */ + projection?: string; + } + export interface Params$Resource$Objects$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } } diff --git a/src/apis/storage/v1beta2.ts b/src/apis/storage/v1beta2.ts index aac543eed94..a08ef47f804 100644 --- a/src/apis/storage/v1beta2.ts +++ b/src/apis/storage/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace storage_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Cloud Storage JSON API * @@ -83,79 +86,79 @@ export namespace storage_v1beta2 { /** * Access controls on the bucket. */ - acl: Schema$BucketAccessControl[]; + acl?: Schema$BucketAccessControl[]; /** * The bucket's Cross-Origin Resource Sharing (CORS) configuration. */ - cors: any[]; + cors?: any[]; /** * Default access controls to apply to new objects when no ACL is provided. */ - defaultObjectAcl: Schema$ObjectAccessControl[]; + defaultObjectAcl?: Schema$ObjectAccessControl[]; /** * HTTP 1.1 Entity tag for the bucket. */ - etag: string; + etag?: string; /** * The ID of the bucket. */ - id: string; + id?: string; /** * The kind of item this is. For buckets, this is always storage#bucket. */ - kind: string; + kind?: string; /** * The bucket's lifecycle configuration. See object lifecycle management * for more information. */ - lifecycle: any; + lifecycle?: any; /** * The location of the bucket. Object data for objects in the bucket resides * in physical storage within this region. Typical values are US and EU. * Defaults to US. See the developer's guide for the authoritative list. */ - location: string; + location?: string; /** * The bucket's logging configuration, which defines the destination * bucket and optional name prefix for the current bucket's logs. */ - logging: any; + logging?: any; /** * The metadata generation of this bucket. */ - metageneration: string; + metageneration?: string; /** * The name of the bucket. */ - name: string; + name?: string; /** * The owner of the bucket. This is always the project team's owner * group. */ - owner: any; + owner?: any; /** * The URI of this bucket. */ - selfLink: string; + selfLink?: string; /** * The bucket's storage class. This defines how objects in the bucket * are stored and determines the SLA and the cost of storage. Typical values * are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See * the developer's guide for the authoritative list. */ - storageClass: string; + storageClass?: string; /** * Creation time of the bucket in RFC 3339 format. */ - timeCreated: string; + timeCreated?: string; /** * The bucket's versioning configuration. */ - versioning: any; + versioning?: any; /** * The bucket's website configuration. */ - website: any; + website?: any; } /** * An access-control entry. @@ -164,15 +167,15 @@ export namespace storage_v1beta2 { /** * The name of the bucket. */ - bucket: string; + bucket?: string; /** * The domain associated with the entity, if any. */ - domain: string; + domain?: string; /** * The email address associated with the entity, if any. */ - email: string; + email?: string; /** * The entity holding the permission, in one of the following forms: - * user-userId - user-email - group-groupId - group-email - @@ -182,32 +185,32 @@ export namespace storage_v1beta2 { * refer to all members of the Google Apps for Business domain example.com, * the entity would be domain-example.com. */ - entity: string; + entity?: string; /** * The ID for the entity, if any. */ - entityId: string; + entityId?: string; /** * HTTP 1.1 Entity tag for the access-control entry. */ - etag: string; + etag?: string; /** * The ID of the access-control entry. */ - id: string; + id?: string; /** * The kind of item this is. For bucket access control entries, this is * always storage#bucketAccessControl. */ - kind: string; + kind?: string; /** * The access permission for the entity. Can be READER, WRITER, or OWNER. */ - role: string; + role?: string; /** * The link to this access-control entry. */ - selfLink: string; + selfLink?: string; } /** * An access-control list. @@ -216,12 +219,12 @@ export namespace storage_v1beta2 { /** * The list of items. */ - items: Schema$BucketAccessControl[]; + items?: Schema$BucketAccessControl[]; /** * The kind of item this is. For lists of bucket access control entries, * this is always storage#bucketAccessControls. */ - kind: string; + kind?: string; } /** * A list of buckets. @@ -230,17 +233,17 @@ export namespace storage_v1beta2 { /** * The list of items. */ - items: Schema$Bucket[]; + items?: Schema$Bucket[]; /** * The kind of item this is. For lists of buckets, this is always * storage#buckets. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * An notification channel used to watch for resource changes. @@ -249,47 +252,47 @@ export namespace storage_v1beta2 { /** * The address where notifications are delivered for this channel. */ - address: string; + address?: string; /** * Date and time of notification channel expiration, expressed as a Unix * timestamp, in milliseconds. Optional. */ - expiration: string; + expiration?: string; /** * A UUID or similar unique string that identifies this channel. */ - id: string; + id?: string; /** * Identifies this as a notification channel used to watch for changes to a * resource. Value: the fixed string "api#channel". */ - kind: string; + kind?: string; /** * Additional parameters controlling delivery channel behavior. Optional. */ - params: any; + params?: any; /** * A Boolean value to indicate whether payload is wanted. Optional. */ - payload: boolean; + payload?: boolean; /** * An opaque ID that identifies the resource being watched on this channel. * Stable across different API versions. */ - resourceId: string; + resourceId?: string; /** * A version-specific identifier for the watched resource. */ - resourceUri: string; + resourceUri?: string; /** * An arbitrary string delivered to the target address with each * notification delivered over this channel. Optional. */ - token: string; + token?: string; /** * The type of delivery mechanism used for this channel. */ - type: string; + type?: string; } /** * A Compose request. @@ -298,16 +301,16 @@ export namespace storage_v1beta2 { /** * Properties of the resulting object */ - destination: Schema$Object; + destination?: Schema$Object; /** * The kind of item this is. */ - kind: string; + kind?: string; /** * The list of source objects that will be concatenated into a single * object. */ - sourceObjects: any[]; + sourceObjects?: any[]; } /** * An object. @@ -316,104 +319,104 @@ export namespace storage_v1beta2 { /** * Access controls on the object. */ - acl: Schema$ObjectAccessControl[]; + acl?: Schema$ObjectAccessControl[]; /** * The bucket containing this object. */ - bucket: string; + bucket?: string; /** * Cache-Control directive for the object data. */ - cacheControl: string; + cacheControl?: string; /** * Number of underlying components that make up this object. Components are * accumulated by compose operations and are limited to a count of 32. */ - componentCount: number; + componentCount?: number; /** * Content-Disposition of the object data. */ - contentDisposition: string; + contentDisposition?: string; /** * Content-Encoding of the object data. */ - contentEncoding: string; + contentEncoding?: string; /** * Content-Language of the object data. */ - contentLanguage: string; + contentLanguage?: string; /** * Content-Type of the object data. */ - contentType: string; + contentType?: string; /** * CRC32c checksum, as described in RFC 4960, Appendix B; encoded using * base64. */ - crc32c: string; + crc32c?: string; /** * HTTP 1.1 Entity tag for the object. */ - etag: string; + etag?: string; /** * The content generation of this object. Used for object versioning. */ - generation: string; + generation?: string; /** * The ID of the object. */ - id: string; + id?: string; /** * The kind of item this is. For objects, this is always storage#object. */ - kind: string; + kind?: string; /** * MD5 hash of the data; encoded using base64. */ - md5Hash: string; + md5Hash?: string; /** * Media download link. */ - mediaLink: string; + mediaLink?: string; /** * User-provided metadata, in key/value pairs. */ - metadata: any; + metadata?: any; /** * The generation of the metadata for this object at this generation. Used * for metadata versioning. Has no meaning outside of the context of this * generation. */ - metageneration: string; + metageneration?: string; /** * The name of this object. Required if not specified by URL parameter. */ - name: string; + name?: string; /** * The owner of the object. This will always be the uploader of the object. */ - owner: any; + owner?: any; /** * The link to this object. */ - selfLink: string; + selfLink?: string; /** * Content-Length of the data in bytes. */ - size: string; + size?: string; /** * Storage class of the object. */ - storageClass: string; + storageClass?: string; /** * Deletion time of the object in RFC 3339 format. Will be returned if and * only if this version of the object has been deleted. */ - timeDeleted: string; + timeDeleted?: string; /** * Modification time of the object metadata in RFC 3339 format. */ - updated: string; + updated?: string; } /** * An access-control entry. @@ -422,15 +425,15 @@ export namespace storage_v1beta2 { /** * The name of the bucket. */ - bucket: string; + bucket?: string; /** * The domain associated with the entity, if any. */ - domain: string; + domain?: string; /** * The email address associated with the entity, if any. */ - email: string; + email?: string; /** * The entity holding the permission, in one of the following forms: - * user-userId - user-email - group-groupId - group-email - @@ -440,40 +443,40 @@ export namespace storage_v1beta2 { * refer to all members of the Google Apps for Business domain example.com, * the entity would be domain-example.com. */ - entity: string; + entity?: string; /** * The ID for the entity, if any. */ - entityId: string; + entityId?: string; /** * HTTP 1.1 Entity tag for the access-control entry. */ - etag: string; + etag?: string; /** * The content generation of the object. */ - generation: string; + generation?: string; /** * The ID of the access-control entry. */ - id: string; + id?: string; /** * The kind of item this is. For object access control entries, this is * always storage#objectAccessControl. */ - kind: string; + kind?: string; /** * The name of the object. */ - object: string; + object?: string; /** * The access permission for the entity. Can be READER or OWNER. */ - role: string; + role?: string; /** * The link to this access-control entry. */ - selfLink: string; + selfLink?: string; } /** * An access-control list. @@ -482,12 +485,12 @@ export namespace storage_v1beta2 { /** * The list of items. */ - items: any[]; + items?: any[]; /** * The kind of item this is. For lists of object access control entries, * this is always storage#objectAccessControls. */ - kind: string; + kind?: string; } /** * A list of objects. @@ -496,24 +499,25 @@ export namespace storage_v1beta2 { /** * The list of items. */ - items: Schema$Object[]; + items?: Schema$Object[]; /** * The kind of item this is. For lists of objects, this is always * storage#objects. */ - kind: string; + kind?: string; /** * The continuation token, used to page through large result sets. Provide * this value in a subsequent request to return the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of prefixes of objects matching-but-not-listed up to and * including the requested delimiter. */ - prefixes: string[]; + prefixes?: string[]; } + export class Resource$Bucketaccesscontrols { root: Storage; constructor(root: Storage) { @@ -540,22 +544,37 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Bucketaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Bucketaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -592,26 +611,35 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Bucketaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Bucketaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Bucketaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bucketaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -647,28 +675,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Bucketaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Bucketaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -703,28 +742,40 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Bucketaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Bucketaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bucketaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Bucketaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -762,28 +813,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Bucketaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Bucketaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -820,28 +882,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Bucketaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Bucketaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Bucketaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Bucketaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Bucketaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Bucketaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -864,6 +937,106 @@ export namespace storage_v1beta2 { } } + export interface Params$Resource$Bucketaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + export interface Params$Resource$Bucketaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + } + export interface Params$Resource$Bucketaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + export interface Params$Resource$Bucketaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Request body metadata + */ + resource?: Schema$BucketAccessControl; + } + + export class Resource$Buckets { root: Storage; constructor(root: Storage) { @@ -890,22 +1063,35 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Buckets$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Buckets$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -943,23 +1129,33 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Buckets$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Buckets$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Buckets$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Buckets$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -996,25 +1192,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Buckets$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Buckets$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1052,25 +1259,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Buckets$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Buckets$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1109,25 +1327,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Buckets$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Buckets$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Buckets$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1166,25 +1395,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Buckets$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Buckets$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Buckets$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Buckets$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Buckets$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1207,6 +1447,157 @@ export namespace storage_v1beta2 { } } + export interface Params$Resource$Buckets$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + } + export interface Params$Resource$Buckets$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + } + export interface Params$Resource$Buckets$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A valid API project identifier. + */ + project?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the bucket + * resource specifies acl or defaultObjectAcl properties, when it defaults + * to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + export interface Params$Resource$Buckets$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of buckets to return. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * A valid API project identifier. + */ + project?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + } + export interface Params$Resource$Buckets$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + export interface Params$Resource$Buckets$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the return of the bucket metadata conditional on whether the + * bucket's current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Bucket; + } + + export class Resource$Channels { root: Storage; constructor(root: Storage) { @@ -1231,22 +1622,35 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; + stop(params?: Params$Resource$Channels$Stop, options?: MethodOptions): + AxiosPromise; + stop( + params: Params$Resource$Channels$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; stop( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1269,6 +1673,14 @@ export namespace storage_v1beta2 { } } + export interface Params$Resource$Channels$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Defaultobjectaccesscontrols { root: Storage; constructor(root: Storage) { @@ -1295,22 +1707,37 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Defaultobjectaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Defaultobjectaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1348,26 +1775,35 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Defaultobjectaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Defaultobjectaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Defaultobjectaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1404,28 +1840,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Defaultobjectaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Defaultobjectaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1462,28 +1909,40 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Defaultobjectaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Defaultobjectaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Defaultobjectaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1521,28 +1980,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Defaultobjectaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Defaultobjectaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1580,28 +2050,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Defaultobjectaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Defaultobjectaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Defaultobjectaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Defaultobjectaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Defaultobjectaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Defaultobjectaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1625,7 +2106,117 @@ export namespace storage_v1beta2 { } } - export class Resource$Objectaccesscontrols { + export interface Params$Resource$Defaultobjectaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Defaultobjectaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * If present, only return default ACL listing if the bucket's current + * metageneration matches this value. + */ + ifMetagenerationMatch?: string; + /** + * If present, only return default ACL listing if the bucket's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Defaultobjectaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + + + export class Resource$Objectaccesscontrols { root: Storage; constructor(root: Storage) { this.root = root; @@ -1653,22 +2244,37 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Objectaccesscontrols$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Objectaccesscontrols$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1708,26 +2314,35 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Objectaccesscontrols$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Objectaccesscontrols$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Objectaccesscontrols$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Objectaccesscontrols$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objectaccesscontrols$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1766,28 +2381,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Objectaccesscontrols$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1824,28 +2450,40 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Objectaccesscontrols$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Objectaccesscontrols$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Objectaccesscontrols$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Objectaccesscontrols$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Objectaccesscontrols$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1885,28 +2523,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Patch, + options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Objectaccesscontrols$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1946,28 +2595,39 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objectaccesscontrols$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Objectaccesscontrols$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions| + params: Params$Resource$Objectaccesscontrols$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Objectaccesscontrols$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Objectaccesscontrols$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objectaccesscontrols$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1991,6 +2651,160 @@ export namespace storage_v1beta2 { } } + export interface Params$Resource$Objectaccesscontrols$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objectaccesscontrols$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objectaccesscontrols$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Objectaccesscontrols$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objectaccesscontrols$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + export interface Params$Resource$Objectaccesscontrols$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of a bucket. + */ + bucket?: string; + /** + * The entity holding the permission. Can be user-userId, user-emailAddress, + * group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. + */ + entity?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Request body metadata + */ + resource?: Schema$ObjectAccessControl; + } + + export class Resource$Objects { root: Storage; constructor(root: Storage) { @@ -2020,25 +2834,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - compose(params?: any, options?: MethodOptions): AxiosPromise; + compose(params?: Params$Resource$Objects$Compose, options?: MethodOptions): + AxiosPromise; + compose( + params: Params$Resource$Objects$Compose, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; compose( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Compose, + callback: BodyResponseCallback): void; + compose(callback: BodyResponseCallback): void; compose( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Compose| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Compose; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Compose; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2090,25 +2915,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - copy(params?: any, options?: MethodOptions): AxiosPromise; + copy(params?: Params$Resource$Objects$Copy, options?: MethodOptions): + AxiosPromise; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Copy, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; copy( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Copy, + callback: BodyResponseCallback): void; + copy(callback: BodyResponseCallback): void; + copy( + paramsOrCallback?: Params$Resource$Objects$Copy| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Copy; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Copy; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2159,22 +2995,35 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Objects$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Objects$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2216,23 +3065,33 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Objects$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Objects$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Objects$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Objects$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2277,25 +3136,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Objects$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Objects$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2338,25 +3208,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Objects$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Objects$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2400,25 +3281,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Objects$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Objects$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Objects$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2461,25 +3353,36 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Objects$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Objects$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Objects$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2521,26 +3424,37 @@ export namespace storage_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - watchAll(params?: any, options?: MethodOptions): - AxiosPromise; watchAll( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Objects$Watchall, + options?: MethodOptions): AxiosPromise; + watchAll( + params: Params$Resource$Objects$Watchall, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; watchAll( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Objects$Watchall, + callback: BodyResponseCallback): void; + watchAll(callback: BodyResponseCallback): void; + watchAll( + paramsOrCallback?: Params$Resource$Objects$Watchall| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Objects$Watchall; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Objects$Watchall; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2562,4 +3476,439 @@ export namespace storage_v1beta2 { } } } + + export interface Params$Resource$Objects$Compose { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. + */ + destinationBucket?: string; + /** + * Name of the new object. + */ + destinationObject?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Request body metadata + */ + resource?: Schema$ComposeRequest; + } + export interface Params$Resource$Objects$Copy { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. Overrides the + * provided object metadata's bucket value, if any. + */ + destinationBucket?: string; + /** + * Name of the new object. Required when the object metadata is not + * otherwise provided. Overrides the object metadata's name value, if any. + */ + destinationObject?: string; + /** + * Makes the operation conditional on whether the destination object's + * current generation matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current generation does not match the given value. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the destination object's + * current metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the source object's generation + * matches the given value. + */ + ifSourceGenerationMatch?: string; + /** + * Makes the operation conditional on whether the source object's generation + * does not match the given value. + */ + ifSourceGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * metageneration matches the given value. + */ + ifSourceMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the source object's current + * metageneration does not match the given value. + */ + ifSourceMetagenerationNotMatch?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the object + * resource specifies the acl property, when it defaults to full. + */ + projection?: string; + /** + * Name of the bucket in which to find the source object. + */ + sourceBucket?: string; + /** + * If present, selects a specific revision of the source object (as opposed + * to the latest version, the default). + */ + sourceGeneration?: string; + /** + * Name of the source object. + */ + sourceObject?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, permanently deletes a specific revision of this object (as + * opposed to the latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. + */ + object?: string; + } + export interface Params$Resource$Objects$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's generation + * matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's generation does + * not match the given value. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + } + export interface Params$Resource$Objects$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to store the new object. Overrides the + * provided object metadata's bucket value, if any. + */ + bucket?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. Required when the object metadata is not otherwise + * provided. Overrides the object metadata's name value, if any. + */ + name?: string; + /** + * Set of properties to return. Defaults to noAcl, unless the object + * resource specifies the acl property, when it defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Objects$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to look for objects. + */ + bucket?: string; + /** + * Returns results in a directory-like mode. items will contain only objects + * whose names, aside from the prefix, do not contain delimiter. Objects + * whose names, aside from the prefix, contain delimiter will have their + * name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + */ + delimiter?: string; + /** + * Maximum number of items plus prefixes to return. As duplicate prefixes + * are omitted, fewer total results may be returned than requested. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Filter results to objects whose names begin with this prefix. + */ + prefix?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * If true, lists all versions of a file as distinct results. + */ + versions?: boolean; + } + export interface Params$Resource$Objects$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which the object resides. + */ + bucket?: string; + /** + * If present, selects a specific revision of this object (as opposed to the + * latest version, the default). + */ + generation?: string; + /** + * Makes the operation conditional on whether the object's current + * generation matches the given value. + */ + ifGenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * generation does not match the given value. + */ + ifGenerationNotMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration matches the given value. + */ + ifMetagenerationMatch?: string; + /** + * Makes the operation conditional on whether the object's current + * metageneration does not match the given value. + */ + ifMetagenerationNotMatch?: string; + /** + * Name of the object. + */ + object?: string; + /** + * Set of properties to return. Defaults to full. + */ + projection?: string; + /** + * Request body metadata + */ + resource?: Schema$Object; + } + export interface Params$Resource$Objects$Watchall { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the bucket in which to look for objects. + */ + bucket?: string; + /** + * Returns results in a directory-like mode. items will contain only objects + * whose names, aside from the prefix, do not contain delimiter. Objects + * whose names, aside from the prefix, contain delimiter will have their + * name, truncated after the delimiter, returned in prefixes. Duplicate + * prefixes are omitted. + */ + delimiter?: string; + /** + * Maximum number of items plus prefixes to return. As duplicate prefixes + * are omitted, fewer total results may be returned than requested. + */ + maxResults?: number; + /** + * A previously-returned page token representing part of the larger set of + * results to view. + */ + pageToken?: string; + /** + * Filter results to objects whose names begin with this prefix. + */ + prefix?: string; + /** + * Set of properties to return. Defaults to noAcl. + */ + projection?: string; + /** + * If true, lists all versions of a file as distinct results. + */ + versions?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } } diff --git a/src/apis/storagetransfer/v1.ts b/src/apis/storagetransfer/v1.ts index 9f3b0ced93e..e2625c73716 100644 --- a/src/apis/storagetransfer/v1.ts +++ b/src/apis/storagetransfer/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace storagetransfer_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Storage Transfer API * @@ -78,12 +81,12 @@ export namespace storagetransfer_v1 { /** * AWS access key ID. Required. */ - accessKeyId: string; + accessKeyId?: string; /** * AWS secret access key. This field is not returned in RPC responses. * Required. */ - secretAccessKey: string; + secretAccessKey?: string; } /** * An AwsS3Data resource can be a data source, but not a data sink. In an @@ -95,13 +98,13 @@ export namespace storagetransfer_v1 { * Permissions on the bucket must be granted to the access ID of the AWS * access key. Required. */ - awsAccessKey: Schema$AwsAccessKey; + awsAccessKey?: Schema$AwsAccessKey; /** * S3 Bucket name (see [Creating a * bucket](http://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)). * Required. */ - bucketName: string; + bucketName?: string; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -117,17 +120,17 @@ export namespace storagetransfer_v1 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -144,12 +147,12 @@ export namespace storagetransfer_v1 { /** * A list of messages that carry the error details. */ - errorDetails: string[]; + errorDetails?: string[]; /** * A URL that refers to the target (a data source, a data sink, or an * object) with which the error is associated. Required. */ - url: string; + url?: string; } /** * A summary of errors by error code, plus a count and sample error log @@ -159,15 +162,15 @@ export namespace storagetransfer_v1 { /** * Required. */ - errorCode: string; + errorCode?: string; /** * Count of this type of error. Required. */ - errorCount: string; + errorCount?: string; /** * Error samples. */ - errorLogEntries: Schema$ErrorLogEntry[]; + errorLogEntries?: Schema$ErrorLogEntry[]; } /** * In a GcsData resource, an object's name is the Google Cloud Storage @@ -178,10 +181,10 @@ export namespace storagetransfer_v1 { export interface Schema$GcsData { /** * Google Cloud Storage bucket name (see [Bucket Name - * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + * Requirements](https://cloud.google.com/storage/docs/naming#requirements)). * Required. */ - bucketName: string; + bucketName?: string; } /** * Google service account @@ -190,7 +193,7 @@ export namespace storagetransfer_v1 { /** * Required. */ - accountEmail: string; + accountEmail?: string; } /** * An HttpData resource specifies a list of objects on the web to be @@ -227,7 +230,7 @@ export namespace storagetransfer_v1 { * file must allow public access. Currently, only URLs with HTTP and HTTPS * schemes are supported. Required. */ - listUrl: string; + listUrl?: string; } /** * The response message for Operations.ListOperations. @@ -236,11 +239,11 @@ export namespace storagetransfer_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response from ListTransferJobs. @@ -249,11 +252,11 @@ export namespace storagetransfer_v1 { /** * The list next page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of transfer jobs. */ - transferJobs: Schema$TransferJob[]; + transferJobs?: Schema$TransferJob[]; } /** * Conditions that determine which objects will be transferred. @@ -263,7 +266,7 @@ export namespace storagetransfer_v1 { * `excludePrefixes` must follow the requirements described for * `includePrefixes`. The max size of `excludePrefixes` is 1000. */ - excludePrefixes: string[]; + excludePrefixes?: string[]; /** * If `includePrefixes` is specified, objects that satisfy the object * conditions must have names that start with one of the `includePrefixes` @@ -288,12 +291,12 @@ export namespace storagetransfer_v1 { * path explicitly included by `includePrefixes`. The max size of * `includePrefixes` is 1000. */ - includePrefixes: string[]; + includePrefixes?: string[]; /** * `maxTimeElapsedSinceLastModification` is the complement to * `minTimeElapsedSinceLastModification`. */ - maxTimeElapsedSinceLastModification: string; + maxTimeElapsedSinceLastModification?: string; /** * If unspecified, `minTimeElapsedSinceLastModification` takes a zero value * and `maxTimeElapsedSinceLastModification` takes the maximum possible @@ -303,7 +306,7 @@ export namespace storagetransfer_v1 { * `minTimeElapsedSinceLastModification`, or not have a * `lastModificationTime`. */ - minTimeElapsedSinceLastModification: string; + minTimeElapsedSinceLastModification?: string; } /** * This resource represents a long-running operation that is the result of a @@ -315,21 +318,21 @@ export namespace storagetransfer_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Represents the transfer operation object. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `transferOperations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -339,7 +342,7 @@ export namespace storagetransfer_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Request passed to PauseTransferOperation. @@ -357,13 +360,13 @@ export namespace storagetransfer_v1 { * The last day the recurring transfer will be run. If `scheduleEndDate` is * the same as `scheduleStartDate`, the transfer will be executed only once. */ - scheduleEndDate: Schema$Date; + scheduleEndDate?: Schema$Date; /** * The first day the recurring transfer is scheduled to run. If * `scheduleStartDate` is in the past, the transfer will run for the first * time on the following day. Required. */ - scheduleStartDate: Schema$Date; + scheduleStartDate?: Schema$Date; /** * The time in UTC at which the transfer will be scheduled to start in a * day. Transfers may start later than this time. If not specified, @@ -373,7 +376,7 @@ export namespace storagetransfer_v1 { * when configuring a transfer with the Cloud Platform Console, the * transfer's start time in a day is specified in your local timezone. */ - startTimeOfDay: Schema$TimeOfDay; + startTimeOfDay?: Schema$TimeOfDay; } /** * The `Status` type defines a logical error model that is suitable for @@ -415,18 +418,18 @@ export namespace storagetransfer_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Represents a time of day. The date and time zone are either not significant @@ -439,20 +442,20 @@ export namespace storagetransfer_v1 { * to allow the value "24:00:00" for scenarios like business * closing time. */ - hours: number; + hours?: number; /** * Minutes of hour of day. Must be from 0 to 59. */ - minutes: number; + minutes?: number; /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */ - nanos: number; + nanos?: number; /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. */ - seconds: number; + seconds?: number; } /** * A collection of counters that report the progress of a transfer operation. @@ -461,75 +464,75 @@ export namespace storagetransfer_v1 { /** * Bytes that are copied to the data sink. */ - bytesCopiedToSink: string; + bytesCopiedToSink?: string; /** * Bytes that are deleted from the data sink. */ - bytesDeletedFromSink: string; + bytesDeletedFromSink?: string; /** * Bytes that are deleted from the data source. */ - bytesDeletedFromSource: string; + bytesDeletedFromSource?: string; /** * Bytes that failed to be deleted from the data sink. */ - bytesFailedToDeleteFromSink: string; + bytesFailedToDeleteFromSink?: string; /** * Bytes found in the data source that are scheduled to be transferred, * excluding any that are filtered based on object conditions or skipped due * to sync. */ - bytesFoundFromSource: string; + bytesFoundFromSource?: string; /** * Bytes found only in the data sink that are scheduled to be deleted. */ - bytesFoundOnlyFromSink: string; + bytesFoundOnlyFromSink?: string; /** * Bytes in the data source that failed to be transferred or that failed to * be deleted after being transferred. */ - bytesFromSourceFailed: string; + bytesFromSourceFailed?: string; /** * Bytes in the data source that are not transferred because they already * exist in the data sink. */ - bytesFromSourceSkippedBySync: string; + bytesFromSourceSkippedBySync?: string; /** * Objects that are copied to the data sink. */ - objectsCopiedToSink: string; + objectsCopiedToSink?: string; /** * Objects that are deleted from the data sink. */ - objectsDeletedFromSink: string; + objectsDeletedFromSink?: string; /** * Objects that are deleted from the data source. */ - objectsDeletedFromSource: string; + objectsDeletedFromSource?: string; /** * Objects that failed to be deleted from the data sink. */ - objectsFailedToDeleteFromSink: string; + objectsFailedToDeleteFromSink?: string; /** * Objects found in the data source that are scheduled to be transferred, * excluding any that are filtered based on object conditions or skipped due * to sync. */ - objectsFoundFromSource: string; + objectsFoundFromSource?: string; /** * Objects found only in the data sink that are scheduled to be deleted. */ - objectsFoundOnlyFromSink: string; + objectsFoundOnlyFromSink?: string; /** * Objects in the data source that failed to be transferred or that failed * to be deleted after being transferred. */ - objectsFromSourceFailed: string; + objectsFromSourceFailed?: string; /** * Objects in the data source that are not transferred because they already * exist in the data sink. */ - objectsFromSourceSkippedBySync: string; + objectsFromSourceSkippedBySync?: string; } /** * This resource represents the configuration of a transfer job that runs @@ -539,35 +542,35 @@ export namespace storagetransfer_v1 { /** * This field cannot be changed by user requests. */ - creationTime: string; + creationTime?: string; /** * This field cannot be changed by user requests. */ - deletionTime: string; + deletionTime?: string; /** * A description provided by the user for the job. Its max length is 1024 * bytes when Unicode-encoded. */ - description: string; + description?: string; /** * This field cannot be changed by user requests. */ - lastModificationTime: string; + lastModificationTime?: string; /** * A globally unique name assigned by Storage Transfer Service when the job * is created. This field should be left empty in requests to create a new * transfer job; otherwise, the requests result in an `INVALID_ARGUMENT` * error. */ - name: string; + name?: string; /** * The ID of the Google Cloud Platform Console project that owns the job. */ - projectId: string; + projectId?: string; /** * Schedule specification. */ - schedule: Schema$Schedule; + schedule?: Schema$Schedule; /** * Status of the job. This value MUST be specified for * `CreateTransferJobRequests`. NOTE: The effect of the new job status @@ -576,11 +579,11 @@ export namespace storagetransfer_v1 { * transfer is running, the status change would not affect the current * operation. */ - status: string; + status?: string; /** * Transfer specification. */ - transferSpec: Schema$TransferSpec; + transferSpec?: Schema$TransferSpec; } /** * A description of the execution of a transfer. @@ -589,40 +592,40 @@ export namespace storagetransfer_v1 { /** * Information about the progress of the transfer operation. */ - counters: Schema$TransferCounters; + counters?: Schema$TransferCounters; /** * End time of this transfer execution. */ - endTime: string; + endTime?: string; /** * Summarizes errors encountered with sample error log entries. */ - errorBreakdowns: Schema$ErrorSummary[]; + errorBreakdowns?: Schema$ErrorSummary[]; /** * A globally unique ID assigned by the system. */ - name: string; + name?: string; /** * The ID of the Google Cloud Platform Console project that owns the * operation. Required. */ - projectId: string; + projectId?: string; /** * Start time of this transfer execution. */ - startTime: string; + startTime?: string; /** * Status of the transfer operation. */ - status: string; + status?: string; /** * The name of the transfer job that triggers this transfer operation. */ - transferJobName: string; + transferJobName?: string; /** * Transfer specification. Required. */ - transferSpec: Schema$TransferSpec; + transferSpec?: Schema$TransferSpec; } /** * TransferOptions uses three boolean parameters to define the actions to be @@ -634,17 +637,17 @@ export namespace storagetransfer_v1 { * transferred to the sink. Note that this option and * `deleteObjectsUniqueInSink` are mutually exclusive. */ - deleteObjectsFromSourceAfterTransfer: boolean; + deleteObjectsFromSourceAfterTransfer?: boolean; /** * Whether objects that exist only in the sink should be deleted. Note that * this option and `deleteObjectsFromSourceAfterTransfer` are mutually * exclusive. */ - deleteObjectsUniqueInSink: boolean; + deleteObjectsUniqueInSink?: boolean; /** * Whether overwriting objects that already exist in the sink is allowed. */ - overwriteObjectsAlreadyExistingInSink: boolean; + overwriteObjectsAlreadyExistingInSink?: boolean; } /** * Configuration for running a transfer. @@ -653,32 +656,32 @@ export namespace storagetransfer_v1 { /** * An AWS S3 data source. */ - awsS3DataSource: Schema$AwsS3Data; + awsS3DataSource?: Schema$AwsS3Data; /** * A Google Cloud Storage data sink. */ - gcsDataSink: Schema$GcsData; + gcsDataSink?: Schema$GcsData; /** * A Google Cloud Storage data source. */ - gcsDataSource: Schema$GcsData; + gcsDataSource?: Schema$GcsData; /** * An HTTP URL data source. */ - httpDataSource: Schema$HttpData; + httpDataSource?: Schema$HttpData; /** * Only objects that satisfy these object conditions are included in the set * of data source and data sink objects. Object conditions based on * objects' `lastModificationTime` do not exclude objects in a data * sink. */ - objectConditions: Schema$ObjectConditions; + objectConditions?: Schema$ObjectConditions; /** * If the option `deleteObjectsUniqueInSink` is `true`, object conditions * based on objects' `lastModificationTime` are ignored and do not * exclude objects in a data source or a data sink. */ - transferOptions: Schema$TransferOptions; + transferOptions?: Schema$TransferOptions; } /** * Request passed to UpdateTransferJob. @@ -688,14 +691,14 @@ export namespace storagetransfer_v1 { * The ID of the Google Cloud Platform Console project that owns the job. * Required. */ - projectId: string; + projectId?: string; /** * The job to update. `transferJob` is expected to specify only three * fields: `description`, `transferSpec`, and `status`. An * UpdateTransferJobRequest that specifies other fields will be rejected * with an error `INVALID_ARGUMENT`. Required. */ - transferJob: Schema$TransferJob; + transferJob?: Schema$TransferJob; /** * The field mask of the fields in `transferJob` that are to be updated in * this request. Fields in `transferJob` that can be updated are: @@ -704,9 +707,10 @@ export namespace storagetransfer_v1 { * provided. An incomplete specification which misses any required fields * will be rejected with the error `INVALID_ARGUMENT`. */ - updateTransferJobFieldMask: string; + updateTransferJobFieldMask?: string; } + export class Resource$Googleserviceaccounts { root: Storagetransfer; constructor(root: Storagetransfer) { @@ -791,26 +795,36 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Googleserviceaccounts$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Googleserviceaccounts$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Googleserviceaccounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Googleserviceaccounts$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Googleserviceaccounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Googleserviceaccounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -834,6 +848,20 @@ export namespace storagetransfer_v1 { } } + export interface Params$Resource$Googleserviceaccounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the Google Cloud Platform Console project that the Google + * service account is associated with. Required. + */ + projectId?: string; + } + + export class Resource$Transferjobs { root: Storagetransfer; constructor(root: Storagetransfer) { @@ -912,26 +940,39 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Transferjobs$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Transferjobs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transferjobs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Transferjobs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferjobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferjobs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1022,24 +1063,34 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Transferjobs$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Transferjobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Transferjobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Transferjobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Transferjobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferjobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1140,28 +1191,39 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Transferjobs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Transferjobs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Transferjobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Transferjobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferjobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferjobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1260,26 +1322,38 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): + patch(params?: Params$Resource$Transferjobs$Patch, options?: MethodOptions): AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Transferjobs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transferjobs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: Params$Resource$Transferjobs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferjobs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferjobs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1302,6 +1376,75 @@ export namespace storagetransfer_v1 { } } + export interface Params$Resource$Transferjobs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$TransferJob; + } + export interface Params$Resource$Transferjobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The job to get. Required. + */ + jobName?: string; + /** + * The ID of the Google Cloud Platform Console project that owns the job. + * Required. + */ + projectId?: string; + } + export interface Params$Resource$Transferjobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A list of query parameters specified as JSON text in the form of + * {"project_id":"my_project_id", "job_names":["jobid1","jobid2",...], + * "job_statuses":["status1","status2",...]}. Since `job_names` and + * `job_statuses` support multiple values, their values must be specified + * with array notation. `project_id` is required. `job_names` and + * `job_statuses` are optional. The valid values for `job_statuses` are + * case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`. + */ + filter?: string; + /** + * The list page size. The max allowed value is 256. + */ + pageSize?: number; + /** + * The list page token. + */ + pageToken?: string; + } + export interface Params$Resource$Transferjobs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of job to update. Required. + */ + jobName?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateTransferJobRequest; + } + + export class Resource$Transferoperations { root: Storagetransfer; constructor(root: Storagetransfer) { @@ -1379,25 +1522,38 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Transferoperations$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transferoperations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Transferoperations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Transferoperations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferoperations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferoperations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1485,25 +1641,38 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Transferoperations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Transferoperations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transferoperations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Transferoperations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferoperations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferoperations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1592,23 +1761,35 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Transferoperations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Transferoperations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Transferoperations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Transferoperations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferoperations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferoperations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1721,28 +1902,40 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Transferoperations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Transferoperations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Transferoperations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Transferoperations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferoperations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferoperations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1834,25 +2027,38 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - pause(params?: any, options?: MethodOptions): AxiosPromise; pause( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Transferoperations$Pause, + options?: MethodOptions): AxiosPromise; + pause( + params: Params$Resource$Transferoperations$Pause, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; pause( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transferoperations$Pause, + callback: BodyResponseCallback): void; + pause(callback: BodyResponseCallback): void; + pause( + paramsOrCallback?: Params$Resource$Transferoperations$Pause| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferoperations$Pause; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferoperations$Pause; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1945,25 +2151,38 @@ export namespace storagetransfer_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resume(params?: any, options?: MethodOptions): AxiosPromise; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Transferoperations$Resume, + options?: MethodOptions): AxiosPromise; resume( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Transferoperations$Resume, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resume( + params: Params$Resource$Transferoperations$Resume, + callback: BodyResponseCallback): void; + resume(callback: BodyResponseCallback): void; + resume( + paramsOrCallback?: Params$Resource$Transferoperations$Resume| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Transferoperations$Resume; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Transferoperations$Resume; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; const parameters = { @@ -1986,4 +2205,97 @@ export namespace storagetransfer_v1 { } } } + + export interface Params$Resource$Transferoperations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Transferoperations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Transferoperations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Transferoperations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A list of query parameters specified as JSON text in the form of + * {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", + * \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], + * \"transfer_statuses\":[\"status1\", \"status2\",...]}. Since `job_names`, + * `operation_names`, and `transfer_statuses` support multiple values, they + * must be specified with array notation. `job_names`, `operation_names`, + * and `transfer_statuses` are optional. + */ + filter?: string; + /** + * The value `transferOperations`. + */ + name?: string; + /** + * The list page size. The max allowed value is 256. + */ + pageSize?: number; + /** + * The list page token. + */ + pageToken?: string; + } + export interface Params$Resource$Transferoperations$Pause { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the transfer operation. Required. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$PauseTransferOperationRequest; + } + export interface Params$Resource$Transferoperations$Resume { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the transfer operation. Required. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ResumeTransferOperationRequest; + } } diff --git a/src/apis/streetviewpublish/v1.ts b/src/apis/streetviewpublish/v1.ts index 56f6f9ece79..46108761228 100644 --- a/src/apis/streetviewpublish/v1.ts +++ b/src/apis/streetviewpublish/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace streetviewpublish_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Street View Publish API * @@ -78,7 +81,7 @@ export namespace streetviewpublish_v1 { * parameter should be * `photoIds=<id1>&photoIds=<id2>&...`. */ - photoIds: string[]; + photoIds?: string[]; } /** * Response to batch delete of one or more Photos. @@ -88,7 +91,7 @@ export namespace streetviewpublish_v1 { * The status for the operation to delete a single Photo in the batch * request. */ - status: Schema$Status[]; + status?: Schema$Status[]; } /** * Response to batch get of Photos. @@ -98,7 +101,7 @@ export namespace streetviewpublish_v1 { * List of results for each individual Photo requested, in the same order as * the requests in BatchGetPhotos. */ - results: Schema$PhotoResponse[]; + results?: Schema$PhotoResponse[]; } /** * Request to update the metadata of photos. Updating the pixels of photos is @@ -108,7 +111,7 @@ export namespace streetviewpublish_v1 { /** * Required. List of UpdatePhotoRequests. */ - updatePhotoRequests: Schema$UpdatePhotoRequest[]; + updatePhotoRequests?: Schema$UpdatePhotoRequest[]; } /** * Response to batch update of metadata of one or more Photos. @@ -118,7 +121,7 @@ export namespace streetviewpublish_v1 { * List of results for each individual Photo updated, in the same order as * the request. */ - results: Schema$PhotoResponse[]; + results?: Schema$PhotoResponse[]; } /** * A connection is the link from a source photo to a destination photo. @@ -128,7 +131,7 @@ export namespace streetviewpublish_v1 { * Required. The destination of the connection from the containing photo to * another photo. */ - target: Schema$PhotoId; + target?: Schema$PhotoId; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -149,11 +152,11 @@ export namespace streetviewpublish_v1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * Level information containing level number and its corresponding name. @@ -164,13 +167,13 @@ export namespace streetviewpublish_v1 { * Consider how the elevator buttons would be labeled for this level if * there was an elevator. */ - name: string; + name?: string; /** * Floor number, used for ordering. 0 indicates the ground level, 1 * indicates the first level above ground level, -1 indicates the first * level under ground level. Non-integer values are OK. */ - number: number; + number?: number; } /** * Response to list all photos that belong to a user. @@ -180,12 +183,12 @@ export namespace streetviewpublish_v1 { * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * List of photos. The maximum number of items returned is based on the * pageSize field in the request. */ - photos: Schema$Photo[]; + photos?: Schema$Photo[]; } /** * This resource represents a long-running operation that is the result of a @@ -197,24 +200,24 @@ export namespace streetviewpublish_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -224,7 +227,7 @@ export namespace streetviewpublish_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Photo is used to store 360 photos along with photo metadata. @@ -234,47 +237,47 @@ export namespace streetviewpublish_v1 { * Absolute time when the photo was captured. When the photo has no exif * timestamp, this is used to set a timestamp in the photo metadata. */ - captureTime: string; + captureTime?: string; /** * Connections to other photos. A connection represents the link from this * photo to another photo. */ - connections: Schema$Connection[]; + connections?: Schema$Connection[]; /** * Output only. The download URL for the photo bytes. This field is set only * when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. */ - downloadUrl: string; + downloadUrl?: string; /** * Required when updating a photo. Output only when creating a photo. * Identifier for the photo, which is unique among all photos in Google. */ - photoId: Schema$PhotoId; + photoId?: Schema$PhotoId; /** * Places where this photo belongs. */ - places: Schema$Place[]; + places?: Schema$Place[]; /** * Pose of the photo. */ - pose: Schema$Pose; + pose?: Schema$Pose; /** * Output only. The share link for the photo. */ - shareLink: string; + shareLink?: string; /** * Output only. The thumbnail URL for showing a preview of the given photo. */ - thumbnailUrl: string; + thumbnailUrl?: string; /** * Required when creating a photo. Input only. The resource URL where the * photo bytes are uploaded to. */ - uploadReference: Schema$UploadRef; + uploadReference?: Schema$UploadRef; /** * Output only. View count of the photo. */ - viewCount: string; + viewCount?: string; } /** * Identifier for a Photo. @@ -283,7 +286,7 @@ export namespace streetviewpublish_v1 { /** * Required. A unique identifier for a photo. */ - id: string; + id?: string; } /** * Response payload for a single Photo in batch operations including @@ -293,12 +296,12 @@ export namespace streetviewpublish_v1 { /** * The Photo resource, if the request was successful. */ - photo: Schema$Photo; + photo?: Schema$Photo; /** * The status for the operation to get or update a single photo in the batch * request. */ - status: Schema$Status; + status?: Schema$Status; } /** * Place metadata for an entity. @@ -308,7 +311,7 @@ export namespace streetviewpublish_v1 { * Place identifier, as described in * https://developers.google.com/places/place-id. */ - placeId: string; + placeId?: string; } /** * Raw pose measurement for an entity. @@ -318,13 +321,13 @@ export namespace streetviewpublish_v1 { * Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an * unmeasured quantity. */ - altitude: number; + altitude?: number; /** * Compass heading, measured at the center of the photo in degrees clockwise * from North. Value must be >=0 and <360. NaN indicates an unmeasured * quantity. */ - heading: number; + heading?: number; /** * Latitude and longitude pair of the pose, as explained here: * https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng @@ -333,23 +336,23 @@ export namespace streetviewpublish_v1 { * latitude and longitude pair is not provided and cannot be found in the * exif header, the create photo process will fail. */ - latLngPair: Schema$LatLng; + latLngPair?: Schema$LatLng; /** * Level (the floor in a building) used to configure vertical navigation. */ - level: Schema$Level; + level?: Schema$Level; /** * Pitch, measured at the center of the photo in degrees. Value must be * >=-90 and <= 90. A value of -90 means looking directly down, and a * value of 90 means looking directly up. NaN indicates an unmeasured * quantity. */ - pitch: number; + pitch?: number; /** * Roll, measured in degrees. Value must be >= 0 and <360. A value of * 0 means level with the horizon. NaN indicates an unmeasured quantity. */ - roll: number; + roll?: number; } /** * The `Status` type defines a logical error model that is suitable for @@ -391,18 +394,18 @@ export namespace streetviewpublish_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request to update the metadata of a Photo. Updating the pixels of a photo @@ -412,7 +415,7 @@ export namespace streetviewpublish_v1 { /** * Required. Photo object containing the new metadata. */ - photo: Schema$Photo; + photo?: Schema$Photo; /** * Mask that identifies fields on the photo metadata to update. If not * present, the old Photo metadata will be entirely replaced with the new @@ -427,7 +430,7 @@ export namespace streetviewpublish_v1 { * `UpdatePhotoRequest.photo.connections` is empty, all connections will be * removed.</aside> */ - updateMask: string; + updateMask?: string; } /** * Upload reference for media files. @@ -438,9 +441,10 @@ export namespace streetviewpublish_v1 { * the form: * "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" */ - uploadUrl: string; + uploadUrl?: string; } + export class Resource$Photo { root: Streetviewpublish; constructor(root: Streetviewpublish) { @@ -476,25 +480,36 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Photo$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Photo$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Photo$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Photo$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Photo$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photo$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -532,25 +547,36 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Photo$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Photo$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Photo$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Photo$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Photo$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photo$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -592,23 +618,33 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Photo$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Photo$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Photo$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Photo$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Photo$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photo$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -656,26 +692,39 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - startUpload(params?: any, options?: MethodOptions): - AxiosPromise; startUpload( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Photo$Startupload, + options?: MethodOptions): AxiosPromise; + startUpload( + params: Params$Resource$Photo$Startupload, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + startUpload( + params: Params$Resource$Photo$Startupload, + callback: BodyResponseCallback): void; + startUpload(callback: BodyResponseCallback): void; startUpload( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Photo$Startupload| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Photo$Startupload; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photo$Startupload; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -724,25 +773,36 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Photo$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Photo$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Photo$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Photo$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Photo$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photo$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -765,6 +825,86 @@ export namespace streetviewpublish_v1 { } } + export interface Params$Resource$Photo$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Photo; + } + export interface Params$Resource$Photo$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. ID of the Photo. + */ + photoId?: string; + } + export interface Params$Resource$Photo$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. ID of the Photo. + */ + photoId?: string; + /** + * Specifies if a download URL for the photo bytes should be returned in the + * Photo response. + */ + view?: string; + } + export interface Params$Resource$Photo$Startupload { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Empty; + } + export interface Params$Resource$Photo$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. A unique identifier for a photo. + */ + id?: string; + /** + * Mask that identifies fields on the photo metadata to update. If not + * present, the old Photo metadata will be entirely replaced with the new + * Photo metadata in this request. The update fails if invalid fields are + * specified. Multiple fields can be specified in a comma-delimited list. + * The following fields are valid: * `pose.heading` * `pose.latLngPair` * + * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * + * `connections` * `places`

+ */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$Photo; + } + + export class Resource$Photos { root: Streetviewpublish; constructor(root: Streetviewpublish) { @@ -795,29 +935,41 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchDelete(params?: any, options?: MethodOptions): + batchDelete( + params?: Params$Resource$Photos$Batchdelete, options?: MethodOptions): AxiosPromise; batchDelete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Photos$Batchdelete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; + batchDelete( + params: Params$Resource$Photos$Batchdelete, + callback: BodyResponseCallback): void; batchDelete( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + batchDelete( + paramsOrCallback?: Params$Resource$Photos$Batchdelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Photos$Batchdelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photos$Batchdelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -860,28 +1012,39 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchGet(params?: any, options?: MethodOptions): + batchGet(params?: Params$Resource$Photos$Batchget, options?: MethodOptions): AxiosPromise; batchGet( - params?: any, - options?: MethodOptions| + params: Params$Resource$Photos$Batchget, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; batchGet( - params?: any, - options?: MethodOptions| + params: Params$Resource$Photos$Batchget, + callback: BodyResponseCallback): void; + batchGet(callback: BodyResponseCallback): + void; + batchGet( + paramsOrCallback?: Params$Resource$Photos$Batchget| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Photos$Batchget; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photos$Batchget; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -928,29 +1091,41 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchUpdate(params?: any, options?: MethodOptions): + batchUpdate( + params?: Params$Resource$Photos$Batchupdate, options?: MethodOptions): AxiosPromise; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Photos$Batchupdate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): - void; + callback: BodyResponseCallback): void; batchUpdate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Photos$Batchupdate, + callback: BodyResponseCallback): void; + batchUpdate( + callback: BodyResponseCallback): void; + batchUpdate( + paramsOrCallback?: Params$Resource$Photos$Batchupdate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Photos$Batchupdate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photos$Batchupdate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -992,26 +1167,37 @@ export namespace streetviewpublish_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Photos$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Photos$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Photos$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Photos$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Photos$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Photos$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; const parameters = { @@ -1033,4 +1219,75 @@ export namespace streetviewpublish_v1 { } } } + + export interface Params$Resource$Photos$Batchdelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$BatchDeletePhotosRequest; + } + export interface Params$Resource$Photos$Batchget { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. IDs of the Photos. For HTTP GET requests, the URL query + * parameter should be `photoIds=&photoIds=&...`. + */ + photoIds?: string; + /** + * Specifies if a download URL for the photo bytes should be returned in the + * Photo response. + */ + view?: string; + } + export interface Params$Resource$Photos$Batchupdate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$BatchUpdatePhotosRequest; + } + export interface Params$Resource$Photos$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The filter expression. For example: + * `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The only filter supported at the + * moment is `placeId`. + */ + filter?: string; + /** + * The maximum number of photos to return. `pageSize` must be non-negative. + * If `pageSize` is zero or is not provided, the default page size of 100 + * will be used. The number of photos returned in the response may be less + * than `pageSize` if the number of photos that belong to the user is less + * than `pageSize`. + */ + pageSize?: number; + /** + * The nextPageToken value returned from a previous ListPhotos request, if + * any. + */ + pageToken?: string; + /** + * Specifies if a download URL for the photos bytes should be returned in + * the Photos response. + */ + view?: string; + } } diff --git a/src/apis/surveys/v2.ts b/src/apis/surveys/v2.ts index 259bdd32fe0..97fbfd9a9b3 100644 --- a/src/apis/surveys/v2.ts +++ b/src/apis/surveys/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace surveys_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Surveys API * @@ -71,8 +74,8 @@ export namespace surveys_v2 { } export interface Schema$FieldMask { - fields: Schema$FieldMask[]; - id: number; + fields?: Schema$FieldMask[]; + id?: number; } /** * Representation of an individual pre-defined panel object defining a @@ -86,55 +89,55 @@ export namespace surveys_v2 { * Kingdom. Any survey created targeting this panel must also target the * corresponding country. */ - country: string; + country?: string; /** * Whether or not the panel is accessible to all API users. */ - isPublicPanel: boolean; + isPublicPanel?: boolean; /** * Language code that the panel can target. For instance, 'en-US'. * Uses standard BCP47 language codes. See specification. Any survey created * targeting this panel must also target the corresponding language. */ - language: string; + language?: string; /** * Unique panel ID string. This corresponds to the mobile_app_panel_id used * in Survey Insert requests. */ - mobileAppPanelId: string; + mobileAppPanelId?: string; /** * Human readable name of the audience panel. */ - name: string; + name?: string; /** * List of email addresses for users who can target members of this panel. * Must contain at least the address of the user making the API call for * panels that are not public. This field will be empty for public panels. */ - owners: string[]; + owners?: string[]; } export interface Schema$MobileAppPanelsListResponse { - pageInfo: Schema$PageInfo; + pageInfo?: Schema$PageInfo; /** * Unique request ID used for logging and debugging. Please include in any * error reporting or troubleshooting requests. */ - requestId: string; + requestId?: string; /** * An individual predefined panel of Opinion Rewards mobile users. */ - resources: Schema$MobileAppPanel[]; - tokenPagination: Schema$TokenPagination; + resources?: Schema$MobileAppPanel[]; + tokenPagination?: Schema$TokenPagination; } export interface Schema$PageInfo { - resultPerPage: number; - startIndex: number; - totalResults: number; + resultPerPage?: number; + startIndex?: number; + totalResults?: number; } - export interface Schema$ResultsGetRequest { resultMask: Schema$ResultsMask; } + export interface Schema$ResultsGetRequest { resultMask?: Schema$ResultsMask; } export interface Schema$ResultsMask { - fields: Schema$FieldMask[]; - projection: string; + fields?: Schema$FieldMask[]; + projection?: string; } /** * Representation of an individual survey object. @@ -143,51 +146,51 @@ export namespace surveys_v2 { /** * Targeting-criteria message containing demographic information */ - audience: Schema$SurveyAudience; + audience?: Schema$SurveyAudience; /** * Cost to run the survey and collect the necessary number of responses. */ - cost: Schema$SurveyCost; + cost?: Schema$SurveyCost; /** * Additional information to store on behalf of the API consumer and * associate with this question. This binary blob is treated as opaque. This * field is limited to 64K bytes. */ - customerData: string; + customerData?: string; /** * Text description of the survey. */ - description: string; + description?: string; /** * List of email addresses for survey owners. Must contain at least the * address of the user making the API call. */ - owners: string[]; + owners?: string[]; /** * List of questions defining the survey. */ - questions: Schema$SurveyQuestion[]; + questions?: Schema$SurveyQuestion[]; /** * Reason for the survey being rejected. Only present if the survey state is * rejected. */ - rejectionReason: Schema$SurveyRejection; + rejectionReason?: Schema$SurveyRejection; /** * State that the survey is in. */ - state: string; + state?: string; /** * Unique survey ID, that is viewable in the URL of the Survey Creator UI */ - surveyUrlId: string; + surveyUrlId?: string; /** * Optional name that will be given to the survey. */ - title: string; + title?: string; /** * Number of responses desired for the survey. */ - wantedResponseCount: number; + wantedResponseCount?: number; } /** * Specifications for the target audience of a survey run through the API. @@ -198,14 +201,14 @@ export namespace surveys_v2 { * ['18-24', '25-34', '35-44', '45-54', * '55-64', '65+'] */ - ages: string[]; + ages?: string[]; /** * Required country code that surveys should be targeted to. Accepts * standard ISO 3166-1 2 character language codes. For instance, * 'US' for the United States, and 'GB' for the United * Kingdom. */ - country: string; + country?: string; /** * Country subdivision (states/provinces/etc) that surveys should be * targeted to. For all countries except GB, ISO-3166-2 subdivision code is @@ -213,11 +216,11 @@ export namespace surveys_v2 { * statistical region codes for the United Kingdom is required (eg. * 'UK-UKC' for North East England). */ - countrySubdivision: string; + countrySubdivision?: string; /** * Optional gender to target. */ - gender: string; + gender?: string; /** * Language code that surveys should be targeted to. For instance, * 'en-US'. Surveys may target bilingual users by specifying a list @@ -226,17 +229,17 @@ export namespace surveys_v2 { * content (which is displayed) must match the first language listed. * Accepts standard BCP47 language codes. See specification. */ - languages: string[]; + languages?: string[]; /** * Key for predefined panel that causes survey to be sent to a predefined * set of Opinion Rewards App users. You must set PopulationSource to * ANDROID_APP_PANEL to use this field. */ - mobileAppPanelId: string; + mobileAppPanelId?: string; /** * Online population source where the respondents are sampled from. */ - populationSource: string; + populationSource?: string; } /** * Message defining the cost to run a given survey through API. @@ -246,11 +249,11 @@ export namespace surveys_v2 { * Cost per survey response in nano units of the given currency. To get the * total cost for a survey, multiply this value by wanted_response_count. */ - costPerResponseNanos: string; + costPerResponseNanos?: string; /** * Currency code that the cost is given in. */ - currencyCode: string; + currencyCode?: string; /** * Threshold to start a survey automatically if the quoted price is at most * this value. When a survey has a Screener (threshold) question, it must go @@ -269,12 +272,12 @@ export namespace surveys_v2 { * attempting to start the survey again. This will immediately start the * survey as long the incidence test was run within the last 21 days. */ - maxCostPerResponseNanos: string; + maxCostPerResponseNanos?: string; /** * Cost of survey in nano units of the given currency. DEPRECATED in favor * of cost_per_response_nanos */ - nanos: string; + nanos?: string; } /** * Message defining the question specifications. @@ -284,88 +287,88 @@ export namespace surveys_v2 { * The randomization option for multiple choice and multi-select questions. * If not specified, this option defaults to randomize. */ - answerOrder: string; + answerOrder?: string; /** * Required list of answer options for a question. */ - answers: string[]; + answers?: string[]; /** * Option to allow open-ended text box for Single Answer and Multiple Answer * question types. This can be used with SINGLE_ANSWER, * SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and * MULTIPLE_ANSWERS_WITH_IMAGE question types. */ - hasOther: boolean; + hasOther?: boolean; /** * For rating questions, the text for the higher end of the scale, such as * 'Best'. For numeric questions, a string representing a * floating-point that is the maximum allowed number for a response. */ - highValueLabel: string; - images: Schema$SurveyQuestionImage[]; + highValueLabel?: string; + images?: Schema$SurveyQuestionImage[]; /** * Currently only support pinning an answer option to the last position. */ - lastAnswerPositionPinned: boolean; + lastAnswerPositionPinned?: boolean; /** * For rating questions, the text for the lower end of the scale, such as * 'Worst'. For numeric questions, a string representing a * floating-point that is the minimum allowed number for a response. */ - lowValueLabel: string; + lowValueLabel?: string; /** * Option to force the user to pick one of the open text suggestions. This * requires that suggestions are provided for this question. */ - mustPickSuggestion: boolean; + mustPickSuggestion?: boolean; /** * Number of stars to use for ratings questions. */ - numStars: string; + numStars?: string; /** * Placeholder text for an open text question. */ - openTextPlaceholder: string; + openTextPlaceholder?: string; /** * A list of suggested answers for open text question auto-complete. This is * only valid if single_line_response is true. */ - openTextSuggestions: string[]; + openTextSuggestions?: string[]; /** * Required question text shown to the respondent. */ - question: string; + question?: string; /** * Used by the Rating Scale with Text question type. This text goes along * with the question field that is presented to the respondent, and is the * actual text that the respondent is asked to rate. */ - sentimentText: string; + sentimentText?: string; /** * Option to allow multiple line open text responses instead of a single * line response. Note that we don't show auto-complete suggestions with * multiple line responses. */ - singleLineResponse: boolean; + singleLineResponse?: boolean; /** * The threshold/screener answer options, which will screen a user into the * rest of the survey. These will be a subset of the answer option strings. */ - thresholdAnswers: string[]; + thresholdAnswers?: string[]; /** * Required field defining the question type. For details about configuring * different type of questions, consult the question configuration guide. */ - type: string; + type?: string; /** * Optional unit of measurement for display (for example: hours, people, * miles). */ - unitOfMeasurementLabel: string; + unitOfMeasurementLabel?: string; /** * The YouTube video ID to be show in video questions. */ - videoId: string; + videoId?: string; } /** * Container object for image data and alt_text. @@ -374,16 +377,16 @@ export namespace surveys_v2 { /** * The alt text property used in image tags is required for all images. */ - altText: string; + altText?: string; /** * Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question * types. */ - data: string; + data?: string; /** * The read-only URL for the hosted images. */ - url: string; + url?: string; } /** * Message representing why the survey was rejected from review, if it was. @@ -392,12 +395,12 @@ export namespace surveys_v2 { /** * A human-readable explanation of what was wrong with the survey. */ - explanation: string; + explanation?: string; /** * Which category of rejection this was. See the Google Surveys Help Center * for additional details on each category. */ - type: string; + type?: string; } /** * Reference to the current results for a given survey. @@ -406,58 +409,59 @@ export namespace surveys_v2 { /** * Human readable string describing the status of the request. */ - status: string; + status?: string; /** * External survey ID as viewable by survey owners in the editor view. */ - surveyUrlId: string; + surveyUrlId?: string; } export interface Schema$SurveysDeleteResponse { /** * Unique request ID used for logging and debugging. Please include in any * error reporting or troubleshooting requests. */ - requestId: string; + requestId?: string; } export interface Schema$SurveysListResponse { - pageInfo: Schema$PageInfo; + pageInfo?: Schema$PageInfo; /** * Unique request ID used for logging and debugging. Please include in any * error reporting or troubleshooting requests. */ - requestId: string; + requestId?: string; /** * An individual survey resource. */ - resources: Schema$Survey[]; - tokenPagination: Schema$TokenPagination; + resources?: Schema$Survey[]; + tokenPagination?: Schema$TokenPagination; } export interface Schema$SurveysStartRequest { /** * Threshold to start a survey automically if the quoted prices is less than * or equal to this value. See Survey.Cost for more details. */ - maxCostPerResponseNanos: string; + maxCostPerResponseNanos?: string; } export interface Schema$SurveysStartResponse { /** * Unique request ID used for logging and debugging. Please include in any * error reporting or troubleshooting requests. */ - requestId: string; + requestId?: string; } export interface Schema$SurveysStopResponse { /** * Unique request ID used for logging and debugging. Please include in any * error reporting or troubleshooting requests. */ - requestId: string; + requestId?: string; } export interface Schema$TokenPagination { - nextPageToken: string; - previousPageToken: string; + nextPageToken?: string; + previousPageToken?: string; } + export class Resource$Mobileapppanels { root: Surveys; constructor(root: Surveys) { @@ -483,24 +487,35 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Mobileapppanels$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Mobileapppanels$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Mobileapppanels$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Mobileapppanels$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobileapppanels$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobileapppanels$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -537,29 +552,43 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Mobileapppanels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Mobileapppanels$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Mobileapppanels$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Mobileapppanels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobileapppanels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobileapppanels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -597,26 +626,39 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Mobileapppanels$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Mobileapppanels$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Mobileapppanels$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Mobileapppanels$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Mobileapppanels$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Mobileapppanels$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -639,6 +681,53 @@ export namespace surveys_v2 { } } + export interface Params$Resource$Mobileapppanels$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * External URL ID for the panel. + */ + panelId?: string; + } + export interface Params$Resource$Mobileapppanels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + maxResults?: number; + /** + * + */ + startIndex?: number; + /** + * + */ + token?: string; + } + export interface Params$Resource$Mobileapppanels$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * External URL ID for the panel. + */ + panelId?: string; + /** + * Request body metadata + */ + resource?: Schema$MobileAppPanel; + } + + export class Resource$Results { root: Surveys; constructor(root: Surveys) { @@ -666,24 +755,34 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Results$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Results$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Results$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Results$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Results$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Results$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -706,6 +805,23 @@ export namespace surveys_v2 { } } + export interface Params$Resource$Results$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * External URL ID for the survey. + */ + surveyUrlId?: string; + /** + * Request body metadata + */ + resource?: Schema$ResultsGetRequest; + } + + export class Resource$Surveys { root: Surveys; constructor(root: Surveys) { @@ -730,28 +846,38 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Surveys$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Surveys$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Surveys$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Surveys$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -786,23 +912,33 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Surveys$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Surveys$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Surveys$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Surveys$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -837,25 +973,36 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Surveys$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Surveys$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Surveys$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Surveys$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -892,28 +1039,37 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Surveys$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Surveys$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Surveys$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Surveys$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -949,28 +1105,38 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - start(params?: any, options?: MethodOptions): + start(params?: Params$Resource$Surveys$Start, options?: MethodOptions): AxiosPromise; start( - params?: any, - options?: MethodOptions| + params: Params$Resource$Surveys$Start, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; start( - params?: any, - options?: MethodOptions| + params: Params$Resource$Surveys$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: Params$Resource$Surveys$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1005,28 +1171,37 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): + stop(params?: Params$Resource$Surveys$Stop, options?: MethodOptions): AxiosPromise; stop( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Surveys$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions| + params: Params$Resource$Surveys$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Surveys$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1063,25 +1238,36 @@ export namespace surveys_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Surveys$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Surveys$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Surveys$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Surveys$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Surveys$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Surveys$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1103,4 +1289,93 @@ export namespace surveys_v2 { } } } + + export interface Params$Resource$Surveys$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * External URL ID for the survey. + */ + surveyUrlId?: string; + } + export interface Params$Resource$Surveys$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * External URL ID for the survey. + */ + surveyUrlId?: string; + } + export interface Params$Resource$Surveys$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Surveys$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + maxResults?: number; + /** + * + */ + startIndex?: number; + /** + * + */ + token?: string; + } + export interface Params$Resource$Surveys$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + resourceId?: string; + /** + * Request body metadata + */ + resource?: Schema$SurveysStartRequest; + } + export interface Params$Resource$Surveys$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * + */ + resourceId?: string; + } + export interface Params$Resource$Surveys$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * External URL ID for the survey. + */ + surveyUrlId?: string; + /** + * Request body metadata + */ + resource?: Schema$Survey; + } } diff --git a/src/apis/tagmanager/v1.ts b/src/apis/tagmanager/v1.ts index 8051de4bbc1..fcd91992d21 100644 --- a/src/apis/tagmanager/v1.ts +++ b/src/apis/tagmanager/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace tagmanager_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Tag Manager API * @@ -72,20 +75,20 @@ export namespace tagmanager_v1 { /** * The Account ID uniquely identifies the GTM Account. */ - accountId: string; + accountId?: string; /** * The fingerprint of the GTM Account as computed at storage time. This * value is recomputed whenever the account is modified. */ - fingerprint: string; + fingerprint?: string; /** * Account display name. */ - name: string; + name?: string; /** * Whether the account shares data anonymously with Google and others. */ - shareData: boolean; + shareData?: boolean; } /** * Defines the Google Tag Manager Account access permissions. @@ -95,7 +98,7 @@ export namespace tagmanager_v1 { * List of Account permissions. Valid account permissions are read and * manage. */ - permission: string[]; + permission?: string[]; } /** * Represents a predicate. @@ -112,11 +115,11 @@ export namespace tagmanager_v1 { * include a boolean parameter named negate boolean parameter that is set to * true. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * The type of operator for this condition. */ - type: string; + type?: string; } /** * Represents a Google Tag Manager Container. @@ -125,15 +128,15 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The Container ID uniquely identifies the GTM Container. */ - containerId: string; + containerId?: string; /** * Optional list of domain names associated with the Container. */ - domainName: string[]; + domainName?: string[]; /** * List of enabled built-in variables. Valid values include: pageUrl, * pageHostname, pagePath, referrer, event, clickElement, clickClasses, @@ -142,37 +145,37 @@ export namespace tagmanager_v1 { * newHistoryFragment, oldHistoryFragment, newHistoryState, oldHistoryState, * historySource, containerVersion, debugMode, randomNumber, containerId. */ - enabledBuiltInVariable: string[]; + enabledBuiltInVariable?: string[]; /** * The fingerprint of the GTM Container as computed at storage time. This * value is recomputed whenever the account is modified. */ - fingerprint: string; + fingerprint?: string; /** * Container display name. */ - name: string; + name?: string; /** * Container Notes. */ - notes: string; + notes?: string; /** * Container Public ID. */ - publicId: string; + publicId?: string; /** * Container Country ID. */ - timeZoneCountryId: string; + timeZoneCountryId?: string; /** * Container Time Zone ID. */ - timeZoneId: string; + timeZoneId?: string; /** * List of Usage Contexts for the Container. Valid values include: web, * android, ios. */ - usageContext: string[]; + usageContext?: string[]; } /** * Defines the Google Tag Manager Container access permissions. @@ -181,12 +184,12 @@ export namespace tagmanager_v1 { /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * List of Container permissions. Valid container permissions are: read, * edit, delete, publish. */ - permission: string[]; + permission?: string[]; } /** * Represents a Google Tag Manager Container Version. @@ -195,60 +198,60 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The container that this version was taken from. */ - container: Schema$Container; + container?: Schema$Container; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The Container Version ID uniquely identifies the GTM Container Version. */ - containerVersionId: string; + containerVersionId?: string; /** * A value of true indicates this container version has been deleted. */ - deleted: boolean; + deleted?: boolean; /** * The fingerprint of the GTM Container Version as computed at storage time. * This value is recomputed whenever the container version is modified. */ - fingerprint: string; + fingerprint?: string; /** * The folders in the container that this version was taken from. */ - folder: Schema$Folder[]; + folder?: Schema$Folder[]; /** * The macros in the container that this version was taken from. */ - macro: Schema$Macro[]; + macro?: Schema$Macro[]; /** * Container version display name. */ - name: string; + name?: string; /** * User notes on how to apply this container version in the container. */ - notes: string; + notes?: string; /** * The rules in the container that this version was taken from. */ - rule: Schema$Rule[]; + rule?: Schema$Rule[]; /** * The tags in the container that this version was taken from. */ - tag: Schema$Tag[]; + tag?: Schema$Tag[]; /** * The triggers in the container that this version was taken from. */ - trigger: Schema$Trigger[]; + trigger?: Schema$Trigger[]; /** * The variables in the container that this version was taken from. */ - variable: Schema$Variable[]; + variable?: Schema$Variable[]; } /** * Represents a Google Tag Manager Container Version Header. @@ -257,43 +260,43 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The Container Version ID uniquely identifies the GTM Container Version. */ - containerVersionId: string; + containerVersionId?: string; /** * A value of true indicates this container version has been deleted. */ - deleted: boolean; + deleted?: boolean; /** * Container version display name. */ - name: string; + name?: string; /** * Number of macros in the container version. */ - numMacros: string; + numMacros?: string; /** * Number of rules in the container version. */ - numRules: string; + numRules?: string; /** * Number of tags in the container version. */ - numTags: string; + numTags?: string; /** * Number of triggers in the container version. */ - numTriggers: string; + numTriggers?: string; /** * Number of variables in the container version. */ - numVariables: string; + numVariables?: string; } /** * Options for new container versions. @@ -302,16 +305,16 @@ export namespace tagmanager_v1 { /** * The name of the container version to be created. */ - name: string; + name?: string; /** * The notes of the container version to be created. */ - notes: string; + notes?: string; /** * The creation of this version may be for quick preview and shouldn't * be saved. */ - quickPreview: boolean; + quickPreview?: boolean; } /** * Create container versions response. @@ -320,11 +323,11 @@ export namespace tagmanager_v1 { /** * Compiler errors or not. */ - compilerError: boolean; + compilerError?: boolean; /** * The container version created. */ - containerVersion: Schema$ContainerVersion; + containerVersion?: Schema$ContainerVersion; } /** * Represents a Google Tag Manager Environment. Note that a user can create, @@ -335,51 +338,51 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The environment authorization code. */ - authorizationCode: string; + authorizationCode?: string; /** * The last update time-stamp for the authorization code. */ - authorizationTimestampMs: string; + authorizationTimestampMs?: string; /** * GTM Container ID. */ - containerId: string; - containerVersionId: string; + containerId?: string; + containerVersionId?: string; /** * The environment description. Can be set or changed only on USER type * environments. */ - description: string; + description?: string; /** * Whether or not to enable debug by default on for the environment. */ - enableDebug: boolean; + enableDebug?: boolean; /** * GTM Environment ID uniquely identifies the GTM Environment. */ - environmentId: string; + environmentId?: string; /** * The fingerprint of the GTM environment as computed at storage time. This * value is recomputed whenever the environment is modified. */ - fingerprint: string; + fingerprint?: string; /** * The environment display name. Can be set or changed only on USER type * environments. */ - name: string; + name?: string; /** * The type of this environment. */ - type: string; + type?: string; /** * Default preview page url for the environment. */ - url: string; + url?: string; } /** * Represents a Google Tag Manager Folder. @@ -388,24 +391,24 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The fingerprint of the GTM Folder as computed at storage time. This value * is recomputed whenever the folder is modified. */ - fingerprint: string; + fingerprint?: string; /** * The Folder ID uniquely identifies the GTM Folder. */ - folderId: string; + folderId?: string; /** * Folder display name. */ - name: string; + name?: string; } /** * Represents a Google Tag Manager Folder's contents. @@ -414,15 +417,15 @@ export namespace tagmanager_v1 { /** * The list of tags inside the folder. */ - tag: Schema$Tag[]; + tag?: Schema$Tag[]; /** * The list of triggers inside the folder. */ - trigger: Schema$Trigger[]; + trigger?: Schema$Trigger[]; /** * The list of variables inside the folder. */ - variable: Schema$Variable[]; + variable?: Schema$Variable[]; } /** * List Accounts Response. @@ -431,7 +434,7 @@ export namespace tagmanager_v1 { /** * List of GTM Accounts that a user has access to. */ - accounts: Schema$Account[]; + accounts?: Schema$Account[]; } /** * List AccountUsers Response. @@ -440,7 +443,7 @@ export namespace tagmanager_v1 { /** * All GTM AccountUsers of a GTM Account. */ - userAccess: Schema$UserAccess[]; + userAccess?: Schema$UserAccess[]; } /** * List Containers Response. @@ -449,7 +452,7 @@ export namespace tagmanager_v1 { /** * All Containers of a GTM Account. */ - containers: Schema$Container[]; + containers?: Schema$Container[]; } /** * List container versions response. @@ -458,11 +461,11 @@ export namespace tagmanager_v1 { /** * All versions of a GTM Container. */ - containerVersion: Schema$ContainerVersion[]; + containerVersion?: Schema$ContainerVersion[]; /** * All container version headers of a GTM Container. */ - containerVersionHeader: Schema$ContainerVersionHeader[]; + containerVersionHeader?: Schema$ContainerVersionHeader[]; } /** * List Environments Response. @@ -471,7 +474,7 @@ export namespace tagmanager_v1 { /** * All Environments of a GTM Container. */ - environments: Schema$Environment[]; + environments?: Schema$Environment[]; } /** * List Folders Response. @@ -480,7 +483,7 @@ export namespace tagmanager_v1 { /** * All GTM Folders of a GTM Container. */ - folders: Schema$Folder[]; + folders?: Schema$Folder[]; } /** * List Tags Response. @@ -489,7 +492,7 @@ export namespace tagmanager_v1 { /** * All GTM Tags of a GTM Container. */ - tags: Schema$Tag[]; + tags?: Schema$Tag[]; } /** * List triggers response. @@ -498,7 +501,7 @@ export namespace tagmanager_v1 { /** * All GTM Triggers of a GTM Container. */ - triggers: Schema$Trigger[]; + triggers?: Schema$Trigger[]; } /** * List Variables Response. @@ -507,7 +510,7 @@ export namespace tagmanager_v1 { /** * All GTM Variables of a GTM Container. */ - variables: Schema$Variable[]; + variables?: Schema$Variable[]; } /** * Represents a Google Tag Manager Macro. @@ -516,60 +519,60 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * For mobile containers only: A list of rule IDs for disabling conditional * macros; the macro is enabled if one of the enabling rules is true while * all the disabling rules are false. Treated as an unordered set. */ - disablingRuleId: string[]; + disablingRuleId?: string[]; /** * For mobile containers only: A list of rule IDs for enabling conditional * macros; the macro is enabled if one of the enabling rules is true while * all the disabling rules are false. Treated as an unordered set. */ - enablingRuleId: string[]; + enablingRuleId?: string[]; /** * The fingerprint of the GTM Macro as computed at storage time. This value * is recomputed whenever the macro is modified. */ - fingerprint: string; + fingerprint?: string; /** * The Macro ID uniquely identifies the GTM Macro. */ - macroId: string; + macroId?: string; /** * Macro display name. */ - name: string; + name?: string; /** * User notes on how to apply this macro in the container. */ - notes: string; + notes?: string; /** * The macro's parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * The end timestamp in milliseconds to schedule a macro. */ - scheduleEndMs: string; + scheduleEndMs?: string; /** * The start timestamp in milliseconds to schedule a macro. */ - scheduleStartMs: string; + scheduleStartMs?: string; /** * GTM Macro Type. */ - type: string; + type?: string; } /** * Represents a Google Tag Manager Parameter. @@ -579,16 +582,16 @@ export namespace tagmanager_v1 { * The named key that uniquely identifies a parameter. Required for * top-level parameters, as well as map values. Ignored for list values. */ - key: string; + key?: string; /** * This list parameter's parameters (keys will be ignored). */ - list: Schema$Parameter[]; + list?: Schema$Parameter[]; /** * This map parameter's parameters (must have keys; keys must be * unique). */ - map: Schema$Parameter[]; + map?: Schema$Parameter[]; /** * The parameter type. Valid values are: - boolean: The value represents a * boolean, represented as 'true' or 'false' - integer: The @@ -598,12 +601,12 @@ export namespace tagmanager_v1 { * variable references (even variable references that might return * non-string types) */ - type: string; + type?: string; /** * A parameter's value (may contain variable references such as * "{{myVariable}}") as appropriate to the specified type. */ - value: string; + value?: string; } /** * Publish container version response. @@ -612,11 +615,11 @@ export namespace tagmanager_v1 { /** * Compiler errors or not. */ - compilerError: boolean; + compilerError?: boolean; /** * The container version created. */ - containerVersion: Schema$ContainerVersion; + containerVersion?: Schema$ContainerVersion; } /** * Represents a Google Tag Manager Rule. @@ -625,33 +628,33 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The list of conditions that make up this rule (implicit AND between * them). */ - condition: Schema$Condition[]; + condition?: Schema$Condition[]; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The fingerprint of the GTM Rule as computed at storage time. This value * is recomputed whenever the rule is modified. */ - fingerprint: string; + fingerprint?: string; /** * Rule display name. */ - name: string; + name?: string; /** * User notes on how to apply this rule in the container. */ - notes: string; + notes?: string; /** * The Rule ID uniquely identifies the GTM Rule. */ - ruleId: string; + ruleId?: string; } export interface Schema$SetupTag { /** @@ -659,11 +662,11 @@ export namespace tagmanager_v1 { * successfully. If false, fire the main tag regardless of setup tag firing * status. */ - stopOnSetupFailure: boolean; + stopOnSetupFailure?: boolean; /** * The name of the setup tag. */ - tagName: string; + tagName?: string; } /** * Represents a Google Tag Manager Tag. @@ -672,96 +675,96 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * Blocking rule IDs. If any of the listed rules evaluate to true, the tag * will not fire. */ - blockingRuleId: string[]; + blockingRuleId?: string[]; /** * Blocking trigger IDs. If any of the listed triggers evaluate to true, the * tag will not fire. */ - blockingTriggerId: string[]; + blockingTriggerId?: string[]; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The fingerprint of the GTM Tag as computed at storage time. This value is * recomputed whenever the tag is modified. */ - fingerprint: string; + fingerprint?: string; /** * Firing rule IDs. A tag will fire when any of the listed rules are true * and all of its blockingRuleIds (if any specified) are false. */ - firingRuleId: string[]; + firingRuleId?: string[]; /** * Firing trigger IDs. A tag will fire when any of the listed triggers are * true and all of its blockingTriggerIds (if any specified) are false. */ - firingTriggerId: string[]; + firingTriggerId?: string[]; /** * If set to true, this tag will only fire in the live environment (e.g. not * in preview or debug mode). */ - liveOnly: boolean; + liveOnly?: boolean; /** * Tag display name. */ - name: string; + name?: string; /** * User notes on how to apply this tag in the container. */ - notes: string; + notes?: string; /** * The tag's parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * True if the tag is paused. */ - paused: boolean; + paused?: boolean; /** * User defined numeric priority of the tag. Tags are fired asynchronously * in order of priority. Tags with higher numeric value fire first. A * tag's priority can be a positive or negative value. The default value * is 0. */ - priority: Schema$Parameter; + priority?: Schema$Parameter; /** * The end timestamp in milliseconds to schedule a tag. */ - scheduleEndMs: string; + scheduleEndMs?: string; /** * The start timestamp in milliseconds to schedule a tag. */ - scheduleStartMs: string; + scheduleStartMs?: string; /** * The list of setup tags. Currently we only allow one. */ - setupTag: Schema$SetupTag[]; + setupTag?: Schema$SetupTag[]; /** * Option to fire this tag. */ - tagFiringOption: string; + tagFiringOption?: string; /** * The Tag ID uniquely identifies the GTM Tag. */ - tagId: string; + tagId?: string; /** * The list of teardown tags. Currently we only allow one. */ - teardownTag: Schema$TeardownTag[]; + teardownTag?: Schema$TeardownTag[]; /** * GTM Tag Type. */ - type: string; + type?: string; } export interface Schema$TeardownTag { /** @@ -769,11 +772,11 @@ export namespace tagmanager_v1 { * successfully. If false, fire the teardown tag regardless of main tag * firing status. */ - stopTeardownOnFailure: boolean; + stopTeardownOnFailure?: boolean; /** * The name of the teardown tag. */ - tagName: string; + tagName?: string; } /** * Represents a Google Tag Manager Trigger @@ -782,101 +785,101 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * Used in the case of auto event tracking. */ - autoEventFilter: Schema$Condition[]; + autoEventFilter?: Schema$Condition[]; /** * Whether or not we should only fire tags if the form submit or link click * event is not cancelled by some other event handler (e.g. because of * validation). Only valid for Form Submission and Link Click triggers. */ - checkValidation: Schema$Parameter; + checkValidation?: Schema$Parameter; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * A visibility trigger minimum continuous visible time (in milliseconds). * Only valid for AMP Visibility trigger. */ - continuousTimeMinMilliseconds: Schema$Parameter; + continuousTimeMinMilliseconds?: Schema$Parameter; /** * Used in the case of custom event, which is fired iff all Conditions are * true. */ - customEventFilter: Schema$Condition[]; + customEventFilter?: Schema$Condition[]; /** * Name of the GTM event that is fired. Only valid for Timer triggers. */ - eventName: Schema$Parameter; + eventName?: Schema$Parameter; /** * The trigger will only fire iff all Conditions are true. */ - filter: Schema$Condition[]; + filter?: Schema$Condition[]; /** * The fingerprint of the GTM Trigger as computed at storage time. This * value is recomputed whenever the trigger is modified. */ - fingerprint: string; + fingerprint?: string; /** * List of integer percentage values for scroll triggers. The trigger will * fire when each percentage is reached when the view is scrolled * horizontally. Only valid for AMP scroll triggers. */ - horizontalScrollPercentageList: Schema$Parameter; + horizontalScrollPercentageList?: Schema$Parameter; /** * Time between triggering recurring Timer Events (in milliseconds). Only * valid for Timer triggers. */ - interval: Schema$Parameter; + interval?: Schema$Parameter; /** * Time between Timer Events to fire (in seconds). Only valid for AMP Timer * trigger. */ - intervalSeconds: Schema$Parameter; + intervalSeconds?: Schema$Parameter; /** * Limit of the number of GTM events this Timer Trigger will fire. If no * limit is set, we will continue to fire GTM events until the user leaves * the page. Only valid for Timer triggers. */ - limit: Schema$Parameter; + limit?: Schema$Parameter; /** * Max time to fire Timer Events (in seconds). Only valid for AMP Timer * trigger. */ - maxTimerLengthSeconds: Schema$Parameter; + maxTimerLengthSeconds?: Schema$Parameter; /** * Trigger display name. */ - name: string; + name?: string; /** * Additional parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * A click trigger CSS selector (i.e. "a", "button" * etc.). Only valid for AMP Click trigger. */ - selector: Schema$Parameter; + selector?: Schema$Parameter; /** * A visibility trigger minimum total visible time (in milliseconds). Only * valid for AMP Visibility trigger. */ - totalTimeMinMilliseconds: Schema$Parameter; + totalTimeMinMilliseconds?: Schema$Parameter; /** * The Trigger ID uniquely identifies the GTM Trigger. */ - triggerId: string; + triggerId?: string; /** * Defines the data layer event that causes this trigger. */ - type: string; + type?: string; /** * Globally unique id of the trigger that auto-generates this (a Form * Submit, Link Click or Timer listener) if any. Used to make incompatible @@ -885,41 +888,41 @@ export namespace tagmanager_v1 { * by triggers don't exist until then. Only valid for Form Submit, Link * Click and Timer triggers. */ - uniqueTriggerId: Schema$Parameter; + uniqueTriggerId?: Schema$Parameter; /** * List of integer percentage values for scroll triggers. The trigger will * fire when each percentage is reached when the view is scrolled * vertically. Only valid for AMP scroll triggers. */ - verticalScrollPercentageList: Schema$Parameter; + verticalScrollPercentageList?: Schema$Parameter; /** * A visibility trigger CSS selector (i.e. "#id"). Only valid for * AMP Visibility trigger. */ - visibilitySelector: Schema$Parameter; + visibilitySelector?: Schema$Parameter; /** * A visibility trigger maximum percent visibility. Only valid for AMP * Visibility trigger. */ - visiblePercentageMax: Schema$Parameter; + visiblePercentageMax?: Schema$Parameter; /** * A visibility trigger minimum percent visibility. Only valid for AMP * Visibility trigger. */ - visiblePercentageMin: Schema$Parameter; + visiblePercentageMin?: Schema$Parameter; /** * Whether or not we should delay the form submissions or link opening until * all of the tags have fired (by preventing the default action and later * simulating the default action). Only valid for Form Submission and Link * Click triggers. */ - waitForTags: Schema$Parameter; + waitForTags?: Schema$Parameter; /** * How long to wait (in milliseconds) for tags to fire when * 'waits_for_tags' above evaluates to true. Only valid for Form * Submission and Link Click triggers. */ - waitForTagsTimeout: Schema$Parameter; + waitForTagsTimeout?: Schema$Parameter; } /** * Represents a user's permissions to an account and its container. @@ -928,23 +931,23 @@ export namespace tagmanager_v1 { /** * GTM Account access permissions. */ - accountAccess: Schema$AccountAccess; + accountAccess?: Schema$AccountAccess; /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container access permissions. */ - containerAccess: Schema$ContainerAccess[]; + containerAccess?: Schema$ContainerAccess[]; /** * User's email address. */ - emailAddress: string; + emailAddress?: string; /** * Account Permission ID. */ - permissionId: string; + permissionId?: string; } /** * Represents a Google Tag Manager Variable. @@ -953,64 +956,65 @@ export namespace tagmanager_v1 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * For mobile containers only: A list of trigger IDs for disabling * conditional variables; the variable is enabled if one of the enabling * trigger is true while all the disabling trigger are false. Treated as an * unordered set. */ - disablingTriggerId: string[]; + disablingTriggerId?: string[]; /** * For mobile containers only: A list of trigger IDs for enabling * conditional variables; the variable is enabled if one of the enabling * triggers is true while all the disabling triggers are false. Treated as * an unordered set. */ - enablingTriggerId: string[]; + enablingTriggerId?: string[]; /** * The fingerprint of the GTM Variable as computed at storage time. This * value is recomputed whenever the variable is modified. */ - fingerprint: string; + fingerprint?: string; /** * Variable display name. */ - name: string; + name?: string; /** * User notes on how to apply this variable in the container. */ - notes: string; + notes?: string; /** * The variable's parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * The end timestamp in milliseconds to schedule a variable. */ - scheduleEndMs: string; + scheduleEndMs?: string; /** * The start timestamp in milliseconds to schedule a variable. */ - scheduleStartMs: string; + scheduleStartMs?: string; /** * GTM Variable Type. */ - type: string; + type?: string; /** * The Variable ID uniquely identifies the GTM Variable. */ - variableId: string; + variableId?: string; } + export class Resource$Accounts { root: Tagmanager; containers: Resource$Accounts$Containers; @@ -1039,23 +1043,33 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1089,28 +1103,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1147,25 +1171,36 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1187,6 +1222,45 @@ export namespace tagmanager_v1 { } } } + + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the account + * in storage. + */ + fingerprint?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export class Resource$Accounts$Containers { root: Tagmanager; environments: Resource$Accounts$Containers$Environments; @@ -1230,26 +1304,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1285,22 +1372,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Containers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1338,23 +1440,35 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Containers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1391,28 +1505,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Containers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1450,26 +1576,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Containers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1493,6 +1632,88 @@ export namespace tagmanager_v1 { } } } + + export interface Params$Resource$Accounts$Containers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$Container; + } + export interface Params$Resource$Accounts$Containers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + } + export interface Params$Resource$Accounts$Containers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the + * container in storage. + */ + fingerprint?: string; + /** + * Request body metadata + */ + resource?: Schema$Container; + } + export class Resource$Accounts$Containers$Environments { root: Tagmanager; constructor(root: Tagmanager) { @@ -1519,26 +1740,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Environments$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Environments$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1577,22 +1812,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Environments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Environments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1631,24 +1882,35 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Containers$Environments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Containers$Environments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Environments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Environments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1686,28 +1948,41 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Environments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Environments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Environments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1748,26 +2023,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Accounts$Containers$Environments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Accounts$Containers$Environments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1808,26 +2097,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Environments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Environments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1852,6 +2155,136 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Environments$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Accounts$Containers$Environments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Environment ID. + */ + environmentId?: string; + } + export interface Params$Resource$Accounts$Containers$Environments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Environment ID. + */ + environmentId?: string; + } + export interface Params$Resource$Accounts$Containers$Environments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$Environments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Environment ID. + */ + environmentId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the + * environment in storage. + */ + fingerprint?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Accounts$Containers$Environments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Environment ID. + */ + environmentId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the + * environment in storage. + */ + fingerprint?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + + export class Resource$Accounts$Containers$Folders { root: Tagmanager; entities: Resource$Accounts$Containers$Folders$Entities; @@ -1880,25 +2313,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Folders$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Folders$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Folders$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$Containers$Folders$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Folders$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Folders$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1937,22 +2383,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Folders$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Folders$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Folders$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Containers$Folders$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Folders$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Folders$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1991,23 +2452,34 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Folders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Folders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Folders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Folders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Folders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Folders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2045,28 +2517,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Folders$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Folders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Folders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$Folders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Folders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Folders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2107,25 +2590,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Folders$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Folders$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Folders$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Containers$Folders$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Folders$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Folders$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2149,16 +2645,118 @@ export namespace tagmanager_v1 { } } } - export class Resource$Accounts$Containers$Folders$Entities { - root: Tagmanager; - constructor(root: Tagmanager) { - this.root = root; - this.getRoot.bind(this); - } - getRoot() { - return this.root; - } + export interface Params$Resource$Accounts$Containers$Folders$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Accounts$Containers$Folders$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Folder ID. + */ + folderId?: string; + } + export interface Params$Resource$Accounts$Containers$Folders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Folder ID. + */ + folderId?: string; + } + export interface Params$Resource$Accounts$Containers$Folders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$Folders$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the folder + * in storage. + */ + fingerprint?: string; + /** + * The GTM Folder ID. + */ + folderId?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + + export class Resource$Accounts$Containers$Folders$Entities { + root: Tagmanager; + constructor(root: Tagmanager) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } /** @@ -2175,26 +2773,41 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Folders$Entities$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Folders$Entities$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Folders$Entities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Folders$Entities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Folders$Entities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Folders$Entities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2219,6 +2832,27 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Folders$Entities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Folder ID. + */ + folderId?: string; + } + + export class Resource$Accounts$Containers$Move_folders { root: Tagmanager; @@ -2250,22 +2884,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Move_folders$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Move_folders$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Containers$Move_folders$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Move_folders$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Move_folders$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Move_folders$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2290,6 +2940,43 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Move_folders$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Folder ID. + */ + folderId?: string; + /** + * The tags to be moved to the folder. + */ + tagId?: string; + /** + * The triggers to be moved to the folder. + */ + triggerId?: string; + /** + * The variables to be moved to the folder. + */ + variableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + + export class Resource$Accounts$Containers$Reauthorize_environments { root: Tagmanager; constructor(root: Tagmanager) { @@ -2317,26 +3004,44 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Reauthorize_environments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: + Params$Resource$Accounts$Containers$Reauthorize_environments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Accounts$Containers$Reauthorize_environments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Reauthorize_environments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Reauthorize_environments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Reauthorize_environments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2361,6 +3066,31 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Reauthorize_environments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Environment ID. + */ + environmentId?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + + export class Resource$Accounts$Containers$Tags { root: Tagmanager; constructor(root: Tagmanager) { @@ -2387,23 +3117,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Tags$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Tags$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Tags$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Tags$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Tags$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Tags$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2442,22 +3187,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Tags$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Tags$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Tags$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Containers$Tags$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Tags$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Tags$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2496,21 +3256,34 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Tags$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Tags$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Tags$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Tags$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Tags$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Tags$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2548,26 +3321,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Tags$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Tags$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Tags$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Tags$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Tags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Tags$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2608,23 +3394,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Tags$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Tags$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Containers$Tags$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Containers$Tags$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Tags$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Tags$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2649,6 +3450,108 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Tags$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Tag; + } + export interface Params$Resource$Accounts$Containers$Tags$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Tag ID. + */ + tagId?: string; + } + export interface Params$Resource$Accounts$Containers$Tags$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Tag ID. + */ + tagId?: string; + } + export interface Params$Resource$Accounts$Containers$Tags$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$Tags$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the tag in + * storage. + */ + fingerprint?: string; + /** + * The GTM Tag ID. + */ + tagId?: string; + /** + * Request body metadata + */ + resource?: Schema$Tag; + } + + export class Resource$Accounts$Containers$Triggers { root: Tagmanager; constructor(root: Tagmanager) { @@ -2675,25 +3578,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Triggers$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Triggers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Triggers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$Containers$Triggers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Triggers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Triggers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2732,22 +3648,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Triggers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Triggers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Triggers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Triggers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Triggers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Triggers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2786,23 +3717,34 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Triggers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Triggers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Triggers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Triggers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Triggers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Triggers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2840,28 +3782,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Triggers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Triggers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Triggers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$Triggers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Triggers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Triggers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2902,25 +3856,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Triggers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Triggers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Triggers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Containers$Triggers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Triggers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Triggers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2945,25 +3912,127 @@ export namespace tagmanager_v1 { } } - export class Resource$Accounts$Containers$Variables { - root: Tagmanager; - constructor(root: Tagmanager) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Accounts$Containers$Triggers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * tagmanager.accounts.containers.variables.create - * @desc Creates a GTM Variable. - * @alias tagmanager.accounts.containers.variables.create - * @memberOf! () - * - * @param {object} params Parameters for request + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Trigger; + } + export interface Params$Resource$Accounts$Containers$Triggers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Trigger ID. + */ + triggerId?: string; + } + export interface Params$Resource$Accounts$Containers$Triggers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Trigger ID. + */ + triggerId?: string; + } + export interface Params$Resource$Accounts$Containers$Triggers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$Triggers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the trigger + * in storage. + */ + fingerprint?: string; + /** + * The GTM Trigger ID. + */ + triggerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Trigger; + } + + + export class Resource$Accounts$Containers$Variables { + root: Tagmanager; + constructor(root: Tagmanager) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * tagmanager.accounts.containers.variables.create + * @desc Creates a GTM Variable. + * @alias tagmanager.accounts.containers.variables.create + * @memberOf! () + * + * @param {object} params Parameters for request * @param {string} params.accountId The GTM Account ID. * @param {string} params.containerId The GTM Container ID. * @param {().Variable} params.resource Request body data @@ -2971,26 +4040,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Variables$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Variables$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Variables$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Variables$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Variables$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Variables$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3029,22 +4110,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Variables$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Variables$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Variables$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Variables$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Variables$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Variables$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3083,23 +4179,34 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Variables$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Variables$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Variables$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Variables$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Variables$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Variables$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3137,28 +4244,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Variables$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Variables$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Variables$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Containers$Variables$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Variables$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Variables$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3199,26 +4318,38 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Variables$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Variables$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Containers$Variables$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Variables$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Variables$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Variables$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3243,6 +4374,108 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Variables$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Request body metadata + */ + resource?: Schema$Variable; + } + export interface Params$Resource$Accounts$Containers$Variables$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Variable ID. + */ + variableId?: string; + } + export interface Params$Resource$Accounts$Containers$Variables$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Variable ID. + */ + variableId?: string; + } + export interface Params$Resource$Accounts$Containers$Variables$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + } + export interface Params$Resource$Accounts$Containers$Variables$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the + * variable in storage. + */ + fingerprint?: string; + /** + * The GTM Variable ID. + */ + variableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Variable; + } + + export class Resource$Accounts$Containers$Versions { root: Tagmanager; constructor(root: Tagmanager) { @@ -3269,29 +4502,45 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: Params$Resource$Accounts$Containers$Versions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Versions$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + create( + params: Params$Resource$Accounts$Containers$Versions$Create, + callback: BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3332,22 +4581,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Versions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Versions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3386,24 +4650,35 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Containers$Versions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Containers$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3443,29 +4718,44 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accounts$Containers$Versions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Versions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Versions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3507,30 +4797,46 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): + publish( + params?: Params$Resource$Accounts$Containers$Versions$Publish, + options?: MethodOptions): AxiosPromise; publish( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Versions$Publish, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + publish( + params: Params$Resource$Accounts$Containers$Versions$Publish, + callback: BodyResponseCallback): + void; + publish(callback: + BodyResponseCallback): + void; publish( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3574,26 +4880,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - restore(params?: any, options?: MethodOptions): - AxiosPromise; restore( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Restore, + options?: MethodOptions): AxiosPromise; + restore( + params: Params$Resource$Accounts$Containers$Versions$Restore, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + restore( + params: Params$Resource$Accounts$Containers$Versions$Restore, + callback: BodyResponseCallback): void; + restore(callback: BodyResponseCallback): void; restore( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Restore| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Restore; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Restore; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3632,26 +4951,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Accounts$Containers$Versions$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Versions$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Versions$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3692,26 +5025,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Versions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Containers$Versions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3736,6 +5082,179 @@ export namespace tagmanager_v1 { } } + export interface Params$Resource$Accounts$Containers$Versions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateContainerVersionRequestVersionOptions; + } + export interface Params$Resource$Accounts$Containers$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Container Version ID. + */ + containerVersionId?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Container Version ID. Specify published to retrieve the currently + * published version. + */ + containerVersionId?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * Retrieve headers only when true. + */ + headers?: boolean; + /** + * Also retrieve deleted (archived) versions when true. + */ + includeDeleted?: boolean; + } + export interface Params$Resource$Accounts$Containers$Versions$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Container Version ID. + */ + containerVersionId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the + * container version in storage. + */ + fingerprint?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Restore { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Container Version ID. + */ + containerVersionId?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Container Version ID. + */ + containerVersionId?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM Container ID. + */ + containerId?: string; + /** + * The GTM Container Version ID. + */ + containerVersionId?: string; + /** + * When provided, this fingerprint must match the fingerprint of the + * container version in storage. + */ + fingerprint?: string; + /** + * Request body metadata + */ + resource?: Schema$ContainerVersion; + } + + export class Resource$Accounts$Permissions { root: Tagmanager; @@ -3762,26 +5281,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Permissions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Permissions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Permissions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$Permissions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Permissions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Permissions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3818,22 +5350,37 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Permissions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Permissions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Permissions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Permissions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Permissions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Permissions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3871,23 +5418,35 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Permissions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Permissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Permissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Permissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Permissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Permissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3925,28 +5484,40 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Permissions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Permissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Permissions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Permissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Permissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Permissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3983,26 +5554,39 @@ export namespace tagmanager_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Permissions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Permissions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Permissions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Permissions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Permissions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Permissions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4026,4 +5610,80 @@ export namespace tagmanager_v1 { } } } + + export interface Params$Resource$Accounts$Permissions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserAccess; + } + export interface Params$Resource$Accounts$Permissions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM User ID. + */ + permissionId?: string; + } + export interface Params$Resource$Accounts$Permissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM User ID. + */ + permissionId?: string; + } + export interface Params$Resource$Accounts$Permissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. @required tagmanager.accounts.permissions.list + */ + accountId?: string; + } + export interface Params$Resource$Accounts$Permissions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM Account ID. + */ + accountId?: string; + /** + * The GTM User ID. + */ + permissionId?: string; + /** + * Request body metadata + */ + resource?: Schema$UserAccess; + } } diff --git a/src/apis/tagmanager/v2.ts b/src/apis/tagmanager/v2.ts index 04b7a4180e8..dfbf9b89395 100644 --- a/src/apis/tagmanager/v2.ts +++ b/src/apis/tagmanager/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace tagmanager_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Tag Manager API * @@ -72,20 +75,20 @@ export namespace tagmanager_v2 { /** * The Account ID uniquely identifies the GTM Account. */ - accountId: string; + accountId?: string; /** * The fingerprint of the GTM Account as computed at storage time. This * value is recomputed whenever the account is modified. */ - fingerprint: string; + fingerprint?: string; /** * Account display name. */ - name: string; + name?: string; /** * GTM Account's API relative path. */ - path: string; + path?: string; /** * Whether the account shares data anonymously with Google and others. This * flag enables benchmarking by sharing your data in an anonymous form. @@ -93,11 +96,11 @@ export namespace tagmanager_v2 { * combine the data with hundreds of other anonymous sites and report * aggregate trends in the benchmarking service. */ - shareData: boolean; + shareData?: boolean; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; } /** * Defines the Google Tag Manager Account access permissions. @@ -107,7 +110,7 @@ export namespace tagmanager_v2 { * Whether the user has no access, user access, or admin access to an * account. */ - permission: string; + permission?: string; } /** * Built-in variables are a special category of variables that are pre-created @@ -119,28 +122,28 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * Name of the built-in variable to be used to refer to the built-in * variable. */ - name: string; + name?: string; /** * GTM BuiltInVariable's API relative path. */ - path: string; + path?: string; /** * Type of built-in variable. */ - type: string; + type?: string; /** * GTM Workspace ID. */ - workspaceId: string; + workspaceId?: string; } /** * Represents a predicate. @@ -157,11 +160,11 @@ export namespace tagmanager_v2 { * include a boolean parameter named negate boolean parameter that is set to * true. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * The type of operator for this condition. */ - type: string; + type?: string; } /** * Represents a Google Tag Manager Container, which specifies the platform @@ -171,45 +174,45 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The Container ID uniquely identifies the GTM Container. */ - containerId: string; + containerId?: string; /** * List of domain names associated with the Container. */ - domainName: string[]; + domainName?: string[]; /** * The fingerprint of the GTM Container as computed at storage time. This * value is recomputed whenever the account is modified. */ - fingerprint: string; + fingerprint?: string; /** * Container display name. */ - name: string; + name?: string; /** * Container Notes. */ - notes: string; + notes?: string; /** * GTM Container's API relative path. */ - path: string; + path?: string; /** * Container Public ID. */ - publicId: string; + publicId?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * List of Usage Contexts for the Container. Valid values include: web, * android, or ios. */ - usageContext: string[]; + usageContext?: string[]; } /** * Defines the Google Tag Manager Container access permissions. @@ -218,11 +221,11 @@ export namespace tagmanager_v2 { /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * List of Container permissions. */ - permission: string; + permission?: string; } /** * Represents a Google Tag Manager Container Version. @@ -231,68 +234,68 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The built-in variables in the container that this version was taken from. */ - builtInVariable: Schema$BuiltInVariable[]; + builtInVariable?: Schema$BuiltInVariable[]; /** * The container that this version was taken from. */ - container: Schema$Container; + container?: Schema$Container; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The Container Version ID uniquely identifies the GTM Container Version. */ - containerVersionId: string; + containerVersionId?: string; /** * A value of true indicates this container version has been deleted. */ - deleted: boolean; + deleted?: boolean; /** * Container version description. */ - description: string; + description?: string; /** * The fingerprint of the GTM Container Version as computed at storage time. * This value is recomputed whenever the container version is modified. */ - fingerprint: string; + fingerprint?: string; /** * The folders in the container that this version was taken from. */ - folder: Schema$Folder[]; + folder?: Schema$Folder[]; /** * Container version display name. */ - name: string; + name?: string; /** * GTM ContainerVersions's API relative path. */ - path: string; + path?: string; /** * The tags in the container that this version was taken from. */ - tag: Schema$Tag[]; + tag?: Schema$Tag[]; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * The triggers in the container that this version was taken from. */ - trigger: Schema$Trigger[]; + trigger?: Schema$Trigger[]; /** * The variables in the container that this version was taken from. */ - variable: Schema$Variable[]; + variable?: Schema$Variable[]; /** * The zones in the container that this version was taken from. */ - zone: Schema$Zone[]; + zone?: Schema$Zone[]; } /** * Represents a Google Tag Manager Container Version Header. @@ -301,57 +304,57 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The Container Version ID uniquely identifies the GTM Container Version. */ - containerVersionId: string; + containerVersionId?: string; /** * A value of true indicates this container version has been deleted. */ - deleted: boolean; + deleted?: boolean; /** * Container version display name. */ - name: string; + name?: string; /** * Number of macros in the container version. */ - numMacros: string; + numMacros?: string; /** * Number of rules in the container version. */ - numRules: string; + numRules?: string; /** * Number of tags in the container version. */ - numTags: string; + numTags?: string; /** * Number of triggers in the container version. */ - numTriggers: string; + numTriggers?: string; /** * Number of variables in the container version. */ - numVariables: string; + numVariables?: string; /** * Number of zones in the container version. */ - numZones: string; + numZones?: string; /** * GTM Container Versions's API relative path. */ - path: string; + path?: string; } export interface Schema$CreateBuiltInVariableResponse { /** * List of created built-in variables. */ - builtInVariable: Schema$BuiltInVariable[]; + builtInVariable?: Schema$BuiltInVariable[]; } /** * Options for new container versions. @@ -360,11 +363,11 @@ export namespace tagmanager_v2 { /** * The name of the container version to be created. */ - name: string; + name?: string; /** * The notes of the container version to be created. */ - notes: string; + notes?: string; } /** * Create container versions response. @@ -373,22 +376,22 @@ export namespace tagmanager_v2 { /** * Compiler errors or not. */ - compilerError: boolean; + compilerError?: boolean; /** * The container version created. */ - containerVersion: Schema$ContainerVersion; + containerVersion?: Schema$ContainerVersion; /** * Auto generated workspace path created as a result of version creation. * This field should only be populated if the created version was not a * quick preview. */ - newWorkspacePath: string; + newWorkspacePath?: string; /** * Whether version creation failed when syncing the workspace to the latest * container version. */ - syncStatus: Schema$SyncStatus; + syncStatus?: Schema$SyncStatus; } /** * Creates a workspace proposal to start a review of a workspace. @@ -397,11 +400,11 @@ export namespace tagmanager_v2 { /** * If present, an initial comment to associate with the workspace proposal. */ - initialComment: Schema$WorkspaceProposalHistoryComment; + initialComment?: Schema$WorkspaceProposalHistoryComment; /** * List of users to review the workspace proposal. */ - reviewers: Schema$WorkspaceProposalUser[]; + reviewers?: Schema$WorkspaceProposalUser[]; } /** * A workspace entity that may represent a tag, trigger, variable, or folder @@ -411,23 +414,23 @@ export namespace tagmanager_v2 { /** * Represents how the entity has been changed in the workspace. */ - changeStatus: string; + changeStatus?: string; /** * The Folder being represented by the entity. */ - folder: Schema$Folder; + folder?: Schema$Folder; /** * The tag being represented by the entity. */ - tag: Schema$Tag; + tag?: Schema$Tag; /** * The trigger being represented by the entity. */ - trigger: Schema$Trigger; + trigger?: Schema$Trigger; /** * The variable being represented by the entity. */ - variable: Schema$Variable; + variable?: Schema$Variable; } /** * Represents a Google Tag Manager Environment. Note that a user can create, @@ -438,66 +441,66 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * The environment authorization code. */ - authorizationCode: string; + authorizationCode?: string; /** * The last update time-stamp for the authorization code. */ - authorizationTimestamp: Schema$Timestamp; + authorizationTimestamp?: Schema$Timestamp; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * Represents a link to a container version. */ - containerVersionId: string; + containerVersionId?: string; /** * The environment description. Can be set or changed only on USER type * environments. */ - description: string; + description?: string; /** * Whether or not to enable debug by default for the environment. */ - enableDebug: boolean; + enableDebug?: boolean; /** * GTM Environment ID uniquely identifies the GTM Environment. */ - environmentId: string; + environmentId?: string; /** * The fingerprint of the GTM environment as computed at storage time. This * value is recomputed whenever the environment is modified. */ - fingerprint: string; + fingerprint?: string; /** * The environment display name. Can be set or changed only on USER type * environments. */ - name: string; + name?: string; /** * GTM Environment's API relative path. */ - path: string; + path?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * The type of this environment. */ - type: string; + type?: string; /** * Default preview page url for the environment. */ - url: string; + url?: string; /** * Represents a link to a quick preview of a workspace. */ - workspaceId: string; + workspaceId?: string; } /** * Represents a Google Tag Manager Folder. @@ -506,40 +509,40 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The fingerprint of the GTM Folder as computed at storage time. This value * is recomputed whenever the folder is modified. */ - fingerprint: string; + fingerprint?: string; /** * The Folder ID uniquely identifies the GTM Folder. */ - folderId: string; + folderId?: string; /** * Folder display name. */ - name: string; + name?: string; /** * User notes on how to apply this folder in the container. */ - notes: string; + notes?: string; /** * GTM Folder's API relative path. */ - path: string; + path?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * GTM Workspace ID. */ - workspaceId: string; + workspaceId?: string; } /** * Represents a Google Tag Manager Folder's contents. @@ -548,19 +551,19 @@ export namespace tagmanager_v2 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of tags inside the folder. */ - tag: Schema$Tag[]; + tag?: Schema$Tag[]; /** * The list of triggers inside the folder. */ - trigger: Schema$Trigger[]; + trigger?: Schema$Trigger[]; /** * The list of variables inside the folder. */ - variable: Schema$Variable[]; + variable?: Schema$Variable[]; } /** * The changes that have occurred in the workspace since the base container @@ -570,11 +573,11 @@ export namespace tagmanager_v2 { /** * The merge conflict after sync. */ - mergeConflict: Schema$MergeConflict[]; + mergeConflict?: Schema$MergeConflict[]; /** * Entities that have been changed in the workspace. */ - workspaceChange: Schema$Entity[]; + workspaceChange?: Schema$Entity[]; } /** * List Accounts Response. @@ -583,11 +586,11 @@ export namespace tagmanager_v2 { /** * List of GTM Accounts that a user has access to. */ - account: Schema$Account[]; + account?: Schema$Account[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * List Containers Response. @@ -596,11 +599,11 @@ export namespace tagmanager_v2 { /** * All Containers of a GTM Account. */ - container: Schema$Container[]; + container?: Schema$Container[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * List container versions response. @@ -609,11 +612,11 @@ export namespace tagmanager_v2 { /** * All container version headers of a GTM Container. */ - containerVersionHeader: Schema$ContainerVersionHeader[]; + containerVersionHeader?: Schema$ContainerVersionHeader[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * A list of enabled built-in variables. @@ -622,11 +625,11 @@ export namespace tagmanager_v2 { /** * All GTM BuiltInVariables of a GTM container. */ - builtInVariable: Schema$BuiltInVariable[]; + builtInVariable?: Schema$BuiltInVariable[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * List Environments Response. @@ -635,11 +638,11 @@ export namespace tagmanager_v2 { /** * All Environments of a GTM Container. */ - environment: Schema$Environment[]; + environment?: Schema$Environment[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * List Folders Response. @@ -648,11 +651,11 @@ export namespace tagmanager_v2 { /** * All GTM Folders of a GTM Container. */ - folder: Schema$Folder[]; + folder?: Schema$Folder[]; /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * List Tags Response. @@ -661,11 +664,11 @@ export namespace tagmanager_v2 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * All GTM Tags of a GTM Container. */ - tag: Schema$Tag[]; + tag?: Schema$Tag[]; } /** * List triggers response. @@ -674,11 +677,11 @@ export namespace tagmanager_v2 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * All GTM Triggers of a GTM Container. */ - trigger: Schema$Trigger[]; + trigger?: Schema$Trigger[]; } /** * List user permissions response. @@ -687,11 +690,11 @@ export namespace tagmanager_v2 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * All GTM UserPermissions of a GTM Account. */ - userPermission: Schema$UserPermission[]; + userPermission?: Schema$UserPermission[]; } /** * List Variables Response. @@ -700,11 +703,11 @@ export namespace tagmanager_v2 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * All GTM Variables of a GTM Container. */ - variable: Schema$Variable[]; + variable?: Schema$Variable[]; } /** * A list of workspaces in a container. @@ -713,11 +716,11 @@ export namespace tagmanager_v2 { /** * Continuation token for fetching the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * All Workspaces of a GTM Container. */ - workspace: Schema$Workspace[]; + workspace?: Schema$Workspace[]; } /** * Represents a merge conflict. @@ -728,13 +731,13 @@ export namespace tagmanager_v2 { * conflicting changes compared to the workspace. If this field is missing, * it means the workspace entity is deleted from the base version. */ - entityInBaseVersion: Schema$Entity; + entityInBaseVersion?: Schema$Entity; /** * The workspace entity that has conflicting changes compared to the base * version. If an entity is deleted in a workspace, it will still appear * with a deleted change status. */ - entityInWorkspace: Schema$Entity; + entityInWorkspace?: Schema$Entity; } /** * Represents a Google Tag Manager Parameter. @@ -744,16 +747,16 @@ export namespace tagmanager_v2 { * The named key that uniquely identifies a parameter. Required for * top-level parameters, as well as map values. Ignored for list values. */ - key: string; + key?: string; /** * This list parameter's parameters (keys will be ignored). */ - list: Schema$Parameter[]; + list?: Schema$Parameter[]; /** * This map parameter's parameters (must have keys; keys must be * unique). */ - map: Schema$Parameter[]; + map?: Schema$Parameter[]; /** * The parameter type. Valid values are: - boolean: The value represents a * boolean, represented as 'true' or 'false' - integer: The @@ -763,12 +766,12 @@ export namespace tagmanager_v2 { * variable references (even variable references that might return * non-string types) */ - type: string; + type?: string; /** * A parameter's value (may contain variable references such as * "{{myVariable}}") as appropriate to the specified type. */ - value: string; + value?: string; } /** * Publish container version response. @@ -777,11 +780,11 @@ export namespace tagmanager_v2 { /** * Compiler errors or not. */ - compilerError: boolean; + compilerError?: boolean; /** * The container version created. */ - containerVersion: Schema$ContainerVersion; + containerVersion?: Schema$ContainerVersion; } /** * Response to quick previewing a workspace. @@ -790,16 +793,16 @@ export namespace tagmanager_v2 { /** * Were there compiler errors or not. */ - compilerError: boolean; + compilerError?: boolean; /** * The quick previewed container version. */ - containerVersion: Schema$ContainerVersion; + containerVersion?: Schema$ContainerVersion; /** * Whether quick previewing failed when syncing the workspace to the latest * container version. */ - syncStatus: Schema$SyncStatus; + syncStatus?: Schema$SyncStatus; } /** * The result of reverting a built-in variable in a workspace. @@ -808,7 +811,7 @@ export namespace tagmanager_v2 { /** * Whether the built-in variable is enabled after reversion. */ - enabled: boolean; + enabled?: boolean; } /** * The result of reverting folder changes in a workspace. @@ -819,7 +822,7 @@ export namespace tagmanager_v2 { * workspace synchronization operation. If no folder is present, that means * the folder was deleted in the latest container version. */ - folder: Schema$Folder; + folder?: Schema$Folder; } /** * The result of reverting a tag in a workspace. @@ -830,7 +833,7 @@ export namespace tagmanager_v2 { * workspace synchronization operation. If no tag is present, that means the * tag was deleted in the latest container version. */ - tag: Schema$Tag; + tag?: Schema$Tag; } /** * The result of reverting a trigger in a workspace. @@ -841,7 +844,7 @@ export namespace tagmanager_v2 { * workspace synchronization operation. If no trigger is present, that means * the trigger was deleted in the latest container version. */ - trigger: Schema$Trigger; + trigger?: Schema$Trigger; } /** * The result of reverting a variable in a workspace. @@ -852,7 +855,7 @@ export namespace tagmanager_v2 { * workspace synchronization operation. If no variable is present, that * means the variable was deleted in the latest container version. */ - variable: Schema$Variable; + variable?: Schema$Variable; } /** * Represents a reference to atag that fires before another tag in order to @@ -864,11 +867,11 @@ export namespace tagmanager_v2 { * successfully. If false, fire the main tag regardless of setup tag firing * status. */ - stopOnSetupFailure: boolean; + stopOnSetupFailure?: boolean; /** * The name of the setup tag. */ - tagName: string; + tagName?: string; } /** * The status of a workspace after synchronization. @@ -877,11 +880,11 @@ export namespace tagmanager_v2 { /** * Synchornization operation detected a merge conflict. */ - mergeConflict: boolean; + mergeConflict?: boolean; /** * An error occurred during the synchronization operation. */ - syncError: boolean; + syncError?: boolean; } /** * A response after synchronizing the workspace to the latest container @@ -893,11 +896,11 @@ export namespace tagmanager_v2 { * still treated as successful. But a version cannot be created until all * conflicts are resolved. */ - mergeConflict: Schema$MergeConflict[]; + mergeConflict?: Schema$MergeConflict[]; /** * Indicates whether synchronization caused a merge conflict or sync error. */ - syncStatus: Schema$SyncStatus; + syncStatus?: Schema$SyncStatus; } /** * Represents a Google Tag Manager Tag. @@ -906,108 +909,108 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * Blocking rule IDs. If any of the listed rules evaluate to true, the tag * will not fire. */ - blockingRuleId: string[]; + blockingRuleId?: string[]; /** * Blocking trigger IDs. If any of the listed triggers evaluate to true, the * tag will not fire. */ - blockingTriggerId: string[]; + blockingTriggerId?: string[]; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The fingerprint of the GTM Tag as computed at storage time. This value is * recomputed whenever the tag is modified. */ - fingerprint: string; + fingerprint?: string; /** * Firing rule IDs. A tag will fire when any of the listed rules are true * and all of its blockingRuleIds (if any specified) are false. */ - firingRuleId: string[]; + firingRuleId?: string[]; /** * Firing trigger IDs. A tag will fire when any of the listed triggers are * true and all of its blockingTriggerIds (if any specified) are false. */ - firingTriggerId: string[]; + firingTriggerId?: string[]; /** * If set to true, this tag will only fire in the live environment (e.g. not * in preview or debug mode). */ - liveOnly: boolean; + liveOnly?: boolean; /** * Tag display name. */ - name: string; + name?: string; /** * User notes on how to apply this tag in the container. */ - notes: string; + notes?: string; /** * The tag's parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * GTM Tag's API relative path. */ - path: string; + path?: string; /** * Indicates whether the tag is paused, which prevents the tag from firing. */ - paused: boolean; + paused?: boolean; /** * User defined numeric priority of the tag. Tags are fired asynchronously * in order of priority. Tags with higher numeric value fire first. A * tag's priority can be a positive or negative value. The default value * is 0. */ - priority: Schema$Parameter; + priority?: Schema$Parameter; /** * The end timestamp in milliseconds to schedule a tag. */ - scheduleEndMs: string; + scheduleEndMs?: string; /** * The start timestamp in milliseconds to schedule a tag. */ - scheduleStartMs: string; + scheduleStartMs?: string; /** * The list of setup tags. Currently we only allow one. */ - setupTag: Schema$SetupTag[]; + setupTag?: Schema$SetupTag[]; /** * Option to fire this tag. */ - tagFiringOption: string; + tagFiringOption?: string; /** * The Tag ID uniquely identifies the GTM Tag. */ - tagId: string; + tagId?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * The list of teardown tags. Currently we only allow one. */ - teardownTag: Schema$TeardownTag[]; + teardownTag?: Schema$TeardownTag[]; /** * GTM Tag Type. */ - type: string; + type?: string; /** * GTM Workspace ID. */ - workspaceId: string; + workspaceId?: string; } /** * Represents a tag that fires after another tag in order to tear down @@ -1019,11 +1022,11 @@ export namespace tagmanager_v2 { * successfully. If false, fire the teardown tag regardless of main tag * firing status. */ - stopTeardownOnFailure: boolean; + stopTeardownOnFailure?: boolean; /** * The name of the teardown tag. */ - tagName: string; + tagName?: string; } /** * A Timestamp represents a point in time independent of any time zone or @@ -1080,12 +1083,12 @@ export namespace tagmanager_v2 { * second values with fractions must still have non-negative nanos values * that count forward in time. Must be from 0 to 999,999,999 inclusive. */ - nanos: number; + nanos?: number; /** * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. * Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. */ - seconds: string; + seconds?: string; } /** * Represents a Google Tag Manager Trigger @@ -1094,113 +1097,113 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * Used in the case of auto event tracking. */ - autoEventFilter: Schema$Condition[]; + autoEventFilter?: Schema$Condition[]; /** * Whether or not we should only fire tags if the form submit or link click * event is not cancelled by some other event handler (e.g. because of * validation). Only valid for Form Submission and Link Click triggers. */ - checkValidation: Schema$Parameter; + checkValidation?: Schema$Parameter; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * A visibility trigger minimum continuous visible time (in milliseconds). * Only valid for AMP Visibility trigger. */ - continuousTimeMinMilliseconds: Schema$Parameter; + continuousTimeMinMilliseconds?: Schema$Parameter; /** * Used in the case of custom event, which is fired iff all Conditions are * true. */ - customEventFilter: Schema$Condition[]; + customEventFilter?: Schema$Condition[]; /** * Name of the GTM event that is fired. Only valid for Timer triggers. */ - eventName: Schema$Parameter; + eventName?: Schema$Parameter; /** * The trigger will only fire iff all Conditions are true. */ - filter: Schema$Condition[]; + filter?: Schema$Condition[]; /** * The fingerprint of the GTM Trigger as computed at storage time. This * value is recomputed whenever the trigger is modified. */ - fingerprint: string; + fingerprint?: string; /** * List of integer percentage values for scroll triggers. The trigger will * fire when each percentage is reached when the view is scrolled * horizontally. Only valid for AMP scroll triggers. */ - horizontalScrollPercentageList: Schema$Parameter; + horizontalScrollPercentageList?: Schema$Parameter; /** * Time between triggering recurring Timer Events (in milliseconds). Only * valid for Timer triggers. */ - interval: Schema$Parameter; + interval?: Schema$Parameter; /** * Time between Timer Events to fire (in seconds). Only valid for AMP Timer * trigger. */ - intervalSeconds: Schema$Parameter; + intervalSeconds?: Schema$Parameter; /** * Limit of the number of GTM events this Timer Trigger will fire. If no * limit is set, we will continue to fire GTM events until the user leaves * the page. Only valid for Timer triggers. */ - limit: Schema$Parameter; + limit?: Schema$Parameter; /** * Max time to fire Timer Events (in seconds). Only valid for AMP Timer * trigger. */ - maxTimerLengthSeconds: Schema$Parameter; + maxTimerLengthSeconds?: Schema$Parameter; /** * Trigger display name. */ - name: string; + name?: string; /** * User notes on how to apply this trigger in the container. */ - notes: string; + notes?: string; /** * Additional parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * GTM Trigger's API relative path. */ - path: string; + path?: string; /** * A click trigger CSS selector (i.e. "a", "button" * etc.). Only valid for AMP Click trigger. */ - selector: Schema$Parameter; + selector?: Schema$Parameter; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * A visibility trigger minimum total visible time (in milliseconds). Only * valid for AMP Visibility trigger. */ - totalTimeMinMilliseconds: Schema$Parameter; + totalTimeMinMilliseconds?: Schema$Parameter; /** * The Trigger ID uniquely identifies the GTM Trigger. */ - triggerId: string; + triggerId?: string; /** * Defines the data layer event that causes this trigger. */ - type: string; + type?: string; /** * Globally unique id of the trigger that auto-generates this (a Form * Submit, Link Click or Timer listener) if any. Used to make incompatible @@ -1209,45 +1212,45 @@ export namespace tagmanager_v2 { * by triggers don't exist until then. Only valid for Form Submit, Link * Click and Timer triggers. */ - uniqueTriggerId: Schema$Parameter; + uniqueTriggerId?: Schema$Parameter; /** * List of integer percentage values for scroll triggers. The trigger will * fire when each percentage is reached when the view is scrolled * vertically. Only valid for AMP scroll triggers. */ - verticalScrollPercentageList: Schema$Parameter; + verticalScrollPercentageList?: Schema$Parameter; /** * A visibility trigger CSS selector (i.e. "#id"). Only valid for * AMP Visibility trigger. */ - visibilitySelector: Schema$Parameter; + visibilitySelector?: Schema$Parameter; /** * A visibility trigger maximum percent visibility. Only valid for AMP * Visibility trigger. */ - visiblePercentageMax: Schema$Parameter; + visiblePercentageMax?: Schema$Parameter; /** * A visibility trigger minimum percent visibility. Only valid for AMP * Visibility trigger. */ - visiblePercentageMin: Schema$Parameter; + visiblePercentageMin?: Schema$Parameter; /** * Whether or not we should delay the form submissions or link opening until * all of the tags have fired (by preventing the default action and later * simulating the default action). Only valid for Form Submission and Link * Click triggers. */ - waitForTags: Schema$Parameter; + waitForTags?: Schema$Parameter; /** * How long to wait (in milliseconds) for tags to fire when * 'waits_for_tags' above evaluates to true. Only valid for Form * Submission and Link Click triggers. */ - waitForTagsTimeout: Schema$Parameter; + waitForTagsTimeout?: Schema$Parameter; /** * GTM Workspace ID. */ - workspaceId: string; + workspaceId?: string; } /** * Updates a workspace proposal with patch-like semantics. @@ -1257,19 +1260,19 @@ export namespace tagmanager_v2 { * When provided, this fingerprint must match the fingerprint of the * proposal in storage. */ - fingerprint: string; + fingerprint?: string; /** * If present, a new comment is added to the workspace proposal history. */ - newComment: Schema$WorkspaceProposalHistoryComment; + newComment?: Schema$WorkspaceProposalHistoryComment; /** * If present, the list of reviewers of the workspace proposal is updated. */ - reviewers: Schema$WorkspaceProposalUser[]; + reviewers?: Schema$WorkspaceProposalUser[]; /** * If present, the status of the workspace proposal is updated. */ - status: string; + status?: string; } /** * Represents a user's permissions to an account and its container. @@ -1278,23 +1281,23 @@ export namespace tagmanager_v2 { /** * GTM Account access permissions. */ - accountAccess: Schema$AccountAccess; + accountAccess?: Schema$AccountAccess; /** * The Account ID uniquely identifies the GTM Account. */ - accountId: string; + accountId?: string; /** * GTM Container access permissions. */ - containerAccess: Schema$ContainerAccess[]; + containerAccess?: Schema$ContainerAccess[]; /** * User's email address. */ - emailAddress: string; + emailAddress?: string; /** * GTM UserPermission's API relative path. */ - path: string; + path?: string; } /** * Represents a Google Tag Manager Variable. @@ -1303,74 +1306,74 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * For mobile containers only: A list of trigger IDs for disabling * conditional variables; the variable is enabled if one of the enabling * trigger is true while all the disabling trigger are false. Treated as an * unordered set. */ - disablingTriggerId: string[]; + disablingTriggerId?: string[]; /** * For mobile containers only: A list of trigger IDs for enabling * conditional variables; the variable is enabled if one of the enabling * triggers is true while all the disabling triggers are false. Treated as * an unordered set. */ - enablingTriggerId: string[]; + enablingTriggerId?: string[]; /** * The fingerprint of the GTM Variable as computed at storage time. This * value is recomputed whenever the variable is modified. */ - fingerprint: string; + fingerprint?: string; /** * Variable display name. */ - name: string; + name?: string; /** * User notes on how to apply this variable in the container. */ - notes: string; + notes?: string; /** * The variable's parameters. */ - parameter: Schema$Parameter[]; + parameter?: Schema$Parameter[]; /** * Parent folder id. */ - parentFolderId: string; + parentFolderId?: string; /** * GTM Variable's API relative path. */ - path: string; + path?: string; /** * The end timestamp in milliseconds to schedule a variable. */ - scheduleEndMs: string; + scheduleEndMs?: string; /** * The start timestamp in milliseconds to schedule a variable. */ - scheduleStartMs: string; + scheduleStartMs?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * GTM Variable Type. */ - type: string; + type?: string; /** * The Variable ID uniquely identifies the GTM Variable. */ - variableId: string; + variableId?: string; /** * GTM Workspace ID. */ - workspaceId: string; + workspaceId?: string; } /** * Represents a Google Tag Manager Container Workspace. @@ -1379,36 +1382,36 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * Workspace description. */ - description: string; + description?: string; /** * The fingerprint of the GTM Workspace as computed at storage time. This * value is recomputed whenever the workspace is modified. */ - fingerprint: string; + fingerprint?: string; /** * Workspace display name. */ - name: string; + name?: string; /** * GTM Workspace's API relative path. */ - path: string; + path?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * The Workspace ID uniquely identifies the GTM Workspace. */ - workspaceId: string; + workspaceId?: string; } /** * A workspace proposal represents an ongoing review of workspace changes in @@ -1418,28 +1421,28 @@ export namespace tagmanager_v2 { /** * List of authors for the workspace proposal. */ - authors: Schema$WorkspaceProposalUser[]; + authors?: Schema$WorkspaceProposalUser[]; /** * The fingerprint of the GTM workspace proposal as computed at storage * time. This value is recomputed whenever the proposal is modified. */ - fingerprint: string; + fingerprint?: string; /** * Records the history of comments and status changes. */ - history: Schema$WorkspaceProposalHistory[]; + history?: Schema$WorkspaceProposalHistory[]; /** * GTM workspace proposal's relative path. */ - path: string; + path?: string; /** * Lists of reviewers for the workspace proposal. */ - reviewers: Schema$WorkspaceProposalUser[]; + reviewers?: Schema$WorkspaceProposalUser[]; /** * The status of the workspace proposal as it goes through review. */ - status: string; + status?: string; } /** * A history event that represents a comment or status change in the proposal. @@ -1448,23 +1451,23 @@ export namespace tagmanager_v2 { /** * A user or reviewer comment. */ - comment: Schema$WorkspaceProposalHistoryComment; + comment?: Schema$WorkspaceProposalHistoryComment; /** * The party responsible for the change in history. */ - createdBy: Schema$WorkspaceProposalUser; + createdBy?: Schema$WorkspaceProposalUser; /** * When this history event was added to the workspace proposal. */ - createdTimestamp: Schema$Timestamp; + createdTimestamp?: Schema$Timestamp; /** * A change in the proposal's status. */ - statusChange: Schema$WorkspaceProposalHistoryStatusChange; + statusChange?: Schema$WorkspaceProposalHistoryStatusChange; /** * The history type distinguishing between comments and status changes. */ - type: string; + type?: string; } /** * A comment from the reviewer or author. @@ -1473,7 +1476,7 @@ export namespace tagmanager_v2 { /** * The contents of the reviewer or author comment. */ - content: string; + content?: string; } /** * A change in the proposal's status. @@ -1482,11 +1485,11 @@ export namespace tagmanager_v2 { /** * The new proposal status after that status change. */ - newStatus: string; + newStatus?: string; /** * The old proposal status before the status change. */ - oldStatus: string; + oldStatus?: string; } /** * Represents an external user or internal Google Tag Manager system. @@ -1495,11 +1498,11 @@ export namespace tagmanager_v2 { /** * Gaia id associated with a user, absent for the Google Tag Manager system. */ - gaiaId: string; + gaiaId?: string; /** * User type distinguishes between a user and the Google Tag Manager system. */ - type: string; + type?: string; } /** * Represents a Google Tag Manager Zone's contents. @@ -1508,52 +1511,52 @@ export namespace tagmanager_v2 { /** * GTM Account ID. */ - accountId: string; + accountId?: string; /** * This Zone's boundary. */ - boundary: Schema$ZoneBoundary; + boundary?: Schema$ZoneBoundary; /** * Containers that are children of this Zone. */ - childContainer: Schema$ZoneChildContainer[]; + childContainer?: Schema$ZoneChildContainer[]; /** * GTM Container ID. */ - containerId: string; + containerId?: string; /** * The fingerprint of the GTM Zone as computed at storage time. This value * is recomputed whenever the zone is modified. */ - fingerprint: string; + fingerprint?: string; /** * Zone display name. */ - name: string; + name?: string; /** * User notes on how to apply this zone in the container. */ - notes: string; + notes?: string; /** * GTM Zone's API relative path. */ - path: string; + path?: string; /** * Auto generated link to the tag manager UI */ - tagManagerUrl: string; + tagManagerUrl?: string; /** * This Zone's type restrictions. */ - typeRestriction: Schema$ZoneTypeRestriction; + typeRestriction?: Schema$ZoneTypeRestriction; /** * GTM Workspace ID. */ - workspaceId: string; + workspaceId?: string; /** * The Zone ID uniquely identifies the GTM Zone. */ - zoneId: string; + zoneId?: string; } /** * Represents a Zone's boundaries. @@ -1562,12 +1565,12 @@ export namespace tagmanager_v2 { /** * The conditions that, when conjoined, make up the boundary. */ - condition: Schema$Condition[]; + condition?: Schema$Condition[]; /** * Custom evaluation trigger IDs. A zone will evaluate its boundary * conditions when any of the listed triggers are true. */ - customEvaluationTriggerId: string[]; + customEvaluationTriggerId?: string[]; } /** * Represents a child container of a Zone. @@ -1576,11 +1579,11 @@ export namespace tagmanager_v2 { /** * The zone's nickname for the child container. */ - nickname: string; + nickname?: string; /** * The child container's public id. */ - publicId: string; + publicId?: string; } /** * Represents a Zone's type restrictions. @@ -1589,13 +1592,14 @@ export namespace tagmanager_v2 { /** * True if type restrictions have been enabled for this Zone. */ - enable: boolean; + enable?: boolean; /** * List of type public ids that have been whitelisted for use in this Zone. */ - whitelistedTypeId: string[]; + whitelistedTypeId?: string[]; } + export class Resource$Accounts { root: Tagmanager; containers: Resource$Accounts$Containers; @@ -1624,23 +1628,33 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1675,28 +1689,38 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Accounts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1733,25 +1757,36 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Accounts$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Accounts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Accounts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1773,6 +1808,50 @@ export namespace tagmanager_v2 { } } } + + export interface Params$Resource$Accounts$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Accounts's API relative path. Example: accounts/{account_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + } + export interface Params$Resource$Accounts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the account + * in storage. + */ + fingerprint?: string; + /** + * GTM Accounts's API relative path. Example: accounts/{account_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Account; + } + export class Resource$Accounts$Containers { root: Tagmanager; environments: Resource$Accounts$Containers$Environments; @@ -1807,26 +1886,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1861,22 +1953,37 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$Containers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1911,23 +2018,35 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Containers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1963,28 +2082,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Accounts$Containers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2021,26 +2152,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Containers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2062,6 +2206,83 @@ export namespace tagmanager_v2 { } } } + + export interface Params$Resource$Accounts$Containers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Account's API relative path. Example: accounts/{account_id}. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Container; + } + export interface Params$Resource$Accounts$Containers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Accounts's API relative path. Example: accounts/{account_id}. + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * container in storage. + */ + fingerprint?: string; + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Container; + } + export class Resource$Accounts$Containers$Environments { root: Tagmanager; constructor(root: Tagmanager) { @@ -2087,26 +2308,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Environments$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Environments$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2141,22 +2376,38 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Environments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Environments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2191,24 +2442,35 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Containers$Environments$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Containers$Environments$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Environments$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Environments$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2244,28 +2506,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Environments$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Environments$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Environments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2302,26 +2577,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Accounts$Containers$Environments$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Accounts$Containers$Environments$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2357,26 +2646,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reauthorize(params?: any, options?: MethodOptions): - AxiosPromise; reauthorize( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Reauthorize, + options?: MethodOptions): AxiosPromise; + reauthorize( + params: Params$Resource$Accounts$Containers$Environments$Reauthorize, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reauthorize( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Environments$Reauthorize, + callback: BodyResponseCallback): void; + reauthorize(callback: BodyResponseCallback): void; + reauthorize( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Reauthorize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Reauthorize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Environments$Reauthorize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2413,26 +2717,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Environments$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Environments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Environments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Environments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Environments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Environments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2455,6 +2773,122 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Environments$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Accounts$Containers$Environments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Environment's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/environments/{environment_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Environments$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Environment's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/environments/{environment_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Environments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Environments$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * environment in storage. + */ + fingerprint?: string; + /** + * GTM Environment's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/environments/{environment_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Accounts$Containers$Environments$Reauthorize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Environment's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/environments/{environment_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + export interface Params$Resource$Accounts$Containers$Environments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * environment in storage. + */ + fingerprint?: string; + /** + * GTM Environment's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/environments/{environment_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Environment; + } + + export class Resource$Accounts$Containers$Versions { root: Tagmanager; constructor(root: Tagmanager) { @@ -2479,22 +2913,37 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Versions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Versions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2530,24 +2979,35 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$Containers$Versions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$Containers$Versions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Versions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2582,26 +3042,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - live(params?: any, options?: MethodOptions): - AxiosPromise; live( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Live, + options?: MethodOptions): AxiosPromise; + live( + params: Params$Resource$Accounts$Containers$Versions$Live, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; live( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Versions$Live, + callback: BodyResponseCallback): void; + live(callback: BodyResponseCallback): void; + live( + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Live| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Live; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Live; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2637,30 +3110,46 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publish(params?: any, options?: MethodOptions): + publish( + params?: Params$Resource$Accounts$Containers$Versions$Publish, + options?: MethodOptions): AxiosPromise; publish( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Versions$Publish, + options: MethodOptions| BodyResponseCallback, - callback?: - BodyResponseCallback): void; + callback: BodyResponseCallback): + void; + publish( + params: Params$Resource$Accounts$Containers$Versions$Publish, + callback: BodyResponseCallback): + void; + publish(callback: + BodyResponseCallback): + void; publish( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Publish| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Publish; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Publish; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2698,26 +3187,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - set_latest(params?: any, options?: MethodOptions): - AxiosPromise; set_latest( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Set_latest, + options?: MethodOptions): AxiosPromise; + set_latest( + params: Params$Resource$Accounts$Containers$Versions$Set_latest, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; set_latest( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Versions$Set_latest, + callback: BodyResponseCallback): void; + set_latest(callback: BodyResponseCallback): void; + set_latest( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Versions$Set_latest| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Set_latest; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Set_latest; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2752,26 +3255,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Undelete, + options?: MethodOptions): AxiosPromise; + undelete( + params: Params$Resource$Accounts$Containers$Versions$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + undelete( + params: Params$Resource$Accounts$Containers$Versions$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Versions$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2808,26 +3325,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Versions$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Versions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Containers$Versions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Accounts$Containers$Versions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Versions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Versions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2850,6 +3380,111 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Versions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM ContainerVersion's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/versions/{version_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GTM ContainerVersion ID. Specify published to retrieve the currently + * published version. + */ + containerVersionId?: string; + /** + * GTM ContainerVersion's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/versions/{version_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Live { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Publish { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * container version in storage. + */ + fingerprint?: string; + /** + * GTM ContainerVersion's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/versions/{version_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Set_latest { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM ContainerVersion's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/versions/{version_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM ContainerVersion's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/versions/{version_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Versions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * container version in storage. + */ + fingerprint?: string; + /** + * GTM ContainerVersion's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/versions/{version_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$ContainerVersion; + } + + export class Resource$Accounts$Containers$Version_headers { root: Tagmanager; constructor(root: Tagmanager) { @@ -2874,28 +3509,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - latest(params?: any, options?: MethodOptions): - AxiosPromise; latest( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Version_headers$Latest, + options?: MethodOptions): AxiosPromise; + latest( + params: Params$Resource$Accounts$Containers$Version_headers$Latest, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; latest( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Version_headers$Latest, + callback: BodyResponseCallback): void; + latest(callback: BodyResponseCallback): void; + latest( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Version_headers$Latest| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Version_headers$Latest; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Version_headers$Latest; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2932,29 +3581,45 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accounts$Containers$Version_headers$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Version_headers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Version_headers$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Version_headers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Version_headers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Version_headers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2979,6 +3644,40 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Version_headers$Latest { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Version_headers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Also retrieve deleted (archived) versions when true. + */ + includeDeleted?: boolean; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + } + + export class Resource$Accounts$Containers$Workspaces { root: Tagmanager; built_in_variables: @@ -3021,26 +3720,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3078,29 +3791,47 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create_version(params?: any, options?: MethodOptions): + create_version( + params?: Params$Resource$Accounts$Containers$Workspaces$Create_version, + options?: MethodOptions): AxiosPromise; create_version( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Workspaces$Create_version, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + create_version( + params: Params$Resource$Accounts$Containers$Workspaces$Create_version, + callback: BodyResponseCallback): void; create_version( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + create_version( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Create_version| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Create_version; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Create_version; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3137,22 +3868,38 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3187,23 +3934,35 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Workspaces$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Workspaces$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Workspaces$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$Containers$Workspaces$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3238,26 +3997,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getProposal(params?: any, options?: MethodOptions): - AxiosPromise; getProposal( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Getproposal, + options?: MethodOptions): AxiosPromise; + getProposal( + params: Params$Resource$Accounts$Containers$Workspaces$Getproposal, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; getProposal( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Getproposal, + callback: BodyResponseCallback): void; + getProposal(callback: BodyResponseCallback): void; + getProposal( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Getproposal| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Getproposal; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Getproposal; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3292,29 +4066,46 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getStatus(params?: any, options?: MethodOptions): + getStatus( + params?: Params$Resource$Accounts$Containers$Workspaces$Getstatus, + options?: MethodOptions): AxiosPromise; getStatus( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Workspaces$Getstatus, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + getStatus( + params: Params$Resource$Accounts$Containers$Workspaces$Getstatus, + callback: BodyResponseCallback): + void; + getStatus(callback: + BodyResponseCallback): void; getStatus( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Getstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Getstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Getstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3351,28 +4142,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Workspaces$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Workspaces$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Accounts$Containers$Workspaces$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3408,28 +4211,43 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - quick_preview(params?: any, options?: MethodOptions): - AxiosPromise; quick_preview( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$Quick_preview, + options?: MethodOptions): AxiosPromise; + quick_preview( + params: Params$Resource$Accounts$Containers$Workspaces$Quick_preview, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + quick_preview( + params: Params$Resource$Accounts$Containers$Workspaces$Quick_preview, + callback: BodyResponseCallback): void; + quick_preview(callback: BodyResponseCallback): + void; quick_preview( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Quick_preview| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Quick_preview; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Quick_preview; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3467,22 +4285,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - resolve_conflict(params?: any, options?: MethodOptions): AxiosPromise; resolve_conflict( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict, + options?: MethodOptions): AxiosPromise; + resolve_conflict( + params: Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + resolve_conflict( + params: Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict, + callback: BodyResponseCallback): void; + resolve_conflict(callback: BodyResponseCallback): void; resolve_conflict( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3519,28 +4355,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sync(params?: any, options?: MethodOptions): - AxiosPromise; sync( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$Sync, + options?: MethodOptions): AxiosPromise; + sync( + params: Params$Resource$Accounts$Containers$Workspaces$Sync, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + sync( + params: Params$Resource$Accounts$Containers$Workspaces$Sync, + callback: BodyResponseCallback): void; + sync(callback: BodyResponseCallback): void; sync( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$Containers$Workspaces$Sync| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Sync; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Sync; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3577,26 +4425,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Workspaces$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3632,26 +4494,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateProposal(params?: any, options?: MethodOptions): - AxiosPromise; updateProposal( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Updateproposal, + options?: MethodOptions): AxiosPromise; + updateProposal( + params: Params$Resource$Accounts$Containers$Workspaces$Updateproposal, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; updateProposal( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Updateproposal, + callback: BodyResponseCallback): void; + updateProposal(callback: BodyResponseCallback): + void; + updateProposal( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Updateproposal| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Updateproposal; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Updateproposal; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3673,6 +4551,186 @@ export namespace tagmanager_v2 { } } } + + export interface Params$Resource$Accounts$Containers$Workspaces$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM parent Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Workspace; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Create_version { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateContainerVersionRequestVersionOptions; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Getproposal { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM workspace proposal's relative path: Example: + * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Getstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM parent Container's API relative path. Example: + * accounts/{account_id}/containers/{container_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Quick_preview { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Resolve_conflict { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * entity_in_workspace in the merge conflict. + */ + fingerprint?: string; + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Entity; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Sync { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * workspace in storage. + */ + fingerprint?: string; + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Workspace; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Updateproposal { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM workspace proposal's relative path: Example: + * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$UpdateWorkspaceProposalRequest; + } + export class Resource$Accounts$Containers$Workspaces$Built_in_variables { root: Tagmanager; constructor(root: Tagmanager) { @@ -3699,29 +4757,50 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): + create( + params?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + create( + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create, + callback: BodyResponseCallback): + void; + create(callback: + BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3760,22 +4839,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3811,31 +4910,53 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3874,29 +4995,50 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): + revert( + params?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert, + options?: MethodOptions): AxiosPromise; revert( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + revert( + params: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert, + callback: BodyResponseCallback): + void; + revert(callback: + BodyResponseCallback): void; revert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3922,6 +5064,72 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + /** + * The types of built-in variables to enable. + */ + type?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM BuiltInVariable's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/built_in_variables + */ + path?: string; + /** + * The types of built-in variables to delete. + */ + type?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Built_in_variables$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM BuiltInVariable's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/built_in_variables + */ + path?: string; + /** + * The type of built-in variable to revert. + */ + type?: string; + } + + export class Resource$Accounts$Containers$Workspaces$Folders { root: Tagmanager; constructor(root: Tagmanager) { @@ -3947,25 +5155,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Folders$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4000,22 +5223,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Folders$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4051,26 +5291,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - entities(params?: any, options?: MethodOptions): - AxiosPromise; entities( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Entities, + options?: MethodOptions): AxiosPromise; + entities( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Entities, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; entities( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Entities, + callback: BodyResponseCallback): void; + entities(callback: BodyResponseCallback): void; + entities( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Entities| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Entities; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Entities; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4105,23 +5361,36 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Workspaces$Folders$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Workspaces$Folders$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Workspaces$Folders$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4157,28 +5426,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Folders$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4218,23 +5500,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - move_entities_to_folder(params?: any, options?: MethodOptions): - AxiosPromise; move_entities_to_folder( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder, + options?: MethodOptions): AxiosPromise; move_entities_to_folder( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + move_entities_to_folder( + params: + Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder, + callback: BodyResponseCallback): void; + move_entities_to_folder(callback: BodyResponseCallback): void; + move_entities_to_folder( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4270,28 +5571,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): - AxiosPromise; revert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$Folders$Revert, + options?: MethodOptions): AxiosPromise; + revert( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Revert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; revert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Revert, + callback: BodyResponseCallback): void; + revert(callback: BodyResponseCallback): void; + revert( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4328,25 +5643,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Folders$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Folders$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Folders$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Folders$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Folders$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4369,6 +5699,146 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Folder's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Entities { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Folder's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Folder's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Move_entities_to_folder { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Folder's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} + */ + path?: string; + /** + * The tags to be moved to the folder. + */ + tagId?: string; + /** + * The triggers to be moved to the folder. + */ + triggerId?: string; + /** + * The variables to be moved to the folder. + */ + variableId?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the tag in + * storage. + */ + fingerprint?: string; + /** + * GTM Folder's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Folders$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the folder + * in storage. + */ + fingerprint?: string; + /** + * GTM Folder's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Folder; + } + + export class Resource$Accounts$Containers$Workspaces$Proposal { root: Tagmanager; constructor(root: Tagmanager) { @@ -4394,26 +5864,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Proposal$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Proposal$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Proposal$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Proposal$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Proposal$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Proposal$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4448,22 +5933,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4486,6 +5988,36 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Workspaces$Proposal$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{aid}/containers/{cid}/workspace/{wid} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$CreateWorkspaceProposalRequest; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Proposal$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM workspace proposal's relative path: Example: + * accounts/{aid}/containers/{cid}/workspace/{wid}/workspace_proposal + */ + path?: string; + } + + export class Resource$Accounts$Containers$Workspaces$Tags { root: Tagmanager; constructor(root: Tagmanager) { @@ -4511,23 +6043,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Tags$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Tags$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Tags$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Tags$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4562,22 +6111,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Tags$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Tags$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Tags$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Tags$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4612,21 +6178,35 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Workspaces$Tags$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Workspaces$Tags$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Workspaces$Tags$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Tags$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Tags$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Tags$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4662,26 +6242,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Tags$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Tags$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Tags$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Tags$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Containers$Workspaces$Tags$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4717,26 +6311,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): - AxiosPromise; revert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Tags$Revert, + options?: MethodOptions): AxiosPromise; + revert( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Revert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + revert( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Revert, + callback: BodyResponseCallback): void; + revert(callback: BodyResponseCallback): void; revert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Tags$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Tags$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Tags$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4773,23 +6382,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Tags$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Tags$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Tags$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Tags$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Tags$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4812,6 +6438,102 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Workspaces$Tags$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Tag; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Tags$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Tag's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Tags$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Tag's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Tags$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Tags$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of thetag in + * storage. + */ + fingerprint?: string; + /** + * GTM Tag's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Tags$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the tag in + * storage. + */ + fingerprint?: string; + /** + * GTM Tag's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Tag; + } + + export class Resource$Accounts$Containers$Workspaces$Triggers { root: Tagmanager; constructor(root: Tagmanager) { @@ -4837,25 +6559,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Triggers$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Triggers$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4890,22 +6627,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4940,23 +6694,36 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Workspaces$Triggers$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Triggers$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -4992,28 +6759,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$Triggers$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Triggers$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Triggers$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Triggers$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5049,28 +6830,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): - AxiosPromise; revert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert, + options?: MethodOptions): AxiosPromise; + revert( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + revert( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert, + callback: BodyResponseCallback): void; + revert(callback: BodyResponseCallback): void; revert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5107,25 +6902,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$Containers$Workspaces$Triggers$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$Containers$Workspaces$Triggers$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Triggers$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Triggers$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5148,6 +6958,102 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Workspaces$Triggers$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspaces's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Trigger; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Triggers$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Trigger's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Triggers$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Trigger's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Triggers$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Workspaces's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Triggers$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the trigger + * in storage. + */ + fingerprint?: string; + /** + * GTM Trigger's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Triggers$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the trigger + * in storage. + */ + fingerprint?: string; + /** + * GTM Trigger's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Trigger; + } + + export class Resource$Accounts$Containers$Workspaces$Variables { root: Tagmanager; constructor(root: Tagmanager) { @@ -5173,26 +7079,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Variables$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Variables$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5227,22 +7148,40 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Variables$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Variables$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5277,23 +7216,36 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Accounts$Containers$Workspaces$Variables$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Accounts$Containers$Workspaces$Variables$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$Containers$Workspaces$Variables$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Variables$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Variables$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5329,28 +7281,42 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Accounts$Containers$Workspaces$Variables$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Accounts$Containers$Workspaces$Variables$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Workspaces$Variables$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Variables$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Variables$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Variables$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5386,28 +7352,43 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - revert(params?: any, options?: MethodOptions): - AxiosPromise; revert( - params?: any, - options?: MethodOptions| + params?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Revert, + options?: MethodOptions): AxiosPromise; + revert( + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Revert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; revert( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Revert, + callback: BodyResponseCallback): void; + revert(callback: BodyResponseCallback): void; + revert( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Revert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Variables$Revert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Variables$Revert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5444,26 +7425,41 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$Containers$Workspaces$Variables$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: + Params$Resource$Accounts$Containers$Workspaces$Variables$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$Containers$Workspaces$Variables$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Accounts$Containers$Workspaces$Variables$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5486,6 +7482,101 @@ export namespace tagmanager_v2 { } } + export interface Params$Resource$Accounts$Containers$Workspaces$Variables$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Variable; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Variables$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Variable's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Variables$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Variable's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Variables$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Workspace's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Variables$Revert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * variable in storage. + */ + fingerprint?: string; + /** + * GTM Variable's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$Containers$Workspaces$Variables$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * When provided, this fingerprint must match the fingerprint of the + * variable in storage. + */ + fingerprint?: string; + /** + * GTM Variable's API relative path. Example: + * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variable_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$Variable; + } + export class Resource$Accounts$User_permissions { @@ -5513,26 +7604,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$User_permissions$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Accounts$User_permissions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$User_permissions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Accounts$User_permissions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$User_permissions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$User_permissions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5568,22 +7672,37 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$User_permissions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Accounts$User_permissions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Accounts$User_permissions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Accounts$User_permissions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$User_permissions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$User_permissions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5618,24 +7737,35 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Accounts$User_permissions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Accounts$User_permissions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Accounts$User_permissions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Accounts$User_permissions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$User_permissions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$User_permissions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5672,29 +7802,44 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Accounts$User_permissions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Accounts$User_permissions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Accounts$User_permissions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Accounts$User_permissions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$User_permissions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$User_permissions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5731,26 +7876,39 @@ export namespace tagmanager_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Accounts$User_permissions$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Accounts$User_permissions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Accounts$User_permissions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Accounts$User_permissions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Accounts$User_permissions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$User_permissions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5772,4 +7930,75 @@ export namespace tagmanager_v2 { } } } + + export interface Params$Resource$Accounts$User_permissions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM Account's API relative path. Example: accounts/{account_id} + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$UserPermission; + } + export interface Params$Resource$Accounts$User_permissions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM UserPermission's API relative path. Example: + * accounts/{account_id}/user_permissions/{user_permission_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$User_permissions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM UserPermission's API relative path. Example: + * accounts/{account_id}/user_permissions/{user_permission_id} + */ + path?: string; + } + export interface Params$Resource$Accounts$User_permissions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * GTM Accounts's API relative path. Example: accounts/{account_id} + */ + parent?: string; + } + export interface Params$Resource$Accounts$User_permissions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * GTM UserPermission's API relative path. Example: + * accounts/{account_id}/user_permissions/{user_permission_id} + */ + path?: string; + /** + * Request body metadata + */ + resource?: Schema$UserPermission; + } } diff --git a/src/apis/taskqueue/v1beta1.ts b/src/apis/taskqueue/v1beta1.ts deleted file mode 100644 index 94d63147e4b..00000000000 --- a/src/apis/taskqueue/v1beta1.ts +++ /dev/null @@ -1,441 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace taskqueue_v1beta1 { - /** - * TaskQueue API - * - * Accesses a Google App Engine Pull Task Queue over REST. - * - * @example - * const google = require('googleapis'); - * const taskqueue = google.taskqueue('v1beta1'); - * - * @namespace taskqueue - * @type {Function} - * @version v1beta1 - * @variation v1beta1 - * @param {object=} options Options for Taskqueue - */ - export class Taskqueue { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - taskqueues: Resource$Taskqueues; - tasks: Resource$Tasks; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.taskqueues = new Resource$Taskqueues(this); - this.tasks = new Resource$Tasks(this); - } - - getRoot() { - return this.root; - } - } - - export interface Schema$Task { - /** - * Time (in seconds since the epoch) at which the task was enqueued. - */ - enqueueTimestamp: string; - /** - * Name of the task. - */ - id: string; - /** - * The kind of object returned, in this case set to task. - */ - kind: string; - /** - * Time (in seconds since the epoch) at which the task lease will expire. - * This value is 0 if the task isnt currently leased out to a worker. - */ - leaseTimestamp: string; - /** - * A bag of bytes which is the task payload. The payload on the JSON side is - * always Base64 encoded. - */ - payloadBase64: string; - /** - * Name of the queue that the task is in. - */ - queueName: string; - } - export interface Schema$TaskQueue { - /** - * ACLs that are applicable to this TaskQueue object. - */ - acl: any; - /** - * Name of the taskqueue. - */ - id: string; - /** - * The kind of REST object returned, in this case taskqueue. - */ - kind: string; - /** - * The number of times we should lease out tasks before giving up on them. - * If unset we lease them out forever until a worker deletes the task. - */ - maxLeases: number; - /** - * Statistics for the TaskQueue object in question. - */ - stats: any; - } - export interface Schema$Tasks { - /** - * The actual list of tasks returned as a result of the lease operation. - */ - items: Schema$Task[]; - /** - * The kind of object returned, a list of tasks. - */ - kind: string; - } - export interface Schema$Tasks2 { - /** - * The actual list of tasks currently active in the TaskQueue. - */ - items: Schema$Task[]; - /** - * The kind of object returned, a list of tasks. - */ - kind: string; - } - - export class Resource$Taskqueues { - root: Taskqueue; - constructor(root: Taskqueue) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * taskqueue.taskqueues.get - * @desc Get detailed information about a TaskQueue. - * @alias taskqueue.taskqueues.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {boolean=} params.getStats Whether to get stats. Optional. - * @param {string} params.project The project under which the queue lies. - * @param {string} params.taskqueue The id of the taskqueue to get the properties of. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'taskqueue'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Tasks { - root: Taskqueue; - constructor(root: Taskqueue) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * taskqueue.tasks.delete - * @desc Delete a task from a TaskQueue. - * @alias taskqueue.tasks.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies. - * @param {string} params.task The id of the task to delete. - * @param {string} params.taskqueue The taskqueue to delete a task from. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + - '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/{task}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'task'], - pathParams: ['project', 'task', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.get - * @desc Get a particular task from a TaskQueue. - * @alias taskqueue.tasks.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies. - * @param {string} params.task The task to get properties of. - * @param {string} params.taskqueue The taskqueue in which the task belongs. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/{task}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'task'], - pathParams: ['project', 'task', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.lease - * @desc Lease 1 or more tasks from a TaskQueue. - * @alias taskqueue.tasks.lease - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer} params.leaseSecs The lease in seconds. - * @param {integer} params.numTasks The number of tasks to lease. - * @param {string} params.project The project under which the queue lies. - * @param {string} params.taskqueue The taskqueue to lease a task from. - * @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 - */ - lease(params?: any, options?: MethodOptions): AxiosPromise; - lease( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - lease( - 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 + - '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks/lease') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'numTasks', 'leaseSecs'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.list - * @desc List Tasks in a TaskQueue - * @alias taskqueue.tasks.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies. - * @param {string} params.taskqueue The id of the taskqueue to list tasks from. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - 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 + - '/taskqueue/v1beta1/projects/{project}/taskqueues/{taskqueue}/tasks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'taskqueue'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/taskqueue/v1beta2.ts b/src/apis/taskqueue/v1beta2.ts deleted file mode 100644 index 7ef68ea5658..00000000000 --- a/src/apis/taskqueue/v1beta2.ts +++ /dev/null @@ -1,622 +0,0 @@ -/** - * Copyright 2015 Google Inc. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import {AxiosPromise} from 'axios'; - -import {GoogleApis} from '../..'; -import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; -import {createAPIRequest} from '../../lib/apirequest'; - -// TODO: We will eventually get the `any` in here cleared out, but in the -// interim we want to turn on no-implicit-any. - -// tslint:disable: no-any -// tslint:disable: class-name -// tslint:disable: variable-name -// tslint:disable: jsdoc-format -// tslint:disable: no-namespace - -export namespace taskqueue_v1beta2 { - /** - * TaskQueue API - * - * Accesses a Google App Engine Pull Task Queue over REST. - * - * @example - * const google = require('googleapis'); - * const taskqueue = google.taskqueue('v1beta2'); - * - * @namespace taskqueue - * @type {Function} - * @version v1beta2 - * @variation v1beta2 - * @param {object=} options Options for Taskqueue - */ - export class Taskqueue { - _options: GlobalOptions; - google: GoogleApis; - root = this; - - taskqueues: Resource$Taskqueues; - tasks: Resource$Tasks; - - constructor(options: GlobalOptions, google: GoogleApis) { - this._options = options || {}; - this.google = google; - this.getRoot.bind(this); - - this.taskqueues = new Resource$Taskqueues(this); - this.tasks = new Resource$Tasks(this); - } - - getRoot() { - return this.root; - } - } - - export interface Schema$Task { - /** - * Time (in seconds since the epoch) at which the task was enqueued. - */ - enqueueTimestamp: string; - /** - * Name of the task. - */ - id: string; - /** - * The kind of object returned, in this case set to task. - */ - kind: string; - /** - * Time (in seconds since the epoch) at which the task lease will expire. - * This value is 0 if the task isnt currently leased out to a worker. - */ - leaseTimestamp: string; - /** - * A bag of bytes which is the task payload. The payload on the JSON side is - * always Base64 encoded. - */ - payloadBase64: string; - /** - * Name of the queue that the task is in. - */ - queueName: string; - /** - * The number of leases applied to this task. - */ - retry_count: number; - /** - * Tag for the task, could be used later to lease tasks grouped by a - * specific tag. - */ - tag: string; - } - export interface Schema$TaskQueue { - /** - * ACLs that are applicable to this TaskQueue object. - */ - acl: any; - /** - * Name of the taskqueue. - */ - id: string; - /** - * The kind of REST object returned, in this case taskqueue. - */ - kind: string; - /** - * The number of times we should lease out tasks before giving up on them. - * If unset we lease them out forever until a worker deletes the task. - */ - maxLeases: number; - /** - * Statistics for the TaskQueue object in question. - */ - stats: any; - } - export interface Schema$Tasks { - /** - * The actual list of tasks returned as a result of the lease operation. - */ - items: Schema$Task[]; - /** - * The kind of object returned, a list of tasks. - */ - kind: string; - } - export interface Schema$Tasks2 { - /** - * The actual list of tasks currently active in the TaskQueue. - */ - items: Schema$Task[]; - /** - * The kind of object returned, a list of tasks. - */ - kind: string; - } - - export class Resource$Taskqueues { - root: Taskqueue; - constructor(root: Taskqueue) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * taskqueue.taskqueues.get - * @desc Get detailed information about a TaskQueue. - * @alias taskqueue.taskqueues.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {boolean=} params.getStats Whether to get stats. Optional. - * @param {string} params.project The project under which the queue lies. - * @param {string} params.taskqueue The id of the taskqueue to get the properties of. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'taskqueue'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } - - export class Resource$Tasks { - root: Taskqueue; - constructor(root: Taskqueue) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - - /** - * taskqueue.tasks.delete - * @desc Delete a task from a TaskQueue. - * @alias taskqueue.tasks.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies. - * @param {string} params.task The id of the task to delete. - * @param {string} params.taskqueue The taskqueue to delete a task from. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'task'], - pathParams: ['project', 'task', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.get - * @desc Get a particular task from a TaskQueue. - * @alias taskqueue.tasks.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies. - * @param {string} params.task The task to get properties of. - * @param {string} params.taskqueue The taskqueue in which the task belongs. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'task'], - pathParams: ['project', 'task', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.insert - * @desc Insert a new task in a TaskQueue - * @alias taskqueue.tasks.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies - * @param {string} params.taskqueue The taskqueue to insert the task into - * @param {().Task} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - insert(params?: any, options?: MethodOptions): AxiosPromise; - insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'taskqueue'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.lease - * @desc Lease 1 or more tasks from a TaskQueue. - * @alias taskqueue.tasks.lease - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {boolean=} params.groupByTag When true, all returned tasks will have the same tag - * @param {integer} params.leaseSecs The lease in seconds. - * @param {integer} params.numTasks The number of tasks to lease. - * @param {string} params.project The project under which the queue lies. - * @param {string=} params.tag The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, i.e. the first available tag - * @param {string} params.taskqueue The taskqueue to lease a task from. - * @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 - */ - lease(params?: any, options?: MethodOptions): AxiosPromise; - lease( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - lease( - 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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/lease') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'numTasks', 'leaseSecs'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.list - * @desc List Tasks in a TaskQueue - * @alias taskqueue.tasks.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.project The project under which the queue lies. - * @param {string} params.taskqueue The id of the taskqueue to list tasks from. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list(params?: any, options?: MethodOptions): AxiosPromise; - list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - list( - 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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['project', 'taskqueue'], - pathParams: ['project', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.patch - * @desc Update tasks that are leased out of a TaskQueue. This method - * supports patch semantics. - * @alias taskqueue.tasks.patch - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer} params.newLeaseSeconds The new lease in seconds. - * @param {string} params.project The project under which the queue lies. - * @param {string} params.task - * @param {string} params.taskqueue - * @param {().Task} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - patch(params?: any, options?: MethodOptions): AxiosPromise; - patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - patch( - 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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'task', 'newLeaseSeconds'], - pathParams: ['project', 'task', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - - - /** - * taskqueue.tasks.update - * @desc Update tasks that are leased out of a TaskQueue. - * @alias taskqueue.tasks.update - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer} params.newLeaseSeconds The new lease in seconds. - * @param {string} params.project The project under which the queue lies. - * @param {string} params.task - * @param {string} params.taskqueue - * @param {().Task} params.resource Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - update(params?: any, options?: MethodOptions): AxiosPromise; - update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - update( - 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 + - '/taskqueue/v1beta2/projects/{project}/taskqueues/{taskqueue}/tasks/{task}') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, - options), - params, - requiredParams: ['project', 'taskqueue', 'task', 'newLeaseSeconds'], - pathParams: ['project', 'task', 'taskqueue'], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } - } -} diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index cc0408c4908..11a4b58c2c3 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace tasks_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Tasks API * @@ -72,47 +75,47 @@ export namespace tasks_v1 { * Completion date of the task (as a RFC 3339 timestamp). This field is * omitted if the task has not been completed. */ - completed: string; + completed?: string; /** * Flag indicating whether the task has been deleted. The default if False. */ - deleted: boolean; + deleted?: boolean; /** * Due date of the task (as a RFC 3339 timestamp). Optional. */ - due: string; + due?: string; /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Flag indicating whether the task is hidden. This is the case if the task * had been marked completed when the task list was last cleared. The * default is False. This field is read-only. */ - hidden: boolean; + hidden?: boolean; /** * Task identifier. */ - id: string; + id?: string; /** * Type of the resource. This is always "tasks#task". */ - kind: string; + kind?: string; /** * Collection of links. This collection is read-only. */ - links: any[]; + links?: any[]; /** * Notes describing the task. Optional. */ - notes: string; + notes?: string; /** * Parent task identifier. This field is omitted if it is a top-level task. * This field is read-only. Use the "move" method to move the task * under a different parent or to the top level. */ - parent: string; + parent?: string; /** * String indicating the position of the task among its sibling tasks under * the same parent task or at the top level. If this string is greater than @@ -122,89 +125,90 @@ export namespace tasks_v1 { * read-only. Use the "move" method to move the task to another * position. */ - position: string; + position?: string; /** * URL pointing to this task. Used to retrieve, update, or delete this task. */ - selfLink: string; + selfLink?: string; /** * Status of the task. This is either "needsAction" or * "completed". */ - status: string; + status?: string; /** * Title of the task. */ - title: string; + title?: string; /** * Last modification time of the task (as a RFC 3339 timestamp). */ - updated: string; + updated?: string; } export interface Schema$TaskList { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Task list identifier. */ - id: string; + id?: string; /** * Type of the resource. This is always "tasks#taskList". */ - kind: string; + kind?: string; /** * URL pointing to this task list. Used to retrieve, update, or delete this * task list. */ - selfLink: string; + selfLink?: string; /** * Title of the task list. */ - title: string; + title?: string; /** * Last modification time of the task list (as a RFC 3339 timestamp). */ - updated: string; + updated?: string; } export interface Schema$TaskLists { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Collection of task lists. */ - items: Schema$TaskList[]; + items?: Schema$TaskList[]; /** * Type of the resource. This is always "tasks#taskLists". */ - kind: string; + kind?: string; /** * Token that can be used to request the next page of this result. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$Tasks { /** * ETag of the resource. */ - etag: string; + etag?: string; /** * Collection of tasks. */ - items: Schema$Task[]; + items?: Schema$Task[]; /** * Type of the resource. This is always "tasks#tasks". */ - kind: string; + kind?: string; /** * Token used to access the next page of this result. */ - nextPageToken: string; + nextPageToken?: string; } + export class Resource$Tasklists { root: Tasks; constructor(root: Tasks) { @@ -229,22 +233,35 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Tasklists$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasklists$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tasklists$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Tasklists$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasklists$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasklists$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -279,23 +296,33 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Tasklists$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Tasklists$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Tasklists$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Tasklists$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasklists$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasklists$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -331,26 +358,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Tasklists$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasklists$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tasklists$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Tasklists$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasklists$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasklists$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -386,25 +423,37 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Tasklists$List, options?: MethodOptions): + AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasklists$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tasklists$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Tasklists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasklists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasklists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -441,25 +490,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Tasklists$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Tasklists$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasklists$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tasklists$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasklists$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasklists$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -495,26 +555,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Tasklists$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasklists$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Tasklists$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tasklists$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasklists$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasklists$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -537,6 +607,82 @@ export namespace tasks_v1 { } } + export interface Params$Resource$Tasklists$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task list identifier. + */ + tasklist?: string; + } + export interface Params$Resource$Tasklists$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task list identifier. + */ + tasklist?: string; + } + export interface Params$Resource$Tasklists$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Tasklists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Maximum number of task lists returned on one page. Optional. The default + * is 100. + */ + maxResults?: string; + /** + * Token specifying the result page to return. Optional. + */ + pageToken?: string; + } + export interface Params$Resource$Tasklists$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task list identifier. + */ + tasklist?: string; + /** + * Request body metadata + */ + resource?: Schema$TaskList; + } + export interface Params$Resource$Tasklists$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task list identifier. + */ + tasklist?: string; + /** + * Request body metadata + */ + resource?: Schema$TaskList; + } + + export class Resource$Tasks { root: Tasks; constructor(root: Tasks) { @@ -563,22 +709,35 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - clear(params?: any, options?: MethodOptions): AxiosPromise; + clear(params?: Params$Resource$Tasks$Clear, options?: MethodOptions): + AxiosPromise; clear( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$Clear, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; clear( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tasks$Clear, + callback: BodyResponseCallback): void; + clear(callback: BodyResponseCallback): void; + clear( + paramsOrCallback?: Params$Resource$Tasks$Clear| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Clear; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Clear; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -614,22 +773,35 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Tasks$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Tasks$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tasks$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -665,21 +837,33 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Tasks$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Tasks$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Tasks$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Tasks$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -717,23 +901,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Tasks$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tasks$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Tasks$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -778,25 +975,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): AxiosPromise; + list(params?: Params$Resource$Tasks$List, options?: MethodOptions): + AxiosPromise; + list( + params: Params$Resource$Tasks$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tasks$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -836,23 +1044,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - move(params?: any, options?: MethodOptions): AxiosPromise; + move(params?: Params$Resource$Tasks$Move, options?: MethodOptions): + AxiosPromise; + move( + params: Params$Resource$Tasks$Move, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; move( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$Move, + callback: BodyResponseCallback): void; + move(callback: BodyResponseCallback): void; move( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tasks$Move| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Move; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Move; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -889,23 +1110,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; + patch(params?: Params$Resource$Tasks$Patch, options?: MethodOptions): + AxiosPromise; + patch( + params: Params$Resource$Tasks$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Tasks$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -942,23 +1176,36 @@ export namespace tasks_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Tasks$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Tasks$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Tasks$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Tasks$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Tasks$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Tasks$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -980,4 +1227,195 @@ export namespace tasks_v1 { } } } + + export interface Params$Resource$Tasks$Clear { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task list identifier. + */ + tasklist?: string; + } + export interface Params$Resource$Tasks$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task identifier. + */ + task?: string; + /** + * Task list identifier. + */ + tasklist?: string; + } + export interface Params$Resource$Tasks$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task identifier. + */ + task?: string; + /** + * Task list identifier. + */ + tasklist?: string; + } + export interface Params$Resource$Tasks$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Parent task identifier. If the task is created at the top level, this + * parameter is omitted. Optional. + */ + parent?: string; + /** + * Previous sibling task identifier. If the task is created at the first + * position among its siblings, this parameter is omitted. Optional. + */ + previous?: string; + /** + * Task list identifier. + */ + tasklist?: string; + /** + * Request body metadata + */ + resource?: Schema$Task; + } + export interface Params$Resource$Tasks$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Upper bound for a task's completion date (as a RFC 3339 timestamp) to + * filter by. Optional. The default is not to filter by completion date. + */ + completedMax?: string; + /** + * Lower bound for a task's completion date (as a RFC 3339 timestamp) to + * filter by. Optional. The default is not to filter by completion date. + */ + completedMin?: string; + /** + * Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. + * Optional. The default is not to filter by due date. + */ + dueMax?: string; + /** + * Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. + * Optional. The default is not to filter by due date. + */ + dueMin?: string; + /** + * Maximum number of task lists returned on one page. Optional. The default + * is 100. + */ + maxResults?: string; + /** + * Token specifying the result page to return. Optional. + */ + pageToken?: string; + /** + * Flag indicating whether completed tasks are returned in the result. + * Optional. The default is True. + */ + showCompleted?: boolean; + /** + * Flag indicating whether deleted tasks are returned in the result. + * Optional. The default is False. + */ + showDeleted?: boolean; + /** + * Flag indicating whether hidden tasks are returned in the result. + * Optional. The default is False. + */ + showHidden?: boolean; + /** + * Task list identifier. + */ + tasklist?: string; + /** + * Lower bound for a task's last modification time (as a RFC 3339 timestamp) + * to filter by. Optional. The default is not to filter by last modification + * time. + */ + updatedMin?: string; + } + export interface Params$Resource$Tasks$Move { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * New parent task identifier. If the task is moved to the top level, this + * parameter is omitted. Optional. + */ + parent?: string; + /** + * New previous sibling task identifier. If the task is moved to the first + * position among its siblings, this parameter is omitted. Optional. + */ + previous?: string; + /** + * Task identifier. + */ + task?: string; + /** + * Task list identifier. + */ + tasklist?: string; + } + export interface Params$Resource$Tasks$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task identifier. + */ + task?: string; + /** + * Task list identifier. + */ + tasklist?: string; + /** + * Request body metadata + */ + resource?: Schema$Task; + } + export interface Params$Resource$Tasks$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Task identifier. + */ + task?: string; + /** + * Task list identifier. + */ + tasklist?: string; + /** + * Request body metadata + */ + resource?: Schema$Task; + } } diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 7b986bebe88..884f67d16dc 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace testing_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Testing API * @@ -78,7 +81,7 @@ export namespace testing_v1 { /** * An automatic google login account */ - googleAuto: Schema$GoogleAuto; + googleAuto?: Schema$GoogleAuto; } /** * A single Android device. @@ -88,22 +91,22 @@ export namespace testing_v1 { * The id of the Android device to be used. Use the * EnvironmentDiscoveryService to get supported options. Required */ - androidModelId: string; + androidModelId?: string; /** * The id of the Android OS version to be used. Use the * EnvironmentDiscoveryService to get supported options. Required */ - androidVersionId: string; + androidVersionId?: string; /** * The locale the test device used for testing. Use the * EnvironmentDiscoveryService to get supported options. Required */ - locale: string; + locale?: string; /** * How the device is oriented during the test. Use the * EnvironmentDiscoveryService to get supported options. Required */ - orientation: string; + orientation?: string; } /** * The currently supported Android devices. @@ -112,15 +115,15 @@ export namespace testing_v1 { /** * The set of supported Android device models. @OutputOnly */ - models: Schema$AndroidModel[]; + models?: Schema$AndroidModel[]; /** * The set of supported runtime configurations. @OutputOnly */ - runtimeConfiguration: Schema$AndroidRuntimeConfiguration; + runtimeConfiguration?: Schema$AndroidRuntimeConfiguration; /** * The set of supported Android OS versions. @OutputOnly */ - versions: Schema$AndroidVersion[]; + versions?: Schema$AndroidVersion[]; } /** * A list of Android device configurations in which the test is to be @@ -130,7 +133,7 @@ export namespace testing_v1 { /** * A list of Android devices Required */ - androidDevices: Schema$AndroidDevice[]; + androidDevices?: Schema$AndroidDevice[]; } /** * A test of an Android application that can control an Android component @@ -146,12 +149,12 @@ export namespace testing_v1 { /** * The APK for the application under test. Required */ - appApk: Schema$FileReference; + appApk?: Schema$FileReference; /** * The java package for the application under test. Optional, default is * determined by examining the application's manifest. */ - appPackageId: string; + appPackageId?: string; /** * The option of whether running each test within its own invocation of * instrumentation with Android Test Orchestrator or not. ** Orchestrator is @@ -162,21 +165,21 @@ export namespace testing_v1 { * for more information about Android Test Orchestrator. Optional, if * empty, test will be run without orchestrator. */ - orchestratorOption: string; + orchestratorOption?: string; /** * The APK containing the test code to be executed. Required */ - testApk: Schema$FileReference; + testApk?: Schema$FileReference; /** * The java package for the test to be executed. Optional, default is * determined by examining the application's manifest. */ - testPackageId: string; + testPackageId?: string; /** * The InstrumentationTestRunner class. Optional, default is determined by * examining the application's manifest. */ - testRunnerClass: string; + testRunnerClass?: string; /** * Each target must be fully qualified with the package name or class name, * in one of these formats: - "package package_name" - @@ -184,7 +187,7 @@ export namespace testing_v1 { * package_name.class_name#method_name" Optional, if empty, all * targets in the module will be run. */ - testTargets: string[]; + testTargets?: string[]; } /** * A set of Android device configuration permutations is defined by the the @@ -198,22 +201,22 @@ export namespace testing_v1 { * The ids of the set of Android device to be used. Use the * EnvironmentDiscoveryService to get supported options. Required */ - androidModelIds: string[]; + androidModelIds?: string[]; /** * The ids of the set of Android OS version to be used. Use the * EnvironmentDiscoveryService to get supported options. Required */ - androidVersionIds: string[]; + androidVersionIds?: string[]; /** * The set of locales the test device will enable for testing. Use the * EnvironmentDiscoveryService to get supported options. Required */ - locales: string[]; + locales?: string[]; /** * The set of orientations to test with. Use the EnvironmentDiscoveryService * to get supported options. Required */ - orientations: string[]; + orientations?: string[]; } /** * A description of an Android device tests may be run on. @@ -223,43 +226,43 @@ export namespace testing_v1 { * The company that this device is branded with. Example: * "Google", "Samsung" @OutputOnly */ - brand: string; + brand?: string; /** * The name of the industrial design. This corresponds to * android.os.Build.DEVICE @OutputOnly */ - codename: string; + codename?: string; /** * Whether this device is virtual or physical. @OutputOnly */ - form: string; + form?: string; /** * The unique opaque id for this model. Use this for invoking the * TestExecutionService. @OutputOnly */ - id: string; + id?: string; /** * The manufacturer of this device. @OutputOnly */ - manufacturer: string; + manufacturer?: string; /** * The human-readable marketing name for this device model. Examples: * "Nexus 5", "Galaxy S5" @OutputOnly */ - name: string; + name?: string; /** * Screen density in DPI. This corresponds to ro.sf.lcd_density @OutputOnly */ - screenDensity: number; + screenDensity?: number; /** * Screen size in the horizontal (X) dimension measured in pixels. * @OutputOnly */ - screenX: number; + screenX?: number; /** * Screen size in the vertical (Y) dimension measured in pixels. @OutputOnly */ - screenY: number; + screenY?: number; /** * The list of supported ABIs for this device. This corresponds to either * android.os.Build.SUPPORTED_ABIS (for API level 21 and above) or @@ -269,21 +272,21 @@ export namespace testing_v1 { * AndroidVersion), denoting an ABI that is supported only on a particular * version. @OutputOnly */ - supportedAbis: string[]; + supportedAbis?: string[]; /** * The set of Android versions this device supports. @OutputOnly */ - supportedVersionIds: string[]; + supportedVersionIds?: string[]; /** * Tags for this dimension. Examples: "default", * "preview", "deprecated" */ - tags: string[]; + tags?: string[]; /** * True if and only if tests with this model DO NOT have video output. See * also TestSpecification.disable_video_recording @OutputOnly */ - videoRecordingNotSupported: boolean; + videoRecordingNotSupported?: boolean; } /** * A test of an android application that explores the application on a virtual @@ -293,44 +296,44 @@ export namespace testing_v1 { /** * The APK for the application under test. Required */ - appApk: Schema$FileReference; + appApk?: Schema$FileReference; /** * The initial activity that should be used to start the app. Optional */ - appInitialActivity: string; + appInitialActivity?: string; /** * The java package for the application under test. Optional, default is * determined by examining the application's manifest. */ - appPackageId: string; + appPackageId?: string; /** * The max depth of the traversal stack Robo can explore. Needs to be at * least 2 to make Robo explore the app beyond the first activity. Default * is 50. Optional */ - maxDepth: number; + maxDepth?: number; /** * The max number of steps Robo can execute. Default is no limit. Optional */ - maxSteps: number; + maxSteps?: number; /** * A set of directives Robo should apply during the crawl. This allows users * to customize the crawl. For example, the username and password for a test * account can be provided. Optional */ - roboDirectives: Schema$RoboDirective[]; + roboDirectives?: Schema$RoboDirective[]; /** * A JSON file with a sequence of actions Robo should perform as a prologue * for the crawl. Optional */ - roboScript: Schema$FileReference; + roboScript?: Schema$FileReference; /** * The intents used to launch the app for the crawl. If none are provided, * then the main launcher activity is launched. If some are provided, then * only those provided are launched (the main launcher activity must be * provided explicitly). */ - startingIntents: Schema$RoboStartingIntent[]; + startingIntents?: Schema$RoboStartingIntent[]; } /** * Configuration that can be selected at the time a test is run. @@ -339,11 +342,11 @@ export namespace testing_v1 { /** * The set of available locales. @OutputOnly */ - locales: Schema$Locale[]; + locales?: Schema$Locale[]; /** * The set of available orientations. @OutputOnly */ - orientations: Schema$Orientation[]; + orientations?: Schema$Orientation[]; } /** * A test of an Android Application with a Test Loop. The intent @@ -354,12 +357,12 @@ export namespace testing_v1 { /** * The APK for the application under test. Required */ - appApk: Schema$FileReference; + appApk?: Schema$FileReference; /** * The java package for the application under test. Optional, default is * determined by examining the application's manifest. */ - appPackageId: string; + appPackageId?: string; /** * The list of scenario labels that should be run during the test. The * scenario labels should map to labels defined in the application's @@ -369,12 +372,12 @@ export namespace testing_v1 { * execution. Optional. Scenarios can also be specified in the scenarios * field. */ - scenarioLabels: string[]; + scenarioLabels?: string[]; /** * The list of scenarios that should be run during the test. Optional, * default is all test loops, derived from the application's manifest. */ - scenarios: number[]; + scenarios?: number[]; } /** * A version of the Android OS @@ -383,35 +386,35 @@ export namespace testing_v1 { /** * The API level for this Android version. Examples: 18, 19 @OutputOnly */ - apiLevel: number; + apiLevel?: number; /** * The code name for this Android version. Examples: "JellyBean", * "KitKat" @OutputOnly */ - codeName: string; + codeName?: string; /** * Market share for this version. @OutputOnly */ - distribution: Schema$Distribution; + distribution?: Schema$Distribution; /** * An opaque id for this Android version. Use this id to invoke the * TestExecutionService. @OutputOnly */ - id: string; + id?: string; /** * The date this Android version became available in the market. @OutputOnly */ - releaseDate: Schema$Date; + releaseDate?: Schema$Date; /** * Tags for this dimension. Examples: "default", * "preview", "deprecated" */ - tags: string[]; + tags?: string[]; /** * A string representing this version of the Android OS. Examples: * "4.3", "4.4" @OutputOnly */ - versionString: string; + versionString?: string; } /** * An Android package file to install. @@ -421,18 +424,18 @@ export namespace testing_v1 { * The path to an APK to be installed on the device before the test begins. * Optional */ - location: Schema$FileReference; + location?: Schema$FileReference; /** * The java package for the APK to be installed. Optional, value is * determined by examining the application's manifest. */ - packageName: string; + packageName?: string; } /** * Android application details based on application manifest and apk archive * contents */ - export interface Schema$ApkDetail { apkManifest: Schema$ApkManifest; } + export interface Schema$ApkDetail { apkManifest?: Schema$ApkManifest; } /** * An Android app manifest. See * http://developer.android.com/guide/topics/manifest/manifest-intro.html @@ -441,21 +444,21 @@ export namespace testing_v1 { /** * User-readable name for the application. */ - applicationLabel: string; - intentFilters: Schema$IntentFilter[]; + applicationLabel?: string; + intentFilters?: Schema$IntentFilter[]; /** * Maximum API level on which the application is designed to run. */ - maxSdkVersion: number; + maxSdkVersion?: number; /** * Minimum API level required for the application to run. */ - minSdkVersion: number; + minSdkVersion?: number; /** * Full Java-style package name for this application, e.g. * "com.example.foo". */ - packageName: string; + packageName?: string; } /** * Response containing the current state of the specified test matrix. @@ -465,7 +468,7 @@ export namespace testing_v1 { * The current rolled-up state of the test matrix. If this state is already * final, then the cancelation request will have no effect. */ - testState: string; + testState?: string; } /** * Information about the client which invoked the test. @@ -474,11 +477,11 @@ export namespace testing_v1 { /** * The list of detailed information about client. */ - clientInfoDetails: Schema$ClientInfoDetail[]; + clientInfoDetails?: Schema$ClientInfoDetail[]; /** * Client name, such as gcloud. Required */ - name: string; + name?: string; } /** * Key-value pair of detailed information about the client which invoked the @@ -489,11 +492,11 @@ export namespace testing_v1 { /** * The key of detailed client information. Required */ - key: string; + key?: string; /** * The value of detailed client information. Required */ - value: string; + value?: string; } /** * Represents a whole calendar date, e.g. date of birth. The time of day and @@ -509,17 +512,17 @@ export namespace testing_v1 { * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year/month where the day is not significant. */ - day: number; + day?: number; /** * Month of year. Must be from 1 to 12, or 0 if specifying a date without a * month. */ - month: number; + month?: number; /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a * year. */ - year: number; + year?: number; } /** * A single device file description. @@ -528,11 +531,11 @@ export namespace testing_v1 { /** * A reference to an opaque binary blob file */ - obbFile: Schema$ObbFile; + obbFile?: Schema$ObbFile; /** * A reference to a regular file */ - regularFile: Schema$RegularFile; + regularFile?: Schema$RegularFile; } /** * Data about the relative number of devices running a given configuration of @@ -543,11 +546,11 @@ export namespace testing_v1 { * The estimated fraction (0-1) of the total market with this configuration. * @OutputOnly */ - marketShare: number; + marketShare?: number; /** * The time this distribution was measured. @OutputOnly */ - measurementTime: string; + measurementTime?: string; } /** * The environment in which the test is run. @@ -556,7 +559,7 @@ export namespace testing_v1 { /** * An Android device which must be used with an Android test. */ - androidDevice: Schema$AndroidDevice; + androidDevice?: Schema$AndroidDevice; } /** * The matrix of environments in which the test is to be executed. @@ -566,11 +569,11 @@ export namespace testing_v1 { * A list of Android devices; the test will be run only on the specified * devices. */ - androidDeviceList: Schema$AndroidDeviceList; + androidDeviceList?: Schema$AndroidDeviceList; /** * A matrix of Android devices. */ - androidMatrix: Schema$AndroidMatrix; + androidMatrix?: Schema$AndroidMatrix; } /** * A key-value pair passed as an environment variable to the test @@ -579,11 +582,11 @@ export namespace testing_v1 { /** * Key for the environment variable */ - key: string; + key?: string; /** * Value for the environment variable */ - value: string; + value?: string; } /** * A reference to a file, used for user inputs. @@ -593,7 +596,7 @@ export namespace testing_v1 { * A path to a file in Google Cloud Storage. Example: * gs://build-app-1414623860166/app-debug-unaligned.apk */ - gcsPath: string; + gcsPath?: string; } /** * Response containing the details of the specified Android application APK. @@ -602,7 +605,7 @@ export namespace testing_v1 { /** * Details of the Android APK. */ - apkDetail: Schema$ApkDetail; + apkDetail?: Schema$ApkDetail; } /** * Enables automatic Google account login. If set, the service will @@ -622,7 +625,7 @@ export namespace testing_v1 { * for this test. The requesting user must have write access on the bucket * in the supplied path. Required */ - gcsPath: string; + gcsPath?: string; } /** * The <intent-filter> section of an <activity> tag. @@ -632,15 +635,15 @@ export namespace testing_v1 { /** * The android:name value of the <action> tag */ - actionNames: string[]; + actionNames?: string[]; /** * The android:name value of the <category> tag */ - categoryNames: string[]; + categoryNames?: string[]; /** * The android:mimeType value of the <data> tag */ - mimeType: string; + mimeType?: string; } /** * Specifies an intent that starts the main launcher activity. @@ -653,38 +656,38 @@ export namespace testing_v1 { /** * The id for this locale. Example: "en_US" @OutputOnly */ - id: string; + id?: string; /** * A human-friendly name for this language/locale. Example: * "English" @OutputOnly */ - name: string; + name?: string; /** * A human-friendly string representing the region for this locale. Example: * "United States" Not present for every locale. @OutputOnly */ - region: string; + region?: string; /** * Tags for this dimension. Examples: "default" */ - tags: string[]; + tags?: string[]; } export interface Schema$NetworkConfiguration { /** * The emulation rule applying to the download traffic */ - downRule: Schema$TrafficRule; + downRule?: Schema$TrafficRule; /** * The unique opaque id for this network traffic configuration @OutputOnly */ - id: string; + id?: string; /** * The emulation rule applying to the upload traffic */ - upRule: Schema$TrafficRule; + upRule?: Schema$TrafficRule; } export interface Schema$NetworkConfigurationCatalog { - configurations: Schema$NetworkConfiguration[]; + configurations?: Schema$NetworkConfiguration[]; } /** * An opaque binary blob file to install on the device before the test starts @@ -693,14 +696,14 @@ export namespace testing_v1 { /** * Opaque Binary Blob (OBB) file(s) to install on the device Required */ - obb: Schema$FileReference; + obb?: Schema$FileReference; /** * OBB file name which must conform to the format as specified by Android * e.g. [main|patch].0300110.com.example.android.obb which will be installed * into <shared-storage>/Android/obb/<package-name>/ on the * device Required */ - obbFileName: string; + obbFileName?: string; } /** * Screen orientation of the device. @@ -709,16 +712,16 @@ export namespace testing_v1 { /** * The id for this orientation. Example: "portrait" @OutputOnly */ - id: string; + id?: string; /** * A human-friendly name for this orientation. Example: "portrait" * @OutputOnly */ - name: string; + name?: string; /** * Tags for this dimension. Examples: "default" */ - tags: string[]; + tags?: string[]; } /** * A file or directory to install on the device before the test starts @@ -727,7 +730,7 @@ export namespace testing_v1 { /** * Required */ - content: Schema$FileReference; + content?: Schema$FileReference; /** * Where to put the content on the device. Must be an absolute, whitelisted * path. If the file exists, it will be replaced. The following device-side @@ -744,7 +747,7 @@ export namespace testing_v1 { * Environment API</a> in app and test code to access files on the * device in a portable way. Required */ - devicePath: string; + devicePath?: string; } /** * Locations where the results of running the test are stored. @@ -753,17 +756,17 @@ export namespace testing_v1 { /** * Required. */ - googleCloudStorage: Schema$GoogleCloudStorage; + googleCloudStorage?: Schema$GoogleCloudStorage; /** * The tool results execution that results are written to. @OutputOnly */ - toolResultsExecution: Schema$ToolResultsExecution; + toolResultsExecution?: Schema$ToolResultsExecution; /** * The tool results history that contains the tool results execution that * results are written to. Optional, if not provided the service will * choose an appropriate value. */ - toolResultsHistory: Schema$ToolResultsHistory; + toolResultsHistory?: Schema$ToolResultsHistory; } /** * Directs Robo to interact with a specific UI element if it is encountered @@ -774,12 +777,12 @@ export namespace testing_v1 { * The type of action that Robo should perform on the specified element. * Required. */ - actionType: string; + actionType?: string; /** * The text that Robo is directed to set. If left empty, the directive will * be treated as a CLICK on the element matching the resource_name. Optional */ - inputText: string; + inputText?: string; /** * The android resource name of the target UI element For example, in * Java: R.string.foo in xml: @string/foo Only the “foo” part is needed. @@ -787,14 +790,14 @@ export namespace testing_v1 { * https://developer.android.com/guide/topics/resources/accessing-resources.html * Required */ - resourceName: string; + resourceName?: string; } /** * Message for specifying the start activities to crawl */ export interface Schema$RoboStartingIntent { - launcherActivity: Schema$LauncherActivityIntent; - startActivity: Schema$StartActivityIntent; + launcherActivity?: Schema$LauncherActivityIntent; + startActivity?: Schema$StartActivityIntent; } /** * A starting intent specified by an action, uri, and categories. @@ -803,15 +806,15 @@ export namespace testing_v1 { /** * Action name. Required for START_ACTIVITY. */ - action: string; + action?: string; /** * Intent categories to set on the intent. Optional. */ - categories: string[]; + categories?: string[]; /** * URI for the action. Optional. */ - uri: string; + uri?: string; } /** * Additional details about the progress of the running test. @@ -821,20 +824,20 @@ export namespace testing_v1 { * If the TestState is ERROR, then this string will contain human-readable * details about the error. @OutputOnly */ - errorMessage: string; + errorMessage?: string; /** * Human-readable, detailed descriptions of the test's progress. For * example: "Provisioning a device", "Starting Test". * During the course of execution new data may be appended to the end of * progress_messages. @OutputOnly */ - progressMessages: string[]; + progressMessages?: string[]; /** * Indicates that video will not be recorded for this execution either * because the user chose to disable it or the device does not support it. * See AndroidModel.video_recording_not_supported @OutputOnly */ - videoRecordingDisabled: boolean; + videoRecordingDisabled?: boolean; } /** * A description of a test environment. @@ -843,11 +846,11 @@ export namespace testing_v1 { /** * Android devices suitable for running Android Instrumentation Tests. */ - androidDeviceCatalog: Schema$AndroidDeviceCatalog; + androidDeviceCatalog?: Schema$AndroidDeviceCatalog; /** * Supported network configurations */ - networkConfigurationCatalog: Schema$NetworkConfigurationCatalog; + networkConfigurationCatalog?: Schema$NetworkConfigurationCatalog; } /** * Specifies a single test to be executed in a single environment. @@ -856,40 +859,40 @@ export namespace testing_v1 { /** * How the host machine(s) are configured. @OutputOnly */ - environment: Schema$Environment; + environment?: Schema$Environment; /** * Unique id set by the backend. @OutputOnly */ - id: string; + id?: string; /** * Id of the containing TestMatrix. @OutputOnly */ - matrixId: string; + matrixId?: string; /** * The cloud project that owns the test execution. @OutputOnly */ - projectId: string; + projectId?: string; /** * Indicates the current progress of the test execution (e.g., FINISHED). * @OutputOnly */ - state: string; + state?: string; /** * Additional details about the running test. @OutputOnly */ - testDetails: Schema$TestDetails; + testDetails?: Schema$TestDetails; /** * How to run the test. @OutputOnly */ - testSpecification: Schema$TestSpecification; + testSpecification?: Schema$TestSpecification; /** * The time this test execution was initially created. @OutputOnly */ - timestamp: string; + timestamp?: string; /** * Where the results for this execution are written. @OutputOnly */ - toolResultsStep: Schema$ToolResultsStep; + toolResultsStep?: Schema$ToolResultsStep; } /** * A group of one or more TestExecutions, built by taking a product of values @@ -899,46 +902,46 @@ export namespace testing_v1 { /** * Information about the client which invoked the test. Optional */ - clientInfo: Schema$ClientInfo; + clientInfo?: Schema$ClientInfo; /** * How the host machine(s) are configured. Required */ - environmentMatrix: Schema$EnvironmentMatrix; + environmentMatrix?: Schema$EnvironmentMatrix; /** * Describes why the matrix is considered invalid. Only useful for matrices * in the INVALID state. @OutputOnly */ - invalidMatrixDetails: string; + invalidMatrixDetails?: string; /** * The cloud project that owns the test matrix. @OutputOnly */ - projectId: string; + projectId?: string; /** * Where the results for the matrix are written. Required */ - resultStorage: Schema$ResultStorage; + resultStorage?: Schema$ResultStorage; /** * Indicates the current progress of the test matrix (e.g., FINISHED) * @OutputOnly */ - state: string; + state?: string; /** * The list of test executions that the service creates for this matrix. * @OutputOnly */ - testExecutions: Schema$TestExecution[]; + testExecutions?: Schema$TestExecution[]; /** * Unique id set by the service. @OutputOnly */ - testMatrixId: string; + testMatrixId?: string; /** * How to run the test. Required */ - testSpecification: Schema$TestSpecification; + testSpecification?: Schema$TestSpecification; /** * The time this test matrix was initially created. @OutputOnly */ - timestamp: string; + timestamp?: string; } /** * A description of how to set up the Android device prior to running the @@ -949,12 +952,12 @@ export namespace testing_v1 { * The device will be logged in on this account for the duration of the * test. Optional */ - account: Schema$Account; + account?: Schema$Account; /** * APKs to install in addition to those being directly tested. Currently * capped at 100. Optional */ - additionalApks: Schema$Apk[]; + additionalApks?: Schema$Apk[]; /** * List of directories on the device to upload to GCS at the end of the * test; they must be absolute paths under /sdcard or /data/local/tmp. Path @@ -964,20 +967,20 @@ export namespace testing_v1 { * to external storage, the system will replace it with the external storage * path prefix for that device. Optional */ - directoriesToPull: string[]; + directoriesToPull?: string[]; /** * Environment variables to set for the test (only applicable for * instrumentation tests). */ - environmentVariables: Schema$EnvironmentVariable[]; + environmentVariables?: Schema$EnvironmentVariable[]; /** * List of files to push to the device before starting the test. Optional */ - filesToPush: Schema$DeviceFile[]; + filesToPush?: Schema$DeviceFile[]; /** * The network traffic profile used for running the test. Optional */ - networkProfile: string; + networkProfile?: string; } /** * A description of how to run the test. @@ -986,15 +989,15 @@ export namespace testing_v1 { /** * An Android instrumentation test. */ - androidInstrumentationTest: Schema$AndroidInstrumentationTest; + androidInstrumentationTest?: Schema$AndroidInstrumentationTest; /** * An Android robo test. */ - androidRoboTest: Schema$AndroidRoboTest; + androidRoboTest?: Schema$AndroidRoboTest; /** * An Android Application with a Test Loop */ - androidTestLoop: Schema$AndroidTestLoop; + androidTestLoop?: Schema$AndroidTestLoop; /** * Enables automatic Google account login. If set, the service will * automatically generate a Google test account and add it to the device, @@ -1003,25 +1006,25 @@ export namespace testing_v1 { * present on the device. Logging into the device with these generated * accounts allows testing more functionalities. Default is false. Optional */ - autoGoogleLogin: boolean; + autoGoogleLogin?: boolean; /** * Disables performance metrics recording; may reduce test latency. */ - disablePerformanceMetrics: boolean; + disablePerformanceMetrics?: boolean; /** * Disables video recording; may reduce test latency. */ - disableVideoRecording: boolean; + disableVideoRecording?: boolean; /** * Test setup requirements for Android e.g. files to install, bootstrap * scripts. Optional */ - testSetup: Schema$TestSetup; + testSetup?: Schema$TestSetup; /** * Max time a test execution is allowed to run before it is automatically * cancelled. Optional, default is 5 min. */ - testTimeout: string; + testTimeout?: string; } /** * Represents a tool results execution resource. This has the results of a @@ -1031,15 +1034,15 @@ export namespace testing_v1 { /** * A tool results execution ID. @OutputOnly */ - executionId: string; + executionId?: string; /** * A tool results history ID. @OutputOnly */ - historyId: string; + historyId?: string; /** * The cloud project that owns the tool results execution. @OutputOnly */ - projectId: string; + projectId?: string; } /** * Represents a tool results history resource. @@ -1048,11 +1051,11 @@ export namespace testing_v1 { /** * A tool results history ID. Required */ - historyId: string; + historyId?: string; /** * The cloud project that owns the tool results history. Required */ - projectId: string; + projectId?: string; } /** * Represents a tool results step resource. This has the results of a @@ -1062,19 +1065,19 @@ export namespace testing_v1 { /** * A tool results execution ID. @OutputOnly */ - executionId: string; + executionId?: string; /** * A tool results history ID. @OutputOnly */ - historyId: string; + historyId?: string; /** * The cloud project that owns the tool results step. @OutputOnly */ - projectId: string; + projectId?: string; /** * A tool results step ID. @OutputOnly */ - stepId: string; + stepId?: string; } /** * Network emulation parameters @@ -1083,25 +1086,26 @@ export namespace testing_v1 { /** * Bandwidth in kbits/second */ - bandwidth: number; + bandwidth?: number; /** * Burst size in kbits */ - burst: number; + burst?: number; /** * Packet delay, must be >= 0 */ - delay: string; + delay?: string; /** * Packet duplication ratio (0.0 - 1.0) */ - packetDuplicationRatio: number; + packetDuplicationRatio?: number; /** * Packet loss ratio (0.0 - 1.0) */ - packetLossRatio: number; + packetLossRatio?: number; } + export class Resource$Applicationdetailservice { root: Testing; constructor(root: Testing) { @@ -1126,28 +1130,42 @@ export namespace testing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getApkDetails(params?: any, options?: MethodOptions): - AxiosPromise; getApkDetails( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Applicationdetailservice$Getapkdetails, + options?: MethodOptions): AxiosPromise; + getApkDetails( + params: Params$Resource$Applicationdetailservice$Getapkdetails, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; getApkDetails( - params?: any, - options?: MethodOptions| + params: Params$Resource$Applicationdetailservice$Getapkdetails, + callback: BodyResponseCallback): void; + getApkDetails(callback: BodyResponseCallback): + void; + getApkDetails( + paramsOrCallback?: + Params$Resource$Applicationdetailservice$Getapkdetails| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Applicationdetailservice$Getapkdetails; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Applicationdetailservice$Getapkdetails; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign( @@ -1170,6 +1188,19 @@ export namespace testing_v1 { } } + export interface Params$Resource$Applicationdetailservice$Getapkdetails { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$FileReference; + } + + export class Resource$Projects { root: Testing; testMatrices: Resource$Projects$Testmatrices; @@ -1183,6 +1214,8 @@ export namespace testing_v1 { return this.root; } } + + export class Resource$Projects$Testmatrices { root: Testing; constructor(root: Testing) { @@ -1213,28 +1246,41 @@ export namespace testing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): - AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Testmatrices$Cancel, + options?: MethodOptions): AxiosPromise; + cancel( + params: Params$Resource$Projects$Testmatrices$Cancel, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Testmatrices$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): + void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Testmatrices$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Testmatrices$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Testmatrices$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign( @@ -1279,26 +1325,39 @@ export namespace testing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Testmatrices$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Testmatrices$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Testmatrices$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Testmatrices$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Testmatrices$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Testmatrices$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign( @@ -1337,23 +1396,35 @@ export namespace testing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Testmatrices$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Testmatrices$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Testmatrices$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Testmatrices$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Testmatrices$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Testmatrices$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign( @@ -1377,6 +1448,59 @@ export namespace testing_v1 { } } + export interface Params$Resource$Projects$Testmatrices$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud project that owns the test. + */ + projectId?: string; + /** + * Test matrix that will be canceled. + */ + testMatrixId?: string; + } + export interface Params$Resource$Projects$Testmatrices$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The GCE project under which this job will run. + */ + projectId?: string; + /** + * A string id used to detect duplicated requests. Ids are automatically + * scoped to a project, so users should ensure the ID is unique per-project. + * A UUID is recommended. Optional, but strongly recommended. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$TestMatrix; + } + export interface Params$Resource$Projects$Testmatrices$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Cloud project that owns the test matrix. + */ + projectId?: string; + /** + * Unique test matrix id which was assigned by the service. + */ + testMatrixId?: string; + } + + export class Resource$Testenvironmentcatalog { root: Testing; @@ -1406,26 +1530,36 @@ export namespace testing_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Testenvironmentcatalog$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Testenvironmentcatalog$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + get(params: Params$Resource$Testenvironmentcatalog$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Testenvironmentcatalog$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Testenvironmentcatalog$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Testenvironmentcatalog$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; const parameters = { options: Object.assign( @@ -1447,4 +1581,21 @@ export namespace testing_v1 { } } } + + export interface Params$Resource$Testenvironmentcatalog$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The type of environment that should be listed. Required + */ + environmentType?: string; + /** + * For authorization, the cloud project requesting the + * TestEnvironmentCatalog. Optional + */ + projectId?: string; + } } diff --git a/src/apis/texttospeech/v1beta1.ts b/src/apis/texttospeech/v1beta1.ts index 43fa2df0db3..621e07153be 100644 --- a/src/apis/texttospeech/v1beta1.ts +++ b/src/apis/texttospeech/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace texttospeech_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Text-to-Speech API * @@ -75,13 +78,13 @@ export namespace texttospeech_v1beta1 { /** * Required. The format of the requested audio byte stream. */ - audioEncoding: string; + audioEncoding?: string; /** * Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 * semitones from the original pitch. -20 means decrease 20 semitones from * the original pitch. */ - pitch: number; + pitch?: number; /** * The synthesis sample rate (in hertz) for this audio. Optional. If this * is different from the voice's natural sample rate, then the @@ -90,14 +93,14 @@ export namespace texttospeech_v1beta1 { * sample rate is not supported for the encoding chosen, in which case it * will fail the request and return google.rpc.Code.INVALID_ARGUMENT. */ - sampleRateHertz: number; + sampleRateHertz?: number; /** * Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal * native speed supported by the specific voice. 2.0 is twice as fast, and * 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any * other values < 0.25 or > 4.0 will return an error. */ - speakingRate: number; + speakingRate?: number; /** * Optional volume gain (in dB) of the normal native volume supported by the * specific voice, in the range [-96.0, 16.0]. If unset, or set to a value @@ -108,7 +111,7 @@ export namespace texttospeech_v1beta1 { * not to exceed +10 (dB) as there's usually no effective increase in * loudness for any value greater than that. */ - volumeGainDb: number; + volumeGainDb?: number; } /** * The message returned to the client by the `ListVoices` method. @@ -117,7 +120,7 @@ export namespace texttospeech_v1beta1 { /** * The list of voices. */ - voices: Schema$Voice[]; + voices?: Schema$Voice[]; } /** * Contains text input to be synthesized. Either `text` or `ssml` must be @@ -132,11 +135,11 @@ export namespace texttospeech_v1beta1 { * google.rpc.Code.INVALID_ARGUMENT. For more information, see * [SSML](/speech/text-to-speech/docs/ssml). */ - ssml: string; + ssml?: string; /** * The raw text to be synthesized. */ - text: string; + text?: string; } /** * The top-level message sent by the client for the `SynthesizeSpeech` method. @@ -145,15 +148,15 @@ export namespace texttospeech_v1beta1 { /** * Required. The configuration of the synthesized audio. */ - audioConfig: Schema$AudioConfig; + audioConfig?: Schema$AudioConfig; /** * Required. The Synthesizer requires either plain text or SSML as input. */ - input: Schema$SynthesisInput; + input?: Schema$SynthesisInput; /** * Required. The desired voice of the synthesized audio. */ - voice: Schema$VoiceSelectionParams; + voice?: Schema$VoiceSelectionParams; } /** * The message returned to the client by the `SynthesizeSpeech` method. @@ -165,7 +168,7 @@ export namespace texttospeech_v1beta1 { * bytes fields, protobuffers use a pure binary representation, whereas JSON * representations use base64. */ - audioContent: string; + audioContent?: string; } /** * Description of a voice supported by the TTS service. @@ -176,19 +179,19 @@ export namespace texttospeech_v1beta1 { * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags * (e.g. "en-US", "es-419", "cmn-tw"). */ - languageCodes: string[]; + languageCodes?: string[]; /** * The name of this voice. Each distinct voice has a unique name. */ - name: string; + name?: string; /** * The natural sample rate (in hertz) for this voice. */ - naturalSampleRateHertz: number; + naturalSampleRateHertz?: number; /** * The gender of this voice. */ - ssmlGender: string; + ssmlGender?: string; } /** * Description of which voice to use for a synthesis request. @@ -208,12 +211,12 @@ export namespace texttospeech_v1beta1 { * "nb" (Norwegian Bokmal) instead of "no" * (Norwegian)". */ - languageCode: string; + languageCode?: string; /** * The name of the voice. Optional; if not set, the service will choose a * voice based on the other parameters such as language_code and gender. */ - name: string; + name?: string; /** * The preferred gender of the voice. Optional; if not set, the service will * choose a voice based on the other parameters such as language_code and @@ -222,9 +225,10 @@ export namespace texttospeech_v1beta1 { * substitute a voice with a different gender rather than failing the * request. */ - ssmlGender: string; + ssmlGender?: string; } + export class Resource$Text { root: Texttospeech; constructor(root: Texttospeech) { @@ -250,28 +254,40 @@ export namespace texttospeech_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - synthesize(params?: any, options?: MethodOptions): - AxiosPromise; synthesize( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Text$Synthesize, + options?: MethodOptions): AxiosPromise; + synthesize( + params: Params$Resource$Text$Synthesize, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + synthesize( + params: Params$Resource$Text$Synthesize, + callback: BodyResponseCallback): void; + synthesize(callback: BodyResponseCallback): + void; synthesize( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Text$Synthesize| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Text$Synthesize; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Text$Synthesize; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign( @@ -294,6 +310,19 @@ export namespace texttospeech_v1beta1 { } } + export interface Params$Resource$Text$Synthesize { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$SynthesizeSpeechRequest; + } + + export class Resource$Voices { root: Texttospeech; constructor(root: Texttospeech) { @@ -318,26 +347,37 @@ export namespace texttospeech_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Voices$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Voices$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Voices$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Voices$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Voices$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Voices$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; const parameters = { options: Object.assign( @@ -358,4 +398,23 @@ export namespace texttospeech_v1beta1 { } } } + + export interface Params$Resource$Voices$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Optional (but recommended) + * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If + * specified, the ListVoices call will only return voices that can be used + * to synthesize this language_code. E.g. when specifying "en-NZ", you will + * get supported "en-*" voices; when specifying "no", you will get supported + * "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh" + * will also get supported "cmn-*" voices; specifying "zh-hk" will also get + * supported "yue-*" voices. + */ + languageCode?: string; + } } diff --git a/src/apis/toolresults/v1beta3.ts b/src/apis/toolresults/v1beta3.ts index a6e1ff64747..809be504546 100644 --- a/src/apis/toolresults/v1beta3.ts +++ b/src/apis/toolresults/v1beta3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace toolresults_v1beta3 { + export interface Options extends GlobalOptions { version: 'v1beta3'; } + /** * Cloud Tool Results API * @@ -72,19 +75,19 @@ export namespace toolresults_v1beta3 { /** * The name of the app. Optional */ - name: string; + name?: string; /** * The package name of the app. Required. */ - packageName: string; + packageName?: string; /** * The internal version code of the app. Optional. */ - versionCode: string; + versionCode?: string; /** * The version name of the app. Optional. */ - versionName: string; + versionName?: string; } /** * A test of an Android application that can control an Android component @@ -95,11 +98,11 @@ export namespace toolresults_v1beta3 { /** * The java package for the test to be executed. Required */ - testPackageId: string; + testPackageId?: string; /** * The InstrumentationTestRunner class. Required */ - testRunnerClass: string; + testRunnerClass?: string; /** * Each target must be fully qualified with the package name or class name, * in one of these formats: - "package package_name" - "class @@ -107,12 +110,12 @@ export namespace toolresults_v1beta3 { * package_name.class_name#method_name" If empty, all targets in the * module will be run. */ - testTargets: string[]; + testTargets?: string[]; /** * The flag indicates whether Android Test Orchestrator will be used to run * test or not. */ - useOrchestrator: boolean; + useOrchestrator?: boolean; } /** * A test of an android application that explores the application on a virtual @@ -122,24 +125,24 @@ export namespace toolresults_v1beta3 { /** * The initial activity that should be used to start the app. Optional */ - appInitialActivity: string; + appInitialActivity?: string; /** * The java package for the bootstrap. Optional */ - bootstrapPackageId: string; + bootstrapPackageId?: string; /** * The runner class for the bootstrap. Optional */ - bootstrapRunnerClass: string; + bootstrapRunnerClass?: string; /** * The max depth of the traversal stack Robo can explore. Optional */ - maxDepth: number; + maxDepth?: number; /** * The max number of steps/actions Robo can execute. Default is no limit * (0). Optional */ - maxSteps: number; + maxSteps?: number; } /** * An Android mobile test specification. @@ -148,19 +151,19 @@ export namespace toolresults_v1beta3 { /** * Information about the application under test. */ - androidAppInfo: Schema$AndroidAppInfo; + androidAppInfo?: Schema$AndroidAppInfo; /** * An Android instrumentation test. */ - androidInstrumentationTest: Schema$AndroidInstrumentationTest; + androidInstrumentationTest?: Schema$AndroidInstrumentationTest; /** * An Android robo test. */ - androidRoboTest: Schema$AndroidRoboTest; + androidRoboTest?: Schema$AndroidRoboTest; /** * Max time a test is allowed to run before it is automatically cancelled. */ - testTimeout: Schema$Duration; + testTimeout?: Schema$Duration; } /** * `Any` contains an arbitrary serialized protocol buffer message along with a @@ -215,11 +218,11 @@ export namespace toolresults_v1beta3 { * type.googleapis.com. Schemes other than `http`, `https` (or the empty * scheme) might be used with implementation specific semantics. */ - typeUrl: string; + typeUrl?: string; /** * Must be a valid serialized protocol buffer of the above specified type. */ - value: string; + value?: string; } export interface Schema$AppStartTime { /** @@ -228,22 +231,22 @@ export namespace toolresults_v1beta3 { * call to Activity.reportFullyDrawn(). See * https://developer.android.com/topic/performance/launch-time.html#time-full */ - fullyDrawnTime: Schema$Duration; + fullyDrawnTime?: Schema$Duration; /** * The time from app start to the first displayed activity being drawn, as * reported in Logcat. See * https://developer.android.com/topic/performance/launch-time.html#time-initial */ - initialDisplayTime: Schema$Duration; + initialDisplayTime?: Schema$Duration; } /** * Encapsulates the metadata for basic sample series represented by a line * chart */ export interface Schema$BasicPerfSampleSeries { - perfMetricType: string; - perfUnit: string; - sampleSeriesLabel: string; + perfMetricType?: string; + perfUnit?: string; + sampleSeriesLabel?: string; } /** * The request must provide up to a maximum of 5000 samples to be created; a @@ -253,25 +256,25 @@ export namespace toolresults_v1beta3 { /** * The set of PerfSamples to create should not include existing timestamps */ - perfSamples: Schema$PerfSample[]; + perfSamples?: Schema$PerfSample[]; } export interface Schema$BatchCreatePerfSamplesResponse { - perfSamples: Schema$PerfSample[]; + perfSamples?: Schema$PerfSample[]; } export interface Schema$CPUInfo { /** * description of the device processor ie '1.8 GHz hexa core 64-bit * ARMv8-A' */ - cpuProcessor: string; + cpuProcessor?: string; /** * the CPU clock speed in GHz */ - cpuSpeedInGhz: number; + cpuSpeedInGhz?: number; /** * the number of CPU cores */ - numberOfCores: number; + numberOfCores?: number; } /** * A Duration represents a signed, fixed-length span of time represented as a @@ -311,13 +314,13 @@ export namespace toolresults_v1beta3 { * same sign as the `seconds` field. Must be from -999,999,999 to * +999,999,999 inclusive. */ - nanos: number; + nanos?: number; /** * Signed seconds of the span of time. Must be from -315,576,000,000 to * +315,576,000,000 inclusive. Note: these bounds are computed from: 60 * sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years */ - seconds: string; + seconds?: string; } /** * An Execution represents a collection of Steps. For instance, it could @@ -333,30 +336,30 @@ export namespace toolresults_v1beta3 { * response: set if the execution state is COMPLETE. - In create/update * request: never set */ - completionTime: Schema$Timestamp; + completionTime?: Schema$Timestamp; /** * The time when the Execution was created. This value will be set * automatically when CreateExecution is called. - In response: always set * - In create/update request: never set */ - creationTime: Schema$Timestamp; + creationTime?: Schema$Timestamp; /** * A unique identifier within a History for this Execution. Returns * INVALID_ARGUMENT if this field is set or overwritten by the caller. - In * response always set - In create/update request: never set */ - executionId: string; + executionId?: string; /** * Classify the result, for example into SUCCESS or FAILURE - In response: * present if set by create/update request - In create/update request: * optional */ - outcome: Schema$Outcome; + outcome?: Schema$Outcome; /** * Lightweight information about execution request. - In response: present * if set by create - In create: optional - In update: optional */ - specification: Schema$Specification; + specification?: Schema$Specification; /** * The initial state is IN_PROGRESS. The only legal state transitions is * from IN_PROGRESS to COMPLETE. A PRECONDITION_FAILED will be returned if @@ -367,37 +370,37 @@ export namespace toolresults_v1beta3 { * outcome of the step is not set, the outcome will be set to INCONCLUSIVE. * - In response always set - In create/update request: optional */ - state: string; + state?: string; /** * TestExecution Matrix ID that the TestExecutionService uses. - In * response: present if set by create - In create: optional - In update: * never set */ - testExecutionMatrixId: string; + testExecutionMatrixId?: string; } export interface Schema$FailureDetail { /** * If the failure was severe because the system (app) under test crashed. */ - crashed: boolean; + crashed?: boolean; /** * If an app is not installed and thus no test can be run with the app. This * might be caused by trying to run a test on an unsupported platform. */ - notInstalled: boolean; + notInstalled?: boolean; /** * If a native process (including any other than the app) crashed. */ - otherNativeCrash: boolean; + otherNativeCrash?: boolean; /** * If the test overran some time limit, and that is why it failed. */ - timedOut: boolean; + timedOut?: boolean; /** * If the robo was unable to crawl the app; perhaps because the app did not * start. */ - unableToCrawl: boolean; + unableToCrawl?: boolean; } /** * A reference to a file. @@ -411,7 +414,7 @@ export namespace toolresults_v1beta3 { * error will be returned if the URI format is not supported. - In * response: always set - In create/update request: always set */ - fileUri: string; + fileUri?: string; } /** * Graphics statistics for the App. The information is collected from 'adb @@ -424,61 +427,61 @@ export namespace toolresults_v1beta3 { * Histogram of frame render times. There should be 154 buckets ranging from * [5ms, 6ms) to [4950ms, infinity) */ - buckets: Schema$GraphicsStatsBucket[]; + buckets?: Schema$GraphicsStatsBucket[]; /** * Total "high input latency" events. */ - highInputLatencyCount: string; + highInputLatencyCount?: string; /** * Total frames with slow render time. Should be <= total_frames. */ - jankyFrames: string; + jankyFrames?: string; /** * Total "missed vsync" events. */ - missedVsyncCount: string; + missedVsyncCount?: string; /** * 50th percentile frame render time in milliseconds. */ - p50Millis: string; + p50Millis?: string; /** * 90th percentile frame render time in milliseconds. */ - p90Millis: string; + p90Millis?: string; /** * 95th percentile frame render time in milliseconds. */ - p95Millis: string; + p95Millis?: string; /** * 99th percentile frame render time in milliseconds. */ - p99Millis: string; + p99Millis?: string; /** * Total "slow bitmap upload" events. */ - slowBitmapUploadCount: string; + slowBitmapUploadCount?: string; /** * Total "slow draw" events. */ - slowDrawCount: string; + slowDrawCount?: string; /** * Total "slow UI thread" events. */ - slowUiThreadCount: string; + slowUiThreadCount?: string; /** * Total frames rendered by package. */ - totalFrames: string; + totalFrames?: string; } export interface Schema$GraphicsStatsBucket { /** * Number of frames in the bucket. */ - frameCount: string; + frameCount?: string; /** * Lower bound of render time in milliseconds. */ - renderMillis: string; + renderMillis?: string; } /** * A History represents a sorted list of Executions ordered by the @@ -494,18 +497,18 @@ export namespace toolresults_v1beta3 { * 100 characters. - In response: present if set during create. - In create * request: optional */ - displayName: string; + displayName?: string; /** * A unique identifier within a project for this History. Returns * INVALID_ARGUMENT if this field is set or overwritten by the caller. - In * response always set - In create request: never set */ - historyId: string; + historyId?: string; /** * A name to uniquely identify a history within a project. Maximum of 200 * characters. - In response always set - In create request: always set */ - name: string; + name?: string; } /** * An image, with a link to the main image and a thumbnail. @@ -514,20 +517,20 @@ export namespace toolresults_v1beta3 { /** * An error explaining why the thumbnail could not be rendered. */ - error: Schema$Status; + error?: Schema$Status; /** * A reference to the full-size, original image. This is the same as the * tool_outputs entry for the image under its Step. Always set. */ - sourceImage: Schema$ToolOutputReference; + sourceImage?: Schema$ToolOutputReference; /** * The step to which the image is attached. Always set. */ - stepId: string; + stepId?: string; /** * The thumbnail. */ - thumbnail: Schema$Thumbnail; + thumbnail?: Schema$Thumbnail; } export interface Schema$InconclusiveDetail { /** @@ -535,25 +538,25 @@ export namespace toolresults_v1beta3 { * determined. For example, the user pressed ctrl-c which sent a kill signal * to the test runner while the test was running. */ - abortedByUser: boolean; + abortedByUser?: boolean; /** * If the test runner could not determine success or failure because the * test depends on a component other than the system under test which * failed. For example, a mobile test requires provisioning a device where * the test executes, and that provisioning can fail. */ - infrastructureFailure: boolean; + infrastructureFailure?: boolean; } export interface Schema$ListExecutionsResponse { /** * Executions. Always set. */ - executions: Schema$Execution[]; + executions?: Schema$Execution[]; /** * A continuation token to resume the query at the next item. Will only be * set if there are more Executions to fetch. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for HistoryService.List @@ -562,7 +565,7 @@ export namespace toolresults_v1beta3 { /** * Histories. */ - histories: Schema$History[]; + histories?: Schema$History[]; /** * A continuation token to resume the query at the next item. Will only be * set if there are more histories to fetch. Tokens are valid for up to one @@ -571,13 +574,13 @@ export namespace toolresults_v1beta3 { * later, the token from this second response will only be valid for 50 * minutes. */ - nextPageToken: string; + nextPageToken?: string; } export interface Schema$ListPerfSampleSeriesResponse { /** * The resulting PerfSampleSeries sorted by id */ - perfSampleSeries: Schema$PerfSampleSeries[]; + perfSampleSeries?: Schema$PerfSampleSeries[]; } export interface Schema$ListPerfSamplesResponse { /** @@ -585,14 +588,14 @@ export namespace toolresults_v1beta3 { * request (or the default page size, 500, if unspecified). It indicates the * last sample timestamp to be used as page_token in subsequent request */ - nextPageToken: string; - perfSamples: Schema$PerfSample[]; + nextPageToken?: string; + perfSamples?: Schema$PerfSample[]; } export interface Schema$ListScreenshotClustersResponse { /** * The set of clusters associated with an execution Always set */ - clusters: Schema$ScreenshotCluster[]; + clusters?: Schema$ScreenshotCluster[]; } /** * Response message for StepService.List. @@ -603,11 +606,11 @@ export namespace toolresults_v1beta3 { * indicates that there are more steps to read, by calling list again with * this value in the page_token field. */ - nextPageToken: string; + nextPageToken?: string; /** * Steps. */ - steps: Schema$Step[]; + steps?: Schema$Step[]; } /** * A response containing the thumbnails in a step. @@ -618,7 +621,7 @@ export namespace toolresults_v1beta3 { * indicates that there are more thumbnails to read, by calling list again * with this value in the page_token field. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of image data. Images are returned in a deterministic order; they * are ordered by these factors, in order of importance: * First, by their @@ -627,17 +630,17 @@ export namespace toolresults_v1beta3 { * creation time are greater than images with one. * Third, by the order in * which they were added to the step (by calls to CreateStep or UpdateStep). */ - thumbnails: Schema$Image[]; + thumbnails?: Schema$Image[]; } export interface Schema$MemoryInfo { /** * Maximum memory that can be allocated to the process in KiB */ - memoryCapInKibibyte: string; + memoryCapInKibibyte?: string; /** * Total memory available on the device in KiB */ - memoryTotalInKibibyte: string; + memoryTotalInKibibyte?: string; } /** * Interprets a result so that humans and machines can act on it. @@ -647,26 +650,26 @@ export namespace toolresults_v1beta3 { * More information about a FAILURE outcome. Returns INVALID_ARGUMENT if * this field is set but the summary is not FAILURE. Optional */ - failureDetail: Schema$FailureDetail; + failureDetail?: Schema$FailureDetail; /** * More information about an INCONCLUSIVE outcome. Returns INVALID_ARGUMENT * if this field is set but the summary is not INCONCLUSIVE. Optional */ - inconclusiveDetail: Schema$InconclusiveDetail; + inconclusiveDetail?: Schema$InconclusiveDetail; /** * More information about a SKIPPED outcome. Returns INVALID_ARGUMENT if * this field is set but the summary is not SKIPPED. Optional */ - skippedDetail: Schema$SkippedDetail; + skippedDetail?: Schema$SkippedDetail; /** * More information about a SUCCESS outcome. Returns INVALID_ARGUMENT if * this field is set but the summary is not SUCCESS. Optional */ - successDetail: Schema$SuccessDetail; + successDetail?: Schema$SuccessDetail; /** * The simplest way to interpret a result. Required */ - summary: string; + summary?: string; } /** * Encapsulates performance environment info @@ -675,46 +678,46 @@ export namespace toolresults_v1beta3 { /** * CPU related environment info */ - cpuInfo: Schema$CPUInfo; + cpuInfo?: Schema$CPUInfo; /** * Memory related environment info */ - memoryInfo: Schema$MemoryInfo; + memoryInfo?: Schema$MemoryInfo; } /** * A summary of perf metrics collected and performance environment info */ export interface Schema$PerfMetricsSummary { - appStartTime: Schema$AppStartTime; + appStartTime?: Schema$AppStartTime; /** * A tool results execution ID. */ - executionId: string; + executionId?: string; /** * Graphics statistics for the entire run. Statistics are reset at the * beginning of the run and collected at the end of the run. */ - graphicsStats: Schema$GraphicsStats; + graphicsStats?: Schema$GraphicsStats; /** * A tool results history ID. */ - historyId: string; + historyId?: string; /** * Describes the environment in which the performance metrics were collected */ - perfEnvironment: Schema$PerfEnvironment; + perfEnvironment?: Schema$PerfEnvironment; /** * Set of resource collected */ - perfMetrics: string[]; + perfMetrics?: string[]; /** * The cloud project */ - projectId: string; + projectId?: string; /** * A tool results step ID. */ - stepId: string; + stepId?: string; } /** * Resource representing a single performance measure or data point @@ -723,11 +726,11 @@ export namespace toolresults_v1beta3 { /** * Timestamp of collection */ - sampleTime: Schema$Timestamp; + sampleTime?: Schema$Timestamp; /** * Value observed */ - value: number; + value?: number; } /** * Resource representing a collection of performance samples (or data points) @@ -736,27 +739,27 @@ export namespace toolresults_v1beta3 { /** * Basic series represented by a line chart */ - basicPerfSampleSeries: Schema$BasicPerfSampleSeries; + basicPerfSampleSeries?: Schema$BasicPerfSampleSeries; /** * A tool results execution ID. */ - executionId: string; + executionId?: string; /** * A tool results history ID. */ - historyId: string; + historyId?: string; /** * The cloud project */ - projectId: string; + projectId?: string; /** * A sample series id */ - sampleSeriesId: string; + sampleSeriesId?: string; /** * A tool results step ID. */ - stepId: string; + stepId?: string; } /** * Per-project settings for the Tool Results service. @@ -767,13 +770,13 @@ export namespace toolresults_v1beta3 { * By default, this is unset. In update request: optional In response: * optional */ - defaultBucket: string; + defaultBucket?: string; /** * The name of the project's settings. Always of the form: * projects/{project-id}/settings In update request: never set In response: * always set */ - name: string; + name?: string; } /** * Request message for StepService.PublishXunitXmlFiles. @@ -783,61 +786,61 @@ export namespace toolresults_v1beta3 { * URI of the Xunit XML files to publish. The maximum size of the file this * reference is pointing to is 50MB. Required. */ - xunitXmlFiles: Schema$FileReference[]; + xunitXmlFiles?: Schema$FileReference[]; } export interface Schema$Screen { /** * File reference of the png file. Required. */ - fileReference: string; + fileReference?: string; /** * Locale of the device that the screenshot was taken on. Required. */ - locale: string; + locale?: string; /** * Model of the device that the screenshot was taken on. Required. */ - model: string; + model?: string; /** * OS version of the device that the screenshot was taken on. Required. */ - version: string; + version?: string; } export interface Schema$ScreenshotCluster { /** * A string that describes the activity of every screen in the cluster. */ - activity: string; + activity?: string; /** * A unique identifier for the cluster. */ - clusterId: string; + clusterId?: string; /** * A singular screen that represents the cluster as a whole. This screen * will act as the "cover" of the entire cluster. When users look * at the clusters, only the key screen from each cluster will be shown. * Which screen is the key screen is determined by the ClusteringAlgorithm */ - keyScreen: Schema$Screen; + keyScreen?: Schema$Screen; /** * Full list of screens. */ - screens: Schema$Screen[]; + screens?: Schema$Screen[]; } export interface Schema$SkippedDetail { /** * If the App doesn't support the specific API level. */ - incompatibleAppVersion: boolean; + incompatibleAppVersion?: boolean; /** * If the App doesn't run on the specific architecture, for example, * x86. */ - incompatibleArchitecture: boolean; + incompatibleArchitecture?: boolean; /** * If the requested OS version doesn't run on the specific device model. */ - incompatibleDevice: boolean; + incompatibleDevice?: boolean; } /** * The details about how to run the execution. @@ -846,7 +849,7 @@ export namespace toolresults_v1beta3 { /** * An Android mobile test execution specification. */ - androidTest: Schema$AndroidTest; + androidTest?: Schema$AndroidTest; } /** * A stacktrace. @@ -855,15 +858,15 @@ export namespace toolresults_v1beta3 { /** * Exception cluster ID */ - clusterId: string; + clusterId?: string; /** * The stack trace message. Required */ - exception: string; + exception?: string; /** * Exception report ID */ - reportId: string; + reportId?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -905,18 +908,18 @@ export namespace toolresults_v1beta3 { /** * The status code, which should be an enum value of [google.rpc.Code][]. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. */ - details: Schema$Any[]; + details?: Schema$Any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * [google.rpc.Status.details][] field, or localized by the client. */ - message: string; + message?: string; } /** * A Step represents a single operation performed as part of Execution. A step @@ -939,18 +942,18 @@ export namespace toolresults_v1beta3 { * set automatically when state transitions to COMPLETE. - In response: set * if the execution state is COMPLETE. - In create/update request: never set */ - completionTime: Schema$Timestamp; + completionTime?: Schema$Timestamp; /** * The time when the step was created. - In response: always set - In * create/update request: never set */ - creationTime: Schema$Timestamp; + creationTime?: Schema$Timestamp; /** * A description of this tool For example: mvn clean package -D * skipTests=true - In response: present if set by create/update request - * In create/update request: optional */ - description: string; + description?: string; /** * How much the device resource is used to perform the test. This is the * device usage used for billing purpose, which is different from the @@ -960,7 +963,7 @@ export namespace toolresults_v1beta3 { * response: present if previously set. - In create request: optional - In * update request: optional */ - deviceUsageDuration: Schema$Duration; + deviceUsageDuration?: Schema$Duration; /** * If the execution containing this step has any dimension_definition set, * then this field allows the child to specify the values of the dimensions. @@ -984,13 +987,13 @@ export namespace toolresults_v1beta3 { * of the keys. - In response: present if set by create - In create * request: optional - In update request: never set */ - dimensionValue: Schema$StepDimensionValueEntry[]; + dimensionValue?: Schema$StepDimensionValueEntry[]; /** * Whether any of the outputs of this step are images whose thumbnails can * be fetched with ListThumbnails. - In response: always set - In * create/update request: never set */ - hasImages: boolean; + hasImages?: boolean; /** * Arbitrary user-supplied key/value pairs that are associated with the * step. Users are responsible for managing the key namespace such that @@ -1001,7 +1004,7 @@ export namespace toolresults_v1beta3 { * key/value pair will be added to the map, and any new value for an * existing key will update that key's value */ - labels: Schema$StepLabelsEntry[]; + labels?: Schema$StepLabelsEntry[]; /** * A short human-readable name to display in the UI. Maximum of 100 * characters. For example: Clean build A PRECONDITION_FAILED will be @@ -1012,13 +1015,13 @@ export namespace toolresults_v1beta3 { * platforms, the two steps should have the same name. - In response: * always set - In create request: always set - In update request: never set */ - name: string; + name?: string; /** * Classification of the result, for example into SUCCESS or FAILURE - In * response: present if set by create/update request - In create/update * request: optional */ - outcome: Schema$Outcome; + outcome?: Schema$Outcome; /** * How long it took for this step to run. If unset, this is set to the * difference between creation_time and completion_time when the step is set @@ -1031,7 +1034,7 @@ export namespace toolresults_v1beta3 { * present if previously set; always present on COMPLETE step - In create * request: optional - In update request: optional */ - runDuration: Schema$Duration; + runDuration?: Schema$Duration; /** * The initial state is IN_PROGRESS. The only legal state transitions are * * IN_PROGRESS -> COMPLETE A PRECONDITION_FAILED will be returned if an @@ -1041,35 +1044,35 @@ export namespace toolresults_v1beta3 { * multiple times. - In response: always set - In create/update request: * optional */ - state: string; + state?: string; /** * A unique identifier within a Execution for this Step. Returns * INVALID_ARGUMENT if this field is set or overwritten by the caller. - In * response: always set - In create/update request: never set */ - stepId: string; + stepId?: string; /** * An execution of a test runner. */ - testExecutionStep: Schema$TestExecutionStep; + testExecutionStep?: Schema$TestExecutionStep; /** * An execution of a tool (used for steps we don't explicitly support). */ - toolExecutionStep: Schema$ToolExecutionStep; + toolExecutionStep?: Schema$ToolExecutionStep; } export interface Schema$StepDimensionValueEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$StepLabelsEntry { - key: string; - value: string; + key?: string; + value?: string; } export interface Schema$SuccessDetail { /** * If a native process other than the app crashed. */ - otherNativeCrash: boolean; + otherNativeCrash?: boolean; } /** * A reference to a test case. Test case references are canonically ordered @@ -1080,15 +1083,15 @@ export namespace toolresults_v1beta3 { /** * The name of the class. */ - className: string; + className?: string; /** * The name of the test case. Required. */ - name: string; + name?: string; /** * The name of the test suite to which this test case belongs. */ - testSuiteName: string; + testSuiteName?: string; } /** * A step that represents running tests. It accepts ant-junit xml files which @@ -1104,7 +1107,7 @@ export namespace toolresults_v1beta3 { * trace content can be recorded here to assist debugging. - In response: * present if set by create or update - In create/update request: optional */ - testIssues: Schema$TestIssue[]; + testIssues?: Schema$TestIssue[]; /** * List of test suite overview contents. This could be parsed from xUnit XML * log by server, or uploaded directly by user. This references should only @@ -1113,18 +1116,18 @@ export namespace toolresults_v1beta3 { * always set - In create request: optional - In update request: never (use * publishXunitXmlFiles custom method instead) */ - testSuiteOverviews: Schema$TestSuiteOverview[]; + testSuiteOverviews?: Schema$TestSuiteOverview[]; /** * The timing break down of the test execution. - In response: present if * set by create or update - In create/update request: optional */ - testTiming: Schema$TestTiming; + testTiming?: Schema$TestTiming; /** * Represents the execution of the test runner. The exit code of this tool * will be used to determine if the test passed. - In response: always set * - In create/update request: optional */ - toolExecution: Schema$ToolExecution; + toolExecution?: Schema$ToolExecution; } /** * An issue detected occurring during a test execution. @@ -1133,24 +1136,24 @@ export namespace toolresults_v1beta3 { /** * A brief human-readable message describing the issue. Required. */ - errorMessage: string; + errorMessage?: string; /** * Severity of issue. Required. */ - severity: string; + severity?: string; /** * Deprecated in favor of stack trace fields inside specific warnings. */ - stackTrace: Schema$StackTrace; + stackTrace?: Schema$StackTrace; /** * Type of issue. Required. */ - type: string; + type?: string; /** * Warning message with additional details of the issue. Should always be a * message from com.google.devtools.toolresults.v1.warnings */ - warning: Schema$Any; + warning?: Schema$Any; } /** * A summary of a test suite result either parsed from XML or uploaded @@ -1164,35 +1167,35 @@ export namespace toolresults_v1beta3 { * the xml_source. - In create/response: always set - In update request: * never */ - errorCount: number; + errorCount?: number; /** * Number of failed test cases, typically set by the service by parsing the * xml_source. May also be set by the user. - In create/response: always * set - In update request: never */ - failureCount: number; + failureCount?: number; /** * The name of the test suite. - In create/response: always set - In update * request: never */ - name: string; + name?: string; /** * Number of test cases not run, typically set by the service by parsing the * xml_source. - In create/response: always set - In update request: never */ - skippedCount: number; + skippedCount?: number; /** * Number of test cases, typically set by the service by parsing the * xml_source. - In create/response: always set - In update request: never */ - totalCount: number; + totalCount?: number; /** * If this test suite was parsed from XML, this is the URI where the * original XML file is stored. Note: Multiple test suites can share the * same xml_source Returns INVALID_ARGUMENT if the uri format is not * supported. - In create/response: optional - In update request: never */ - xmlSource: Schema$FileReference; + xmlSource?: Schema$FileReference; } /** * Testing timing break down to know phases. @@ -1202,7 +1205,7 @@ export namespace toolresults_v1beta3 { * How long it took to run the test process. - In response: present if * previously set. - In create/update request: optional */ - testProcessDuration: Schema$Duration; + testProcessDuration?: Schema$Duration; } /** * A single thumbnail, with its size and format. @@ -1212,21 +1215,21 @@ export namespace toolresults_v1beta3 { * The thumbnail's content type, i.e. "image/png". Always * set. */ - contentType: string; + contentType?: string; /** * The thumbnail file itself. That is, the bytes here are precisely the * bytes that make up the thumbnail file; they can be served as an image * as-is (with the appropriate content type.) Always set. */ - data: string; + data?: string; /** * The height of the thumbnail, in pixels. Always set. */ - heightPx: number; + heightPx?: number; /** * The width of the thumbnail, in pixels. Always set. */ - widthPx: number; + widthPx?: number; } /** * A Timestamp represents a point in time independent of any time zone or @@ -1285,12 +1288,12 @@ export namespace toolresults_v1beta3 { * second values with fractions must still have non-negative nanos values * that count forward in time. Must be from 0 to 999,999,999 inclusive. */ - nanos: number; + nanos?: number; /** * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. * Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. */ - seconds: string; + seconds?: string; } /** * An execution of an arbitrary tool. It could be a test runner or a tool @@ -1302,7 +1305,7 @@ export namespace toolresults_v1beta3 { * argv in a C program). - In response: present if set by create request - * In create request: optional - In update request: never set */ - commandLineArguments: string[]; + commandLineArguments?: string[]; /** * Tool execution exit code. This field will be set once the tool has * exited. - In response: present if set by create/update request - In @@ -1310,7 +1313,7 @@ export namespace toolresults_v1beta3 { * FAILED_PRECONDITION error will be returned if an exit_code is already * set. */ - exitCode: Schema$ToolExitCode; + exitCode?: Schema$ToolExitCode; /** * References to any plain text logs output the tool execution. This field * can be set before the tool has exited in order to be able to have access @@ -1320,7 +1323,7 @@ export namespace toolresults_v1beta3 { * request: optional, any value provided will be appended to the existing * list */ - toolLogs: Schema$FileReference[]; + toolLogs?: Schema$FileReference[]; /** * References to opaque files of any format output by the tool execution. * The maximum allowed number of tool outputs per step is 1000. - In @@ -1328,7 +1331,7 @@ export namespace toolresults_v1beta3 { * optional - In update request: optional, any value provided will be * appended to the existing list */ - toolOutputs: Schema$ToolOutputReference[]; + toolOutputs?: Schema$ToolOutputReference[]; } /** * Generic tool step to be used for binaries we do not explicitly support. For @@ -1339,7 +1342,7 @@ export namespace toolresults_v1beta3 { * A Tool execution. - In response: present if set by create/update request * - In create/update request: optional */ - toolExecution: Schema$ToolExecution; + toolExecution?: Schema$ToolExecution; } /** * Exit code from a tool execution. @@ -1350,7 +1353,7 @@ export namespace toolresults_v1beta3 { * successful. - In response: always set - In create/update request: always * set */ - number: number; + number?: number; } /** * A reference to a ToolExecution output file. @@ -1360,19 +1363,20 @@ export namespace toolresults_v1beta3 { * The creation time of the file. - In response: present if set by * create/update request - In create/update request: optional */ - creationTime: Schema$Timestamp; + creationTime?: Schema$Timestamp; /** * A FileReference to an output file. - In response: always set - In * create/update request: always set */ - output: Schema$FileReference; + output?: Schema$FileReference; /** * The test case to which this output file belongs. - In response: present * if set by create/update request - In create/update request: optional */ - testCase: Schema$TestCaseReference; + testCase?: Schema$TestCaseReference; } + export class Resource$Projects { root: Toolresults; histories: Resource$Projects$Histories; @@ -1401,26 +1405,39 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getSettings(params?: any, options?: MethodOptions): - AxiosPromise; getSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Getsettings, + options?: MethodOptions): AxiosPromise; + getSettings( + params: Params$Resource$Projects$Getsettings, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getSettings( + params: Params$Resource$Projects$Getsettings, + callback: BodyResponseCallback): void; + getSettings(callback: BodyResponseCallback): void; getSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Getsettings| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Getsettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Getsettings; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1475,26 +1492,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - initializeSettings(params?: any, options?: MethodOptions): - AxiosPromise; initializeSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Initializesettings, + options?: MethodOptions): AxiosPromise; initializeSettings( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Initializesettings, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + initializeSettings( + params: Params$Resource$Projects$Initializesettings, + callback: BodyResponseCallback): void; + initializeSettings(callback: BodyResponseCallback): + void; + initializeSettings( + paramsOrCallback?: Params$Resource$Projects$Initializesettings| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Initializesettings; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Initializesettings; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1518,6 +1549,30 @@ export namespace toolresults_v1beta3 { } } } + + export interface Params$Resource$Projects$Getsettings { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Project id. Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Initializesettings { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Project id. Required. + */ + projectId?: string; + } + export class Resource$Projects$Histories { root: Toolresults; executions: Resource$Projects$Histories$Executions; @@ -1550,25 +1605,38 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Histories$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Histories$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Histories$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Histories$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Histories$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1608,23 +1676,34 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Histories$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Histories$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Histories$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Histories$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Histories$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1669,28 +1748,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Histories$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Histories$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Histories$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Histories$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Histories$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1713,6 +1804,68 @@ export namespace toolresults_v1beta3 { } } } + + export interface Params$Resource$Projects$Histories$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A unique request ID for server to detect duplicated requests. For + * example, a UUID. Optional, but strongly recommended. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$History; + } + export interface Params$Resource$Projects$Histories$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Histories$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set, only return histories with the given name. Optional. + */ + filterByName?: string; + /** + * The maximum number of Histories to fetch. Default value: 20. The server + * will use this default if the field is not set or has a value of 0. Any + * value greater than 100 will be treated as 100. Optional. + */ + pageSize?: number; + /** + * A continuation token to resume the query at the next item. Optional. + */ + pageToken?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + export class Resource$Projects$Histories$Executions { root: Toolresults; clusters: Resource$Projects$Histories$Executions$Clusters; @@ -1748,26 +1901,39 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Histories$Executions$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Histories$Executions$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Histories$Executions$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Histories$Executions$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Executions$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1809,23 +1975,35 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Histories$Executions$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Histories$Executions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Histories$Executions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Histories$Executions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Executions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1870,28 +2048,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Histories$Executions$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Histories$Executions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Histories$Executions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Histories$Executions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Executions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1937,26 +2127,39 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Histories$Executions$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Histories$Executions$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Histories$Executions$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Histories$Executions$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Executions$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1980,6 +2183,104 @@ export namespace toolresults_v1beta3 { } } } + + export interface Params$Resource$Projects$Histories$Executions$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A unique request ID for server to detect duplicated requests. For + * example, a UUID. Optional, but strongly recommended. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Execution; + } + export interface Params$Resource$Projects$Histories$Executions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A History id. Required. + */ + historyId?: string; + /** + * The maximum number of Executions to fetch. Default value: 25. The server + * will use this default if the field is not set or has a value of 0. + * Optional. + */ + pageSize?: number; + /** + * A continuation token to resume the query at the next item. Optional. + */ + pageToken?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. + */ + executionId?: string; + /** + * Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A unique request ID for server to detect duplicated requests. For + * example, a UUID. Optional, but strongly recommended. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Execution; + } + export class Resource$Projects$Histories$Executions$Clusters { root: Toolresults; constructor(root: Toolresults) { @@ -2007,24 +2308,37 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Histories$Executions$Clusters$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Histories$Executions$Clusters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Histories$Executions$Clusters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Clusters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Clusters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Clusters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2069,29 +2383,46 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Histories$Executions$Clusters$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Histories$Executions$Clusters$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Projects$Histories$Executions$Clusters$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Clusters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Clusters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Clusters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2118,6 +2449,50 @@ export namespace toolresults_v1beta3 { } } + export interface Params$Resource$Projects$Histories$Executions$Clusters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Cluster id Required. + */ + clusterId?: string; + /** + * An Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$Clusters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + + export class Resource$Projects$Histories$Executions$Steps { root: Toolresults; perfMetricsSummary: @@ -2164,23 +2539,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Histories$Executions$Steps$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Histories$Executions$Steps$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Histories$Executions$Steps$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2223,21 +2615,35 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Histories$Executions$Steps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Histories$Executions$Steps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Histories$Executions$Steps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Executions$Steps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2280,26 +2686,45 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getPerfMetricsSummary(params?: any, options?: MethodOptions): - AxiosPromise; getPerfMetricsSummary( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary, + options?: MethodOptions): AxiosPromise; + getPerfMetricsSummary( + params: + Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getPerfMetricsSummary( + params: + Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary, + callback: BodyResponseCallback): void; getPerfMetricsSummary( - params?: any, - options?: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + getPerfMetricsSummary( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2347,26 +2772,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Histories$Executions$Steps$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Histories$Executions$Steps$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Histories$Executions$Steps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Histories$Executions$Steps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2414,23 +2853,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): AxiosPromise; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Histories$Executions$Steps$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Histories$Executions$Steps$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Histories$Executions$Steps$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2477,24 +2933,43 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - publishXunitXmlFiles(params?: any, options?: MethodOptions): - AxiosPromise; publishXunitXmlFiles( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles, + options?: MethodOptions): AxiosPromise; + publishXunitXmlFiles( + params: + Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; publishXunitXmlFiles( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles, + callback: BodyResponseCallback): void; + publishXunitXmlFiles(callback: BodyResponseCallback): void; + publishXunitXmlFiles( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2518,6 +2993,169 @@ export namespace toolresults_v1beta3 { } } } + + export interface Params$Resource$Projects$Histories$Executions$Steps$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A unique request ID for server to detect duplicated requests. For + * example, a UUID. Optional, but strongly recommended. + */ + requestId?: string; + /** + * Request body metadata + */ + resource?: Schema$Step; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A Step id. Required. + */ + stepId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Getperfmetricssummary { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * The maximum number of Steps to fetch. Default value: 25. The server will + * use this default if the field is not set or has a value of 0. Optional. + */ + pageSize?: number; + /** + * A continuation token to resume the query at the next item. Optional. + */ + pageToken?: string; + /** + * A Project id. Required. + */ + projectId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A unique request ID for server to detect duplicated requests. For + * example, a UUID. Optional, but strongly recommended. + */ + requestId?: string; + /** + * A Step id. Required. + */ + stepId?: string; + /** + * Request body metadata + */ + resource?: Schema$Step; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Publishxunitxmlfiles { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A Step id. Note: This step must include a TestExecutionStep. Required. + */ + stepId?: string; + /** + * Request body metadata + */ + resource?: Schema$PublishXunitXmlFilesRequest; + } + export class Resource$Projects$Histories$Executions$Steps$Perfmetricssummary { root: Toolresults; constructor(root: Toolresults) { @@ -2549,26 +3187,44 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2593,6 +3249,35 @@ export namespace toolresults_v1beta3 { } } + export interface Params$Resource$Projects$Histories$Executions$Steps$Perfmetricssummary$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + /** + * Request body metadata + */ + resource?: Schema$PerfMetricsSummary; + } + + export class Resource$Projects$Histories$Executions$Steps$Perfsampleseries { root: Toolresults; samples: @@ -2629,26 +3314,44 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create, + options?: MethodOptions): AxiosPromise; + create( + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2691,24 +3394,40 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2758,29 +3477,49 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2806,6 +3545,90 @@ export namespace toolresults_v1beta3 { } } } + + export interface Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + /** + * Request body metadata + */ + resource?: Schema$PerfSampleSeries; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A sample series id + */ + sampleSeriesId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * Specify one or more PerfMetricType values such as CPU to filter the + * result + */ + filter?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + } + export class Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples { root: Toolresults; @@ -2844,29 +3667,50 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - batchCreate(params?: any, options?: MethodOptions): + batchCreate( + params?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate, + options?: MethodOptions): AxiosPromise; batchCreate( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + batchCreate( + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate, + callback: BodyResponseCallback): void; batchCreate( - params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): + void; + batchCreate( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2924,28 +3768,45 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List, + options?: MethodOptions): AxiosPromise; + list( + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -2974,6 +3835,75 @@ export namespace toolresults_v1beta3 { } } + export interface Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$Batchcreate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A sample series id + */ + sampleSeriesId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + /** + * Request body metadata + */ + resource?: Schema$BatchCreatePerfSamplesRequest; + } + export interface Params$Resource$Projects$Histories$Executions$Steps$Perfsampleseries$Samples$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A tool results execution ID. + */ + executionId?: string; + /** + * A tool results history ID. + */ + historyId?: string; + /** + * The default page size is 500 samples, and the maximum size is 5000. If + * the page_size is greater than 5000, the effective page size will be 5000 + */ + pageSize?: number; + /** + * Optional, the next_page_token returned in the previous response + */ + pageToken?: string; + /** + * The cloud project + */ + projectId?: string; + /** + * A sample series id + */ + sampleSeriesId?: string; + /** + * A tool results step ID. + */ + stepId?: string; + } + + export class Resource$Projects$Histories$Executions$Steps$Thumbnails { root: Toolresults; @@ -3008,29 +3938,49 @@ export namespace toolresults_v1beta3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -3055,4 +4005,38 @@ export namespace toolresults_v1beta3 { } } } + + export interface Params$Resource$Projects$Histories$Executions$Steps$Thumbnails$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * An Execution id. Required. + */ + executionId?: string; + /** + * A History id. Required. + */ + historyId?: string; + /** + * The maximum number of thumbnails to fetch. Default value: 50. The server + * will use this default if the field is not set or has a value of 0. + * Optional. + */ + pageSize?: number; + /** + * A continuation token to resume the query at the next item. Optional. + */ + pageToken?: string; + /** + * A Project id. Required. + */ + projectId?: string; + /** + * A Step id. Required. + */ + stepId?: string; + } } diff --git a/src/apis/tpu/v1alpha1.ts b/src/apis/tpu/v1alpha1.ts index 440d9e57235..6cb07297e38 100644 --- a/src/apis/tpu/v1alpha1.ts +++ b/src/apis/tpu/v1alpha1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace tpu_v1alpha1 { + export interface Options extends GlobalOptions { version: 'v1alpha1'; } + /** * Cloud TPU API * @@ -72,11 +75,11 @@ export namespace tpu_v1alpha1 { /** * The resource name. */ - name: string; + name?: string; /** * the accelerator type. */ - type: string; + type?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -93,11 +96,11 @@ export namespace tpu_v1alpha1 { /** * The listed nodes. */ - acceleratorTypes: Schema$AcceleratorType[]; + acceleratorTypes?: Schema$AcceleratorType[]; /** * The next page token or empty if none. */ - nextPageToken: string; + nextPageToken?: string; } /** * The response message for Locations.ListLocations. @@ -106,11 +109,11 @@ export namespace tpu_v1alpha1 { /** * A list of locations that matches the specified filter in the request. */ - locations: Schema$Location[]; + locations?: Schema$Location[]; /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response for ListNodes. @@ -119,11 +122,11 @@ export namespace tpu_v1alpha1 { /** * The next page token or empty if none. */ - nextPageToken: string; + nextPageToken?: string; /** * The listed nodes. */ - nodes: Schema$Node[]; + nodes?: Schema$Node[]; } /** * The response message for Operations.ListOperations. @@ -132,11 +135,11 @@ export namespace tpu_v1alpha1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Response for ListTensorFlowVersions. @@ -145,11 +148,11 @@ export namespace tpu_v1alpha1 { /** * The next page token or empty if none. */ - nextPageToken: string; + nextPageToken?: string; /** * The listed nodes. */ - tensorflowVersions: Schema$TensorFlowVersion[]; + tensorflowVersions?: Schema$TensorFlowVersion[]; } /** * A resource that represents Google Cloud Platform location. @@ -159,26 +162,26 @@ export namespace tpu_v1alpha1 { * The friendly name for this location, typically a nearby city name. For * example, "Tokyo". */ - displayName: string; + displayName?: string; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} */ - labels: any; + labels?: any; /** * The canonical id for this location. For example: `"us-east1"`. */ - locationId: string; + locationId?: string; /** * Service-specific metadata. For example the available capacity at the * given location. */ - metadata: any; + metadata?: any; /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` */ - name: string; + name?: string; } /** * A network endpoint over which a TPU worker can be reached. @@ -187,11 +190,11 @@ export namespace tpu_v1alpha1 { /** * The IP address of this network endpoint. */ - ipAddress: string; + ipAddress?: string; /** * The port of this network endpoint. */ - port: number; + port?: number; } /** * A TPU instance. @@ -200,7 +203,7 @@ export namespace tpu_v1alpha1 { /** * The type of hardware accelerators associated with this node. Required. */ - acceleratorType: string; + acceleratorType?: string; /** * The CIDR block that the TPU node will use when selecting an IP address. * This CIDR block must be a /29 block; the Compute Engine networks API @@ -211,70 +214,70 @@ export namespace tpu_v1alpha1 { * or the provided network is peered with another network that is using that * CIDR block. Required. */ - cidrBlock: string; + cidrBlock?: string; /** * Output only. The time when the node was created. */ - createTime: string; + createTime?: string; /** * The user-supplied description of the TPU. Maximum of 512 characters. */ - description: string; + description?: string; /** * The health status of the TPU node. */ - health: string; + health?: string; /** * Output only. If this field is populated, it contains a description of why * the TPU Node is unhealthy. */ - healthDescription: string; + healthDescription?: string; /** * Output only. DEPRECATED! Use network_endpoints instead. The network * address for the TPU Node as visible to Compute Engine instances. */ - ipAddress: string; + ipAddress?: string; /** * Resource labels to represent user-provided metadata. */ - labels: any; + labels?: any; /** * Output only. The immutable name of the TPU */ - name: string; + name?: string; /** * The name of a network they wish to peer the TPU node to. It must be a * preexisting Compute Engine network inside of the project on which this * API has been activated. If none is provided, "default" will be * used. */ - network: string; + network?: string; /** * Output only. The network endpoints where TPU workers can be accessed and * sent work. It is recommended that Tensorflow clients of the node reach * out to the 0th entry in this map first. */ - networkEndpoints: Schema$NetworkEndpoint[]; + networkEndpoints?: Schema$NetworkEndpoint[]; /** * Output only. DEPRECATED! Use network_endpoints instead. The network port * for the TPU Node as visible to Compute Engine instances. */ - port: string; + port?: string; /** * Output only. The service account used to run the tensor flow services * within the node. To share resources, including Google Cloud Storage data, * with the Tensorflow job running in the Node, this account must have * permissions to that data. */ - serviceAccount: string; + serviceAccount?: string; /** * Output only. The current state for the TPU Node. */ - state: string; + state?: string; /** * The version of Tensorflow running in the Node. Required. */ - tensorflowVersion: string; + tensorflowVersion?: string; } /** * This resource represents a long-running operation that is the result of a @@ -286,24 +289,24 @@ export namespace tpu_v1alpha1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -313,7 +316,7 @@ export namespace tpu_v1alpha1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Represents the metadata of the long-running operation. @@ -322,35 +325,35 @@ export namespace tpu_v1alpha1 { /** * [Output only] API version used to start the operation. */ - apiVersion: string; + apiVersion?: string; /** * [Output only] Identifies whether the user has requested cancellation of * the operation. Operations that have successfully been cancelled have * Operation.error value with a google.rpc.Status.code of 1, corresponding * to `Code.CANCELLED`. */ - cancelRequested: boolean; + cancelRequested?: boolean; /** * [Output only] The time the operation was created. */ - createTime: string; + createTime?: string; /** * [Output only] The time the operation finished running. */ - endTime: string; + endTime?: string; /** * [Output only] Human-readable status of the operation, if any. */ - statusDetail: string; + statusDetail?: string; /** * [Output only] Server-defined resource path for the target of the * operation. */ - target: string; + target?: string; /** * [Output only] Name of the verb executed by the operation. */ - verb: string; + verb?: string; } /** * Request for ReimageNode. @@ -359,7 +362,7 @@ export namespace tpu_v1alpha1 { /** * The version for reimage to create. */ - tensorflowVersion: string; + tensorflowVersion?: string; } /** * Request for ResetNode. @@ -409,18 +412,18 @@ export namespace tpu_v1alpha1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * Request for StopNode. @@ -433,13 +436,14 @@ export namespace tpu_v1alpha1 { /** * The resource name. */ - name: string; + name?: string; /** * the tensorflow version. */ - version: string; + version?: string; } + export class Resource$Projects { root: Tpu; locations: Resource$Projects$Locations; @@ -453,6 +457,8 @@ export namespace tpu_v1alpha1 { return this.root; } } + + export class Resource$Projects$Locations { root: Tpu; acceleratorTypes: Resource$Projects$Locations$Acceleratortypes; @@ -487,23 +493,34 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -541,28 +558,40 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -584,6 +613,42 @@ export namespace tpu_v1alpha1 { } } } + + export interface Params$Resource$Projects$Locations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Resource name for the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + export class Resource$Projects$Locations$Acceleratortypes { root: Tpu; constructor(root: Tpu) { @@ -608,24 +673,36 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Acceleratortypes$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Acceleratortypes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Acceleratortypes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Acceleratortypes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Acceleratortypes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Acceleratortypes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -664,29 +741,45 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Locations$Acceleratortypes$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Acceleratortypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Acceleratortypes$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Acceleratortypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Acceleratortypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Acceleratortypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -711,6 +804,46 @@ export namespace tpu_v1alpha1 { } } + export interface Params$Resource$Projects$Locations$Acceleratortypes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Acceleratortypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * List filter. + */ + filter?: string; + /** + * Sort results. + */ + orderBy?: string; + /** + * The maximum number of items to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * The parent resource name. + */ + parent?: string; + } + + export class Resource$Projects$Locations$Nodes { root: Tpu; constructor(root: Tpu) { @@ -737,26 +870,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Projects$Locations$Nodes$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Locations$Nodes$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -791,26 +937,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): - AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Nodes$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Locations$Nodes$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -845,21 +1004,34 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Nodes$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Nodes$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Nodes$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -896,26 +1068,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Nodes$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Nodes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -951,26 +1136,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reimage(params?: any, options?: MethodOptions): - AxiosPromise; reimage( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$Reimage, + options?: MethodOptions): AxiosPromise; reimage( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Nodes$Reimage, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + reimage( + params: Params$Resource$Projects$Locations$Nodes$Reimage, + callback: BodyResponseCallback): void; + reimage(callback: BodyResponseCallback): void; + reimage( + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Reimage| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Reimage; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Reimage; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1006,26 +1204,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reset(params?: any, options?: MethodOptions): - AxiosPromise; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$Reset, + options?: MethodOptions): AxiosPromise; + reset( + params: Params$Resource$Projects$Locations$Nodes$Reset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + reset( + params: Params$Resource$Projects$Locations$Nodes$Reset, + callback: BodyResponseCallback): void; + reset(callback: BodyResponseCallback): void; reset( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Reset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Reset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Reset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1061,26 +1272,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - start(params?: any, options?: MethodOptions): - AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$Start, + options?: MethodOptions): AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Nodes$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + start( + params: Params$Resource$Projects$Locations$Nodes$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; + start( + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1116,25 +1340,39 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Nodes$Stop, + options?: MethodOptions): AxiosPromise; + stop( + params: Params$Resource$Projects$Locations$Nodes$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Nodes$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Projects$Locations$Nodes$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Nodes$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Nodes$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1157,6 +1395,128 @@ export namespace tpu_v1alpha1 { } } + export interface Params$Resource$Projects$Locations$Nodes$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The unqualified resource name. + */ + nodeId?: string; + /** + * The parent resource name. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$Node; + } + export interface Params$Resource$Projects$Locations$Nodes$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Nodes$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Nodes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of items to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * The parent resource name. + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Nodes$Reimage { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ReimageNodeRequest; + } + export interface Params$Resource$Projects$Locations$Nodes$Reset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$ResetNodeRequest; + } + export interface Params$Resource$Projects$Locations$Nodes$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StartNodeRequest; + } + export interface Params$Resource$Projects$Locations$Nodes$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StopNodeRequest; + } + + export class Resource$Projects$Locations$Operations { root: Tpu; constructor(root: Tpu) { @@ -1189,25 +1549,38 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Operations$Cancel, + options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1245,25 +1618,38 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Locations$Operations$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Locations$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1300,23 +1686,35 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1362,28 +1760,40 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Projects$Locations$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1406,6 +1816,64 @@ export namespace tpu_v1alpha1 { } } + export interface Params$Resource$Projects$Locations$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects$Locations$Tensorflowversions { root: Tpu; constructor(root: Tpu) { @@ -1430,24 +1898,37 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Projects$Locations$Tensorflowversions$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params: Params$Resource$Projects$Locations$Tensorflowversions$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Locations$Tensorflowversions$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Locations$Tensorflowversions$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Tensorflowversions$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Tensorflowversions$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1486,29 +1967,46 @@ export namespace tpu_v1alpha1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Projects$Locations$Tensorflowversions$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Tensorflowversions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Locations$Tensorflowversions$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: + Params$Resource$Projects$Locations$Tensorflowversions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Locations$Tensorflowversions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Locations$Tensorflowversions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; const parameters = { options: Object.assign( @@ -1532,4 +2030,43 @@ export namespace tpu_v1alpha1 { } } } + + export interface Params$Resource$Projects$Locations$Tensorflowversions$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Tensorflowversions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * List filter. + */ + filter?: string; + /** + * Sort results. + */ + orderBy?: string; + /** + * The maximum number of items to return. + */ + pageSize?: number; + /** + * The next_page_token value returned from a previous List request, if any. + */ + pageToken?: string; + /** + * The parent resource name. + */ + parent?: string; + } } diff --git a/src/apis/translate/v2.ts b/src/apis/translate/v2.ts index 9422f346dcd..8eaca7119e2 100644 --- a/src/apis/translate/v2.ts +++ b/src/apis/translate/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace translate_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * Google Cloud Translation API * @@ -74,7 +77,7 @@ export namespace translate_v2 { /** * A detections contains detection results of several text */ - detections: Schema$DetectionsResource[]; + detections?: Schema$DetectionsResource[]; } /** * An array of languages which we detect for the given text The most likely @@ -89,7 +92,7 @@ export namespace translate_v2 { * The input text upon which to perform language detection. Repeat this * parameter to perform language detection on multiple text inputs. */ - q: string[]; + q?: string[]; } /** * The request message for discovering supported languages. @@ -99,7 +102,7 @@ export namespace translate_v2 { * The language to use to return localized, human readable names of * supported languages. */ - target: string; + target?: string; } export interface Schema$LanguagesListResponse { /** @@ -109,7 +112,7 @@ export namespace translate_v2 { * list is sorted by the collation order of the language name in the target * language. */ - languages: Schema$LanguagesResource[]; + languages?: Schema$LanguagesResource[]; } export interface Schema$LanguagesResource { /** @@ -118,11 +121,11 @@ export namespace translate_v2 { * codes including language + region identifiers are returned (e.g. * 'zh-TW' and 'zh-CH') */ - language: string; + language?: string; /** * Human readable name of the language localized to the target language. */ - name: string; + name?: string; } /** * The main translation request message for the Cloud Translation API. @@ -133,29 +136,29 @@ export namespace translate_v2 { * value of "html" indicates HTML and a value of "text" * indicates plain-text. */ - format: string; + format?: string; /** * The `model` type requested for this translation. Valid values are listed * in public documentation. */ - model: string; + model?: string; /** * The input text to translate. Repeat this parameter to perform translation * operations on multiple text inputs. */ - q: string[]; + q?: string[]; /** * The language of the source text, set to one of the language codes listed * in Language Support. If the source language is not specified, the API * will attempt to identify the source language automatically and return it * within the response. */ - source: string; + source?: string; /** * The language to use for translation of the input text, set to one of the * language codes listed in Language Support. */ - target: string; + target?: string; } /** * The main language translation response message. @@ -164,7 +167,7 @@ export namespace translate_v2 { /** * Translations contains list of translation results of given text */ - translations: Schema$TranslationsResource[]; + translations?: Schema$TranslationsResource[]; } export interface Schema$TranslationsResource { /** @@ -173,19 +176,20 @@ export namespace translate_v2 { * language was passed, auto-detection of the language will not occur and * this field will be empty. */ - detectedSourceLanguage: string; + detectedSourceLanguage?: string; /** * The `model` type used for this translation. Valid values are listed in * public documentation. Can be different from requested `model`. Present * only if specific model type was explicitly requested. */ - model: string; + model?: string; /** * Text translated into the target language. */ - translatedText: string; + translatedText?: string; } + export class Resource$Detections { root: Translate; constructor(root: Translate) { @@ -210,28 +214,39 @@ export namespace translate_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - detect(params?: any, options?: MethodOptions): + detect(params?: Params$Resource$Detections$Detect, options?: MethodOptions): AxiosPromise; detect( - params?: any, - options?: MethodOptions| + params: Params$Resource$Detections$Detect, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + detect( + params: Params$Resource$Detections$Detect, + callback: BodyResponseCallback): void; + detect(callback: BodyResponseCallback): void; detect( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Detections$Detect| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Detections$Detect; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Detections$Detect; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign( @@ -266,28 +281,38 @@ export namespace translate_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Detections$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Detections$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Detections$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Detections$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Detections$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Detections$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign( @@ -310,6 +335,31 @@ export namespace translate_v2 { } } + export interface Params$Resource$Detections$Detect { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$DetectLanguageRequest; + } + export interface Params$Resource$Detections$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The input text upon which to perform language detection. Repeat this + * parameter to perform language detection on multiple text inputs. + */ + q?: string; + } + + export class Resource$Languages { root: Translate; constructor(root: Translate) { @@ -335,28 +385,38 @@ export namespace translate_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Languages$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Languages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Languages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Languages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Languages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Languages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign( @@ -379,6 +439,24 @@ export namespace translate_v2 { } } + export interface Params$Resource$Languages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The model type for which supported languages should be returned. + */ + model?: string; + /** + * The language to use to return localized, human readable names of + * supported languages. + */ + target?: string; + } + + export class Resource$Translations { root: Translate; constructor(root: Translate) { @@ -408,28 +486,39 @@ export namespace translate_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Translations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Translations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Translations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Translations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Translations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Translations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign( @@ -464,28 +553,41 @@ export namespace translate_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - translate(params?: any, options?: MethodOptions): - AxiosPromise; translate( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Translations$Translate, + options?: MethodOptions): AxiosPromise; + translate( + params: Params$Resource$Translations$Translate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + translate( + params: Params$Resource$Translations$Translate, + callback: BodyResponseCallback): void; + translate(callback: BodyResponseCallback): + void; translate( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Translations$Translate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Translations$Translate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Translations$Translate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; const parameters = { options: Object.assign( @@ -507,4 +609,55 @@ export namespace translate_v2 { } } } + + export interface Params$Resource$Translations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The customization id for translate + */ + cid?: string; + /** + * The format of the source text, in either HTML (default) or plain-text. A + * value of "html" indicates HTML and a value of "text" indicates + * plain-text. + */ + format?: string; + /** + * The `model` type requested for this translation. Valid values are listed + * in public documentation. + */ + model?: string; + /** + * The input text to translate. Repeat this parameter to perform translation + * operations on multiple text inputs. + */ + q?: string; + /** + * The language of the source text, set to one of the language codes listed + * in Language Support. If the source language is not specified, the API + * will attempt to identify the source language automatically and return it + * within the response. + */ + source?: string; + /** + * The language to use for translation of the input text, set to one of the + * language codes listed in Language Support. + */ + target?: string; + } + export interface Params$Resource$Translations$Translate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$TranslateTextRequest; + } } diff --git a/src/apis/urlshortener/v1.ts b/src/apis/urlshortener/v1.ts index 67c0f01b308..bbe0e31008a 100644 --- a/src/apis/urlshortener/v1.ts +++ b/src/apis/urlshortener/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace urlshortener_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * URL Shortener API * @@ -70,125 +73,126 @@ export namespace urlshortener_v1 { * Top browsers, e.g. "Chrome"; sorted by (descending) click * counts. Only present if this data is available. */ - browsers: Schema$StringCount[]; + browsers?: Schema$StringCount[]; /** * Top countries (expressed as country codes), e.g. "US" or * "DE"; sorted by (descending) click counts. Only present if this * data is available. */ - countries: Schema$StringCount[]; + countries?: Schema$StringCount[]; /** * Number of clicks on all goo.gl short URLs pointing to this long URL. */ - longUrlClicks: string; + longUrlClicks?: string; /** * Top platforms or OSes, e.g. "Windows"; sorted by (descending) * click counts. Only present if this data is available. */ - platforms: Schema$StringCount[]; + platforms?: Schema$StringCount[]; /** * Top referring hosts, e.g. "www.google.com"; sorted by * (descending) click counts. Only present if this data is available. */ - referrers: Schema$StringCount[]; + referrers?: Schema$StringCount[]; /** * Number of clicks on this short URL. */ - shortUrlClicks: string; + shortUrlClicks?: string; } export interface Schema$AnalyticsSummary { /** * Click analytics over all time. */ - allTime: Schema$AnalyticsSnapshot; + allTime?: Schema$AnalyticsSnapshot; /** * Click analytics over the last day. */ - day: Schema$AnalyticsSnapshot; + day?: Schema$AnalyticsSnapshot; /** * Click analytics over the last month. */ - month: Schema$AnalyticsSnapshot; + month?: Schema$AnalyticsSnapshot; /** * Click analytics over the last two hours. */ - twoHours: Schema$AnalyticsSnapshot; + twoHours?: Schema$AnalyticsSnapshot; /** * Click analytics over the last week. */ - week: Schema$AnalyticsSnapshot; + week?: Schema$AnalyticsSnapshot; } export interface Schema$StringCount { /** * Number of clicks for this top entry, e.g. for this particular country or * browser. */ - count: string; + count?: string; /** * Label assigned to this top entry, e.g. "US" or * "Chrome". */ - id: string; + id?: string; } export interface Schema$Url { /** * A summary of the click analytics for the short and long URL. Might not be * present if not requested or currently unavailable. */ - analytics: Schema$AnalyticsSummary; + analytics?: Schema$AnalyticsSummary; /** * Time the short URL was created; ISO 8601 representation using the * yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. * "2010-10-14T19:01:24.944+00:00". */ - created: string; + created?: string; /** * Short URL, e.g. "http://goo.gl/l6MS". */ - id: string; + id?: string; /** * The fixed string "urlshortener#url". */ - kind: string; + kind?: string; /** * Long URL, e.g. "http://www.google.com/". Might not be present * if the status is "REMOVED". */ - longUrl: string; + longUrl?: string; /** * Status of the target URL. Possible values: "OK", * "MALWARE", "PHISHING", or "REMOVED". A URL * might be marked "REMOVED" if it was flagged as spam, for * example. */ - status: string; + status?: string; } export interface Schema$UrlHistory { /** * A list of URL resources. */ - items: Schema$Url[]; + items?: Schema$Url[]; /** * Number of items returned with each full "page" of results. Note * that the last page could have fewer items than the * "itemsPerPage" value. */ - itemsPerPage: number; + itemsPerPage?: number; /** * The fixed string "urlshortener#urlHistory". */ - kind: string; + kind?: string; /** * A token to provide to get the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * Total number of short URLs associated with this user (may be * approximate). */ - totalItems: number; + totalItems?: number; } + export class Resource$Url { root: Urlshortener; constructor(root: Urlshortener) { @@ -214,21 +218,33 @@ export namespace urlshortener_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Url$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Url$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Url$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Url$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Url$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Url$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -263,23 +279,36 @@ export namespace urlshortener_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Url$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Url$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Url$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Url$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Url$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Url$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -315,26 +344,37 @@ export namespace urlshortener_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Url$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Url$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Url$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Url$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Url$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Url$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -356,4 +396,41 @@ export namespace urlshortener_v1 { } } } + + export interface Params$Resource$Url$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Additional information to return. + */ + projection?: string; + /** + * The short URL, including the protocol. + */ + shortUrl?: string; + } + export interface Params$Resource$Url$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + export interface Params$Resource$Url$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Additional information to return. + */ + projection?: string; + /** + * Token for requesting successive pages of results. + */ + 'start-token'?: string; + } } diff --git a/src/apis/vault/v1.ts b/src/apis/vault/v1.ts index 2b211c2fda6..8032e9381eb 100644 --- a/src/apis/vault/v1.ts +++ b/src/apis/vault/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,8 +31,10 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace vault_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** - * Google Vault API + * G Suite Vault API * * Archiving and eDiscovery for G Suite. * @@ -74,16 +77,16 @@ export namespace vault_v1 { * Only relevant if send_emails is true. True to CC requestor in the email * message. False to not CC requestor. */ - ccMe: boolean; + ccMe?: boolean; /** * The MatterPermission to add. */ - matterPermission: Schema$MatterPermission; + matterPermission?: Schema$MatterPermission; /** * True to send notification email to the added account. False to not send * notification email. */ - sendEmails: boolean; + sendEmails?: boolean; } /** * Close a matter by ID. @@ -96,7 +99,7 @@ export namespace vault_v1 { /** * The updated matter, with state CLOSED. */ - matter: Schema$Matter; + matter?: Schema$Matter; } /** * Corpus specific queries. @@ -105,20 +108,20 @@ export namespace vault_v1 { /** * Details pertaining to Drive holds. If set, corpus must be Drive. */ - driveQuery: Schema$HeldDriveQuery; + driveQuery?: Schema$HeldDriveQuery; /** * Details pertaining to Groups holds. If set, corpus must be Groups. */ - groupsQuery: Schema$HeldGroupsQuery; + groupsQuery?: Schema$HeldGroupsQuery; /** * Details pertaining to Hangouts Chat holds. If set, corpus must be * Hangouts Chat. */ - hangoutsChatQuery: Schema$HeldHangoutsChatQuery; + hangoutsChatQuery?: Schema$HeldHangoutsChatQuery; /** * Details pertaining to mail holds. If set, corpus must be mail. */ - mailQuery: Schema$HeldMailQuery; + mailQuery?: Schema$HeldMailQuery; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -139,11 +142,11 @@ export namespace vault_v1 { * href="https://developers.google.com/admin-sdk/">Admin * SDK</a>. */ - accountId: string; + accountId?: string; /** * When the account was put on hold. */ - holdTime: string; + holdTime?: string; } /** * Query options for Drive holds. @@ -152,7 +155,7 @@ export namespace vault_v1 { /** * If true, include files in Team Drives in the hold. */ - includeTeamDriveFiles: boolean; + includeTeamDriveFiles?: boolean; } /** * Query options for group holds. @@ -162,16 +165,16 @@ export namespace vault_v1 { * The end time range for the search query. These timestamps are in GMT and * rounded down to the start of the given date. */ - endTime: string; + endTime?: string; /** * The start time range for the search query. These timestamps are in GMT * and rounded down to the start of the given date. */ - startTime: string; + startTime?: string; /** * The search terms for the hold. */ - terms: string; + terms?: string; } /** * Query options for hangouts chat holds. @@ -180,7 +183,7 @@ export namespace vault_v1 { /** * If true, include rooms the user has participated in. */ - includeRooms: boolean; + includeRooms?: boolean; } /** * Query options for mail holds. @@ -190,16 +193,16 @@ export namespace vault_v1 { * The end time range for the search query. These timestamps are in GMT and * rounded down to the start of the given date. */ - endTime: string; + endTime?: string; /** * The start time range for the search query. These timestamps are in GMT * and rounded down to the start of the given date. */ - startTime: string; + startTime?: string; /** * The search terms for the hold. */ - terms: string; + terms?: string; } /** * A organizational unit being held in a particular hold. This structure is @@ -209,11 +212,11 @@ export namespace vault_v1 { /** * When the org unit was put on hold. This property is immutable. */ - holdTime: string; + holdTime?: string; /** * The org unit's immutable ID as provided by the Admin SDK. */ - orgUnitId: string; + orgUnitId?: string; } /** * Represents a hold within Vault. A hold restricts purging of artifacts based @@ -226,34 +229,34 @@ export namespace vault_v1 { * If set, the hold applies to the enumerated accounts and org_unit must be * empty. */ - accounts: Schema$HeldAccount[]; + accounts?: Schema$HeldAccount[]; /** * The corpus to be searched. */ - corpus: string; + corpus?: string; /** * The unique immutable ID of the hold. Assigned during creation. */ - holdId: string; + holdId?: string; /** * The name of the hold. */ - name: string; + name?: string; /** * If set, the hold applies to all members of the organizational unit and * accounts must be empty. This property is mutable. For groups holds, set * the accounts field. */ - orgUnit: Schema$HeldOrgUnit; + orgUnit?: Schema$HeldOrgUnit; /** * The corpus-specific query. If set, the corpusQuery must match corpus * type. */ - query: Schema$CorpusQuery; + query?: Schema$CorpusQuery; /** * The last time this hold was modified. */ - updateTime: string; + updateTime?: string; } /** * Returns a list of held accounts for a hold. @@ -262,7 +265,7 @@ export namespace vault_v1 { /** * The held accounts on a hold. */ - accounts: Schema$HeldAccount[]; + accounts?: Schema$HeldAccount[]; } /** * The holds for a matter. @@ -271,12 +274,12 @@ export namespace vault_v1 { /** * The list of holds. */ - holds: Schema$Hold[]; + holds?: Schema$Hold[]; /** * Page token to retrieve the next page of results in the list. If this is * empty, then there are no more holds to list. */ - nextPageToken: string; + nextPageToken?: string; } /** * Provides the list of matters. @@ -285,11 +288,11 @@ export namespace vault_v1 { /** * List of matters. */ - matters: Schema$Matter[]; + matters?: Schema$Matter[]; /** * Page token to retrieve the next page of results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * Represents a matter. @@ -298,25 +301,25 @@ export namespace vault_v1 { /** * The description of the matter. */ - description: string; + description?: string; /** * The matter ID which is generated by the server. Should be blank when * creating a new matter. */ - matterId: string; + matterId?: string; /** * List of users and access to the matter. Currently there is no programmer * defined limit on the number of permissions a matter can have. */ - matterPermissions: Schema$MatterPermission[]; + matterPermissions?: Schema$MatterPermission[]; /** * The name of the matter. */ - name: string; + name?: string; /** * The state of the matter. */ - state: string; + state?: string; } /** * Currently each matter only has one owner, and all others are collaborators. @@ -329,11 +332,11 @@ export namespace vault_v1 { * href="https://developers.google.com/admin-sdk/">Admin * SDK</a>. */ - accountId: string; + accountId?: string; /** * The user's role in this matter. */ - role: string; + role?: string; } /** * Remove an account as a matter collaborator. @@ -342,7 +345,7 @@ export namespace vault_v1 { /** * The account ID. */ - accountId: string; + accountId?: string; } /** * Reopen a matter by ID. @@ -355,13 +358,14 @@ export namespace vault_v1 { /** * The updated matter, with state OPEN. */ - matter: Schema$Matter; + matter?: Schema$Matter; } /** * Undelete a matter by ID. */ export interface Schema$UndeleteMatterRequest {} + export class Resource$Matters { root: Vault; holds: Resource$Matters$Holds; @@ -389,26 +393,40 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - addPermissions(params?: any, options?: MethodOptions): - AxiosPromise; addPermissions( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Addpermissions, + options?: MethodOptions): AxiosPromise; + addPermissions( + params: Params$Resource$Matters$Addpermissions, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; addPermissions( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Addpermissions, + callback: BodyResponseCallback): void; + addPermissions(callback: BodyResponseCallback): + void; + addPermissions( + paramsOrCallback?: Params$Resource$Matters$Addpermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Addpermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Addpermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -444,28 +462,37 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - close(params?: any, options?: MethodOptions): + close(params?: Params$Resource$Matters$Close, options?: MethodOptions): AxiosPromise; close( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Matters$Close, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; close( - params?: any, - options?: MethodOptions| + params: Params$Resource$Matters$Close, + callback: BodyResponseCallback): void; + close(callback: BodyResponseCallback): void; + close( + paramsOrCallback?: Params$Resource$Matters$Close| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Close; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Close; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -502,25 +529,36 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Matters$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Matters$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Matters$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Matters$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -554,25 +592,36 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Matters$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Matters$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Matters$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -608,23 +657,33 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Matters$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Matters$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Matters$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Matters$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -662,28 +721,37 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Matters$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Matters$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Matters$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Matters$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -718,26 +786,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - removePermissions(params?: any, options?: MethodOptions): - AxiosPromise; removePermissions( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Removepermissions, + options?: MethodOptions): AxiosPromise; + removePermissions( + params: Params$Resource$Matters$Removepermissions, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; removePermissions( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Removepermissions, + callback: BodyResponseCallback): void; + removePermissions(callback: BodyResponseCallback): void; + removePermissions( + paramsOrCallback?: Params$Resource$Matters$Removepermissions| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Removepermissions; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Removepermissions; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -773,28 +853,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reopen(params?: any, options?: MethodOptions): + reopen(params?: Params$Resource$Matters$Reopen, options?: MethodOptions): AxiosPromise; reopen( - params?: any, - options?: MethodOptions| + params: Params$Resource$Matters$Reopen, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + reopen( + params: Params$Resource$Matters$Reopen, + callback: BodyResponseCallback): void; + reopen(callback: BodyResponseCallback): void; reopen( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Matters$Reopen| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Reopen; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Reopen; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -830,26 +920,37 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - undelete(params?: any, options?: MethodOptions): - AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Undelete, + options?: MethodOptions): AxiosPromise; undelete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Undelete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + undelete( + params: Params$Resource$Matters$Undelete, + callback: BodyResponseCallback): void; + undelete(callback: BodyResponseCallback): void; + undelete( + paramsOrCallback?: Params$Resource$Matters$Undelete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Undelete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Undelete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -887,25 +988,36 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Matters$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Matters$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Matters$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Matters$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -927,6 +1039,160 @@ export namespace vault_v1 { } } } + + export interface Params$Resource$Matters$Addpermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$AddMatterPermissionsRequest; + } + export interface Params$Resource$Matters$Close { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$CloseMatterRequest; + } + export interface Params$Resource$Matters$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$Matter; + } + export interface Params$Resource$Matters$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID + */ + matterId?: string; + } + export interface Params$Resource$Matters$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Specifies which parts of the Matter to return in the response. + */ + view?: string; + } + export interface Params$Resource$Matters$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The number of matters to return in the response. Default and maximum are + * 100. + */ + pageSize?: number; + /** + * The pagination token as returned in the response. + */ + pageToken?: string; + /** + * If set, list only matters with that specific state. The default is + * listing matters of all states. + */ + state?: string; + /** + * Specifies which parts of the matter to return in response. + */ + view?: string; + } + export interface Params$Resource$Matters$Removepermissions { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$RemoveMatterPermissionsRequest; + } + export interface Params$Resource$Matters$Reopen { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$ReopenMatterRequest; + } + export interface Params$Resource$Matters$Undelete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$UndeleteMatterRequest; + } + export interface Params$Resource$Matters$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$Matter; + } + export class Resource$Matters$Holds { root: Vault; accounts: Resource$Matters$Holds$Accounts; @@ -954,23 +1220,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Holds$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Matters$Holds$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Holds$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Matters$Holds$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Holds$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1007,25 +1288,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Holds$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Matters$Holds$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Holds$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Matters$Holds$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Holds$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1062,21 +1356,34 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Matters$Holds$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Matters$Holds$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Matters$Holds$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Matters$Holds$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Holds$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1115,26 +1422,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Matters$Holds$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Matters$Holds$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Holds$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Matters$Holds$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Holds$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1173,23 +1492,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; update( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Holds$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Matters$Holds$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Holds$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Matters$Holds$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Matters$Holds$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1211,6 +1545,101 @@ export namespace vault_v1 { } } } + + export interface Params$Resource$Matters$Holds$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$Hold; + } + export interface Params$Resource$Matters$Holds$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hold ID. + */ + holdId?: string; + /** + * The matter ID. + */ + matterId?: string; + } + export interface Params$Resource$Matters$Holds$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hold ID. + */ + holdId?: string; + /** + * The matter ID. + */ + matterId?: string; + /** + * Specifies which parts of the Hold to return. + */ + view?: string; + } + export interface Params$Resource$Matters$Holds$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The matter ID. + */ + matterId?: string; + /** + * The number of holds to return in the response, between 0 and 100 + * inclusive. Leaving this empty, or as 0, is the same as page_size = 100. + */ + pageSize?: number; + /** + * The pagination token as returned in the response. An empty token means + * start from the beginning. + */ + pageToken?: string; + /** + * Specifies which parts of the Hold to return. + */ + view?: string; + } + export interface Params$Resource$Matters$Holds$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the hold. + */ + holdId?: string; + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$Hold; + } + export class Resource$Matters$Holds$Accounts { root: Vault; constructor(root: Vault) { @@ -1239,26 +1668,39 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Holds$Accounts$Create, + options?: MethodOptions): AxiosPromise; + create( + params: Params$Resource$Matters$Holds$Accounts$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Holds$Accounts$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Matters$Holds$Accounts$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Matters$Holds$Accounts$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Accounts$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1296,25 +1738,38 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Matters$Holds$Accounts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Matters$Holds$Accounts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Matters$Holds$Accounts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Matters$Holds$Accounts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Matters$Holds$Accounts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Accounts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1355,28 +1810,40 @@ export namespace vault_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Matters$Holds$Accounts$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Matters$Holds$Accounts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Matters$Holds$Accounts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Matters$Holds$Accounts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Matters$Holds$Accounts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Matters$Holds$Accounts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; const parameters = { options: Object.assign( @@ -1398,4 +1865,58 @@ export namespace vault_v1 { } } } + + export interface Params$Resource$Matters$Holds$Accounts$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hold ID. + */ + holdId?: string; + /** + * The matter ID. + */ + matterId?: string; + /** + * Request body metadata + */ + resource?: Schema$HeldAccount; + } + export interface Params$Resource$Matters$Holds$Accounts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the account to remove from the hold. + */ + accountId?: string; + /** + * The hold ID. + */ + holdId?: string; + /** + * The matter ID. + */ + matterId?: string; + } + export interface Params$Resource$Matters$Holds$Accounts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hold ID. + */ + holdId?: string; + /** + * The matter ID. + */ + matterId?: string; + } } diff --git a/src/apis/videointelligence/v1.ts b/src/apis/videointelligence/v1.ts index 0c2f5c36640..472e280daeb 100644 --- a/src/apis/videointelligence/v1.ts +++ b/src/apis/videointelligence/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace videointelligence_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Video Intelligence API * @@ -76,7 +79,7 @@ export namespace videointelligence_v1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress[]; } /** @@ -88,7 +91,7 @@ export namespace videointelligence_v1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults[]; } /** @@ -98,15 +101,15 @@ export namespace videointelligence_v1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; /** * Where the label was detected and with what confidence. */ - locations: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; + locations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; } /** * Label location. @@ -115,18 +118,18 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Label level. */ - level: string; + level?: string; /** * Video segment. Set to [-1, -1] for video-level labels. Set to [timestamp, * timestamp] for frame-level labels. Otherwise, corresponds to one of * `AnnotateSpec.segments` (if specified) or to shot boundaries (if * requested). */ - segment: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; } /** * Safe search annotation (based on per-frame visual signals only). If no @@ -139,28 +142,28 @@ export namespace videointelligence_v1 { /** * Likelihood of adult content. */ - adult: string; + adult?: string; /** * Likelihood of medical content. */ - medical: string; + medical?: string; /** * Likelihood of racy content. */ - racy: string; + racy?: string; /** * Likelihood that an obvious modification was made to the original version * to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Video time offset in microseconds. */ - timeOffset: string; + timeOffset?: string; /** * Likelihood of violent content. */ - violent: string; + violent?: string; } /** * Annotation progress for a single video. @@ -170,20 +173,20 @@ export namespace videointelligence_v1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -193,26 +196,26 @@ export namespace videointelligence_v1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations. There is exactly one element for each unique label. */ - labelAnnotations: + labelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelAnnotation[]; /** * Safe search annotations. */ - safeSearchAnnotations: + safeSearchAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; } /** * Video segment. @@ -221,11 +224,11 @@ export namespace videointelligence_v1 { /** * End offset in microseconds (inclusive). Unset means 0. */ - endTimeOffset: string; + endTimeOffset?: string; /** * Start offset in microseconds (inclusive). Unset means 0. */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -236,7 +239,7 @@ export namespace videointelligence_v1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress[]; } /** @@ -248,7 +251,7 @@ export namespace videointelligence_v1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults[]; } /** @@ -258,16 +261,16 @@ export namespace videointelligence_v1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -278,7 +281,7 @@ export namespace videointelligence_v1 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -287,12 +290,12 @@ export namespace videointelligence_v1 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Label annotation. @@ -303,19 +306,19 @@ export namespace videointelligence_v1 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1beta2_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1beta2_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -324,12 +327,12 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -338,11 +341,11 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; } /** * Annotation progress for a single video. @@ -352,20 +355,20 @@ export namespace videointelligence_v1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -375,38 +378,38 @@ export namespace videointelligence_v1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; } /** @@ -417,12 +420,12 @@ export namespace videointelligence_v1 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -433,7 +436,7 @@ export namespace videointelligence_v1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress[]; } /** @@ -445,7 +448,7 @@ export namespace videointelligence_v1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults[]; } /** @@ -455,11 +458,11 @@ export namespace videointelligence_v1 { /** * Emotion entry. */ - emotion: string; + emotion?: string; /** * Confidence score. */ - score: number; + score?: number; } /** * Detected entity from video analysis. @@ -468,16 +471,16 @@ export namespace videointelligence_v1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -488,7 +491,8 @@ export namespace videointelligence_v1 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; + frames?: + Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -497,12 +501,12 @@ export namespace videointelligence_v1 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Face detection annotation. @@ -511,11 +515,11 @@ export namespace videointelligence_v1 { /** * All video frames where a face was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; /** * All video segments where a face was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; } /** * Face detection attribute. @@ -524,11 +528,11 @@ export namespace videointelligence_v1 { /** * Emotion attributes. */ - emotions: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; + emotions?: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; /** * Normalized Bounding box. */ - normalizedBoundingBox: + normalizedBoundingBox?: Schema$GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox; } /** @@ -539,13 +543,13 @@ export namespace videointelligence_v1 { * Face attributes in a frame. There can be more than one attributes if the * same face is detected in multiple locations within the current frame. */ - attributes: + attributes?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute[]; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for face detection. @@ -554,7 +558,7 @@ export namespace videointelligence_v1 { /** * Video segment where a face was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; } /** * Label annotation. @@ -565,19 +569,19 @@ export namespace videointelligence_v1 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -586,12 +590,12 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -600,11 +604,11 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; } /** * Normalized bounding box. The normalized vertex coordinates are relative to @@ -614,19 +618,19 @@ export namespace videointelligence_v1 { /** * Bottom Y coordinate. */ - bottom: number; + bottom?: number; /** * Left X coordinate. */ - left: number; + left?: number; /** * Right X coordinate. */ - right: number; + right?: number; /** * Top Y coordinate. */ - top: number; + top?: number; } /** * Alternative hypotheses (a.k.a. n-best list). @@ -641,16 +645,16 @@ export namespace videointelligence_v1 { * The default of 0.0 is a sentinel value indicating `confidence` was not * set. */ - confidence: number; + confidence?: number; /** * Output only. Transcript text representing the words that the user spoke. */ - transcript: string; + transcript?: string; /** * Output only. A list of word-specific information for each recognized * word. */ - words: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; + words?: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; } /** * A speech recognition result corresponding to a portion of the audio. @@ -663,7 +667,7 @@ export namespace videointelligence_v1 { * probable, as ranked by the recognizer. */ // clang-format off - alternatives: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; + alternatives?: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; // clang-format on } /** @@ -674,20 +678,20 @@ export namespace videointelligence_v1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -697,49 +701,49 @@ export namespace videointelligence_v1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation; /** * Face detection annotations. */ - faceDetectionAnnotations: + faceDetectionAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation[]; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Speech transcription. */ - speechTranscriptions: + speechTranscriptions?: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription[]; } /** @@ -750,12 +754,12 @@ export namespace videointelligence_v1 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Word-specific information for recognized words. Word information is only @@ -769,18 +773,18 @@ export namespace videointelligence_v1 { * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - endTime: string; + endTime?: string; /** * Output only. Time offset relative to the beginning of the audio, and * corresponding to the start of the spoken word. This field is only set if * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - startTime: string; + startTime?: string; /** * Output only. The word corresponding to this set of information. */ - word: string; + word?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -791,7 +795,7 @@ export namespace videointelligence_v1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1_VideoAnnotationProgress[]; } /** @@ -801,12 +805,12 @@ export namespace videointelligence_v1 { /** * Requested video annotation features. */ - features: string[]; + features?: string[]; /** * The video data bytes. If unset, the input video(s) should be specified * via `input_uri`. If set, `input_uri` should be unset. */ - inputContent: string; + inputContent?: string; /** * Input video location. Currently, only [Google Cloud * Storage](https://cloud.google.com/storage/) URIs are supported, which @@ -819,14 +823,14 @@ export namespace videointelligence_v1 { * embedded in the request as `input_content`. If set, `input_content` * should be unset. */ - inputUri: string; + inputUri?: string; /** * Optional cloud region where annotation should take place. Supported cloud * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no * region is specified, a region will be determined based on video file * location. */ - locationId: string; + locationId?: string; /** * Optional location where the output (in JSON format) should be stored. * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) @@ -835,11 +839,11 @@ export namespace videointelligence_v1 { * google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request * URIs](/storage/docs/reference-uris). */ - outputUri: string; + outputUri?: string; /** * Additional video context and/or feature-specific parameters. */ - videoContext: Schema$GoogleCloudVideointelligenceV1_VideoContext; + videoContext?: Schema$GoogleCloudVideointelligenceV1_VideoContext; } /** * Video annotation response. Included in the `response` field of the @@ -850,7 +854,7 @@ export namespace videointelligence_v1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1_VideoAnnotationResults[]; } /** @@ -860,16 +864,16 @@ export namespace videointelligence_v1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -880,7 +884,7 @@ export namespace videointelligence_v1 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; } /** * Config for EXPLICIT_CONTENT_DETECTION. @@ -891,7 +895,7 @@ export namespace videointelligence_v1 { * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; } /** * Video frame level annotation results for explicit content. @@ -900,12 +904,12 @@ export namespace videointelligence_v1 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Label annotation. @@ -916,19 +920,19 @@ export namespace videointelligence_v1 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; } /** * Config for LABEL_DETECTION. @@ -939,19 +943,19 @@ export namespace videointelligence_v1 { * video-level labels or segment-level labels. If unspecified, defaults to * `SHOT_MODE`. */ - labelDetectionMode: string; + labelDetectionMode?: string; /** * Model to use for label detection. Supported values: * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; /** * Whether the video has been shot from a stationary (i.e. non-moving) * camera. When set to true, might improve detection accuracy for moving * objects. Should be used with `SHOT_AND_FRAME_MODE` enabled. */ - stationaryCamera: boolean; + stationaryCamera?: boolean; } /** * Video frame level annotation results for label detection. @@ -960,12 +964,12 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -974,11 +978,11 @@ export namespace videointelligence_v1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1_VideoSegment; } /** * Config for SHOT_CHANGE_DETECTION. @@ -989,7 +993,7 @@ export namespace videointelligence_v1 { * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; } /** * Annotation progress for a single video. @@ -999,20 +1003,20 @@ export namespace videointelligence_v1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -1022,38 +1026,38 @@ export namespace videointelligence_v1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentAnnotation; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; } /** @@ -1063,23 +1067,23 @@ export namespace videointelligence_v1 { /** * Config for EXPLICIT_CONTENT_DETECTION. */ - explicitContentDetectionConfig: + explicitContentDetectionConfig?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentDetectionConfig; /** * Config for LABEL_DETECTION. */ - labelDetectionConfig: + labelDetectionConfig?: Schema$GoogleCloudVideointelligenceV1_LabelDetectionConfig; /** * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video is * treated as a single segment. */ - segments: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; /** * Config for SHOT_CHANGE_DETECTION. */ - shotChangeDetectionConfig: + shotChangeDetectionConfig?: Schema$GoogleCloudVideointelligenceV1_ShotChangeDetectionConfig; } /** @@ -1090,12 +1094,12 @@ export namespace videointelligence_v1 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * The request message for Operations.CancelOperation. @@ -1108,11 +1112,11 @@ export namespace videointelligence_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$GoogleLongrunning_Operation[]; + operations?: Schema$GoogleLongrunning_Operation[]; } /** * This resource represents a long-running operation that is the result of a @@ -1124,24 +1128,24 @@ export namespace videointelligence_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1151,7 +1155,7 @@ export namespace videointelligence_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -1201,20 +1205,21 @@ export namespace videointelligence_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Operations { root: Videointelligence; constructor(root: Videointelligence) { @@ -1248,28 +1253,39 @@ export namespace videointelligence_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): AxiosPromise; cancel( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$Cancel, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + cancel( + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1308,28 +1324,39 @@ export namespace videointelligence_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$Delete, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1367,27 +1394,38 @@ export namespace videointelligence_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): + get(params?: Params$Resource$Operations$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Operations$Get, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): + void; + get(callback: BodyResponseCallback): + void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1435,30 +1473,42 @@ export namespace videointelligence_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleLongrunning_ListOperationsResponse>): void; + list( + params: Params$Resource$Operations$List, + callback: BodyResponseCallback< Schema$GoogleLongrunning_ListOperationsResponse>): void; + list(callback: BodyResponseCallback< + Schema$GoogleLongrunning_ListOperationsResponse>): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback< Schema$GoogleLongrunning_ListOperationsResponse>): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1483,6 +1533,68 @@ export namespace videointelligence_v1 { } } + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$GoogleLongrunning_CancelOperationRequest; + } + export interface Params$Resource$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Videos { root: Videointelligence; constructor(root: Videointelligence) { @@ -1510,29 +1622,42 @@ export namespace videointelligence_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotate(params?: any, options?: MethodOptions): + annotate(params?: Params$Resource$Videos$Annotate, options?: MethodOptions): AxiosPromise; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videos$Annotate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videos$Annotate, + callback: BodyResponseCallback): + void; + annotate(callback: + BodyResponseCallback): + void; + annotate( + paramsOrCallback?: Params$Resource$Videos$Annotate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Annotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Annotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1556,4 +1681,16 @@ export namespace videointelligence_v1 { } } } + + export interface Params$Resource$Videos$Annotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudVideointelligenceV1_AnnotateVideoRequest; + } } diff --git a/src/apis/videointelligence/v1beta1.ts b/src/apis/videointelligence/v1beta1.ts index bf5cbd648c3..afc2b80b9e4 100644 --- a/src/apis/videointelligence/v1beta1.ts +++ b/src/apis/videointelligence/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace videointelligence_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * Cloud Video Intelligence API * @@ -74,7 +77,7 @@ export namespace videointelligence_v1beta1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress[]; } /** @@ -84,12 +87,12 @@ export namespace videointelligence_v1beta1 { /** * Requested video annotation features. */ - features: string[]; + features?: string[]; /** * The video data bytes. Encoding: base64. If unset, the input video(s) * should be specified via `input_uri`. If set, `input_uri` should be unset. */ - inputContent: string; + inputContent?: string; /** * Input video location. Currently, only [Google Cloud * Storage](https://cloud.google.com/storage/) URIs are supported, which @@ -102,14 +105,14 @@ export namespace videointelligence_v1beta1 { * embedded in the request as `input_content`. If set, `input_content` * should be unset. */ - inputUri: string; + inputUri?: string; /** * Optional cloud region where annotation should take place. Supported cloud * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no * region is specified, a region will be determined based on video file * location. */ - locationId: string; + locationId?: string; /** * Optional location where the output (in JSON format) should be stored. * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) @@ -118,11 +121,11 @@ export namespace videointelligence_v1beta1 { * google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request * URIs](/storage/docs/reference-uris). */ - outputUri: string; + outputUri?: string; /** * Additional video context and/or feature-specific parameters. */ - videoContext: Schema$GoogleCloudVideointelligenceV1beta1_VideoContext; + videoContext?: Schema$GoogleCloudVideointelligenceV1beta1_VideoContext; } /** * Video annotation response. Included in the `response` field of the @@ -133,7 +136,7 @@ export namespace videointelligence_v1beta1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults[]; } /** @@ -143,15 +146,15 @@ export namespace videointelligence_v1beta1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; /** * Where the label was detected and with what confidence. */ - locations: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; + locations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; } /** * Label location. @@ -160,18 +163,18 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Label level. */ - level: string; + level?: string; /** * Video segment. Set to [-1, -1] for video-level labels. Set to [timestamp, * timestamp] for frame-level labels. Otherwise, corresponds to one of * `AnnotateSpec.segments` (if specified) or to shot boundaries (if * requested). */ - segment: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; } /** * Safe search annotation (based on per-frame visual signals only). If no @@ -184,28 +187,28 @@ export namespace videointelligence_v1beta1 { /** * Likelihood of adult content. */ - adult: string; + adult?: string; /** * Likelihood of medical content. */ - medical: string; + medical?: string; /** * Likelihood of racy content. */ - racy: string; + racy?: string; /** * Likelihood that an obvious modification was made to the original version * to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Video time offset in microseconds. */ - timeOffset: string; + timeOffset?: string; /** * Likelihood of violent content. */ - violent: string; + violent?: string; } /** * Annotation progress for a single video. @@ -215,20 +218,20 @@ export namespace videointelligence_v1beta1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -238,26 +241,26 @@ export namespace videointelligence_v1beta1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations. There is exactly one element for each unique label. */ - labelAnnotations: + labelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelAnnotation[]; /** * Safe search annotations. */ - safeSearchAnnotations: + safeSearchAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; } /** * Video context and/or feature-specific parameters. @@ -268,34 +271,34 @@ export namespace videointelligence_v1beta1 { * addition to video-level labels or segment-level labels. If unspecified, * defaults to `SHOT_MODE`. */ - labelDetectionMode: string; + labelDetectionMode?: string; /** * Model to use for label detection. Supported values: "latest" * and "stable" (the default). */ - labelDetectionModel: string; + labelDetectionModel?: string; /** * Model to use for safe search detection. Supported values: * "latest" and "stable" (the default). */ - safeSearchDetectionModel: string; + safeSearchDetectionModel?: string; /** * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video is * treated as a single segment. */ - segments: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; /** * Model to use for shot change detection. Supported values: * "latest" and "stable" (the default). */ - shotChangeDetectionModel: string; + shotChangeDetectionModel?: string; /** * Whether the video has been shot from a stationary (i.e. non-moving) * camera. When set to true, might improve detection accuracy for moving * objects. */ - stationaryCamera: boolean; + stationaryCamera?: boolean; } /** * Video segment. @@ -304,11 +307,11 @@ export namespace videointelligence_v1beta1 { /** * End offset in microseconds (inclusive). Unset means 0. */ - endTimeOffset: string; + endTimeOffset?: string; /** * Start offset in microseconds (inclusive). Unset means 0. */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -319,7 +322,7 @@ export namespace videointelligence_v1beta1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress[]; } /** @@ -331,7 +334,7 @@ export namespace videointelligence_v1beta1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults[]; } /** @@ -341,16 +344,16 @@ export namespace videointelligence_v1beta1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -361,7 +364,7 @@ export namespace videointelligence_v1beta1 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -370,12 +373,12 @@ export namespace videointelligence_v1beta1 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Label annotation. @@ -386,19 +389,19 @@ export namespace videointelligence_v1beta1 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1beta2_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1beta2_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -407,12 +410,12 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -421,11 +424,11 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; } /** * Annotation progress for a single video. @@ -435,20 +438,20 @@ export namespace videointelligence_v1beta1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -458,38 +461,38 @@ export namespace videointelligence_v1beta1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; } /** @@ -500,12 +503,12 @@ export namespace videointelligence_v1beta1 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -516,7 +519,7 @@ export namespace videointelligence_v1beta1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress[]; } /** @@ -528,7 +531,7 @@ export namespace videointelligence_v1beta1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults[]; } /** @@ -538,11 +541,11 @@ export namespace videointelligence_v1beta1 { /** * Emotion entry. */ - emotion: string; + emotion?: string; /** * Confidence score. */ - score: number; + score?: number; } /** * Detected entity from video analysis. @@ -551,16 +554,16 @@ export namespace videointelligence_v1beta1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -571,7 +574,8 @@ export namespace videointelligence_v1beta1 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; + frames?: + Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -580,12 +584,12 @@ export namespace videointelligence_v1beta1 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Face detection annotation. @@ -594,11 +598,11 @@ export namespace videointelligence_v1beta1 { /** * All video frames where a face was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; /** * All video segments where a face was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; } /** * Face detection attribute. @@ -607,11 +611,11 @@ export namespace videointelligence_v1beta1 { /** * Emotion attributes. */ - emotions: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; + emotions?: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; /** * Normalized Bounding box. */ - normalizedBoundingBox: + normalizedBoundingBox?: Schema$GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox; } /** @@ -622,13 +626,13 @@ export namespace videointelligence_v1beta1 { * Face attributes in a frame. There can be more than one attributes if the * same face is detected in multiple locations within the current frame. */ - attributes: + attributes?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute[]; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for face detection. @@ -637,7 +641,7 @@ export namespace videointelligence_v1beta1 { /** * Video segment where a face was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; } /** * Label annotation. @@ -648,19 +652,19 @@ export namespace videointelligence_v1beta1 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -669,12 +673,12 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -683,11 +687,11 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; } /** * Normalized bounding box. The normalized vertex coordinates are relative to @@ -697,19 +701,19 @@ export namespace videointelligence_v1beta1 { /** * Bottom Y coordinate. */ - bottom: number; + bottom?: number; /** * Left X coordinate. */ - left: number; + left?: number; /** * Right X coordinate. */ - right: number; + right?: number; /** * Top Y coordinate. */ - top: number; + top?: number; } /** * Alternative hypotheses (a.k.a. n-best list). @@ -724,16 +728,16 @@ export namespace videointelligence_v1beta1 { * The default of 0.0 is a sentinel value indicating `confidence` was not * set. */ - confidence: number; + confidence?: number; /** * Output only. Transcript text representing the words that the user spoke. */ - transcript: string; + transcript?: string; /** * Output only. A list of word-specific information for each recognized * word. */ - words: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; + words?: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; } /** * A speech recognition result corresponding to a portion of the audio. @@ -746,7 +750,7 @@ export namespace videointelligence_v1beta1 { * probable, as ranked by the recognizer. */ // clang-format off - alternatives: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; + alternatives?: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; // clang-format on } /** @@ -757,20 +761,20 @@ export namespace videointelligence_v1beta1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -780,49 +784,49 @@ export namespace videointelligence_v1beta1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation; /** * Face detection annotations. */ - faceDetectionAnnotations: + faceDetectionAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation[]; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Speech transcription. */ - speechTranscriptions: + speechTranscriptions?: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription[]; } /** @@ -833,12 +837,12 @@ export namespace videointelligence_v1beta1 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Word-specific information for recognized words. Word information is only @@ -852,18 +856,18 @@ export namespace videointelligence_v1beta1 { * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - endTime: string; + endTime?: string; /** * Output only. Time offset relative to the beginning of the audio, and * corresponding to the start of the spoken word. This field is only set if * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - startTime: string; + startTime?: string; /** * Output only. The word corresponding to this set of information. */ - word: string; + word?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -874,7 +878,7 @@ export namespace videointelligence_v1beta1 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1_VideoAnnotationProgress[]; } /** @@ -886,7 +890,7 @@ export namespace videointelligence_v1beta1 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1_VideoAnnotationResults[]; } /** @@ -896,16 +900,16 @@ export namespace videointelligence_v1beta1 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -916,7 +920,7 @@ export namespace videointelligence_v1beta1 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -925,12 +929,12 @@ export namespace videointelligence_v1beta1 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Label annotation. @@ -941,19 +945,19 @@ export namespace videointelligence_v1beta1 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -962,12 +966,12 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -976,11 +980,11 @@ export namespace videointelligence_v1beta1 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1_VideoSegment; } /** * Annotation progress for a single video. @@ -990,20 +994,20 @@ export namespace videointelligence_v1beta1 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -1013,38 +1017,38 @@ export namespace videointelligence_v1beta1 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentAnnotation; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; } /** @@ -1055,12 +1059,12 @@ export namespace videointelligence_v1beta1 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * This resource represents a long-running operation that is the result of a @@ -1072,24 +1076,24 @@ export namespace videointelligence_v1beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1099,7 +1103,7 @@ export namespace videointelligence_v1beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The `Status` type defines a logical error model that is suitable for @@ -1141,20 +1145,21 @@ export namespace videointelligence_v1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Videos { root: Videointelligence; constructor(root: Videointelligence) { @@ -1182,29 +1187,42 @@ export namespace videointelligence_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotate(params?: any, options?: MethodOptions): + annotate(params?: Params$Resource$Videos$Annotate, options?: MethodOptions): AxiosPromise; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videos$Annotate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videos$Annotate, + callback: BodyResponseCallback): + void; + annotate(callback: + BodyResponseCallback): + void; + annotate( + paramsOrCallback?: Params$Resource$Videos$Annotate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Annotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Annotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1228,4 +1246,16 @@ export namespace videointelligence_v1beta1 { } } } + + export interface Params$Resource$Videos$Annotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest; + } } diff --git a/src/apis/videointelligence/v1beta2.ts b/src/apis/videointelligence/v1beta2.ts index 3f7e0f6011b..4e33f13544f 100644 --- a/src/apis/videointelligence/v1beta2.ts +++ b/src/apis/videointelligence/v1beta2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace videointelligence_v1beta2 { + export interface Options extends GlobalOptions { version: 'v1beta2'; } + /** * Cloud Video Intelligence API * @@ -74,7 +77,7 @@ export namespace videointelligence_v1beta2 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress[]; } /** @@ -86,7 +89,7 @@ export namespace videointelligence_v1beta2 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults[]; } /** @@ -96,15 +99,15 @@ export namespace videointelligence_v1beta2 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; /** * Where the label was detected and with what confidence. */ - locations: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; + locations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelLocation[]; } /** * Label location. @@ -113,18 +116,18 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Label level. */ - level: string; + level?: string; /** * Video segment. Set to [-1, -1] for video-level labels. Set to [timestamp, * timestamp] for frame-level labels. Otherwise, corresponds to one of * `AnnotateSpec.segments` (if specified) or to shot boundaries (if * requested). */ - segment: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment; } /** * Safe search annotation (based on per-frame visual signals only). If no @@ -137,28 +140,28 @@ export namespace videointelligence_v1beta2 { /** * Likelihood of adult content. */ - adult: string; + adult?: string; /** * Likelihood of medical content. */ - medical: string; + medical?: string; /** * Likelihood of racy content. */ - racy: string; + racy?: string; /** * Likelihood that an obvious modification was made to the original version * to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Video time offset in microseconds. */ - timeOffset: string; + timeOffset?: string; /** * Likelihood of violent content. */ - violent: string; + violent?: string; } /** * Annotation progress for a single video. @@ -168,20 +171,20 @@ export namespace videointelligence_v1beta2 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -191,26 +194,26 @@ export namespace videointelligence_v1beta2 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations. There is exactly one element for each unique label. */ - labelAnnotations: + labelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_LabelAnnotation[]; /** * Safe search annotations. */ - safeSearchAnnotations: + safeSearchAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta1_VideoSegment[]; } /** * Video segment. @@ -219,11 +222,11 @@ export namespace videointelligence_v1beta2 { /** * End offset in microseconds (inclusive). Unset means 0. */ - endTimeOffset: string; + endTimeOffset?: string; /** * Start offset in microseconds (inclusive). Unset means 0. */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -234,7 +237,7 @@ export namespace videointelligence_v1beta2 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress[]; } /** @@ -244,12 +247,12 @@ export namespace videointelligence_v1beta2 { /** * Requested video annotation features. */ - features: string[]; + features?: string[]; /** * The video data bytes. If unset, the input video(s) should be specified * via `input_uri`. If set, `input_uri` should be unset. */ - inputContent: string; + inputContent?: string; /** * Input video location. Currently, only [Google Cloud * Storage](https://cloud.google.com/storage/) URIs are supported, which @@ -262,14 +265,14 @@ export namespace videointelligence_v1beta2 { * embedded in the request as `input_content`. If set, `input_content` * should be unset. */ - inputUri: string; + inputUri?: string; /** * Optional cloud region where annotation should take place. Supported cloud * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no * region is specified, a region will be determined based on video file * location. */ - locationId: string; + locationId?: string; /** * Optional location where the output (in JSON format) should be stored. * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) @@ -278,11 +281,11 @@ export namespace videointelligence_v1beta2 { * google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request * URIs](/storage/docs/reference-uris). */ - outputUri: string; + outputUri?: string; /** * Additional video context and/or feature-specific parameters. */ - videoContext: Schema$GoogleCloudVideointelligenceV1beta2_VideoContext; + videoContext?: Schema$GoogleCloudVideointelligenceV1beta2_VideoContext; } /** * Video annotation response. Included in the `response` field of the @@ -293,7 +296,7 @@ export namespace videointelligence_v1beta2 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults[]; } /** @@ -303,16 +306,16 @@ export namespace videointelligence_v1beta2 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -323,7 +326,7 @@ export namespace videointelligence_v1beta2 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[]; } /** * Config for EXPLICIT_CONTENT_DETECTION. @@ -334,7 +337,7 @@ export namespace videointelligence_v1beta2 { * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; } /** * Video frame level annotation results for explicit content. @@ -343,12 +346,12 @@ export namespace videointelligence_v1beta2 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Label annotation. @@ -359,19 +362,19 @@ export namespace videointelligence_v1beta2 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1beta2_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1beta2_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1beta2_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1beta2_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1beta2_LabelSegment[]; } /** * Config for LABEL_DETECTION. @@ -382,19 +385,19 @@ export namespace videointelligence_v1beta2 { * video-level labels or segment-level labels. If unspecified, defaults to * `SHOT_MODE`. */ - labelDetectionMode: string; + labelDetectionMode?: string; /** * Model to use for label detection. Supported values: * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; /** * Whether the video has been shot from a stationary (i.e. non-moving) * camera. When set to true, might improve detection accuracy for moving * objects. Should be used with `SHOT_AND_FRAME_MODE` enabled. */ - stationaryCamera: boolean; + stationaryCamera?: boolean; } /** * Video frame level annotation results for label detection. @@ -403,12 +406,12 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -417,11 +420,11 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment; } /** * Config for SHOT_CHANGE_DETECTION. @@ -432,7 +435,7 @@ export namespace videointelligence_v1beta2 { * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; } /** * Annotation progress for a single video. @@ -442,20 +445,20 @@ export namespace videointelligence_v1beta2 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -465,38 +468,38 @@ export namespace videointelligence_v1beta2 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1beta2_LabelAnnotation[]; } /** @@ -506,23 +509,23 @@ export namespace videointelligence_v1beta2 { /** * Config for EXPLICIT_CONTENT_DETECTION. */ - explicitContentDetectionConfig: + explicitContentDetectionConfig?: Schema$GoogleCloudVideointelligenceV1beta2_ExplicitContentDetectionConfig; /** * Config for LABEL_DETECTION. */ - labelDetectionConfig: + labelDetectionConfig?: Schema$GoogleCloudVideointelligenceV1beta2_LabelDetectionConfig; /** * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video is * treated as a single segment. */ - segments: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1beta2_VideoSegment[]; /** * Config for SHOT_CHANGE_DETECTION. */ - shotChangeDetectionConfig: + shotChangeDetectionConfig?: Schema$GoogleCloudVideointelligenceV1beta2_ShotChangeDetectionConfig; } /** @@ -533,12 +536,12 @@ export namespace videointelligence_v1beta2 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -549,7 +552,7 @@ export namespace videointelligence_v1beta2 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress[]; } /** @@ -561,7 +564,7 @@ export namespace videointelligence_v1beta2 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults[]; } /** @@ -571,11 +574,11 @@ export namespace videointelligence_v1beta2 { /** * Emotion entry. */ - emotion: string; + emotion?: string; /** * Confidence score. */ - score: number; + score?: number; } /** * Detected entity from video analysis. @@ -584,16 +587,16 @@ export namespace videointelligence_v1beta2 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -604,7 +607,8 @@ export namespace videointelligence_v1beta2 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; + frames?: + Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -613,12 +617,12 @@ export namespace videointelligence_v1beta2 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Face detection annotation. @@ -627,11 +631,11 @@ export namespace videointelligence_v1beta2 { /** * All video frames where a face was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame[]; /** * All video segments where a face was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceSegment[]; } /** * Face detection attribute. @@ -640,11 +644,11 @@ export namespace videointelligence_v1beta2 { /** * Emotion attributes. */ - emotions: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; + emotions?: Schema$GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute[]; /** * Normalized Bounding box. */ - normalizedBoundingBox: + normalizedBoundingBox?: Schema$GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox; } /** @@ -655,13 +659,13 @@ export namespace videointelligence_v1beta2 { * Face attributes in a frame. There can be more than one attributes if the * same face is detected in multiple locations within the current frame. */ - attributes: + attributes?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute[]; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for face detection. @@ -670,7 +674,7 @@ export namespace videointelligence_v1beta2 { /** * Video segment where a face was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; } /** * Label annotation. @@ -681,19 +685,19 @@ export namespace videointelligence_v1beta2 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1p1beta1_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -702,12 +706,12 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -716,11 +720,11 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment; } /** * Normalized bounding box. The normalized vertex coordinates are relative to @@ -730,19 +734,19 @@ export namespace videointelligence_v1beta2 { /** * Bottom Y coordinate. */ - bottom: number; + bottom?: number; /** * Left X coordinate. */ - left: number; + left?: number; /** * Right X coordinate. */ - right: number; + right?: number; /** * Top Y coordinate. */ - top: number; + top?: number; } /** * Alternative hypotheses (a.k.a. n-best list). @@ -757,16 +761,16 @@ export namespace videointelligence_v1beta2 { * The default of 0.0 is a sentinel value indicating `confidence` was not * set. */ - confidence: number; + confidence?: number; /** * Output only. Transcript text representing the words that the user spoke. */ - transcript: string; + transcript?: string; /** * Output only. A list of word-specific information for each recognized * word. */ - words: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; + words?: Schema$GoogleCloudVideointelligenceV1p1beta1_WordInfo[]; } /** * A speech recognition result corresponding to a portion of the audio. @@ -779,7 +783,7 @@ export namespace videointelligence_v1beta2 { * probable, as ranked by the recognizer. */ // clang-format off - alternatives: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; + alternatives?: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[]; // clang-format on } /** @@ -790,20 +794,20 @@ export namespace videointelligence_v1beta2 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -813,49 +817,49 @@ export namespace videointelligence_v1beta2 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation; /** * Face detection annotations. */ - faceDetectionAnnotations: + faceDetectionAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation[]; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[]; /** * Speech transcription. */ - speechTranscriptions: + speechTranscriptions?: Schema$GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription[]; } /** @@ -866,12 +870,12 @@ export namespace videointelligence_v1beta2 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * Word-specific information for recognized words. Word information is only @@ -885,18 +889,18 @@ export namespace videointelligence_v1beta2 { * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - endTime: string; + endTime?: string; /** * Output only. Time offset relative to the beginning of the audio, and * corresponding to the start of the spoken word. This field is only set if * `enable_word_time_offsets=true` and only in the top hypothesis. This is * an experimental feature and the accuracy of the time offset can vary. */ - startTime: string; + startTime?: string; /** * Output only. The word corresponding to this set of information. */ - word: string; + word?: string; } /** * Video annotation progress. Included in the `metadata` field of the @@ -907,7 +911,7 @@ export namespace videointelligence_v1beta2 { /** * Progress metadata for all videos specified in `AnnotateVideoRequest`. */ - annotationProgress: + annotationProgress?: Schema$GoogleCloudVideointelligenceV1_VideoAnnotationProgress[]; } /** @@ -919,7 +923,7 @@ export namespace videointelligence_v1beta2 { /** * Annotation results for all videos specified in `AnnotateVideoRequest`. */ - annotationResults: + annotationResults?: Schema$GoogleCloudVideointelligenceV1_VideoAnnotationResults[]; } /** @@ -929,16 +933,16 @@ export namespace videointelligence_v1beta2 { /** * Textual description, e.g. `Fixed-gear bicycle`. */ - description: string; + description?: string; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - entityId: string; + entityId?: string; /** * Language code for `description` in BCP-47 format. */ - languageCode: string; + languageCode?: string; } /** * Explicit content annotation (based on per-frame visual signals only). If no @@ -949,7 +953,7 @@ export namespace videointelligence_v1beta2 { /** * All video frames where explicit content was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentFrame[]; } /** * Video frame level annotation results for explicit content. @@ -958,12 +962,12 @@ export namespace videointelligence_v1beta2 { /** * Likelihood of the pornography content.. */ - pornographyLikelihood: string; + pornographyLikelihood?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Label annotation. @@ -974,19 +978,19 @@ export namespace videointelligence_v1beta2 { * `Terrier` the category is likely `dog`. And in some cases there might be * more than one categories e.g. `Terrier` could also be a `pet`. */ - categoryEntities: Schema$GoogleCloudVideointelligenceV1_Entity[]; + categoryEntities?: Schema$GoogleCloudVideointelligenceV1_Entity[]; /** * Detected entity. */ - entity: Schema$GoogleCloudVideointelligenceV1_Entity; + entity?: Schema$GoogleCloudVideointelligenceV1_Entity; /** * All video frames where a label was detected. */ - frames: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; + frames?: Schema$GoogleCloudVideointelligenceV1_LabelFrame[]; /** * All video segments where a label was detected. */ - segments: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; + segments?: Schema$GoogleCloudVideointelligenceV1_LabelSegment[]; } /** * Video frame level annotation results for label detection. @@ -995,12 +999,12 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Time-offset, relative to the beginning of the video, corresponding to the * video frame for this location. */ - timeOffset: string; + timeOffset?: string; } /** * Video segment level annotation results for label detection. @@ -1009,11 +1013,11 @@ export namespace videointelligence_v1beta2 { /** * Confidence that the label is accurate. Range: [0, 1]. */ - confidence: number; + confidence?: number; /** * Video segment where a label was detected. */ - segment: Schema$GoogleCloudVideointelligenceV1_VideoSegment; + segment?: Schema$GoogleCloudVideointelligenceV1_VideoSegment; } /** * Annotation progress for a single video. @@ -1023,20 +1027,20 @@ export namespace videointelligence_v1beta2 { * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Approximate percentage processed thus far. Guaranteed to be 100 when * fully processed. */ - progressPercent: number; + progressPercent?: number; /** * Time when the request was received. */ - startTime: string; + startTime?: string; /** * Time of the most recent update. */ - updateTime: string; + updateTime?: string; } /** * Annotation results for a single video. @@ -1046,38 +1050,38 @@ export namespace videointelligence_v1beta2 { * If set, indicates an error. Note that for a single `AnnotateVideoRequest` * some videos may succeed and some may fail. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Explicit content annotation. */ - explicitAnnotation: + explicitAnnotation?: Schema$GoogleCloudVideointelligenceV1_ExplicitContentAnnotation; /** * Label annotations on frame level. There is exactly one element for each * unique label. */ - frameLabelAnnotations: + frameLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; /** * Video file location in [Google Cloud * Storage](https://cloud.google.com/storage/). */ - inputUri: string; + inputUri?: string; /** * Label annotations on video level or user specified segment level. There * is exactly one element for each unique label. */ - segmentLabelAnnotations: + segmentLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; /** * Shot annotations. Each shot is represented as a video segment. */ - shotAnnotations: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; + shotAnnotations?: Schema$GoogleCloudVideointelligenceV1_VideoSegment[]; /** * Label annotations on shot level. There is exactly one element for each * unique label. */ - shotLabelAnnotations: + shotLabelAnnotations?: Schema$GoogleCloudVideointelligenceV1_LabelAnnotation[]; } /** @@ -1088,12 +1092,12 @@ export namespace videointelligence_v1beta2 { * Time-offset, relative to the beginning of the video, corresponding to the * end of the segment (inclusive). */ - endTimeOffset: string; + endTimeOffset?: string; /** * Time-offset, relative to the beginning of the video, corresponding to the * start of the segment (inclusive). */ - startTimeOffset: string; + startTimeOffset?: string; } /** * This resource represents a long-running operation that is the result of a @@ -1105,24 +1109,24 @@ export namespace videointelligence_v1beta2 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$GoogleRpc_Status; + error?: Schema$GoogleRpc_Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1132,7 +1136,7 @@ export namespace videointelligence_v1beta2 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The `Status` type defines a logical error model that is suitable for @@ -1174,20 +1178,21 @@ export namespace videointelligence_v1beta2 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Videos { root: Videointelligence; constructor(root: Videointelligence) { @@ -1215,29 +1220,42 @@ export namespace videointelligence_v1beta2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotate(params?: any, options?: MethodOptions): + annotate(params?: Params$Resource$Videos$Annotate, options?: MethodOptions): AxiosPromise; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videos$Annotate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videos$Annotate, + callback: BodyResponseCallback): + void; + annotate(callback: + BodyResponseCallback): + void; + annotate( + paramsOrCallback?: Params$Resource$Videos$Annotate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Annotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Annotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; const parameters = { @@ -1261,4 +1279,16 @@ export namespace videointelligence_v1beta2 { } } } + + export interface Params$Resource$Videos$Annotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudVideointelligenceV1beta2_AnnotateVideoRequest; + } } diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index f42b476fd6d..e3aea705e43 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace vision_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Cloud Vision API * @@ -79,15 +82,15 @@ export namespace vision_v1 { /** * Requested features. */ - features: Schema$Feature[]; + features?: Schema$Feature[]; /** * The image to be processed. */ - image: Schema$Image; + image?: Schema$Image; /** * Additional context that may accompany the image. */ - imageContext: Schema$ImageContext; + imageContext?: Schema$ImageContext; } /** * Response to an image annotation request. @@ -96,51 +99,51 @@ export namespace vision_v1 { /** * If present, crop hints have completed successfully. */ - cropHintsAnnotation: Schema$CropHintsAnnotation; + cropHintsAnnotation?: Schema$CropHintsAnnotation; /** * If set, represents the error message for the operation. Note that * filled-in image annotations are guaranteed to be correct, even when * `error` is set. */ - error: Schema$Status; + error?: Schema$Status; /** * If present, face detection has completed successfully. */ - faceAnnotations: Schema$FaceAnnotation[]; + faceAnnotations?: Schema$FaceAnnotation[]; /** * If present, text (OCR) detection or document (OCR) text detection has * completed successfully. This annotation provides the structural hierarchy * for the OCR detected text. */ - fullTextAnnotation: Schema$TextAnnotation; + fullTextAnnotation?: Schema$TextAnnotation; /** * If present, image properties were extracted successfully. */ - imagePropertiesAnnotation: Schema$ImageProperties; + imagePropertiesAnnotation?: Schema$ImageProperties; /** * If present, label detection has completed successfully. */ - labelAnnotations: Schema$EntityAnnotation[]; + labelAnnotations?: Schema$EntityAnnotation[]; /** * If present, landmark detection has completed successfully. */ - landmarkAnnotations: Schema$EntityAnnotation[]; + landmarkAnnotations?: Schema$EntityAnnotation[]; /** * If present, logo detection has completed successfully. */ - logoAnnotations: Schema$EntityAnnotation[]; + logoAnnotations?: Schema$EntityAnnotation[]; /** * If present, safe-search annotation has completed successfully. */ - safeSearchAnnotation: Schema$SafeSearchAnnotation; + safeSearchAnnotation?: Schema$SafeSearchAnnotation; /** * If present, text (OCR) detection has completed successfully. */ - textAnnotations: Schema$EntityAnnotation[]; + textAnnotations?: Schema$EntityAnnotation[]; /** * If present, web detection has completed successfully. */ - webDetection: Schema$WebDetection; + webDetection?: Schema$WebDetection; } /** * Multiple image annotation requests are batched into a single service call. @@ -149,7 +152,7 @@ export namespace vision_v1 { /** * Individual image annotation requests for this batch. */ - requests: Schema$AnnotateImageRequest[]; + requests?: Schema$AnnotateImageRequest[]; } /** * Response to a batch image annotation request. @@ -158,7 +161,7 @@ export namespace vision_v1 { /** * Individual responses to image annotation requests within the batch. */ - responses: Schema$AnnotateImageResponse[]; + responses?: Schema$AnnotateImageResponse[]; } /** * Logical element on the page. @@ -167,7 +170,7 @@ export namespace vision_v1 { /** * Detected block type (text, image etc) for this block. */ - blockType: string; + blockType?: string; /** * The bounding box for the block. The vertices are in the order of * top-left, top-right, bottom-right, bottom-left. When a rotation of the @@ -178,19 +181,19 @@ export namespace vision_v1 { * 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; + boundingBox?: Schema$BoundingPoly; /** * Confidence of the OCR results on the block. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * List of paragraphs in this block (if this blocks is of type text). */ - paragraphs: Schema$Paragraph[]; + paragraphs?: Schema$Paragraph[]; /** * Additional information detected for the block. */ - property: Schema$TextProperty; + property?: Schema$TextProperty; } /** * A bounding polygon for the detected image annotation. @@ -199,7 +202,7 @@ export namespace vision_v1 { /** * The bounding polygon vertices. */ - vertices: Schema$Vertex[]; + vertices?: Schema$Vertex[]; } /** * The request message for Operations.CancelOperation. @@ -271,19 +274,19 @@ export namespace vision_v1 { * omitted, this color object is to be rendered as a solid color (as if the * alpha value had been explicitly given with a value of 1.0). */ - alpha: number; + alpha?: number; /** * The amount of blue in the color as a value in the interval [0, 1]. */ - blue: number; + blue?: number; /** * The amount of green in the color as a value in the interval [0, 1]. */ - green: number; + green?: number; /** * The amount of red in the color as a value in the interval [0, 1]. */ - red: number; + red?: number; } /** * Color information consists of RGB channels, score, and the fraction of the @@ -293,16 +296,16 @@ export namespace vision_v1 { /** * RGB components of the color. */ - color: Schema$Color; + color?: Schema$Color; /** * The fraction of pixels the color occupies in the image. Value in range * [0, 1]. */ - pixelFraction: number; + pixelFraction?: number; /** * Image-specific score for this color. Value in range [0, 1]. */ - score: number; + score?: number; } /** * Single crop hint that is used to generate a new crop when serving an image. @@ -312,16 +315,16 @@ export namespace vision_v1 { * The bounding polygon for the crop region. The coordinates of the bounding * box are in the original image's scale, as returned in `ImageParams`. */ - boundingPoly: Schema$BoundingPoly; + boundingPoly?: Schema$BoundingPoly; /** * Confidence of this being a salient region. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Fraction of importance of this salient region with respect to the * original image. */ - importanceFraction: number; + importanceFraction?: number; } /** * Set of crop hints that are used to generate new crops when serving images. @@ -330,7 +333,7 @@ export namespace vision_v1 { /** * Crop hint results. */ - cropHints: Schema$CropHint[]; + cropHints?: Schema$CropHint[]; } /** * Parameters for crop hints annotation request. @@ -344,7 +347,7 @@ export namespace vision_v1 { * limited to a maximum of 16; any aspect ratios provided after the 16th are * ignored. */ - aspectRatios: number[]; + aspectRatios?: number[]; } /** * Detected start or end of a structural component. @@ -353,11 +356,11 @@ export namespace vision_v1 { /** * True if break prepends the element. */ - isPrefix: boolean; + isPrefix?: boolean; /** * Detected break type. */ - type: string; + type?: string; } /** * Detected language for a structural component. @@ -366,13 +369,13 @@ export namespace vision_v1 { /** * Confidence of detected language. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * The BCP-47 language code, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Set of dominant colors and their corresponding scores. @@ -381,7 +384,7 @@ export namespace vision_v1 { /** * RGB color values with their score and pixel fraction. */ - colors: Schema$ColorInfo[]; + colors?: Schema$ColorInfo[]; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -399,23 +402,23 @@ export namespace vision_v1 { * Image region to which this entity belongs. Not produced for * `LABEL_DETECTION` features. */ - boundingPoly: Schema$BoundingPoly; + boundingPoly?: Schema$BoundingPoly; /** * **Deprecated. Use `score` instead.** The accuracy of the entity detection * in an image. For example, for an image in which the "Eiffel * Tower" entity is detected, this field represents the confidence that * there is a tower in the query image. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Entity textual description, expressed in its `locale` language. */ - description: string; + description?: string; /** * The language code for the locale in which the entity textual * `description` is expressed. */ - locale: string; + locale?: string; /** * The location information for the detected entity. Multiple `LocationInfo` * elements can be present because one location may indicate the location of @@ -423,21 +426,21 @@ export namespace vision_v1 { * the place where the image was taken. Location information is usually * present for landmarks. */ - locations: Schema$LocationInfo[]; + locations?: Schema$LocationInfo[]; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - mid: string; + mid?: string; /** * Some entities may have optional user-supplied `Property` (name/value) * fields, such a score or string that qualifies the entity. */ - properties: Schema$Property[]; + properties?: Schema$Property[]; /** * Overall score of the result. Range [0, 1]. */ - score: number; + score?: number; /** * The relevancy of the ICA (Image Content Annotation) label to the image. * For example, the relevancy of "tower" is likely higher to an @@ -446,7 +449,7 @@ export namespace vision_v1 { * confidence that there is a tower in each image may be the same. Range [0, * 1]. */ - topicality: number; + topicality?: number; } /** * A face annotation object contains the results of face detection. @@ -455,11 +458,11 @@ export namespace vision_v1 { /** * Anger likelihood. */ - angerLikelihood: string; + angerLikelihood?: string; /** * Blurred likelihood. */ - blurredLikelihood: string; + blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box * are in the original image's scale, as returned in `ImageParams`. The @@ -469,11 +472,11 @@ export namespace vision_v1 { * (the polygon will be unbounded) if only a partial face appears in the * image to be annotated. */ - boundingPoly: Schema$BoundingPoly; + boundingPoly?: Schema$BoundingPoly; /** * Detection confidence. Range [0, 1]. */ - detectionConfidence: number; + detectionConfidence?: number; /** * The `fd_bounding_poly` bounding polygon is tighter than the * `boundingPoly`, and encloses only the skin part of the face. Typically, @@ -482,52 +485,52 @@ export namespace vision_v1 { * landmarker results, only on the initial face detection, hence the * <code>fd</code> (face detection) prefix. */ - fdBoundingPoly: Schema$BoundingPoly; + fdBoundingPoly?: Schema$BoundingPoly; /** * Headwear likelihood. */ - headwearLikelihood: string; + headwearLikelihood?: string; /** * Joy likelihood. */ - joyLikelihood: string; + joyLikelihood?: string; /** * Face landmarking confidence. Range [0, 1]. */ - landmarkingConfidence: number; + landmarkingConfidence?: number; /** * Detected face landmarks. */ - landmarks: Schema$Landmark[]; + landmarks?: Schema$Landmark[]; /** * Yaw angle, which indicates the leftward/rightward angle that the face is * pointing relative to the vertical plane perpendicular to the image. Range * [-180,180]. */ - panAngle: number; + panAngle?: number; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise * rotation of the face relative to the image vertical about the axis * perpendicular to the face. Range [-180,180]. */ - rollAngle: number; + rollAngle?: number; /** * Sorrow likelihood. */ - sorrowLikelihood: string; + sorrowLikelihood?: string; /** * Surprise likelihood. */ - surpriseLikelihood: string; + surpriseLikelihood?: string; /** * Pitch angle, which indicates the upwards/downwards angle that the face is * pointing relative to the image's horizontal plane. Range [-180,180]. */ - tiltAngle: number; + tiltAngle?: number; /** * Under-exposed likelihood. */ - underExposedLikelihood: string; + underExposedLikelihood?: string; } /** * The type of Google Cloud Vision API detection to perform, and the maximum @@ -539,17 +542,17 @@ export namespace vision_v1 { * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. */ - maxResults: number; + maxResults?: number; /** * Model to use for the feature. Supported values: * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; /** * The feature type. */ - type: string; + type?: string; } /** * Response to a single file annotation request. A file may contain one or @@ -559,11 +562,11 @@ export namespace vision_v1 { /** * Information about the file for which this response is generated. */ - inputConfig: Schema$GoogleCloudVisionV1p2beta1InputConfig; + inputConfig?: Schema$GoogleCloudVisionV1p2beta1InputConfig; /** * Individual responses to images found within the file. */ - responses: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; } /** * Response to an image annotation request. @@ -573,55 +576,57 @@ export namespace vision_v1 { * If present, contextual information is needed to understand where this * image comes from. */ - context: Schema$GoogleCloudVisionV1p2beta1ImageAnnotationContext; + context?: Schema$GoogleCloudVisionV1p2beta1ImageAnnotationContext; /** * If present, crop hints have completed successfully. */ - cropHintsAnnotation: Schema$GoogleCloudVisionV1p2beta1CropHintsAnnotation; + cropHintsAnnotation?: Schema$GoogleCloudVisionV1p2beta1CropHintsAnnotation; /** * If set, represents the error message for the operation. Note that * filled-in image annotations are guaranteed to be correct, even when * `error` is set. */ - error: Schema$Status; + error?: Schema$Status; /** * If present, face detection has completed successfully. */ - faceAnnotations: Schema$GoogleCloudVisionV1p2beta1FaceAnnotation[]; + faceAnnotations?: Schema$GoogleCloudVisionV1p2beta1FaceAnnotation[]; /** * If present, text (OCR) detection or document (OCR) text detection has * completed successfully. This annotation provides the structural hierarchy * for the OCR detected text. */ - fullTextAnnotation: Schema$GoogleCloudVisionV1p2beta1TextAnnotation; + fullTextAnnotation?: Schema$GoogleCloudVisionV1p2beta1TextAnnotation; /** * If present, image properties were extracted successfully. */ - imagePropertiesAnnotation: Schema$GoogleCloudVisionV1p2beta1ImageProperties; + imagePropertiesAnnotation?: + Schema$GoogleCloudVisionV1p2beta1ImageProperties; /** * If present, label detection has completed successfully. */ - labelAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + labelAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, landmark detection has completed successfully. */ - landmarkAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + landmarkAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, logo detection has completed successfully. */ - logoAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + logoAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, safe-search annotation has completed successfully. */ - safeSearchAnnotation: Schema$GoogleCloudVisionV1p2beta1SafeSearchAnnotation; + safeSearchAnnotation?: + Schema$GoogleCloudVisionV1p2beta1SafeSearchAnnotation; /** * If present, text (OCR) detection has completed successfully. */ - textAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + textAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, web detection has completed successfully. */ - webDetection: Schema$GoogleCloudVisionV1p2beta1WebDetection; + webDetection?: Schema$GoogleCloudVisionV1p2beta1WebDetection; } /** * The response for a single offline file annotation request. @@ -630,7 +635,7 @@ export namespace vision_v1 { /** * The output location and metadata from AsyncAnnotateFileRequest. */ - outputConfig: Schema$GoogleCloudVisionV1p2beta1OutputConfig; + outputConfig?: Schema$GoogleCloudVisionV1p2beta1OutputConfig; } /** * Response to an async batch file annotation request. @@ -640,7 +645,7 @@ export namespace vision_v1 { * The list of file annotation responses, one for each request in * AsyncBatchAnnotateFilesRequest. */ - responses: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]; } /** * Logical element on the page. @@ -649,7 +654,7 @@ export namespace vision_v1 { /** * Detected block type (text, image etc) for this block. */ - blockType: string; + blockType?: string; /** * The bounding box for the block. The vertices are in the order of * top-left, top-right, bottom-right, bottom-left. When a rotation of the @@ -660,19 +665,19 @@ export namespace vision_v1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results on the block. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * List of paragraphs in this block (if this blocks is of type text). */ - paragraphs: Schema$GoogleCloudVisionV1p2beta1Paragraph[]; + paragraphs?: Schema$GoogleCloudVisionV1p2beta1Paragraph[]; /** * Additional information detected for the block. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; } /** * A bounding polygon for the detected image annotation. @@ -681,11 +686,11 @@ export namespace vision_v1 { /** * The bounding polygon normalized vertices. */ - normalizedVertices: Schema$GoogleCloudVisionV1p2beta1NormalizedVertex[]; + normalizedVertices?: Schema$GoogleCloudVisionV1p2beta1NormalizedVertex[]; /** * The bounding polygon vertices. */ - vertices: Schema$GoogleCloudVisionV1p2beta1Vertex[]; + vertices?: Schema$GoogleCloudVisionV1p2beta1Vertex[]; } /** * Color information consists of RGB channels, score, and the fraction of the @@ -695,16 +700,16 @@ export namespace vision_v1 { /** * RGB components of the color. */ - color: Schema$Color; + color?: Schema$Color; /** * The fraction of pixels the color occupies in the image. Value in range * [0, 1]. */ - pixelFraction: number; + pixelFraction?: number; /** * Image-specific score for this color. Value in range [0, 1]. */ - score: number; + score?: number; } /** * Single crop hint that is used to generate a new crop when serving an image. @@ -714,16 +719,16 @@ export namespace vision_v1 { * The bounding polygon for the crop region. The coordinates of the bounding * box are in the original image's scale, as returned in `ImageParams`. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of this being a salient region. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Fraction of importance of this salient region with respect to the * original image. */ - importanceFraction: number; + importanceFraction?: number; } /** * Set of crop hints that are used to generate new crops when serving images. @@ -732,7 +737,7 @@ export namespace vision_v1 { /** * Crop hint results. */ - cropHints: Schema$GoogleCloudVisionV1p2beta1CropHint[]; + cropHints?: Schema$GoogleCloudVisionV1p2beta1CropHint[]; } /** * Set of dominant colors and their corresponding scores. @@ -741,7 +746,7 @@ export namespace vision_v1 { /** * RGB color values with their score and pixel fraction. */ - colors: Schema$GoogleCloudVisionV1p2beta1ColorInfo[]; + colors?: Schema$GoogleCloudVisionV1p2beta1ColorInfo[]; } /** * Set of detected entity features. @@ -751,23 +756,23 @@ export namespace vision_v1 { * Image region to which this entity belongs. Not produced for * `LABEL_DETECTION` features. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * **Deprecated. Use `score` instead.** The accuracy of the entity detection * in an image. For example, for an image in which the "Eiffel * Tower" entity is detected, this field represents the confidence that * there is a tower in the query image. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Entity textual description, expressed in its `locale` language. */ - description: string; + description?: string; /** * The language code for the locale in which the entity textual * `description` is expressed. */ - locale: string; + locale?: string; /** * The location information for the detected entity. Multiple `LocationInfo` * elements can be present because one location may indicate the location of @@ -775,21 +780,21 @@ export namespace vision_v1 { * the place where the image was taken. Location information is usually * present for landmarks. */ - locations: Schema$GoogleCloudVisionV1p2beta1LocationInfo[]; + locations?: Schema$GoogleCloudVisionV1p2beta1LocationInfo[]; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - mid: string; + mid?: string; /** * Some entities may have optional user-supplied `Property` (name/value) * fields, such a score or string that qualifies the entity. */ - properties: Schema$GoogleCloudVisionV1p2beta1Property[]; + properties?: Schema$GoogleCloudVisionV1p2beta1Property[]; /** * Overall score of the result. Range [0, 1]. */ - score: number; + score?: number; /** * The relevancy of the ICA (Image Content Annotation) label to the image. * For example, the relevancy of "tower" is likely higher to an @@ -798,7 +803,7 @@ export namespace vision_v1 { * confidence that there is a tower in each image may be the same. Range [0, * 1]. */ - topicality: number; + topicality?: number; } /** * A face annotation object contains the results of face detection. @@ -807,11 +812,11 @@ export namespace vision_v1 { /** * Anger likelihood. */ - angerLikelihood: string; + angerLikelihood?: string; /** * Blurred likelihood. */ - blurredLikelihood: string; + blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box * are in the original image's scale, as returned in `ImageParams`. The @@ -821,11 +826,11 @@ export namespace vision_v1 { * (the polygon will be unbounded) if only a partial face appears in the * image to be annotated. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Detection confidence. Range [0, 1]. */ - detectionConfidence: number; + detectionConfidence?: number; /** * The `fd_bounding_poly` bounding polygon is tighter than the * `boundingPoly`, and encloses only the skin part of the face. Typically, @@ -834,52 +839,52 @@ export namespace vision_v1 { * landmarker results, only on the initial face detection, hence the * <code>fd</code> (face detection) prefix. */ - fdBoundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + fdBoundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Headwear likelihood. */ - headwearLikelihood: string; + headwearLikelihood?: string; /** * Joy likelihood. */ - joyLikelihood: string; + joyLikelihood?: string; /** * Face landmarking confidence. Range [0, 1]. */ - landmarkingConfidence: number; + landmarkingConfidence?: number; /** * Detected face landmarks. */ - landmarks: Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]; + landmarks?: Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]; /** * Yaw angle, which indicates the leftward/rightward angle that the face is * pointing relative to the vertical plane perpendicular to the image. Range * [-180,180]. */ - panAngle: number; + panAngle?: number; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise * rotation of the face relative to the image vertical about the axis * perpendicular to the face. Range [-180,180]. */ - rollAngle: number; + rollAngle?: number; /** * Sorrow likelihood. */ - sorrowLikelihood: string; + sorrowLikelihood?: string; /** * Surprise likelihood. */ - surpriseLikelihood: string; + surpriseLikelihood?: string; /** * Pitch angle, which indicates the upwards/downwards angle that the face is * pointing relative to the image's horizontal plane. Range [-180,180]. */ - tiltAngle: number; + tiltAngle?: number; /** * Under-exposed likelihood. */ - underExposedLikelihood: string; + underExposedLikelihood?: string; } /** * A face-specific landmark (for example, a face feature). @@ -888,11 +893,11 @@ export namespace vision_v1 { /** * Face landmark position. */ - position: Schema$GoogleCloudVisionV1p2beta1Position; + position?: Schema$GoogleCloudVisionV1p2beta1Position; /** * Face landmark type. */ - type: string; + type?: string; } /** * The Google Cloud Storage location where the output will be written to. @@ -910,7 +915,7 @@ export namespace vision_v1 { * happen if, for example, the output JSON is too large and overflows into * multiple sharded files. */ - uri: string; + uri?: string; } /** * The Google Cloud Storage location where the input will be read from. @@ -920,7 +925,7 @@ export namespace vision_v1 { * Google Cloud Storage URI for the input file. This must only be a Google * Cloud Storage object. Wildcards are not currently supported. */ - uri: string; + uri?: string; } /** * If an image was produced from a file (e.g. a PDF), this message gives @@ -931,11 +936,11 @@ export namespace vision_v1 { * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. */ - pageNumber: number; + pageNumber?: number; /** * The URI of the file used to produce the image. */ - uri: string; + uri?: string; } /** * Stores image properties, such as dominant colors. @@ -944,7 +949,7 @@ export namespace vision_v1 { /** * If present, dominant colors completed successfully. */ - dominantColors: Schema$GoogleCloudVisionV1p2beta1DominantColorsAnnotation; + dominantColors?: Schema$GoogleCloudVisionV1p2beta1DominantColorsAnnotation; } /** * The desired input location and metadata. @@ -953,12 +958,12 @@ export namespace vision_v1 { /** * The Google Cloud Storage location to read the input from. */ - gcsSource: Schema$GoogleCloudVisionV1p2beta1GcsSource; + gcsSource?: Schema$GoogleCloudVisionV1p2beta1GcsSource; /** * The type of the file. Currently only "application/pdf" and * "image/tiff" are supported. Wildcards are not supported. */ - mimeType: string; + mimeType?: string; } /** * Detected entity location information. @@ -967,7 +972,7 @@ export namespace vision_v1 { /** * lat/long location coordinates. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; } /** * A vertex represents a 2D point in the image. NOTE: the normalized vertex @@ -977,11 +982,11 @@ export namespace vision_v1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Contains metadata for the BatchAnnotateImages operation. @@ -990,15 +995,15 @@ export namespace vision_v1 { /** * The time when the batch request was received. */ - createTime: string; + createTime?: string; /** * Current state of the batch operation. */ - state: string; + state?: string; /** * The time when the operation result was last updated. */ - updateTime: string; + updateTime?: string; } /** * The desired output location and metadata. @@ -1014,11 +1019,11 @@ export namespace vision_v1 { * GcsDestination, with potential future support for other output * configurations. */ - batchSize: number; + batchSize?: number; /** * The Google Cloud Storage location to write the output(s) to. */ - gcsDestination: Schema$GoogleCloudVisionV1p2beta1GcsDestination; + gcsDestination?: Schema$GoogleCloudVisionV1p2beta1GcsDestination; } /** * Detected page from OCR. @@ -1027,25 +1032,25 @@ export namespace vision_v1 { /** * List of blocks of text, images etc on this page. */ - blocks: Schema$GoogleCloudVisionV1p2beta1Block[]; + blocks?: Schema$GoogleCloudVisionV1p2beta1Block[]; /** * Confidence of the OCR results on the page. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Page height. For PDFs the unit is points. For images (including TIFFs) * the unit is pixels. */ - height: number; + height?: number; /** * Additional information detected on the page. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * Page width. For PDFs the unit is points. For images (including TIFFs) the * unit is pixels. */ - width: number; + width?: number; } /** * Structural unit of text representing a number of words in certain order. @@ -1061,19 +1066,19 @@ export namespace vision_v1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the paragraph. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the paragraph. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * List of words in this paragraph. */ - words: Schema$GoogleCloudVisionV1p2beta1Word[]; + words?: Schema$GoogleCloudVisionV1p2beta1Word[]; } /** * A 3D position in the image, used primarily for Face detection landmarks. A @@ -1084,15 +1089,15 @@ export namespace vision_v1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; /** * Z coordinate (or depth). */ - z: number; + z?: number; } /** * A `Property` consists of a user-supplied name/value pair. @@ -1101,15 +1106,15 @@ export namespace vision_v1 { /** * Name of the property. */ - name: string; + name?: string; /** * Value of numeric properties. */ - uint64Value: string; + uint64Value?: string; /** * Value of the property. */ - value: string; + value?: string; } /** * Set of features pertaining to the image, computed by computer vision @@ -1122,27 +1127,27 @@ export namespace vision_v1 { * contain elements such as nudity, pornographic images or cartoons, or * sexual activities. */ - adult: string; + adult?: string; /** * Likelihood that this is a medical image. */ - medical: string; + medical?: string; /** * Likelihood that the request image contains racy content. Racy content may * include (but is not limited to) skimpy or sheer clothing, strategically * covered nudity, lewd or provocative poses, or close-ups of sensitive body * areas. */ - racy: string; + racy?: string; /** * Spoof likelihood. The likelihood that an modification was made to the * image's canonical version to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Likelihood that this image contains violent content. */ - violence: string; + violence?: string; } /** * A single symbol representation. @@ -1158,19 +1163,19 @@ export namespace vision_v1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the symbol. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the symbol. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * The actual UTF-8 representation of the symbol. */ - text: string; + text?: string; } /** * TextAnnotation contains a structured representation of OCR extracted text. @@ -1185,11 +1190,11 @@ export namespace vision_v1 { /** * List of pages detected by OCR. */ - pages: Schema$GoogleCloudVisionV1p2beta1Page[]; + pages?: Schema$GoogleCloudVisionV1p2beta1Page[]; /** * UTF-8 text detected on the pages. */ - text: string; + text?: string; } /** * Detected start or end of a structural component. @@ -1198,11 +1203,11 @@ export namespace vision_v1 { /** * True if break prepends the element. */ - isPrefix: boolean; + isPrefix?: boolean; /** * Detected break type. */ - type: string; + type?: string; } /** * Detected language for a structural component. @@ -1211,13 +1216,13 @@ export namespace vision_v1 { /** * Confidence of detected language. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * The BCP-47 language code, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Additional information detected on the structural component. @@ -1226,11 +1231,12 @@ export namespace vision_v1 { /** * Detected start or end of a text segment. */ - detectedBreak: Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak; + detectedBreak?: + Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak; /** * A list of detected languages together with confidence. */ - detectedLanguages: + detectedLanguages?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage[]; } /** @@ -1241,11 +1247,11 @@ export namespace vision_v1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Relevant information for the image from the Internet. @@ -1254,33 +1260,34 @@ export namespace vision_v1 { /** * Best guess text labels for the request image. */ - bestGuessLabels: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; + bestGuessLabels?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; /** * Fully matching images from the Internet. Can include resized copies of * the query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Web pages containing the matching images from the Internet. */ - pagesWithMatchingImages: + pagesWithMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebPage[]; /** * Partial matching images from the Internet. Those images are similar * enough to share some key-point features. For example an original image * will likely have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * The visually similar image results. */ - visuallySimilarImages: + visuallySimilarImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Deduced entities from similar images on the Internet. */ - webEntities: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebEntity[]; + webEntities?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebEntity[]; } /** * Entity deduced from similar images on the Internet. @@ -1289,16 +1296,16 @@ export namespace vision_v1 { /** * Canonical description of the entity, in English. */ - description: string; + description?: string; /** * Opaque entity ID. */ - entityId: string; + entityId?: string; /** * Overall relevancy score for the entity. Not normalized and not comparable * across different image queries. */ - score: number; + score?: number; } /** * Metadata for online images. @@ -1307,11 +1314,11 @@ export namespace vision_v1 { /** * (Deprecated) Overall relevancy score for the image. */ - score: number; + score?: number; /** * The result image URL. */ - url: string; + url?: string; } /** * Label to provide extra metadata for the web detection. @@ -1320,13 +1327,13 @@ export namespace vision_v1 { /** * Label for extra metadata. */ - label: string; + label?: string; /** * The BCP-47 language code for `label`, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Metadata for web pages. @@ -1336,26 +1343,27 @@ export namespace vision_v1 { * Fully matching images on the page. Can include resized copies of the * query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Title for the web page, may contain HTML markups. */ - pageTitle: string; + pageTitle?: string; /** * Partial matching images on the page. Those images are similar enough to * share some key-point features. For example an original image will likely * have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * (Deprecated) Overall relevancy score for the web page. */ - score: number; + score?: number; /** * The result web page URL. */ - url: string; + url?: string; } /** * A word representation. @@ -1371,20 +1379,20 @@ export namespace vision_v1 { * top-left corner it becomes: 2----3 | | 1----0 and the * vertice order will still be (0, 1, 2, 3). */ - boundingBox: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the word. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the word. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * List of symbols in the word. The order of the symbols follows the natural * reading order. */ - symbols: Schema$GoogleCloudVisionV1p2beta1Symbol[]; + symbols?: Schema$GoogleCloudVisionV1p2beta1Symbol[]; } /** * Client image to perform Google Cloud Vision API tasks over. @@ -1395,13 +1403,13 @@ export namespace vision_v1 { * `bytes` fields, protobuffers use a pure binary representation, whereas * JSON representations use base64. */ - content: string; + content?: string; /** * Google Cloud Storage image location, or publicly-accessible image URL. If * both `content` and `source` are provided for an image, `content` takes * precedence and is used to perform the image annotation request. */ - source: Schema$ImageSource; + source?: Schema$ImageSource; } /** * Image context and/or feature-specific parameters. @@ -1410,7 +1418,7 @@ export namespace vision_v1 { /** * Parameters for crop hints annotation request. */ - cropHintsParams: Schema$CropHintsParams; + cropHintsParams?: Schema$CropHintsParams; /** * List of languages to use for TEXT_DETECTION. In most cases, an empty * value yields the best results since it enables automatic language @@ -1421,15 +1429,15 @@ export namespace vision_v1 { * detection returns an error if one or more of the specified languages is * not one of the [supported languages](/vision/docs/languages). */ - languageHints: string[]; + languageHints?: string[]; /** * Not used. */ - latLongRect: Schema$LatLongRect; + latLongRect?: Schema$LatLongRect; /** * Parameters for web detection. */ - webDetectionParams: Schema$WebDetectionParams; + webDetectionParams?: Schema$WebDetectionParams; } /** * Stores image properties, such as dominant colors. @@ -1438,7 +1446,7 @@ export namespace vision_v1 { /** * If present, dominant colors completed successfully. */ - dominantColors: Schema$DominantColorsAnnotation; + dominantColors?: Schema$DominantColorsAnnotation; } /** * External image source (Google Cloud Storage or web URL image location). @@ -1451,7 +1459,7 @@ export namespace vision_v1 { * URIs](https://cloud.google.com/storage/docs/reference-uris) for more * info. */ - gcsImageUri: string; + gcsImageUri?: string; /** * 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 @@ -1466,7 +1474,7 @@ export namespace vision_v1 { * When both `gcs_image_uri` and `image_uri` are specified, `image_uri` * takes precedence. */ - imageUri: string; + imageUri?: string; } /** * A face-specific landmark (for example, a face feature). @@ -1475,11 +1483,11 @@ export namespace vision_v1 { /** * Face landmark position. */ - position: Schema$Position; + position?: Schema$Position; /** * Face landmark type. */ - type: string; + type?: string; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -1492,11 +1500,11 @@ export namespace vision_v1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * Rectangle determined by min and max `LatLng` pairs. @@ -1505,11 +1513,11 @@ export namespace vision_v1 { /** * Max lat/long pair. */ - maxLatLng: Schema$LatLng; + maxLatLng?: Schema$LatLng; /** * Min lat/long pair. */ - minLatLng: Schema$LatLng; + minLatLng?: Schema$LatLng; } /** * The response message for Operations.ListOperations. @@ -1518,11 +1526,11 @@ export namespace vision_v1 { /** * The standard List next-page token. */ - nextPageToken: string; + nextPageToken?: string; /** * A list of operations that matches the specified filter in the request. */ - operations: Schema$Operation[]; + operations?: Schema$Operation[]; } /** * Detected entity location information. @@ -1531,7 +1539,7 @@ export namespace vision_v1 { /** * lat/long location coordinates. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; } /** * This resource represents a long-running operation that is the result of a @@ -1543,24 +1551,24 @@ export namespace vision_v1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1570,7 +1578,7 @@ export namespace vision_v1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * Detected page from OCR. @@ -1579,25 +1587,25 @@ export namespace vision_v1 { /** * List of blocks of text, images etc on this page. */ - blocks: Schema$Block[]; + blocks?: Schema$Block[]; /** * Confidence of the OCR results on the page. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Page height. For PDFs the unit is points. For images (including TIFFs) * the unit is pixels. */ - height: number; + height?: number; /** * Additional information detected on the page. */ - property: Schema$TextProperty; + property?: Schema$TextProperty; /** * Page width. For PDFs the unit is points. For images (including TIFFs) the * unit is pixels. */ - width: number; + width?: number; } /** * Structural unit of text representing a number of words in certain order. @@ -1613,19 +1621,19 @@ export namespace vision_v1 { * 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; + boundingBox?: Schema$BoundingPoly; /** * Confidence of the OCR results for the paragraph. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the paragraph. */ - property: Schema$TextProperty; + property?: Schema$TextProperty; /** * List of words in this paragraph. */ - words: Schema$Word[]; + words?: Schema$Word[]; } /** * A 3D position in the image, used primarily for Face detection landmarks. A @@ -1636,15 +1644,15 @@ export namespace vision_v1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; /** * Z coordinate (or depth). */ - z: number; + z?: number; } /** * A `Property` consists of a user-supplied name/value pair. @@ -1653,15 +1661,15 @@ export namespace vision_v1 { /** * Name of the property. */ - name: string; + name?: string; /** * Value of numeric properties. */ - uint64Value: string; + uint64Value?: string; /** * Value of the property. */ - value: string; + value?: string; } /** * Set of features pertaining to the image, computed by computer vision @@ -1674,27 +1682,27 @@ export namespace vision_v1 { * contain elements such as nudity, pornographic images or cartoons, or * sexual activities. */ - adult: string; + adult?: string; /** * Likelihood that this is a medical image. */ - medical: string; + medical?: string; /** * Likelihood that the request image contains racy content. Racy content may * include (but is not limited to) skimpy or sheer clothing, strategically * covered nudity, lewd or provocative poses, or close-ups of sensitive body * areas. */ - racy: string; + racy?: string; /** * Spoof likelihood. The likelihood that an modification was made to the * image's canonical version to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Likelihood that this image contains violent content. */ - violence: string; + violence?: string; } /** * The `Status` type defines a logical error model that is suitable for @@ -1736,18 +1744,18 @@ export namespace vision_v1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } /** * A single symbol representation. @@ -1763,19 +1771,19 @@ export namespace vision_v1 { * 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; + boundingBox?: Schema$BoundingPoly; /** * Confidence of the OCR results for the symbol. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the symbol. */ - property: Schema$TextProperty; + property?: Schema$TextProperty; /** * The actual UTF-8 representation of the symbol. */ - text: string; + text?: string; } /** * TextAnnotation contains a structured representation of OCR extracted text. @@ -1790,11 +1798,11 @@ export namespace vision_v1 { /** * List of pages detected by OCR. */ - pages: Schema$Page[]; + pages?: Schema$Page[]; /** * UTF-8 text detected on the pages. */ - text: string; + text?: string; } /** * Additional information detected on the structural component. @@ -1803,11 +1811,11 @@ export namespace vision_v1 { /** * Detected start or end of a text segment. */ - detectedBreak: Schema$DetectedBreak; + detectedBreak?: Schema$DetectedBreak; /** * A list of detected languages together with confidence. */ - detectedLanguages: Schema$DetectedLanguage[]; + detectedLanguages?: Schema$DetectedLanguage[]; } /** * A vertex represents a 2D point in the image. NOTE: the vertex coordinates @@ -1817,11 +1825,11 @@ export namespace vision_v1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Relevant information for the image from the Internet. @@ -1830,30 +1838,30 @@ export namespace vision_v1 { /** * Best guess text labels for the request image. */ - bestGuessLabels: Schema$WebLabel[]; + bestGuessLabels?: Schema$WebLabel[]; /** * Fully matching images from the Internet. Can include resized copies of * the query image. */ - fullMatchingImages: Schema$WebImage[]; + fullMatchingImages?: Schema$WebImage[]; /** * Web pages containing the matching images from the Internet. */ - pagesWithMatchingImages: Schema$WebPage[]; + pagesWithMatchingImages?: Schema$WebPage[]; /** * Partial matching images from the Internet. Those images are similar * enough to share some key-point features. For example an original image * will likely have partial matching for its crops. */ - partialMatchingImages: Schema$WebImage[]; + partialMatchingImages?: Schema$WebImage[]; /** * The visually similar image results. */ - visuallySimilarImages: Schema$WebImage[]; + visuallySimilarImages?: Schema$WebImage[]; /** * Deduced entities from similar images on the Internet. */ - webEntities: Schema$WebEntity[]; + webEntities?: Schema$WebEntity[]; } /** * Parameters for web detection request. @@ -1862,7 +1870,7 @@ export namespace vision_v1 { /** * Whether to include results derived from the geo information in the image. */ - includeGeoResults: boolean; + includeGeoResults?: boolean; } /** * Entity deduced from similar images on the Internet. @@ -1871,16 +1879,16 @@ export namespace vision_v1 { /** * Canonical description of the entity, in English. */ - description: string; + description?: string; /** * Opaque entity ID. */ - entityId: string; + entityId?: string; /** * Overall relevancy score for the entity. Not normalized and not comparable * across different image queries. */ - score: number; + score?: number; } /** * Metadata for online images. @@ -1889,11 +1897,11 @@ export namespace vision_v1 { /** * (Deprecated) Overall relevancy score for the image. */ - score: number; + score?: number; /** * The result image URL. */ - url: string; + url?: string; } /** * Label to provide extra metadata for the web detection. @@ -1902,13 +1910,13 @@ export namespace vision_v1 { /** * Label for extra metadata. */ - label: string; + label?: string; /** * The BCP-47 language code for `label`, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Metadata for web pages. @@ -1918,25 +1926,25 @@ export namespace vision_v1 { * Fully matching images on the page. Can include resized copies of the * query image. */ - fullMatchingImages: Schema$WebImage[]; + fullMatchingImages?: Schema$WebImage[]; /** * Title for the web page, may contain HTML markups. */ - pageTitle: string; + pageTitle?: string; /** * Partial matching images on the page. Those images are similar enough to * share some key-point features. For example an original image will likely * have partial matching for its crops. */ - partialMatchingImages: Schema$WebImage[]; + partialMatchingImages?: Schema$WebImage[]; /** * (Deprecated) Overall relevancy score for the web page. */ - score: number; + score?: number; /** * The result web page URL. */ - url: string; + url?: string; } /** * A word representation. @@ -1952,22 +1960,23 @@ export namespace vision_v1 { * top-left corner it becomes: 2----3 | | 1----0 and the * vertice order will still be (0, 1, 2, 3). */ - boundingBox: Schema$BoundingPoly; + boundingBox?: Schema$BoundingPoly; /** * Confidence of the OCR results for the word. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the word. */ - property: Schema$TextProperty; + property?: Schema$TextProperty; /** * List of symbols in the word. The order of the symbols follows the natural * reading order. */ - symbols: Schema$Symbol[]; + symbols?: Schema$Symbol[]; } + export class Resource$Images { root: Vision; constructor(root: Vision) { @@ -2046,29 +2055,42 @@ export namespace vision_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotate(params?: any, options?: MethodOptions): + annotate(params?: Params$Resource$Images$Annotate, options?: MethodOptions): AxiosPromise; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Images$Annotate, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; annotate( - params?: any, - options?: MethodOptions| + params: Params$Resource$Images$Annotate, + callback: BodyResponseCallback): + void; + annotate(callback: + BodyResponseCallback): + void; + annotate( + paramsOrCallback?: Params$Resource$Images$Annotate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Annotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Annotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -2092,6 +2114,19 @@ export namespace vision_v1 { } } + export interface Params$Resource$Images$Annotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$BatchAnnotateImagesRequest; + } + + export class Resource$Locations { root: Vision; operations: Resource$Locations$Operations; @@ -2105,6 +2140,8 @@ export namespace vision_v1 { return this.root; } } + + export class Resource$Locations$Operations { root: Vision; constructor(root: Vision) { @@ -2131,23 +2168,35 @@ export namespace vision_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Locations$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Locations$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Locations$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Locations$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Locations$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -2169,6 +2218,19 @@ export namespace vision_v1 { } } + export interface Params$Resource$Locations$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + + export class Resource$Operations { root: Vision; @@ -2203,25 +2265,37 @@ export namespace vision_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel(params?: any, options?: MethodOptions): AxiosPromise; + cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): + AxiosPromise; + cancel( + params: Params$Resource$Operations$Cancel, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Cancel, + callback: BodyResponseCallback): void; + cancel(callback: BodyResponseCallback): void; cancel( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Cancel| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Cancel; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -2259,25 +2333,37 @@ export namespace vision_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Operations$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Operations$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Operations$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Operations$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -2313,23 +2399,34 @@ export namespace vision_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Operations$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Operations$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Operations$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Operations$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -2374,28 +2471,38 @@ export namespace vision_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Operations$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Operations$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Operations$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Operations$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Operations$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -2416,4 +2523,65 @@ export namespace vision_v1 { } } } + + export interface Params$Resource$Operations$Cancel { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Operations$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Operations$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Operations$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } } diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index 1875bae681a..6b522ffdb62 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace vision_v1p1beta1 { + export interface Options extends GlobalOptions { version: 'v1p1beta1'; } + /** * Cloud Vision API * @@ -133,19 +136,19 @@ export namespace vision_v1p1beta1 { * omitted, this color object is to be rendered as a solid color (as if the * alpha value had been explicitly given with a value of 1.0). */ - alpha: number; + alpha?: number; /** * The amount of blue in the color as a value in the interval [0, 1]. */ - blue: number; + blue?: number; /** * The amount of green in the color as a value in the interval [0, 1]. */ - green: number; + green?: number; /** * The amount of red in the color as a value in the interval [0, 1]. */ - red: number; + red?: number; } /** * Request for performing Google Cloud Vision API tasks over a user-provided @@ -155,15 +158,15 @@ export namespace vision_v1p1beta1 { /** * Requested features. */ - features: Schema$GoogleCloudVisionV1p1beta1Feature[]; + features?: Schema$GoogleCloudVisionV1p1beta1Feature[]; /** * The image to be processed. */ - image: Schema$GoogleCloudVisionV1p1beta1Image; + image?: Schema$GoogleCloudVisionV1p1beta1Image; /** * Additional context that may accompany the image. */ - imageContext: Schema$GoogleCloudVisionV1p1beta1ImageContext; + imageContext?: Schema$GoogleCloudVisionV1p1beta1ImageContext; } /** * Response to an image annotation request. @@ -172,51 +175,53 @@ export namespace vision_v1p1beta1 { /** * If present, crop hints have completed successfully. */ - cropHintsAnnotation: Schema$GoogleCloudVisionV1p1beta1CropHintsAnnotation; + cropHintsAnnotation?: Schema$GoogleCloudVisionV1p1beta1CropHintsAnnotation; /** * If set, represents the error message for the operation. Note that * filled-in image annotations are guaranteed to be correct, even when * `error` is set. */ - error: Schema$Status; + error?: Schema$Status; /** * If present, face detection has completed successfully. */ - faceAnnotations: Schema$GoogleCloudVisionV1p1beta1FaceAnnotation[]; + faceAnnotations?: Schema$GoogleCloudVisionV1p1beta1FaceAnnotation[]; /** * If present, text (OCR) detection or document (OCR) text detection has * completed successfully. This annotation provides the structural hierarchy * for the OCR detected text. */ - fullTextAnnotation: Schema$GoogleCloudVisionV1p1beta1TextAnnotation; + fullTextAnnotation?: Schema$GoogleCloudVisionV1p1beta1TextAnnotation; /** * If present, image properties were extracted successfully. */ - imagePropertiesAnnotation: Schema$GoogleCloudVisionV1p1beta1ImageProperties; + imagePropertiesAnnotation?: + Schema$GoogleCloudVisionV1p1beta1ImageProperties; /** * If present, label detection has completed successfully. */ - labelAnnotations: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; + labelAnnotations?: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; /** * If present, landmark detection has completed successfully. */ - landmarkAnnotations: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; + landmarkAnnotations?: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; /** * If present, logo detection has completed successfully. */ - logoAnnotations: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; + logoAnnotations?: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; /** * If present, safe-search annotation has completed successfully. */ - safeSearchAnnotation: Schema$GoogleCloudVisionV1p1beta1SafeSearchAnnotation; + safeSearchAnnotation?: + Schema$GoogleCloudVisionV1p1beta1SafeSearchAnnotation; /** * If present, text (OCR) detection has completed successfully. */ - textAnnotations: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; + textAnnotations?: Schema$GoogleCloudVisionV1p1beta1EntityAnnotation[]; /** * If present, web detection has completed successfully. */ - webDetection: Schema$GoogleCloudVisionV1p1beta1WebDetection; + webDetection?: Schema$GoogleCloudVisionV1p1beta1WebDetection; } /** * Multiple image annotation requests are batched into a single service call. @@ -225,7 +230,7 @@ export namespace vision_v1p1beta1 { /** * Individual image annotation requests for this batch. */ - requests: Schema$GoogleCloudVisionV1p1beta1AnnotateImageRequest[]; + requests?: Schema$GoogleCloudVisionV1p1beta1AnnotateImageRequest[]; } /** * Response to a batch image annotation request. @@ -234,7 +239,7 @@ export namespace vision_v1p1beta1 { /** * Individual responses to image annotation requests within the batch. */ - responses: Schema$GoogleCloudVisionV1p1beta1AnnotateImageResponse[]; + responses?: Schema$GoogleCloudVisionV1p1beta1AnnotateImageResponse[]; } /** * Logical element on the page. @@ -243,7 +248,7 @@ export namespace vision_v1p1beta1 { /** * Detected block type (text, image etc) for this block. */ - blockType: string; + blockType?: string; /** * The bounding box for the block. The vertices are in the order of * top-left, top-right, bottom-right, bottom-left. When a rotation of the @@ -254,19 +259,19 @@ export namespace vision_v1p1beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Confidence of the OCR results on the block. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * List of paragraphs in this block (if this blocks is of type text). */ - paragraphs: Schema$GoogleCloudVisionV1p1beta1Paragraph[]; + paragraphs?: Schema$GoogleCloudVisionV1p1beta1Paragraph[]; /** * Additional information detected for the block. */ - property: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; } /** * A bounding polygon for the detected image annotation. @@ -275,7 +280,7 @@ export namespace vision_v1p1beta1 { /** * The bounding polygon vertices. */ - vertices: Schema$GoogleCloudVisionV1p1beta1Vertex[]; + vertices?: Schema$GoogleCloudVisionV1p1beta1Vertex[]; } /** * Color information consists of RGB channels, score, and the fraction of the @@ -285,16 +290,16 @@ export namespace vision_v1p1beta1 { /** * RGB components of the color. */ - color: Schema$Color; + color?: Schema$Color; /** * The fraction of pixels the color occupies in the image. Value in range * [0, 1]. */ - pixelFraction: number; + pixelFraction?: number; /** * Image-specific score for this color. Value in range [0, 1]. */ - score: number; + score?: number; } /** * Single crop hint that is used to generate a new crop when serving an image. @@ -304,16 +309,16 @@ export namespace vision_v1p1beta1 { * The bounding polygon for the crop region. The coordinates of the bounding * box are in the original image's scale, as returned in `ImageParams`. */ - boundingPoly: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Confidence of this being a salient region. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Fraction of importance of this salient region with respect to the * original image. */ - importanceFraction: number; + importanceFraction?: number; } /** * Set of crop hints that are used to generate new crops when serving images. @@ -322,7 +327,7 @@ export namespace vision_v1p1beta1 { /** * Crop hint results. */ - cropHints: Schema$GoogleCloudVisionV1p1beta1CropHint[]; + cropHints?: Schema$GoogleCloudVisionV1p1beta1CropHint[]; } /** * Parameters for crop hints annotation request. @@ -336,7 +341,7 @@ export namespace vision_v1p1beta1 { * limited to a maximum of 16; any aspect ratios provided after the 16th are * ignored. */ - aspectRatios: number[]; + aspectRatios?: number[]; } /** * Set of dominant colors and their corresponding scores. @@ -345,7 +350,7 @@ export namespace vision_v1p1beta1 { /** * RGB color values with their score and pixel fraction. */ - colors: Schema$GoogleCloudVisionV1p1beta1ColorInfo[]; + colors?: Schema$GoogleCloudVisionV1p1beta1ColorInfo[]; } /** * Set of detected entity features. @@ -355,23 +360,23 @@ export namespace vision_v1p1beta1 { * Image region to which this entity belongs. Not produced for * `LABEL_DETECTION` features. */ - boundingPoly: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * **Deprecated. Use `score` instead.** The accuracy of the entity detection * in an image. For example, for an image in which the "Eiffel * Tower" entity is detected, this field represents the confidence that * there is a tower in the query image. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Entity textual description, expressed in its `locale` language. */ - description: string; + description?: string; /** * The language code for the locale in which the entity textual * `description` is expressed. */ - locale: string; + locale?: string; /** * The location information for the detected entity. Multiple `LocationInfo` * elements can be present because one location may indicate the location of @@ -379,21 +384,21 @@ export namespace vision_v1p1beta1 { * the place where the image was taken. Location information is usually * present for landmarks. */ - locations: Schema$GoogleCloudVisionV1p1beta1LocationInfo[]; + locations?: Schema$GoogleCloudVisionV1p1beta1LocationInfo[]; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - mid: string; + mid?: string; /** * Some entities may have optional user-supplied `Property` (name/value) * fields, such a score or string that qualifies the entity. */ - properties: Schema$GoogleCloudVisionV1p1beta1Property[]; + properties?: Schema$GoogleCloudVisionV1p1beta1Property[]; /** * Overall score of the result. Range [0, 1]. */ - score: number; + score?: number; /** * The relevancy of the ICA (Image Content Annotation) label to the image. * For example, the relevancy of "tower" is likely higher to an @@ -402,7 +407,7 @@ export namespace vision_v1p1beta1 { * confidence that there is a tower in each image may be the same. Range [0, * 1]. */ - topicality: number; + topicality?: number; } /** * A face annotation object contains the results of face detection. @@ -411,11 +416,11 @@ export namespace vision_v1p1beta1 { /** * Anger likelihood. */ - angerLikelihood: string; + angerLikelihood?: string; /** * Blurred likelihood. */ - blurredLikelihood: string; + blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box * are in the original image's scale, as returned in `ImageParams`. The @@ -425,11 +430,11 @@ export namespace vision_v1p1beta1 { * (the polygon will be unbounded) if only a partial face appears in the * image to be annotated. */ - boundingPoly: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Detection confidence. Range [0, 1]. */ - detectionConfidence: number; + detectionConfidence?: number; /** * The `fd_bounding_poly` bounding polygon is tighter than the * `boundingPoly`, and encloses only the skin part of the face. Typically, @@ -438,52 +443,52 @@ export namespace vision_v1p1beta1 { * landmarker results, only on the initial face detection, hence the * <code>fd</code> (face detection) prefix. */ - fdBoundingPoly: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; + fdBoundingPoly?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Headwear likelihood. */ - headwearLikelihood: string; + headwearLikelihood?: string; /** * Joy likelihood. */ - joyLikelihood: string; + joyLikelihood?: string; /** * Face landmarking confidence. Range [0, 1]. */ - landmarkingConfidence: number; + landmarkingConfidence?: number; /** * Detected face landmarks. */ - landmarks: Schema$GoogleCloudVisionV1p1beta1FaceAnnotationLandmark[]; + landmarks?: Schema$GoogleCloudVisionV1p1beta1FaceAnnotationLandmark[]; /** * Yaw angle, which indicates the leftward/rightward angle that the face is * pointing relative to the vertical plane perpendicular to the image. Range * [-180,180]. */ - panAngle: number; + panAngle?: number; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise * rotation of the face relative to the image vertical about the axis * perpendicular to the face. Range [-180,180]. */ - rollAngle: number; + rollAngle?: number; /** * Sorrow likelihood. */ - sorrowLikelihood: string; + sorrowLikelihood?: string; /** * Surprise likelihood. */ - surpriseLikelihood: string; + surpriseLikelihood?: string; /** * Pitch angle, which indicates the upwards/downwards angle that the face is * pointing relative to the image's horizontal plane. Range [-180,180]. */ - tiltAngle: number; + tiltAngle?: number; /** * Under-exposed likelihood. */ - underExposedLikelihood: string; + underExposedLikelihood?: string; } /** * A face-specific landmark (for example, a face feature). @@ -492,11 +497,11 @@ export namespace vision_v1p1beta1 { /** * Face landmark position. */ - position: Schema$GoogleCloudVisionV1p1beta1Position; + position?: Schema$GoogleCloudVisionV1p1beta1Position; /** * Face landmark type. */ - type: string; + type?: string; } /** * The type of Google Cloud Vision API detection to perform, and the maximum @@ -508,17 +513,17 @@ export namespace vision_v1p1beta1 { * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. */ - maxResults: number; + maxResults?: number; /** * Model to use for the feature. Supported values: * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; /** * The feature type. */ - type: string; + type?: string; } /** * Client image to perform Google Cloud Vision API tasks over. @@ -529,13 +534,13 @@ export namespace vision_v1p1beta1 { * `bytes` fields, protobuffers use a pure binary representation, whereas * JSON representations use base64. */ - content: string; + content?: string; /** * Google Cloud Storage image location, or publicly-accessible image URL. If * both `content` and `source` are provided for an image, `content` takes * precedence and is used to perform the image annotation request. */ - source: Schema$GoogleCloudVisionV1p1beta1ImageSource; + source?: Schema$GoogleCloudVisionV1p1beta1ImageSource; } /** * Image context and/or feature-specific parameters. @@ -544,7 +549,7 @@ export namespace vision_v1p1beta1 { /** * Parameters for crop hints annotation request. */ - cropHintsParams: Schema$GoogleCloudVisionV1p1beta1CropHintsParams; + cropHintsParams?: Schema$GoogleCloudVisionV1p1beta1CropHintsParams; /** * List of languages to use for TEXT_DETECTION. In most cases, an empty * value yields the best results since it enables automatic language @@ -555,15 +560,15 @@ export namespace vision_v1p1beta1 { * detection returns an error if one or more of the specified languages is * not one of the [supported languages](/vision/docs/languages). */ - languageHints: string[]; + languageHints?: string[]; /** * Not used. */ - latLongRect: Schema$GoogleCloudVisionV1p1beta1LatLongRect; + latLongRect?: Schema$GoogleCloudVisionV1p1beta1LatLongRect; /** * Parameters for web detection. */ - webDetectionParams: Schema$GoogleCloudVisionV1p1beta1WebDetectionParams; + webDetectionParams?: Schema$GoogleCloudVisionV1p1beta1WebDetectionParams; } /** * Stores image properties, such as dominant colors. @@ -572,7 +577,7 @@ export namespace vision_v1p1beta1 { /** * If present, dominant colors completed successfully. */ - dominantColors: Schema$GoogleCloudVisionV1p1beta1DominantColorsAnnotation; + dominantColors?: Schema$GoogleCloudVisionV1p1beta1DominantColorsAnnotation; } /** * External image source (Google Cloud Storage or web URL image location). @@ -585,7 +590,7 @@ export namespace vision_v1p1beta1 { * URIs](https://cloud.google.com/storage/docs/reference-uris) for more * info. */ - gcsImageUri: string; + gcsImageUri?: string; /** * 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 @@ -600,7 +605,7 @@ export namespace vision_v1p1beta1 { * When both `gcs_image_uri` and `image_uri` are specified, `image_uri` * takes precedence. */ - imageUri: string; + imageUri?: string; } /** * Rectangle determined by min and max `LatLng` pairs. @@ -609,11 +614,11 @@ export namespace vision_v1p1beta1 { /** * Max lat/long pair. */ - maxLatLng: Schema$LatLng; + maxLatLng?: Schema$LatLng; /** * Min lat/long pair. */ - minLatLng: Schema$LatLng; + minLatLng?: Schema$LatLng; } /** * Detected entity location information. @@ -622,7 +627,7 @@ export namespace vision_v1p1beta1 { /** * lat/long location coordinates. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; } /** * Detected page from OCR. @@ -631,25 +636,25 @@ export namespace vision_v1p1beta1 { /** * List of blocks of text, images etc on this page. */ - blocks: Schema$GoogleCloudVisionV1p1beta1Block[]; + blocks?: Schema$GoogleCloudVisionV1p1beta1Block[]; /** * Confidence of the OCR results on the page. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Page height. For PDFs the unit is points. For images (including TIFFs) * the unit is pixels. */ - height: number; + height?: number; /** * Additional information detected on the page. */ - property: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; /** * Page width. For PDFs the unit is points. For images (including TIFFs) the * unit is pixels. */ - width: number; + width?: number; } /** * Structural unit of text representing a number of words in certain order. @@ -665,19 +670,19 @@ export namespace vision_v1p1beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Confidence of the OCR results for the paragraph. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the paragraph. */ - property: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; /** * List of words in this paragraph. */ - words: Schema$GoogleCloudVisionV1p1beta1Word[]; + words?: Schema$GoogleCloudVisionV1p1beta1Word[]; } /** * A 3D position in the image, used primarily for Face detection landmarks. A @@ -688,15 +693,15 @@ export namespace vision_v1p1beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; /** * Z coordinate (or depth). */ - z: number; + z?: number; } /** * A `Property` consists of a user-supplied name/value pair. @@ -705,15 +710,15 @@ export namespace vision_v1p1beta1 { /** * Name of the property. */ - name: string; + name?: string; /** * Value of numeric properties. */ - uint64Value: string; + uint64Value?: string; /** * Value of the property. */ - value: string; + value?: string; } /** * Set of features pertaining to the image, computed by computer vision @@ -726,27 +731,27 @@ export namespace vision_v1p1beta1 { * contain elements such as nudity, pornographic images or cartoons, or * sexual activities. */ - adult: string; + adult?: string; /** * Likelihood that this is a medical image. */ - medical: string; + medical?: string; /** * Likelihood that the request image contains racy content. Racy content may * include (but is not limited to) skimpy or sheer clothing, strategically * covered nudity, lewd or provocative poses, or close-ups of sensitive body * areas. */ - racy: string; + racy?: string; /** * Spoof likelihood. The likelihood that an modification was made to the * image's canonical version to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Likelihood that this image contains violent content. */ - violence: string; + violence?: string; } /** * A single symbol representation. @@ -762,19 +767,19 @@ export namespace vision_v1p1beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Confidence of the OCR results for the symbol. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the symbol. */ - property: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; /** * The actual UTF-8 representation of the symbol. */ - text: string; + text?: string; } /** * TextAnnotation contains a structured representation of OCR extracted text. @@ -789,11 +794,11 @@ export namespace vision_v1p1beta1 { /** * List of pages detected by OCR. */ - pages: Schema$GoogleCloudVisionV1p1beta1Page[]; + pages?: Schema$GoogleCloudVisionV1p1beta1Page[]; /** * UTF-8 text detected on the pages. */ - text: string; + text?: string; } /** * Detected start or end of a structural component. @@ -802,11 +807,11 @@ export namespace vision_v1p1beta1 { /** * True if break prepends the element. */ - isPrefix: boolean; + isPrefix?: boolean; /** * Detected break type. */ - type: string; + type?: string; } /** * Detected language for a structural component. @@ -815,13 +820,13 @@ export namespace vision_v1p1beta1 { /** * Confidence of detected language. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * The BCP-47 language code, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Additional information detected on the structural component. @@ -830,11 +835,12 @@ export namespace vision_v1p1beta1 { /** * Detected start or end of a text segment. */ - detectedBreak: Schema$GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak; + detectedBreak?: + Schema$GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak; /** * A list of detected languages together with confidence. */ - detectedLanguages: + detectedLanguages?: Schema$GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage[]; } /** @@ -845,11 +851,11 @@ export namespace vision_v1p1beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Relevant information for the image from the Internet. @@ -858,33 +864,34 @@ export namespace vision_v1p1beta1 { /** * Best guess text labels for the request image. */ - bestGuessLabels: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebLabel[]; + bestGuessLabels?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebLabel[]; /** * Fully matching images from the Internet. Can include resized copies of * the query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; /** * Web pages containing the matching images from the Internet. */ - pagesWithMatchingImages: + pagesWithMatchingImages?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebPage[]; /** * Partial matching images from the Internet. Those images are similar * enough to share some key-point features. For example an original image * will likely have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; /** * The visually similar image results. */ - visuallySimilarImages: + visuallySimilarImages?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; /** * Deduced entities from similar images on the Internet. */ - webEntities: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebEntity[]; + webEntities?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebEntity[]; } /** * Parameters for web detection request. @@ -893,7 +900,7 @@ export namespace vision_v1p1beta1 { /** * Whether to include results derived from the geo information in the image. */ - includeGeoResults: boolean; + includeGeoResults?: boolean; } /** * Entity deduced from similar images on the Internet. @@ -902,16 +909,16 @@ export namespace vision_v1p1beta1 { /** * Canonical description of the entity, in English. */ - description: string; + description?: string; /** * Opaque entity ID. */ - entityId: string; + entityId?: string; /** * Overall relevancy score for the entity. Not normalized and not comparable * across different image queries. */ - score: number; + score?: number; } /** * Metadata for online images. @@ -920,11 +927,11 @@ export namespace vision_v1p1beta1 { /** * (Deprecated) Overall relevancy score for the image. */ - score: number; + score?: number; /** * The result image URL. */ - url: string; + url?: string; } /** * Label to provide extra metadata for the web detection. @@ -933,13 +940,13 @@ export namespace vision_v1p1beta1 { /** * Label for extra metadata. */ - label: string; + label?: string; /** * The BCP-47 language code for `label`, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Metadata for web pages. @@ -949,26 +956,27 @@ export namespace vision_v1p1beta1 { * Fully matching images on the page. Can include resized copies of the * query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; /** * Title for the web page, may contain HTML markups. */ - pageTitle: string; + pageTitle?: string; /** * Partial matching images on the page. Those images are similar enough to * share some key-point features. For example an original image will likely * have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p1beta1WebDetectionWebImage[]; /** * (Deprecated) Overall relevancy score for the web page. */ - score: number; + score?: number; /** * The result web page URL. */ - url: string; + url?: string; } /** * A word representation. @@ -984,20 +992,20 @@ export namespace vision_v1p1beta1 { * top-left corner it becomes: 2----3 | | 1----0 and the * vertice order will still be (0, 1, 2, 3). */ - boundingBox: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; + boundingBox?: Schema$GoogleCloudVisionV1p1beta1BoundingPoly; /** * Confidence of the OCR results for the word. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the word. */ - property: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p1beta1TextAnnotationTextProperty; /** * List of symbols in the word. The order of the symbols follows the natural * reading order. */ - symbols: Schema$GoogleCloudVisionV1p1beta1Symbol[]; + symbols?: Schema$GoogleCloudVisionV1p1beta1Symbol[]; } /** * Response to a single file annotation request. A file may contain one or @@ -1007,11 +1015,11 @@ export namespace vision_v1p1beta1 { /** * Information about the file for which this response is generated. */ - inputConfig: Schema$GoogleCloudVisionV1p2beta1InputConfig; + inputConfig?: Schema$GoogleCloudVisionV1p2beta1InputConfig; /** * Individual responses to images found within the file. */ - responses: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; } /** * Response to an image annotation request. @@ -1021,55 +1029,57 @@ export namespace vision_v1p1beta1 { * If present, contextual information is needed to understand where this * image comes from. */ - context: Schema$GoogleCloudVisionV1p2beta1ImageAnnotationContext; + context?: Schema$GoogleCloudVisionV1p2beta1ImageAnnotationContext; /** * If present, crop hints have completed successfully. */ - cropHintsAnnotation: Schema$GoogleCloudVisionV1p2beta1CropHintsAnnotation; + cropHintsAnnotation?: Schema$GoogleCloudVisionV1p2beta1CropHintsAnnotation; /** * If set, represents the error message for the operation. Note that * filled-in image annotations are guaranteed to be correct, even when * `error` is set. */ - error: Schema$Status; + error?: Schema$Status; /** * If present, face detection has completed successfully. */ - faceAnnotations: Schema$GoogleCloudVisionV1p2beta1FaceAnnotation[]; + faceAnnotations?: Schema$GoogleCloudVisionV1p2beta1FaceAnnotation[]; /** * If present, text (OCR) detection or document (OCR) text detection has * completed successfully. This annotation provides the structural hierarchy * for the OCR detected text. */ - fullTextAnnotation: Schema$GoogleCloudVisionV1p2beta1TextAnnotation; + fullTextAnnotation?: Schema$GoogleCloudVisionV1p2beta1TextAnnotation; /** * If present, image properties were extracted successfully. */ - imagePropertiesAnnotation: Schema$GoogleCloudVisionV1p2beta1ImageProperties; + imagePropertiesAnnotation?: + Schema$GoogleCloudVisionV1p2beta1ImageProperties; /** * If present, label detection has completed successfully. */ - labelAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + labelAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, landmark detection has completed successfully. */ - landmarkAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + landmarkAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, logo detection has completed successfully. */ - logoAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + logoAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, safe-search annotation has completed successfully. */ - safeSearchAnnotation: Schema$GoogleCloudVisionV1p2beta1SafeSearchAnnotation; + safeSearchAnnotation?: + Schema$GoogleCloudVisionV1p2beta1SafeSearchAnnotation; /** * If present, text (OCR) detection has completed successfully. */ - textAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + textAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, web detection has completed successfully. */ - webDetection: Schema$GoogleCloudVisionV1p2beta1WebDetection; + webDetection?: Schema$GoogleCloudVisionV1p2beta1WebDetection; } /** * The response for a single offline file annotation request. @@ -1078,7 +1088,7 @@ export namespace vision_v1p1beta1 { /** * The output location and metadata from AsyncAnnotateFileRequest. */ - outputConfig: Schema$GoogleCloudVisionV1p2beta1OutputConfig; + outputConfig?: Schema$GoogleCloudVisionV1p2beta1OutputConfig; } /** * Response to an async batch file annotation request. @@ -1088,7 +1098,7 @@ export namespace vision_v1p1beta1 { * The list of file annotation responses, one for each request in * AsyncBatchAnnotateFilesRequest. */ - responses: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]; } /** * Logical element on the page. @@ -1097,7 +1107,7 @@ export namespace vision_v1p1beta1 { /** * Detected block type (text, image etc) for this block. */ - blockType: string; + blockType?: string; /** * The bounding box for the block. The vertices are in the order of * top-left, top-right, bottom-right, bottom-left. When a rotation of the @@ -1108,19 +1118,19 @@ export namespace vision_v1p1beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results on the block. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * List of paragraphs in this block (if this blocks is of type text). */ - paragraphs: Schema$GoogleCloudVisionV1p2beta1Paragraph[]; + paragraphs?: Schema$GoogleCloudVisionV1p2beta1Paragraph[]; /** * Additional information detected for the block. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; } /** * A bounding polygon for the detected image annotation. @@ -1129,11 +1139,11 @@ export namespace vision_v1p1beta1 { /** * The bounding polygon normalized vertices. */ - normalizedVertices: Schema$GoogleCloudVisionV1p2beta1NormalizedVertex[]; + normalizedVertices?: Schema$GoogleCloudVisionV1p2beta1NormalizedVertex[]; /** * The bounding polygon vertices. */ - vertices: Schema$GoogleCloudVisionV1p2beta1Vertex[]; + vertices?: Schema$GoogleCloudVisionV1p2beta1Vertex[]; } /** * Color information consists of RGB channels, score, and the fraction of the @@ -1143,16 +1153,16 @@ export namespace vision_v1p1beta1 { /** * RGB components of the color. */ - color: Schema$Color; + color?: Schema$Color; /** * The fraction of pixels the color occupies in the image. Value in range * [0, 1]. */ - pixelFraction: number; + pixelFraction?: number; /** * Image-specific score for this color. Value in range [0, 1]. */ - score: number; + score?: number; } /** * Single crop hint that is used to generate a new crop when serving an image. @@ -1162,16 +1172,16 @@ export namespace vision_v1p1beta1 { * The bounding polygon for the crop region. The coordinates of the bounding * box are in the original image's scale, as returned in `ImageParams`. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of this being a salient region. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Fraction of importance of this salient region with respect to the * original image. */ - importanceFraction: number; + importanceFraction?: number; } /** * Set of crop hints that are used to generate new crops when serving images. @@ -1180,7 +1190,7 @@ export namespace vision_v1p1beta1 { /** * Crop hint results. */ - cropHints: Schema$GoogleCloudVisionV1p2beta1CropHint[]; + cropHints?: Schema$GoogleCloudVisionV1p2beta1CropHint[]; } /** * Set of dominant colors and their corresponding scores. @@ -1189,7 +1199,7 @@ export namespace vision_v1p1beta1 { /** * RGB color values with their score and pixel fraction. */ - colors: Schema$GoogleCloudVisionV1p2beta1ColorInfo[]; + colors?: Schema$GoogleCloudVisionV1p2beta1ColorInfo[]; } /** * Set of detected entity features. @@ -1199,23 +1209,23 @@ export namespace vision_v1p1beta1 { * Image region to which this entity belongs. Not produced for * `LABEL_DETECTION` features. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * **Deprecated. Use `score` instead.** The accuracy of the entity detection * in an image. For example, for an image in which the "Eiffel * Tower" entity is detected, this field represents the confidence that * there is a tower in the query image. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Entity textual description, expressed in its `locale` language. */ - description: string; + description?: string; /** * The language code for the locale in which the entity textual * `description` is expressed. */ - locale: string; + locale?: string; /** * The location information for the detected entity. Multiple `LocationInfo` * elements can be present because one location may indicate the location of @@ -1223,21 +1233,21 @@ export namespace vision_v1p1beta1 { * the place where the image was taken. Location information is usually * present for landmarks. */ - locations: Schema$GoogleCloudVisionV1p2beta1LocationInfo[]; + locations?: Schema$GoogleCloudVisionV1p2beta1LocationInfo[]; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - mid: string; + mid?: string; /** * Some entities may have optional user-supplied `Property` (name/value) * fields, such a score or string that qualifies the entity. */ - properties: Schema$GoogleCloudVisionV1p2beta1Property[]; + properties?: Schema$GoogleCloudVisionV1p2beta1Property[]; /** * Overall score of the result. Range [0, 1]. */ - score: number; + score?: number; /** * The relevancy of the ICA (Image Content Annotation) label to the image. * For example, the relevancy of "tower" is likely higher to an @@ -1246,7 +1256,7 @@ export namespace vision_v1p1beta1 { * confidence that there is a tower in each image may be the same. Range [0, * 1]. */ - topicality: number; + topicality?: number; } /** * A face annotation object contains the results of face detection. @@ -1255,11 +1265,11 @@ export namespace vision_v1p1beta1 { /** * Anger likelihood. */ - angerLikelihood: string; + angerLikelihood?: string; /** * Blurred likelihood. */ - blurredLikelihood: string; + blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box * are in the original image's scale, as returned in `ImageParams`. The @@ -1269,11 +1279,11 @@ export namespace vision_v1p1beta1 { * (the polygon will be unbounded) if only a partial face appears in the * image to be annotated. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Detection confidence. Range [0, 1]. */ - detectionConfidence: number; + detectionConfidence?: number; /** * The `fd_bounding_poly` bounding polygon is tighter than the * `boundingPoly`, and encloses only the skin part of the face. Typically, @@ -1282,52 +1292,52 @@ export namespace vision_v1p1beta1 { * landmarker results, only on the initial face detection, hence the * <code>fd</code> (face detection) prefix. */ - fdBoundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + fdBoundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Headwear likelihood. */ - headwearLikelihood: string; + headwearLikelihood?: string; /** * Joy likelihood. */ - joyLikelihood: string; + joyLikelihood?: string; /** * Face landmarking confidence. Range [0, 1]. */ - landmarkingConfidence: number; + landmarkingConfidence?: number; /** * Detected face landmarks. */ - landmarks: Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]; + landmarks?: Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]; /** * Yaw angle, which indicates the leftward/rightward angle that the face is * pointing relative to the vertical plane perpendicular to the image. Range * [-180,180]. */ - panAngle: number; + panAngle?: number; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise * rotation of the face relative to the image vertical about the axis * perpendicular to the face. Range [-180,180]. */ - rollAngle: number; + rollAngle?: number; /** * Sorrow likelihood. */ - sorrowLikelihood: string; + sorrowLikelihood?: string; /** * Surprise likelihood. */ - surpriseLikelihood: string; + surpriseLikelihood?: string; /** * Pitch angle, which indicates the upwards/downwards angle that the face is * pointing relative to the image's horizontal plane. Range [-180,180]. */ - tiltAngle: number; + tiltAngle?: number; /** * Under-exposed likelihood. */ - underExposedLikelihood: string; + underExposedLikelihood?: string; } /** * A face-specific landmark (for example, a face feature). @@ -1336,11 +1346,11 @@ export namespace vision_v1p1beta1 { /** * Face landmark position. */ - position: Schema$GoogleCloudVisionV1p2beta1Position; + position?: Schema$GoogleCloudVisionV1p2beta1Position; /** * Face landmark type. */ - type: string; + type?: string; } /** * The Google Cloud Storage location where the output will be written to. @@ -1358,7 +1368,7 @@ export namespace vision_v1p1beta1 { * happen if, for example, the output JSON is too large and overflows into * multiple sharded files. */ - uri: string; + uri?: string; } /** * The Google Cloud Storage location where the input will be read from. @@ -1368,7 +1378,7 @@ export namespace vision_v1p1beta1 { * Google Cloud Storage URI for the input file. This must only be a Google * Cloud Storage object. Wildcards are not currently supported. */ - uri: string; + uri?: string; } /** * If an image was produced from a file (e.g. a PDF), this message gives @@ -1379,11 +1389,11 @@ export namespace vision_v1p1beta1 { * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. */ - pageNumber: number; + pageNumber?: number; /** * The URI of the file used to produce the image. */ - uri: string; + uri?: string; } /** * Stores image properties, such as dominant colors. @@ -1392,7 +1402,7 @@ export namespace vision_v1p1beta1 { /** * If present, dominant colors completed successfully. */ - dominantColors: Schema$GoogleCloudVisionV1p2beta1DominantColorsAnnotation; + dominantColors?: Schema$GoogleCloudVisionV1p2beta1DominantColorsAnnotation; } /** * The desired input location and metadata. @@ -1401,12 +1411,12 @@ export namespace vision_v1p1beta1 { /** * The Google Cloud Storage location to read the input from. */ - gcsSource: Schema$GoogleCloudVisionV1p2beta1GcsSource; + gcsSource?: Schema$GoogleCloudVisionV1p2beta1GcsSource; /** * The type of the file. Currently only "application/pdf" and * "image/tiff" are supported. Wildcards are not supported. */ - mimeType: string; + mimeType?: string; } /** * Detected entity location information. @@ -1415,7 +1425,7 @@ export namespace vision_v1p1beta1 { /** * lat/long location coordinates. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; } /** * A vertex represents a 2D point in the image. NOTE: the normalized vertex @@ -1425,11 +1435,11 @@ export namespace vision_v1p1beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Contains metadata for the BatchAnnotateImages operation. @@ -1438,15 +1448,15 @@ export namespace vision_v1p1beta1 { /** * The time when the batch request was received. */ - createTime: string; + createTime?: string; /** * Current state of the batch operation. */ - state: string; + state?: string; /** * The time when the operation result was last updated. */ - updateTime: string; + updateTime?: string; } /** * The desired output location and metadata. @@ -1462,11 +1472,11 @@ export namespace vision_v1p1beta1 { * GcsDestination, with potential future support for other output * configurations. */ - batchSize: number; + batchSize?: number; /** * The Google Cloud Storage location to write the output(s) to. */ - gcsDestination: Schema$GoogleCloudVisionV1p2beta1GcsDestination; + gcsDestination?: Schema$GoogleCloudVisionV1p2beta1GcsDestination; } /** * Detected page from OCR. @@ -1475,25 +1485,25 @@ export namespace vision_v1p1beta1 { /** * List of blocks of text, images etc on this page. */ - blocks: Schema$GoogleCloudVisionV1p2beta1Block[]; + blocks?: Schema$GoogleCloudVisionV1p2beta1Block[]; /** * Confidence of the OCR results on the page. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Page height. For PDFs the unit is points. For images (including TIFFs) * the unit is pixels. */ - height: number; + height?: number; /** * Additional information detected on the page. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * Page width. For PDFs the unit is points. For images (including TIFFs) the * unit is pixels. */ - width: number; + width?: number; } /** * Structural unit of text representing a number of words in certain order. @@ -1509,19 +1519,19 @@ export namespace vision_v1p1beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the paragraph. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the paragraph. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * List of words in this paragraph. */ - words: Schema$GoogleCloudVisionV1p2beta1Word[]; + words?: Schema$GoogleCloudVisionV1p2beta1Word[]; } /** * A 3D position in the image, used primarily for Face detection landmarks. A @@ -1532,15 +1542,15 @@ export namespace vision_v1p1beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; /** * Z coordinate (or depth). */ - z: number; + z?: number; } /** * A `Property` consists of a user-supplied name/value pair. @@ -1549,15 +1559,15 @@ export namespace vision_v1p1beta1 { /** * Name of the property. */ - name: string; + name?: string; /** * Value of numeric properties. */ - uint64Value: string; + uint64Value?: string; /** * Value of the property. */ - value: string; + value?: string; } /** * Set of features pertaining to the image, computed by computer vision @@ -1570,27 +1580,27 @@ export namespace vision_v1p1beta1 { * contain elements such as nudity, pornographic images or cartoons, or * sexual activities. */ - adult: string; + adult?: string; /** * Likelihood that this is a medical image. */ - medical: string; + medical?: string; /** * Likelihood that the request image contains racy content. Racy content may * include (but is not limited to) skimpy or sheer clothing, strategically * covered nudity, lewd or provocative poses, or close-ups of sensitive body * areas. */ - racy: string; + racy?: string; /** * Spoof likelihood. The likelihood that an modification was made to the * image's canonical version to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Likelihood that this image contains violent content. */ - violence: string; + violence?: string; } /** * A single symbol representation. @@ -1606,19 +1616,19 @@ export namespace vision_v1p1beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the symbol. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the symbol. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * The actual UTF-8 representation of the symbol. */ - text: string; + text?: string; } /** * TextAnnotation contains a structured representation of OCR extracted text. @@ -1633,11 +1643,11 @@ export namespace vision_v1p1beta1 { /** * List of pages detected by OCR. */ - pages: Schema$GoogleCloudVisionV1p2beta1Page[]; + pages?: Schema$GoogleCloudVisionV1p2beta1Page[]; /** * UTF-8 text detected on the pages. */ - text: string; + text?: string; } /** * Detected start or end of a structural component. @@ -1646,11 +1656,11 @@ export namespace vision_v1p1beta1 { /** * True if break prepends the element. */ - isPrefix: boolean; + isPrefix?: boolean; /** * Detected break type. */ - type: string; + type?: string; } /** * Detected language for a structural component. @@ -1659,13 +1669,13 @@ export namespace vision_v1p1beta1 { /** * Confidence of detected language. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * The BCP-47 language code, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Additional information detected on the structural component. @@ -1674,11 +1684,12 @@ export namespace vision_v1p1beta1 { /** * Detected start or end of a text segment. */ - detectedBreak: Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak; + detectedBreak?: + Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak; /** * A list of detected languages together with confidence. */ - detectedLanguages: + detectedLanguages?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage[]; } /** @@ -1689,11 +1700,11 @@ export namespace vision_v1p1beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Relevant information for the image from the Internet. @@ -1702,33 +1713,34 @@ export namespace vision_v1p1beta1 { /** * Best guess text labels for the request image. */ - bestGuessLabels: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; + bestGuessLabels?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; /** * Fully matching images from the Internet. Can include resized copies of * the query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Web pages containing the matching images from the Internet. */ - pagesWithMatchingImages: + pagesWithMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebPage[]; /** * Partial matching images from the Internet. Those images are similar * enough to share some key-point features. For example an original image * will likely have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * The visually similar image results. */ - visuallySimilarImages: + visuallySimilarImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Deduced entities from similar images on the Internet. */ - webEntities: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebEntity[]; + webEntities?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebEntity[]; } /** * Entity deduced from similar images on the Internet. @@ -1737,16 +1749,16 @@ export namespace vision_v1p1beta1 { /** * Canonical description of the entity, in English. */ - description: string; + description?: string; /** * Opaque entity ID. */ - entityId: string; + entityId?: string; /** * Overall relevancy score for the entity. Not normalized and not comparable * across different image queries. */ - score: number; + score?: number; } /** * Metadata for online images. @@ -1755,11 +1767,11 @@ export namespace vision_v1p1beta1 { /** * (Deprecated) Overall relevancy score for the image. */ - score: number; + score?: number; /** * The result image URL. */ - url: string; + url?: string; } /** * Label to provide extra metadata for the web detection. @@ -1768,13 +1780,13 @@ export namespace vision_v1p1beta1 { /** * Label for extra metadata. */ - label: string; + label?: string; /** * The BCP-47 language code for `label`, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Metadata for web pages. @@ -1784,26 +1796,27 @@ export namespace vision_v1p1beta1 { * Fully matching images on the page. Can include resized copies of the * query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Title for the web page, may contain HTML markups. */ - pageTitle: string; + pageTitle?: string; /** * Partial matching images on the page. Those images are similar enough to * share some key-point features. For example an original image will likely * have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * (Deprecated) Overall relevancy score for the web page. */ - score: number; + score?: number; /** * The result web page URL. */ - url: string; + url?: string; } /** * A word representation. @@ -1819,20 +1832,20 @@ export namespace vision_v1p1beta1 { * top-left corner it becomes: 2----3 | | 1----0 and the * vertice order will still be (0, 1, 2, 3). */ - boundingBox: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the word. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the word. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * List of symbols in the word. The order of the symbols follows the natural * reading order. */ - symbols: Schema$GoogleCloudVisionV1p2beta1Symbol[]; + symbols?: Schema$GoogleCloudVisionV1p2beta1Symbol[]; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -1845,11 +1858,11 @@ export namespace vision_v1p1beta1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * The `Status` type defines a logical error model that is suitable for @@ -1891,20 +1904,21 @@ export namespace vision_v1p1beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Images { root: Vision; constructor(root: Vision) { @@ -1929,32 +1943,47 @@ export namespace vision_v1p1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotate(params?: any, options?: MethodOptions): AxiosPromise< - Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>; + annotate(params?: Params$Resource$Images$Annotate, options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>; annotate( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Images$Annotate, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< + Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>): + void; + annotate( + params: Params$Resource$Images$Annotate, + callback: BodyResponseCallback< Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>): void; + annotate(callback: BodyResponseCallback< + Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>): + void; annotate( - params?: any, - options?: MethodOptions|BodyResponseCallback< + paramsOrCallback?: Params$Resource$Images$Annotate|BodyResponseCallback< + Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse>): void|AxiosPromise< Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Annotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Annotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -1980,4 +2009,16 @@ export namespace vision_v1p1beta1 { } } } + + export interface Params$Resource$Images$Annotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest; + } } diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index 28bf695d844..13b7f3a9745 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace vision_v1p2beta1 { + export interface Options extends GlobalOptions { version: 'v1p2beta1'; } + /** * Cloud Vision API * @@ -135,19 +138,19 @@ export namespace vision_v1p2beta1 { * omitted, this color object is to be rendered as a solid color (as if the * alpha value had been explicitly given with a value of 1.0). */ - alpha: number; + alpha?: number; /** * The amount of blue in the color as a value in the interval [0, 1]. */ - blue: number; + blue?: number; /** * The amount of green in the color as a value in the interval [0, 1]. */ - green: number; + green?: number; /** * The amount of red in the color as a value in the interval [0, 1]. */ - red: number; + red?: number; } /** * Response to a single file annotation request. A file may contain one or @@ -157,11 +160,11 @@ export namespace vision_v1p2beta1 { /** * Information about the file for which this response is generated. */ - inputConfig: Schema$GoogleCloudVisionV1p2beta1InputConfig; + inputConfig?: Schema$GoogleCloudVisionV1p2beta1InputConfig; /** * Individual responses to images found within the file. */ - responses: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; } /** * Request for performing Google Cloud Vision API tasks over a user-provided @@ -171,15 +174,15 @@ export namespace vision_v1p2beta1 { /** * Requested features. */ - features: Schema$GoogleCloudVisionV1p2beta1Feature[]; + features?: Schema$GoogleCloudVisionV1p2beta1Feature[]; /** * The image to be processed. */ - image: Schema$GoogleCloudVisionV1p2beta1Image; + image?: Schema$GoogleCloudVisionV1p2beta1Image; /** * Additional context that may accompany the image. */ - imageContext: Schema$GoogleCloudVisionV1p2beta1ImageContext; + imageContext?: Schema$GoogleCloudVisionV1p2beta1ImageContext; } /** * Response to an image annotation request. @@ -189,55 +192,57 @@ export namespace vision_v1p2beta1 { * If present, contextual information is needed to understand where this * image comes from. */ - context: Schema$GoogleCloudVisionV1p2beta1ImageAnnotationContext; + context?: Schema$GoogleCloudVisionV1p2beta1ImageAnnotationContext; /** * If present, crop hints have completed successfully. */ - cropHintsAnnotation: Schema$GoogleCloudVisionV1p2beta1CropHintsAnnotation; + cropHintsAnnotation?: Schema$GoogleCloudVisionV1p2beta1CropHintsAnnotation; /** * If set, represents the error message for the operation. Note that * filled-in image annotations are guaranteed to be correct, even when * `error` is set. */ - error: Schema$Status; + error?: Schema$Status; /** * If present, face detection has completed successfully. */ - faceAnnotations: Schema$GoogleCloudVisionV1p2beta1FaceAnnotation[]; + faceAnnotations?: Schema$GoogleCloudVisionV1p2beta1FaceAnnotation[]; /** * If present, text (OCR) detection or document (OCR) text detection has * completed successfully. This annotation provides the structural hierarchy * for the OCR detected text. */ - fullTextAnnotation: Schema$GoogleCloudVisionV1p2beta1TextAnnotation; + fullTextAnnotation?: Schema$GoogleCloudVisionV1p2beta1TextAnnotation; /** * If present, image properties were extracted successfully. */ - imagePropertiesAnnotation: Schema$GoogleCloudVisionV1p2beta1ImageProperties; + imagePropertiesAnnotation?: + Schema$GoogleCloudVisionV1p2beta1ImageProperties; /** * If present, label detection has completed successfully. */ - labelAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + labelAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, landmark detection has completed successfully. */ - landmarkAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + landmarkAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, logo detection has completed successfully. */ - logoAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + logoAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, safe-search annotation has completed successfully. */ - safeSearchAnnotation: Schema$GoogleCloudVisionV1p2beta1SafeSearchAnnotation; + safeSearchAnnotation?: + Schema$GoogleCloudVisionV1p2beta1SafeSearchAnnotation; /** * If present, text (OCR) detection has completed successfully. */ - textAnnotations: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; + textAnnotations?: Schema$GoogleCloudVisionV1p2beta1EntityAnnotation[]; /** * If present, web detection has completed successfully. */ - webDetection: Schema$GoogleCloudVisionV1p2beta1WebDetection; + webDetection?: Schema$GoogleCloudVisionV1p2beta1WebDetection; } /** * An offline file annotation request. @@ -246,19 +251,19 @@ export namespace vision_v1p2beta1 { /** * Required. Requested features. */ - features: Schema$GoogleCloudVisionV1p2beta1Feature[]; + features?: Schema$GoogleCloudVisionV1p2beta1Feature[]; /** * Additional context that may accompany the image(s) in the file. */ - imageContext: Schema$GoogleCloudVisionV1p2beta1ImageContext; + imageContext?: Schema$GoogleCloudVisionV1p2beta1ImageContext; /** * Required. Information about the input file. */ - inputConfig: Schema$GoogleCloudVisionV1p2beta1InputConfig; + inputConfig?: Schema$GoogleCloudVisionV1p2beta1InputConfig; /** * Required. The desired output location and metadata (e.g. format). */ - outputConfig: Schema$GoogleCloudVisionV1p2beta1OutputConfig; + outputConfig?: Schema$GoogleCloudVisionV1p2beta1OutputConfig; } /** * The response for a single offline file annotation request. @@ -267,7 +272,7 @@ export namespace vision_v1p2beta1 { /** * The output location and metadata from AsyncAnnotateFileRequest. */ - outputConfig: Schema$GoogleCloudVisionV1p2beta1OutputConfig; + outputConfig?: Schema$GoogleCloudVisionV1p2beta1OutputConfig; } /** * Multiple async file annotation requests are batched into a single service @@ -277,7 +282,7 @@ export namespace vision_v1p2beta1 { /** * Individual async file annotation requests for this batch. */ - requests: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest[]; + requests?: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileRequest[]; } /** * Response to an async batch file annotation request. @@ -287,7 +292,7 @@ export namespace vision_v1p2beta1 { * The list of file annotation responses, one for each request in * AsyncBatchAnnotateFilesRequest. */ - responses: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]; } /** * Multiple image annotation requests are batched into a single service call. @@ -296,7 +301,7 @@ export namespace vision_v1p2beta1 { /** * Individual image annotation requests for this batch. */ - requests: Schema$GoogleCloudVisionV1p2beta1AnnotateImageRequest[]; + requests?: Schema$GoogleCloudVisionV1p2beta1AnnotateImageRequest[]; } /** * Response to a batch image annotation request. @@ -305,7 +310,7 @@ export namespace vision_v1p2beta1 { /** * Individual responses to image annotation requests within the batch. */ - responses: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; + responses?: Schema$GoogleCloudVisionV1p2beta1AnnotateImageResponse[]; } /** * Logical element on the page. @@ -314,7 +319,7 @@ export namespace vision_v1p2beta1 { /** * Detected block type (text, image etc) for this block. */ - blockType: string; + blockType?: string; /** * The bounding box for the block. The vertices are in the order of * top-left, top-right, bottom-right, bottom-left. When a rotation of the @@ -325,19 +330,19 @@ export namespace vision_v1p2beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results on the block. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * List of paragraphs in this block (if this blocks is of type text). */ - paragraphs: Schema$GoogleCloudVisionV1p2beta1Paragraph[]; + paragraphs?: Schema$GoogleCloudVisionV1p2beta1Paragraph[]; /** * Additional information detected for the block. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; } /** * A bounding polygon for the detected image annotation. @@ -346,11 +351,11 @@ export namespace vision_v1p2beta1 { /** * The bounding polygon normalized vertices. */ - normalizedVertices: Schema$GoogleCloudVisionV1p2beta1NormalizedVertex[]; + normalizedVertices?: Schema$GoogleCloudVisionV1p2beta1NormalizedVertex[]; /** * The bounding polygon vertices. */ - vertices: Schema$GoogleCloudVisionV1p2beta1Vertex[]; + vertices?: Schema$GoogleCloudVisionV1p2beta1Vertex[]; } /** * Color information consists of RGB channels, score, and the fraction of the @@ -360,16 +365,16 @@ export namespace vision_v1p2beta1 { /** * RGB components of the color. */ - color: Schema$Color; + color?: Schema$Color; /** * The fraction of pixels the color occupies in the image. Value in range * [0, 1]. */ - pixelFraction: number; + pixelFraction?: number; /** * Image-specific score for this color. Value in range [0, 1]. */ - score: number; + score?: number; } /** * Single crop hint that is used to generate a new crop when serving an image. @@ -379,16 +384,16 @@ export namespace vision_v1p2beta1 { * The bounding polygon for the crop region. The coordinates of the bounding * box are in the original image's scale, as returned in `ImageParams`. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of this being a salient region. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Fraction of importance of this salient region with respect to the * original image. */ - importanceFraction: number; + importanceFraction?: number; } /** * Set of crop hints that are used to generate new crops when serving images. @@ -397,7 +402,7 @@ export namespace vision_v1p2beta1 { /** * Crop hint results. */ - cropHints: Schema$GoogleCloudVisionV1p2beta1CropHint[]; + cropHints?: Schema$GoogleCloudVisionV1p2beta1CropHint[]; } /** * Parameters for crop hints annotation request. @@ -411,7 +416,7 @@ export namespace vision_v1p2beta1 { * limited to a maximum of 16; any aspect ratios provided after the 16th are * ignored. */ - aspectRatios: number[]; + aspectRatios?: number[]; } /** * Set of dominant colors and their corresponding scores. @@ -420,7 +425,7 @@ export namespace vision_v1p2beta1 { /** * RGB color values with their score and pixel fraction. */ - colors: Schema$GoogleCloudVisionV1p2beta1ColorInfo[]; + colors?: Schema$GoogleCloudVisionV1p2beta1ColorInfo[]; } /** * Set of detected entity features. @@ -430,23 +435,23 @@ export namespace vision_v1p2beta1 { * Image region to which this entity belongs. Not produced for * `LABEL_DETECTION` features. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * **Deprecated. Use `score` instead.** The accuracy of the entity detection * in an image. For example, for an image in which the "Eiffel * Tower" entity is detected, this field represents the confidence that * there is a tower in the query image. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Entity textual description, expressed in its `locale` language. */ - description: string; + description?: string; /** * The language code for the locale in which the entity textual * `description` is expressed. */ - locale: string; + locale?: string; /** * The location information for the detected entity. Multiple `LocationInfo` * elements can be present because one location may indicate the location of @@ -454,21 +459,21 @@ export namespace vision_v1p2beta1 { * the place where the image was taken. Location information is usually * present for landmarks. */ - locations: Schema$GoogleCloudVisionV1p2beta1LocationInfo[]; + locations?: Schema$GoogleCloudVisionV1p2beta1LocationInfo[]; /** * Opaque entity ID. Some IDs may be available in [Google Knowledge Graph * Search API](https://developers.google.com/knowledge-graph/). */ - mid: string; + mid?: string; /** * Some entities may have optional user-supplied `Property` (name/value) * fields, such a score or string that qualifies the entity. */ - properties: Schema$GoogleCloudVisionV1p2beta1Property[]; + properties?: Schema$GoogleCloudVisionV1p2beta1Property[]; /** * Overall score of the result. Range [0, 1]. */ - score: number; + score?: number; /** * The relevancy of the ICA (Image Content Annotation) label to the image. * For example, the relevancy of "tower" is likely higher to an @@ -477,7 +482,7 @@ export namespace vision_v1p2beta1 { * confidence that there is a tower in each image may be the same. Range [0, * 1]. */ - topicality: number; + topicality?: number; } /** * A face annotation object contains the results of face detection. @@ -486,11 +491,11 @@ export namespace vision_v1p2beta1 { /** * Anger likelihood. */ - angerLikelihood: string; + angerLikelihood?: string; /** * Blurred likelihood. */ - blurredLikelihood: string; + blurredLikelihood?: string; /** * The bounding polygon around the face. The coordinates of the bounding box * are in the original image's scale, as returned in `ImageParams`. The @@ -500,11 +505,11 @@ export namespace vision_v1p2beta1 { * (the polygon will be unbounded) if only a partial face appears in the * image to be annotated. */ - boundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Detection confidence. Range [0, 1]. */ - detectionConfidence: number; + detectionConfidence?: number; /** * The `fd_bounding_poly` bounding polygon is tighter than the * `boundingPoly`, and encloses only the skin part of the face. Typically, @@ -513,52 +518,52 @@ export namespace vision_v1p2beta1 { * landmarker results, only on the initial face detection, hence the * <code>fd</code> (face detection) prefix. */ - fdBoundingPoly: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + fdBoundingPoly?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Headwear likelihood. */ - headwearLikelihood: string; + headwearLikelihood?: string; /** * Joy likelihood. */ - joyLikelihood: string; + joyLikelihood?: string; /** * Face landmarking confidence. Range [0, 1]. */ - landmarkingConfidence: number; + landmarkingConfidence?: number; /** * Detected face landmarks. */ - landmarks: Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]; + landmarks?: Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]; /** * Yaw angle, which indicates the leftward/rightward angle that the face is * pointing relative to the vertical plane perpendicular to the image. Range * [-180,180]. */ - panAngle: number; + panAngle?: number; /** * Roll angle, which indicates the amount of clockwise/anti-clockwise * rotation of the face relative to the image vertical about the axis * perpendicular to the face. Range [-180,180]. */ - rollAngle: number; + rollAngle?: number; /** * Sorrow likelihood. */ - sorrowLikelihood: string; + sorrowLikelihood?: string; /** * Surprise likelihood. */ - surpriseLikelihood: string; + surpriseLikelihood?: string; /** * Pitch angle, which indicates the upwards/downwards angle that the face is * pointing relative to the image's horizontal plane. Range [-180,180]. */ - tiltAngle: number; + tiltAngle?: number; /** * Under-exposed likelihood. */ - underExposedLikelihood: string; + underExposedLikelihood?: string; } /** * A face-specific landmark (for example, a face feature). @@ -567,11 +572,11 @@ export namespace vision_v1p2beta1 { /** * Face landmark position. */ - position: Schema$GoogleCloudVisionV1p2beta1Position; + position?: Schema$GoogleCloudVisionV1p2beta1Position; /** * Face landmark type. */ - type: string; + type?: string; } /** * The type of Google Cloud Vision API detection to perform, and the maximum @@ -583,17 +588,17 @@ export namespace vision_v1p2beta1 { * Maximum number of results of this type. Does not apply to * `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`. */ - maxResults: number; + maxResults?: number; /** * Model to use for the feature. Supported values: * "builtin/stable" (the default if unset) and * "builtin/latest". */ - model: string; + model?: string; /** * The feature type. */ - type: string; + type?: string; } /** * The Google Cloud Storage location where the output will be written to. @@ -611,7 +616,7 @@ export namespace vision_v1p2beta1 { * happen if, for example, the output JSON is too large and overflows into * multiple sharded files. */ - uri: string; + uri?: string; } /** * The Google Cloud Storage location where the input will be read from. @@ -621,7 +626,7 @@ export namespace vision_v1p2beta1 { * Google Cloud Storage URI for the input file. This must only be a Google * Cloud Storage object. Wildcards are not currently supported. */ - uri: string; + uri?: string; } /** * Client image to perform Google Cloud Vision API tasks over. @@ -632,13 +637,13 @@ export namespace vision_v1p2beta1 { * `bytes` fields, protobuffers use a pure binary representation, whereas * JSON representations use base64. */ - content: string; + content?: string; /** * Google Cloud Storage image location, or publicly-accessible image URL. If * both `content` and `source` are provided for an image, `content` takes * precedence and is used to perform the image annotation request. */ - source: Schema$GoogleCloudVisionV1p2beta1ImageSource; + source?: Schema$GoogleCloudVisionV1p2beta1ImageSource; } /** * If an image was produced from a file (e.g. a PDF), this message gives @@ -649,11 +654,11 @@ export namespace vision_v1p2beta1 { * If the file was a PDF or TIFF, this field gives the page number within * the file used to produce the image. */ - pageNumber: number; + pageNumber?: number; /** * The URI of the file used to produce the image. */ - uri: string; + uri?: string; } /** * Image context and/or feature-specific parameters. @@ -662,7 +667,7 @@ export namespace vision_v1p2beta1 { /** * Parameters for crop hints annotation request. */ - cropHintsParams: Schema$GoogleCloudVisionV1p2beta1CropHintsParams; + cropHintsParams?: Schema$GoogleCloudVisionV1p2beta1CropHintsParams; /** * List of languages to use for TEXT_DETECTION. In most cases, an empty * value yields the best results since it enables automatic language @@ -673,15 +678,15 @@ export namespace vision_v1p2beta1 { * detection returns an error if one or more of the specified languages is * not one of the [supported languages](/vision/docs/languages). */ - languageHints: string[]; + languageHints?: string[]; /** * Not used. */ - latLongRect: Schema$GoogleCloudVisionV1p2beta1LatLongRect; + latLongRect?: Schema$GoogleCloudVisionV1p2beta1LatLongRect; /** * Parameters for web detection. */ - webDetectionParams: Schema$GoogleCloudVisionV1p2beta1WebDetectionParams; + webDetectionParams?: Schema$GoogleCloudVisionV1p2beta1WebDetectionParams; } /** * Stores image properties, such as dominant colors. @@ -690,7 +695,7 @@ export namespace vision_v1p2beta1 { /** * If present, dominant colors completed successfully. */ - dominantColors: Schema$GoogleCloudVisionV1p2beta1DominantColorsAnnotation; + dominantColors?: Schema$GoogleCloudVisionV1p2beta1DominantColorsAnnotation; } /** * External image source (Google Cloud Storage or web URL image location). @@ -703,7 +708,7 @@ export namespace vision_v1p2beta1 { * URIs](https://cloud.google.com/storage/docs/reference-uris) for more * info. */ - gcsImageUri: string; + gcsImageUri?: string; /** * 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 @@ -718,7 +723,7 @@ export namespace vision_v1p2beta1 { * When both `gcs_image_uri` and `image_uri` are specified, `image_uri` * takes precedence. */ - imageUri: string; + imageUri?: string; } /** * The desired input location and metadata. @@ -727,12 +732,12 @@ export namespace vision_v1p2beta1 { /** * The Google Cloud Storage location to read the input from. */ - gcsSource: Schema$GoogleCloudVisionV1p2beta1GcsSource; + gcsSource?: Schema$GoogleCloudVisionV1p2beta1GcsSource; /** * The type of the file. Currently only "application/pdf" and * "image/tiff" are supported. Wildcards are not supported. */ - mimeType: string; + mimeType?: string; } /** * Rectangle determined by min and max `LatLng` pairs. @@ -741,11 +746,11 @@ export namespace vision_v1p2beta1 { /** * Max lat/long pair. */ - maxLatLng: Schema$LatLng; + maxLatLng?: Schema$LatLng; /** * Min lat/long pair. */ - minLatLng: Schema$LatLng; + minLatLng?: Schema$LatLng; } /** * Detected entity location information. @@ -754,7 +759,7 @@ export namespace vision_v1p2beta1 { /** * lat/long location coordinates. */ - latLng: Schema$LatLng; + latLng?: Schema$LatLng; } /** * A vertex represents a 2D point in the image. NOTE: the normalized vertex @@ -764,11 +769,11 @@ export namespace vision_v1p2beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Contains metadata for the BatchAnnotateImages operation. @@ -777,15 +782,15 @@ export namespace vision_v1p2beta1 { /** * The time when the batch request was received. */ - createTime: string; + createTime?: string; /** * Current state of the batch operation. */ - state: string; + state?: string; /** * The time when the operation result was last updated. */ - updateTime: string; + updateTime?: string; } /** * The desired output location and metadata. @@ -801,11 +806,11 @@ export namespace vision_v1p2beta1 { * GcsDestination, with potential future support for other output * configurations. */ - batchSize: number; + batchSize?: number; /** * The Google Cloud Storage location to write the output(s) to. */ - gcsDestination: Schema$GoogleCloudVisionV1p2beta1GcsDestination; + gcsDestination?: Schema$GoogleCloudVisionV1p2beta1GcsDestination; } /** * Detected page from OCR. @@ -814,25 +819,25 @@ export namespace vision_v1p2beta1 { /** * List of blocks of text, images etc on this page. */ - blocks: Schema$GoogleCloudVisionV1p2beta1Block[]; + blocks?: Schema$GoogleCloudVisionV1p2beta1Block[]; /** * Confidence of the OCR results on the page. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Page height. For PDFs the unit is points. For images (including TIFFs) * the unit is pixels. */ - height: number; + height?: number; /** * Additional information detected on the page. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * Page width. For PDFs the unit is points. For images (including TIFFs) the * unit is pixels. */ - width: number; + width?: number; } /** * Structural unit of text representing a number of words in certain order. @@ -848,19 +853,19 @@ export namespace vision_v1p2beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the paragraph. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the paragraph. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * List of words in this paragraph. */ - words: Schema$GoogleCloudVisionV1p2beta1Word[]; + words?: Schema$GoogleCloudVisionV1p2beta1Word[]; } /** * A 3D position in the image, used primarily for Face detection landmarks. A @@ -871,15 +876,15 @@ export namespace vision_v1p2beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; /** * Z coordinate (or depth). */ - z: number; + z?: number; } /** * A `Property` consists of a user-supplied name/value pair. @@ -888,15 +893,15 @@ export namespace vision_v1p2beta1 { /** * Name of the property. */ - name: string; + name?: string; /** * Value of numeric properties. */ - uint64Value: string; + uint64Value?: string; /** * Value of the property. */ - value: string; + value?: string; } /** * Set of features pertaining to the image, computed by computer vision @@ -909,27 +914,27 @@ export namespace vision_v1p2beta1 { * contain elements such as nudity, pornographic images or cartoons, or * sexual activities. */ - adult: string; + adult?: string; /** * Likelihood that this is a medical image. */ - medical: string; + medical?: string; /** * Likelihood that the request image contains racy content. Racy content may * include (but is not limited to) skimpy or sheer clothing, strategically * covered nudity, lewd or provocative poses, or close-ups of sensitive body * areas. */ - racy: string; + racy?: string; /** * Spoof likelihood. The likelihood that an modification was made to the * image's canonical version to make it appear funny or offensive. */ - spoof: string; + spoof?: string; /** * Likelihood that this image contains violent content. */ - violence: string; + violence?: string; } /** * A single symbol representation. @@ -945,19 +950,19 @@ export namespace vision_v1p2beta1 { * 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; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the symbol. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the symbol. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * The actual UTF-8 representation of the symbol. */ - text: string; + text?: string; } /** * TextAnnotation contains a structured representation of OCR extracted text. @@ -972,11 +977,11 @@ export namespace vision_v1p2beta1 { /** * List of pages detected by OCR. */ - pages: Schema$GoogleCloudVisionV1p2beta1Page[]; + pages?: Schema$GoogleCloudVisionV1p2beta1Page[]; /** * UTF-8 text detected on the pages. */ - text: string; + text?: string; } /** * Detected start or end of a structural component. @@ -985,11 +990,11 @@ export namespace vision_v1p2beta1 { /** * True if break prepends the element. */ - isPrefix: boolean; + isPrefix?: boolean; /** * Detected break type. */ - type: string; + type?: string; } /** * Detected language for a structural component. @@ -998,13 +1003,13 @@ export namespace vision_v1p2beta1 { /** * Confidence of detected language. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * The BCP-47 language code, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Additional information detected on the structural component. @@ -1013,11 +1018,12 @@ export namespace vision_v1p2beta1 { /** * Detected start or end of a text segment. */ - detectedBreak: Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak; + detectedBreak?: + Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak; /** * A list of detected languages together with confidence. */ - detectedLanguages: + detectedLanguages?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage[]; } /** @@ -1028,11 +1034,11 @@ export namespace vision_v1p2beta1 { /** * X coordinate. */ - x: number; + x?: number; /** * Y coordinate. */ - y: number; + y?: number; } /** * Relevant information for the image from the Internet. @@ -1041,33 +1047,34 @@ export namespace vision_v1p2beta1 { /** * Best guess text labels for the request image. */ - bestGuessLabels: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; + bestGuessLabels?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebLabel[]; /** * Fully matching images from the Internet. Can include resized copies of * the query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Web pages containing the matching images from the Internet. */ - pagesWithMatchingImages: + pagesWithMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebPage[]; /** * Partial matching images from the Internet. Those images are similar * enough to share some key-point features. For example an original image * will likely have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * The visually similar image results. */ - visuallySimilarImages: + visuallySimilarImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Deduced entities from similar images on the Internet. */ - webEntities: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebEntity[]; + webEntities?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebEntity[]; } /** * Parameters for web detection request. @@ -1076,7 +1083,7 @@ export namespace vision_v1p2beta1 { /** * Whether to include results derived from the geo information in the image. */ - includeGeoResults: boolean; + includeGeoResults?: boolean; } /** * Entity deduced from similar images on the Internet. @@ -1085,16 +1092,16 @@ export namespace vision_v1p2beta1 { /** * Canonical description of the entity, in English. */ - description: string; + description?: string; /** * Opaque entity ID. */ - entityId: string; + entityId?: string; /** * Overall relevancy score for the entity. Not normalized and not comparable * across different image queries. */ - score: number; + score?: number; } /** * Metadata for online images. @@ -1103,11 +1110,11 @@ export namespace vision_v1p2beta1 { /** * (Deprecated) Overall relevancy score for the image. */ - score: number; + score?: number; /** * The result image URL. */ - url: string; + url?: string; } /** * Label to provide extra metadata for the web detection. @@ -1116,13 +1123,13 @@ export namespace vision_v1p2beta1 { /** * Label for extra metadata. */ - label: string; + label?: string; /** * The BCP-47 language code for `label`, such as "en-US" or * "sr-Latn". For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */ - languageCode: string; + languageCode?: string; } /** * Metadata for web pages. @@ -1132,26 +1139,27 @@ export namespace vision_v1p2beta1 { * Fully matching images on the page. Can include resized copies of the * query image. */ - fullMatchingImages: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; + fullMatchingImages?: + Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * Title for the web page, may contain HTML markups. */ - pageTitle: string; + pageTitle?: string; /** * Partial matching images on the page. Those images are similar enough to * share some key-point features. For example an original image will likely * have partial matching for its crops. */ - partialMatchingImages: + partialMatchingImages?: Schema$GoogleCloudVisionV1p2beta1WebDetectionWebImage[]; /** * (Deprecated) Overall relevancy score for the web page. */ - score: number; + score?: number; /** * The result web page URL. */ - url: string; + url?: string; } /** * A word representation. @@ -1167,20 +1175,20 @@ export namespace vision_v1p2beta1 { * top-left corner it becomes: 2----3 | | 1----0 and the * vertice order will still be (0, 1, 2, 3). */ - boundingBox: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; + boundingBox?: Schema$GoogleCloudVisionV1p2beta1BoundingPoly; /** * Confidence of the OCR results for the word. Range [0, 1]. */ - confidence: number; + confidence?: number; /** * Additional information detected for the word. */ - property: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; + property?: Schema$GoogleCloudVisionV1p2beta1TextAnnotationTextProperty; /** * List of symbols in the word. The order of the symbols follows the natural * reading order. */ - symbols: Schema$GoogleCloudVisionV1p2beta1Symbol[]; + symbols?: Schema$GoogleCloudVisionV1p2beta1Symbol[]; } /** * An object representing a latitude/longitude pair. This is expressed as a @@ -1193,11 +1201,11 @@ export namespace vision_v1p2beta1 { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. */ - latitude: number; + latitude?: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. */ - longitude: number; + longitude?: number; } /** * This resource represents a long-running operation that is the result of a @@ -1209,24 +1217,24 @@ export namespace vision_v1p2beta1 { * `true`, the operation is completed, and either `error` or `response` is * available. */ - done: boolean; + done?: boolean; /** * The error result of the operation in case of failure or cancellation. */ - error: Schema$Status; + error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. */ - metadata: any; + metadata?: any; /** * The server-assigned name, which is only unique within the same service * that originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. */ - name: string; + name?: string; /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is @@ -1236,7 +1244,7 @@ export namespace vision_v1p2beta1 { * the original method name. For example, if the original method name is * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ - response: any; + response?: any; } /** * The `Status` type defines a logical error model that is suitable for @@ -1278,20 +1286,21 @@ export namespace vision_v1p2beta1 { /** * The status code, which should be an enum value of google.rpc.Code. */ - code: number; + code?: number; /** * A list of messages that carry the error details. There is a common set * of message types for APIs to use. */ - details: any[]; + details?: any[]; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * google.rpc.Status.details field, or localized by the client. */ - message: string; + message?: string; } + export class Resource$Files { root: Vision; constructor(root: Vision) { @@ -1321,26 +1330,39 @@ export namespace vision_v1p2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - asyncBatchAnnotate(params?: any, options?: MethodOptions): - AxiosPromise; asyncBatchAnnotate( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Files$Asyncbatchannotate, + options?: MethodOptions): AxiosPromise; + asyncBatchAnnotate( + params: Params$Resource$Files$Asyncbatchannotate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; asyncBatchAnnotate( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Files$Asyncbatchannotate, + callback: BodyResponseCallback): void; + asyncBatchAnnotate(callback: BodyResponseCallback): void; + asyncBatchAnnotate( + paramsOrCallback?: Params$Resource$Files$Asyncbatchannotate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Files$Asyncbatchannotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Files$Asyncbatchannotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -1363,6 +1385,19 @@ export namespace vision_v1p2beta1 { } } + export interface Params$Resource$Files$Asyncbatchannotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest; + } + + export class Resource$Images { root: Vision; constructor(root: Vision) { @@ -1387,32 +1422,47 @@ export namespace vision_v1p2beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - annotate(params?: any, options?: MethodOptions): AxiosPromise< - Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>; + annotate(params?: Params$Resource$Images$Annotate, options?: MethodOptions): + AxiosPromise< + Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>; annotate( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Images$Annotate, + options: MethodOptions|BodyResponseCallback< Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>, - callback?: BodyResponseCallback< + callback: BodyResponseCallback< Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>): void; annotate( - params?: any, - options?: MethodOptions|BodyResponseCallback< + params: Params$Resource$Images$Annotate, + callback: BodyResponseCallback< + Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>): + void; + annotate(callback: BodyResponseCallback< + Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>): + void; + annotate( + paramsOrCallback?: Params$Resource$Images$Annotate|BodyResponseCallback< + Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>, + optionsOrCallback?: MethodOptions|BodyResponseCallback< Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>, callback?: BodyResponseCallback< Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse>): void|AxiosPromise< Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse> { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Images$Annotate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Images$Annotate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; const parameters = { options: Object.assign( @@ -1438,4 +1488,16 @@ export namespace vision_v1p2beta1 { } } } + + export interface Params$Resource$Images$Annotate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Request body metadata + */ + resource?: Schema$GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest; + } } diff --git a/src/apis/webfonts/v1.ts b/src/apis/webfonts/v1.ts index c696a086276..a74fe039bde 100644 --- a/src/apis/webfonts/v1.ts +++ b/src/apis/webfonts/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace webfonts_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * Google Fonts Developer API * @@ -71,49 +74,50 @@ export namespace webfonts_v1 { /** * The category of the font. */ - category: string; + category?: string; /** * The name of the font. */ - family: string; + family?: string; /** * The font files (with all supported scripts) for each one of the available * variants, as a key : value map. */ - files: any; + files?: any; /** * This kind represents a webfont object in the webfonts service. */ - kind: string; + kind?: string; /** * The date (format "yyyy-MM-dd") the font was modified for the * last time. */ - lastModified: string; + lastModified?: string; /** * The scripts supported by the font. */ - subsets: string[]; + subsets?: string[]; /** * The available variants for the font. */ - variants: string[]; + variants?: string[]; /** * The font version. */ - version: string; + version?: string; } export interface Schema$WebfontList { /** * The list of fonts currently served by the Google Fonts API. */ - items: Schema$Webfont[]; + items?: Schema$Webfont[]; /** * This kind represents a list of webfont objects in the webfonts service. */ - kind: string; + kind?: string; } + export class Resource$Webfonts { root: Webfonts; constructor(root: Webfonts) { @@ -139,26 +143,37 @@ export namespace webfonts_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Webfonts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Webfonts$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Webfonts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Webfonts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Webfonts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Webfonts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -180,4 +195,16 @@ export namespace webfonts_v1 { } } } + + export interface Params$Resource$Webfonts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Enables sorting of the list + */ + sort?: string; + } } diff --git a/src/apis/webmasters/v3.ts b/src/apis/webmasters/v3.ts index 4d3f8350e23..f53633b6a82 100644 --- a/src/apis/webmasters/v3.ts +++ b/src/apis/webmasters/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace webmasters_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * Search Console API * @@ -74,20 +77,20 @@ export namespace webmasters_v3 { } export interface Schema$ApiDataRow { - clicks: number; - ctr: number; - impressions: number; - keys: string[]; - position: number; + clicks?: number; + ctr?: number; + impressions?: number; + keys?: string[]; + position?: number; } export interface Schema$ApiDimensionFilter { - dimension: string; - expression: string; - operator: string; + dimension?: string; + expression?: string; + operator?: string; } export interface Schema$ApiDimensionFilterGroup { - filters: Schema$ApiDimensionFilter[]; - groupType: string; + filters?: Schema$ApiDimensionFilter[]; + groupType?: string; } export interface Schema$SearchAnalyticsQueryRequest { /** @@ -103,47 +106,47 @@ export namespace webmasters_v3 { * request an invalid type, you will get an error. The API will never change * your aggregation type if the requested type is invalid. */ - aggregationType: string; + aggregationType?: string; /** * [Optional] Zero or more filters to apply to the dimension grouping * values; for example, 'query contains "buy"' to see only * data where the query string contains the substring "buy" (not * case-sensitive). You can filter by a dimension without grouping by it. */ - dimensionFilterGroups: Schema$ApiDimensionFilterGroup[]; + dimensionFilterGroups?: Schema$ApiDimensionFilterGroup[]; /** * [Optional] Zero or more dimensions to group results by. Dimensions are * the group-by values in the Search Analytics page. Dimensions are combined * to create a unique row key for each row. Results are grouped in the order * that you supply these dimensions. */ - dimensions: string[]; + dimensions?: string[]; /** * [Required] End date of the requested date range, in YYYY-MM-DD format, in * PST (UTC - 8:00). Must be greater than or equal to the start date. This * value is included in the range. */ - endDate: string; + endDate?: string; /** * [Optional; Default is 1000] The maximum number of rows to return. Must be * a number from 1 to 5,000 (inclusive). */ - rowLimit: number; + rowLimit?: number; /** * [Optional; Default is "web"] The search type to filter for. */ - searchType: string; + searchType?: string; /** * [Required] Start date of the requested date range, in YYYY-MM-DD format, * in PST time (UTC - 8:00). Must be less than or equal to the end date. * This value is included in the range. */ - startDate: string; + startDate?: string; /** * [Optional; Default is 0] Zero-based index of the first row in the * response. Must be a non-negative number. */ - startRow: number; + startRow?: number; } /** * A list of rows, one per result, grouped by key. Metrics in each row are @@ -154,11 +157,11 @@ export namespace webmasters_v3 { /** * How the results were aggregated. */ - responseAggregationType: string; + responseAggregationType?: string; /** * A list of rows grouped by the key values in the order given in the query. */ - rows: Schema$ApiDataRow[]; + rows?: Schema$ApiDataRow[]; } /** * List of sitemaps. @@ -168,7 +171,7 @@ export namespace webmasters_v3 { * Contains detailed information about a specific URL submitted as a * sitemap. */ - sitemap: Schema$WmxSitemap[]; + sitemap?: Schema$WmxSitemap[]; } /** * List of sites with access level information. @@ -178,7 +181,7 @@ export namespace webmasters_v3 { * Contains permission level information about a Search Console site. For * more information, see Permissions in Search Console. */ - siteEntry: Schema$WmxSite[]; + siteEntry?: Schema$WmxSite[]; } /** * An entry in a URL crawl errors time series. @@ -187,11 +190,11 @@ export namespace webmasters_v3 { /** * The error count at the given timestamp. */ - count: string; + count?: string; /** * The date and time when the crawl attempt took place, in RFC 3339 format. */ - timestamp: string; + timestamp?: string; } /** * Number of errors per day for a specific error type (defined by platform and @@ -201,16 +204,16 @@ export namespace webmasters_v3 { /** * The crawl error type. */ - category: string; + category?: string; /** * The error count entries time series. */ - entries: Schema$UrlCrawlErrorCount[]; + entries?: Schema$UrlCrawlErrorCount[]; /** * The general type of Googlebot that made the request (see list of * Googlebot user-agents for the user-agents used). */ - platform: string; + platform?: string; } /** * A time series of the number of URL crawl errors per error category and @@ -221,7 +224,7 @@ export namespace webmasters_v3 { * The time series of the number of URL crawl errors per error category and * platform. */ - countPerTypes: Schema$UrlCrawlErrorCountsPerType[]; + countPerTypes?: Schema$UrlCrawlErrorCountsPerType[]; } /** * Contains information about specific crawl errors. @@ -230,23 +233,23 @@ export namespace webmasters_v3 { /** * The time the error was first detected, in RFC 3339 format. */ - first_detected: string; + first_detected?: string; /** * The time when the URL was last crawled, in RFC 3339 format. */ - last_crawled: string; + last_crawled?: string; /** * The URL of an error, relative to the site. */ - pageUrl: string; + pageUrl?: string; /** * The HTTP response code, if any. */ - responseCode: number; + responseCode?: number; /** * Additional details about the URL, set only when calling get(). */ - urlDetails: Schema$UrlSampleDetails; + urlDetails?: Schema$UrlSampleDetails; } /** * List of crawl error samples. @@ -255,7 +258,7 @@ export namespace webmasters_v3 { /** * Information about the sample URL and its crawl error. */ - urlCrawlErrorSample: Schema$UrlCrawlErrorsSample[]; + urlCrawlErrorSample?: Schema$UrlCrawlErrorsSample[]; } /** * Additional details about the URL, set only when calling get(). @@ -264,11 +267,11 @@ export namespace webmasters_v3 { /** * List of sitemaps pointing at this URL. */ - containingSitemaps: string[]; + containingSitemaps?: string[]; /** * A sample set of URLs linking to this URL. */ - linkedFromUrls: string[]; + linkedFromUrls?: string[]; } /** * Contains permission level information about a Search Console site. For more @@ -278,11 +281,11 @@ export namespace webmasters_v3 { /** * The user's permission level for the site. */ - permissionLevel: string; + permissionLevel?: string; /** * The URL of the site. */ - siteUrl: string; + siteUrl?: string; } /** * Contains detailed information about a specific URL submitted as a sitemap. @@ -291,43 +294,43 @@ export namespace webmasters_v3 { /** * The various content types in the sitemap. */ - contents: Schema$WmxSitemapContent[]; + contents?: Schema$WmxSitemapContent[]; /** * Number of errors in the sitemap. These are issues with the sitemap itself * that need to be fixed before it can be processed correctly. */ - errors: string; + errors?: string; /** * If true, the sitemap has not been processed. */ - isPending: boolean; + isPending?: boolean; /** * If true, the sitemap is a collection of sitemaps. */ - isSitemapsIndex: boolean; + isSitemapsIndex?: boolean; /** * Date & time in which this sitemap was last downloaded. Date format is * in RFC 3339 format (yyyy-mm-dd). */ - lastDownloaded: string; + lastDownloaded?: string; /** * Date & time in which this sitemap was submitted. Date format is in * RFC 3339 format (yyyy-mm-dd). */ - lastSubmitted: string; + lastSubmitted?: string; /** * The url of the sitemap. */ - path: string; + path?: string; /** * The type of the sitemap. For example: rssFeed. */ - type: string; + type?: string; /** * Number of warnings for the sitemap. These are generally non-critical * issues with URLs in the sitemaps. */ - warnings: string; + warnings?: string; } /** * Information about the various content types in the sitemap. @@ -337,17 +340,18 @@ export namespace webmasters_v3 { * The number of URLs from the sitemap that were indexed (of the content * type). */ - indexed: string; + indexed?: string; /** * The number of URLs in the sitemap (of the content type). */ - submitted: string; + submitted?: string; /** * The specific type of content in this sitemap. For example: web. */ - type: string; + type?: string; } + export class Resource$Searchanalytics { root: Webmasters; constructor(root: Webmasters) { @@ -378,29 +382,44 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query( + params?: Params$Resource$Searchanalytics$Query, + options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions| + params: Params$Resource$Searchanalytics$Query, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + query( + params: Params$Resource$Searchanalytics$Query, + callback: BodyResponseCallback): + void; + query(callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Searchanalytics$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Searchanalytics$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Searchanalytics$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -426,6 +445,23 @@ export namespace webmasters_v3 { } } + export interface Params$Resource$Searchanalytics$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + /** + * Request body metadata + */ + resource?: Schema$SearchAnalyticsQueryRequest; + } + + export class Resource$Sitemaps { root: Webmasters; constructor(root: Webmasters) { @@ -451,22 +487,35 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Sitemaps$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sitemaps$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Sitemaps$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Sitemaps$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sitemaps$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sitemaps$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -503,23 +552,34 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sitemaps$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sitemaps$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sitemaps$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sitemaps$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sitemaps$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sitemaps$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -557,28 +617,38 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sitemaps$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sitemaps$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sitemaps$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Sitemaps$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sitemaps$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sitemaps$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -614,22 +684,35 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - submit(params?: any, options?: MethodOptions): AxiosPromise; + submit(params?: Params$Resource$Sitemaps$Submit, options?: MethodOptions): + AxiosPromise; + submit( + params: Params$Resource$Sitemaps$Submit, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; submit( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sitemaps$Submit, + callback: BodyResponseCallback): void; + submit(callback: BodyResponseCallback): void; submit( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sitemaps$Submit| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sitemaps$Submit; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sitemaps$Submit; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -653,6 +736,72 @@ export namespace webmasters_v3 { } } + export interface Params$Resource$Sitemaps$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml + */ + feedpath?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + } + export interface Params$Resource$Sitemaps$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml + */ + feedpath?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + } + export interface Params$Resource$Sitemaps$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * A URL of a site's sitemap index. For example: + * http://www.example.com/sitemapindex.xml + */ + sitemapIndex?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + } + export interface Params$Resource$Sitemaps$Submit { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URL of the sitemap to add. For example: + * http://www.example.com/sitemap.xml + */ + feedpath?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + } + + export class Resource$Sites { root: Webmasters; constructor(root: Webmasters) { @@ -677,20 +826,31 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - add(params?: any, options?: MethodOptions): AxiosPromise; - add(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - add(params?: any, options?: MethodOptions|BodyResponseCallback, + add(params?: Params$Resource$Sites$Add, + options?: MethodOptions): AxiosPromise; + add(params: Params$Resource$Sites$Add, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + add(params: Params$Resource$Sites$Add, + callback: BodyResponseCallback): void; + add(callback: BodyResponseCallback): void; + add(paramsOrCallback?: Params$Resource$Sites$Add|BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Add; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Add; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -725,22 +885,35 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Sites$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Sites$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sites$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -775,23 +948,33 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Sites$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Sites$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Sites$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Sites$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -825,26 +1008,37 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sites$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sites$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Sites$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Sites$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sites$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sites$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -867,6 +1061,53 @@ export namespace webmasters_v3 { } } + export interface Params$Resource$Sites$Add { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URL of the site to add. + */ + siteUrl?: string; + } + export interface Params$Resource$Sites$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URI of the property as defined in Search Console. Examples: + * http://www.example.com/ or android-app://com.example/ Note: for + * property-sets, use the URI that starts with sc-set: which is used in + * Search Console URLs. + */ + siteUrl?: string; + } + export interface Params$Resource$Sites$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The URI of the property as defined in Search Console. Examples: + * http://www.example.com/ or android-app://com.example/ Note: for + * property-sets, use the URI that starts with sc-set: which is used in + * Search Console URLs. + */ + siteUrl?: string; + } + export interface Params$Resource$Sites$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + } + + export class Resource$Urlcrawlerrorscounts { root: Webmasters; constructor(root: Webmasters) { @@ -895,31 +1136,48 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query( + params?: Params$Resource$Urlcrawlerrorscounts$Query, + options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions| + params: Params$Resource$Urlcrawlerrorscounts$Query, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions| + params: Params$Resource$Urlcrawlerrorscounts$Query, + callback: + BodyResponseCallback): + void; + query(callback: + BodyResponseCallback): + void; + query( + paramsOrCallback?: Params$Resource$Urlcrawlerrorscounts$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Urlcrawlerrorscounts$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlcrawlerrorscounts$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -945,6 +1203,33 @@ export namespace webmasters_v3 { } } + export interface Params$Resource$Urlcrawlerrorscounts$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The crawl error category. For example: serverError. If not specified, + * returns results for all categories. + */ + category?: string; + /** + * If true, returns only the latest crawl error counts. + */ + latestCountsOnly?: boolean; + /** + * The user agent type (platform) that made the request. For example: web. + * If not specified, returns results for all platforms. + */ + platform?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + } + + export class Resource$Urlcrawlerrorssamples { root: Webmasters; constructor(root: Webmasters) { @@ -972,26 +1257,36 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, + get(params?: Params$Resource$Urlcrawlerrorssamples$Get, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions| + get(params: Params$Resource$Urlcrawlerrorssamples$Get, + options: MethodOptions| + BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Urlcrawlerrorssamples$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Urlcrawlerrorssamples$Get| BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions| + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Urlcrawlerrorssamples$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlcrawlerrorssamples$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1031,31 +1326,48 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Urlcrawlerrorssamples$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Urlcrawlerrorssamples$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Urlcrawlerrorssamples$List, + callback: + BodyResponseCallback): + void; + list(callback: + BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Urlcrawlerrorssamples$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Urlcrawlerrorssamples$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlcrawlerrorssamples$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1097,22 +1409,37 @@ export namespace webmasters_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - markAsFixed(params?: any, options?: MethodOptions): AxiosPromise; markAsFixed( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Urlcrawlerrorssamples$Markasfixed, + options?: MethodOptions): AxiosPromise; + markAsFixed( + params: Params$Resource$Urlcrawlerrorssamples$Markasfixed, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + markAsFixed( + params: Params$Resource$Urlcrawlerrorssamples$Markasfixed, + callback: BodyResponseCallback): void; + markAsFixed(callback: BodyResponseCallback): void; markAsFixed( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Urlcrawlerrorssamples$Markasfixed| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Urlcrawlerrorssamples$Markasfixed; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Urlcrawlerrorssamples$Markasfixed; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -1136,4 +1463,76 @@ export namespace webmasters_v3 { } } } + + export interface Params$Resource$Urlcrawlerrorssamples$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The crawl error category. For example: authPermissions + */ + category?: string; + /** + * The user agent type (platform) that made the request. For example: web + */ + platform?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + /** + * The relative path (without the site) of the sample URL. It must be one of + * the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, + * the url value is pagename + */ + url?: string; + } + export interface Params$Resource$Urlcrawlerrorssamples$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The crawl error category. For example: authPermissions + */ + category?: string; + /** + * The user agent type (platform) that made the request. For example: web + */ + platform?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + } + export interface Params$Resource$Urlcrawlerrorssamples$Markasfixed { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The crawl error category. For example: authPermissions + */ + category?: string; + /** + * The user agent type (platform) that made the request. For example: web + */ + platform?: string; + /** + * The site's URL, including protocol. For example: http://www.example.com/ + */ + siteUrl?: string; + /** + * The relative path (without the site) of the sample URL. It must be one of + * the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, + * the url value is pagename + */ + url?: string; + } } diff --git a/src/apis/websecurityscanner/v1alpha.ts b/src/apis/websecurityscanner/v1alpha.ts index ef951d42bc3..383ce23898f 100644 --- a/src/apis/websecurityscanner/v1alpha.ts +++ b/src/apis/websecurityscanner/v1alpha.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace websecurityscanner_v1alpha { + export interface Options extends GlobalOptions { version: 'v1alpha'; } + /** * Web Security Scanner API * @@ -72,11 +75,11 @@ export namespace websecurityscanner_v1alpha { /** * Authentication using a custom account. */ - customAccount: Schema$CustomAccount; + customAccount?: Schema$CustomAccount; /** * Authentication using a Google account. */ - googleAccount: Schema$GoogleAccount; + googleAccount?: Schema$GoogleAccount; } /** * A CrawledUrl resource represents a URL that was crawled during a ScanRun. @@ -87,16 +90,16 @@ export namespace websecurityscanner_v1alpha { /** * Output only. The body of the request that was used to visit the URL. */ - body: string; + body?: string; /** * Output only. The http method of the request that was used to visit the * URL, in uppercase. */ - httpMethod: string; + httpMethod?: string; /** * Output only. The URL that was crawled. */ - url: string; + url?: string; } /** * Describes authentication configuration that uses a custom account. @@ -105,16 +108,16 @@ export namespace websecurityscanner_v1alpha { /** * Required. The login form URL of the website. */ - loginUrl: string; + loginUrl?: string; /** * Input only. Required. The password of the custom account. The credential * is stored encrypted and not returned in any response. */ - password: string; + password?: string; /** * Required. The user name of the custom account. */ - username: string; + username?: string; } /** * A generic empty message that you can re-use to avoid defining duplicated @@ -132,71 +135,71 @@ export namespace websecurityscanner_v1alpha { /** * Output only. The body of the request that triggered the vulnerability. */ - body: string; + body?: string; /** * Output only. The description of the vulnerability. */ - description: string; + description?: string; /** * Output only. The URL where the browser lands when the vulnerability is * detected. */ - finalUrl: string; + finalUrl?: string; /** * Output only. The type of the Finding. */ - findingType: string; + findingType?: string; /** * Output only. If the vulnerability was originated from nested IFrame, the * immediate parent IFrame is reported. */ - frameUrl: string; + frameUrl?: string; /** * Output only. The URL produced by the server-side fuzzer and used in the * request that triggered the vulnerability. */ - fuzzedUrl: string; + fuzzedUrl?: string; /** * Output only. The http method of the request that triggered the * vulnerability, in uppercase. */ - httpMethod: string; + httpMethod?: string; /** * Output only. The resource name of the Finding. The name follows the * format of * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'. * The finding IDs are generated by the system. */ - name: string; + name?: string; /** * Output only. An addon containing information about outdated libraries. */ - outdatedLibrary: Schema$OutdatedLibrary; + outdatedLibrary?: Schema$OutdatedLibrary; /** * Output only. The URL containing human-readable payload that user can * leverage to reproduce the vulnerability. */ - reproductionUrl: string; + reproductionUrl?: string; /** * Output only. The tracking ID uniquely identifies a vulnerability instance * across multiple ScanRuns. */ - trackingId: string; + trackingId?: string; /** * Output only. An addon containing detailed information regarding any * resource causing the vulnerability such as JavaScript sources, image, * audio files, etc. */ - violatingResource: Schema$ViolatingResource; + violatingResource?: Schema$ViolatingResource; /** * Output only. An addon containing information about request parameters * which were found to be vulnerable. */ - vulnerableParameters: Schema$VulnerableParameters; + vulnerableParameters?: Schema$VulnerableParameters; /** * Output only. An addon containing information reported for an XSS, if any. */ - xss: Schema$Xss; + xss?: Schema$Xss; } /** * A FindingTypeStats resource represents stats regarding a specific @@ -206,11 +209,11 @@ export namespace websecurityscanner_v1alpha { /** * Output only. The count of findings belonging to this finding type. */ - findingCount: number; + findingCount?: number; /** * Output only. The finding type associated with the stats. */ - findingType: string; + findingType?: string; } /** * Describes authentication configuration that uses a Google account. @@ -220,11 +223,11 @@ export namespace websecurityscanner_v1alpha { * Input only. Required. The password of the Google account. The credential * is stored encrypted and not returned in any response. */ - password: string; + password?: string; /** * Required. The user name of the Google account. */ - username: string; + username?: string; } /** * Response for the `ListCrawledUrls` method. @@ -233,12 +236,12 @@ export namespace websecurityscanner_v1alpha { /** * The list of CrawledUrls returned. */ - crawledUrls: Schema$CrawledUrl[]; + crawledUrls?: Schema$CrawledUrl[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response for the `ListFindings` method. @@ -247,12 +250,12 @@ export namespace websecurityscanner_v1alpha { /** * The list of Findings returned. */ - findings: Schema$Finding[]; + findings?: Schema$Finding[]; /** * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response for the `ListFindingTypeStats` method. @@ -261,7 +264,7 @@ export namespace websecurityscanner_v1alpha { /** * The list of FindingTypeStats returned. */ - findingTypeStats: Schema$FindingTypeStats[]; + findingTypeStats?: Schema$FindingTypeStats[]; } /** * Response for the `ListScanConfigs` method. @@ -271,11 +274,11 @@ export namespace websecurityscanner_v1alpha { * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of ScanConfigs returned. */ - scanConfigs: Schema$ScanConfig[]; + scanConfigs?: Schema$ScanConfig[]; } /** * Response for the `ListScanRuns` method. @@ -285,11 +288,11 @@ export namespace websecurityscanner_v1alpha { * Token to retrieve the next page of results, or empty if there are no more * results in the list. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of ScanRuns returned. */ - scanRuns: Schema$ScanRun[]; + scanRuns?: Schema$ScanRun[]; } /** * Information reported for an outdated library. @@ -298,15 +301,15 @@ export namespace websecurityscanner_v1alpha { /** * URLs to learn more information about the vulnerabilities in the library. */ - learnMoreUrls: string[]; + learnMoreUrls?: string[]; /** * The name of the outdated library. */ - libraryName: string; + libraryName?: string; /** * The version number. */ - version: string; + version?: string; } /** * A ScanConfig resource contains the configurations to launch a scan. @@ -316,46 +319,46 @@ export namespace websecurityscanner_v1alpha { * The authentication configuration. If specified, service will use the * authentication configuration during scanning. */ - authentication: Schema$Authentication; + authentication?: Schema$Authentication; /** * The blacklist URL patterns as described in * https://cloud.google.com/security-scanner/docs/excluded-urls */ - blacklistPatterns: string[]; + blacklistPatterns?: string[]; /** * Required. The user provided display name of the ScanConfig. */ - displayName: string; + displayName?: string; /** * The maximum QPS during scanning. A valid value ranges from 5 to 20 * inclusively. If the field is unspecified or its value is set 0, server * will default to 15. Other values outside of [5, 20] range will be * rejected with INVALID_ARGUMENT error. */ - maxQps: number; + maxQps?: number; /** * The resource name of the ScanConfig. The name follows the format of * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig * IDs are generated by the system. */ - name: string; + name?: string; /** * The schedule of the ScanConfig. */ - schedule: Schema$Schedule; + schedule?: Schema$Schedule; /** * Required. The starting URLs from which the scanner finds site pages. */ - startingUrls: string[]; + startingUrls?: string[]; /** * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be * used as a default. */ - targetPlatforms: string[]; + targetPlatforms?: string[]; /** * The user agent used during scanning. */ - userAgent: string; + userAgent?: string; } /** * A ScanRun is a output-only resource representing an actual run of the scan. @@ -365,50 +368,50 @@ export namespace websecurityscanner_v1alpha { * Output only. The time at which the ScanRun reached termination state - * that the ScanRun is either finished or stopped by user. */ - endTime: string; + endTime?: string; /** * Output only. The execution state of the ScanRun. */ - executionState: string; + executionState?: string; /** * Output only. Whether the scan run has found any vulnerabilities. */ - hasVulnerabilities: boolean; + hasVulnerabilities?: boolean; /** * Output only. The resource name of the ScanRun. The name follows the * format of * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. * The ScanRun IDs are generated by the system. */ - name: string; + name?: string; /** * Output only. The percentage of total completion ranging from 0 to 100. If * the scan is in queue, the value is 0. If the scan is running, the value * ranges from 0 to 100. If the scan is finished, the value is 100. */ - progressPercent: number; + progressPercent?: number; /** * Output only. The result state of the ScanRun. This field is only * available after the execution state reaches "FINISHED". */ - resultState: string; + resultState?: string; /** * Output only. The time at which the ScanRun started. */ - startTime: string; + startTime?: string; /** * Output only. The number of URLs crawled during this ScanRun. If the scan * is in progress, the value represents the number of URLs crawled up to * now. */ - urlsCrawledCount: string; + urlsCrawledCount?: string; /** * Output only. The number of URLs tested during this ScanRun. If the scan * is in progress, the value represents the number of URLs tested up to now. * The number of URLs tested is usually larger than the number URLS crawled * because typically a crawled URL is tested with multiple test payloads. */ - urlsTestedCount: string; + urlsTestedCount?: string; } /** * Scan schedule configuration. @@ -417,14 +420,14 @@ export namespace websecurityscanner_v1alpha { /** * Required. The duration of time between executions in days. */ - intervalDurationDays: number; + intervalDurationDays?: number; /** * A timestamp indicates when the next run will be scheduled. The value is * refreshed by the server after each run. If unspecified, it will default * to current server time, which means the scan will be scheduled to start * immediately. */ - scheduleTime: string; + scheduleTime?: string; } /** * Request for the `StartScanRun` method. @@ -442,11 +445,11 @@ export namespace websecurityscanner_v1alpha { /** * The MIME type of this resource. */ - contentType: string; + contentType?: string; /** * URL of this violating resource. */ - resourceUrl: string; + resourceUrl?: string; } /** * Information about vulnerable request parameters. @@ -455,7 +458,7 @@ export namespace websecurityscanner_v1alpha { /** * The vulnerable parameter names. */ - parameterNames: string[]; + parameterNames?: string[]; } /** * Information reported for an XSS. @@ -464,13 +467,14 @@ export namespace websecurityscanner_v1alpha { /** * An error message generated by a javascript breakage. */ - errorMessage: string; + errorMessage?: string; /** * Stack traces leading to the point where the XSS occurred. */ - stackTraces: string[]; + stackTraces?: string[]; } + export class Resource$Projects { root: Websecurityscanner; scanConfigs: Resource$Projects$Scanconfigs; @@ -484,6 +488,8 @@ export namespace websecurityscanner_v1alpha { return this.root; } } + + export class Resource$Projects$Scanconfigs { root: Websecurityscanner; scanRuns: Resource$Projects$Scanconfigs$Scanruns; @@ -511,26 +517,39 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): - AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Scanconfigs$Create, + options?: MethodOptions): AxiosPromise; create( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Scanconfigs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + create( + params: Params$Resource$Projects$Scanconfigs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -566,25 +585,38 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Scanconfigs$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Scanconfigs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Projects$Scanconfigs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -619,23 +651,35 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Scanconfigs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Scanconfigs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Scanconfigs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Scanconfigs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -672,28 +716,40 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Scanconfigs$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Scanconfigs$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Scanconfigs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Projects$Scanconfigs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -732,26 +788,39 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch(params?: any, options?: MethodOptions): - AxiosPromise; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Scanconfigs$Patch, + options?: MethodOptions): AxiosPromise; + patch( + params: Params$Resource$Projects$Scanconfigs$Patch, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + patch( + params: Params$Resource$Projects$Scanconfigs$Patch, + callback: BodyResponseCallback): void; + patch(callback: BodyResponseCallback): void; patch( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Patch| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Patch; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -787,25 +856,38 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - start(params?: any, options?: MethodOptions): AxiosPromise; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Scanconfigs$Start, + options?: MethodOptions): AxiosPromise; + start( + params: Params$Resource$Projects$Scanconfigs$Start, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + start( + params: Params$Resource$Projects$Scanconfigs$Start, + callback: BodyResponseCallback): void; + start(callback: BodyResponseCallback): void; start( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Start| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Start; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Start; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -828,6 +910,111 @@ export namespace websecurityscanner_v1alpha { } } } + + export interface Params$Resource$Projects$Scanconfigs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource name where the scan is created, which + * should be a project resource name in the format 'projects/{projectId}'. + */ + parent?: string; + /** + * Request body metadata + */ + resource?: Schema$ScanConfig; + } + export interface Params$Resource$Projects$Scanconfigs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the ScanConfig to be deleted. The name + * follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + */ + name?: string; + } + export interface Params$Resource$Projects$Scanconfigs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the ScanConfig to be returned. The name + * follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + */ + name?: string; + } + export interface Params$Resource$Projects$Scanconfigs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of ScanConfigs to return, can be limited by server. If + * not specified or not positive, the implementation will select a + * reasonable value. + */ + pageSize?: number; + /** + * A token identifying a page of results to be returned. This should be a + * `next_page_token` value returned from a previous List request. If + * unspecified, the first page of results is returned. + */ + pageToken?: string; + /** + * Required. The parent resource name, which should be a project resource + * name in the format 'projects/{projectId}'. + */ + parent?: string; + } + export interface Params$Resource$Projects$Scanconfigs$Patch { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The resource name of the ScanConfig. The name follows the format of + * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are + * generated by the system. + */ + name?: string; + /** + * Required. The update mask applies to the resource. For the `FieldMask` + * definition, see + * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask + */ + updateMask?: string; + /** + * Request body metadata + */ + resource?: Schema$ScanConfig; + } + export interface Params$Resource$Projects$Scanconfigs$Start { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the ScanConfig to be used. The name + * follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StartScanRunRequest; + } + export class Resource$Projects$Scanconfigs$Scanruns { root: Websecurityscanner; crawledUrls: Resource$Projects$Scanconfigs$Scanruns$Crawledurls; @@ -860,23 +1047,34 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Scanruns$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -914,28 +1112,40 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Scanconfigs$Scanruns$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Scanconfigs$Scanruns$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Scanconfigs$Scanruns$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Scanruns$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -972,25 +1182,38 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - stop(params?: any, options?: MethodOptions): AxiosPromise; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, + options?: MethodOptions): AxiosPromise; + stop( + params: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; stop( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, + callback: BodyResponseCallback): void; + stop(callback: BodyResponseCallback): void; + stop( + paramsOrCallback?: Params$Resource$Projects$Scanconfigs$Scanruns$Stop| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$Stop; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Stop; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -1013,6 +1236,62 @@ export namespace websecurityscanner_v1alpha { } } } + + export interface Params$Resource$Projects$Scanconfigs$Scanruns$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the ScanRun to be returned. The name + * follows the format of + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + */ + name?: string; + } + export interface Params$Resource$Projects$Scanconfigs$Scanruns$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of ScanRuns to return, can be limited by server. If + * not specified or not positive, the implementation will select a + * reasonable value. + */ + pageSize?: number; + /** + * A token identifying a page of results to be returned. This should be a + * `next_page_token` value returned from a previous List request. If + * unspecified, the first page of results is returned. + */ + pageToken?: string; + /** + * Required. The parent resource name, which should be a scan resource name + * in the format 'projects/{projectId}/scanConfigs/{scanConfigId}'. + */ + parent?: string; + } + export interface Params$Resource$Projects$Scanconfigs$Scanruns$Stop { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the ScanRun to be stopped. The name + * follows the format of + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + */ + name?: string; + /** + * Request body metadata + */ + resource?: Schema$StopScanRunRequest; + } + export class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { root: Websecurityscanner; constructor(root: Websecurityscanner) { @@ -1039,28 +1318,42 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -1084,6 +1377,33 @@ export namespace websecurityscanner_v1alpha { } } + export interface Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The maximum number of CrawledUrls to return, can be limited by server. If + * not specified or not positive, the implementation will select a + * reasonable value. + */ + pageSize?: number; + /** + * A token identifying a page of results to be returned. This should be a + * `next_page_token` value returned from a previous List request. If + * unspecified, the first page of results is returned. + */ + pageToken?: string; + /** + * Required. The parent resource name, which should be a scan run resource + * name in the format + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + */ + parent?: string; + } + + export class Resource$Projects$Scanconfigs$Scanruns$Findings { root: Websecurityscanner; constructor(root: Websecurityscanner) { @@ -1108,23 +1428,36 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: + Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -1162,28 +1495,42 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): - AxiosPromise; list( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, + options?: MethodOptions): AxiosPromise; + list( + params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -1207,6 +1554,52 @@ export namespace websecurityscanner_v1alpha { } } + export interface Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The resource name of the Finding to be returned. The name + * follows the format of + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. + */ + name?: string; + } + export interface Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The filter expression. The expression must be in the format: + * . Supported field: 'finding_type'. Supported operator: + * '='. + */ + filter?: string; + /** + * The maximum number of Findings to return, can be limited by server. If + * not specified or not positive, the implementation will select a + * reasonable value. + */ + pageSize?: number; + /** + * A token identifying a page of results to be returned. This should be a + * `next_page_token` value returned from a previous List request. If + * unspecified, the first page of results is returned. + */ + pageToken?: string; + /** + * Required. The parent resource name, which should be a scan run resource + * name in the format + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + */ + parent?: string; + } + + export class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { root: Websecurityscanner; constructor(root: Websecurityscanner) { @@ -1232,29 +1625,49 @@ export namespace websecurityscanner_v1alpha { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: + Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: + Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: + Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: + Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as + Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; const parameters = { @@ -1279,4 +1692,18 @@ export namespace websecurityscanner_v1alpha { } } } + + export interface Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Required. The parent resource name, which should be a scan run resource + * name in the format + * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. + */ + parent?: string; + } } diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index fec80472a6f..e47b762efb5 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace youtube_v3 { + export interface Options extends GlobalOptions { version: 'v3'; } + /** * YouTube Data API * @@ -58,7 +61,6 @@ export namespace youtube_v3 { channelSections: Resource$Channelsections; comments: Resource$Comments; commentThreads: Resource$Commentthreads; - fanFundingEvents: Resource$Fanfundingevents; guideCategories: Resource$Guidecategories; i18nLanguages: Resource$I18nlanguages; i18nRegions: Resource$I18nregions; @@ -91,7 +93,6 @@ export namespace youtube_v3 { this.channelSections = new Resource$Channelsections(this); this.comments = new Resource$Comments(this); this.commentThreads = new Resource$Commentthreads(this); - this.fanFundingEvents = new Resource$Fanfundingevents(this); this.guideCategories = new Resource$Guidecategories(this); this.i18nLanguages = new Resource$I18nlanguages(this); this.i18nRegions = new Resource$I18nregions(this); @@ -126,12 +127,12 @@ export namespace youtube_v3 { * The value of allowed indicates whether the access to the policy is * allowed or denied by default. */ - allowed: boolean; + allowed?: boolean; /** * A list of region codes that identify countries where the default policy * do not apply. */ - exception: string[]; + exception?: string[]; } /** * An activity resource contains information about an action that a particular @@ -149,25 +150,25 @@ export namespace youtube_v3 { * videoRated, then the contentDetails object's content identifies the * rated video. */ - contentDetails: Schema$ActivityContentDetails; + contentDetails?: Schema$ActivityContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the activity. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#activity". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the activity, including * the activity's type and group ID. */ - snippet: Schema$ActivitySnippet; + snippet?: Schema$ActivitySnippet; } /** * Details about the content of an activity: the video that was shared, the @@ -178,63 +179,63 @@ export namespace youtube_v3 { * The bulletin object contains details about a channel bulletin post. This * object is only present if the snippet.type is bulletin. */ - bulletin: Schema$ActivityContentDetailsBulletin; + bulletin?: Schema$ActivityContentDetailsBulletin; /** * The channelItem object contains details about a resource which was added * to a channel. This property is only present if the snippet.type is * channelItem. */ - channelItem: Schema$ActivityContentDetailsChannelItem; + channelItem?: Schema$ActivityContentDetailsChannelItem; /** * The comment object contains information about a resource that received a * comment. This property is only present if the snippet.type is comment. */ - comment: Schema$ActivityContentDetailsComment; + comment?: Schema$ActivityContentDetailsComment; /** * The favorite object contains information about a video that was marked as * a favorite video. This property is only present if the snippet.type is * favorite. */ - favorite: Schema$ActivityContentDetailsFavorite; + favorite?: Schema$ActivityContentDetailsFavorite; /** * The like object contains information about a resource that received a * positive (like) rating. This property is only present if the snippet.type * is like. */ - like: Schema$ActivityContentDetailsLike; + like?: Schema$ActivityContentDetailsLike; /** * The playlistItem object contains information about a new playlist item. * This property is only present if the snippet.type is playlistItem. */ - playlistItem: Schema$ActivityContentDetailsPlaylistItem; + playlistItem?: Schema$ActivityContentDetailsPlaylistItem; /** * The promotedItem object contains details about a resource which is being * promoted. This property is only present if the snippet.type is * promotedItem. */ - promotedItem: Schema$ActivityContentDetailsPromotedItem; + promotedItem?: Schema$ActivityContentDetailsPromotedItem; /** * The recommendation object contains information about a recommended * resource. This property is only present if the snippet.type is * recommendation. */ - recommendation: Schema$ActivityContentDetailsRecommendation; + recommendation?: Schema$ActivityContentDetailsRecommendation; /** * The social object contains details about a social network post. This * property is only present if the snippet.type is social. */ - social: Schema$ActivityContentDetailsSocial; + social?: Schema$ActivityContentDetailsSocial; /** * The subscription object contains information about a channel that a user * subscribed to. This property is only present if the snippet.type is * subscription. */ - subscription: Schema$ActivityContentDetailsSubscription; + subscription?: Schema$ActivityContentDetailsSubscription; /** * The upload object contains information about the uploaded video. This * property is only present if the snippet.type is upload. */ - upload: Schema$ActivityContentDetailsUpload; + upload?: Schema$ActivityContentDetailsUpload; } /** * Details about a channel bulletin post. @@ -244,7 +245,7 @@ export namespace youtube_v3 { * The resourceId object contains information that identifies the resource * associated with a bulletin post. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Details about a resource which was added to a channel. @@ -254,7 +255,7 @@ export namespace youtube_v3 { * The resourceId object contains information that identifies the resource * that was added to the channel. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Information about a resource that received a comment. @@ -264,7 +265,7 @@ export namespace youtube_v3 { * The resourceId object contains information that identifies the resource * associated with the comment. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Information about a video that was marked as a favorite video. @@ -274,7 +275,7 @@ export namespace youtube_v3 { * The resourceId object contains information that identifies the resource * that was marked as a favorite. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Information about a resource that received a positive (like) rating. @@ -284,7 +285,7 @@ export namespace youtube_v3 { * The resourceId object contains information that identifies the rated * resource. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Information about a new playlist item. @@ -293,16 +294,16 @@ export namespace youtube_v3 { /** * The value that YouTube uses to uniquely identify the playlist. */ - playlistId: string; + playlistId?: string; /** * ID of the item within the playlist. */ - playlistItemId: string; + playlistItemId?: string; /** * The resourceId object contains information about the resource that was * added to the playlist. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Details about a resource which is being promoted. @@ -311,51 +312,51 @@ export namespace youtube_v3 { /** * The URL the client should fetch to request a promoted item. */ - adTag: string; + adTag?: string; /** * The URL the client should ping to indicate that the user clicked through * on this promoted item. */ - clickTrackingUrl: string; + clickTrackingUrl?: string; /** * The URL the client should ping to indicate that the user was shown this * promoted item. */ - creativeViewUrl: string; + creativeViewUrl?: string; /** * The type of call-to-action, a message to the user indicating action that * can be taken. */ - ctaType: string; + ctaType?: string; /** * The custom call-to-action button text. If specified, it will override the * default button text for the cta_type. */ - customCtaButtonText: string; + customCtaButtonText?: string; /** * The text description to accompany the promoted item. */ - descriptionText: string; + descriptionText?: string; /** * The URL the client should direct the user to, if the user chooses to * visit the advertiser's website. */ - destinationUrl: string; + destinationUrl?: string; /** * The list of forecasting URLs. The client should ping all of these URLs * when a promoted item is not available, to indicate that a promoted item * could have been shown. */ - forecastingUrl: string[]; + forecastingUrl?: string[]; /** * The list of impression URLs. The client should ping all of these URLs to * indicate that the user was shown this promoted item. */ - impressionUrl: string[]; + impressionUrl?: string[]; /** * The ID that YouTube uses to uniquely identify the promoted video. */ - videoId: string; + videoId?: string; } /** * Information that identifies the recommended resource. @@ -364,17 +365,17 @@ export namespace youtube_v3 { /** * The reason that the resource is recommended to the user. */ - reason: string; + reason?: string; /** * The resourceId object contains information that identifies the * recommended resource. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; /** * The seedResourceId object contains information about the resource that * caused the recommendation. */ - seedResourceId: Schema$ResourceId; + seedResourceId?: Schema$ResourceId; } /** * Details about a social network post. @@ -383,24 +384,24 @@ export namespace youtube_v3 { /** * The author of the social network post. */ - author: string; + author?: string; /** * An image of the post's author. */ - imageUrl: string; + imageUrl?: string; /** * The URL of the social network post. */ - referenceUrl: string; + referenceUrl?: string; /** * The resourceId object encapsulates information that identifies the * resource associated with a social network post. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; /** * The name of the social network. */ - type: string; + type?: string; } /** * Information about a channel that a user subscribed to. @@ -410,7 +411,7 @@ export namespace youtube_v3 { * The resourceId object contains information that identifies the resource * that the user subscribed to. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; } /** * Information about the uploaded video. @@ -419,42 +420,42 @@ export namespace youtube_v3 { /** * The ID that YouTube uses to uniquely identify the uploaded video. */ - videoId: string; + videoId?: string; } export interface Schema$ActivityListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of activities, or events, that match the request criteria. */ - items: Schema$Activity[]; + items?: Schema$Activity[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#activityListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about an activity, including title, description, thumbnails, @@ -465,15 +466,15 @@ export namespace youtube_v3 { * The ID that YouTube uses to uniquely identify the channel associated with * the activity. */ - channelId: string; + channelId?: string; /** * Channel title for the channel responsible for this activity */ - channelTitle: string; + channelTitle?: string; /** * The description of the resource primarily associated with the activity. */ - description: string; + description?: string; /** * The group ID associated with the activity. A group ID identifies user * events that are associated with the same user and resource. For example, @@ -482,27 +483,27 @@ export namespace youtube_v3 { * activity feed. In your user interface, you can avoid repetition by * grouping events with the same groupId value. */ - groupId: string; + groupId?: string; /** * The date and time that the video was uploaded. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * A map of thumbnail images associated with the resource that is primarily * associated with the activity. For each object in the map, the key is the * name of the thumbnail image, and the value is an object that contains * other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The title of the resource primarily associated with the activity. */ - title: string; + title?: string; /** * The type of activity that the resource describes. */ - type: string; + type?: string; } /** * A caption resource represents a YouTube caption track. A caption track is @@ -512,43 +513,43 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the caption track. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#caption". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the caption. */ - snippet: Schema$CaptionSnippet; + snippet?: Schema$CaptionSnippet; } export interface Schema$CaptionListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of captions that match the request criteria. */ - items: Schema$Caption[]; + items?: Schema$Caption[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#captionListResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a caption track, such as its language and name. @@ -557,12 +558,12 @@ export namespace youtube_v3 { /** * The type of audio track associated with the caption track. */ - audioTrackType: string; + audioTrackType?: string; /** * The reason that YouTube failed to process the caption track. This * property is only present if the state property's value is failed. */ - failureReason: string; + failureReason?: string; /** * Indicates whether YouTube synchronized the caption track to the audio * track in the video. The value will be true if a sync was explicitly @@ -572,56 +573,56 @@ export namespace youtube_v3 { * video. If the value is false, YouTube uses the time codes in the uploaded * caption track to determine when to display captions. */ - isAutoSynced: boolean; + isAutoSynced?: boolean; /** * Indicates whether the track contains closed captions for the deaf and * hard of hearing. The default value is false. */ - isCC: boolean; + isCC?: boolean; /** * Indicates whether the caption track is a draft. If the value is true, * then the track is not publicly visible. The default value is false. */ - isDraft: boolean; + isDraft?: boolean; /** * Indicates whether caption track is formatted for "easy reader," * meaning it is at a third-grade level for language learners. The default * value is false. */ - isEasyReader: boolean; + isEasyReader?: boolean; /** * Indicates whether the caption track uses large text for the * vision-impaired. The default value is false. */ - isLarge: boolean; + isLarge?: boolean; /** * The language of the caption track. The property value is a BCP-47 * language tag. */ - language: string; + language?: string; /** * The date and time when the caption track was last updated. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - lastUpdated: string; + lastUpdated?: string; /** * The name of the caption track. The name is intended to be visible to the * user as an option during playback. */ - name: string; + name?: string; /** * The caption track's status. */ - status: string; + status?: string; /** * The caption track's type. */ - trackKind: string; + trackKind?: string; /** * The ID that YouTube uses to uniquely identify the video associated with * the caption track. */ - videoId: string; + videoId?: string; } /** * Brief description of the live stream cdn settings. @@ -630,24 +631,24 @@ export namespace youtube_v3 { /** * The format of the video stream that you are sending to Youtube. */ - format: string; + format?: string; /** * The frame rate of the inbound video data. */ - frameRate: string; + frameRate?: string; /** * The ingestionInfo object contains information that YouTube provides that * you need to transmit your RTMP or HTTP stream to YouTube. */ - ingestionInfo: Schema$IngestionInfo; + ingestionInfo?: Schema$IngestionInfo; /** * The method or protocol used to transmit the video stream. */ - ingestionType: string; + ingestionType?: string; /** * The resolution of the inbound video data. */ - resolution: string; + resolution?: string; } /** * A channel resource contains information about a YouTube channel. @@ -657,68 +658,68 @@ export namespace youtube_v3 { * The auditionDetails object encapsulates channel data that is relevant for * YouTube Partners during the audition process. */ - auditDetails: Schema$ChannelAuditDetails; + auditDetails?: Schema$ChannelAuditDetails; /** * The brandingSettings object encapsulates information about the branding * of the channel. */ - brandingSettings: Schema$ChannelBrandingSettings; + brandingSettings?: Schema$ChannelBrandingSettings; /** * The contentDetails object encapsulates information about the * channel's content. */ - contentDetails: Schema$ChannelContentDetails; + contentDetails?: Schema$ChannelContentDetails; /** * The contentOwnerDetails object encapsulates channel data that is relevant * for YouTube Partners linked with the channel. */ - contentOwnerDetails: Schema$ChannelContentOwnerDetails; + contentOwnerDetails?: Schema$ChannelContentOwnerDetails; /** * The conversionPings object encapsulates information about conversion * pings that need to be respected by the channel. */ - conversionPings: Schema$ChannelConversionPings; + conversionPings?: Schema$ChannelConversionPings; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the channel. */ - id: string; + id?: string; /** * The invideoPromotion object encapsulates information about promotion * campaign associated with the channel. */ - invideoPromotion: Schema$InvideoPromotion; + invideoPromotion?: Schema$InvideoPromotion; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#channel". */ - kind: string; + kind?: string; /** * Localizations for different languages */ - localizations: any; + localizations?: any; /** * The snippet object contains basic details about the channel, such as its * title, description, and thumbnail images. */ - snippet: Schema$ChannelSnippet; + snippet?: Schema$ChannelSnippet; /** * The statistics object encapsulates statistics for the channel. */ - statistics: Schema$ChannelStatistics; + statistics?: Schema$ChannelStatistics; /** * The status object encapsulates information about the privacy status of * the channel. */ - status: Schema$ChannelStatus; + status?: Schema$ChannelStatus; /** * The topicDetails object encapsulates information about Freebase topics * associated with the channel. */ - topicDetails: Schema$ChannelTopicDetails; + topicDetails?: Schema$ChannelTopicDetails; } /** * The auditDetails object encapsulates channel data that is relevant for @@ -728,15 +729,15 @@ export namespace youtube_v3 { /** * Whether or not the channel respects the community guidelines. */ - communityGuidelinesGoodStanding: boolean; + communityGuidelinesGoodStanding?: boolean; /** * Whether or not the channel has any unresolved claims. */ - contentIdClaimsGoodStanding: boolean; + contentIdClaimsGoodStanding?: boolean; /** * Whether or not the channel has any copyright strikes. */ - copyrightStrikesGoodStanding: boolean; + copyrightStrikesGoodStanding?: boolean; /** * Describes the general state of the channel. This field will always show * if there are any issues whatsoever with the channel. Currently this field @@ -744,7 +745,7 @@ export namespace youtube_v3 { * guidelines good standing, the copyright strikes good standing and the * content ID claims good standing, but this may change in the future. */ - overallGoodStanding: boolean; + overallGoodStanding?: boolean; } /** * A channel banner returned as the response to a channel_banner.insert call. @@ -753,16 +754,16 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#channelBannerResource". */ - kind: string; + kind?: string; /** * The URL of this banner image. */ - url: string; + url?: string; } /** * Branding properties of a YouTube channel. @@ -771,24 +772,24 @@ export namespace youtube_v3 { /** * Branding properties for the channel view. */ - channel: Schema$ChannelSettings; + channel?: Schema$ChannelSettings; /** * Additional experimental branding properties. */ - hints: Schema$PropertyValue[]; + hints?: Schema$PropertyValue[]; /** * Branding properties for branding images. */ - image: Schema$ImageSettings; + image?: Schema$ImageSettings; /** * Branding properties for the watch page. */ - watch: Schema$WatchSettings; + watch?: Schema$WatchSettings; } /** * Details about the content of a channel. */ - export interface Schema$ChannelContentDetails { relatedPlaylists: any; } + export interface Schema$ChannelContentDetails { relatedPlaylists?: any; } /** * The contentOwnerDetails object encapsulates channel data that is relevant * for YouTube Partners linked with the channel. @@ -797,12 +798,12 @@ export namespace youtube_v3 { /** * The ID of the content owner linked to the channel. */ - contentOwner: string; + contentOwner?: string; /** * The date and time of when the channel was linked to the content owner. * The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - timeLinked: string; + timeLinked?: string; } /** * Pings that the app shall fire (authenticated by biscotti cookie). Each ping @@ -813,7 +814,7 @@ export namespace youtube_v3 { /** * Defines the context of the ping. */ - context: string; + context?: string; /** * The url (without the schema) that the player shall send the ping to. * It's at caller's descretion to decide which schema to use (http @@ -824,7 +825,7 @@ export namespace youtube_v3 { * append biscotti authentication (ms param in case of mobile, for example) * to this ping. */ - conversionUrl: string; + conversionUrl?: string; } /** * The conversionPings object encapsulates information about conversion pings @@ -836,42 +837,42 @@ export namespace youtube_v3 { * ping has a context, in which the app must fire the ping, and a url * identifying the ping. */ - pings: Schema$ChannelConversionPing[]; + pings?: Schema$ChannelConversionPing[]; } export interface Schema$ChannelListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of channels that match the request criteria. */ - items: Schema$Channel[]; + items?: Schema$Channel[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#channelListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Channel localization setting @@ -880,63 +881,63 @@ export namespace youtube_v3 { /** * The localized strings for channel's description. */ - description: string; + description?: string; /** * The localized strings for channel's title. */ - title: string; + title?: string; } export interface Schema$ChannelProfileDetails { /** * The YouTube channel ID. */ - channelId: string; + channelId?: string; /** * The channel's URL. */ - channelUrl: string; + channelUrl?: string; /** * The channel's display name. */ - displayName: string; + displayName?: string; /** * The channels's avatar URL. */ - profileImageUrl: string; + profileImageUrl?: string; } export interface Schema$ChannelSection { /** * The contentDetails object contains details about the channel section * content, such as a list of playlists or channels featured in the section. */ - contentDetails: Schema$ChannelSectionContentDetails; + contentDetails?: Schema$ChannelSectionContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the channel section. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#channelSection". */ - kind: string; + kind?: string; /** * Localizations for different languages */ - localizations: any; + localizations?: any; /** * The snippet object contains basic details about the channel section, such * as its type, style and title. */ - snippet: Schema$ChannelSectionSnippet; + snippet?: Schema$ChannelSectionSnippet; /** * The targeting object contains basic targeting settings about the channel * section. */ - targeting: Schema$ChannelSectionTargeting; + targeting?: Schema$ChannelSectionTargeting; } /** * Details about a channelsection, including playlists and channels. @@ -945,35 +946,35 @@ export namespace youtube_v3 { /** * The channel ids for type multiple_channels. */ - channels: string[]; + channels?: string[]; /** * The playlist ids for type single_playlist and multiple_playlists. For * singlePlaylist, only one playlistId is allowed. */ - playlists: string[]; + playlists?: string[]; } export interface Schema$ChannelSectionListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of ChannelSections that match the request criteria. */ - items: Schema$ChannelSection[]; + items?: Schema$ChannelSection[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#channelSectionListResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * ChannelSection localization setting @@ -982,7 +983,7 @@ export namespace youtube_v3 { /** * The localized strings for channel section's title. */ - title: string; + title?: string; } /** * Basic details about a channel section, including title, style and position. @@ -992,32 +993,32 @@ export namespace youtube_v3 { * The ID that YouTube uses to uniquely identify the channel that published * the channel section. */ - channelId: string; + channelId?: string; /** * The language of the channel section's default title and description. */ - defaultLanguage: string; + defaultLanguage?: string; /** * Localized title, read-only. */ - localized: Schema$ChannelSectionLocalization; + localized?: Schema$ChannelSectionLocalization; /** * The position of the channel section in the channel. */ - position: number; + position?: number; /** * The style of the channel section. */ - style: string; + style?: string; /** * The channel section's title for multiple_playlists and * multiple_channels. */ - title: string; + title?: string; /** * The type of the channel section. */ - type: string; + type?: string; } /** * ChannelSection targeting setting. @@ -1026,15 +1027,15 @@ export namespace youtube_v3 { /** * The country the channel section is targeting. */ - countries: string[]; + countries?: string[]; /** * The language the channel section is targeting. */ - languages: string[]; + languages?: string[]; /** * The region the channel section is targeting. */ - regions: string[]; + regions?: string[]; } /** * Branding properties for the channel view. @@ -1043,58 +1044,58 @@ export namespace youtube_v3 { /** * The country of the channel. */ - country: string; - defaultLanguage: string; + country?: string; + defaultLanguage?: string; /** * Which content tab users should see when viewing the channel. */ - defaultTab: string; + defaultTab?: string; /** * Specifies the channel description. */ - description: string; + description?: string; /** * Title for the featured channels tab. */ - featuredChannelsTitle: string; + featuredChannelsTitle?: string; /** * The list of featured channels. */ - featuredChannelsUrls: string[]; + featuredChannelsUrls?: string[]; /** * Lists keywords associated with the channel, comma-separated. */ - keywords: string; + keywords?: string; /** * Whether user-submitted comments left on the channel page need to be * approved by the channel owner to be publicly visible. */ - moderateComments: boolean; + moderateComments?: boolean; /** * A prominent color that can be rendered on this channel page. */ - profileColor: string; + profileColor?: string; /** * Whether the tab to browse the videos should be displayed. */ - showBrowseView: boolean; + showBrowseView?: boolean; /** * Whether related channels should be proposed. */ - showRelatedChannels: boolean; + showRelatedChannels?: boolean; /** * Specifies the channel title. */ - title: string; + title?: string; /** * The ID for a Google Analytics account to track and measure traffic to the * channels. */ - trackingAnalyticsAccountId: string; + trackingAnalyticsAccountId?: string; /** * The trailer of the channel, for users that are not subscribers. */ - unsubscribedTrailer: string; + unsubscribedTrailer?: string; } /** * Basic details about a channel, including title, description and thumbnails. @@ -1103,38 +1104,38 @@ export namespace youtube_v3 { /** * The country of the channel. */ - country: string; + country?: string; /** * The custom url of the channel. */ - customUrl: string; + customUrl?: string; /** * The language of the channel's default title and description. */ - defaultLanguage: string; + defaultLanguage?: string; /** * The description of the channel. */ - description: string; + description?: string; /** * Localized title and description, read-only. */ - localized: Schema$ChannelLocalization; + localized?: Schema$ChannelLocalization; /** * The date and time that the channel was created. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * A map of thumbnail images associated with the channel. For each object in * the map, the key is the name of the thumbnail image, and the value is an * object that contains other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The channel's title. */ - title: string; + title?: string; } /** * Statistics about a channel: number of subscribers, number of videos in the @@ -1144,23 +1145,23 @@ export namespace youtube_v3 { /** * The number of comments for the channel. */ - commentCount: string; + commentCount?: string; /** * Whether or not the number of subscribers is shown for this user. */ - hiddenSubscriberCount: boolean; + hiddenSubscriberCount?: boolean; /** * The number of subscribers that the channel has. */ - subscriberCount: string; + subscriberCount?: string; /** * The number of videos uploaded to the channel. */ - videoCount: string; + videoCount?: string; /** * The number of times the channel has been viewed. */ - viewCount: string; + viewCount?: string; } /** * JSON template for the status part of a channel. @@ -1170,15 +1171,15 @@ export namespace youtube_v3 { * If true, then the user is linked to either a YouTube username or G+ * account. Otherwise, the user doesn't have a public YouTube identity. */ - isLinked: boolean; + isLinked?: boolean; /** * The long uploads status of this channel. See */ - longUploadsStatus: string; + longUploadsStatus?: string; /** * Privacy status of the channel. */ - privacyStatus: string; + privacyStatus?: string; } /** * Freebase topic information related to the channel. @@ -1187,12 +1188,12 @@ export namespace youtube_v3 { /** * A list of Wikipedia URLs that describe the channel's content. */ - topicCategories: string[]; + topicCategories?: string[]; /** * A list of Freebase topic IDs associated with the channel. You can * retrieve information about each topic using the Freebase Topic API. */ - topicIds: string[]; + topicIds?: string[]; } /** * A comment represents a single YouTube comment. @@ -1201,50 +1202,50 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the comment. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#comment". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the comment. */ - snippet: Schema$CommentSnippet; + snippet?: Schema$CommentSnippet; } export interface Schema$CommentListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of comments that match the request criteria. */ - items: Schema$Comment[]; + items?: Schema$Comment[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#commentListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a comment, such as its author and text. @@ -1253,76 +1254,76 @@ export namespace youtube_v3 { /** * The id of the author's YouTube channel, if any. */ - authorChannelId: any; + authorChannelId?: any; /** * Link to the author's YouTube channel, if any. */ - authorChannelUrl: string; + authorChannelUrl?: string; /** * The name of the user who posted the comment. */ - authorDisplayName: string; + authorDisplayName?: string; /** * The URL for the avatar of the user who posted the comment. */ - authorProfileImageUrl: string; + authorProfileImageUrl?: string; /** * Whether the current viewer can rate this comment. */ - canRate: boolean; + canRate?: boolean; /** * The id of the corresponding YouTube channel. In case of a channel comment * this is the channel the comment refers to. In case of a video comment * it's the video's channel. */ - channelId: string; + channelId?: string; /** * The total number of likes this comment has received. */ - likeCount: number; + likeCount?: number; /** * The comment's moderation status. Will not be set if the comments were * requested through the id filter. */ - moderationStatus: string; + moderationStatus?: string; /** * The unique id of the parent comment, only set for replies. */ - parentId: string; + parentId?: string; /** * The date and time when the comment was orignally published. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * The comment's text. The format is either plain text or HTML dependent * on what has been requested. Even the plain text representation may differ * from the text originally posted in that it may replace video links with * video titles etc. */ - textDisplay: string; + textDisplay?: string; /** * The comment's original raw text as initially posted or last updated. * The original text will only be returned if it is accessible to the * viewer, which is only guaranteed if the viewer is the comment's * author. */ - textOriginal: string; + textOriginal?: string; /** * The date and time when was last updated . The value is specified in ISO * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - updatedAt: string; + updatedAt?: string; /** * The ID of the video the comment refers to, if any. */ - videoId: string; + videoId?: string; /** * The rating the viewer has given to this comment. For the time being this * will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. * This may change in the future. */ - viewerRating: string; + viewerRating?: string; } /** * A comment thread represents information that applies to a top level comment @@ -1333,56 +1334,56 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the comment thread. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#commentThread". */ - kind: string; + kind?: string; /** * The replies object contains a limited number of replies (if any) to the * top level comment found in the snippet. */ - replies: Schema$CommentThreadReplies; + replies?: Schema$CommentThreadReplies; /** * The snippet object contains basic details about the comment thread and * also the top level comment. */ - snippet: Schema$CommentThreadSnippet; + snippet?: Schema$CommentThreadSnippet; } export interface Schema$CommentThreadListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of comment threads that match the request criteria. */ - items: Schema$CommentThread[]; + items?: Schema$CommentThread[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#commentThreadListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Comments written in (direct or indirect) reply to the top level comment. @@ -1393,7 +1394,7 @@ export namespace youtube_v3 { * total_reply_count in the snippet the returned replies are only a subset * of the total number of replies. */ - comments: Schema$Comment[]; + comments?: Schema$Comment[]; } /** * Basic details about a comment thread. @@ -1403,31 +1404,31 @@ export namespace youtube_v3 { * Whether the current viewer of the thread can reply to it. This is viewer * specific - other viewers may see a different value for this field. */ - canReply: boolean; + canReply?: boolean; /** * The YouTube channel the comments in the thread refer to or the channel * with the video the comments refer to. If video_id isn't set the * comments refer to the channel itself. */ - channelId: string; + channelId?: string; /** * Whether the thread (and therefore all its comments) is visible to all * YouTube users. */ - isPublic: boolean; + isPublic?: boolean; /** * The top level comment of this thread. */ - topLevelComment: Schema$Comment; + topLevelComment?: Schema$Comment; /** * The total number of replies (not including the top level comment). */ - totalReplyCount: number; + totalReplyCount?: number; /** * The ID of the video the comments refer to, if any. No video_id implies a * channel discussion comment. */ - videoId: string; + videoId?: string; } /** * Ratings schemes. The country-specific ratings are mostly for movies and @@ -1439,38 +1440,38 @@ export namespace youtube_v3 { * Communications and Media Authority (ACMA) rating. ACMA ratings are used * to classify children's television programming. */ - acbRating: string; + acbRating?: string; /** * The video's rating from Italy's Autorità per le Garanzie nelle * Comunicazioni (AGCOM). */ - agcomRating: string; + agcomRating?: string; /** * The video's Anatel (Asociación Nacional de Televisión) rating for * Chilean television. */ - anatelRating: string; + anatelRating?: string; /** * The video's British Board of Film Classification (BBFC) rating. */ - bbfcRating: string; + bbfcRating?: string; /** * The video's rating from Thailand's Board of Film and Video * Censors. */ - bfvcRating: string; + bfvcRating?: string; /** * The video's rating from the Austrian Board of Media Classification * (Bundesministerium für Unterricht, Kunst und Kultur). */ - bmukkRating: string; + bmukkRating?: string; /** * The video's rating from the Canadian Radio-Television and * Telecommunications Commission (CRTC) for Canadian French-language * broadcasts. For more information, see the Canadian Broadcast Standards * Council website. */ - catvfrRating: string; + catvfrRating?: string; /** * Rating system for Canadian TV - Canadian TV Classification System The * video's rating from the Canadian Radio-Television and @@ -1478,373 +1479,286 @@ export namespace youtube_v3 { * broadcasts. For more information, see the Canadian Broadcast Standards * Council website. */ - catvRating: string; + catvRating?: string; /** * The video's Central Board of Film Certification (CBFC - India) * rating. */ - cbfcRating: string; + cbfcRating?: string; /** * The video's Consejo de Calificación Cinematográfica (Chile) rating. */ - cccRating: string; + cccRating?: string; /** * The video's rating from Portugal's Comissão de Classificação de * Espect´culos. */ - cceRating: string; + cceRating?: string; /** * The video's rating in Switzerland. */ - chfilmRating: string; + chfilmRating?: string; /** * The video's Canadian Home Video Rating System (CHVRS) rating. */ - chvrsRating: string; + chvrsRating?: string; /** * The video's rating from the Commission de Contrôle des Films * (Belgium). */ - cicfRating: string; + cicfRating?: string; /** * The video's rating from Romania's CONSILIUL NATIONAL AL * AUDIOVIZUALULUI (CNA). */ - cnaRating: string; + cnaRating?: string; /** * Rating system in France - Commission de classification cinematographique */ - cncRating: string; + cncRating?: string; /** * The video's rating from France's Conseil supérieur de * l?audiovisuel, which rates broadcast content. */ - csaRating: string; + csaRating?: string; /** * The video's rating from Luxembourg's Commission de surveillance * de la classification des films (CSCF). */ - cscfRating: string; + cscfRating?: string; /** * The video's rating in the Czech Republic. */ - czfilmRating: string; + czfilmRating?: string; /** * The video's Departamento de Justiça, Classificação, Qualificação e * Títulos (DJCQT - Brazil) rating. */ - djctqRating: string; + djctqRating?: string; /** * Reasons that explain why the video received its DJCQT (Brazil) rating. */ - djctqRatingReasons: string[]; + djctqRatingReasons?: string[]; /** * Rating system in Turkey - Evaluation and Classification Board of the * Ministry of Culture and Tourism */ - ecbmctRating: string; + ecbmctRating?: string; /** * The video's rating in Estonia. */ - eefilmRating: string; + eefilmRating?: string; /** * The video's rating in Egypt. */ - egfilmRating: string; + egfilmRating?: string; /** * The video's Eirin (映倫) rating. Eirin is the Japanese rating system. */ - eirinRating: string; + eirinRating?: string; /** * The video's rating from Malaysia's Film Censorship Board. */ - fcbmRating: string; + fcbmRating?: string; /** * The video's rating from Hong Kong's Office for Film, Newspaper * and Article Administration. */ - fcoRating: string; + fcoRating?: string; /** * This property has been deprecated. Use the * contentDetails.contentRating.cncRating instead. */ - fmocRating: string; + fmocRating?: string; /** * The video's rating from South Africa's Film and Publication * Board. */ - fpbRating: string; + fpbRating?: string; /** * Reasons that explain why the video received its FPB (South Africa) * rating. */ - fpbRatingReasons: string[]; + fpbRatingReasons?: string[]; /** * The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - * Germany) rating. */ - fskRating: string; + fskRating?: string; /** * The video's rating in Greece. */ - grfilmRating: string; + grfilmRating?: string; /** * The video's Instituto de la Cinematografía y de las Artes * Audiovisuales (ICAA - Spain) rating. */ - icaaRating: string; + icaaRating?: string; /** * The video's Irish Film Classification Office (IFCO - Ireland) rating. * See the IFCO website for more information. */ - ifcoRating: string; + ifcoRating?: string; /** * The video's rating in Israel. */ - ilfilmRating: string; + ilfilmRating?: string; /** * The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - * Argentina) rating. */ - incaaRating: string; + incaaRating?: string; /** * The video's rating from the Kenya Film Classification Board. */ - kfcbRating: string; + kfcbRating?: string; /** * voor de Classificatie van Audiovisuele Media (Netherlands). */ - kijkwijzerRating: string; + kijkwijzerRating?: string; /** * The video's Korea Media Rating Board (영상물등급위원회) rating. The * KMRB rates videos in South Korea. */ - kmrbRating: string; + kmrbRating?: string; /** * The video's rating from Indonesia's Lembaga Sensor Film. */ - lsfRating: string; + lsfRating?: string; /** * The video's rating from Malta's Film Age-Classification Board. */ - mccaaRating: string; + mccaaRating?: string; /** * The video's rating from the Danish Film Institute's (Det Danske * Filminstitut) Media Council for Children and Young People. */ - mccypRating: string; + mccypRating?: string; /** * The video's rating system for Vietnam - MCST */ - mcstRating: string; + mcstRating?: string; /** * The video's rating from Singapore's Media Development Authority * (MDA) and, specifically, it's Board of Film Censors (BFC). */ - mdaRating: string; + mdaRating?: string; /** * The video's rating from Medietilsynet, the Norwegian Media Authority. */ - medietilsynetRating: string; + medietilsynetRating?: string; /** * The video's rating from Finland's Kansallinen Audiovisuaalinen * Instituutti (National Audiovisual Institute). */ - mekuRating: string; + mekuRating?: string; /** * The rating system for MENA countries, a clone of MPAA. It is needed to */ - menaMpaaRating: string; + menaMpaaRating?: string; /** * The video's rating from the Ministero dei Beni e delle Attività * Culturali e del Turismo (Italy). */ - mibacRating: string; + mibacRating?: string; /** * The video's Ministerio de Cultura (Colombia) rating. */ - mocRating: string; + mocRating?: string; /** * The video's rating from Taiwan's Ministry of Culture (文化部). */ - moctwRating: string; + moctwRating?: string; /** * The video's Motion Picture Association of America (MPAA) rating. */ - mpaaRating: string; + mpaaRating?: string; /** * The rating system for trailer, DVD, and Ad in the US. See * http://movielabs.com/md/ratings/v2.3/html/US_MPAAT_Ratings.html. */ - mpaatRating: string; + mpaatRating?: string; /** * The video's rating from the Movie and Television Review and * Classification Board (Philippines). */ - mtrcbRating: string; + mtrcbRating?: string; /** * The video's rating in Poland. */ - nbcplRating: string; + nbcplRating?: string; /** * The video's rating from the Maldives National Bureau of * Classification. */ - nbcRating: string; + nbcRating?: string; /** * The video's rating from the Bulgarian National Film Center. */ - nfrcRating: string; + nfrcRating?: string; /** * The video's rating from Nigeria's National Film and Video Censors * Board. */ - nfvcbRating: string; + nfvcbRating?: string; /** * The video's rating from the Nacionãlais Kino centrs (National Film * Centre of Latvia). */ - nkclvRating: string; + nkclvRating?: string; /** * The video's Office of Film and Literature Classification (OFLC - New * Zealand) rating. */ - oflcRating: string; + oflcRating?: string; /** * The video's rating in Peru. */ - pefilmRating: string; + pefilmRating?: string; /** * The video's rating from the Hungarian Nemzeti Filmiroda, the Rating * Committee of the National Office of Film. */ - rcnofRating: string; + rcnofRating?: string; /** * The video's rating in Venezuela. */ - resorteviolenciaRating: string; + resorteviolenciaRating?: string; /** * The video's General Directorate of Radio, Television and * Cinematography (Mexico) rating. */ - rtcRating: string; + rtcRating?: string; /** * The video's rating from Ireland's Raidió Teilifís Éireann. */ - rteRating: string; + rteRating?: string; /** * The video's National Film Registry of the Russian Federation (MKRF - * Russia) rating. */ - russiaRating: string; + russiaRating?: string; /** * The video's rating in Slovakia. */ - skfilmRating: string; + skfilmRating?: string; /** * The video's rating in Iceland. */ - smaisRating: string; + smaisRating?: string; /** * The video's rating from Statens medieråd (Sweden's National Media * Council). */ - smsaRating: string; + smsaRating?: string; /** * The video's TV Parental Guidelines (TVPG) rating. */ - tvpgRating: string; + tvpgRating?: string; /** * A rating that YouTube uses to identify age-restricted content. */ - ytRating: string; - } - /** - * A fanFundingEvent resource represents a fan funding event on a YouTube - * channel. Fan funding events occur when a user gives one-time monetary - * support to the channel owner. - */ - export interface Schema$FanFundingEvent { - /** - * Etag of this resource. - */ - etag: string; - /** - * The ID that YouTube assigns to uniquely identify the fan funding event. - */ - id: string; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "youtube#fanFundingEvent". - */ - kind: string; - /** - * The snippet object contains basic details about the fan funding event. - */ - snippet: Schema$FanFundingEventSnippet; - } - export interface Schema$FanFundingEventListResponse { - /** - * Etag of this resource. - */ - etag: string; - /** - * Serialized EventId of the request which produced this response. - */ - eventId: string; - /** - * A list of fan funding events that match the request criteria. - */ - items: Schema$FanFundingEvent[]; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "youtube#fanFundingEventListResponse". - */ - kind: string; - /** - * The token that can be used as the value of the pageToken parameter to - * retrieve the next page in the result set. - */ - nextPageToken: string; - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; - /** - * The visitorId identifies the visitor. - */ - visitorId: string; - } - export interface Schema$FanFundingEventSnippet { - /** - * The amount of funding in micros of fund_currency. e.g., 1 is represented - */ - amountMicros: string; - /** - * Channel id where the funding event occurred. - */ - channelId: string; - /** - * The text contents of the comment left by the user. - */ - commentText: string; - /** - * The date and time when the funding occurred. The value is specified in - * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. - */ - createdAt: string; - /** - * The currency in which the fund was made. ISO 4217. - */ - currency: string; - /** - * A rendered string that displays the fund amount and currency (e.g., - * "$1.00"). The string is rendered for the given language. - */ - displayString: string; - /** - * Details about the supporter. Only filled if the event was made public by - * the user. - */ - supporterDetails: Schema$ChannelProfileDetails; + ytRating?: string; } /** * Geographical coordinates of a point, in WGS84. @@ -1853,15 +1767,15 @@ export namespace youtube_v3 { /** * Altitude above the reference ellipsoid, in meters. */ - altitude: number; + altitude?: number; /** * Latitude in degrees. */ - latitude: number; + latitude?: number; /** * Longitude in degrees. */ - longitude: number; + longitude?: number; } /** * A guideCategory resource identifies a category that YouTube algorithmically @@ -1874,68 +1788,68 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the guide category. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#guideCategory". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the category, such as its * title. */ - snippet: Schema$GuideCategorySnippet; + snippet?: Schema$GuideCategorySnippet; } export interface Schema$GuideCategoryListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of categories that can be associated with YouTube channels. In * this map, the category ID is the map key, and its value is the * corresponding guideCategory resource. */ - items: Schema$GuideCategory[]; + items?: Schema$GuideCategory[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#guideCategoryListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a guide category. */ export interface Schema$GuideCategorySnippet { - channelId: string; + channelId?: string; /** * Description of the guide category. */ - title: string; + title?: string; } /** * An i18nLanguage resource identifies a UI language currently supported by @@ -1945,45 +1859,45 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the i18n language. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#i18nLanguage". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the i18n language, such * as language code and human-readable name. */ - snippet: Schema$I18nLanguageSnippet; + snippet?: Schema$I18nLanguageSnippet; } export interface Schema$I18nLanguageListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of supported i18n languages. In this map, the i18n language ID is * the map key, and its value is the corresponding i18nLanguage resource. */ - items: Schema$I18nLanguage[]; + items?: Schema$I18nLanguage[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#i18nLanguageListResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about an i18n language, such as language code and @@ -1993,11 +1907,11 @@ export namespace youtube_v3 { /** * A short BCP-47 code that uniquely identifies a language. */ - hl: string; + hl?: string; /** * The human-readable name of the language in the language itself. */ - name: string; + name?: string; } /** * A i18nRegion resource identifies a region where YouTube is available. @@ -2006,46 +1920,46 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the i18n region. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#i18nRegion". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the i18n region, such as * region code and human-readable name. */ - snippet: Schema$I18nRegionSnippet; + snippet?: Schema$I18nRegionSnippet; } export interface Schema$I18nRegionListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of regions where YouTube is available. In this map, the i18n * region ID is the map key, and its value is the corresponding i18nRegion * resource. */ - items: Schema$I18nRegion[]; + items?: Schema$I18nRegion[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#i18nRegionListResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about an i18n region, such as region code and human-readable @@ -2055,11 +1969,11 @@ export namespace youtube_v3 { /** * The region code as a 2-letter ISO country code. */ - gl: string; + gl?: string; /** * The human-readable name of the region. */ - name: string; + name?: string; } /** * Branding properties for images associated with the channel. @@ -2069,97 +1983,97 @@ export namespace youtube_v3 { * The URL for the background image shown on the video watch page. The image * should be 1200px by 615px, with a maximum file size of 128k. */ - backgroundImageUrl: Schema$LocalizedProperty; + backgroundImageUrl?: Schema$LocalizedProperty; /** * This is used only in update requests; if it's set, we use this URL to * generate all of the above banner URLs. */ - bannerExternalUrl: string; + bannerExternalUrl?: string; /** * Banner image. Desktop size (1060x175). */ - bannerImageUrl: string; + bannerImageUrl?: string; /** * Banner image. Mobile size high resolution (1440x395). */ - bannerMobileExtraHdImageUrl: string; + bannerMobileExtraHdImageUrl?: string; /** * Banner image. Mobile size high resolution (1280x360). */ - bannerMobileHdImageUrl: string; + bannerMobileHdImageUrl?: string; /** * Banner image. Mobile size (640x175). */ - bannerMobileImageUrl: string; + bannerMobileImageUrl?: string; /** * Banner image. Mobile size low resolution (320x88). */ - bannerMobileLowImageUrl: string; + bannerMobileLowImageUrl?: string; /** * Banner image. Mobile size medium/high resolution (960x263). */ - bannerMobileMediumHdImageUrl: string; + bannerMobileMediumHdImageUrl?: string; /** * Banner image. Tablet size extra high resolution (2560x424). */ - bannerTabletExtraHdImageUrl: string; + bannerTabletExtraHdImageUrl?: string; /** * Banner image. Tablet size high resolution (2276x377). */ - bannerTabletHdImageUrl: string; + bannerTabletHdImageUrl?: string; /** * Banner image. Tablet size (1707x283). */ - bannerTabletImageUrl: string; + bannerTabletImageUrl?: string; /** * Banner image. Tablet size low resolution (1138x188). */ - bannerTabletLowImageUrl: string; + bannerTabletLowImageUrl?: string; /** * Banner image. TV size high resolution (1920x1080). */ - bannerTvHighImageUrl: string; + bannerTvHighImageUrl?: string; /** * Banner image. TV size extra high resolution (2120x1192). */ - bannerTvImageUrl: string; + bannerTvImageUrl?: string; /** * Banner image. TV size low resolution (854x480). */ - bannerTvLowImageUrl: string; + bannerTvLowImageUrl?: string; /** * Banner image. TV size medium resolution (1280x720). */ - bannerTvMediumImageUrl: string; + bannerTvMediumImageUrl?: string; /** * The image map script for the large banner image. */ - largeBrandedBannerImageImapScript: Schema$LocalizedProperty; + largeBrandedBannerImageImapScript?: Schema$LocalizedProperty; /** * The URL for the 854px by 70px image that appears below the video player * in the expanded video view of the video watch page. */ - largeBrandedBannerImageUrl: Schema$LocalizedProperty; + largeBrandedBannerImageUrl?: Schema$LocalizedProperty; /** * The image map script for the small banner image. */ - smallBrandedBannerImageImapScript: Schema$LocalizedProperty; + smallBrandedBannerImageImapScript?: Schema$LocalizedProperty; /** * The URL for the 640px by 70px banner image that appears below the video * player in the default view of the video watch page. */ - smallBrandedBannerImageUrl: Schema$LocalizedProperty; + smallBrandedBannerImageUrl?: Schema$LocalizedProperty; /** * The URL for a 1px by 1px tracking pixel that can be used to collect * statistics for views of the channel or video pages. */ - trackingImageUrl: string; + trackingImageUrl?: string; /** * The URL for the image that appears above the top-left corner of the video * player. This is a 25-pixel-high image with a flexible width that cannot * exceed 170 pixels. */ - watchIconImageUrl: string; + watchIconImageUrl?: string; } /** * Describes information necessary for ingesting an RTMP or an HTTP stream. @@ -2170,7 +2084,7 @@ export namespace youtube_v3 { * You have the option of simultaneously streaming the content that you are * sending to the ingestionAddress to this URL. */ - backupIngestionAddress: string; + backupIngestionAddress?: string; /** * The primary ingestion URL that you should use to stream video to YouTube. * You must stream video to this URL. Depending on which application or @@ -2178,18 +2092,18 @@ export namespace youtube_v3 { * stream URL and stream name separately or you may need to concatenate them * in the following format: STREAM_URL/STREAM_NAME */ - ingestionAddress: string; + ingestionAddress?: string; /** * The HTTP or RTMP stream name that YouTube assigns to the video stream. */ - streamName: string; + streamName?: string; } export interface Schema$InvideoBranding { - imageBytes: string; - imageUrl: string; - position: Schema$InvideoPosition; - targetChannelId: string; - timing: Schema$InvideoTiming; + imageBytes?: string; + imageUrl?: string; + position?: Schema$InvideoPosition; + targetChannelId?: string; + timing?: Schema$InvideoTiming; } /** * Describes the spatial position of a visual widget inside a video. It is a @@ -2199,11 +2113,11 @@ export namespace youtube_v3 { /** * Describes in which corner of the video the visual widget will appear. */ - cornerPosition: string; + cornerPosition?: string; /** * Defines the position type. */ - type: string; + type?: string; } /** * Describes an invideo promotion campaign consisting of multiple promoted @@ -2214,16 +2128,16 @@ export namespace youtube_v3 { * The default temporal position within the video where the promoted item * will be displayed. Can be overriden by more specific timing in the item. */ - defaultTiming: Schema$InvideoTiming; + defaultTiming?: Schema$InvideoTiming; /** * List of promoted items in decreasing priority. */ - items: Schema$PromotedItem[]; + items?: Schema$PromotedItem[]; /** * The spatial position within the video where the promoted item will be * displayed. */ - position: Schema$InvideoPosition; + position?: Schema$InvideoPosition; /** * Indicates whether the channel's promotional campaign uses "smart * timing." This feature attempts to show promotions at a point in the @@ -2231,7 +2145,7 @@ export namespace youtube_v3 { * the viewing experience. This feature also picks up a single promotion to * show on each video. */ - useSmartTiming: boolean; + useSmartTiming?: boolean; } /** * Describes a temporal position of a visual widget inside a video. @@ -2241,23 +2155,23 @@ export namespace youtube_v3 { * Defines the duration in milliseconds for which the promotion should be * displayed. If missing, the client should use the default. */ - durationMs: string; + durationMs?: string; /** * Defines the time at which the promotion will appear. Depending on the * value of type the value of the offsetMs field will represent a time * offset from the start or from the end of the video, expressed in * milliseconds. */ - offsetMs: string; + offsetMs?: string; /** * Describes a timing type. If the value is offsetFromStart, then the * offsetMs field represents an offset from the start of the video. If the * value is offsetFromEnd, then the offsetMs field represents an offset from * the end of the video. */ - type: string; + type?: string; } - export interface Schema$LanguageTag { value: string; } + export interface Schema$LanguageTag { value?: string; } /** * A liveBroadcast resource represents an event that will be streamed, via * live video, on YouTube. @@ -2269,36 +2183,36 @@ export namespace youtube_v3 { * video player or if it will be archived and therefore available for * viewing after the event has concluded. */ - contentDetails: Schema$LiveBroadcastContentDetails; + contentDetails?: Schema$LiveBroadcastContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube assigns to uniquely identify the broadcast. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveBroadcast". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the event, including its * title, description, start time, and end time. */ - snippet: Schema$LiveBroadcastSnippet; + snippet?: Schema$LiveBroadcastSnippet; /** * The statistics object contains info about the event's current stats. * These include concurrent viewers and total chat count. Statistics can * change (in either direction) during the lifetime of an event. Statistics * are only returned while the event is live. */ - statistics: Schema$LiveBroadcastStatistics; + statistics?: Schema$LiveBroadcastStatistics; /** * The status object contains information about the event's status. */ - status: Schema$LiveBroadcastStatus; + status?: Schema$LiveBroadcastStatus; } /** * Detailed settings of a broadcast. @@ -2307,17 +2221,17 @@ export namespace youtube_v3 { /** * This value uniquely identifies the live stream bound to the broadcast. */ - boundStreamId: string; + boundStreamId?: string; /** * The date and time that the live stream referenced by boundStreamId was * last updated. */ - boundStreamLastUpdateTimeMs: string; - closedCaptionsType: string; + boundStreamLastUpdateTimeMs?: string; + closedCaptionsType?: string; /** * This setting indicates whether auto start is enabled for this broadcast. */ - enableAutoStart: boolean; + enableAutoStart?: boolean; /** * This setting indicates whether HTTP POST closed captioning is enabled for * this broadcast. The ingestion URL of the closed captions is returned @@ -2325,12 +2239,12 @@ export namespace youtube_v3 { * closed_captions_type property, and is equivalent to setting * closed_captions_type to CLOSED_CAPTIONS_HTTP_POST. */ - enableClosedCaptions: boolean; + enableClosedCaptions?: boolean; /** * This setting indicates whether YouTube should enable content encryption * for the broadcast. */ - enableContentEncryption: boolean; + enableContentEncryption?: boolean; /** * This setting determines whether viewers can access DVR controls while * watching the video. DVR controls enable the viewer to control the video @@ -2340,36 +2254,36 @@ export namespace youtube_v3 { * true if you want to make playback available immediately after the * broadcast ends. */ - enableDvr: boolean; + enableDvr?: boolean; /** * This setting indicates whether the broadcast video can be played in an * embedded player. If you choose to archive the video (using the * enableArchive property), this setting will also apply to the archived * video. */ - enableEmbed: boolean; + enableEmbed?: boolean; /** * Indicates whether this broadcast has low latency enabled. */ - enableLowLatency: boolean; + enableLowLatency?: boolean; /** * If both this and enable_low_latency are set, they must match. * LATENCY_NORMAL should match enable_low_latency=false LATENCY_LOW should * match enable_low_latency=true LATENCY_ULTRA_LOW should have * enable_low_latency omitted. */ - latencyPreference: string; - mesh: string; + latencyPreference?: string; + mesh?: string; /** * The monitorStream object contains information about the monitor stream, * which the broadcaster can use to review the event content before the * broadcast stream is shown publicly. */ - monitorStream: Schema$MonitorStreamInfo; + monitorStream?: Schema$MonitorStreamInfo; /** * The projection format of this broadcast. This defaults to rectangular. */ - projection: string; + projection?: string; /** * Automatically start recording after the event goes live. The default * value for this property is true. Important: You must also set the @@ -2379,7 +2293,7 @@ export namespace youtube_v3 { * to true, there may be a delay of around one day before the archived video * will be available for playback. */ - recordFromStart: boolean; + recordFromStart?: boolean; /** * This setting indicates whether the broadcast should automatically begin * with an in-stream slate when you update the broadcast's status to @@ -2388,43 +2302,43 @@ export namespace youtube_v3 { * end to remove the in-stream slate and make your broadcast stream visible * to viewers. */ - startWithSlate: boolean; - stereoLayout: string; + startWithSlate?: boolean; + stereoLayout?: string; } export interface Schema$LiveBroadcastListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of broadcasts that match the request criteria. */ - items: Schema$LiveBroadcast[]; + items?: Schema$LiveBroadcast[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveBroadcastListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$LiveBroadcastSnippet { /** @@ -2432,58 +2346,58 @@ export namespace youtube_v3 { * only available once the broadcast's state is complete. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - actualEndTime: string; + actualEndTime?: string; /** * The date and time that the broadcast actually started. This information * is only available once the broadcast's state is live. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - actualStartTime: string; + actualStartTime?: string; /** * The ID that YouTube uses to uniquely identify the channel that is * publishing the broadcast. */ - channelId: string; + channelId?: string; /** * The broadcast's description. As with the title, you can set this * field by modifying the broadcast resource or by setting the description * field of the corresponding video resource. */ - description: string; - isDefaultBroadcast: boolean; + description?: string; + isDefaultBroadcast?: boolean; /** * The id of the live chat for this broadcast. */ - liveChatId: string; + liveChatId?: string; /** * The date and time that the broadcast was added to YouTube's live * broadcast schedule. The value is specified in ISO 8601 * (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * The date and time that the broadcast is scheduled to end. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - scheduledEndTime: string; + scheduledEndTime?: string; /** * The date and time that the broadcast is scheduled to start. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - scheduledStartTime: string; + scheduledStartTime?: string; /** * A map of thumbnail images associated with the broadcast. For each nested * object in this object, the key is the name of the thumbnail image, and * the value is an object that contains other information about the * thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The broadcast's title. Note that the broadcast represents exactly one * YouTube video. You can set this field by modifying the broadcast resource * or by setting the title field of the corresponding video resource. */ - title: string; + title?: string; } /** * Statistics about the live broadcast. These represent a snapshot of the @@ -2500,7 +2414,7 @@ export namespace youtube_v3 { * of viewers watching an archived video of a live broadcast that already * ended. */ - concurrentViewers: string; + concurrentViewers?: string; /** * The total number of live chat messages currently on the broadcast. The * property and its value will be present if the broadcast is public, has @@ -2509,18 +2423,18 @@ export namespace youtube_v3 { * would not identify the number of chat messages for an archived video of a * completed live broadcast. */ - totalChatCount: string; + totalChatCount?: string; } export interface Schema$LiveBroadcastStatus { /** * The broadcast's status. The status can be updated using the API's * liveBroadcasts.transition method. */ - lifeCycleStatus: string; + lifeCycleStatus?: string; /** * Priority of the live broadcast event (internal state). */ - liveBroadcastPriority: string; + liveBroadcastPriority?: string; /** * The broadcast's privacy status. Note that the broadcast represents * exactly one YouTube video, so the privacy settings are identical to those @@ -2528,11 +2442,11 @@ export namespace youtube_v3 { * the broadcast resource or by setting the privacyStatus field of the * corresponding video resource. */ - privacyStatus: string; + privacyStatus?: string; /** * The broadcast's recording status. */ - recordingStatus: string; + recordingStatus?: string; } /** * A liveChatBan resource represents a ban for a YouTube live chat. @@ -2541,53 +2455,53 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube assigns to uniquely identify the ban. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveChatBan". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the ban. */ - snippet: Schema$LiveChatBanSnippet; + snippet?: Schema$LiveChatBanSnippet; } export interface Schema$LiveChatBanSnippet { /** * The duration of a ban, only filled if the ban has type TEMPORARY. */ - banDurationSeconds: string; - bannedUserDetails: Schema$ChannelProfileDetails; + banDurationSeconds?: string; + bannedUserDetails?: Schema$ChannelProfileDetails; /** * The chat this ban is pertinent to. */ - liveChatId: string; + liveChatId?: string; /** * The type of ban. */ - type: string; + type?: string; } export interface Schema$LiveChatFanFundingEventDetails { /** * A rendered string that displays the fund amount and currency to the user. */ - amountDisplayString: string; + amountDisplayString?: string; /** * The amount of the fund. */ - amountMicros: string; + amountMicros?: string; /** * The currency in which the fund was made. */ - currency: string; + currency?: string; /** * The comment added by the user to this fan funding event. */ - userComment: string; + userComment?: string; } /** * A liveChatMessage resource represents a chat message in a YouTube Live @@ -2598,103 +2512,103 @@ export namespace youtube_v3 { * The authorDetails object contains basic details about the user that * posted this message. */ - authorDetails: Schema$LiveChatMessageAuthorDetails; + authorDetails?: Schema$LiveChatMessageAuthorDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube assigns to uniquely identify the message. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveChatMessage". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the message. */ - snippet: Schema$LiveChatMessageSnippet; + snippet?: Schema$LiveChatMessageSnippet; } export interface Schema$LiveChatMessageAuthorDetails { /** * The YouTube channel ID. */ - channelId: string; + channelId?: string; /** * The channel's URL. */ - channelUrl: string; + channelUrl?: string; /** * The channel's display name. */ - displayName: string; + displayName?: string; /** * Whether the author is a moderator of the live chat. */ - isChatModerator: boolean; + isChatModerator?: boolean; /** * Whether the author is the owner of the live chat. */ - isChatOwner: boolean; + isChatOwner?: boolean; /** * Whether the author is a sponsor of the live chat. */ - isChatSponsor: boolean; + isChatSponsor?: boolean; /** * Whether the author's identity has been verified by YouTube. */ - isVerified: boolean; + isVerified?: boolean; /** * The channels's avatar URL. */ - profileImageUrl: string; + profileImageUrl?: string; } export interface Schema$LiveChatMessageDeletedDetails { - deletedMessageId: string; + deletedMessageId?: string; } export interface Schema$LiveChatMessageListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of live chat messages. */ - items: Schema$LiveChatMessage[]; + items?: Schema$LiveChatMessage[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveChatMessageListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; + nextPageToken?: string; /** * The date and time when the underlying stream went offline. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - offlineAt: string; - pageInfo: Schema$PageInfo; + offlineAt?: string; + pageInfo?: Schema$PageInfo; /** * The amount of time the client should wait before polling again. */ - pollingIntervalMillis: number; - tokenPagination: Schema$TokenPagination; + pollingIntervalMillis?: number; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$LiveChatMessageRetractedDetails { - retractedMessageId: string; + retractedMessageId?: string; } export interface Schema$LiveChatMessageSnippet { /** @@ -2706,51 +2620,51 @@ export namespace youtube_v3 { * their message userBannedEvent - the moderator that took the action * superChatEvent - the user that made the purchase */ - authorChannelId: string; + authorChannelId?: string; /** * Contains a string that can be displayed to the user. If this field is not * present the message is silent, at the moment only messages of type * TOMBSTONE and CHAT_ENDED_EVENT are silent. */ - displayMessage: string; + displayMessage?: string; /** * Details about the funding event, this is only set if the type is * 'fanFundingEvent'. */ - fanFundingEventDetails: Schema$LiveChatFanFundingEventDetails; + fanFundingEventDetails?: Schema$LiveChatFanFundingEventDetails; /** * Whether the message has display content that should be displayed to * users. */ - hasDisplayContent: boolean; - liveChatId: string; - messageDeletedDetails: Schema$LiveChatMessageDeletedDetails; - messageRetractedDetails: Schema$LiveChatMessageRetractedDetails; - pollClosedDetails: Schema$LiveChatPollClosedDetails; - pollEditedDetails: Schema$LiveChatPollEditedDetails; - pollOpenedDetails: Schema$LiveChatPollOpenedDetails; - pollVotedDetails: Schema$LiveChatPollVotedDetails; + hasDisplayContent?: boolean; + liveChatId?: string; + messageDeletedDetails?: Schema$LiveChatMessageDeletedDetails; + messageRetractedDetails?: Schema$LiveChatMessageRetractedDetails; + pollClosedDetails?: Schema$LiveChatPollClosedDetails; + pollEditedDetails?: Schema$LiveChatPollEditedDetails; + pollOpenedDetails?: Schema$LiveChatPollOpenedDetails; + pollVotedDetails?: Schema$LiveChatPollVotedDetails; /** * The date and time when the message was orignally published. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * Details about the Super Chat event, this is only set if the type is * 'superChatEvent'. */ - superChatDetails: Schema$LiveChatSuperChatDetails; + superChatDetails?: Schema$LiveChatSuperChatDetails; /** * Details about the text message, this is only set if the type is * 'textMessageEvent'. */ - textMessageDetails: Schema$LiveChatTextMessageDetails; + textMessageDetails?: Schema$LiveChatTextMessageDetails; /** * The type of message, this will always be present, it determines the * contents of the message as well as which fields will be present. */ - type: string; - userBannedDetails: Schema$LiveChatUserBannedMessageDetails; + type?: string; + userBannedDetails?: Schema$LiveChatUserBannedMessageDetails; } /** * A liveChatModerator resource represents a moderator for a YouTube live @@ -2761,142 +2675,142 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube assigns to uniquely identify the moderator. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveChatModerator". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the moderator. */ - snippet: Schema$LiveChatModeratorSnippet; + snippet?: Schema$LiveChatModeratorSnippet; } export interface Schema$LiveChatModeratorListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of moderators that match the request criteria. */ - items: Schema$LiveChatModerator[]; + items?: Schema$LiveChatModerator[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveChatModeratorListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$LiveChatModeratorSnippet { /** * The ID of the live chat this moderator can act on. */ - liveChatId: string; + liveChatId?: string; /** * Details about the moderator. */ - moderatorDetails: Schema$ChannelProfileDetails; + moderatorDetails?: Schema$ChannelProfileDetails; } export interface Schema$LiveChatPollClosedDetails { /** * The id of the poll that was closed. */ - pollId: string; + pollId?: string; } export interface Schema$LiveChatPollEditedDetails { - id: string; - items: Schema$LiveChatPollItem[]; - prompt: string; + id?: string; + items?: Schema$LiveChatPollItem[]; + prompt?: string; } export interface Schema$LiveChatPollItem { /** * Plain text description of the item. */ - description: string; - itemId: string; + description?: string; + itemId?: string; } export interface Schema$LiveChatPollOpenedDetails { - id: string; - items: Schema$LiveChatPollItem[]; - prompt: string; + id?: string; + items?: Schema$LiveChatPollItem[]; + prompt?: string; } export interface Schema$LiveChatPollVotedDetails { /** * The poll item the user chose. */ - itemId: string; + itemId?: string; /** * The poll the user voted on. */ - pollId: string; + pollId?: string; } export interface Schema$LiveChatSuperChatDetails { /** * A rendered string that displays the fund amount and currency to the user. */ - amountDisplayString: string; + amountDisplayString?: string; /** * The amount purchased by the user, in micros (1,750,000 micros = 1.75). */ - amountMicros: string; + amountMicros?: string; /** * The currency in which the purchase was made. */ - currency: string; + currency?: string; /** * The tier in which the amount belongs to. Lower amounts belong to lower * tiers. Starts at 1. */ - tier: number; + tier?: number; /** * The comment added by the user to this Super Chat event. */ - userComment: string; + userComment?: string; } export interface Schema$LiveChatTextMessageDetails { /** * The user's message. */ - messageText: string; + messageText?: string; } export interface Schema$LiveChatUserBannedMessageDetails { /** * The duration of the ban. This property is only present if the banType is * temporary. */ - banDurationSeconds: string; + banDurationSeconds?: string; /** * The details of the user that was banned. */ - bannedUserDetails: Schema$ChannelProfileDetails; + bannedUserDetails?: Schema$ChannelProfileDetails; /** * The type of ban. */ - banType: string; + banType?: string; } /** * A live stream describes a live ingestion point. @@ -2907,52 +2821,52 @@ export namespace youtube_v3 { * (CDN) settings. These settings provide details about the manner in which * you stream your content to YouTube. */ - cdn: Schema$CdnSettings; + cdn?: Schema$CdnSettings; /** * The content_details object contains information about the stream, * including the closed captions ingestion URL. */ - contentDetails: Schema$LiveStreamContentDetails; + contentDetails?: Schema$LiveStreamContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube assigns to uniquely identify the stream. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveStream". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the stream, including its * channel, title, and description. */ - snippet: Schema$LiveStreamSnippet; + snippet?: Schema$LiveStreamSnippet; /** * The status object contains information about live stream's status. */ - status: Schema$LiveStreamStatus; + status?: Schema$LiveStreamStatus; } export interface Schema$LiveStreamConfigurationIssue { /** * The long-form description of the issue and how to resolve it. */ - description: string; + description?: string; /** * The short-form reason for this issue. */ - reason: string; + reason?: string; /** * How severe this issue is to the stream. */ - severity: string; + severity?: string; /** * The kind of error happening. */ - type: string; + type?: string; } /** * Detailed settings of a stream. @@ -2961,7 +2875,7 @@ export namespace youtube_v3 { /** * The ingestion URL where the closed captions of this stream are sent. */ - closedCaptionsIngestionUrl: string; + closedCaptionsIngestionUrl?: string; /** * Indicates whether the stream is reusable, which means that it can be * bound to multiple broadcasts. It is common for broadcasters to reuse the @@ -2976,79 +2890,79 @@ export namespace youtube_v3 { * 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; + isReusable?: boolean; } export interface Schema$LiveStreamHealthStatus { /** * The configurations issues on this stream */ - configurationIssues: Schema$LiveStreamConfigurationIssue[]; + configurationIssues?: Schema$LiveStreamConfigurationIssue[]; /** * The last time this status was updated (in seconds) */ - lastUpdateTimeSeconds: string; + lastUpdateTimeSeconds?: string; /** * The status code of this stream */ - status: string; + status?: string; } export interface Schema$LiveStreamListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of live streams that match the request criteria. */ - items: Schema$LiveStream[]; + items?: Schema$LiveStream[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#liveStreamListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$LiveStreamSnippet { /** * The ID that YouTube uses to uniquely identify the channel that is * transmitting the stream. */ - channelId: string; + channelId?: string; /** * The stream's description. The value cannot be longer than 10000 * characters. */ - description: string; - isDefaultStream: boolean; + description?: string; + isDefaultStream?: boolean; /** * The date and time that the stream was created. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * The stream's title. The value must be between 1 and 128 characters * long. */ - title: string; + title?: string; } /** * Brief description of the live stream status. @@ -3057,20 +2971,20 @@ export namespace youtube_v3 { /** * The health status of the stream. */ - healthStatus: Schema$LiveStreamHealthStatus; - streamStatus: string; + healthStatus?: Schema$LiveStreamHealthStatus; + streamStatus?: string; } export interface Schema$LocalizedProperty { - default: string; + default?: string; /** * The language of the default property. */ - defaultLanguage: Schema$LanguageTag; - localized: Schema$LocalizedString[]; + defaultLanguage?: Schema$LanguageTag; + localized?: Schema$LocalizedString[]; } export interface Schema$LocalizedString { - language: string; - value: string; + language?: string; + value?: string; } /** * Settings and Info of the monitor stream @@ -3080,11 +2994,11 @@ export namespace youtube_v3 { * If you have set the enableMonitorStream property to true, then this * property determines the length of the live broadcast delay. */ - broadcastStreamDelayMs: number; + broadcastStreamDelayMs?: number; /** * HTML code that embeds a player that plays the monitor stream. */ - embedHtml: string; + embedHtml?: string; /** * This value determines whether the monitor stream is enabled for the * broadcast. If the monitor stream is enabled, then YouTube will broadcast @@ -3095,7 +3009,7 @@ export namespace youtube_v3 { * broadcast delay for your event. Note: This property cannot be updated * once the broadcast is in the testing or live state. */ - enableMonitorStream: boolean; + enableMonitorStream?: boolean; } /** * Nonprofit information. @@ -3104,13 +3018,13 @@ export namespace youtube_v3 { /** * Id of the nonprofit. */ - nonprofitId: Schema$NonprofitId; + nonprofitId?: Schema$NonprofitId; /** * Legal name of the nonprofit. */ - nonprofitLegalName: string; + nonprofitLegalName?: string; } - export interface Schema$NonprofitId { value: string; } + export interface Schema$NonprofitId { value?: string; } /** * Paging details for lists of resources, including total number of items * available and number of resources returned in a single page. @@ -3119,11 +3033,11 @@ export namespace youtube_v3 { /** * The number of results included in the API response. */ - resultsPerPage: number; + resultsPerPage?: number; /** * The total number of results in the result set. */ - totalResults: number; + totalResults?: number; } /** * A playlist resource represents a YouTube playlist. A playlist is a @@ -3146,44 +3060,44 @@ export namespace youtube_v3 { /** * The contentDetails object contains information like video count. */ - contentDetails: Schema$PlaylistContentDetails; + contentDetails?: Schema$PlaylistContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the playlist. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#playlist". */ - kind: string; + kind?: string; /** * Localizations for different languages */ - localizations: any; + localizations?: any; /** * The player object contains information that you would use to play the * playlist in an embedded player. */ - player: Schema$PlaylistPlayer; + player?: Schema$PlaylistPlayer; /** * The snippet object contains basic details about the playlist, such as its * title and description. */ - snippet: Schema$PlaylistSnippet; + snippet?: Schema$PlaylistSnippet; /** * The status object contains status information for the playlist. */ - status: Schema$PlaylistStatus; + status?: Schema$PlaylistStatus; } export interface Schema$PlaylistContentDetails { /** * The number of videos in the playlist. */ - itemCount: number; + itemCount?: number; } /** * A playlistItem resource identifies another resource, such as a video, that @@ -3208,30 +3122,30 @@ export namespace youtube_v3 { * item is a YouTube video. The object contains additional information about * the video. */ - contentDetails: Schema$PlaylistItemContentDetails; + contentDetails?: Schema$PlaylistItemContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the playlist item. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#playlistItem". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the playlist item, such * as its title and position in the playlist. */ - snippet: Schema$PlaylistItemSnippet; + snippet?: Schema$PlaylistItemSnippet; /** * The status object contains information about the playlist item's * privacy status. */ - status: Schema$PlaylistItemStatus; + status?: Schema$PlaylistItemStatus; } export interface Schema$PlaylistItemContentDetails { /** @@ -3241,64 +3155,64 @@ export namespace youtube_v3 { * context of the playlist.) By default, assume that the video.endTime is * the end of the video. */ - endAt: string; + endAt?: string; /** * A user-generated note for this item. */ - note: string; + note?: string; /** * The time, measured in seconds from the start of the video, when the video * should start playing. (The playlist owner can specify the times when the * video should start and stop playing when the video is played in the * context of the playlist.) The default value is 0. */ - startAt: string; + startAt?: string; /** * The ID that YouTube uses to uniquely identify a video. To retrieve the * video resource, set the id query parameter to this value in your API * request. */ - videoId: string; + videoId?: string; /** * The date and time that the video was published to YouTube. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - videoPublishedAt: string; + videoPublishedAt?: string; } export interface Schema$PlaylistItemListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of playlist items that match the request criteria. */ - items: Schema$PlaylistItem[]; + items?: Schema$PlaylistItem[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#playlistItemListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a playlist, including title, description and @@ -3309,46 +3223,46 @@ export namespace youtube_v3 { * The ID that YouTube uses to uniquely identify the user that added the * item to the playlist. */ - channelId: string; + channelId?: string; /** * Channel title for the channel that the playlist item belongs to. */ - channelTitle: string; + channelTitle?: string; /** * The item's description. */ - description: string; + description?: string; /** * The ID that YouTube uses to uniquely identify the playlist that the * playlist item is in. */ - playlistId: string; + playlistId?: string; /** * The order in which the item appears in the playlist. The value uses a * zero-based index, so the first item has a position of 0, the second item * has a position of 1, and so forth. */ - position: number; + position?: number; /** * The date and time that the item was added to the playlist. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * The id object contains information that can be used to uniquely identify * the resource that is included in the playlist as the playlist item. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; /** * A map of thumbnail images associated with the playlist item. For each * object in the map, the key is the name of the thumbnail image, and the * value is an object that contains other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The item's title. */ - title: string; + title?: string; } /** * Information about the playlist item's privacy status. @@ -3357,42 +3271,42 @@ export namespace youtube_v3 { /** * This resource's privacy status. */ - privacyStatus: string; + privacyStatus?: string; } export interface Schema$PlaylistListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of playlists that match the request criteria. */ - items: Schema$Playlist[]; + items?: Schema$Playlist[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#playlistListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Playlist localization setting @@ -3401,17 +3315,17 @@ export namespace youtube_v3 { /** * The localized strings for playlist's description. */ - description: string; + description?: string; /** * The localized strings for playlist's title. */ - title: string; + title?: string; } export interface Schema$PlaylistPlayer { /** * An <iframe> tag that embeds a player that will play the playlist. */ - embedHtml: string; + embedHtml?: string; } /** * Basic details about a playlist, including title, description and @@ -3422,48 +3336,48 @@ export namespace youtube_v3 { * The ID that YouTube uses to uniquely identify the channel that published * the playlist. */ - channelId: string; + channelId?: string; /** * The channel title of the channel that the video belongs to. */ - channelTitle: string; + channelTitle?: string; /** * The language of the playlist's default title and description. */ - defaultLanguage: string; + defaultLanguage?: string; /** * The playlist's description. */ - description: string; + description?: string; /** * Localized title and description, read-only. */ - localized: Schema$PlaylistLocalization; + localized?: Schema$PlaylistLocalization; /** * The date and time that the playlist was created. The value is specified * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * Keyword tags associated with the playlist. */ - tags: string[]; + tags?: string[]; /** * A map of thumbnail images associated with the playlist. For each object * in the map, the key is the name of the thumbnail image, and the value is * an object that contains other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The playlist's title. */ - title: string; + title?: string; } export interface Schema$PlaylistStatus { /** * The playlist's privacy status. */ - privacyStatus: string; + privacyStatus?: string; } /** * Describes a single promoted item. @@ -3473,22 +3387,22 @@ export namespace youtube_v3 { * A custom message to display for this promotion. This field is currently * ignored unless the promoted item is a website. */ - customMessage: string; + customMessage?: string; /** * Identifies the promoted item. */ - id: Schema$PromotedItemId; + id?: Schema$PromotedItemId; /** * If true, the content owner's name will be used when displaying the * promotion. This field can only be set when the update is made on behalf * of the content owner. */ - promotedByContentOwner: boolean; + promotedByContentOwner?: boolean; /** * The temporal position within the video where the promoted item will be * displayed. If present, it overrides the default timing. */ - timing: Schema$InvideoTiming; + timing?: Schema$InvideoTiming; } /** * Describes a single promoted item id. It is a union of various possible @@ -3500,23 +3414,23 @@ export namespace youtube_v3 { * take the recent upload. If missing, the channel is assumed to be the same * channel for which the invideoPromotion is set. */ - recentlyUploadedBy: string; + recentlyUploadedBy?: string; /** * Describes the type of the promoted item. */ - type: string; + type?: string; /** * If the promoted item represents a video, this field represents the unique * YouTube ID identifying it. This field will be present only if type has * the value video. */ - videoId: string; + videoId?: string; /** * If the promoted item represents a website, this field represents the url * pointing to the website. This field will be present only if type has the * value website. */ - websiteUrl: string; + websiteUrl?: string; } /** * A pair Property / Value. @@ -3525,11 +3439,11 @@ export namespace youtube_v3 { /** * A property. */ - property: string; + property?: string; /** * The property's value. */ - value: string; + value?: string; } /** * A resource id is a generic reference that points to another YouTube @@ -3541,59 +3455,59 @@ export namespace youtube_v3 { * that resource is a channel. This property is only present if the * resourceId.kind value is youtube#channel. */ - channelId: string; + channelId?: string; /** * The type of the API resource. */ - kind: string; + kind?: string; /** * The ID that YouTube uses to uniquely identify the referred resource, if * that resource is a playlist. This property is only present if the * resourceId.kind value is youtube#playlist. */ - playlistId: string; + playlistId?: string; /** * The ID that YouTube uses to uniquely identify the referred resource, if * that resource is a video. This property is only present if the * resourceId.kind value is youtube#video. */ - videoId: string; + videoId?: string; } export interface Schema$SearchListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of results that match the search criteria. */ - items: Schema$SearchResult[]; + items?: Schema$SearchResult[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#searchListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - regionCode: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + regionCode?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * A search result contains information about a YouTube video, channel, or @@ -3605,24 +3519,24 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The id object contains information that can be used to uniquely identify * the resource that matches the search request. */ - id: Schema$ResourceId; + id?: Schema$ResourceId; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#searchResult". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about a search result, such as * its title or description. For example, if the search result is a video, * then the title will be the video's title and the description will be * the video's description. */ - snippet: Schema$SearchResultSnippet; + snippet?: Schema$SearchResultSnippet; } /** * Basic details about a search result, including title, description and @@ -3633,38 +3547,38 @@ export namespace youtube_v3 { * The value that YouTube uses to uniquely identify the channel that * published the resource that the search result identifies. */ - channelId: string; + channelId?: string; /** * The title of the channel that published the resource that the search * result identifies. */ - channelTitle: string; + channelTitle?: string; /** * A description of the search result. */ - description: string; + description?: string; /** * It indicates if the resource (video or channel) has upcoming/active live * broadcast content. Or it's "none" if there is not any * upcoming/active live broadcasts. */ - liveBroadcastContent: string; + liveBroadcastContent?: string; /** * The creation date and time of the resource that the search result * identifies. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) * format. */ - publishedAt: string; + publishedAt?: string; /** * A map of thumbnail images associated with the search result. For each * object in the map, the key is the name of the thumbnail image, and the * value is an object that contains other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The title of the search result. */ - title: string; + title?: string; } /** * A sponsor resource represents a sponsor for a YouTube channel. A sponsor @@ -3675,69 +3589,65 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; - /** - * The ID that YouTube assigns to uniquely identify the sponsor. - */ - id: string; + etag?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#sponsor". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the sponsor. */ - snippet: Schema$SponsorSnippet; + snippet?: Schema$SponsorSnippet; } export interface Schema$SponsorListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of sponsors that match the request criteria. */ - items: Schema$Sponsor[]; + items?: Schema$Sponsor[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#sponsorListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$SponsorSnippet { /** * The id of the channel being sponsored. */ - channelId: string; + channelId?: string; /** * The cumulative time a user has been a sponsor in months. */ - cumulativeDurationMonths: number; + cumulativeDurationMonths?: number; /** * Details about the sponsor. */ - sponsorDetails: Schema$ChannelProfileDetails; + sponsorDetails?: Schema$ChannelProfileDetails; /** * The date and time when the user became a sponsor. The value is specified * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - sponsorSince: string; + sponsorSince?: string; } /** * A subscription resource contains information about a YouTube user @@ -3750,29 +3660,29 @@ export namespace youtube_v3 { * The contentDetails object contains basic statistics about the * subscription. */ - contentDetails: Schema$SubscriptionContentDetails; + contentDetails?: Schema$SubscriptionContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the subscription. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#subscription". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the subscription, * including its title and the channel that the user subscribed to. */ - snippet: Schema$SubscriptionSnippet; + snippet?: Schema$SubscriptionSnippet; /** * The subscriberSnippet object contains basic details about the sbuscriber. */ - subscriberSnippet: Schema$SubscriptionSubscriberSnippet; + subscriberSnippet?: Schema$SubscriptionSubscriberSnippet; } /** * Details about the content to witch a subscription refers. @@ -3781,51 +3691,51 @@ export namespace youtube_v3 { /** * The type of activity this subscription is for (only uploads, everything). */ - activityType: string; + activityType?: string; /** * The number of new items in the subscription since its content was last * read. */ - newItemCount: number; + newItemCount?: number; /** * The approximate number of items that the subscription points to. */ - totalItemCount: number; + totalItemCount?: number; } export interface Schema$SubscriptionListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of subscriptions that match the request criteria. */ - items: Schema$Subscription[]; + items?: Schema$Subscription[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#subscriptionListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a subscription, including title, description and @@ -3836,35 +3746,35 @@ export namespace youtube_v3 { * The ID that YouTube uses to uniquely identify the subscriber's * channel. */ - channelId: string; + channelId?: string; /** * Channel title for the channel that the subscription belongs to. */ - channelTitle: string; + channelTitle?: string; /** * The subscription's details. */ - description: string; + description?: string; /** * The date and time that the subscription was created. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * The id object contains information about the channel that the user * subscribed to. */ - resourceId: Schema$ResourceId; + resourceId?: Schema$ResourceId; /** * A map of thumbnail images associated with the video. For each object in * the map, the key is the name of the thumbnail image, and the value is an * object that contains other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The subscription's title. */ - title: string; + title?: string; } /** * Basic details about a subscription's subscriber including title, @@ -3874,19 +3784,19 @@ export namespace youtube_v3 { /** * The channel ID of the subscriber. */ - channelId: string; + channelId?: string; /** * The description of the subscriber. */ - description: string; + description?: string; /** * Thumbnails for this subscriber. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The title of the subscriber. */ - title: string; + title?: string; } /** * A superChatEvent resource represents a Super Chat purchase on a YouTube @@ -3896,97 +3806,97 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube assigns to uniquely identify the Super Chat event. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#superChatEvent". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the Super Chat event. */ - snippet: Schema$SuperChatEventSnippet; + snippet?: Schema$SuperChatEventSnippet; } export interface Schema$SuperChatEventListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of Super Chat purchases that match the request criteria. */ - items: Schema$SuperChatEvent[]; + items?: Schema$SuperChatEvent[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#superChatEventListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; - tokenPagination: Schema$TokenPagination; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$SuperChatEventSnippet { /** * The purchase amount, in micros of the purchase currency. e.g., 1 is * represented as 1000000. */ - amountMicros: string; + amountMicros?: string; /** * Channel id where the event occurred. */ - channelId: string; + channelId?: string; /** * The text contents of the comment left by the user. */ - commentText: string; + commentText?: string; /** * The date and time when the event occurred. The value is specified in ISO * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - createdAt: string; + createdAt?: string; /** * The currency in which the purchase was made. ISO 4217. */ - currency: string; + currency?: string; /** * A rendered string that displays the purchase amount and currency (e.g., * "$1.00"). The string is rendered for the given language. */ - displayString: string; + displayString?: string; /** * True if this event is a Super Chat for Good purchase. */ - isSuperChatForGood: boolean; + isSuperChatForGood?: boolean; /** * The tier for the paid message, which is based on the amount of money * spent to purchase the message. */ - messageType: number; + messageType?: number; /** * If this event is a Super Chat for Good purchase, this field will contain * information about the charity the purchase is donated to. */ - nonprofit: Schema$Nonprofit; + nonprofit?: Schema$Nonprofit; /** * Details about the supporter. */ - supporterDetails: Schema$ChannelProfileDetails; + supporterDetails?: Schema$ChannelProfileDetails; } /** * A thumbnail is an image representing a YouTube resource. @@ -3995,15 +3905,15 @@ export namespace youtube_v3 { /** * (Optional) Height of the thumbnail image. */ - height: number; + height?: number; /** * The thumbnail image's URL. */ - url: string; + url?: string; /** * (Optional) Width of the thumbnail image. */ - width: number; + width?: number; } /** * Internal representation of thumbnails for a YouTube resource. @@ -4012,46 +3922,46 @@ export namespace youtube_v3 { /** * The default image for this resource. */ - default: Schema$Thumbnail; + default?: Schema$Thumbnail; /** * The high quality image for this resource. */ - high: Schema$Thumbnail; + high?: Schema$Thumbnail; /** * The maximum resolution quality image for this resource. */ - maxres: Schema$Thumbnail; + maxres?: Schema$Thumbnail; /** * The medium quality image for this resource. */ - medium: Schema$Thumbnail; + medium?: Schema$Thumbnail; /** * The standard quality image for this resource. */ - standard: Schema$Thumbnail; + standard?: Schema$Thumbnail; } export interface Schema$ThumbnailSetResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of thumbnails. */ - items: Schema$ThumbnailDetails[]; + items?: Schema$ThumbnailDetails[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#thumbnailSetResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Stub token pagination template to suppress results. @@ -4065,52 +3975,52 @@ export namespace youtube_v3 { * Age restriction details related to a video. This data can only be * retrieved by the video owner. */ - ageGating: Schema$VideoAgeGating; + ageGating?: Schema$VideoAgeGating; /** * The contentDetails object contains information about the video content, * including the length of the video and its aspect ratio. */ - contentDetails: Schema$VideoContentDetails; + contentDetails?: Schema$VideoContentDetails; /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The fileDetails object encapsulates information about the video file that * was uploaded to YouTube, including the file's resolution, duration, * audio and video codecs, stream bitrates, and more. This data can only be * retrieved by the video owner. */ - fileDetails: Schema$VideoFileDetails; + fileDetails?: Schema$VideoFileDetails; /** * The ID that YouTube uses to uniquely identify the video. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#video". */ - kind: string; + kind?: string; /** * The liveStreamingDetails object contains metadata about a live video * broadcast. The object will only be present in a video resource if the * video is an upcoming, live, or completed live broadcast. */ - liveStreamingDetails: Schema$VideoLiveStreamingDetails; + liveStreamingDetails?: Schema$VideoLiveStreamingDetails; /** * List with all localizations. */ - localizations: any; + localizations?: any; /** * The monetizationDetails object encapsulates information about the * monetization status of the video. */ - monetizationDetails: Schema$VideoMonetizationDetails; + monetizationDetails?: Schema$VideoMonetizationDetails; /** * The player object contains information that you would use to play the * video in an embedded player. */ - player: Schema$VideoPlayer; + player?: Schema$VideoPlayer; /** * The processingDetails object encapsulates information about YouTube's * progress in processing the uploaded video file. The properties in the @@ -4122,67 +4032,67 @@ export namespace youtube_v3 { * uploaded can track the progress that YouTube has made in processing the * uploaded video file. This data can only be retrieved by the video owner. */ - processingDetails: Schema$VideoProcessingDetails; + processingDetails?: Schema$VideoProcessingDetails; /** * The projectDetails object contains information about the project specific * video metadata. */ - projectDetails: Schema$VideoProjectDetails; + projectDetails?: Schema$VideoProjectDetails; /** * The recordingDetails object encapsulates information about the location, * date and address where the video was recorded. */ - recordingDetails: Schema$VideoRecordingDetails; + recordingDetails?: Schema$VideoRecordingDetails; /** * The snippet object contains basic details about the video, such as its * title, description, and category. */ - snippet: Schema$VideoSnippet; + snippet?: Schema$VideoSnippet; /** * The statistics object contains statistics about the video. */ - statistics: Schema$VideoStatistics; + statistics?: Schema$VideoStatistics; /** * The status object contains information about the video's uploading, * processing, and privacy statuses. */ - status: Schema$VideoStatus; + status?: Schema$VideoStatus; /** * The suggestions object encapsulates suggestions that identify * opportunities to improve the video quality or the metadata for the * uploaded video. This data can only be retrieved by the video owner. */ - suggestions: Schema$VideoSuggestions; + suggestions?: Schema$VideoSuggestions; /** * The topicDetails object encapsulates information about Freebase topics * associated with the video. */ - topicDetails: Schema$VideoTopicDetails; + topicDetails?: Schema$VideoTopicDetails; } export interface Schema$VideoAbuseReport { /** * Additional comments regarding the abuse report. */ - comments: string; + comments?: string; /** * The language that the content was viewed in. */ - language: string; + language?: string; /** * The high-level, or primary, reason that the content is abusive. The value * is an abuse report reason ID. */ - reasonId: string; + reasonId?: string; /** * The specific, or secondary, reason that this content is abusive (if * available). The value is an abuse report reason ID that is a valid * secondary reason for the primary reason. */ - secondaryReasonId: string; + secondaryReasonId?: string; /** * The ID that YouTube uses to uniquely identify the video. */ - videoId: string; + videoId?: string; } /** * A videoAbuseReportReason resource identifies a reason that a video could be @@ -4193,43 +4103,43 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID of this abuse report reason. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#videoAbuseReportReason". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the abuse report reason. */ - snippet: Schema$VideoAbuseReportReasonSnippet; + snippet?: Schema$VideoAbuseReportReasonSnippet; } export interface Schema$VideoAbuseReportReasonListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of valid abuse reasons that are used with video.ReportAbuse. */ - items: Schema$VideoAbuseReportReason[]; + items?: Schema$VideoAbuseReportReason[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#videoAbuseReportReasonListResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a video category, such as its localized title. @@ -4238,22 +4148,22 @@ export namespace youtube_v3 { /** * The localized label belonging to this abuse report reason. */ - label: string; + label?: string; /** * The secondary reasons associated with this reason, if any are available. * (There might be 0 or more.) */ - secondaryReasons: Schema$VideoAbuseReportSecondaryReason[]; + secondaryReasons?: Schema$VideoAbuseReportSecondaryReason[]; } export interface Schema$VideoAbuseReportSecondaryReason { /** * The ID of this abuse report secondary reason. */ - id: string; + id?: string; /** * The localized label for this abuse report secondary reason. */ - label: string; + label?: string; } export interface Schema$VideoAgeGating { /** @@ -4261,18 +4171,18 @@ export namespace youtube_v3 { * users of legal purchasing age in a particular country, as identified by * ICAP, can view the content. */ - alcoholContent: boolean; + alcoholContent?: boolean; /** * Age-restricted trailers. For redband trailers and adult-rated * video-games. Only users aged 18+ can view the content. The the field is * true the content is restricted to viewers aged 18+. Otherwise The field * won't be present. */ - restricted: boolean; + restricted?: boolean; /** * Video game rating, if any. */ - videoGameRating: string; + videoGameRating?: string; } /** * A videoCategory resource identifies a category that has been or could be @@ -4282,72 +4192,72 @@ export namespace youtube_v3 { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the video category. */ - id: string; + id?: string; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#videoCategory". */ - kind: string; + kind?: string; /** * The snippet object contains basic details about the video category, * including its title. */ - snippet: Schema$VideoCategorySnippet; + snippet?: Schema$VideoCategorySnippet; } export interface Schema$VideoCategoryListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of video categories that can be associated with YouTube videos. In * this map, the video category ID is the map key, and its value is the * corresponding videoCategory resource. */ - items: Schema$VideoCategory[]; + items?: Schema$VideoCategory[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#videoCategoryListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Basic details about a video category, such as its localized title. */ export interface Schema$VideoCategorySnippet { - assignable: boolean; + assignable?: boolean; /** * The YouTube channel that created the video category. */ - channelId: string; + channelId?: string; /** * The video category's title. */ - title: string; + title?: string; } /** * Details about the content of a YouTube Video. @@ -4356,27 +4266,27 @@ export namespace youtube_v3 { /** * The value of captions indicates whether the video has captions or not. */ - caption: string; + caption?: string; /** * Specifies the ratings that the video received under various rating * schemes. */ - contentRating: Schema$ContentRating; + contentRating?: Schema$ContentRating; /** * The countryRestriction object contains information about the countries * where a video is (or is not) viewable. */ - countryRestriction: Schema$AccessPolicy; + countryRestriction?: Schema$AccessPolicy; /** * The value of definition indicates whether the video is available in high * definition or only in standard definition. */ - definition: string; + definition?: string; /** * The value of dimension indicates whether the video is available in 3D or * in 2D. */ - dimension: string; + dimension?: string; /** * The length of the video. The tag value is an ISO 8601 duration in the * format PT#M#S, in which the letters PT indicate that the value specifies @@ -4386,28 +4296,28 @@ export namespace youtube_v3 { * video. For example, a value of PT15M51S indicates that the video is 15 * minutes and 51 seconds long. */ - duration: string; + duration?: string; /** * Indicates whether the video uploader has provided a custom thumbnail * image for the video. This property is only visible to the video uploader. */ - hasCustomThumbnail: boolean; + hasCustomThumbnail?: boolean; /** * The value of is_license_content indicates whether the video is licensed * content. */ - licensedContent: boolean; + licensedContent?: boolean; /** * Specifies the projection format of the video. */ - projection: string; + projection?: string; /** * The regionRestriction object contains information about the countries * where a video is (or is not) viewable. The object will contain either the * contentDetails.regionRestriction.allowed property or the * contentDetails.regionRestriction.blocked property. */ - regionRestriction: Schema$VideoContentDetailsRegionRestriction; + regionRestriction?: Schema$VideoContentDetailsRegionRestriction; } /** * DEPRECATED Region restriction of the video. @@ -4420,7 +4330,7 @@ export namespace youtube_v3 { * property is present and contains an empty list, the video is blocked in * all countries. */ - allowed: string[]; + allowed?: string[]; /** * A list of region codes that identify countries where the video is * blocked. If this property is present and a country is not listed in its @@ -4428,7 +4338,7 @@ export namespace youtube_v3 { * present and contains an empty list, the video is viewable in all * countries. */ - blocked: string[]; + blocked?: string[]; } /** * Describes original video file properties, including technical details about @@ -4440,49 +4350,49 @@ export namespace youtube_v3 { * A list of audio streams contained in the uploaded video file. Each item * in the list contains detailed metadata about an audio stream. */ - audioStreams: Schema$VideoFileDetailsAudioStream[]; + audioStreams?: Schema$VideoFileDetailsAudioStream[]; /** * The uploaded video file's combined (video and audio) bitrate in bits * per second. */ - bitrateBps: string; + bitrateBps?: string; /** * The uploaded video file's container format. */ - container: string; + container?: string; /** * The date and time when the uploaded video file was created. The value is * specified in ISO 8601 format. Currently, the following ISO 8601 formats * are supported: - Date only: YYYY-MM-DD - Naive time: * YYYY-MM-DDTHH:MM:SS - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM */ - creationTime: string; + creationTime?: string; /** * The length of the uploaded video in milliseconds. */ - durationMs: string; + durationMs?: string; /** * The uploaded file's name. This field is present whether a video file * or another type of file was uploaded. */ - fileName: string; + fileName?: string; /** * The uploaded file's size in bytes. This field is present whether a * video file or another type of file was uploaded. */ - fileSize: string; + fileSize?: string; /** * The uploaded file's type as detected by YouTube's video * processing engine. Currently, YouTube only processes video files, but * this field is present whether a video file or another type of file was * uploaded. */ - fileType: string; + fileType?: string; /** * A list of video streams contained in the uploaded video file. Each item * in the list contains detailed metadata about a video stream. */ - videoStreams: Schema$VideoFileDetailsVideoStream[]; + videoStreams?: Schema$VideoFileDetailsVideoStream[]; } /** * Information about an audio stream. @@ -4491,20 +4401,20 @@ export namespace youtube_v3 { /** * The audio stream's bitrate, in bits per second. */ - bitrateBps: string; + bitrateBps?: string; /** * The number of audio channels that the stream contains. */ - channelCount: number; + channelCount?: number; /** * The audio codec that the stream uses. */ - codec: string; + codec?: string; /** * A value that uniquely identifies a video vendor. Typically, the value is * a four-letter vendor code. */ - vendor: string; + vendor?: string; } /** * Information about a video stream. @@ -4514,96 +4424,96 @@ export namespace youtube_v3 { * The video content's display aspect ratio, which specifies the aspect * ratio in which the video should be displayed. */ - aspectRatio: number; + aspectRatio?: number; /** * The video stream's bitrate, in bits per second. */ - bitrateBps: string; + bitrateBps?: string; /** * The video codec that the stream uses. */ - codec: string; + codec?: string; /** * The video stream's frame rate, in frames per second. */ - frameRateFps: number; + frameRateFps?: number; /** * The encoded video content's height in pixels. */ - heightPixels: number; + heightPixels?: number; /** * The amount that YouTube needs to rotate the original source content to * properly display the video. */ - rotation: string; + rotation?: string; /** * A value that uniquely identifies a video vendor. Typically, the value is * a four-letter vendor code. */ - vendor: string; + vendor?: string; /** * The encoded video content's width in pixels. You can calculate the * video's encoding aspect ratio as width_pixels / height_pixels. */ - widthPixels: number; + widthPixels?: number; } export interface Schema$VideoGetRatingResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of ratings that match the request criteria. */ - items: Schema$VideoRating[]; + items?: Schema$VideoRating[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#videoGetRatingResponse". */ - kind: string; + kind?: string; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } export interface Schema$VideoListResponse { /** * Etag of this resource. */ - etag: string; + etag?: string; /** * Serialized EventId of the request which produced this response. */ - eventId: string; + eventId?: string; /** * A list of videos that match the request criteria. */ - items: Schema$Video[]; + items?: Schema$Video[]; /** * Identifies what kind of resource this is. Value: the fixed string * "youtube#videoListResponse". */ - kind: string; + kind?: string; /** * The token that can be used as the value of the pageToken parameter to * retrieve the next page in the result set. */ - nextPageToken: string; - pageInfo: Schema$PageInfo; + nextPageToken?: string; + pageInfo?: Schema$PageInfo; /** * The token that can be used as the value of the pageToken parameter to * retrieve the previous page in the result set. */ - prevPageToken: string; - tokenPagination: Schema$TokenPagination; + prevPageToken?: string; + tokenPagination?: Schema$TokenPagination; /** * The visitorId identifies the visitor. */ - visitorId: string; + visitorId?: string; } /** * Details about the live streaming metadata. @@ -4617,19 +4527,19 @@ export namespace youtube_v3 { * live chat id will no longer be tied to this video but rather to the new * video being displayed at the persistent page. */ - activeLiveChatId: string; + activeLiveChatId?: string; /** * The time that the broadcast actually ended. The value is specified in ISO * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available * until the broadcast is over. */ - actualEndTime: string; + actualEndTime?: string; /** * The time that the broadcast actually started. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be * available until the broadcast begins. */ - actualStartTime: string; + actualStartTime?: string; /** * The number of viewers currently watching the broadcast. The property and * its value will be present if the broadcast has current viewers and the @@ -4639,19 +4549,19 @@ export namespace youtube_v3 { * of viewers watching an archived video of a live broadcast that already * ended. */ - concurrentViewers: string; + concurrentViewers?: string; /** * The time that the broadcast is scheduled to end. The value is specified * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. If the value is empty or the * property is not present, then the broadcast is scheduled to continue * indefinitely. */ - scheduledEndTime: string; + scheduledEndTime?: string; /** * The time that the broadcast is scheduled to begin. The value is specified * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - scheduledStartTime: string; + scheduledStartTime?: string; } /** * Localized versions of certain video properties (e.g. title). @@ -4660,11 +4570,11 @@ export namespace youtube_v3 { /** * Localized version of the video's description. */ - description: string; + description?: string; /** * Localized version of the video's title. */ - title: string; + title?: string; } /** * Details about monetization of a YouTube Video. @@ -4673,21 +4583,21 @@ export namespace youtube_v3 { /** * The value of access indicates whether the video can be monetized or not. */ - access: Schema$AccessPolicy; + access?: Schema$AccessPolicy; } /** * Player to be used for a video playback. */ export interface Schema$VideoPlayer { - embedHeight: string; + embedHeight?: string; /** * An <iframe> tag that embeds a player that will play the video. */ - embedHtml: string; + embedHtml?: string; /** * The embed width */ - embedWidth: string; + embedWidth?: string; } /** * Describes processing status and progress and availability of some other @@ -4700,18 +4610,18 @@ export namespace youtube_v3 { * video. You can retrieve these suggestions by requesting the suggestions * part in your videos.list() request. */ - editorSuggestionsAvailability: string; + editorSuggestionsAvailability?: string; /** * This value indicates whether file details are available for the uploaded * video. You can retrieve a video's file details by requesting the * fileDetails part in your videos.list() request. */ - fileDetailsAvailability: string; + fileDetailsAvailability?: string; /** * The reason that YouTube failed to process the video. This property will * only have a value if the processingStatus property's value is failed. */ - processingFailureReason: string; + processingFailureReason?: string; /** * This value indicates whether the video processing engine has generated * suggestions that might improve YouTube's ability to process the the @@ -4719,30 +4629,30 @@ export namespace youtube_v3 { * cause video processing problems. You can retrieve these suggestions by * requesting the suggestions part in your videos.list() request. */ - processingIssuesAvailability: string; + processingIssuesAvailability?: string; /** * The processingProgress object contains information about the progress * YouTube has made in processing the video. The values are really only * relevant if the video's processing status is processing. */ - processingProgress: Schema$VideoProcessingDetailsProcessingProgress; + processingProgress?: Schema$VideoProcessingDetailsProcessingProgress; /** * The video's processing status. This value indicates whether YouTube * was able to process the video or if the video is still being processed. */ - processingStatus: string; + processingStatus?: string; /** * This value indicates whether keyword (tag) suggestions are available for * the video. Tags can be added to a video's metadata to make it easier * for other users to find the video. You can retrieve these suggestions by * requesting the suggestions part in your videos.list() request. */ - tagSuggestionsAvailability: string; + tagSuggestionsAvailability?: string; /** * This value indicates whether thumbnail images have been generated for the * video. */ - thumbnailsAvailability: string; + thumbnailsAvailability?: string; } /** * Video processing progress and completion time estimate. @@ -4757,18 +4667,18 @@ export namespace youtube_v3 { * processed, it is possible that the calculated progress could periodically * decrease while YouTube processes a video. */ - partsProcessed: string; + partsProcessed?: string; /** * An estimate of the total number of parts that need to be processed for * the video. The number may be updated with more precise estimates while * YouTube processes the video. */ - partsTotal: string; + partsTotal?: string; /** * An estimate of the amount of time, in millseconds, that YouTube needs to * finish processing the video. */ - timeLeftMs: string; + timeLeftMs?: string; } /** * Project specific details about the content of a YouTube Video. @@ -4777,11 +4687,11 @@ export namespace youtube_v3 { /** * A list of project tags associated with the video during the upload. */ - tags: string[]; + tags?: string[]; } export interface Schema$VideoRating { - rating: string; - videoId: string; + rating?: string; + videoId?: string; } /** * Recording information associated with the video. @@ -4790,16 +4700,16 @@ export namespace youtube_v3 { /** * The geolocation information associated with the video. */ - location: Schema$GeoPoint; + location?: Schema$GeoPoint; /** * The text description of the location where the video was recorded. */ - locationDescription: string; + locationDescription?: string; /** * The date and time when the video was recorded. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. */ - recordingDate: string; + recordingDate?: string; } /** * Basic details about a video, including title, description, uploader, @@ -4809,59 +4719,59 @@ export namespace youtube_v3 { /** * The YouTube video category associated with the video. */ - categoryId: string; + categoryId?: string; /** * The ID that YouTube uses to uniquely identify the channel that the video * was uploaded to. */ - channelId: string; + channelId?: string; /** * Channel title for the channel that the video belongs to. */ - channelTitle: string; + channelTitle?: string; /** * The default_audio_language property specifies the language spoken in the * video's default audio track. */ - defaultAudioLanguage: string; + defaultAudioLanguage?: string; /** * The language of the videos's default snippet. */ - defaultLanguage: string; + defaultLanguage?: string; /** * The video's description. */ - description: string; + description?: string; /** * Indicates if the video is an upcoming/active live broadcast. Or it's * "none" if the video is not an upcoming/active live broadcast. */ - liveBroadcastContent: string; + liveBroadcastContent?: string; /** * Localized snippet selected with the hl parameter. If no such localization * exists, this field is populated with the default snippet. (Read-only) */ - localized: Schema$VideoLocalization; + localized?: Schema$VideoLocalization; /** * The date and time that the video was uploaded. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * A list of keyword tags associated with the video. Tags may contain * spaces. */ - tags: string[]; + tags?: string[]; /** * A map of thumbnail images associated with the video. For each object in * the map, the key is the name of the thumbnail image, and the value is an * object that contains other information about the thumbnail. */ - thumbnails: Schema$ThumbnailDetails; + thumbnails?: Schema$ThumbnailDetails; /** * The video's title. */ - title: string; + title?: string; } /** * Statistics about the video, such as the number of times the video was @@ -4871,26 +4781,26 @@ export namespace youtube_v3 { /** * The number of comments for the video. */ - commentCount: string; + commentCount?: string; /** * The number of users who have indicated that they disliked the video by * giving it a negative rating. */ - dislikeCount: string; + dislikeCount?: string; /** * The number of users who currently have the video marked as a favorite * video. */ - favoriteCount: string; + favoriteCount?: string; /** * The number of users who have indicated that they liked the video by * giving it a positive rating. */ - likeCount: string; + likeCount?: string; /** * The number of times the video has been viewed. */ - viewCount: string; + viewCount?: string; } /** * Basic details about a video category, such as its localized title. @@ -4899,42 +4809,42 @@ export namespace youtube_v3 { /** * This value indicates if the video can be embedded on another website. */ - embeddable: boolean; + embeddable?: boolean; /** * This value explains why a video failed to upload. This property is only * present if the uploadStatus property indicates that the upload failed. */ - failureReason: string; + failureReason?: string; /** * The video's license. */ - license: string; + license?: string; /** * The video's privacy status. */ - privacyStatus: string; + privacyStatus?: string; /** * This value indicates if the extended video statistics on the watch page * can be viewed by everyone. Note that the view count, likes, etc will * still be visible if this is disabled. */ - publicStatsViewable: boolean; + publicStatsViewable?: boolean; /** * The date and time when the video is scheduled to publish. It can be set * only if the privacy status of the video is private. The value is * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishAt: string; + publishAt?: string; /** * This value explains why YouTube rejected an uploaded video. This property * is only present if the uploadStatus property indicates that the upload * was rejected. */ - rejectionReason: string; + rejectionReason?: string; /** * The status of the uploaded video. */ - uploadStatus: string; + uploadStatus?: string; } /** * Specifies suggestions on how to improve video content, including encoding @@ -4945,19 +4855,19 @@ export namespace youtube_v3 { * A list of video editing operations that might improve the video quality * or playback experience of the uploaded video. */ - editorSuggestions: string[]; + editorSuggestions?: string[]; /** * A list of errors that will prevent YouTube from successfully processing * the uploaded video video. These errors indicate that, regardless of the * video's current processing status, eventually, that status will * almost certainly be failed. */ - processingErrors: string[]; + processingErrors?: string[]; /** * A list of suggestions that may improve YouTube's ability to process * the video. */ - processingHints: string[]; + processingHints?: string[]; /** * A list of reasons why YouTube may have difficulty transcoding the * uploaded video or that might result in an erroneous transcoding. These @@ -4966,13 +4876,13 @@ export namespace youtube_v3 { * the video processing to fail but that might cause problems such as sync * issues, video artifacts, or a missing audio track. */ - processingWarnings: string[]; + processingWarnings?: string[]; /** * A list of keyword tags that could be added to the video's metadata to * increase the likelihood that users will locate your video when searching * or browsing on YouTube. */ - tagSuggestions: Schema$VideoSuggestionsTagSuggestion[]; + tagSuggestions?: Schema$VideoSuggestionsTagSuggestion[]; } /** * A single tag suggestion with it's relevance information. @@ -4985,11 +4895,11 @@ export namespace youtube_v3 { * tag suggestions are relevant for all categories if there are no restricts * defined for the keyword. */ - categoryRestricts: string[]; + categoryRestricts?: string[]; /** * The keyword tag suggested for the video. */ - tag: string; + tag?: string; } /** * Freebase topic information related to the video. @@ -5000,19 +4910,19 @@ export namespace youtube_v3 { * video. These are topics that may be mentioned in, or appear in the video. * You can retrieve information about each topic using Freebase Topic API. */ - relevantTopicIds: string[]; + relevantTopicIds?: string[]; /** * A list of Wikipedia URLs that provide a high-level description of the * video's content. */ - topicCategories: string[]; + topicCategories?: string[]; /** * A list of Freebase topic IDs that are centrally associated with the * video. These are topics that are centrally featured in the video, and it * can be said that the video is mainly about each of these. You can * retrieve information about each topic using the Freebase Topic API. */ - topicIds: string[]; + topicIds?: string[]; } /** * Branding properties for the watch. All deprecated. @@ -5021,18 +4931,19 @@ export namespace youtube_v3 { /** * The text color for the video watch page's branded area. */ - backgroundColor: string; + backgroundColor?: string; /** * An ID that uniquely identifies a playlist that displays next to the video * player. */ - featuredPlaylistId: string; + featuredPlaylistId?: string; /** * The background color for the video watch page's branded area. */ - textColor: string; + textColor?: string; } + export class Resource$Activities { root: Youtube; constructor(root: Youtube) { @@ -5064,26 +4975,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Activities$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Activities$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Activities$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Activities$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Activities$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5130,28 +5052,38 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Activities$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Activities$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Activities$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Activities$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Activities$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Activities$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5174,6 +5106,93 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Activities$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Activity; + } + export interface Params$Resource$Activities$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter specifies a unique YouTube channel ID. The API + * will then return a list of that channel's activities. + */ + channelId?: string; + /** + * Set this parameter's value to true to retrieve the activity feed that + * displays on the YouTube home page for the currently authenticated user. + */ + home?: boolean; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * Set this parameter's value to true to retrieve a feed of the + * authenticated user's activities. + */ + mine?: boolean; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * activity resource properties that the API response will include. If the + * parameter identifies a property that contains child properties, the child + * properties will be included in the response. For example, in an activity + * resource, the snippet property contains other properties that identify + * the type of activity, a display title for the activity, and so forth. If + * you set part=snippet, the API response will also contain all of those + * nested properties. + */ + part?: string; + /** + * The publishedAfter parameter specifies the earliest date and time that an + * activity could have occurred for that activity to be included in the API + * response. If the parameter value specifies a day, but not a time, then + * any activities that occurred that day will be included in the result set. + * The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + */ + publishedAfter?: string; + /** + * The publishedBefore parameter specifies the date and time before which an + * activity must have occurred for that activity to be included in the API + * response. If the parameter value specifies a day, but not a time, then + * any activities that occurred that day will be excluded from the result + * set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + */ + publishedBefore?: string; + /** + * The regionCode parameter instructs the API to return results for the + * specified country. The parameter value is an ISO 3166-1 alpha-2 country + * code. YouTube uses this value when the authorized user's previous + * activity on YouTube does not provide enough information to generate the + * activity feed. + */ + regionCode?: string; + } + + export class Resource$Captions { root: Youtube; constructor(root: Youtube) { @@ -5200,22 +5219,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Captions$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Captions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Captions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Captions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Captions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Captions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5257,22 +5289,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - download(params?: any, options?: MethodOptions): AxiosPromise; download( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Captions$Download, + options?: MethodOptions): AxiosPromise; download( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Captions$Download, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + download( + params: Params$Resource$Captions$Download, + callback: BodyResponseCallback): void; + download(callback: BodyResponseCallback): void; + download( + paramsOrCallback?: Params$Resource$Captions$Download| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Captions$Download; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Captions$Download; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5314,25 +5361,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Captions$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Captions$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Captions$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Captions$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Captions$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Captions$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5376,28 +5434,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Captions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Captions$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Captions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Captions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Captions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Captions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5441,25 +5508,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Captions$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Captions$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Captions$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Captions$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Captions$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Captions$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5484,6 +5562,242 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Captions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter identifies the caption track that is being deleted. The + * value is a caption track ID as identified by the id property in a caption + * resource. + */ + id?: string; + /** + * ID of the Google+ Page for the channel that the request is be on behalf + * of + */ + onBehalfOf?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Captions$Download { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter identifies the caption track that is being retrieved. + * The value is a caption track ID as identified by the id property in a + * caption resource. + */ + id?: string; + /** + * ID of the Google+ Page for the channel that the request is be on behalf + * of + */ + onBehalfOf?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The tfmt parameter specifies that the caption track should be returned in + * a specific format. If the parameter is not included in the request, the + * track is returned in its original format. + */ + tfmt?: string; + /** + * The tlang parameter specifies that the API response should return a + * translation of the specified caption track. The parameter value is an ISO + * 639-1 two-letter language code that identifies the desired caption + * language. The translation is generated by using machine translation, such + * as Google Translate. + */ + tlang?: string; + } + export interface Params$Resource$Captions$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the Google+ Page for the channel that the request is be on behalf + * of + */ + onBehalfOf?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter specifies the caption resource parts that the API + * response will include. Set the parameter value to snippet. + */ + part?: string; + /** + * The sync parameter indicates whether YouTube should automatically + * synchronize the caption file with the audio track of the video. If you + * set the value to true, YouTube will disregard any time codes that are in + * the uploaded caption file and generate new time codes for the captions. + * You should set the sync parameter to true if you are uploading a + * transcript, which has no time codes, or if you suspect the time codes in + * your file are incorrect and want YouTube to try to fix them. + */ + sync?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Caption; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Captions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of IDs that identify + * the caption resources that should be retrieved. Each ID must identify a + * caption track associated with the specified video. + */ + id?: string; + /** + * ID of the Google+ Page for the channel that the request is on behalf of. + */ + onBehalfOf?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * caption resource parts that the API response will include. The part names + * that you can include in the parameter value are id and snippet. + */ + part?: string; + /** + * The videoId parameter specifies the YouTube video ID of the video for + * which the API should return caption tracks. + */ + videoId?: string; + } + export interface Params$Resource$Captions$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * ID of the Google+ Page for the channel that the request is be on behalf + * of + */ + onBehalfOf?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. Set the property value to + * snippet if you are updating the track's draft status. Otherwise, set the + * property value to id. + */ + part?: string; + /** + * Note: The API server only processes the parameter value if the request + * contains an updated caption file. The sync parameter indicates whether + * YouTube should automatically synchronize the caption file with the audio + * track of the video. If you set the value to true, YouTube will + * automatically synchronize the caption track with the audio track. + */ + sync?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Caption; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Channelbanners { root: Youtube; constructor(root: Youtube) { @@ -5521,28 +5835,40 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Channelbanners$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Channelbanners$Insert, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Channelbanners$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Channelbanners$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Channelbanners$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channelbanners$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5567,6 +5893,57 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Channelbanners$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter identifies the YouTube channel to which the + * banner is uploaded. The channelId parameter was introduced as a required + * parameter in May 2017. As this was a backward-incompatible change, + * channelBanners.insert requests that do not specify this parameter will + * not return an error until six months have passed from the time that the + * parameter was introduced. Please see the API Terms of Service for the + * official policy regarding backward incompatible changes and the API + * revision history for the exact date that the parameter was introduced. + */ + channelId?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$ChannelBannerResource; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Channels { root: Youtube; constructor(root: Youtube) { @@ -5602,28 +5979,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Channels$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Channels$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Channels$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5662,25 +6048,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Channels$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Channels$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Channels$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channels$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Channels$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channels$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5703,47 +6100,178 @@ export namespace youtube_v3 { } } - export class Resource$Channelsections { - root: Youtube; - constructor(root: Youtube) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Channels$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * youtube.channelSections.delete - * @desc Deletes a channelSection. - * @alias youtube.channelSections.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. In a channelSection resource, the id property specifies the YouTube channelSection ID. + * The categoryId parameter specifies a YouTube guide category, thereby + * requesting YouTube channels associated with that category. + */ + categoryId?: string; + /** + * The forUsername parameter specifies a YouTube username, thereby + * requesting the channel associated with that username. + */ + forUsername?: string; + /** + * The hl parameter should be used for filter out the properties that are + * not in the given language. Used for the brandingSettings part. + */ + hl?: string; + /** + * The id parameter specifies a comma-separated list of the YouTube channel + * ID(s) for the resource(s) that are being retrieved. In a channel + * resource, the id property specifies the channel's YouTube channel ID. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. Set this parameter's value to true to instruct the API to only + * return channels managed by the content owner that the + * onBehalfOfContentOwner parameter specifies. The user must be + * authenticated as a CMS account linked to the specified content owner and + * onBehalfOfContentOwner must be provided. + */ + managedByMe?: boolean; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * Set this parameter's value to true to instruct the API to only return + * channels owned by the authenticated user. + */ + mine?: boolean; + /** + * Use the subscriptions.list method and its mySubscribers parameter to + * retrieve a list of subscribers to the authenticated user's channel. + */ + mySubscribers?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * channel resource properties that the API response will include. If the + * parameter identifies a property that contains child properties, the child + * properties will be included in the response. For example, in a channel + * resource, the contentDetails property contains other properties, such as + * the uploads properties. As such, if you set part=contentDetails, the API + * response will also contain all of those nested properties. + */ + part?: string; + } + export interface Params$Resource$Channels$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The onBehalfOfContentOwner parameter indicates that the authenticated + * user is acting on behalf of the content owner specified in the parameter + * value. This parameter is intended for YouTube content partners that own + * and manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with needs to + * be linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The API currently only + * allows the parameter value to be set to either brandingSettings or + * invideoPromotion. (You cannot update both of those parts with a single + * request.) Note that this method overrides the existing values for all of + * the mutable properties that are contained in any parts that the parameter + * value specifies. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Channel; + } + + + export class Resource$Channelsections { + root: Youtube; + constructor(root: Youtube) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * youtube.channelSections.delete + * @desc Deletes a channelSection. + * @alias youtube.channelSections.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.id The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. In a channelSection resource, the id property specifies the YouTube channelSection ID. * @param {string=} params.onBehalfOfContentOwner Note: This parameter is intended exclusively for YouTube content partners. The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Channelsections$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Channelsections$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Channelsections$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Channelsections$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Channelsections$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channelsections$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5781,26 +6309,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Channelsections$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Channelsections$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Channelsections$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Channelsections$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Channelsections$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channelsections$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5841,29 +6382,43 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Channelsections$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Channelsections$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Channelsections$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Channelsections$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Channelsections$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channelsections$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5901,26 +6456,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Channelsections$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Channelsections$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Channelsections$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Channelsections$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Channelsections$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Channelsections$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -5943,6 +6511,174 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Channelsections$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube channelSection ID for the resource + * that is being deleted. In a channelSection resource, the id property + * specifies the YouTube channelSection ID. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Channelsections$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The part names that you + * can include in the parameter value are snippet and contentDetails. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$ChannelSection; + } + export interface Params$Resource$Channelsections$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter specifies a YouTube channel ID. The API will only + * return that channel's channelSections. + */ + channelId?: string; + /** + * The hl parameter indicates that the snippet.localized property values in + * the returned channelSection resources should be in the specified language + * if localized values for that language are available. For example, if the + * API request specifies hl=de, the snippet.localized properties in the API + * response will contain German titles if German titles are available. + * Channel owners can provide localized channel section titles using either + * the channelSections.insert or channelSections.update method. + */ + hl?: string; + /** + * The id parameter specifies a comma-separated list of the YouTube + * channelSection ID(s) for the resource(s) that are being retrieved. In a + * channelSection resource, the id property specifies the YouTube + * channelSection ID. + */ + id?: string; + /** + * Set this parameter's value to true to retrieve a feed of the + * authenticated user's channelSections. + */ + mine?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * channelSection resource properties that the API response will include. + * The part names that you can include in the parameter value are id, + * snippet, and contentDetails. If the parameter identifies a property that + * contains child properties, the child properties will be included in the + * response. For example, in a channelSection resource, the snippet property + * contains other properties, such as a display title for the + * channelSection. If you set part=snippet, the API response will also + * contain all of those nested properties. + */ + part?: string; + } + export interface Params$Resource$Channelsections$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The part names that you + * can include in the parameter value are snippet and contentDetails. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$ChannelSection; + } + + export class Resource$Comments { root: Youtube; constructor(root: Youtube) { @@ -5967,22 +6703,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Comments$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Comments$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6019,25 +6768,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Comments$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Comments$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Comments$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6077,28 +6837,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Comments$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Comments$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Comments$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6134,22 +6903,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - markAsSpam(params?: any, options?: MethodOptions): AxiosPromise; markAsSpam( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Comments$Markasspam, + options?: MethodOptions): AxiosPromise; + markAsSpam( + params: Params$Resource$Comments$Markasspam, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; markAsSpam( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Markasspam, + callback: BodyResponseCallback): void; + markAsSpam(callback: BodyResponseCallback): void; + markAsSpam( + paramsOrCallback?: Params$Resource$Comments$Markasspam| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Comments$Markasspam; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Markasspam; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6188,23 +6972,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setModerationStatus(params?: any, options?: MethodOptions): - AxiosPromise; setModerationStatus( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Comments$Setmoderationstatus, + options?: MethodOptions): AxiosPromise; setModerationStatus( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Setmoderationstatus, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + setModerationStatus( + params: Params$Resource$Comments$Setmoderationstatus, + callback: BodyResponseCallback): void; + setModerationStatus(callback: BodyResponseCallback): void; + setModerationStatus( + paramsOrCallback?: Params$Resource$Comments$Setmoderationstatus| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Comments$Setmoderationstatus; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Setmoderationstatus; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6240,25 +7038,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Comments$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Comments$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Comments$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Comments$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Comments$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Comments$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6281,6 +7090,133 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Comments$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the comment ID for the resource that is being + * deleted. + */ + id?: string; + } + export interface Params$Resource$Comments$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter identifies the properties that the API response will + * include. Set the parameter value to snippet. The snippet part has a quota + * cost of 2 units. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + export interface Params$Resource$Comments$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of comment IDs for the + * resources that are being retrieved. In a comment resource, the id + * property specifies the comment's ID. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. Note: This parameter is not + * supported for use in conjunction with the id parameter. + */ + maxResults?: number; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken property + * identifies the next page of the result that can be retrieved. Note: This + * parameter is not supported for use in conjunction with the id parameter. + */ + pageToken?: string; + /** + * The parentId parameter specifies the ID of the comment for which replies + * should be retrieved. Note: YouTube currently supports replies only for + * top-level comments. However, replies to replies may be supported in the + * future. + */ + parentId?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * comment resource properties that the API response will include. + */ + part?: string; + /** + * This parameter indicates whether the API should return comments formatted + * as HTML or as plain text. + */ + textFormat?: string; + } + export interface Params$Resource$Comments$Markasspam { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of IDs of comments that + * the caller believes should be classified as spam. + */ + id?: string; + } + export interface Params$Resource$Comments$Setmoderationstatus { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The banAuthor parameter lets you indicate that you want to automatically + * reject any additional comments written by the comment's author. Set the + * parameter value to true to ban the author. Note: This parameter is only + * valid if the moderationStatus parameter is also set to rejected. + */ + banAuthor?: boolean; + /** + * The id parameter specifies a comma-separated list of IDs that identify + * the comments for which you are updating the moderation status. + */ + id?: string; + /** + * Identifies the new moderation status of the specified comments. + */ + moderationStatus?: string; + } + export interface Params$Resource$Comments$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter identifies the properties that the API response will + * include. You must at least include the snippet part in the parameter + * value since that part contains all of the properties that the API request + * can update. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Comment; + } + + export class Resource$Commentthreads { root: Youtube; constructor(root: Youtube) { @@ -6307,26 +7243,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Commentthreads$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Commentthreads$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Commentthreads$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Commentthreads$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Commentthreads$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Commentthreads$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6372,29 +7321,40 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Commentthreads$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Commentthreads$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Commentthreads$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Commentthreads$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Commentthreads$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Commentthreads$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6431,26 +7391,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Commentthreads$Update, + options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Commentthreads$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Commentthreads$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Commentthreads$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Commentthreads$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Commentthreads$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6473,79 +7446,116 @@ export namespace youtube_v3 { } } - export class Resource$Fanfundingevents { - root: Youtube; - constructor(root: Youtube) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - + export interface Params$Resource$Commentthreads$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * youtube.fanFundingEvents.list - * @desc Lists fan funding events for a channel. - * @alias youtube.fanFundingEvents.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.hl The hl parameter instructs the API to retrieve localized resource metadata for a specific application language that the YouTube website supports. The parameter value must be a language code included in the list returned by the i18nLanguages.list method. If localized resource details are available in that language, the resource's snippet.localized object will contain the localized values. However, if localized details are not available, the snippet.localized object will contain resource details in the resource's default language. - * @param {integer=} params.maxResults The maxResults parameter specifies the maximum number of items that should be returned in the result set. - * @param {string=} params.pageToken The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved. - * @param {string} params.part The part parameter specifies the fanFundingEvent resource parts that the API response will include. Supported values are id and snippet. - * @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 + * The part parameter identifies the properties that the API response will + * include. Set the parameter value to snippet. The snippet part has a quota + * cost of 2 units. */ - list(params?: any, options?: MethodOptions): - AxiosPromise; - list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): - void; - list( - 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 + '/youtube/v3/fanFundingEvents') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'GET' - }, - options), - params, - requiredParams: ['part'], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest( - parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + part?: string; + /** + * Request body metadata + */ + resource?: Schema$CommentThread; + } + export interface Params$Resource$Commentthreads$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The allThreadsRelatedToChannelId parameter instructs the API to return + * all comment threads associated with the specified channel. The response + * can include comments about the channel or about the channel's videos. + */ + allThreadsRelatedToChannelId?: string; + /** + * The channelId parameter instructs the API to return comment threads + * containing comments about the specified channel. (The response will not + * include comments left on videos that the channel uploaded.) + */ + channelId?: string; + /** + * The id parameter specifies a comma-separated list of comment thread IDs + * for the resources that should be retrieved. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. Note: This parameter is not + * supported for use in conjunction with the id parameter. + */ + maxResults?: number; + /** + * Set this parameter to limit the returned comment threads to a particular + * moderation state. Note: This parameter is not supported for use in + * conjunction with the id parameter. + */ + moderationStatus?: string; + /** + * The order parameter specifies the order in which the API response should + * list comment threads. Valid values are: - time - Comment threads are + * ordered by time. This is the default behavior. - relevance - Comment + * threads are ordered by relevance.Note: This parameter is not supported + * for use in conjunction with the id parameter. + */ + order?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken property + * identifies the next page of the result that can be retrieved. Note: This + * parameter is not supported for use in conjunction with the id parameter. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * commentThread resource properties that the API response will include. + */ + part?: string; + /** + * The searchTerms parameter instructs the API to limit the API response to + * only contain comments that contain the specified search terms. Note: + * This parameter is not supported for use in conjunction with the id + * parameter. + */ + searchTerms?: string; + /** + * Set this parameter's value to html or plainText to instruct the API to + * return the comments left by users in html formatted or in plain text. + */ + textFormat?: string; + /** + * The videoId parameter instructs the API to return comment threads + * associated with the specified video ID. + */ + videoId?: string; + } + export interface Params$Resource$Commentthreads$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter specifies a comma-separated list of commentThread + * resource properties that the API response will include. You must at least + * include the snippet part in the parameter value since that part contains + * all of the properties that the API request can update. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$CommentThread; } + export class Resource$Guidecategories { root: Youtube; constructor(root: Youtube) { @@ -6574,29 +7584,41 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Guidecategories$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Guidecategories$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Guidecategories$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Guidecategories$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Guidecategories$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Guidecategories$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6620,6 +7642,38 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Guidecategories$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter specifies the language that will be used for text values + * in the API response. + */ + hl?: string; + /** + * The id parameter specifies a comma-separated list of the YouTube channel + * category ID(s) for the resource(s) that are being retrieved. In a + * guideCategory resource, the id property specifies the YouTube channel + * category ID. + */ + id?: string; + /** + * The part parameter specifies the guideCategory resource properties that + * the API response will include. Set the parameter value to snippet. + */ + part?: string; + /** + * The regionCode parameter instructs the API to return the list of guide + * categories available in the specified country. The parameter value is an + * ISO 3166-1 alpha-2 country code. + */ + regionCode?: string; + } + + export class Resource$I18nlanguages { root: Youtube; constructor(root: Youtube) { @@ -6646,28 +7700,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$I18nlanguages$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$I18nlanguages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$I18nlanguages$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$I18nlanguages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$I18nlanguages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$I18nlanguages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6690,6 +7755,25 @@ export namespace youtube_v3 { } } + export interface Params$Resource$I18nlanguages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter specifies the language that should be used for text + * values in the API response. + */ + hl?: string; + /** + * The part parameter specifies the i18nLanguage resource properties that + * the API response will include. Set the parameter value to snippet. + */ + part?: string; + } + + export class Resource$I18nregions { root: Youtube; constructor(root: Youtube) { @@ -6716,28 +7800,38 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$I18nregions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$I18nregions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$I18nregions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$I18nregions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$I18nregions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$I18nregions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6760,6 +7854,25 @@ export namespace youtube_v3 { } } + export interface Params$Resource$I18nregions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter specifies the language that should be used for text + * values in the API response. + */ + hl?: string; + /** + * The part parameter specifies the i18nRegion resource properties that the + * API response will include. Set the parameter value to snippet. + */ + part?: string; + } + + export class Resource$Livebroadcasts { root: Youtube; constructor(root: Youtube) { @@ -6791,26 +7904,38 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - bind(params?: any, options?: MethodOptions): + bind(params?: Params$Resource$Livebroadcasts$Bind, options?: MethodOptions): AxiosPromise; bind( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Livebroadcasts$Bind, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; bind( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livebroadcasts$Bind, + callback: BodyResponseCallback): void; + bind(callback: BodyResponseCallback): void; + bind( + paramsOrCallback?: Params$Resource$Livebroadcasts$Bind| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$Bind; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$Bind; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6852,26 +7977,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - control(params?: any, options?: MethodOptions): - AxiosPromise; control( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livebroadcasts$Control, + options?: MethodOptions): AxiosPromise; control( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livebroadcasts$Control, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + control( + params: Params$Resource$Livebroadcasts$Control, + callback: BodyResponseCallback): void; + control(callback: BodyResponseCallback): void; + control( + paramsOrCallback?: Params$Resource$Livebroadcasts$Control| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$Control; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$Control; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6908,22 +8046,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livebroadcasts$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Livebroadcasts$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Livebroadcasts$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Livebroadcasts$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -6961,26 +8114,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livebroadcasts$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Livebroadcasts$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livebroadcasts$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Livebroadcasts$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7024,29 +8190,40 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Livebroadcasts$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Livebroadcasts$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Livebroadcasts$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Livebroadcasts$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7091,26 +8268,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - transition(params?: any, options?: MethodOptions): - AxiosPromise; transition( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livebroadcasts$Transition, + options?: MethodOptions): AxiosPromise; + transition( + params: Params$Resource$Livebroadcasts$Transition, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; transition( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livebroadcasts$Transition, + callback: BodyResponseCallback): void; + transition(callback: BodyResponseCallback): void; + transition( + paramsOrCallback?: Params$Resource$Livebroadcasts$Transition| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$Transition; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$Transition; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7149,26 +8339,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livebroadcasts$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Livebroadcasts$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Livebroadcasts$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Livebroadcasts$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livebroadcasts$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livebroadcasts$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7191,109 +8394,563 @@ export namespace youtube_v3 { } } - export class Resource$Livechatbans { - root: Youtube; - constructor(root: Youtube) { - this.root = root; - this.getRoot.bind(this); - } - - getRoot() { - return this.root; - } - - + export interface Params$Resource$Livebroadcasts$Bind { /** - * youtube.liveChatBans.delete - * @desc Removes a chat ban. - * @alias youtube.liveChatBans.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.id The id parameter identifies the chat ban to remove. The value uniquely identifies both the ban and the chat. - * @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 + * Auth client or API Key for the request */ - delete(params?: any, options?: MethodOptions): AxiosPromise; - delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - delete( - 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 + '/youtube/v3/liveChat/bans') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE' - }, - options), - params, - requiredParams: ['id'], - pathParams: [], - context: this.getRoot() - }; - if (callback) { - createAPIRequest(parameters, callback); - } else { - return createAPIRequest(parameters); - } - } + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + /** + * The id parameter specifies the unique ID of the broadcast that is being + * bound to a video stream. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * liveBroadcast resource properties that the API response will include. The + * part names that you can include in the parameter value are id, snippet, + * contentDetails, and status. + */ + part?: string; + /** + * The streamId parameter specifies the unique ID of the video stream that + * is being bound to a broadcast. If this parameter is omitted, the API will + * remove any existing binding between the broadcast and a video stream. + */ + streamId?: string; + } + export interface Params$Resource$Livebroadcasts$Control { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; /** - * youtube.liveChatBans.insert - * @desc Adds a new ban to the chat. - * @alias youtube.liveChatBans.insert - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet. - * @param {().LiveChatBan} 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 + * The displaySlate parameter specifies whether the slate is being enabled + * or disabled. */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; - insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - insert( - 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 + '/youtube/v3/liveChat/bans') - .replace(/([^:]\/)\/+/g, '$1'), - method: 'POST' - }, + displaySlate?: boolean; + /** + * The id parameter specifies the YouTube live broadcast ID that uniquely + * identifies the broadcast in which the slate is being updated. + */ + id?: string; + /** + * The offsetTimeMs parameter specifies a positive time offset when the + * specified slate change will occur. The value is measured in milliseconds + * from the beginning of the broadcast's monitor stream, which is the time + * that the testing phase for the broadcast began. Even though it is + * specified in milliseconds, the value is actually an approximation, and + * YouTube completes the requested action as closely as possible to that + * time. If you do not specify a value for this parameter, then YouTube + * performs the action as soon as possible. See the Getting started guide + * for more details. Important: You should only specify a value for this + * parameter if your broadcast stream is delayed. + */ + offsetTimeMs?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * liveBroadcast resource properties that the API response will include. The + * part names that you can include in the parameter value are id, snippet, + * contentDetails, and status. + */ + part?: string; + /** + * The walltime parameter specifies the wall clock time at which the + * specified slate change will occur. The value is specified in ISO 8601 + * (YYYY-MM-DDThh:mm:ss.sssZ) format. + */ + walltime?: string; + } + export interface Params$Resource$Livebroadcasts$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube live broadcast ID for the resource + * that is being deleted. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + } + export interface Params$Resource$Livebroadcasts$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The part properties that + * you can include in the parameter value are id, snippet, contentDetails, + * and status. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveBroadcast; + } + export interface Params$Resource$Livebroadcasts$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The broadcastStatus parameter filters the API response to only include + * broadcasts with the specified status. + */ + broadcastStatus?: string; + /** + * The broadcastType parameter filters the API response to only include + * broadcasts with the specified type. This is only compatible with the mine + * filter for now. + */ + broadcastType?: string; + /** + * The id parameter specifies a comma-separated list of YouTube broadcast + * IDs that identify the broadcasts being retrieved. In a liveBroadcast + * resource, the id property specifies the broadcast's ID. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * The mine parameter can be used to instruct the API to only return + * broadcasts owned by the authenticated user. Set the parameter value to + * true to only retrieve your own broadcasts. + */ + mine?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * liveBroadcast resource properties that the API response will include. The + * part names that you can include in the parameter value are id, snippet, + * contentDetails, and status. + */ + part?: string; + } + export interface Params$Resource$Livebroadcasts$Transition { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The broadcastStatus parameter identifies the state to which the broadcast + * is changing. Note that to transition a broadcast to either the testing or + * live state, the status.streamStatus must be active for the stream that + * the broadcast is bound to. + */ + broadcastStatus?: string; + /** + * The id parameter specifies the unique ID of the broadcast that is + * transitioning to another status. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * liveBroadcast resource properties that the API response will include. The + * part names that you can include in the parameter value are id, snippet, + * contentDetails, and status. + */ + part?: string; + } + export interface Params$Resource$Livebroadcasts$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The part properties that + * you can include in the parameter value are id, snippet, contentDetails, + * and status. Note that this method will override the existing values for + * all of the mutable properties that are contained in any parts that the + * parameter value specifies. For example, a broadcast's privacy status is + * defined in the status part. As such, if your request is updating a + * private or unlisted broadcast, and the request's part parameter value + * includes the status part, the broadcast's privacy setting will be updated + * to whatever value the request body specifies. If the request body does + * not specify a value, the existing privacy setting will be removed and the + * broadcast will revert to the default privacy setting. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveBroadcast; + } + + + export class Resource$Livechatbans { + root: Youtube; + constructor(root: Youtube) { + this.root = root; + this.getRoot.bind(this); + } + + getRoot() { + return this.root; + } + + + /** + * youtube.liveChatBans.delete + * @desc Removes a chat ban. + * @alias youtube.liveChatBans.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.id The id parameter identifies the chat ban to remove. The value uniquely identifies both the ban and the chat. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + delete( + params?: Params$Resource$Livechatbans$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Livechatbans$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Livechatbans$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Livechatbans$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, + callback?: BodyResponseCallback): void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatbans$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatbans$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/youtube/v3/liveChat/bans') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE' + }, + options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.getRoot() + }; + if (callback) { + createAPIRequest(parameters, callback); + } else { + return createAPIRequest(parameters); + } + } + + + /** + * youtube.liveChatBans.insert + * @desc Adds a new ban to the chat. + * @alias youtube.liveChatBans.insert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.part The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response returns. Set the parameter value to snippet. + * @param {().LiveChatBan} params.resource Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + insert( + params?: Params$Resource$Livechatbans$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Livechatbans$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Livechatbans$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Livechatbans$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, + callback?: BodyResponseCallback): + void|AxiosPromise { + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatbans$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatbans$Insert; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/youtube/v3/liveChat/bans') + .replace(/([^:]\/)\/+/g, '$1'), + method: 'POST' + }, options), params, requiredParams: ['part'], @@ -7308,6 +8965,38 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Livechatbans$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter identifies the chat ban to remove. The value uniquely + * identifies both the ban and the chat. + */ + id?: string; + } + export interface Params$Resource$Livechatbans$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response returns. Set the parameter value to + * snippet. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveChatBan; + } + + export class Resource$Livechatmessages { root: Youtube; constructor(root: Youtube) { @@ -7332,22 +9021,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livechatmessages$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Livechatmessages$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livechatmessages$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Livechatmessages$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatmessages$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatmessages$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7383,26 +9087,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livechatmessages$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livechatmessages$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Livechatmessages$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Livechatmessages$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatmessages$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatmessages$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7442,29 +9159,44 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Livechatmessages$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Livechatmessages$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): + void; + list( + params: Params$Resource$Livechatmessages$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Livechatmessages$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatmessages$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatmessages$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7488,6 +9220,81 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Livechatmessages$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube chat message ID of the resource + * that is being deleted. + */ + id?: string; + } + export interface Params$Resource$Livechatmessages$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter serves two purposes. It identifies the properties that + * the write operation will set as well as the properties that the API + * response will include. Set the parameter value to snippet. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveChatMessage; + } + export interface Params$Resource$Livechatmessages$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter instructs the API to retrieve localized resource + * metadata for a specific application language that the YouTube website + * supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. If localized resource + * details are available in that language, the resource's snippet.localized + * object will contain the localized values. However, if localized details + * are not available, the snippet.localized object will contain resource + * details in the resource's default language. + */ + hl?: string; + /** + * The liveChatId parameter specifies the ID of the chat whose messages will + * be returned. + */ + liveChatId?: string; + /** + * The maxResults parameter specifies the maximum number of messages that + * should be returned in the result set. + */ + maxResults?: number; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken property + * identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies the liveChatComment resource parts that the + * API response will include. Supported values are id and snippet. + */ + part?: string; + /** + * The profileImageSize parameter specifies the size of the user profile + * pictures that should be returned in the result set. Default: 88. + */ + profileImageSize?: number; + } + + export class Resource$Livechatmoderators { root: Youtube; constructor(root: Youtube) { @@ -7512,22 +9319,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livechatmoderators$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livechatmoderators$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Livechatmoderators$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Livechatmoderators$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatmoderators$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatmoderators$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7563,26 +9385,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livechatmoderators$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Livechatmoderators$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Livechatmoderators$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Livechatmoderators$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatmoderators$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatmoderators$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7620,29 +9455,44 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Livechatmoderators$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Livechatmoderators$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Livechatmoderators$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Livechatmoderators$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livechatmoderators$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livechatmoderators$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7667,6 +9517,66 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Livechatmoderators$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter identifies the chat moderator to remove. The value + * uniquely identifies both the moderator and the chat. + */ + id?: string; + } + export interface Params$Resource$Livechatmoderators$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response returns. Set the parameter value to + * snippet. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveChatModerator; + } + export interface Params$Resource$Livechatmoderators$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The liveChatId parameter specifies the YouTube live chat for which the + * API should return moderators. + */ + liveChatId?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies the liveChatModerator resource parts that + * the API response will include. Supported values are id and snippet. + */ + part?: string; + } + + export class Resource$Livestreams { root: Youtube; constructor(root: Youtube) { @@ -7693,22 +9603,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livestreams$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Livestreams$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Livestreams$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Livestreams$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livestreams$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livestreams$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7747,26 +9672,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livestreams$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Livestreams$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Livestreams$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Livestreams$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livestreams$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livestreams$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7808,28 +9746,38 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Livestreams$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Livestreams$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Livestreams$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Livestreams$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Livestreams$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livestreams$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7869,26 +9817,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Livestreams$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Livestreams$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Livestreams$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Livestreams$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Livestreams$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Livestreams$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7911,6 +9872,225 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Livestreams$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube live stream ID for the resource + * that is being deleted. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + } + export interface Params$Resource$Livestreams$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The part properties that + * you can include in the parameter value are id, snippet, cdn, and status. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveStream; + } + export interface Params$Resource$Livestreams$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of YouTube stream IDs + * that identify the streams being retrieved. In a liveStream resource, the + * id property specifies the stream's ID. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * The mine parameter can be used to instruct the API to only return streams + * owned by the authenticated user. Set the parameter value to true to only + * retrieve your own streams. + */ + mine?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * liveStream resource properties that the API response will include. The + * part names that you can include in the parameter value are id, snippet, + * cdn, and status. + */ + part?: string; + } + export interface Params$Resource$Livestreams$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. The part properties that + * you can include in the parameter value are id, snippet, cdn, and status. + * Note that this method will override the existing values for all of the + * mutable properties that are contained in any parts that the parameter + * value specifies. If the request body does not specify a value for a + * mutable property, the existing value for that property will be removed. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$LiveStream; + } + + export class Resource$Playlistitems { root: Youtube; constructor(root: Youtube) { @@ -7936,22 +10116,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Playlistitems$Delete, + options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Playlistitems$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Playlistitems$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Playlistitems$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Playlistitems$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlistitems$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -7988,26 +10183,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Playlistitems$Insert, + options?: MethodOptions): AxiosPromise; + insert( + params: Params$Resource$Playlistitems$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Playlistitems$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Playlistitems$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Playlistitems$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlistitems$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8050,28 +10258,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Playlistitems$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Playlistitems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Playlistitems$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Playlistitems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Playlistitems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlistitems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8109,26 +10328,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): - AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Playlistitems$Update, + options?: MethodOptions): AxiosPromise; + update( + params: Params$Resource$Playlistitems$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + update( + params: Params$Resource$Playlistitems$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Playlistitems$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Playlistitems$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlistitems$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8151,6 +10383,163 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Playlistitems$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube playlist item ID for the playlist + * item that is being deleted. In a playlistItem resource, the id property + * specifies the playlist item's ID. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Playlistitems$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$PlaylistItem; + } + export interface Params$Resource$Playlistitems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of one or more unique + * playlist item IDs. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * playlistItem resource properties that the API response will include. If + * the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * playlistItem resource, the snippet property contains numerous fields, + * including the title, description, position, and resourceId properties. As + * such, if you set part=snippet, the API response will contain all of those + * properties. + */ + part?: string; + /** + * The playlistId parameter specifies the unique ID of the playlist for + * which you want to retrieve playlist items. Note that even though this is + * an optional parameter, every request to retrieve playlist items must + * specify a value for either the id parameter or the playlistId parameter. + */ + playlistId?: string; + /** + * The videoId parameter specifies that the request should return only the + * playlist items that contain the specified video. + */ + videoId?: string; + } + export interface Params$Resource$Playlistitems$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. Note that this method + * will override the existing values for all of the mutable properties that + * are contained in any parts that the parameter value specifies. For + * example, a playlist item can specify a start time and end time, which + * identify the times portion of the video that should play when users watch + * the video in the playlist. If your request is updating a playlist item + * that sets these values, and the request's part parameter value includes + * the contentDetails part, the playlist item's start and end times will be + * updated to whatever value the request body specifies. If the request body + * does not specify values, the existing start and end times will be removed + * and replaced with the default settings. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$PlaylistItem; + } + + export class Resource$Playlists { root: Youtube; constructor(root: Youtube) { @@ -8176,22 +10565,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Playlists$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Playlists$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Playlists$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Playlists$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Playlists$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlists$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8229,26 +10631,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Playlists$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Playlists$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Playlists$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Playlists$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Playlists$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlists$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8294,28 +10706,38 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Playlists$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Playlists$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Playlists$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Playlists$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Playlists$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlists$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8353,26 +10775,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): + update(params?: Params$Resource$Playlists$Update, options?: MethodOptions): AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Playlists$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Playlists$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Playlists$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Playlists$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Playlists$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8395,6 +10827,200 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Playlists$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube playlist ID for the playlist that + * is being deleted. In a playlist resource, the id property specifies the + * playlist's ID. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Playlists$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Playlist; + } + export interface Params$Resource$Playlists$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This value indicates that the API should only return the specified + * channel's playlists. + */ + channelId?: string; + /** + * The hl parameter should be used for filter out the properties that are + * not in the given language. Used for the snippet part. + */ + hl?: string; + /** + * The id parameter specifies a comma-separated list of the YouTube playlist + * ID(s) for the resource(s) that are being retrieved. In a playlist + * resource, the id property specifies the playlist's YouTube playlist ID. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * Set this parameter's value to true to instruct the API to only return + * playlists owned by the authenticated user. + */ + mine?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * playlist resource properties that the API response will include. If the + * parameter identifies a property that contains child properties, the child + * properties will be included in the response. For example, in a playlist + * resource, the snippet property contains properties like author, title, + * description, tags, and timeCreated. As such, if you set part=snippet, the + * API response will contain all of those properties. + */ + part?: string; + } + export interface Params$Resource$Playlists$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. Note that this method + * will override the existing values for mutable properties that are + * contained in any parts that the request body specifies. For example, a + * playlist's description is contained in the snippet part, which must be + * included in the request body. If the request does not specify a value for + * the snippet.description property, the playlist's existing description + * will be deleted. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Playlist; + } + + export class Resource$Search { root: Youtube; constructor(root: Youtube) { @@ -8452,26 +11078,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Search$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Search$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Search$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Search$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Search$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Search$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8494,6 +11131,235 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Search$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter indicates that the API response should only + * contain resources created by the channel + */ + channelId?: string; + /** + * The channelType parameter lets you restrict a search to a particular type + * of channel. + */ + channelType?: string; + /** + * The eventType parameter restricts a search to broadcast events. If you + * specify a value for this parameter, you must also set the type + * parameter's value to video. + */ + eventType?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The forContentOwner parameter restricts the search to only + * retrieve resources owned by the content owner specified by the + * onBehalfOfContentOwner parameter. The user must be authenticated using a + * CMS account linked to the specified content owner and + * onBehalfOfContentOwner must be provided. + */ + forContentOwner?: boolean; + /** + * The forDeveloper parameter restricts the search to only retrieve videos + * uploaded via the developer's application or website. The API server uses + * the request's authorization credentials to identify the developer. + * Therefore, a developer can restrict results to videos uploaded through + * the developer's own app or website but not to videos uploaded through + * other apps or sites. + */ + forDeveloper?: boolean; + /** + * The forMine parameter restricts the search to only retrieve videos owned + * by the authenticated user. If you set this parameter to true, then the + * type parameter's value must also be set to video. + */ + forMine?: boolean; + /** + * The location parameter, in conjunction with the locationRadius parameter, + * defines a circular geographic area and also restricts a search to videos + * that specify, in their metadata, a geographic location that falls within + * that area. The parameter value is a string that specifies + * latitude/longitude coordinates e.g. (37.42307,-122.08427). - The + * location parameter value identifies the point at the center of the area. + * - The locationRadius parameter specifies the maximum distance that the + * location associated with a video can be from that point for the video to + * still be included in the search results.The API returns an error if your + * request specifies a value for the location parameter but does not also + * specify a value for the locationRadius parameter. + */ + location?: string; + /** + * The locationRadius parameter, in conjunction with the location parameter, + * defines a circular geographic area. The parameter value must be a + * floating point number followed by a measurement unit. Valid measurement + * units are m, km, ft, and mi. For example, valid parameter values include + * 1500m, 5km, 10000ft, and 0.75mi. The API does not support locationRadius + * parameter values larger than 1000 kilometers. Note: See the definition + * of the location parameter for more information. + */ + locationRadius?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The order parameter specifies the method that will be used to order + * resources in the API response. + */ + order?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more search + * resource properties that the API response will include. Set the parameter + * value to snippet. + */ + part?: string; + /** + * The publishedAfter parameter indicates that the API response should only + * contain resources created after the specified time. The value is an RFC + * 3339 formatted date-time value (1970-01-01T00:00:00Z). + */ + publishedAfter?: string; + /** + * The publishedBefore parameter indicates that the API response should only + * contain resources created before the specified time. The value is an RFC + * 3339 formatted date-time value (1970-01-01T00:00:00Z). + */ + publishedBefore?: string; + /** + * The q parameter specifies the query term to search for. Your request can + * also use the Boolean NOT (-) and OR (|) operators to exclude videos or to + * find videos that are associated with one of several search terms. For + * example, to search for videos matching either "boating" or "sailing", set + * the q parameter value to boating|sailing. Similarly, to search for videos + * matching either "boating" or "sailing" but not "fishing", set the q + * parameter value to boating|sailing -fishing. Note that the pipe character + * must be URL-escaped when it is sent in your API request. The URL-escaped + * value for the pipe character is %7C. + */ + q?: string; + /** + * The regionCode parameter instructs the API to return search results for + * the specified country. The parameter value is an ISO 3166-1 alpha-2 + * country code. + */ + regionCode?: string; + /** + * The relatedToVideoId parameter retrieves a list of videos that are + * related to the video that the parameter value identifies. The parameter + * value must be set to a YouTube video ID and, if you are using this + * parameter, the type parameter must be set to video. + */ + relatedToVideoId?: string; + /** + * The relevanceLanguage parameter instructs the API to return search + * results that are most relevant to the specified language. The parameter + * value is typically an ISO 639-1 two-letter language code. However, you + * should use the values zh-Hans for simplified Chinese and zh-Hant for + * traditional Chinese. Please note that results in other languages will + * still be returned if they are highly relevant to the search query term. + */ + relevanceLanguage?: string; + /** + * The safeSearch parameter indicates whether the search results should + * include restricted content as well as standard content. + */ + safeSearch?: string; + /** + * The topicId parameter indicates that the API response should only contain + * resources associated with the specified topic. The value identifies a + * Freebase topic ID. + */ + topicId?: string; + /** + * The type parameter restricts a search query to only retrieve a particular + * type of resource. The value is a comma-separated list of resource types. + */ + type?: string; + /** + * The videoCaption parameter indicates whether the API should filter video + * search results based on whether they have captions. If you specify a + * value for this parameter, you must also set the type parameter's value to + * video. + */ + videoCaption?: string; + /** + * The videoCategoryId parameter filters video search results based on their + * category. If you specify a value for this parameter, you must also set + * the type parameter's value to video. + */ + videoCategoryId?: string; + /** + * The videoDefinition parameter lets you restrict a search to only include + * either high definition (HD) or standard definition (SD) videos. HD videos + * are available for playback in at least 720p, though higher resolutions, + * like 1080p, might also be available. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + */ + videoDefinition?: string; + /** + * The videoDimension parameter lets you restrict a search to only retrieve + * 2D or 3D videos. If you specify a value for this parameter, you must also + * set the type parameter's value to video. + */ + videoDimension?: string; + /** + * The videoDuration parameter filters video search results based on their + * duration. If you specify a value for this parameter, you must also set + * the type parameter's value to video. + */ + videoDuration?: string; + /** + * The videoEmbeddable parameter lets you to restrict a search to only + * videos that can be embedded into a webpage. If you specify a value for + * this parameter, you must also set the type parameter's value to video. + */ + videoEmbeddable?: string; + /** + * The videoLicense parameter filters search results to only include videos + * with a particular license. YouTube lets video uploaders choose to attach + * either the Creative Commons license or the standard YouTube license to + * each of their videos. If you specify a value for this parameter, you must + * also set the type parameter's value to video. + */ + videoLicense?: string; + /** + * The videoSyndicated parameter lets you to restrict a search to only + * videos that can be played outside youtube.com. If you specify a value for + * this parameter, you must also set the type parameter's value to video. + */ + videoSyndicated?: string; + /** + * The videoType parameter lets you restrict a search to a particular type + * of videos. If you specify a value for this parameter, you must also set + * the type parameter's value to video. + */ + videoType?: string; + } + + export class Resource$Sponsors { root: Youtube; constructor(root: Youtube) { @@ -8521,28 +11387,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Sponsors$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Sponsors$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Sponsors$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Sponsors$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Sponsors$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Sponsors$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8565,6 +11440,35 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Sponsors$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The filter parameter specifies which channel sponsors to return. + */ + filter?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies the sponsor resource parts that the API + * response will include. Supported values are id and snippet. + */ + part?: string; + } + + export class Resource$Subscriptions { root: Youtube; constructor(root: Youtube) { @@ -8589,22 +11493,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Delete, + options?: MethodOptions): AxiosPromise; + delete( + params: Params$Resource$Subscriptions$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Subscriptions$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Subscriptions$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8640,26 +11559,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): - AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Subscriptions$Insert, + options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Subscriptions$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + insert( + params: Params$Resource$Subscriptions$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Subscriptions$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8705,28 +11637,39 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Subscriptions$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subscriptions$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Subscriptions$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Subscriptions$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Subscriptions$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Subscriptions$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8749,6 +11692,136 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Subscriptions$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube subscription ID for the resource + * that is being deleted. In a subscription resource, the id property + * specifies the YouTube subscription ID. + */ + id?: string; + } + export interface Params$Resource$Subscriptions$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Subscription; + } + export interface Params$Resource$Subscriptions$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter specifies a YouTube channel ID. The API will only + * return that channel's subscriptions. + */ + channelId?: string; + /** + * The forChannelId parameter specifies a comma-separated list of channel + * IDs. The API response will then only contain subscriptions matching those + * channels. + */ + forChannelId?: string; + /** + * The id parameter specifies a comma-separated list of the YouTube + * subscription ID(s) for the resource(s) that are being retrieved. In a + * subscription resource, the id property specifies the YouTube subscription + * ID. + */ + id?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * Set this parameter's value to true to retrieve a feed of the + * authenticated user's subscriptions. + */ + mine?: boolean; + /** + * Set this parameter's value to true to retrieve a feed of the subscribers + * of the authenticated user in reverse chronological order (newest first). + */ + myRecentSubscribers?: boolean; + /** + * Set this parameter's value to true to retrieve a feed of the subscribers + * of the authenticated user in no particular order. + */ + mySubscribers?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The order parameter specifies the method that will be used to sort + * resources in the API response. + */ + order?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more + * subscription resource properties that the API response will include. If + * the parameter identifies a property that contains child properties, the + * child properties will be included in the response. For example, in a + * subscription resource, the snippet property contains other properties, + * such as a display title for the subscription. If you set part=snippet, + * the API response will also contain all of those nested properties. + */ + part?: string; + } + + export class Resource$Superchatevents { root: Youtube; constructor(root: Youtube) { @@ -8776,29 +11849,43 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Superchatevents$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Superchatevents$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Superchatevents$List, + callback: BodyResponseCallback): + void; + list(callback: BodyResponseCallback): + void; + list( + paramsOrCallback?: Params$Resource$Superchatevents$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Superchatevents$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Superchatevents$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8822,6 +11909,42 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Superchatevents$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter instructs the API to retrieve localized resource + * metadata for a specific application language that the YouTube website + * supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. If localized resource + * details are available in that language, the resource's snippet.localized + * object will contain the localized values. However, if localized details + * are not available, the snippet.localized object will contain resource + * details in the resource's default language. + */ + hl?: string; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. + */ + maxResults?: number; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + */ + pageToken?: string; + /** + * The part parameter specifies the superChatEvent resource parts that the + * API response will include. Supported values are id and snippet. + */ + part?: string; + } + + export class Resource$Thumbnails { root: Youtube; constructor(root: Youtube) { @@ -8851,26 +11974,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - set(params?: any, + set(params?: Params$Resource$Thumbnails$Set, options?: MethodOptions): AxiosPromise; - set(params?: any, - options?: MethodOptions| + set(params: Params$Resource$Thumbnails$Set, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; - set(params?: any, - options?: MethodOptions| + callback: BodyResponseCallback): void; + set(params: Params$Resource$Thumbnails$Set, + callback: BodyResponseCallback): void; + set(callback: BodyResponseCallback): void; + set(paramsOrCallback?: Params$Resource$Thumbnails$Set| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Thumbnails$Set; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Thumbnails$Set; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8895,6 +12027,47 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Thumbnails$Set { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The videoId parameter specifies a YouTube video ID for which the custom + * video thumbnail is being provided. + */ + videoId?: string; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + + export class Resource$Videoabusereportreasons { root: Youtube; constructor(root: Youtube) { @@ -8921,31 +12094,48 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Videoabusereportreasons$List, + options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videoabusereportreasons$List, + options: MethodOptions| BodyResponseCallback, - callback?: + callback: + BodyResponseCallback): + void; + list( + params: Params$Resource$Videoabusereportreasons$List, + callback: BodyResponseCallback): void; + list(callback: + BodyResponseCallback): + void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Videoabusereportreasons$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as + Params$Resource$Videoabusereportreasons$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videoabusereportreasons$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -8970,6 +12160,25 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Videoabusereportreasons$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter specifies the language that should be used for text + * values in the API response. + */ + hl?: string; + /** + * The part parameter specifies the videoCategory resource parts that the + * API response will include. Supported values are id and snippet. + */ + part?: string; + } + + export class Resource$Videocategories { root: Youtube; constructor(root: Youtube) { @@ -8998,29 +12207,41 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list( + params?: Params$Resource$Videocategories$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Videocategories$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Videocategories$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Videocategories$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Videocategories$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videocategories$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9044,6 +12265,36 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Videocategories$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The hl parameter specifies the language that should be used for text + * values in the API response. + */ + hl?: string; + /** + * The id parameter specifies a comma-separated list of video category IDs + * for the resources that you are retrieving. + */ + id?: string; + /** + * The part parameter specifies the videoCategory resource properties that + * the API response will include. Set the parameter value to snippet. + */ + part?: string; + /** + * The regionCode parameter instructs the API to return the list of video + * categories available in the specified country. The parameter value is an + * ISO 3166-1 alpha-2 country code. + */ + regionCode?: string; + } + + export class Resource$Videos { root: Youtube; constructor(root: Youtube) { @@ -9069,22 +12320,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Videos$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Videos$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Videos$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Videos$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9121,28 +12385,40 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getRating(params?: any, options?: MethodOptions): - AxiosPromise; getRating( - params?: any, - options?: MethodOptions| + params?: Params$Resource$Videos$Getrating, + options?: MethodOptions): AxiosPromise; + getRating( + params: Params$Resource$Videos$Getrating, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + getRating( + params: Params$Resource$Videos$Getrating, + callback: BodyResponseCallback): void; + getRating(callback: BodyResponseCallback): + void; getRating( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Videos$Getrating| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Getrating; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Getrating; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9187,25 +12463,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Videos$Insert, options?: MethodOptions): + AxiosPromise; + insert( + params: Params$Resource$Videos$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Videos$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Videos$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9254,26 +12541,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Videos$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Videos$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Videos$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Videos$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9310,22 +12608,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rate(params?: any, options?: MethodOptions): AxiosPromise; + rate(params?: Params$Resource$Videos$Rate, options?: MethodOptions): + AxiosPromise; rate( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Videos$Rate, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; rate( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Videos$Rate, + callback: BodyResponseCallback): void; + rate(callback: BodyResponseCallback): void; + rate( + paramsOrCallback?: Params$Resource$Videos$Rate| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Rate; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Rate; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9361,22 +12672,37 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - reportAbuse(params?: any, options?: MethodOptions): AxiosPromise; reportAbuse( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params?: Params$Resource$Videos$Reportabuse, + options?: MethodOptions): AxiosPromise; + reportAbuse( + params: Params$Resource$Videos$Reportabuse, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; reportAbuse( - params?: any, options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Videos$Reportabuse, + callback: BodyResponseCallback): void; + reportAbuse(callback: BodyResponseCallback): void; + reportAbuse( + paramsOrCallback?: Params$Resource$Videos$Reportabuse| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Videos$Reportabuse; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Reportabuse; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9413,25 +12739,36 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Videos$Update, options?: MethodOptions): + AxiosPromise; + update( + params: Params$Resource$Videos$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Videos$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Videos$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Videos$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Videos$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9454,6 +12791,333 @@ export namespace youtube_v3 { } } + export interface Params$Resource$Videos$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube video ID for the resource that is + * being deleted. In a video resource, the id property specifies the video's + * ID. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Videos$Getrating { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of the YouTube video + * ID(s) for the resource(s) for which you are retrieving rating data. In a + * video resource, the id property specifies the video's ID. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Videos$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The autoLevels parameter indicates whether YouTube should automatically + * enhance the video's lighting and color. + */ + autoLevels?: boolean; + /** + * The notifySubscribers parameter indicates whether YouTube should send a + * notification about the new video to users who subscribe to the video's + * channel. A parameter value of True indicates that subscribers will be + * notified of newly uploaded videos. However, a channel owner who is + * uploading many videos might prefer to set the value to False to avoid + * sending a notification about each new video to the channel's subscribers. + */ + notifySubscribers?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * This parameter can only be used in a properly authorized request. Note: + * This parameter is intended exclusively for YouTube content partners. The + * onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID + * of the channel to which a video is being added. This parameter is + * required when a request specifies a value for the onBehalfOfContentOwner + * parameter, and it can only be used in conjunction with that parameter. In + * addition, the request must be authorized using a CMS account that is + * linked to the content owner that the onBehalfOfContentOwner parameter + * specifies. Finally, the channel that the onBehalfOfContentOwnerChannel + * parameter value specifies must be linked to the content owner that the + * onBehalfOfContentOwner parameter specifies. This parameter is intended + * for YouTube content partners that own and manage many different YouTube + * channels. It allows content owners to authenticate once and perform + * actions on behalf of the channel specified in the parameter value, + * without having to provide authentication credentials for each separate + * channel. + */ + onBehalfOfContentOwnerChannel?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. Note that not all parts + * contain properties that can be set when inserting or updating a video. + * For example, the statistics object encapsulates statistics that YouTube + * calculates for a video and does not contain values that you can set or + * modify. If the parameter value specifies a part that does not contain + * mutable values, that part will still be included in the API response. + */ + part?: string; + /** + * The stabilize parameter indicates whether YouTube should adjust the video + * to remove shaky camera motions. + */ + stabilize?: boolean; + /** + * Request body metadata + */ + resource?: Schema$Video; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Videos$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The chart parameter identifies the chart that you want to retrieve. + */ + chart?: string; + /** + * The hl parameter instructs the API to retrieve localized resource + * metadata for a specific application language that the YouTube website + * supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. If localized resource + * details are available in that language, the resource's snippet.localized + * object will contain the localized values. However, if localized details + * are not available, the snippet.localized object will contain resource + * details in the resource's default language. + */ + hl?: string; + /** + * The id parameter specifies a comma-separated list of the YouTube video + * ID(s) for the resource(s) that are being retrieved. In a video resource, + * the id property specifies the video's ID. + */ + id?: string; + /** + * DEPRECATED + */ + locale?: string; + /** + * The maxHeight parameter specifies a maximum height of the embedded + * player. If maxWidth is provided, maxHeight may not be reached in order to + * not violate the width request. + */ + maxHeight?: number; + /** + * The maxResults parameter specifies the maximum number of items that + * should be returned in the result set. Note: This parameter is supported + * for use in conjunction with the myRating and chart parameters, but it is + * not supported for use in conjunction with the id parameter. + */ + maxResults?: number; + /** + * The maxWidth parameter specifies a maximum width of the embedded player. + * If maxHeight is provided, maxWidth may not be reached in order to not + * violate the height request. + */ + maxWidth?: number; + /** + * Set this parameter's value to like or dislike to instruct the API to only + * return videos liked or disliked by the authenticated user. + */ + myRating?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken and + * prevPageToken properties identify other pages that could be retrieved. + * Note: This parameter is supported for use in conjunction with the + * myRating and chart parameters, but it is not supported for use in + * conjunction with the id parameter. + */ + pageToken?: string; + /** + * The part parameter specifies a comma-separated list of one or more video + * resource properties that the API response will include. If the parameter + * identifies a property that contains child properties, the child + * properties will be included in the response. For example, in a video + * resource, the snippet property contains the channelId, title, + * description, tags, and categoryId properties. As such, if you set + * part=snippet, the API response will contain all of those properties. + */ + part?: string; + /** + * The regionCode parameter instructs the API to select a video chart + * available in the specified region. This parameter can only be used in + * conjunction with the chart parameter. The parameter value is an ISO + * 3166-1 alpha-2 country code. + */ + regionCode?: string; + /** + * The videoCategoryId parameter identifies the video category for which the + * chart should be retrieved. This parameter can only be used in conjunction + * with the chart parameter. By default, charts are not restricted to a + * particular category. + */ + videoCategoryId?: string; + } + export interface Params$Resource$Videos$Rate { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube video ID of the video that is + * being rated or having its rating removed. + */ + id?: string; + /** + * Specifies the rating to record. + */ + rating?: string; + } + export interface Params$Resource$Videos$Reportabuse { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$VideoAbuseReport; + } + export interface Params$Resource$Videos$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The actual CMS account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The part parameter serves two purposes in this operation. It identifies + * the properties that the write operation will set as well as the + * properties that the API response will include. Note that this method + * will override the existing values for all of the mutable properties that + * are contained in any parts that the parameter value specifies. For + * example, a video's privacy setting is contained in the status part. As + * such, if your request is updating a private video, and the request's part + * parameter value includes the status part, the video's privacy setting + * will be updated to whatever value the request body specifies. If the + * request body does not specify a value, the existing privacy setting will + * be removed and the video will revert to the default privacy setting. In + * addition, not all parts contain properties that can be set when inserting + * or updating a video. For example, the statistics object encapsulates + * statistics that YouTube calculates for a video and does not contain + * values that you can set or modify. If the parameter value specifies a + * part that does not contain mutable values, that part will still be + * included in the API response. + */ + part?: string; + /** + * Request body metadata + */ + resource?: Schema$Video; + } + + export class Resource$Watermarks { root: Youtube; constructor(root: Youtube) { @@ -9483,20 +13147,32 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - set(params?: any, options?: MethodOptions): AxiosPromise; - set(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - set(params?: any, options?: MethodOptions|BodyResponseCallback, + set(params?: Params$Resource$Watermarks$Set, + options?: MethodOptions): AxiosPromise; + set(params: Params$Resource$Watermarks$Set, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + set(params: Params$Resource$Watermarks$Set, + callback: BodyResponseCallback): void; + set(callback: BodyResponseCallback): void; + set(paramsOrCallback?: Params$Resource$Watermarks$Set| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Watermarks$Set; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Watermarks$Set; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9534,22 +13210,35 @@ export namespace youtube_v3 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - unset(params?: any, options?: MethodOptions): AxiosPromise; + unset(params?: Params$Resource$Watermarks$Unset, options?: MethodOptions): + AxiosPromise; + unset( + params: Params$Resource$Watermarks$Unset, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; unset( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Watermarks$Unset, + callback: BodyResponseCallback): void; + unset(callback: BodyResponseCallback): void; unset( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Watermarks$Unset| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Watermarks$Unset; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Watermarks$Unset; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -9571,4 +13260,73 @@ export namespace youtube_v3 { } } } + + export interface Params$Resource$Watermarks$Set { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter specifies the YouTube channel ID for which the + * watermark is being provided. + */ + channelId?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$InvideoBranding; + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + } + export interface Params$Resource$Watermarks$Unset { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The channelId parameter specifies the YouTube channel ID for which the + * watermark is being unset. + */ + channelId?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } } diff --git a/src/apis/youtubeAnalytics/v1.ts b/src/apis/youtubeAnalytics/v1.ts index 648ce8aea64..b789391f72c 100644 --- a/src/apis/youtubeAnalytics/v1.ts +++ b/src/apis/youtubeAnalytics/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace youtubeAnalytics_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * YouTube Analytics API * @@ -70,37 +73,37 @@ export namespace youtubeAnalytics_v1 { } export interface Schema$Group { - contentDetails: any; - etag: string; - id: string; - kind: string; - snippet: any; + contentDetails?: any; + etag?: string; + id?: string; + kind?: string; + snippet?: any; } export interface Schema$GroupItem { - etag: string; - groupId: string; - id: string; - kind: string; - resource: any; + etag?: string; + groupId?: string; + id?: string; + kind?: string; + resource?: any; } /** * A paginated list of grouList resources returned in response to a * youtubeAnalytics.groupApi.list request. */ export interface Schema$GroupItemListResponse { - etag: string; - items: Schema$GroupItem[]; - kind: string; + etag?: string; + items?: Schema$GroupItem[]; + kind?: string; } /** * A paginated list of grouList resources returned in response to a * youtubeAnalytics.groupApi.list request. */ export interface Schema$GroupListResponse { - etag: string; - items: Schema$Group[]; - kind: string; - nextPageToken: string; + etag?: string; + items?: Schema$Group[]; + kind?: string; + nextPageToken?: string; } /** * Contains a single result table. The table is returned as an array of rows @@ -121,13 +124,13 @@ export namespace youtubeAnalytics_v1 { * API response will return columns in this order: * ageGroup,gender,viewerPercentage. */ - columnHeaders: any[]; + columnHeaders?: any[]; /** * This value specifies the type of data included in the API response. For * the query method, the kind property value will be * youtubeAnalytics#resultTable. */ - kind: string; + kind?: string; /** * The list contains all rows of the result table. Each item in the list is * an array that contains comma-delimited data corresponding to a single row @@ -137,9 +140,10 @@ export namespace youtubeAnalytics_v1 { * response. The response for a query with the day dimension will not * contain rows for the most recent days. */ - rows: any[][]; + rows?: any[][]; } + export class Resource$Groupitems { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -165,22 +169,36 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Groupitems$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Groupitems$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groupitems$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groupitems$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groupitems$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -216,26 +234,38 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Groupitems$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groupitems$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groupitems$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groupitems$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groupitems$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -272,28 +302,38 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Groupitems$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Groupitems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Groupitems$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Groupitems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groupitems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -316,6 +356,82 @@ export namespace youtubeAnalytics_v1 { } } + export interface Params$Resource$Groupitems$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube group item ID for the group that + * is being deleted. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Groupitems$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$GroupItem; + } + export interface Params$Resource$Groupitems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the unique ID of the group for which you want + * to retrieve group items. + */ + groupId?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + + export class Resource$Groups { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -341,22 +457,35 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Groups$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Groups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -392,25 +521,36 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Groups$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -451,26 +591,37 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Groups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Groups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -506,25 +657,36 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Groups$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -547,6 +709,118 @@ export namespace youtubeAnalytics_v1 { } } + export interface Params$Resource$Groups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube group ID for the group that is + * being deleted. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Groups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export interface Params$Resource$Groups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of the YouTube group + * ID(s) for the resource(s) that are being retrieved. In a group resource, + * the id property specifies the group's YouTube group ID. + */ + id?: string; + /** + * Set this parameter's value to true to instruct the API to only return + * groups owned by the authenticated user. + */ + mine?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken property + * identifies the next page that can be retrieved. + */ + pageToken?: string; + } + export interface Params$Resource$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + + export class Resource$Reports { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -581,26 +855,37 @@ export namespace youtubeAnalytics_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query(params?: Params$Resource$Reports$Query, options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Reports$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -622,4 +907,85 @@ export namespace youtubeAnalytics_v1 { } } } + + export interface Params$Resource$Reports$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The currency to which financial metrics should be converted. The default + * is US Dollar (USD). If the result contains no financial metrics, this + * flag will be ignored. Responds with an error if the specified currency is + * not recognized. + */ + currency?: string; + /** + * A comma-separated list of YouTube Analytics dimensions, such as views or + * ageGroup,gender. See the Available Reports document for a list of the + * reports that you can retrieve and the dimensions used for those reports. + * Also see the Dimensions document for definitions of those dimensions. + */ + dimensions?: string; + /** + * The end date for fetching YouTube Analytics data. The value should be in + * YYYY-MM-DD format. + */ + 'end-date'?: string; + /** + * A list of filters that should be applied when retrieving YouTube + * Analytics data. The Available Reports document identifies the dimensions + * that can be used to filter each report, and the Dimensions document + * defines those dimensions. If a request uses multiple filters, join them + * together with a semicolon (;), and the returned result table will satisfy + * both filters. For example, a filters parameter value of + * video==dMH0bHeiRNg;country==IT restricts the result set to include data + * for the given video in Italy. + */ + filters?: string; + /** + * Identifies the YouTube channel or content owner for which you are + * retrieving YouTube Analytics data. - To request data for a YouTube user, + * set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID + * specifies the unique YouTube channel ID. - To request data for a YouTube + * CMS content owner, set the ids parameter value to + * contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content + * owner. + */ + ids?: string; + /** + * If set to true historical data (i.e. channel data from before the linking + * of the channel to the content owner) will be retrieved. + */ + 'include-historical-channel-data'?: boolean; + /** + * The maximum number of rows to include in the response. + */ + 'max-results'?: number; + /** + * A comma-separated list of YouTube Analytics metrics, such as views or + * likes,dislikes. See the Available Reports document for a list of the + * reports that you can retrieve and the metrics available in each report, + * and see the Metrics document for definitions of those metrics. + */ + metrics?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for YouTube Analytics data. By default the sort order is ascending. + * The '-' prefix causes descending sort order. + */ + sort?: string; + /** + * The start date for fetching YouTube Analytics data. The value should be + * in YYYY-MM-DD format. + */ + 'start-date'?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter (one-based, + * inclusive). + */ + 'start-index'?: number; + } } diff --git a/src/apis/youtubeAnalytics/v1beta1.ts b/src/apis/youtubeAnalytics/v1beta1.ts index f8b64033a74..3933537582c 100644 --- a/src/apis/youtubeAnalytics/v1beta1.ts +++ b/src/apis/youtubeAnalytics/v1beta1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace youtubeAnalytics_v1beta1 { + export interface Options extends GlobalOptions { version: 'v1beta1'; } + /** * YouTube Analytics API * @@ -70,37 +73,37 @@ export namespace youtubeAnalytics_v1beta1 { } export interface Schema$Group { - contentDetails: any; - etag: string; - id: string; - kind: string; - snippet: any; + contentDetails?: any; + etag?: string; + id?: string; + kind?: string; + snippet?: any; } export interface Schema$GroupItem { - etag: string; - groupId: string; - id: string; - kind: string; - resource: any; + etag?: string; + groupId?: string; + id?: string; + kind?: string; + resource?: any; } /** * A paginated list of grouList resources returned in response to a * youtubeAnalytics.groupApi.list request. */ export interface Schema$GroupItemListResponse { - etag: string; - items: Schema$GroupItem[]; - kind: string; + etag?: string; + items?: Schema$GroupItem[]; + kind?: string; } /** * A paginated list of grouList resources returned in response to a * youtubeAnalytics.groupApi.list request. */ export interface Schema$GroupListResponse { - etag: string; - items: Schema$Group[]; - kind: string; - nextPageToken: string; + etag?: string; + items?: Schema$Group[]; + kind?: string; + nextPageToken?: string; } /** * Contains a single result table. The table is returned as an array of rows @@ -121,13 +124,13 @@ export namespace youtubeAnalytics_v1beta1 { * API response will return columns in this order: * ageGroup,gender,viewerPercentage. */ - columnHeaders: any[]; + columnHeaders?: any[]; /** * This value specifies the type of data included in the API response. For * the query method, the kind property value will be * youtubeAnalytics#resultTable. */ - kind: string; + kind?: string; /** * The list contains all rows of the result table. Each item in the list is * an array that contains comma-delimited data corresponding to a single row @@ -137,9 +140,10 @@ export namespace youtubeAnalytics_v1beta1 { * response. The response for a query with the day dimension will not * contain rows for the most recent days. */ - rows: any[][]; + rows?: any[][]; } + export class Resource$Groupitems { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -165,22 +169,36 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Groupitems$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Groupitems$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groupitems$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groupitems$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groupitems$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -216,26 +234,38 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Groupitems$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groupitems$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groupitems$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groupitems$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groupitems$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -272,28 +302,38 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Groupitems$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Groupitems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Groupitems$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Groupitems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groupitems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -316,6 +356,82 @@ export namespace youtubeAnalytics_v1beta1 { } } + export interface Params$Resource$Groupitems$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube group item ID for the group that + * is being deleted. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Groupitems$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$GroupItem; + } + export interface Params$Resource$Groupitems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the unique ID of the group for which you want + * to retrieve group items. + */ + groupId?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + + export class Resource$Groups { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -341,22 +457,35 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Groups$Delete, options?: MethodOptions): + AxiosPromise; + delete( + params: Params$Resource$Groups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -392,25 +521,36 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Groups$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -451,26 +591,37 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Groups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Groups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -506,25 +657,36 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Groups$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -547,6 +709,118 @@ export namespace youtubeAnalytics_v1beta1 { } } + export interface Params$Resource$Groups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies the YouTube group ID for the group that is + * being deleted. + */ + id?: string; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Groups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export interface Params$Resource$Groups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The id parameter specifies a comma-separated list of the YouTube group + * ID(s) for the resource(s) that are being retrieved. In a group resource, + * the id property specifies the group's YouTube group ID. + */ + id?: string; + /** + * Set this parameter's value to true to instruct the API to only return + * groups owned by the authenticated user. + */ + mine?: boolean; + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The pageToken parameter identifies a specific page in the result set that + * should be returned. In an API response, the nextPageToken property + * identifies the next page that can be retrieved. + */ + pageToken?: string; + } + export interface Params$Resource$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Note: This parameter is intended exclusively for YouTube content + * partners. The onBehalfOfContentOwner parameter indicates that the + * request's authorization credentials identify a YouTube CMS user who is + * acting on behalf of the content owner specified in the parameter value. + * This parameter is intended for YouTube content partners that own and + * manage many different YouTube channels. It allows content owners to + * authenticate once and get access to all their video and channel data, + * without having to provide authentication credentials for each individual + * channel. The CMS account that the user authenticates with must be linked + * to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + + export class Resource$Reports { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -581,26 +855,37 @@ export namespace youtubeAnalytics_v1beta1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query(params?: Params$Resource$Reports$Query, options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Reports$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; const parameters = { options: Object.assign( @@ -622,4 +907,85 @@ export namespace youtubeAnalytics_v1beta1 { } } } + + export interface Params$Resource$Reports$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The currency to which financial metrics should be converted. The default + * is US Dollar (USD). If the result contains no financial metrics, this + * flag will be ignored. Responds with an error if the specified currency is + * not recognized. + */ + currency?: string; + /** + * A comma-separated list of YouTube Analytics dimensions, such as views or + * ageGroup,gender. See the Available Reports document for a list of the + * reports that you can retrieve and the dimensions used for those reports. + * Also see the Dimensions document for definitions of those dimensions. + */ + dimensions?: string; + /** + * The end date for fetching YouTube Analytics data. The value should be in + * YYYY-MM-DD format. + */ + 'end-date'?: string; + /** + * A list of filters that should be applied when retrieving YouTube + * Analytics data. The Available Reports document identifies the dimensions + * that can be used to filter each report, and the Dimensions document + * defines those dimensions. If a request uses multiple filters, join them + * together with a semicolon (;), and the returned result table will satisfy + * both filters. For example, a filters parameter value of + * video==dMH0bHeiRNg;country==IT restricts the result set to include data + * for the given video in Italy. + */ + filters?: string; + /** + * Identifies the YouTube channel or content owner for which you are + * retrieving YouTube Analytics data. - To request data for a YouTube user, + * set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID + * specifies the unique YouTube channel ID. - To request data for a YouTube + * CMS content owner, set the ids parameter value to + * contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content + * owner. + */ + ids?: string; + /** + * If set to true historical data (i.e. channel data from before the linking + * of the channel to the content owner) will be retrieved. + */ + 'include-historical-channel-data'?: boolean; + /** + * The maximum number of rows to include in the response. + */ + 'max-results'?: number; + /** + * A comma-separated list of YouTube Analytics metrics, such as views or + * likes,dislikes. See the Available Reports document for a list of the + * reports that you can retrieve and the metrics available in each report, + * and see the Metrics document for definitions of those metrics. + */ + metrics?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for YouTube Analytics data. By default the sort order is ascending. + * The '-' prefix causes descending sort order. + */ + sort?: string; + /** + * The start date for fetching YouTube Analytics data. The value should be + * in YYYY-MM-DD format. + */ + 'start-date'?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter (one-based, + * inclusive). + */ + 'start-index'?: number; + } } diff --git a/src/apis/youtubeAnalytics/v2.ts b/src/apis/youtubeAnalytics/v2.ts index 67becf41984..17197f1483a 100644 --- a/src/apis/youtubeAnalytics/v2.ts +++ b/src/apis/youtubeAnalytics/v2.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace youtubeAnalytics_v2 { + export interface Options extends GlobalOptions { version: 'v2'; } + /** * YouTube Analytics API * @@ -76,7 +79,7 @@ export namespace youtubeAnalytics_v2 { /** * Apiary error details */ - errors: Schema$Errors; + errors?: Schema$Errors; } /** * Describes one specific error. @@ -87,23 +90,23 @@ export namespace youtubeAnalytics_v2 { * given the error domain and code. Different error codes require different * arguments. */ - argument: string[]; + argument?: string[]; /** * Error code in the error domain. This should correspond to a value of the * enum type whose name is in domain. See the core error domain in * error_domain.proto. */ - code: string; + code?: string; /** * Debugging information, which should not be shared externally. */ - debugInfo: string; + debugInfo?: string; /** * Error domain. RoSy services can define their own domain and error codes. * This should normally be the name of an enum type, such as: * gdata.CoreErrorDomain */ - domain: string; + domain?: string; /** * A short explanation for the error, which can be shared outside Google. * Please set domain, code and arguments whenever possible instead of this @@ -113,7 +116,7 @@ export namespace youtubeAnalytics_v2 { * should not be exposed. It is safer if external APIs can understand the * errors and decide what the error message should look like. */ - externalErrorMessage: string; + externalErrorMessage?: string; /** * Location of the error, as specified by the location type. If * location_type is PATH, this should be a path to a field that's @@ -121,8 +124,8 @@ export namespace youtubeAnalytics_v2 { * (net/proto2/util/public/field_path.h). Examples: * authenticated_user.gaia_id resource.address[2].country */ - location: string; - locationType: string; + location?: string; + locationType?: string; } /** * Request Error information. The presence of an error field signals that the @@ -133,16 +136,16 @@ export namespace youtubeAnalytics_v2 { * Global error code. Deprecated and ignored. Set custom error codes in * ErrorProto.domain and ErrorProto.code instead. */ - code: string; + code?: string; /** * Specific error description and codes */ - error: Schema$ErrorProto[]; + error?: Schema$ErrorProto[]; /** * Request identifier generated by the service, which can be used to * identify the error in the logs */ - requestId: string; + requestId?: string; } /** * A group. @@ -152,29 +155,29 @@ export namespace youtubeAnalytics_v2 { * The `contentDetails` object contains additional information about the * group, such as the number and type of items that it contains. */ - contentDetails: Schema$GroupContentDetails; + contentDetails?: Schema$GroupContentDetails; /** * Apiary error details */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the group. */ - id: string; + id?: string; /** * Identifies the API resource's type. The value will be * `youtube#group`. */ - kind: string; + kind?: string; /** * The `snippet` object contains basic information about the group, * including its creation date and name. */ - snippet: Schema$GroupSnippet; + snippet?: Schema$GroupSnippet; } /** * A group's content details. @@ -183,13 +186,13 @@ export namespace youtubeAnalytics_v2 { /** * The number of items in the group. */ - itemCount: string; + itemCount?: string; /** * The type of resources that the group contains. Valid values for this * property are: * `youtube#channel` * `youtube#playlist` * * `youtube#video` * `youtubePartner#asset` */ - itemType: string; + itemType?: string; } /** * A group item. @@ -198,16 +201,16 @@ export namespace youtubeAnalytics_v2 { /** * Apiary error details */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The Etag of this resource. */ - etag: string; + etag?: string; /** * The ID that YouTube uses to uniquely identify the group that contains the * item. */ - groupId: string; + groupId?: string; /** * The ID that YouTube uses to uniquely identify the `channel`, `video`, * `playlist`, or `asset` resource that is included in the group. Note that @@ -217,30 +220,30 @@ export namespace youtubeAnalytics_v2 { * `resource.id` property's value specifies the unique channel, video, * playlist, or asset ID. */ - id: string; + id?: string; /** * Identifies the API resource's type. The value will be * `youtube#groupItem`. */ - kind: string; + kind?: string; /** * The `resource` object contains information that identifies the item being * added to the group. */ - resource: Schema$GroupItemResource; + resource?: Schema$GroupItemResource; } export interface Schema$GroupItemResource { /** * The channel, video, playlist, or asset ID that YouTube uses to uniquely * identify the item that is being added to the group. */ - id: string; + id?: string; /** * Identifies the type of resource being added to the group. Valid values * for this property are: * `youtube#channel` * `youtube#playlist` * * `youtube#video` * `youtubePartner#asset` */ - kind: string; + kind?: string; } /** * A group snippet. @@ -250,11 +253,11 @@ export namespace youtubeAnalytics_v2 { * The date and time that the group was created. The value is specified in * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. */ - publishedAt: string; + publishedAt?: string; /** * The group name. The value must be a non-empty string. */ - title: string; + title?: string; } /** * Response message for GroupsService.ListGroupItems. @@ -263,21 +266,21 @@ export namespace youtubeAnalytics_v2 { /** * Apiary error details */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The Etag of this resource. */ - etag: string; + etag?: string; /** * A list of groups that match the API request parameters. Each item in the * list represents a `groupItem` resource. */ - items: Schema$GroupItem[]; + items?: Schema$GroupItem[]; /** * Identifies the API resource's type. The value will be * `youtube#groupItemListResponse`. */ - kind: string; + kind?: string; } /** * Response message for GroupsService.ListGroups. @@ -286,26 +289,26 @@ export namespace youtubeAnalytics_v2 { /** * Apiary error details */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * The Etag of this resource. */ - etag: string; + etag?: string; /** * A list of groups that match the API request parameters. Each item in the * list represents a `group` resource. */ - items: Schema$Group[]; + items?: Schema$Group[]; /** * Identifies the API resource's type. The value will be * `youtube#groupListResponse`. */ - kind: string; + kind?: string; /** * The token that can be used as the value of the `pageToken` parameter to * retrieve the next page in the result set. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for TargetedQueriesService.Query. @@ -323,17 +326,17 @@ export namespace youtubeAnalytics_v2 { * API response will return columns in this order: `ageGroup`, `gender`, * `viewerPercentage`. */ - columnHeaders: Schema$ResultTableColumnHeader[]; + columnHeaders?: Schema$ResultTableColumnHeader[]; /** * When set, indicates that the operation failed. */ - errors: Schema$Errors; + errors?: Schema$Errors; /** * This value specifies the type of data included in the API response. For * the query method, the kind property value will be * `youtubeAnalytics#resultTable`. */ - kind: string; + kind?: string; /** * The list contains all rows of the result table. Each item in the list is * an array that contains comma-delimited data corresponding to a single row @@ -343,7 +346,7 @@ export namespace youtubeAnalytics_v2 { * the response. The response for a query with the `day` dimension will not * contain rows for the most recent days. */ - rows: any[][]; + rows?: any[][]; } /** * The description of a column of the result table. @@ -352,17 +355,18 @@ export namespace youtubeAnalytics_v2 { /** * The type of the column (`DIMENSION` or `METRIC`). */ - columnType: string; + columnType?: string; /** * The type of the data in the column (`STRING`, `INTEGER`, `FLOAT`, etc.). */ - dataType: string; + dataType?: string; /** * The name of the dimension or metric. */ - name: string; + name?: string; } + export class Resource$Groupitems { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -388,26 +392,38 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Groupitems$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groupitems$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Groupitems$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groupitems$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groupitems$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -443,26 +459,38 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): + insert(params?: Params$Resource$Groupitems$Insert, options?: MethodOptions): AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groupitems$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groupitems$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groupitems$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Groupitems$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -499,28 +527,38 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Groupitems$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Groupitems$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Groupitems$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Groupitems$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groupitems$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groupitems$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -543,6 +581,82 @@ export namespace youtubeAnalytics_v2 { } } + export interface Params$Resource$Groupitems$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` parameter specifies the YouTube group item ID of the group item + * that is being deleted. + */ + id?: string; + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Groupitems$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$GroupItem; + } + export interface Params$Resource$Groupitems$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `groupId` parameter specifies the unique ID of the group for which + * you want to retrieve group items. + */ + groupId?: string; + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + + export class Resource$Groups { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -568,26 +682,37 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): + delete(params?: Params$Resource$Groups$Delete, options?: MethodOptions): AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + delete( + params: Params$Resource$Groups$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -623,25 +748,36 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert(params?: any, options?: MethodOptions): AxiosPromise; + insert(params?: Params$Resource$Groups$Insert, options?: MethodOptions): + AxiosPromise; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Insert, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; insert( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Insert, + callback: BodyResponseCallback): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: Params$Resource$Groups$Insert| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Insert; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -682,26 +818,37 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Groups$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Groups$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Groups$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -737,25 +884,36 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update(params?: any, options?: MethodOptions): AxiosPromise; + update(params?: Params$Resource$Groups$Update, options?: MethodOptions): + AxiosPromise; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Groups$Update, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; update( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Groups$Update, + callback: BodyResponseCallback): void; + update(callback: BodyResponseCallback): void; + update( + paramsOrCallback?: Params$Resource$Groups$Update| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Groups$Update; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Groups$Update; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -778,6 +936,122 @@ export namespace youtubeAnalytics_v2 { } } + export interface Params$Resource$Groups$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` parameter specifies the YouTube group ID of the group that is + * being deleted. + */ + id?: string; + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Groups$Insert { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + export interface Params$Resource$Groups$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The `id` parameter specifies a comma-separated list of the YouTube group + * ID(s) for the resource(s) that are being retrieved. Each group must be + * owned by the authenticated user. In a `group` resource, the `id` property + * specifies the group's YouTube group ID. Note that if you do not specify + * a value for the `id` parameter, then you must set the `mine` parameter to + * `true`. + */ + id?: string; + /** + * This parameter can only be used in a properly authorized request. Set + * this parameter's value to true to retrieve all groups owned by the + * authenticated user. + */ + mine?: boolean; + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * The `pageToken` parameter identifies a specific page in the result set + * that should be returned. In an API response, the `nextPageToken` property + * identifies the next page that can be retrieved. + */ + pageToken?: string; + } + export interface Params$Resource$Groups$Update { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * This parameter can only be used in a properly authorized request. + * **Note:** This parameter is intended exclusively for YouTube content + * partners that own and manage many different YouTube channels. The + * `onBehalfOfContentOwner` parameter indicates that the request's + * authorization credentials identify a YouTube user who is acting on behalf + * of the content owner specified in the parameter value. It allows content + * owners to authenticate once and get access to all their video and channel + * data, without having to provide authentication credentials for each + * individual channel. The account that the user authenticates with must be + * linked to the specified YouTube content owner. + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Group; + } + + export class Resource$Reports { root: Youtubeanalytics; constructor(root: Youtubeanalytics) { @@ -812,26 +1086,37 @@ export namespace youtubeAnalytics_v2 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - query(params?: any, options?: MethodOptions): + query(params?: Params$Resource$Reports$Query, options?: MethodOptions): AxiosPromise; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Reports$Query, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + query( + params: Params$Resource$Reports$Query, + callback: BodyResponseCallback): void; + query(callback: BodyResponseCallback): void; query( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Reports$Query| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reports$Query; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reports$Query; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; const parameters = { @@ -853,4 +1138,93 @@ export namespace youtubeAnalytics_v2 { } } } + + export interface Params$Resource$Reports$Query { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The currency to which financial metrics should be converted. The default + * is US Dollar (USD). If the result contains no financial metrics, this + * flag will be ignored. Responds with an error if the specified currency is + * not recognized.", pattern: [A-Z]{3} + */ + currency?: string; + /** + * A comma-separated list of YouTube Analytics dimensions, such as `views` + * or `ageGroup,gender`. See the [Available + * Reports](/youtube/analytics/v2/available_reports) document for a list of + * the reports that you can retrieve and the dimensions used for those + * reports. Also see the [Dimensions](/youtube/analytics/v2/dimsmets/dims) + * document for definitions of those dimensions." pattern: [0-9a-zA-Z,]+ + */ + dimensions?: string; + /** + * The end date for fetching YouTube Analytics data. The value should be in + * `YYYY-MM-DD` format. required: true, pattern: [0-9]{4}-[0-9]{2}-[0-9]{2} + */ + endDate?: string; + /** + * A list of filters that should be applied when retrieving YouTube + * Analytics data. The [Available + * Reports](/youtube/analytics/v2/available_reports) document identifies the + * dimensions that can be used to filter each report, and the + * [Dimensions](/youtube/analytics/v2/dimsmets/dims) document defines those + * dimensions. If a request uses multiple filters, join them together with a + * semicolon (`;`), and the returned result table will satisfy both filters. + * For example, a filters parameter value of + * `video==dMH0bHeiRNg;country==IT` restricts the result set to include data + * for the given video in Italy.", + */ + filters?: string; + /** + * Identifies the YouTube channel or content owner for which you are + * retrieving YouTube Analytics data. - To request data for a YouTube user, + * set the `ids` parameter value to `channel==CHANNEL_ID`, where + * `CHANNEL_ID` specifies the unique YouTube channel ID. - To request data + * for a YouTube CMS content owner, set the `ids` parameter value to + * `contentOwner==OWNER_NAME`, where `OWNER_NAME` is the CMS name of the + * content owner. required: true, pattern: [a-zA-Z]+==[a-zA-Z0-9_+-]+ + */ + ids?: string; + /** + * If set to true historical data (i.e. channel data from before the linking + * of the channel to the content owner) will be retrieved.", + */ + includeHistoricalChannelData?: boolean; + /** + * The maximum number of rows to include in the response.", minValue: 1 + */ + maxResults?: number; + /** + * A comma-separated list of YouTube Analytics metrics, such as `views` or + * `likes,dislikes`. See the [Available + * Reports](/youtube/analytics/v2/available_reports) document for a list of + * the reports that you can retrieve and the metrics available in each + * report, and see the [Metrics](/youtube/analytics/v2/dimsmets/mets) + * document for definitions of those metrics. required: true, pattern: + * [0-9a-zA-Z,]+ + */ + metrics?: string; + /** + * A comma-separated list of dimensions or metrics that determine the sort + * order for YouTube Analytics data. By default the sort order is ascending. + * The '`-`' prefix causes descending sort order.", pattern: [-0-9a-zA-Z,]+ + */ + sort?: string; + /** + * The start date for fetching YouTube Analytics data. The value should be + * in `YYYY-MM-DD` format. required: true, pattern: + * "[0-9]{4}-[0-9]{2}-[0-9]{2} + */ + startDate?: string; + /** + * An index of the first entity to retrieve. Use this parameter as a + * pagination mechanism along with the max-results parameter (one-based, + * inclusive).", minValue: 1 + */ + startIndex?: number; + } } diff --git a/src/apis/youtubereporting/v1.ts b/src/apis/youtubereporting/v1.ts index 4e54f60b99f..db6c9783d2b 100644 --- a/src/apis/youtubereporting/v1.ts +++ b/src/apis/youtubereporting/v1.ts @@ -15,6 +15,7 @@ */ import {AxiosPromise} from 'axios'; +import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library'; import {GoogleApis} from '../..'; import {BodyResponseCallback, GlobalOptions, MethodOptions} from '../../lib/api'; @@ -30,6 +31,8 @@ import {createAPIRequest} from '../../lib/apirequest'; // tslint:disable: no-namespace export namespace youtubereporting_v1 { + export interface Options extends GlobalOptions { version: 'v1'; } + /** * YouTube Reporting API * @@ -85,23 +88,23 @@ export namespace youtubereporting_v1 { /** * gdata */ - blobGeneration: string; + blobGeneration?: string; /** * gdata */ - blobId: string; + blobId?: string; /** * gdata */ - downloadReadHandle: string; + downloadReadHandle?: string; /** * gdata */ - readToken: string; + readToken?: string; /** * gdata */ - uploadMetadataContainer: string; + uploadMetadataContainer?: string; } /** * gdata @@ -110,47 +113,47 @@ export namespace youtubereporting_v1 { /** * gdata */ - blobRef: string; + blobRef?: string; /** * gdata */ - blobstore2Info: Schema$GdataBlobstore2Info; + blobstore2Info?: Schema$GdataBlobstore2Info; /** * gdata */ - cosmoBinaryReference: string; + cosmoBinaryReference?: string; /** * gdata */ - crc32cHash: number; + crc32cHash?: number; /** * gdata */ - inline: string; + inline?: string; /** * gdata */ - length: string; + length?: string; /** * gdata */ - md5Hash: string; + md5Hash?: string; /** * gdata */ - objectId: Schema$GdataObjectId; + objectId?: Schema$GdataObjectId; /** * gdata */ - path: string; + path?: string; /** * gdata */ - referenceType: string; + referenceType?: string; /** * gdata */ - sha1Hash: string; + sha1Hash?: string; } /** * gdata @@ -159,23 +162,23 @@ export namespace youtubereporting_v1 { /** * gdata */ - bestGuess: string; + bestGuess?: string; /** * gdata */ - fromBytes: string; + fromBytes?: string; /** * gdata */ - fromFileName: string; + fromFileName?: string; /** * gdata */ - fromHeader: string; + fromHeader?: string; /** * gdata */ - fromUrlPath: string; + fromUrlPath?: string; } /** * gdata @@ -184,23 +187,23 @@ export namespace youtubereporting_v1 { /** * gdata */ - checksumsLocation: Schema$GdataCompositeMedia; + checksumsLocation?: Schema$GdataCompositeMedia; /** * gdata */ - chunkSizeBytes: string; + chunkSizeBytes?: string; /** * gdata */ - objectLocation: Schema$GdataCompositeMedia; + objectLocation?: Schema$GdataCompositeMedia; /** * gdata */ - objectSizeBytes: string; + objectSizeBytes?: string; /** * gdata */ - objectVersion: string; + objectVersion?: string; } /** * gdata @@ -209,7 +212,7 @@ export namespace youtubereporting_v1 { /** * gdata */ - objectLocation: Schema$GdataCompositeMedia; + objectLocation?: Schema$GdataCompositeMedia; } /** * gdata @@ -218,15 +221,15 @@ export namespace youtubereporting_v1 { /** * gdata */ - checksumsInfo: Schema$GdataCompositeMedia; + checksumsInfo?: Schema$GdataCompositeMedia; /** * gdata */ - objectInfo: Schema$GdataCompositeMedia; + objectInfo?: Schema$GdataCompositeMedia; /** * gdata */ - objectVersion: string; + objectVersion?: string; } /** * gdata @@ -235,11 +238,11 @@ export namespace youtubereporting_v1 { /** * gdata */ - objectVersion: string; + objectVersion?: string; /** * gdata */ - originalObject: Schema$GdataCompositeMedia; + originalObject?: Schema$GdataCompositeMedia; } /** * gdata @@ -248,11 +251,11 @@ export namespace youtubereporting_v1 { /** * gdata */ - objectSizeBytes: string; + objectSizeBytes?: string; /** * gdata */ - objectVersion: string; + objectVersion?: string; } /** * gdata @@ -261,11 +264,11 @@ export namespace youtubereporting_v1 { /** * gdata */ - allowGzipCompression: boolean; + allowGzipCompression?: boolean; /** * gdata */ - ignoreRange: boolean; + ignoreRange?: boolean; } /** * gdata @@ -274,123 +277,123 @@ export namespace youtubereporting_v1 { /** * gdata */ - algorithm: string; + algorithm?: string; /** * gdata */ - bigstoreObjectRef: string; + bigstoreObjectRef?: string; /** * gdata */ - blobRef: string; + blobRef?: string; /** * gdata */ - blobstore2Info: Schema$GdataBlobstore2Info; + blobstore2Info?: Schema$GdataBlobstore2Info; /** * gdata */ - compositeMedia: Schema$GdataCompositeMedia[]; + compositeMedia?: Schema$GdataCompositeMedia[]; /** * gdata */ - contentType: string; + contentType?: string; /** * gdata */ - contentTypeInfo: Schema$GdataContentTypeInfo; + contentTypeInfo?: Schema$GdataContentTypeInfo; /** * gdata */ - cosmoBinaryReference: string; + cosmoBinaryReference?: string; /** * gdata */ - crc32cHash: number; + crc32cHash?: number; /** * gdata */ - diffChecksumsResponse: Schema$GdataDiffChecksumsResponse; + diffChecksumsResponse?: Schema$GdataDiffChecksumsResponse; /** * gdata */ - diffDownloadResponse: Schema$GdataDiffDownloadResponse; + diffDownloadResponse?: Schema$GdataDiffDownloadResponse; /** * gdata */ - diffUploadRequest: Schema$GdataDiffUploadRequest; + diffUploadRequest?: Schema$GdataDiffUploadRequest; /** * gdata */ - diffUploadResponse: Schema$GdataDiffUploadResponse; + diffUploadResponse?: Schema$GdataDiffUploadResponse; /** * gdata */ - diffVersionResponse: Schema$GdataDiffVersionResponse; + diffVersionResponse?: Schema$GdataDiffVersionResponse; /** * gdata */ - downloadParameters: Schema$GdataDownloadParameters; + downloadParameters?: Schema$GdataDownloadParameters; /** * gdata */ - filename: string; + filename?: string; /** * gdata */ - hash: string; + hash?: string; /** * gdata */ - hashVerified: boolean; + hashVerified?: boolean; /** * gdata */ - inline: string; + inline?: string; /** * gdata */ - isPotentialRetry: boolean; + isPotentialRetry?: boolean; /** * gdata */ - length: string; + length?: string; /** * gdata */ - md5Hash: string; + md5Hash?: string; /** * gdata */ - mediaId: string; + mediaId?: string; /** * gdata */ - objectId: Schema$GdataObjectId; + objectId?: Schema$GdataObjectId; /** * gdata */ - path: string; + path?: string; /** * gdata */ - referenceType: string; + referenceType?: string; /** * gdata */ - sha1Hash: string; + sha1Hash?: string; /** * gdata */ - sha256Hash: string; + sha256Hash?: string; /** * gdata */ - timestamp: string; + timestamp?: string; /** * gdata */ - token: string; + token?: string; } /** * gdata @@ -399,15 +402,15 @@ export namespace youtubereporting_v1 { /** * gdata */ - bucketName: string; + bucketName?: string; /** * gdata */ - generation: string; + generation?: string; /** * gdata */ - objectName: string; + objectName?: string; } /** * A job creating reports of a specific type. @@ -416,30 +419,30 @@ export namespace youtubereporting_v1 { /** * The creation date/time of the job. */ - createTime: string; + createTime?: string; /** * The date/time when this job will expire/expired. After a job expired, no * new reports are generated. */ - expireTime: string; + expireTime?: string; /** * The server-generated ID of the job (max. 40 characters). */ - id: string; + id?: string; /** * The name of the job (max. 100 characters). */ - name: string; + name?: string; /** * The type of reports this job creates. Corresponds to the ID of a * ReportType. */ - reportTypeId: string; + reportTypeId?: string; /** * True if this a system-managed job that cannot be modified by the user; * otherwise false. */ - systemManaged: boolean; + systemManaged?: boolean; } /** * Response message for ReportingService.ListJobs. @@ -448,13 +451,13 @@ export namespace youtubereporting_v1 { /** * The list of jobs. */ - jobs: Schema$Job[]; + jobs?: Schema$Job[]; /** * A token to retrieve next page of results. Pass this value in the * ListJobsRequest.page_token field in the subsequent call to `ListJobs` * method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; } /** * Response message for ReportingService.ListReports. @@ -465,11 +468,11 @@ export namespace youtubereporting_v1 { * ListReportsRequest.page_token field in the subsequent call to * `ListReports` method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of report types. */ - reports: Schema$Report[]; + reports?: Schema$Report[]; } /** * Response message for ReportingService.ListReportTypes. @@ -480,11 +483,11 @@ export namespace youtubereporting_v1 { * ListReportTypesRequest.page_token field in the subsequent call to * `ListReportTypes` method to retrieve the next page of results. */ - nextPageToken: string; + nextPageToken?: string; /** * The list of report types. */ - reportTypes: Schema$ReportType[]; + reportTypes?: Schema$ReportType[]; } /** * A report's metadata including the URL from which the report itself can @@ -494,33 +497,33 @@ export namespace youtubereporting_v1 { /** * The date/time when this report was created. */ - createTime: string; + createTime?: string; /** * The URL from which the report can be downloaded (max. 1000 characters). */ - downloadUrl: string; + downloadUrl?: string; /** * The end of the time period that the report instance covers. The value is * exclusive. */ - endTime: string; + endTime?: string; /** * The server-generated ID of the report. */ - id: string; + id?: string; /** * The date/time when the job this report belongs to will expire/expired. */ - jobExpireTime: string; + jobExpireTime?: string; /** * The ID of the job that created this report. */ - jobId: string; + jobId?: string; /** * The start of the time period that the report instance covers. The value * is inclusive. */ - startTime: string; + startTime?: string; } /** * A report type. @@ -529,23 +532,24 @@ export namespace youtubereporting_v1 { /** * The date/time when this report type was/will be deprecated. */ - deprecateTime: string; + deprecateTime?: string; /** * The ID of the report type (max. 100 characters). */ - id: string; + id?: string; /** * The name of the report type (max. 100 characters). */ - name: string; + name?: string; /** * True if this a system-managed report type; otherwise false. Reporting * jobs for system-managed report types are created automatically and can * thus not be used in the `CreateJob` method. */ - systemManaged: boolean; + systemManaged?: boolean; } + export class Resource$Jobs { root: Youtubereporting; reports: Resource$Jobs$Reports; @@ -573,23 +577,36 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create(params?: any, options?: MethodOptions): AxiosPromise; + create(params?: Params$Resource$Jobs$Create, options?: MethodOptions): + AxiosPromise; + create( + params: Params$Resource$Jobs$Create, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$Create, + callback: BodyResponseCallback): void; + create(callback: BodyResponseCallback): void; create( - params?: any, options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Jobs$Create| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Create; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -625,25 +642,36 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete(params?: any, options?: MethodOptions): AxiosPromise; + delete(params?: Params$Resource$Jobs$Delete, options?: MethodOptions): + AxiosPromise; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$Delete, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; delete( - params?: any, - options?: MethodOptions|BodyResponseCallback, + params: Params$Resource$Jobs$Delete, + callback: BodyResponseCallback): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: Params$Resource$Jobs$Delete| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Delete; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -679,21 +707,33 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Jobs$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Jobs$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Jobs$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Jobs$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -731,26 +771,37 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Jobs$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Jobs$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Jobs$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -772,6 +823,85 @@ export namespace youtubereporting_v1 { } } } + + export interface Params$Resource$Jobs$Create { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + /** + * Request body metadata + */ + resource?: Schema$Job; + } + export interface Params$Resource$Jobs$Delete { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the job to delete. + */ + jobId?: string; + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Jobs$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the job to retrieve. + */ + jobId?: string; + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + } + export interface Params$Resource$Jobs$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set to true, also system-managed jobs will be returned; otherwise only + * user-created jobs will be returned. System-managed jobs can neither be + * modified nor deleted. + */ + includeSystemManaged?: boolean; + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + /** + * Requested page size. Server may return fewer jobs than requested. If + * unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListReportTypesResponse.next_page_token + * returned in response to the previous call to the `ListJobs` method. + */ + pageToken?: string; + } + export class Resource$Jobs$Reports { root: Youtubereporting; constructor(root: Youtubereporting) { @@ -798,23 +928,33 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get(params?: any, options?: MethodOptions): AxiosPromise; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; - get(params?: any, - options?: MethodOptions|BodyResponseCallback, + get(params?: Params$Resource$Jobs$Reports$Get, + options?: MethodOptions): AxiosPromise; + get(params: Params$Resource$Jobs$Reports$Get, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + get(params: Params$Resource$Jobs$Reports$Get, + callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; + get(paramsOrCallback?: Params$Resource$Jobs$Reports$Get| + BodyResponseCallback, + optionsOrCallback?: MethodOptions|BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Jobs$Reports$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Reports$Get; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -857,28 +997,38 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Jobs$Reports$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| - BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Jobs$Reports$List, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Jobs$Reports$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: Params$Resource$Jobs$Reports$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = + (paramsOrCallback || {}) as Params$Resource$Jobs$Reports$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Jobs$Reports$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -902,6 +1052,69 @@ export namespace youtubereporting_v1 { } } + export interface Params$Resource$Jobs$Reports$Get { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * The ID of the job. + */ + jobId?: string; + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + /** + * The ID of the report to retrieve. + */ + reportId?: string; + } + export interface Params$Resource$Jobs$Reports$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set, only reports created after the specified date/time are returned. + */ + createdAfter?: string; + /** + * The ID of the job. + */ + jobId?: string; + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + /** + * Requested page size. Server may return fewer report types than requested. + * If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListReportsResponse.next_page_token + * returned in response to the previous call to the `ListReports` method. + */ + pageToken?: string; + /** + * If set, only reports whose start time is greater than or equal the + * specified date/time are returned. + */ + startTimeAtOrAfter?: string; + /** + * If set, only reports whose start time is smaller than the specified + * date/time are returned. + */ + startTimeBefore?: string; + } + + export class Resource$Media { root: Youtubereporting; @@ -928,26 +1141,37 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - download(params?: any, options?: MethodOptions): + download(params?: Params$Resource$Media$Download, options?: MethodOptions): AxiosPromise; download( - params?: any, - options?: MethodOptions|BodyResponseCallback, - callback?: BodyResponseCallback): void; + params: Params$Resource$Media$Download, + options: MethodOptions|BodyResponseCallback, + callback: BodyResponseCallback): void; + download( + params: Params$Resource$Media$Download, + callback: BodyResponseCallback): void; + download(callback: BodyResponseCallback): void; download( - params?: any, - options?: MethodOptions|BodyResponseCallback, + paramsOrCallback?: Params$Resource$Media$Download| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| + BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Media$Download; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Media$Download; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -971,6 +1195,19 @@ export namespace youtubereporting_v1 { } } + export interface Params$Resource$Media$Download { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * Name of the media that is being downloaded. + */ + resourceName?: string; + } + + export class Resource$Reporttypes { root: Youtubereporting; constructor(root: Youtubereporting) { @@ -998,28 +1235,38 @@ export namespace youtubereporting_v1 { * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list(params?: any, options?: MethodOptions): + list(params?: Params$Resource$Reporttypes$List, options?: MethodOptions): AxiosPromise; list( - params?: any, - options?: MethodOptions| + params: Params$Resource$Reporttypes$List, + options: MethodOptions| BodyResponseCallback, - callback?: BodyResponseCallback): void; + callback: BodyResponseCallback): void; + list( + params: Params$Resource$Reporttypes$List, + callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( - params?: any, - options?: MethodOptions| + paramsOrCallback?: Params$Resource$Reporttypes$List| + BodyResponseCallback, + optionsOrCallback?: MethodOptions| BodyResponseCallback, callback?: BodyResponseCallback): void|AxiosPromise { - if (typeof options === 'function') { - callback = options; + let params = (paramsOrCallback || {}) as Params$Resource$Reporttypes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Reporttypes$List; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; const parameters = { @@ -1041,4 +1288,35 @@ export namespace youtubereporting_v1 { } } } + + export interface Params$Resource$Reporttypes$List { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + /** + * If set to true, also system-managed report types will be returned; + * otherwise only the report types that can be used to create new reporting + * jobs will be returned. + */ + includeSystemManaged?: boolean; + /** + * The content owner's external ID on which behalf the user is acting on. If + * not set, the user is acting for himself (his own channel). + */ + onBehalfOfContentOwner?: string; + /** + * Requested page size. Server may return fewer report types than requested. + * If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * A token identifying a page of results the server should return. + * Typically, this is the value of ListReportTypesResponse.next_page_token + * returned in response to the previous call to the `ListReportTypes` + * method. + */ + pageToken?: string; + } } diff --git a/src/index.ts b/src/index.ts index c653b7f1da0..7570f603ee6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -77,6 +77,7 @@ export {cloudshell_v1alpha1} from './apis/cloudshell/v1alpha1'; export {cloudtasks_v2beta2} from './apis/cloudtasks/v2beta2'; export {cloudtrace_v1} from './apis/cloudtrace/v1'; export {cloudtrace_v2} from './apis/cloudtrace/v2'; +export {composer_v1beta1} from './apis/composer/v1beta1'; export {compute_alpha} from './apis/compute/alpha'; export {compute_beta} from './apis/compute/beta'; export {compute_v1} from './apis/compute/v1'; @@ -101,8 +102,6 @@ export {dialogflow_v2beta1} from './apis/dialogflow/v2beta1'; export {digitalassetlinks_v1} from './apis/digitalassetlinks/v1'; export {discovery_v1} from './apis/discovery/v1'; export {dlp_v2} from './apis/dlp/v2'; -export {dlp_v2beta1} from './apis/dlp/v2beta1'; -export {dlp_v2beta2} from './apis/dlp/v2beta2'; export {dns_v1} from './apis/dns/v1'; export {dns_v1beta2} from './apis/dns/v1beta2'; export {dns_v2beta1} from './apis/dns/v2beta1'; @@ -152,11 +151,6 @@ export {playcustomapp_v1} from './apis/playcustomapp/v1'; export {plus_v1} from './apis/plus/v1'; export {plusDomains_v1} from './apis/plusDomains/v1'; export {poly_v1} from './apis/poly/v1'; -export {prediction_v1_2} from './apis/prediction/v1.2'; -export {prediction_v1_3} from './apis/prediction/v1.3'; -export {prediction_v1_4} from './apis/prediction/v1.4'; -export {prediction_v1_5} from './apis/prediction/v1.5'; -export {prediction_v1_6} from './apis/prediction/v1.6'; export {proximitybeacon_v1beta1} from './apis/proximitybeacon/v1beta1'; export {pubsub_v1} from './apis/pubsub/v1'; export {pubsub_v1beta1a} from './apis/pubsub/v1beta1a'; @@ -172,6 +166,9 @@ export {runtimeconfig_v1beta1} from './apis/runtimeconfig/v1beta1'; export {safebrowsing_v4} from './apis/safebrowsing/v4'; export {script_v1} from './apis/script/v1'; export {searchconsole_v1} from './apis/searchconsole/v1'; +export {servicebroker_v1} from './apis/servicebroker/v1'; +export {servicebroker_v1alpha1} from './apis/servicebroker/v1alpha1'; +export {servicebroker_v1beta1} from './apis/servicebroker/v1beta1'; export {serviceconsumermanagement_v1} from './apis/serviceconsumermanagement/v1'; export {servicecontrol_v1} from './apis/servicecontrol/v1'; export {servicemanagement_v1} from './apis/servicemanagement/v1'; @@ -195,8 +192,6 @@ export {streetviewpublish_v1} from './apis/streetviewpublish/v1'; export {surveys_v2} from './apis/surveys/v2'; export {tagmanager_v1} from './apis/tagmanager/v1'; export {tagmanager_v2} from './apis/tagmanager/v2'; -export {taskqueue_v1beta1} from './apis/taskqueue/v1beta1'; -export {taskqueue_v1beta2} from './apis/taskqueue/v1beta2'; export {tasks_v1} from './apis/tasks/v1'; export {testing_v1} from './apis/testing/v1'; export {texttospeech_v1beta1} from './apis/texttospeech/v1beta1'; diff --git a/src/lib/api.ts b/src/lib/api.ts index 7f0eff02c52..e6ea223dd89 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -21,9 +21,10 @@ import {GoogleApis} from '..'; import {Endpoint} from './endpoint'; import {SchemaParameters} from './schema'; -export interface APIRequestParams { +// tslint:disable-next-line no-any +export interface APIRequestParams { options: AxiosRequestConfig; - params: APIRequestMethodParams; + params: T; requiredParams: string[]; pathParams: string[]; context: APIRequestContext; @@ -83,17 +84,5 @@ export interface ServiceOptions extends GlobalOptions { version?: string; } export type BodyResponseCallback = (err: Error|null, res?: AxiosResponse|null) => void; -export interface APIRequestMethodParams { - // tslint:disable-next-line: no-any - [index: string]: any; - url?: string; - media?: {body?: string|stream.Readable; mimeType?: string;}; - resource?: {mimeType?: string;}; - key?: string; - uploadType?: string; - auth?: OAuth2Client|string; - headers?: OutgoingHttpHeaders; -} - // tslint:disable-next-line: no-any export type APIEndpoint = Readonly; diff --git a/src/lib/apirequest.ts b/src/lib/apirequest.ts index 016fee7b306..632f34873b1 100644 --- a/src/lib/apirequest.ts +++ b/src/lib/apirequest.ts @@ -12,7 +12,7 @@ // limitations under the License. import {AxiosPromise} from 'axios'; -import {DefaultTransporter} from 'google-auth-library'; +import {DefaultTransporter, OAuth2Client} from 'google-auth-library'; import {BodyResponseCallback} from 'google-auth-library/build/src/transporters'; import * as qs from 'qs'; import * as stream from 'stream'; @@ -231,7 +231,7 @@ async function createAPIRequestAsync(parameters: APIRequestParams) { // now void. This may be a source of confusion for users upgrading from // version 24.0 -> 25.0 or up. if (authClient && typeof authClient === 'object') { - return authClient.request(mergedOptions); + return (authClient as OAuth2Client).request(mergedOptions); } else { return (new DefaultTransporter()).request(mergedOptions); } diff --git a/src/lib/discovery.ts b/src/lib/discovery.ts index 7ea07089d21..8ce9e282e04 100644 --- a/src/lib/discovery.ts +++ b/src/lib/discovery.ts @@ -20,7 +20,7 @@ import * as util from 'util'; import {GoogleApis} from '..'; import {GeneratedAPIs} from '../apis/index'; -import {APIRequestMethodParams, GlobalOptions, ServiceOptions} from './api'; +import {GlobalOptions, ServiceOptions} from './api'; import {createAPIRequest} from './apirequest'; import {Endpoint} from './endpoint'; import {Schema, Schemas} from './schema'; @@ -129,7 +129,7 @@ export class Discovery { * @returns A promise that resolves with a function that creates the endpoint */ async discoverAPI(apiDiscoveryUrl: string| - APIRequestMethodParams): Promise { + {url: string}): Promise { if (typeof apiDiscoveryUrl === 'string') { const parts = url.parse(apiDiscoveryUrl); if (apiDiscoveryUrl && !parts.protocol) { diff --git a/src/lib/endpoint.ts b/src/lib/endpoint.ts index 3a5a569ca2d..ccd0b802f5a 100644 --- a/src/lib/endpoint.ts +++ b/src/lib/endpoint.ts @@ -16,7 +16,7 @@ import {BodyResponseCallback} from 'google-auth-library/build/src/transporters'; import {GoogleApis} from '../index'; import {buildurl} from '../scripts/generator_utils'; -import {APIRequestContext, APIRequestMethodParams, APIRequestParams, GlobalOptions} from './api'; +import {APIRequestContext, APIRequestParams, GlobalOptions} from './api'; import {createAPIRequest} from './apirequest'; import {Discovery} from './discovery'; import {Schema, SchemaMethod, SchemaParameters, SchemaResource} from './schema'; @@ -92,8 +92,12 @@ export class Endpoint implements Target, APIRequestContext { */ private makeMethod( schema: Schema, method: SchemaMethod, context: APIRequestContext) { - return (params: APIRequestMethodParams, - callback: BodyResponseCallback<{}>) => { + return (paramsOrCallback: {}|BodyResponseCallback<{}>, + callback?: BodyResponseCallback<{}>) => { + const params = + typeof paramsOrCallback === 'function' ? {} : paramsOrCallback; + callback = + typeof paramsOrCallback === 'function' ? paramsOrCallback : callback; const schemaUrl = buildurl(schema.rootUrl + schema.servicePath + method.path); @@ -116,7 +120,11 @@ export class Endpoint implements Target, APIRequestContext { parameters.mediaUrl = mediaUrl.substring(1, mediaUrl.length - 1); } - return createAPIRequest(parameters, callback); + if (!callback) { + return createAPIRequest(parameters); + } + createAPIRequest(parameters, callback); + return; }; } diff --git a/src/scripts/generator.ts b/src/scripts/generator.ts index 2860bcd6946..c6928c85810 100644 --- a/src/scripts/generator.ts +++ b/src/scripts/generator.ts @@ -23,7 +23,7 @@ import * as pify from 'pify'; import * as url from 'url'; import * as util from 'util'; -import {FragmentResponse, Schema, SchemaItem, SchemaParameters, SchemaResource, Schemas, SchemaType} from '../lib/schema'; +import {FragmentResponse, Schema, SchemaItem, SchemaMethod, SchemaParameters, SchemaResource, Schemas, SchemaType} from '../lib/schema'; import {buildurl} from './generator_utils'; @@ -109,7 +109,12 @@ export class Generator { } private cleanPropertyName(prop: string) { - return prop.replace('@', '').replace('-', ''); + const match = prop.match(/[-@.]/g); + return match ? `'${prop}'` : prop; + } + + private hasResourceParam(method: SchemaMethod) { + return method.parameters && method.parameters['resource']; } private options: GeneratorOptions; @@ -131,6 +136,7 @@ export class Generator { this.env.addFilter('cleanComments', this.cleanComments); this.env.addFilter('getPathParams', this.getPathParams); this.env.addFilter('getSafeParamName', this.getSafeParamName); + this.env.addFilter('hasResourceParam', this.hasResourceParam); this.env.addFilter('cleanPaths', (str) => { return str ? str.replace(/\/\*\//gi, '/x/') .replace(/\/\*`/gi, '/x') diff --git a/src/templates/api-endpoint.njk b/src/templates/api-endpoint.njk index b8127844454..e77917b374d 100644 --- a/src/templates/api-endpoint.njk +++ b/src/templates/api-endpoint.njk @@ -19,9 +19,10 @@ */ import { GoogleApis } from '../..'; +import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library'; import { createAPIRequest } from '../../lib/apirequest'; import { MethodOptions, GlobalOptions, BodyResponseCallback } from '../../lib/api'; -import {AxiosPromise} from 'axios'; +import { AxiosPromise } from 'axios'; // TODO: We will eventually get the `any` in here cleared out, but in the interim we // want to turn on no-implicit-any. @@ -39,6 +40,11 @@ export namespace {{api.name}}_{{api.version|replace('\.', '_')}} { {% set Version = api.version|replace('\.', '_')|capitalize %} {% endif %} {% set Namespace = [Name, Version]|join('') %} + +export interface Options extends GlobalOptions { + version: '{{api.version|replace('\.', '_')}}'; +} + /** * {{ api.title }} * @@ -106,11 +112,11 @@ export interface Schema${{ schema.id }} { */ {% endif %} {% if p.$ref %} - {{ pname|cleanPropertyName }}: Schema${{ p.$ref }}; + {{ pname|cleanPropertyName|safe }}?: Schema${{ p.$ref }}; {% elif p.items and p.items.$ref %} - {{ pname|cleanPropertyName }}: Schema${{ p.items.$ref }}[]; + {{ pname|cleanPropertyName|safe }}?: Schema${{ p.items.$ref }}[]; {% else %} - {{ pname|cleanPropertyName }}: {{ p|getType|safe }}; + {{ pname|cleanPropertyName|safe }}?: {{ p|getType|safe }}; {% endif %} {% endfor %} {% endif %} @@ -118,6 +124,49 @@ export interface Schema${{ schema.id }} { {% endfor %} {% endif %} +{% if api.methods %} + {% for mname, m in api.methods|dictsort %} + export interface Params$${{ mname|capitalize }} { + + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + {% if m.parameters %} + {% for pname, p in m.parameters|dictsort %} + /** + * {{ p.description|oneLine|cleanComments|safe }} + */ + {{ pname|getSafeParamName }}?: {{ p.type }}; + {% endfor %} + {% if m.request %} + /** + * Request body metadata + */ + resource?: Schema${{ m.request.$ref }}; + {% endif %} + {% if m.supportsMediaUpload %} + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + } + {% endif %} + {% endif %} + } + {% endfor %} +{% endif %} + {{ resource.render(api, api, 'Resource$') }} } diff --git a/src/templates/index.njk b/src/templates/index.njk index b0931f9db5a..6eb190b7d28 100644 --- a/src/templates/index.njk +++ b/src/templates/index.njk @@ -58,8 +58,13 @@ export class GeneratedAPIs { } {% for apiName, api in apis %} -{{ apiName }}(options: ServiceOptions|string) { - return this.getAPI('{{ apiName }}', options); -} + {% for versionName, version in api %} + {% set Version = version|replace('.','_') %} + {{ apiName }}(version: '{{ Version }}'): {{ apiName }}_{{ Version }}.{{ apiName|capitalize }}; + {{ apiName }}(options: {{ apiName }}_{{ Version }}.Options): {{ apiName }}_{{ Version }}.{{ apiName|capitalize }}; + {% endfor %} + {{ apiName }}(versionOrOptions: {% for versionName, version in api %}'{{ version|replace('.','_') }}'|{{ apiName }}_{{ version|replace('.','_') }}.Options{% if not loop.last %}|{% endif %}{% endfor %}) { + return this.getAPI('{{ apiName }}', versionOrOptions); + } {% endfor %} } diff --git a/src/templates/method-partial.njk b/src/templates/method-partial.njk index fd0a3db7a77..138912b6f01 100644 --- a/src/templates/method-partial.njk +++ b/src/templates/method-partial.njk @@ -1,4 +1,4 @@ -{% macro render(m, mname, api, rootApi) %} +{% macro render(m, mname, api, rootApi, ClassName) %} {% set lb = "{" %} {% set rb = "}" %} {% set pathParams = m.parameters|getPathParams|sort %} @@ -22,35 +22,42 @@ {% endfor %} {% endif %} {% if m.supportsMediaUpload %} -{% if m.request %} - * @param {object} params.resource Media resource metadata -{% endif %} - * @param {object} params.media Media object - * @param {string} params.media.mimeType Media mime-type - * @param {string|object} params.media.body Media body contents + {% if m.request %} + * @param {object} params.resource Media resource metadata + {% endif %} + * @param {object} params.media Media object + * @param {string} params.media.mimeType Media mime-type + * @param {string|object} params.media.body Media body contents {% elif m.request %} -{% if m.request.$ref %} - * @param {{ lb }}{{ api.name }}({{ api.version }}).{{ m.request.$ref }}{{ rb }} params.resource Request body data -{% else %} - * @param {object} params.resource Request body data -{% endif %} + {% if m.request.$ref %} + * @param {{ lb }}{{ api.name }}({{ api.version }}).{{ m.request.$ref }}{{ rb }} params.resource Request body data + {% else %} + * @param {object} params.resource Request body data + {% endif %} {% endif %} * @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 */ -{{ mname }}(params?: any, options?: MethodOptions): AxiosPromise<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>; -{{ mname }}(params?: any, options?: MethodOptions|BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>, callback?: BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>): void; -{{ mname }}(params?: any, options?: MethodOptions|BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>, callback?: BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>): void|AxiosPromise<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}> { - if (typeof options === 'function') { - callback = options; +{{ mname }}(params?: Params${{ClassName}}${{mname|capitalize}}, options?: MethodOptions): AxiosPromise<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>; +{{ mname }}(params: Params${{ClassName}}${{mname|capitalize}}, options: MethodOptions|BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>, callback: BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>): void; +{{ mname }}(params: Params${{ClassName}}${{mname|capitalize}}, callback: BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>): void; +{{ mname }}(callback: BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>): void; +{{ mname }}(paramsOrCallback?: Params${{ClassName}}${{mname|capitalize}}|BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>, optionsOrCallback?: MethodOptions|BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>, callback?: BodyResponseCallback<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}>): void|AxiosPromise<{{ ("Schema$"+m.response.$ref) if m.response.$ref else "void" }}> { + let params = (paramsOrCallback || {}) as Params${{ClassName}}${{mname|capitalize}}; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params${{ClassName}}${{mname|capitalize}}; options = {}; } - if (typeof params === 'function') { - callback = params; - params = {}; + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; } - options = options || {}; + const rootUrl = options.rootUrl || {{ rootApi.rootUrl|buildurl|safe }}; const parameters = { options: Object.assign({ diff --git a/src/templates/resource-partial.njk b/src/templates/resource-partial.njk index b74b33b8e6d..4912b20d115 100644 --- a/src/templates/resource-partial.njk +++ b/src/templates/resource-partial.njk @@ -29,10 +29,53 @@ {% if r.methods %} {% for mname, m in r.methods|dictsort %} - {{ method.render(m, mname, r, rootApi) }} + {{ method.render(m, mname, r, rootApi, ClassName) }} {% endfor %} {% endif %} } + + {% if r.methods %} + {% for mname, m in r.methods|dictsort %} + export interface Params${{ClassName}}${{ mname|capitalize }} { + /** + * Auth client or API Key for the request + */ + auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient; + + {% if m.parameters %} + {% for pname, p in m.parameters|dictsort %} + /** + * {{ p.description|oneLine|cleanComments|safe }} + */ + {{ pname|cleanPropertyName|safe }}?: {{ p|getType }}; + {% endfor %} + {% if m.request %} + /** + * Request body metadata + */ + resource{{'_' if m|hasResourceParam}}?: Schema${{ m.request.$ref }}; + {% endif %} + {% if m.supportsMediaUpload %} + /** + * Media metadata + */ + media: { + /** + * Media mime-type + */ + mediaType?: string; + + /** + * Media body contents + */ + body: any; + }; + {% endif %} + {% endif %} + } + {% endfor %} + {% endif %} + {{ render(r, rootApi, ClassName + "$") }} {% endfor %} {% endif %} diff --git a/test/fixtures/kitchen/src/index.ts b/test/fixtures/kitchen/src/index.ts index 0fe89079d69..865785a58fe 100644 --- a/test/fixtures/kitchen/src/index.ts +++ b/test/fixtures/kitchen/src/index.ts @@ -1,7 +1,7 @@ import {google, GoogleApis} from 'googleapis'; // uncomment the line below during development //import {google, GoogleApis} from '../../../../src'; -const drive = google.drive({}); +const drive = google.drive('v3'); const googleapis = new GoogleApis(); const oauth2 = new googleapis.auth.OAuth2(); google.auth.getClient().then(client => { diff --git a/test/test.apikey.ts b/test/test.apikey.ts index b6b2e7814c5..a2d5e5a373c 100644 --- a/test/test.apikey.ts +++ b/test/test.apikey.ts @@ -15,7 +15,7 @@ import * as assert from 'assert'; import {OAuth2Client} from 'google-auth-library'; import * as nock from 'nock'; -import {GoogleApis} from '../src'; +import {drive_v2, GoogleApis, urlshortener_v1} from '../src'; import {google} from '../src'; import {APIEndpoint} from '../src/lib/api'; @@ -49,9 +49,9 @@ async function testAuthKey(urlshortener: APIEndpoint) { } describe('API key', () => { - let localDrive: APIEndpoint; + let localDrive: drive_v2.Drive; let remoteDrive: APIEndpoint; - let localUrlshortener: APIEndpoint; + let localUrlshortener: urlshortener_v1.Urlshortener; let remoteUrlshortener: APIEndpoint; let authClient: OAuth2Client; diff --git a/test/test.clients.ts b/test/test.clients.ts index 003fd79b2c9..00fc3c3b308 100644 --- a/test/test.clients.ts +++ b/test/test.clients.ts @@ -92,8 +92,8 @@ describe('Clients', () => { it('should support default params', async () => { const google = new GoogleApis(); - const datastore = google.datastore( - {version: 'v1', params: {myParam: '123'}}); + const datastore = + google.datastore({version: 'v1', params: {myParam: '123'}}); createNock('myParam=123'); const res = await datastore.projects.lookup({projectId: 'test-project-id'}); // If the default param handling is broken, query might be undefined, thus @@ -118,12 +118,13 @@ describe('Clients', () => { it('should allow default params to be overriden per-request', async () => { const google = new GoogleApis(); - const datastore = google.datastore( - {version: 'v1', params: {myParam: '123'}}); + const datastore = + google.datastore({version: 'v1', params: {myParam: '123'}}); // Override the default datasetId param for this particular API call createNock('myParam=456'); const res = await datastore.projects.lookup( - {projectId: 'test-project-id', myParam: '456'}); + // tslint:disable-next-line no-any + {projectId: 'test-project-id', myParam: '456'} as any); // If the default param handling is broken, query might be undefined, thus // concealing the assertion message with some generic "cannot call .indexOf // of undefined" @@ -152,7 +153,7 @@ describe('Clients', () => { it('should include default params when only callback is provided to API call', async () => { const google = new GoogleApis(); - const datastore = google.datastore({ + const datastore = google.datastore({ version: 'v1', params: { // We must set this here - it is a required param diff --git a/test/test.drive.v2.ts b/test/test.drive.v2.ts index b4392450c89..aa7cbb9e118 100644 --- a/test/test.drive.v2.ts +++ b/test/test.drive.v2.ts @@ -13,14 +13,16 @@ import * as assert from 'assert'; import * as nock from 'nock'; -import {GoogleApis} from '../src'; + +import {drive_v2, GoogleApis} from '../src'; import {APIEndpoint} from '../src/lib/api'; + import {Utils} from './utils'; const googleapis = new GoogleApis(); describe('drive:v2', () => { - let localDrive: APIEndpoint, remoteDrive: APIEndpoint; + let localDrive: drive_v2.Drive, remoteDrive: APIEndpoint; before(async () => { nock.cleanAll(); @@ -86,9 +88,9 @@ describe('drive:v2', () => { }); it('should not return a Request object', (done) => { - let req = localDrive.files.insert({}, Utils.noop); + let req = localDrive.files.insert(Utils.noop); assert.equal(req, undefined); - req = remoteDrive.files.insert({}, Utils.noop); + req = remoteDrive.files.insert(Utils.noop); assert.equal(req, undefined); done(); }); diff --git a/test/test.media.ts b/test/test.media.ts index ceb17b09cd1..9987cee67c6 100644 --- a/test/test.media.ts +++ b/test/test.media.ts @@ -16,7 +16,7 @@ import * as fs from 'fs'; import * as nock from 'nock'; import * as path from 'path'; import * as pify from 'pify'; -import {GoogleApis} from '../src'; +import {GoogleApis, youtube_v3} from '../src'; import {APIEndpoint} from '../src/lib/api'; import {Utils} from './utils'; diff --git a/test/test.options.ts b/test/test.options.ts index 0c42e52d79a..597bcebf1e9 100644 --- a/test/test.options.ts +++ b/test/test.options.ts @@ -15,7 +15,9 @@ import * as assert from 'assert'; import {AxiosResponse} from 'axios'; import * as nock from 'nock'; import * as url from 'url'; -import {GoogleApis} from '../src'; + +import {drive_v2, drive_v3, GoogleApis} from '../src'; + import {Utils} from './utils'; function createNock(path?: string) { @@ -53,7 +55,7 @@ describe('Options', () => { google.options({params: {hello: 'world'}}); const drive = google.drive({version: 'v2', params: {hello: 'changed'}}); createNock('/drive/v2/files/123?hello=changed'); - const res: AxiosResponse = await drive.files.get({fileId: '123'}); + const res = await drive.files.get({fileId: '123'}); assert.equal(res.config.params.hello, 'changed'); }); @@ -168,7 +170,7 @@ describe('Options', () => { const google = new GoogleApis(); const drive = google.drive('v2'); const res = await drive.files.list({}, { - validateStatus: (status: {}) => { + validateStatus: (status: number) => { return true; } });